@shopify/ui-extensions 2025.10.0-rc.47 → 2025.10.0-rc.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ts/surfaces/admin/components/Chip.d.ts +1 -5
- package/build/ts/surfaces/admin/components/ClickableChip.d.ts +1 -5
- package/build/ts/surfaces/admin/components/ColorPicker.d.ts +1 -5
- package/build/ts/surfaces/admin/components/DateField.d.ts +1 -5
- package/build/ts/surfaces/admin/components/Menu.d.ts +1 -5
- package/build/ts/surfaces/admin/components/Modal.d.ts +1 -5
- package/build/ts/surfaces/admin/components/QueryContainer.d.ts +1 -5
- package/build/ts/surfaces/admin/components/shared.d.ts +30 -6
- package/build/ts/surfaces/point-of-sale/components/PosBlock/PosBlock.doc.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/surfaces/admin/components/Chip.d.ts +1 -5
- package/src/surfaces/admin/components/ClickableChip.d.ts +1 -5
- package/src/surfaces/admin/components/ColorPicker.d.ts +1 -5
- package/src/surfaces/admin/components/DateField.d.ts +1 -5
- package/src/surfaces/admin/components/Menu.d.ts +1 -5
- package/src/surfaces/admin/components/Modal.d.ts +1 -5
- package/src/surfaces/admin/components/QueryContainer.d.ts +1 -5
- package/src/surfaces/admin/components/shared.d.ts +30 -6
- package/src/surfaces/admin/components.d.ts +64 -152
|
@@ -99,11 +99,7 @@ declare global {
|
|
|
99
99
|
declare module 'preact' {
|
|
100
100
|
namespace createElement.JSX {
|
|
101
101
|
interface IntrinsicElements {
|
|
102
|
-
[tagName]: Omit<
|
|
103
|
-
HTMLAttributes<HTMLElement>,
|
|
104
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
105
|
-
> &
|
|
106
|
-
Omit<ChipJSXProps, 'graphic'> &
|
|
102
|
+
[tagName]: Omit<ChipJSXProps, 'graphic'> &
|
|
107
103
|
PreactBaseElementPropsWithChildren<Chip>;
|
|
108
104
|
}
|
|
109
105
|
}
|
|
@@ -127,11 +127,7 @@ declare global {
|
|
|
127
127
|
declare module 'preact' {
|
|
128
128
|
namespace createElement.JSX {
|
|
129
129
|
interface IntrinsicElements {
|
|
130
|
-
[tagName]: Omit<
|
|
131
|
-
HTMLAttributes<HTMLElement>,
|
|
132
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
133
|
-
> &
|
|
134
|
-
Omit<ClickableChipJSXProps, 'graphic'> &
|
|
130
|
+
[tagName]: Omit<ClickableChipJSXProps, 'graphic'> &
|
|
135
131
|
PreactBaseElementPropsWithChildren<ClickableChip>;
|
|
136
132
|
}
|
|
137
133
|
}
|
|
@@ -108,11 +108,7 @@ declare global {
|
|
|
108
108
|
declare module 'preact' {
|
|
109
109
|
namespace createElement.JSX {
|
|
110
110
|
interface IntrinsicElements {
|
|
111
|
-
[tagName]:
|
|
112
|
-
HTMLAttributes<HTMLElement>,
|
|
113
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
114
|
-
> &
|
|
115
|
-
ColorPickerJSXProps;
|
|
111
|
+
[tagName]: ColorPickerJSXProps;
|
|
116
112
|
}
|
|
117
113
|
}
|
|
118
114
|
}
|
|
@@ -221,11 +221,7 @@ declare global {
|
|
|
221
221
|
declare module 'preact' {
|
|
222
222
|
namespace createElement.JSX {
|
|
223
223
|
interface IntrinsicElements {
|
|
224
|
-
[tagName]:
|
|
225
|
-
HTMLAttributes<HTMLElement>,
|
|
226
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
227
|
-
> &
|
|
228
|
-
DateFieldJSXProps;
|
|
224
|
+
[tagName]: DateFieldJSXProps;
|
|
229
225
|
}
|
|
230
226
|
}
|
|
231
227
|
}
|
|
@@ -125,11 +125,7 @@ declare global {
|
|
|
125
125
|
declare module 'preact' {
|
|
126
126
|
namespace createElement.JSX {
|
|
127
127
|
interface IntrinsicElements {
|
|
128
|
-
[tagName]:
|
|
129
|
-
HTMLAttributes<HTMLElement>,
|
|
130
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
131
|
-
> &
|
|
132
|
-
MenuJSXProps;
|
|
128
|
+
[tagName]: MenuJSXProps;
|
|
133
129
|
}
|
|
134
130
|
}
|
|
135
131
|
}
|
|
@@ -196,11 +196,7 @@ declare global {
|
|
|
196
196
|
declare module 'preact' {
|
|
197
197
|
namespace createElement.JSX {
|
|
198
198
|
interface IntrinsicElements {
|
|
199
|
-
[tagName]: Omit<
|
|
200
|
-
HTMLAttributes<HTMLElement>,
|
|
201
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
202
|
-
> &
|
|
203
|
-
Omit<ModalJSXProps, 'primaryAction' | 'secondaryActions'>;
|
|
199
|
+
[tagName]: Omit<ModalJSXProps, 'primaryAction' | 'secondaryActions'>;
|
|
204
200
|
}
|
|
205
201
|
}
|
|
206
202
|
}
|
|
@@ -88,11 +88,7 @@ declare global {
|
|
|
88
88
|
declare module 'preact' {
|
|
89
89
|
namespace createElement.JSX {
|
|
90
90
|
interface IntrinsicElements {
|
|
91
|
-
[tagName]:
|
|
92
|
-
HTMLAttributes<HTMLElement>,
|
|
93
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
94
|
-
> &
|
|
95
|
-
QueryContainerJSXProps;
|
|
91
|
+
[tagName]: QueryContainerJSXProps;
|
|
96
92
|
}
|
|
97
93
|
}
|
|
98
94
|
}
|
|
@@ -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
|
|
170
|
+
export interface AggregateErrorEvent<T extends Error> extends ErrorEvent {
|
|
171
171
|
error: AggregateError$1<T>;
|
|
172
172
|
}
|
|
173
173
|
export type SizeKeyword =
|
|
@@ -359,6 +359,7 @@ declare const privateIconArray: readonly [
|
|
|
359
359
|
'clipboard-check',
|
|
360
360
|
'clipboard-checklist',
|
|
361
361
|
'clock',
|
|
362
|
+
'clock-list',
|
|
362
363
|
'clock-revert',
|
|
363
364
|
'code',
|
|
364
365
|
'code-add',
|
|
@@ -576,6 +577,7 @@ declare const privateIconArray: readonly [
|
|
|
576
577
|
'note',
|
|
577
578
|
'note-add',
|
|
578
579
|
'notification',
|
|
580
|
+
'number-one',
|
|
579
581
|
'order',
|
|
580
582
|
'order-batches',
|
|
581
583
|
'order-draft',
|
|
@@ -662,6 +664,7 @@ declare const privateIconArray: readonly [
|
|
|
662
664
|
'profile-filled',
|
|
663
665
|
'question-circle',
|
|
664
666
|
'question-circle-filled',
|
|
667
|
+
'radio-control',
|
|
665
668
|
'receipt',
|
|
666
669
|
'receipt-dollar',
|
|
667
670
|
'receipt-euro',
|
|
@@ -716,6 +719,7 @@ declare const privateIconArray: readonly [
|
|
|
716
719
|
'sort-ascending',
|
|
717
720
|
'sort-descending',
|
|
718
721
|
'sound',
|
|
722
|
+
'split',
|
|
719
723
|
'sports',
|
|
720
724
|
'star',
|
|
721
725
|
'star-circle',
|
|
@@ -782,6 +786,9 @@ declare const privateIconArray: readonly [
|
|
|
782
786
|
'unlock',
|
|
783
787
|
'upload',
|
|
784
788
|
'variant',
|
|
789
|
+
'variant-list',
|
|
790
|
+
'video',
|
|
791
|
+
'video-list',
|
|
785
792
|
'view',
|
|
786
793
|
'viewport-narrow',
|
|
787
794
|
'viewport-short',
|
|
@@ -2098,7 +2105,7 @@ interface ColorPickerProps$1 extends GlobalProps, InputProps {
|
|
|
2098
2105
|
* For RGB and RGBA, both the legacy syntax (comma-separated) and modern syntax (space-separate) are supported.
|
|
2099
2106
|
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/rgb
|
|
2100
2107
|
*
|
|
2101
|
-
* If the value is invalid, the component will
|
|
2108
|
+
* If the value is invalid, the component will return an empty string ''.
|
|
2102
2109
|
*
|
|
2103
2110
|
* Note that the `onChange` handler will emit the value in hex.
|
|
2104
2111
|
*/
|
|
@@ -2405,12 +2412,19 @@ interface DatePickerProps$1 extends GlobalProps, InputProps, FocusEventProps {
|
|
|
2405
2412
|
*/
|
|
2406
2413
|
value?: string;
|
|
2407
2414
|
/**
|
|
2408
|
-
* Callback when any date is selected.
|
|
2415
|
+
* Callback when any date is selected.
|
|
2416
|
+
*
|
|
2417
|
+
* - If `type="single"`, fires when a date is selected and happens before `onChange`.
|
|
2418
|
+
* - If `type="multiple"`, fires when a date is selected before `onChange`.
|
|
2419
|
+
* - 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`.
|
|
2409
2420
|
*/
|
|
2410
2421
|
onInput?: (event: Event) => void;
|
|
2411
2422
|
/**
|
|
2412
|
-
* Callback when the
|
|
2413
|
-
*
|
|
2423
|
+
* Callback when the value is committed.
|
|
2424
|
+
*
|
|
2425
|
+
* - If `type="single"`, fires when a date is selected after `onInput`.
|
|
2426
|
+
* - If `type="multiple"`, fires when a date is selected after `onInput`.
|
|
2427
|
+
* - If `type="range"`, fires when a range is completed by selecting the end date after `onInput`.
|
|
2414
2428
|
*/
|
|
2415
2429
|
onChange?: (event: Event) => void;
|
|
2416
2430
|
}
|
|
@@ -2430,6 +2444,16 @@ interface DateFieldProps$1
|
|
|
2430
2444
|
| 'onViewChange'
|
|
2431
2445
|
>,
|
|
2432
2446
|
AutocompleteProps<DateAutocompleteField> {
|
|
2447
|
+
/**
|
|
2448
|
+
* Callback when the user makes any changes in the field.
|
|
2449
|
+
* Also triggered when a date is selected using the date picker popup before `onChange`.
|
|
2450
|
+
*/
|
|
2451
|
+
onInput?: (event: Event) => void;
|
|
2452
|
+
/**
|
|
2453
|
+
* Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
|
|
2454
|
+
* Also triggered when a date is selected using the date picker popup after `onInput`.
|
|
2455
|
+
*/
|
|
2456
|
+
onChange?: (event: Event) => void;
|
|
2433
2457
|
/**
|
|
2434
2458
|
* Callback when the field has an invalid date.
|
|
2435
2459
|
* This callback will be called, if the date typed is invalid or disabled.
|
|
@@ -2560,7 +2584,7 @@ interface FunctionSettingsProps$1 extends GlobalProps, FormProps$1 {
|
|
|
2560
2584
|
* highlight the fields that caused the errors, and display the error messages
|
|
2561
2585
|
* to the user.
|
|
2562
2586
|
*/
|
|
2563
|
-
onError?: (event:
|
|
2587
|
+
onError?: (event: AggregateErrorEvent<FunctionSettingsError>) => void;
|
|
2564
2588
|
}
|
|
2565
2589
|
export interface FunctionSettingsError extends Error {
|
|
2566
2590
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PosBlock.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/PosBlock/PosBlock.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"PosBlock.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/PosBlock/PosBlock.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAwCX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|