@pinegrow/vite-plugin 3.0.0-beta.102 → 3.0.0-beta.104
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/dist/index.cjs +1 -1
- package/package.json +1 -1
- package/types.d.ts +86 -12
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -1,13 +1,87 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
//
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import type { Options as PinegrowTailwindCSSPluginOptions } from '@pinegrow/tailwindcss-plugin'
|
|
2
|
+
import type { Options as AutoImportComponentsOptions } from 'unplugin-vue-components/types'
|
|
3
|
+
import type { Options as AutoImportAPIsOptions } from 'unplugin-auto-import/types'
|
|
4
|
+
|
|
5
|
+
interface Options {
|
|
6
|
+
repoRoot?: string // relative path from the project root to the root of the monorepo
|
|
7
|
+
|
|
8
|
+
configPath?: string // relative path from project root to the custom config file when it's not auto-detected, for eg, './my-config.dev.js' or './docs/my-config.dev.js', defaults to viteServer.config.configFile
|
|
9
|
+
|
|
10
|
+
// pinegrow plugins
|
|
11
|
+
plugins?: string[]
|
|
12
|
+
|
|
13
|
+
// User can override the themePath in the plugin's options
|
|
14
|
+
// {
|
|
15
|
+
// key: 'vuetify',
|
|
16
|
+
// pluginPath: '...',
|
|
17
|
+
// options: {
|
|
18
|
+
// themePath: './src/themes' // directory or file, for eg, './src/themes/my-pg-theme.cjs'
|
|
19
|
+
// }
|
|
20
|
+
// }
|
|
21
|
+
|
|
22
|
+
devtoolsKey?: string
|
|
23
|
+
// vscodeTunnelUrl?: string
|
|
24
|
+
|
|
25
|
+
// routerHistoryMode?: string // 'hash', 'html5' (default)
|
|
26
|
+
|
|
27
|
+
// Adds to package.json, used when a package was installed (available in lock file) probably as a peer dependency, so not available in package.json
|
|
28
|
+
// mergeWithPackageJson?: {
|
|
29
|
+
// dependencies?: {}
|
|
30
|
+
// devDependencies?: {
|
|
31
|
+
// // vite: string;
|
|
32
|
+
// }
|
|
33
|
+
// }
|
|
34
|
+
|
|
35
|
+
customTypes?: {
|
|
36
|
+
// To apply type overrides to a specific component (overrides above default fn),
|
|
37
|
+
// ComponentName: { prop: { customType: 'icon' } },
|
|
38
|
+
// VRating: {
|
|
39
|
+
// ripple: {
|
|
40
|
+
// customType: "boolean";
|
|
41
|
+
// };
|
|
42
|
+
// };
|
|
43
|
+
// VSelect: {
|
|
44
|
+
// variant: {
|
|
45
|
+
// customType: 'select',
|
|
46
|
+
// options: ['plain', 'outlined', 'underlined', 'solo'],
|
|
47
|
+
// default: ''
|
|
48
|
+
// },
|
|
49
|
+
// density: {
|
|
50
|
+
// customType: 'select',
|
|
51
|
+
// options: ['default', 'compact', 'comfortable']
|
|
52
|
+
// },
|
|
53
|
+
// disabled: {
|
|
54
|
+
// customType: 'boolean'
|
|
55
|
+
// },
|
|
56
|
+
// appendIcon: {
|
|
57
|
+
// customType: 'icon'
|
|
58
|
+
// },
|
|
59
|
+
// }
|
|
60
|
+
// To apply type overrides to all components,
|
|
61
|
+
// all: { prop: { customType: 'icon' } },
|
|
62
|
+
defaultTypes?: {
|
|
63
|
+
// density: {
|
|
64
|
+
// customType: "select";
|
|
65
|
+
// // add options when customType is 'select'
|
|
66
|
+
// options: ["default", "compact", "comfortable"];
|
|
67
|
+
// };
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
tailwindcss?: PinegrowTailwindCSSPluginOptions
|
|
72
|
+
|
|
73
|
+
autoImportComponents?: AutoImportComponentsOptions
|
|
74
|
+
|
|
75
|
+
autoImportAPIs?: AutoImportAPIsOptions
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
interface PinegrowVitePlugin {
|
|
79
|
+
liveDesigner?: {
|
|
80
|
+
[key in string]?: any
|
|
81
|
+
} & Options
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
declare function export_default(liveDesigner: Options): PinegrowVitePlugin
|
|
85
|
+
|
|
86
|
+
export { PinegrowVitePlugin, Options, export_default as default, export_default as liveDesigner }
|
|
13
87
|
|