@diagonal-hq/cli 0.26.1 → 0.26.3
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/dist/cli.mjs +401 -167
- package/dist/sdk-contract.d.ts +13 -4
- package/package.json +1 -1
package/dist/sdk-contract.d.ts
CHANGED
|
@@ -11004,8 +11004,8 @@ type FormFieldInputProps = {
|
|
|
11004
11004
|
|
|
11005
11005
|
/**
|
|
11006
11006
|
* Prefix segments for `context.errors` lookups. Location fields read
|
|
11007
|
-
* `<prefix>.<subfield>` errors for `line1`, `line2`, `city`,
|
|
11008
|
-
* `postal_code`, and `country`. Pass `['display_address']` for errors such as
|
|
11007
|
+
* `<prefix>.<subfield>` errors for `display_name`, `line1`, `line2`, `city`,
|
|
11008
|
+
* `state`, `postal_code`, and `country`. Pass `['display_address']` for errors such as
|
|
11009
11009
|
* `display_address.line1`, shown beside Address line 1.
|
|
11010
11010
|
* Nested inline-create drafts append their draft index and child field key,
|
|
11011
11011
|
* so a caller rendering the `files` relation passes `['files']` for errors
|
|
@@ -11579,9 +11579,15 @@ type FormLocationInputProps = PrimitiveFormFieldProps & {
|
|
|
11579
11579
|
|
|
11580
11580
|
/**
|
|
11581
11581
|
* Per-subfield validation errors, keyed by address field name
|
|
11582
|
-
* (`line1`, `line2`, `city`, `state`, `postal_code`, `country`).
|
|
11582
|
+
* (`display_name`, `line1`, `line2`, `city`, `state`, `postal_code`, `country`).
|
|
11583
11583
|
*/
|
|
11584
11584
|
errors?: LocationAddressFormErrors;
|
|
11585
|
+
|
|
11586
|
+
/**
|
|
11587
|
+
* Show the editable Display name row above Address line 1 in the expanded fields.
|
|
11588
|
+
* Defaults to `true`. Pass `false` on a form that should not collect a display name.
|
|
11589
|
+
*/
|
|
11590
|
+
showDisplayName?: boolean;
|
|
11585
11591
|
};
|
|
11586
11592
|
|
|
11587
11593
|
type LocationValue = {
|
|
@@ -11599,7 +11605,10 @@ type LocationValue = {
|
|
|
11599
11605
|
};
|
|
11600
11606
|
|
|
11601
11607
|
type LocationAddressFormErrors = Partial<
|
|
11602
|
-
Record<
|
|
11608
|
+
Record<
|
|
11609
|
+
'display_name' | 'line1' | 'line2' | 'city' | 'state' | 'postal_code' | 'country',
|
|
11610
|
+
string | string[]
|
|
11611
|
+
>
|
|
11603
11612
|
>;
|
|
11604
11613
|
|
|
11605
11614
|
type FormMarkdownInputProps = Omit<
|