@pinegrow/vite-plugin 3.0.0 → 3.0.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/dist/index.mjs ADDED
@@ -0,0 +1,4 @@
1
+ import pkg from './index.cjs'
2
+ var liveDesigner = pkg.liveDesigner
3
+ export { liveDesigner }
4
+ export default pkg
package/dist/vue/index.js CHANGED
@@ -212,8 +212,14 @@ export function usePinegrow() {
212
212
  if (index > -1) {
213
213
  const prevElCacheObj = prevElCacheNodes[index]
214
214
  elCacheObj.localFile = elCacheObj.localFile || prevElCacheObj.localFile
215
- elCacheObj.pgId = elCacheObj.pgId || prevElCacheObj.pgId
216
- prevElCacheNodes[index] = elCacheObj
215
+ if (elCacheObj.pgId && prevElCacheObj.pgId && elCacheObj.pgId !== prevElCacheObj.pgId) {
216
+ if (!prevElCacheNodes.map(prevElCacheNode => prevElCacheNode.pgId).includes(elCacheObj.pgId)) {
217
+ prevElCacheNodes.push(elCacheObj)
218
+ }
219
+ } else {
220
+ elCacheObj.pgId = elCacheObj.pgId || prevElCacheObj.pgId
221
+ prevElCacheNodes[index] = elCacheObj
222
+ }
217
223
  } else {
218
224
  prevElCacheNodes.push(elCacheObj)
219
225
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinegrow/vite-plugin",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "Pinegrow Vite Plugin",
5
5
  "type": "module",
6
6
  "files": [
@@ -8,12 +8,12 @@
8
8
  "./types.d.ts"
9
9
  ],
10
10
  "main": "./dist/index.cjs",
11
- "module": "./dist/index.cjs",
11
+ "module": "./dist/index.mjs",
12
12
  "types": "./types.d.ts",
13
13
  "exports": {
14
14
  ".": {
15
15
  "types": "./types.d.ts",
16
- "import": "./dist/index.cjs",
16
+ "import": "./dist/index.mjs",
17
17
  "require": "./dist/index.cjs"
18
18
  },
19
19
  "./dev": {
@@ -38,8 +38,7 @@
38
38
  "build:vite-plugin": "webpack -- --env mode=production vite",
39
39
  "build:vite-plugin:dev": "webpack -- --env mode=development vite",
40
40
  "publish-beta": "npm run increment-beta-version && npm publish",
41
- "increment-beta-version": "npm version prerelease --preid=beta",
42
- "publish": "npm publish"
41
+ "increment-beta-version": "npm version prerelease --preid=beta"
43
42
  },
44
43
  "dependencies": {
45
44
  "@vue/compiler-sfc": "^3.2.45",
package/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // https://pinegrow.com/vue-designer
1
+ // https://vuedesigner.com
2
2
 
3
3
  import type { PinegrowTailwindCSSModuleOptions } from '@pinegrow/tailwindcss-plugin'
4
4
  import type { PluginOption as VitePluginOption } from 'vite'