@shopify/ui-extensions 2026.7.1 → 2026.10.0-rc.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopify/ui-extensions",
3
- "version": "2026.7.1",
3
+ "version": "2026.10.0-rc.2",
4
4
  "scripts": {
5
5
  "docs:admin": "node ./docs/surfaces/admin/build-docs.mjs",
6
6
  "docs:checkout": "bash ./docs/surfaces/checkout/build-docs.sh",
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.
@@ -416,6 +416,24 @@ export interface ExtensionTargets {
416
416
  BlockExtensionComponents
417
417
  >;
418
418
 
419
+ // Configuration shouldRender targets
420
+
421
+ /**
422
+ * A non-rendering target that controls whether the product details configuration extension renders. Use this to conditionally show or hide your configuration extension based on product properties, user permissions, or external data.
423
+ */
424
+ 'admin.product-details.configuration.should-render': RunnableExtension<
425
+ ShouldRenderApi<'admin.product-details.configuration.should-render'>,
426
+ ShouldRenderOutput
427
+ >;
428
+
429
+ /**
430
+ * A non-rendering target that controls whether the product variant details configuration extension renders. Use this to conditionally show or hide your configuration extension based on product variant properties, user permissions, or external data.
431
+ */
432
+ 'admin.product-variant-details.configuration.should-render': RunnableExtension<
433
+ ShouldRenderApi<'admin.product-variant-details.configuration.should-render'>,
434
+ ShouldRenderOutput
435
+ >;
436
+
419
437
  /**
420
438
  * A function settings target that renders within order routing settings, allowing merchants to configure order routing rule functions.
421
439
  * @private
@@ -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'> {