@velarscript/web 0.31.0 → 0.33.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 +1 -1
- package/dist/analysis/calls/intrinsics/config.d.ts +10 -0
- package/dist/analysis/calls/intrinsics/config.d.ts.map +1 -0
- package/dist/analysis/calls/intrinsics/config.js +19 -0
- package/dist/analysis/calls/intrinsics/config.js.map +1 -0
- package/dist/analysis/calls/intrinsics/forms.d.ts +10 -0
- package/dist/analysis/calls/intrinsics/forms.d.ts.map +1 -0
- package/dist/analysis/calls/intrinsics/forms.js +38 -0
- package/dist/analysis/calls/intrinsics/forms.js.map +1 -0
- package/dist/analysis/calls/intrinsics/http.d.ts +10 -0
- package/dist/analysis/calls/intrinsics/http.d.ts.map +1 -0
- package/dist/analysis/calls/intrinsics/http.js +37 -0
- package/dist/analysis/calls/intrinsics/http.js.map +1 -0
- package/dist/analysis/calls/intrinsics/reactive.d.ts +10 -0
- package/dist/analysis/calls/intrinsics/reactive.d.ts.map +1 -0
- package/dist/analysis/calls/intrinsics/reactive.js +30 -0
- package/dist/analysis/calls/intrinsics/reactive.js.map +1 -0
- package/dist/analysis/calls/intrinsics/storage.d.ts +16 -0
- package/dist/analysis/calls/intrinsics/storage.d.ts.map +1 -0
- package/dist/analysis/calls/intrinsics/storage.js +91 -0
- package/dist/analysis/calls/intrinsics/storage.js.map +1 -0
- package/dist/analysis/calls/intrinsics/web.d.ts +10 -0
- package/dist/analysis/calls/intrinsics/web.d.ts.map +1 -0
- package/dist/analysis/calls/intrinsics/web.js +100 -0
- package/dist/analysis/calls/intrinsics/web.js.map +1 -0
- package/dist/analysis/calls/intrinsics.d.ts +13 -0
- package/dist/analysis/calls/intrinsics.d.ts.map +1 -0
- package/dist/analysis/calls/intrinsics.js +31 -0
- package/dist/analysis/calls/intrinsics.js.map +1 -0
- package/dist/analysis/components/contracts.d.ts +19 -0
- package/dist/analysis/components/contracts.d.ts.map +1 -0
- package/dist/analysis/components/contracts.js +83 -0
- package/dist/analysis/components/contracts.js.map +1 -0
- package/dist/analysis/components/declaration.d.ts +4 -0
- package/dist/analysis/components/declaration.d.ts.map +1 -0
- package/dist/analysis/components/declaration.js +163 -0
- package/dist/analysis/components/declaration.js.map +1 -0
- package/dist/analysis/components/host.d.ts +61 -0
- package/dist/analysis/components/host.d.ts.map +1 -0
- package/dist/analysis/components/host.js +22 -0
- package/dist/analysis/components/host.js.map +1 -0
- package/dist/analysis/components/lifecycle.d.ts +22 -0
- package/dist/analysis/components/lifecycle.d.ts.map +1 -0
- package/dist/analysis/components/lifecycle.js +33 -0
- package/dist/analysis/components/lifecycle.js.map +1 -0
- package/dist/analysis/components/ownership.d.ts +74 -0
- package/dist/analysis/components/ownership.d.ts.map +1 -0
- package/dist/analysis/components/ownership.js +106 -0
- package/dist/analysis/components/ownership.js.map +1 -0
- package/dist/analysis/declarations.d.ts +99 -0
- package/dist/analysis/declarations.d.ts.map +1 -0
- package/dist/analysis/declarations.js +176 -0
- package/dist/analysis/declarations.js.map +1 -0
- package/dist/analysis/inference.d.ts +75 -0
- package/dist/analysis/inference.d.ts.map +1 -0
- package/dist/analysis/inference.js +257 -0
- package/dist/analysis/inference.js.map +1 -0
- package/dist/analysis/jsx/attributes.d.ts +103 -0
- package/dist/analysis/jsx/attributes.d.ts.map +1 -0
- package/dist/analysis/jsx/attributes.js +601 -0
- package/dist/analysis/jsx/attributes.js.map +1 -0
- package/dist/analysis/jsx/elements.d.ts +17 -0
- package/dist/analysis/jsx/elements.d.ts.map +1 -0
- package/dist/analysis/jsx/elements.js +213 -0
- package/dist/analysis/jsx/elements.js.map +1 -0
- package/dist/analysis/jsx/host.d.ts +61 -0
- package/dist/analysis/jsx/host.d.ts.map +1 -0
- package/dist/analysis/jsx/host.js +15 -0
- package/dist/analysis/jsx/host.js.map +1 -0
- package/dist/analysis/jsx/keys.d.ts +15 -0
- package/dist/analysis/jsx/keys.d.ts.map +1 -0
- package/dist/analysis/jsx/keys.js +67 -0
- package/dist/analysis/jsx/keys.js.map +1 -0
- package/dist/analysis/jsx/security.d.ts +29 -0
- package/dist/analysis/jsx/security.d.ts.map +1 -0
- package/dist/analysis/jsx/security.js +61 -0
- package/dist/analysis/jsx/security.js.map +1 -0
- package/dist/analysis/jsx-detection.d.ts +49 -0
- package/dist/analysis/jsx-detection.d.ts.map +1 -0
- package/dist/analysis/jsx-detection.js +196 -0
- package/dist/analysis/jsx-detection.js.map +1 -0
- package/dist/analysis/keyed-rebuild.d.ts +148 -0
- package/dist/analysis/keyed-rebuild.d.ts.map +1 -0
- package/dist/analysis/keyed-rebuild.js +299 -0
- package/dist/analysis/keyed-rebuild.js.map +1 -0
- package/dist/analysis/keyframes-analysis.d.ts +6 -0
- package/dist/analysis/keyframes-analysis.d.ts.map +1 -0
- package/dist/analysis/keyframes-analysis.js +79 -0
- package/dist/analysis/keyframes-analysis.js.map +1 -0
- package/dist/analysis/look/builders.d.ts +29 -0
- package/dist/analysis/look/builders.d.ts.map +1 -0
- package/dist/analysis/look/builders.js +174 -0
- package/dist/analysis/look/builders.js.map +1 -0
- package/dist/analysis/look/conditions.d.ts +13 -0
- package/dist/analysis/look/conditions.d.ts.map +1 -0
- package/dist/analysis/look/conditions.js +84 -0
- package/dist/analysis/look/conditions.js.map +1 -0
- package/dist/analysis/look/edits.d.ts +36 -0
- package/dist/analysis/look/edits.d.ts.map +1 -0
- package/dist/analysis/look/edits.js +80 -0
- package/dist/analysis/look/edits.js.map +1 -0
- package/dist/analysis/look/entries.d.ts +56 -0
- package/dist/analysis/look/entries.d.ts.map +1 -0
- package/dist/analysis/look/entries.js +223 -0
- package/dist/analysis/look/entries.js.map +1 -0
- package/dist/analysis/look/host.d.ts +47 -0
- package/dist/analysis/look/host.d.ts.map +1 -0
- package/dist/analysis/look/host.js +16 -0
- package/dist/analysis/look/host.js.map +1 -0
- package/dist/analysis/look/tokens.d.ts +75 -0
- package/dist/analysis/look/tokens.d.ts.map +1 -0
- package/dist/analysis/look/tokens.js +156 -0
- package/dist/analysis/look/tokens.js.map +1 -0
- package/dist/analysis/look/values.d.ts +45 -0
- package/dist/analysis/look/values.d.ts.map +1 -0
- package/dist/analysis/look/values.js +148 -0
- package/dist/analysis/look/values.js.map +1 -0
- package/dist/analysis/look-conditions.d.ts +47 -0
- package/dist/analysis/look-conditions.d.ts.map +1 -0
- package/dist/analysis/look-conditions.js +157 -0
- package/dist/analysis/look-conditions.js.map +1 -0
- package/dist/analysis/look-sites.d.ts +62 -0
- package/dist/analysis/look-sites.d.ts.map +1 -0
- package/dist/analysis/look-sites.js +121 -0
- package/dist/analysis/look-sites.js.map +1 -0
- package/dist/analysis/look-values.d.ts +19 -0
- package/dist/analysis/look-values.d.ts.map +1 -1
- package/dist/analysis/look-values.js +38 -0
- package/dist/analysis/look-values.js.map +1 -1
- package/dist/analysis/look-vocabulary-guidance.d.ts +76 -0
- package/dist/analysis/look-vocabulary-guidance.d.ts.map +1 -0
- package/dist/analysis/look-vocabulary-guidance.js +338 -0
- package/dist/analysis/look-vocabulary-guidance.js.map +1 -0
- package/dist/analysis/media-conditions.d.ts +33 -0
- package/dist/analysis/media-conditions.d.ts.map +1 -0
- package/dist/analysis/media-conditions.js +92 -0
- package/dist/analysis/media-conditions.js.map +1 -0
- package/dist/analysis/program-passes.d.ts +106 -0
- package/dist/analysis/program-passes.d.ts.map +1 -0
- package/dist/analysis/program-passes.js +149 -0
- package/dist/analysis/program-passes.js.map +1 -0
- package/dist/analysis/reactivity/bindings.d.ts +37 -0
- package/dist/analysis/reactivity/bindings.d.ts.map +1 -0
- package/dist/analysis/reactivity/bindings.js +88 -0
- package/dist/analysis/reactivity/bindings.js.map +1 -0
- package/dist/analysis/reactivity/derived.d.ts +39 -0
- package/dist/analysis/reactivity/derived.d.ts.map +1 -0
- package/dist/analysis/reactivity/derived.js +80 -0
- package/dist/analysis/reactivity/derived.js.map +1 -0
- package/dist/analysis/reactivity/host.d.ts +38 -0
- package/dist/analysis/reactivity/host.d.ts.map +1 -0
- package/dist/analysis/reactivity/host.js +14 -0
- package/dist/analysis/reactivity/host.js.map +1 -0
- package/dist/analysis/reactivity/retired-accessors.d.ts +82 -0
- package/dist/analysis/reactivity/retired-accessors.d.ts.map +1 -0
- package/dist/analysis/reactivity/retired-accessors.js +118 -0
- package/dist/analysis/reactivity/retired-accessors.js.map +1 -0
- package/dist/analysis/renderable.d.ts +47 -0
- package/dist/analysis/renderable.d.ts.map +1 -0
- package/dist/analysis/renderable.js +105 -0
- package/dist/analysis/renderable.js.map +1 -0
- package/dist/analysis/routes.d.ts +64 -0
- package/dist/analysis/routes.d.ts.map +1 -0
- package/dist/analysis/routes.js +182 -0
- package/dist/analysis/routes.js.map +1 -0
- package/dist/analysis/url-attributes.d.ts +12 -0
- package/dist/analysis/url-attributes.d.ts.map +1 -0
- package/dist/analysis/url-attributes.js +48 -0
- package/dist/analysis/url-attributes.js.map +1 -0
- package/dist/analysis/watch-cycles.d.ts +102 -0
- package/dist/analysis/watch-cycles.d.ts.map +1 -1
- package/dist/analysis/watch-cycles.js +240 -1
- package/dist/analysis/watch-cycles.js.map +1 -1
- package/dist/analysis/watch-subject.d.ts +45 -0
- package/dist/analysis/watch-subject.d.ts.map +1 -0
- package/dist/analysis/watch-subject.js +272 -0
- package/dist/analysis/watch-subject.js.map +1 -0
- package/dist/analysis/web-types.d.ts +27 -0
- package/dist/analysis/web-types.d.ts.map +1 -0
- package/dist/analysis/web-types.js +170 -0
- package/dist/analysis/web-types.js.map +1 -0
- package/dist/analyzer.d.ts +18 -617
- package/dist/analyzer.d.ts.map +1 -1
- package/dist/analyzer.js +211 -4853
- package/dist/analyzer.js.map +1 -1
- package/dist/compiler.d.ts +20 -0
- package/dist/compiler.d.ts.map +1 -1
- package/dist/compiler.js +31 -864
- package/dist/compiler.js.map +1 -1
- package/dist/documentation.d.ts +28 -0
- package/dist/documentation.d.ts.map +1 -0
- package/dist/documentation.js +67 -0
- package/dist/documentation.js.map +1 -0
- package/dist/editor/completions.d.ts +12 -0
- package/dist/editor/completions.d.ts.map +1 -0
- package/dist/editor/completions.js +6 -0
- package/dist/editor/completions.js.map +1 -0
- package/dist/editor/jsx-completion.d.ts +12 -0
- package/dist/editor/jsx-completion.d.ts.map +1 -0
- package/dist/editor/jsx-completion.js +137 -0
- package/dist/editor/jsx-completion.js.map +1 -0
- package/dist/editor/look-completion.d.ts +29 -0
- package/dist/editor/look-completion.d.ts.map +1 -0
- package/dist/editor/look-completion.js +159 -0
- package/dist/editor/look-completion.js.map +1 -0
- package/dist/editor.d.ts.map +1 -1
- package/dist/editor.js +12 -288
- package/dist/editor.js.map +1 -1
- package/dist/emit/components.d.ts +33 -0
- package/dist/emit/components.d.ts.map +1 -0
- package/dist/emit/components.js +135 -0
- package/dist/emit/components.js.map +1 -0
- package/dist/emit/jsx.d.ts +57 -0
- package/dist/emit/jsx.d.ts.map +1 -0
- package/dist/emit/jsx.js +384 -0
- package/dist/emit/jsx.js.map +1 -0
- package/dist/emit/look-css.d.ts +44 -0
- package/dist/emit/look-css.d.ts.map +1 -0
- package/dist/emit/look-css.js +177 -0
- package/dist/emit/look-css.js.map +1 -0
- package/dist/emit/look.d.ts +39 -0
- package/dist/emit/look.d.ts.map +1 -0
- package/dist/emit/look.js +218 -0
- package/dist/emit/look.js.map +1 -0
- package/dist/emit/runtime-imports.d.ts +40 -0
- package/dist/emit/runtime-imports.d.ts.map +1 -0
- package/dist/emit/runtime-imports.js +188 -0
- package/dist/emit/runtime-imports.js.map +1 -0
- package/dist/emitter.d.ts +15 -68
- package/dist/emitter.d.ts.map +1 -1
- package/dist/emitter.js +79 -1008
- package/dist/emitter.js.map +1 -1
- package/dist/look/animation.d.ts +7 -0
- package/dist/look/animation.d.ts.map +1 -0
- package/dist/look/animation.js +13 -0
- package/dist/look/animation.js.map +1 -0
- package/dist/look/builders.d.ts +35 -0
- package/dist/look/builders.d.ts.map +1 -0
- package/dist/look/builders.js +74 -0
- package/dist/look/builders.js.map +1 -0
- package/dist/look/css-functions.d.ts +28 -0
- package/dist/look/css-functions.d.ts.map +1 -0
- package/dist/look/css-functions.js +54 -0
- package/dist/look/css-functions.js.map +1 -0
- package/dist/look/keyword-sets.d.ts +41 -0
- package/dist/look/keyword-sets.d.ts.map +1 -0
- package/dist/look/keyword-sets.js +117 -0
- package/dist/look/keyword-sets.js.map +1 -0
- package/dist/look/keywords.d.ts +55 -0
- package/dist/look/keywords.d.ts.map +1 -0
- package/dist/look/keywords.js +387 -0
- package/dist/look/keywords.js.map +1 -0
- package/dist/look/media.d.ts +19 -0
- package/dist/look/media.d.ts.map +1 -0
- package/dist/look/media.js +27 -0
- package/dist/look/media.js.map +1 -0
- package/dist/look/naming.d.ts +9 -0
- package/dist/look/naming.d.ts.map +1 -0
- package/dist/look/naming.js +45 -0
- package/dist/look/naming.js.map +1 -0
- package/dist/look/properties.d.ts +16 -0
- package/dist/look/properties.d.ts.map +1 -0
- package/dist/look/properties.js +52 -0
- package/dist/look/properties.js.map +1 -0
- package/dist/look/shorthands.d.ts +25 -0
- package/dist/look/shorthands.d.ts.map +1 -0
- package/dist/look/shorthands.js +130 -0
- package/dist/look/shorthands.js.map +1 -0
- package/dist/look/tokens.d.ts +38 -0
- package/dist/look/tokens.d.ts.map +1 -0
- package/dist/look/tokens.js +59 -0
- package/dist/look/tokens.js.map +1 -0
- package/dist/look/units.d.ts +24 -0
- package/dist/look/units.d.ts.map +1 -0
- package/dist/look/units.js +33 -0
- package/dist/look/units.js.map +1 -0
- package/dist/look.d.ts +32 -227
- package/dist/look.d.ts.map +1 -1
- package/dist/look.js +28 -933
- package/dist/look.js.map +1 -1
- package/dist/module-roster.d.ts +16 -0
- package/dist/module-roster.d.ts.map +1 -0
- package/dist/module-roster.js +28 -0
- package/dist/module-roster.js.map +1 -0
- package/dist/modules/app.d.ts +9 -0
- package/dist/modules/app.d.ts.map +1 -0
- package/dist/modules/app.js +20 -0
- package/dist/modules/app.js.map +1 -0
- package/dist/modules/browser-test.d.ts +9 -0
- package/dist/modules/browser-test.d.ts.map +1 -0
- package/dist/modules/browser-test.js +67 -0
- package/dist/modules/browser-test.js.map +1 -0
- package/dist/modules/browser.d.ts +10 -0
- package/dist/modules/browser.d.ts.map +1 -0
- package/dist/modules/browser.js +89 -0
- package/dist/modules/browser.js.map +1 -0
- package/dist/modules/config.d.ts +9 -0
- package/dist/modules/config.d.ts.map +1 -0
- package/dist/modules/config.js +14 -0
- package/dist/modules/config.js.map +1 -0
- package/dist/modules/files.d.ts +9 -0
- package/dist/modules/files.d.ts.map +1 -0
- package/dist/modules/files.js +16 -0
- package/dist/modules/files.js.map +1 -0
- package/dist/modules/forms.d.ts +9 -0
- package/dist/modules/forms.d.ts.map +1 -0
- package/dist/modules/forms.js +26 -0
- package/dist/modules/forms.js.map +1 -0
- package/dist/modules/http.d.ts +9 -0
- package/dist/modules/http.d.ts.map +1 -0
- package/dist/modules/http.js +127 -0
- package/dist/modules/http.js.map +1 -0
- package/dist/modules/look.d.ts +9 -0
- package/dist/modules/look.d.ts.map +1 -0
- package/dist/modules/look.js +58 -0
- package/dist/modules/look.js.map +1 -0
- package/dist/modules/realtime.d.ts +9 -0
- package/dist/modules/realtime.d.ts.map +1 -0
- package/dist/modules/realtime.js +163 -0
- package/dist/modules/realtime.js.map +1 -0
- package/dist/modules/storage.d.ts +9 -0
- package/dist/modules/storage.d.ts.map +1 -0
- package/dist/modules/storage.js +59 -0
- package/dist/modules/storage.js.map +1 -0
- package/dist/modules/types.d.ts +78 -0
- package/dist/modules/types.d.ts.map +1 -0
- package/dist/modules/types.js +154 -0
- package/dist/modules/types.js.map +1 -0
- package/dist/modules/web.d.ts +9 -0
- package/dist/modules/web.d.ts.map +1 -0
- package/dist/modules/web.js +63 -0
- package/dist/modules/web.js.map +1 -0
- package/dist/modules/websocket.d.ts +11 -0
- package/dist/modules/websocket.d.ts.map +1 -0
- package/dist/modules/websocket.js +75 -0
- package/dist/modules/websocket.js.map +1 -0
- package/dist/parser/expressions/jsx.d.ts +17 -0
- package/dist/parser/expressions/jsx.d.ts.map +1 -0
- package/dist/parser/expressions/jsx.js +43 -0
- package/dist/parser/expressions/jsx.js.map +1 -0
- package/dist/parser/expressions/keyframes.d.ts +15 -0
- package/dist/parser/expressions/keyframes.d.ts.map +1 -0
- package/dist/parser/expressions/keyframes.js +33 -0
- package/dist/parser/expressions/keyframes.js.map +1 -0
- package/dist/parser/expressions/look.d.ts +16 -0
- package/dist/parser/expressions/look.d.ts.map +1 -0
- package/dist/parser/expressions/look.js +37 -0
- package/dist/parser/expressions/look.js.map +1 -0
- package/dist/parser/expressions/visual-block.d.ts +17 -0
- package/dist/parser/expressions/visual-block.d.ts.map +1 -0
- package/dist/parser/expressions/visual-block.js +21 -0
- package/dist/parser/expressions/visual-block.js.map +1 -0
- package/dist/parser/keyframes-source.d.ts +24 -0
- package/dist/parser/keyframes-source.d.ts.map +1 -0
- package/dist/parser/keyframes-source.js +133 -0
- package/dist/parser/keyframes-source.js.map +1 -0
- package/dist/parser/look-source.d.ts +25 -0
- package/dist/parser/look-source.d.ts.map +1 -0
- package/dist/parser/look-source.js +189 -0
- package/dist/parser/look-source.js.map +1 -0
- package/dist/parser/spans.d.ts +24 -0
- package/dist/parser/spans.d.ts.map +1 -0
- package/dist/parser/spans.js +113 -0
- package/dist/parser/spans.js.map +1 -0
- package/dist/parser/statements/components.d.ts +37 -0
- package/dist/parser/statements/components.d.ts.map +1 -0
- package/dist/parser/statements/components.js +185 -0
- package/dist/parser/statements/components.js.map +1 -0
- package/dist/parser/statements/heads.d.ts +38 -0
- package/dist/parser/statements/heads.d.ts.map +1 -0
- package/dist/parser/statements/heads.js +55 -0
- package/dist/parser/statements/heads.js.map +1 -0
- package/dist/parser/statements/imports.d.ts +9 -0
- package/dist/parser/statements/imports.d.ts.map +1 -0
- package/dist/parser/statements/imports.js +31 -0
- package/dist/parser/statements/imports.js.map +1 -0
- package/dist/parser/statements/reactive.d.ts +31 -0
- package/dist/parser/statements/reactive.d.ts.map +1 -0
- package/dist/parser/statements/reactive.js +68 -0
- package/dist/parser/statements/reactive.js.map +1 -0
- package/dist/parser/statements/unsafe-css.d.ts +21 -0
- package/dist/parser/statements/unsafe-css.d.ts.map +1 -0
- package/dist/parser/statements/unsafe-css.js +42 -0
- package/dist/parser/statements/unsafe-css.js.map +1 -0
- package/dist/parser.d.ts +37 -50
- package/dist/parser.d.ts.map +1 -1
- package/dist/parser.js +98 -882
- package/dist/parser.js.map +1 -1
- package/dist/runtime-sources.generated.d.ts +1 -1
- package/dist/runtime-sources.generated.d.ts.map +1 -1
- package/dist/runtime-sources.generated.js +4 -4
- package/dist/runtime-sources.generated.js.map +1 -1
- package/package.json +2 -2
package/dist/look.d.ts
CHANGED
|
@@ -1,231 +1,36 @@
|
|
|
1
|
-
export type LookUnitTypeName = "Length" | "Percentage" | "TrackFraction" | "Duration" | "Angle";
|
|
2
1
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
|
|
7
|
-
export declare const LOOK_UNIT_TYPES: ReadonlyMap<string, LookUnitTypeName>;
|
|
8
|
-
export declare const LOOK_MEDIA_LENGTH_UNITS: Set<string>;
|
|
9
|
-
/**
|
|
10
|
-
* The closed set of media-condition subjects a Look condition may name. Every
|
|
11
|
-
* subject lowers to a CSS media query, so the whole set stays live for the
|
|
12
|
-
* lifetime of the page. The names are reserved bindings in a Web module: a
|
|
13
|
-
* user binding of the same name would otherwise be shadowed by this table
|
|
14
|
-
* inside Look conditions only (LOK-D4).
|
|
15
|
-
*/
|
|
16
|
-
export declare const LOOK_MEDIA_SUBJECTS: ReadonlyMap<string, ReadonlySet<string>>;
|
|
17
|
-
/** Media features a Web developer may reach for that Look deliberately omits. */
|
|
18
|
-
export declare const LOOK_ABSENT_MEDIA_SUBJECTS: Set<string>;
|
|
19
|
-
/**
|
|
20
|
-
* Properties whose CSS grammar takes a bare number. Every other numeric Look
|
|
21
|
-
* property is a length, so a unitless number would reach CSS as a dead
|
|
22
|
-
* declaration; the property tables reject it and the diagnostic teaches the
|
|
23
|
-
* unit (LOK-D3).
|
|
24
|
-
*/
|
|
25
|
-
export declare const LOOK_UNITLESS_PROPERTIES: Set<string>;
|
|
26
|
-
/** Builders that compose lengths: a unitless argument other than 0 is dead CSS. */
|
|
27
|
-
export declare const LOOK_LENGTH_BUILDERS: Set<string>;
|
|
28
|
-
/**
|
|
29
|
-
* The numeric domains the velar/look builders enforce at run time: name, bounds,
|
|
30
|
-
* and the unit the value is written in (LK-I3: hsl's are the language's own `%`).
|
|
31
|
-
* A literal argument is checked the same way while the module compiles (LOK-U8).
|
|
32
|
-
*/
|
|
33
|
-
export declare const LOOK_BUILDER_NUMERIC_RANGES: ReadonlyMap<string, readonly (readonly [string, number, number, "%"?] | null)[]>;
|
|
34
|
-
/** The border styles the border builder accepts, mirroring its runtime guard. */
|
|
35
|
-
export declare const LOOK_BORDER_STYLE_NAMES: Set<string>;
|
|
36
|
-
export declare const LOOK_ARITHMETIC_HINT = "@velarscript/web:look-arithmetic";
|
|
37
|
-
export declare const LOOK_NUMERIC_TYPE_NAMES: Set<string>;
|
|
38
|
-
export declare const LOOK_PUBLIC_TYPE_NAMES: readonly ["Look", "Length", "Percentage", "LengthPercentage", "TrackFraction", "Color", "Duration", "Angle", "Border", "Shadow", "Filter", "Image", "Track", "TrackList", "Transition", "Spacing", "Keyframes", "Animation"];
|
|
39
|
-
export declare const LOOK_HOOKS: Set<string>;
|
|
40
|
-
export declare const LOOK_TARGETS: Set<string>;
|
|
41
|
-
export interface LookBuilderSignature {
|
|
42
|
-
/** Parameter names, in declaration order. */
|
|
43
|
-
readonly parameters: readonly string[];
|
|
44
|
-
/** How many leading parameters a call must supply. */
|
|
45
|
-
readonly required: number;
|
|
46
|
-
/** Whether the final parameter collects the remaining arguments. */
|
|
47
|
-
readonly rest?: boolean;
|
|
48
|
-
/** The visual value produced by this builder, used by type and editor contexts. */
|
|
49
|
-
readonly result: LookBuilderResultKind;
|
|
50
|
-
}
|
|
51
|
-
export type LookBuilderResultKind = "animation" | "border" | "color" | "filter" | "image" | "length" | "length-percentage" | "shadow" | "spacing" | "string" | "track" | "track-list" | "transition";
|
|
52
|
-
/**
|
|
53
|
-
* Every velar/look builder and the shape of its call. Three consumers read this
|
|
54
|
-
* one table — the published module interface, the named-argument check, and the
|
|
55
|
-
* static lowering that has to put a named argument back at its position when a
|
|
56
|
-
* builder call appears inside a `keyframes:` stop. D57 rule 134: a list two
|
|
57
|
-
* places need is written once and derived from.
|
|
58
|
-
*/
|
|
59
|
-
export declare const LOOK_BUILDER_SIGNATURES: ReadonlyMap<string, LookBuilderSignature>;
|
|
60
|
-
export declare const LOOK_BUILDERS: Set<string>;
|
|
61
|
-
/**
|
|
62
|
-
* A CSS custom property identifier, as a Look token name. `--` and at least one
|
|
63
|
-
* more character, from the ASCII ident set a design system's tokens are written
|
|
64
|
-
* with. CSS itself also admits non-ASCII ident code points and backslash
|
|
65
|
-
* escapes; both are outside this set on purpose, because the text goes straight
|
|
66
|
-
* into a compiler-owned stylesheet where an escape is a way out of the
|
|
67
|
-
* declaration (the same reasoning LOK-U9 applies to `keyframes:` values).
|
|
68
|
-
*/
|
|
69
|
-
export declare const LOOK_TOKEN_NAME_PATTERN: RegExp;
|
|
70
|
-
/** The whole rule, in the terms a diagnostic teaches it. */
|
|
71
|
-
export declare const LOOK_TOKEN_NAME_RULE = "a design token name is a literal string holding a CSS custom property identifier: '--' followed by one or more letters, digits, hyphens, or underscores";
|
|
72
|
-
/**
|
|
73
|
-
* D103 rule 5 — why there is no second parameter. A design token is the design
|
|
74
|
-
* system's closed contract; a token that is missing is a defect in that system,
|
|
75
|
-
* to be fixed once where it is defined, rather than a decision each of hundreds
|
|
76
|
-
* of use sites re-makes for itself. A per-site fallback would also be the one
|
|
77
|
-
* part of the reference the compiler could neither see nor check.
|
|
78
|
-
*/
|
|
79
|
-
export declare const LOOK_TOKEN_NO_FALLBACK_GUIDANCE = "token(name) takes the token name and nothing else: a design token is the design system's closed contract, so a token that is missing is a defect to fix where the token is defined rather than a fallback decided again at every use site";
|
|
80
|
-
export declare function isLookTokenName(name: string): boolean;
|
|
81
|
-
/** The CSS text a checked token reference lowers to. */
|
|
82
|
-
export declare function lookTokenReference(name: string): string;
|
|
83
|
-
/**
|
|
84
|
-
* The token name a whole `var(--name)` string names, or null. Only the complete
|
|
85
|
-
* value is read: `var()` inside a larger value — the tail of a font stack, one
|
|
86
|
-
* layer of a filter — is a legitimate free-text spelling with no single token
|
|
87
|
-
* to rewrite it to, so it is not this function's business. A `var(--x, red)`
|
|
88
|
-
* fallback form answers null here and is diagnosed by its own message, because
|
|
89
|
-
* the closed contract above has no fallback to migrate it to.
|
|
90
|
-
*/
|
|
91
|
-
export declare function lookVarReferenceName(text: string): string | null;
|
|
92
|
-
/** Whether a whole string is a `var(...)` reference of any shape, fallback included. */
|
|
93
|
-
export declare function isLookVarReference(text: string): boolean;
|
|
94
|
-
export declare const LOOK_ANIMATION_EASINGS: Set<string>;
|
|
95
|
-
export declare const LOOK_ANIMATION_DIRECTIONS: Set<string>;
|
|
96
|
-
export declare const LOOK_ANIMATION_FILLS: Set<string>;
|
|
97
|
-
/** Properties whose CSS values do not participate in interpolated animation. */
|
|
98
|
-
export declare const LOOK_NON_ANIMATABLE_PROPERTIES: Set<string>;
|
|
99
|
-
export interface LookPropertyGroup {
|
|
100
|
-
readonly family: string;
|
|
101
|
-
readonly properties: readonly string[];
|
|
102
|
-
}
|
|
103
|
-
/** Published Look vocabulary, grouped by the job each property performs. */
|
|
104
|
-
export declare const LOOK_PROPERTY_GROUPS: readonly LookPropertyGroup[];
|
|
105
|
-
export declare const LOOK_PROPERTIES: Set<string>;
|
|
106
|
-
/** Stable editor-documentation key for one checked Look property. */
|
|
107
|
-
export declare function lookPropertyDocumentationKey(property: string): string;
|
|
108
|
-
export type LookPropertyValueKind = "animation" | "angle" | "background" | "border" | "color" | "duration" | "filter" | "image" | "keyword" | "line-height" | "metric" | "number" | "number-keyword" | "shadow" | "text" | "track" | "transform" | "transition";
|
|
109
|
-
export declare const LOOK_PROPERTY_VALUE_KINDS: ReadonlyMap<string, LookPropertyValueKind>;
|
|
110
|
-
/**
|
|
111
|
-
* The five keywords every CSS property accepts. They are kept apart from a
|
|
112
|
-
* property's own vocabulary so a diagnostic can lead with the values that
|
|
113
|
-
* belong to the property being written (D67 rule 174).
|
|
114
|
-
*/
|
|
115
|
-
export declare const LOOK_CSS_WIDE_KEYWORDS: readonly string[];
|
|
116
|
-
/** Shared sizing words accepted by metric properties without a property-specific table. */
|
|
117
|
-
export declare const LOOK_SHARED_METRIC_KEYWORDS: readonly string[];
|
|
118
|
-
/** Named colors accepted by the checked color and background value kinds. */
|
|
119
|
-
export declare const LOOK_COLOR_KEYWORDS: readonly string[];
|
|
120
|
-
export interface LookCssFunctionSuggestion {
|
|
121
|
-
/** CSS function name shown by completion. */
|
|
122
|
-
readonly name: string;
|
|
123
|
-
/** A complete, directly insertable example without surrounding quotes. */
|
|
124
|
-
readonly example: string;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Free-text CSS functions that are legal for a specific Look property. This is
|
|
128
|
-
* editor vocabulary, not a second validator: only free-text properties appear
|
|
129
|
-
* here, while closed properties keep using their checked keyword/builder sets.
|
|
130
|
-
*/
|
|
131
|
-
export declare const LOOK_PROPERTY_CSS_FUNCTIONS: ReadonlyMap<string, readonly LookCssFunctionSuggestion[]>;
|
|
132
|
-
/**
|
|
133
|
-
* D60 rule 150: `transitionProperty` published a name no author could reach —
|
|
134
|
-
* its only accepted values were the generic defaults, so no property name was
|
|
135
|
-
* writable. The vocabulary is derived from the Look property table rather than
|
|
136
|
-
* listed by hand (D57 rule 134): every animatable Look property, spelled the
|
|
137
|
-
* way CSS spells it, plus the two aggregate keywords. A property that does not
|
|
138
|
-
* participate in interpolation is excluded for the same reason `keyframes:`
|
|
139
|
-
* rejects it.
|
|
140
|
-
*
|
|
141
|
-
* The set is published because the longhand is not its only reader: charter
|
|
142
|
-
* section 3549 says the `transition(property, ...)` builder takes the same
|
|
143
|
-
* vocabulary, so the analyzer's literal-argument check and the builder's own
|
|
144
|
-
* runtime guard read this table rather than restating it.
|
|
145
|
-
*/
|
|
146
|
-
export declare const LOOK_TRANSITION_PROPERTY_KEYWORDS: ReadonlySet<string>;
|
|
147
|
-
export declare const LOOK_PROPERTY_KEYWORDS: ReadonlyMap<string, ReadonlySet<string>>;
|
|
148
|
-
/**
|
|
149
|
-
* D73 rule 187 — every kind whose string values are decided per property. D65
|
|
150
|
-
* rule 168 drew this line at `kind === "keyword"`, which was that wave's
|
|
151
|
-
* boundary rather than the principle: the principle is that publishing a
|
|
152
|
-
* surface which cannot be reached, or which swallows a false value, is worse
|
|
153
|
-
* than not publishing it (D50 rule 92), and that principle does not know about
|
|
154
|
-
* kinds. `metric` is absent because it answers with the sizing words when it
|
|
155
|
-
* has no table of its own, and `color`, `background` and `image` are absent
|
|
156
|
-
* because their diagnostics name a real vocabulary — a color keyword, a builder
|
|
157
|
-
* — rather than a table. `text`, `filter`, `transform` and `animation` accept
|
|
158
|
-
* arbitrary text by construction.
|
|
159
|
-
*/
|
|
160
|
-
export declare const LOOK_KEYWORD_DECIDED_KINDS: ReadonlySet<LookPropertyValueKind>;
|
|
161
|
-
/** A property's own closed values, without the CSS-wide keywords every property shares. */
|
|
162
|
-
export declare function lookOwnKeywords(property: string): readonly string[];
|
|
163
|
-
/** Closed, directly writable string values worth offering for one Look property. */
|
|
164
|
-
export declare function lookPropertyCompletionKeywords(property: string): readonly string[];
|
|
165
|
-
/** Whether a velar/look builder's result can be assigned directly to a property. */
|
|
166
|
-
export declare function lookBuilderSupportsProperty(builder: string, property: string): boolean;
|
|
167
|
-
/**
|
|
168
|
-
* D67 rule 174 — how many of a property's own values a diagnostic writes out
|
|
169
|
-
* before it names the shape of the set instead.
|
|
2
|
+
* The Web visual vocabulary's front door. `look.ts` was one 1,041-line module of
|
|
3
|
+
* pure tables; D115 P4 R3e split it into `look/` by the question each part
|
|
4
|
+
* answers, and this facade re-exports every one of the 55 names it published, so
|
|
5
|
+
* no import path in the repository changed.
|
|
170
6
|
*
|
|
171
|
-
*
|
|
172
|
-
* into two clumps with nothing between them, the largest single-grammar set
|
|
173
|
-
* holding twenty-two values and the next set up holding thirty-five. Anything
|
|
174
|
-
* in that gap draws the same line. What matters is that a set on the far side
|
|
175
|
-
* of it still says something an author can act on, which is what
|
|
176
|
-
* LOOK_LARGE_KEYWORD_SETS below is for.
|
|
177
|
-
*/
|
|
178
|
-
export declare const LOOK_KEYWORD_LISTING_LIMIT = 24;
|
|
179
|
-
/**
|
|
180
|
-
* What a vocabulary too long to write out holds, in the terms the author would
|
|
181
|
-
* look it up by. A diagnostic reads this when the value it rejected is not a
|
|
182
|
-
* near miss of anything, so that "one of the closed keywords" is never the
|
|
183
|
-
* whole of the answer (D67 rule 174).
|
|
184
|
-
*/
|
|
185
|
-
export declare const LOOK_LARGE_KEYWORD_SETS: ReadonlyMap<string, string>;
|
|
186
|
-
/**
|
|
187
|
-
* D65 rule 169 — what a partly closable property leaves out, and why.
|
|
7
|
+
* Where to look:
|
|
188
8
|
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
export
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
export
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
} | null;
|
|
217
|
-
/**
|
|
218
|
-
* What a refusal offers instead of the pair: the shorthand's own longhands, so
|
|
219
|
-
* the author can write the one they meant to override beside its siblings. The
|
|
220
|
-
* list is the direct level rather than the closure — `border` answers with
|
|
221
|
-
* borderWidth, borderStyle and borderColor rather than with all twelve side
|
|
222
|
-
* parts, because that is the level a reader replaces it at.
|
|
223
|
-
*/
|
|
224
|
-
export declare function lookShorthandParts(shorthand: string): readonly string[];
|
|
225
|
-
/**
|
|
226
|
-
* The closest vocabulary entry to a misspelling, or null when nothing is close
|
|
227
|
-
* enough to name. Case differences and one or two edits count as near misses;
|
|
228
|
-
* anything further apart is a different word and gets the full vocabulary.
|
|
229
|
-
*/
|
|
230
|
-
export declare function nearestLookName(name: string, vocabulary: Iterable<string>): string | null;
|
|
9
|
+
* - `look/units.ts` the unit suffixes and the type names they carry
|
|
10
|
+
* - `look/media.ts` media subjects, `@hook` states, `@target` targets
|
|
11
|
+
* - `look/builders.ts` every `velar/look` builder's call shape and numeric domain
|
|
12
|
+
* - `look/tokens.ts` checked design-token references (D103)
|
|
13
|
+
* - `look/animation.ts` easings, directions, fills, what cannot interpolate
|
|
14
|
+
* - `look/properties.ts` the published property roster and each one's value kind
|
|
15
|
+
* - `look/keyword-sets.ts` the shared pieces the keyword table is assembled from
|
|
16
|
+
* - `look/css-functions.ts` free-text CSS functions, and the transition vocabulary
|
|
17
|
+
* - `look/keywords.ts` each property's closed set, and what the closure leaves open
|
|
18
|
+
* - `look/shorthands.ts` which properties write the same CSS declaration
|
|
19
|
+
* - `look/naming.ts` the CSS spelling of a Look name, and nearest-name search
|
|
20
|
+
*/
|
|
21
|
+
export { LOOK_ARITHMETIC_HINT, LOOK_NUMERIC_TYPE_NAMES, LOOK_PUBLIC_TYPE_NAMES, LOOK_UNITLESS_PROPERTIES, LOOK_UNIT_TYPES } from "./look/units.ts";
|
|
22
|
+
export type { LookUnitTypeName } from "./look/units.ts";
|
|
23
|
+
export { LOOK_ABSENT_MEDIA_SUBJECTS, LOOK_HOOKS, LOOK_MEDIA_LENGTH_UNITS, LOOK_MEDIA_SUBJECTS, LOOK_TARGETS } from "./look/media.ts";
|
|
24
|
+
export { LOOK_BORDER_STYLE_NAMES, LOOK_BUILDERS, LOOK_BUILDER_NUMERIC_RANGES, LOOK_BUILDER_SIGNATURES, LOOK_LENGTH_BUILDERS } from "./look/builders.ts";
|
|
25
|
+
export type { LookBuilderResultKind, LookBuilderSignature } from "./look/builders.ts";
|
|
26
|
+
export { LOOK_TOKEN_NAME_PATTERN, LOOK_TOKEN_NAME_RULE, LOOK_TOKEN_NO_FALLBACK_GUIDANCE, isLookTokenName, isLookVarReference, lookTokenReference, lookVarReferenceName } from "./look/tokens.ts";
|
|
27
|
+
export { LOOK_ANIMATION_DIRECTIONS, LOOK_ANIMATION_EASINGS, LOOK_ANIMATION_FILLS, LOOK_NON_ANIMATABLE_PROPERTIES } from "./look/animation.ts";
|
|
28
|
+
export { LOOK_PROPERTIES, LOOK_PROPERTY_GROUPS, LOOK_PROPERTY_VALUE_KINDS, lookPropertyDocumentationKey } from "./look/properties.ts";
|
|
29
|
+
export type { LookPropertyGroup, LookPropertyValueKind } from "./look/properties.ts";
|
|
30
|
+
export { LOOK_COLOR_KEYWORDS, LOOK_CSS_WIDE_KEYWORDS, LOOK_SHARED_METRIC_KEYWORDS } from "./look/keyword-sets.ts";
|
|
31
|
+
export { LOOK_PROPERTY_CSS_FUNCTIONS, LOOK_TRANSITION_PROPERTY_KEYWORDS } from "./look/css-functions.ts";
|
|
32
|
+
export type { LookCssFunctionSuggestion } from "./look/css-functions.ts";
|
|
33
|
+
export { LOOK_EXCLUDED_PROPERTIES, LOOK_KEYWORD_DECIDED_KINDS, LOOK_KEYWORD_LISTING_LIMIT, LOOK_LARGE_KEYWORD_SETS, LOOK_PARTIAL_KEYWORD_PROPERTIES, LOOK_PROPERTY_KEYWORDS, lookBuilderSupportsProperty, lookOwnKeywords, lookPropertyCompletionKeywords } from "./look/keywords.ts";
|
|
34
|
+
export { LOOK_SHORTHAND_LONGHANDS, lookShorthandOverlap, lookShorthandParts } from "./look/shorthands.ts";
|
|
35
|
+
export { cssPropertyName, nearestLookName } from "./look/naming.ts";
|
|
231
36
|
//# sourceMappingURL=look.d.ts.map
|
package/dist/look.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"look.d.ts","sourceRoot":"","sources":["../src/look.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"look.d.ts","sourceRoot":"","sources":["../src/look.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACnJ,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,0BAA0B,EAAE,UAAU,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACrI,OAAO,EAAE,uBAAuB,EAAE,aAAa,EAAE,2BAA2B,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AACxJ,YAAY,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AACtF,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,+BAA+B,EAAE,eAAe,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACjM,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,MAAM,qBAAqB,CAAC;AAC9I,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AACtI,YAAY,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AACrF,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAClH,OAAO,EAAE,2BAA2B,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAC;AACzG,YAAY,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,+BAA+B,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,eAAe,EAAE,8BAA8B,EAAE,MAAM,oBAAoB,CAAC;AACtR,OAAO,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1G,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC"}
|