@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.
- package/build/cjs/surfaces/checkout/preact/market.js +8 -2
- package/build/cjs/surfaces/customer-account/preact/market.js +8 -2
- package/build/cjs/surfaces/point-of-sale/events.js +19 -8
- package/build/esm/surfaces/checkout/preact/market.mjs +8 -2
- package/build/esm/surfaces/customer-account/preact/market.mjs +8 -2
- package/build/esm/surfaces/point-of-sale/events.mjs +19 -8
- package/build/esnext/surfaces/checkout/preact/market.esnext +8 -2
- package/build/esnext/surfaces/customer-account/preact/market.esnext +8 -2
- package/build/esnext/surfaces/point-of-sale/events.esnext +19 -8
- package/build/ts/surfaces/admin/components/Popover.d.ts +655 -0
- package/build/ts/surfaces/admin/components/StandardComponents.d.ts +1 -1
- package/build/ts/surfaces/admin/components/StandardComponents.d.ts.map +1 -1
- package/build/ts/surfaces/admin/extension-targets.d.ts +0 -8
- package/build/ts/surfaces/admin/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-index.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.app.home.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.app.intent.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.catalog-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.catalog-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.collection-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.collection-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.collection-index.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.company-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.company-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.company-location-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.customer-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.customer-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.customer-index.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.customer-index.selection-action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.customer-segment-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.discount-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.discount-details.function-settings.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.discount-index.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.discount-index.selection-action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.draft-order-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.draft-order-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.draft-order-index.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.draft-order-index.selection-action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.gift-card-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.gift-card-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.order-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.order-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.order-details.print-action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.order-fulfilled-card.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.order-index.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.order-index.selection-action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.order-index.selection-print-action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.product-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.product-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.product-details.configuration.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.product-details.print-action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.product-details.reorder.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.product-index.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.product-index.selection-action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.product-index.selection-print-action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.product-purchase-option.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.configuration.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.product-variant-purchase-option.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.settings.internal-order-routing-rule.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.settings.order-routing-rule.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.settings.validation.render.d.ts +1 -0
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts +8 -5
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/market.d.ts +8 -2
- package/build/ts/surfaces/checkout/preact/market.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts +6 -1
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/preact/market.d.ts +8 -2
- package/build/ts/surfaces/customer-account/preact/market.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/resolution-api/resolution-api.d.ts +23 -0
- package/build/ts/surfaces/point-of-sale/api/resolution-api/resolution-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Image.d.ts +26 -1
- package/build/ts/surfaces/point-of-sale/components/targets/ResolutionComponents.d.ts +10 -0
- package/build/ts/surfaces/point-of-sale/components/targets/ResolutionComponents.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/events.d.ts +26 -13
- package/build/ts/surfaces/point-of-sale/events.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/extension-targets.d.ts +15 -1
- package/build/ts/surfaces/point-of-sale/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/globals.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/globals.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.cart.validations.resolution.render.d.ts +44 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.payment.validations.resolution.render.d.ts +44 -0
- package/build/ts/surfaces/point-of-sale/types/cart.d.ts +4 -0
- package/build/ts/surfaces/point-of-sale/types/cart.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/storage.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/types/storage.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -13
- package/src/surfaces/admin/components/Popover.d.ts +655 -0
- package/src/surfaces/admin/components/StandardComponents.ts +1 -0
- package/src/surfaces/admin/extension-targets.ts +1 -17
- package/src/surfaces/checkout/api/standard/standard.ts +8 -5
- package/src/surfaces/checkout/preact/market.ts +8 -2
- package/src/surfaces/customer-account/api/order-status/order-status.ts +6 -1
- package/src/surfaces/customer-account/preact/market.ts +8 -2
- package/src/surfaces/point-of-sale/api/resolution-api/resolution-api.ts +24 -0
- package/src/surfaces/point-of-sale/api.ts +4 -0
- package/src/surfaces/point-of-sale/components/Image.d.ts +26 -1
- package/src/surfaces/point-of-sale/components/targets/ResolutionComponents.ts +13 -0
- package/src/surfaces/point-of-sale/components.d.ts +38 -0
- package/src/surfaces/point-of-sale/events.ts +29 -19
- package/src/surfaces/point-of-sale/extension-targets.ts +32 -0
- package/src/surfaces/point-of-sale/globals.ts +1 -1
- package/src/surfaces/point-of-sale/types/cart.ts +4 -0
- package/src/surfaces/point-of-sale/types/storage.ts +1 -1
- package/build/ts/surfaces/admin/targets/admin.order-index.selection-print-action.should-render.d.ts +0 -6
- 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,
|
|
10
|
-
*
|
|
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
|
|
11
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
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
|
|
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,
|
|
6
|
-
*
|
|
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
|
|
7
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
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
|
|
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,
|
|
6
|
-
*
|
|
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
|
|
7
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
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
|
|
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.
|