@pinegrow/vite-plugin 3.0.0-beta.13 → 3.0.0-beta.131

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.13",
3
+ "version": "3.0.0-beta.131",
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,55 @@
1
+ import type { PinegrowTailwindCSSModuleOptions } from '@pinegrow/tailwindcss-plugin'
2
+ import type { PluginOption as VitePluginOption } from 'vite'
3
+
4
+ export interface LiveDesignerOptions {
5
+ /**
6
+ * Absolute path to the root of a monorepo.
7
+ * Relative path from the project root to the root of a monorepo.
8
+ */
9
+ repoRoot?: string
10
+
11
+ /**
12
+ * Absolute path to a custom config file (for eg, vite-dev.config.js).
13
+ * Relative path from the project root to a custom config file (for eg, vite-dev.config.js).
14
+ */
15
+ configPath?: string
16
+
17
+ /**
18
+ * Key of the devtools exposed on the window object.
19
+ * For instructions, check Config Panel in Vue Designer
20
+ */
21
+ devtoolsKey?: string
22
+
23
+ /**
24
+ * Router history modes - 'html5', 'hash'
25
+ * @default 'html5'
26
+ */
27
+
28
+ routerHistoryMode?: string //
29
+
30
+ /**
31
+ * Array of Pinegrow plugins (npm package names)
32
+ * To use file-based Pinegrow Plugins, provide the absolute path of the plugin file, for eg, [path.resolve(__dirname, './pg-plugin/index.js')]
33
+ */
34
+ plugins?: string[]
35
+
36
+ /**
37
+ * Pinegrow TailwindCSS plugin options
38
+ */
39
+ tailwindcss?: PinegrowTailwindCSSModuleOptions
40
+ }
41
+
42
+ interface PinegrowVitePlugin<VitePluginOption> {
43
+ /**
44
+ * Pinegrow Live Designer options
45
+ * For details, check https://pinegrow.com/vue-designer
46
+ */
47
+ liveDesigner?: {
48
+ [key in string]?: any
49
+ } & LiveDesignerOptions
50
+ }
51
+
52
+ declare function export_default(liveDesigner: LiveDesignerOptions): PinegrowVitePlugin
53
+
54
+ export { PinegrowVitePlugin, LiveDesignerOptions, export_default as default, export_default as liveDesigner }
55
+