logisheets-core 1.14.0 → 1.15.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/dist/field/index.d.ts +0 -26
- package/dist/field/index.js +23 -68
- package/dist/format/index.d.ts +1 -1
- package/dist/ops/index.d.ts +475 -3
- package/dist/ops/index.js +895 -40
- package/dist/permissions/index.d.ts +0 -12
- package/dist/permissions/index.js +6 -9
- package/package.json +2 -2
|
@@ -33,16 +33,4 @@ declare class CallerRegistry {
|
|
|
33
33
|
private _getOrAssign;
|
|
34
34
|
}
|
|
35
35
|
export declare const callerRegistry: CallerRegistry;
|
|
36
|
-
/** Minimal shape needed to decide static editability — a subset of the
|
|
37
|
-
* engine's FieldInfo. `userEditable` may be a boolean or a formula string. */
|
|
38
|
-
export interface FieldEditableInfo {
|
|
39
|
-
userEditable?: boolean | string;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Whether a field permits user edits based on its static declaration alone
|
|
43
|
-
* (ignoring any dynamic formula). `userEditable === false` blocks; `true`,
|
|
44
|
-
* `undefined`, or a formula string permits (the formula is enforced
|
|
45
|
-
* downstream via a shadow value).
|
|
46
|
-
*/
|
|
47
|
-
export declare function isFieldUserEditable(fi: FieldEditableInfo | undefined): boolean;
|
|
48
36
|
export {};
|
|
@@ -85,12 +85,9 @@ class CallerRegistry {
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
export const callerRegistry = new CallerRegistry();
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
export function isFieldUserEditable(fi) {
|
|
95
|
-
return fi?.userEditable !== false;
|
|
96
|
-
}
|
|
88
|
+
// `FieldEditableInfo` and `isFieldUserEditable` used to live here, reading a tri-state `userEditable`
|
|
89
|
+
// boolean off the host's own field store. The field's write policy is declared
|
|
90
|
+
// on the engine schema now (`FieldWritePolicy`), and the app reads it from
|
|
91
|
+
// there — see src/core/blocks/field-projection.ts and
|
|
92
|
+
// design/block-field-semantics.md, so there is no host-side flag left to
|
|
93
|
+
// interpret.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "logisheets-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"description": "UI-free LogiSheets logic — runs in the browser or on Node. Depends on logisheets-web only for types; the engine Client is injected by the host.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
},
|
|
64
64
|
"homepage": "https://github.com/logisky/LogiSheets",
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"logisheets-web": "^1.
|
|
66
|
+
"logisheets-web": "^1.15.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@types/node": "^18",
|