@shopify/ui-extensions 2023.7.3 → 2023.10.1
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/build/cjs/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.js +17 -0
- package/build/cjs/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.js +12 -0
- package/build/cjs/surfaces/admin.js +4 -2
- package/build/cjs/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.js +9 -0
- package/build/cjs/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.js +9 -0
- package/build/cjs/surfaces/checkout/components/LoginWithShop/LoginWithShop.js +9 -0
- package/build/cjs/surfaces/checkout/components/PaymentIcon/PaymentIcon.js +11 -0
- package/build/cjs/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.js +9 -0
- package/build/cjs/surfaces/checkout.js +10 -0
- package/build/cjs/surfaces/customer-account.js +10 -0
- package/build/esm/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.mjs +13 -0
- package/build/esm/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.mjs +8 -0
- package/build/esm/surfaces/admin.mjs +2 -1
- package/build/esm/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.mjs +5 -0
- package/build/esm/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.mjs +5 -0
- package/build/esm/surfaces/checkout/components/LoginWithShop/LoginWithShop.mjs +5 -0
- package/build/esm/surfaces/checkout/components/PaymentIcon/PaymentIcon.mjs +7 -0
- package/build/esm/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.mjs +5 -0
- package/build/esm/surfaces/checkout.mjs +5 -0
- package/build/esm/surfaces/customer-account.mjs +5 -0
- package/build/esnext/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.esnext +13 -0
- package/build/esnext/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.esnext +8 -0
- package/build/esnext/surfaces/admin.esnext +2 -1
- package/build/esnext/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.esnext +5 -0
- package/build/esnext/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.esnext +5 -0
- package/build/esnext/surfaces/checkout/components/LoginWithShop/LoginWithShop.esnext +5 -0
- package/build/esnext/surfaces/checkout/components/PaymentIcon/PaymentIcon.esnext +7 -0
- package/build/esnext/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.esnext +5 -0
- package/build/esnext/surfaces/checkout.esnext +5 -0
- package/build/esnext/surfaces/customer-account.esnext +5 -0
- package/build/ts/shared.d.ts +1 -1
- package/build/ts/shared.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/action/action.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/block/block.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/{customer-segmentation-template/customer-segmentation-template.d.ts → customer-segment-template/customer-segment-template.d.ts} +3 -3
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/extension-targets/extension-targets.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/standard/standard.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api.d.ts +1 -1
- package/build/ts/surfaces/admin/api.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminAction/AdminAction.d.ts +7 -1
- package/build/ts/surfaces/admin/components/AdminAction/AdminAction.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminAction/AdminAction.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminBlock/AdminBlock.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/BlockStack/BlockStack.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Box/Box.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Button/Button.d.ts +10 -0
- package/build/ts/surfaces/admin/components/Button/Button.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Button/Button.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Checkbox/Checkbox.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.d.ts +44 -0
- package/build/ts/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Divider/Divider.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/EmailField/EmailField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Form/Form.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Heading/Heading.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/HeadingGroup/HeadingGroup.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Icon/Icon.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Image/Image.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/InlineStack/InlineStack.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.d.ts +30 -0
- package/build/ts/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Link/Link.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/NumberField/NumberField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/PasswordField/PasswordField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Pressable/Pressable.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/ResourceItem/ResourceItem.d.ts +5 -0
- package/build/ts/surfaces/admin/components/ResourceItem/ResourceItem.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Select/Select.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Text/Text.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/TextArea/TextArea.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/TextField/TextField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/URLField/URLField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components.d.ts +4 -2
- package/build/ts/surfaces/admin/components.d.ts.map +1 -1
- package/build/ts/surfaces/admin/extension-targets.d.ts +52 -18
- package/build/ts/surfaces/admin/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts +6 -6
- package/build/ts/surfaces/checkout/api/docs.d.ts +70 -0
- package/build/ts/surfaces/checkout/api/docs.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/payment/payment-option-item.d.ts +2 -0
- package/build/ts/surfaces/checkout/api/payment/payment-option-item.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/redeemable/redeemable.d.ts +5 -1
- package/build/ts/surfaces/checkout/api/redeemable/redeemable.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts +120 -20
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api.d.ts +1 -1
- package/build/ts/surfaces/checkout/api.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.d.ts +5 -0
- package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.d.ts +15 -0
- package/build/ts/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.d.ts +16 -0
- package/build/ts/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts +2 -4
- package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/LoginWithShop/LoginWithShop.d.ts +15 -0
- package/build/ts/surfaces/checkout/components/LoginWithShop/LoginWithShop.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/PaymentIcon/PaymentIcon.d.ts +32 -0
- package/build/ts/surfaces/checkout/components/PaymentIcon/PaymentIcon.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/PaymentIcon/PaymentIcon.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/PaymentIcon/PaymentIcon.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.d.ts +79 -0
- package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.d.ts +3 -1
- package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.d.ts +5 -1
- package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Tag/Tag.d.ts +1 -3
- package/build/ts/surfaces/checkout/components/Tag/Tag.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Text/Text.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Text/Text.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.d.ts +4 -2
- package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/shared.d.ts +11 -13
- package/build/ts/surfaces/checkout/components/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components.d.ts +10 -0
- package/build/ts/surfaces/checkout/components.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/targets.d.ts +70 -33
- package/build/ts/surfaces/checkout/targets.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts +15 -4
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api.d.ts +1 -1
- package/build/ts/surfaces/customer-account/api.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/shared.ts +1 -1
- package/src/surfaces/admin/api/action/action.doc.ts +0 -1
- package/src/surfaces/admin/api/block/block.doc.ts +0 -1
- package/src/surfaces/admin/api/customer-segment-template/customer-segment-template.doc.ts +20 -0
- package/src/surfaces/admin/api/{customer-segmentation-template/customer-segmentation-template.ts → customer-segment-template/customer-segment-template.ts} +3 -5
- package/src/surfaces/admin/api/extension-targets/extension-targets.doc.ts +0 -1
- package/src/surfaces/admin/api/standard/standard.doc.ts +0 -1
- package/src/surfaces/admin/api.ts +1 -1
- package/src/surfaces/admin/components/AdminAction/AdminAction.doc.ts +0 -1
- package/src/surfaces/admin/components/AdminAction/AdminAction.ts +5 -0
- package/src/surfaces/admin/components/AdminBlock/AdminBlock.doc.ts +0 -1
- package/src/surfaces/admin/components/BlockStack/BlockStack.doc.ts +0 -1
- package/src/surfaces/admin/components/Box/Box.doc.ts +0 -1
- package/src/surfaces/admin/components/Button/Button.doc.ts +0 -1
- package/src/surfaces/admin/components/Button/Button.ts +12 -0
- package/src/surfaces/admin/components/Checkbox/Checkbox.doc.ts +0 -1
- package/src/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.doc.ts +42 -0
- package/src/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.ts +45 -0
- package/src/surfaces/admin/components/CustomerSegmentTemplate/examples/CustomerSegmentTemplate.example.ts +17 -0
- package/src/surfaces/admin/components/CustomerSegmentTemplate/examples/CustomerSegmentTemplate.example.tsx +15 -0
- package/src/surfaces/admin/components/Divider/Divider.doc.ts +0 -1
- package/src/surfaces/admin/components/EmailField/EmailField.doc.ts +0 -1
- package/src/surfaces/admin/components/Form/Form.doc.ts +1 -2
- package/src/surfaces/admin/components/Heading/Heading.doc.ts +0 -1
- package/src/surfaces/admin/components/HeadingGroup/HeadingGroup.doc.ts +0 -1
- package/src/surfaces/admin/components/Icon/Icon.doc.ts +0 -1
- package/src/surfaces/admin/components/Image/Image.doc.ts +0 -1
- package/src/surfaces/admin/components/InlineStack/InlineStack.doc.ts +0 -1
- package/src/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.ts +68 -0
- package/src/surfaces/admin/components/InternalCustomerSegmentTemplate/examples/InternalCustomerSegmentTemplate.example.ts +45 -0
- package/src/surfaces/admin/components/Link/Link.doc.ts +0 -1
- package/src/surfaces/admin/components/NumberField/NumberField.doc.ts +0 -1
- package/src/surfaces/admin/components/PasswordField/PasswordField.doc.ts +0 -1
- package/src/surfaces/admin/components/Pressable/Pressable.doc.ts +0 -1
- package/src/surfaces/admin/components/Select/Select.doc.ts +0 -1
- package/src/surfaces/admin/components/Text/Text.doc.ts +0 -1
- package/src/surfaces/admin/components/TextArea/TextArea.doc.ts +0 -1
- package/src/surfaces/admin/components/TextField/TextField.doc.ts +0 -1
- package/src/surfaces/admin/components/URLField/URLField.doc.ts +0 -1
- package/src/surfaces/admin/components.ts +8 -2
- package/src/surfaces/admin/extension-targets.ts +67 -20
- package/src/surfaces/checkout/api/checkout/checkout.ts +6 -6
- package/src/surfaces/checkout/api/docs.ts +99 -0
- package/src/surfaces/checkout/api/payment/payment-option-item.ts +5 -0
- package/src/surfaces/checkout/api/redeemable/redeemable.ts +6 -1
- package/src/surfaces/checkout/api/standard/standard.ts +136 -19
- package/src/surfaces/checkout/api.ts +1 -0
- package/src/surfaces/checkout/components/ChoiceList/ChoiceList.doc.ts +1 -1
- package/src/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.doc.ts +48 -0
- package/src/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.ts +17 -0
- package/src/surfaces/checkout/components/ConsentCheckbox/examples/basic-consent-checkbox.example.ts +11 -0
- package/src/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.doc.ts +48 -0
- package/src/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.ts +19 -0
- package/src/surfaces/checkout/components/ConsentPhoneField/examples/basic-consent-phone-field.example.ts +10 -0
- package/src/surfaces/checkout/components/Icon/Icon.ts +2 -3
- package/src/surfaces/checkout/components/LoginWithShop/LoginWithShop.ts +16 -0
- package/src/surfaces/checkout/components/PaymentIcon/PaymentIcon.doc.ts +55 -0
- package/src/surfaces/checkout/components/PaymentIcon/PaymentIcon.ts +481 -0
- package/src/surfaces/checkout/components/PaymentIcon/examples/basic-paymenticon.example.ts +7 -0
- package/src/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.doc.ts +50 -0
- package/src/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.ts +86 -0
- package/src/surfaces/checkout/components/ProductThumbnail/examples/basic-productthumbnail.example.ts +11 -0
- package/src/surfaces/checkout/components/Text/Text.ts +7 -1
- package/src/surfaces/checkout/components/TextBlock/TextBlock.ts +7 -1
- package/src/surfaces/checkout/components/shared.ts +13 -23
- package/src/surfaces/checkout/components.ts +21 -0
- package/src/surfaces/checkout/targets.ts +96 -35
- package/src/surfaces/customer-account/api/order-status/order-status.ts +18 -4
- package/src/surfaces/customer-account/api.ts +1 -0
- package/build/cjs/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.js +0 -12
- package/build/esm/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.mjs +0 -8
- package/build/esnext/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.esnext +0 -8
- package/build/ts/surfaces/admin/api/customer-segmentation-template/customer-segmentation-template.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.d.ts +0 -27
- package/build/ts/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.d.ts.map +0 -1
- package/src/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.ts +0 -68
- package/src/surfaces/admin/components/CustomerSegmentationTemplate/examples/CustomerSegmentationTemplate.example.ts +0 -37
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type {RenderExtension} from '../../extension';
|
|
2
2
|
|
|
3
|
-
import type {
|
|
3
|
+
import type {Components} from './shared';
|
|
4
4
|
import type {
|
|
5
5
|
StandardApi,
|
|
6
|
-
|
|
6
|
+
CustomerSegmentTemplateApi,
|
|
7
7
|
ActionExtensionApi,
|
|
8
8
|
BlockExtensionApi,
|
|
9
9
|
ProductDetailsConfigurationApi,
|
|
@@ -11,8 +11,11 @@ import type {
|
|
|
11
11
|
} from './api';
|
|
12
12
|
import {AnyComponentBuilder} from '../../shared';
|
|
13
13
|
|
|
14
|
-
type
|
|
15
|
-
Pick<
|
|
14
|
+
type CustomerSegmentTemplateComponent = AnyComponentBuilder<
|
|
15
|
+
Pick<
|
|
16
|
+
Components,
|
|
17
|
+
'CustomerSegmentTemplate' | 'InternalCustomerSegmentTemplate'
|
|
18
|
+
>
|
|
16
19
|
>;
|
|
17
20
|
|
|
18
21
|
type ProductConfigurationComponents = AnyComponentBuilder<
|
|
@@ -34,118 +37,162 @@ type ProductConfigurationComponents = AnyComponentBuilder<
|
|
|
34
37
|
>
|
|
35
38
|
>;
|
|
36
39
|
|
|
40
|
+
/**
|
|
41
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
42
|
+
*/
|
|
43
|
+
type AllComponents = AnyComponentBuilder<
|
|
44
|
+
Omit<
|
|
45
|
+
Components,
|
|
46
|
+
'CustomerSegmentTemplate' | 'InternalCustomerSegmentTemplate'
|
|
47
|
+
>
|
|
48
|
+
>;
|
|
49
|
+
|
|
37
50
|
export interface ExtensionTargets {
|
|
38
51
|
/**
|
|
39
52
|
* @private
|
|
40
53
|
*/
|
|
41
|
-
Playground: RenderExtension<StandardApi<'Playground'>,
|
|
54
|
+
Playground: RenderExtension<StandardApi<'Playground'>, AllComponents>;
|
|
42
55
|
|
|
43
56
|
/**
|
|
44
|
-
*
|
|
57
|
+
* Renders a [`CustomerSegmentTemplate`](/docs/api/admin-extensions/components/customersegmenttemplate) in the [customer segment editor](https://help.shopify.com/en/manual/customers/customer-segmentation/customer-segments).
|
|
45
58
|
*/
|
|
46
59
|
'admin.customers.segmentation-templates.render': RenderExtension<
|
|
47
|
-
|
|
48
|
-
|
|
60
|
+
CustomerSegmentTemplateApi<'admin.customers.segmentation-templates.render'>,
|
|
61
|
+
CustomerSegmentTemplateComponent
|
|
49
62
|
>;
|
|
50
63
|
|
|
51
64
|
// Blocks
|
|
52
65
|
/**
|
|
53
66
|
* Renders an Admin Block in the product details page.
|
|
67
|
+
*
|
|
68
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
54
69
|
*/
|
|
55
70
|
'admin.product-details.block.render': RenderExtension<
|
|
56
71
|
BlockExtensionApi<'admin.product-details.block.render'>,
|
|
57
|
-
|
|
72
|
+
AllComponents
|
|
58
73
|
>;
|
|
59
74
|
|
|
60
75
|
/**
|
|
61
76
|
* Renders an Admin Block in the order details page.
|
|
77
|
+
*
|
|
78
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
62
79
|
*/
|
|
63
80
|
'admin.order-details.block.render': RenderExtension<
|
|
64
81
|
BlockExtensionApi<'admin.order-details.block.render'>,
|
|
65
|
-
|
|
82
|
+
AllComponents
|
|
66
83
|
>;
|
|
67
84
|
|
|
68
85
|
/**
|
|
69
86
|
* Renders an Admin Block in the customer details page.
|
|
87
|
+
*
|
|
88
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
70
89
|
*/
|
|
71
90
|
'admin.customer-details.block.render': RenderExtension<
|
|
72
91
|
BlockExtensionApi<'admin.customer-details.block.render'>,
|
|
73
|
-
|
|
92
|
+
AllComponents
|
|
74
93
|
>;
|
|
75
94
|
|
|
76
95
|
// Actions
|
|
77
96
|
/**
|
|
78
97
|
* Renders an Admin Action in the product details page. Open this extension from the "More Actions" menu.
|
|
98
|
+
*
|
|
99
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
79
100
|
*/
|
|
80
101
|
'admin.product-details.action.render': RenderExtension<
|
|
81
102
|
ActionExtensionApi<'admin.product-details.action.render'>,
|
|
82
|
-
|
|
103
|
+
AllComponents
|
|
83
104
|
>;
|
|
84
105
|
|
|
85
106
|
/**
|
|
86
107
|
* Renders an Admin Action in the order details page. Open this extension from the "More Actions" menu.
|
|
108
|
+
*
|
|
109
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
87
110
|
*/
|
|
88
111
|
'admin.order-details.action.render': RenderExtension<
|
|
89
112
|
ActionExtensionApi<'admin.order-details.action.render'>,
|
|
90
|
-
|
|
113
|
+
AllComponents
|
|
91
114
|
>;
|
|
92
115
|
|
|
93
116
|
/**
|
|
94
117
|
* Renders an Admin Action in the customer details page. Open this extension from the "More Actions" menu.
|
|
118
|
+
*
|
|
119
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
95
120
|
*/
|
|
96
121
|
'admin.customer-details.action.render': RenderExtension<
|
|
97
122
|
ActionExtensionApi<'admin.customer-details.action.render'>,
|
|
98
|
-
|
|
123
|
+
AllComponents
|
|
124
|
+
>;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Renders an Admin Action in the customer segment details page. Open this extension from the "Use segment" button.
|
|
128
|
+
*
|
|
129
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
130
|
+
*/
|
|
131
|
+
'admin.customer-segment-details.action.render': RenderExtension<
|
|
132
|
+
ActionExtensionApi<'admin.customer-segment-details.action.render'>,
|
|
133
|
+
AllComponents
|
|
99
134
|
>;
|
|
100
135
|
|
|
101
136
|
/**
|
|
102
137
|
* Renders an Admin Action in the product index page. Open this extension from the "More Actions" menu.
|
|
138
|
+
*
|
|
139
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
103
140
|
*/
|
|
104
141
|
'admin.product-index.action.render': RenderExtension<
|
|
105
142
|
ActionExtensionApi<'admin.product-index.action.render'>,
|
|
106
|
-
|
|
143
|
+
AllComponents
|
|
107
144
|
>;
|
|
108
145
|
|
|
109
146
|
/**
|
|
110
147
|
* Renders an Admin Action in the order index page. Open this extension from the "More Actions" menu.
|
|
148
|
+
*
|
|
149
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
111
150
|
*/
|
|
112
151
|
'admin.order-index.action.render': RenderExtension<
|
|
113
152
|
ActionExtensionApi<'admin.order-index.action.render'>,
|
|
114
|
-
|
|
153
|
+
AllComponents
|
|
115
154
|
>;
|
|
116
155
|
|
|
117
156
|
/**
|
|
118
157
|
* Renders an Admin Action in the customer index page. Open this extension from the "More Actions" menu.
|
|
158
|
+
*
|
|
159
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
119
160
|
*/
|
|
120
161
|
'admin.customer-index.action.render': RenderExtension<
|
|
121
162
|
ActionExtensionApi<'admin.customer-index.action.render'>,
|
|
122
|
-
|
|
163
|
+
AllComponents
|
|
123
164
|
>;
|
|
124
165
|
|
|
125
166
|
// Bulk Actions
|
|
126
167
|
|
|
127
168
|
/**
|
|
128
169
|
* Renders an Admin Action in the product index page when multiple resources are selected. Open this extension from the "More Actions" menu of the resource list. The resource ids are available to this extension at runtime.
|
|
170
|
+
*
|
|
171
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
129
172
|
*/
|
|
130
173
|
'admin.product-index.selection-action.render': RenderExtension<
|
|
131
174
|
ActionExtensionApi<'admin.product-index.selection-action.render'>,
|
|
132
|
-
|
|
175
|
+
AllComponents
|
|
133
176
|
>;
|
|
134
177
|
|
|
135
178
|
/**
|
|
136
179
|
* Renders an Admin Action in the order index page when multiple resources are selected. Open this extension from the "More Actions" menu of the resource list. The resource ids are available to this extension at runtime.
|
|
180
|
+
*
|
|
181
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
137
182
|
*/
|
|
138
183
|
'admin.order-index.selection-action.render': RenderExtension<
|
|
139
184
|
ActionExtensionApi<'admin.order-index.selection-action.render'>,
|
|
140
|
-
|
|
185
|
+
AllComponents
|
|
141
186
|
>;
|
|
142
187
|
|
|
143
188
|
/**
|
|
144
189
|
* Renders an Admin Action in the customer index page when multiple resources are selected. Open this extension from the "More Actions" menu of the resource list. The resource ids are available to this extension at runtime.
|
|
190
|
+
*
|
|
191
|
+
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
145
192
|
*/
|
|
146
193
|
'admin.customer-index.selection-action.render': RenderExtension<
|
|
147
194
|
ActionExtensionApi<'admin.customer-index.selection-action.render'>,
|
|
148
|
-
|
|
195
|
+
AllComponents
|
|
149
196
|
>;
|
|
150
197
|
|
|
151
198
|
/**
|
|
@@ -510,7 +510,7 @@ export interface CheckoutApi {
|
|
|
510
510
|
/**
|
|
511
511
|
* Performs an update on an attribute attached to the cart and checkout. If
|
|
512
512
|
* successful, this mutation results in an update to the value retrieved
|
|
513
|
-
* through the [`attributes`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/standardapi
|
|
513
|
+
* through the [`attributes`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/attributes#standardapi-propertydetail-attributes) property.
|
|
514
514
|
*
|
|
515
515
|
* > Note: This method will return an error if the buyer is using an accelerated checkout method, such as Apple Pay, Google Pay, or Meta Pay.
|
|
516
516
|
*/
|
|
@@ -520,7 +520,7 @@ export interface CheckoutApi {
|
|
|
520
520
|
* Performs an update on the merchandise line items. It resolves when the new
|
|
521
521
|
* line items have been negotiated and results in an update to the value
|
|
522
522
|
* retrieved through the
|
|
523
|
-
* [`lines`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/standardapi
|
|
523
|
+
* [`lines`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/cart-lines#standardapi-propertydetail-lines)
|
|
524
524
|
* property.
|
|
525
525
|
*
|
|
526
526
|
* > Note: This method will return an error if the buyer is using an accelerated checkout method, such as Apple Pay, Google Pay, or Meta Pay.
|
|
@@ -530,7 +530,7 @@ export interface CheckoutApi {
|
|
|
530
530
|
/**
|
|
531
531
|
* Performs an update on the discount codes.
|
|
532
532
|
* It resolves when the new discount codes have been negotiated and results in an update
|
|
533
|
-
* to the value retrieved through the [`discountCodes`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/standardapi
|
|
533
|
+
* to the value retrieved through the [`discountCodes`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/discounts#standardapi-propertydetail-discountcodes) property.
|
|
534
534
|
*
|
|
535
535
|
* > Caution:
|
|
536
536
|
* > See [security considerations](https://shopify.dev/docs/api/checkout-ui-extensions/configuration#network-access) if your extension retrieves discount codes through a network call.
|
|
@@ -544,7 +544,7 @@ export interface CheckoutApi {
|
|
|
544
544
|
/**
|
|
545
545
|
* Performs an update on the gift cards.
|
|
546
546
|
* It resolves when gift card change have been negotiated and results in an update
|
|
547
|
-
* to the value retrieved through the [`appliedGiftCards`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/standardapi
|
|
547
|
+
* to the value retrieved through the [`appliedGiftCards`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/gift-cards#standardapi-propertydetail-appliedgiftcards) property.
|
|
548
548
|
*
|
|
549
549
|
* > Caution:
|
|
550
550
|
* > See [security considerations](https://shopify.dev/docs/api/checkout-ui-extensions/configuration#network-access) if your extension retrieves gift card codes through a network call.
|
|
@@ -556,14 +556,14 @@ export interface CheckoutApi {
|
|
|
556
556
|
/**
|
|
557
557
|
* Performs an update on a piece of metadata attached to the checkout. If
|
|
558
558
|
* successful, this mutation results in an update to the value retrieved
|
|
559
|
-
* through the [`metafields`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/standardapi
|
|
559
|
+
* through the [`metafields`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/metafields#standardapi-propertydetail-metafields) property.
|
|
560
560
|
*/
|
|
561
561
|
applyMetafieldChange(change: MetafieldChange): Promise<MetafieldChangeResult>;
|
|
562
562
|
|
|
563
563
|
/**
|
|
564
564
|
* Performs an update on the note attached to the cart and checkout. If
|
|
565
565
|
* successful, this mutation results in an update to the value retrieved
|
|
566
|
-
* through the [`note`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/standardapi
|
|
566
|
+
* through the [`note`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/note#standardapi-propertydetail-note) property.
|
|
567
567
|
*
|
|
568
568
|
* > Note: This method will return an error if the buyer is using an accelerated checkout method, such as Apple Pay, Google Pay, or Meta Pay.
|
|
569
569
|
*/
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StandardApi,
|
|
3
|
+
CheckoutApi,
|
|
4
|
+
CartLineItemApi,
|
|
5
|
+
OrderStatusApi,
|
|
6
|
+
} from '../api';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* These types are used to generate the documentation for the API and decipher which properties are available for which APIs.
|
|
10
|
+
* If you are adding a new property and you'd like it to be documented in the API section, then you'll need to specify the property in the appropriate interface below.
|
|
11
|
+
*
|
|
12
|
+
* Note: These are not exported as part of the package, they are only used for documentation purposes.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
export interface Docs_Standard_AddressApi
|
|
16
|
+
extends Pick<StandardApi, 'shippingAddress' | 'billingAddress'> {}
|
|
17
|
+
export interface Docs_Checkout_AddressApi
|
|
18
|
+
extends Pick<CheckoutApi, 'applyShippingAddressChange'> {}
|
|
19
|
+
|
|
20
|
+
export interface Docs_Standard_AttributesApi
|
|
21
|
+
extends Pick<StandardApi, 'attributes'> {}
|
|
22
|
+
export interface Docs_Checkout_AttributesApi
|
|
23
|
+
extends Pick<CheckoutApi, 'applyAttributeChange'> {}
|
|
24
|
+
|
|
25
|
+
export interface Docs_Standard_BuyerIdentityApi
|
|
26
|
+
extends Pick<StandardApi, 'buyerIdentity'> {}
|
|
27
|
+
|
|
28
|
+
export interface Docs_Standard_BuyerJourneyApi
|
|
29
|
+
extends Pick<StandardApi, 'buyerJourney'> {}
|
|
30
|
+
|
|
31
|
+
export interface Docs_Standard_CartLinesApi
|
|
32
|
+
extends Pick<StandardApi, 'lines'> {}
|
|
33
|
+
export interface Docs_Checkout_CartLinesApi
|
|
34
|
+
extends Pick<CheckoutApi, 'applyCartLinesChange'> {}
|
|
35
|
+
export interface Docs_CartLineItem_CartLinesApi
|
|
36
|
+
extends Pick<CartLineItemApi, 'target'> {}
|
|
37
|
+
|
|
38
|
+
export interface Docs_Standard_CostApi extends Pick<StandardApi, 'cost'> {}
|
|
39
|
+
|
|
40
|
+
export interface Docs_Standard_LocalizationApi
|
|
41
|
+
extends Pick<StandardApi, 'i18n' | 'localization'> {}
|
|
42
|
+
|
|
43
|
+
export interface Docs_Standard_MetafieldsApi
|
|
44
|
+
extends Pick<StandardApi, 'appMetafields' | 'metafields'> {}
|
|
45
|
+
export interface Docs_Checkout_MetafieldsApi
|
|
46
|
+
extends Pick<CheckoutApi, 'applyMetafieldChange'> {}
|
|
47
|
+
|
|
48
|
+
export interface Docs_Standard_DeliveryApi
|
|
49
|
+
extends Pick<StandardApi, 'deliveryGroups'> {}
|
|
50
|
+
|
|
51
|
+
export interface Docs_Standard_CheckoutTokenApi
|
|
52
|
+
extends Pick<StandardApi, 'checkoutToken'> {}
|
|
53
|
+
|
|
54
|
+
export interface Docs_Standard_ExtensionMetaApi
|
|
55
|
+
extends Pick<StandardApi, 'extension'> {}
|
|
56
|
+
|
|
57
|
+
export interface Docs_Standard_CheckoutSettingsApi
|
|
58
|
+
extends Pick<StandardApi, 'checkoutSettings'> {}
|
|
59
|
+
|
|
60
|
+
export interface Docs_Standard_ShopApi extends Pick<StandardApi, 'shop'> {}
|
|
61
|
+
|
|
62
|
+
export interface Docs_Standard_NoteApi extends Pick<StandardApi, 'note'> {}
|
|
63
|
+
export interface Docs_Checkout_NoteApi
|
|
64
|
+
extends Pick<CheckoutApi, 'applyNoteChange'> {}
|
|
65
|
+
|
|
66
|
+
export interface Docs_OrderStatus_OrderApi
|
|
67
|
+
extends Pick<OrderStatusApi, 'order'> {}
|
|
68
|
+
|
|
69
|
+
export interface Docs_Standard_PaymentOptionsApi
|
|
70
|
+
extends Pick<
|
|
71
|
+
StandardApi,
|
|
72
|
+
'availablePaymentOptions' | 'selectedPaymentOptions'
|
|
73
|
+
> {}
|
|
74
|
+
|
|
75
|
+
export interface Docs_Standard_GiftCardsApi
|
|
76
|
+
extends Pick<StandardApi, 'appliedGiftCards'> {}
|
|
77
|
+
|
|
78
|
+
export interface Docs_Checkout_GiftCardsApi
|
|
79
|
+
extends Pick<CheckoutApi, 'applyGiftCardChange'> {}
|
|
80
|
+
|
|
81
|
+
export interface Docs_Standard_DiscountsApi
|
|
82
|
+
extends Pick<StandardApi, 'discountAllocations' | 'discountCodes'> {}
|
|
83
|
+
|
|
84
|
+
export interface Docs_Checkout_DiscountsApi
|
|
85
|
+
extends Pick<CheckoutApi, 'applyDiscountCodeChange'> {}
|
|
86
|
+
|
|
87
|
+
export interface Docs_Standard_SessionTokenApi
|
|
88
|
+
extends Pick<StandardApi, 'sessionToken'> {}
|
|
89
|
+
|
|
90
|
+
export interface Docs_Standard_SettingsApi
|
|
91
|
+
extends Pick<StandardApi, 'settings'> {}
|
|
92
|
+
|
|
93
|
+
export interface Docs_Standard_StorageApi
|
|
94
|
+
extends Pick<StandardApi, 'storage'> {}
|
|
95
|
+
|
|
96
|
+
export interface Docs_Standard_QueryApi extends Pick<StandardApi, 'query'> {}
|
|
97
|
+
|
|
98
|
+
export interface Docs_Standard_AnalyticsApi
|
|
99
|
+
extends Pick<StandardApi, 'analytics'> {}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import {StatefulRemoteSubscribable} from '@remote-ui/async-subscription';
|
|
2
|
+
|
|
1
3
|
export type PaymentMethodAttributesResult =
|
|
2
4
|
| PaymentMethodAttributesResultSuccess
|
|
3
5
|
| PaymentMethodAttributesResultError;
|
|
@@ -52,4 +54,7 @@ export interface PaymentOptionItemApi {
|
|
|
52
54
|
applyPaymentMethodAttributesChange(
|
|
53
55
|
change: PaymentMethodAttributesChange,
|
|
54
56
|
): Promise<PaymentMethodAttributesResult>;
|
|
57
|
+
paymentMethodAttributes?: StatefulRemoteSubscribable<
|
|
58
|
+
PaymentMethodAttribute[] | undefined
|
|
59
|
+
>;
|
|
55
60
|
}
|
|
@@ -40,9 +40,14 @@ export interface RedeemableAddChange {
|
|
|
40
40
|
type: 'redeemableAddChange';
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* The redeemable attributes
|
|
43
|
+
* The redeemable attributes.
|
|
44
44
|
*/
|
|
45
45
|
attributes: RedeemableAttribute[];
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The identifier used to represent the redeemable (e.g. the gift card code).
|
|
49
|
+
*/
|
|
50
|
+
identifier: string;
|
|
46
51
|
}
|
|
47
52
|
|
|
48
53
|
export interface RedeemableApi {
|