@velarscript/web 0.10.1
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/LICENSE +201 -0
- package/README.md +89 -0
- package/dist/analyzer.d.ts +302 -0
- package/dist/analyzer.d.ts.map +1 -0
- package/dist/analyzer.js +2931 -0
- package/dist/analyzer.js.map +1 -0
- package/dist/ast.d.ts +220 -0
- package/dist/ast.d.ts.map +1 -0
- package/dist/ast.js +102 -0
- package/dist/ast.js.map +1 -0
- package/dist/browser-test.d.ts +29 -0
- package/dist/browser-test.d.ts.map +1 -0
- package/dist/browser-test.js +33 -0
- package/dist/browser-test.js.map +1 -0
- package/dist/compiler.d.ts +9 -0
- package/dist/compiler.d.ts.map +1 -0
- package/dist/compiler.js +715 -0
- package/dist/compiler.js.map +1 -0
- package/dist/css-tokens.d.ts +46 -0
- package/dist/css-tokens.d.ts.map +1 -0
- package/dist/css-tokens.js +363 -0
- package/dist/css-tokens.js.map +1 -0
- package/dist/editor.d.ts +3 -0
- package/dist/editor.d.ts.map +1 -0
- package/dist/editor.js +147 -0
- package/dist/editor.js.map +1 -0
- package/dist/elements.d.ts +11 -0
- package/dist/elements.d.ts.map +1 -0
- package/dist/elements.js +24 -0
- package/dist/elements.js.map +1 -0
- package/dist/emitter.d.ts +79 -0
- package/dist/emitter.d.ts.map +1 -0
- package/dist/emitter.js +2699 -0
- package/dist/emitter.js.map +1 -0
- package/dist/host.d.ts +7 -0
- package/dist/host.d.ts.map +1 -0
- package/dist/host.js +224 -0
- package/dist/host.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -0
- package/dist/inspection.d.ts +3 -0
- package/dist/inspection.d.ts.map +1 -0
- package/dist/inspection.js +82 -0
- package/dist/inspection.js.map +1 -0
- package/dist/keyframes.d.ts +16 -0
- package/dist/keyframes.d.ts.map +1 -0
- package/dist/keyframes.js +29 -0
- package/dist/keyframes.js.map +1 -0
- package/dist/lexer.d.ts +85 -0
- package/dist/lexer.d.ts.map +1 -0
- package/dist/lexer.js +422 -0
- package/dist/lexer.js.map +1 -0
- package/dist/look-static.d.ts +31 -0
- package/dist/look-static.d.ts.map +1 -0
- package/dist/look-static.js +266 -0
- package/dist/look-static.js.map +1 -0
- package/dist/look.d.ts +134 -0
- package/dist/look.d.ts.map +1 -0
- package/dist/look.js +627 -0
- package/dist/look.js.map +1 -0
- package/dist/parser.d.ts +71 -0
- package/dist/parser.d.ts.map +1 -0
- package/dist/parser.js +976 -0
- package/dist/parser.js.map +1 -0
- package/dist/project-config.d.ts +33 -0
- package/dist/project-config.d.ts.map +1 -0
- package/dist/project-config.js +199 -0
- package/dist/project-config.js.map +1 -0
- package/dist/runtime-foundation.d.ts +7 -0
- package/dist/runtime-foundation.d.ts.map +1 -0
- package/dist/runtime-foundation.js +1245 -0
- package/dist/runtime-foundation.js.map +1 -0
- package/dist/runtime.d.ts +7 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +3444 -0
- package/dist/runtime.js.map +1 -0
- package/dist/semantic.d.ts +3 -0
- package/dist/semantic.d.ts.map +1 -0
- package/dist/semantic.js +150 -0
- package/dist/semantic.js.map +1 -0
- package/dist/types.d.ts +56 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +178 -0
- package/dist/types.js.map +1 -0
- package/dist/websocket-runtime.d.ts +2 -0
- package/dist/websocket-runtime.d.ts.map +1 -0
- package/dist/websocket-runtime.js +30 -0
- package/dist/websocket-runtime.js.map +1 -0
- package/dist/worker-runtime.d.ts +2 -0
- package/dist/worker-runtime.d.ts.map +1 -0
- package/dist/worker-runtime.js +72 -0
- package/dist/worker-runtime.js.map +1 -0
- package/package.json +52 -0
package/dist/ast.js
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export const WEB_STATEMENT_CONSTRUCTS = Object.freeze({
|
|
2
|
+
"ExtensionStatement:web:component": "component Name:",
|
|
3
|
+
"ExtensionStatement:web:state": "state name = value",
|
|
4
|
+
"ExtensionStatement:web:computed": "computed name = value",
|
|
5
|
+
"ExtensionStatement:web:resource": "resource name = load()",
|
|
6
|
+
"ExtensionStatement:web:action": "action name():",
|
|
7
|
+
"ExtensionStatement:web:watch": "watch value as current:",
|
|
8
|
+
"ExtensionStatement:web:expose": "expose {member}",
|
|
9
|
+
"ExtensionStatement:web:mounted": "@mounted:",
|
|
10
|
+
"ExtensionStatement:web:cleanup": "@cleanup:",
|
|
11
|
+
"ExtensionStatement:web:unsafe-css/external": 'import css unsafe "./sheet.css" before look',
|
|
12
|
+
"ExtensionStatement:web:unsafe-css/inline": "unsafe css`…` after look",
|
|
13
|
+
});
|
|
14
|
+
/**
|
|
15
|
+
* The construct key of one parsed node, or null when this extension does not
|
|
16
|
+
* own it. The gate walks every node in a module and asks each installed
|
|
17
|
+
* extension, so this has to answer for Core nodes and for another extension's
|
|
18
|
+
* nodes without knowing them.
|
|
19
|
+
*/
|
|
20
|
+
export function webStatementConstructKey(node) {
|
|
21
|
+
if (!node.kind.startsWith("ExtensionStatement:web:"))
|
|
22
|
+
return null;
|
|
23
|
+
if (node.kind !== "ExtensionStatement:web:unsafe-css")
|
|
24
|
+
return node.kind;
|
|
25
|
+
return `${node.kind}/${node.source.kind}`;
|
|
26
|
+
}
|
|
27
|
+
export function isWebStatement(statement) {
|
|
28
|
+
return statement.kind.startsWith("ExtensionStatement:web:");
|
|
29
|
+
}
|
|
30
|
+
export function isWebExpression(expression) {
|
|
31
|
+
return expression.kind.startsWith("ExtensionExpression:web:");
|
|
32
|
+
}
|
|
33
|
+
export function isWebComponent(statement) {
|
|
34
|
+
return statement.kind === "ExtensionStatement:web:component";
|
|
35
|
+
}
|
|
36
|
+
export function isWebJsx(expression) {
|
|
37
|
+
return expression.kind === "ExtensionExpression:web:jsx";
|
|
38
|
+
}
|
|
39
|
+
export function isWebLook(expression) {
|
|
40
|
+
return expression.kind === "ExtensionExpression:web:look";
|
|
41
|
+
}
|
|
42
|
+
function webLookContainsDirectAwait(entries, contains) {
|
|
43
|
+
return entries.some((entry) => {
|
|
44
|
+
if (entry.kind === "LookProperty" || entry.kind === "LookSpread")
|
|
45
|
+
return contains(entry.value);
|
|
46
|
+
if (entry.kind === "LookIf") {
|
|
47
|
+
return contains(entry.condition)
|
|
48
|
+
|| webLookContainsDirectAwait(entry.thenEntries, contains)
|
|
49
|
+
|| webLookContainsDirectAwait(entry.elseEntries, contains);
|
|
50
|
+
}
|
|
51
|
+
return webLookContainsDirectAwait(entry.entries, contains);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/** Web owns the frame semantics of every expression node its parser adds. */
|
|
55
|
+
export function webExpressionContainsDirectAwait(expression, contains) {
|
|
56
|
+
if (!isWebExpression(expression))
|
|
57
|
+
return undefined;
|
|
58
|
+
if (isWebUnit(expression) || expression.kind === "ExtensionExpression:web:look-hook")
|
|
59
|
+
return false;
|
|
60
|
+
if (isWebKeyframes(expression)) {
|
|
61
|
+
return expression.stops.some((stop) => stop.entries.some((entry) => contains(entry.value)));
|
|
62
|
+
}
|
|
63
|
+
if (isWebLook(expression))
|
|
64
|
+
return webLookContainsDirectAwait(expression.entries, contains);
|
|
65
|
+
return expression.attributes.some((attribute) => typeof attribute.value !== "string"
|
|
66
|
+
&& attribute.value !== null
|
|
67
|
+
&& contains(attribute.value))
|
|
68
|
+
|| expression.children.some((child) => child.kind === "JSXExpressionChild"
|
|
69
|
+
? contains(child.expression)
|
|
70
|
+
: child.kind === "ExtensionExpression:web:jsx" && contains(child));
|
|
71
|
+
}
|
|
72
|
+
/** Web owns whether each statement form executes in this frame or a child. */
|
|
73
|
+
export function webStatementContainsDirectAwait(statement, containsExpression, _containsBlock) {
|
|
74
|
+
if (!isWebStatement(statement))
|
|
75
|
+
return undefined;
|
|
76
|
+
switch (statement.kind) {
|
|
77
|
+
case "ExtensionStatement:web:state":
|
|
78
|
+
// State initialization is emitted directly in its containing frame.
|
|
79
|
+
return containsExpression(statement.initializer);
|
|
80
|
+
case "ExtensionStatement:web:expose":
|
|
81
|
+
// A component handle is assembled during component setup.
|
|
82
|
+
return containsExpression(statement.value);
|
|
83
|
+
case "ExtensionStatement:web:component":
|
|
84
|
+
case "ExtensionStatement:web:computed":
|
|
85
|
+
case "ExtensionStatement:web:resource":
|
|
86
|
+
case "ExtensionStatement:web:action":
|
|
87
|
+
case "ExtensionStatement:web:watch":
|
|
88
|
+
case "ExtensionStatement:web:mounted":
|
|
89
|
+
case "ExtensionStatement:web:cleanup":
|
|
90
|
+
case "ExtensionStatement:web:unsafe-css":
|
|
91
|
+
// Each executable child is emitted behind its own callback/frame; unsafe
|
|
92
|
+
// CSS has no runtime expression.
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
export function isWebKeyframes(expression) {
|
|
97
|
+
return expression.kind === "ExtensionExpression:web:keyframes";
|
|
98
|
+
}
|
|
99
|
+
export function isWebUnit(expression) {
|
|
100
|
+
return expression.kind === "ExtensionExpression:web:unit";
|
|
101
|
+
}
|
|
102
|
+
//# sourceMappingURL=ast.js.map
|
package/dist/ast.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ast.js","sourceRoot":"","sources":["../src/ast.ts"],"names":[],"mappings":"AA2OA,MAAM,CAAC,MAAM,wBAAwB,GAAG,MAAM,CAAC,MAAM,CAAC;IACpD,kCAAkC,EAAE,iBAAiB;IACrD,8BAA8B,EAAE,oBAAoB;IACpD,iCAAiC,EAAE,uBAAuB;IAC1D,iCAAiC,EAAE,wBAAwB;IAC3D,+BAA+B,EAAE,gBAAgB;IACjD,8BAA8B,EAAE,yBAAyB;IACzD,+BAA+B,EAAE,iBAAiB;IAClD,gCAAgC,EAAE,WAAW;IAC7C,gCAAgC,EAAE,WAAW;IAC7C,4CAA4C,EAAE,6CAA6C;IAC3F,0CAA0C,EAAE,0BAA0B;CACN,CAAC,CAAC;AAEpE;;;;;GAKG;AACH,MAAM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,KAAK,CAAC,CAAC,CAAC;AACzE,CAAC;AAED,8EAA8E;AAC9E,MAAM,UAAU,+BAA+B,CAC7C,SAAoB,EACpB,kBAAuD,EACvD,cAA6D;IAE7D,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC;QAAE,OAAO,SAAS,CAAC;IACjD,QAAQ,SAAS,CAAC,IAAI,EAAE,CAAC;QACvB,KAAK,8BAA8B;YACjC,oEAAoE;YACpE,OAAO,kBAAkB,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;QACnD,KAAK,+BAA+B;YAClC,0DAA0D;YAC1D,OAAO,kBAAkB,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC7C,KAAK,kCAAkC,CAAC;QACxC,KAAK,iCAAiC,CAAC;QACvC,KAAK,iCAAiC,CAAC;QACvC,KAAK,+BAA+B,CAAC;QACrC,KAAK,8BAA8B,CAAC;QACpC,KAAK,gCAAgC,CAAC;QACtC,KAAK,gCAAgC,CAAC;QACtC,KAAK,mCAAmC;YACtC,yEAAyE;YACzE,iCAAiC;YACjC,OAAO,KAAK,CAAC;IACjB,CAAC;AACH,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,UAA2C;IACxE,OAAO,UAAU,CAAC,IAAI,KAAK,mCAAmC,CAAC;AACjE,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,UAA2C;IACnE,OAAO,UAAU,CAAC,IAAI,KAAK,8BAA8B,CAAC;AAC5D,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The one place the browser-test boundary is written down.
|
|
3
|
+
*
|
|
4
|
+
* Three consumers need the same two facts — the analyzer rejects a
|
|
5
|
+
* `velar/web-test` import outside a browser test, the compiler extension swaps
|
|
6
|
+
* in browser-test guidance for the DOM globals by path suffix, and the
|
|
7
|
+
* framework host tells the CLI which files the browser runner discovers. D57
|
|
8
|
+
* rule 134 rules that a name with an authority is derived from it rather than
|
|
9
|
+
* hand-copied, so the suffix and the module specifier live here and the three
|
|
10
|
+
* import them.
|
|
11
|
+
*/
|
|
12
|
+
/** The file name a browser test is declared in; the CLI runner discovers exactly these. */
|
|
13
|
+
export declare const BROWSER_TEST_SOURCE_SUFFIX = ".browser.test.vel";
|
|
14
|
+
/** The module that reaches from a browser test body into the running page. */
|
|
15
|
+
export declare const BROWSER_TEST_MODULE = "velar/web-test";
|
|
16
|
+
/**
|
|
17
|
+
* The one sentence an author standing in a `.browser.test.vel` needs: the body
|
|
18
|
+
* runs in the test process, not in the page, and the only surface from there
|
|
19
|
+
* that reaches across is `velar/web-test`.
|
|
20
|
+
*/
|
|
21
|
+
export declare function browserTestDrivingGuidance(name: string): string;
|
|
22
|
+
/**
|
|
23
|
+
* D57 rule 138: `velar/web-test` only has a runtime under `velar test
|
|
24
|
+
* --browser`, so importing it anywhere else compiles a call that is certain to
|
|
25
|
+
* fail. Following D51 rule 109, the refusal lands on the import rather than on
|
|
26
|
+
* the eventual call, and it names the file the import belongs in.
|
|
27
|
+
*/
|
|
28
|
+
export declare function browserTestImportGuidance(): string;
|
|
29
|
+
//# sourceMappingURL=browser-test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser-test.d.ts","sourceRoot":"","sources":["../src/browser-test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,2FAA2F;AAC3F,eAAO,MAAM,0BAA0B,sBAAsB,CAAC;AAE9D,8EAA8E;AAC9E,eAAO,MAAM,mBAAmB,mBAAmB,CAAC;AAEpD;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE/D;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,IAAI,MAAM,CAElD"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The one place the browser-test boundary is written down.
|
|
3
|
+
*
|
|
4
|
+
* Three consumers need the same two facts — the analyzer rejects a
|
|
5
|
+
* `velar/web-test` import outside a browser test, the compiler extension swaps
|
|
6
|
+
* in browser-test guidance for the DOM globals by path suffix, and the
|
|
7
|
+
* framework host tells the CLI which files the browser runner discovers. D57
|
|
8
|
+
* rule 134 rules that a name with an authority is derived from it rather than
|
|
9
|
+
* hand-copied, so the suffix and the module specifier live here and the three
|
|
10
|
+
* import them.
|
|
11
|
+
*/
|
|
12
|
+
/** The file name a browser test is declared in; the CLI runner discovers exactly these. */
|
|
13
|
+
export const BROWSER_TEST_SOURCE_SUFFIX = ".browser.test.vel";
|
|
14
|
+
/** The module that reaches from a browser test body into the running page. */
|
|
15
|
+
export const BROWSER_TEST_MODULE = "velar/web-test";
|
|
16
|
+
/**
|
|
17
|
+
* The one sentence an author standing in a `.browser.test.vel` needs: the body
|
|
18
|
+
* runs in the test process, not in the page, and the only surface from there
|
|
19
|
+
* that reaches across is `velar/web-test`.
|
|
20
|
+
*/
|
|
21
|
+
export function browserTestDrivingGuidance(name) {
|
|
22
|
+
return `A browser test drives the running page, so '${name}' is not available in its body; import {browser} from "${BROWSER_TEST_MODULE}" and use browser.open("/"), browser.fill(selector, text), browser.click(selector), browser.waitForText(selector, text), and browser.text(selector) — the same module exports localStorage and sessionStorage for the page's storage`;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* D57 rule 138: `velar/web-test` only has a runtime under `velar test
|
|
26
|
+
* --browser`, so importing it anywhere else compiles a call that is certain to
|
|
27
|
+
* fail. Following D51 rule 109, the refusal lands on the import rather than on
|
|
28
|
+
* the eventual call, and it names the file the import belongs in.
|
|
29
|
+
*/
|
|
30
|
+
export function browserTestImportGuidance() {
|
|
31
|
+
return `'${BROWSER_TEST_MODULE}' drives the running page from the test process, so it only has a runtime under 'velar test --browser'; import it from a '*${BROWSER_TEST_SOURCE_SUFFIX}' module — rename this module, or move the browser test into one of its own — while application code reaches the page through velar/browser`;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=browser-test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser-test.js","sourceRoot":"","sources":["../src/browser-test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,2FAA2F;AAC3F,MAAM,CAAC,MAAM,0BAA0B,GAAG,mBAAmB,CAAC;AAE9D,8EAA8E;AAC9E,MAAM,CAAC,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;AAEpD;;;;GAIG;AACH,MAAM,UAAU,0BAA0B,CAAC,IAAY;IACrD,OAAO,+CAA+C,IAAI,0DAA0D,mBAAmB,sOAAsO,CAAC;AAChX,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB;IACvC,OAAO,IAAI,mBAAmB,8HAA8H,0BAA0B,6IAA6I,CAAC;AACtU,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type CompilerExtension, type ModuleInterface } from "@velarscript/compiler";
|
|
2
|
+
import { webModuleSource, webModuleSources, type VelarWebRuntimeConfig } from "./runtime.ts";
|
|
3
|
+
export declare const VELAR_WEB_API_VERSION = "0.10";
|
|
4
|
+
export { BROWSER_TEST_MODULE, BROWSER_TEST_SOURCE_SUFFIX } from "./browser-test.ts";
|
|
5
|
+
export declare const webModuleInterfaces: ReadonlyMap<string, ModuleInterface>;
|
|
6
|
+
export declare const velarCompilerExtension: CompilerExtension;
|
|
7
|
+
export { webModuleSource, webModuleSources, type VelarWebRuntimeConfig };
|
|
8
|
+
export { velarProjectExtension, type VelarWebConfig } from "./project-config.ts";
|
|
9
|
+
//# sourceMappingURL=compiler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compiler.d.ts","sourceRoot":"","sources":["../src/compiler.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,KAAK,iBAAiB,EAAiB,KAAK,eAAe,EAAkB,MAAM,uBAAuB,CAAC;AAgB5J,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAK7F,eAAO,MAAM,qBAAqB,SAAS,CAAC;AAO5C,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AA6WpF,eAAO,MAAM,mBAAmB,EAAE,WAAW,CAAC,MAAM,EAAE,eAAe,CAsKnE,CAAC;AAYH,eAAO,MAAM,sBAAsB,EAAE,iBAyLnC,CAAC;AAEH,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
|