@shopify/ui-extensions 2025.10.0-rc.41 → 2025.10.0-rc.42

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 (72) hide show
  1. package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.d.ts +30 -0
  2. package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.d.ts.map +1 -1
  3. package/build/ts/surfaces/admin/api.d.ts +1 -1
  4. package/build/ts/surfaces/admin/api.d.ts.map +1 -1
  5. package/build/ts/surfaces/admin/components/Table/Table.doc.d.ts.map +1 -1
  6. package/build/ts/surfaces/admin/components/patterns/accountConnection.ab.doc.d.ts +4 -0
  7. package/build/ts/surfaces/admin/components/patterns/accountConnection.ab.doc.d.ts.map +1 -0
  8. package/build/ts/surfaces/admin/components/patterns/indexTable.ab.doc.d.ts.map +1 -1
  9. package/build/ts/surfaces/admin/extension-targets.d.ts +5 -3
  10. package/build/ts/surfaces/admin/extension-targets.d.ts.map +1 -1
  11. package/build/ts/surfaces/admin/targets/admin.customers.segmentation-templates.data.d.ts +6 -0
  12. package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts +2 -2
  13. package/build/ts/surfaces/checkout/components/Form/Form.doc.d.ts.map +1 -1
  14. package/build/ts/surfaces/checkout/components/Form.d.ts +3 -0
  15. package/build/ts/surfaces/customer-account/components/Avatar/Avatar.doc.d.ts.map +1 -1
  16. package/build/ts/surfaces/customer-account/components/Avatar.d.ts +2 -2
  17. package/build/ts/surfaces/customer-account/components/ButtonGroup/ButtonGroup.doc.d.ts.map +1 -1
  18. package/build/ts/surfaces/customer-account/components/ButtonGroup.d.ts +2 -2
  19. package/build/ts/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.doc.d.ts.map +1 -1
  20. package/build/ts/surfaces/customer-account/components/CustomerAccountAction.d.ts +3 -3
  21. package/build/ts/surfaces/customer-account/components/Form.d.ts +3 -0
  22. package/build/ts/surfaces/customer-account/components/ImageGroup/ImageGroup.doc.d.ts.map +1 -1
  23. package/build/ts/surfaces/customer-account/components/Menu/Menu.doc.d.ts.map +1 -1
  24. package/build/ts/surfaces/customer-account/components/Page/Page.doc.d.ts.map +1 -1
  25. package/build/ts/surfaces/customer-account/components/Page.d.ts +3 -3
  26. package/build/ts/surfaces/customer-account/components/Section/Section.doc.d.ts.map +1 -1
  27. package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts +2 -9
  28. package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts.map +1 -1
  29. package/build/ts/surfaces/point-of-sale/components/Badge/Badge.doc.d.ts.map +1 -1
  30. package/build/ts/surfaces/point-of-sale/components/DatePicker/DatePicker.doc.d.ts.map +1 -1
  31. package/build/ts/surfaces/point-of-sale/components/DateSpinner/DateSpinner.doc.d.ts.map +1 -1
  32. package/build/ts/surfaces/point-of-sale/components/Modal.d.ts +1 -2
  33. package/build/tsconfig.tsbuildinfo +1 -1
  34. package/package.json +1 -1
  35. package/src/surfaces/admin/api/customer-segment-template/customer-segment-template.ts +31 -0
  36. package/src/surfaces/admin/api.ts +4 -1
  37. package/src/surfaces/admin/components/patterns/examples/accountConnection.html +16 -0
  38. package/src/surfaces/admin/components.d.ts +366 -451
  39. package/src/surfaces/admin/extension-targets.ts +6 -5
  40. package/src/surfaces/checkout/api/checkout/checkout.ts +2 -2
  41. package/src/surfaces/checkout/components/Form/examples/basic-form.example.html +3 -3
  42. package/src/surfaces/checkout/components/Form.d.ts +3 -0
  43. package/src/surfaces/checkout/components/Image/examples/basic-image.example.html +1 -1
  44. package/src/surfaces/checkout/components/Map/examples/basic-map.example.html +3 -3
  45. package/src/surfaces/checkout/components/ProductThumbnail/examples/basic-product-thumbnail.example.html +1 -4
  46. package/src/surfaces/checkout/components/Progress/examples/basic-progress.example.html +1 -1
  47. package/src/surfaces/checkout/components/Spinner/examples/basic-spinner.example.html +1 -1
  48. package/src/surfaces/checkout/components/TextArea/examples/basic-text-area.example.html +1 -5
  49. package/src/surfaces/customer-account/components/Avatar/examples/basic-Avatar.example.html +4 -0
  50. package/src/surfaces/customer-account/components/Avatar.d.ts +2 -2
  51. package/src/surfaces/customer-account/components/ButtonGroup/examples/basic-ButtonGroup.example.html +11 -0
  52. package/src/surfaces/customer-account/components/ButtonGroup.d.ts +2 -2
  53. package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction.example.html +15 -0
  54. package/src/surfaces/customer-account/components/CustomerAccountAction.d.ts +3 -3
  55. package/src/surfaces/customer-account/components/ImageGroup/examples/basic-ImageGroup.example.html +18 -0
  56. package/src/surfaces/customer-account/components/Menu/examples/basic-Menu.example.html +14 -0
  57. package/src/surfaces/customer-account/components/Page/examples/basic-Page.example.html +19 -0
  58. package/src/surfaces/customer-account/components/Page.d.ts +3 -3
  59. package/src/surfaces/customer-account/components/Section/examples/basic-Section.example.html +12 -0
  60. package/src/surfaces/customer-account/components/Section.d.ts +2 -2
  61. package/src/surfaces/point-of-sale/api/navigation-api/navigation-api.ts +2 -10
  62. package/src/surfaces/point-of-sale/components/Badge/examples/default.html +5 -5
  63. package/src/surfaces/point-of-sale/components/Modal.d.ts +1 -2
  64. package/src/surfaces/point-of-sale/components.d.ts +48 -50
  65. package/build/ts/surfaces/admin/targets/admin.customers.segmentation-templates.render.d.ts +0 -57
  66. package/src/surfaces/customer-account/components/Avatar/examples/basic-Avatar-preact.example.tsx +0 -10
  67. package/src/surfaces/customer-account/components/ButtonGroup/examples/basic-ButtonGroup-preact.example.tsx +0 -22
  68. package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction-preact.example.tsx +0 -17
  69. package/src/surfaces/customer-account/components/ImageGroup/examples/basic-ImageGroup-preact.example.tsx +0 -17
  70. package/src/surfaces/customer-account/components/Menu/examples/basic-Menu-preact.example.tsx +0 -24
  71. package/src/surfaces/customer-account/components/Page/examples/basic-Page-preact.example.tsx +0 -37
  72. package/src/surfaces/customer-account/components/Section/examples/basic-Section-preact.example.tsx +0 -23
@@ -1,7 +1,6 @@
1
1
  import type {RunnableExtension, RenderExtension} from '../../extension';
2
2
 
3
3
  import type {
4
- CustomerSegmentTemplateApi,
5
4
  ActionExtensionApi,
6
5
  BlockExtensionApi,
7
6
  PrintActionExtensionApi,
@@ -11,6 +10,8 @@ import type {
11
10
  ValidationSettingsApi,
12
11
  PurchaseOptionsCardConfigurationApi,
13
12
  DiscountFunctionSettingsApi,
13
+ CustomerSegmentTemplateApi,
14
+ CustomerSegmentTemplate,
14
15
  } from './api';
15
16
  import {
16
17
  ShouldRenderApi,
@@ -23,11 +24,11 @@ import type {PrintActionExtensionComponents} from './components/PrintActionExten
23
24
 
24
25
  export interface ExtensionTargets {
25
26
  /**
26
- * 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).
27
+ * 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).
27
28
  */
28
- 'admin.customers.segmentation-templates.render': RenderExtension<
29
- CustomerSegmentTemplateApi<'admin.customers.segmentation-templates.render'>,
30
- StandardComponents
29
+ 'admin.customers.segmentation-templates.data': RunnableExtension<
30
+ CustomerSegmentTemplateApi<'admin.customers.segmentation-templates.data'>,
31
+ {templates: CustomerSegmentTemplate[]}
31
32
  >;
32
33
 
33
34
  // Blocks
@@ -263,7 +263,7 @@ export interface DiscountCodeAddChange {
263
263
  type: 'addDiscountCode';
264
264
 
265
265
  /**
266
- * The code for the discount (case-sensitive)
266
+ * The code for the discount (case-insensitive)
267
267
  */
268
268
  code: string;
269
269
  }
@@ -275,7 +275,7 @@ export interface DiscountCodeRemoveChange {
275
275
  type: 'removeDiscountCode';
276
276
 
277
277
  /**
278
- * The code for the discount (case-sensitive)
278
+ * The code for the discount (case-insensitive)
279
279
  */
280
280
  code: string;
281
281
  }
@@ -1,4 +1,4 @@
1
- <s-form onSubmit="console.log('Form submitted'); return false;">
1
+ <s-form>
2
2
  <s-text-field label="Email address" />
3
- <s-button accessibilityRole="submit">Submit</s-button>
4
- </s-form>
3
+ <s-button type="submit" variant="primary">Submit</s-button>
4
+ </s-form>
@@ -41,6 +41,9 @@ export interface FormEvents extends Pick<FormProps$1, 'onSubmit'> {
41
41
  onSubmit?: () => void;
42
42
  }
43
43
  export interface FormElementEvents {
44
+ /**
45
+ * A callback that is run when the form is submitted.
46
+ */
44
47
  submit?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
45
48
  }
46
49
  export interface FormElement extends FormElementProps, Omit<HTMLElement, 'id' | 'onsubmit'> {
@@ -1 +1 @@
1
- <s-image src="https://cdn.shopify.com/YOUR_IMAGE_HERE" alt="Product image" />;
1
+ <s-image src="https://cdn.shopify.com/YOUR_IMAGE_HERE" alt="Product image"></s-image>
@@ -1,3 +1,3 @@
1
- <s-map apikey="YOUR_API_KEY" latitude="51.5074" longitude="-0.1278">
2
- <s-map-marker latitude="51.5074" longitude="-0.1278"></s-map-marker>
3
- </s-map>
1
+ <s-map apiKey="YOUR_API_KEY" latitude={51.5074} longitude={-0.1278}>
2
+ <s-map-marker latitude={51.5074} longitude={-0.1278}></s-map-marker>
3
+ </s-map>
@@ -1,4 +1 @@
1
- <s-product-thumbnail
2
- src="https://cdn.shopify.com/YOUR_IMAGE_HERE"
3
- totalItems="1"
4
- ></s-product-thumbnail>
1
+ <s-product-thumbnail src="https://cdn.shopify.com/YOUR_IMAGE_HERE" totalItems={1}></s-product-thumbnail>
@@ -1 +1 @@
1
- <s-progress value="0.5"></s-progress>
1
+ <s-progress value={0.5}></s-progress>
@@ -1 +1 @@
1
- <s-spinner />
1
+ <s-spinner></s-spinner>
@@ -1,5 +1 @@
1
- <s-text-area
2
- label="Gift message"
3
- value="Hope you enjoy this gift!"
4
- rows="3"
5
- ></s-text-area>
1
+ <s-text-area label="Gift message" value="Hope you enjoy this gift!" rows={3}></s-text-area>
@@ -0,0 +1,4 @@
1
+ <s-avatar
2
+ alt="John Doe"
3
+ initials="JD"
4
+ ></s-avatar>
@@ -12,13 +12,13 @@ export type CallbackEventListener<
12
12
  export interface AvatarElementProps extends IdProps {
13
13
  /**
14
14
  * Initials to display in the avatar.
15
+ *
16
+ * Initials will be rendered as a fallback if `src` is not provided, fails to load or does not load quickly.
15
17
  */
16
18
  initials?: string;
17
19
 
18
20
  /**
19
21
  * The URL or path to the image.
20
- *
21
- * Initials will be rendered as a fallback if `src` is not provided, fails to load or does not load quickly.
22
22
  */
23
23
  src?: string;
24
24
 
@@ -0,0 +1,11 @@
1
+ <s-button-group>
2
+ <s-button slot="primary-action" variant="primary">
3
+ Pay now
4
+ </s-button>
5
+ <s-button slot="secondary-actions" variant="secondary">
6
+ Edit order
7
+ </s-button>
8
+ <s-button slot="secondary-actions" variant="secondary">
9
+ Cancel order
10
+ </s-button>
11
+ </s-button-group>
@@ -9,11 +9,11 @@ export interface ButtonGroupProps extends IdProps {
9
9
 
10
10
  export interface ButtonGroupElementSlots {
11
11
  /**
12
- * The primary action to perform, provided as a button type element.
12
+ * The primary action for the group. Accepts a single [Button](/docs/api/checkout-ui-extensions/polaris-web-components/actions/button) element.
13
13
  */
14
14
  'primary-action'?: HTMLElement;
15
15
  /**
16
- * The secondary actions to perform, provided as button type elements.
16
+ * The secondary actions for the group. Accepts multiple [Button](/docs/api/checkout-ui-extensions/polaris-web-components/actions/button) elements.
17
17
  */
18
18
  'secondary-actions'?: HTMLElement;
19
19
  }
@@ -0,0 +1,15 @@
1
+ <s-customer-account-action heading="My order action">
2
+ Modal content
3
+ <s-button
4
+ slot="primary-action"
5
+ onClick={() => console.log('pressed primary action')}
6
+ >
7
+ Primary
8
+ </s-button>
9
+ <s-button
10
+ slot="secondary-actions"
11
+ onClick={() => console.log('pressed secondary action')}
12
+ >
13
+ Secondary
14
+ </s-button>
15
+ </s-customer-account-action>
@@ -2,18 +2,18 @@ import {BaseElementPropsWithChildren, IdProps} from './shared';
2
2
 
3
3
  export interface CustomerAccountActionProps extends IdProps {
4
4
  /**
5
- * Sets the heading of the Action container.
5
+ * Sets the heading of the action container.
6
6
  */
7
7
  heading: string;
8
8
  }
9
9
 
10
10
  export interface CustomerAccountActionElementSlots {
11
11
  /**
12
- * The primary action to perform, provided as a button type element.
12
+ * The primary action for the page. Accepts a single Button element with restricted properties (see below).
13
13
  */
14
14
  'primary-action'?: HTMLElement;
15
15
  /**
16
- * The secondary actions to perform, provided as button type elements.
16
+ * The secondary actions for the page. Accepts multiple Button elements with restricted properties (see below).
17
17
  */
18
18
  'secondary-actions'?: HTMLElement;
19
19
  }
@@ -0,0 +1,18 @@
1
+ <s-image-group>
2
+ <s-image
3
+ src="https://cdn.shopify.com/YOUR_IMAGE_HERE"
4
+ alt="Product image"
5
+ ></s-image>
6
+ <s-image
7
+ src="https://cdn.shopify.com/YOUR_IMAGE_HERE"
8
+ alt="Product image"
9
+ ></s-image>
10
+ <s-image
11
+ src="https://cdn.shopify.com/YOUR_IMAGE_HERE"
12
+ alt="Product image"
13
+ ></s-image>
14
+ <s-image
15
+ src="https://cdn.shopify.com/YOUR_IMAGE_HERE"
16
+ alt="Product image"
17
+ ></s-image>
18
+ </s-image-group>
@@ -0,0 +1,14 @@
1
+ <>
2
+ <s-button commandFor="order-actions-menu">
3
+ Manage
4
+ </s-button>
5
+
6
+ <s-menu
7
+ id="order-actions-menu"
8
+ accessibilityLabel="List of order actions"
9
+ >
10
+ <s-button>Submit problem</s-button>
11
+ <s-button>Request return</s-button>
12
+ <s-button tone="critical">Cancel order</s-button>
13
+ </s-menu>
14
+ </>
@@ -0,0 +1,19 @@
1
+ <s-page
2
+ heading="Order #1411"
3
+ subheading="Confirmed Oct 5"
4
+ >
5
+ <s-button slot="primary-action">
6
+ Buy again
7
+ </s-button>
8
+ <s-button slot="secondary-actions">
9
+ Edit order
10
+ </s-button>
11
+ <s-button slot="secondary-actions">
12
+ Cancel order
13
+ </s-button>
14
+ <s-button
15
+ slot="breadcrumb-actions"
16
+ accessibilityLabel="Back to orders"
17
+ ></s-button>
18
+ Content
19
+ </s-page>
@@ -14,15 +14,15 @@ export interface PageProps extends IdProps {
14
14
 
15
15
  export interface PageElementSlots {
16
16
  /**
17
- * The breadcrumb actions to perform, provided as button type elements.
17
+ * The breadcrumb actions for the page. Accepts a single Button element with restricted properties (see below).
18
18
  */
19
19
  'breadcrumb-actions'?: HTMLElement;
20
20
  /**
21
- * The primary action to perform, provided as a button type element.
21
+ * The primary action for the page. Accepts a single Button element with restricted properties (see below).
22
22
  */
23
23
  'primary-action'?: HTMLElement;
24
24
  /**
25
- * The secondary actions to perform, provided as button type elements.
25
+ * The secondary actions for the page. Accepts multiple Button elements with restricted properties (see below).
26
26
  */
27
27
  'secondary-actions'?: HTMLElement;
28
28
  }
@@ -0,0 +1,12 @@
1
+ <s-section heading="Rewards">
2
+ <s-button slot="primary-action" variant="primary">
3
+ Redeem
4
+ </s-button>
5
+ <s-button slot="secondary-actions" variant="secondary">
6
+ My rewards
7
+ </s-button>
8
+ <s-paragraph>
9
+ Earn 10 points for every $1 spent. Redeem 100 points for $10 off your
10
+ next purchase.
11
+ </s-paragraph>
12
+ </s-section>
@@ -18,11 +18,11 @@ export interface SectionProps extends IdProps {
18
18
 
19
19
  export interface SectionElementSlots {
20
20
  /**
21
- * The primary action to perform, provided as a button type element.
21
+ * The primary action for the section. Accepts a single [Button](/docs/api/checkout-ui-extensions/polaris-web-components/actions/button) element.
22
22
  */
23
23
  'primary-action'?: HTMLElement;
24
24
  /**
25
- * The secondary actions to perform, provided as button type elements.
25
+ * The secondary actions for the section. Accepts multiple [Button](/docs/api/checkout-ui-extensions/polaris-web-components/actions/button) elements.
26
26
  */
27
27
  'secondary-actions'?: HTMLElement;
28
28
  }
@@ -12,7 +12,7 @@ export interface NavigationHistoryEntry {
12
12
  /** Returns the key of the history entry. This is a unique, UA-generated value that represents the history entry's slot in the entries list rather than the entry itself. */
13
13
  key: string;
14
14
  /**
15
- * Returns the URL of this history entry.
15
+ * Returns the lowercased URL of this history entry.
16
16
  */
17
17
  url: string | null;
18
18
  /**
@@ -35,7 +35,7 @@ export interface Navigation {
35
35
  /**
36
36
  * The navigate() method navigates to a specific URL, updating any provided state in the history entries list.
37
37
  */
38
- navigate: NavigateFunction;
38
+ navigate: (url: string, options?: NavigationNavigateOptions) => void;
39
39
  /**
40
40
  * The currentEntry read-only property of the Navigation interface returns a NavigationHistoryEntry object representing the location the user is currently navigated to right now.
41
41
  */
@@ -53,11 +53,3 @@ export interface Navigation {
53
53
  cb: (event: NavigationCurrentEntryChangeEvent) => void,
54
54
  ): void;
55
55
  }
56
-
57
- export interface NavigateFunction {
58
- /**
59
- * Navigates to a specific URL, updating any provided state in the history entries list.
60
- * @param url The destination URL to navigate to.
61
- */
62
- (url: string, options?: NavigationNavigateOptions): void;
63
- }
@@ -1,5 +1,5 @@
1
- <s-badge tone="neutral">Neutral</s-badge>
2
- <s-badge tone="success">Success</s-badge>
3
- <s-badge tone="info">Highlight</s-badge>
4
- <s-badge tone="warning">Warning</s-badge>
5
- <s-badge tone="critical">Critical</s-badge>
1
+ <s-badge tone="neutral">Paid</s-badge>
2
+ <s-badge tone="success">Active</s-badge>
3
+ <s-badge tone="info">Draft</s-badge>
4
+ <s-badge tone="warning">On hold</s-badge>
5
+ <s-badge tone="critical">Action required</s-badge>
@@ -14,7 +14,6 @@ import type {
14
14
  Ref,
15
15
  ComponentChild,
16
16
  } from './components-shared.d.ts';
17
- import {ReactNode} from 'react';
18
17
 
19
18
  export type ComponentChildren = any;
20
19
  /**
@@ -48,7 +47,7 @@ export interface ModalJSXProps extends Pick<ModalProps, 'id' | 'heading'> {
48
47
  secondaryActions?: ComponentChild;
49
48
  onHide?: (event: CallbackEvent<typeof tagName>) => void | null;
50
49
  onShow?: (event: CallbackEvent<typeof tagName>) => void | null;
51
- children?: ReactNode;
50
+ children?: ComponentChildren;
52
51
  }
53
52
  declare global {
54
53
  interface HTMLElementTagNameMap {
@@ -3110,8 +3110,6 @@ export interface Context<T> extends Provider<T> {
3110
3110
  displayName?: string;
3111
3111
  }
3112
3112
 
3113
- import {ReactNode} from 'react';
3114
-
3115
3113
  type ComponentChildren = any;
3116
3114
  /**
3117
3115
  * Used when an element does not have children.
@@ -3838,7 +3836,7 @@ interface ModalJSXProps extends Pick<ModalProps, 'id' | 'heading'> {
3838
3836
  secondaryActions?: ComponentChild;
3839
3837
  onHide?: (event: CallbackEvent<typeof tagName$i>) => void | null;
3840
3838
  onShow?: (event: CallbackEvent<typeof tagName$i>) => void | null;
3841
- children?: ReactNode;
3839
+ children?: ComponentChildren;
3842
3840
  }
3843
3841
  declare global {
3844
3842
  interface HTMLElementTagNameMap {
@@ -4554,7 +4552,7 @@ interface Box {
4554
4552
  }
4555
4553
 
4556
4554
  interface ButtonEvents {
4557
- click?: (event: CallbackEvent<typeof tagName>) => void;
4555
+ click?: (event: CallbackEvent<typeof tagName$t>) => void;
4558
4556
  }
4559
4557
 
4560
4558
  interface Button {
@@ -4618,8 +4616,8 @@ interface Choice {
4618
4616
  }
4619
4617
 
4620
4618
  interface ChoiceListEvents {
4621
- change?: (event: CallbackEvent<typeof tagName>) => void;
4622
- input?: (event: CallbackEvent<typeof tagName>) => void;
4619
+ change?: (event: CallbackEvent<typeof tagName$k>) => void;
4620
+ input?: (event: CallbackEvent<typeof tagName$k>) => void;
4623
4621
  }
4624
4622
 
4625
4623
  interface ChoiceList {
@@ -4637,7 +4635,7 @@ interface ChoiceList {
4637
4635
  }
4638
4636
 
4639
4637
  interface ClickableEvents {
4640
- click?: (event: CallbackEvent<typeof tagName>) => void;
4638
+ click?: (event: CallbackEvent<typeof tagName$e>) => void;
4641
4639
  }
4642
4640
 
4643
4641
  interface Clickable {
@@ -4656,10 +4654,10 @@ interface Clickable {
4656
4654
  }
4657
4655
 
4658
4656
  interface DateFieldEvents {
4659
- input?: (event: CallbackEvent<typeof tagName>) => void;
4660
- focus?: (event: CallbackEvent<typeof tagName>) => void;
4661
- blur?: (event: CallbackEvent<typeof tagName>) => void;
4662
- change?: (event: CallbackEvent<typeof tagName>) => void;
4657
+ input?: (event: CallbackEvent<typeof tagName$b>) => void;
4658
+ focus?: (event: CallbackEvent<typeof tagName$b>) => void;
4659
+ blur?: (event: CallbackEvent<typeof tagName$b>) => void;
4660
+ change?: (event: CallbackEvent<typeof tagName$b>) => void;
4663
4661
  }
4664
4662
 
4665
4663
  interface DateFieldSlots {
@@ -4692,10 +4690,10 @@ interface DateField {
4692
4690
  }
4693
4691
 
4694
4692
  interface DatePickerEvents {
4695
- blur?: (event: CallbackEvent<typeof tagName>) => void | null;
4696
- focus?: (event: CallbackEvent<typeof tagName>) => void | null;
4697
- change?: (event: CallbackEvent<typeof tagName>) => void | null;
4698
- input?: (event: CallbackEvent<typeof tagName>) => void | null;
4693
+ blur?: (event: CallbackEvent<typeof tagName$a>) => void | null;
4694
+ focus?: (event: CallbackEvent<typeof tagName$a>) => void | null;
4695
+ change?: (event: CallbackEvent<typeof tagName$a>) => void | null;
4696
+ input?: (event: CallbackEvent<typeof tagName$a>) => void | null;
4699
4697
  }
4700
4698
 
4701
4699
  interface DatePicker {
@@ -4719,10 +4717,10 @@ interface DatePicker {
4719
4717
  }
4720
4718
 
4721
4719
  interface DateSpinnerEvents {
4722
- blur?: (event: CallbackEvent<typeof tagName>) => void | null;
4723
- focus?: (event: CallbackEvent<typeof tagName>) => void | null;
4724
- change?: (event: CallbackEvent<typeof tagName>) => void | null;
4725
- input?: (event: CallbackEvent<typeof tagName>) => void | null;
4720
+ blur?: (event: CallbackEvent<typeof tagName$9>) => void | null;
4721
+ focus?: (event: CallbackEvent<typeof tagName$9>) => void | null;
4722
+ change?: (event: CallbackEvent<typeof tagName$9>) => void | null;
4723
+ input?: (event: CallbackEvent<typeof tagName$9>) => void | null;
4726
4724
  }
4727
4725
 
4728
4726
  interface DateSpinner {
@@ -4746,10 +4744,10 @@ interface Divider {
4746
4744
  }
4747
4745
 
4748
4746
  interface EmailFieldEvents {
4749
- input?: (event: CallbackEvent<typeof tagName>) => void;
4750
- focus?: (event: CallbackEvent<typeof tagName>) => void;
4751
- blur?: (event: CallbackEvent<typeof tagName>) => void;
4752
- change?: (event: CallbackEvent<typeof tagName>) => void;
4747
+ input?: (event: CallbackEvent<typeof tagName$f>) => void;
4748
+ focus?: (event: CallbackEvent<typeof tagName$f>) => void;
4749
+ blur?: (event: CallbackEvent<typeof tagName$f>) => void;
4750
+ change?: (event: CallbackEvent<typeof tagName$f>) => void;
4753
4751
  }
4754
4752
 
4755
4753
  interface EmailFieldSlots {
@@ -4852,8 +4850,8 @@ interface Image {
4852
4850
  }
4853
4851
 
4854
4852
  interface ModalEvents {
4855
- hide?: (event: CallbackEvent<typeof tagName>) => void | null;
4856
- show?: (event: CallbackEvent<typeof tagName>) => void | null;
4853
+ hide?: (event: CallbackEvent<typeof tagName$i>) => void | null;
4854
+ show?: (event: CallbackEvent<typeof tagName$i>) => void | null;
4857
4855
  }
4858
4856
 
4859
4857
  interface ModalSlots {
@@ -4869,10 +4867,10 @@ interface Modal {
4869
4867
  }
4870
4868
 
4871
4869
  interface NumberFieldEvents {
4872
- input?: (event: CallbackEvent<typeof tagName>) => void;
4873
- focus?: (event: CallbackEvent<typeof tagName>) => void;
4874
- blur?: (event: CallbackEvent<typeof tagName>) => void;
4875
- change?: (event: CallbackEvent<typeof tagName>) => void;
4870
+ input?: (event: CallbackEvent<typeof tagName$c>) => void;
4871
+ focus?: (event: CallbackEvent<typeof tagName$c>) => void;
4872
+ blur?: (event: CallbackEvent<typeof tagName$c>) => void;
4873
+ change?: (event: CallbackEvent<typeof tagName$c>) => void;
4876
4874
  }
4877
4875
 
4878
4876
  interface NumberFieldSlots {
@@ -5110,10 +5108,10 @@ interface ScrollBox {
5110
5108
  }
5111
5109
 
5112
5110
  interface SearchFieldEvents {
5113
- focus?: (event: CallbackEvent<typeof tagName>) => void;
5114
- blur?: (event: CallbackEvent<typeof tagName>) => void;
5115
- input?: (event: CallbackEvent<typeof tagName>) => void;
5116
- change?: (event: CallbackEvent<typeof tagName>) => void;
5111
+ focus?: (event: CallbackEvent<typeof tagName$g>) => void;
5112
+ blur?: (event: CallbackEvent<typeof tagName$g>) => void;
5113
+ input?: (event: CallbackEvent<typeof tagName$g>) => void;
5114
+ change?: (event: CallbackEvent<typeof tagName$g>) => void;
5117
5115
  }
5118
5116
 
5119
5117
  interface SearchField {
@@ -5312,10 +5310,10 @@ interface Text {
5312
5310
  }
5313
5311
 
5314
5312
  interface TextAreaEvents {
5315
- input?: (event: CallbackEvent<typeof tagName>) => void;
5316
- focus?: (event: CallbackEvent<typeof tagName>) => void;
5317
- blur?: (event: CallbackEvent<typeof tagName>) => void;
5318
- change?: (event: CallbackEvent<typeof tagName>) => void;
5313
+ input?: (event: CallbackEvent<typeof tagName$d>) => void;
5314
+ focus?: (event: CallbackEvent<typeof tagName$d>) => void;
5315
+ blur?: (event: CallbackEvent<typeof tagName$d>) => void;
5316
+ change?: (event: CallbackEvent<typeof tagName$d>) => void;
5319
5317
  }
5320
5318
 
5321
5319
  interface TextAreaSlots {
@@ -5368,10 +5366,10 @@ interface TextArea {
5368
5366
  }
5369
5367
 
5370
5368
  interface TextFieldEvents {
5371
- input?: (event: CallbackEvent<typeof tagName>) => void;
5372
- focus?: (event: CallbackEvent<typeof tagName>) => void;
5373
- blur?: (event: CallbackEvent<typeof tagName>) => void;
5374
- change?: (event: CallbackEvent<typeof tagName>) => void;
5369
+ input?: (event: CallbackEvent<typeof tagName$h>) => void;
5370
+ focus?: (event: CallbackEvent<typeof tagName$h>) => void;
5371
+ blur?: (event: CallbackEvent<typeof tagName$h>) => void;
5372
+ change?: (event: CallbackEvent<typeof tagName$h>) => void;
5375
5373
  }
5376
5374
 
5377
5375
  interface TextFieldSlots {
@@ -5419,7 +5417,7 @@ interface TextField {
5419
5417
  }
5420
5418
 
5421
5419
  interface TileEvents {
5422
- click?: (event: CallbackEvent<typeof tagName>) => void;
5420
+ click?: (event: CallbackEvent<typeof tagName$q>) => void;
5423
5421
  }
5424
5422
 
5425
5423
  interface Tile {
@@ -5455,10 +5453,10 @@ interface Tile {
5455
5453
  }
5456
5454
 
5457
5455
  interface TimeFieldEvents {
5458
- blur?: (event: CallbackEvent<typeof tagName>) => void | null;
5459
- focus?: (event: CallbackEvent<typeof tagName>) => void | null;
5460
- input?: (event: CallbackEvent<typeof tagName>) => void | null;
5461
- change?: (event: CallbackEvent<typeof tagName>) => void | null;
5456
+ blur?: (event: CallbackEvent<typeof tagName$3>) => void | null;
5457
+ focus?: (event: CallbackEvent<typeof tagName$3>) => void | null;
5458
+ input?: (event: CallbackEvent<typeof tagName$3>) => void | null;
5459
+ change?: (event: CallbackEvent<typeof tagName$3>) => void | null;
5462
5460
  }
5463
5461
 
5464
5462
  interface TimeField {
@@ -5502,10 +5500,10 @@ interface TimeField {
5502
5500
  }
5503
5501
 
5504
5502
  interface TimePickerEvents {
5505
- blur?: (event: CallbackEvent<typeof tagName>) => void | null;
5506
- focus?: (event: CallbackEvent<typeof tagName>) => void | null;
5507
- change?: (event: CallbackEvent<typeof tagName>) => void | null;
5508
- input?: (event: CallbackEvent<typeof tagName>) => void | null;
5503
+ blur?: (event: CallbackEvent<typeof tagName$6>) => void | null;
5504
+ focus?: (event: CallbackEvent<typeof tagName$6>) => void | null;
5505
+ change?: (event: CallbackEvent<typeof tagName$6>) => void | null;
5506
+ input?: (event: CallbackEvent<typeof tagName$6>) => void | null;
5509
5507
  }
5510
5508
 
5511
5509
  interface TimePicker {
@@ -1,57 +0,0 @@
1
- import "../components/Avatar.d.ts";
2
- import "../components/Badge.d.ts";
3
- import "../components/Banner.d.ts";
4
- import "../components/Box.d.ts";
5
- import "../components/Button.d.ts";
6
- import "../components/ButtonGroup.d.ts";
7
- import "../components/Checkbox.d.ts";
8
- import "../components/Chip.d.ts";
9
- import "../components/Choice.d.ts";
10
- import "../components/ChoiceList.d.ts";
11
- import "../components/Clickable.d.ts";
12
- import "../components/ClickableChip.d.ts";
13
- import "../components/ColorField.d.ts";
14
- import "../components/ColorPicker.d.ts";
15
- import "../components/DateField.d.ts";
16
- import "../components/DatePicker.d.ts";
17
- import "../components/Divider.d.ts";
18
- import "../components/EmailField.d.ts";
19
- import "../components/Grid.d.ts";
20
- import "../components/GridItem.d.ts";
21
- import "../components/Heading.d.ts";
22
- import "../components/Icon.d.ts";
23
- import "../components/Image.d.ts";
24
- import "../components/Link.d.ts";
25
- import "../components/ListItem.d.ts";
26
- import "../components/Menu.d.ts";
27
- import "../components/MoneyField.d.ts";
28
- import "../components/NumberField.d.ts";
29
- import "../components/Option.d.ts";
30
- import "../components/OptionGroup.d.ts";
31
- import "../components/OrderedList.d.ts";
32
- import "../components/Paragraph.d.ts";
33
- import "../components/PasswordField.d.ts";
34
- import "../components/QueryContainer.d.ts";
35
- import "../components/Section.d.ts";
36
- import "../components/Select.d.ts";
37
- import "../components/Spinner.d.ts";
38
- import "../components/Stack.d.ts";
39
- import "../components/Table.d.ts";
40
- import "../components/TableBody.d.ts";
41
- import "../components/TableCell.d.ts";
42
- import "../components/TableHeader.d.ts";
43
- import "../components/TableHeaderRow.d.ts";
44
- import "../components/TableRow.d.ts";
45
- import "../components/Text.d.ts";
46
- import "../components/TextArea.d.ts";
47
- import "../components/TextField.d.ts";
48
- import "../components/Thumbnail.d.ts";
49
- import "../components/Tooltip.d.ts";
50
- import "../components/UnorderedList.d.ts";
51
- import "../components/URLField.d.ts";
52
- import type { ExtensionTargets } from '../extension-targets';
53
-
54
- type Target = ExtensionTargets['admin.customers.segmentation-templates.render'];
55
- export type Api = Target['api'];
56
- export type Output = Target['output'];
57
-
@@ -1,10 +0,0 @@
1
- import '@shopify/ui-extensions/preact';
2
- import {render} from 'preact';
3
-
4
- export default async () => {
5
- render(<Extension />, document.body);
6
- };
7
-
8
- function Extension() {
9
- return <s-avatar initials="EW" alt="Evan White" size="base" />;
10
- }