jssm 5.158.2 → 5.159.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 +7 -7
- package/dist/cdn/instance.js +1 -1
- package/dist/cdn/viz.js +1 -1
- package/dist/cli/fsl-export-system-prompt.cjs +1 -1
- package/dist/cli/fsl-render.cjs +1 -1
- package/dist/cli/fsl.cjs +1 -1
- package/dist/cli/lib.cjs +1 -1
- package/dist/cli/lib.mjs +1 -1
- package/dist/deno/README.md +7 -7
- package/dist/deno/jssm.js +1 -1
- package/dist/fence/fence.js +156 -61
- package/dist/jssm.es5.cjs +1 -1
- package/dist/jssm.es5.iife.js +1 -1
- package/dist/jssm.es6.mjs +1 -1
- package/dist/jssm_viz.cjs +1 -1
- package/dist/jssm_viz.iife.cjs +1 -1
- package/dist/jssm_viz.mjs +1 -1
- package/jssm.es5.d.cts +11 -1
- package/jssm.es6.d.ts +11 -1
- package/package.json +1 -1
package/jssm.es5.d.cts
CHANGED
|
@@ -1920,11 +1920,21 @@ declare function fslCompletions(text: string, offset: number): CompletionItem[];
|
|
|
1920
1920
|
*/
|
|
1921
1921
|
|
|
1922
1922
|
/**
|
|
1923
|
-
* Collect color / state / shape-enum semantic spans from `text`.
|
|
1923
|
+
* Collect color / state / shape-enum semantic spans from `text`. State spans
|
|
1924
|
+
* cover transition endpoints, state-declaration subjects, group-list members
|
|
1925
|
+
* (`&G : [a b c];` — but not the group's own name, nor `&`/`...&` nested
|
|
1926
|
+
* group references), and plain-label hook subjects (`on enter x do 'act';` —
|
|
1927
|
+
* but not `&group` subjects). Every state span's `value` is the parser's
|
|
1928
|
+
* resolved name (unquoted, unescaped), while `from`/`to` cover the source
|
|
1929
|
+
* spelling including any quotes.
|
|
1924
1930
|
*
|
|
1925
1931
|
* @example
|
|
1926
1932
|
* fslSemanticSpans('state s : { color: crimson; };')
|
|
1927
1933
|
* .find(s => s.kind === 'color')?.value; // => '#dc143cff'
|
|
1934
|
+
*
|
|
1935
|
+
* @example
|
|
1936
|
+
* fslSemanticSpans('&G : [a b];\na -> b;')
|
|
1937
|
+
* .filter(s => s.kind === 'state').length; // => 4 (two members + two endpoints)
|
|
1928
1938
|
*/
|
|
1929
1939
|
declare function fslSemanticSpans(text: string): SemanticSpan[];
|
|
1930
1940
|
|
package/jssm.es6.d.ts
CHANGED
|
@@ -1920,11 +1920,21 @@ declare function fslCompletions(text: string, offset: number): CompletionItem[];
|
|
|
1920
1920
|
*/
|
|
1921
1921
|
|
|
1922
1922
|
/**
|
|
1923
|
-
* Collect color / state / shape-enum semantic spans from `text`.
|
|
1923
|
+
* Collect color / state / shape-enum semantic spans from `text`. State spans
|
|
1924
|
+
* cover transition endpoints, state-declaration subjects, group-list members
|
|
1925
|
+
* (`&G : [a b c];` — but not the group's own name, nor `&`/`...&` nested
|
|
1926
|
+
* group references), and plain-label hook subjects (`on enter x do 'act';` —
|
|
1927
|
+
* but not `&group` subjects). Every state span's `value` is the parser's
|
|
1928
|
+
* resolved name (unquoted, unescaped), while `from`/`to` cover the source
|
|
1929
|
+
* spelling including any quotes.
|
|
1924
1930
|
*
|
|
1925
1931
|
* @example
|
|
1926
1932
|
* fslSemanticSpans('state s : { color: crimson; };')
|
|
1927
1933
|
* .find(s => s.kind === 'color')?.value; // => '#dc143cff'
|
|
1934
|
+
*
|
|
1935
|
+
* @example
|
|
1936
|
+
* fslSemanticSpans('&G : [a b];\na -> b;')
|
|
1937
|
+
* .filter(s => s.kind === 'state').length; // => 4 (two members + two endpoints)
|
|
1928
1938
|
*/
|
|
1929
1939
|
declare function fslSemanticSpans(text: string): SemanticSpan[];
|
|
1930
1940
|
|