@shopify/ui-extensions 2025.10.0-rc.29 → 2025.10.0-rc.30
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/surfaces/point-of-sale/api/pin-pad-api.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/api/pin-pad-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/BlockExtensionComponents.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/BlockExtensionComponents.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/StandardComponents.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/StandardComponents.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.customer-details.block.render.d.ts +4 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.draft-order-details.block.render.d.ts +4 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.exchange.post.block.render.d.ts +4 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.order-details.block.render.d.ts +4 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.product-details.block.render.d.ts +4 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.purchase.post.block.render.d.ts +4 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.return.post.block.render.d.ts +4 -0
- package/build/ts/surfaces/point-of-sale/types/pin-pad.d.ts +4 -0
- package/build/ts/surfaces/point-of-sale/types/pin-pad.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/surfaces/point-of-sale/api/pin-pad-api.ts +3 -1
- package/src/surfaces/point-of-sale/api.ts +2 -0
- package/src/surfaces/point-of-sale/components/targets/BlockExtensionComponents.ts +6 -0
- package/src/surfaces/point-of-sale/components/targets/StandardComponents.ts +1 -0
- package/src/surfaces/point-of-sale/types/pin-pad.ts +4 -0
package/package.json
CHANGED
|
@@ -8,7 +8,9 @@ export interface PinPadApiContent {
|
|
|
8
8
|
* @param options the options for the pin pad
|
|
9
9
|
*/
|
|
10
10
|
showPinPad(
|
|
11
|
-
onSubmit: (
|
|
11
|
+
onSubmit: (
|
|
12
|
+
pin: number[],
|
|
13
|
+
) => Promise<PinValidationResult> | PinValidationResult,
|
|
12
14
|
options?: PinPadOptions,
|
|
13
15
|
): void;
|
|
14
16
|
}
|
|
@@ -2,11 +2,17 @@ export type BlockExtensionComponents =
|
|
|
2
2
|
| 'Badge'
|
|
3
3
|
| 'Button'
|
|
4
4
|
| 'DatePicker'
|
|
5
|
+
| 'DateSpinner'
|
|
5
6
|
| 'Dialog'
|
|
7
|
+
| 'Heading'
|
|
6
8
|
| 'Icon'
|
|
7
9
|
| 'Image'
|
|
10
|
+
| 'Modal'
|
|
8
11
|
| 'POSBlock'
|
|
12
|
+
| 'PosBlock' // Case is important in 2025-10
|
|
9
13
|
| 'POSBlockRow'
|
|
14
|
+
| 'PrintPreview'
|
|
15
|
+
| 'Section'
|
|
10
16
|
| 'Stack'
|
|
11
17
|
| 'Text'
|
|
12
18
|
| 'TimePicker';
|
|
@@ -23,6 +23,10 @@ export interface PinPadActionType {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
export interface PinPadOptions {
|
|
26
|
+
/**
|
|
27
|
+
* The function to be called when a pin is entered
|
|
28
|
+
*/
|
|
29
|
+
onPinEntry?: (pin: number[]) => void;
|
|
26
30
|
/**
|
|
27
31
|
* The function to be called when the pin pad modal is dismissed
|
|
28
32
|
*/
|