@shopify/ui-extensions 2.0.0-alpha.2 → 2022.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/checkout.esnext +1 -1
- package/checkout.js +1 -1
- package/checkout.mjs +1 -1
- package/index.esnext +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/loom.config.ts +9 -0
- package/package.json +10 -11
- package/src/api.ts +0 -5
- package/src/extension.ts +3 -29
- package/src/index.ts +1 -1
- package/src/surfaces/checkout/api/cart-line-details/render-after.ts +7 -3
- package/src/surfaces/checkout/api/shared.ts +810 -3
- package/src/surfaces/checkout/api/standard/standard.ts +1240 -2
- package/src/surfaces/checkout/components/Banner/Banner.ts +37 -0
- package/src/surfaces/checkout/components/Banner/README.md +14 -0
- package/src/surfaces/checkout/components/Banner/content/guidelines.md +9 -0
- package/src/surfaces/checkout/components/Banner/examples/basic-banner.example.ts +11 -0
- package/src/surfaces/checkout/components/BlockLayout/BlockLayout.ts +43 -0
- package/src/surfaces/checkout/components/BlockLayout/README.md +101 -0
- package/src/surfaces/checkout/components/BlockLayout/examples/basic-blockLayout.example.ts +16 -0
- package/src/surfaces/checkout/components/BlockSpacer/BlockSpacer.ts +25 -0
- package/src/surfaces/checkout/components/BlockSpacer/README.md +14 -0
- package/src/surfaces/checkout/components/BlockSpacer/examples/basic-blockspacer.example.ts +11 -0
- package/src/surfaces/checkout/components/BlockStack/BlockStack.ts +53 -0
- package/src/surfaces/checkout/components/BlockStack/README.md +77 -0
- package/src/surfaces/checkout/components/BlockStack/examples/basic-blockstack.example.ts +11 -0
- package/src/surfaces/checkout/components/Button/Button.ts +87 -0
- package/src/surfaces/checkout/components/Button/README.md +22 -0
- package/src/surfaces/checkout/components/Button/content/guidelines.md +10 -0
- package/src/surfaces/checkout/components/Button/examples/basic-button.example.ts +11 -0
- package/src/{components → surfaces/checkout/components}/Checkbox/Checkbox.ts +32 -1
- package/src/surfaces/checkout/components/Checkbox/README.md +18 -0
- package/src/surfaces/checkout/components/Checkbox/content/guidelines.md +9 -0
- package/src/surfaces/checkout/components/Checkbox/examples/basic-checkbox.example.ts +11 -0
- package/src/surfaces/checkout/components/Choice/Choice.ts +25 -0
- package/src/surfaces/checkout/components/Choice/README.md +14 -0
- package/src/surfaces/checkout/components/Choice/content/guidelines.md +9 -0
- package/src/surfaces/checkout/components/Choice/examples/basic-choice.example.ts +50 -0
- package/src/surfaces/checkout/components/ChoiceList/ChoiceList.ts +33 -0
- package/src/surfaces/checkout/components/ChoiceList/README.md +14 -0
- package/src/surfaces/checkout/components/ChoiceList/content/guidelines.md +10 -0
- package/src/surfaces/checkout/components/ChoiceList/examples/basic-choicelist.example.ts +50 -0
- package/src/surfaces/checkout/components/Divider/Divider.ts +33 -0
- package/src/surfaces/checkout/components/Divider/README.md +13 -0
- package/src/surfaces/checkout/components/Divider/examples/basic-divider.example.ts +7 -0
- package/src/surfaces/checkout/components/Form/Form.ts +30 -0
- package/src/surfaces/checkout/components/Form/README.md +21 -0
- package/src/surfaces/checkout/components/Form/content/guidelines.md +4 -0
- package/src/surfaces/checkout/components/Form/examples/basic-form.example.ts +48 -0
- package/src/surfaces/checkout/components/Grid/Grid.ts +104 -0
- package/src/surfaces/checkout/components/Grid/README.md +105 -0
- package/src/surfaces/checkout/components/Grid/content/guidelines.md +3 -0
- package/src/surfaces/checkout/components/Grid/examples/basic-grid.example.ts +45 -0
- package/src/surfaces/checkout/components/GridItem/GridItem.ts +42 -0
- package/src/surfaces/checkout/components/GridItem/README.md +72 -0
- package/src/surfaces/checkout/components/GridItem/content/guidelines.md +3 -0
- package/src/surfaces/checkout/components/GridItem/examples/basic-griditem.example.ts +42 -0
- package/src/surfaces/checkout/components/Heading/Heading.ts +44 -0
- package/src/surfaces/checkout/components/Heading/README.md +19 -0
- package/src/surfaces/checkout/components/Heading/content/guidelines.md +10 -0
- package/src/surfaces/checkout/components/Heading/examples/basic-heading.example.ts +7 -0
- package/src/surfaces/checkout/components/HeadingGroup/HeadingGroup.ts +15 -0
- package/src/surfaces/checkout/components/HeadingGroup/README.md +7 -0
- package/src/surfaces/checkout/components/HeadingGroup/content/guidelines.md +9 -0
- package/src/surfaces/checkout/components/HeadingGroup/examples/basic-headinggroup.example.ts +20 -0
- package/src/surfaces/checkout/components/Icon/Icon.ts +91 -0
- package/src/surfaces/checkout/components/Icon/README.md +15 -0
- package/src/surfaces/checkout/components/Icon/examples/basic-icon.example.ts +7 -0
- package/src/surfaces/checkout/components/Image/Image.ts +83 -0
- package/src/surfaces/checkout/components/Image/README.md +53 -0
- package/src/surfaces/checkout/components/Image/examples/basic-image.example.ts +10 -0
- package/src/surfaces/checkout/components/InlineLayout/InlineLayout.ts +49 -0
- package/src/surfaces/checkout/components/InlineLayout/README.md +103 -0
- package/src/surfaces/checkout/components/InlineLayout/examples/basic-inlineLayout.example.ts +16 -0
- package/src/surfaces/checkout/components/InlineSpacer/InlineSpacer.ts +24 -0
- package/src/surfaces/checkout/components/InlineSpacer/README.md +14 -0
- package/src/surfaces/checkout/components/InlineSpacer/examples/basic-inlinespacer.example.ts +16 -0
- package/src/surfaces/checkout/components/InlineStack/InlineStack.ts +63 -0
- package/src/surfaces/checkout/components/InlineStack/README.md +87 -0
- package/src/surfaces/checkout/components/InlineStack/examples/basic-inlinestack.example.ts +18 -0
- package/src/surfaces/checkout/components/Link/Link.ts +49 -0
- package/src/surfaces/checkout/components/Link/README.md +18 -0
- package/src/surfaces/checkout/components/Link/content/guidelines.md +9 -0
- package/src/surfaces/checkout/components/Link/examples/basic-link.example.ts +11 -0
- package/src/surfaces/checkout/components/List/List.ts +32 -0
- package/src/surfaces/checkout/components/List/README.md +19 -0
- package/src/surfaces/checkout/components/List/content/guidelines.md +11 -0
- package/src/surfaces/checkout/components/List/examples/basic-list.example.ts +11 -0
- package/src/surfaces/checkout/components/ListItem/ListItem.ts +12 -0
- package/src/surfaces/checkout/components/ListItem/README.md +5 -0
- package/src/surfaces/checkout/components/ListItem/content/guidelines.md +3 -0
- package/src/surfaces/checkout/components/ListItem/examples/basic-listitem.example.ts +9 -0
- package/src/surfaces/checkout/components/PhoneField/PhoneField.ts +77 -0
- package/src/surfaces/checkout/components/PhoneField/README.md +49 -0
- package/src/surfaces/checkout/components/PhoneField/examples/basic-phonefield.example.ts +10 -0
- package/src/surfaces/checkout/components/Pressable/Pressable.ts +128 -0
- package/src/surfaces/checkout/components/Pressable/README.md +74 -0
- package/src/surfaces/checkout/components/Pressable/examples/basic-pressable.example.ts +27 -0
- package/src/surfaces/checkout/components/ScrollView/README.md +62 -0
- package/src/surfaces/checkout/components/ScrollView/ScrollView.ts +76 -0
- package/src/surfaces/checkout/components/ScrollView/examples/basic-scrollview.example.ts +38 -0
- package/src/surfaces/checkout/components/Select/README.md +41 -0
- package/src/surfaces/checkout/components/Select/Select.ts +97 -0
- package/src/surfaces/checkout/components/Select/content/guidelines.md +4 -0
- package/src/surfaces/checkout/components/Select/examples/basic-select.example.ts +36 -0
- package/src/surfaces/checkout/components/SkeletonImage/README.md +13 -0
- package/src/surfaces/checkout/components/SkeletonImage/SkeletonImage.ts +27 -0
- package/src/surfaces/checkout/components/SkeletonImage/examples/basic-skeletonimage.example.ts +10 -0
- package/src/surfaces/checkout/components/SkeletonText/README.md +13 -0
- package/src/surfaces/checkout/components/SkeletonText/SkeletonText.ts +23 -0
- package/src/surfaces/checkout/components/SkeletonText/examples/basic-skeletontext.example.ts +7 -0
- package/src/surfaces/checkout/components/SkeletonTextBlock/README.md +13 -0
- package/src/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.ts +24 -0
- package/src/surfaces/checkout/components/SkeletonTextBlock/examples/basic-skeletontextblock.example.ts +7 -0
- package/src/surfaces/checkout/components/Spinner/README.md +14 -0
- package/src/surfaces/checkout/components/Spinner/Spinner.ts +35 -0
- package/src/surfaces/checkout/components/Spinner/examples/basic-spinner.example.ts +7 -0
- package/src/surfaces/checkout/components/Stepper/README.md +28 -0
- package/src/surfaces/checkout/components/Stepper/Stepper.ts +63 -0
- package/src/surfaces/checkout/components/Stepper/content/guidelines.md +4 -0
- package/src/surfaces/checkout/components/Stepper/examples/basic-stepper.example.ts +10 -0
- package/src/surfaces/checkout/components/Tag/README.md +14 -0
- package/src/surfaces/checkout/components/Tag/Tag.ts +26 -0
- package/src/surfaces/checkout/components/Tag/examples/basic-tag.example.ts +7 -0
- package/src/surfaces/checkout/components/Text/README.md +17 -0
- package/src/surfaces/checkout/components/Text/Text.ts +44 -0
- package/src/surfaces/checkout/components/Text/content/guidelines.md +10 -0
- package/src/surfaces/checkout/components/Text/examples/basic-text.example.ts +14 -0
- package/src/surfaces/checkout/components/TextBlock/README.md +15 -0
- package/src/surfaces/checkout/components/TextBlock/TextBlock.ts +38 -0
- package/src/surfaces/checkout/components/TextBlock/content/guidelines.md +9 -0
- package/src/surfaces/checkout/components/TextBlock/examples/basic-textblock.example.ts +18 -0
- package/src/surfaces/checkout/components/TextField/README.md +49 -0
- package/src/surfaces/checkout/components/TextField/TextField.ts +173 -0
- package/src/surfaces/checkout/components/TextField/content/guidelines.md +5 -0
- package/src/surfaces/checkout/components/TextField/examples/basic-textfield.example.ts +9 -0
- package/src/surfaces/checkout/components/Tooltip/README.md +8 -0
- package/src/surfaces/checkout/components/Tooltip/Tooltip.ts +15 -0
- package/src/surfaces/checkout/components/Tooltip/examples/basic-tooltip.example.ts +23 -0
- package/src/surfaces/checkout/components/View/README.md +97 -0
- package/src/surfaces/checkout/components/View/View.ts +196 -0
- package/src/surfaces/checkout/components/View/examples/basic-view.example.ts +11 -0
- package/src/surfaces/checkout/components/shared.ts +560 -0
- package/src/surfaces/checkout/components.ts +155 -1
- package/src/surfaces/checkout/extension-points.ts +83 -3
- package/src/surfaces/checkout/globals.ts +15 -0
- package/src/surfaces/checkout/index.ts +2 -0
- package/src/surfaces/checkout/style/isEqual.test.ts +67 -0
- package/src/surfaces/checkout/style/isEqual.ts +41 -0
- package/src/surfaces/checkout/style/memoize.ts +176 -0
- package/src/surfaces/checkout/style/style.test.ts +131 -0
- package/src/surfaces/checkout/style/style.ts +161 -0
- package/src/surfaces/checkout/style/types.ts +67 -0
- package/src/surfaces/checkout/style.ts +16 -0
- package/src/utilities/registration.ts +9 -42
- package/LICENSE.md +0 -7
- package/admin.d.ts +0 -1
- package/admin.esnext +0 -1
- package/admin.js +0 -1
- package/admin.mjs +0 -1
- package/build/cjs/api.js +0 -1
- package/build/cjs/components/BlockStack/BlockStack.js +0 -11
- package/build/cjs/components/BlockStack/README.md +0 -1
- package/build/cjs/components/Button/Button.js +0 -11
- package/build/cjs/components/Button/README.md +0 -1
- package/build/cjs/components/Checkbox/Checkbox.js +0 -14
- package/build/cjs/components/Checkbox/README.md +0 -1
- package/build/cjs/components/Text/README.md +0 -1
- package/build/cjs/components/Text/Text.js +0 -11
- package/build/cjs/components/TextField/README.md +0 -1
- package/build/cjs/components/TextField/TextField.js +0 -11
- package/build/cjs/components/View/README.md +0 -1
- package/build/cjs/components/View/View.js +0 -11
- package/build/cjs/components.js +0 -53
- package/build/cjs/extension.js +0 -1
- package/build/cjs/index.js +0 -44
- package/build/cjs/surfaces/admin/api/checkout-editor/README.md +0 -1
- package/build/cjs/surfaces/admin/api/checkout-editor/render-settings.js +0 -1
- package/build/cjs/surfaces/admin/api/standard/README.md +0 -1
- package/build/cjs/surfaces/admin/api/standard/standard.js +0 -1
- package/build/cjs/surfaces/admin/api.js +0 -1
- package/build/cjs/surfaces/admin/components/TextField/TextField.js +0 -11
- package/build/cjs/surfaces/admin/components.js +0 -30
- package/build/cjs/surfaces/admin/extension-points.js +0 -1
- package/build/cjs/surfaces/admin/extension.js +0 -27
- package/build/cjs/surfaces/admin/index.js +0 -70
- package/build/cjs/surfaces/admin/shared.js +0 -1
- package/build/cjs/surfaces/checkout/api/cart-line-details/README.md +0 -1
- package/build/cjs/surfaces/checkout/api/cart-line-details/render-after.js +0 -1
- package/build/cjs/surfaces/checkout/api/shared.js +0 -1
- package/build/cjs/surfaces/checkout/api/standard/README.md +0 -1
- package/build/cjs/surfaces/checkout/api/standard/standard.js +0 -1
- package/build/cjs/surfaces/checkout/api.js +0 -1
- package/build/cjs/surfaces/checkout/components.js +0 -18
- package/build/cjs/surfaces/checkout/extension-points.js +0 -1
- package/build/cjs/surfaces/checkout/extension.js +0 -27
- package/build/cjs/surfaces/checkout/index.js +0 -70
- package/build/cjs/surfaces/checkout/shared.js +0 -1
- package/build/cjs/utilities/registration.js +0 -110
- package/build/esm/api.mjs +0 -0
- package/build/esm/components/BlockStack/BlockStack.mjs +0 -2
- package/build/esm/components/BlockStack/README.md +0 -1
- package/build/esm/components/Button/Button.mjs +0 -2
- package/build/esm/components/Button/README.md +0 -1
- package/build/esm/components/Checkbox/Checkbox.mjs +0 -6
- package/build/esm/components/Checkbox/README.md +0 -1
- package/build/esm/components/Text/README.md +0 -1
- package/build/esm/components/Text/Text.mjs +0 -2
- package/build/esm/components/TextField/README.md +0 -1
- package/build/esm/components/TextField/TextField.mjs +0 -2
- package/build/esm/components/View/README.md +0 -1
- package/build/esm/components/View/View.mjs +0 -2
- package/build/esm/components.mjs +0 -6
- package/build/esm/extension.mjs +0 -0
- package/build/esm/index.mjs +0 -3
- package/build/esm/surfaces/admin/api/checkout-editor/README.md +0 -1
- package/build/esm/surfaces/admin/api/checkout-editor/render-settings.mjs +0 -0
- package/build/esm/surfaces/admin/api/standard/README.md +0 -1
- package/build/esm/surfaces/admin/api/standard/standard.mjs +0 -0
- package/build/esm/surfaces/admin/api.mjs +0 -0
- package/build/esm/surfaces/admin/components/TextField/TextField.mjs +0 -2
- package/build/esm/surfaces/admin/components.mjs +0 -2
- package/build/esm/surfaces/admin/extension-points.mjs +0 -0
- package/build/esm/surfaces/admin/extension.mjs +0 -3
- package/build/esm/surfaces/admin/index.mjs +0 -5
- package/build/esm/surfaces/admin/shared.mjs +0 -0
- package/build/esm/surfaces/checkout/api/cart-line-details/README.md +0 -1
- package/build/esm/surfaces/checkout/api/cart-line-details/render-after.mjs +0 -0
- package/build/esm/surfaces/checkout/api/shared.mjs +0 -0
- package/build/esm/surfaces/checkout/api/standard/README.md +0 -1
- package/build/esm/surfaces/checkout/api/standard/standard.mjs +0 -0
- package/build/esm/surfaces/checkout/api.mjs +0 -0
- package/build/esm/surfaces/checkout/components.mjs +0 -1
- package/build/esm/surfaces/checkout/extension-points.mjs +0 -0
- package/build/esm/surfaces/checkout/extension.mjs +0 -3
- package/build/esm/surfaces/checkout/index.mjs +0 -5
- package/build/esm/surfaces/checkout/shared.mjs +0 -0
- package/build/esm/utilities/registration.mjs +0 -101
- package/build/esnext/api.esnext +0 -0
- package/build/esnext/components/BlockStack/BlockStack.esnext +0 -2
- package/build/esnext/components/BlockStack/README.md +0 -1
- package/build/esnext/components/Button/Button.esnext +0 -2
- package/build/esnext/components/Button/README.md +0 -1
- package/build/esnext/components/Checkbox/Checkbox.esnext +0 -6
- package/build/esnext/components/Checkbox/README.md +0 -1
- package/build/esnext/components/Text/README.md +0 -1
- package/build/esnext/components/Text/Text.esnext +0 -2
- package/build/esnext/components/TextField/README.md +0 -1
- package/build/esnext/components/TextField/TextField.esnext +0 -2
- package/build/esnext/components/View/README.md +0 -1
- package/build/esnext/components/View/View.esnext +0 -2
- package/build/esnext/components.esnext +0 -6
- package/build/esnext/extension.esnext +0 -0
- package/build/esnext/index.esnext +0 -3
- package/build/esnext/surfaces/admin/api/checkout-editor/README.md +0 -1
- package/build/esnext/surfaces/admin/api/checkout-editor/render-settings.esnext +0 -0
- package/build/esnext/surfaces/admin/api/standard/README.md +0 -1
- package/build/esnext/surfaces/admin/api/standard/standard.esnext +0 -0
- package/build/esnext/surfaces/admin/api.esnext +0 -0
- package/build/esnext/surfaces/admin/components/TextField/TextField.esnext +0 -2
- package/build/esnext/surfaces/admin/components.esnext +0 -2
- package/build/esnext/surfaces/admin/extension-points.esnext +0 -0
- package/build/esnext/surfaces/admin/extension.esnext +0 -3
- package/build/esnext/surfaces/admin/index.esnext +0 -5
- package/build/esnext/surfaces/admin/shared.esnext +0 -0
- package/build/esnext/surfaces/checkout/api/cart-line-details/README.md +0 -1
- package/build/esnext/surfaces/checkout/api/cart-line-details/render-after.esnext +0 -0
- package/build/esnext/surfaces/checkout/api/shared.esnext +0 -0
- package/build/esnext/surfaces/checkout/api/standard/README.md +0 -1
- package/build/esnext/surfaces/checkout/api/standard/standard.esnext +0 -0
- package/build/esnext/surfaces/checkout/api.esnext +0 -0
- package/build/esnext/surfaces/checkout/components.esnext +0 -1
- package/build/esnext/surfaces/checkout/extension-points.esnext +0 -0
- package/build/esnext/surfaces/checkout/extension.esnext +0 -3
- package/build/esnext/surfaces/checkout/index.esnext +0 -5
- package/build/esnext/surfaces/checkout/shared.esnext +0 -0
- package/build/esnext/utilities/registration.esnext +0 -37
- package/build/node/api.js +0 -1
- package/build/node/components/BlockStack/BlockStack.js +0 -11
- package/build/node/components/BlockStack/README.md +0 -1
- package/build/node/components/Button/Button.js +0 -11
- package/build/node/components/Button/README.md +0 -1
- package/build/node/components/Checkbox/Checkbox.js +0 -14
- package/build/node/components/Checkbox/README.md +0 -1
- package/build/node/components/Text/README.md +0 -1
- package/build/node/components/Text/Text.js +0 -11
- package/build/node/components/TextField/README.md +0 -1
- package/build/node/components/TextField/TextField.js +0 -11
- package/build/node/components/View/README.md +0 -1
- package/build/node/components/View/View.js +0 -11
- package/build/node/components.js +0 -53
- package/build/node/extension.js +0 -1
- package/build/node/index.js +0 -44
- package/build/node/surfaces/admin/api/checkout-editor/README.md +0 -1
- package/build/node/surfaces/admin/api/checkout-editor/render-settings.js +0 -1
- package/build/node/surfaces/admin/api/standard/README.md +0 -1
- package/build/node/surfaces/admin/api/standard/standard.js +0 -1
- package/build/node/surfaces/admin/api.js +0 -1
- package/build/node/surfaces/admin/components/TextField/TextField.js +0 -11
- package/build/node/surfaces/admin/components.js +0 -30
- package/build/node/surfaces/admin/extension-points.js +0 -1
- package/build/node/surfaces/admin/extension.js +0 -27
- package/build/node/surfaces/admin/index.js +0 -70
- package/build/node/surfaces/admin/shared.js +0 -1
- package/build/node/surfaces/checkout/api/cart-line-details/README.md +0 -1
- package/build/node/surfaces/checkout/api/cart-line-details/render-after.js +0 -1
- package/build/node/surfaces/checkout/api/shared.js +0 -1
- package/build/node/surfaces/checkout/api/standard/README.md +0 -1
- package/build/node/surfaces/checkout/api/standard/standard.js +0 -1
- package/build/node/surfaces/checkout/api.js +0 -1
- package/build/node/surfaces/checkout/components.js +0 -18
- package/build/node/surfaces/checkout/extension-points.js +0 -1
- package/build/node/surfaces/checkout/extension.js +0 -27
- package/build/node/surfaces/checkout/index.js +0 -70
- package/build/node/surfaces/checkout/shared.js +0 -1
- package/build/node/utilities/registration.js +0 -44
- package/build/ts/api.d.ts +0 -8
- package/build/ts/api.d.ts.map +0 -1
- package/build/ts/api.js +0 -2
- package/build/ts/components/BlockStack/BlockStack.d.ts +0 -8
- package/build/ts/components/BlockStack/BlockStack.d.ts.map +0 -1
- package/build/ts/components/BlockStack/BlockStack.js +0 -5
- package/build/ts/components/Button/Button.d.ts +0 -12
- package/build/ts/components/Button/Button.d.ts.map +0 -1
- package/build/ts/components/Button/Button.js +0 -5
- package/build/ts/components/Checkbox/Checkbox.d.ts +0 -30
- package/build/ts/components/Checkbox/Checkbox.d.ts.map +0 -1
- package/build/ts/components/Checkbox/Checkbox.js +0 -8
- package/build/ts/components/Text/Text.d.ts +0 -8
- package/build/ts/components/Text/Text.d.ts.map +0 -1
- package/build/ts/components/Text/Text.js +0 -5
- package/build/ts/components/TextField/TextField.d.ts +0 -53
- package/build/ts/components/TextField/TextField.d.ts.map +0 -1
- package/build/ts/components/TextField/TextField.js +0 -5
- package/build/ts/components/View/View.d.ts +0 -8
- package/build/ts/components/View/View.d.ts.map +0 -1
- package/build/ts/components/View/View.js +0 -5
- package/build/ts/components.d.ts +0 -13
- package/build/ts/components.d.ts.map +0 -1
- package/build/ts/components.js +0 -15
- package/build/ts/extension.d.ts +0 -15
- package/build/ts/extension.d.ts.map +0 -1
- package/build/ts/extension.js +0 -2
- package/build/ts/index.d.ts +0 -4
- package/build/ts/index.d.ts.map +0 -1
- package/build/ts/index.js +0 -19
- package/build/ts/surfaces/admin/api/checkout-editor/render-settings.d.ts +0 -19
- package/build/ts/surfaces/admin/api/checkout-editor/render-settings.d.ts.map +0 -1
- package/build/ts/surfaces/admin/api/checkout-editor/render-settings.js +0 -2
- package/build/ts/surfaces/admin/api/standard/standard.d.ts +0 -7
- package/build/ts/surfaces/admin/api/standard/standard.d.ts.map +0 -1
- package/build/ts/surfaces/admin/api/standard/standard.js +0 -2
- package/build/ts/surfaces/admin/api.d.ts +0 -3
- package/build/ts/surfaces/admin/api.d.ts.map +0 -1
- package/build/ts/surfaces/admin/api.js +0 -2
- package/build/ts/surfaces/admin/components/TextField/TextField.d.ts +0 -15
- package/build/ts/surfaces/admin/components/TextField/TextField.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/TextField/TextField.js +0 -5
- package/build/ts/surfaces/admin/components.d.ts +0 -4
- package/build/ts/surfaces/admin/components.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components.js +0 -20
- package/build/ts/surfaces/admin/extension-points.d.ts +0 -9
- package/build/ts/surfaces/admin/extension-points.d.ts.map +0 -1
- package/build/ts/surfaces/admin/extension-points.js +0 -2
- package/build/ts/surfaces/admin/extension.d.ts +0 -4
- package/build/ts/surfaces/admin/extension.d.ts.map +0 -1
- package/build/ts/surfaces/admin/extension.js +0 -20
- package/build/ts/surfaces/admin/index.d.ts +0 -6
- package/build/ts/surfaces/admin/index.d.ts.map +0 -1
- package/build/ts/surfaces/admin/index.js +0 -21
- package/build/ts/surfaces/admin/shared.d.ts +0 -8
- package/build/ts/surfaces/admin/shared.d.ts.map +0 -1
- package/build/ts/surfaces/admin/shared.js +0 -2
- package/build/ts/surfaces/checkout/api/cart-line-details/render-after.d.ts +0 -6
- package/build/ts/surfaces/checkout/api/cart-line-details/render-after.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/api/cart-line-details/render-after.js +0 -2
- package/build/ts/surfaces/checkout/api/shared.d.ts +0 -4
- package/build/ts/surfaces/checkout/api/shared.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/api/shared.js +0 -2
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts +0 -7
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/api/standard/standard.js +0 -2
- package/build/ts/surfaces/checkout/api.d.ts +0 -3
- package/build/ts/surfaces/checkout/api.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/api.js +0 -2
- package/build/ts/surfaces/checkout/components.d.ts +0 -2
- package/build/ts/surfaces/checkout/components.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components.js +0 -17
- package/build/ts/surfaces/checkout/extension-points.d.ts +0 -10
- package/build/ts/surfaces/checkout/extension-points.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/extension-points.js +0 -2
- package/build/ts/surfaces/checkout/extension.d.ts +0 -4
- package/build/ts/surfaces/checkout/extension.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/extension.js +0 -20
- package/build/ts/surfaces/checkout/index.d.ts +0 -6
- package/build/ts/surfaces/checkout/index.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/index.js +0 -21
- package/build/ts/surfaces/checkout/shared.d.ts +0 -8
- package/build/ts/surfaces/checkout/shared.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/shared.js +0 -2
- package/build/ts/utilities/registration.d.ts +0 -13
- package/build/ts/utilities/registration.d.ts.map +0 -1
- package/build/ts/utilities/registration.js +0 -111
- package/build/tsconfig.tsbuildinfo +0 -1
- package/checkout.d.ts +0 -1
- package/index.d.ts +0 -1
- package/sewing-kit.config.ts +0 -9
- package/src/components/BlockStack/BlockStack.ts +0 -7
- package/src/components/BlockStack/README.md +0 -1
- package/src/components/Button/Button.ts +0 -10
- package/src/components/Button/README.md +0 -1
- package/src/components/Checkbox/README.md +0 -1
- package/src/components/Text/README.md +0 -1
- package/src/components/Text/Text.ts +0 -5
- package/src/components/TextField/README.md +0 -1
- package/src/components/TextField/TextField.ts +0 -56
- package/src/components/View/README.md +0 -1
- package/src/components/View/View.ts +0 -5
- package/src/components.ts +0 -17
- package/src/surfaces/admin/api/checkout-editor/README.md +0 -1
- package/src/surfaces/admin/api/checkout-editor/render-settings.ts +0 -26
- package/src/surfaces/admin/api/standard/README.md +0 -1
- package/src/surfaces/admin/api/standard/standard.ts +0 -8
- package/src/surfaces/admin/api.ts +0 -2
- package/src/surfaces/admin/components/TextField/TextField.ts +0 -16
- package/src/surfaces/admin/components.ts +0 -4
- package/src/surfaces/admin/extension-points.ts +0 -17
- package/src/surfaces/admin/extension.ts +0 -7
- package/src/surfaces/admin/index.ts +0 -5
- package/src/surfaces/admin/shared.ts +0 -14
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.createExtensionRegistrationFunction = createExtensionRegistrationFunction;
|
|
7
|
-
|
|
8
|
-
var _core = require("@remote-ui/core");
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* This function takes an extension function that is expecting a `RemoteRoot` as its
|
|
12
|
-
* first argument, and returns a new function that accepts a `RemoteChannel` instead.
|
|
13
|
-
* This is a convenience that allows the raw UI extension API to only expose the simpler
|
|
14
|
-
* `RemoteChannel` type, while allowing the extension to use the more powerful `RemoteRoot`,
|
|
15
|
-
* provided by a version of `@remote-ui/core` that the extension controls.
|
|
16
|
-
*/
|
|
17
|
-
function createExtensionRegistrationFunction() {
|
|
18
|
-
const extensionWrapper = (_extensionPoint, extensionWithRemoteRoot) => {
|
|
19
|
-
async function extension(...args) {
|
|
20
|
-
// This handles extensions that do not take a `RemoteChannel` as their first argument.
|
|
21
|
-
// This is true for ”non-rendering” extension points, like `Checkout::PostPurchase::ShouldRender`.
|
|
22
|
-
if (args.length === 1 || typeof args[0] !== 'object' || args[0] == null || !('channel' in args[0])) {
|
|
23
|
-
const result = await extensionWithRemoteRoot(...args);
|
|
24
|
-
return result;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const [{
|
|
28
|
-
channel,
|
|
29
|
-
components
|
|
30
|
-
}, ...rest] = args;
|
|
31
|
-
const root = (0, _core.createRemoteRoot)(channel, {
|
|
32
|
-
components,
|
|
33
|
-
strict: true
|
|
34
|
-
});
|
|
35
|
-
const result = await extensionWithRemoteRoot(root, ...rest);
|
|
36
|
-
await root.mount();
|
|
37
|
-
return result;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
return extension;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
return extensionWrapper;
|
|
44
|
-
}
|
package/build/ts/api.d.ts
DELETED
package/build/ts/api.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,SAAS,EAAE,iBAAiB,CAAC;IACtC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;CACjC"}
|
package/build/ts/api.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export interface BlockStackProps {
|
|
2
|
-
}
|
|
3
|
-
export declare const BlockStack: "BlockStack" & {
|
|
4
|
-
readonly type?: "BlockStack" | undefined;
|
|
5
|
-
readonly props?: BlockStackProps | undefined;
|
|
6
|
-
readonly children?: true | undefined;
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=BlockStack.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlockStack.d.ts","sourceRoot":"","sources":["../../../../src/components/BlockStack/BlockStack.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;CAAG;AAEnC,eAAO,MAAM,UAAU;;;;CAEtB,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface ButtonProps {
|
|
2
|
-
/**
|
|
3
|
-
* A callback that is run after the button is pressed.
|
|
4
|
-
*/
|
|
5
|
-
onPress?(): void;
|
|
6
|
-
}
|
|
7
|
-
export declare const Button: "Button" & {
|
|
8
|
-
readonly type?: "Button" | undefined;
|
|
9
|
-
readonly props?: ButtonProps | undefined;
|
|
10
|
-
readonly children?: true | undefined;
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/Button.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,OAAO,CAAC,IAAI,IAAI,CAAC;CAClB;AAED,eAAO,MAAM,MAAM;;;;CAAyD,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export interface CheckboxProps {
|
|
2
|
-
/**
|
|
3
|
-
* Whether the checkbox is active. This prop is an alias for `checked`,
|
|
4
|
-
* and can be useful in form libraries that provide a normalized API for
|
|
5
|
-
* dealing with both `boolean` and `string` values. If both `value` and
|
|
6
|
-
* `checked` are set, `checked` takes precedence.
|
|
7
|
-
*/
|
|
8
|
-
value?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Whether the checkbox is active.
|
|
11
|
-
*/
|
|
12
|
-
checked?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* A callback that is run whenever the checkbox is changed. This callback
|
|
15
|
-
* is called with a boolean indicating whether the checkbox should now be
|
|
16
|
-
* active or inactive. This component is [controlled](https://reactjs.org/docs/forms.html#controlled-components),
|
|
17
|
-
* so you must store this value in state and reflect it back in the
|
|
18
|
-
* `checked` or `value` props.
|
|
19
|
-
*/
|
|
20
|
-
onChange?(value: boolean): void;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Use checkboxes to give users a single binary option, such as signing up for marketing, or agreeing to terms and conditions.
|
|
24
|
-
*/
|
|
25
|
-
export declare const Checkbox: "Checkbox" & {
|
|
26
|
-
readonly type?: "Checkbox" | undefined;
|
|
27
|
-
readonly props?: CheckboxProps | undefined;
|
|
28
|
-
readonly children?: true | undefined;
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/Checkbox/Checkbox.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC5B;;;;;OAKG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;;OAMG;IACH,QAAQ,CAAC,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;CACjC;AAED;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;CAEpB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Checkbox = void 0;
|
|
4
|
-
var core_1 = require("@remote-ui/core");
|
|
5
|
-
/**
|
|
6
|
-
* Use checkboxes to give users a single binary option, such as signing up for marketing, or agreeing to terms and conditions.
|
|
7
|
-
*/
|
|
8
|
-
exports.Checkbox = (0, core_1.createRemoteComponent)('Checkbox');
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/components/Text/Text.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,SAAS;CAAG;AAE7B,eAAO,MAAM,IAAI;;;;CAAmD,CAAC"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
export interface TextFieldProps {
|
|
2
|
-
/**
|
|
3
|
-
* Content to use as the field label.
|
|
4
|
-
*/
|
|
5
|
-
label: string;
|
|
6
|
-
/**
|
|
7
|
-
* The current value for the field. If omitted, the field will be empty. You should
|
|
8
|
-
* update this value in response to the `onChange` callback.
|
|
9
|
-
*/
|
|
10
|
-
value?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Callback when the user has **finished editing** a field. Unlike `onChange`
|
|
13
|
-
* callbacks you may be familiar with from Polaris or other React component libraries,
|
|
14
|
-
* this callback is **not** run on every change to the input. Text fields are
|
|
15
|
-
* “partially controlled” components, which means that while the user edits the
|
|
16
|
-
* field, its state is controlled by the component. Once the user has signalled that
|
|
17
|
-
* they have finished editing the field (typically, by blurring the field), `onChange`
|
|
18
|
-
* is called if the input actually changed from the most recent `value` property. At
|
|
19
|
-
* that point, you are expected to store this “committed value” in state, and reflect
|
|
20
|
-
* it in the text field’s `value` property.
|
|
21
|
-
*
|
|
22
|
-
* This state management model is important given how UI Extensions are rendered. UI Extension components
|
|
23
|
-
* run on a separate thread from the UI, so they can’t respond to input synchronously.
|
|
24
|
-
* A pattern popularized by [controlled React components](https://reactjs.org/docs/forms.html#controlled-components)
|
|
25
|
-
* is to have the component be the source of truth for the input `value`, and update
|
|
26
|
-
* the `value` on every user input. The delay in responding to events from a UI
|
|
27
|
-
* extension is only a few milliseconds, but attempting to strictly store state with
|
|
28
|
-
* this delay can cause issues if a user types quickly, or if the user is using a
|
|
29
|
-
* lower-powered device. Having the UI thread take ownership for “in progress” input,
|
|
30
|
-
* and only synchronizing when the user is finished with a field, avoids this risk.
|
|
31
|
-
*
|
|
32
|
-
* This callback is called with the current value of the field. If the value of a field
|
|
33
|
-
* is the same as the current `value` prop provided to the field, the `onChange` callback
|
|
34
|
-
* will not be run.
|
|
35
|
-
*/
|
|
36
|
-
onChange?(value: string): void;
|
|
37
|
-
/**
|
|
38
|
-
* Callback when the user makes any changes in the field. As noted in the documentation
|
|
39
|
-
* for `onChange`, you **must not** use this to update `state` — use the `onChange`
|
|
40
|
-
* callback for that purpose. Use the `onInput` prop when you need to do something
|
|
41
|
-
* as soon as the user makes a change, like clearing validation errors that apply to
|
|
42
|
-
* the field as soon as the user begins making the necessary adjustments.
|
|
43
|
-
*
|
|
44
|
-
* This callback is called with the current value of the field.
|
|
45
|
-
*/
|
|
46
|
-
onInput?(value: string): void;
|
|
47
|
-
}
|
|
48
|
-
export declare const TextField: "TextField" & {
|
|
49
|
-
readonly type?: "TextField" | undefined;
|
|
50
|
-
readonly props?: TextFieldProps | undefined;
|
|
51
|
-
readonly children?: true | undefined;
|
|
52
|
-
};
|
|
53
|
-
//# sourceMappingURL=TextField.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../src/components/TextField/TextField.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;;;;;;;OAQG;IACH,OAAO,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,eAAO,MAAM,SAAS;;;;CAErB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"View.d.ts","sourceRoot":"","sources":["../../../../src/components/View/View.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,SAAS;CAAG;AAE7B,eAAO,MAAM,IAAI;;;;CAAmD,CAAC"}
|
package/build/ts/components.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export { BlockStack } from './components/BlockStack/BlockStack';
|
|
2
|
-
export type { BlockStackProps } from './components/BlockStack/BlockStack';
|
|
3
|
-
export { Button } from './components/Button/Button';
|
|
4
|
-
export type { ButtonProps } from './components/Button/Button';
|
|
5
|
-
export { Checkbox } from './components/Checkbox/Checkbox';
|
|
6
|
-
export type { CheckboxProps } from './components/Checkbox/Checkbox';
|
|
7
|
-
export { Text } from './components/Text/Text';
|
|
8
|
-
export type { TextProps } from './components/Text/Text';
|
|
9
|
-
export { TextField } from './components/TextField/TextField';
|
|
10
|
-
export type { TextFieldProps } from './components/TextField/TextField';
|
|
11
|
-
export { View } from './components/View/View';
|
|
12
|
-
export type { ViewProps } from './components/View/View';
|
|
13
|
-
//# sourceMappingURL=components.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/components.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,oCAAoC,CAAC;AAC9D,YAAY,EAAC,eAAe,EAAC,MAAM,oCAAoC,CAAC;AAExE,OAAO,EAAC,MAAM,EAAC,MAAM,4BAA4B,CAAC;AAClD,YAAY,EAAC,WAAW,EAAC,MAAM,4BAA4B,CAAC;AAE5D,OAAO,EAAC,QAAQ,EAAC,MAAM,gCAAgC,CAAC;AACxD,YAAY,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAElE,OAAO,EAAC,IAAI,EAAC,MAAM,wBAAwB,CAAC;AAC5C,YAAY,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEtD,OAAO,EAAC,SAAS,EAAC,MAAM,kCAAkC,CAAC;AAC3D,YAAY,EAAC,cAAc,EAAC,MAAM,kCAAkC,CAAC;AAErE,OAAO,EAAC,IAAI,EAAC,MAAM,wBAAwB,CAAC;AAC5C,YAAY,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC"}
|
package/build/ts/components.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.View = exports.TextField = exports.Text = exports.Checkbox = exports.Button = exports.BlockStack = void 0;
|
|
4
|
-
var BlockStack_1 = require("./components/BlockStack/BlockStack");
|
|
5
|
-
Object.defineProperty(exports, "BlockStack", { enumerable: true, get: function () { return BlockStack_1.BlockStack; } });
|
|
6
|
-
var Button_1 = require("./components/Button/Button");
|
|
7
|
-
Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return Button_1.Button; } });
|
|
8
|
-
var Checkbox_1 = require("./components/Checkbox/Checkbox");
|
|
9
|
-
Object.defineProperty(exports, "Checkbox", { enumerable: true, get: function () { return Checkbox_1.Checkbox; } });
|
|
10
|
-
var Text_1 = require("./components/Text/Text");
|
|
11
|
-
Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return Text_1.Text; } });
|
|
12
|
-
var TextField_1 = require("./components/TextField/TextField");
|
|
13
|
-
Object.defineProperty(exports, "TextField", { enumerable: true, get: function () { return TextField_1.TextField; } });
|
|
14
|
-
var View_1 = require("./components/View/View");
|
|
15
|
-
Object.defineProperty(exports, "View", { enumerable: true, get: function () { return View_1.View; } });
|
package/build/ts/extension.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { RemoteRoot, RemoteChannel, RemoteComponentType } from '@remote-ui/core';
|
|
2
|
-
export interface Extension<Api, Result> {
|
|
3
|
-
(api: Api): Result;
|
|
4
|
-
}
|
|
5
|
-
export interface RenderExtensionConnection<AllowedComponents extends RemoteComponentType<string, any> = RemoteComponentType<any, any>> {
|
|
6
|
-
channel: RemoteChannel;
|
|
7
|
-
components: AllowedComponents[];
|
|
8
|
-
}
|
|
9
|
-
export interface RenderExtension<Api, AllowedComponents extends RemoteComponentType<string, any> = RemoteComponentType<any, any>> {
|
|
10
|
-
(connection: RenderExtensionConnection<AllowedComponents>, api: Api): void | Promise<void>;
|
|
11
|
-
}
|
|
12
|
-
export interface RenderExtensionWithRemoteRoot<Api, AllowedComponents extends RemoteComponentType<string, any> = RemoteComponentType<any, any>> {
|
|
13
|
-
(root: RemoteRoot<AllowedComponents, AllowedComponents>, api: Api): void | Promise<void>;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=extension.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../../src/extension.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,aAAa,EACb,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,SAAS,CAAC,GAAG,EAAE,MAAM;IACpC,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,yBAAyB,CACxC,iBAAiB,SAAS,mBAAmB,CAC3C,MAAM,EACN,GAAG,CACJ,GAAG,mBAAmB,CAAC,GAAG,EAAE,GAAG,CAAC;IAEjC,OAAO,EAAE,aAAa,CAAC;IACvB,UAAU,EAAE,iBAAiB,EAAE,CAAC;CACjC;AAED,MAAM,WAAW,eAAe,CAC9B,GAAG,EACH,iBAAiB,SAAS,mBAAmB,CAC3C,MAAM,EACN,GAAG,CACJ,GAAG,mBAAmB,CAAC,GAAG,EAAE,GAAG,CAAC;IAEjC,CACE,UAAU,EAAE,yBAAyB,CAAC,iBAAiB,CAAC,EACxD,GAAG,EAAE,GAAG,GACP,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzB;AAED,MAAM,WAAW,6BAA6B,CAC5C,GAAG,EACH,iBAAiB,SAAS,mBAAmB,CAC3C,MAAM,EACN,GAAG,CACJ,GAAG,mBAAmB,CAAC,GAAG,EAAE,GAAG,CAAC;IAEjC,CACE,IAAI,EAAE,UAAU,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,EACtD,GAAG,EAAE,GAAG,GACP,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzB"}
|
package/build/ts/extension.js
DELETED
package/build/ts/index.d.ts
DELETED
package/build/ts/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
|
package/build/ts/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./api"), exports);
|
|
18
|
-
__exportStar(require("./components"), exports);
|
|
19
|
-
__exportStar(require("./extension"), exports);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { StandardApi } from '../standard/standard';
|
|
2
|
-
export interface ApplySettingsChangeResult {
|
|
3
|
-
type: 'success' | 'error';
|
|
4
|
-
}
|
|
5
|
-
export interface ApplySettingsChangeInput {
|
|
6
|
-
key: string;
|
|
7
|
-
value: string | number | boolean | null;
|
|
8
|
-
}
|
|
9
|
-
export interface Settings {
|
|
10
|
-
value: Record<string, unknown>;
|
|
11
|
-
subscribe(callback: (settings: Settings) => void, options?: {
|
|
12
|
-
signal?: AbortSignal;
|
|
13
|
-
}): Promise<Settings>;
|
|
14
|
-
}
|
|
15
|
-
export interface CheckoutEditorRenderSettingsApi extends StandardApi<'Admin::CheckoutEditor::RenderSettings'> {
|
|
16
|
-
settings: Settings;
|
|
17
|
-
applySettingsChange(input: ApplySettingsChangeInput): Promise<ApplySettingsChangeResult>;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=render-settings.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"render-settings.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/checkout-editor/render-settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AAEtD,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,wBAAwB;IACvC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;CACzC;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,SAAS,CACP,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,EACtC,OAAO,CAAC,EAAE;QAAC,MAAM,CAAC,EAAE,WAAW,CAAA;KAAC,GAC/B,OAAO,CAAC,QAAQ,CAAC,CAAC;CACtB;AAED,MAAM,WAAW,+BACf,SAAQ,WAAW,CAAC,uCAAuC,CAAC;IAC5D,QAAQ,EAAE,QAAQ,CAAC;IACnB,mBAAmB,CACjB,KAAK,EAAE,wBAAwB,GAC9B,OAAO,CAAC,yBAAyB,CAAC,CAAC;CACvC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { StandardApi as BaseStandardApi } from '../../../../api';
|
|
2
|
-
import type { ExtensionPoint as AnyExtensionPoint } from '../../extension-points';
|
|
3
|
-
export interface StandardApi<ExtensionPoint extends AnyExtensionPoint> extends BaseStandardApi {
|
|
4
|
-
readonly surface: 'admin';
|
|
5
|
-
readonly extensionPoint: ExtensionPoint;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=standard.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"standard.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/standard/standard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,IAAI,eAAe,EAAC,MAAM,iBAAiB,CAAC;AACpE,OAAO,KAAK,EAAC,cAAc,IAAI,iBAAiB,EAAC,MAAM,wBAAwB,CAAC;AAEhF,MAAM,WAAW,WAAW,CAAC,cAAc,SAAS,iBAAiB,CACnE,SAAQ,eAAe;IACvB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;CACzC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/admin/api.ts"],"names":[],"mappings":"AAAA,YAAY,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACzD,YAAY,EAAC,+BAA+B,EAAC,MAAM,uCAAuC,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { TextFieldProps as BaseTextFieldProps } from '../../../../components';
|
|
2
|
-
export interface TextFieldProps extends BaseTextFieldProps {
|
|
3
|
-
/**
|
|
4
|
-
* Additional hint text to display beside the field, with less visual prominence than the label.
|
|
5
|
-
* Help text should only be used when there are additional implications of editing the field’s
|
|
6
|
-
* value that can’t be communicated as part of the field’s label.
|
|
7
|
-
*/
|
|
8
|
-
helpText?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const TextField: "TextField" & {
|
|
11
|
-
readonly type?: "TextField" | undefined;
|
|
12
|
-
readonly props?: TextFieldProps | undefined;
|
|
13
|
-
readonly children?: true | undefined;
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=TextField.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/TextField/TextField.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,cAAc,IAAI,kBAAkB,EAAC,MAAM,wBAAwB,CAAC;AAEjF,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,SAAS;;;;CAErB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/admin/components.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AAEjC,OAAO,EAAC,SAAS,EAAC,MAAM,kCAAkC,CAAC;AAC3D,YAAY,EAAC,cAAc,EAAC,MAAM,kCAAkC,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.TextField = void 0;
|
|
18
|
-
__exportStar(require("../../components"), exports);
|
|
19
|
-
var TextField_1 = require("./components/TextField/TextField");
|
|
20
|
-
Object.defineProperty(exports, "TextField", { enumerable: true, get: function () { return TextField_1.TextField; } });
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { RenderExtension } from '../../extension';
|
|
2
|
-
import type { CheckoutEditorRenderSettingsApi } from './api';
|
|
3
|
-
import type { AnyComponent } from './shared';
|
|
4
|
-
export interface ExtensionPoints {
|
|
5
|
-
'Admin::CheckoutEditor::RenderSettings': RenderExtension<CheckoutEditorRenderSettingsApi, AnyComponent>;
|
|
6
|
-
}
|
|
7
|
-
export declare type ExtensionPoint = keyof ExtensionPoints;
|
|
8
|
-
export declare type ExtensionForExtensionPoint<T extends ExtensionPoint> = ExtensionPoints[T];
|
|
9
|
-
//# sourceMappingURL=extension-points.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extension-points.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/admin/extension-points.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,iBAAiB,CAAC;AAErD,OAAO,KAAK,EAAC,+BAA+B,EAAC,MAAM,OAAO,CAAC;AAC3D,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,UAAU,CAAC;AAE3C,MAAM,WAAW,eAAe;IAC9B,uCAAuC,EAAE,eAAe,CACtD,+BAA+B,EAC/B,YAAY,CACb,CAAC;CACH;AAED,oBAAY,cAAc,GAAG,MAAM,eAAe,CAAC;AAEnD,oBAAY,0BAA0B,CACpC,CAAC,SAAS,cAAc,IACtB,eAAe,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/admin/extension.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AAExD,cAAc,iBAAiB,CAAC;AAEhC,eAAO,MAAM,SAAS,uFAAyD,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.extension = void 0;
|
|
18
|
-
var registration_1 = require("../../utilities/registration");
|
|
19
|
-
__exportStar(require("../../extension"), exports);
|
|
20
|
-
exports.extension = (0, registration_1.createExtensionRegistrationFunction)();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/admin/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./api"), exports);
|
|
18
|
-
__exportStar(require("./components"), exports);
|
|
19
|
-
__exportStar(require("./extension-points"), exports);
|
|
20
|
-
__exportStar(require("./extension"), exports);
|
|
21
|
-
__exportStar(require("./shared"), exports);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { RemoteComponentType } from '@remote-ui/core';
|
|
2
|
-
declare type ComponentTypes = typeof import('./components');
|
|
3
|
-
export declare type Components = {
|
|
4
|
-
[K in keyof ComponentTypes]: ComponentTypes[K] extends RemoteComponentType<any, any> ? ComponentTypes[K] : never;
|
|
5
|
-
};
|
|
6
|
-
export declare type AnyComponent = Components[keyof Components];
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/admin/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AAEzD,aAAK,cAAc,GAAG,cAAc,cAAc,CAAC,CAAC;AAEpD,oBAAY,UAAU,GAAG;KACtB,CAAC,IAAI,MAAM,cAAc,GAAG,cAAc,CAAC,CAAC,CAAC,SAAS,mBAAmB,CACxE,GAAG,EACH,GAAG,CACJ,GACG,cAAc,CAAC,CAAC,CAAC,GACjB,KAAK;CACV,CAAC;AAEF,oBAAY,YAAY,GAAG,UAAU,CAAC,MAAM,UAAU,CAAC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { CartLine } from '../shared';
|
|
2
|
-
import type { StandardApi } from '../standard/standard';
|
|
3
|
-
export interface CartLineDetailsRenderAfterApi extends StandardApi<'Checkout::CartLineDetails::RenderAfter'> {
|
|
4
|
-
readonly target: CartLine;
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=render-after.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"render-after.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/api/cart-line-details/render-after.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AAEtD,MAAM,WAAW,6BACf,SAAQ,WAAW,CAAC,wCAAwC,CAAC;IAC7D,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC;CAC3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/checkout/api/shared.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;CACZ"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { StandardApi as BaseStandardApi } from '../../../../api';
|
|
2
|
-
import type { ExtensionPoint as AnyExtensionPoint } from '../../extension-points';
|
|
3
|
-
export interface StandardApi<ExtensionPoint extends AnyExtensionPoint> extends BaseStandardApi {
|
|
4
|
-
readonly surface: 'checkout';
|
|
5
|
-
readonly extensionPoint: ExtensionPoint;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=standard.d.ts.map
|