@diagonal-hq/pages 0.5.1 → 0.5.2
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/index.d.ts +13 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -11066,8 +11066,8 @@ export type FormFieldInputProps = {
|
|
|
11066
11066
|
|
|
11067
11067
|
/**
|
|
11068
11068
|
* Prefix segments for `context.errors` lookups. Location fields read
|
|
11069
|
-
* `<prefix>.<subfield>` errors for `line1`, `line2`, `city`,
|
|
11070
|
-
* `postal_code`, and `country`. Pass `['display_address']` for errors such as
|
|
11069
|
+
* `<prefix>.<subfield>` errors for `display_name`, `line1`, `line2`, `city`,
|
|
11070
|
+
* `state`, `postal_code`, and `country`. Pass `['display_address']` for errors such as
|
|
11071
11071
|
* `display_address.line1`, shown beside Address line 1.
|
|
11072
11072
|
* Nested inline-create drafts append their draft index and child field key,
|
|
11073
11073
|
* so a caller rendering the `files` relation passes `['files']` for errors
|
|
@@ -11641,9 +11641,15 @@ export type FormLocationInputProps = PrimitiveFormFieldProps & {
|
|
|
11641
11641
|
|
|
11642
11642
|
/**
|
|
11643
11643
|
* Per-subfield validation errors, keyed by address field name
|
|
11644
|
-
* (`line1`, `line2`, `city`, `state`, `postal_code`, `country`).
|
|
11644
|
+
* (`display_name`, `line1`, `line2`, `city`, `state`, `postal_code`, `country`).
|
|
11645
11645
|
*/
|
|
11646
11646
|
errors?: LocationAddressFormErrors;
|
|
11647
|
+
|
|
11648
|
+
/**
|
|
11649
|
+
* Show the editable Display name row above Address line 1 in the expanded fields.
|
|
11650
|
+
* Defaults to `true`. Pass `false` on a form that should not collect a display name.
|
|
11651
|
+
*/
|
|
11652
|
+
showDisplayName?: boolean;
|
|
11647
11653
|
};
|
|
11648
11654
|
|
|
11649
11655
|
export type LocationValue = {
|
|
@@ -11661,7 +11667,10 @@ export type LocationValue = {
|
|
|
11661
11667
|
};
|
|
11662
11668
|
|
|
11663
11669
|
export type LocationAddressFormErrors = Partial<
|
|
11664
|
-
Record<
|
|
11670
|
+
Record<
|
|
11671
|
+
'display_name' | 'line1' | 'line2' | 'city' | 'state' | 'postal_code' | 'country',
|
|
11672
|
+
string | string[]
|
|
11673
|
+
>
|
|
11665
11674
|
>;
|
|
11666
11675
|
|
|
11667
11676
|
export type FormMarkdownInputProps = Omit<
|