@pinegrow/vite-plugin 3.0.0-beta.110 → 3.0.0-beta.111

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 (2) hide show
  1. package/package.json +1 -1
  2. package/types.d.ts +42 -62
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinegrow/vite-plugin",
3
- "version": "3.0.0-beta.110",
3
+ "version": "3.0.0-beta.111",
4
4
  "description": "Pinegrow Vite Plugin",
5
5
  "type": "module",
6
6
  "files": [
package/types.d.ts CHANGED
@@ -3,82 +3,62 @@ import type { Options as AutoImportComponentsOptions } from 'unplugin-vue-compon
3
3
  import type { Options as AutoImportAPIsOptions } from 'unplugin-auto-import/types'
4
4
 
5
5
  interface Options {
6
- repoRoot?: string // relative path from the project root to the root of the monorepo
6
+ /**
7
+ * Absolute path to the root of a monorepo.
8
+ * Relative path from the project root to the root of a monorepo.
9
+ */
10
+ repoRoot?: string
7
11
 
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
- // }
12
+ /**
13
+ * Absolute path to a custom config file (for eg, vite-dev.config.js).
14
+ * Relative path from the project root to a custom config file (for eg, vite-dev.config.js).
15
+ */
16
+ configPath?: string
21
17
 
18
+ /**
19
+ * Key of the devtools exposed on the window object.
20
+ * For instructions, check Config Panel in Vue Designer
21
+ */
22
22
  devtoolsKey?: string
23
- // vscodeTunnelUrl?: string
24
23
 
25
- // routerHistoryMode?: string // 'hash', 'html5' (default)
24
+ /**
25
+ * Router history modes - 'html5', 'hash'
26
+ * @default 'html5'
27
+ */
26
28
 
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
- // }
29
+ routerHistoryMode?: string //
34
30
 
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
- }
31
+ /**
32
+ * Array of Pinegrow plugins (npm package names)
33
+ */
34
+ plugins?: string[]
70
35
 
36
+ /**
37
+ * Pinegrow TailwindCSS plugin options
38
+ */
71
39
  tailwindcss?: PinegrowTailwindCSSPluginOptions
72
-
73
- autoImportComponents?: AutoImportComponentsOptions
74
-
75
- autoImportAPIs?: AutoImportAPIsOptions
76
40
  }
77
41
 
78
42
  interface PinegrowVitePlugin {
43
+ /**
44
+ * Pinegrow Live Designer options
45
+ * For details, check https://pinegrow.com/vue-designer
46
+ */
79
47
  liveDesigner?: {
80
48
  [key in string]?: any
81
49
  } & Options
50
+
51
+ /**
52
+ * unplugin-vue-components options for auto-importing local components and via resolvers
53
+ * For details, check https://github.com/antfu/unplugin-vue-components#configuration
54
+ */
55
+ autoImportComponents?: AutoImportComponentsOptions
56
+
57
+ /**
58
+ * unplugin-auto-import options for auto-importing APIs using presets
59
+ * For details, check https://github.com/antfu/unplugin-auto-import#configuration
60
+ */
61
+ autoImportAPIs?: AutoImportAPIsOptions
82
62
  }
83
63
 
84
64
  declare function export_default(liveDesigner: Options): PinegrowVitePlugin