@ai-matrx/records-ui 0.116.111 → 0.116.113
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 +35 -2
- package/dist/{SaveToTable-PDRY5OXB.js → SaveToTable-GRDFTAC4.js} +3 -3
- package/dist/{chunk-266JKBAS.js → chunk-DZ4KNUSS.js} +1 -1
- package/dist/chunk-DZ4KNUSS.js.map +1 -0
- package/dist/{chunk-HTZPVHDG.js → chunk-LGQLATW5.js} +7 -7
- package/dist/{chunk-HTZPVHDG.js.map → chunk-LGQLATW5.js.map} +1 -1
- package/dist/{chunk-FD4GYJX6.js → chunk-N76I4VXM.js} +4 -3
- package/dist/{chunk-FD4GYJX6.js.map → chunk-N76I4VXM.js.map} +1 -1
- package/dist/entity-ref.cjs +1 -1
- package/dist/entity-ref.cjs.map +1 -1
- package/dist/entity-ref.d.cts +4 -1
- package/dist/entity-ref.d.ts +4 -1
- package/dist/entity-ref.js +1 -1
- package/dist/entity-ref.js.map +1 -1
- package/dist/helpers.cjs +4 -4
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.d.cts +11 -3
- package/dist/helpers.d.ts +11 -3
- package/dist/helpers.js +4 -4
- package/dist/helpers.js.map +1 -1
- package/dist/index.cjs +76 -71
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -4
- package/dist/index.d.ts +13 -4
- package/dist/index.js +73 -69
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +2 -2
- package/package.json +2 -2
- package/dist/chunk-266JKBAS.js.map +0 -1
- /package/dist/{SaveToTable-PDRY5OXB.js.map → SaveToTable-GRDFTAC4.js.map} +0 -0
package/dist/helpers.d.cts
CHANGED
|
@@ -400,6 +400,10 @@ declare function gridContextSnapshot(args: {
|
|
|
400
400
|
search: string;
|
|
401
401
|
}): GridContextSnapshot;
|
|
402
402
|
|
|
403
|
+
/** A notice card's optional line under its title (design-system NOTICE_TEXT_BUDGET). */
|
|
404
|
+
interface NoticeLine {
|
|
405
|
+
description?: string;
|
|
406
|
+
}
|
|
403
407
|
/** What a host's map painter is given. Pins arrive unclustered; the painter clusters them for its zoom. */
|
|
404
408
|
interface MapCanvasProps {
|
|
405
409
|
pins: readonly MapPin[];
|
|
@@ -742,12 +746,16 @@ interface RecordsUiHost {
|
|
|
742
746
|
}) => ReactNode;
|
|
743
747
|
/** Toasts. Absent means the screen shows the sentence inline instead — never silence. */
|
|
744
748
|
notify?: {
|
|
745
|
-
/**
|
|
749
|
+
/**
|
|
750
|
+
* A card: a short title and an optional line (`description`, design-system NOTICE_TEXT_BUDGET:
|
|
751
|
+
* the names and causes ride the line, never the title). `action`: one button on the card (an
|
|
752
|
+
* Undo). A host without actions draws the words alone.
|
|
753
|
+
*/
|
|
746
754
|
success: (message: string, action?: {
|
|
747
755
|
label: string;
|
|
748
756
|
run: () => void;
|
|
749
|
-
}) => void;
|
|
750
|
-
error: (message: string) => void;
|
|
757
|
+
}, options?: NoticeLine) => void;
|
|
758
|
+
error: (message: string, options?: NoticeLine) => void;
|
|
751
759
|
/**
|
|
752
760
|
* OPTIONAL. THE REVERSIBLE ACTION (`@ai-matrx/kit/reversible`): something this package did
|
|
753
761
|
* that can be undone — a table archived — handed to the host's one announcer, which acts it
|
package/dist/helpers.d.ts
CHANGED
|
@@ -400,6 +400,10 @@ declare function gridContextSnapshot(args: {
|
|
|
400
400
|
search: string;
|
|
401
401
|
}): GridContextSnapshot;
|
|
402
402
|
|
|
403
|
+
/** A notice card's optional line under its title (design-system NOTICE_TEXT_BUDGET). */
|
|
404
|
+
interface NoticeLine {
|
|
405
|
+
description?: string;
|
|
406
|
+
}
|
|
403
407
|
/** What a host's map painter is given. Pins arrive unclustered; the painter clusters them for its zoom. */
|
|
404
408
|
interface MapCanvasProps {
|
|
405
409
|
pins: readonly MapPin[];
|
|
@@ -742,12 +746,16 @@ interface RecordsUiHost {
|
|
|
742
746
|
}) => ReactNode;
|
|
743
747
|
/** Toasts. Absent means the screen shows the sentence inline instead — never silence. */
|
|
744
748
|
notify?: {
|
|
745
|
-
/**
|
|
749
|
+
/**
|
|
750
|
+
* A card: a short title and an optional line (`description`, design-system NOTICE_TEXT_BUDGET:
|
|
751
|
+
* the names and causes ride the line, never the title). `action`: one button on the card (an
|
|
752
|
+
* Undo). A host without actions draws the words alone.
|
|
753
|
+
*/
|
|
746
754
|
success: (message: string, action?: {
|
|
747
755
|
label: string;
|
|
748
756
|
run: () => void;
|
|
749
|
-
}) => void;
|
|
750
|
-
error: (message: string) => void;
|
|
757
|
+
}, options?: NoticeLine) => void;
|
|
758
|
+
error: (message: string, options?: NoticeLine) => void;
|
|
751
759
|
/**
|
|
752
760
|
* OPTIONAL. THE REVERSIBLE ACTION (`@ai-matrx/kit/reversible`): something this package did
|
|
753
761
|
* that can be undone — a table archived — handed to the host's one announcer, which acts it
|
package/dist/helpers.js
CHANGED
|
@@ -1144,16 +1144,16 @@ function announceTableArchived({ notify, client, tableId, name, onRestored }) {
|
|
|
1144
1144
|
notify.reversible({ verb: "archive", noun: "table", subject: name, undo });
|
|
1145
1145
|
return;
|
|
1146
1146
|
}
|
|
1147
|
-
notify?.success(
|
|
1147
|
+
notify?.success("Table archived", {
|
|
1148
1148
|
label: "Undo",
|
|
1149
1149
|
run: () => {
|
|
1150
1150
|
void undo().then(
|
|
1151
|
-
() => notify?.success(
|
|
1151
|
+
() => notify?.success("Restored", void 0, { description: `\u201C${name}\u201D` }),
|
|
1152
1152
|
// The store's refusal is already a person's sentence; anything else never prints raw.
|
|
1153
|
-
(thrown) => notify?.error(thrown instanceof TableRestoreRefused ? thrown.sentence :
|
|
1153
|
+
(thrown) => notify?.error("Not restored", { description: thrown instanceof TableRestoreRefused ? thrown.sentence : `\u201C${name}\u201D` })
|
|
1154
1154
|
);
|
|
1155
1155
|
}
|
|
1156
|
-
});
|
|
1156
|
+
}, { description: `\u201C${name}\u201D` });
|
|
1157
1157
|
}
|
|
1158
1158
|
|
|
1159
1159
|
// src/skeletonLayout.ts
|