@ai-matrx/records-ui 0.115.106 → 0.115.107

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.cts CHANGED
@@ -1,14 +1,13 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode, KeyboardEvent, ReactElement, ComponentType, RefObject, SVGAttributes } from 'react';
3
3
  import * as _ai_matrx_records from '@ai-matrx/records';
4
- import { Uuid, RowAction, Field, RowActionStep, RecordScopeContext, EnrichCell, RecordsError, RecordDocument, Table, ReadRow, PermissionLevel, RecordRead, RowAgentTarget, AggregateFilter, RelationDisplay, WriteConflict, StoreFilter as StoreFilter$1, ImportRun, NewFieldDeclaration, RuleExpression, ChoiceRehome, FieldOptionEdit, StoredRecord, ChoiceNudge, HiddenFieldNotice, ValueEnvelope, ChecklistRequirementKind, ContextPolicy, WorkDueState, FieldSensitivity, StageRuleOnFail, SubscriptionCadence, WorkApprovalState, WorkInboxKind, ArchiveLane, ArchivedRow, WorkInboxView, WorkInboxItem, MigrationEntry, PortalCard, PortalPrincipal, PortalPreviewRow, PortalAccent, PublicPicture, PortalStyle, RecordFilter, MySubscription, DashboardBlockKind, AggregateBucket, AggregateMeasure, AggregateCompare, DashboardTarget, DashboardBlock, DashboardSummary, AggregateGroupValue, DocTemplateRow, DocRenderRow, QuietHours, DashboardBlockResult, DashboardRunResult, ChecklistRunStep, BookingSummary, CaptureSheetFace, CaptureField, AnonTokenBinding, RecordsActor, RecordsDataSource, RecordsConfig, TableDuplicated, HistoryActor, FieldHistoryEntry, DrillDefinition, DrillSource, DrillLane, DrillQuestion, TableDuplicateProgress, TableArchiveProgress } from '@ai-matrx/records';
4
+ import { Uuid, RowAction, Field, RowActionStep, RecordScopeContext, EnrichCell, RecordsError, RecordDocument, Table, ReadRow, PermissionLevel, RecordRead, RowAgentTarget, AggregateFilter, RelationDisplay, WriteConflict, TableDecorations, StoreFilter as StoreFilter$1, ImportRun, NewFieldDeclaration, RuleExpression, ChoiceRehome, FieldOptionEdit, StoredRecord, ChoiceNudge, HiddenFieldNotice, ValueEnvelope, ChecklistRequirementKind, ContextPolicy, WorkDueState, FieldSensitivity, StageRuleOnFail, SubscriptionCadence, WorkApprovalState, WorkInboxKind, ArchiveLane, ArchivedRow, WorkInboxView, WorkInboxItem, MigrationEntry, PortalCard, PortalPrincipal, PortalPreviewRow, PortalAccent, PublicPicture, PortalStyle, RecordFilter, MySubscription, DashboardBlockKind, AggregateBucket, AggregateMeasure, AggregateCompare, DashboardTarget, DashboardBlock, DashboardSummary, AggregateGroupValue, DocTemplateRow, DocRenderRow, QuietHours, DashboardBlockResult, DashboardRunResult, ChecklistRunStep, BookingSummary, CaptureSheetFace, CaptureField, AnonTokenBinding, RecordsActor, RecordsDataSource, RecordsConfig, TableDuplicated, HistoryActor, FieldHistoryEntry, DrillDefinition, DrillSource, DrillLane, DrillQuestion, TableDuplicateProgress, TableArchiveProgress } from '@ai-matrx/records';
5
5
  import { ReversibleAnnouncement } from '@ai-matrx/kit/reversible';
6
- import { O as ObjectAction, W as WhatYouMayDo, T as TableActionHost, a as ObjectActionIcon } from './objectActions-CfzhrXHK.cjs';
7
- export { A as ACTION_CHECKING_ACCESS_REASON, b as ACTION_NOT_HERE_REASON, c as ACTION_NO_ACCESS_REASON, d as ACTION_PLATFORM_TABLE_REASON, B as BuiltOnDestination, C as Capability, D as DEFAULT_ACTION_ORIGIN, K as KERNEL_REASON, L as LEVEL_WORD, N as NOT_ANSWERED_YET, e as OBJECT_ACTION_GROUPS, f as ObjectActionDropdownEntry, g as ObjectActionGroup, h as ObjectActionGroupDef, i as ObjectActionSection, S as STANDARD_VERBS, j as STRIP_FEATURE_ROWS, k as StandardVerbId, l as StripAndRows, m as TableActionSubject, n as TableActionsInput, o as dropdownActionIds, p as dropdownActions, q as groupObjectActions, r as levelNeededFor, s as rightsReason, t as tableActions, u as tableLink, v as toDropdownEntries, w as toStripAndRows, x as whatYouMayDo, y as whatYouMayDoWithTable, z as withExtensions } from './objectActions-CfzhrXHK.cjs';
6
+ import { O as ObjectAction, W as WhatYouMayDo, T as TableActionHost, a as ObjectActionIcon } from './objectActions-5ffQXgZn.cjs';
7
+ export { A as ACTION_CHECKING_ACCESS_REASON, b as ACTION_NOT_HERE_REASON, c as ACTION_NO_ACCESS_REASON, d as ACTION_PLATFORM_TABLE_REASON, B as BuiltOnDestination, C as Capability, D as DEFAULT_ACTION_ORIGIN, K as KERNEL_REASON, L as LEVEL_WORD, N as NOT_ANSWERED_YET, e as OBJECT_ACTION_GROUPS, f as ObjectActionDropdownEntry, g as ObjectActionGroup, h as ObjectActionGroupDef, i as ObjectActionSection, S as STANDARD_VERBS, j as STRIP_FEATURE_ROWS, k as StandardVerbId, l as StripAndRows, m as TableActionSubject, n as TableActionsInput, o as dropdownActionIds, p as dropdownActions, q as groupObjectActions, r as levelNeededFor, s as rightsReason, t as tableActions, u as tableLink, v as toDropdownEntries, w as toStripAndRows, x as whatYouMayDo, y as whatYouMayDoWithTable, z as withExtensions } from './objectActions-5ffQXgZn.cjs';
8
8
  import { Uuid as Uuid$1, Table as Table$1, Field as Field$1, ReadRow as ReadRow$1, StoreFilter, useRecordsClient } from '@ai-matrx/records/react';
9
9
  import * as _ai_matrx_records_core from '@ai-matrx/records/core';
10
- import { RecordsClient, Field as Field$2, TableDecorations, ParsedImport, DeclarableFieldKind, NewerFieldKind, ParityFieldType, FieldKind, NewFieldSpec } from '@ai-matrx/records/core';
11
- export { DEFAULT_FIELDS, DeclareResult, NewFieldSpec, NewTableSpec, addFields, declareTable, fieldDeclarationFor, tokenFor } from '@ai-matrx/records/core';
10
+ import { RecordsClient, ParsedImport } from '@ai-matrx/records/core';
12
11
  import { FieldFormatConfig } from '@ai-matrx/design-system/field-formats';
13
12
  import { RecordVersions } from '@ai-matrx/records/versions';
14
13
  export { asRefusal, refusal, refusalFromThrown, refusalOr } from '@ai-matrx/records/versions';
@@ -18,6 +17,8 @@ import { ViewOrder, ViewSort, ViewLayout, ViewNeed, PageView } from '@ai-matrx/r
18
17
  export { LAYOUT_FIELD_KIND, LAYOUT_LABEL, PAGE_VIEWS, PAGE_VIEW_LABEL, PageView, STORE_KEEPS_TIMELINE, STORE_KEPT_LAYOUTS, VIEW_KEYS, VIEW_LAYOUTS, VIEW_NEEDS, ViewKeyDeclaration, ViewKeyLayout, ViewKeyWriter, ViewLayout, ViewNeed, ViewNeedKind, ViewSort, ViewSortKey, applyLook, defaultViewOf, freeColumnName, lookDiffers, lookPart, pageViewFromParam, saveToViewPlan, storeKeepsLayout, unknownViewLine, viewKeysFor, viewSettingsFor, wordsList } from '@ai-matrx/records/views';
19
18
  import { GuessedFieldType, TableShape } from './table-shape.cjs';
20
19
  export { ColumnGuess, FEWEST_KEY_VALUE_PAIRS, FEWEST_LIST_ITEMS, TableShapeKind, TableShapeSplit, cellWords, guessColumn, hasTableShape, parseDelimited, readTableShape, readTableShapes, shapeOfGrid, shapeOfValue, shapeTextOfNode } from './table-shape.cjs';
20
+ import { DeclarableFieldKind, NewerFieldKind, ParityFieldType, FieldKind, NewFieldSpec } from '@ai-matrx/records/field-kinds';
21
+ export { DEFAULT_FIELDS, DeclareResult, NewFieldSpec, NewTableSpec, addFields, declareTable, fieldDeclarationFor, tokenFor } from '@ai-matrx/records/field-kinds';
21
22
  import { SavedForm, FormSpec } from '@ai-matrx/records/forms';
22
23
  export { FORM_EMBEDS, FORM_FLOWS, FormEmbed, FormEnding, FormFlow, FormJump, FormLook, FormQuestionSpec, FormSpec, FormTheme, FormWelcome, SavedForm, endingsFromDocument, formDeclareArgs, formEmbedSnippet, formFromSummary, formLookDocument, formLookFromDocument, formPresentation, formRoutes, hiddenFromLink, submissionStamp, themeFromDocument, welcomeFromDocument } from '@ai-matrx/records/forms';
23
24
  import { QuestionSpec, QuestionAnswer } from '@ai-matrx/records/questions';
@@ -1894,7 +1895,7 @@ declare function parseGridPresentation(raw: unknown): GridPresentation;
1894
1895
  declare function presentationIsEmpty(p: GridPresentation): boolean;
1895
1896
  /** The string a view record stores. Empty string for "this view styles nothing". */
1896
1897
  declare function presentationDocument(p: GridPresentation): string;
1897
- declare function formatForField(field: Field$2): FieldFormatConfig | undefined;
1898
+ declare function formatForField(field: Field): FieldFormatConfig | undefined;
1898
1899
  declare function currencyCodeFor(unit: string | null | undefined): string;
1899
1900
  /**
1900
1901
  * The color a value paints with when a view colors BY a column.
@@ -1921,7 +1922,7 @@ declare const colorFromTheValue: ChoiceColorLookup;
1921
1922
  * longer resolves to a key) is dropped rather than crashing the whole style — a defect in
1922
1923
  * one rule costs that rule, never the read.
1923
1924
  */
1924
- declare function styleFromDecorations(decorations: TableDecorations | null | undefined, fields: readonly Field$2[]): TableStyle;
1925
+ declare function styleFromDecorations(decorations: TableDecorations | null | undefined, fields: readonly Field[]): TableStyle;
1925
1926
  /**
1926
1927
  * THE ONE PRESENTATION RESOLVER every colored surface in this package reads —
1927
1928
  * `Grid`, and (via `Card`) the kanban board, the calendar and the gallery.
@@ -1943,7 +1944,7 @@ declare function styleFromDecorations(decorations: TableDecorations | null | und
1943
1944
  * table rule it meant to replace. Per-piece, never all-or-nothing, because a view is a
1944
1945
  * LOOK on top of the table, not a wholesale substitute for it.
1945
1946
  */
1946
- declare function resolveTableStyle(decorations: TableDecorations | null | undefined, fields: readonly Field$2[], viewStyle: TableStyle | undefined): TableStyle;
1947
+ declare function resolveTableStyle(decorations: TableDecorations | null | undefined, fields: readonly Field[], viewStyle: TableStyle | undefined): TableStyle;
1947
1948
 
1948
1949
  /** THE DECLARATIVE SPEC, with this package's grid look. */
1949
1950
  type SavedViewSpec = base.SavedViewSpec<GridPresentation>;
@@ -3606,7 +3607,7 @@ type EditorKind = FieldKind;
3606
3607
  * It is `fieldKindFor` with this package's kernel ids bound. Nothing here
3607
3608
  * decides anything the core does not.
3608
3609
  */
3609
- declare function editorKindFor(field: Field$2): EditorKind;
3610
+ declare function editorKindFor(field: Field): EditorKind;
3610
3611
  /**
3611
3612
  * WHICH KIND A PERSON PICKED, read back off the Field the store keeps — the ONE reader every
3612
3613
  * "what does this column hold" answer goes through (the Settings column list, the column panel).
@@ -3620,13 +3621,13 @@ declare function editorKindFor(field: Field$2): EditorKind;
3620
3621
  *
3621
3622
  * `undefined` when the Field is none of the kinds the menu offers.
3622
3623
  */
3623
- declare function pickableTypeOf(field: Field$2): PickableFieldType | undefined;
3624
+ declare function pickableTypeOf(field: Field): PickableFieldType | undefined;
3624
3625
  /**
3625
3626
  * The type word a person sees in a header or a settings row — and it is the
3626
3627
  * SAME word the field panel offers, read from `FIELD_TYPE_CHOICES`, so a column
3627
3628
  * added as "Money" is never described anywhere else as "Currency".
3628
3629
  */
3629
- declare function fieldTypeLabel(field: Field$2): string;
3630
+ declare function fieldTypeLabel(field: Field): string;
3630
3631
 
3631
3632
  /** The one token form, written the way the store's own pattern reads it. */
3632
3633
  declare function fieldToken(fieldId: Uuid): string;
package/dist/index.d.ts CHANGED
@@ -1,14 +1,13 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode, KeyboardEvent, ReactElement, ComponentType, RefObject, SVGAttributes } from 'react';
3
3
  import * as _ai_matrx_records from '@ai-matrx/records';
4
- import { Uuid, RowAction, Field, RowActionStep, RecordScopeContext, EnrichCell, RecordsError, RecordDocument, Table, ReadRow, PermissionLevel, RecordRead, RowAgentTarget, AggregateFilter, RelationDisplay, WriteConflict, StoreFilter as StoreFilter$1, ImportRun, NewFieldDeclaration, RuleExpression, ChoiceRehome, FieldOptionEdit, StoredRecord, ChoiceNudge, HiddenFieldNotice, ValueEnvelope, ChecklistRequirementKind, ContextPolicy, WorkDueState, FieldSensitivity, StageRuleOnFail, SubscriptionCadence, WorkApprovalState, WorkInboxKind, ArchiveLane, ArchivedRow, WorkInboxView, WorkInboxItem, MigrationEntry, PortalCard, PortalPrincipal, PortalPreviewRow, PortalAccent, PublicPicture, PortalStyle, RecordFilter, MySubscription, DashboardBlockKind, AggregateBucket, AggregateMeasure, AggregateCompare, DashboardTarget, DashboardBlock, DashboardSummary, AggregateGroupValue, DocTemplateRow, DocRenderRow, QuietHours, DashboardBlockResult, DashboardRunResult, ChecklistRunStep, BookingSummary, CaptureSheetFace, CaptureField, AnonTokenBinding, RecordsActor, RecordsDataSource, RecordsConfig, TableDuplicated, HistoryActor, FieldHistoryEntry, DrillDefinition, DrillSource, DrillLane, DrillQuestion, TableDuplicateProgress, TableArchiveProgress } from '@ai-matrx/records';
4
+ import { Uuid, RowAction, Field, RowActionStep, RecordScopeContext, EnrichCell, RecordsError, RecordDocument, Table, ReadRow, PermissionLevel, RecordRead, RowAgentTarget, AggregateFilter, RelationDisplay, WriteConflict, TableDecorations, StoreFilter as StoreFilter$1, ImportRun, NewFieldDeclaration, RuleExpression, ChoiceRehome, FieldOptionEdit, StoredRecord, ChoiceNudge, HiddenFieldNotice, ValueEnvelope, ChecklistRequirementKind, ContextPolicy, WorkDueState, FieldSensitivity, StageRuleOnFail, SubscriptionCadence, WorkApprovalState, WorkInboxKind, ArchiveLane, ArchivedRow, WorkInboxView, WorkInboxItem, MigrationEntry, PortalCard, PortalPrincipal, PortalPreviewRow, PortalAccent, PublicPicture, PortalStyle, RecordFilter, MySubscription, DashboardBlockKind, AggregateBucket, AggregateMeasure, AggregateCompare, DashboardTarget, DashboardBlock, DashboardSummary, AggregateGroupValue, DocTemplateRow, DocRenderRow, QuietHours, DashboardBlockResult, DashboardRunResult, ChecklistRunStep, BookingSummary, CaptureSheetFace, CaptureField, AnonTokenBinding, RecordsActor, RecordsDataSource, RecordsConfig, TableDuplicated, HistoryActor, FieldHistoryEntry, DrillDefinition, DrillSource, DrillLane, DrillQuestion, TableDuplicateProgress, TableArchiveProgress } from '@ai-matrx/records';
5
5
  import { ReversibleAnnouncement } from '@ai-matrx/kit/reversible';
6
- import { O as ObjectAction, W as WhatYouMayDo, T as TableActionHost, a as ObjectActionIcon } from './objectActions-CfzhrXHK.js';
7
- export { A as ACTION_CHECKING_ACCESS_REASON, b as ACTION_NOT_HERE_REASON, c as ACTION_NO_ACCESS_REASON, d as ACTION_PLATFORM_TABLE_REASON, B as BuiltOnDestination, C as Capability, D as DEFAULT_ACTION_ORIGIN, K as KERNEL_REASON, L as LEVEL_WORD, N as NOT_ANSWERED_YET, e as OBJECT_ACTION_GROUPS, f as ObjectActionDropdownEntry, g as ObjectActionGroup, h as ObjectActionGroupDef, i as ObjectActionSection, S as STANDARD_VERBS, j as STRIP_FEATURE_ROWS, k as StandardVerbId, l as StripAndRows, m as TableActionSubject, n as TableActionsInput, o as dropdownActionIds, p as dropdownActions, q as groupObjectActions, r as levelNeededFor, s as rightsReason, t as tableActions, u as tableLink, v as toDropdownEntries, w as toStripAndRows, x as whatYouMayDo, y as whatYouMayDoWithTable, z as withExtensions } from './objectActions-CfzhrXHK.js';
6
+ import { O as ObjectAction, W as WhatYouMayDo, T as TableActionHost, a as ObjectActionIcon } from './objectActions-5ffQXgZn.js';
7
+ export { A as ACTION_CHECKING_ACCESS_REASON, b as ACTION_NOT_HERE_REASON, c as ACTION_NO_ACCESS_REASON, d as ACTION_PLATFORM_TABLE_REASON, B as BuiltOnDestination, C as Capability, D as DEFAULT_ACTION_ORIGIN, K as KERNEL_REASON, L as LEVEL_WORD, N as NOT_ANSWERED_YET, e as OBJECT_ACTION_GROUPS, f as ObjectActionDropdownEntry, g as ObjectActionGroup, h as ObjectActionGroupDef, i as ObjectActionSection, S as STANDARD_VERBS, j as STRIP_FEATURE_ROWS, k as StandardVerbId, l as StripAndRows, m as TableActionSubject, n as TableActionsInput, o as dropdownActionIds, p as dropdownActions, q as groupObjectActions, r as levelNeededFor, s as rightsReason, t as tableActions, u as tableLink, v as toDropdownEntries, w as toStripAndRows, x as whatYouMayDo, y as whatYouMayDoWithTable, z as withExtensions } from './objectActions-5ffQXgZn.js';
8
8
  import { Uuid as Uuid$1, Table as Table$1, Field as Field$1, ReadRow as ReadRow$1, StoreFilter, useRecordsClient } from '@ai-matrx/records/react';
9
9
  import * as _ai_matrx_records_core from '@ai-matrx/records/core';
10
- import { RecordsClient, Field as Field$2, TableDecorations, ParsedImport, DeclarableFieldKind, NewerFieldKind, ParityFieldType, FieldKind, NewFieldSpec } from '@ai-matrx/records/core';
11
- export { DEFAULT_FIELDS, DeclareResult, NewFieldSpec, NewTableSpec, addFields, declareTable, fieldDeclarationFor, tokenFor } from '@ai-matrx/records/core';
10
+ import { RecordsClient, ParsedImport } from '@ai-matrx/records/core';
12
11
  import { FieldFormatConfig } from '@ai-matrx/design-system/field-formats';
13
12
  import { RecordVersions } from '@ai-matrx/records/versions';
14
13
  export { asRefusal, refusal, refusalFromThrown, refusalOr } from '@ai-matrx/records/versions';
@@ -18,6 +17,8 @@ import { ViewOrder, ViewSort, ViewLayout, ViewNeed, PageView } from '@ai-matrx/r
18
17
  export { LAYOUT_FIELD_KIND, LAYOUT_LABEL, PAGE_VIEWS, PAGE_VIEW_LABEL, PageView, STORE_KEEPS_TIMELINE, STORE_KEPT_LAYOUTS, VIEW_KEYS, VIEW_LAYOUTS, VIEW_NEEDS, ViewKeyDeclaration, ViewKeyLayout, ViewKeyWriter, ViewLayout, ViewNeed, ViewNeedKind, ViewSort, ViewSortKey, applyLook, defaultViewOf, freeColumnName, lookDiffers, lookPart, pageViewFromParam, saveToViewPlan, storeKeepsLayout, unknownViewLine, viewKeysFor, viewSettingsFor, wordsList } from '@ai-matrx/records/views';
19
18
  import { GuessedFieldType, TableShape } from './table-shape.js';
20
19
  export { ColumnGuess, FEWEST_KEY_VALUE_PAIRS, FEWEST_LIST_ITEMS, TableShapeKind, TableShapeSplit, cellWords, guessColumn, hasTableShape, parseDelimited, readTableShape, readTableShapes, shapeOfGrid, shapeOfValue, shapeTextOfNode } from './table-shape.js';
20
+ import { DeclarableFieldKind, NewerFieldKind, ParityFieldType, FieldKind, NewFieldSpec } from '@ai-matrx/records/field-kinds';
21
+ export { DEFAULT_FIELDS, DeclareResult, NewFieldSpec, NewTableSpec, addFields, declareTable, fieldDeclarationFor, tokenFor } from '@ai-matrx/records/field-kinds';
21
22
  import { SavedForm, FormSpec } from '@ai-matrx/records/forms';
22
23
  export { FORM_EMBEDS, FORM_FLOWS, FormEmbed, FormEnding, FormFlow, FormJump, FormLook, FormQuestionSpec, FormSpec, FormTheme, FormWelcome, SavedForm, endingsFromDocument, formDeclareArgs, formEmbedSnippet, formFromSummary, formLookDocument, formLookFromDocument, formPresentation, formRoutes, hiddenFromLink, submissionStamp, themeFromDocument, welcomeFromDocument } from '@ai-matrx/records/forms';
23
24
  import { QuestionSpec, QuestionAnswer } from '@ai-matrx/records/questions';
@@ -1894,7 +1895,7 @@ declare function parseGridPresentation(raw: unknown): GridPresentation;
1894
1895
  declare function presentationIsEmpty(p: GridPresentation): boolean;
1895
1896
  /** The string a view record stores. Empty string for "this view styles nothing". */
1896
1897
  declare function presentationDocument(p: GridPresentation): string;
1897
- declare function formatForField(field: Field$2): FieldFormatConfig | undefined;
1898
+ declare function formatForField(field: Field): FieldFormatConfig | undefined;
1898
1899
  declare function currencyCodeFor(unit: string | null | undefined): string;
1899
1900
  /**
1900
1901
  * The color a value paints with when a view colors BY a column.
@@ -1921,7 +1922,7 @@ declare const colorFromTheValue: ChoiceColorLookup;
1921
1922
  * longer resolves to a key) is dropped rather than crashing the whole style — a defect in
1922
1923
  * one rule costs that rule, never the read.
1923
1924
  */
1924
- declare function styleFromDecorations(decorations: TableDecorations | null | undefined, fields: readonly Field$2[]): TableStyle;
1925
+ declare function styleFromDecorations(decorations: TableDecorations | null | undefined, fields: readonly Field[]): TableStyle;
1925
1926
  /**
1926
1927
  * THE ONE PRESENTATION RESOLVER every colored surface in this package reads —
1927
1928
  * `Grid`, and (via `Card`) the kanban board, the calendar and the gallery.
@@ -1943,7 +1944,7 @@ declare function styleFromDecorations(decorations: TableDecorations | null | und
1943
1944
  * table rule it meant to replace. Per-piece, never all-or-nothing, because a view is a
1944
1945
  * LOOK on top of the table, not a wholesale substitute for it.
1945
1946
  */
1946
- declare function resolveTableStyle(decorations: TableDecorations | null | undefined, fields: readonly Field$2[], viewStyle: TableStyle | undefined): TableStyle;
1947
+ declare function resolveTableStyle(decorations: TableDecorations | null | undefined, fields: readonly Field[], viewStyle: TableStyle | undefined): TableStyle;
1947
1948
 
1948
1949
  /** THE DECLARATIVE SPEC, with this package's grid look. */
1949
1950
  type SavedViewSpec = base.SavedViewSpec<GridPresentation>;
@@ -3606,7 +3607,7 @@ type EditorKind = FieldKind;
3606
3607
  * It is `fieldKindFor` with this package's kernel ids bound. Nothing here
3607
3608
  * decides anything the core does not.
3608
3609
  */
3609
- declare function editorKindFor(field: Field$2): EditorKind;
3610
+ declare function editorKindFor(field: Field): EditorKind;
3610
3611
  /**
3611
3612
  * WHICH KIND A PERSON PICKED, read back off the Field the store keeps — the ONE reader every
3612
3613
  * "what does this column hold" answer goes through (the Settings column list, the column panel).
@@ -3620,13 +3621,13 @@ declare function editorKindFor(field: Field$2): EditorKind;
3620
3621
  *
3621
3622
  * `undefined` when the Field is none of the kinds the menu offers.
3622
3623
  */
3623
- declare function pickableTypeOf(field: Field$2): PickableFieldType | undefined;
3624
+ declare function pickableTypeOf(field: Field): PickableFieldType | undefined;
3624
3625
  /**
3625
3626
  * The type word a person sees in a header or a settings row — and it is the
3626
3627
  * SAME word the field panel offers, read from `FIELD_TYPE_CHOICES`, so a column
3627
3628
  * added as "Money" is never described anywhere else as "Currency".
3628
3629
  */
3629
- declare function fieldTypeLabel(field: Field$2): string;
3630
+ declare function fieldTypeLabel(field: Field): string;
3630
3631
 
3631
3632
  /** The one token form, written the way the store's own pattern reads it. */
3632
3633
  declare function fieldToken(fieldId: Uuid): string;
package/dist/index.js CHANGED
@@ -26,7 +26,7 @@ var __copyProps = (to, from, except, desc) => {
26
26
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
27
27
 
28
28
  // src/rights.ts
29
- import { atLeast } from "@ai-matrx/records/core";
29
+ import { atLeast } from "@ai-matrx/records/field-kinds";
30
30
  function levelNeededFor(what) {
31
31
  return NEEDS[what];
32
32
  }
@@ -504,7 +504,7 @@ var init_plainWords = __esm({
504
504
  });
505
505
 
506
506
  // src/choiceLooks.ts
507
- import { newerKindOf } from "@ai-matrx/records/core";
507
+ import { newerKindOf } from "@ai-matrx/records/field-kinds";
508
508
  import { CHOICE_CHIP_CLASS, NEUTRAL_CHIP_CLASS, STYLE_COLORS } from "@ai-matrx/design-system/data-table/table-style";
509
509
  function displayFormatOf(field2) {
510
510
  const raw = field2.display_format;
@@ -618,7 +618,7 @@ var init_docs = __esm({
618
618
  });
619
619
 
620
620
  // src/fieldTypes.ts
621
- import { DECLARABLE_FIELD_KINDS, NEWER_FIELD_KINDS, PARITY_FIELD_TYPES } from "@ai-matrx/records/core";
621
+ import { DECLARABLE_FIELD_KINDS, NEWER_FIELD_KINDS, PARITY_FIELD_TYPES } from "@ai-matrx/records/field-kinds";
622
622
  function declaredAsLook(kind2) {
623
623
  return kind2 in LOOK_KINDS && !storePublishesKind(kind2);
624
624
  }
@@ -721,9 +721,9 @@ import {
721
721
  KERNEL_TABLES,
722
722
  PARITY_FIELD_TYPES as PARITY_FIELD_TYPES2,
723
723
  fieldKindFor,
724
- newerKindOf as newerKindOf2
725
- } from "@ai-matrx/records/core";
726
- import { isButtonField } from "@ai-matrx/records/core";
724
+ newerKindOf as newerKindOf2,
725
+ isButtonField
726
+ } from "@ai-matrx/records/field-kinds";
727
727
  import { humanizeIdentifier as humanizeIdentifier2 } from "@ai-matrx/kit/text-case";
728
728
  function editorKindFor(field2) {
729
729
  return fieldKindFor(field2, KERNEL);
@@ -1386,12 +1386,11 @@ var init_writeOnTheWinningVersion = __esm({
1386
1386
  // src/createTable.ts
1387
1387
  import {
1388
1388
  declareTable,
1389
- ensureTable,
1390
1389
  addFields,
1391
1390
  fieldDeclarationFor,
1392
1391
  tokenFor,
1393
1392
  DEFAULT_FIELDS
1394
- } from "@ai-matrx/records/core";
1393
+ } from "@ai-matrx/records/field-kinds";
1395
1394
  var init_createTable = __esm({
1396
1395
  "src/createTable.ts"() {
1397
1396
  "use strict";
@@ -9943,7 +9942,7 @@ init_tablePicking();
9943
9942
  init_names();
9944
9943
  import { useMemo as useMemo7, useState as useState11 } from "react";
9945
9944
  import { useFields, useRecords, useRecordsClient as useRecordsClient5 } from "@ai-matrx/records/react";
9946
- import { DOORS, doorReady } from "@ai-matrx/records/core";
9945
+ import { DOORS, doorReady, ensureTable } from "@ai-matrx/records/core";
9947
9946
  import {
9948
9947
  Button as Button5,
9949
9948
  Checkbox as Checkbox2,
@@ -10295,7 +10294,7 @@ init_parity();
10295
10294
  init_dates();
10296
10295
  import { COLOR_ROTATION, parseTableStyle, tableStyleIsEmpty } from "@ai-matrx/design-system/data-table/table-style";
10297
10296
  import { getFieldFormat } from "@ai-matrx/design-system/field-formats";
10298
- import { newerKindOf as newerKindOf3, ratingMaxOf } from "@ai-matrx/records/core";
10297
+ import { newerKindOf as newerKindOf3, ratingMaxOf } from "@ai-matrx/records/field-kinds";
10299
10298
  function parseGanttLook(raw) {
10300
10299
  if (!raw || typeof raw !== "object" || Array.isArray(raw)) return void 0;
10301
10300
  const v = raw;
@@ -11644,7 +11643,7 @@ function RelationPicker({ field: field2, value, onChange, disabled, id, classNam
11644
11643
  // src/buttonCell.tsx
11645
11644
  init_Refusal();
11646
11645
  import { useEffect as useEffect30, useRef as useRef20, useState as useState40 } from "react";
11647
- import { Button as Button28, Dialog as Dialog3, DialogContent as DialogContent3, DialogDescription, DialogHeader as DialogHeader3, DialogTitle as DialogTitle3, Popover as Popover7, PopoverContent as PopoverContent7, PopoverTrigger as PopoverTrigger7, cn as cn32 } from "@ai-matrx/design-system";
11646
+ import { Button as Button28, Dialog as Dialog3, ErrorBox as ErrorBox5, DialogContent as DialogContent3, DialogDescription, DialogHeader as DialogHeader3, DialogTitle as DialogTitle3, Popover as Popover7, PopoverContent as PopoverContent7, PopoverTrigger as PopoverTrigger7, cn as cn32 } from "@ai-matrx/design-system";
11648
11647
  import { CHOICE_CHIP_CLASS as CHOICE_CHIP_CLASS2, NEUTRAL_CHIP_CLASS as NEUTRAL_CHIP_CLASS2, isStyleColor as isStyleColor2 } from "@ai-matrx/design-system/data-table";
11649
11648
  import { buttonNeeds as buttonNeeds2, buttonOf as buttonOf2 } from "@ai-matrx/records";
11650
11649
  import { useOptionalRecordsClient as useOptionalRecordsClient11 } from "@ai-matrx/records/react";
@@ -13673,14 +13672,19 @@ function Thumb({ src, size }) {
13673
13672
  }
13674
13673
  ) });
13675
13674
  }
13676
- function LinkChip({ href }) {
13675
+ function LinkChip({ href, dense }) {
13677
13676
  return /* @__PURE__ */ jsxs38(
13678
13677
  OutboundLink5,
13679
13678
  {
13680
13679
  href,
13681
13680
  title: href,
13682
13681
  onClick: stop,
13683
- className: "inline-flex min-w-0 max-w-full items-center gap-1 rounded-md border border-border bg-muted/60 px-1.5 py-0.5 text-[11px] text-foreground hover:bg-accent",
13682
+ className: cn28(
13683
+ "inline-flex min-w-0 max-w-full items-center gap-1 rounded-md border border-border bg-muted/60 px-1.5 py-0.5 text-[11px] text-foreground hover:bg-accent",
13684
+ // A percentage max-width means nothing inside an auto-layout table cell, so a link column would hold
13685
+ // its full address; in a table the chip gets a real ceiling and shortens with an ellipsis.
13686
+ dense && "max-w-[7rem]"
13687
+ ),
13684
13688
  "data-records-link-chip": "",
13685
13689
  children: [
13686
13690
  /* @__PURE__ */ jsx43("span", { "aria-hidden": "true", className: "text-muted-foreground", children: "\u2197" }),
@@ -13697,7 +13701,7 @@ function Scalar({ value, keyName, dense }) {
13697
13701
  if (typeof value !== "string") return /* @__PURE__ */ jsx43("span", { children: String(value) });
13698
13702
  const text = value.trim();
13699
13703
  if (isImageUrl(text, keyName)) return /* @__PURE__ */ jsx43(Thumb, { src: text, size: dense ? "sm" : "md" });
13700
- if (isUrl(text)) return /* @__PURE__ */ jsx43(LinkChip, { href: text });
13704
+ if (isUrl(text)) return /* @__PURE__ */ jsx43(LinkChip, { href: text, dense });
13701
13705
  if (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(text)) {
13702
13706
  return /* @__PURE__ */ jsx43("a", { href: `mailto:${text}`, onClick: stop, className: "text-primary underline-offset-2 hover:underline", children: text });
13703
13707
  }
@@ -13715,8 +13719,8 @@ function RecordsTable({ items }) {
13715
13719
  const shown5 = all ? items : items.slice(0, TABLE_ROWS);
13716
13720
  return /* @__PURE__ */ jsxs38("div", { className: "min-w-0", "data-records-structured": "table", children: [
13717
13721
  /* @__PURE__ */ jsx43("div", { className: "max-w-full overflow-x-auto rounded-md border border-border", "data-records-structured-table-frame": "", children: /* @__PURE__ */ jsxs38("table", { className: "w-full border-collapse text-xs", children: [
13718
- /* @__PURE__ */ jsx43("thead", { className: "bg-muted/60 text-left", children: /* @__PURE__ */ jsx43("tr", { children: pictureFirst.map((k) => /* @__PURE__ */ jsx43("th", { scope: "col", className: "whitespace-nowrap px-2 py-1 font-medium text-muted-foreground", children: keyWords(k) }, k)) }) }),
13719
- /* @__PURE__ */ jsx43("tbody", { children: shown5.map((item, i) => /* @__PURE__ */ jsx43("tr", { className: "border-t border-border/60 align-top", children: pictureFirst.map((k) => /* @__PURE__ */ jsx43("td", { className: "min-w-[4rem] max-w-[18rem] break-words px-2 py-1 [overflow-wrap:anywhere]", children: k in item ? /* @__PURE__ */ jsx43(Nested, { value: item[k], keyName: k, dense: true }) : /* @__PURE__ */ jsx43("span", { className: "text-muted-foreground", children: "\u2014" }) }, k)) }, i)) })
13722
+ /* @__PURE__ */ jsx43("thead", { className: "bg-muted/60 text-left", children: /* @__PURE__ */ jsx43("tr", { children: pictureFirst.map((k) => /* @__PURE__ */ jsx43("th", { scope: "col", className: "px-2 py-1 font-medium text-muted-foreground [overflow-wrap:anywhere]", children: keyWords(k) }, k)) }) }),
13723
+ /* @__PURE__ */ jsx43("tbody", { children: shown5.map((item, i) => /* @__PURE__ */ jsx43("tr", { className: "border-t border-border/60 align-top", children: pictureFirst.map((k) => /* @__PURE__ */ jsx43("td", { className: "min-w-[2rem] max-w-[18rem] break-words px-2 py-1 [overflow-wrap:anywhere]", children: k in item ? /* @__PURE__ */ jsx43(Nested, { value: item[k], keyName: k, dense: true }) : /* @__PURE__ */ jsx43("span", { className: "text-muted-foreground", children: "\u2014" }) }, k)) }, i)) })
13720
13724
  ] }) }),
13721
13725
  items.length > TABLE_ROWS ? /* @__PURE__ */ jsx43(Button23, { type: "button", variant: "ghost", size: "sm", className: "mt-1 h-6 px-2 text-xs", onClick: (e) => {
13722
13726
  stop(e);
@@ -17124,7 +17128,7 @@ function ButtonValue({ field: field2, recordId, inCell }) {
17124
17128
  /* @__PURE__ */ jsxs48(PopoverContent7, { className: "w-72 space-y-2 p-3 text-sm", onClick: stop2, onPointerDown: stop2, "data-records-button-said": said2?.kind, children: [
17125
17129
  said2?.kind === "refused" ? /* @__PURE__ */ jsx53(RefusalLine, { error: said2.error }) : null,
17126
17130
  said2?.kind === "waiting" ? /* @__PURE__ */ jsx53("p", { className: "matrx-shimmer rounded px-1 py-0.5", role: "status", "aria-live": "polite", children: said2.says }) : null,
17127
- said2?.kind === "failed" ? /* @__PURE__ */ jsx53("p", { className: "break-words text-destructive", role: "alert", children: said2.says }) : null,
17131
+ said2?.kind === "failed" ? /* @__PURE__ */ jsx53(ErrorBox5, { as: "p", className: "break-words text-destructive", message: said2.says, origin: "records-ui/buttonCell", children: said2.says }) : null,
17128
17132
  said2?.kind === "public" ? /* @__PURE__ */ jsx53("p", { children: "Buttons run for signed-in people." }) : null,
17129
17133
  said2?.kind === "ran" ? /* @__PURE__ */ jsxs48("div", { className: "break-words", children: [
17130
17134
  said2.value ? /* @__PURE__ */ jsx53(StructuredValueView, { structured: said2.value, label: b.label }) : null,
@@ -29977,7 +29981,7 @@ var useViewAddress = () => useContext10(ViewAddressContext);
29977
29981
 
29978
29982
  // src/Grid.tsx
29979
29983
  import { Fragment as Fragment36, jsx as jsx99, jsxs as jsxs89 } from "react/jsx-runtime";
29980
- if (typeof window !== "undefined") performance.mark("load:heavy:Records grid");
29984
+ if (typeof window !== "undefined" && typeof performance?.mark === "function") performance.mark("load:heavy:Records grid");
29981
29985
  var WRAP_COLUMN_CELL_CLASS = "[table_tbody_&&]:max-w-none! [table_tbody_&&]:whitespace-normal! [table_tbody_&&]:overflow-visible! [table_tbody_&&_*]:whitespace-normal! [table_tbody_&&]:break-words [table_tbody_&&_[data-matrx-cell-content]]:max-h-[3lh]! [table_tbody_&&_[data-matrx-cell-content]]:overflow-hidden";
29982
29986
  var NO_COLUMNS_YET = "This table has no columns yet";
29983
29987
  var embeddedPageAskKey = (tableId, search, sorts, filter, pageDoorViewId) => JSON.stringify([tableId, search, sorts, filter, pageDoorViewId]);
@@ -33291,7 +33295,7 @@ import {
33291
33295
  DialogFooter as DialogFooter11,
33292
33296
  DialogHeader as DialogHeader17,
33293
33297
  DialogTitle as DialogTitle17,
33294
- ErrorBox as ErrorBox5,
33298
+ ErrorBox as ErrorBox6,
33295
33299
  Input as Input5
33296
33300
  } from "@ai-matrx/design-system";
33297
33301
  import { jsx as jsx105, jsxs as jsxs94 } from "react/jsx-runtime";
@@ -33404,7 +33408,7 @@ function TableRenameDialog({
33404
33408
  /* @__PURE__ */ jsx105("p", { className: "text-xs text-muted-foreground", "data-records-table-rename-problem": "", children: problem })
33405
33409
  ) : null,
33406
33410
  refused ? /* @__PURE__ */ jsx105(
33407
- ErrorBox5,
33411
+ ErrorBox6,
33408
33412
  {
33409
33413
  className: "text-xs text-destructive",
33410
33414
  message: refused,
@@ -33430,7 +33434,7 @@ import { levelHasShownTo as levelHasShownTo2 } from "@ai-matrx/records";
33430
33434
  init_plainWords();
33431
33435
  import { useState as useState86 } from "react";
33432
33436
  import { useRecordsClient as useRecordsClient56 } from "@ai-matrx/records/react";
33433
- import { Button as Button64, Dialog as Dialog18, DialogContent as DialogContent18, DialogFooter as DialogFooter12, DialogHeader as DialogHeader18, DialogTitle as DialogTitle18, ErrorBox as ErrorBox6, Input as Input6, Textarea as Textarea4 } from "@ai-matrx/design-system";
33437
+ import { Button as Button64, Dialog as Dialog18, DialogContent as DialogContent18, DialogFooter as DialogFooter12, DialogHeader as DialogHeader18, DialogTitle as DialogTitle18, ErrorBox as ErrorBox7, Input as Input6, Textarea as Textarea4 } from "@ai-matrx/design-system";
33434
33438
  import { jsx as jsx106, jsxs as jsxs95 } from "react/jsx-runtime";
33435
33439
  function codeDependsRefusal(error) {
33436
33440
  if (!error) return null;
@@ -33495,7 +33499,7 @@ function ArchiveDeliberatelyDialog({ tableId, name, slug, declaredIn, open, onOp
33495
33499
  /* @__PURE__ */ jsx106("span", { children: "Why" }),
33496
33500
  /* @__PURE__ */ jsx106(Textarea4, { value: reason, onChange: (e) => setReason(e.target.value), rows: 2, "aria-label": "Reason", disabled: busy })
33497
33501
  ] }),
33498
- refused ? /* @__PURE__ */ jsx106(ErrorBox6, { children: refused }) : null
33502
+ refused ? /* @__PURE__ */ jsx106(ErrorBox7, { children: refused }) : null
33499
33503
  ] }),
33500
33504
  /* @__PURE__ */ jsxs95(DialogFooter12, { children: [
33501
33505
  /* @__PURE__ */ jsx106(Button64, { variant: "ghost", disabled: busy, onClick: () => close(false), children: "Cancel" }),
@@ -40571,21 +40575,24 @@ function Board({
40571
40575
  },
40572
40576
  note: records.membership,
40573
40577
  style,
40574
- parentField: subItemsField(all, view.subject)
40578
+ parentField: subItemsField(all, view.subject),
40579
+ below: /* @__PURE__ */ jsxs119(Fragment50, { children: [
40580
+ pager,
40581
+ /* @__PURE__ */ jsx131(
40582
+ CardFieldsPicker,
40583
+ {
40584
+ layout: "kanban",
40585
+ fields: all.filter((f) => f.key !== titleField?.key && f.key !== groupField.key),
40586
+ hiddenFields: boardHidden,
40587
+ summary: `Card fields (${boardCardFields.length + dateFields.length})`,
40588
+ onChange: (cardHidden2) => onChange({ presentation: { ...view.presentation, cardHidden: cardHidden2 } }),
40589
+ remembered
40590
+ }
40591
+ )
40592
+ ] })
40575
40593
  }
40576
40594
  ),
40577
- pager,
40578
- isPipeline === true ? null : /* @__PURE__ */ jsx131(
40579
- CardFieldsPicker,
40580
- {
40581
- layout: "kanban",
40582
- fields: all.filter((f) => f.key !== titleField?.key && f.key !== groupField.key),
40583
- hiddenFields: boardHidden,
40584
- summary: `Card fields (${boardCardFields.length + dateFields.length})`,
40585
- onChange: (cardHidden2) => onChange({ presentation: { ...view.presentation, cardHidden: cardHidden2 } }),
40586
- remembered
40587
- }
40588
- )
40595
+ isPipeline === true ? pager : null
40589
40596
  ] });
40590
40597
  }
40591
40598
  if (view.layout === "calendar") {
@@ -40844,7 +40851,8 @@ function Kanban({
40844
40851
  style,
40845
40852
  cardFields,
40846
40853
  canAdd = false,
40847
- parentField
40854
+ parentField,
40855
+ below
40848
40856
  }) {
40849
40857
  const axisFields = useMemo63(() => laneField ? [groupField, laneField] : [groupField], [groupField, laneField]);
40850
40858
  const labels = useRecordLabels(axisFields);
@@ -41057,7 +41065,8 @@ function Kanban({
41057
41065
  ] }, lane.name);
41058
41066
  })
41059
41067
  ] }) })
41060
- ) : /* @__PURE__ */ jsx131("div", { className: "flex min-h-0 gap-2 overflow-x-auto pb-2", children: columns.map((name) => cell2(name, null, cardsOf.get(name) ?? [])) })
41068
+ ) : /* @__PURE__ */ jsx131("div", { className: "flex min-h-0 gap-2 overflow-x-auto pb-2", children: columns.map((name) => cell2(name, null, cardsOf.get(name) ?? [])) }),
41069
+ below
41061
41070
  ] });
41062
41071
  }
41063
41072
  var GALLERY_SIZE = {
@@ -47732,7 +47741,7 @@ init_BuildOrAsk();
47732
47741
 
47733
47742
  // src/FormBuilder.tsx
47734
47743
  import { copyText as copyText8 } from "@ai-matrx/kit/clipboard";
47735
- import { ErrorBox as ErrorBox7 } from "@ai-matrx/design-system";
47744
+ import { ErrorBox as ErrorBox8 } from "@ai-matrx/design-system";
47736
47745
  import { Select as Select23 } from "@ai-matrx/design-system/controls";
47737
47746
  import { useCallback as useCallback56, useEffect as useEffect111, useMemo as useMemo74, useRef as useRef61, useState as useState130 } from "react";
47738
47747
  import { DndContext as DndContext2, KeyboardSensor, PointerSensor as PointerSensor2, closestCenter as closestCenter2, useSensor as useSensor2, useSensors as useSensors2 } from "@dnd-kit/core";
@@ -49466,7 +49475,7 @@ function QuestionList({
49466
49475
  )) }) : null,
49467
49476
  notAskable ? /* @__PURE__ */ jsx154("p", { className: "w-fit text-xs text-muted-foreground", title: notAskable, children: "Some fields cannot be asked publicly" }) : null,
49468
49477
  leftUnasked ? /* @__PURE__ */ jsx154(
49469
- ErrorBox7,
49478
+ ErrorBox8,
49470
49479
  {
49471
49480
  className: "rounded border border-destructive/40 bg-destructive/5 px-2 py-1.5 text-xs text-destructive",
49472
49481
  message: leftUnasked,
@@ -56227,7 +56236,7 @@ init_plainWords();
56227
56236
  import { formatCount as formatCount8 } from "@ai-matrx/kit/format";
56228
56237
  import { useState as useState153 } from "react";
56229
56238
  import { tableShapeChanged as tableShapeChanged14, useRecordsClient as useRecordsClient107 } from "@ai-matrx/records/react";
56230
- import { Button as Button120, Dialog as Dialog23, DialogContent as DialogContent23, DialogFooter as DialogFooter13, DialogHeader as DialogHeader23, DialogTitle as DialogTitle23, ErrorBox as ErrorBox8, Input as Input11, Switch as Switch7 } from "@ai-matrx/design-system";
56239
+ import { Button as Button120, Dialog as Dialog23, DialogContent as DialogContent23, DialogFooter as DialogFooter13, DialogHeader as DialogHeader23, DialogTitle as DialogTitle23, ErrorBox as ErrorBox9, Input as Input11, Switch as Switch7 } from "@ai-matrx/design-system";
56231
56240
  import { Fragment as Fragment74, jsx as jsx179, jsxs as jsxs167 } from "react/jsx-runtime";
56232
56241
  function copyNameFor(name) {
56233
56242
  return `${name.trim() || "Table"} (copy)`;
@@ -56317,7 +56326,7 @@ function TableDuplicateDialog({ tableId, name, organizationId, open, onOpenChang
56317
56326
  /* @__PURE__ */ jsx179(Switch7, { checked: withRecords, disabled: copying, onCheckedChange: setWithRecords, "aria-label": "Copy its records" })
56318
56327
  ] }),
56319
56328
  phase.kind === "copying" ? /* @__PURE__ */ jsx179("p", { className: "text-xs text-muted-foreground", "data-table-duplicate-progress": "", children: phase.progress ? duplicateProgressWords(phase.progress) : "Starting the copy\u2026" }) : null,
56320
- phase.kind === "refused" ? /* @__PURE__ */ jsx179(ErrorBox8, { children: phase.sentence }) : null,
56329
+ phase.kind === "refused" ? /* @__PURE__ */ jsx179(ErrorBox9, { children: phase.sentence }) : null,
56321
56330
  problem && typed2 !== "" ? /* @__PURE__ */ jsx179("p", { className: "text-xs text-muted-foreground", children: problem }) : null
56322
56331
  ] }),
56323
56332
  /* @__PURE__ */ jsx179(DialogFooter13, { children: phase.kind === "done" ? /* @__PURE__ */ jsx179(Button120, { onClick: () => openCopy(phase.copy), "data-table-duplicate-open": "", children: "Open the copy" }) : /* @__PURE__ */ jsxs167(Fragment74, { children: [
@@ -58278,7 +58287,7 @@ import { formatCount as formatCount9 } from "@ai-matrx/kit/format";
58278
58287
  import { TapTargetSearchGroup as TapTargetSearchGroup2, TooltipProvider } from "@ai-matrx/design-system";
58279
58288
  import { MatrxTableCardShowMore as MatrxTableCardShowMore3 } from "@ai-matrx/design-system/data-table";
58280
58289
  import { useEffect as useEffect132, useMemo as useMemo86, useRef as useRef69, useState as useState157 } from "react";
58281
- import { Button as Button123, ErrorBox as ErrorBox9, Input as Input13, cn as cn105 } from "@ai-matrx/design-system";
58290
+ import { Button as Button123, ErrorBox as ErrorBox10, Input as Input13, cn as cn105 } from "@ai-matrx/design-system";
58282
58291
  import { SEED_FRESH_MS, useRecordsClient as useRecordsClient109, useSeededAnswerAt } from "@ai-matrx/records/react";
58283
58292
  init_plainWords();
58284
58293
  import { Fragment as Fragment76, jsx as jsx183, jsxs as jsxs171 } from "react/jsx-runtime";
@@ -58336,7 +58345,7 @@ function EntityBoard({ entity, groupBy, cardFields, onOpenRecord, className }) {
58336
58345
  /* @__PURE__ */ jsx183("span", { className: "truncate font-medium", children: lane.label }),
58337
58346
  /* @__PURE__ */ jsx183("span", { className: "tabular-nums text-muted-foreground", children: cards.length })
58338
58347
  ] }),
58339
- refused && refused.to === lane.key ? /* @__PURE__ */ jsx183(ErrorBox9, { className: "rounded border border-destructive/40 px-1.5 py-1 text-xs text-destructive", message: refused.says, operation: "Move a card", origin: "records-ui/entityViews" }) : null,
58348
+ refused && refused.to === lane.key ? /* @__PURE__ */ jsx183(ErrorBox10, { className: "rounded border border-destructive/40 px-1.5 py-1 text-xs text-destructive", message: refused.says, operation: "Move a card", origin: "records-ui/entityViews" }) : null,
58340
58349
  cards.map((row) => /* @__PURE__ */ jsxs171(
58341
58350
  "article",
58342
58351
  {
@@ -58508,7 +58517,7 @@ function EntityTablePageBody({
58508
58517
  actions
58509
58518
  ] })
58510
58519
  ] }) : null,
58511
- addRefused ? /* @__PURE__ */ jsx183(ErrorBox9, { className: "rounded border border-destructive/40 px-1.5 py-1 text-xs text-destructive", message: addRefused, operation: "Add a row", origin: "records-ui/entityViews" }) : null,
58520
+ addRefused ? /* @__PURE__ */ jsx183(ErrorBox10, { className: "rounded border border-destructive/40 px-1.5 py-1 text-xs text-destructive", message: addRefused, operation: "Add a row", origin: "records-ui/entityViews" }) : null,
58512
58521
  entity.error ? /* @__PURE__ */ jsx183("p", { className: "px-1 py-3 text-xs text-muted-foreground", children: `This table could not be read: ${entity.error}` }) : layout === "board" && boardable ? /* @__PURE__ */ jsx183(EntityBoard, { entity, groupBy, onOpenRecord }) : /* @__PURE__ */ jsxs171(Fragment76, { children: [
58513
58522
  presentation === "embedded" && searchBox ? /* @__PURE__ */ jsx183("div", { className: "flex min-w-0 items-center justify-end", "data-records-entity-search": "", children: /* @__PURE__ */ jsx183(TooltipProvider, { children: /* @__PURE__ */ jsx183(
58514
58523
  TapTargetSearchGroup2,