@ai-matrx/records 0.80.0 → 0.80.2
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 +13 -0
- package/dist/app-table/index.cjs +6 -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 +6 -1
- package/dist/app-table/index.js.map +1 -1
- package/dist/{client-DHoI0qvP.d.cts → client-BfNJEpar.d.cts} +1 -1
- package/dist/{client-BcVOYKL1.d.ts → client-DKKRZKNw.d.ts} +1 -1
- package/dist/core/index.cjs +8 -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 +8 -3
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs +6 -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 +6 -1
- package/dist/data/index.js.map +1 -1
- package/dist/{declareTable-CDKHwyrF.d.ts → declareTable-Cg522Sk0.d.ts} +2 -2
- package/dist/{declareTable-DM9mPkSc.d.cts → declareTable-CzLMdOSy.d.cts} +2 -2
- 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.map +1 -1
- package/dist/react/index.cjs +6 -1
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +9 -3
- package/dist/react/index.d.ts +9 -3
- package/dist/react/index.js +6 -1
- package/dist/react/index.js.map +1 -1
- package/dist/{table-kind-Ct-nhoCZ.d.ts → table-kind-B9RBUmSb.d.ts} +9 -3
- package/dist/{table-kind-wYO_qjK1.d.cts → table-kind-DXktQGzR.d.cts} +9 -3
- package/package.json +1 -1
package/dist/data/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { bK as EntityRefWithWords } from '../table-kind-
|
|
1
|
+
import { bK as EntityRefWithWords } from '../table-kind-DXktQGzR.cjs';
|
|
2
2
|
import { U as Uuid, h as RecordsResult, n as RecordPageSort, m as ReadRow } from '../record-DCaOJbhA.cjs';
|
|
3
|
-
import { R as RecordsClient } from '../client-
|
|
3
|
+
import { R as RecordsClient } from '../client-BfNJEpar.cjs';
|
|
4
4
|
import { b as Field } from '../field-DCXU6k9i.cjs';
|
|
5
5
|
import { u as RuleExpression } from '../subscription-C_hNjbaR.cjs';
|
|
6
6
|
import '../ports-DaHUjVg7.cjs';
|
package/dist/data/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { bK as EntityRefWithWords } from '../table-kind-
|
|
1
|
+
import { bK as EntityRefWithWords } from '../table-kind-B9RBUmSb.js';
|
|
2
2
|
import { U as Uuid, h as RecordsResult, n as RecordPageSort, m as ReadRow } from '../record-DCaOJbhA.js';
|
|
3
|
-
import { R as RecordsClient } from '../client-
|
|
3
|
+
import { R as RecordsClient } from '../client-DKKRZKNw.js';
|
|
4
4
|
import { b as Field } from '../field-DJAvDExi.js';
|
|
5
5
|
import { u as RuleExpression } from '../subscription-B9znK2dw.js';
|
|
6
6
|
import '../ports-Kpc-RihV.js';
|
package/dist/data/index.js
CHANGED
|
@@ -178,11 +178,16 @@ function compileSort(sort, shape) {
|
|
|
178
178
|
|
|
179
179
|
// src/core/primedBundle.ts
|
|
180
180
|
var PRIMED_TTL_MS = 15e3;
|
|
181
|
-
var
|
|
181
|
+
var REGISTRY = /* @__PURE__ */ Symbol.for("@ai-matrx/records/primed-table-page-bundles");
|
|
182
|
+
function registry() {
|
|
183
|
+
const g = globalThis;
|
|
184
|
+
return g[REGISTRY] ??= /* @__PURE__ */ new Map();
|
|
185
|
+
}
|
|
182
186
|
var primedKey = (organizationId, tableId, viewId) => `${organizationId}|${tableId}|${viewId ?? ""}`;
|
|
183
187
|
function takePrimedTablePageBundle(organizationId, tableId, viewId) {
|
|
184
188
|
if (!organizationId) return null;
|
|
185
189
|
const key = primedKey(organizationId, tableId, viewId);
|
|
190
|
+
const primed = registry();
|
|
186
191
|
const held = primed.get(key);
|
|
187
192
|
if (!held) return null;
|
|
188
193
|
primed.delete(key);
|