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.
- package/components/actions.json +101 -0
- package/components/advancedset.json +127 -0
- package/components/affix.json +7 -0
- package/components/aksk.json +172 -0
- package/components/az.json +15 -2
- package/components/badge.json +7 -0
- package/components/billtypes.json +14 -2
- package/components/breadcrumb.json +7 -0
- package/components/button.json +191 -0
- package/components/buttonlink.json +73 -0
- package/components/card.json +8 -1
- package/components/cardcol.json +142 -0
- package/components/cardcols.json +121 -0
- package/components/cardcontent.json +15 -3
- package/components/cardtabs.json +172 -0
- package/components/carousel.json +7 -0
- package/components/cascader.json +520 -368
- package/components/checkbox.json +51 -4
- package/components/cidrinput.json +140 -0
- package/components/code.json +8 -1
- package/components/collapse.json +7 -0
- package/components/colorpicker.json +217 -0
- package/components/copy.json +7 -0
- package/components/copyhover.json +111 -0
- package/components/copyrow.json +124 -0
- package/components/datepicker.json +656 -524
- package/components/description.json +98 -0
- package/components/dialog.json +522 -455
- package/components/divider.json +8 -1
- package/components/drawer.json +571 -558
- package/components/dropdown.json +464 -384
- package/components/duration.json +125 -0
- package/components/editable.json +66 -0
- package/components/ellipsis.json +34 -1
- package/components/filtertablefieldsdialog.json +128 -0
- package/components/flex.json +151 -0
- package/components/form.json +131 -0
- package/components/formiteminput.json +214 -0
- package/components/formitemspinner.json +213 -0
- package/components/formitemswitch.json +185 -0
- package/components/formitemtableconfigs.json +210 -0
- package/components/grid.json +7 -0
- package/components/header.json +161 -0
- package/components/icon.json +13 -1
- package/components/icontooltip.json +19 -1
- package/components/input.json +188 -4
- package/components/instancelist.json +194 -0
- package/components/instancenum.json +196 -0
- package/components/ipinput.json +117 -0
- package/components/kspstatus.json +205 -0
- package/components/kvcode.json +120 -0
- package/components/layoutcontent.json +15 -3
- package/components/layoutlistcontent.json +148 -0
- package/components/layoutpermissioncontent.json +155 -0
- package/components/layoutstandardlist.json +275 -0
- package/components/layouttabs.json +168 -0
- package/components/lazymount.json +86 -0
- package/components/lazyteleport.json +118 -0
- package/components/menu.json +7 -0
- package/components/pagination.json +12 -0
- package/components/paginationplus.json +30 -3
- package/components/password.json +121 -0
- package/components/popover.json +457 -437
- package/components/projects.json +129 -0
- package/components/protable.json +97 -8
- package/components/queuevisualrange.json +110 -0
- package/components/radio.json +82 -2
- package/components/rate.json +199 -0
- package/components/region.json +14 -2
- package/components/search.json +221 -0
- package/components/searchinput.json +132 -0
- package/components/searchitems.json +215 -0
- package/components/searchselect.json +195 -0
- package/components/select.json +686 -666
- package/components/sidebar.json +198 -0
- package/components/skeleton.json +233 -0
- package/components/spin.json +8 -1
- package/components/split.json +260 -0
- package/components/sshkeys.json +138 -0
- package/components/status.json +60 -3
- package/components/steps.json +7 -0
- package/components/switch.json +8 -1
- package/components/table.json +18 -1
- package/components/tablecolumnid.json +14 -2
- package/components/tabs.json +12 -0
- package/components/timeline.json +213 -0
- package/components/timepicker.json +147 -3
- package/components/timerange.json +262 -0
- package/components/tip.json +7 -0
- package/components/tooltip.json +484 -395
- package/components/tour.json +418 -372
- package/components/transfer.json +27 -3
- package/components/tree.json +6 -4
- package/components/treeselect.json +556 -475
- package/components/upload.json +474 -473
- package/components/vdialog.json +308 -0
- package/components/vdrawer.json +331 -0
- package/components/virtuallist.json +7 -0
- package/dist/ast/index.d.mts +35 -1
- package/dist/ast/index.d.ts +35 -1
- package/dist/ast/index.js +4 -3
- package/dist/ast/index.mjs +2 -1
- package/dist/{chunk-DSWKLUIX.mjs → chunk-3LYQ5XFM.mjs} +1 -1
- package/dist/chunk-BI5TIQID.mjs +330 -0
- package/dist/{chunk-F26GUCGG.js → chunk-CJGGFVQJ.js} +8 -8
- package/dist/chunk-CR3GC4H3.js +353 -0
- package/dist/{chunk-NZ6TLWMD.mjs → chunk-D2SXGGTX.mjs} +28 -17
- package/dist/{chunk-D3Y6FGWA.js → chunk-EYKZY2F3.js} +29 -18
- package/dist/chunk-KF5YBEM5.js +143 -0
- package/dist/{chunk-H2ET6MMM.mjs → chunk-KMIDURUR.mjs} +42 -47
- package/dist/chunk-QC6VTSA3.mjs +117 -0
- package/dist/{chunk-2W6OCG2S.js → chunk-SZYVGYKK.js} +42 -48
- package/dist/{chunk-WYSRJVX4.js → chunk-TA3SV4SP.js} +2 -2
- package/dist/{chunk-OJOHB64C.mjs → chunk-XGPHQHLR.mjs} +4 -4
- package/dist/full/index.js +7 -6
- package/dist/full/index.mjs +5 -4
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +14 -13
- package/dist/index.mjs +6 -5
- package/dist/metadata/index.d.mts +22 -2
- package/dist/metadata/index.d.ts +22 -2
- package/dist/metadata/index.js +26 -16
- package/dist/metadata/index.mjs +26 -15
- package/dist/resolve-BsLBxlBi.d.mts +24 -0
- package/dist/resolve-BsLBxlBi.d.ts +24 -0
- package/dist/runtime/index.js +4 -4
- package/dist/runtime/index.mjs +2 -2
- package/dist/shared/index.d.mts +10 -0
- package/dist/shared/index.d.ts +10 -0
- package/dist/shared/index.js +23 -0
- package/dist/shared/index.mjs +2 -0
- package/dist/static/index.js +5 -5
- package/dist/static/index.mjs +2 -2
- package/docs_for_llm/actions.doc.md +77 -0
- package/docs_for_llm/advancedset.doc.md +89 -0
- package/docs_for_llm/affix.doc.md +15 -7
- package/docs_for_llm/aksk.doc.md +111 -0
- package/docs_for_llm/az.doc.md +17 -11
- package/docs_for_llm/badge.doc.md +6 -5
- package/docs_for_llm/billtypes.doc.md +17 -11
- package/docs_for_llm/breadcrumb.doc.md +6 -3
- package/docs_for_llm/button.doc.md +34 -18
- package/docs_for_llm/buttonlink.doc.md +55 -0
- package/docs_for_llm/card.doc.md +8 -5
- package/docs_for_llm/cardcol.doc.md +78 -0
- package/docs_for_llm/cardcols.doc.md +84 -0
- package/docs_for_llm/cardcontent.doc.md +10 -10
- package/docs_for_llm/cardtabs.doc.md +106 -0
- package/docs_for_llm/carousel.doc.md +8 -7
- package/docs_for_llm/cascader.doc.md +46 -25
- package/docs_for_llm/checkbox.doc.md +25 -13
- package/docs_for_llm/cidrinput.doc.md +83 -0
- package/docs_for_llm/code.doc.md +22 -11
- package/docs_for_llm/collapse.doc.md +9 -6
- package/docs_for_llm/colorpicker.doc.md +104 -0
- package/docs_for_llm/copy.doc.md +15 -13
- package/docs_for_llm/copyhover.doc.md +59 -0
- package/docs_for_llm/copyrow.doc.md +71 -0
- package/docs_for_llm/datepicker.doc.md +51 -39
- package/docs_for_llm/description.doc.md +75 -0
- package/docs_for_llm/descriptions.doc.md +9 -6
- package/docs_for_llm/dialog.doc.md +48 -77
- package/docs_for_llm/divider.doc.md +9 -7
- package/docs_for_llm/drawer.doc.md +43 -84
- package/docs_for_llm/dropdown.doc.md +52 -21
- package/docs_for_llm/duration.doc.md +76 -0
- package/docs_for_llm/editable.doc.md +36 -14
- package/docs_for_llm/ellipsis.doc.md +10 -5
- package/docs_for_llm/filtertablefieldsdialog.doc.md +99 -0
- package/docs_for_llm/flex.doc.md +74 -0
- package/docs_for_llm/form.doc.md +33 -14
- package/docs_for_llm/formiteminput.doc.md +128 -0
- package/docs_for_llm/formitemspinner.doc.md +105 -0
- package/docs_for_llm/formitemswitch.doc.md +113 -0
- package/docs_for_llm/formitemtableconfigs.doc.md +95 -0
- package/docs_for_llm/grid.doc.md +7 -5
- package/docs_for_llm/header.doc.md +85 -0
- package/docs_for_llm/icon.doc.md +12 -8
- package/docs_for_llm/icontooltip.doc.md +121 -0
- package/docs_for_llm/input.doc.md +90 -39
- package/docs_for_llm/instancelist.doc.md +113 -0
- package/docs_for_llm/instancenum.doc.md +95 -0
- package/docs_for_llm/ipinput.doc.md +77 -0
- package/docs_for_llm/kspstatus.doc.md +82 -0
- package/docs_for_llm/kvcode.doc.md +76 -0
- package/docs_for_llm/layoutcontent.doc.md +17 -17
- package/docs_for_llm/layoutlistcontent.doc.md +95 -0
- package/docs_for_llm/layoutpermissioncontent.doc.md +84 -0
- package/docs_for_llm/layoutstandardlist.doc.md +120 -0
- package/docs_for_llm/layouttabs.doc.md +101 -0
- package/docs_for_llm/lazymount.doc.md +73 -0
- package/docs_for_llm/lazyteleport.doc.md +76 -0
- package/docs_for_llm/menu.doc.md +14 -11
- package/docs_for_llm/message.doc.md +48 -10
- package/docs_for_llm/pagination.doc.md +30 -17
- package/docs_for_llm/paginationplus.doc.md +31 -10
- package/docs_for_llm/password.doc.md +86 -0
- package/docs_for_llm/popover.doc.md +24 -55
- package/docs_for_llm/progress.doc.md +13 -10
- package/docs_for_llm/projects.doc.md +91 -0
- package/docs_for_llm/protable.doc.md +89 -15
- package/docs_for_llm/queuevisualrange.doc.md +78 -0
- package/docs_for_llm/radio.doc.md +23 -8
- package/docs_for_llm/rate.doc.md +122 -0
- package/docs_for_llm/region.doc.md +25 -13
- package/docs_for_llm/search.doc.md +120 -0
- package/docs_for_llm/searchinput.doc.md +111 -0
- package/docs_for_llm/searchitems.doc.md +116 -0
- package/docs_for_llm/searchselect.doc.md +126 -0
- package/docs_for_llm/select.doc.md +40 -55
- package/docs_for_llm/sidebar.doc.md +133 -0
- package/docs_for_llm/skeleton.doc.md +117 -0
- package/docs_for_llm/slider.doc.md +31 -21
- package/docs_for_llm/spin.doc.md +8 -5
- package/docs_for_llm/spinner.doc.md +28 -18
- package/docs_for_llm/split.doc.md +157 -0
- package/docs_for_llm/sshkeys.doc.md +88 -0
- package/docs_for_llm/status.doc.md +14 -9
- package/docs_for_llm/steps.doc.md +10 -7
- package/docs_for_llm/switch.doc.md +17 -14
- package/docs_for_llm/table.doc.md +118 -51
- package/docs_for_llm/tablecolumnid.doc.md +36 -16
- package/docs_for_llm/tabs.doc.md +19 -10
- package/docs_for_llm/tag.doc.md +19 -10
- package/docs_for_llm/timeline.doc.md +109 -0
- package/docs_for_llm/timepicker.doc.md +57 -38
- package/docs_for_llm/timerange.doc.md +157 -0
- package/docs_for_llm/tip.doc.md +20 -11
- package/docs_for_llm/tooltip.doc.md +55 -29
- package/docs_for_llm/tour.doc.md +48 -29
- package/docs_for_llm/transfer.doc.md +40 -29
- package/docs_for_llm/tree.doc.md +65 -23
- package/docs_for_llm/treeselect.doc.md +37 -48
- package/docs_for_llm/upload.doc.md +56 -32
- package/docs_for_llm/useCRUD.doc.md +49 -0
- package/docs_for_llm/useCountdown.doc.md +43 -0
- package/docs_for_llm/useDetail.doc.md +48 -0
- package/docs_for_llm/useDialog.doc.md +46 -0
- package/docs_for_llm/useEntity.doc.md +45 -0
- package/docs_for_llm/useEventListener.doc.md +44 -0
- package/docs_for_llm/useFalseUntilTruthy.doc.md +41 -0
- package/docs_for_llm/useGetCopyAuthText.doc.md +35 -0
- package/docs_for_llm/useGetUserPermission.doc.md +43 -0
- package/docs_for_llm/useGroup.doc.md +48 -0
- package/docs_for_llm/useIdEntities.doc.md +48 -0
- package/docs_for_llm/useIdEntity.doc.md +103 -0
- package/docs_for_llm/useInterval.doc.md +43 -0
- package/docs_for_llm/useLayoutStandardList.doc.md +38 -0
- package/docs_for_llm/useMessage.doc.md +46 -0
- package/docs_for_llm/useModifyCache.doc.md +37 -0
- package/docs_for_llm/useOpenDialog.doc.md +41 -0
- package/docs_for_llm/usePagination.doc.md +60 -0
- package/docs_for_llm/usePersist.doc.md +54 -0
- package/docs_for_llm/usePoll.doc.md +41 -0
- package/docs_for_llm/useRoutePlus.doc.md +34 -0
- package/docs_for_llm/useRouterPlus.doc.md +34 -0
- package/docs_for_llm/useSearch.doc.md +68 -0
- package/docs_for_llm/useShell.doc.md +43 -0
- package/docs_for_llm/useSkip.doc.md +41 -0
- package/docs_for_llm/useStorageIdEntity.doc.md +46 -0
- package/docs_for_llm/useStore.doc.md +34 -0
- package/docs_for_llm/useTable.doc.md +57 -0
- package/docs_for_llm/useTableGroup.doc.md +47 -0
- package/docs_for_llm/useTableSort.doc.md +40 -0
- package/docs_for_llm/useToState.doc.md +112 -0
- package/docs_for_llm/useUser.doc.md +38 -0
- package/docs_for_llm/useValidForm.doc.md +41 -0
- package/docs_for_llm/vdialog.doc.md +129 -0
- package/docs_for_llm/vdrawer.doc.md +119 -0
- package/docs_for_llm/virtuallist.doc.md +6 -3
- package/hooks/useCRUD.json +61 -0
- package/hooks/useCountdown.json +49 -0
- package/hooks/useDetail.json +67 -0
- package/hooks/useDialog.json +49 -0
- package/hooks/useEntity.json +61 -0
- package/hooks/useEventListener.json +61 -0
- package/hooks/useFalseUntilTruthy.json +43 -0
- package/hooks/useGetCopyAuthText.json +36 -0
- package/hooks/useGetUserPermission.json +55 -0
- package/hooks/useGroup.json +49 -0
- package/hooks/useIdEntities.json +61 -0
- package/hooks/useInterval.json +55 -0
- package/hooks/useLayoutStandardList.json +36 -0
- package/hooks/useMessage.json +73 -0
- package/hooks/useModifyCache.json +36 -0
- package/hooks/useOpenDialog.json +43 -0
- package/hooks/usePagination.json +49 -0
- package/hooks/usePersist.json +61 -0
- package/hooks/usePoll.json +43 -0
- package/hooks/useRoutePlus.json +36 -0
- package/hooks/useRouterPlus.json +36 -0
- package/hooks/useSearch.json +56 -0
- package/hooks/useShell.json +49 -0
- package/hooks/useSkip.json +43 -0
- package/hooks/useStorageIdEntity.json +67 -0
- package/hooks/useStore.json +36 -0
- package/hooks/useTable.json +49 -0
- package/hooks/useTableGroup.json +43 -0
- package/hooks/useTableSort.json +43 -0
- package/hooks/useUser.json +36 -0
- package/hooks/useValidForm.json +43 -0
- package/package.json +12 -6
- package/dist/chunk-HPAUCD5I.js +0 -156
- 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
|
-
|
|
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)
|
|
32227
|
-
|
|
32228
|
-
|
|
32229
|
-
|
|
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
|
-
|
|
32243
|
-
|
|
32244
|
-
|
|
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
|
-
|
|
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)
|
|
32319
|
-
|
|
32320
|
-
|
|
32321
|
-
|
|
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
|
-
|
|
33034
|
-
|
|
33035
|
-
const expectedPackage =
|
|
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
|
|
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
|
-
|
|
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)
|
|
32253
|
-
|
|
32254
|
-
|
|
32255
|
-
|
|
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
|
-
|
|
32269
|
-
|
|
32270
|
-
|
|
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
|
-
|
|
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)
|
|
32345
|
-
|
|
32346
|
-
|
|
32347
|
-
|
|
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
|
-
|
|
33060
|
-
|
|
33061
|
-
const expectedPackage =
|
|
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
|
|
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
|
|
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 =
|
|
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-
|
|
2
|
-
import { validateRuntimePrecheck } from './chunk-
|
|
3
|
-
import { compileSFC } from './chunk-
|
|
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
|
|
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 {
|
package/dist/full/index.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
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
|
|
14
|
+
get: function () { return chunkCJGGFVQJ_js.validateCode; }
|
|
14
15
|
});
|
|
15
16
|
Object.defineProperty(exports, "validateCodeSync", {
|
|
16
17
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkCJGGFVQJ_js.validateCodeSync; }
|
|
18
19
|
});
|
package/dist/full/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { validateCode, validateCodeSync } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
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
|
|
3
|
+
var chunkTA3SV4SP_js = require('./chunk-TA3SV4SP.js');
|
|
4
4
|
require('./chunk-YTEYDSDW.js');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
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
|
|
16
|
+
get: function () { return chunkTA3SV4SP_js.validateCompilation; }
|
|
16
17
|
});
|
|
17
18
|
Object.defineProperty(exports, "validateCode", {
|
|
18
19
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkCJGGFVQJ_js.validateCode; }
|
|
20
21
|
});
|
|
21
22
|
Object.defineProperty(exports, "validateCodeSync", {
|
|
22
23
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkCJGGFVQJ_js.validateCodeSync; }
|
|
24
25
|
});
|
|
25
26
|
Object.defineProperty(exports, "analyzeCodeWithAST", {
|
|
26
27
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkSZYVGYKK_js.analyzeCodeWithAST; }
|
|
28
29
|
});
|
|
29
30
|
Object.defineProperty(exports, "componentRegistry", {
|
|
30
31
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkSZYVGYKK_js.componentRegistry; }
|
|
32
33
|
});
|
|
33
34
|
Object.defineProperty(exports, "validateRuntimePrecheck", {
|
|
34
35
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkEYKZY2F3_js.validateRuntimePrecheck; }
|
|
36
37
|
});
|
|
37
38
|
Object.defineProperty(exports, "compileSFC", {
|
|
38
39
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkCR3GC4H3_js.compileSFC; }
|
|
40
41
|
});
|
|
41
42
|
Object.defineProperty(exports, "scopeStyles", {
|
|
42
43
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkCR3GC4H3_js.scopeStyles; }
|
|
44
45
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export { validateCompilation } from './chunk-
|
|
1
|
+
export { validateCompilation } from './chunk-3LYQ5XFM.mjs';
|
|
2
2
|
import './chunk-5H7N2A5X.mjs';
|
|
3
|
-
export { validateCode, validateCodeSync } from './chunk-
|
|
4
|
-
export { analyzeCodeWithAST, componentRegistry } from './chunk-
|
|
5
|
-
export { validateRuntimePrecheck } from './chunk-
|
|
6
|
-
export { compileSFC, scopeStyles } from './chunk-
|
|
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';
|