Skip to content

Pre-publish checkout-ui-extensions: brought over public packages, re-generated docs #322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"@typescript-eslint/eslint-plugin": "^4.0.0",
"@typescript-eslint/experimental-utils": "^4.0.0",
"@typescript-eslint/parser": "^4.0.0",
"typescript": "^4.1.0"
"typescript": "^4.1.0",
"@quilted/react-testing": "^0.3.7"
}
}
9 changes: 4 additions & 5 deletions packages/checkout-ui-extensions-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@
"esnext": "./index.esnext",
"import": "./index.mjs",
"require": "./index.js"
},
"./": "./"
}
},
"dependencies": {
"@remote-ui/async-subscription": "^2.1.7",
"@remote-ui/react": "^4.3.0",
"@remote-ui/async-subscription": "^2.1.9",
"@remote-ui/react": "^4.5.0",
"@shopify/checkout-ui-extensions": "^0.15.0",
"@types/react": ">=17.0.0 <18.0.0"
},
Expand All @@ -36,7 +35,7 @@
},
"devDependencies": {
"@faker-js/faker": "^5.5.3",
"@quilted/react-testing": "^0.3.7",
"@quilted/react-testing": "^0.4.10",
"@types/faker": "^5.5.9",
"react": "^17.0.0"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import {Banner as BaseBanner} from '@shopify/checkout-ui-extensions';
import {createRemoteReactComponent} from '@remote-ui/react';
import {
createRemoteReactComponent,
ReactPropsFromRemoteComponentType,
} from '@remote-ui/react';

export type BannerProps = ReactPropsFromRemoteComponentType<typeof BaseBanner>;

export const Banner = createRemoteReactComponent(BaseBanner);
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {Banner} from './Banner';
export type {BannerProps} from './Banner';
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import {BlockLayout as BaseBlockLayout} from '@shopify/checkout-ui-extensions';
import {createRemoteReactComponent} from '@remote-ui/react';
import {
createRemoteReactComponent,
ReactPropsFromRemoteComponentType,
} from '@remote-ui/react';

export type BlockLayoutProps = ReactPropsFromRemoteComponentType<
typeof BaseBlockLayout
>;

export const BlockLayout = createRemoteReactComponent(BaseBlockLayout);
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ render('Checkout::Dynamic::Render', () => <App />);

function App() {
return (
<BlockLayout rows={['auto', '200px']}>
<BlockLayout rows={['auto', 200]}>
<View border="base" padding="base">
View
auto
</View>
<View border="base" padding="base">
View
200
</View>
</BlockLayout>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {BlockLayout} from './BlockLayout';
export type {BlockLayoutProps} from './BlockLayout';
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import {BlockSpacer as BaseBlockSpacer} from '@shopify/checkout-ui-extensions';
import {createRemoteReactComponent} from '@remote-ui/react';
import {
createRemoteReactComponent,
ReactPropsFromRemoteComponentType,
} from '@remote-ui/react';

export type BlockSpacerProps = ReactPropsFromRemoteComponentType<
typeof BaseBlockSpacer
>;

export const BlockSpacer = createRemoteReactComponent(BaseBlockSpacer);
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {BlockSpacer} from './BlockSpacer';
export type {BlockSpacerProps} from './BlockSpacer';
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import {BlockStack as BaseBlockStack} from '@shopify/checkout-ui-extensions';
import {createRemoteReactComponent} from '@remote-ui/react';
import {
createRemoteReactComponent,
ReactPropsFromRemoteComponentType,
} from '@remote-ui/react';

export type BlockStackProps = ReactPropsFromRemoteComponentType<
typeof BaseBlockStack
>;

export const BlockStack = createRemoteReactComponent(BaseBlockStack);
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {BlockStack} from './BlockStack';
export type {BlockStackProps} from './BlockStack';

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import {Button as BaseButton} from '@shopify/checkout-ui-extensions';
import {createRemoteReactComponent} from '@remote-ui/react';
import {
createRemoteReactComponent,
ReactPropsFromRemoteComponentType,
} from '@remote-ui/react';

export type ButtonProps = ReactPropsFromRemoteComponentType<typeof BaseButton>;

export const Button = createRemoteReactComponent(BaseButton);
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {Button} from './Button';
export type {ButtonProps} from './Button';

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import {CalloutBanner as BaseCalloutBanner} from '@shopify/checkout-ui-extensions';
import {createRemoteReactComponent} from '@remote-ui/react';
import {
createRemoteReactComponent,
ReactPropsFromRemoteComponentType,
} from '@remote-ui/react';

export type CalloutBannerProps = ReactPropsFromRemoteComponentType<
typeof BaseCalloutBanner
>;

export const CalloutBanner = createRemoteReactComponent(BaseCalloutBanner);
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {CalloutBanner} from './CalloutBanner';
export type {CalloutBannerProps} from './CalloutBanner';
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import {Checkbox as BaseCheckbox} from '@shopify/checkout-ui-extensions';
import {createRemoteReactComponent} from '@remote-ui/react';
import {
createRemoteReactComponent,
ReactPropsFromRemoteComponentType,
} from '@remote-ui/react';

export type CheckboxProps = ReactPropsFromRemoteComponentType<
typeof BaseCheckbox
>;

export const Checkbox = createRemoteReactComponent(BaseCheckbox);
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {Checkbox} from './Checkbox';
export type {CheckboxProps} from './Checkbox';
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import {Choice as BaseChoice} from '@shopify/checkout-ui-extensions';
import {createRemoteReactComponent} from '@remote-ui/react';
import {
createRemoteReactComponent,
ReactPropsFromRemoteComponentType,
} from '@remote-ui/react';

export type ChoiceProps = ReactPropsFromRemoteComponentType<typeof BaseChoice>;

export const Choice = createRemoteReactComponent(BaseChoice);
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {Choice} from './Choice';
export type {ChoiceProps} from './Choice';
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {ChoiceList} from './ChoiceList';
export type {ChoiceListProps} from '@shopify/checkout-ui-extensions';
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import {Divider as BaseDivider} from '@shopify/checkout-ui-extensions';
import {createRemoteReactComponent} from '@remote-ui/react';
import {
createRemoteReactComponent,
ReactPropsFromRemoteComponentType,
} from '@remote-ui/react';

export type DividerProps = ReactPropsFromRemoteComponentType<
typeof BaseDivider
>;

export const Divider = createRemoteReactComponent(BaseDivider);
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {Divider} from './Divider';
export type {DividerProps} from './Divider';
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import {Form as BaseForm} from '@shopify/checkout-ui-extensions';
import {createRemoteReactComponent} from '@remote-ui/react';
import {
createRemoteReactComponent,
ReactPropsFromRemoteComponentType,
} from '@remote-ui/react';

export type FormProps = ReactPropsFromRemoteComponentType<typeof BaseForm>;

export const Form = createRemoteReactComponent(BaseForm);
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {Form} from './Form';
export type {FormProps} from './Form';

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import {Grid as BaseGrid} from '@shopify/checkout-ui-extensions';
import {createRemoteReactComponent} from '@remote-ui/react';
import {
createRemoteReactComponent,
ReactPropsFromRemoteComponentType,
} from '@remote-ui/react';

export type GridProps = ReactPropsFromRemoteComponentType<typeof BaseGrid>;

export const Grid = createRemoteReactComponent(BaseGrid);
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@ render('Checkout::Dynamic::Render', () => <App />);

function App() {
return (
<Grid columns={['20%', 'fill']} rows={['auto', '300px', '100px']}>
<Grid columns={['20%', 'fill']} rows={['auto', 300, 100]}>
<View border="base" padding="base">
20% / auto
</View>
<View border="base" padding="base">
fill / auto
</View>
<View border="base" padding="base">
20% / 300px
20% / 300
</View>
<View border="base" padding="base">
fill / 300px
fill / 300
</View>
<View border="base" padding="base">
20% / 100px
20% / 100
</View>
<View border="base" padding="base">
fill / 100px
fill / 100
</View>
</Grid>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {Grid} from './Grid';
export type {GridProps} from './Grid';
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import {GridItem as BaseGridItem} from '@shopify/checkout-ui-extensions';
import {createRemoteReactComponent} from '@remote-ui/react';
import {
createRemoteReactComponent,
ReactPropsFromRemoteComponentType,
} from '@remote-ui/react';

export type GridItemProps = ReactPropsFromRemoteComponentType<
typeof BaseGridItem
>;

export const GridItem = createRemoteReactComponent(BaseGridItem);
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {GridItem} from './GridItem';
export type {GridItemProps} from './GridItem';
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import {Heading as BaseHeading} from '@shopify/checkout-ui-extensions';
import {createRemoteReactComponent} from '@remote-ui/react';
import {
createRemoteReactComponent,
ReactPropsFromRemoteComponentType,
} from '@remote-ui/react';

export type HeadingProps = ReactPropsFromRemoteComponentType<
typeof BaseHeading
>;

export const Heading = createRemoteReactComponent(BaseHeading);
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {Heading} from './Heading';
export type {HeadingProps} from './Heading';
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import {HeadingGroup as BaseHeadingGroup} from '@shopify/checkout-ui-extensions';
import {createRemoteReactComponent} from '@remote-ui/react';
import {
createRemoteReactComponent,
ReactPropsFromRemoteComponentType,
} from '@remote-ui/react';

export type HeadingGroupProps = ReactPropsFromRemoteComponentType<
typeof BaseHeadingGroup
>;

export const HeadingGroup = createRemoteReactComponent(BaseHeadingGroup);
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {HeadingGroup} from './HeadingGroup';
export type {HeadingGroupProps} from './HeadingGroup';
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import {Icon as BaseIcon} from '@shopify/checkout-ui-extensions';
import {createRemoteReactComponent} from '@remote-ui/react';
import {
createRemoteReactComponent,
ReactPropsFromRemoteComponentType,
} from '@remote-ui/react';

export type IconProps = ReactPropsFromRemoteComponentType<typeof BaseIcon>;

export const Icon = createRemoteReactComponent(BaseIcon);
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {Icon} from './Icon';
export type {IconProps} from './Icon';
Loading