@ai-matrx/records-ui 0.116.103 → 0.116.105

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.
@@ -23,4 +23,5 @@ declare function lastChangeSentence(fieldLabel: string, entry: FieldHistoryEntry
23
23
  */
24
24
  declare function actorBadge(actor: HistoryActor, resolve?: ResolveName | undefined): string;
25
25
 
26
- export { type ResolveName, SOMEBODY, THE_SYSTEM, actorBadge, actorWords, lastChangeSentence, personActor, recordsDataSource, whenWords };
26
+ export { SOMEBODY, THE_SYSTEM, actorBadge, actorWords, lastChangeSentence, personActor, recordsDataSource, whenWords };
27
+ export type { ResolveName };
@@ -23,4 +23,5 @@ declare function lastChangeSentence(fieldLabel: string, entry: FieldHistoryEntry
23
23
  */
24
24
  declare function actorBadge(actor: HistoryActor, resolve?: ResolveName | undefined): string;
25
25
 
26
- export { type ResolveName, SOMEBODY, THE_SYSTEM, actorBadge, actorWords, lastChangeSentence, personActor, recordsDataSource, whenWords };
26
+ export { SOMEBODY, THE_SYSTEM, actorBadge, actorWords, lastChangeSentence, personActor, recordsDataSource, whenWords };
27
+ export type { ResolveName };
@@ -267,4 +267,5 @@ declare function isNativeNewTabClick(e: {
267
267
  button?: number;
268
268
  }): boolean;
269
269
 
270
- export { type EntityAddress, type EntityDoors, type EntityRefDescriptor, type EntityRefHost, type EntityRefLinkProps, type EntityRefPeekAsk, type EntityRefPerson, type EntityRefRegistry, type SentenceSegment, configureEntityRefs, doorTokenFromColumnName, entityRefsConfigured, hasAnyDoor, isNativeNewTabClick, resolveEntityDoors, segmentSentenceIds, tokenFromPrecedingWords };
270
+ export { configureEntityRefs, doorTokenFromColumnName, entityRefsConfigured, hasAnyDoor, isNativeNewTabClick, resolveEntityDoors, segmentSentenceIds, tokenFromPrecedingWords };
271
+ export type { EntityAddress, EntityDoors, EntityRefDescriptor, EntityRefHost, EntityRefLinkProps, EntityRefPeekAsk, EntityRefPerson, EntityRefRegistry, SentenceSegment };
@@ -267,4 +267,5 @@ declare function isNativeNewTabClick(e: {
267
267
  button?: number;
268
268
  }): boolean;
269
269
 
270
- export { type EntityAddress, type EntityDoors, type EntityRefDescriptor, type EntityRefHost, type EntityRefLinkProps, type EntityRefPeekAsk, type EntityRefPerson, type EntityRefRegistry, type SentenceSegment, configureEntityRefs, doorTokenFromColumnName, entityRefsConfigured, hasAnyDoor, isNativeNewTabClick, resolveEntityDoors, segmentSentenceIds, tokenFromPrecedingWords };
270
+ export { configureEntityRefs, doorTokenFromColumnName, entityRefsConfigured, hasAnyDoor, isNativeNewTabClick, resolveEntityDoors, segmentSentenceIds, tokenFromPrecedingWords };
271
+ export type { EntityAddress, EntityDoors, EntityRefDescriptor, EntityRefHost, EntityRefLinkProps, EntityRefPeekAsk, EntityRefPerson, EntityRefRegistry, SentenceSegment };
@@ -687,4 +687,5 @@ interface RecordStampsProps {
687
687
  }
688
688
  declare function RecordStamps({ createdAt, createdBy, component, updatedAt, updatedBy, deletedAt, version, formatTimestamp, resolveActor, className, }: RecordStampsProps): react.JSX.Element;
689
689
 
690
- export { ENTITY_DOOR_CONTROL_CLASS, type EntityAddress, EntityDoorControls, type EntityDoorControlsProps, type EntityDoors, type EntityHrefResult, EntityRef, type EntityRefDescriptor, type EntityRefHost, type EntityRefLinkProps, type EntityRefPeekAsk, type EntityRefPerson, type EntityRefRegistry, NEW_TAB_CONTROL_CLASS, NewTabLink, type NewTabLinkProps, type RecordStampActor, RecordStamps, type RecordStampsProps, type SentenceSegment, TextWithDoors, type TextWithDoorsProps, type ToastDoorOptions, configureEntityRefs, doorTokenFromColumnName, entityRefsConfigured, hasAnyDoor, isNativeNewTabClick, resolveEntityDoors, segmentSentenceIds, toastDoor, tokenFromPrecedingWords, useEntityHref };
690
+ export { ENTITY_DOOR_CONTROL_CLASS, EntityDoorControls, EntityRef, NEW_TAB_CONTROL_CLASS, NewTabLink, RecordStamps, TextWithDoors, configureEntityRefs, doorTokenFromColumnName, entityRefsConfigured, hasAnyDoor, isNativeNewTabClick, resolveEntityDoors, segmentSentenceIds, toastDoor, tokenFromPrecedingWords, useEntityHref };
691
+ export type { EntityAddress, EntityDoorControlsProps, EntityDoors, EntityHrefResult, EntityRefDescriptor, EntityRefHost, EntityRefLinkProps, EntityRefPeekAsk, EntityRefPerson, EntityRefRegistry, NewTabLinkProps, RecordStampActor, RecordStampsProps, SentenceSegment, TextWithDoorsProps, ToastDoorOptions };
@@ -687,4 +687,5 @@ interface RecordStampsProps {
687
687
  }
688
688
  declare function RecordStamps({ createdAt, createdBy, component, updatedAt, updatedBy, deletedAt, version, formatTimestamp, resolveActor, className, }: RecordStampsProps): react.JSX.Element;
689
689
 
690
- export { ENTITY_DOOR_CONTROL_CLASS, type EntityAddress, EntityDoorControls, type EntityDoorControlsProps, type EntityDoors, type EntityHrefResult, EntityRef, type EntityRefDescriptor, type EntityRefHost, type EntityRefLinkProps, type EntityRefPeekAsk, type EntityRefPerson, type EntityRefRegistry, NEW_TAB_CONTROL_CLASS, NewTabLink, type NewTabLinkProps, type RecordStampActor, RecordStamps, type RecordStampsProps, type SentenceSegment, TextWithDoors, type TextWithDoorsProps, type ToastDoorOptions, configureEntityRefs, doorTokenFromColumnName, entityRefsConfigured, hasAnyDoor, isNativeNewTabClick, resolveEntityDoors, segmentSentenceIds, toastDoor, tokenFromPrecedingWords, useEntityHref };
690
+ export { ENTITY_DOOR_CONTROL_CLASS, EntityDoorControls, EntityRef, NEW_TAB_CONTROL_CLASS, NewTabLink, RecordStamps, TextWithDoors, configureEntityRefs, doorTokenFromColumnName, entityRefsConfigured, hasAnyDoor, isNativeNewTabClick, resolveEntityDoors, segmentSentenceIds, toastDoor, tokenFromPrecedingWords, useEntityHref };
691
+ export type { EntityAddress, EntityDoorControlsProps, EntityDoors, EntityHrefResult, EntityRefDescriptor, EntityRefHost, EntityRefLinkProps, EntityRefPeekAsk, EntityRefPerson, EntityRefRegistry, NewTabLinkProps, RecordStampActor, RecordStampsProps, SentenceSegment, TextWithDoorsProps, ToastDoorOptions };
@@ -188,4 +188,5 @@ type BoundFirstPage = ReturnType<typeof bindFirstPageCodec<GridPresentation>>;
188
188
  declare const firstGridPageRequest: BoundFirstPage["firstGridPageRequest"];
189
189
  declare const askTablePageSeed: BoundFirstPage["askTablePageSeed"];
190
190
 
191
- export { type GridPresentation, askTablePageSeed, firstGridPageRequest };
191
+ export { askTablePageSeed, firstGridPageRequest };
192
+ export type { GridPresentation };
@@ -188,4 +188,5 @@ type BoundFirstPage = ReturnType<typeof bindFirstPageCodec<GridPresentation>>;
188
188
  declare const firstGridPageRequest: BoundFirstPage["firstGridPageRequest"];
189
189
  declare const askTablePageSeed: BoundFirstPage["askTablePageSeed"];
190
190
 
191
- export { type GridPresentation, askTablePageSeed, firstGridPageRequest };
191
+ export { askTablePageSeed, firstGridPageRequest };
192
+ export type { GridPresentation };
@@ -1741,7 +1741,7 @@ declare function laneFor(table: Table): TableLane;
1741
1741
  */
1742
1742
  declare function bodyFieldOf(fields: readonly Field[]): Field | undefined;
1743
1743
 
1744
- declare const readLooks: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookRead">, tableId: _ai_matrx_records.Uuid) => Promise<_ai_matrx_records.RecordsResult<Record<string, Partial<Pick<base.SavedViewSpec<GridPresentation>, "measure" | "presentation" | "mapField" | "where" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField" | "answerField" | "conditionField" | "sorts">>>>>;
1744
+ declare const readLooks: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookRead">, tableId: _ai_matrx_records.Uuid) => Promise<_ai_matrx_records.RecordsResult<Record<string, Partial<Pick<base.SavedViewSpec<GridPresentation>, "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "measure" | "dateField" | "startField" | "endField" | "imageField" | "mapField" | "mapLngField" | "parentField" | "answerField" | "conditionField" | "sorts" | "where" | "presentation">>>>>;
1745
1745
 
1746
1746
  declare const viewFromRow: (row: _ai_matrx_records.SavedViewRow) => base.SavedView<GridPresentation>;
1747
1747
 
@@ -1898,4 +1898,5 @@ interface RecordActionsInput {
1898
1898
  */
1899
1899
  declare function recordActions(input: RecordActionsInput): ObjectAction[];
1900
1900
 
1901
- export { type AgentBuildAsk, type AnnounceTableArchived, ADDABLE_TYPES as CUSTOM_FIELD_ADDABLE_TYPES, type EditorKind, FIELD_SENSITIVITY_LABEL, NO_RIGHTS, type OpenRecordsAsk, PARITY_LABEL, PARITY_MADE_OF, type PickerTable, RECORDS_SKELETON_LAYOUTS, type RecordActionHost, type RecordActionSubject, type RecordActionsInput, type RecordsSkeletonLayout, type RecordsUiHost, type ResolveName, SOMEBODY, THE_SYSTEM, type TableLane, type TablePickerEntries, type TablePickerEntry, type TableRights, UNREAD_RECORD_LABEL, VIEW_ADDRESS_KEYS, type ViewAddressSort, type ViewAddressState, WITHHELD_RECORD_LABEL, WITHHELD_WORD, actorBadge, actorWords, announceTableArchived, bodyFieldOf, cardTitleField, codeDependsRefusal, editorKindFor, fieldName, fieldTypeLabel, getPersonTimeZone, googleCalendarUrl, gridContextSnapshot, isInterface, isKeptTable, isPage, isValueSet, isViewAddressEmpty, laneFor, lastChangeSentence, looksLikeId, personActor, personWallNow, pickableTypeOf, platformOwned, readLooks, recordActions, recordName, recordNameIn, recordsDataSource, refusalForAPerson, resolveTableStyle, rowName, rowNameIn, sameViewAddress, setPersonTimeZone, singularNoun, skeletonLayoutFor, styleFromDecorations, subscribePersonTimeZone, tableName, tablePickerEntries, tableRightsAt, viewAddressFromParams, viewAddressToParams, viewFromRow, webcalUrl, whatYouMayDo, whenWords, withheldNoticeOf, withheldSentence };
1901
+ export { ADDABLE_TYPES as CUSTOM_FIELD_ADDABLE_TYPES, FIELD_SENSITIVITY_LABEL, NO_RIGHTS, PARITY_LABEL, PARITY_MADE_OF, RECORDS_SKELETON_LAYOUTS, SOMEBODY, THE_SYSTEM, UNREAD_RECORD_LABEL, VIEW_ADDRESS_KEYS, WITHHELD_RECORD_LABEL, WITHHELD_WORD, actorBadge, actorWords, announceTableArchived, bodyFieldOf, cardTitleField, codeDependsRefusal, editorKindFor, fieldName, fieldTypeLabel, getPersonTimeZone, googleCalendarUrl, gridContextSnapshot, isInterface, isKeptTable, isPage, isValueSet, isViewAddressEmpty, laneFor, lastChangeSentence, looksLikeId, personActor, personWallNow, pickableTypeOf, platformOwned, readLooks, recordActions, recordName, recordNameIn, recordsDataSource, refusalForAPerson, resolveTableStyle, rowName, rowNameIn, sameViewAddress, setPersonTimeZone, singularNoun, skeletonLayoutFor, styleFromDecorations, subscribePersonTimeZone, tableName, tablePickerEntries, tableRightsAt, viewAddressFromParams, viewAddressToParams, viewFromRow, webcalUrl, whatYouMayDo, whenWords, withheldNoticeOf, withheldSentence };
1902
+ export type { AgentBuildAsk, AnnounceTableArchived, EditorKind, OpenRecordsAsk, PickerTable, RecordActionHost, RecordActionSubject, RecordActionsInput, RecordsSkeletonLayout, RecordsUiHost, ResolveName, TableLane, TablePickerEntries, TablePickerEntry, TableRights, ViewAddressSort, ViewAddressState };
package/dist/helpers.d.ts CHANGED
@@ -1741,7 +1741,7 @@ declare function laneFor(table: Table): TableLane;
1741
1741
  */
1742
1742
  declare function bodyFieldOf(fields: readonly Field[]): Field | undefined;
1743
1743
 
1744
- declare const readLooks: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookRead">, tableId: _ai_matrx_records.Uuid) => Promise<_ai_matrx_records.RecordsResult<Record<string, Partial<Pick<base.SavedViewSpec<GridPresentation>, "measure" | "presentation" | "mapField" | "where" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField" | "answerField" | "conditionField" | "sorts">>>>>;
1744
+ declare const readLooks: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookRead">, tableId: _ai_matrx_records.Uuid) => Promise<_ai_matrx_records.RecordsResult<Record<string, Partial<Pick<base.SavedViewSpec<GridPresentation>, "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "measure" | "dateField" | "startField" | "endField" | "imageField" | "mapField" | "mapLngField" | "parentField" | "answerField" | "conditionField" | "sorts" | "where" | "presentation">>>>>;
1745
1745
 
1746
1746
  declare const viewFromRow: (row: _ai_matrx_records.SavedViewRow) => base.SavedView<GridPresentation>;
1747
1747
 
@@ -1898,4 +1898,5 @@ interface RecordActionsInput {
1898
1898
  */
1899
1899
  declare function recordActions(input: RecordActionsInput): ObjectAction[];
1900
1900
 
1901
- export { type AgentBuildAsk, type AnnounceTableArchived, ADDABLE_TYPES as CUSTOM_FIELD_ADDABLE_TYPES, type EditorKind, FIELD_SENSITIVITY_LABEL, NO_RIGHTS, type OpenRecordsAsk, PARITY_LABEL, PARITY_MADE_OF, type PickerTable, RECORDS_SKELETON_LAYOUTS, type RecordActionHost, type RecordActionSubject, type RecordActionsInput, type RecordsSkeletonLayout, type RecordsUiHost, type ResolveName, SOMEBODY, THE_SYSTEM, type TableLane, type TablePickerEntries, type TablePickerEntry, type TableRights, UNREAD_RECORD_LABEL, VIEW_ADDRESS_KEYS, type ViewAddressSort, type ViewAddressState, WITHHELD_RECORD_LABEL, WITHHELD_WORD, actorBadge, actorWords, announceTableArchived, bodyFieldOf, cardTitleField, codeDependsRefusal, editorKindFor, fieldName, fieldTypeLabel, getPersonTimeZone, googleCalendarUrl, gridContextSnapshot, isInterface, isKeptTable, isPage, isValueSet, isViewAddressEmpty, laneFor, lastChangeSentence, looksLikeId, personActor, personWallNow, pickableTypeOf, platformOwned, readLooks, recordActions, recordName, recordNameIn, recordsDataSource, refusalForAPerson, resolveTableStyle, rowName, rowNameIn, sameViewAddress, setPersonTimeZone, singularNoun, skeletonLayoutFor, styleFromDecorations, subscribePersonTimeZone, tableName, tablePickerEntries, tableRightsAt, viewAddressFromParams, viewAddressToParams, viewFromRow, webcalUrl, whatYouMayDo, whenWords, withheldNoticeOf, withheldSentence };
1901
+ export { ADDABLE_TYPES as CUSTOM_FIELD_ADDABLE_TYPES, FIELD_SENSITIVITY_LABEL, NO_RIGHTS, PARITY_LABEL, PARITY_MADE_OF, RECORDS_SKELETON_LAYOUTS, SOMEBODY, THE_SYSTEM, UNREAD_RECORD_LABEL, VIEW_ADDRESS_KEYS, WITHHELD_RECORD_LABEL, WITHHELD_WORD, actorBadge, actorWords, announceTableArchived, bodyFieldOf, cardTitleField, codeDependsRefusal, editorKindFor, fieldName, fieldTypeLabel, getPersonTimeZone, googleCalendarUrl, gridContextSnapshot, isInterface, isKeptTable, isPage, isValueSet, isViewAddressEmpty, laneFor, lastChangeSentence, looksLikeId, personActor, personWallNow, pickableTypeOf, platformOwned, readLooks, recordActions, recordName, recordNameIn, recordsDataSource, refusalForAPerson, resolveTableStyle, rowName, rowNameIn, sameViewAddress, setPersonTimeZone, singularNoun, skeletonLayoutFor, styleFromDecorations, subscribePersonTimeZone, tableName, tablePickerEntries, tableRightsAt, viewAddressFromParams, viewAddressToParams, viewFromRow, webcalUrl, whatYouMayDo, whenWords, withheldNoticeOf, withheldSentence };
1902
+ export type { AgentBuildAsk, AnnounceTableArchived, EditorKind, OpenRecordsAsk, PickerTable, RecordActionHost, RecordActionSubject, RecordActionsInput, RecordsSkeletonLayout, RecordsUiHost, ResolveName, TableLane, TablePickerEntries, TablePickerEntry, TableRights, ViewAddressSort, ViewAddressState };
@@ -72,4 +72,5 @@ interface HtmlSampleFrameProps {
72
72
  */
73
73
  declare function HtmlSampleFrame({ html, title, className, initialHeight }: HtmlSampleFrameProps): react.JSX.Element;
74
74
 
75
- export { HTML_SAMPLE_CSP, HTML_SAMPLE_SANDBOX, HtmlSampleFrame, type HtmlSampleFrameProps, HtmlSampleTokensProvider, SAMPLE_TOKEN_NAMES, type SampleTheme, type SampleTokenSet, type SampleTokens, TokenScope, fontLink, forwardWheel, hexToHslTriplet, hostTheme, hostTokens, sampleDocument, sampleHeight, sampleStyle, tokenScopeStyle, tokenValue, useHostTheme, useSampleTokens };
75
+ export { HTML_SAMPLE_CSP, HTML_SAMPLE_SANDBOX, HtmlSampleFrame, HtmlSampleTokensProvider, SAMPLE_TOKEN_NAMES, TokenScope, fontLink, forwardWheel, hexToHslTriplet, hostTheme, hostTokens, sampleDocument, sampleHeight, sampleStyle, tokenScopeStyle, tokenValue, useHostTheme, useSampleTokens };
76
+ export type { HtmlSampleFrameProps, SampleTheme, SampleTokenSet, SampleTokens };
@@ -72,4 +72,5 @@ interface HtmlSampleFrameProps {
72
72
  */
73
73
  declare function HtmlSampleFrame({ html, title, className, initialHeight }: HtmlSampleFrameProps): react.JSX.Element;
74
74
 
75
- export { HTML_SAMPLE_CSP, HTML_SAMPLE_SANDBOX, HtmlSampleFrame, type HtmlSampleFrameProps, HtmlSampleTokensProvider, SAMPLE_TOKEN_NAMES, type SampleTheme, type SampleTokenSet, type SampleTokens, TokenScope, fontLink, forwardWheel, hexToHslTriplet, hostTheme, hostTokens, sampleDocument, sampleHeight, sampleStyle, tokenScopeStyle, tokenValue, useHostTheme, useSampleTokens };
75
+ export { HTML_SAMPLE_CSP, HTML_SAMPLE_SANDBOX, HtmlSampleFrame, HtmlSampleTokensProvider, SAMPLE_TOKEN_NAMES, TokenScope, fontLink, forwardWheel, hexToHslTriplet, hostTheme, hostTokens, sampleDocument, sampleHeight, sampleStyle, tokenScopeStyle, tokenValue, useHostTheme, useSampleTokens };
76
+ export type { HtmlSampleFrameProps, SampleTheme, SampleTokenSet, SampleTokens };
package/dist/index.cjs CHANGED
@@ -26915,10 +26915,11 @@ var import_field_formats15 = require("@ai-matrx/design-system/field-formats");
26915
26915
  var import_jsx_runtime84 = require("react/jsx-runtime");
26916
26916
  var SHARED_FOR_MS = 5e3;
26917
26917
  var sharedReads = /* @__PURE__ */ new WeakMap();
26918
+ var KEPT_OUT_OF_LISTS = /* @__PURE__ */ new Set(["agent_output", "copying"]);
26918
26919
  function readTablesAnywhere(dataSource) {
26919
26920
  const held = sharedReads.get(dataSource);
26920
26921
  if (held && Date.now() - held.at < SHARED_FOR_MS) return held.read;
26921
- const read = Promise.resolve(dataSource.rpc("data_home_tables", {}, { schema: "custom" })).then(
26922
+ const read = Promise.resolve(dataSource.rpc("data_home", { p_include_platform_tables: true }, { schema: "custom" })).then(
26922
26923
  ({ data, error }) => {
26923
26924
  if (error) {
26924
26925
  return {
@@ -26927,7 +26928,8 @@ function readTablesAnywhere(dataSource) {
26927
26928
  rows: []
26928
26929
  };
26929
26930
  }
26930
- const rows = (Array.isArray(data) ? data : []).slice();
26931
+ const answered = data && typeof data === "object" && !Array.isArray(data) ? data.tables : null;
26932
+ const rows = (Array.isArray(answered) ? answered : []).filter((t) => !KEPT_OUT_OF_LISTS.has(t.kind ?? ""));
26931
26933
  rows.sort((a, b) => a.table_name.localeCompare(b.table_name));
26932
26934
  return { loading: false, error: null, rows };
26933
26935
  },
@@ -32000,7 +32002,7 @@ function withTypeMark(field2, header) {
32000
32002
  const stamp = stampMarkOf(field2);
32001
32003
  const kind2 = stamp ?? editorKindFor(field2);
32002
32004
  const parts = (stamp ? STAMP_ICON[stamp] : TYPE_ICON[editorKindFor(field2)]) ?? TYPE_ICON.text;
32003
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("span", { className: "inline-flex min-w-0 items-center gap-1.5", "data-records-type-mark": kind2, title: fieldHelpText(field2), children: [
32005
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("span", { className: "flex min-w-0 max-w-full items-center gap-1.5", "data-records-type-mark": kind2, title: fieldHelpText(field2) ?? (typeof header === "string" ? header : void 0), children: [
32004
32006
  /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
32005
32007
  "svg",
32006
32008
  {
@@ -32022,7 +32024,7 @@ function withTypeMark(field2, header) {
32022
32024
  })
32023
32025
  }
32024
32026
  ),
32025
- header
32027
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("span", { "data-records-type-label": "", className: "min-w-0 truncate", children: header })
32026
32028
  ] });
32027
32029
  }
32028
32030