@pinegrow/vite-plugin 3.0.0-beta.12 → 3.0.0-beta.121

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 CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "@pinegrow/vite-plugin",
3
- "version": "3.0.0-beta.12",
3
+ "version": "3.0.0-beta.121",
4
4
  "description": "Pinegrow Vite Plugin",
5
5
  "type": "module",
6
6
  "files": [
7
- "dist"
7
+ "dist",
8
+ "./types.d.ts"
8
9
  ],
9
10
  "main": "./dist/index.cjs",
10
11
  "module": "./dist/index.cjs",
12
+ "types": "./types.d.ts",
11
13
  "exports": {
12
14
  ".": {
13
15
  "import": "./dist/index.cjs",
@@ -16,12 +18,18 @@
16
18
  "./dev": {
17
19
  "import": "./src/index.js",
18
20
  "require": "./src/index.js"
21
+ },
22
+ "./vue": {
23
+ "import": "./dist/vue/index.js"
24
+ },
25
+ "./pgia": {
26
+ "import": "./dist/pgia/index.js"
19
27
  }
20
28
  },
21
29
  "keywords": [
22
30
  "pinegrow",
23
- "pinegrow-plugin",
24
- "vite plugin",
31
+ "vue-designer",
32
+ "vite-plugin",
25
33
  "@pinegrow/vite-plugin"
26
34
  ],
27
35
  "author": "Pinegrow (http://pinegrow.com/)",
@@ -33,6 +41,8 @@
33
41
  "increment-beta-version": "npm version prerelease --preid=beta"
34
42
  },
35
43
  "dependencies": {
44
+ "@vue/compiler-sfc": "^3.2.45",
45
+ "magic-string": "^0.27.0",
36
46
  "node-html-parser": "^5.2.0"
37
47
  }
38
48
  }
package/types.d.ts ADDED
@@ -0,0 +1,68 @@
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
+ /**
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
11
+
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
17
+
18
+ /**
19
+ * Key of the devtools exposed on the window object.
20
+ * For instructions, check Config Panel in Vue Designer
21
+ */
22
+ devtoolsKey?: string
23
+
24
+ /**
25
+ * Router history modes - 'html5', 'hash'
26
+ * @default 'html5'
27
+ */
28
+
29
+ routerHistoryMode?: string //
30
+
31
+ /**
32
+ * Array of Pinegrow plugins (npm package names)
33
+ * To use file-based Pinegrow Plugins, provide the absolute path of the plugin file, for eg, [path.resolve(__dirname, './pg-plugin/index.js')]
34
+ */
35
+ plugins?: string[]
36
+
37
+ /**
38
+ * Pinegrow TailwindCSS plugin options
39
+ */
40
+ tailwindcss?: PinegrowTailwindCSSPluginOptions
41
+ }
42
+
43
+ interface PinegrowVitePlugin {
44
+ /**
45
+ * Pinegrow Live Designer options
46
+ * For details, check https://pinegrow.com/vue-designer
47
+ */
48
+ liveDesigner?: {
49
+ [key in string]?: any
50
+ } & Options
51
+
52
+ /**
53
+ * unplugin-vue-components options for auto-importing local components and via resolvers
54
+ * For details, check https://github.com/antfu/unplugin-vue-components#configuration
55
+ */
56
+ autoImportComponents?: AutoImportComponentsOptions
57
+
58
+ /**
59
+ * unplugin-auto-import options for auto-importing APIs using presets
60
+ * For details, check https://github.com/antfu/unplugin-auto-import#configuration
61
+ */
62
+ autoImportAPIs?: AutoImportAPIsOptions
63
+ }
64
+
65
+ declare function export_default(liveDesigner: Options): PinegrowVitePlugin
66
+
67
+ export { PinegrowVitePlugin, Options, export_default as default, export_default as liveDesigner }
68
+