@arkitektio/bsx 5.0.0 → 6.0.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/README.md +2 -2
- package/dist/bsx/analyze.d.ts +6 -5
- package/dist/bsx/analyze.d.ts.map +1 -1
- package/dist/bsx/analyze.js +12 -10
- package/dist/bsx/analyze.js.map +1 -1
- package/dist/bsx/declared.d.ts +111 -0
- package/dist/bsx/declared.d.ts.map +1 -0
- package/dist/bsx/declared.js +311 -0
- package/dist/bsx/declared.js.map +1 -0
- package/dist/bsx/index.d.ts +1 -0
- package/dist/bsx/index.d.ts.map +1 -1
- package/dist/bsx/index.js +1 -0
- package/dist/bsx/index.js.map +1 -1
- package/dist/bsx/infer.d.ts +40 -17
- package/dist/bsx/infer.d.ts.map +1 -1
- package/dist/bsx/infer.js +105 -49
- package/dist/bsx/infer.js.map +1 -1
- package/dist/bsx/language.d.ts +6 -2
- package/dist/bsx/language.d.ts.map +1 -1
- package/dist/bsx/language.js +65 -21
- package/dist/bsx/language.js.map +1 -1
- package/dist/bsx/parse.d.ts +6 -1
- package/dist/bsx/parse.d.ts.map +1 -1
- package/dist/bsx/parse.js +32 -3
- package/dist/bsx/parse.js.map +1 -1
- package/dist/bsx/print.d.ts.map +1 -1
- package/dist/bsx/print.js +3 -0
- package/dist/bsx/print.js.map +1 -1
- package/dist/bsx/references.d.ts +45 -51
- package/dist/bsx/references.d.ts.map +1 -1
- package/dist/bsx/references.js +265 -138
- package/dist/bsx/references.js.map +1 -1
- package/dist/catalogs/html.d.ts +2 -2
- package/dist/catalogs/index.d.ts +49 -71
- package/dist/catalogs/index.d.ts.map +1 -1
- package/dist/catalogs/index.js +1 -1
- package/dist/catalogs/logo.d.ts +14 -28
- package/dist/catalogs/logo.d.ts.map +1 -1
- package/dist/catalogs/logo.js +1 -2
- package/dist/catalogs/logo.js.map +1 -1
- package/dist/catalogs/parts/data.d.ts +1 -1
- package/dist/catalogs/parts/feedback.d.ts +3 -3
- package/dist/catalogs/parts/forms.d.ts +4 -4
- package/dist/catalogs/parts/html.d.ts +2 -2
- package/dist/catalogs/parts/icons.d.ts +2 -2
- package/dist/catalogs/parts/index.d.ts +35 -57
- package/dist/catalogs/parts/index.d.ts.map +1 -1
- package/dist/catalogs/parts/logo.d.ts +10 -25
- package/dist/catalogs/parts/logo.d.ts.map +1 -1
- package/dist/catalogs/parts/logo.js +12 -14
- package/dist/catalogs/parts/logo.js.map +1 -1
- package/dist/catalogs/parts/navigation.d.ts +4 -4
- package/dist/catalogs/parts/overlays.d.ts +11 -11
- package/dist/catalogs/parts/run.d.ts +2 -10
- package/dist/catalogs/parts/run.d.ts.map +1 -1
- package/dist/catalogs/parts/scene.d.ts +7 -15
- package/dist/catalogs/parts/scene.d.ts.map +1 -1
- package/dist/catalogs/parts/scene.js +1 -5
- package/dist/catalogs/parts/scene.js.map +1 -1
- package/dist/catalogs/parts/typography.d.ts +3 -3
- package/dist/catalogs/props.d.ts +2 -2
- package/dist/catalogs/scene.d.ts +5 -13
- package/dist/catalogs/scene.d.ts.map +1 -1
- package/dist/catalogs/shadcn.d.ts +11 -11
- package/dist/catalogs/ui.d.ts +16 -16
- package/dist/logo/actionLogoSource.d.ts +3 -3
- package/dist/logo/actionLogoSource.d.ts.map +1 -1
- package/dist/logo/actionLogoSource.js +4 -4
- package/dist/logo/actionLogoSource.js.map +1 -1
- package/dist/renderer/BlokRenderer.d.ts +10 -6
- package/dist/renderer/BlokRenderer.d.ts.map +1 -1
- package/dist/renderer/BlokRenderer.js +23 -9
- package/dist/renderer/BlokRenderer.js.map +1 -1
- package/dist/renderer/baseCatalog.d.ts +3 -3
- package/dist/renderer/baseCatalog.js +2 -2
- package/dist/renderer/bloks/control.d.ts +18 -2
- package/dist/renderer/bloks/control.d.ts.map +1 -1
- package/dist/renderer/bloks/control.js +85 -14
- package/dist/renderer/bloks/control.js.map +1 -1
- package/dist/renderer/bloks/data.d.ts +1 -1
- package/dist/renderer/bloks/feedback.d.ts +3 -3
- package/dist/renderer/bloks/forms.d.ts +4 -4
- package/dist/renderer/bloks/html.d.ts +2 -2
- package/dist/renderer/bloks/icons.d.ts +1 -1
- package/dist/renderer/bloks/index.d.ts +30 -37
- package/dist/renderer/bloks/index.d.ts.map +1 -1
- package/dist/renderer/bloks/logo/index.d.ts +1 -8
- package/dist/renderer/bloks/logo/index.d.ts.map +1 -1
- package/dist/renderer/bloks/logo/index.js +1 -2
- package/dist/renderer/bloks/logo/index.js.map +1 -1
- package/dist/renderer/bloks/logo/logo.fixture.json +266 -250
- package/dist/renderer/bloks/navigation.d.ts +4 -4
- package/dist/renderer/bloks/overlays.d.ts +11 -11
- package/dist/renderer/bloks/run/components.d.ts +1 -5
- package/dist/renderer/bloks/run/components.d.ts.map +1 -1
- package/dist/renderer/bloks/scene/index.d.ts +4 -8
- package/dist/renderer/bloks/scene/index.d.ts.map +1 -1
- package/dist/renderer/bloks/scene/interaction.d.ts.map +1 -1
- package/dist/renderer/bloks/scene/interaction.js +3 -2
- package/dist/renderer/bloks/scene/interaction.js.map +1 -1
- package/dist/renderer/bloks/shared/props.d.ts +2 -2
- package/dist/renderer/bloks/typography.d.ts +3 -3
- package/dist/renderer/declarations.d.ts +40 -33
- package/dist/renderer/declarations.d.ts.map +1 -1
- package/dist/renderer/declarations.js +41 -56
- package/dist/renderer/declarations.js.map +1 -1
- package/dist/renderer/declare.js +4 -4
- package/dist/renderer/declare.js.map +1 -1
- package/dist/renderer/persist.d.ts +22 -13
- package/dist/renderer/persist.d.ts.map +1 -1
- package/dist/renderer/persist.js +40 -21
- package/dist/renderer/persist.js.map +1 -1
- package/dist/renderer/runtime/catalog.d.ts +4 -4
- package/dist/renderer/runtime/catalog.js +3 -3
- package/dist/renderer/runtime/components.d.ts +4 -4
- package/dist/renderer/runtime/components.d.ts.map +1 -1
- package/dist/renderer/runtime/components.js +5 -5
- package/dist/renderer/runtime/components.js.map +1 -1
- package/dist/renderer/runtime/context.d.ts +5 -5
- package/dist/renderer/runtime/context.d.ts.map +1 -1
- package/dist/renderer/runtime/context.js +11 -5
- package/dist/renderer/runtime/context.js.map +1 -1
- package/dist/renderer/runtime/describe.d.ts +3 -3
- package/dist/renderer/runtime/describe.d.ts.map +1 -1
- package/dist/renderer/runtime/describe.js +2 -2
- package/dist/renderer/runtime/describe.js.map +1 -1
- package/dist/renderer/runtime/hooks.d.ts.map +1 -1
- package/dist/renderer/runtime/hooks.js +8 -4
- package/dist/renderer/runtime/hooks.js.map +1 -1
- package/dist/renderer/runtime/index.d.ts +1 -0
- package/dist/renderer/runtime/index.d.ts.map +1 -1
- package/dist/renderer/runtime/index.js +1 -0
- package/dist/renderer/runtime/index.js.map +1 -1
- package/dist/renderer/runtime/locals.d.ts +57 -0
- package/dist/renderer/runtime/locals.d.ts.map +1 -0
- package/dist/renderer/runtime/locals.js +87 -0
- package/dist/renderer/runtime/locals.js.map +1 -0
- package/dist/renderer/runtime/scope.d.ts +14 -0
- package/dist/renderer/runtime/scope.d.ts.map +1 -1
- package/dist/renderer/runtime/scope.js +25 -3
- package/dist/renderer/runtime/scope.js.map +1 -1
- package/dist/renderer/runtime/tree.d.ts.map +1 -1
- package/dist/renderer/runtime/tree.js +7 -1
- package/dist/renderer/runtime/tree.js.map +1 -1
- package/dist/renderer/runtime/types.d.ts +8 -3
- package/dist/renderer/runtime/types.d.ts.map +1 -1
- package/dist/shadcn.d.ts +36 -43
- package/dist/shadcn.d.ts.map +1 -1
- package/dist/shadcn.js +1 -2
- package/dist/shadcn.js.map +1 -1
- package/dist/spec/bsx_v2.json +11067 -6321
- package/dist/spec/catalogs/{base@3.json → base@4.json} +434 -288
- package/dist/spec/catalogs/{base@3.json.js → base@4.json.js} +434 -288
- package/dist/spec/catalogs/orkestrator@1.json +10 -10
- package/dist/spec/catalogs/orkestrator@1.json.js +10 -10
- package/dist/spec/catalogs.d.ts +4 -4
- package/dist/spec/catalogs.d.ts.map +1 -1
- package/dist/spec/catalogs.js +7 -7
- package/dist/spec/catalogs.js.map +1 -1
- package/dist/spec/vocabulary.d.ts +25 -4
- package/dist/spec/vocabulary.d.ts.map +1 -1
- package/dist/spec/vocabulary.js +50 -5
- package/dist/spec/vocabulary.js.map +1 -1
- package/dist/spec/vocabulary.json +58 -32
- package/dist/spec/vocabulary.json.js +58 -32
- package/package.json +1 -1
- package/src/bsx/analyze.ts +14 -12
- package/src/bsx/bsx.test.ts +4 -4
- package/src/bsx/declared.ts +346 -0
- package/src/bsx/index.ts +1 -0
- package/src/bsx/infer.test.ts +42 -32
- package/src/bsx/infer.ts +128 -71
- package/src/bsx/language.test.ts +37 -25
- package/src/bsx/language.ts +72 -25
- package/src/bsx/parse.ts +34 -3
- package/src/bsx/print.ts +3 -0
- package/src/bsx/references.test.ts +82 -81
- package/src/bsx/references.ts +313 -178
- package/src/catalogs/catalogs.test.ts +3 -2
- package/src/catalogs/index.ts +1 -1
- package/src/catalogs/logo.ts +1 -2
- package/src/catalogs/parts/logo.ts +13 -17
- package/src/catalogs/parts/scene.ts +1 -7
- package/src/logo/actionLogoSource.ts +4 -4
- package/src/renderer/BlokComponentHost.test.tsx +5 -5
- package/src/renderer/BlokRenderer.tsx +46 -14
- package/src/renderer/addBlokComponents.test.tsx +1 -1
- package/src/renderer/baseCatalog.ts +2 -2
- package/src/renderer/bloks/control.tsx +119 -16
- package/src/renderer/bloks/logo/index.tsx +2 -3
- package/src/renderer/bloks/logo/logo.fixture.json +266 -250
- package/src/renderer/bloks/logo/logo.test.tsx +18 -7
- package/src/renderer/bloks/run/space.test.tsx +12 -4
- package/src/renderer/bloks/scene/interaction.tsx +11 -6
- package/src/renderer/bloks/scene/transform.test.ts +8 -7
- package/src/renderer/declarations.test.ts +38 -51
- package/src/renderer/declarations.ts +67 -88
- package/src/renderer/declare.test.ts +4 -4
- package/src/renderer/declare.ts +4 -4
- package/src/renderer/persist.test.ts +70 -49
- package/src/renderer/persist.ts +57 -34
- package/src/renderer/runtime/catalog.test.ts +2 -2
- package/src/renderer/runtime/catalog.ts +4 -4
- package/src/renderer/runtime/components.tsx +8 -8
- package/src/renderer/runtime/context.tsx +17 -10
- package/src/renderer/runtime/describe.ts +5 -5
- package/src/renderer/runtime/hooks.ts +6 -4
- package/src/renderer/runtime/index.ts +1 -0
- package/src/renderer/runtime/locals.tsx +105 -0
- package/src/renderer/runtime/scope.tsx +31 -3
- package/src/renderer/runtime/tree.tsx +16 -4
- package/src/renderer/runtime/types.ts +8 -3
- package/src/shadcn.ts +1 -2
- package/src/spec/bsx_v2.json +11067 -6321
- package/src/spec/catalogs/{base@3.json → base@4.json} +434 -288
- package/src/spec/catalogs/orkestrator@1.json +10 -10
- package/src/spec/catalogs.ts +8 -8
- package/src/spec/spec.test.ts +19 -16
- package/src/spec/vocabulary.json +58 -32
- package/src/spec/vocabulary.ts +69 -10
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ Every module is reachable by its path too (`@arkitektio/bsx/renderer/runtime/tas
|
|
|
21
21
|
A blok is drawn with one **catalog**: a versioned set of components, named by the address it is
|
|
22
22
|
published at.
|
|
23
23
|
|
|
24
|
-
- **The base catalog** (`https://arkitekt.live/catalogs/base/
|
|
24
|
+
- **The base catalog** (`https://arkitekt.live/catalogs/base/v4`) is what every renderer draws,
|
|
25
25
|
whole, in the contexts it draws (html, scene, logo). arkitekt-spec owns it. A blok that names no
|
|
26
26
|
catalog is written for it and renders everywhere.
|
|
27
27
|
- **An app catalog** extends another (in the end the base) with what one frontend draws beyond it:
|
|
@@ -84,7 +84,7 @@ node holds the prop already and renders as it did.
|
|
|
84
84
|
## The spec JSON
|
|
85
85
|
|
|
86
86
|
`src/spec/` is written by arkitekt-spec's `scripts/sync_standard_catalog.py`: `vocabulary.json`,
|
|
87
|
-
`catalogs/base@
|
|
87
|
+
`catalogs/base@4.json`, the snapshot `catalogs/orkestrator@1.json` and the parity corpus
|
|
88
88
|
`bsx_v2.json`. Never edit them here.
|
|
89
89
|
|
|
90
90
|
What a component of a family takes is written in its contract here, and the spec's base catalog is
|
package/dist/bsx/analyze.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ import type { BlokComponentNode } from '../renderer/runtime/types';
|
|
|
2
2
|
import { type BlokView } from '../spec/catalogs';
|
|
3
3
|
import { type BlokFinding } from '../spec/vocabulary';
|
|
4
4
|
import { type BsxSourceMap } from './parse';
|
|
5
|
-
import { type
|
|
5
|
+
import { type ResolvedLocal } from './infer';
|
|
6
|
+
import { type BlokCheckScope } from './references';
|
|
6
7
|
import type { BsxRange } from './source';
|
|
7
8
|
export type BsxMarker = {
|
|
8
9
|
message: string;
|
|
@@ -18,13 +19,13 @@ export type BsxAnalysis = {
|
|
|
18
19
|
/** The validator's findings (none when the text does not parse). */
|
|
19
20
|
findings: BlokFinding[];
|
|
20
21
|
markers: BsxMarker[];
|
|
21
|
-
/**
|
|
22
|
-
resolved:
|
|
22
|
+
/** Each `<local>` of the tree with its kind resolved, by node id; null when the text does not parse. */
|
|
23
|
+
resolved: ReadonlyMap<string, ResolvedLocal> | null;
|
|
23
24
|
};
|
|
24
25
|
/** Where a finding about `nodeId` (and `propKey`) is in the source; `fallback` when the source map has no such node. */
|
|
25
26
|
export declare const rangeForFinding: (sources: BsxSourceMap, nodeId: string | undefined, propKey: string | undefined, fallback: BsxRange) => BsxRange;
|
|
26
|
-
export declare const analyzeBsx: (source: string, options
|
|
27
|
-
scope
|
|
27
|
+
export declare const analyzeBsx: (source: string, options?: {
|
|
28
|
+
scope?: BlokCheckScope | null;
|
|
28
29
|
view?: BlokView;
|
|
29
30
|
}) => BsxAnalysis;
|
|
30
31
|
//# sourceMappingURL=analyze.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analyze.d.ts","sourceRoot":"","sources":["../../src/bsx/analyze.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,2BAA2B,CAAC;AACjE,OAAO,
|
|
1
|
+
{"version":3,"file":"analyze.d.ts","sourceRoot":"","sources":["../../src/bsx/analy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G,WAyB3G,CAAC"}
|
package/dist/bsx/analyze.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {} from '../spec/catalogs.js';
|
|
2
2
|
import { diagnosticHint } from '../spec/vocabulary.js';
|
|
3
3
|
import { parseBsxSafe } from './parse.js';
|
|
4
|
-
import {
|
|
5
|
-
import { checkBlokTree } from './references.js';
|
|
4
|
+
import { resolveLocals } from './infer.js';
|
|
5
|
+
import { checkBlokTree, unmountedBlokScope, viewForTree } from './references.js';
|
|
6
6
|
/** Where a finding about `nodeId` (and `propKey`) is in the source; `fallback` when the source map has no such node. */
|
|
7
7
|
export const rangeForFinding = (sources, nodeId, propKey, fallback) => {
|
|
8
8
|
const source = nodeId ? sources.get(nodeId) : undefined;
|
|
@@ -16,14 +16,15 @@ export const rangeForFinding = (sources, nodeId, propKey, fallback) => {
|
|
|
16
16
|
/**
|
|
17
17
|
* Everything the editor marks in a blok's source: where it does not parse
|
|
18
18
|
* (the parser's first refusal, with its code); else every finding of the v2
|
|
19
|
-
* validator (`checkBlokTree`)
|
|
20
|
-
* warnings, each at the node and prop it is about.
|
|
19
|
+
* validator (`checkBlokTree`), mounted as `scope` says (unmounted when it
|
|
20
|
+
* says nothing), errors and warnings, each at the node and prop it is about.
|
|
21
|
+
* Without a view, the one of the catalog its `<Blok catalog>` names.
|
|
21
22
|
*/
|
|
22
23
|
/** A marker's text: the message, then how to fix it on a line of its own. */
|
|
23
24
|
const withHint = (message, hint) => (hint ? `${message}\n${hint}` : message);
|
|
24
|
-
export const analyzeBsx = (source, options) => {
|
|
25
|
-
const
|
|
26
|
-
const parsed = parseBsxSafe(source, view);
|
|
25
|
+
export const analyzeBsx = (source, options = {}) => {
|
|
26
|
+
const scope = options.scope ?? unmountedBlokScope();
|
|
27
|
+
const parsed = parseBsxSafe(source, options.view);
|
|
27
28
|
if (!parsed.ok) {
|
|
28
29
|
return {
|
|
29
30
|
tree: null,
|
|
@@ -34,14 +35,15 @@ export const analyzeBsx = (source, options) => {
|
|
|
34
35
|
};
|
|
35
36
|
}
|
|
36
37
|
const { tree, sources } = parsed;
|
|
38
|
+
const view = options.view ?? viewForTree(tree);
|
|
37
39
|
const whole = sources.get(tree.id)?.tagRange ?? { start: 0, end: 1 };
|
|
38
|
-
const findings = checkBlokTree(tree,
|
|
40
|
+
const findings = checkBlokTree(tree, scope, view);
|
|
39
41
|
const markers = findings.map((found) => ({
|
|
40
42
|
message: withHint(found.message, found.hint ?? null),
|
|
41
43
|
range: rangeForFinding(sources, found.nodeId, found.propKey, whole),
|
|
42
44
|
severity: found.level,
|
|
43
45
|
code: found.code,
|
|
44
46
|
}));
|
|
45
|
-
return { tree, sources, findings, markers, resolved:
|
|
47
|
+
return { tree, sources, findings, markers, resolved: resolveLocals(tree, scope.dependencies, view) };
|
|
46
48
|
};
|
|
47
49
|
//# sourceMappingURL=analyze.js.map
|
package/dist/bsx/analyze.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analyze.js","sourceRoot":"","sources":["../../src/bsx/analyze.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"analyze.js","sourceRoot":"","sources":["../../src/bsx/analyze.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAC,cAAc,EAAmB,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAC,YAAY,EAAoB,MAAM,SAAS,CAAC;AACxD,OAAO,EAAC,aAAa,EAAqB,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAC,aAAa,EAAE,kBAAkB,EAAE,WAAW,EAAsB,MAAM,cAAc,CAAC;AAiBjG,wHAAwH;AACxH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,OAAqB,EAAE,MAA0B,EAAE,OAA2B,EAAE,QAAkB,EAAY,EAAE;IAC9I,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC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AK,EAAE,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,EAAC,CAAC;SACpL,CAAC;IACJ,CAAC;IACD,MAAM,EAAC,IAAI,EAAE,OAAO,EAAC,GAAG,MAAM,CAAC;IAC/B,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC;IAC/C,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,QAAQ,IAAI,EAAC,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAC,CAAC;IACnE,MAAM,QAAQ,GAAG,aAAa,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;IAClD,MAAM,OAAO,GAAG,QAAQ,CAAC,GAAG,CAC1B,CAAC,KAAK,EAAa,EAAE,CAAC,CAAC;QACrB,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,IAAI,IAAI,IAAI,CAAC;QACpD,KAAK,EAAE,eAAe,CAAC,OAAO,EAAE,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC;QACnE,QAAQ,EAAE,KAAK,CAAC,KAAK;QACrB,IAAI,EAAE,KAAK,CAAC,IAAI;KACjB,CAAC,CACH,CAAC;IACF,OAAO,EAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,EAAE,IAAI,CAAC,EAAC,CAAC;AACrG,CAAC,CAAC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import type { BlokActionArgument, BlokComponentNode } from '../renderer/runtime/types';
|
|
2
|
+
import { type BlokContextName, type BlokFinding, type BlokKind } from '../spec/vocabulary';
|
|
3
|
+
/**
|
|
4
|
+
* What a blok says of itself in its tree: its `<Blok>` header and its
|
|
5
|
+
* declarations. The port of arkitekt-spec's `blok/declared.py`.
|
|
6
|
+
*
|
|
7
|
+
* Every blok is one `<Blok kind=... context=...>` element (vocabulary `blok`):
|
|
8
|
+
*
|
|
9
|
+
* - the header (`blokHeader`): its kind, its context, the catalog it is
|
|
10
|
+
* written for and the host's chrome, all literals on the root;
|
|
11
|
+
* - its declarations, each a node of its own that draws nothing: `<local>`
|
|
12
|
+
* anywhere (first among its parent's children, in scope in its parent's
|
|
13
|
+
* subtree), `<query>` and `<subscription>` as children of the `<Blok>`, each
|
|
14
|
+
* with `<var>` children for its variables.
|
|
15
|
+
*
|
|
16
|
+
* Nothing here checks a rule beyond what makes a declaration readable at all;
|
|
17
|
+
* the checker (`references.ts`) says the rest.
|
|
18
|
+
*/
|
|
19
|
+
export declare const BLOK_COMPONENT = "Blok";
|
|
20
|
+
export declare const LOCAL_COMPONENT = "local";
|
|
21
|
+
export declare const QUERY_COMPONENT = "query";
|
|
22
|
+
export declare const SUBSCRIPTION_COMPONENT = "subscription";
|
|
23
|
+
export declare const VAR_COMPONENT = "var";
|
|
24
|
+
/** The components that declare what a blok owns and draw nothing. */
|
|
25
|
+
export declare const DECLARATION_COMPONENTS: ReadonlySet<string>;
|
|
26
|
+
/** The name a local, a query or a subscription is read by. */
|
|
27
|
+
export declare const NAME_PROP = "name";
|
|
28
|
+
/** A local's borrowed port: `self.<action>.<arg>` or `deps.<key>.<action>.<arg>`. */
|
|
29
|
+
export declare const LIKE_PROP = "like";
|
|
30
|
+
export declare const KIND_ATTRIBUTE = "kind";
|
|
31
|
+
export declare const CONTEXT_ATTRIBUTE = "context";
|
|
32
|
+
export declare const CATALOG_ATTRIBUTE = "catalog";
|
|
33
|
+
export declare const CHROME_ATTRIBUTE = "chrome";
|
|
34
|
+
/** What a `<local>` may say beside its name and `like`: a port's fields and `persist` (`BlokLocalInput` but its key). */
|
|
35
|
+
export declare const LOCAL_FIELDS: readonly string[];
|
|
36
|
+
/** What a `<Blok>` says of itself. */
|
|
37
|
+
export type BlokHeader = {
|
|
38
|
+
kind: BlokKind;
|
|
39
|
+
/** `PANEL`, `SCENE` or `LOGO`. */
|
|
40
|
+
context: BlokContextName;
|
|
41
|
+
catalog: string | null;
|
|
42
|
+
chrome: string | null;
|
|
43
|
+
/** The root's id. */
|
|
44
|
+
node: string;
|
|
45
|
+
};
|
|
46
|
+
/** Why `tree` is no readable `<Blok>`, or null: `blok.root` or `blok.attribute`. */
|
|
47
|
+
export declare const headerProblem: (tree: BlokComponentNode) => BlokFinding | null;
|
|
48
|
+
/** The header of a blok, or null when its root is no readable `<Blok>` (`headerProblem` says why). */
|
|
49
|
+
export declare const blokHeader: (tree: BlokComponentNode) => BlokHeader | null;
|
|
50
|
+
/** The catalog a blok's `<Blok>` names; null for the base catalog (and for no `<Blok>`). */
|
|
51
|
+
export declare const blokCatalog: (tree: BlokComponentNode) => string | null;
|
|
52
|
+
/** Whether `node` declares something (a local, a query, ...) rather than drawing. */
|
|
53
|
+
export declare const isDeclaration: (node: {
|
|
54
|
+
component: string;
|
|
55
|
+
}) => boolean;
|
|
56
|
+
/** The children of `node` that draw: its declarations left out. */
|
|
57
|
+
export declare const content: (node: BlokComponentNode) => BlokComponentNode[];
|
|
58
|
+
/** The name a `<local>` declares, or null when it has none. */
|
|
59
|
+
export declare const localName: (node: BlokComponentNode) => string | null;
|
|
60
|
+
/** The argument a `<local>` borrows its port from (`self.move.to`), or null. */
|
|
61
|
+
export declare const localLike: (node: BlokComponentNode) => string | null;
|
|
62
|
+
/** A local as written in its `<local>` node: a port (`BlokLocalInput`), its kind left out unless it gives one. */
|
|
63
|
+
export type DeclaredLocal = {
|
|
64
|
+
key: string;
|
|
65
|
+
kind?: string | null;
|
|
66
|
+
persist?: boolean | null;
|
|
67
|
+
[field: string]: unknown;
|
|
68
|
+
};
|
|
69
|
+
/** Why a `<local>` declares nothing readable, or null: `local.attribute`. */
|
|
70
|
+
export declare const localProblem: (node: BlokComponentNode) => BlokFinding | null;
|
|
71
|
+
/** A readable `<local>` as the port it declares (`localProblem` null), its kind left out unless it gives one. */
|
|
72
|
+
export declare const declaredLocal: (node: BlokComponentNode) => DeclaredLocal | null;
|
|
73
|
+
/** Every node of `tree` with its ancestors, depth first. */
|
|
74
|
+
export declare const iterWithParents: (tree: BlokComponentNode) => Array<[BlokComponentNode, readonly BlokComponentNode[]]>;
|
|
75
|
+
/** Every readable `<local>` of `tree`, by its node id, in tree order. */
|
|
76
|
+
export declare const declaredLocals: (tree: BlokComponentNode) => Map<string, DeclaredLocal>;
|
|
77
|
+
/** A `<var key value>` as the argument it is stored as, or null when it is none. */
|
|
78
|
+
export declare const varArgument: (node: BlokComponentNode) => BlokActionArgument | null;
|
|
79
|
+
/** A declared read as the wire's `BlokQueryInput` spells it. */
|
|
80
|
+
export type DeclaredQuery = {
|
|
81
|
+
key: string;
|
|
82
|
+
service: string;
|
|
83
|
+
document: string;
|
|
84
|
+
variables: BlokActionArgument[];
|
|
85
|
+
poll?: number | null;
|
|
86
|
+
more?: string | null;
|
|
87
|
+
};
|
|
88
|
+
/** A declared stream as the wire's `BlokSubscriptionInput` spells it. */
|
|
89
|
+
export type DeclaredSubscription = {
|
|
90
|
+
key: string;
|
|
91
|
+
service: string;
|
|
92
|
+
document: string;
|
|
93
|
+
variables: BlokActionArgument[];
|
|
94
|
+
keep?: number | null;
|
|
95
|
+
history?: string | null;
|
|
96
|
+
};
|
|
97
|
+
/** Why a `<query>` or `<subscription>` declares nothing readable, or null: `query.declaration`. */
|
|
98
|
+
export declare const declarationProblem: (node: BlokComponentNode) => BlokFinding | null;
|
|
99
|
+
/** The readable `<query>` children of a blok's `<Blok>`, in order. */
|
|
100
|
+
export declare const declaredQueries: (tree: BlokComponentNode | null | undefined) => DeclaredQuery[];
|
|
101
|
+
/** The readable `<subscription>` children of a blok's `<Blok>`, in order. */
|
|
102
|
+
export declare const declaredSubscriptions: (tree: BlokComponentNode | null | undefined) => DeclaredSubscription[];
|
|
103
|
+
/**
|
|
104
|
+
* The runtime id of a node rendered inside foreach items: its node id plus one
|
|
105
|
+
* `@<item key>` per enclosing foreach, outermost first (`Blok[0]/foreach[0]/local[0]@7`,
|
|
106
|
+
* `...@#2` for an item keyed by its position). A node id never holds `@`.
|
|
107
|
+
*/
|
|
108
|
+
export declare const runtimeIdOf: (nodeId: string, itemKeys: readonly string[]) => string;
|
|
109
|
+
/** The node a runtime id is of (`Blok[0]/foreach[0]/local[0]@7` → `Blok[0]/foreach[0]/local[0]`). */
|
|
110
|
+
export declare const nodeOfRuntimeId: (runtimeId: string) => string;
|
|
111
|
+
//# sourceMappingURL=declared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"declared.d.ts","sourceRoot":"","sources":["../../src/bsx/declared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAE,iBAAiB,EAAoB,MAAM,2BAA2B,CAAC;AACxG,OAAO,EAA0B,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,KAAK,QAAQ,EAAC,MAAM,oBAAoB,CAAC;AAGlH;;;;;;;;;;;;;;;GAeG;AAEH,eAAO,MAAM,cAAc,SAAS,CAAC;AACrC,eAAO,MAAM,eAAe,UAAU,CAAC;AACvC,eAAO,MAAM,eAAe,UAAU,CAAC;AACvC,eAAO,MAAM,sBAAsB,iBAAiB,CAAC;AACrD,eAAO,MAAM,aAAa,QAAQ,CAAC;AACnC,qEAAqE;AACrE,eAAO,MAAM,sBAAsB,EAAE,WAAW,CAAC,MAAM,CAAsF,CAAC;AAC9I,8DAA8D;AAC9D,eAAO,MAAM,SAAS,SAAS,CAAC;AAChC,qFAAqF;AACrF,eAAO,MAAM,SAAS,SAAS,CAAC;AAGhC,eAAO,MAAM,cAAc,SAAS,CAAC;AACrC,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAC3C,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAC3C,eAAO,MAAM,gBAAg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M,iBAAiB,GAAG,IAAI,GAAG,SAAS,KAAG,aAAa,EAGnC,CAAC;AAExD,6EAA6E;AAC7E,eAAO,MAAM,qBAAqB,GAAI,MAAM,iBAAiB,GAAG,IAAI,GAAG,SAAS,KAAG,oBAAoB,EAGzC,CAAC;AAE/D;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,QAAQ,MAAM,EAAE,UAAU,SAAS,MAAM,EAAE,KAAG,MAAyC,CAAC;AAEpH,qGAAqG;AACrG,eAAO,MAAM,eAAe,GAAI,WAAW,MAAM,KAAG,MAAiC,CAAC"}
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import { finding, loadVocabulary } from '../spec/vocabulary.js';
|
|
2
|
+
import { portIsValid } from './infer.js';
|
|
3
|
+
/**
|
|
4
|
+
* What a blok says of itself in its tree: its `<Blok>` header and its
|
|
5
|
+
* declarations. The port of arkitekt-spec's `blok/declared.py`.
|
|
6
|
+
*
|
|
7
|
+
* Every blok is one `<Blok kind=... context=...>` element (vocabulary `blok`):
|
|
8
|
+
*
|
|
9
|
+
* - the header (`blokHeader`): its kind, its context, the catalog it is
|
|
10
|
+
* written for and the host's chrome, all literals on the root;
|
|
11
|
+
* - its declarations, each a node of its own that draws nothing: `<local>`
|
|
12
|
+
* anywhere (first among its parent's children, in scope in its parent's
|
|
13
|
+
* subtree), `<query>` and `<subscription>` as children of the `<Blok>`, each
|
|
14
|
+
* with `<var>` children for its variables.
|
|
15
|
+
*
|
|
16
|
+
* Nothing here checks a rule beyond what makes a declaration readable at all;
|
|
17
|
+
* the checker (`references.ts`) says the rest.
|
|
18
|
+
*/
|
|
19
|
+
export const BLOK_COMPONENT = 'Blok';
|
|
20
|
+
export const LOCAL_COMPONENT = 'local';
|
|
21
|
+
export const QUERY_COMPONENT = 'query';
|
|
22
|
+
export const SUBSCRIPTION_COMPONENT = 'subscription';
|
|
23
|
+
export const VAR_COMPONENT = 'var';
|
|
24
|
+
/** The components that declare what a blok owns and draw nothing. */
|
|
25
|
+
export const DECLARATION_COMPONENTS = new Set([LOCAL_COMPONENT, QUERY_COMPONENT, SUBSCRIPTION_COMPONENT, VAR_COMPONENT]);
|
|
26
|
+
/** The name a local, a query or a subscription is read by. */
|
|
27
|
+
export const NAME_PROP = 'name';
|
|
28
|
+
/** A local's borrowed port: `self.<action>.<arg>` or `deps.<key>.<action>.<arg>`. */
|
|
29
|
+
export const LIKE_PROP = 'like';
|
|
30
|
+
const KEY_PROP = 'key';
|
|
31
|
+
const VALUE_PROP = 'value';
|
|
32
|
+
export const KIND_ATTRIBUTE = 'kind';
|
|
33
|
+
export const CONTEXT_ATTRIBUTE = 'context';
|
|
34
|
+
export const CATALOG_ATTRIBUTE = 'catalog';
|
|
35
|
+
export const CHROME_ATTRIBUTE = 'chrome';
|
|
36
|
+
/** What a `<local>` may say beside its name and `like`: a port's fields and `persist` (`BlokLocalInput` but its key). */
|
|
37
|
+
export const LOCAL_FIELDS = [
|
|
38
|
+
'children',
|
|
39
|
+
'choices',
|
|
40
|
+
'default',
|
|
41
|
+
'description',
|
|
42
|
+
'dimension',
|
|
43
|
+
'effects',
|
|
44
|
+
'identifier',
|
|
45
|
+
'kind',
|
|
46
|
+
'label',
|
|
47
|
+
'nullable',
|
|
48
|
+
'persist',
|
|
49
|
+
'proposed_units',
|
|
50
|
+
'reference_unit',
|
|
51
|
+
'requires',
|
|
52
|
+
'validators',
|
|
53
|
+
'widget',
|
|
54
|
+
];
|
|
55
|
+
const PORT_KINDS = new Set([
|
|
56
|
+
'INT',
|
|
57
|
+
'STRING',
|
|
58
|
+
'STRUCTURE',
|
|
59
|
+
'LIST',
|
|
60
|
+
'BOOL',
|
|
61
|
+
'DICT',
|
|
62
|
+
'FLOAT',
|
|
63
|
+
'DATE',
|
|
64
|
+
'UNION',
|
|
65
|
+
'ENUM',
|
|
66
|
+
'MODEL',
|
|
67
|
+
'MEMORY_STRUCTURE',
|
|
68
|
+
'INTERFACE',
|
|
69
|
+
'QUANTITY',
|
|
70
|
+
]);
|
|
71
|
+
const LOCAL_ANY = 'ANY';
|
|
72
|
+
const staticProp = (node, key) => node.props?.find(prop => prop.key === key);
|
|
73
|
+
const isLiteral = (prop) => prop.dynamic_value == null && prop.util_call == null && prop.agent_call == null;
|
|
74
|
+
const literalText = (node, key) => {
|
|
75
|
+
const prop = staticProp(node, key);
|
|
76
|
+
return prop !== undefined && isLiteral(prop) && typeof prop.static_value === 'string' ? prop.static_value : null;
|
|
77
|
+
};
|
|
78
|
+
/** Why `tree` is no readable `<Blok>`, or null: `blok.root` or `blok.attribute`. */
|
|
79
|
+
export const headerProblem = (tree) => {
|
|
80
|
+
const vocabulary = loadVocabulary();
|
|
81
|
+
if (tree.component !== vocabulary.blok.component)
|
|
82
|
+
return finding('blok.root', { component: tree.component }, { nodeId: tree.id });
|
|
83
|
+
const kinds = Object.keys(vocabulary.kinds).join('|');
|
|
84
|
+
const problem = (text) => finding('blok.attribute', { problem: text, kinds }, { nodeId: tree.id });
|
|
85
|
+
for (const key of [KIND_ATTRIBUTE, CONTEXT_ATTRIBUTE]) {
|
|
86
|
+
const prop = staticProp(tree, key);
|
|
87
|
+
if (prop === undefined)
|
|
88
|
+
return problem(`needs ${key}="..."`);
|
|
89
|
+
if (!isLiteral(prop) || typeof prop.static_value !== 'string')
|
|
90
|
+
return problem(`takes ${key} as a literal string`);
|
|
91
|
+
}
|
|
92
|
+
const kind = literalText(tree, KIND_ATTRIBUTE) ?? '';
|
|
93
|
+
if (!(kind in vocabulary.kinds))
|
|
94
|
+
return problem(`has no kind '${kind}'`);
|
|
95
|
+
const context = literalText(tree, CONTEXT_ATTRIBUTE) ?? '';
|
|
96
|
+
if (!(context in vocabulary.blok.contexts)) {
|
|
97
|
+
return problem(`has no context '${context}' (${Object.keys(vocabulary.blok.contexts).join(', ')})`);
|
|
98
|
+
}
|
|
99
|
+
for (const key of [CATALOG_ATTRIBUTE, CHROME_ATTRIBUTE]) {
|
|
100
|
+
const prop = staticProp(tree, key);
|
|
101
|
+
if (prop !== undefined && (!isLiteral(prop) || typeof prop.static_value !== 'string'))
|
|
102
|
+
return problem(`takes ${key} as a literal string`);
|
|
103
|
+
}
|
|
104
|
+
return null;
|
|
105
|
+
};
|
|
106
|
+
/** The header of a blok, or null when its root is no readable `<Blok>` (`headerProblem` says why). */
|
|
107
|
+
export const blokHeader = (tree) => {
|
|
108
|
+
if (headerProblem(tree) !== null)
|
|
109
|
+
return null;
|
|
110
|
+
const vocabulary = loadVocabulary();
|
|
111
|
+
return {
|
|
112
|
+
kind: literalText(tree, KIND_ATTRIBUTE),
|
|
113
|
+
context: vocabulary.blok.contexts[literalText(tree, CONTEXT_ATTRIBUTE) ?? ''],
|
|
114
|
+
catalog: literalText(tree, CATALOG_ATTRIBUTE),
|
|
115
|
+
chrome: literalText(tree, CHROME_ATTRIBUTE),
|
|
116
|
+
node: tree.id,
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
/** The catalog a blok's `<Blok>` names; null for the base catalog (and for no `<Blok>`). */
|
|
120
|
+
export const blokCatalog = (tree) => tree.component === BLOK_COMPONENT ? literalText(tree, CATALOG_ATTRIBUTE) : null;
|
|
121
|
+
/** Whether `node` declares something (a local, a query, ...) rather than drawing. */
|
|
122
|
+
export const isDeclaration = (node) => DECLARATION_COMPONENTS.has(node.component);
|
|
123
|
+
/** The children of `node` that draw: its declarations left out. */
|
|
124
|
+
export const content = (node) => (node.children ?? []).filter(child => !isDeclaration(child));
|
|
125
|
+
/** The name a `<local>` declares, or null when it has none. */
|
|
126
|
+
export const localName = (node) => {
|
|
127
|
+
const value = staticProp(node, NAME_PROP)?.static_value;
|
|
128
|
+
return typeof value === 'string' ? value : null;
|
|
129
|
+
};
|
|
130
|
+
/** The argument a `<local>` borrows its port from (`self.move.to`), or null. */
|
|
131
|
+
export const localLike = (node) => {
|
|
132
|
+
const value = staticProp(node, LIKE_PROP)?.static_value;
|
|
133
|
+
return typeof value === 'string' ? value : null;
|
|
134
|
+
};
|
|
135
|
+
const isRecord = (value) => typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
136
|
+
/** Why the fields of a local make no valid port, or null. */
|
|
137
|
+
const localFieldsProblem = (fields) => {
|
|
138
|
+
const kind = fields.kind;
|
|
139
|
+
if (kind !== undefined && (typeof kind !== 'string' || (kind !== LOCAL_ANY && !PORT_KINDS.has(kind))))
|
|
140
|
+
return `kind: '${String(kind)}' is no port kind`;
|
|
141
|
+
for (const key of ['label', 'description', 'identifier', 'reference_unit', 'dimension']) {
|
|
142
|
+
if (fields[key] !== undefined && typeof fields[key] !== 'string')
|
|
143
|
+
return `${key}: a string`;
|
|
144
|
+
}
|
|
145
|
+
for (const key of ['nullable', 'persist']) {
|
|
146
|
+
if (fields[key] !== undefined && typeof fields[key] !== 'boolean')
|
|
147
|
+
return `${key}: a bool`;
|
|
148
|
+
}
|
|
149
|
+
for (const key of ['children', 'choices', 'effects', 'validators', 'requires', 'proposed_units']) {
|
|
150
|
+
if (fields[key] !== undefined && !Array.isArray(fields[key]))
|
|
151
|
+
return `${key}: a list`;
|
|
152
|
+
}
|
|
153
|
+
if (fields.widget !== undefined && !isRecord(fields.widget))
|
|
154
|
+
return 'widget: an object';
|
|
155
|
+
if (fields.kind !== undefined && fields.kind !== LOCAL_ANY && !portIsValid(fields))
|
|
156
|
+
return 'its port is incomplete for its kind';
|
|
157
|
+
return null;
|
|
158
|
+
};
|
|
159
|
+
const localFields = (node, name) => {
|
|
160
|
+
const fields = { key: name };
|
|
161
|
+
for (const prop of node.props ?? []) {
|
|
162
|
+
if (prop.key === NAME_PROP || prop.key === LIKE_PROP || !LOCAL_FIELDS.includes(prop.key))
|
|
163
|
+
continue;
|
|
164
|
+
if (prop.static_value !== undefined && prop.static_value !== null)
|
|
165
|
+
fields[prop.key] = prop.static_value;
|
|
166
|
+
}
|
|
167
|
+
return fields;
|
|
168
|
+
};
|
|
169
|
+
/** Why a `<local>` declares nothing readable, or null: `local.attribute`. */
|
|
170
|
+
export const localProblem = (node) => {
|
|
171
|
+
const declared = localName(node);
|
|
172
|
+
const name = declared ?? '?';
|
|
173
|
+
const problem = (key, text) => finding('local.attribute', { name, key, problem: text }, { nodeId: node.id });
|
|
174
|
+
if (declared === null)
|
|
175
|
+
return problem('name', 'is missing: write name="x"');
|
|
176
|
+
for (const prop of node.props ?? []) {
|
|
177
|
+
if (prop.key === NAME_PROP || prop.key === LIKE_PROP)
|
|
178
|
+
continue;
|
|
179
|
+
if (!LOCAL_FIELDS.includes(prop.key))
|
|
180
|
+
return problem(prop.key, `is no field of a local (${[...LOCAL_FIELDS].sort().join(', ')}, like)`);
|
|
181
|
+
if (!isLiteral(prop))
|
|
182
|
+
return problem(prop.key, 'is not a literal');
|
|
183
|
+
}
|
|
184
|
+
if (node.children?.length)
|
|
185
|
+
return problem('children', 'are not elements: a local holds nothing');
|
|
186
|
+
const wrong = localFieldsProblem(localFields(node, declared));
|
|
187
|
+
if (wrong !== null)
|
|
188
|
+
return problem('its port', `is no valid port (${wrong})`);
|
|
189
|
+
return null;
|
|
190
|
+
};
|
|
191
|
+
/** A readable `<local>` as the port it declares (`localProblem` null), its kind left out unless it gives one. */
|
|
192
|
+
export const declaredLocal = (node) => {
|
|
193
|
+
const name = localName(node);
|
|
194
|
+
if (name === null || localProblem(node) !== null)
|
|
195
|
+
return null;
|
|
196
|
+
return localFields(node, name);
|
|
197
|
+
};
|
|
198
|
+
/** Every node of `tree` with its ancestors, depth first. */
|
|
199
|
+
export const iterWithParents = (tree) => {
|
|
200
|
+
const found = [];
|
|
201
|
+
const visit = (node, ancestors) => {
|
|
202
|
+
found.push([node, ancestors]);
|
|
203
|
+
for (const child of node.children ?? [])
|
|
204
|
+
visit(child, [...ancestors, node]);
|
|
205
|
+
};
|
|
206
|
+
visit(tree, []);
|
|
207
|
+
return found;
|
|
208
|
+
};
|
|
209
|
+
/** Every readable `<local>` of `tree`, by its node id, in tree order. */
|
|
210
|
+
export const declaredLocals = (tree) => {
|
|
211
|
+
const found = new Map();
|
|
212
|
+
for (const [node] of iterWithParents(tree)) {
|
|
213
|
+
if (node.component !== LOCAL_COMPONENT)
|
|
214
|
+
continue;
|
|
215
|
+
const local = declaredLocal(node);
|
|
216
|
+
if (local !== null)
|
|
217
|
+
found.set(node.id, local);
|
|
218
|
+
}
|
|
219
|
+
return found;
|
|
220
|
+
};
|
|
221
|
+
/** A `<var key value>` as the argument it is stored as, or null when it is none. */
|
|
222
|
+
export const varArgument = (node) => {
|
|
223
|
+
const key = staticProp(node, KEY_PROP);
|
|
224
|
+
if (key === undefined || typeof key.static_value !== 'string')
|
|
225
|
+
return null;
|
|
226
|
+
const value = staticProp(node, VALUE_PROP);
|
|
227
|
+
if (value === undefined || (value.static_value == null && value.dynamic_value == null && value.util_call == null && value.agent_call == null)) {
|
|
228
|
+
return { key: key.static_value };
|
|
229
|
+
}
|
|
230
|
+
if (value.agent_call != null)
|
|
231
|
+
return null;
|
|
232
|
+
if (value.dynamic_value?.path != null)
|
|
233
|
+
return { key: key.static_value, value_path: value.dynamic_value.path };
|
|
234
|
+
if (value.util_call != null)
|
|
235
|
+
return { key: key.static_value, util_call: value.util_call };
|
|
236
|
+
return { key: key.static_value, value_literal: value.static_value };
|
|
237
|
+
};
|
|
238
|
+
const READ_FIELDS = {
|
|
239
|
+
[QUERY_COMPONENT]: ['poll', 'more'],
|
|
240
|
+
[SUBSCRIPTION_COMPONENT]: ['keep', 'history'],
|
|
241
|
+
};
|
|
242
|
+
const REQUIRED_READ_PROPS = [NAME_PROP, 'service', 'document'];
|
|
243
|
+
const readFieldProblem = (component, key, value) => {
|
|
244
|
+
if (!(READ_FIELDS[component] ?? []).includes(key))
|
|
245
|
+
return `${key}: Extra inputs are not permitted`;
|
|
246
|
+
if (key === 'poll' && !(typeof value === 'number' && value > 0))
|
|
247
|
+
return 'poll: Input should be a number greater than 0';
|
|
248
|
+
if (key === 'keep' && !(typeof value === 'number' && Number.isInteger(value) && value >= 1))
|
|
249
|
+
return 'keep: Input should be an integer of at least 1';
|
|
250
|
+
if ((key === 'more' || key === 'history') && typeof value !== 'string')
|
|
251
|
+
return `${key}: Input should be a valid string`;
|
|
252
|
+
return null;
|
|
253
|
+
};
|
|
254
|
+
/** Why a `<query>` or `<subscription>` declares nothing readable, or null: `query.declaration`. */
|
|
255
|
+
export const declarationProblem = (node) => {
|
|
256
|
+
const problem = (text, at = node.id) => finding('query.declaration', { component: node.component, problem: text }, { nodeId: at });
|
|
257
|
+
for (const key of REQUIRED_READ_PROPS) {
|
|
258
|
+
const prop = staticProp(node, key);
|
|
259
|
+
if (prop === undefined || !isLiteral(prop) || typeof prop.static_value !== 'string' || !prop.static_value) {
|
|
260
|
+
return problem(`needs ${key}="..." as a literal string`);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
for (const prop of node.props ?? []) {
|
|
264
|
+
if (!REQUIRED_READ_PROPS.includes(prop.key) && !isLiteral(prop))
|
|
265
|
+
return problem(`takes ${prop.key} as a literal`);
|
|
266
|
+
}
|
|
267
|
+
for (const child of node.children ?? []) {
|
|
268
|
+
if (child.component !== VAR_COMPONENT)
|
|
269
|
+
return problem(`holds only <var> children, not <${child.component}>`, child.id);
|
|
270
|
+
if (varArgument(child) === null)
|
|
271
|
+
return problem('has a <var> without key="..." or with a task call as its value', child.id);
|
|
272
|
+
}
|
|
273
|
+
for (const prop of node.props ?? []) {
|
|
274
|
+
if (REQUIRED_READ_PROPS.includes(prop.key) || prop.static_value === undefined || prop.static_value === null)
|
|
275
|
+
continue;
|
|
276
|
+
const wrong = readFieldProblem(node.component, prop.key, prop.static_value);
|
|
277
|
+
if (wrong !== null)
|
|
278
|
+
return problem(wrong);
|
|
279
|
+
}
|
|
280
|
+
return null;
|
|
281
|
+
};
|
|
282
|
+
const declaredRead = (node) => {
|
|
283
|
+
const fields = {};
|
|
284
|
+
for (const prop of node.props ?? []) {
|
|
285
|
+
if (prop.static_value !== undefined && prop.static_value !== null)
|
|
286
|
+
fields[prop.key === NAME_PROP ? 'key' : prop.key] = prop.static_value;
|
|
287
|
+
}
|
|
288
|
+
fields.variables = (node.children ?? []).flatMap(child => {
|
|
289
|
+
const argument = varArgument(child);
|
|
290
|
+
return argument ? [argument] : [];
|
|
291
|
+
});
|
|
292
|
+
return fields;
|
|
293
|
+
};
|
|
294
|
+
const rootChildren = (tree) => tree?.children ?? [];
|
|
295
|
+
/** The readable `<query>` children of a blok's `<Blok>`, in order. */
|
|
296
|
+
export const declaredQueries = (tree) => rootChildren(tree)
|
|
297
|
+
.filter(child => child.component === QUERY_COMPONENT && declarationProblem(child) === null)
|
|
298
|
+
.map(child => declaredRead(child));
|
|
299
|
+
/** The readable `<subscription>` children of a blok's `<Blok>`, in order. */
|
|
300
|
+
export const declaredSubscriptions = (tree) => rootChildren(tree)
|
|
301
|
+
.filter(child => child.component === SUBSCRIPTION_COMPONENT && declarationProblem(child) === null)
|
|
302
|
+
.map(child => declaredRead(child));
|
|
303
|
+
/**
|
|
304
|
+
* The runtime id of a node rendered inside foreach items: its node id plus one
|
|
305
|
+
* `@<item key>` per enclosing foreach, outermost first (`Blok[0]/foreach[0]/local[0]@7`,
|
|
306
|
+
* `...@#2` for an item keyed by its position). A node id never holds `@`.
|
|
307
|
+
*/
|
|
308
|
+
export const runtimeIdOf = (nodeId, itemKeys) => [nodeId, ...itemKeys].join('@');
|
|
309
|
+
/** The node a runtime id is of (`Blok[0]/foreach[0]/local[0]@7` → `Blok[0]/foreach[0]/local[0]`). */
|
|
310
|
+
export const nodeOfRuntimeId = (runtimeId) => runtimeId.split('@')[0];
|
|
311
|
+
//# sourceMappingURL=declared.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"declared.js","sourceRoot":"","sources":["../../src/bsx/declared.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,OAAO,EAAE,cAAc,EAAwD,MAAM,oBAAoB,CAAC;AAClH,OAAO,EAAC,WAAW,EAAC,MAAM,SAAS,CAAC;AAEpC;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,CAAC,MAAM,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KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,KAAK,eAAe,IAAI,kBAAkB,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;KAC1F,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,KAAK,CAAkB,CAAC,CAAC;AAExD,6EAA6E;AAC7E,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,IAA0C,EAA0B,EAAE,CAC1G,YAAY,CAAC,IAAI,CAAC;KACf,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,KAAK,sBAAsB,IAAI,kBAAkB,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;KACjG,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,KAAK,CAAyB,CAAC,CAAC;AAE/D;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,MAAc,EAAE,QAA2B,EAAU,EAAE,CAAC,CAAC,MAAM,EAAE,GAAG,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEpH,qGAAqG;AACrG,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,SAAiB,EAAU,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
package/dist/bsx/index.d.ts
CHANGED
package/dist/bsx/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bsx/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bsx/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC"}
|
package/dist/bsx/index.js
CHANGED
package/dist/bsx/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/bsx/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/bsx/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC"}
|