@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.
@@ -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`, `state`,
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<'line1' | 'line2' | 'city' | 'state' | 'postal_code' | 'country', string | string[]>
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<
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diagonal-hq/cli",
3
- "version": "0.26.1",
3
+ "version": "0.26.3",
4
4
  "description": "The diagonal CLI and the configuration helpers for file-based Diagonal workspaces.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {