@ai-matrx/records 0.77.1 → 0.77.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 +6 -0
- package/dist/app-table/index.cjs +3 -2
- 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 +3 -2
- package/dist/app-table/index.js.map +1 -1
- package/dist/{client-BcGGEpNi.d.cts → client-DZ3UcU4_.d.cts} +1 -1
- package/dist/{client-BbzLb-sB.d.ts → client-ZIxyAOdh.d.ts} +1 -1
- package/dist/core/index.cjs +4 -2
- 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 +4 -2
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs +4 -3
- 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 +4 -3
- package/dist/data/index.js.map +1 -1
- package/dist/{declareTable-COEPJpke.d.cts → declareTable-BYZdFrt5.d.cts} +2 -2
- package/dist/{declareTable-Dxq0Aega.d.ts → declareTable-DGSJMqGx.d.ts} +2 -2
- package/dist/index.cjs +4 -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 +4 -2
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +5 -3
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +6 -1
- package/dist/react/index.d.ts +6 -1
- package/dist/react/index.js +5 -3
- package/dist/react/index.js.map +1 -1
- package/dist/{table-kind-C5jsmotR.d.ts → table-kind-Da21ZLdJ.d.ts} +6 -1
- package/dist/{table-kind-DrVhYZbX.d.cts → table-kind-HAQ6WNxZ.d.cts} +6 -1
- package/package.json +3 -3
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-HAQ6WNxZ.cjs';
|
|
2
2
|
import { U as Uuid, h as RecordsResult, n as RecordPageSort, m as ReadRow } from '../record-B7iwye2k.cjs';
|
|
3
|
-
import { R as RecordsClient } from '../client-
|
|
3
|
+
import { R as RecordsClient } from '../client-DZ3UcU4_.cjs';
|
|
4
4
|
import { b as Field } from '../field-BTW7h7Wh.cjs';
|
|
5
5
|
import { u as RuleExpression } from '../subscription-Br30ZwIt.cjs';
|
|
6
6
|
import '../ports-PpvsH1cQ.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-Da21ZLdJ.js';
|
|
2
2
|
import { U as Uuid, h as RecordsResult, n as RecordPageSort, m as ReadRow } from '../record-B7iwye2k.js';
|
|
3
|
-
import { R as RecordsClient } from '../client-
|
|
3
|
+
import { R as RecordsClient } from '../client-ZIxyAOdh.js';
|
|
4
4
|
import { b as Field } from '../field-D7I9yck6.js';
|
|
5
5
|
import { u as RuleExpression } from '../subscription-BWaRPLyo.js';
|
|
6
6
|
import '../ports-CaYEF1dG.js';
|
package/dist/data/index.js
CHANGED
|
@@ -626,8 +626,9 @@ function parseTableDuplicated(raw) {
|
|
|
626
626
|
var ORDINAL = {
|
|
627
627
|
viewer: 1,
|
|
628
628
|
commenter: 2,
|
|
629
|
-
|
|
630
|
-
|
|
629
|
+
edit_content: 3,
|
|
630
|
+
editor: 4,
|
|
631
|
+
admin: 5
|
|
631
632
|
};
|
|
632
633
|
function atLeast(held, needed) {
|
|
633
634
|
if (!held) return false;
|
|
@@ -5936,7 +5937,7 @@ function createTableDataPort({ client, aliases }) {
|
|
|
5936
5937
|
const levels = await seat(binding).myLevels({ ids: [binding.tableId] });
|
|
5937
5938
|
level = levels.ok ? levels.data[0]?.level ?? null : null;
|
|
5938
5939
|
}
|
|
5939
|
-
const may = atLeast(level, "
|
|
5940
|
+
const may = atLeast(level, "edit_content");
|
|
5940
5941
|
out.push({ alias, label: binding.label ?? table.data?.name ?? alias, kind: "table", canCreate: may, canUpdate: may });
|
|
5941
5942
|
}
|
|
5942
5943
|
return { ok: true, data: out };
|