@stndrds/schema 1.0.0-alpha.198 → 1.0.0-alpha.199

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.
Files changed (47) hide show
  1. package/dist/{attributes-DP08iPCh.d.mts → attributes-Cn0v3e37.d.mts} +4 -0
  2. package/dist/{attributes-Ddhps_AU.d.ts → attributes-Cy9o_xM1.d.ts} +4 -0
  3. package/dist/{helpers-Bph8AoY7.d.mts → helpers-CED0HyXm.d.mts} +2 -2
  4. package/dist/{helpers-D9klos6x.d.ts → helpers-LCnn6DG3.d.ts} +2 -2
  5. package/dist/index.d.mts +6 -4
  6. package/dist/index.d.ts +6 -4
  7. package/dist/index.js +27 -5
  8. package/dist/index.mjs +27 -5
  9. package/dist/{types-iKvYBe6v.d.ts → types-B12E9LFe.d.ts} +1 -1
  10. package/dist/{types-D38kriFw.d.mts → types-CORdDGpb.d.mts} +1 -1
  11. package/dist/validation/all.d.mts +3 -3
  12. package/dist/validation/all.d.ts +3 -3
  13. package/dist/validation/complex/currency.d.mts +2 -2
  14. package/dist/validation/complex/currency.d.ts +2 -2
  15. package/dist/validation/complex/file.d.mts +2 -2
  16. package/dist/validation/complex/file.d.ts +2 -2
  17. package/dist/validation/complex/location.d.mts +2 -2
  18. package/dist/validation/complex/location.d.ts +2 -2
  19. package/dist/validation/complex/phone.d.mts +2 -2
  20. package/dist/validation/complex/phone.d.ts +2 -2
  21. package/dist/validation/complex/relation.d.mts +2 -2
  22. package/dist/validation/complex/relation.d.ts +2 -2
  23. package/dist/validation/complex/richtext.d.mts +2 -2
  24. package/dist/validation/complex/richtext.d.ts +2 -2
  25. package/dist/validation/complex/select.d.mts +2 -2
  26. package/dist/validation/complex/select.d.ts +2 -2
  27. package/dist/validation/complex/user.d.mts +2 -2
  28. package/dist/validation/complex/user.d.ts +2 -2
  29. package/dist/validation/computed/formula.d.mts +2 -2
  30. package/dist/validation/computed/formula.d.ts +2 -2
  31. package/dist/validation/computed/rollup.d.mts +2 -2
  32. package/dist/validation/computed/rollup.d.ts +2 -2
  33. package/dist/validation/config/index.d.mts +1 -1
  34. package/dist/validation/config/index.d.ts +1 -1
  35. package/dist/validation/core/index.d.mts +3 -3
  36. package/dist/validation/core/index.d.ts +3 -3
  37. package/dist/validation/object/index.d.mts +3 -3
  38. package/dist/validation/object/index.d.ts +3 -3
  39. package/dist/validation/primitives/checkbox.d.mts +2 -2
  40. package/dist/validation/primitives/checkbox.d.ts +2 -2
  41. package/dist/validation/primitives/date.d.mts +2 -2
  42. package/dist/validation/primitives/date.d.ts +2 -2
  43. package/dist/validation/primitives/number.d.mts +2 -2
  44. package/dist/validation/primitives/number.d.ts +2 -2
  45. package/dist/validation/primitives/text.d.mts +2 -2
  46. package/dist/validation/primitives/text.d.ts +2 -2
  47. package/package.json +2 -2
@@ -70,6 +70,8 @@ interface FolderPreset {
70
70
  icon?: IconName;
71
71
  description?: string;
72
72
  structure: PresetNode[];
73
+ /** When true, this preset is auto-instantiated on every new record's drive for the owning object. */
74
+ autoInstantiate?: boolean;
73
75
  }
74
76
  interface PresetNode {
75
77
  title: string;
@@ -590,10 +592,12 @@ interface LocationAttribute extends BaseAttribute<Location> {
590
592
  interface SelectAttribute extends BaseAttribute<string> {
591
593
  type: "select";
592
594
  options: Option[];
595
+ renderAs?: "badges";
593
596
  }
594
597
  interface MultiselectAttribute extends BaseAttribute<string[]> {
595
598
  type: "multiselect";
596
599
  options: Option[];
600
+ renderAs?: "badges";
597
601
  }
598
602
  interface FileAttribute extends BaseAttribute<string> {
599
603
  type: "file";
@@ -70,6 +70,8 @@ interface FolderPreset {
70
70
  icon?: IconName;
71
71
  description?: string;
72
72
  structure: PresetNode[];
73
+ /** When true, this preset is auto-instantiated on every new record's drive for the owning object. */
74
+ autoInstantiate?: boolean;
73
75
  }
74
76
  interface PresetNode {
75
77
  title: string;
@@ -590,10 +592,12 @@ interface LocationAttribute extends BaseAttribute<Location> {
590
592
  interface SelectAttribute extends BaseAttribute<string> {
591
593
  type: "select";
592
594
  options: Option[];
595
+ renderAs?: "badges";
593
596
  }
594
597
  interface MultiselectAttribute extends BaseAttribute<string[]> {
595
598
  type: "multiselect";
596
599
  options: Option[];
600
+ renderAs?: "badges";
597
601
  }
598
602
  interface FileAttribute extends BaseAttribute<string> {
599
603
  type: "file";
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { A as Attribute, O as ObjectDefinition, h as CompletionStatus } from './attributes-DP08iPCh.mjs';
3
- import { V as ValidationMessages, a as ValidationResult } from './types-D38kriFw.mjs';
2
+ import { A as Attribute, O as ObjectDefinition, h as CompletionStatus } from './attributes-Cn0v3e37.mjs';
3
+ import { V as ValidationMessages, a as ValidationResult } from './types-CORdDGpb.mjs';
4
4
 
5
5
  /**
6
6
  * Create a Zod schema for any attribute type.
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { A as Attribute, O as ObjectDefinition, h as CompletionStatus } from './attributes-Ddhps_AU.js';
3
- import { V as ValidationMessages, a as ValidationResult } from './types-iKvYBe6v.js';
2
+ import { A as Attribute, O as ObjectDefinition, h as CompletionStatus } from './attributes-Cy9o_xM1.js';
3
+ import { V as ValidationMessages, a as ValidationResult } from './types-B12E9LFe.js';
4
4
 
5
5
  /**
6
6
  * Create a Zod schema for any attribute type.
package/dist/index.d.mts CHANGED
@@ -1,15 +1,15 @@
1
- import { i as ComputedValueType, j as ComputedReturnType, k as AttributeType, l as ComputedOptionsSource, m as ComputedDependency, n as ComputedPlan, f as RollupAttribute, A as Attribute, o as Timestamps, p as DocumentLayout, h as CompletionStatus, q as SchemaOperation, r as LocationGranularity, s as Location, e as FormulaAttribute, t as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, u as Phone, v as Currency, D as DateAttribute, U as UserAttribute, w as DocumentSlotConfig, x as PropertySchema, g as CheckboxAttribute, C as CurrencyAttribute, T as TextAttribute, N as NumberAttribute, P as PhoneAttribute, y as Option, L as LocationAttribute, F as FileAttribute, z as FormulaReturnType, R as RelationAttribute, B as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, E as RelationTarget, a as RichtextAttribute, G as RollupFunction, H as UserReferenceType, I as MigrationDefinition, O as ObjectDefinition } from './attributes-DP08iPCh.mjs';
2
- export { J as AttributeGroup, K as BaseAttribute, Q as BuiltInTransform, V as ComputedAttributeState, W as ComputedFieldKind, X as ComputedStateStatus, Y as CreateDocument, Z as CreateDocumentLink, _ as CreateDocumentSlot, $ as DEFAULT_DOCUMENT_SLOT, a0 as DateFormat, a1 as DateValue, a2 as Document, a3 as DocumentKind, a4 as DocumentLayoutVariant, a5 as DocumentListOptions, a6 as DocumentSlot, a7 as DocumentWithSlots, a8 as DocumentWithSubCount, a9 as FolderPreset, aa as MAX_PRESET_DEPTH, ab as NumberUnit, ac as ObjectAttribute, ad as ObjectRecord, ae as OptionPropertyAttribute, af as PresetNode, ag as PropertyAttribute, ah as PropertyType, ai as RELATION_TARGET_ANY, aj as RESERVED_ATTRIBUTE_NAMES, ak as RecordDocuments, al as ReservedAttributeName, am as RichTextAttribute, an as SYSTEM_FIELD_NAMES, ao as SlotStatus, ap as StatusGroup, aq as SystemFieldName, ar as UpdateDocument, as as UpdateDocumentSlot, at as hasOptions, au as inferInverseCardinality, av as isAttributeSortable, aw as isBilateralRelation, ax as isUniversalRelation } from './attributes-DP08iPCh.mjs';
1
+ import { i as ComputedValueType, j as ComputedReturnType, k as AttributeType, l as ComputedOptionsSource, m as ComputedDependency, n as ComputedPlan, f as RollupAttribute, A as Attribute, o as Timestamps, p as DocumentLayout, h as CompletionStatus, q as SchemaOperation, r as LocationGranularity, s as Location, e as FormulaAttribute, t as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, u as Phone, v as Currency, D as DateAttribute, U as UserAttribute, w as DocumentSlotConfig, x as PropertySchema, g as CheckboxAttribute, C as CurrencyAttribute, T as TextAttribute, N as NumberAttribute, P as PhoneAttribute, y as Option, L as LocationAttribute, F as FileAttribute, z as FormulaReturnType, R as RelationAttribute, B as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, E as RelationTarget, a as RichtextAttribute, G as RollupFunction, H as UserReferenceType, I as MigrationDefinition, O as ObjectDefinition } from './attributes-Cn0v3e37.mjs';
2
+ export { J as AttributeGroup, K as BaseAttribute, Q as BuiltInTransform, V as ComputedAttributeState, W as ComputedFieldKind, X as ComputedStateStatus, Y as CreateDocument, Z as CreateDocumentLink, _ as CreateDocumentSlot, $ as DEFAULT_DOCUMENT_SLOT, a0 as DateFormat, a1 as DateValue, a2 as Document, a3 as DocumentKind, a4 as DocumentLayoutVariant, a5 as DocumentListOptions, a6 as DocumentSlot, a7 as DocumentWithSlots, a8 as DocumentWithSubCount, a9 as FolderPreset, aa as MAX_PRESET_DEPTH, ab as NumberUnit, ac as ObjectAttribute, ad as ObjectRecord, ae as OptionPropertyAttribute, af as PresetNode, ag as PropertyAttribute, ah as PropertyType, ai as RELATION_TARGET_ANY, aj as RESERVED_ATTRIBUTE_NAMES, ak as RecordDocuments, al as ReservedAttributeName, am as RichTextAttribute, an as SYSTEM_FIELD_NAMES, ao as SlotStatus, ap as StatusGroup, aq as SystemFieldName, ar as UpdateDocument, as as UpdateDocumentSlot, at as hasOptions, au as inferInverseCardinality, av as isAttributeSortable, aw as isBilateralRelation, ax as isUniversalRelation } from './attributes-Cn0v3e37.mjs';
3
3
  import { MimeType, IconName, ColorId, CountryIso3, CurrencyCode } from '@stndrds/constants';
4
4
  import { Uuid, TenantId } from './utils.mjs';
5
5
  export { UserId, asTenantId, asUserId, deepEqual, generateId, indexBy } from './utils.mjs';
6
6
  import { StandardSchemaV1 } from '@standard-schema/spec';
7
7
  export { StandardSchemaV1 } from '@standard-schema/spec';
8
8
  import z from 'zod';
9
- export { V as ValidationMessages } from './types-D38kriFw.mjs';
9
+ export { V as ValidationMessages } from './types-CORdDGpb.mjs';
10
10
  export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './validation/core/index.mjs';
11
11
  export { parseAttributeConfig } from './validation/config/index.mjs';
12
- export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-Bph8AoY7.mjs';
12
+ export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-CED0HyXm.mjs';
13
13
 
14
14
  declare const COMPUTED_FUNCTION_NAMES: readonly ["if", "concat", "sum", "avg", "count", "min", "max", "earliest", "latest", "unique", "first", "percent_empty", "percent_not_empty", "count_empty", "count_not_empty", "count_unique"];
15
15
  type ComputedFunctionName = (typeof COMPUTED_FUNCTION_NAMES)[number];
@@ -4728,6 +4728,7 @@ declare class SelectAttributeBuilder<TName extends string, TOptions extends read
4728
4728
  */
4729
4729
  options<const T extends readonly Option[]>(value: T): SelectAttributeBuilder<TName, T, TRequired>;
4730
4730
  option(config: Option): this;
4731
+ renderAs(value: "badges"): this;
4731
4732
  required(): SelectAttributeBuilder<TName, TOptions, true>;
4732
4733
  optional(): SelectAttributeBuilder<TName, TOptions, false>;
4733
4734
  }
@@ -4758,6 +4759,7 @@ declare class MultiselectAttributeBuilder<TName extends string, TOptions extends
4758
4759
  */
4759
4760
  options<const T extends readonly Option[]>(value: T): MultiselectAttributeBuilder<TName, T, TRequired>;
4760
4761
  option(config: Option): this;
4762
+ renderAs(value: "badges"): this;
4761
4763
  required(): MultiselectAttributeBuilder<TName, TOptions, true>;
4762
4764
  optional(): MultiselectAttributeBuilder<TName, TOptions, false>;
4763
4765
  }
package/dist/index.d.ts CHANGED
@@ -1,15 +1,15 @@
1
- import { i as ComputedValueType, j as ComputedReturnType, k as AttributeType, l as ComputedOptionsSource, m as ComputedDependency, n as ComputedPlan, f as RollupAttribute, A as Attribute, o as Timestamps, p as DocumentLayout, h as CompletionStatus, q as SchemaOperation, r as LocationGranularity, s as Location, e as FormulaAttribute, t as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, u as Phone, v as Currency, D as DateAttribute, U as UserAttribute, w as DocumentSlotConfig, x as PropertySchema, g as CheckboxAttribute, C as CurrencyAttribute, T as TextAttribute, N as NumberAttribute, P as PhoneAttribute, y as Option, L as LocationAttribute, F as FileAttribute, z as FormulaReturnType, R as RelationAttribute, B as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, E as RelationTarget, a as RichtextAttribute, G as RollupFunction, H as UserReferenceType, I as MigrationDefinition, O as ObjectDefinition } from './attributes-Ddhps_AU.js';
2
- export { J as AttributeGroup, K as BaseAttribute, Q as BuiltInTransform, V as ComputedAttributeState, W as ComputedFieldKind, X as ComputedStateStatus, Y as CreateDocument, Z as CreateDocumentLink, _ as CreateDocumentSlot, $ as DEFAULT_DOCUMENT_SLOT, a0 as DateFormat, a1 as DateValue, a2 as Document, a3 as DocumentKind, a4 as DocumentLayoutVariant, a5 as DocumentListOptions, a6 as DocumentSlot, a7 as DocumentWithSlots, a8 as DocumentWithSubCount, a9 as FolderPreset, aa as MAX_PRESET_DEPTH, ab as NumberUnit, ac as ObjectAttribute, ad as ObjectRecord, ae as OptionPropertyAttribute, af as PresetNode, ag as PropertyAttribute, ah as PropertyType, ai as RELATION_TARGET_ANY, aj as RESERVED_ATTRIBUTE_NAMES, ak as RecordDocuments, al as ReservedAttributeName, am as RichTextAttribute, an as SYSTEM_FIELD_NAMES, ao as SlotStatus, ap as StatusGroup, aq as SystemFieldName, ar as UpdateDocument, as as UpdateDocumentSlot, at as hasOptions, au as inferInverseCardinality, av as isAttributeSortable, aw as isBilateralRelation, ax as isUniversalRelation } from './attributes-Ddhps_AU.js';
1
+ import { i as ComputedValueType, j as ComputedReturnType, k as AttributeType, l as ComputedOptionsSource, m as ComputedDependency, n as ComputedPlan, f as RollupAttribute, A as Attribute, o as Timestamps, p as DocumentLayout, h as CompletionStatus, q as SchemaOperation, r as LocationGranularity, s as Location, e as FormulaAttribute, t as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, u as Phone, v as Currency, D as DateAttribute, U as UserAttribute, w as DocumentSlotConfig, x as PropertySchema, g as CheckboxAttribute, C as CurrencyAttribute, T as TextAttribute, N as NumberAttribute, P as PhoneAttribute, y as Option, L as LocationAttribute, F as FileAttribute, z as FormulaReturnType, R as RelationAttribute, B as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, E as RelationTarget, a as RichtextAttribute, G as RollupFunction, H as UserReferenceType, I as MigrationDefinition, O as ObjectDefinition } from './attributes-Cy9o_xM1.js';
2
+ export { J as AttributeGroup, K as BaseAttribute, Q as BuiltInTransform, V as ComputedAttributeState, W as ComputedFieldKind, X as ComputedStateStatus, Y as CreateDocument, Z as CreateDocumentLink, _ as CreateDocumentSlot, $ as DEFAULT_DOCUMENT_SLOT, a0 as DateFormat, a1 as DateValue, a2 as Document, a3 as DocumentKind, a4 as DocumentLayoutVariant, a5 as DocumentListOptions, a6 as DocumentSlot, a7 as DocumentWithSlots, a8 as DocumentWithSubCount, a9 as FolderPreset, aa as MAX_PRESET_DEPTH, ab as NumberUnit, ac as ObjectAttribute, ad as ObjectRecord, ae as OptionPropertyAttribute, af as PresetNode, ag as PropertyAttribute, ah as PropertyType, ai as RELATION_TARGET_ANY, aj as RESERVED_ATTRIBUTE_NAMES, ak as RecordDocuments, al as ReservedAttributeName, am as RichTextAttribute, an as SYSTEM_FIELD_NAMES, ao as SlotStatus, ap as StatusGroup, aq as SystemFieldName, ar as UpdateDocument, as as UpdateDocumentSlot, at as hasOptions, au as inferInverseCardinality, av as isAttributeSortable, aw as isBilateralRelation, ax as isUniversalRelation } from './attributes-Cy9o_xM1.js';
3
3
  import { MimeType, IconName, ColorId, CountryIso3, CurrencyCode } from '@stndrds/constants';
4
4
  import { Uuid, TenantId } from './utils.js';
5
5
  export { UserId, asTenantId, asUserId, deepEqual, generateId, indexBy } from './utils.js';
6
6
  import { StandardSchemaV1 } from '@standard-schema/spec';
7
7
  export { StandardSchemaV1 } from '@standard-schema/spec';
8
8
  import z from 'zod';
9
- export { V as ValidationMessages } from './types-iKvYBe6v.js';
9
+ export { V as ValidationMessages } from './types-B12E9LFe.js';
10
10
  export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './validation/core/index.js';
11
11
  export { parseAttributeConfig } from './validation/config/index.js';
12
- export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-D9klos6x.js';
12
+ export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-LCnn6DG3.js';
13
13
 
14
14
  declare const COMPUTED_FUNCTION_NAMES: readonly ["if", "concat", "sum", "avg", "count", "min", "max", "earliest", "latest", "unique", "first", "percent_empty", "percent_not_empty", "count_empty", "count_not_empty", "count_unique"];
15
15
  type ComputedFunctionName = (typeof COMPUTED_FUNCTION_NAMES)[number];
@@ -4728,6 +4728,7 @@ declare class SelectAttributeBuilder<TName extends string, TOptions extends read
4728
4728
  */
4729
4729
  options<const T extends readonly Option[]>(value: T): SelectAttributeBuilder<TName, T, TRequired>;
4730
4730
  option(config: Option): this;
4731
+ renderAs(value: "badges"): this;
4731
4732
  required(): SelectAttributeBuilder<TName, TOptions, true>;
4732
4733
  optional(): SelectAttributeBuilder<TName, TOptions, false>;
4733
4734
  }
@@ -4758,6 +4759,7 @@ declare class MultiselectAttributeBuilder<TName extends string, TOptions extends
4758
4759
  */
4759
4760
  options<const T extends readonly Option[]>(value: T): MultiselectAttributeBuilder<TName, T, TRequired>;
4760
4761
  option(config: Option): this;
4762
+ renderAs(value: "badges"): this;
4761
4763
  required(): MultiselectAttributeBuilder<TName, TOptions, true>;
4762
4764
  optional(): MultiselectAttributeBuilder<TName, TOptions, false>;
4763
4765
  }
package/dist/index.js CHANGED
@@ -139,7 +139,6 @@ var ATTRIBUTE_FILTER_OPERATORS = {
139
139
  };
140
140
  var COMPUTED_TYPES = /* @__PURE__ */ new Set(["formula", "rollup"]);
141
141
  var EDGE_BACKED_TYPES = /* @__PURE__ */ new Set(["file", "user", "relation", "document"]);
142
- var DIRECT_EDIT_TYPES = /* @__PURE__ */ new Set(["checkbox"]);
143
142
  var STATIC_DEFAULT_TYPES = /* @__PURE__ */ new Set([
144
143
  "text",
145
144
  "richtext",
@@ -202,6 +201,7 @@ function getAttributeCapabilities(attribute) {
202
201
  const maxItems = supportsMaxItems(attribute);
203
202
  const placeholder = PLACEHOLDER_TYPES.has(attribute.type);
204
203
  const warningWhenDeprecated = Boolean(attribute.deprecated && !suppressed);
204
+ const editMode = resolveEditMode(attribute);
205
205
  return {
206
206
  lifecycle: {
207
207
  active,
@@ -222,7 +222,7 @@ function getAttributeCapabilities(attribute) {
222
222
  authoring: {
223
223
  editable,
224
224
  readOnly,
225
- directEdit: editable && DIRECT_EDIT_TYPES.has(attribute.type),
225
+ directEdit: editable && editMode === "inline",
226
226
  required,
227
227
  defaultValue,
228
228
  placeholder,
@@ -233,7 +233,7 @@ function getAttributeCapabilities(attribute) {
233
233
  tableCell: !suppressed && isTableCellType(attribute.type),
234
234
  defaultColumn: !suppressed && isDefaultColumnType(attribute.type),
235
235
  compactDisplay: !suppressed,
236
- popoverEditor: !suppressed && isPopoverEditorType(attribute.type),
236
+ popoverEditor: !suppressed && editMode === "popover",
237
237
  placeholder,
238
238
  warningWhenDeprecated
239
239
  },
@@ -339,8 +339,22 @@ function isTableCellType(type) {
339
339
  function isFormFieldType(type) {
340
340
  return type !== "richtext";
341
341
  }
342
- function isPopoverEditorType(type) {
343
- return type === "select" || type === "status" || type === "multiselect" || type === "relation" || type === "user";
342
+ function resolveEditMode(attribute) {
343
+ switch (attribute.type) {
344
+ case "checkbox":
345
+ return "inline";
346
+ case "number":
347
+ return attribute.renderAs === "rating" ? "inline" : "default";
348
+ case "select":
349
+ case "multiselect":
350
+ return attribute.renderAs === "badges" ? "inline" : "popover";
351
+ case "status":
352
+ case "relation":
353
+ case "user":
354
+ return "popover";
355
+ default:
356
+ return "default";
357
+ }
344
358
  }
345
359
  function isGroupableType(type) {
346
360
  return type === "status" || type === "currency";
@@ -1591,6 +1605,10 @@ var SelectAttributeBuilder = class extends BaseAttributeBuilder {
1591
1605
  this.attr.options.push(config);
1592
1606
  return this;
1593
1607
  }
1608
+ renderAs(value) {
1609
+ this.attr.renderAs = value;
1610
+ return this;
1611
+ }
1594
1612
  required() {
1595
1613
  this.setRequired(true);
1596
1614
  return this.asRequiredState();
@@ -1625,6 +1643,10 @@ var MultiselectAttributeBuilder = class extends BaseAttributeBuilder {
1625
1643
  this.attr.options.push(config);
1626
1644
  return this;
1627
1645
  }
1646
+ renderAs(value) {
1647
+ this.attr.renderAs = value;
1648
+ return this;
1649
+ }
1628
1650
  required() {
1629
1651
  this.setRequired(true);
1630
1652
  return this.asRequiredState();
package/dist/index.mjs CHANGED
@@ -135,7 +135,6 @@ var ATTRIBUTE_FILTER_OPERATORS = {
135
135
  };
136
136
  var COMPUTED_TYPES = /* @__PURE__ */ new Set(["formula", "rollup"]);
137
137
  var EDGE_BACKED_TYPES = /* @__PURE__ */ new Set(["file", "user", "relation", "document"]);
138
- var DIRECT_EDIT_TYPES = /* @__PURE__ */ new Set(["checkbox"]);
139
138
  var STATIC_DEFAULT_TYPES = /* @__PURE__ */ new Set([
140
139
  "text",
141
140
  "richtext",
@@ -198,6 +197,7 @@ function getAttributeCapabilities(attribute) {
198
197
  const maxItems = supportsMaxItems(attribute);
199
198
  const placeholder = PLACEHOLDER_TYPES.has(attribute.type);
200
199
  const warningWhenDeprecated = Boolean(attribute.deprecated && !suppressed);
200
+ const editMode = resolveEditMode(attribute);
201
201
  return {
202
202
  lifecycle: {
203
203
  active,
@@ -218,7 +218,7 @@ function getAttributeCapabilities(attribute) {
218
218
  authoring: {
219
219
  editable,
220
220
  readOnly,
221
- directEdit: editable && DIRECT_EDIT_TYPES.has(attribute.type),
221
+ directEdit: editable && editMode === "inline",
222
222
  required,
223
223
  defaultValue,
224
224
  placeholder,
@@ -229,7 +229,7 @@ function getAttributeCapabilities(attribute) {
229
229
  tableCell: !suppressed && isTableCellType(attribute.type),
230
230
  defaultColumn: !suppressed && isDefaultColumnType(attribute.type),
231
231
  compactDisplay: !suppressed,
232
- popoverEditor: !suppressed && isPopoverEditorType(attribute.type),
232
+ popoverEditor: !suppressed && editMode === "popover",
233
233
  placeholder,
234
234
  warningWhenDeprecated
235
235
  },
@@ -335,8 +335,22 @@ function isTableCellType(type) {
335
335
  function isFormFieldType(type) {
336
336
  return type !== "richtext";
337
337
  }
338
- function isPopoverEditorType(type) {
339
- return type === "select" || type === "status" || type === "multiselect" || type === "relation" || type === "user";
338
+ function resolveEditMode(attribute) {
339
+ switch (attribute.type) {
340
+ case "checkbox":
341
+ return "inline";
342
+ case "number":
343
+ return attribute.renderAs === "rating" ? "inline" : "default";
344
+ case "select":
345
+ case "multiselect":
346
+ return attribute.renderAs === "badges" ? "inline" : "popover";
347
+ case "status":
348
+ case "relation":
349
+ case "user":
350
+ return "popover";
351
+ default:
352
+ return "default";
353
+ }
340
354
  }
341
355
  function isGroupableType(type) {
342
356
  return type === "status" || type === "currency";
@@ -1587,6 +1601,10 @@ var SelectAttributeBuilder = class extends BaseAttributeBuilder {
1587
1601
  this.attr.options.push(config);
1588
1602
  return this;
1589
1603
  }
1604
+ renderAs(value) {
1605
+ this.attr.renderAs = value;
1606
+ return this;
1607
+ }
1590
1608
  required() {
1591
1609
  this.setRequired(true);
1592
1610
  return this.asRequiredState();
@@ -1621,6 +1639,10 @@ var MultiselectAttributeBuilder = class extends BaseAttributeBuilder {
1621
1639
  this.attr.options.push(config);
1622
1640
  return this;
1623
1641
  }
1642
+ renderAs(value) {
1643
+ this.attr.renderAs = value;
1644
+ return this;
1645
+ }
1624
1646
  required() {
1625
1647
  this.setRequired(true);
1626
1648
  return this.asRequiredState();
@@ -1,4 +1,4 @@
1
- import { A as Attribute } from './attributes-Ddhps_AU.js';
1
+ import { A as Attribute } from './attributes-Cy9o_xM1.js';
2
2
 
3
3
  /**
4
4
  * Validation messages for Zod validators.
@@ -1,4 +1,4 @@
1
- import { A as Attribute } from './attributes-DP08iPCh.mjs';
1
+ import { A as Attribute } from './attributes-Cn0v3e37.mjs';
2
2
 
3
3
  /**
4
4
  * Validation messages for Zod validators.
@@ -1,8 +1,8 @@
1
- export { V as ValidationMessages } from '../types-D38kriFw.mjs';
1
+ export { V as ValidationMessages } from '../types-CORdDGpb.mjs';
2
2
  export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './core/index.mjs';
3
3
  export { parseAttributeConfig } from './config/index.mjs';
4
- export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-Bph8AoY7.mjs';
5
- import '../attributes-DP08iPCh.mjs';
4
+ export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-CED0HyXm.mjs';
5
+ import '../attributes-Cn0v3e37.mjs';
6
6
  import '@stndrds/constants';
7
7
  import '../utils.mjs';
8
8
  import 'zod';
@@ -1,8 +1,8 @@
1
- export { V as ValidationMessages } from '../types-iKvYBe6v.js';
1
+ export { V as ValidationMessages } from '../types-B12E9LFe.js';
2
2
  export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './core/index.js';
3
3
  export { parseAttributeConfig } from './config/index.js';
4
- export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-D9klos6x.js';
5
- import '../attributes-Ddhps_AU.js';
4
+ export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-LCnn6DG3.js';
5
+ import '../attributes-Cy9o_xM1.js';
6
6
  import '@stndrds/constants';
7
7
  import '../utils.js';
8
8
  import 'zod';
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { C as CurrencyAttribute } from '../../attributes-DP08iPCh.mjs';
3
- import { V as ValidationMessages } from '../../types-D38kriFw.mjs';
2
+ import { C as CurrencyAttribute } from '../../attributes-Cn0v3e37.mjs';
3
+ import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { C as CurrencyAttribute } from '../../attributes-Ddhps_AU.js';
3
- import { V as ValidationMessages } from '../../types-iKvYBe6v.js';
2
+ import { C as CurrencyAttribute } from '../../attributes-Cy9o_xM1.js';
3
+ import { V as ValidationMessages } from '../../types-B12E9LFe.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { F as FileAttribute } from '../../attributes-DP08iPCh.mjs';
3
- import { V as ValidationMessages } from '../../types-D38kriFw.mjs';
2
+ import { F as FileAttribute } from '../../attributes-Cn0v3e37.mjs';
3
+ import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { F as FileAttribute } from '../../attributes-Ddhps_AU.js';
3
- import { V as ValidationMessages } from '../../types-iKvYBe6v.js';
2
+ import { F as FileAttribute } from '../../attributes-Cy9o_xM1.js';
3
+ import { V as ValidationMessages } from '../../types-B12E9LFe.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { L as LocationAttribute } from '../../attributes-DP08iPCh.mjs';
3
- import { V as ValidationMessages } from '../../types-D38kriFw.mjs';
2
+ import { L as LocationAttribute } from '../../attributes-Cn0v3e37.mjs';
3
+ import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { L as LocationAttribute } from '../../attributes-Ddhps_AU.js';
3
- import { V as ValidationMessages } from '../../types-iKvYBe6v.js';
2
+ import { L as LocationAttribute } from '../../attributes-Cy9o_xM1.js';
3
+ import { V as ValidationMessages } from '../../types-B12E9LFe.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { P as PhoneAttribute } from '../../attributes-DP08iPCh.mjs';
3
- import { V as ValidationMessages } from '../../types-D38kriFw.mjs';
2
+ import { P as PhoneAttribute } from '../../attributes-Cn0v3e37.mjs';
3
+ import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { P as PhoneAttribute } from '../../attributes-Ddhps_AU.js';
3
- import { V as ValidationMessages } from '../../types-iKvYBe6v.js';
2
+ import { P as PhoneAttribute } from '../../attributes-Cy9o_xM1.js';
3
+ import { V as ValidationMessages } from '../../types-B12E9LFe.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-DP08iPCh.mjs';
3
- import { V as ValidationMessages } from '../../types-D38kriFw.mjs';
2
+ import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-Cn0v3e37.mjs';
3
+ import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-Ddhps_AU.js';
3
- import { V as ValidationMessages } from '../../types-iKvYBe6v.js';
2
+ import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-Cy9o_xM1.js';
3
+ import { V as ValidationMessages } from '../../types-B12E9LFe.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { a as RichtextAttribute } from '../../attributes-DP08iPCh.mjs';
3
- import { V as ValidationMessages } from '../../types-D38kriFw.mjs';
2
+ import { a as RichtextAttribute } from '../../attributes-Cn0v3e37.mjs';
3
+ import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { a as RichtextAttribute } from '../../attributes-Ddhps_AU.js';
3
- import { V as ValidationMessages } from '../../types-iKvYBe6v.js';
2
+ import { a as RichtextAttribute } from '../../attributes-Cy9o_xM1.js';
3
+ import { V as ValidationMessages } from '../../types-B12E9LFe.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-DP08iPCh.mjs';
3
- import { V as ValidationMessages } from '../../types-D38kriFw.mjs';
2
+ import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-Cn0v3e37.mjs';
3
+ import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-Ddhps_AU.js';
3
- import { V as ValidationMessages } from '../../types-iKvYBe6v.js';
2
+ import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-Cy9o_xM1.js';
3
+ import { V as ValidationMessages } from '../../types-B12E9LFe.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { U as UserAttribute } from '../../attributes-DP08iPCh.mjs';
3
- import { V as ValidationMessages } from '../../types-D38kriFw.mjs';
2
+ import { U as UserAttribute } from '../../attributes-Cn0v3e37.mjs';
3
+ import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { U as UserAttribute } from '../../attributes-Ddhps_AU.js';
3
- import { V as ValidationMessages } from '../../types-iKvYBe6v.js';
2
+ import { U as UserAttribute } from '../../attributes-Cy9o_xM1.js';
3
+ import { V as ValidationMessages } from '../../types-B12E9LFe.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { e as FormulaAttribute } from '../../attributes-DP08iPCh.mjs';
3
- import { V as ValidationMessages } from '../../types-D38kriFw.mjs';
2
+ import { e as FormulaAttribute } from '../../attributes-Cn0v3e37.mjs';
3
+ import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { e as FormulaAttribute } from '../../attributes-Ddhps_AU.js';
3
- import { V as ValidationMessages } from '../../types-iKvYBe6v.js';
2
+ import { e as FormulaAttribute } from '../../attributes-Cy9o_xM1.js';
3
+ import { V as ValidationMessages } from '../../types-B12E9LFe.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { f as RollupAttribute } from '../../attributes-DP08iPCh.mjs';
3
- import { V as ValidationMessages } from '../../types-D38kriFw.mjs';
2
+ import { f as RollupAttribute } from '../../attributes-Cn0v3e37.mjs';
3
+ import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { f as RollupAttribute } from '../../attributes-Ddhps_AU.js';
3
- import { V as ValidationMessages } from '../../types-iKvYBe6v.js';
2
+ import { f as RollupAttribute } from '../../attributes-Cy9o_xM1.js';
3
+ import { V as ValidationMessages } from '../../types-B12E9LFe.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { k as AttributeType } from '../../attributes-DP08iPCh.mjs';
2
+ import { k as AttributeType } from '../../attributes-Cn0v3e37.mjs';
3
3
  import '@stndrds/constants';
4
4
  import '../../utils.mjs';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { k as AttributeType } from '../../attributes-Ddhps_AU.js';
2
+ import { k as AttributeType } from '../../attributes-Cy9o_xM1.js';
3
3
  import '@stndrds/constants';
4
4
  import '../../utils.js';
5
5
 
@@ -1,7 +1,7 @@
1
- import { V as ValidationMessages } from '../../types-D38kriFw.mjs';
2
- export { a as ValidationResult } from '../../types-D38kriFw.mjs';
1
+ import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
2
+ export { a as ValidationResult } from '../../types-CORdDGpb.mjs';
3
3
  import { z } from 'zod';
4
- import '../../attributes-DP08iPCh.mjs';
4
+ import '../../attributes-Cn0v3e37.mjs';
5
5
  import '@stndrds/constants';
6
6
  import '../../utils.mjs';
7
7
 
@@ -1,7 +1,7 @@
1
- import { V as ValidationMessages } from '../../types-iKvYBe6v.js';
2
- export { a as ValidationResult } from '../../types-iKvYBe6v.js';
1
+ import { V as ValidationMessages } from '../../types-B12E9LFe.js';
2
+ export { a as ValidationResult } from '../../types-B12E9LFe.js';
3
3
  import { z } from 'zod';
4
- import '../../attributes-Ddhps_AU.js';
4
+ import '../../attributes-Cy9o_xM1.js';
5
5
  import '@stndrds/constants';
6
6
  import '../../utils.js';
7
7
 
@@ -1,7 +1,7 @@
1
- export { c as computeRecordStatus, f as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-Bph8AoY7.mjs';
1
+ export { c as computeRecordStatus, f as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-CED0HyXm.mjs';
2
2
  import { z } from 'zod';
3
- import { O as ObjectDefinition } from '../../attributes-DP08iPCh.mjs';
4
- import '../../types-D38kriFw.mjs';
3
+ import { O as ObjectDefinition } from '../../attributes-Cn0v3e37.mjs';
4
+ import '../../types-CORdDGpb.mjs';
5
5
  import '@stndrds/constants';
6
6
  import '../../utils.mjs';
7
7
 
@@ -1,7 +1,7 @@
1
- export { c as computeRecordStatus, f as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-D9klos6x.js';
1
+ export { c as computeRecordStatus, f as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-LCnn6DG3.js';
2
2
  import { z } from 'zod';
3
- import { O as ObjectDefinition } from '../../attributes-Ddhps_AU.js';
4
- import '../../types-iKvYBe6v.js';
3
+ import { O as ObjectDefinition } from '../../attributes-Cy9o_xM1.js';
4
+ import '../../types-B12E9LFe.js';
5
5
  import '@stndrds/constants';
6
6
  import '../../utils.js';
7
7
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { g as CheckboxAttribute } from '../../attributes-DP08iPCh.mjs';
3
- import { V as ValidationMessages } from '../../types-D38kriFw.mjs';
2
+ import { g as CheckboxAttribute } from '../../attributes-Cn0v3e37.mjs';
3
+ import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { g as CheckboxAttribute } from '../../attributes-Ddhps_AU.js';
3
- import { V as ValidationMessages } from '../../types-iKvYBe6v.js';
2
+ import { g as CheckboxAttribute } from '../../attributes-Cy9o_xM1.js';
3
+ import { V as ValidationMessages } from '../../types-B12E9LFe.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { D as DateAttribute } from '../../attributes-DP08iPCh.mjs';
3
- import { V as ValidationMessages } from '../../types-D38kriFw.mjs';
2
+ import { D as DateAttribute } from '../../attributes-Cn0v3e37.mjs';
3
+ import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { D as DateAttribute } from '../../attributes-Ddhps_AU.js';
3
- import { V as ValidationMessages } from '../../types-iKvYBe6v.js';
2
+ import { D as DateAttribute } from '../../attributes-Cy9o_xM1.js';
3
+ import { V as ValidationMessages } from '../../types-B12E9LFe.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { N as NumberAttribute } from '../../attributes-DP08iPCh.mjs';
3
- import { V as ValidationMessages } from '../../types-D38kriFw.mjs';
2
+ import { N as NumberAttribute } from '../../attributes-Cn0v3e37.mjs';
3
+ import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { N as NumberAttribute } from '../../attributes-Ddhps_AU.js';
3
- import { V as ValidationMessages } from '../../types-iKvYBe6v.js';
2
+ import { N as NumberAttribute } from '../../attributes-Cy9o_xM1.js';
3
+ import { V as ValidationMessages } from '../../types-B12E9LFe.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { T as TextAttribute } from '../../attributes-DP08iPCh.mjs';
3
- import { V as ValidationMessages } from '../../types-D38kriFw.mjs';
2
+ import { T as TextAttribute } from '../../attributes-Cn0v3e37.mjs';
3
+ import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { T as TextAttribute } from '../../attributes-Ddhps_AU.js';
3
- import { V as ValidationMessages } from '../../types-iKvYBe6v.js';
2
+ import { T as TextAttribute } from '../../attributes-Cy9o_xM1.js';
3
+ import { V as ValidationMessages } from '../../types-B12E9LFe.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stndrds/schema",
3
- "version": "1.0.0-alpha.198",
3
+ "version": "1.0.0-alpha.199",
4
4
  "description": "Standard schema definitions and utilities",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -120,7 +120,7 @@
120
120
  "@standard-schema/spec": "^1.1.0",
121
121
  "libphonenumber-js": "^1.12.31",
122
122
  "zod": "^4.2.1",
123
- "@stndrds/constants": "1.0.0-alpha.198"
123
+ "@stndrds/constants": "1.0.0-alpha.199"
124
124
  },
125
125
  "devDependencies": {
126
126
  "@types/node": "^25.0.3",