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/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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jssm",
3
- "version": "5.158.2",
3
+ "version": "5.159.0",
4
4
  "engines": {
5
5
  "node": ">=10.0.0"
6
6
  },