@stacksjs/stx-vscode 0.2.545 → 0.2.547

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.
@@ -206,7 +206,7 @@
206
206
  ]
207
207
  },
208
208
  {
209
- "begin": "(?x)(?<![A-Za-z0-9_@]) (@ (?i:\n animationGroup\n |auth\n |break\n |can\n |canany\n |cannot\n |case\n |checked\n |choice\n |component\n |continue\n |css\n |csrf\n |dd\n |disabled\n |dump\n |each\n |elsecan\n |elsecanany\n |elsecannot\n |elseif\n |empty\n |env\n |error\n |extends\n |for\n |foreach\n |forelse\n |guest\n |hassection\n |if\n |include\n |includefirst\n |includeif\n |includeunless\n |includewhen\n |inject\n |isset\n |js\n |json\n |lang\n |locale\n |method\n |motion\n |once\n |prepend\n |prependOnce\n |props\n |push\n |pushIf\n |pushOnce\n |readonly\n |required\n |scrollAnimate\n |section\n |sectionMissing\n |selected\n |slot\n |stack\n |style\n |switch\n |t\n |translate\n |transition\n |unless\n |unset\n |use\n |webcomponent\n |while\n |yield\n )[\\t ]*\n)(\\() # Followed by opening parentheses\n",
209
+ "begin": "(?x)(?<![A-Za-z0-9_@]) (@ (?i:\n animationGroup\n |async\n |auth\n |break\n |can\n |canany\n |cannot\n |case\n |checked\n |choice\n |client:(?:load|idle|visible|media|only|hover|event)\n |component\n |computed\n |continue\n |csp\n |cspNonce\n |css\n |csrf\n |dd\n |defer\n |disabled\n |dump\n |each\n |elsecan\n |elsecanany\n |elsecannot\n |elseif\n |empty\n |env\n |error\n |errorBoundary\n |extends\n |for\n |foreach\n |forelse\n |guest\n |hasErrors\n |hassection\n |head\n |if\n |include\n |includefirst\n |includeif\n |includeunless\n |includewhen\n |infiniteList\n |inject\n |isset\n |js\n |json\n |keepAlive\n |lang\n |locale\n |memo\n |meta\n |metaTag\n |method\n |motion\n |once\n |prepend\n |prependOnce\n |props\n |push\n |pushIf\n |pushOnce\n |readonly\n |required\n |scrollAnimate\n |section\n |sectionMissing\n |selected\n |seo\n |slot\n |stack\n |stream\n |structuredData\n |style\n |suspense\n |switch\n |t\n |teleport\n |title\n |translate\n |transition\n |unless\n |unset\n |use\n |virtualGrid\n |virtualList\n |watch\n |webcomponent\n |while\n |yield\n )[\\t ]*\n)(\\() # Followed by opening parentheses\n",
210
210
  "beginCaptures": {
211
211
  "1": {
212
212
  "name": "keyword.stx"
@@ -233,6 +233,10 @@
233
233
  "match": "(?x)(?<![A-Za-z0-9_@]) @(?: append\n |break\n |continue\n |default\n |each\n |else\n |overwrite\n |parent\n |sectionMissing\n |show\n |stack\n |stop\n)\\b\n",
234
234
  "name": "keyword.stx"
235
235
  },
236
+ {
237
+ "match": "(?<![A-Za-z0-9_@])@(?i:client:(?:load|idle|visible|media|only|hover|event)|endclient)\\b",
238
+ "name": "keyword.control.directive.stx"
239
+ },
236
240
  {
237
241
  "begin": "(?<![A-Za-z0-9_@])@(?i:ts)\\b",
238
242
  "beginCaptures": {
@@ -255,7 +259,7 @@
255
259
  "name": "meta.embedded.block.ts"
256
260
  },
257
261
  {
258
- "match": "(?x)(?<![A-Za-z0-9_@]) @(end)? (?i: auth\n |can\n |canany\n |cannot\n |component\n |css\n |empty\n |env\n |error\n |for\n |foreach\n |forelse\n |guest\n |if\n |isset\n |js\n |lang\n |markdown\n |motion\n |once\n |prepend\n |prependOnce\n |push\n |pushIf\n |pushOnce\n |raw\n |script\n |scrollAnimate\n |section\n |session\n |slot\n |switch\n |transition\n |unless\n |verbatim\n |webcomponent\n |while\n)\\b\n",
262
+ "match": "(?x)(?<![A-Za-z0-9_@]) @(end)? (?i: async\n |auth\n |can\n |canany\n |cannot\n |component\n |css\n |defer\n |empty\n |env\n |error\n |errorBoundary\n |errors\n |for\n |foreach\n |forelse\n |guest\n |hasErrors\n |head\n |if\n |infiniteList\n |isset\n |js\n |keepAlive\n |lang\n |markdown\n |memo\n |motion\n |once\n |prepend\n |prependOnce\n |push\n |pushIf\n |pushOnce\n |raw\n |script\n |scrollAnimate\n |section\n |session\n |slot\n |static\n |stream\n |suspense\n |switch\n |teleport\n |transition\n |unless\n |verbatim\n |virtualGrid\n |virtualList\n |watch\n |webcomponent\n |while\n)\\b\n",
259
263
  "name": "keyword.stx"
260
264
  },
261
265
  {
@@ -44,6 +44,11 @@
44
44
  "command": "stx.reloadUtilityClasses",
45
45
  "title": "Reload Utility Class Configuration",
46
46
  "category": "stx"
47
+ },
48
+ {
49
+ "command": "stx.extractToComponent",
50
+ "title": "Extract to Component",
51
+ "category": "stx"
47
52
  }
48
53
  ],
49
54
  "configuration": {
@@ -74,6 +79,11 @@
74
79
  "default": true,
75
80
  "description": "Validate that template paths in @include and @component directives exist"
76
81
  },
82
+ "stx.diagnostics.validateComponentProps": {
83
+ "type": "boolean",
84
+ "default": true,
85
+ "description": "Validate required and unknown props passed through @component directives"
86
+ },
77
87
  "stx.completion.enable": {
78
88
  "type": "boolean",
79
89
  "default": true,