unplugin-vue-components 28.7.0 → 29.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -5
- package/dist/esbuild.cjs +2 -2
- package/dist/esbuild.d.cts +3 -4
- package/dist/esbuild.d.ts +3 -4
- package/dist/esbuild.js +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +3 -5
- package/dist/index.d.ts +3 -5
- package/dist/index.js +2 -2
- package/dist/nuxt.cjs +2 -2
- package/dist/nuxt.d.cts +1 -2
- package/dist/nuxt.d.ts +3 -4
- package/dist/nuxt.js +2 -2
- package/dist/resolvers.cjs +1 -1
- package/dist/resolvers.d.cts +3 -23
- package/dist/resolvers.d.ts +3 -23
- package/dist/resolvers.js +29 -1
- package/dist/rollup.cjs +2 -2
- package/dist/rollup.d.cts +3 -4
- package/dist/rollup.d.ts +3 -4
- package/dist/rollup.js +2 -2
- package/dist/rspack.cjs +2 -2
- package/dist/rspack.d.cts +1 -2
- package/dist/rspack.d.ts +1 -2
- package/dist/rspack.js +2 -2
- package/dist/{src-DkHPEJdR.js → src-Be7SlxMY.js} +9 -5
- package/dist/{src-CAOQxNIe.cjs → src-Cb65v4On.cjs} +9 -5
- package/dist/{types-BDM6QBE8.d.cts → types-BED632qH.d.cts} +6 -1
- package/dist/{types-BOtuQ8Dm.d.ts → types-CFwIfA2K.d.ts} +6 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/{utils-Dmc5QTPf.js → utils-9P5ODluf.js} +182 -200
- package/dist/{utils-B0KIrWYZ.cjs → utils-DGIwBjsw.cjs} +187 -171
- package/dist/vite.cjs +2 -2
- package/dist/vite.d.cts +1 -2
- package/dist/vite.d.ts +1 -2
- package/dist/vite.js +2 -2
- package/dist/webpack.cjs +2 -2
- package/dist/webpack.d.cts +3 -4
- package/dist/webpack.d.ts +3 -4
- package/dist/webpack.js +2 -2
- package/package.json +21 -20
package/README.md
CHANGED
|
@@ -73,7 +73,7 @@ export default {
|
|
|
73
73
|
module.exports = {
|
|
74
74
|
/* ... */
|
|
75
75
|
plugins: [
|
|
76
|
-
require('unplugin-vue-components/webpack')
|
|
76
|
+
require('unplugin-vue-components/webpack')({ /* options */ }),
|
|
77
77
|
],
|
|
78
78
|
}
|
|
79
79
|
```
|
|
@@ -88,7 +88,7 @@ module.exports = {
|
|
|
88
88
|
module.exports = {
|
|
89
89
|
/* ... */
|
|
90
90
|
plugins: [
|
|
91
|
-
require('unplugin-vue-components/rspack')
|
|
91
|
+
require('unplugin-vue-components/rspack')({ /* options */ }),
|
|
92
92
|
],
|
|
93
93
|
}
|
|
94
94
|
```
|
|
@@ -110,7 +110,7 @@ You might not need this plugin for Nuxt. Use [`@nuxt/components`](https://github
|
|
|
110
110
|
module.exports = {
|
|
111
111
|
/* ... */
|
|
112
112
|
plugins: [
|
|
113
|
-
require('unplugin-vue-components/webpack')
|
|
113
|
+
require('unplugin-vue-components/webpack')({ /* options */ }),
|
|
114
114
|
],
|
|
115
115
|
}
|
|
116
116
|
```
|
|
@@ -132,6 +132,36 @@ export default {
|
|
|
132
132
|
|
|
133
133
|
<br></details>
|
|
134
134
|
|
|
135
|
+
<details>
|
|
136
|
+
<summary>Quasar</summary><br>
|
|
137
|
+
|
|
138
|
+
```ts
|
|
139
|
+
// vite.config.js [Vite]
|
|
140
|
+
import Components from 'unplugin-vue-components/vite'
|
|
141
|
+
import { defineConfig } from 'vite'
|
|
142
|
+
|
|
143
|
+
export default defineConfig({
|
|
144
|
+
plugins: [
|
|
145
|
+
Components({ /* options */ })
|
|
146
|
+
]
|
|
147
|
+
})
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
```ts
|
|
151
|
+
// quasar.config.js
|
|
152
|
+
export default defineConfig(() => {
|
|
153
|
+
return {
|
|
154
|
+
build: {
|
|
155
|
+
vitePlugins: [
|
|
156
|
+
['unplugin-vue-components/vite', { /* options */ }],
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
}
|
|
160
|
+
})
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
<br></details>
|
|
164
|
+
|
|
135
165
|
<details>
|
|
136
166
|
<summary>esbuild</summary><br>
|
|
137
167
|
|
|
@@ -229,6 +259,7 @@ Supported Resolvers:
|
|
|
229
259
|
- [Prime Vue](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/prime-vue.ts)
|
|
230
260
|
- [Quasar](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/quasar.ts)
|
|
231
261
|
- [TDesign](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/tdesign.ts)
|
|
262
|
+
- [`@tdesign-vue-next/auto-import-resolver`](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/auto-import-resolver/README.md) - TDesign's own auto-import resolver
|
|
232
263
|
- [Vant](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/vant.ts)
|
|
233
264
|
- [`@vant/auto-import-resolver`](https://github.com/youzan/vant/blob/main/packages/vant-auto-import-resolver/README.md) - Vant's own auto-import resolver
|
|
234
265
|
- [Varlet UI](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/varlet-ui.ts)
|
|
@@ -360,9 +391,10 @@ Components({
|
|
|
360
391
|
extensions: ['vue'],
|
|
361
392
|
|
|
362
393
|
// Glob patterns to match file names to be detected as components.
|
|
394
|
+
// You can also specify multiple like this: `src/components/*.{vue,tsx}`
|
|
363
395
|
// When specified, the `dirs`, `extensions`, and `directoryAsNamespace` options will be ignored.
|
|
364
396
|
// If you want to exclude components being registered, use negative globs with leading `!`.
|
|
365
|
-
globs: ['src/components/*.
|
|
397
|
+
globs: ['src/components/*.vue'],
|
|
366
398
|
|
|
367
399
|
// search for subdirectories
|
|
368
400
|
deep: true,
|
|
@@ -413,7 +445,10 @@ Components({
|
|
|
413
445
|
version: 2.7,
|
|
414
446
|
|
|
415
447
|
// Only provide types of components in library (registered globally)
|
|
416
|
-
|
|
448
|
+
// see https://github.com/unplugin/unplugin-vue-components/blob/main/src/core/type-imports/index.ts
|
|
449
|
+
types: [
|
|
450
|
+
/* ... */
|
|
451
|
+
],
|
|
417
452
|
})
|
|
418
453
|
```
|
|
419
454
|
|
package/dist/esbuild.cjs
CHANGED
package/dist/esbuild.d.cts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Options } from "./types-
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./types-BED632qH.cjs";
|
|
2
|
+
import * as esbuild0 from "esbuild";
|
|
3
3
|
|
|
4
4
|
//#region src/esbuild.d.ts
|
|
5
|
-
declare const _default: (options: Options) =>
|
|
6
|
-
|
|
5
|
+
declare const _default: (options: Options) => esbuild0.Plugin;
|
|
7
6
|
//#endregion
|
|
8
7
|
export { _default as default };
|
package/dist/esbuild.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Options } from "./types-
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./types-CFwIfA2K.js";
|
|
2
|
+
import * as esbuild0 from "esbuild";
|
|
3
3
|
|
|
4
4
|
//#region src/esbuild.d.ts
|
|
5
|
-
declare const _default: (options: Options) =>
|
|
6
|
-
|
|
5
|
+
declare const _default: (options: Options) => esbuild0.Plugin;
|
|
7
6
|
//#endregion
|
|
8
7
|
export { _default as default };
|
package/dist/esbuild.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
const require_utils = require('./utils-
|
|
3
|
-
const require_src = require('./src-
|
|
2
|
+
const require_utils = require('./utils-DGIwBjsw.cjs');
|
|
3
|
+
const require_src = require('./src-Cb65v4On.cjs');
|
|
4
4
|
require('./types-CBTc19th.cjs');
|
|
5
5
|
|
|
6
6
|
exports.camelCase = require_utils.camelCase;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { ComponentInfo, ComponentResolveResult, ComponentResolver, ComponentResolverFunction, ComponentResolverObject, ComponentsImportMap, ImportInfo, ImportInfoLegacy, Matcher, Options, PublicPluginAPI, ResolvedOptions, SideEffectsInfo, SupportedTransformer, Transformer, TypeImport } from "./types-
|
|
2
|
-
import * as
|
|
1
|
+
import { ComponentInfo, ComponentResolveResult, ComponentResolver, ComponentResolverFunction, ComponentResolverObject, ComponentsImportMap, ImportInfo, ImportInfoLegacy, Matcher, Options, PublicPluginAPI, ResolvedOptions, SideEffectsInfo, SupportedTransformer, Transformer, TypeImport } from "./types-BED632qH.cjs";
|
|
2
|
+
import * as unplugin0 from "unplugin";
|
|
3
3
|
import { FilterPattern } from "unplugin-utils";
|
|
4
4
|
|
|
5
5
|
//#region src/core/unplugin.d.ts
|
|
6
|
-
declare const _default:
|
|
7
|
-
|
|
6
|
+
declare const _default: unplugin0.UnpluginInstance<Options, boolean>;
|
|
8
7
|
//#endregion
|
|
9
8
|
//#region src/core/utils.d.ts
|
|
10
9
|
declare function pascalCase(str: string): string;
|
|
11
10
|
declare function camelCase(str: string): string;
|
|
12
11
|
declare function kebabCase(key: string): string;
|
|
13
|
-
|
|
14
12
|
//#endregion
|
|
15
13
|
export { ComponentInfo, ComponentResolveResult, ComponentResolver, ComponentResolverFunction, ComponentResolverObject, ComponentsImportMap, ImportInfo, ImportInfoLegacy, Matcher, Options, PublicPluginAPI, ResolvedOptions, SideEffectsInfo, SupportedTransformer, Transformer, TypeImport, camelCase, _default as default, kebabCase, pascalCase };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { ComponentInfo, ComponentResolveResult, ComponentResolver, ComponentResolverFunction, ComponentResolverObject, ComponentsImportMap, ImportInfo, ImportInfoLegacy, Matcher, Options, PublicPluginAPI, ResolvedOptions, SideEffectsInfo, SupportedTransformer, Transformer, TypeImport } from "./types-
|
|
2
|
-
import * as
|
|
1
|
+
import { ComponentInfo, ComponentResolveResult, ComponentResolver, ComponentResolverFunction, ComponentResolverObject, ComponentsImportMap, ImportInfo, ImportInfoLegacy, Matcher, Options, PublicPluginAPI, ResolvedOptions, SideEffectsInfo, SupportedTransformer, Transformer, TypeImport } from "./types-CFwIfA2K.js";
|
|
2
|
+
import * as unplugin0 from "unplugin";
|
|
3
3
|
import { FilterPattern } from "unplugin-utils";
|
|
4
4
|
|
|
5
5
|
//#region src/core/unplugin.d.ts
|
|
6
|
-
declare const _default:
|
|
7
|
-
|
|
6
|
+
declare const _default: unplugin0.UnpluginInstance<Options, boolean>;
|
|
8
7
|
//#endregion
|
|
9
8
|
//#region src/core/utils.d.ts
|
|
10
9
|
declare function pascalCase(str: string): string;
|
|
11
10
|
declare function camelCase(str: string): string;
|
|
12
11
|
declare function kebabCase(key: string): string;
|
|
13
|
-
|
|
14
12
|
//#endregion
|
|
15
13
|
export { ComponentInfo, ComponentResolveResult, ComponentResolver, ComponentResolverFunction, ComponentResolverObject, ComponentsImportMap, ImportInfo, ImportInfoLegacy, Matcher, Options, PublicPluginAPI, ResolvedOptions, SideEffectsInfo, SupportedTransformer, Transformer, TypeImport, camelCase, _default as default, kebabCase, pascalCase };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { camelCase, kebabCase, pascalCase } from "./utils-
|
|
2
|
-
import { unplugin_default } from "./src-
|
|
1
|
+
import { camelCase, kebabCase, pascalCase } from "./utils-9P5ODluf.js";
|
|
2
|
+
import { unplugin_default } from "./src-Be7SlxMY.js";
|
|
3
3
|
import "./types-Cv8NMtbo.js";
|
|
4
4
|
|
|
5
5
|
export { camelCase, unplugin_default as default, kebabCase, pascalCase };
|
package/dist/nuxt.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_utils = require('./utils-
|
|
2
|
-
const require_src = require('./src-
|
|
1
|
+
const require_utils = require('./utils-DGIwBjsw.cjs');
|
|
2
|
+
const require_src = require('./src-Cb65v4On.cjs');
|
|
3
3
|
require('./types-CBTc19th.cjs');
|
|
4
4
|
const __nuxt_kit = require_utils.__toESM(require("@nuxt/kit"));
|
|
5
5
|
|
package/dist/nuxt.d.cts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Options } from "./types-
|
|
1
|
+
import { Options } from "./types-BED632qH.cjs";
|
|
2
2
|
import * as _nuxt_schema0 from "@nuxt/schema";
|
|
3
3
|
|
|
4
4
|
//#region src/nuxt.d.ts
|
|
5
5
|
declare const _default: _nuxt_schema0.NuxtModule<Options, Options, false>;
|
|
6
|
-
|
|
7
6
|
//#endregion
|
|
8
7
|
export { _default as default };
|
package/dist/nuxt.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Options } from "./types-
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./types-CFwIfA2K.js";
|
|
2
|
+
import * as _nuxt_schema0 from "@nuxt/schema";
|
|
3
3
|
|
|
4
4
|
//#region src/nuxt.d.ts
|
|
5
|
-
declare const _default:
|
|
6
|
-
|
|
5
|
+
declare const _default: _nuxt_schema0.NuxtModule<Options, Options, false>;
|
|
7
6
|
//#endregion
|
|
8
7
|
export { _default as default };
|
package/dist/nuxt.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./utils-
|
|
2
|
-
import { unplugin_default } from "./src-
|
|
1
|
+
import "./utils-9P5ODluf.js";
|
|
2
|
+
import { unplugin_default } from "./src-Be7SlxMY.js";
|
|
3
3
|
import "./types-Cv8NMtbo.js";
|
|
4
4
|
import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
|
|
5
5
|
|
package/dist/resolvers.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_utils = require('./utils-
|
|
1
|
+
const require_utils = require('./utils-DGIwBjsw.cjs');
|
|
2
2
|
const node_fs = require_utils.__toESM(require("node:fs"));
|
|
3
3
|
const node_process = require_utils.__toESM(require("node:process"));
|
|
4
4
|
const node_path = require_utils.__toESM(require("node:path"));
|
package/dist/resolvers.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentResolveResult, ComponentResolver } from "./types-
|
|
1
|
+
import { ComponentResolveResult, ComponentResolver } from "./types-BED632qH.cjs";
|
|
2
2
|
import { FilterPattern } from "unplugin-utils";
|
|
3
3
|
|
|
4
4
|
//#region src/core/resolvers/antdv.d.ts
|
|
@@ -57,7 +57,8 @@ interface AntDesignVueResolverOptions {
|
|
|
57
57
|
* @author @yangss3
|
|
58
58
|
* @link https://antdv.com/
|
|
59
59
|
*/
|
|
60
|
-
declare function AntDesignVueResolver(options?: AntDesignVueResolverOptions): ComponentResolver;
|
|
60
|
+
declare function AntDesignVueResolver(options?: AntDesignVueResolverOptions): ComponentResolver;
|
|
61
|
+
//#endregion
|
|
61
62
|
//#region src/core/resolvers/arco.d.ts
|
|
62
63
|
type DisallowResolveIconOption = undefined | false | {
|
|
63
64
|
enable: false;
|
|
@@ -103,7 +104,6 @@ interface ArcoResolverOptions {
|
|
|
103
104
|
*
|
|
104
105
|
*/
|
|
105
106
|
declare function ArcoResolver(options?: ArcoResolverOptions): ComponentResolver;
|
|
106
|
-
|
|
107
107
|
//#endregion
|
|
108
108
|
//#region src/core/resolvers/bootstrap-vue.d.ts
|
|
109
109
|
interface BootstrapVueResolverOptions {
|
|
@@ -135,7 +135,6 @@ declare function BootstrapVueNextResolver(_options?: BootstrapVueResolverOptions
|
|
|
135
135
|
* @link https://www.npmjs.com/package/bootstrap-vue-3
|
|
136
136
|
*/
|
|
137
137
|
declare function BootstrapVue3Resolver(_options?: BootstrapVueResolverOptions): Array<ComponentResolver>;
|
|
138
|
-
|
|
139
138
|
//#endregion
|
|
140
139
|
//#region src/core/resolvers/devui.d.ts
|
|
141
140
|
interface DevResolverOptions {
|
|
@@ -157,7 +156,6 @@ interface DevResolverOptions {
|
|
|
157
156
|
ssr?: boolean;
|
|
158
157
|
}
|
|
159
158
|
declare function DevUiResolver(options?: DevResolverOptions): ComponentResolver[];
|
|
160
|
-
|
|
161
159
|
//#endregion
|
|
162
160
|
//#region src/core/resolvers/element-plus.d.ts
|
|
163
161
|
interface ElementPlusResolverOptions {
|
|
@@ -207,7 +205,6 @@ interface ElementPlusResolverOptions {
|
|
|
207
205
|
*
|
|
208
206
|
*/
|
|
209
207
|
declare function ElementPlusResolver(options?: ElementPlusResolverOptions): ComponentResolver[];
|
|
210
|
-
|
|
211
208
|
//#endregion
|
|
212
209
|
//#region src/core/resolvers/element-ui.d.ts
|
|
213
210
|
interface ElementUiResolverOptions {
|
|
@@ -229,7 +226,6 @@ interface ElementUiResolverOptions {
|
|
|
229
226
|
* @author @nabaonan
|
|
230
227
|
*/
|
|
231
228
|
declare function ElementUiResolver(options?: ElementUiResolverOptions): ComponentResolver;
|
|
232
|
-
|
|
233
229
|
//#endregion
|
|
234
230
|
//#region src/core/resolvers/headless-ui.d.ts
|
|
235
231
|
interface HeadlessUiResolverOptions {
|
|
@@ -246,7 +242,6 @@ interface HeadlessUiResolverOptions {
|
|
|
246
242
|
* @link https://github.com/tailwindlabs/headlessui
|
|
247
243
|
*/
|
|
248
244
|
declare function HeadlessUiResolver(options?: HeadlessUiResolverOptions): ComponentResolver;
|
|
249
|
-
|
|
250
245
|
//#endregion
|
|
251
246
|
//#region src/core/resolvers/idux.d.ts
|
|
252
247
|
interface IduxResolverOptions {
|
|
@@ -285,7 +280,6 @@ interface IduxResolverOptions {
|
|
|
285
280
|
* @link https://idux.site
|
|
286
281
|
*/
|
|
287
282
|
declare function IduxResolver(options?: IduxResolverOptions): ComponentResolver;
|
|
288
|
-
|
|
289
283
|
//#endregion
|
|
290
284
|
//#region src/core/resolvers/inkline.d.ts
|
|
291
285
|
/**
|
|
@@ -295,7 +289,6 @@ declare function IduxResolver(options?: IduxResolverOptions): ComponentResolver;
|
|
|
295
289
|
* @link https://github.com/inkline/inkline
|
|
296
290
|
*/
|
|
297
291
|
declare function InklineResolver(): ComponentResolver;
|
|
298
|
-
|
|
299
292
|
//#endregion
|
|
300
293
|
//#region src/core/resolvers/ionic.d.ts
|
|
301
294
|
/**
|
|
@@ -310,7 +303,6 @@ declare const IonicBuiltInComponents: string[];
|
|
|
310
303
|
* @link https://ionicframework.com/
|
|
311
304
|
*/
|
|
312
305
|
declare function IonicResolver(): ComponentResolver;
|
|
313
|
-
|
|
314
306
|
//#endregion
|
|
315
307
|
//#region src/core/resolvers/layui-vue.d.ts
|
|
316
308
|
interface LayuiVueResolverOptions {
|
|
@@ -340,7 +332,6 @@ interface LayuiVueResolverOptions {
|
|
|
340
332
|
*
|
|
341
333
|
*/
|
|
342
334
|
declare function LayuiVueResolver(options?: LayuiVueResolverOptions): ComponentResolver;
|
|
343
|
-
|
|
344
335
|
//#endregion
|
|
345
336
|
//#region src/core/resolvers/naive-ui.d.ts
|
|
346
337
|
/**
|
|
@@ -350,7 +341,6 @@ declare function LayuiVueResolver(options?: LayuiVueResolverOptions): ComponentR
|
|
|
350
341
|
* @link https://www.naiveui.com/
|
|
351
342
|
*/
|
|
352
343
|
declare function NaiveUiResolver(): ComponentResolver;
|
|
353
|
-
|
|
354
344
|
//#endregion
|
|
355
345
|
//#region src/core/resolvers/prime-vue.d.ts
|
|
356
346
|
interface PrimeVueResolverOptions {
|
|
@@ -387,7 +377,6 @@ interface PrimeVueResolverOptions {
|
|
|
387
377
|
* @link https://github.com/primefaces/primevue
|
|
388
378
|
*/
|
|
389
379
|
declare function PrimeVueResolver(options?: PrimeVueResolverOptions): ComponentResolver;
|
|
390
|
-
|
|
391
380
|
//#endregion
|
|
392
381
|
//#region src/core/resolvers/quasar.d.ts
|
|
393
382
|
/**
|
|
@@ -396,7 +385,6 @@ declare function PrimeVueResolver(options?: PrimeVueResolverOptions): ComponentR
|
|
|
396
385
|
* @link https://github.com/quasarframework/quasar
|
|
397
386
|
*/
|
|
398
387
|
declare function QuasarResolver(): ComponentResolver;
|
|
399
|
-
|
|
400
388
|
//#endregion
|
|
401
389
|
//#region src/core/resolvers/tdesign.d.ts
|
|
402
390
|
interface TDesignResolverOptions {
|
|
@@ -422,7 +410,6 @@ interface TDesignResolverOptions {
|
|
|
422
410
|
exclude?: FilterPattern;
|
|
423
411
|
}
|
|
424
412
|
declare function TDesignResolver(options?: TDesignResolverOptions): ComponentResolver;
|
|
425
|
-
|
|
426
413
|
//#endregion
|
|
427
414
|
//#region src/core/resolvers/vant.d.ts
|
|
428
415
|
interface VantResolverOptions {
|
|
@@ -439,7 +426,6 @@ interface VantResolverOptions {
|
|
|
439
426
|
* @link https://github.com/youzan/vant
|
|
440
427
|
*/
|
|
441
428
|
declare function VantResolver(options?: VantResolverOptions): ComponentResolver;
|
|
442
|
-
|
|
443
429
|
//#endregion
|
|
444
430
|
//#region src/core/resolvers/varlet-ui.d.ts
|
|
445
431
|
interface VarletUIResolverOptions {
|
|
@@ -491,7 +477,6 @@ declare function getResolved(name: string, options: VarletUIResolverOptions): Co
|
|
|
491
477
|
* @link https://github.com/varletjs/varlet-vue2
|
|
492
478
|
*/
|
|
493
479
|
declare function VarletUIResolver(options?: VarletUIResolverOptions): ComponentResolver[];
|
|
494
|
-
|
|
495
480
|
//#endregion
|
|
496
481
|
//#region src/core/resolvers/veui.d.ts
|
|
497
482
|
interface VeuiPeerConfig {
|
|
@@ -543,7 +528,6 @@ interface VeuiResolverOptions {
|
|
|
543
528
|
* @link https://github.com/ecomfe/veui
|
|
544
529
|
*/
|
|
545
530
|
declare function VeuiResolver(options?: VeuiResolverOptions): ComponentResolver;
|
|
546
|
-
|
|
547
531
|
//#endregion
|
|
548
532
|
//#region src/core/resolvers/view-ui.d.ts
|
|
549
533
|
/**
|
|
@@ -556,7 +540,6 @@ declare function VeuiResolver(options?: VeuiResolverOptions): ComponentResolver;
|
|
|
556
540
|
* - scroll component has a template syntax called lang='html',it is require html-loader,but vite plugin not support yet,remove it can run. relate pr: https://github.com/view-design/ViewUI/pull/985
|
|
557
541
|
*/
|
|
558
542
|
declare function ViewUiResolver(): ComponentResolver;
|
|
559
|
-
|
|
560
543
|
//#endregion
|
|
561
544
|
//#region src/core/resolvers/vuetify.d.ts
|
|
562
545
|
/**
|
|
@@ -571,7 +554,6 @@ declare function VuetifyResolver(): ComponentResolver;
|
|
|
571
554
|
* @link https://github.com/vuetifyjs/vuetify
|
|
572
555
|
*/
|
|
573
556
|
declare function Vuetify3Resolver(): ComponentResolver;
|
|
574
|
-
|
|
575
557
|
//#endregion
|
|
576
558
|
//#region src/core/resolvers/vueuse.d.ts
|
|
577
559
|
/**
|
|
@@ -580,7 +562,6 @@ declare function Vuetify3Resolver(): ComponentResolver;
|
|
|
580
562
|
* @link https://github.com/vueuse/vueuse
|
|
581
563
|
*/
|
|
582
564
|
declare function VueUseComponentsResolver(): ComponentResolver;
|
|
583
|
-
|
|
584
565
|
//#endregion
|
|
585
566
|
//#region src/core/resolvers/vueuse-directive.d.ts
|
|
586
567
|
/**
|
|
@@ -589,6 +570,5 @@ declare function VueUseComponentsResolver(): ComponentResolver;
|
|
|
589
570
|
* @link https://github.com/vueuse/vueuse
|
|
590
571
|
*/
|
|
591
572
|
declare function VueUseDirectiveResolver(): ComponentResolver;
|
|
592
|
-
|
|
593
573
|
//#endregion
|
|
594
574
|
export { AllowResolveIconOption, AntDesignVueResolver, AntDesignVueResolverOptions, ArcoResolver, ArcoResolverOptions, BootstrapVue3Resolver, BootstrapVueNextResolver, BootstrapVueResolver, BootstrapVueResolverOptions, DevResolverOptions, DevUiResolver, DisallowResolveIconOption, ElementPlusResolver, ElementPlusResolverOptions, ElementUiResolver, ElementUiResolverOptions, HeadlessUiResolver, HeadlessUiResolverOptions, IduxResolver, IduxResolverOptions, InklineResolver, IonicBuiltInComponents, IonicResolver, LayuiVueResolver, LayuiVueResolverOptions, NaiveUiResolver, PrimeVueResolver, PrimeVueResolverOptions, QuasarResolver, ResolveIconsOption, TDesignResolver, TDesignResolverOptions, VantResolver, VantResolverOptions, VarletUIResolver, VarletUIResolverOptions, VeuiResolver, VeuiResolverOptions, ViewUiResolver, VueUseComponentsResolver, VueUseDirectiveResolver, Vuetify3Resolver, VuetifyResolver, getResolved };
|
package/dist/resolvers.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentResolveResult, ComponentResolver } from "./types-
|
|
1
|
+
import { ComponentResolveResult, ComponentResolver } from "./types-CFwIfA2K.js";
|
|
2
2
|
import { FilterPattern } from "unplugin-utils";
|
|
3
3
|
|
|
4
4
|
//#region src/core/resolvers/antdv.d.ts
|
|
@@ -57,7 +57,8 @@ interface AntDesignVueResolverOptions {
|
|
|
57
57
|
* @author @yangss3
|
|
58
58
|
* @link https://antdv.com/
|
|
59
59
|
*/
|
|
60
|
-
declare function AntDesignVueResolver(options?: AntDesignVueResolverOptions): ComponentResolver;
|
|
60
|
+
declare function AntDesignVueResolver(options?: AntDesignVueResolverOptions): ComponentResolver;
|
|
61
|
+
//#endregion
|
|
61
62
|
//#region src/core/resolvers/arco.d.ts
|
|
62
63
|
type DisallowResolveIconOption = undefined | false | {
|
|
63
64
|
enable: false;
|
|
@@ -103,7 +104,6 @@ interface ArcoResolverOptions {
|
|
|
103
104
|
*
|
|
104
105
|
*/
|
|
105
106
|
declare function ArcoResolver(options?: ArcoResolverOptions): ComponentResolver;
|
|
106
|
-
|
|
107
107
|
//#endregion
|
|
108
108
|
//#region src/core/resolvers/bootstrap-vue.d.ts
|
|
109
109
|
interface BootstrapVueResolverOptions {
|
|
@@ -135,7 +135,6 @@ declare function BootstrapVueNextResolver(_options?: BootstrapVueResolverOptions
|
|
|
135
135
|
* @link https://www.npmjs.com/package/bootstrap-vue-3
|
|
136
136
|
*/
|
|
137
137
|
declare function BootstrapVue3Resolver(_options?: BootstrapVueResolverOptions): Array<ComponentResolver>;
|
|
138
|
-
|
|
139
138
|
//#endregion
|
|
140
139
|
//#region src/core/resolvers/devui.d.ts
|
|
141
140
|
interface DevResolverOptions {
|
|
@@ -157,7 +156,6 @@ interface DevResolverOptions {
|
|
|
157
156
|
ssr?: boolean;
|
|
158
157
|
}
|
|
159
158
|
declare function DevUiResolver(options?: DevResolverOptions): ComponentResolver[];
|
|
160
|
-
|
|
161
159
|
//#endregion
|
|
162
160
|
//#region src/core/resolvers/element-plus.d.ts
|
|
163
161
|
interface ElementPlusResolverOptions {
|
|
@@ -207,7 +205,6 @@ interface ElementPlusResolverOptions {
|
|
|
207
205
|
*
|
|
208
206
|
*/
|
|
209
207
|
declare function ElementPlusResolver(options?: ElementPlusResolverOptions): ComponentResolver[];
|
|
210
|
-
|
|
211
208
|
//#endregion
|
|
212
209
|
//#region src/core/resolvers/element-ui.d.ts
|
|
213
210
|
interface ElementUiResolverOptions {
|
|
@@ -229,7 +226,6 @@ interface ElementUiResolverOptions {
|
|
|
229
226
|
* @author @nabaonan
|
|
230
227
|
*/
|
|
231
228
|
declare function ElementUiResolver(options?: ElementUiResolverOptions): ComponentResolver;
|
|
232
|
-
|
|
233
229
|
//#endregion
|
|
234
230
|
//#region src/core/resolvers/headless-ui.d.ts
|
|
235
231
|
interface HeadlessUiResolverOptions {
|
|
@@ -246,7 +242,6 @@ interface HeadlessUiResolverOptions {
|
|
|
246
242
|
* @link https://github.com/tailwindlabs/headlessui
|
|
247
243
|
*/
|
|
248
244
|
declare function HeadlessUiResolver(options?: HeadlessUiResolverOptions): ComponentResolver;
|
|
249
|
-
|
|
250
245
|
//#endregion
|
|
251
246
|
//#region src/core/resolvers/idux.d.ts
|
|
252
247
|
interface IduxResolverOptions {
|
|
@@ -285,7 +280,6 @@ interface IduxResolverOptions {
|
|
|
285
280
|
* @link https://idux.site
|
|
286
281
|
*/
|
|
287
282
|
declare function IduxResolver(options?: IduxResolverOptions): ComponentResolver;
|
|
288
|
-
|
|
289
283
|
//#endregion
|
|
290
284
|
//#region src/core/resolvers/inkline.d.ts
|
|
291
285
|
/**
|
|
@@ -295,7 +289,6 @@ declare function IduxResolver(options?: IduxResolverOptions): ComponentResolver;
|
|
|
295
289
|
* @link https://github.com/inkline/inkline
|
|
296
290
|
*/
|
|
297
291
|
declare function InklineResolver(): ComponentResolver;
|
|
298
|
-
|
|
299
292
|
//#endregion
|
|
300
293
|
//#region src/core/resolvers/ionic.d.ts
|
|
301
294
|
/**
|
|
@@ -310,7 +303,6 @@ declare const IonicBuiltInComponents: string[];
|
|
|
310
303
|
* @link https://ionicframework.com/
|
|
311
304
|
*/
|
|
312
305
|
declare function IonicResolver(): ComponentResolver;
|
|
313
|
-
|
|
314
306
|
//#endregion
|
|
315
307
|
//#region src/core/resolvers/layui-vue.d.ts
|
|
316
308
|
interface LayuiVueResolverOptions {
|
|
@@ -340,7 +332,6 @@ interface LayuiVueResolverOptions {
|
|
|
340
332
|
*
|
|
341
333
|
*/
|
|
342
334
|
declare function LayuiVueResolver(options?: LayuiVueResolverOptions): ComponentResolver;
|
|
343
|
-
|
|
344
335
|
//#endregion
|
|
345
336
|
//#region src/core/resolvers/naive-ui.d.ts
|
|
346
337
|
/**
|
|
@@ -350,7 +341,6 @@ declare function LayuiVueResolver(options?: LayuiVueResolverOptions): ComponentR
|
|
|
350
341
|
* @link https://www.naiveui.com/
|
|
351
342
|
*/
|
|
352
343
|
declare function NaiveUiResolver(): ComponentResolver;
|
|
353
|
-
|
|
354
344
|
//#endregion
|
|
355
345
|
//#region src/core/resolvers/prime-vue.d.ts
|
|
356
346
|
interface PrimeVueResolverOptions {
|
|
@@ -387,7 +377,6 @@ interface PrimeVueResolverOptions {
|
|
|
387
377
|
* @link https://github.com/primefaces/primevue
|
|
388
378
|
*/
|
|
389
379
|
declare function PrimeVueResolver(options?: PrimeVueResolverOptions): ComponentResolver;
|
|
390
|
-
|
|
391
380
|
//#endregion
|
|
392
381
|
//#region src/core/resolvers/quasar.d.ts
|
|
393
382
|
/**
|
|
@@ -396,7 +385,6 @@ declare function PrimeVueResolver(options?: PrimeVueResolverOptions): ComponentR
|
|
|
396
385
|
* @link https://github.com/quasarframework/quasar
|
|
397
386
|
*/
|
|
398
387
|
declare function QuasarResolver(): ComponentResolver;
|
|
399
|
-
|
|
400
388
|
//#endregion
|
|
401
389
|
//#region src/core/resolvers/tdesign.d.ts
|
|
402
390
|
interface TDesignResolverOptions {
|
|
@@ -422,7 +410,6 @@ interface TDesignResolverOptions {
|
|
|
422
410
|
exclude?: FilterPattern;
|
|
423
411
|
}
|
|
424
412
|
declare function TDesignResolver(options?: TDesignResolverOptions): ComponentResolver;
|
|
425
|
-
|
|
426
413
|
//#endregion
|
|
427
414
|
//#region src/core/resolvers/vant.d.ts
|
|
428
415
|
interface VantResolverOptions {
|
|
@@ -439,7 +426,6 @@ interface VantResolverOptions {
|
|
|
439
426
|
* @link https://github.com/youzan/vant
|
|
440
427
|
*/
|
|
441
428
|
declare function VantResolver(options?: VantResolverOptions): ComponentResolver;
|
|
442
|
-
|
|
443
429
|
//#endregion
|
|
444
430
|
//#region src/core/resolvers/varlet-ui.d.ts
|
|
445
431
|
interface VarletUIResolverOptions {
|
|
@@ -491,7 +477,6 @@ declare function getResolved(name: string, options: VarletUIResolverOptions): Co
|
|
|
491
477
|
* @link https://github.com/varletjs/varlet-vue2
|
|
492
478
|
*/
|
|
493
479
|
declare function VarletUIResolver(options?: VarletUIResolverOptions): ComponentResolver[];
|
|
494
|
-
|
|
495
480
|
//#endregion
|
|
496
481
|
//#region src/core/resolvers/veui.d.ts
|
|
497
482
|
interface VeuiPeerConfig {
|
|
@@ -543,7 +528,6 @@ interface VeuiResolverOptions {
|
|
|
543
528
|
* @link https://github.com/ecomfe/veui
|
|
544
529
|
*/
|
|
545
530
|
declare function VeuiResolver(options?: VeuiResolverOptions): ComponentResolver;
|
|
546
|
-
|
|
547
531
|
//#endregion
|
|
548
532
|
//#region src/core/resolvers/view-ui.d.ts
|
|
549
533
|
/**
|
|
@@ -556,7 +540,6 @@ declare function VeuiResolver(options?: VeuiResolverOptions): ComponentResolver;
|
|
|
556
540
|
* - scroll component has a template syntax called lang='html',it is require html-loader,but vite plugin not support yet,remove it can run. relate pr: https://github.com/view-design/ViewUI/pull/985
|
|
557
541
|
*/
|
|
558
542
|
declare function ViewUiResolver(): ComponentResolver;
|
|
559
|
-
|
|
560
543
|
//#endregion
|
|
561
544
|
//#region src/core/resolvers/vuetify.d.ts
|
|
562
545
|
/**
|
|
@@ -571,7 +554,6 @@ declare function VuetifyResolver(): ComponentResolver;
|
|
|
571
554
|
* @link https://github.com/vuetifyjs/vuetify
|
|
572
555
|
*/
|
|
573
556
|
declare function Vuetify3Resolver(): ComponentResolver;
|
|
574
|
-
|
|
575
557
|
//#endregion
|
|
576
558
|
//#region src/core/resolvers/vueuse.d.ts
|
|
577
559
|
/**
|
|
@@ -580,7 +562,6 @@ declare function Vuetify3Resolver(): ComponentResolver;
|
|
|
580
562
|
* @link https://github.com/vueuse/vueuse
|
|
581
563
|
*/
|
|
582
564
|
declare function VueUseComponentsResolver(): ComponentResolver;
|
|
583
|
-
|
|
584
565
|
//#endregion
|
|
585
566
|
//#region src/core/resolvers/vueuse-directive.d.ts
|
|
586
567
|
/**
|
|
@@ -589,6 +570,5 @@ declare function VueUseComponentsResolver(): ComponentResolver;
|
|
|
589
570
|
* @link https://github.com/vueuse/vueuse
|
|
590
571
|
*/
|
|
591
572
|
declare function VueUseDirectiveResolver(): ComponentResolver;
|
|
592
|
-
|
|
593
573
|
//#endregion
|
|
594
574
|
export { AllowResolveIconOption, AntDesignVueResolver, AntDesignVueResolverOptions, ArcoResolver, ArcoResolverOptions, BootstrapVue3Resolver, BootstrapVueNextResolver, BootstrapVueResolver, BootstrapVueResolverOptions, DevResolverOptions, DevUiResolver, DisallowResolveIconOption, ElementPlusResolver, ElementPlusResolverOptions, ElementUiResolver, ElementUiResolverOptions, HeadlessUiResolver, HeadlessUiResolverOptions, IduxResolver, IduxResolverOptions, InklineResolver, IonicBuiltInComponents, IonicResolver, LayuiVueResolver, LayuiVueResolverOptions, NaiveUiResolver, PrimeVueResolver, PrimeVueResolverOptions, QuasarResolver, ResolveIconsOption, TDesignResolver, TDesignResolverOptions, VantResolver, VantResolverOptions, VarletUIResolver, VarletUIResolverOptions, VeuiResolver, VeuiResolverOptions, ViewUiResolver, VueUseComponentsResolver, VueUseDirectiveResolver, Vuetify3Resolver, VuetifyResolver, getResolved };
|
package/dist/resolvers.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { camelCase, getPkgVersion, isExclude, isSSR, kebabCase, pascalCase } from "./utils-9P5ODluf.js";
|
|
2
|
+
import { createRequire } from "node:module";
|
|
2
3
|
import { promises, readFileSync } from "node:fs";
|
|
3
4
|
import process from "node:process";
|
|
4
5
|
import { join, normalize } from "node:path";
|
|
@@ -6,6 +7,33 @@ import Debug from "debug";
|
|
|
6
7
|
import { resolveModule } from "local-pkg";
|
|
7
8
|
import { resolvePathSync } from "mlly";
|
|
8
9
|
|
|
10
|
+
//#region rolldown:runtime
|
|
11
|
+
var __create = Object.create;
|
|
12
|
+
var __defProp = Object.defineProperty;
|
|
13
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
14
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
15
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
16
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
17
|
+
var __commonJS = (cb, mod) => function() {
|
|
18
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
19
|
+
};
|
|
20
|
+
var __copyProps = (to, from, except, desc) => {
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
22
|
+
key = keys[i];
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
24
|
+
get: ((k) => from[k]).bind(null, key),
|
|
25
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
return to;
|
|
29
|
+
};
|
|
30
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
31
|
+
value: mod,
|
|
32
|
+
enumerable: true
|
|
33
|
+
}) : target, mod));
|
|
34
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
9
37
|
//#region src/core/resolvers/antdv.ts
|
|
10
38
|
const matchComponents$3 = [
|
|
11
39
|
{
|
package/dist/rollup.cjs
CHANGED
package/dist/rollup.d.cts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Options } from "./types-
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./types-BED632qH.cjs";
|
|
2
|
+
import * as rollup0 from "rollup";
|
|
3
3
|
|
|
4
4
|
//#region src/rollup.d.ts
|
|
5
|
-
declare const _default: (options: Options) =>
|
|
6
|
-
|
|
5
|
+
declare const _default: (options: Options) => rollup0.Plugin<any> | rollup0.Plugin<any>[];
|
|
7
6
|
//#endregion
|
|
8
7
|
export { _default as default };
|