@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.
- package/CHANGELOG.md +31 -0
- package/dist/{chunk-VQDHNYJQ.js → chunk-TZ2KUSHH.js} +5 -3
- package/dist/{chunk-VQDHNYJQ.js.map → chunk-TZ2KUSHH.js.map} +1 -1
- package/dist/data-source.d.cts +2 -1
- package/dist/data-source.d.ts +2 -1
- package/dist/entity-doors.d.cts +2 -1
- package/dist/entity-doors.d.ts +2 -1
- package/dist/entity-ref.d.cts +2 -1
- package/dist/entity-ref.d.ts +2 -1
- package/dist/first-page.d.cts +2 -1
- package/dist/first-page.d.ts +2 -1
- package/dist/helpers.d.cts +3 -2
- package/dist/helpers.d.ts +3 -2
- package/dist/html-frame.d.cts +2 -1
- package/dist/html-frame.d.ts +2 -1
- package/dist/index.cjs +6 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -9
- package/dist/index.d.ts +10 -9
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/object-actions.d.cts +1 -1
- package/dist/object-actions.d.ts +1 -1
- package/dist/{objectActions-Df9fA6DR.d.cts → objectActions-DeP_tTmc.d.cts} +2 -1
- package/dist/{objectActions-Df9fA6DR.d.ts → objectActions-DeP_tTmc.d.ts} +2 -1
- package/dist/pickers.cjs +4 -2
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.d.cts +2 -1
- package/dist/pickers.d.ts +2 -1
- package/dist/pickers.js +1 -1
- package/dist/skeleton.d.cts +2 -1
- package/dist/skeleton.d.ts +2 -1
- package/dist/table-shape.d.cts +2 -1
- package/dist/table-shape.d.ts +2 -1
- package/package.json +2 -2
package/dist/data-source.d.cts
CHANGED
|
@@ -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 {
|
|
26
|
+
export { SOMEBODY, THE_SYSTEM, actorBadge, actorWords, lastChangeSentence, personActor, recordsDataSource, whenWords };
|
|
27
|
+
export type { ResolveName };
|
package/dist/data-source.d.ts
CHANGED
|
@@ -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 {
|
|
26
|
+
export { SOMEBODY, THE_SYSTEM, actorBadge, actorWords, lastChangeSentence, personActor, recordsDataSource, whenWords };
|
|
27
|
+
export type { ResolveName };
|
package/dist/entity-doors.d.cts
CHANGED
|
@@ -267,4 +267,5 @@ declare function isNativeNewTabClick(e: {
|
|
|
267
267
|
button?: number;
|
|
268
268
|
}): boolean;
|
|
269
269
|
|
|
270
|
-
export {
|
|
270
|
+
export { configureEntityRefs, doorTokenFromColumnName, entityRefsConfigured, hasAnyDoor, isNativeNewTabClick, resolveEntityDoors, segmentSentenceIds, tokenFromPrecedingWords };
|
|
271
|
+
export type { EntityAddress, EntityDoors, EntityRefDescriptor, EntityRefHost, EntityRefLinkProps, EntityRefPeekAsk, EntityRefPerson, EntityRefRegistry, SentenceSegment };
|
package/dist/entity-doors.d.ts
CHANGED
|
@@ -267,4 +267,5 @@ declare function isNativeNewTabClick(e: {
|
|
|
267
267
|
button?: number;
|
|
268
268
|
}): boolean;
|
|
269
269
|
|
|
270
|
-
export {
|
|
270
|
+
export { configureEntityRefs, doorTokenFromColumnName, entityRefsConfigured, hasAnyDoor, isNativeNewTabClick, resolveEntityDoors, segmentSentenceIds, tokenFromPrecedingWords };
|
|
271
|
+
export type { EntityAddress, EntityDoors, EntityRefDescriptor, EntityRefHost, EntityRefLinkProps, EntityRefPeekAsk, EntityRefPerson, EntityRefRegistry, SentenceSegment };
|
package/dist/entity-ref.d.cts
CHANGED
|
@@ -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,
|
|
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 };
|
package/dist/entity-ref.d.ts
CHANGED
|
@@ -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,
|
|
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 };
|
package/dist/first-page.d.cts
CHANGED
|
@@ -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 {
|
|
191
|
+
export { askTablePageSeed, firstGridPageRequest };
|
|
192
|
+
export type { GridPresentation };
|
package/dist/first-page.d.ts
CHANGED
|
@@ -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 {
|
|
191
|
+
export { askTablePageSeed, firstGridPageRequest };
|
|
192
|
+
export type { GridPresentation };
|
package/dist/helpers.d.cts
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>, "
|
|
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 {
|
|
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>, "
|
|
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 {
|
|
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/html-frame.d.cts
CHANGED
|
@@ -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,
|
|
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/html-frame.d.ts
CHANGED
|
@@ -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,
|
|
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("
|
|
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
|
|
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: "
|
|
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
|
|