@pinegrow/vite-plugin 3.0.0-beta.31 → 3.0.0-beta.32

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/dist/vue-plugin.js +3 -15
  2. package/package.json +1 -1
@@ -59,20 +59,6 @@ export function usePinegrow() {
59
59
 
60
60
  winObj.pinegrow = {
61
61
  elCache,
62
- elCacheErrHandlerFn: (...args) => {
63
- // {vnode, hook, rootEl, pgId, key, el, instance, message}
64
- console.log(args.pop())
65
- // connectionManager.fallback_tagTransform(args)
66
- },
67
- elUpdateHanderFn: el => {
68
- if (this.elCache.has(el)) {
69
- const { pgId } = this.elCache.get(el)
70
- if (pgId && pgId === pinegrow.getSelectedElement()?.pgId) {
71
- console.log(`Reselect ${pgId}`)
72
- // pinegrow.reselectElement()
73
- }
74
- }
75
- },
76
62
 
77
63
  rootFragmentToPgIdComputed,
78
64
  pgIdToElComputed,
@@ -162,7 +148,9 @@ export function usePinegrow() {
162
148
  })
163
149
  }
164
150
 
165
- elUpdateHanderFn(el)
151
+ if (pinegrow.elUpdateHanderFn) {
152
+ pinegrow.elUpdateHanderFn(el)
153
+ }
166
154
  } catch (err) {
167
155
  if (pinegrow.elCacheErrHandlerFn) {
168
156
  pinegrow.elCacheErrHandlerFn(vnode, hook, rootEl, pgId, key, el, instance, err.message)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinegrow/vite-plugin",
3
- "version": "3.0.0-beta.31",
3
+ "version": "3.0.0-beta.32",
4
4
  "description": "Pinegrow Vite Plugin",
5
5
  "type": "module",
6
6
  "files": [