@data-fair/lib-vue 1.27.1 → 1.27.2
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/package.json +2 -1
- package/vite.d.ts +19 -0
- package/vite.js +19 -1
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@data-fair/lib-vue",
|
|
3
|
-
"version": "1.27.
|
|
3
|
+
"version": "1.27.2",
|
|
4
4
|
"description": "Composables and other utilities for Vue applications in the data-fair stack.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"**/*.js",
|
|
8
|
+
"**/*.js.map",
|
|
8
9
|
"**/*.d.ts"
|
|
9
10
|
],
|
|
10
11
|
"author": "",
|
package/vite.d.ts
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Preset for {@link https://github.com/unplugin/unplugin-auto-import unplugin-auto-import}.
|
|
3
|
+
*
|
|
4
|
+
* Auto-imports Vue, vue-router, vue-i18n built-ins and all data-fair composables
|
|
5
|
+
* so they can be used in `<script setup>` without explicit import statements.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* // vite.config.ts
|
|
10
|
+
* import { autoImports } from '@data-fair/lib-vue/vite.js'
|
|
11
|
+
* import AutoImport from 'unplugin-auto-import/vite'
|
|
12
|
+
*
|
|
13
|
+
* export default defineConfig({
|
|
14
|
+
* plugins: [
|
|
15
|
+
* AutoImport({ imports: [...autoImports] })
|
|
16
|
+
* ]
|
|
17
|
+
* })
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
1
20
|
export declare const autoImports: (string | {
|
|
2
21
|
'@data-fair/lib-vue/session.js': string[];
|
|
3
22
|
'@data-fair/lib-vue/reactive-search-params.js': string[];
|
package/vite.js
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Preset for {@link https://github.com/unplugin/unplugin-auto-import unplugin-auto-import}.
|
|
3
|
+
*
|
|
4
|
+
* Auto-imports Vue, vue-router, vue-i18n built-ins and all data-fair composables
|
|
5
|
+
* so they can be used in `<script setup>` without explicit import statements.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* // vite.config.ts
|
|
10
|
+
* import { autoImports } from '@data-fair/lib-vue/vite.js'
|
|
11
|
+
* import AutoImport from 'unplugin-auto-import/vite'
|
|
12
|
+
*
|
|
13
|
+
* export default defineConfig({
|
|
14
|
+
* plugins: [
|
|
15
|
+
* AutoImport({ imports: [...autoImports] })
|
|
16
|
+
* ]
|
|
17
|
+
* })
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
2
20
|
export const autoImports = [
|
|
3
21
|
'vue',
|
|
4
22
|
'vue-i18n',
|