@shopify/ui-extensions 2026.10.0-rc.6 → 2026.10.0-rc.8

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 (113) hide show
  1. package/build/cjs/surfaces/checkout/preact/market.js +8 -2
  2. package/build/cjs/surfaces/customer-account/preact/market.js +8 -2
  3. package/build/cjs/surfaces/point-of-sale/events.js +19 -8
  4. package/build/esm/surfaces/checkout/preact/market.mjs +8 -2
  5. package/build/esm/surfaces/customer-account/preact/market.mjs +8 -2
  6. package/build/esm/surfaces/point-of-sale/events.mjs +19 -8
  7. package/build/esnext/surfaces/checkout/preact/market.esnext +8 -2
  8. package/build/esnext/surfaces/customer-account/preact/market.esnext +8 -2
  9. package/build/esnext/surfaces/point-of-sale/events.esnext +19 -8
  10. package/build/ts/surfaces/admin/components/Popover.d.ts +655 -0
  11. package/build/ts/surfaces/admin/components/StandardComponents.d.ts +1 -1
  12. package/build/ts/surfaces/admin/components/StandardComponents.d.ts.map +1 -1
  13. package/build/ts/surfaces/admin/extension-targets.d.ts +0 -8
  14. package/build/ts/surfaces/admin/extension-targets.d.ts.map +1 -1
  15. package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.action.render.d.ts +1 -0
  16. package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.block.render.d.ts +1 -0
  17. package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-index.action.render.d.ts +1 -0
  18. package/build/ts/surfaces/admin/targets/admin.app.home.render.d.ts +1 -0
  19. package/build/ts/surfaces/admin/targets/admin.app.intent.render.d.ts +1 -0
  20. package/build/ts/surfaces/admin/targets/admin.catalog-details.action.render.d.ts +1 -0
  21. package/build/ts/surfaces/admin/targets/admin.catalog-details.block.render.d.ts +1 -0
  22. package/build/ts/surfaces/admin/targets/admin.collection-details.action.render.d.ts +1 -0
  23. package/build/ts/surfaces/admin/targets/admin.collection-details.block.render.d.ts +1 -0
  24. package/build/ts/surfaces/admin/targets/admin.collection-index.action.render.d.ts +1 -0
  25. package/build/ts/surfaces/admin/targets/admin.company-details.action.render.d.ts +1 -0
  26. package/build/ts/surfaces/admin/targets/admin.company-details.block.render.d.ts +1 -0
  27. package/build/ts/surfaces/admin/targets/admin.company-location-details.block.render.d.ts +1 -0
  28. package/build/ts/surfaces/admin/targets/admin.customer-details.action.render.d.ts +1 -0
  29. package/build/ts/surfaces/admin/targets/admin.customer-details.block.render.d.ts +1 -0
  30. package/build/ts/surfaces/admin/targets/admin.customer-index.action.render.d.ts +1 -0
  31. package/build/ts/surfaces/admin/targets/admin.customer-index.selection-action.render.d.ts +1 -0
  32. package/build/ts/surfaces/admin/targets/admin.customer-segment-details.action.render.d.ts +1 -0
  33. package/build/ts/surfaces/admin/targets/admin.discount-details.action.render.d.ts +1 -0
  34. package/build/ts/surfaces/admin/targets/admin.discount-details.function-settings.render.d.ts +1 -0
  35. package/build/ts/surfaces/admin/targets/admin.discount-index.action.render.d.ts +1 -0
  36. package/build/ts/surfaces/admin/targets/admin.discount-index.selection-action.render.d.ts +1 -0
  37. package/build/ts/surfaces/admin/targets/admin.draft-order-details.action.render.d.ts +1 -0
  38. package/build/ts/surfaces/admin/targets/admin.draft-order-details.block.render.d.ts +1 -0
  39. package/build/ts/surfaces/admin/targets/admin.draft-order-index.action.render.d.ts +1 -0
  40. package/build/ts/surfaces/admin/targets/admin.draft-order-index.selection-action.render.d.ts +1 -0
  41. package/build/ts/surfaces/admin/targets/admin.gift-card-details.action.render.d.ts +1 -0
  42. package/build/ts/surfaces/admin/targets/admin.gift-card-details.block.render.d.ts +1 -0
  43. package/build/ts/surfaces/admin/targets/admin.order-details.action.render.d.ts +1 -0
  44. package/build/ts/surfaces/admin/targets/admin.order-details.block.render.d.ts +1 -0
  45. package/build/ts/surfaces/admin/targets/admin.order-details.print-action.render.d.ts +1 -0
  46. package/build/ts/surfaces/admin/targets/admin.order-fulfilled-card.action.render.d.ts +1 -0
  47. package/build/ts/surfaces/admin/targets/admin.order-index.action.render.d.ts +1 -0
  48. package/build/ts/surfaces/admin/targets/admin.order-index.selection-action.render.d.ts +1 -0
  49. package/build/ts/surfaces/admin/targets/admin.order-index.selection-print-action.render.d.ts +1 -0
  50. package/build/ts/surfaces/admin/targets/admin.product-details.action.render.d.ts +1 -0
  51. package/build/ts/surfaces/admin/targets/admin.product-details.block.render.d.ts +1 -0
  52. package/build/ts/surfaces/admin/targets/admin.product-details.configuration.render.d.ts +1 -0
  53. package/build/ts/surfaces/admin/targets/admin.product-details.print-action.render.d.ts +1 -0
  54. package/build/ts/surfaces/admin/targets/admin.product-details.reorder.render.d.ts +1 -0
  55. package/build/ts/surfaces/admin/targets/admin.product-index.action.render.d.ts +1 -0
  56. package/build/ts/surfaces/admin/targets/admin.product-index.selection-action.render.d.ts +1 -0
  57. package/build/ts/surfaces/admin/targets/admin.product-index.selection-print-action.render.d.ts +1 -0
  58. package/build/ts/surfaces/admin/targets/admin.product-purchase-option.action.render.d.ts +1 -0
  59. package/build/ts/surfaces/admin/targets/admin.product-variant-details.action.render.d.ts +1 -0
  60. package/build/ts/surfaces/admin/targets/admin.product-variant-details.block.render.d.ts +1 -0
  61. package/build/ts/surfaces/admin/targets/admin.product-variant-details.configuration.render.d.ts +1 -0
  62. package/build/ts/surfaces/admin/targets/admin.product-variant-purchase-option.action.render.d.ts +1 -0
  63. package/build/ts/surfaces/admin/targets/admin.settings.internal-order-routing-rule.render.d.ts +1 -0
  64. package/build/ts/surfaces/admin/targets/admin.settings.order-routing-rule.render.d.ts +1 -0
  65. package/build/ts/surfaces/admin/targets/admin.settings.validation.render.d.ts +1 -0
  66. package/build/ts/surfaces/checkout/api/standard/standard.d.ts +8 -5
  67. package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
  68. package/build/ts/surfaces/checkout/preact/market.d.ts +8 -2
  69. package/build/ts/surfaces/checkout/preact/market.d.ts.map +1 -1
  70. package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts +6 -1
  71. package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts.map +1 -1
  72. package/build/ts/surfaces/customer-account/preact/market.d.ts +8 -2
  73. package/build/ts/surfaces/customer-account/preact/market.d.ts.map +1 -1
  74. package/build/ts/surfaces/point-of-sale/api/resolution-api/resolution-api.d.ts +23 -0
  75. package/build/ts/surfaces/point-of-sale/api/resolution-api/resolution-api.d.ts.map +1 -0
  76. package/build/ts/surfaces/point-of-sale/api.d.ts +1 -0
  77. package/build/ts/surfaces/point-of-sale/api.d.ts.map +1 -1
  78. package/build/ts/surfaces/point-of-sale/components/Image.d.ts +26 -1
  79. package/build/ts/surfaces/point-of-sale/components/targets/ResolutionComponents.d.ts +10 -0
  80. package/build/ts/surfaces/point-of-sale/components/targets/ResolutionComponents.d.ts.map +1 -0
  81. package/build/ts/surfaces/point-of-sale/events.d.ts +26 -13
  82. package/build/ts/surfaces/point-of-sale/events.d.ts.map +1 -1
  83. package/build/ts/surfaces/point-of-sale/extension-targets.d.ts +15 -1
  84. package/build/ts/surfaces/point-of-sale/extension-targets.d.ts.map +1 -1
  85. package/build/ts/surfaces/point-of-sale/globals.d.ts +1 -1
  86. package/build/ts/surfaces/point-of-sale/globals.d.ts.map +1 -1
  87. package/build/ts/surfaces/point-of-sale/targets/pos.cart.validations.resolution.render.d.ts +44 -0
  88. package/build/ts/surfaces/point-of-sale/targets/pos.payment.validations.resolution.render.d.ts +44 -0
  89. package/build/ts/surfaces/point-of-sale/types/cart.d.ts +4 -0
  90. package/build/ts/surfaces/point-of-sale/types/cart.d.ts.map +1 -1
  91. package/build/ts/surfaces/point-of-sale/types/storage.d.ts +1 -1
  92. package/build/ts/surfaces/point-of-sale/types/storage.d.ts.map +1 -1
  93. package/build/tsconfig.tsbuildinfo +1 -1
  94. package/package.json +14 -13
  95. package/src/surfaces/admin/components/Popover.d.ts +655 -0
  96. package/src/surfaces/admin/components/StandardComponents.ts +1 -0
  97. package/src/surfaces/admin/extension-targets.ts +1 -17
  98. package/src/surfaces/checkout/api/standard/standard.ts +8 -5
  99. package/src/surfaces/checkout/preact/market.ts +8 -2
  100. package/src/surfaces/customer-account/api/order-status/order-status.ts +6 -1
  101. package/src/surfaces/customer-account/preact/market.ts +8 -2
  102. package/src/surfaces/point-of-sale/api/resolution-api/resolution-api.ts +24 -0
  103. package/src/surfaces/point-of-sale/api.ts +4 -0
  104. package/src/surfaces/point-of-sale/components/Image.d.ts +26 -1
  105. package/src/surfaces/point-of-sale/components/targets/ResolutionComponents.ts +13 -0
  106. package/src/surfaces/point-of-sale/components.d.ts +38 -0
  107. package/src/surfaces/point-of-sale/events.ts +29 -19
  108. package/src/surfaces/point-of-sale/extension-targets.ts +32 -0
  109. package/src/surfaces/point-of-sale/globals.ts +1 -1
  110. package/src/surfaces/point-of-sale/types/cart.ts +4 -0
  111. package/src/surfaces/point-of-sale/types/storage.ts +1 -1
  112. package/build/ts/surfaces/admin/targets/admin.order-index.selection-print-action.should-render.d.ts +0 -6
  113. package/build/ts/surfaces/admin/targets/admin.product-index.selection-print-action.should-render.d.ts +0 -6
@@ -6,8 +6,14 @@ var api = require('./api.js');
6
6
  var subscription = require('./subscription.js');
7
7
 
8
8
  /**
9
- * Returns the market of the checkout, and automatically re-renders
10
- * your component if it changes.
9
+ * Returns the market of the checkout, carried over from the cart context.
10
+ * In cases where multiple markets match, this returns the most narrowly
11
+ * scoped country region market. Automatically re-renders your component
12
+ * if it changes.
13
+ *
14
+ * > Caution: This hook is deprecated and will be removed in a future version of the API.
15
+ *
16
+ * @deprecated This hook will be removed in a future version of the API.
11
17
  * @publicDocs
12
18
  */
13
19
  function useLocalizationMarket() {
@@ -7,8 +7,14 @@ var subscription = require('./subscription.js');
7
7
  var errors = require('./errors.js');
8
8
 
9
9
  /**
10
- * Returns the market of the checkout, and automatically re-renders
11
- * your component if it changes.
10
+ * Returns the market associated with the order, carried over from the cart
11
+ * context. In cases where multiple markets match, this returns the most
12
+ * narrowly scoped country region market. Automatically re-renders your
13
+ * component if it changes.
14
+ *
15
+ * > Caution: This hook is deprecated and will be removed in a future version of the API.
16
+ *
17
+ * @deprecated This hook will be removed in a future version of the API.
12
18
  */
13
19
  function useLocalizationMarket() {
14
20
  const api$1 = api.useApi();
@@ -43,7 +43,14 @@ const POS_INTERCEPT_NAMES = {
43
43
  */
44
44
 
45
45
  /**
46
- * Dispatched when staff attempts to leave the active cart for checkout.
46
+ * The data carried by a `cartvalidations` event.
47
+ *
48
+ * @private
49
+ */
50
+
51
+ /**
52
+ * The event a `cartvalidations` interceptor receives. Carries a snapshot of
53
+ * the POS cart taken when the event was produced.
47
54
  *
48
55
  * @private
49
56
  */
@@ -65,10 +72,15 @@ const POS_INTERCEPT_NAMES = {
65
72
  */
66
73
 
67
74
  /**
68
- * Dispatched when a tender is confirmed but not yet committed — after the
69
- * amount is entered, before the payment is recorded. One event per tender
70
- * attempt; split payments dispatch one event per tender, each carrying its
71
- * own amount.
75
+ * The event a `paymentvalidations` interceptor receives. Carries the tender
76
+ * attempt's payment method and amount; split payments produce one event per
77
+ * tender, each with its own amount.
78
+ *
79
+ * @private
80
+ */
81
+
82
+ /**
83
+ * The data carried by a `paymentvalidations` event.
72
84
  *
73
85
  * @private
74
86
  */
@@ -110,13 +122,12 @@ const POS_INTERCEPT_NAMES = {
110
122
  */
111
123
 
112
124
  /**
113
- * The validation targets valid for a given intercepted event.
125
+ * The interceptor callback for a POS interceptable workflow, keyed by the
126
+ * workflow name so the event and its valid validation targets stay paired.
114
127
  *
115
128
  * @private
116
129
  */
117
130
 
118
- /** @private */
119
-
120
131
  /**
121
132
  * The result an interceptor returns. An empty `operations` list allows the
122
133
  * workflow; an `ERROR` validation blocks it.
@@ -2,8 +2,14 @@ import { useApi } from './api.mjs';
2
2
  import { useSubscription } from './subscription.mjs';
3
3
 
4
4
  /**
5
- * Returns the market of the checkout, and automatically re-renders
6
- * your component if it changes.
5
+ * Returns the market of the checkout, carried over from the cart context.
6
+ * In cases where multiple markets match, this returns the most narrowly
7
+ * scoped country region market. Automatically re-renders your component
8
+ * if it changes.
9
+ *
10
+ * > Caution: This hook is deprecated and will be removed in a future version of the API.
11
+ *
12
+ * @deprecated This hook will be removed in a future version of the API.
7
13
  * @publicDocs
8
14
  */
9
15
  function useLocalizationMarket() {
@@ -3,8 +3,14 @@ import { useSubscription } from './subscription.mjs';
3
3
  import { ExtensionHasNoFieldError } from './errors.mjs';
4
4
 
5
5
  /**
6
- * Returns the market of the checkout, and automatically re-renders
7
- * your component if it changes.
6
+ * Returns the market associated with the order, carried over from the cart
7
+ * context. In cases where multiple markets match, this returns the most
8
+ * narrowly scoped country region market. Automatically re-renders your
9
+ * component if it changes.
10
+ *
11
+ * > Caution: This hook is deprecated and will be removed in a future version of the API.
12
+ *
13
+ * @deprecated This hook will be removed in a future version of the API.
8
14
  */
9
15
  function useLocalizationMarket() {
10
16
  const api = useApi();
@@ -39,7 +39,14 @@ const POS_INTERCEPT_NAMES = {
39
39
  */
40
40
 
41
41
  /**
42
- * Dispatched when staff attempts to leave the active cart for checkout.
42
+ * The data carried by a `cartvalidations` event.
43
+ *
44
+ * @private
45
+ */
46
+
47
+ /**
48
+ * The event a `cartvalidations` interceptor receives. Carries a snapshot of
49
+ * the POS cart taken when the event was produced.
43
50
  *
44
51
  * @private
45
52
  */
@@ -61,10 +68,15 @@ const POS_INTERCEPT_NAMES = {
61
68
  */
62
69
 
63
70
  /**
64
- * Dispatched when a tender is confirmed but not yet committed — after the
65
- * amount is entered, before the payment is recorded. One event per tender
66
- * attempt; split payments dispatch one event per tender, each carrying its
67
- * own amount.
71
+ * The event a `paymentvalidations` interceptor receives. Carries the tender
72
+ * attempt's payment method and amount; split payments produce one event per
73
+ * tender, each with its own amount.
74
+ *
75
+ * @private
76
+ */
77
+
78
+ /**
79
+ * The data carried by a `paymentvalidations` event.
68
80
  *
69
81
  * @private
70
82
  */
@@ -106,13 +118,12 @@ const POS_INTERCEPT_NAMES = {
106
118
  */
107
119
 
108
120
  /**
109
- * The validation targets valid for a given intercepted event.
121
+ * The interceptor callback for a POS interceptable workflow, keyed by the
122
+ * workflow name so the event and its valid validation targets stay paired.
110
123
  *
111
124
  * @private
112
125
  */
113
126
 
114
- /** @private */
115
-
116
127
  /**
117
128
  * The result an interceptor returns. An empty `operations` list allows the
118
129
  * workflow; an `ERROR` validation blocks it.
@@ -2,8 +2,14 @@ import { useApi } from './api.esnext';
2
2
  import { useSubscription } from './subscription.esnext';
3
3
 
4
4
  /**
5
- * Returns the market of the checkout, and automatically re-renders
6
- * your component if it changes.
5
+ * Returns the market of the checkout, carried over from the cart context.
6
+ * In cases where multiple markets match, this returns the most narrowly
7
+ * scoped country region market. Automatically re-renders your component
8
+ * if it changes.
9
+ *
10
+ * > Caution: This hook is deprecated and will be removed in a future version of the API.
11
+ *
12
+ * @deprecated This hook will be removed in a future version of the API.
7
13
  * @publicDocs
8
14
  */
9
15
  function useLocalizationMarket() {
@@ -3,8 +3,14 @@ import { useSubscription } from './subscription.esnext';
3
3
  import { ExtensionHasNoFieldError } from './errors.esnext';
4
4
 
5
5
  /**
6
- * Returns the market of the checkout, and automatically re-renders
7
- * your component if it changes.
6
+ * Returns the market associated with the order, carried over from the cart
7
+ * context. In cases where multiple markets match, this returns the most
8
+ * narrowly scoped country region market. Automatically re-renders your
9
+ * component if it changes.
10
+ *
11
+ * > Caution: This hook is deprecated and will be removed in a future version of the API.
12
+ *
13
+ * @deprecated This hook will be removed in a future version of the API.
8
14
  */
9
15
  function useLocalizationMarket() {
10
16
  const api = useApi();
@@ -39,7 +39,14 @@ const POS_INTERCEPT_NAMES = {
39
39
  */
40
40
 
41
41
  /**
42
- * Dispatched when staff attempts to leave the active cart for checkout.
42
+ * The data carried by a `cartvalidations` event.
43
+ *
44
+ * @private
45
+ */
46
+
47
+ /**
48
+ * The event a `cartvalidations` interceptor receives. Carries a snapshot of
49
+ * the POS cart taken when the event was produced.
43
50
  *
44
51
  * @private
45
52
  */
@@ -61,10 +68,15 @@ const POS_INTERCEPT_NAMES = {
61
68
  */
62
69
 
63
70
  /**
64
- * Dispatched when a tender is confirmed but not yet committed — after the
65
- * amount is entered, before the payment is recorded. One event per tender
66
- * attempt; split payments dispatch one event per tender, each carrying its
67
- * own amount.
71
+ * The event a `paymentvalidations` interceptor receives. Carries the tender
72
+ * attempt's payment method and amount; split payments produce one event per
73
+ * tender, each with its own amount.
74
+ *
75
+ * @private
76
+ */
77
+
78
+ /**
79
+ * The data carried by a `paymentvalidations` event.
68
80
  *
69
81
  * @private
70
82
  */
@@ -106,13 +118,12 @@ const POS_INTERCEPT_NAMES = {
106
118
  */
107
119
 
108
120
  /**
109
- * The validation targets valid for a given intercepted event.
121
+ * The interceptor callback for a POS interceptable workflow, keyed by the
122
+ * workflow name so the event and its valid validation targets stay paired.
110
123
  *
111
124
  * @private
112
125
  */
113
126
 
114
- /** @private */
115
-
116
127
  /**
117
128
  * The result an interceptor returns. An empty `operations` list allows the
118
129
  * workflow; an `ERROR` validation blocks it.