@shopify/ui-extensions 2026.4.0 → 2026.4.2
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/api/generated/generated.d.ts +62 -0
- package/build/ts/surfaces/admin/api/generated/generated.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api.d.ts +1 -0
- package/build/ts/surfaces/admin/api.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/address-autocomplete/standard.d.ts +1 -1
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/Abbreviation.d.ts +1 -4
- package/build/ts/surfaces/checkout/components/Announcement.d.ts +2 -6
- package/build/ts/surfaces/checkout/components/Badge.d.ts +1 -3
- package/build/ts/surfaces/checkout/components/Banner.d.ts +2 -6
- package/build/ts/surfaces/checkout/components/Box.d.ts +1 -3
- package/build/ts/surfaces/checkout/components/Button.d.ts +12 -8
- package/build/ts/surfaces/checkout/components/Checkbox.d.ts +2 -9
- package/build/ts/surfaces/checkout/components/Chip.d.ts +3 -11
- package/build/ts/surfaces/checkout/components/Choice.d.ts +2 -8
- package/build/ts/surfaces/checkout/components/ChoiceList.d.ts +2 -9
- package/build/ts/surfaces/checkout/components/Clickable.d.ts +12 -8
- package/build/ts/surfaces/checkout/components/ClickableChip.d.ts +4 -15
- package/build/ts/surfaces/checkout/components/ClipboardItem.d.ts +2 -8
- package/build/ts/surfaces/checkout/components/ConsentCheckbox.d.ts +8 -9
- package/build/ts/surfaces/checkout/components/ConsentPhoneField.d.ts +9 -14
- package/build/ts/surfaces/checkout/components/DateField.d.ts +2 -9
- package/build/ts/surfaces/checkout/components/DatePicker.d.ts +2 -9
- package/build/ts/surfaces/checkout/components/Details.d.ts +7 -16
- package/build/ts/surfaces/checkout/components/DropZone.d.ts +2 -9
- package/build/ts/surfaces/checkout/components/EmailField.d.ts +3 -14
- package/build/ts/surfaces/checkout/components/Form.d.ts +2 -9
- package/build/ts/surfaces/checkout/components/Grid.d.ts +1 -3
- package/build/ts/surfaces/checkout/components/GridItem.d.ts +1 -3
- package/build/ts/surfaces/checkout/components/Heading.d.ts +1 -4
- package/build/ts/surfaces/checkout/components/Link.d.ts +2 -8
- package/build/ts/surfaces/checkout/components/ListItem.d.ts +1 -4
- package/build/ts/surfaces/checkout/components/MapMarker.d.ts +3 -6
- package/build/ts/surfaces/checkout/components/MoneyField.d.ts +2 -9
- package/build/ts/surfaces/checkout/components/NumberField.d.ts +3 -14
- package/build/ts/surfaces/checkout/components/Option.d.ts +1 -4
- package/build/ts/surfaces/checkout/components/OrderedList.d.ts +1 -4
- package/build/ts/surfaces/checkout/components/Paragraph.d.ts +12 -4
- package/build/ts/surfaces/checkout/components/PasswordField.d.ts +3 -14
- package/build/ts/surfaces/checkout/components/PhoneField.d.ts +3 -14
- package/build/ts/surfaces/checkout/components/PressButton.d.ts +2 -8
- package/build/ts/surfaces/checkout/components/Progress.d.ts +3 -5
- package/build/ts/surfaces/checkout/components/ScrollBox.d.ts +1 -3
- package/build/ts/surfaces/checkout/components/Select.d.ts +2 -9
- package/build/ts/surfaces/checkout/components/SkeletonParagraph.d.ts +1 -4
- package/build/ts/surfaces/checkout/components/Spinner.d.ts +1 -3
- package/build/ts/surfaces/checkout/components/Stack.d.ts +1 -3
- package/build/ts/surfaces/checkout/components/Summary.d.ts +1 -4
- package/build/ts/surfaces/checkout/components/Switch.d.ts +2 -9
- package/build/ts/surfaces/checkout/components/Text.d.ts +18 -5
- package/build/ts/surfaces/checkout/components/TextArea.d.ts +2 -9
- package/build/ts/surfaces/checkout/components/TextField.d.ts +3 -14
- package/build/ts/surfaces/checkout/components/Time.d.ts +1 -4
- package/build/ts/surfaces/checkout/components/UnorderedList.d.ts +1 -4
- package/build/ts/surfaces/checkout/components/UrlField.d.ts +3 -14
- package/build/ts/surfaces/checkout/components/components-shared.d.ts +126 -127
- package/build/ts/surfaces/checkout/components/components.d.ts +9 -11
- package/build/ts/surfaces/customer-account/api/docs.d.ts +12 -19
- package/build/ts/surfaces/customer-account/api/docs.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts +7 -9
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/shared.d.ts +1 -2
- package/build/ts/surfaces/customer-account/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Abbreviation.d.ts +1 -4
- package/build/ts/surfaces/customer-account/components/Announcement.d.ts +2 -6
- package/build/ts/surfaces/customer-account/components/Badge.d.ts +1 -3
- package/build/ts/surfaces/customer-account/components/Banner.d.ts +2 -6
- package/build/ts/surfaces/customer-account/components/Box.d.ts +1 -3
- package/build/ts/surfaces/customer-account/components/Button.d.ts +12 -8
- package/build/ts/surfaces/customer-account/components/Checkbox.d.ts +2 -9
- package/build/ts/surfaces/customer-account/components/Chip.d.ts +3 -11
- package/build/ts/surfaces/customer-account/components/Choice.d.ts +2 -8
- package/build/ts/surfaces/customer-account/components/ChoiceList.d.ts +2 -9
- package/build/ts/surfaces/customer-account/components/Clickable.d.ts +12 -8
- package/build/ts/surfaces/customer-account/components/ClickableChip.d.ts +4 -15
- package/build/ts/surfaces/customer-account/components/ClipboardItem.d.ts +2 -8
- package/build/ts/surfaces/customer-account/components/ConsentCheckbox.d.ts +8 -9
- package/build/ts/surfaces/customer-account/components/ConsentPhoneField.d.ts +9 -14
- package/build/ts/surfaces/customer-account/components/DateField.d.ts +2 -9
- package/build/ts/surfaces/customer-account/components/DatePicker.d.ts +2 -9
- package/build/ts/surfaces/customer-account/components/Details.d.ts +7 -16
- package/build/ts/surfaces/customer-account/components/DropZone.d.ts +2 -9
- package/build/ts/surfaces/customer-account/components/EmailField.d.ts +3 -14
- package/build/ts/surfaces/customer-account/components/Form.d.ts +2 -9
- package/build/ts/surfaces/customer-account/components/Grid.d.ts +1 -3
- package/build/ts/surfaces/customer-account/components/GridItem.d.ts +1 -3
- package/build/ts/surfaces/customer-account/components/Heading.d.ts +1 -4
- package/build/ts/surfaces/customer-account/components/Link.d.ts +2 -8
- package/build/ts/surfaces/customer-account/components/ListItem.d.ts +1 -4
- package/build/ts/surfaces/customer-account/components/MapMarker.d.ts +3 -6
- package/build/ts/surfaces/customer-account/components/MoneyField.d.ts +2 -9
- package/build/ts/surfaces/customer-account/components/NumberField.d.ts +3 -14
- package/build/ts/surfaces/customer-account/components/Option.d.ts +1 -4
- package/build/ts/surfaces/customer-account/components/OrderedList.d.ts +1 -4
- package/build/ts/surfaces/customer-account/components/Paragraph.d.ts +12 -4
- package/build/ts/surfaces/customer-account/components/PasswordField.d.ts +3 -14
- package/build/ts/surfaces/customer-account/components/PhoneField.d.ts +3 -14
- package/build/ts/surfaces/customer-account/components/PressButton.d.ts +2 -8
- package/build/ts/surfaces/customer-account/components/Progress.d.ts +3 -5
- package/build/ts/surfaces/customer-account/components/ScrollBox.d.ts +1 -3
- package/build/ts/surfaces/customer-account/components/Select.d.ts +2 -9
- package/build/ts/surfaces/customer-account/components/SkeletonParagraph.d.ts +1 -4
- package/build/ts/surfaces/customer-account/components/Spinner.d.ts +1 -3
- package/build/ts/surfaces/customer-account/components/Stack.d.ts +1 -3
- package/build/ts/surfaces/customer-account/components/Summary.d.ts +1 -4
- package/build/ts/surfaces/customer-account/components/Switch.d.ts +2 -9
- package/build/ts/surfaces/customer-account/components/Text.d.ts +18 -5
- package/build/ts/surfaces/customer-account/components/TextArea.d.ts +2 -9
- package/build/ts/surfaces/customer-account/components/TextField.d.ts +3 -14
- package/build/ts/surfaces/customer-account/components/Time.d.ts +1 -4
- package/build/ts/surfaces/customer-account/components/UnorderedList.d.ts +1 -4
- package/build/ts/surfaces/customer-account/components/UrlField.d.ts +3 -14
- package/build/ts/surfaces/customer-account/components/components-shared.d.ts +126 -127
- package/build/ts/surfaces/customer-account/components/components.d.ts +9 -11
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/surfaces/admin/api/generated/generated.ts +76 -0
- package/src/surfaces/admin/api.ts +6 -0
- package/src/surfaces/checkout/api/address-autocomplete/standard.ts +1 -1
- package/src/surfaces/checkout/api/standard/standard.ts +2 -2
- package/src/surfaces/checkout/components/Abbreviation.d.ts +1 -4
- package/src/surfaces/checkout/components/Announcement.d.ts +2 -6
- package/src/surfaces/checkout/components/Badge.d.ts +1 -3
- package/src/surfaces/checkout/components/Banner.d.ts +2 -6
- package/src/surfaces/checkout/components/Box.d.ts +1 -3
- package/src/surfaces/checkout/components/Button.d.ts +12 -8
- package/src/surfaces/checkout/components/Checkbox.d.ts +2 -9
- package/src/surfaces/checkout/components/Chip.d.ts +3 -11
- package/src/surfaces/checkout/components/Choice.d.ts +2 -8
- package/src/surfaces/checkout/components/ChoiceList.d.ts +2 -9
- package/src/surfaces/checkout/components/Clickable.d.ts +12 -8
- package/src/surfaces/checkout/components/ClickableChip.d.ts +4 -15
- package/src/surfaces/checkout/components/ClipboardItem.d.ts +2 -8
- package/src/surfaces/checkout/components/ConsentCheckbox.d.ts +8 -9
- package/src/surfaces/checkout/components/ConsentPhoneField.d.ts +9 -14
- package/src/surfaces/checkout/components/DateField.d.ts +2 -9
- package/src/surfaces/checkout/components/DatePicker.d.ts +2 -9
- package/src/surfaces/checkout/components/Details.d.ts +7 -16
- package/src/surfaces/checkout/components/DropZone.d.ts +2 -9
- package/src/surfaces/checkout/components/EmailField.d.ts +3 -14
- package/src/surfaces/checkout/components/Form.d.ts +2 -9
- package/src/surfaces/checkout/components/Grid.d.ts +1 -3
- package/src/surfaces/checkout/components/GridItem.d.ts +1 -3
- package/src/surfaces/checkout/components/Heading.d.ts +1 -4
- package/src/surfaces/checkout/components/Link.d.ts +2 -8
- package/src/surfaces/checkout/components/ListItem.d.ts +1 -4
- package/src/surfaces/checkout/components/MapMarker.d.ts +3 -6
- package/src/surfaces/checkout/components/MoneyField.d.ts +2 -9
- package/src/surfaces/checkout/components/NumberField.d.ts +3 -14
- package/src/surfaces/checkout/components/Option.d.ts +1 -4
- package/src/surfaces/checkout/components/OrderedList.d.ts +1 -4
- package/src/surfaces/checkout/components/Paragraph.d.ts +12 -4
- package/src/surfaces/checkout/components/PasswordField.d.ts +3 -14
- package/src/surfaces/checkout/components/PhoneField.d.ts +3 -14
- package/src/surfaces/checkout/components/PressButton.d.ts +2 -8
- package/src/surfaces/checkout/components/Progress.d.ts +3 -5
- package/src/surfaces/checkout/components/ScrollBox.d.ts +1 -3
- package/src/surfaces/checkout/components/Select.d.ts +2 -9
- package/src/surfaces/checkout/components/SkeletonParagraph.d.ts +1 -4
- package/src/surfaces/checkout/components/Spinner.d.ts +1 -3
- package/src/surfaces/checkout/components/Stack.d.ts +1 -3
- package/src/surfaces/checkout/components/Summary.d.ts +1 -4
- package/src/surfaces/checkout/components/Switch.d.ts +2 -9
- package/src/surfaces/checkout/components/Text.d.ts +18 -5
- package/src/surfaces/checkout/components/TextArea.d.ts +2 -9
- package/src/surfaces/checkout/components/TextField.d.ts +3 -14
- package/src/surfaces/checkout/components/Time.d.ts +1 -4
- package/src/surfaces/checkout/components/UnorderedList.d.ts +1 -4
- package/src/surfaces/checkout/components/UrlField.d.ts +3 -14
- package/src/surfaces/checkout/components/components-shared.d.ts +126 -127
- package/src/surfaces/checkout/components/components.d.ts +9 -11
- package/src/surfaces/customer-account/api/docs.ts +12 -19
- package/src/surfaces/customer-account/api/order-status/order-status.ts +7 -9
- package/src/surfaces/customer-account/api/shared.ts +1 -2
|
@@ -1392,7 +1392,7 @@ export interface InteractionProps {
|
|
|
1392
1392
|
/**
|
|
1393
1393
|
* ID of a component that should respond to activations (e.g. clicks) on this component.
|
|
1394
1394
|
*
|
|
1395
|
-
*
|
|
1395
|
+
* Pair with the `command` property to specify what action to perform on the target component.
|
|
1396
1396
|
*
|
|
1397
1397
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#commandfor
|
|
1398
1398
|
*/
|
|
@@ -1517,7 +1517,7 @@ export interface MultipleInputProps extends BaseInputProps {
|
|
|
1517
1517
|
*/
|
|
1518
1518
|
onInput?: (event: Event) => void;
|
|
1519
1519
|
/**
|
|
1520
|
-
* An array of
|
|
1520
|
+
* An array of `value` attributes for the currently selected options.
|
|
1521
1521
|
*
|
|
1522
1522
|
* This is a convenience prop for setting the `selected` prop on child options.
|
|
1523
1523
|
*/
|
|
@@ -1907,7 +1907,7 @@ interface ClickableProps$1 extends GlobalProps, BaseBoxProps, BaseClickableProps
|
|
|
1907
1907
|
/**
|
|
1908
1908
|
* Disables the clickable, meaning it cannot be clicked or receive focus.
|
|
1909
1909
|
*
|
|
1910
|
-
* In this state,
|
|
1910
|
+
* In this state, `click` won't fire.
|
|
1911
1911
|
* If the click event originates from a child element, the event will immediately stop propagating from this element.
|
|
1912
1912
|
*
|
|
1913
1913
|
* However, items within the clickable can still receive focus and be interacted with.
|
|
@@ -2094,9 +2094,7 @@ interface DatePickerProps$1 extends GlobalProps, InputProps, FocusEventProps {
|
|
|
2094
2094
|
*/
|
|
2095
2095
|
type?: "single" | "multiple" | "range";
|
|
2096
2096
|
/**
|
|
2097
|
-
*
|
|
2098
|
-
*
|
|
2099
|
-
* A comma-separated list of dates, date ranges. Whitespace is allowed after commas.
|
|
2097
|
+
* Restricts which dates the user can select. Accepts a comma-separated list of dates and date ranges. Whitespace is allowed after commas.
|
|
2100
2098
|
*
|
|
2101
2099
|
* The default `''` allows all dates.
|
|
2102
2100
|
*
|
|
@@ -2147,7 +2145,7 @@ interface DatePickerProps$1 extends GlobalProps, InputProps, FocusEventProps {
|
|
|
2147
2145
|
*/
|
|
2148
2146
|
disallow?: string;
|
|
2149
2147
|
/**
|
|
2150
|
-
*
|
|
2148
|
+
* Restricts which days of the week the user can select. These intersect with the result of `allow` and `disallow`.
|
|
2151
2149
|
*
|
|
2152
2150
|
* A comma-separated list of days. Whitespace is allowed after commas.
|
|
2153
2151
|
*
|
|
@@ -3035,7 +3033,7 @@ interface ProgressProps$1 extends GlobalProps {
|
|
|
3035
3033
|
/**
|
|
3036
3034
|
* Specifies how much of the task has been completed.
|
|
3037
3035
|
*
|
|
3038
|
-
* It must be a valid floating point number between 0 and `max`, or between 0 and 1 if `max` is omitted.
|
|
3036
|
+
* It must be a valid floating point number between `0` and `max`, or between `0` and `1` if `max` is omitted.
|
|
3039
3037
|
* If there is no value attribute, the progress bar is indeterminate;
|
|
3040
3038
|
* this indicates that an activity is ongoing with no indication of how long it is expected to take.
|
|
3041
3039
|
*
|
|
@@ -3049,7 +3047,7 @@ interface ProgressProps$1 extends GlobalProps {
|
|
|
3049
3047
|
/**
|
|
3050
3048
|
* This attribute describes how much work the task indicated by the progress element requires.
|
|
3051
3049
|
*
|
|
3052
|
-
* The `max` attribute, if present, must have a value greater than 0 and be a valid floating point number.
|
|
3050
|
+
* The `max` attribute, if present, must have a value greater than `0` and be a valid floating point number.
|
|
3053
3051
|
*
|
|
3054
3052
|
* @default 1
|
|
3055
3053
|
*
|
|
@@ -4334,7 +4332,7 @@ declare const tagName$v = "s-map-marker";
|
|
|
4334
4332
|
/** @publicDocs */
|
|
4335
4333
|
interface MapMarkerElementProps extends Pick<MapMarkerProps$1, 'accessibilityLabel' | 'blockSize' | 'command' | 'commandFor' | 'clusterable' | 'inlineSize' | 'latitude' | 'longitude'> {
|
|
4336
4334
|
/**
|
|
4337
|
-
* Sets the action the `commandFor` target should take when this
|
|
4335
|
+
* Sets the action the `commandFor` target should take when this component is activated. Learn more about the [`command` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#command).
|
|
4338
4336
|
*
|
|
4339
4337
|
* - `--auto`: a default action for the target component.
|
|
4340
4338
|
* - `--show`: shows the target component.
|
|
@@ -4345,7 +4343,7 @@ interface MapMarkerElementProps extends Pick<MapMarkerProps$1, 'accessibilityLab
|
|
|
4345
4343
|
*/
|
|
4346
4344
|
command?: Extract<MapMarkerProps$1['command'], '--auto' | '--show' | '--hide' | '--toggle'>;
|
|
4347
4345
|
/**
|
|
4348
|
-
* The ID of
|
|
4346
|
+
* The ID of the component to control when this component is activated. Pair with the `command` property to specify what action to perform on the target component. Learn more about the [`commandFor` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#commandfor).
|
|
4349
4347
|
*/
|
|
4350
4348
|
commandFor?: MapMarkerProps$1['commandFor'];
|
|
4351
4349
|
}
|
|
@@ -37,27 +37,21 @@ interface ButtonProps {
|
|
|
37
37
|
*/
|
|
38
38
|
accessibilityLabel?: string;
|
|
39
39
|
/**
|
|
40
|
-
* ID of
|
|
41
|
-
*
|
|
42
|
-
* See `command` for how to control the behavior of the target.
|
|
43
|
-
*
|
|
44
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#commandfor
|
|
40
|
+
* The ID of the component to control when this component is activated. Pair with the `command` property to specify what action to perform on the target component. Learn more about the [`commandFor` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#commandfor).
|
|
45
41
|
*/
|
|
46
42
|
commandFor?: string;
|
|
47
43
|
/**
|
|
48
|
-
* Sets the action the `commandFor` should take when this
|
|
44
|
+
* Sets the action the `commandFor` target should take when this component is activated.
|
|
49
45
|
*
|
|
50
|
-
*
|
|
46
|
+
* - `--auto`: A default action for the target component.
|
|
47
|
+
* - `--show`: Shows the target component.
|
|
48
|
+
* - `--hide`: Hides the target component.
|
|
49
|
+
* - `--toggle`: Toggles the target component.
|
|
50
|
+
* - `--copy`: Copies the target clipboard item.
|
|
51
51
|
*
|
|
52
|
-
*
|
|
53
|
-
* - `--show`: shows the target component.
|
|
54
|
-
* - `--hide`: hides the target component.
|
|
55
|
-
* - `--toggle`: toggles the target component.
|
|
56
|
-
* - `--copy`: copies the target ClipboardItem.
|
|
52
|
+
* Learn more about the [`command` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#command).
|
|
57
53
|
*
|
|
58
54
|
* @default '--auto'
|
|
59
|
-
*
|
|
60
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#command
|
|
61
55
|
*/
|
|
62
56
|
command?: '--auto' | '--show' | '--hide' | '--toggle' | '--copy';
|
|
63
57
|
/**
|
|
@@ -103,9 +97,8 @@ interface ButtonProps {
|
|
|
103
97
|
/**
|
|
104
98
|
* The behavior of the button.
|
|
105
99
|
*
|
|
106
|
-
* - `'submit'
|
|
107
|
-
* - `'button'
|
|
108
|
-
* - `'reset'` - Used to indicate the component acts as a reset button, meaning it resets the closest form (returning fields to their default values).
|
|
100
|
+
* - `'submit'`: Submits the nearest containing form.
|
|
101
|
+
* - `'button'`: Performs no default action, relying on the `click` event handler for behavior.
|
|
109
102
|
*
|
|
110
103
|
* This property is ignored if the component supports `href` or `commandFor`/`command` and one of them is set.
|
|
111
104
|
*
|
|
@@ -360,7 +353,7 @@ export interface Docs_Page_Button_PrimaryAction
|
|
|
360
353
|
*/
|
|
361
354
|
command?: ButtonProps['command'];
|
|
362
355
|
/**
|
|
363
|
-
* The
|
|
356
|
+
* The ID of the component to control when this component is activated. Pair with the `command` property to specify what action to perform on the target component. Learn more about the [`commandFor` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#commandfor).
|
|
364
357
|
*/
|
|
365
358
|
commandFor?: ButtonProps['commandFor'];
|
|
366
359
|
/**
|
|
@@ -416,7 +409,7 @@ export interface Docs_Page_Button_SecondaryAction
|
|
|
416
409
|
*/
|
|
417
410
|
command?: ButtonProps['command'];
|
|
418
411
|
/**
|
|
419
|
-
* The
|
|
412
|
+
* The ID of the component to control when this component is activated. Pair with the `command` property to specify what action to perform on the target component. Learn more about the [`commandFor` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#commandfor).
|
|
420
413
|
*/
|
|
421
414
|
commandFor?: ButtonProps['commandFor'];
|
|
422
415
|
/**
|
|
@@ -225,12 +225,12 @@ export interface OrderStatusApi<Target extends ExtensionTarget> {
|
|
|
225
225
|
|
|
226
226
|
/**
|
|
227
227
|
* The [metafields](/docs/apps/build/custom-data/metafields) requested in the
|
|
228
|
-
* [`shopify.extension.toml`](/docs/
|
|
228
|
+
* [`shopify.extension.toml`](/docs/apps/build/customer-accounts/metafields#create-the-metafield-definition)
|
|
229
229
|
* file. Metafields are custom data fields that store additional information on Shopify resources
|
|
230
230
|
* such as products, variants, customers, and the shop. These metafields are updated when there's
|
|
231
231
|
* a change in the merchandise items being purchased by the customer.
|
|
232
232
|
*
|
|
233
|
-
* App owned metafields are supported and are returned using the `$app` format. The fully qualified reserved namespace format such as `app--{your-app-id}[--{optional-namespace}]` is not supported. See [app owned metafields](/docs/apps/build/
|
|
233
|
+
* App owned metafields are supported and are returned using the `$app` format. The fully qualified reserved namespace format such as `app--{your-app-id}[--{optional-namespace}]` is not supported. See [app owned metafields](/docs/apps/build/metafields#app-owned-metafields) for more information.
|
|
234
234
|
*
|
|
235
235
|
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data) when accessing metafields attached to `customer`, `company`, or `companyLocation` resources.
|
|
236
236
|
*/
|
|
@@ -284,8 +284,7 @@ export interface OrderStatusApi<Target extends ExtensionTarget> {
|
|
|
284
284
|
* The identifier that specifies where in Shopify's UI your code is being injected. This will be one of the targets you have included in your extension's configuration file.
|
|
285
285
|
*
|
|
286
286
|
* @example 'customer-account.order-status.block.render'
|
|
287
|
-
*
|
|
288
|
-
* @see /docs/apps/app-extensions/configuration#targets
|
|
287
|
+
* Learn more about [targets](/docs/api/customer-account-ui-extensions/{API_VERSION}/targets) and [target configuration](/docs/api/customer-account-ui-extensions/{API_VERSION}#configuration).
|
|
289
288
|
*
|
|
290
289
|
* @deprecated Deprecated as of version `2023-07`, use `extension.target` instead.
|
|
291
290
|
*/
|
|
@@ -300,7 +299,7 @@ export interface OrderStatusApi<Target extends ExtensionTarget> {
|
|
|
300
299
|
/**
|
|
301
300
|
* The buyer's locale, currency, time zone, country, and market context for the order.
|
|
302
301
|
* Use these values to adapt your extension's content to the buyer's region. For formatted
|
|
303
|
-
* dates, numbers, and translated strings, use the [Localization API](/docs/api/customer-account-ui-extensions/target-apis/platform-apis/localization-api)
|
|
302
|
+
* dates, numbers, and translated strings, use the [Localization API](/docs/api/customer-account-ui-extensions/{API_VERSION}/target-apis/platform-apis/localization-api)
|
|
304
303
|
* instead.
|
|
305
304
|
*/
|
|
306
305
|
localization: OrderStatusLocalization;
|
|
@@ -321,8 +320,7 @@ export interface OrderStatusApi<Target extends ExtensionTarget> {
|
|
|
321
320
|
/**
|
|
322
321
|
* The token that identifies the checkout session used to create the order. Use this value
|
|
323
322
|
* to correlate the order with analytics events or backend API calls. This matches the
|
|
324
|
-
* `token` field in the [WebPixel checkout payload](/docs/api/pixels/customer-events#checkout)
|
|
325
|
-
* and the `checkout_token` field in the [Admin REST API Order resource](/docs/api/admin-rest/unstable/resources/order#resource-object).
|
|
323
|
+
* `token` field in the [WebPixel checkout payload](/docs/api/pixels/customer-events#checkout).
|
|
326
324
|
* The value is `undefined` if the checkout token is unavailable.
|
|
327
325
|
*/
|
|
328
326
|
checkoutToken: SubscribableSignalLike<CheckoutToken | undefined>;
|
|
@@ -815,7 +813,7 @@ export interface SelectedPaymentOption {
|
|
|
815
813
|
/**
|
|
816
814
|
* The handle of the payment option the buyer selected, corresponding to a `PaymentOption.handle` value.
|
|
817
815
|
*
|
|
818
|
-
* See [availablePaymentOptions](/docs/api/
|
|
816
|
+
* See [availablePaymentOptions](/docs/api/customer-account-ui-extensions/{API_VERSION}/target-apis/order-apis/payments-api).
|
|
819
817
|
*/
|
|
820
818
|
handle: string;
|
|
821
819
|
}
|
|
@@ -1004,7 +1002,7 @@ export interface PaymentTermsTemplate {
|
|
|
1004
1002
|
*/
|
|
1005
1003
|
id: string;
|
|
1006
1004
|
/**
|
|
1007
|
-
* The name of the payment terms translated to the buyer's current language, such as "Net 30" or "Due on receipt". See [localization.language](/docs/api/customer-account-ui-extensions/apis/localization#standardapi-propertydetail-localization).
|
|
1005
|
+
* The name of the payment terms translated to the buyer's current language, such as "Net 30" or "Due on receipt". See [localization.language](/docs/api/customer-account-ui-extensions/{API_VERSION}/apis/localization#standardapi-propertydetail-localization).
|
|
1008
1006
|
*/
|
|
1009
1007
|
name: string;
|
|
1010
1008
|
/**
|
|
@@ -120,8 +120,7 @@ export interface I18n {
|
|
|
120
120
|
/**
|
|
121
121
|
* Returns a localized date value. Behaves like the standard `Intl.DateTimeFormat()` and uses the buyer's locale by default.
|
|
122
122
|
*
|
|
123
|
-
*
|
|
124
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options
|
|
123
|
+
* Learn more about [`Intl.DateTimeFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat) and its [formatting options](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options).
|
|
125
124
|
*
|
|
126
125
|
* @param options.inExtensionLocale - if true, use the extension's locale
|
|
127
126
|
*/
|