@shopify/ui-extensions 2025.10.0-rc.7 → 2025.10.0-rc.9

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 (187) hide show
  1. package/build/ts/surfaces/admin/components/AdminAction.d.ts +1 -1
  2. package/build/ts/surfaces/admin/components/AdminBlock.d.ts +1 -1
  3. package/build/ts/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
  4. package/build/ts/surfaces/admin/components/Avatar.d.ts +139 -0
  5. package/build/ts/surfaces/admin/components/Badge.d.ts +1 -1
  6. package/build/ts/surfaces/admin/components/Banner.d.ts +1 -1
  7. package/build/ts/surfaces/admin/components/Box.d.ts +1 -1
  8. package/build/ts/surfaces/admin/components/Button.d.ts +1 -1
  9. package/build/ts/surfaces/admin/components/Checkbox.d.ts +1 -1
  10. package/build/ts/surfaces/admin/components/Choice.d.ts +1 -1
  11. package/build/ts/surfaces/admin/components/ChoiceList.d.ts +1 -1
  12. package/build/ts/surfaces/admin/components/Clickable.d.ts +1 -1
  13. package/build/ts/surfaces/admin/components/DatePicker.d.ts +1 -1
  14. package/build/ts/surfaces/admin/components/Divider.d.ts +1 -1
  15. package/build/ts/surfaces/admin/components/EmailField.d.ts +1 -1
  16. package/build/ts/surfaces/admin/components/Form.d.ts +1 -1
  17. package/build/ts/surfaces/admin/components/Grid.d.ts +1 -1
  18. package/build/ts/surfaces/admin/components/GridItem.d.ts +1 -1
  19. package/build/ts/surfaces/admin/components/Heading.d.ts +1 -1
  20. package/build/ts/surfaces/admin/components/Icon.d.ts +1 -1
  21. package/build/ts/surfaces/admin/components/Image.d.ts +1 -1
  22. package/build/ts/surfaces/admin/components/Link.d.ts +1 -1
  23. package/build/ts/surfaces/admin/components/ListItem.d.ts +1 -1
  24. package/build/ts/surfaces/admin/components/MoneyField.d.ts +1 -1
  25. package/build/ts/surfaces/admin/components/NumberField.d.ts +1 -1
  26. package/build/ts/surfaces/admin/components/Option.d.ts +1 -1
  27. package/build/ts/surfaces/admin/components/OptionGroup.d.ts +1 -1
  28. package/build/ts/surfaces/admin/components/OrderedList.d.ts +1 -1
  29. package/build/ts/surfaces/admin/components/Page.d.ts +1 -1
  30. package/build/ts/surfaces/admin/components/Paragraph.d.ts +1 -1
  31. package/build/ts/surfaces/admin/components/PasswordField.d.ts +1 -1
  32. package/build/ts/surfaces/admin/components/QueryContainer.d.ts +1 -1
  33. package/build/ts/surfaces/admin/components/SearchField.d.ts +1 -1
  34. package/build/ts/surfaces/admin/components/Section.d.ts +1 -1
  35. package/build/ts/surfaces/admin/components/Select.d.ts +1 -1
  36. package/build/ts/surfaces/admin/components/Spinner.d.ts +1 -1
  37. package/build/ts/surfaces/admin/components/Stack.d.ts +1 -1
  38. package/build/ts/surfaces/admin/components/StandardComponents.d.ts +1 -1
  39. package/build/ts/surfaces/admin/components/StandardComponents.d.ts.map +1 -1
  40. package/build/ts/surfaces/admin/components/Switch.d.ts +1 -1
  41. package/build/ts/surfaces/admin/components/Table.d.ts +1 -1
  42. package/build/ts/surfaces/admin/components/TableBody.d.ts +1 -1
  43. package/build/ts/surfaces/admin/components/TableCell.d.ts +1 -1
  44. package/build/ts/surfaces/admin/components/TableHeader.d.ts +1 -1
  45. package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +1 -1
  46. package/build/ts/surfaces/admin/components/TableRow.d.ts +1 -1
  47. package/build/ts/surfaces/admin/components/Text.d.ts +1 -1
  48. package/build/ts/surfaces/admin/components/TextArea.d.ts +1 -1
  49. package/build/ts/surfaces/admin/components/TextField.d.ts +1 -1
  50. package/build/ts/surfaces/admin/components/Thumbnail.d.ts +133 -0
  51. package/build/ts/surfaces/admin/components/URLField.d.ts +1 -1
  52. package/build/ts/surfaces/admin/components/UnorderedList.d.ts +1 -1
  53. package/build/ts/surfaces/admin/components/shared.d.ts +219 -160
  54. package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.action.render.d.ts +121 -11
  55. package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.block.render.d.ts +121 -11
  56. package/build/ts/surfaces/admin/targets/admin.catalog-details.action.render.d.ts +121 -11
  57. package/build/ts/surfaces/admin/targets/admin.catalog-details.block.render.d.ts +121 -11
  58. package/build/ts/surfaces/admin/targets/admin.collection-details.action.render.d.ts +121 -11
  59. package/build/ts/surfaces/admin/targets/admin.collection-details.block.render.d.ts +121 -11
  60. package/build/ts/surfaces/admin/targets/admin.collection-index.action.render.d.ts +121 -11
  61. package/build/ts/surfaces/admin/targets/admin.company-details.action.render.d.ts +121 -11
  62. package/build/ts/surfaces/admin/targets/admin.company-details.block.render.d.ts +121 -11
  63. package/build/ts/surfaces/admin/targets/admin.company-location-details.block.render.d.ts +121 -11
  64. package/build/ts/surfaces/admin/targets/admin.customer-details.action.render.d.ts +121 -11
  65. package/build/ts/surfaces/admin/targets/admin.customer-details.block.render.d.ts +121 -11
  66. package/build/ts/surfaces/admin/targets/admin.customer-index.action.render.d.ts +121 -11
  67. package/build/ts/surfaces/admin/targets/admin.customer-index.selection-action.render.d.ts +121 -11
  68. package/build/ts/surfaces/admin/targets/admin.customer-segment-details.action.render.d.ts +121 -11
  69. package/build/ts/surfaces/admin/targets/admin.customers.segmentation-templates.render.d.ts +121 -11
  70. package/build/ts/surfaces/admin/targets/admin.discount-details.action.render.d.ts +121 -11
  71. package/build/ts/surfaces/admin/targets/admin.discount-details.function-settings.render.d.ts +121 -11
  72. package/build/ts/surfaces/admin/targets/admin.discount-index.action.render.d.ts +121 -11
  73. package/build/ts/surfaces/admin/targets/admin.draft-order-details.action.render.d.ts +121 -11
  74. package/build/ts/surfaces/admin/targets/admin.draft-order-details.block.render.d.ts +121 -11
  75. package/build/ts/surfaces/admin/targets/admin.draft-order-index.action.render.d.ts +121 -11
  76. package/build/ts/surfaces/admin/targets/admin.draft-order-index.selection-action.render.d.ts +121 -11
  77. package/build/ts/surfaces/admin/targets/admin.gift-card-details.action.render.d.ts +121 -11
  78. package/build/ts/surfaces/admin/targets/admin.gift-card-details.block.render.d.ts +121 -11
  79. package/build/ts/surfaces/admin/targets/admin.order-details.action.render.d.ts +121 -11
  80. package/build/ts/surfaces/admin/targets/admin.order-details.block.render.d.ts +121 -11
  81. package/build/ts/surfaces/admin/targets/admin.order-details.print-action.render.d.ts +121 -11
  82. package/build/ts/surfaces/admin/targets/admin.order-fulfilled-card.action.render.d.ts +121 -11
  83. package/build/ts/surfaces/admin/targets/admin.order-index.action.render.d.ts +121 -11
  84. package/build/ts/surfaces/admin/targets/admin.order-index.selection-action.render.d.ts +121 -11
  85. package/build/ts/surfaces/admin/targets/admin.order-index.selection-print-action.render.d.ts +121 -11
  86. package/build/ts/surfaces/admin/targets/admin.product-details.action.render.d.ts +121 -11
  87. package/build/ts/surfaces/admin/targets/admin.product-details.block.render.d.ts +121 -11
  88. package/build/ts/surfaces/admin/targets/admin.product-details.configuration.render.d.ts +121 -11
  89. package/build/ts/surfaces/admin/targets/admin.product-details.print-action.render.d.ts +121 -11
  90. package/build/ts/surfaces/admin/targets/admin.product-details.reorder.render.d.ts +121 -11
  91. package/build/ts/surfaces/admin/targets/admin.product-index.action.render.d.ts +121 -11
  92. package/build/ts/surfaces/admin/targets/admin.product-index.selection-action.render.d.ts +121 -11
  93. package/build/ts/surfaces/admin/targets/admin.product-index.selection-print-action.render.d.ts +121 -11
  94. package/build/ts/surfaces/admin/targets/admin.product-purchase-option.action.render.d.ts +121 -11
  95. package/build/ts/surfaces/admin/targets/admin.product-variant-details.action.render.d.ts +121 -11
  96. package/build/ts/surfaces/admin/targets/admin.product-variant-details.block.render.d.ts +121 -11
  97. package/build/ts/surfaces/admin/targets/admin.product-variant-details.configuration.render.d.ts +121 -11
  98. package/build/ts/surfaces/admin/targets/admin.product-variant-purchase-option.action.render.d.ts +121 -11
  99. package/build/ts/surfaces/admin/targets/admin.settings.internal-order-routing-rule.render.d.ts +121 -11
  100. package/build/ts/surfaces/admin/targets/admin.settings.order-routing-rule.render.d.ts +121 -11
  101. package/build/ts/surfaces/admin/targets/admin.settings.validation.render.d.ts +121 -11
  102. package/build/ts/surfaces/customer-account/components/Avatar/Avatar.doc.d.ts +4 -0
  103. package/build/ts/surfaces/customer-account/components/Avatar/Avatar.doc.d.ts.map +1 -0
  104. package/build/ts/surfaces/customer-account/components/Avatar.d.ts +66 -0
  105. package/build/ts/surfaces/customer-account/components/StandardComponents.d.ts +1 -1
  106. package/build/ts/surfaces/customer-account/components/StandardComponents.d.ts.map +1 -1
  107. package/build/ts/surfaces/customer-account/targets/customer-account.footer.render-after.d.ts +61 -0
  108. package/build/ts/surfaces/customer-account/targets/customer-account.order-index.block.render.d.ts +61 -0
  109. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.block.render.d.ts +61 -0
  110. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-item.render-after.d.ts +61 -0
  111. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-list.render-after.d.ts +61 -0
  112. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.customer-information.render-after.d.ts +61 -0
  113. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.fulfillment-details.render-after.d.ts +61 -0
  114. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.payment-details.render-after.d.ts +61 -0
  115. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.return-details.render-after.d.ts +61 -0
  116. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.unfulfilled-items.render-after.d.ts +61 -0
  117. package/build/ts/surfaces/customer-account/targets/customer-account.order.action.menu-item.render.d.ts +61 -0
  118. package/build/ts/surfaces/customer-account/targets/customer-account.order.action.render.d.ts +61 -0
  119. package/build/ts/surfaces/customer-account/targets/customer-account.order.page.render.d.ts +61 -0
  120. package/build/ts/surfaces/customer-account/targets/customer-account.page.render.d.ts +61 -0
  121. package/build/ts/surfaces/customer-account/targets/customer-account.profile.addresses.render-after.d.ts +61 -0
  122. package/build/ts/surfaces/customer-account/targets/customer-account.profile.block.render.d.ts +61 -0
  123. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-details.render-after.d.ts +61 -0
  124. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-addresses.render-after.d.ts +61 -0
  125. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-payment.render-after.d.ts +61 -0
  126. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-staff.render-after.d.ts +61 -0
  127. package/build/ts/surfaces/customer-account/targets/customer-account.profile.payment.render-after.d.ts +61 -0
  128. package/build/tsconfig.tsbuildinfo +1 -1
  129. package/package.json +1 -1
  130. package/src/surfaces/admin/components/AdminAction.d.ts +1 -1
  131. package/src/surfaces/admin/components/AdminBlock.d.ts +1 -1
  132. package/src/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
  133. package/src/surfaces/admin/components/Avatar.d.ts +139 -0
  134. package/src/surfaces/admin/components/Badge.d.ts +1 -1
  135. package/src/surfaces/admin/components/Banner.d.ts +1 -1
  136. package/src/surfaces/admin/components/Box.d.ts +1 -1
  137. package/src/surfaces/admin/components/Button.d.ts +1 -1
  138. package/src/surfaces/admin/components/Checkbox.d.ts +1 -1
  139. package/src/surfaces/admin/components/Choice.d.ts +1 -1
  140. package/src/surfaces/admin/components/ChoiceList.d.ts +1 -1
  141. package/src/surfaces/admin/components/Clickable.d.ts +1 -1
  142. package/src/surfaces/admin/components/DatePicker.d.ts +1 -1
  143. package/src/surfaces/admin/components/Divider.d.ts +1 -1
  144. package/src/surfaces/admin/components/EmailField.d.ts +1 -1
  145. package/src/surfaces/admin/components/Form.d.ts +1 -1
  146. package/src/surfaces/admin/components/Grid.d.ts +1 -1
  147. package/src/surfaces/admin/components/GridItem.d.ts +1 -1
  148. package/src/surfaces/admin/components/Heading.d.ts +1 -1
  149. package/src/surfaces/admin/components/Icon.d.ts +1 -1
  150. package/src/surfaces/admin/components/Image.d.ts +1 -1
  151. package/src/surfaces/admin/components/Link.d.ts +1 -1
  152. package/src/surfaces/admin/components/ListItem.d.ts +1 -1
  153. package/src/surfaces/admin/components/MoneyField.d.ts +1 -1
  154. package/src/surfaces/admin/components/NumberField.d.ts +1 -1
  155. package/src/surfaces/admin/components/Option.d.ts +1 -1
  156. package/src/surfaces/admin/components/OptionGroup.d.ts +1 -1
  157. package/src/surfaces/admin/components/OrderedList.d.ts +1 -1
  158. package/src/surfaces/admin/components/Page.d.ts +1 -1
  159. package/src/surfaces/admin/components/Paragraph.d.ts +1 -1
  160. package/src/surfaces/admin/components/PasswordField.d.ts +1 -1
  161. package/src/surfaces/admin/components/QueryContainer.d.ts +1 -1
  162. package/src/surfaces/admin/components/SearchField.d.ts +1 -1
  163. package/src/surfaces/admin/components/Section.d.ts +1 -1
  164. package/src/surfaces/admin/components/Select.d.ts +1 -1
  165. package/src/surfaces/admin/components/Spinner.d.ts +1 -1
  166. package/src/surfaces/admin/components/Stack.d.ts +1 -1
  167. package/src/surfaces/admin/components/StandardComponents.ts +2 -0
  168. package/src/surfaces/admin/components/Switch.d.ts +1 -1
  169. package/src/surfaces/admin/components/Table.d.ts +1 -1
  170. package/src/surfaces/admin/components/TableBody.d.ts +1 -1
  171. package/src/surfaces/admin/components/TableCell.d.ts +1 -1
  172. package/src/surfaces/admin/components/TableHeader.d.ts +1 -1
  173. package/src/surfaces/admin/components/TableHeaderRow.d.ts +1 -1
  174. package/src/surfaces/admin/components/TableRow.d.ts +1 -1
  175. package/src/surfaces/admin/components/Text.d.ts +1 -1
  176. package/src/surfaces/admin/components/TextArea.d.ts +1 -1
  177. package/src/surfaces/admin/components/TextField.d.ts +1 -1
  178. package/src/surfaces/admin/components/Thumbnail.d.ts +133 -0
  179. package/src/surfaces/admin/components/URLField.d.ts +1 -1
  180. package/src/surfaces/admin/components/UnorderedList.d.ts +1 -1
  181. package/src/surfaces/admin/components/shared.d.ts +219 -160
  182. package/src/surfaces/admin/components.d.ts +975 -413
  183. package/src/surfaces/customer-account/components/Avatar/examples/basic-Avatar-js.example.ts +9 -0
  184. package/src/surfaces/customer-account/components/Avatar/examples/basic-Avatar-preact.example.tsx +9 -0
  185. package/src/surfaces/customer-account/components/Avatar.d.ts +66 -0
  186. package/src/surfaces/customer-account/components/StandardComponents.ts +1 -0
  187. package/src/surfaces/customer-account/components.d.ts +67 -0
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.1.0 **/
1
+ /** VERSION: 1.2.0 **/
2
2
 
3
3
  /* eslint-disable @typescript-eslint/ban-types */
4
4
 
@@ -30,6 +30,41 @@ export type SizeKeyword =
30
30
  | 'large-400'
31
31
  | 'large-500';
32
32
  export type ColorKeyword = 'subdued' | 'base' | 'strong';
33
+ interface AvatarProps$1 extends GlobalProps {
34
+ /**
35
+ * Initials to display in the avatar.
36
+ */
37
+ initials?: string;
38
+ /**
39
+ * The URL or path to the image.
40
+ *
41
+ * Initials will be rendered as a fallback if `src` is not provided, fails to load or does not load quickly
42
+ */
43
+ src?: string;
44
+ /**
45
+ * Invoked when load of provided image completes successfully.
46
+ *
47
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onload
48
+ */
49
+ onLoad?: () => void;
50
+ /**
51
+ * Invoked on load error of provided image.
52
+ *
53
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror
54
+ */
55
+ onError?: () => void;
56
+ /**
57
+ * Size of the avatar.
58
+ *
59
+ * @default 'base'
60
+ */
61
+ size?: SizeKeyword;
62
+ /**
63
+ * An alternative text that describes the avatar for the reader
64
+ * to understand what it is about or identify the user the avatar belongs to.
65
+ */
66
+ alt?: string;
67
+ }
33
68
  export type BackgroundColorKeyword = 'transparent' | ColorKeyword;
34
69
  export interface BackgroundProps {
35
70
  /**
@@ -113,6 +148,8 @@ declare const privateIconArray: readonly [
113
148
  'camera',
114
149
  'caret-down',
115
150
  'caret-up',
151
+ 'caret-left',
152
+ 'caret-right',
116
153
  'cart-abandoned',
117
154
  'cart-discount',
118
155
  'cart-down',
@@ -3090,6 +3127,26 @@ interface TextFieldProps$1
3090
3127
  MinMaxLengthProps,
3091
3128
  AutocompleteProps<TextAutocompleteField>,
3092
3129
  FieldDecorationProps {}
3130
+ interface ThumbnailProps$1 extends GlobalProps, BaseImageProps {
3131
+ /**
3132
+ * Invoked when load of provided image completes successfully.
3133
+ *
3134
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onload
3135
+ */
3136
+ onLoad?: () => void;
3137
+ /**
3138
+ * Invoked on load error of provided image.
3139
+ *
3140
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror
3141
+ */
3142
+ onError?: () => void;
3143
+ /**
3144
+ * Adjusts the size the product thumbnail image.
3145
+ *
3146
+ * @default 'base'
3147
+ */
3148
+ size?: SizeKeyword;
3149
+ }
3093
3150
  interface UnorderedListProps$1 extends GlobalProps {}
3094
3151
  interface URLFieldProps$1
3095
3152
  extends GlobalProps,
@@ -3100,6 +3157,165 @@ export type URLAutocompleteField = ExtractStrict<
3100
3157
  AnyAutocompleteField,
3101
3158
  'url' | 'photo' | 'impp' | `${AutocompleteAddressGroup} impp`
3102
3159
  >;
3160
+ //
3161
+ // Preact Virtual DOM
3162
+ // -----------------------------------
3163
+ export interface VNode<P = {}> {
3164
+ type: ComponentType<P> | string;
3165
+ props: P & {
3166
+ children: ComponentChildren$1;
3167
+ };
3168
+ key: Key;
3169
+ /**
3170
+ * ref is not guaranteed by React.ReactElement, for compatibility reasons
3171
+ * with popular react libs we define it as optional too
3172
+ */
3173
+ ref?: Ref<any> | null;
3174
+ /**
3175
+ * The time this `vnode` started rendering. Will only be set when
3176
+ * the devtools are attached.
3177
+ * Default value: `0`
3178
+ */
3179
+ startTime?: number;
3180
+ /**
3181
+ * The time that the rendering of this `vnode` was completed. Will only be
3182
+ * set when the devtools are attached.
3183
+ * Default value: `-1`
3184
+ */
3185
+ endTime?: number;
3186
+ }
3187
+ //
3188
+ // Preact Component interface
3189
+ // -----------------------------------
3190
+ export type Key = string | number | any;
3191
+ export interface RefObject<T> {
3192
+ current: T | null;
3193
+ }
3194
+ export type RefCallback<T> = (instance: T | null) => void;
3195
+ export type Ref<T> = RefObject<T> | RefCallback<T> | null;
3196
+ export type ComponentChild =
3197
+ | VNode<any>
3198
+ | object
3199
+ | string
3200
+ | number
3201
+ | bigint
3202
+ | boolean
3203
+ | null
3204
+ | undefined;
3205
+ type ComponentChildren$1 = ComponentChild[] | ComponentChild;
3206
+ export interface Attributes {
3207
+ key?: Key | undefined;
3208
+ jsx?: boolean | undefined;
3209
+ }
3210
+ export interface ErrorInfo {
3211
+ componentStack?: string;
3212
+ }
3213
+ export type RenderableProps<P, RefType = any> = P &
3214
+ Readonly<
3215
+ Attributes & {
3216
+ children?: ComponentChildren$1;
3217
+ ref?: Ref<RefType>;
3218
+ }
3219
+ >;
3220
+ export type ComponentType<P = {}> = ComponentClass<P> | FunctionComponent<P>;
3221
+ export interface FunctionComponent<P = {}> {
3222
+ (props: RenderableProps<P>, context?: any): ComponentChildren$1;
3223
+ displayName?: string;
3224
+ defaultProps?: Partial<P> | undefined;
3225
+ }
3226
+ export interface ComponentClass<P = {}, S = {}> {
3227
+ new (props: P, context?: any): Component<P, S>;
3228
+ displayName?: string;
3229
+ defaultProps?: Partial<P>;
3230
+ contextType?: Context<any>;
3231
+ getDerivedStateFromProps?(
3232
+ props: Readonly<P>,
3233
+ state: Readonly<S>,
3234
+ ): Partial<S> | null;
3235
+ getDerivedStateFromError?(error: any): Partial<S> | null;
3236
+ }
3237
+ export interface Component<P = {}, S = {}> {
3238
+ componentWillMount?(): void;
3239
+ componentDidMount?(): void;
3240
+ componentWillUnmount?(): void;
3241
+ getChildContext?(): object;
3242
+ componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
3243
+ shouldComponentUpdate?(
3244
+ nextProps: Readonly<P>,
3245
+ nextState: Readonly<S>,
3246
+ nextContext: any,
3247
+ ): boolean;
3248
+ componentWillUpdate?(
3249
+ nextProps: Readonly<P>,
3250
+ nextState: Readonly<S>,
3251
+ nextContext: any,
3252
+ ): void;
3253
+ getSnapshotBeforeUpdate?(oldProps: Readonly<P>, oldState: Readonly<S>): any;
3254
+ componentDidUpdate?(
3255
+ previousProps: Readonly<P>,
3256
+ previousState: Readonly<S>,
3257
+ snapshot: any,
3258
+ ): void;
3259
+ componentDidCatch?(error: any, errorInfo: ErrorInfo): void;
3260
+ }
3261
+ declare abstract class Component<P, S> {
3262
+ constructor(props?: P, context?: any);
3263
+ static displayName?: string;
3264
+ static defaultProps?: any;
3265
+ static contextType?: Context<any>;
3266
+ // Static members cannot reference class type parameters. This is not
3267
+ // supported in TypeScript. Reusing the same type arguments from `Component`
3268
+ // will lead to an impossible state where one cannot satisfy the type
3269
+ // constraint under no circumstances, see #1356.In general type arguments
3270
+ // seem to be a bit buggy and not supported well at the time of this
3271
+ // writing with TS 3.3.3333.
3272
+ static getDerivedStateFromProps?(
3273
+ props: Readonly<object>,
3274
+ state: Readonly<object>,
3275
+ ): object | null;
3276
+
3277
+ static getDerivedStateFromError?(error: any): object | null;
3278
+ state: Readonly<S>;
3279
+ props: RenderableProps<P>;
3280
+ context: any;
3281
+ base?: Element | Text;
3282
+ // From https://github.com/DefinitelyTyped/DefinitelyTyped/blob/e836acc75a78cf0655b5dfdbe81d69fdd4d8a252/types/react/index.d.ts#L402
3283
+ // // We MUST keep setState() as a unified signature because it allows proper checking of the method return type.
3284
+ // // See: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18365#issuecomment-351013257
3285
+ setState<K extends keyof S>(
3286
+ state:
3287
+ | ((
3288
+ prevState: Readonly<S>,
3289
+ props: Readonly<P>,
3290
+ ) => Pick<S, K> | Partial<S> | null)
3291
+ | (Pick<S, K> | Partial<S> | null),
3292
+ callback?: () => void,
3293
+ ): void;
3294
+
3295
+ forceUpdate(callback?: () => void): void;
3296
+ abstract render(
3297
+ props?: RenderableProps<P>,
3298
+ state?: Readonly<S>,
3299
+ context?: any,
3300
+ ): ComponentChildren$1;
3301
+ }
3302
+ //
3303
+ // Context
3304
+ // -----------------------------------
3305
+ export interface Consumer<T>
3306
+ extends FunctionComponent<{
3307
+ children: (value: T) => ComponentChildren$1;
3308
+ }> {}
3309
+ export interface Provider<T>
3310
+ extends FunctionComponent<{
3311
+ value: T;
3312
+ children?: ComponentChildren$1;
3313
+ }> {}
3314
+ export interface Context<T> extends Provider<T> {
3315
+ Consumer: Consumer<T>;
3316
+ Provider: Provider<T>;
3317
+ displayName?: string;
3318
+ }
3103
3319
  type IconType$1 =
3104
3320
  | 'adjust'
3105
3321
  | 'affiliate'
@@ -3151,6 +3367,8 @@ type IconType$1 =
3151
3367
  | 'camera'
3152
3368
  | 'camera-flip'
3153
3369
  | 'caret-down'
3370
+ | 'caret-left'
3371
+ | 'caret-right'
3154
3372
  | 'caret-up'
3155
3373
  | 'cart'
3156
3374
  | 'cart-abandoned'
@@ -3595,165 +3813,6 @@ type IconType$1 =
3595
3813
  | 'wrench'
3596
3814
  | 'x'
3597
3815
  | 'x-circle';
3598
- //
3599
- // Preact Virtual DOM
3600
- // -----------------------------------
3601
- export interface VNode<P = {}> {
3602
- type: ComponentType<P> | string;
3603
- props: P & {
3604
- children: ComponentChildren$1;
3605
- };
3606
- key: Key;
3607
- /**
3608
- * ref is not guaranteed by React.ReactElement, for compatibility reasons
3609
- * with popular react libs we define it as optional too
3610
- */
3611
- ref?: Ref<any> | null;
3612
- /**
3613
- * The time this `vnode` started rendering. Will only be set when
3614
- * the devtools are attached.
3615
- * Default value: `0`
3616
- */
3617
- startTime?: number;
3618
- /**
3619
- * The time that the rendering of this `vnode` was completed. Will only be
3620
- * set when the devtools are attached.
3621
- * Default value: `-1`
3622
- */
3623
- endTime?: number;
3624
- }
3625
- //
3626
- // Preact Component interface
3627
- // -----------------------------------
3628
- export type Key = string | number | any;
3629
- export interface RefObject<T> {
3630
- current: T | null;
3631
- }
3632
- export type RefCallback<T> = (instance: T | null) => void;
3633
- export type Ref<T> = RefObject<T> | RefCallback<T> | null;
3634
- export type ComponentChild =
3635
- | VNode<any>
3636
- | object
3637
- | string
3638
- | number
3639
- | bigint
3640
- | boolean
3641
- | null
3642
- | undefined;
3643
- type ComponentChildren$1 = ComponentChild[] | ComponentChild;
3644
- export interface Attributes {
3645
- key?: Key | undefined;
3646
- jsx?: boolean | undefined;
3647
- }
3648
- export interface ErrorInfo {
3649
- componentStack?: string;
3650
- }
3651
- export type RenderableProps<P, RefType = any> = P &
3652
- Readonly<
3653
- Attributes & {
3654
- children?: ComponentChildren$1;
3655
- ref?: Ref<RefType>;
3656
- }
3657
- >;
3658
- export type ComponentType<P = {}> = ComponentClass<P> | FunctionComponent<P>;
3659
- export interface FunctionComponent<P = {}> {
3660
- (props: RenderableProps<P>, context?: any): ComponentChildren$1;
3661
- displayName?: string;
3662
- defaultProps?: Partial<P> | undefined;
3663
- }
3664
- export interface ComponentClass<P = {}, S = {}> {
3665
- new (props: P, context?: any): Component<P, S>;
3666
- displayName?: string;
3667
- defaultProps?: Partial<P>;
3668
- contextType?: Context<any>;
3669
- getDerivedStateFromProps?(
3670
- props: Readonly<P>,
3671
- state: Readonly<S>,
3672
- ): Partial<S> | null;
3673
- getDerivedStateFromError?(error: any): Partial<S> | null;
3674
- }
3675
- export interface Component<P = {}, S = {}> {
3676
- componentWillMount?(): void;
3677
- componentDidMount?(): void;
3678
- componentWillUnmount?(): void;
3679
- getChildContext?(): object;
3680
- componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
3681
- shouldComponentUpdate?(
3682
- nextProps: Readonly<P>,
3683
- nextState: Readonly<S>,
3684
- nextContext: any,
3685
- ): boolean;
3686
- componentWillUpdate?(
3687
- nextProps: Readonly<P>,
3688
- nextState: Readonly<S>,
3689
- nextContext: any,
3690
- ): void;
3691
- getSnapshotBeforeUpdate?(oldProps: Readonly<P>, oldState: Readonly<S>): any;
3692
- componentDidUpdate?(
3693
- previousProps: Readonly<P>,
3694
- previousState: Readonly<S>,
3695
- snapshot: any,
3696
- ): void;
3697
- componentDidCatch?(error: any, errorInfo: ErrorInfo): void;
3698
- }
3699
- declare abstract class Component<P, S> {
3700
- constructor(props?: P, context?: any);
3701
- static displayName?: string;
3702
- static defaultProps?: any;
3703
- static contextType?: Context<any>;
3704
- // Static members cannot reference class type parameters. This is not
3705
- // supported in TypeScript. Reusing the same type arguments from `Component`
3706
- // will lead to an impossible state where one cannot satisfy the type
3707
- // constraint under no circumstances, see #1356.In general type arguments
3708
- // seem to be a bit buggy and not supported well at the time of this
3709
- // writing with TS 3.3.3333.
3710
- static getDerivedStateFromProps?(
3711
- props: Readonly<object>,
3712
- state: Readonly<object>,
3713
- ): object | null;
3714
-
3715
- static getDerivedStateFromError?(error: any): object | null;
3716
- state: Readonly<S>;
3717
- props: RenderableProps<P>;
3718
- context: any;
3719
- base?: Element | Text;
3720
- // From https://github.com/DefinitelyTyped/DefinitelyTyped/blob/e836acc75a78cf0655b5dfdbe81d69fdd4d8a252/types/react/index.d.ts#L402
3721
- // // We MUST keep setState() as a unified signature because it allows proper checking of the method return type.
3722
- // // See: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18365#issuecomment-351013257
3723
- setState<K extends keyof S>(
3724
- state:
3725
- | ((
3726
- prevState: Readonly<S>,
3727
- props: Readonly<P>,
3728
- ) => Pick<S, K> | Partial<S> | null)
3729
- | (Pick<S, K> | Partial<S> | null),
3730
- callback?: () => void,
3731
- ): void;
3732
-
3733
- forceUpdate(callback?: () => void): void;
3734
- abstract render(
3735
- props?: RenderableProps<P>,
3736
- state?: Readonly<S>,
3737
- context?: any,
3738
- ): ComponentChildren$1;
3739
- }
3740
- //
3741
- // Context
3742
- // -----------------------------------
3743
- export interface Consumer<T>
3744
- extends FunctionComponent<{
3745
- children: (value: T) => ComponentChildren$1;
3746
- }> {}
3747
- export interface Provider<T>
3748
- extends FunctionComponent<{
3749
- value: T;
3750
- children?: ComponentChildren$1;
3751
- }> {}
3752
- export interface Context<T> extends Provider<T> {
3753
- Consumer: Consumer<T>;
3754
- Provider: Provider<T>;
3755
- displayName?: string;
3756
- }
3757
3816
  interface AdminActionProps$1 extends GlobalProps, ActionProps, ActionSlots {
3758
3817
  /**
3759
3818
  * Whether the action is in a loading state, such as initial page load or action opening.