@shopify/ui-extensions 2025.10.0-rc.32 → 2025.10.0-rc.34

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": "2025.10.0-rc.32",
3
+ "version": "2025.10.0-rc.34",
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",
@@ -11,15 +11,17 @@ export interface PinPadResult {
11
11
 
12
12
  /**
13
13
  * Represents the result of the pin pad onSubmit function.
14
- * @typedef {('accept'|'reject')} PinValidationResult
14
+ * @typedef {{result: 'accept'} | {result: 'reject'; errorMessage?: string}} PinValidationResult
15
15
  */
16
- export type PinValidationResult = 'accept' | 'reject';
16
+ export type PinValidationResult =
17
+ | {result: 'accept'}
18
+ | {result: 'reject'; errorMessage?: string};
17
19
 
18
20
  export type PinLength = 4 | 5 | 6 | 7 | 8 | 9 | 10;
19
21
 
20
22
  export interface PinPadActionType {
21
23
  label: string;
22
- onClick: () => Promise<number[]>;
24
+ onClick: () => Promise<number[]> | number[];
23
25
  }
24
26
 
25
27
  export interface PinPadOptions {
@@ -55,4 +57,8 @@ export interface PinPadOptions {
55
57
  * Title shown in the modal header
56
58
  */
57
59
  title?: string;
60
+ /**
61
+ * Whether the pin should be automatically submitted when the user has entered the maximum PIN length
62
+ */
63
+ autoSubmit?: boolean;
58
64
  }