@ai-matrx/records 0.81.1 → 0.81.3
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 +22 -0
- 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.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 +26 -1
- 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 +26 -1
- package/dist/core/index.js.map +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.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 +26 -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 +26 -1
- package/dist/index.js.map +1 -1
- package/dist/memory/index.cjs +13 -0
- package/dist/memory/index.cjs.map +1 -1
- package/dist/memory/index.d.cts +3 -1
- package/dist/memory/index.d.ts +3 -1
- package/dist/memory/index.js +13 -0
- package/dist/memory/index.js.map +1 -1
- package/dist/react/index.cjs +28 -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 +28 -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 +8 -0
- package/dist/templates/index.cjs.map +1 -1
- package/dist/templates/index.d.cts +3 -3
- package/dist/templates/index.d.ts +3 -3
- package/dist/templates/index.js +8 -0
- package/dist/templates/index.js.map +1 -1
- package/dist/{types-yBZLtxrZ.d.cts → types-B4nQMkQT.d.cts} +5 -0
- package/dist/{types-CU_Tn2Np.d.ts → types-BtXYdZGh.d.ts} +5 -0
- package/package.json +3 -3
package/dist/react/index.cjs
CHANGED
|
@@ -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)(() => {
|
|
@@ -9742,7 +9742,32 @@ function readTypedDate(raw, opts = {}) {
|
|
|
9742
9742
|
let month = null;
|
|
9743
9743
|
let day = null;
|
|
9744
9744
|
const numeric = /^(\d{1,4})[/.\-](\d{1,2})[/.\-](\d{1,4})$/.exec(dateText);
|
|
9745
|
-
|
|
9745
|
+
const compact = /^(\d{8}|\d{6})$/.exec(dateText);
|
|
9746
|
+
if (compact) {
|
|
9747
|
+
const digits = compact[1];
|
|
9748
|
+
const order = localeDateOrder(opts.locale);
|
|
9749
|
+
const first2 = Number(digits.slice(0, 2));
|
|
9750
|
+
const mid2 = Number(digits.slice(2, 4));
|
|
9751
|
+
if (digits.length === 6) {
|
|
9752
|
+
year = twoDigitYear(Number(digits.slice(4)));
|
|
9753
|
+
if (order === "dmy") {
|
|
9754
|
+
day = first2;
|
|
9755
|
+
month = mid2;
|
|
9756
|
+
} else {
|
|
9757
|
+
month = first2;
|
|
9758
|
+
day = mid2;
|
|
9759
|
+
}
|
|
9760
|
+
} else {
|
|
9761
|
+
const yearLast = Number(digits.slice(4));
|
|
9762
|
+
const yearFirst = Number(digits.slice(0, 4));
|
|
9763
|
+
const localeReading = () => order === "dmy" ? [yearLast, mid2, first2] : [yearLast, first2, mid2];
|
|
9764
|
+
const [ly, lm, ld] = localeReading();
|
|
9765
|
+
const isoReading = [yearFirst, Number(digits.slice(4, 6)), Number(digits.slice(6))];
|
|
9766
|
+
const fits = (y, m, d) => checkDay(y, m, d, raw) === null;
|
|
9767
|
+
const useIso = order === "ymd" || !fits(ly, lm, ld) && fits(...isoReading);
|
|
9768
|
+
[year, month, day] = useIso ? isoReading : [ly, lm, ld];
|
|
9769
|
+
}
|
|
9770
|
+
} else if (numeric) {
|
|
9746
9771
|
const [a, b, c] = [numeric[1], numeric[2], numeric[3]];
|
|
9747
9772
|
if (a.length === 4) {
|
|
9748
9773
|
year = Number(a);
|