@ai-matrx/records 0.81.2 → 0.82.0
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 +30 -0
- package/dist/app-table/index.cjs +1 -1
- package/dist/app-table/index.cjs.map +1 -1
- package/dist/app-table/index.d.cts +3 -3
- package/dist/app-table/index.d.ts +3 -3
- package/dist/app-table/index.js +1 -1
- package/dist/app-table/index.js.map +1 -1
- package/dist/{client-DLIKeBWF.d.cts → client-CesQciPd.d.cts} +1 -1
- package/dist/{client-D1LTezMZ.d.ts → client-TU-nvgcF.d.ts} +1 -1
- package/dist/core/index.cjs +3 -3
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +3 -3
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs +1 -1
- package/dist/data/index.cjs.map +1 -1
- package/dist/data/index.d.cts +2 -2
- package/dist/data/index.d.ts +2 -2
- package/dist/data/index.js +1 -1
- package/dist/data/index.js.map +1 -1
- package/dist/{declareTable-02uao-5n.d.cts → declareTable-B9sr2E0h.d.cts} +2 -2
- package/dist/{declareTable-C5FlIS0z.d.ts → declareTable-COXYIOiT.d.ts} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +3 -3
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +3 -19
- package/dist/react/index.d.ts +3 -19
- package/dist/react/index.js +3 -3
- package/dist/react/index.js.map +1 -1
- package/dist/{table-kind-LodkBhCZ.d.cts → table-kind-B4vIKJVM.d.cts} +3 -19
- package/dist/{table-kind-COmkYYkc.d.ts → table-kind-C5T-DOdc.d.ts} +3 -19
- package/dist/templates/index.cjs +147 -4
- package/dist/templates/index.cjs.map +1 -1
- package/dist/templates/index.js +147 -4
- package/dist/templates/index.js.map +1 -1
- package/package.json +4 -4
package/dist/react/index.cjs
CHANGED
|
@@ -1116,7 +1116,7 @@ function exportCellText(value) {
|
|
|
1116
1116
|
return JSON.stringify(value);
|
|
1117
1117
|
}
|
|
1118
1118
|
async function exportPageXlsx(page2, labels = {}, sheetLabel = "Records") {
|
|
1119
|
-
const { writeWorkbookBytes } = await import("@ai-matrx/
|
|
1119
|
+
const { writeWorkbookBytes } = await import("@ai-matrx/print/xlsx");
|
|
1120
1120
|
const header = page2.columns.map((c) => labels[c] ?? c);
|
|
1121
1121
|
const body = page2.rows.map((row) => page2.columns.map((c) => exportCellText(row[c])));
|
|
1122
1122
|
const name = sheetLabel.replace(/[\\/?*[\]:]/g, " ").trim().slice(0, 31) || "Records";
|
|
@@ -8213,9 +8213,9 @@ function useAsync(run, key, live) {
|
|
|
8213
8213
|
entry.run = run;
|
|
8214
8214
|
entry.client = client;
|
|
8215
8215
|
const seed = useSeedStore();
|
|
8216
|
-
if (seed
|
|
8216
|
+
if (seed) {
|
|
8217
8217
|
const outcome = (0, import_react4.use)(seed.run(`${identityOf(client)}|${key}`, run, client.config));
|
|
8218
|
-
if (outcome.seeded) seedEntry(entry, outcome.data, outcome.stale);
|
|
8218
|
+
if (outcome.seeded && entry.snapshot.data === null && !entry.snapshot.error) seedEntry(entry, outcome.data, outcome.stale);
|
|
8219
8219
|
}
|
|
8220
8220
|
const snapshot = (0, import_react4.useSyncExternalStore)(entry.subscribe, entry.getSnapshot, entry.getSnapshot);
|
|
8221
8221
|
(0, import_react4.useEffect)(() => {
|