@shopify/ui-extensions 2025.10.0-rc.43 → 2025.10.0-rc.44

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 (109) hide show
  1. package/build/ts/surfaces/admin/components/Avatar.d.ts +1 -0
  2. package/build/ts/surfaces/admin/components/Badge.d.ts +7 -1
  3. package/build/ts/surfaces/admin/components/Banner.d.ts +7 -1
  4. package/build/ts/surfaces/admin/components/Box.d.ts +70 -7
  5. package/build/ts/surfaces/admin/components/Button.d.ts +7 -1
  6. package/build/ts/surfaces/admin/components/ButtonGroup.d.ts +11 -1
  7. package/build/ts/surfaces/admin/components/Checkbox.d.ts +1 -0
  8. package/build/ts/surfaces/admin/components/Chip.d.ts +7 -1
  9. package/build/ts/surfaces/admin/components/Choice.d.ts +8 -1
  10. package/build/ts/surfaces/admin/components/ChoiceList.d.ts +8 -1
  11. package/build/ts/surfaces/admin/components/Clickable.d.ts +71 -7
  12. package/build/ts/surfaces/admin/components/ClickableChip.d.ts +7 -1
  13. package/build/ts/surfaces/admin/components/ColorField.d.ts +1 -0
  14. package/build/ts/surfaces/admin/components/DatePicker.d.ts +1 -0
  15. package/build/ts/surfaces/admin/components/Divider.d.ts +1 -0
  16. package/build/ts/surfaces/admin/components/EmailField.d.ts +1 -0
  17. package/build/ts/surfaces/admin/components/Grid.d.ts +123 -10
  18. package/build/ts/surfaces/admin/components/GridItem.d.ts +71 -7
  19. package/build/ts/surfaces/admin/components/Heading.d.ts +7 -1
  20. package/build/ts/surfaces/admin/components/Icon.d.ts +1 -0
  21. package/build/ts/surfaces/admin/components/Image.d.ts +64 -6
  22. package/build/ts/surfaces/admin/components/Link.d.ts +7 -1
  23. package/build/ts/surfaces/admin/components/ListItem.d.ts +8 -1
  24. package/build/ts/surfaces/admin/components/Modal.d.ts +1 -1
  25. package/build/ts/surfaces/admin/components/MoneyField.d.ts +1 -0
  26. package/build/ts/surfaces/admin/components/NumberField.d.ts +1 -0
  27. package/build/ts/surfaces/admin/components/Option.d.ts +7 -1
  28. package/build/ts/surfaces/admin/components/OptionGroup.d.ts +8 -1
  29. package/build/ts/surfaces/admin/components/OrderedList.d.ts +8 -1
  30. package/build/ts/surfaces/admin/components/Page.d.ts +11 -1
  31. package/build/ts/surfaces/admin/components/Paragraph.d.ts +8 -1
  32. package/build/ts/surfaces/admin/components/PasswordField.d.ts +1 -0
  33. package/build/ts/surfaces/admin/components/SearchField.d.ts +1 -0
  34. package/build/ts/surfaces/admin/components/Section.d.ts +7 -1
  35. package/build/ts/surfaces/admin/components/Select.d.ts +7 -1
  36. package/build/ts/surfaces/admin/components/Spinner.d.ts +1 -0
  37. package/build/ts/surfaces/admin/components/Stack.d.ts +87 -7
  38. package/build/ts/surfaces/admin/components/Switch.d.ts +1 -0
  39. package/build/ts/surfaces/admin/components/Table.d.ts +8 -1
  40. package/build/ts/surfaces/admin/components/TableBody.d.ts +8 -1
  41. package/build/ts/surfaces/admin/components/TableCell.d.ts +8 -1
  42. package/build/ts/surfaces/admin/components/TableHeader.d.ts +8 -1
  43. package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +7 -1
  44. package/build/ts/surfaces/admin/components/TableRow.d.ts +8 -1
  45. package/build/ts/surfaces/admin/components/Text.d.ts +7 -1
  46. package/build/ts/surfaces/admin/components/TextArea.d.ts +1 -0
  47. package/build/ts/surfaces/admin/components/TextField.d.ts +1 -0
  48. package/build/ts/surfaces/admin/components/Thumbnail.d.ts +1 -0
  49. package/build/ts/surfaces/admin/components/Tooltip.d.ts +7 -1
  50. package/build/ts/surfaces/admin/components/URLField.d.ts +1 -0
  51. package/build/ts/surfaces/admin/components/UnorderedList.d.ts +8 -1
  52. package/build/ts/surfaces/admin/components/shared.d.ts +7 -24
  53. package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts +1 -1
  54. package/build/tsconfig.tsbuildinfo +1 -1
  55. package/package.json +1 -1
  56. package/src/surfaces/admin/components/Avatar.d.ts +1 -0
  57. package/src/surfaces/admin/components/Badge.d.ts +7 -1
  58. package/src/surfaces/admin/components/Banner.d.ts +7 -1
  59. package/src/surfaces/admin/components/Box.d.ts +70 -7
  60. package/src/surfaces/admin/components/Button.d.ts +7 -1
  61. package/src/surfaces/admin/components/ButtonGroup.d.ts +11 -1
  62. package/src/surfaces/admin/components/Checkbox.d.ts +1 -0
  63. package/src/surfaces/admin/components/Chip.d.ts +7 -1
  64. package/src/surfaces/admin/components/Choice.d.ts +8 -1
  65. package/src/surfaces/admin/components/ChoiceList.d.ts +8 -1
  66. package/src/surfaces/admin/components/Clickable.d.ts +71 -7
  67. package/src/surfaces/admin/components/ClickableChip.d.ts +7 -1
  68. package/src/surfaces/admin/components/ColorField.d.ts +1 -0
  69. package/src/surfaces/admin/components/DatePicker.d.ts +1 -0
  70. package/src/surfaces/admin/components/Divider.d.ts +1 -0
  71. package/src/surfaces/admin/components/EmailField.d.ts +1 -0
  72. package/src/surfaces/admin/components/Grid.d.ts +123 -10
  73. package/src/surfaces/admin/components/GridItem.d.ts +71 -7
  74. package/src/surfaces/admin/components/Heading.d.ts +7 -1
  75. package/src/surfaces/admin/components/Icon.d.ts +1 -0
  76. package/src/surfaces/admin/components/Image.d.ts +64 -6
  77. package/src/surfaces/admin/components/Link.d.ts +7 -1
  78. package/src/surfaces/admin/components/ListItem.d.ts +8 -1
  79. package/src/surfaces/admin/components/Modal.d.ts +1 -1
  80. package/src/surfaces/admin/components/MoneyField.d.ts +1 -0
  81. package/src/surfaces/admin/components/NumberField.d.ts +1 -0
  82. package/src/surfaces/admin/components/Option.d.ts +7 -1
  83. package/src/surfaces/admin/components/OptionGroup.d.ts +8 -1
  84. package/src/surfaces/admin/components/OrderedList.d.ts +8 -1
  85. package/src/surfaces/admin/components/Page.d.ts +11 -1
  86. package/src/surfaces/admin/components/Paragraph.d.ts +8 -1
  87. package/src/surfaces/admin/components/PasswordField.d.ts +1 -0
  88. package/src/surfaces/admin/components/SearchField.d.ts +1 -0
  89. package/src/surfaces/admin/components/Section.d.ts +7 -1
  90. package/src/surfaces/admin/components/Select.d.ts +7 -1
  91. package/src/surfaces/admin/components/Spinner.d.ts +1 -0
  92. package/src/surfaces/admin/components/Stack.d.ts +87 -7
  93. package/src/surfaces/admin/components/Switch.d.ts +1 -0
  94. package/src/surfaces/admin/components/Table.d.ts +8 -1
  95. package/src/surfaces/admin/components/TableBody.d.ts +8 -1
  96. package/src/surfaces/admin/components/TableCell.d.ts +8 -1
  97. package/src/surfaces/admin/components/TableHeader.d.ts +8 -1
  98. package/src/surfaces/admin/components/TableHeaderRow.d.ts +7 -1
  99. package/src/surfaces/admin/components/TableRow.d.ts +8 -1
  100. package/src/surfaces/admin/components/Text.d.ts +7 -1
  101. package/src/surfaces/admin/components/TextArea.d.ts +1 -0
  102. package/src/surfaces/admin/components/TextField.d.ts +1 -0
  103. package/src/surfaces/admin/components/Thumbnail.d.ts +1 -0
  104. package/src/surfaces/admin/components/Tooltip.d.ts +7 -1
  105. package/src/surfaces/admin/components/URLField.d.ts +1 -0
  106. package/src/surfaces/admin/components/UnorderedList.d.ts +8 -1
  107. package/src/surfaces/admin/components/shared.d.ts +7 -24
  108. package/src/surfaces/admin/components.d.ts +323 -146
  109. package/src/surfaces/point-of-sale/api/navigation-api/navigation-api.ts +1 -1
@@ -8,7 +8,7 @@
8
8
  * TODO: Update `any` type here after this is resolved
9
9
  * https://github.com/Shopify/ui-api-design/issues/139
10
10
  */
11
- export type ComponentChildren = any;
11
+ export type ComponentChildren = preact.ComponentChildren;
12
12
  export type StringChildren = string;
13
13
  export interface GlobalProps {
14
14
  /**
@@ -167,7 +167,7 @@ export interface ExtendableEvent extends Event {
167
167
  interface AggregateError$1<T extends Error> extends Error {
168
168
  errors: T[];
169
169
  }
170
- export interface AggregateErrorEvent<T extends Error> extends ErrorEvent {
170
+ export interface ArgregatedErrorEvent<T extends Error> extends ErrorEvent {
171
171
  error: AggregateError$1<T>;
172
172
  }
173
173
  export type SizeKeyword =
@@ -2098,7 +2098,7 @@ interface ColorPickerProps$1 extends GlobalProps, InputProps {
2098
2098
  * For RGB and RGBA, both the legacy syntax (comma-separated) and modern syntax (space-separate) are supported.
2099
2099
  * @see https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/rgb
2100
2100
  *
2101
- * If the value is invalid, the component will return an empty string ''.
2101
+ * If the value is invalid, the component will select rgb(0, 0, 0).
2102
2102
  *
2103
2103
  * Note that the `onChange` handler will emit the value in hex.
2104
2104
  */
@@ -2405,19 +2405,12 @@ interface DatePickerProps$1 extends GlobalProps, InputProps, FocusEventProps {
2405
2405
  */
2406
2406
  value?: string;
2407
2407
  /**
2408
- * Callback when any date is selected.
2409
- *
2410
- * - If `type="single"`, fires when a date is selected and happens before `onChange`.
2411
- * - If `type="multiple"`, fires when a date is selected before `onChange`.
2412
- * - If `type="range"`, fires when a first date is selected (with the partial value formatted as `YYYY-MM-DD--`), and when the last date is selected before `onChange`.
2408
+ * Callback when any date is selected. Will fire before `onChange`.
2413
2409
  */
2414
2410
  onInput?: (event: Event) => void;
2415
2411
  /**
2416
- * Callback when the value is committed.
2417
- *
2418
- * - If `type="single"`, fires when a date is selected after `onInput`.
2419
- * - If `type="multiple"`, fires when a date is selected after `onInput`.
2420
- * - If `type="range"`, fires when a range is completed by selecting the end date after `onInput`.
2412
+ * Callback when the `value` is changed. For `type="single"` and `type="multiple"`, this is the same as `onInput`.
2413
+ * For `type="range"`, this is only called when the range is completed by selecting the end date of the range.
2421
2414
  */
2422
2415
  onChange?: (event: Event) => void;
2423
2416
  }
@@ -2437,16 +2430,6 @@ interface DateFieldProps$1
2437
2430
  | 'onViewChange'
2438
2431
  >,
2439
2432
  AutocompleteProps<DateAutocompleteField> {
2440
- /**
2441
- * Callback when the user makes any changes in the field.
2442
- * Also triggered when a date is selected using the date picker popup before `onChange`.
2443
- */
2444
- onInput?: (event: Event) => void;
2445
- /**
2446
- * Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
2447
- * Also triggered when a date is selected using the date picker popup after `onInput`.
2448
- */
2449
- onChange?: (event: Event) => void;
2450
2433
  /**
2451
2434
  * Callback when the field has an invalid date.
2452
2435
  * This callback will be called, if the date typed is invalid or disabled.
@@ -2577,7 +2560,7 @@ interface FunctionSettingsProps$1 extends GlobalProps, FormProps$1 {
2577
2560
  * highlight the fields that caused the errors, and display the error messages
2578
2561
  * to the user.
2579
2562
  */
2580
- onError?: (event: AggregateErrorEvent<FunctionSettingsError>) => void;
2563
+ onError?: (event: ArgregatedErrorEvent<FunctionSettingsError>) => void;
2581
2564
  }
2582
2565
  export interface FunctionSettingsError extends Error {
2583
2566
  /**
@@ -11,7 +11,7 @@ export interface NavigationHistoryEntry {
11
11
  /** 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. */
12
12
  key: string;
13
13
  /**
14
- * Returns the lowercased URL of this history entry.
14
+ * Returns the URL of this history entry.
15
15
  */
16
16
  url: string | null;
17
17
  /**