@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.
Files changed (213) hide show
  1. package/build/cjs/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.js +17 -0
  2. package/build/cjs/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.js +12 -0
  3. package/build/cjs/surfaces/admin.js +4 -2
  4. package/build/cjs/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.js +9 -0
  5. package/build/cjs/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.js +9 -0
  6. package/build/cjs/surfaces/checkout/components/LoginWithShop/LoginWithShop.js +9 -0
  7. package/build/cjs/surfaces/checkout/components/PaymentIcon/PaymentIcon.js +11 -0
  8. package/build/cjs/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.js +9 -0
  9. package/build/cjs/surfaces/checkout.js +10 -0
  10. package/build/cjs/surfaces/customer-account.js +10 -0
  11. package/build/esm/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.mjs +13 -0
  12. package/build/esm/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.mjs +8 -0
  13. package/build/esm/surfaces/admin.mjs +2 -1
  14. package/build/esm/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.mjs +5 -0
  15. package/build/esm/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.mjs +5 -0
  16. package/build/esm/surfaces/checkout/components/LoginWithShop/LoginWithShop.mjs +5 -0
  17. package/build/esm/surfaces/checkout/components/PaymentIcon/PaymentIcon.mjs +7 -0
  18. package/build/esm/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.mjs +5 -0
  19. package/build/esm/surfaces/checkout.mjs +5 -0
  20. package/build/esm/surfaces/customer-account.mjs +5 -0
  21. package/build/esnext/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.esnext +13 -0
  22. package/build/esnext/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.esnext +8 -0
  23. package/build/esnext/surfaces/admin.esnext +2 -1
  24. package/build/esnext/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.esnext +5 -0
  25. package/build/esnext/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.esnext +5 -0
  26. package/build/esnext/surfaces/checkout/components/LoginWithShop/LoginWithShop.esnext +5 -0
  27. package/build/esnext/surfaces/checkout/components/PaymentIcon/PaymentIcon.esnext +7 -0
  28. package/build/esnext/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.esnext +5 -0
  29. package/build/esnext/surfaces/checkout.esnext +5 -0
  30. package/build/esnext/surfaces/customer-account.esnext +5 -0
  31. package/build/ts/shared.d.ts +1 -1
  32. package/build/ts/shared.d.ts.map +1 -1
  33. package/build/ts/surfaces/admin/api/action/action.doc.d.ts.map +1 -1
  34. package/build/ts/surfaces/admin/api/block/block.doc.d.ts.map +1 -1
  35. package/build/ts/surfaces/admin/api/{customer-segmentation-template/customer-segmentation-template.d.ts → customer-segment-template/customer-segment-template.d.ts} +3 -3
  36. package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.d.ts.map +1 -0
  37. package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.doc.d.ts +4 -0
  38. package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.doc.d.ts.map +1 -0
  39. package/build/ts/surfaces/admin/api/extension-targets/extension-targets.doc.d.ts.map +1 -1
  40. package/build/ts/surfaces/admin/api/standard/standard.doc.d.ts.map +1 -1
  41. package/build/ts/surfaces/admin/api.d.ts +1 -1
  42. package/build/ts/surfaces/admin/api.d.ts.map +1 -1
  43. package/build/ts/surfaces/admin/components/AdminAction/AdminAction.d.ts +7 -1
  44. package/build/ts/surfaces/admin/components/AdminAction/AdminAction.d.ts.map +1 -1
  45. package/build/ts/surfaces/admin/components/AdminAction/AdminAction.doc.d.ts.map +1 -1
  46. package/build/ts/surfaces/admin/components/AdminBlock/AdminBlock.doc.d.ts.map +1 -1
  47. package/build/ts/surfaces/admin/components/BlockStack/BlockStack.doc.d.ts.map +1 -1
  48. package/build/ts/surfaces/admin/components/Box/Box.doc.d.ts.map +1 -1
  49. package/build/ts/surfaces/admin/components/Button/Button.d.ts +10 -0
  50. package/build/ts/surfaces/admin/components/Button/Button.d.ts.map +1 -1
  51. package/build/ts/surfaces/admin/components/Button/Button.doc.d.ts.map +1 -1
  52. package/build/ts/surfaces/admin/components/Checkbox/Checkbox.doc.d.ts.map +1 -1
  53. package/build/ts/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.d.ts +44 -0
  54. package/build/ts/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.d.ts.map +1 -0
  55. package/build/ts/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.doc.d.ts +4 -0
  56. package/build/ts/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.doc.d.ts.map +1 -0
  57. package/build/ts/surfaces/admin/components/Divider/Divider.doc.d.ts.map +1 -1
  58. package/build/ts/surfaces/admin/components/EmailField/EmailField.doc.d.ts.map +1 -1
  59. package/build/ts/surfaces/admin/components/Form/Form.doc.d.ts.map +1 -1
  60. package/build/ts/surfaces/admin/components/Heading/Heading.doc.d.ts.map +1 -1
  61. package/build/ts/surfaces/admin/components/HeadingGroup/HeadingGroup.doc.d.ts.map +1 -1
  62. package/build/ts/surfaces/admin/components/Icon/Icon.doc.d.ts.map +1 -1
  63. package/build/ts/surfaces/admin/components/Image/Image.doc.d.ts.map +1 -1
  64. package/build/ts/surfaces/admin/components/InlineStack/InlineStack.doc.d.ts.map +1 -1
  65. package/build/ts/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.d.ts +30 -0
  66. package/build/ts/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.d.ts.map +1 -0
  67. package/build/ts/surfaces/admin/components/Link/Link.doc.d.ts.map +1 -1
  68. package/build/ts/surfaces/admin/components/NumberField/NumberField.doc.d.ts.map +1 -1
  69. package/build/ts/surfaces/admin/components/PasswordField/PasswordField.doc.d.ts.map +1 -1
  70. package/build/ts/surfaces/admin/components/Pressable/Pressable.doc.d.ts.map +1 -1
  71. package/build/ts/surfaces/admin/components/ResourceItem/ResourceItem.d.ts +5 -0
  72. package/build/ts/surfaces/admin/components/ResourceItem/ResourceItem.d.ts.map +1 -1
  73. package/build/ts/surfaces/admin/components/Select/Select.doc.d.ts.map +1 -1
  74. package/build/ts/surfaces/admin/components/Text/Text.doc.d.ts.map +1 -1
  75. package/build/ts/surfaces/admin/components/TextArea/TextArea.doc.d.ts.map +1 -1
  76. package/build/ts/surfaces/admin/components/TextField/TextField.doc.d.ts.map +1 -1
  77. package/build/ts/surfaces/admin/components/URLField/URLField.doc.d.ts.map +1 -1
  78. package/build/ts/surfaces/admin/components.d.ts +4 -2
  79. package/build/ts/surfaces/admin/components.d.ts.map +1 -1
  80. package/build/ts/surfaces/admin/extension-targets.d.ts +52 -18
  81. package/build/ts/surfaces/admin/extension-targets.d.ts.map +1 -1
  82. package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts +6 -6
  83. package/build/ts/surfaces/checkout/api/docs.d.ts +70 -0
  84. package/build/ts/surfaces/checkout/api/docs.d.ts.map +1 -0
  85. package/build/ts/surfaces/checkout/api/payment/payment-option-item.d.ts +2 -0
  86. package/build/ts/surfaces/checkout/api/payment/payment-option-item.d.ts.map +1 -1
  87. package/build/ts/surfaces/checkout/api/redeemable/redeemable.d.ts +5 -1
  88. package/build/ts/surfaces/checkout/api/redeemable/redeemable.d.ts.map +1 -1
  89. package/build/ts/surfaces/checkout/api/standard/standard.d.ts +120 -20
  90. package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
  91. package/build/ts/surfaces/checkout/api.d.ts +1 -1
  92. package/build/ts/surfaces/checkout/api.d.ts.map +1 -1
  93. package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.d.ts +5 -0
  94. package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.d.ts.map +1 -1
  95. package/build/ts/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.d.ts +15 -0
  96. package/build/ts/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.d.ts.map +1 -0
  97. package/build/ts/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.doc.d.ts +4 -0
  98. package/build/ts/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.doc.d.ts.map +1 -0
  99. package/build/ts/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.d.ts +16 -0
  100. package/build/ts/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.d.ts.map +1 -0
  101. package/build/ts/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.doc.d.ts +4 -0
  102. package/build/ts/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.doc.d.ts.map +1 -0
  103. package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts +2 -4
  104. package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts.map +1 -1
  105. package/build/ts/surfaces/checkout/components/LoginWithShop/LoginWithShop.d.ts +15 -0
  106. package/build/ts/surfaces/checkout/components/LoginWithShop/LoginWithShop.d.ts.map +1 -0
  107. package/build/ts/surfaces/checkout/components/PaymentIcon/PaymentIcon.d.ts +32 -0
  108. package/build/ts/surfaces/checkout/components/PaymentIcon/PaymentIcon.d.ts.map +1 -0
  109. package/build/ts/surfaces/checkout/components/PaymentIcon/PaymentIcon.doc.d.ts +4 -0
  110. package/build/ts/surfaces/checkout/components/PaymentIcon/PaymentIcon.doc.d.ts.map +1 -0
  111. package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.d.ts +79 -0
  112. package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.d.ts.map +1 -0
  113. package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.doc.d.ts +4 -0
  114. package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.doc.d.ts.map +1 -0
  115. package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.d.ts +3 -1
  116. package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.d.ts.map +1 -1
  117. package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.d.ts +5 -1
  118. package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.d.ts.map +1 -1
  119. package/build/ts/surfaces/checkout/components/Tag/Tag.d.ts +1 -3
  120. package/build/ts/surfaces/checkout/components/Tag/Tag.d.ts.map +1 -1
  121. package/build/ts/surfaces/checkout/components/Text/Text.d.ts +1 -1
  122. package/build/ts/surfaces/checkout/components/Text/Text.d.ts.map +1 -1
  123. package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.d.ts +4 -2
  124. package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.d.ts.map +1 -1
  125. package/build/ts/surfaces/checkout/components/shared.d.ts +11 -13
  126. package/build/ts/surfaces/checkout/components/shared.d.ts.map +1 -1
  127. package/build/ts/surfaces/checkout/components.d.ts +10 -0
  128. package/build/ts/surfaces/checkout/components.d.ts.map +1 -1
  129. package/build/ts/surfaces/checkout/targets.d.ts +70 -33
  130. package/build/ts/surfaces/checkout/targets.d.ts.map +1 -1
  131. package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts +15 -4
  132. package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts.map +1 -1
  133. package/build/ts/surfaces/customer-account/api.d.ts +1 -1
  134. package/build/ts/surfaces/customer-account/api.d.ts.map +1 -1
  135. package/build/tsconfig.tsbuildinfo +1 -1
  136. package/package.json +2 -2
  137. package/src/shared.ts +1 -1
  138. package/src/surfaces/admin/api/action/action.doc.ts +0 -1
  139. package/src/surfaces/admin/api/block/block.doc.ts +0 -1
  140. package/src/surfaces/admin/api/customer-segment-template/customer-segment-template.doc.ts +20 -0
  141. package/src/surfaces/admin/api/{customer-segmentation-template/customer-segmentation-template.ts → customer-segment-template/customer-segment-template.ts} +3 -5
  142. package/src/surfaces/admin/api/extension-targets/extension-targets.doc.ts +0 -1
  143. package/src/surfaces/admin/api/standard/standard.doc.ts +0 -1
  144. package/src/surfaces/admin/api.ts +1 -1
  145. package/src/surfaces/admin/components/AdminAction/AdminAction.doc.ts +0 -1
  146. package/src/surfaces/admin/components/AdminAction/AdminAction.ts +5 -0
  147. package/src/surfaces/admin/components/AdminBlock/AdminBlock.doc.ts +0 -1
  148. package/src/surfaces/admin/components/BlockStack/BlockStack.doc.ts +0 -1
  149. package/src/surfaces/admin/components/Box/Box.doc.ts +0 -1
  150. package/src/surfaces/admin/components/Button/Button.doc.ts +0 -1
  151. package/src/surfaces/admin/components/Button/Button.ts +12 -0
  152. package/src/surfaces/admin/components/Checkbox/Checkbox.doc.ts +0 -1
  153. package/src/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.doc.ts +42 -0
  154. package/src/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.ts +45 -0
  155. package/src/surfaces/admin/components/CustomerSegmentTemplate/examples/CustomerSegmentTemplate.example.ts +17 -0
  156. package/src/surfaces/admin/components/CustomerSegmentTemplate/examples/CustomerSegmentTemplate.example.tsx +15 -0
  157. package/src/surfaces/admin/components/Divider/Divider.doc.ts +0 -1
  158. package/src/surfaces/admin/components/EmailField/EmailField.doc.ts +0 -1
  159. package/src/surfaces/admin/components/Form/Form.doc.ts +1 -2
  160. package/src/surfaces/admin/components/Heading/Heading.doc.ts +0 -1
  161. package/src/surfaces/admin/components/HeadingGroup/HeadingGroup.doc.ts +0 -1
  162. package/src/surfaces/admin/components/Icon/Icon.doc.ts +0 -1
  163. package/src/surfaces/admin/components/Image/Image.doc.ts +0 -1
  164. package/src/surfaces/admin/components/InlineStack/InlineStack.doc.ts +0 -1
  165. package/src/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.ts +68 -0
  166. package/src/surfaces/admin/components/InternalCustomerSegmentTemplate/examples/InternalCustomerSegmentTemplate.example.ts +45 -0
  167. package/src/surfaces/admin/components/Link/Link.doc.ts +0 -1
  168. package/src/surfaces/admin/components/NumberField/NumberField.doc.ts +0 -1
  169. package/src/surfaces/admin/components/PasswordField/PasswordField.doc.ts +0 -1
  170. package/src/surfaces/admin/components/Pressable/Pressable.doc.ts +0 -1
  171. package/src/surfaces/admin/components/Select/Select.doc.ts +0 -1
  172. package/src/surfaces/admin/components/Text/Text.doc.ts +0 -1
  173. package/src/surfaces/admin/components/TextArea/TextArea.doc.ts +0 -1
  174. package/src/surfaces/admin/components/TextField/TextField.doc.ts +0 -1
  175. package/src/surfaces/admin/components/URLField/URLField.doc.ts +0 -1
  176. package/src/surfaces/admin/components.ts +8 -2
  177. package/src/surfaces/admin/extension-targets.ts +67 -20
  178. package/src/surfaces/checkout/api/checkout/checkout.ts +6 -6
  179. package/src/surfaces/checkout/api/docs.ts +99 -0
  180. package/src/surfaces/checkout/api/payment/payment-option-item.ts +5 -0
  181. package/src/surfaces/checkout/api/redeemable/redeemable.ts +6 -1
  182. package/src/surfaces/checkout/api/standard/standard.ts +136 -19
  183. package/src/surfaces/checkout/api.ts +1 -0
  184. package/src/surfaces/checkout/components/ChoiceList/ChoiceList.doc.ts +1 -1
  185. package/src/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.doc.ts +48 -0
  186. package/src/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.ts +17 -0
  187. package/src/surfaces/checkout/components/ConsentCheckbox/examples/basic-consent-checkbox.example.ts +11 -0
  188. package/src/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.doc.ts +48 -0
  189. package/src/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.ts +19 -0
  190. package/src/surfaces/checkout/components/ConsentPhoneField/examples/basic-consent-phone-field.example.ts +10 -0
  191. package/src/surfaces/checkout/components/Icon/Icon.ts +2 -3
  192. package/src/surfaces/checkout/components/LoginWithShop/LoginWithShop.ts +16 -0
  193. package/src/surfaces/checkout/components/PaymentIcon/PaymentIcon.doc.ts +55 -0
  194. package/src/surfaces/checkout/components/PaymentIcon/PaymentIcon.ts +481 -0
  195. package/src/surfaces/checkout/components/PaymentIcon/examples/basic-paymenticon.example.ts +7 -0
  196. package/src/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.doc.ts +50 -0
  197. package/src/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.ts +86 -0
  198. package/src/surfaces/checkout/components/ProductThumbnail/examples/basic-productthumbnail.example.ts +11 -0
  199. package/src/surfaces/checkout/components/Text/Text.ts +7 -1
  200. package/src/surfaces/checkout/components/TextBlock/TextBlock.ts +7 -1
  201. package/src/surfaces/checkout/components/shared.ts +13 -23
  202. package/src/surfaces/checkout/components.ts +21 -0
  203. package/src/surfaces/checkout/targets.ts +96 -35
  204. package/src/surfaces/customer-account/api/order-status/order-status.ts +18 -4
  205. package/src/surfaces/customer-account/api.ts +1 -0
  206. package/build/cjs/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.js +0 -12
  207. package/build/esm/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.mjs +0 -8
  208. package/build/esnext/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.esnext +0 -8
  209. package/build/ts/surfaces/admin/api/customer-segmentation-template/customer-segmentation-template.d.ts.map +0 -1
  210. package/build/ts/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.d.ts +0 -27
  211. package/build/ts/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.d.ts.map +0 -1
  212. package/src/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.ts +0 -68
  213. 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 {AnyComponent, Components} from './shared';
3
+ import type {Components} from './shared';
4
4
  import type {
5
5
  StandardApi,
6
- CustomerSegmentationTemplateApi,
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 CustomerSegmentationTemplateComponent = AnyComponentBuilder<
15
- Pick<Components, 'CustomerSegmentationTemplate'>
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'>, AnyComponent>;
54
+ Playground: RenderExtension<StandardApi<'Playground'>, AllComponents>;
42
55
 
43
56
  /**
44
- * @private
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
- CustomerSegmentationTemplateApi<'admin.customers.segmentation-templates.render'>,
48
- CustomerSegmentationTemplateComponent
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
- AnyComponent
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
- AnyComponent
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
- AnyComponent
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
- AnyComponent
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
- AnyComponent
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
- AnyComponent
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
- AnyComponent
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
- AnyComponent
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
- AnyComponent
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
- AnyComponent
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
- AnyComponent
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
- AnyComponent
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#properties-propertydetail-applyattributechange) property.
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#properties-propertydetail-lines)
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#properties-propertydetail-discountcodes) property.
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#properties-propertydetail-appliedgiftcards) property.
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#properties-propertydetail-metafields) property.
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#properties-propertydetail-note) property.
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 {