king-design-analyzer 2.1.9 → 2.2.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.
Files changed (305) hide show
  1. package/components/actions.json +101 -0
  2. package/components/advancedset.json +127 -0
  3. package/components/affix.json +7 -0
  4. package/components/aksk.json +172 -0
  5. package/components/az.json +15 -2
  6. package/components/badge.json +7 -0
  7. package/components/billtypes.json +14 -2
  8. package/components/breadcrumb.json +7 -0
  9. package/components/button.json +191 -0
  10. package/components/buttonlink.json +73 -0
  11. package/components/card.json +8 -1
  12. package/components/cardcol.json +142 -0
  13. package/components/cardcols.json +121 -0
  14. package/components/cardcontent.json +15 -3
  15. package/components/cardtabs.json +172 -0
  16. package/components/carousel.json +7 -0
  17. package/components/cascader.json +520 -368
  18. package/components/checkbox.json +51 -4
  19. package/components/cidrinput.json +140 -0
  20. package/components/code.json +8 -1
  21. package/components/collapse.json +7 -0
  22. package/components/colorpicker.json +217 -0
  23. package/components/copy.json +7 -0
  24. package/components/copyhover.json +111 -0
  25. package/components/copyrow.json +124 -0
  26. package/components/datepicker.json +656 -524
  27. package/components/description.json +98 -0
  28. package/components/dialog.json +522 -455
  29. package/components/divider.json +8 -1
  30. package/components/drawer.json +571 -558
  31. package/components/dropdown.json +464 -384
  32. package/components/duration.json +125 -0
  33. package/components/editable.json +66 -0
  34. package/components/ellipsis.json +34 -1
  35. package/components/filtertablefieldsdialog.json +128 -0
  36. package/components/flex.json +151 -0
  37. package/components/form.json +131 -0
  38. package/components/formiteminput.json +214 -0
  39. package/components/formitemspinner.json +213 -0
  40. package/components/formitemswitch.json +185 -0
  41. package/components/formitemtableconfigs.json +210 -0
  42. package/components/grid.json +7 -0
  43. package/components/header.json +161 -0
  44. package/components/icon.json +13 -1
  45. package/components/icontooltip.json +19 -1
  46. package/components/input.json +188 -4
  47. package/components/instancelist.json +194 -0
  48. package/components/instancenum.json +196 -0
  49. package/components/ipinput.json +117 -0
  50. package/components/kspstatus.json +205 -0
  51. package/components/kvcode.json +120 -0
  52. package/components/layoutcontent.json +15 -3
  53. package/components/layoutlistcontent.json +148 -0
  54. package/components/layoutpermissioncontent.json +155 -0
  55. package/components/layoutstandardlist.json +275 -0
  56. package/components/layouttabs.json +168 -0
  57. package/components/lazymount.json +86 -0
  58. package/components/lazyteleport.json +118 -0
  59. package/components/menu.json +7 -0
  60. package/components/pagination.json +12 -0
  61. package/components/paginationplus.json +30 -3
  62. package/components/password.json +121 -0
  63. package/components/popover.json +457 -437
  64. package/components/projects.json +129 -0
  65. package/components/protable.json +97 -8
  66. package/components/queuevisualrange.json +110 -0
  67. package/components/radio.json +82 -2
  68. package/components/rate.json +199 -0
  69. package/components/region.json +14 -2
  70. package/components/search.json +221 -0
  71. package/components/searchinput.json +132 -0
  72. package/components/searchitems.json +215 -0
  73. package/components/searchselect.json +195 -0
  74. package/components/select.json +686 -666
  75. package/components/sidebar.json +198 -0
  76. package/components/skeleton.json +233 -0
  77. package/components/spin.json +8 -1
  78. package/components/split.json +260 -0
  79. package/components/sshkeys.json +138 -0
  80. package/components/status.json +60 -3
  81. package/components/steps.json +7 -0
  82. package/components/switch.json +8 -1
  83. package/components/table.json +18 -1
  84. package/components/tablecolumnid.json +14 -2
  85. package/components/tabs.json +12 -0
  86. package/components/timeline.json +213 -0
  87. package/components/timepicker.json +147 -3
  88. package/components/timerange.json +262 -0
  89. package/components/tip.json +7 -0
  90. package/components/tooltip.json +484 -395
  91. package/components/tour.json +418 -372
  92. package/components/transfer.json +27 -3
  93. package/components/tree.json +6 -4
  94. package/components/treeselect.json +556 -475
  95. package/components/upload.json +474 -473
  96. package/components/vdialog.json +308 -0
  97. package/components/vdrawer.json +331 -0
  98. package/components/virtuallist.json +7 -0
  99. package/dist/ast/index.d.mts +35 -1
  100. package/dist/ast/index.d.ts +35 -1
  101. package/dist/ast/index.js +4 -3
  102. package/dist/ast/index.mjs +2 -1
  103. package/dist/{chunk-DSWKLUIX.mjs → chunk-3LYQ5XFM.mjs} +1 -1
  104. package/dist/chunk-BI5TIQID.mjs +330 -0
  105. package/dist/{chunk-F26GUCGG.js → chunk-CJGGFVQJ.js} +8 -8
  106. package/dist/chunk-CR3GC4H3.js +353 -0
  107. package/dist/{chunk-NZ6TLWMD.mjs → chunk-D2SXGGTX.mjs} +28 -17
  108. package/dist/{chunk-D3Y6FGWA.js → chunk-EYKZY2F3.js} +29 -18
  109. package/dist/chunk-KF5YBEM5.js +143 -0
  110. package/dist/{chunk-H2ET6MMM.mjs → chunk-KMIDURUR.mjs} +42 -47
  111. package/dist/chunk-QC6VTSA3.mjs +117 -0
  112. package/dist/{chunk-2W6OCG2S.js → chunk-SZYVGYKK.js} +42 -48
  113. package/dist/{chunk-WYSRJVX4.js → chunk-TA3SV4SP.js} +2 -2
  114. package/dist/{chunk-OJOHB64C.mjs → chunk-XGPHQHLR.mjs} +4 -4
  115. package/dist/full/index.js +7 -6
  116. package/dist/full/index.mjs +5 -4
  117. package/dist/index.d.mts +1 -0
  118. package/dist/index.d.ts +1 -0
  119. package/dist/index.js +14 -13
  120. package/dist/index.mjs +6 -5
  121. package/dist/metadata/index.d.mts +22 -2
  122. package/dist/metadata/index.d.ts +22 -2
  123. package/dist/metadata/index.js +26 -16
  124. package/dist/metadata/index.mjs +26 -15
  125. package/dist/resolve-BsLBxlBi.d.mts +24 -0
  126. package/dist/resolve-BsLBxlBi.d.ts +24 -0
  127. package/dist/runtime/index.js +4 -4
  128. package/dist/runtime/index.mjs +2 -2
  129. package/dist/shared/index.d.mts +10 -0
  130. package/dist/shared/index.d.ts +10 -0
  131. package/dist/shared/index.js +23 -0
  132. package/dist/shared/index.mjs +2 -0
  133. package/dist/static/index.js +5 -5
  134. package/dist/static/index.mjs +2 -2
  135. package/docs_for_llm/actions.doc.md +77 -0
  136. package/docs_for_llm/advancedset.doc.md +89 -0
  137. package/docs_for_llm/affix.doc.md +15 -7
  138. package/docs_for_llm/aksk.doc.md +111 -0
  139. package/docs_for_llm/az.doc.md +17 -11
  140. package/docs_for_llm/badge.doc.md +6 -5
  141. package/docs_for_llm/billtypes.doc.md +17 -11
  142. package/docs_for_llm/breadcrumb.doc.md +6 -3
  143. package/docs_for_llm/button.doc.md +34 -18
  144. package/docs_for_llm/buttonlink.doc.md +55 -0
  145. package/docs_for_llm/card.doc.md +8 -5
  146. package/docs_for_llm/cardcol.doc.md +78 -0
  147. package/docs_for_llm/cardcols.doc.md +84 -0
  148. package/docs_for_llm/cardcontent.doc.md +10 -10
  149. package/docs_for_llm/cardtabs.doc.md +106 -0
  150. package/docs_for_llm/carousel.doc.md +8 -7
  151. package/docs_for_llm/cascader.doc.md +46 -25
  152. package/docs_for_llm/checkbox.doc.md +25 -13
  153. package/docs_for_llm/cidrinput.doc.md +83 -0
  154. package/docs_for_llm/code.doc.md +22 -11
  155. package/docs_for_llm/collapse.doc.md +9 -6
  156. package/docs_for_llm/colorpicker.doc.md +104 -0
  157. package/docs_for_llm/copy.doc.md +15 -13
  158. package/docs_for_llm/copyhover.doc.md +59 -0
  159. package/docs_for_llm/copyrow.doc.md +71 -0
  160. package/docs_for_llm/datepicker.doc.md +51 -39
  161. package/docs_for_llm/description.doc.md +75 -0
  162. package/docs_for_llm/descriptions.doc.md +9 -6
  163. package/docs_for_llm/dialog.doc.md +48 -77
  164. package/docs_for_llm/divider.doc.md +9 -7
  165. package/docs_for_llm/drawer.doc.md +43 -84
  166. package/docs_for_llm/dropdown.doc.md +52 -21
  167. package/docs_for_llm/duration.doc.md +76 -0
  168. package/docs_for_llm/editable.doc.md +36 -14
  169. package/docs_for_llm/ellipsis.doc.md +10 -5
  170. package/docs_for_llm/filtertablefieldsdialog.doc.md +99 -0
  171. package/docs_for_llm/flex.doc.md +74 -0
  172. package/docs_for_llm/form.doc.md +33 -14
  173. package/docs_for_llm/formiteminput.doc.md +128 -0
  174. package/docs_for_llm/formitemspinner.doc.md +105 -0
  175. package/docs_for_llm/formitemswitch.doc.md +113 -0
  176. package/docs_for_llm/formitemtableconfigs.doc.md +95 -0
  177. package/docs_for_llm/grid.doc.md +7 -5
  178. package/docs_for_llm/header.doc.md +85 -0
  179. package/docs_for_llm/icon.doc.md +12 -8
  180. package/docs_for_llm/icontooltip.doc.md +121 -0
  181. package/docs_for_llm/input.doc.md +90 -39
  182. package/docs_for_llm/instancelist.doc.md +113 -0
  183. package/docs_for_llm/instancenum.doc.md +95 -0
  184. package/docs_for_llm/ipinput.doc.md +77 -0
  185. package/docs_for_llm/kspstatus.doc.md +82 -0
  186. package/docs_for_llm/kvcode.doc.md +76 -0
  187. package/docs_for_llm/layoutcontent.doc.md +17 -17
  188. package/docs_for_llm/layoutlistcontent.doc.md +95 -0
  189. package/docs_for_llm/layoutpermissioncontent.doc.md +84 -0
  190. package/docs_for_llm/layoutstandardlist.doc.md +120 -0
  191. package/docs_for_llm/layouttabs.doc.md +101 -0
  192. package/docs_for_llm/lazymount.doc.md +73 -0
  193. package/docs_for_llm/lazyteleport.doc.md +76 -0
  194. package/docs_for_llm/menu.doc.md +14 -11
  195. package/docs_for_llm/message.doc.md +48 -10
  196. package/docs_for_llm/pagination.doc.md +30 -17
  197. package/docs_for_llm/paginationplus.doc.md +31 -10
  198. package/docs_for_llm/password.doc.md +86 -0
  199. package/docs_for_llm/popover.doc.md +24 -55
  200. package/docs_for_llm/progress.doc.md +13 -10
  201. package/docs_for_llm/projects.doc.md +91 -0
  202. package/docs_for_llm/protable.doc.md +89 -15
  203. package/docs_for_llm/queuevisualrange.doc.md +78 -0
  204. package/docs_for_llm/radio.doc.md +23 -8
  205. package/docs_for_llm/rate.doc.md +122 -0
  206. package/docs_for_llm/region.doc.md +25 -13
  207. package/docs_for_llm/search.doc.md +120 -0
  208. package/docs_for_llm/searchinput.doc.md +111 -0
  209. package/docs_for_llm/searchitems.doc.md +116 -0
  210. package/docs_for_llm/searchselect.doc.md +126 -0
  211. package/docs_for_llm/select.doc.md +40 -55
  212. package/docs_for_llm/sidebar.doc.md +133 -0
  213. package/docs_for_llm/skeleton.doc.md +117 -0
  214. package/docs_for_llm/slider.doc.md +31 -21
  215. package/docs_for_llm/spin.doc.md +8 -5
  216. package/docs_for_llm/spinner.doc.md +28 -18
  217. package/docs_for_llm/split.doc.md +157 -0
  218. package/docs_for_llm/sshkeys.doc.md +88 -0
  219. package/docs_for_llm/status.doc.md +14 -9
  220. package/docs_for_llm/steps.doc.md +10 -7
  221. package/docs_for_llm/switch.doc.md +17 -14
  222. package/docs_for_llm/table.doc.md +118 -51
  223. package/docs_for_llm/tablecolumnid.doc.md +36 -16
  224. package/docs_for_llm/tabs.doc.md +19 -10
  225. package/docs_for_llm/tag.doc.md +19 -10
  226. package/docs_for_llm/timeline.doc.md +109 -0
  227. package/docs_for_llm/timepicker.doc.md +57 -38
  228. package/docs_for_llm/timerange.doc.md +157 -0
  229. package/docs_for_llm/tip.doc.md +20 -11
  230. package/docs_for_llm/tooltip.doc.md +55 -29
  231. package/docs_for_llm/tour.doc.md +48 -29
  232. package/docs_for_llm/transfer.doc.md +40 -29
  233. package/docs_for_llm/tree.doc.md +65 -23
  234. package/docs_for_llm/treeselect.doc.md +37 -48
  235. package/docs_for_llm/upload.doc.md +56 -32
  236. package/docs_for_llm/useCRUD.doc.md +49 -0
  237. package/docs_for_llm/useCountdown.doc.md +43 -0
  238. package/docs_for_llm/useDetail.doc.md +48 -0
  239. package/docs_for_llm/useDialog.doc.md +46 -0
  240. package/docs_for_llm/useEntity.doc.md +45 -0
  241. package/docs_for_llm/useEventListener.doc.md +44 -0
  242. package/docs_for_llm/useFalseUntilTruthy.doc.md +41 -0
  243. package/docs_for_llm/useGetCopyAuthText.doc.md +35 -0
  244. package/docs_for_llm/useGetUserPermission.doc.md +43 -0
  245. package/docs_for_llm/useGroup.doc.md +48 -0
  246. package/docs_for_llm/useIdEntities.doc.md +48 -0
  247. package/docs_for_llm/useIdEntity.doc.md +103 -0
  248. package/docs_for_llm/useInterval.doc.md +43 -0
  249. package/docs_for_llm/useLayoutStandardList.doc.md +38 -0
  250. package/docs_for_llm/useMessage.doc.md +46 -0
  251. package/docs_for_llm/useModifyCache.doc.md +37 -0
  252. package/docs_for_llm/useOpenDialog.doc.md +41 -0
  253. package/docs_for_llm/usePagination.doc.md +60 -0
  254. package/docs_for_llm/usePersist.doc.md +54 -0
  255. package/docs_for_llm/usePoll.doc.md +41 -0
  256. package/docs_for_llm/useRoutePlus.doc.md +34 -0
  257. package/docs_for_llm/useRouterPlus.doc.md +34 -0
  258. package/docs_for_llm/useSearch.doc.md +68 -0
  259. package/docs_for_llm/useShell.doc.md +43 -0
  260. package/docs_for_llm/useSkip.doc.md +41 -0
  261. package/docs_for_llm/useStorageIdEntity.doc.md +46 -0
  262. package/docs_for_llm/useStore.doc.md +34 -0
  263. package/docs_for_llm/useTable.doc.md +57 -0
  264. package/docs_for_llm/useTableGroup.doc.md +47 -0
  265. package/docs_for_llm/useTableSort.doc.md +40 -0
  266. package/docs_for_llm/useToState.doc.md +112 -0
  267. package/docs_for_llm/useUser.doc.md +38 -0
  268. package/docs_for_llm/useValidForm.doc.md +41 -0
  269. package/docs_for_llm/vdialog.doc.md +129 -0
  270. package/docs_for_llm/vdrawer.doc.md +119 -0
  271. package/docs_for_llm/virtuallist.doc.md +6 -3
  272. package/hooks/useCRUD.json +61 -0
  273. package/hooks/useCountdown.json +49 -0
  274. package/hooks/useDetail.json +67 -0
  275. package/hooks/useDialog.json +49 -0
  276. package/hooks/useEntity.json +61 -0
  277. package/hooks/useEventListener.json +61 -0
  278. package/hooks/useFalseUntilTruthy.json +43 -0
  279. package/hooks/useGetCopyAuthText.json +36 -0
  280. package/hooks/useGetUserPermission.json +55 -0
  281. package/hooks/useGroup.json +49 -0
  282. package/hooks/useIdEntities.json +61 -0
  283. package/hooks/useInterval.json +55 -0
  284. package/hooks/useLayoutStandardList.json +36 -0
  285. package/hooks/useMessage.json +73 -0
  286. package/hooks/useModifyCache.json +36 -0
  287. package/hooks/useOpenDialog.json +43 -0
  288. package/hooks/usePagination.json +49 -0
  289. package/hooks/usePersist.json +61 -0
  290. package/hooks/usePoll.json +43 -0
  291. package/hooks/useRoutePlus.json +36 -0
  292. package/hooks/useRouterPlus.json +36 -0
  293. package/hooks/useSearch.json +56 -0
  294. package/hooks/useShell.json +49 -0
  295. package/hooks/useSkip.json +43 -0
  296. package/hooks/useStorageIdEntity.json +67 -0
  297. package/hooks/useStore.json +36 -0
  298. package/hooks/useTable.json +49 -0
  299. package/hooks/useTableGroup.json +43 -0
  300. package/hooks/useTableSort.json +43 -0
  301. package/hooks/useUser.json +36 -0
  302. package/hooks/useValidForm.json +43 -0
  303. package/package.json +12 -6
  304. package/dist/chunk-HPAUCD5I.js +0 -156
  305. package/dist/chunk-L4DS3EXI.mjs +0 -133
@@ -1,8 +1,8 @@
1
+ import { resolveMetadataInheritance, resolvePackageResourceDir } from './chunk-QC6VTSA3.mjs';
1
2
  import { __commonJS, __toESM } from './chunk-UJCSKKID.mjs';
2
3
  import * as fs from 'fs/promises';
3
4
  import * as fsSync from 'fs';
4
5
  import * as path from 'path';
5
- import { fileURLToPath } from 'url';
6
6
  import { parse } from '@vue/compiler-sfc';
7
7
  import * as ts from 'typescript';
8
8
 
@@ -32205,14 +32205,8 @@ var require_compiler_core = __commonJS({
32205
32205
  }
32206
32206
  }
32207
32207
  });
32208
- var __filename$1 = fileURLToPath(import.meta.url);
32209
- var __dirname$1 = path.dirname(__filename$1);
32210
32208
  function resolveComponentsPath() {
32211
- const prodPath = path.join(__dirname$1, "../components");
32212
- if (fsSync.existsSync(prodPath)) return prodPath;
32213
- const devPath = path.join(__dirname$1, "../../components");
32214
- if (fsSync.existsSync(devPath)) return devPath;
32215
- return prodPath;
32209
+ return resolvePackageResourceDir("components");
32216
32210
  }
32217
32211
  var ComponentRegistry = class {
32218
32212
  constructor() {
@@ -32222,26 +32216,34 @@ var ComponentRegistry = class {
32222
32216
  // Path to components directory (resolved dynamically for dev/prod compatibility)
32223
32217
  this.metadataPath = resolveComponentsPath();
32224
32218
  }
32225
- async load() {
32226
- if (this.loaded) return;
32227
- await this.reload();
32228
- this.loaded = true;
32229
- this.startWatching();
32219
+ async load(options = {}) {
32220
+ if (!this.loaded) {
32221
+ await this.reload();
32222
+ this.loaded = true;
32223
+ }
32224
+ if (options.watch) {
32225
+ this.startWatching();
32226
+ }
32230
32227
  }
32231
32228
  /**
32232
32229
  * 重新加载所有组件元数据
32233
32230
  */
32234
32231
  async reload() {
32235
32232
  const newComponents = /* @__PURE__ */ new Map();
32233
+ const rawComponents = {};
32236
32234
  try {
32237
32235
  const files = await fs.readdir(this.metadataPath);
32238
32236
  for (const file of files) {
32239
32237
  if (!file.endsWith(".json")) continue;
32240
32238
  const content = await fs.readFile(path.join(this.metadataPath, file), "utf-8");
32241
32239
  const data = JSON.parse(content);
32242
- newComponents.set(data.name, data);
32243
- if (data.subComponents) {
32244
- for (const sub of data.subComponents) {
32240
+ rawComponents[data.name] = data;
32241
+ }
32242
+ for (const data of Object.values(rawComponents)) {
32243
+ const resolvedData = resolveMetadataInheritance(data, rawComponents);
32244
+ newComponents.set(resolvedData.name, resolvedData);
32245
+ if (resolvedData.subComponents) {
32246
+ for (const sub of resolvedData.subComponents) {
32245
32247
  newComponents.set(sub.name, sub);
32246
32248
  }
32247
32249
  }
@@ -32298,14 +32300,8 @@ var componentRegistry = new ComponentRegistry();
32298
32300
 
32299
32301
  // src/analysis/astReviewer.ts
32300
32302
  var import_compiler_core = __toESM(require_compiler_core());
32301
- var __filename2 = fileURLToPath(import.meta.url);
32302
- var __dirname2 = path.dirname(__filename2);
32303
32303
  function resolveHooksPath() {
32304
- const prodPath = path.join(__dirname2, "../hooks");
32305
- if (fsSync.existsSync(prodPath)) return prodPath;
32306
- const devPath = path.join(__dirname2, "../../hooks");
32307
- if (fsSync.existsSync(devPath)) return devPath;
32308
- return prodPath;
32304
+ return resolvePackageResourceDir("hooks");
32309
32305
  }
32310
32306
  var HooksRegistry = class {
32311
32307
  constructor() {
@@ -32314,11 +32310,14 @@ var HooksRegistry = class {
32314
32310
  this.watcher = null;
32315
32311
  this.metadataPath = resolveHooksPath();
32316
32312
  }
32317
- async load() {
32318
- if (this.loaded) return;
32319
- await this.reload();
32320
- this.loaded = true;
32321
- this.startWatching();
32313
+ async load(options = {}) {
32314
+ if (!this.loaded) {
32315
+ await this.reload();
32316
+ this.loaded = true;
32317
+ }
32318
+ if (options.watch) {
32319
+ this.startWatching();
32320
+ }
32322
32321
  }
32323
32322
  /**
32324
32323
  * 重新加载所有 hooks 元数据
@@ -32721,24 +32720,10 @@ var STRICT_CHECK_ATTRIBUTES = /* @__PURE__ */ new Set([
32721
32720
  "checked",
32722
32721
  "selected"
32723
32722
  ]);
32724
- var VERSATILE_COMPONENTS = /* @__PURE__ */ new Set([
32725
- "BillTypes",
32726
- "Region",
32727
- "AZ",
32728
- "LayoutContent",
32729
- "CardContent",
32730
- "ProTable",
32731
- "PaginationPlus",
32732
- "Status",
32733
- "TableColumnId",
32734
- "IconTooltip",
32735
- "ButtonLink"
32736
- ]);
32737
32723
  var NESTING_RULES = {
32738
32724
  "DropdownItem": ["DropdownMenu"],
32739
32725
  "DropdownMenu": ["Dropdown"],
32740
32726
  "TableColumn": ["Table", "ProTable"],
32741
- "FormItem": ["Form"],
32742
32727
  "Tab": ["Tabs"],
32743
32728
  "Step": ["Steps"],
32744
32729
  "MenuItem": ["Menu", "SubMenu"],
@@ -32987,6 +32972,16 @@ function isTemplateBuiltin(id) {
32987
32972
  function isJsKeyword(id) {
32988
32973
  return JS_KEYWORDS.has(id);
32989
32974
  }
32975
+ function resolveExpectedImportSource(metadata) {
32976
+ const importStatement = metadata.importStatement || "";
32977
+ if (importStatement.includes("@ksyun-internal/versatile")) {
32978
+ return "@ksyun-internal/versatile";
32979
+ }
32980
+ if (importStatement.includes("@king-design/vue")) {
32981
+ return "@king-design/vue";
32982
+ }
32983
+ return null;
32984
+ }
32990
32985
  function checkImport(node, violations, sourceFile) {
32991
32986
  const moduleSpecifier = node.moduleSpecifier.getText(sourceFile).replace(/['\"]/g, "");
32992
32987
  if (moduleSpecifier === "@king-design/vue" || moduleSpecifier === "@ksyun-internal/versatile") {
@@ -33030,10 +33025,10 @@ function checkImport(node, violations, sourceFile) {
33030
33025
  suggestion: `\u76F4\u63A5\u4F7F\u7528\u539F\u540D: import { ${originalName} } from '${moduleSpecifier}'`
33031
33026
  });
33032
33027
  }
33033
- if (componentRegistry.isKnownComponent(originalName)) {
33034
- const isVersatile = VERSATILE_COMPONENTS.has(originalName);
33035
- const expectedPackage = isVersatile ? "@ksyun-internal/versatile" : "@king-design/vue";
33036
- if (expectedPackage !== moduleSpecifier) {
33028
+ const metadata = componentRegistry.getComponent(originalName);
33029
+ if (metadata) {
33030
+ const expectedPackage = resolveExpectedImportSource(metadata);
33031
+ if (expectedPackage && expectedPackage !== moduleSpecifier) {
33037
33032
  violations.push({
33038
33033
  rule: `\u7EC4\u4EF6 ${originalName} \u5BFC\u5165\u6E90\u9519\u8BEF`,
33039
33034
  match: `import { ... } from '${moduleSpecifier}'`,
@@ -33211,7 +33206,7 @@ function checkEvents(tagName, node, metadata, violations) {
33211
33206
  (e) => e.name === eventName || e.name === camelCaseEvent || e.name.toLowerCase() === eventName.toLowerCase()
33212
33207
  );
33213
33208
  const isNativeEvent = NATIVE_EVENTS.has(eventName);
33214
- if (!isEventValid && !isNativeEvent && metadata.events && metadata.events.length > 0) {
33209
+ if (!isEventValid && !isNativeEvent) {
33215
33210
  violations.push({
33216
33211
  rule: `\u4E8B\u4EF6 @${eventName} \u4E0D\u5B58\u5728\u4E8E ${tagName}`,
33217
33212
  match: `@${eventName}`,
@@ -0,0 +1,117 @@
1
+ import * as fs from 'fs';
2
+ import * as path from 'path';
3
+ import { createRequire } from 'module';
4
+
5
+ // src/metadata/resolve.ts
6
+ function normalizeMetadataName(value) {
7
+ return value.toLowerCase().replace(/[^a-z0-9]/g, "");
8
+ }
9
+ function findMetadata(lookup, componentName) {
10
+ if (lookup[componentName]) return lookup[componentName];
11
+ const normalized = normalizeMetadataName(componentName);
12
+ return Object.values(lookup).find(
13
+ (item) => normalizeMetadataName(item.name) === normalized || normalizeMetadataName(item.id || "") === normalized
14
+ );
15
+ }
16
+ function mergeNamedItems(inheritedItems = [], localItems = [], sourceName, excludeNames, annotateTags = false) {
17
+ const merged = /* @__PURE__ */ new Map();
18
+ const excluded = new Set(excludeNames.map(normalizeMetadataName));
19
+ for (const item of inheritedItems) {
20
+ if (!item?.name || excluded.has(normalizeMetadataName(item.name))) continue;
21
+ const nextItem = annotateTags ? {
22
+ ...item,
23
+ tags: [.../* @__PURE__ */ new Set([...item.tags || [], `inherited:${sourceName}`])]
24
+ } : { ...item };
25
+ merged.set(normalizeMetadataName(item.name), nextItem);
26
+ }
27
+ for (const item of localItems) {
28
+ if (!item?.name) continue;
29
+ merged.set(normalizeMetadataName(item.name), item);
30
+ }
31
+ return Array.from(merged.values());
32
+ }
33
+ function resolveMetadataInheritance(metadata, lookup, visited = /* @__PURE__ */ new Set()) {
34
+ const visitKey = normalizeMetadataName(metadata.name || metadata.id || "");
35
+ if (!visitKey || visited.has(visitKey)) {
36
+ return metadata;
37
+ }
38
+ const nextVisited = new Set(visited);
39
+ nextVisited.add(visitKey);
40
+ let resolvedProps = [...metadata.props || []];
41
+ let resolvedEvents = [...metadata.events || []];
42
+ let resolvedSlots = [...metadata.slots || []];
43
+ let resolvedMethods = [...metadata.methods || []];
44
+ for (const inheritance of metadata.inherits || []) {
45
+ const parent = findMetadata(lookup, inheritance.component);
46
+ if (!parent) continue;
47
+ const resolvedParent = resolveMetadataInheritance(parent, lookup, nextVisited);
48
+ const include = inheritance.include || ["props", "events", "slots", "methods"];
49
+ const exclude = inheritance.exclude || [];
50
+ if (include.includes("props")) {
51
+ resolvedProps = mergeNamedItems(
52
+ resolvedParent.props || [],
53
+ resolvedProps,
54
+ resolvedParent.name,
55
+ exclude,
56
+ true
57
+ );
58
+ }
59
+ if (include.includes("events")) {
60
+ resolvedEvents = mergeNamedItems(
61
+ resolvedParent.events || [],
62
+ resolvedEvents,
63
+ resolvedParent.name,
64
+ exclude
65
+ );
66
+ }
67
+ if (include.includes("slots")) {
68
+ resolvedSlots = mergeNamedItems(
69
+ resolvedParent.slots || [],
70
+ resolvedSlots,
71
+ resolvedParent.name,
72
+ exclude
73
+ );
74
+ }
75
+ if (include.includes("methods")) {
76
+ resolvedMethods = mergeNamedItems(
77
+ resolvedParent.methods || [],
78
+ resolvedMethods,
79
+ resolvedParent.name,
80
+ exclude
81
+ );
82
+ }
83
+ }
84
+ return {
85
+ ...metadata,
86
+ props: resolvedProps,
87
+ events: resolvedEvents,
88
+ slots: resolvedSlots,
89
+ methods: resolvedMethods
90
+ };
91
+ }
92
+ var DEFAULT_PACKAGE_NAME = "king-design-analyzer";
93
+ function createPackageRequire(cwd) {
94
+ return createRequire(path.join(cwd, "package.json"));
95
+ }
96
+ function resolvePackageRoot(options = {}) {
97
+ const cwd = options.cwd || process.cwd();
98
+ const packageName = options.packageName || DEFAULT_PACKAGE_NAME;
99
+ try {
100
+ const moduleRequire = createPackageRequire(cwd);
101
+ const packageEntry = moduleRequire.resolve(packageName);
102
+ return path.resolve(path.dirname(packageEntry), "..");
103
+ } catch {
104
+ return null;
105
+ }
106
+ }
107
+ function resolvePackageResourceDir(resourceDirName, options = {}) {
108
+ const cwd = options.cwd || process.cwd();
109
+ const packageRoot = resolvePackageRoot(options);
110
+ const candidates = [
111
+ packageRoot ? path.join(packageRoot, resourceDirName) : null,
112
+ path.join(cwd, resourceDirName)
113
+ ].filter((candidate) => Boolean(candidate));
114
+ return candidates.find((candidate) => fs.existsSync(candidate)) || candidates[0];
115
+ }
116
+
117
+ export { normalizeMetadataName, resolveMetadataInheritance, resolvePackageResourceDir, resolvePackageRoot };
@@ -1,14 +1,13 @@
1
1
  'use strict';
2
2
 
3
+ var chunkKF5YBEM5_js = require('./chunk-KF5YBEM5.js');
3
4
  var chunkJSBRDJBE_js = require('./chunk-JSBRDJBE.js');
4
5
  var fs = require('fs/promises');
5
6
  var fsSync = require('fs');
6
7
  var path = require('path');
7
- var url = require('url');
8
8
  var compilerSfc = require('@vue/compiler-sfc');
9
9
  var ts = require('typescript');
10
10
 
11
- var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
12
11
  function _interopNamespace(e) {
13
12
  if (e && e.__esModule) return e;
14
13
  var n = Object.create(null);
@@ -32231,14 +32230,8 @@ var require_compiler_core = chunkJSBRDJBE_js.__commonJS({
32231
32230
  }
32232
32231
  }
32233
32232
  });
32234
- var __filename$1 = url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-2W6OCG2S.js', document.baseURI).href)));
32235
- var __dirname$1 = path__namespace.dirname(__filename$1);
32236
32233
  function resolveComponentsPath() {
32237
- const prodPath = path__namespace.join(__dirname$1, "../components");
32238
- if (fsSync__namespace.existsSync(prodPath)) return prodPath;
32239
- const devPath = path__namespace.join(__dirname$1, "../../components");
32240
- if (fsSync__namespace.existsSync(devPath)) return devPath;
32241
- return prodPath;
32234
+ return chunkKF5YBEM5_js.resolvePackageResourceDir("components");
32242
32235
  }
32243
32236
  var ComponentRegistry = class {
32244
32237
  constructor() {
@@ -32248,26 +32241,34 @@ var ComponentRegistry = class {
32248
32241
  // Path to components directory (resolved dynamically for dev/prod compatibility)
32249
32242
  this.metadataPath = resolveComponentsPath();
32250
32243
  }
32251
- async load() {
32252
- if (this.loaded) return;
32253
- await this.reload();
32254
- this.loaded = true;
32255
- this.startWatching();
32244
+ async load(options = {}) {
32245
+ if (!this.loaded) {
32246
+ await this.reload();
32247
+ this.loaded = true;
32248
+ }
32249
+ if (options.watch) {
32250
+ this.startWatching();
32251
+ }
32256
32252
  }
32257
32253
  /**
32258
32254
  * 重新加载所有组件元数据
32259
32255
  */
32260
32256
  async reload() {
32261
32257
  const newComponents = /* @__PURE__ */ new Map();
32258
+ const rawComponents = {};
32262
32259
  try {
32263
32260
  const files = await fs__namespace.readdir(this.metadataPath);
32264
32261
  for (const file of files) {
32265
32262
  if (!file.endsWith(".json")) continue;
32266
32263
  const content = await fs__namespace.readFile(path__namespace.join(this.metadataPath, file), "utf-8");
32267
32264
  const data = JSON.parse(content);
32268
- newComponents.set(data.name, data);
32269
- if (data.subComponents) {
32270
- for (const sub of data.subComponents) {
32265
+ rawComponents[data.name] = data;
32266
+ }
32267
+ for (const data of Object.values(rawComponents)) {
32268
+ const resolvedData = chunkKF5YBEM5_js.resolveMetadataInheritance(data, rawComponents);
32269
+ newComponents.set(resolvedData.name, resolvedData);
32270
+ if (resolvedData.subComponents) {
32271
+ for (const sub of resolvedData.subComponents) {
32271
32272
  newComponents.set(sub.name, sub);
32272
32273
  }
32273
32274
  }
@@ -32324,14 +32325,8 @@ var componentRegistry = new ComponentRegistry();
32324
32325
 
32325
32326
  // src/analysis/astReviewer.ts
32326
32327
  var import_compiler_core = chunkJSBRDJBE_js.__toESM(require_compiler_core());
32327
- var __filename2 = url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-2W6OCG2S.js', document.baseURI).href)));
32328
- var __dirname2 = path__namespace.dirname(__filename2);
32329
32328
  function resolveHooksPath() {
32330
- const prodPath = path__namespace.join(__dirname2, "../hooks");
32331
- if (fsSync__namespace.existsSync(prodPath)) return prodPath;
32332
- const devPath = path__namespace.join(__dirname2, "../../hooks");
32333
- if (fsSync__namespace.existsSync(devPath)) return devPath;
32334
- return prodPath;
32329
+ return chunkKF5YBEM5_js.resolvePackageResourceDir("hooks");
32335
32330
  }
32336
32331
  var HooksRegistry = class {
32337
32332
  constructor() {
@@ -32340,11 +32335,14 @@ var HooksRegistry = class {
32340
32335
  this.watcher = null;
32341
32336
  this.metadataPath = resolveHooksPath();
32342
32337
  }
32343
- async load() {
32344
- if (this.loaded) return;
32345
- await this.reload();
32346
- this.loaded = true;
32347
- this.startWatching();
32338
+ async load(options = {}) {
32339
+ if (!this.loaded) {
32340
+ await this.reload();
32341
+ this.loaded = true;
32342
+ }
32343
+ if (options.watch) {
32344
+ this.startWatching();
32345
+ }
32348
32346
  }
32349
32347
  /**
32350
32348
  * 重新加载所有 hooks 元数据
@@ -32747,24 +32745,10 @@ var STRICT_CHECK_ATTRIBUTES = /* @__PURE__ */ new Set([
32747
32745
  "checked",
32748
32746
  "selected"
32749
32747
  ]);
32750
- var VERSATILE_COMPONENTS = /* @__PURE__ */ new Set([
32751
- "BillTypes",
32752
- "Region",
32753
- "AZ",
32754
- "LayoutContent",
32755
- "CardContent",
32756
- "ProTable",
32757
- "PaginationPlus",
32758
- "Status",
32759
- "TableColumnId",
32760
- "IconTooltip",
32761
- "ButtonLink"
32762
- ]);
32763
32748
  var NESTING_RULES = {
32764
32749
  "DropdownItem": ["DropdownMenu"],
32765
32750
  "DropdownMenu": ["Dropdown"],
32766
32751
  "TableColumn": ["Table", "ProTable"],
32767
- "FormItem": ["Form"],
32768
32752
  "Tab": ["Tabs"],
32769
32753
  "Step": ["Steps"],
32770
32754
  "MenuItem": ["Menu", "SubMenu"],
@@ -33013,6 +32997,16 @@ function isTemplateBuiltin(id) {
33013
32997
  function isJsKeyword(id) {
33014
32998
  return JS_KEYWORDS.has(id);
33015
32999
  }
33000
+ function resolveExpectedImportSource(metadata) {
33001
+ const importStatement = metadata.importStatement || "";
33002
+ if (importStatement.includes("@ksyun-internal/versatile")) {
33003
+ return "@ksyun-internal/versatile";
33004
+ }
33005
+ if (importStatement.includes("@king-design/vue")) {
33006
+ return "@king-design/vue";
33007
+ }
33008
+ return null;
33009
+ }
33016
33010
  function checkImport(node, violations, sourceFile) {
33017
33011
  const moduleSpecifier = node.moduleSpecifier.getText(sourceFile).replace(/['\"]/g, "");
33018
33012
  if (moduleSpecifier === "@king-design/vue" || moduleSpecifier === "@ksyun-internal/versatile") {
@@ -33056,10 +33050,10 @@ function checkImport(node, violations, sourceFile) {
33056
33050
  suggestion: `\u76F4\u63A5\u4F7F\u7528\u539F\u540D: import { ${originalName} } from '${moduleSpecifier}'`
33057
33051
  });
33058
33052
  }
33059
- if (componentRegistry.isKnownComponent(originalName)) {
33060
- const isVersatile = VERSATILE_COMPONENTS.has(originalName);
33061
- const expectedPackage = isVersatile ? "@ksyun-internal/versatile" : "@king-design/vue";
33062
- if (expectedPackage !== moduleSpecifier) {
33053
+ const metadata = componentRegistry.getComponent(originalName);
33054
+ if (metadata) {
33055
+ const expectedPackage = resolveExpectedImportSource(metadata);
33056
+ if (expectedPackage && expectedPackage !== moduleSpecifier) {
33063
33057
  violations.push({
33064
33058
  rule: `\u7EC4\u4EF6 ${originalName} \u5BFC\u5165\u6E90\u9519\u8BEF`,
33065
33059
  match: `import { ... } from '${moduleSpecifier}'`,
@@ -33237,7 +33231,7 @@ function checkEvents(tagName, node, metadata, violations) {
33237
33231
  (e) => e.name === eventName || e.name === camelCaseEvent || e.name.toLowerCase() === eventName.toLowerCase()
33238
33232
  );
33239
33233
  const isNativeEvent = NATIVE_EVENTS.has(eventName);
33240
- if (!isEventValid && !isNativeEvent && metadata.events && metadata.events.length > 0) {
33234
+ if (!isEventValid && !isNativeEvent) {
33241
33235
  violations.push({
33242
33236
  rule: `\u4E8B\u4EF6 @${eventName} \u4E0D\u5B58\u5728\u4E8E ${tagName}`,
33243
33237
  match: `@${eventName}`,
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkHPAUCD5I_js = require('./chunk-HPAUCD5I.js');
3
+ var chunkCR3GC4H3_js = require('./chunk-CR3GC4H3.js');
4
4
 
5
5
  // src/static/index.ts
6
6
  var scopeIdCounter = 0;
@@ -44,7 +44,7 @@ function validateCompilation(code) {
44
44
  errors: ["SFC \u7ED3\u6784\u9519\u8BEF: \u7F3A\u5C11 <template> \u6216 <script> \u6807\u7B7E"]
45
45
  };
46
46
  }
47
- const result = chunkHPAUCD5I_js.compileSFC(code, scopeId);
47
+ const result = chunkCR3GC4H3_js.compileSFC(code, scopeId);
48
48
  if (result.error) {
49
49
  return {
50
50
  name: "\u7F16\u8BD1\u68C0\u67E5",
@@ -1,13 +1,13 @@
1
- import { analyzeCodeWithAST } from './chunk-H2ET6MMM.mjs';
2
- import { validateRuntimePrecheck } from './chunk-NZ6TLWMD.mjs';
3
- import { compileSFC } from './chunk-L4DS3EXI.mjs';
1
+ import { analyzeCodeWithAST } from './chunk-KMIDURUR.mjs';
2
+ import { validateRuntimePrecheck } from './chunk-D2SXGGTX.mjs';
3
+ import { compileSFC } from './chunk-BI5TIQID.mjs';
4
4
 
5
5
  // src/tools/unifiedValidator.ts
6
6
  function validateCompilation(code) {
7
7
  const scopeId = `validate-${Date.now()}`;
8
8
  const scriptOpenCount = (code.match(/<script[\s\S]*?>/g) || []).length;
9
9
  const scriptCloseCount = (code.match(/<\/script>/g) || []).length;
10
- const templateOpenCount = (code.match(/<template>/g) || []).length;
10
+ const templateOpenCount = (code.match(/<template[^>]*>/g) || []).length;
11
11
  const templateCloseCount = (code.match(/<\/template>/g) || []).length;
12
12
  if (scriptCloseCount > 0 && scriptOpenCount === 0) {
13
13
  return {
@@ -1,18 +1,19 @@
1
1
  'use strict';
2
2
 
3
- var chunkF26GUCGG_js = require('../chunk-F26GUCGG.js');
4
- require('../chunk-2W6OCG2S.js');
5
- require('../chunk-D3Y6FGWA.js');
6
- require('../chunk-HPAUCD5I.js');
3
+ var chunkCJGGFVQJ_js = require('../chunk-CJGGFVQJ.js');
4
+ require('../chunk-SZYVGYKK.js');
5
+ require('../chunk-EYKZY2F3.js');
6
+ require('../chunk-CR3GC4H3.js');
7
+ require('../chunk-KF5YBEM5.js');
7
8
  require('../chunk-JSBRDJBE.js');
8
9
 
9
10
 
10
11
 
11
12
  Object.defineProperty(exports, "validateCode", {
12
13
  enumerable: true,
13
- get: function () { return chunkF26GUCGG_js.validateCode; }
14
+ get: function () { return chunkCJGGFVQJ_js.validateCode; }
14
15
  });
15
16
  Object.defineProperty(exports, "validateCodeSync", {
16
17
  enumerable: true,
17
- get: function () { return chunkF26GUCGG_js.validateCodeSync; }
18
+ get: function () { return chunkCJGGFVQJ_js.validateCodeSync; }
18
19
  });
@@ -1,5 +1,6 @@
1
- export { validateCode, validateCodeSync } from '../chunk-OJOHB64C.mjs';
2
- import '../chunk-H2ET6MMM.mjs';
3
- import '../chunk-NZ6TLWMD.mjs';
4
- import '../chunk-L4DS3EXI.mjs';
1
+ export { validateCode, validateCodeSync } from '../chunk-XGPHQHLR.mjs';
2
+ import '../chunk-KMIDURUR.mjs';
3
+ import '../chunk-D2SXGGTX.mjs';
4
+ import '../chunk-BI5TIQID.mjs';
5
+ import '../chunk-QC6VTSA3.mjs';
5
6
  import '../chunk-UJCSKKID.mjs';
package/dist/index.d.mts CHANGED
@@ -3,3 +3,4 @@ export { ComponentEvent, ComponentMetadata, ComponentProp, ComponentSlot, Mistak
3
3
  export { ValidationLayer as RuntimeValidationLayer, validateRuntimePrecheck } from './runtime/index.mjs';
4
4
  export { UnifiedValidationResult, ValidationLayer, validateCode, validateCodeSync } from './full/index.mjs';
5
5
  export { C as CompilationResult, c as compileSFC, s as scopeStyles } from './sfcCompiler-Co_Km3LU.mjs';
6
+ import './resolve-BsLBxlBi.mjs';
package/dist/index.d.ts CHANGED
@@ -3,3 +3,4 @@ export { ComponentEvent, ComponentMetadata, ComponentProp, ComponentSlot, Mistak
3
3
  export { ValidationLayer as RuntimeValidationLayer, validateRuntimePrecheck } from './runtime/index.js';
4
4
  export { UnifiedValidationResult, ValidationLayer, validateCode, validateCodeSync } from './full/index.js';
5
5
  export { C as CompilationResult, c as compileSFC, s as scopeStyles } from './sfcCompiler-Co_Km3LU.js';
6
+ import './resolve-BsLBxlBi.js';
package/dist/index.js CHANGED
@@ -1,44 +1,45 @@
1
1
  'use strict';
2
2
 
3
- var chunkWYSRJVX4_js = require('./chunk-WYSRJVX4.js');
3
+ var chunkTA3SV4SP_js = require('./chunk-TA3SV4SP.js');
4
4
  require('./chunk-YTEYDSDW.js');
5
- var chunkF26GUCGG_js = require('./chunk-F26GUCGG.js');
6
- var chunk2W6OCG2S_js = require('./chunk-2W6OCG2S.js');
7
- var chunkD3Y6FGWA_js = require('./chunk-D3Y6FGWA.js');
8
- var chunkHPAUCD5I_js = require('./chunk-HPAUCD5I.js');
5
+ var chunkCJGGFVQJ_js = require('./chunk-CJGGFVQJ.js');
6
+ var chunkSZYVGYKK_js = require('./chunk-SZYVGYKK.js');
7
+ var chunkEYKZY2F3_js = require('./chunk-EYKZY2F3.js');
8
+ var chunkCR3GC4H3_js = require('./chunk-CR3GC4H3.js');
9
+ require('./chunk-KF5YBEM5.js');
9
10
  require('./chunk-JSBRDJBE.js');
10
11
 
11
12
 
12
13
 
13
14
  Object.defineProperty(exports, "validateCompilation", {
14
15
  enumerable: true,
15
- get: function () { return chunkWYSRJVX4_js.validateCompilation; }
16
+ get: function () { return chunkTA3SV4SP_js.validateCompilation; }
16
17
  });
17
18
  Object.defineProperty(exports, "validateCode", {
18
19
  enumerable: true,
19
- get: function () { return chunkF26GUCGG_js.validateCode; }
20
+ get: function () { return chunkCJGGFVQJ_js.validateCode; }
20
21
  });
21
22
  Object.defineProperty(exports, "validateCodeSync", {
22
23
  enumerable: true,
23
- get: function () { return chunkF26GUCGG_js.validateCodeSync; }
24
+ get: function () { return chunkCJGGFVQJ_js.validateCodeSync; }
24
25
  });
25
26
  Object.defineProperty(exports, "analyzeCodeWithAST", {
26
27
  enumerable: true,
27
- get: function () { return chunk2W6OCG2S_js.analyzeCodeWithAST; }
28
+ get: function () { return chunkSZYVGYKK_js.analyzeCodeWithAST; }
28
29
  });
29
30
  Object.defineProperty(exports, "componentRegistry", {
30
31
  enumerable: true,
31
- get: function () { return chunk2W6OCG2S_js.componentRegistry; }
32
+ get: function () { return chunkSZYVGYKK_js.componentRegistry; }
32
33
  });
33
34
  Object.defineProperty(exports, "validateRuntimePrecheck", {
34
35
  enumerable: true,
35
- get: function () { return chunkD3Y6FGWA_js.validateRuntimePrecheck; }
36
+ get: function () { return chunkEYKZY2F3_js.validateRuntimePrecheck; }
36
37
  });
37
38
  Object.defineProperty(exports, "compileSFC", {
38
39
  enumerable: true,
39
- get: function () { return chunkHPAUCD5I_js.compileSFC; }
40
+ get: function () { return chunkCR3GC4H3_js.compileSFC; }
40
41
  });
41
42
  Object.defineProperty(exports, "scopeStyles", {
42
43
  enumerable: true,
43
- get: function () { return chunkHPAUCD5I_js.scopeStyles; }
44
+ get: function () { return chunkCR3GC4H3_js.scopeStyles; }
44
45
  });
package/dist/index.mjs CHANGED
@@ -1,7 +1,8 @@
1
- export { validateCompilation } from './chunk-DSWKLUIX.mjs';
1
+ export { validateCompilation } from './chunk-3LYQ5XFM.mjs';
2
2
  import './chunk-5H7N2A5X.mjs';
3
- export { validateCode, validateCodeSync } from './chunk-OJOHB64C.mjs';
4
- export { analyzeCodeWithAST, componentRegistry } from './chunk-H2ET6MMM.mjs';
5
- export { validateRuntimePrecheck } from './chunk-NZ6TLWMD.mjs';
6
- export { compileSFC, scopeStyles } from './chunk-L4DS3EXI.mjs';
3
+ export { validateCode, validateCodeSync } from './chunk-XGPHQHLR.mjs';
4
+ export { analyzeCodeWithAST, componentRegistry } from './chunk-KMIDURUR.mjs';
5
+ export { validateRuntimePrecheck } from './chunk-D2SXGGTX.mjs';
6
+ export { compileSFC, scopeStyles } from './chunk-BI5TIQID.mjs';
7
+ import './chunk-QC6VTSA3.mjs';
7
8
  import './chunk-UJCSKKID.mjs';