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

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 (31) hide show
  1. package/build/cjs/surfaces/point-of-sale/events.js +19 -8
  2. package/build/esm/surfaces/point-of-sale/events.mjs +19 -8
  3. package/build/esnext/surfaces/point-of-sale/events.esnext +19 -8
  4. package/build/ts/surfaces/point-of-sale/api/resolution-api/resolution-api.d.ts +23 -0
  5. package/build/ts/surfaces/point-of-sale/api/resolution-api/resolution-api.d.ts.map +1 -0
  6. package/build/ts/surfaces/point-of-sale/api.d.ts +1 -0
  7. package/build/ts/surfaces/point-of-sale/api.d.ts.map +1 -1
  8. package/build/ts/surfaces/point-of-sale/components/Image.d.ts +26 -1
  9. package/build/ts/surfaces/point-of-sale/components/targets/ResolutionComponents.d.ts +10 -0
  10. package/build/ts/surfaces/point-of-sale/components/targets/ResolutionComponents.d.ts.map +1 -0
  11. package/build/ts/surfaces/point-of-sale/events.d.ts +26 -13
  12. package/build/ts/surfaces/point-of-sale/events.d.ts.map +1 -1
  13. package/build/ts/surfaces/point-of-sale/extension-targets.d.ts +15 -1
  14. package/build/ts/surfaces/point-of-sale/extension-targets.d.ts.map +1 -1
  15. package/build/ts/surfaces/point-of-sale/globals.d.ts +1 -1
  16. package/build/ts/surfaces/point-of-sale/globals.d.ts.map +1 -1
  17. package/build/ts/surfaces/point-of-sale/targets/pos.cart.validations.resolution.render.d.ts +44 -0
  18. package/build/ts/surfaces/point-of-sale/targets/pos.payment.validations.resolution.render.d.ts +44 -0
  19. package/build/ts/surfaces/point-of-sale/types/storage.d.ts +1 -1
  20. package/build/ts/surfaces/point-of-sale/types/storage.d.ts.map +1 -1
  21. package/build/tsconfig.tsbuildinfo +1 -1
  22. package/package.json +1 -1
  23. package/src/surfaces/point-of-sale/api/resolution-api/resolution-api.ts +24 -0
  24. package/src/surfaces/point-of-sale/api.ts +4 -0
  25. package/src/surfaces/point-of-sale/components/Image.d.ts +26 -1
  26. package/src/surfaces/point-of-sale/components/targets/ResolutionComponents.ts +13 -0
  27. package/src/surfaces/point-of-sale/components.d.ts +38 -0
  28. package/src/surfaces/point-of-sale/events.ts +29 -19
  29. package/src/surfaces/point-of-sale/extension-targets.ts +32 -0
  30. package/src/surfaces/point-of-sale/globals.ts +1 -1
  31. package/src/surfaces/point-of-sale/types/storage.ts +1 -1
@@ -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.
@@ -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.
@@ -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.
@@ -0,0 +1,23 @@
1
+ import type { ReadonlySignalLike } from '../../../../shared';
2
+ /**
3
+ * The `ResolutionApi` object gives a validation resolution target access to
4
+ * the data of the intercepted event it was opened to resolve. Access it
5
+ * through `shopify.resolution`.
6
+ *
7
+ * @private
8
+ */
9
+ export interface ResolutionApi<TEventData> {
10
+ resolution: ResolutionApiContent<TEventData>;
11
+ }
12
+ /**
13
+ * @private
14
+ */
15
+ export interface ResolutionApiContent<TEventData> {
16
+ /**
17
+ * The data of the intercepted event this resolution target was opened for.
18
+ * The `value` property provides the current data, and `subscribe` allows
19
+ * listening for host-owned revalidation updates.
20
+ */
21
+ event: ReadonlySignalLike<TEventData>;
22
+ }
23
+ //# sourceMappingURL=resolution-api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolution-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/resolution-api/resolution-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,oBAAoB,CAAC;AAE3D;;;;;;GAMG;AACH,MAAM,WAAW,aAAa,CAAC,UAAU;IACvC,UAAU,EAAE,oBAAoB,CAAC,UAAU,CAAC,CAAC;CAC9C;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB,CAAC,UAAU;IAC9C;;;;OAIG;IACH,KAAK,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;CACvC"}
@@ -6,6 +6,7 @@ export type { StandardApi } from './api/standard/standard-api';
6
6
  export type { ExtensionApi, ExtensionApiContent, } from './api/extension-api/extension-api';
7
7
  export type { ActionTargetApi } from './api/action-target-api/action-target-api';
8
8
  export type { DataTargetApi } from './api/data-target-api/data-target-api';
9
+ export type { ResolutionApi, ResolutionApiContent, } from './api/resolution-api/resolution-api';
9
10
  export type { TransactionCompleteEvent, CashTrackingSessionStartEvent, CashTrackingSessionCompleteEvent, ShopifyEventMap, } from './events';
10
11
  export type { CameraApi, CameraApiContent, CameraMediaOptions, CameraMediaResponse, } from './api/camera-api/camera-api';
11
12
  export type { ConnectivityStateSeverity, ConnectivityState, ConnectivityApiContent, ConnectivityApi, } from './api/connectivity-api/connectivity-api';
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/point-of-sale/api.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,OAAO,EACP,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EAAC,eAAe,EAAC,MAAM,6CAA6C,CAAC;AAEjF,YAAY,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AAEzE,YAAY,EAAC,SAAS,EAAE,gBAAgB,EAAC,MAAM,6BAA6B,CAAC;AAE7E,YAAY,EAAC,WAAW,EAAC,MAAM,6BAA6B,CAAC;AAC7D,YAAY,EACV,YAAY,EACZ,mBAAmB,GACpB,MAAM,mCAAmC,CAAC;AAC3C,YAAY,EAAC,eAAe,EAAC,MAAM,2CAA2C,CAAC;AAC/E,YAAY,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACzE,YAAY,EACV,wBAA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,cAAc,EACd,oBAAoB,EACpB,6BAA6B,EAC7B,aAAa,GACd,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AAEtD,YAAY,EAAC,OAAO,EAAE,WAAW,EAAC,MAAM,iBAAiB,CAAC;AAC1D,YAAY,EAAC,OAAO,EAAE,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AAElE,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAE7C,YAAY,EAAC,gBAAgB,EAAE,SAAS,EAAC,MAAM,mBAAmB,CAAC;AACnE,YAAY,EACV,aAAa,EACb,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,iBAAiB,CAAC"}
@@ -8,7 +8,13 @@
8
8
  /* eslint-disable import-x/namespace */
9
9
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
10
10
  /// <reference lib="DOM" />
11
- import type {ImageProps, Key, Ref} from './components-shared.d.ts';
11
+ import type {
12
+ BorderRadiusKeyword,
13
+ ImageProps,
14
+ Key,
15
+ MaybeAllValuesShorthandProperty,
16
+ Ref,
17
+ } from './components-shared.d.ts';
12
18
 
13
19
  /** @publicDocs */
14
20
  export type ComponentChildren = any;
@@ -60,6 +66,25 @@ export interface ImageJSXProps extends Pick<ImageProps, 'id' | 'objectFit'> {
60
66
  * The image source URL (remote URL or local file resource). When loading or no src is provided, a placeholder is rendered. Ensure URLs are properly formatted and properly formatted.
61
67
  */
62
68
  src?: ImageProps['src'];
69
+ /**
70
+ * Border radius for the image corners.
71
+ *
72
+ * [1-to-4-value syntax](https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties#edges_of_a_box) is
73
+ * supported. Note that, contrary to CSS, it uses flow-relative values and the order is:
74
+ *
75
+ * - 4 values: `start-start start-end end-end end-start`
76
+ * - 3 values: `start-start (start-end & end-start) end-end`
77
+ * - 2 values: `(start-start & end-end) (start-end & end-start)`
78
+ *
79
+ * For example:
80
+ * - `base` means all corners have `base` radius
81
+ * - `base none` means start-start and end-end corners are `base`, start-end and end-start corners are `none`
82
+ * - `base none large` means start-start is `base`, start-end and end-start are `none`, end-end is `large`
83
+ * - `base none large small` means start-start is `base`, start-end is `none`, end-end is `large`, end-start is `small`
84
+ *
85
+ * @default 'none'
86
+ */
87
+ borderRadius?: MaybeAllValuesShorthandProperty<BorderRadiusKeyword>;
63
88
  }
64
89
  declare global {
65
90
  interface HTMLElementTagNameMap {
@@ -0,0 +1,10 @@
1
+ import type { StandardComponents } from './StandardComponents';
2
+ /**
3
+ * Components available on validation resolution targets. Resolution UI renders
4
+ * inside a POS-owned flow step, so page-level and block-level containers are
5
+ * excluded, along with the smart-grid-only `Tile`.
6
+ *
7
+ * @private
8
+ */
9
+ export type ResolutionComponents = Exclude<StandardComponents, 'Page' | 'POSBlock' | 'PosBlock' | 'Tile'>;
10
+ //# sourceMappingURL=ResolutionComponents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResolutionComponents.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/targets/ResolutionComponents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AAE7D;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,CACxC,kBAAkB,EAClB,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,CAC1C,CAAC"}
@@ -54,15 +54,23 @@ export interface ShopifyInterceptMap {
54
54
  [POS_INTERCEPT_NAMES.PAYMENT_VALIDATIONS]: PaymentValidationsEvent;
55
55
  }
56
56
  /**
57
- * Dispatched when staff attempts to leave the active cart for checkout.
57
+ * The data carried by a `cartvalidations` event.
58
58
  *
59
59
  * @private
60
60
  */
61
- export interface CartValidationsEvent extends Event {
62
- readonly type: typeof POS_INTERCEPT_NAMES.CART_VALIDATIONS;
63
- /** The POS cart at the point checkout was requested. */
61
+ export interface CartValidationsEventData {
62
+ /** A snapshot of the POS cart taken when the event was produced. */
64
63
  readonly cart: Cart;
65
64
  }
65
+ /**
66
+ * The event a `cartvalidations` interceptor receives. Carries a snapshot of
67
+ * the POS cart taken when the event was produced.
68
+ *
69
+ * @private
70
+ */
71
+ export interface CartValidationsEvent extends CartValidationsEventData {
72
+ readonly type: typeof POS_INTERCEPT_NAMES.CART_VALIDATIONS;
73
+ }
66
74
  /**
67
75
  * The kind of payment method being attempted.
68
76
  *
@@ -84,15 +92,21 @@ export interface InterceptedPaymentMethod {
84
92
  readonly identifier?: string;
85
93
  }
86
94
  /**
87
- * Dispatched when a tender is confirmed but not yet committed — after the
88
- * amount is entered, before the payment is recorded. One event per tender
89
- * attempt; split payments dispatch one event per tender, each carrying its
90
- * own amount.
95
+ * The event a `paymentvalidations` interceptor receives. Carries the tender
96
+ * attempt's payment method and amount; split payments produce one event per
97
+ * tender, each with its own amount.
91
98
  *
92
99
  * @private
93
100
  */
94
- export interface PaymentValidationsEvent extends Event {
101
+ export interface PaymentValidationsEvent extends PaymentValidationsEventData {
95
102
  readonly type: typeof POS_INTERCEPT_NAMES.PAYMENT_VALIDATIONS;
103
+ }
104
+ /**
105
+ * The data carried by a `paymentvalidations` event.
106
+ *
107
+ * @private
108
+ */
109
+ export interface PaymentValidationsEventData {
96
110
  /** The payment method staff selected. */
97
111
  readonly paymentMethod: InterceptedPaymentMethod;
98
112
  /** The amount this tender would charge, in presentment currency. */
@@ -138,13 +152,12 @@ interface ValidationTargetMap {
138
152
  [POS_INTERCEPT_NAMES.PAYMENT_VALIDATIONS]: PaymentValidationTarget;
139
153
  }
140
154
  /**
141
- * The validation targets valid for a given intercepted event.
155
+ * The interceptor callback for a POS interceptable workflow, keyed by the
156
+ * workflow name so the event and its valid validation targets stay paired.
142
157
  *
143
158
  * @private
144
159
  */
145
- export type ValidationTargetFor<TEvent extends Event> = TEvent['type'] extends keyof ValidationTargetMap ? ValidationTargetMap[TEvent['type']] : ValidationTarget;
146
- /** @private */
147
- export type ShopifyInterceptor<TEvent extends Event> = (event: TEvent) => InterceptResult<ValidationTargetFor<TEvent>>;
160
+ export type ShopifyInterceptor<K extends keyof ShopifyInterceptMap> = (event: ShopifyInterceptMap[K]) => InterceptResult<ValidationTargetMap[K]>;
148
161
  /**
149
162
  * The result an interceptor returns. An empty `operations` list allows the
150
163
  * workflow; an `ERROR` validation blocks it.
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/point-of-sale/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,qCAAqC,CAAC;AAClF,OAAO,KAAK,EACV,6BAA6B,EAC7B,gCAAgC,EACjC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,eAAe,CAAC;AAE3C;;;;;GAKG;AACH,eAAO,MAAM,eAAe;;;;CAIlB,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;CAGtB,CAAC;AAEX;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,CAAC,eAAe,CAAC,oBAAoB,CAAC,EAAE,wBAAwB,CAAC;IACjE,qDAAqD;IACrD,CAAC,eAAe,CAAC,2BAA2B,CAAC,EAAE,6BAA6B,CAAC;IAC7E,2EAA2E;IAC3E,CAAC,eAAe,CAAC,8BAA8B,CAAC,EAAE,gCAAgC,CAAC;CACpF;AAED;;;;;;GAMG;AACH,MAAM,WAAW,mBAAmB;IAClC,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,oBAAoB,CAAC;IAC7D,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,EAAE,uBAAuB,CAAC;CACpE;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAqB,SAAQ,KAAK;IACjD,QAAQ,CAAC,IAAI,EAAE,OAAO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D,uDAAuD;IACvD,KAAK,EAAE,eAAe,CAAC;IAEvB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,YAAY,EACV,wBAAwB,EACxB,6BAA6B,EAC7B,gCAAgC,GACjC,CAAC"}
@@ -1,11 +1,13 @@
1
1
  import type { RenderExtension, RunnableExtension } from '../../extension';
2
2
  import type { DataTargetApi } from './api/data-target-api/data-target-api';
3
- import type { StandardApi, ActionApi, ActionTargetApi, CartApi, CartLineItemApi, CustomerApi, DraftOrderApi, ProductApi, OrderApi, StorageApi, CashDrawerApi } from './api';
3
+ import type { StandardApi, ActionApi, ActionTargetApi, CartApi, CartLineItemApi, CustomerApi, DraftOrderApi, ProductApi, OrderApi, StorageApi, CashDrawerApi, ReadonlyCartApi, ScannerApi, ResolutionApi } from './api';
4
+ import type { CartValidationsEventData, PaymentValidationsEventData } from './events';
4
5
  import type { ActionExtensionComponents } from './components/targets/ActionExtensionComponents';
5
6
  import type { BlockExtensionComponents } from './components/targets/BlockExtensionComponents';
6
7
  import type { SmartGridComponents } from './components/targets/SmartGridComponents';
7
8
  import type { ReceiptComponents } from './components/targets/ReceiptComponents';
8
9
  import type { BasicComponents } from './components/targets/BasicComponents';
10
+ import type { ResolutionComponents } from './components/targets/ResolutionComponents';
9
11
  import type { TransactionCompleteWithReprintData } from './event/data';
10
12
  /**
11
13
  * @publicDocs
@@ -222,6 +224,18 @@ export interface RenderExtensionTargets {
222
224
  * Extensions at this target appear as persistent blocks within the register details interface and support interactive elements that can launch modal workflows using `shopify.action.presentModal()` for more complex register operations.
223
225
  */
224
226
  'pos.register-details.block.render': RenderExtension<StandardApi<'pos.register-details.block.render'> & ActionApi & CashDrawerApi, BlockExtensionComponents>;
227
+ /**
228
+ * Renders the remediation interface when a `cartvalidations` interceptor returns a validation. Use this target to resolve all of the app's findings for the event.
229
+ *
230
+ * @private
231
+ */
232
+ 'pos.cart.validations.resolution.render': RenderExtension<StandardApi<'pos.cart.validations.resolution.render'> & ScannerApi & CartApi & ResolutionApi<CartValidationsEventData>, ResolutionComponents>;
233
+ /**
234
+ * Renders the remediation interface when a `paymentvalidations` interceptor returns a validation. Use this target to resolve all of the app's findings for the event.
235
+ *
236
+ * @private
237
+ */
238
+ 'pos.payment.validations.resolution.render': RenderExtension<StandardApi<'pos.payment.validations.resolution.render'> & ScannerApi & ReadonlyCartApi & ResolutionApi<PaymentValidationsEventData>, ResolutionComponents>;
225
239
  }
226
240
  /**
227
241
  * @publicDocs
@@ -1 +1 @@
1
- {"version":3,"file":"extension-targets.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/point-of-sale/extension-targets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,eAAe,EAAE,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAExE,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AAEzE,OAAO,KAAK,EACV,WAAW,EACX,SAAS,EACT,eAAe,EACf,OAAO,EACP,eAAe,EACf,WAAW,EACX,aAAa,EACb,UAAU,EACV,QAAQ,EACR,UAAU,EACV,aAAa,EACd,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,gDAAgD,CAAC;AAC9F,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,+CAA+C,CAAC;AAC5F,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,0CAA0C,CAAC;AAClF,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,wCAAwC,CAAC;AAC9E,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,sCAAsC,CAAC;AAC1E,OAAO,KAAK,EAAC,kCAAkC,EAAC,MAAM,cAAc,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,oBAAoB,EAAE,iBAAiB,CACrC,aAAa,CAAC,oBAAoB,CAAC,EACnC,SAA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a,EACrE,eAAe,CAChB,CAAC;IACF;;;;OAIG;IACH,mCAAmC,EAAE,eAAe,CAClD,WAAW,CAAC,mCAAmC,CAAC,GAC9C,SAAS,GACT,aAAa,EACf,wBAAwB,CACzB,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,gBACf,SAAQ,sBAAsB,EAC5B,oBAAoB;CAAG;AAE3B;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,sBAAsB,CAAC;AACjE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,oBAAoB,CAAC;AAC7D;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"extension-targets.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/point-of-sale/extension-targets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,eAAe,EAAE,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAExE,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AAEzE,OAAO,KAAK,EACV,WAAW,EACX,SAAS,EACT,eAAe,EACf,OAAO,EACP,eAAe,EACf,WAAW,EACX,aAAa,EACb,UAAU,EACV,QAAQ,EACR,UAAU,EACV,aAAa,EACb,eAAe,EACf,UAAU,EACV,aAAa,EACd,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,gDAAgD,CAAC;AAC9F,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,+CAA+C,CAAC;AAC5F,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,0CAA0C,CAAC;AAClF,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,wCAAwC,CAAC;AAC9E,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,sCAAsC,CAAC;AAC1E,OAAO,KAAK,EAAC,oBA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,CAAC;IACF;;;;OAIG;IACH,8CAA8C,EAAE,eAAe,CAC7D,WAAW,CAAC,8CAA8C,CAAC,GACzD,SAAS,GACT,aAAa,EACf,yBAAyB,CAC1B,CAAC;IACF;;;;OAIG;IACH,oCAAoC,EAAE,eAAe,CACnD,eAAe,CAAC,oCAAoC,CAAC,GAAG,aAAa,EACrE,eAAe,CAChB,CAAC;IACF;;;;OAIG;IACH,mCAAmC,EAAE,eAAe,CAClD,WAAW,CAAC,mCAAmC,CAAC,GAC9C,SAAS,GACT,aAAa,EACf,wBAAwB,CACzB,CAAC;IACF;;;;OAIG;IACH,wCAAwC,EAAE,eAAe,CACvD,WAAW,CAAC,wCAAwC,CAAC,GACnD,UAAU,GACV,OAAO,GACP,aAAa,CAAC,wBAAwB,CAAC,EACzC,oBAAoB,CACrB,CAAC;IACF;;;;OAIG;IACH,2CAA2C,EAAE,eAAe,CAC1D,WAAW,CAAC,2CAA2C,CAAC,GACtD,UAAU,GACV,eAAe,GACf,aAAa,CAAC,2BAA2B,CAAC,EAC5C,oBAAoB,CACrB,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,gBACf,SAAQ,sBAAsB,EAC5B,oBAAoB;CAAG;AAE3B;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,sBAAsB,CAAC;AACjE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,oBAAoB,CAAC;AAC7D;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,gBAAgB,CAAC"}
@@ -34,7 +34,7 @@ export interface BackgroundShopifyGlobal extends ShopifyGlobal {
34
34
  *
35
35
  * @private
36
36
  */
37
- intercept<K extends keyof ShopifyInterceptMap>(type: K, interceptor: ShopifyInterceptor<ShopifyInterceptMap[K]>): () => void;
37
+ intercept<K extends keyof ShopifyInterceptMap>(type: K, interceptor: ShopifyInterceptor<K>): () => void;
38
38
  }
39
39
  declare global {
40
40
  const navigation: Navigation;
@@ -1 +1 @@
1
- {"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/point-of-sale/globals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAElB;;;;;GAKG;AACH,MAAM,WAAW,aAAa;CAAG;AAEjC;;;;;;;GAOG;AACH,MAAM,WAAW,uBAAwB,SAAQ,aAAa;IAC5D;;;;OAIG;IACH,gBAAgB,CAAC,CAAC,SAAS,MAAM,eAAe,EAC9C,IAAI,EAAE,CAAC,EACP,QAAQ,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,IAAI,GAC5C,IAAI,CAAC;IAER;;;OAGG;IACH,mBAAmB,CAAC,CAAC,SAAS,MAAM,eAAe,EACjD,IAAI,EAAE,CAAC,EACP,QAAQ,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,IAAI,GAC5C,IAAI,CAAC;IAER;;;;;OAKG;IACH,SAAS,CAAC,CAAC,SAAS,MAAM,mBAAmB,EAC3C,IAAI,EAAE,CAAC,EACP,WAAW,EAAE,kBAAkB,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,GACtD,MAAM,IAAI,CAAC;CACf;AAED,OAAO,CAAC,MAAM,CAAC;IAEb,MAAM,UAAU,EAAE,UAAU,CAAC;IAO7B,MAAM,OAAO,EAAE,aAAa,CAAC;CAC9B"}
1
+ {"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/point-of-sale/globals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAElB;;;;;GAKG;AACH,MAAM,WAAW,aAAa;CAAG;AAEjC;;;;;;;GAOG;AACH,MAAM,WAAW,uBAAwB,SAAQ,aAAa;IAC5D;;;;OAIG;IACH,gBAAgB,CAAC,CAAC,SAAS,MAAM,eAAe,EAC9C,IAAI,EAAE,CAAC,EACP,QAAQ,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,IAAI,GAC5C,IAAI,CAAC;IAER;;;OAGG;IACH,mBAAmB,CAAC,CAAC,SAAS,MAAM,eAAe,EACjD,IAAI,EAAE,CAAC,EACP,QAAQ,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,IAAI,GAC5C,IAAI,CAAC;IAER;;;;;OAKG;IACH,SAAS,CAAC,CAAC,SAAS,MAAM,mBAAmB,EAC3C,IAAI,EAAE,CAAC,EACP,WAAW,EAAE,kBAAkB,CAAC,CAAC,CAAC,GACjC,MAAM,IAAI,CAAC;CACf;AAED,OAAO,CAAC,MAAM,CAAC;IAEb,MAAM,UAAU,EAAE,UAAU,CAAC;IAO7B,MAAM,OAAO,EAAE,aAAa,CAAC;CAC9B"}
@@ -0,0 +1,44 @@
1
+ import "../components/Badge.d.ts";
2
+ import "../components/Banner.d.ts";
3
+ import "../components/Box.d.ts";
4
+ import "../components/Button.d.ts";
5
+ import "../components/Choice.d.ts";
6
+ import "../components/ChoiceList.d.ts";
7
+ import "../components/Clickable.d.ts";
8
+ import "../components/DateField.d.ts";
9
+ import "../components/DatePicker.d.ts";
10
+ import "../components/DateSpinner.d.ts";
11
+ import "../components/Divider.d.ts";
12
+ import "../components/EmailField.d.ts";
13
+ import "../components/Embed.d.ts";
14
+ import "../components/EmptyState.d.ts";
15
+ import "../components/Heading.d.ts";
16
+ import "../components/Icon.d.ts";
17
+ import "../components/Image.d.ts";
18
+ import "../components/Link.d.ts";
19
+ import "../components/Modal.d.ts";
20
+ import "../components/NumberField.d.ts";
21
+ import "../components/ScrollBox.d.ts";
22
+ import "../components/SearchField.d.ts";
23
+ import "../components/Section.d.ts";
24
+ import "../components/Spinner.d.ts";
25
+ import "../components/Stack.d.ts";
26
+ import "../components/Switch.d.ts";
27
+ import "../components/Tab.d.ts";
28
+ import "../components/TabList.d.ts";
29
+ import "../components/TabPanel.d.ts";
30
+ import "../components/Tabs.d.ts";
31
+ import "../components/Text.d.ts";
32
+ import "../components/TextArea.d.ts";
33
+ import "../components/TextField.d.ts";
34
+ import "../components/TimeField.d.ts";
35
+ import "../components/TimePicker.d.ts";
36
+ import type { ExtensionTargets } from '../extension-targets';
37
+ import '../globals';
38
+
39
+ export type * from '../events';
40
+
41
+ type Target = ExtensionTargets['pos.cart.validations.resolution.render'];
42
+ export type Api = Target['api'];
43
+ export type Output = Target['output'];
44
+
@@ -0,0 +1,44 @@
1
+ import "../components/Badge.d.ts";
2
+ import "../components/Banner.d.ts";
3
+ import "../components/Box.d.ts";
4
+ import "../components/Button.d.ts";
5
+ import "../components/Choice.d.ts";
6
+ import "../components/ChoiceList.d.ts";
7
+ import "../components/Clickable.d.ts";
8
+ import "../components/DateField.d.ts";
9
+ import "../components/DatePicker.d.ts";
10
+ import "../components/DateSpinner.d.ts";
11
+ import "../components/Divider.d.ts";
12
+ import "../components/EmailField.d.ts";
13
+ import "../components/Embed.d.ts";
14
+ import "../components/EmptyState.d.ts";
15
+ import "../components/Heading.d.ts";
16
+ import "../components/Icon.d.ts";
17
+ import "../components/Image.d.ts";
18
+ import "../components/Link.d.ts";
19
+ import "../components/Modal.d.ts";
20
+ import "../components/NumberField.d.ts";
21
+ import "../components/ScrollBox.d.ts";
22
+ import "../components/SearchField.d.ts";
23
+ import "../components/Section.d.ts";
24
+ import "../components/Spinner.d.ts";
25
+ import "../components/Stack.d.ts";
26
+ import "../components/Switch.d.ts";
27
+ import "../components/Tab.d.ts";
28
+ import "../components/TabList.d.ts";
29
+ import "../components/TabPanel.d.ts";
30
+ import "../components/Tabs.d.ts";
31
+ import "../components/Text.d.ts";
32
+ import "../components/TextArea.d.ts";
33
+ import "../components/TextField.d.ts";
34
+ import "../components/TimeField.d.ts";
35
+ import "../components/TimePicker.d.ts";
36
+ import type { ExtensionTargets } from '../extension-targets';
37
+ import '../globals';
38
+
39
+ export type * from '../events';
40
+
41
+ type Target = ExtensionTargets['pos.payment.validations.resolution.render'];
42
+ export type Api = Target['api'];
43
+ export type Output = Target['output'];
44
+
@@ -37,7 +37,7 @@ export interface Storage<BaseStorageTypes extends Record<string, any> = Record<s
37
37
  * });
38
38
  * ```
39
39
  */
40
- current?: SubscribableStorage<BaseStorageTypes>;
40
+ current: SubscribableStorage<BaseStorageTypes>;
41
41
  /**
42
42
  * Stores a value under the specified key, overwriting any existing value. Values must be JSON-serializable and return `StorageError` when storage limits are exceeded. Commonly used for storing user preferences, caching API responses, or passing contextual data from tiles to modals.
43
43
  *
@@ -1 +1 @@
1
- {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/point-of-sale/types/storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,iBAAiB,CAAC;AAExD;;GAEG;AACH,qBAAa,YAAa,SAAQ,KAAK;IAG5B,IAAI,EAAE,cAAc,GAAG,YAAY,GAAG,SAAS,GAAG,SAAS;IAF7D,IAAI,SAAkB;gBAEpB,IAAI,EAAE,cAAc,GAAG,YAAY,GAAG,SAAS,GAAG,SAAS,EAClE,OAAO,EAAE,MAAM;CAIlB;AACD;;;GAGG;AACH,MAAM,WAAW,OAAO,CACtB,gBAAgB,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAEtE;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,OAAO,CAAC,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IAEhD;;;;;;;;;;OAUG;IACH,GAAG,CACD,YAAY,SAAS,gBAAgB,GAAG,gBAAgB,EACxD,IAAI,SAAS,MAAM,YAAY,GAAG,MAAM,YAAY,EAEpD,GAAG,EAAE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