@shopify/ui-extensions 2026.7.1 → 2026.10.0-rc.1
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/shared.d.ts +2 -2
- package/build/ts/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Button.d.ts +9 -0
- package/build/ts/surfaces/customer-account/components/Button.d.ts +9 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/shared.ts +4 -2
- package/src/surfaces/checkout/components/Button.d.ts +9 -0
package/package.json
CHANGED
package/src/shared.ts
CHANGED
|
@@ -16,7 +16,8 @@ export type ApiVersion =
|
|
|
16
16
|
| '2025-10'
|
|
17
17
|
| '2026-01'
|
|
18
18
|
| '2026-04'
|
|
19
|
-
| '2026-07'
|
|
19
|
+
| '2026-07'
|
|
20
|
+
| '2026-10';
|
|
20
21
|
|
|
21
22
|
/**
|
|
22
23
|
* The capabilities an extension has access to.
|
|
@@ -927,7 +928,8 @@ export type StorefrontApiVersion =
|
|
|
927
928
|
| '2025-10'
|
|
928
929
|
| '2026-01'
|
|
929
930
|
| '2026-04'
|
|
930
|
-
| '2026-07'
|
|
931
|
+
| '2026-07'
|
|
932
|
+
| '2026-10';
|
|
931
933
|
|
|
932
934
|
/**
|
|
933
935
|
* A buyer's country, identified by its ISO country code.
|
|
@@ -53,6 +53,15 @@ export interface ButtonElementProps extends Pick<ButtonProps$1, 'accessibilityLa
|
|
|
53
53
|
* @default 'button'
|
|
54
54
|
*/
|
|
55
55
|
type?: Extract<ButtonProps$1['type'], 'submit' | 'button'>;
|
|
56
|
+
/**
|
|
57
|
+
* The visual style variant of the button component, which controls its prominence and emphasis.
|
|
58
|
+
*
|
|
59
|
+
* - `'auto'`: Automatically determined by the button's context.
|
|
60
|
+
* - `'primary'`: High-emphasis style for the main action.
|
|
61
|
+
* - `'secondary'`: Medium-emphasis style for supporting actions.
|
|
62
|
+
*
|
|
63
|
+
* @default 'auto'
|
|
64
|
+
*/
|
|
56
65
|
variant?: Extract<ButtonProps$1['variant'], 'auto' | 'primary' | 'secondary'>;
|
|
57
66
|
}
|
|
58
67
|
export interface ButtonEvents extends Pick<ButtonProps$1, 'onClick'> {
|