@pinegrow/vite-plugin 3.0.0-beta.140 → 3.0.0-beta.142
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/vue/index.js +9 -7
- package/package.json +1 -1
package/dist/vue/index.js
CHANGED
|
@@ -17,8 +17,7 @@ export function usePinegrow() {
|
|
|
17
17
|
|
|
18
18
|
if (!(winObj?.process?.client && winObj.process.client !== true)) {
|
|
19
19
|
if (!winObj.pinegrow) {
|
|
20
|
-
//
|
|
21
|
-
// console.log('Cache initialized by Pinegrow Vue Plugin!')
|
|
20
|
+
// console.log('Cache initialized by Vue Plugin!')
|
|
22
21
|
const elCache = reactive(new Map())
|
|
23
22
|
|
|
24
23
|
const enrichWithComponentName = (elCacheObj, localFile) => {
|
|
@@ -31,15 +30,15 @@ export function usePinegrow() {
|
|
|
31
30
|
|
|
32
31
|
winObj.pinegrow = {
|
|
33
32
|
elCache,
|
|
34
|
-
|
|
33
|
+
// pgIdToElComputed,
|
|
34
|
+
// localComponentToElComputed,
|
|
35
|
+
// appTree,
|
|
36
|
+
refFromContext: ref,
|
|
35
37
|
computedFromContext: computed,
|
|
38
|
+
watchFromContext: watch,
|
|
36
39
|
// // Uncomment these two to test locally
|
|
37
40
|
// elCacheErrHandlerFn,
|
|
38
41
|
// elUpdateHanderFn,
|
|
39
|
-
// rootFragmentToPgIdComputed,
|
|
40
|
-
// pgIdToElComputed,
|
|
41
|
-
// localComponentToElComputed,
|
|
42
|
-
// appTree,
|
|
43
42
|
}
|
|
44
43
|
}
|
|
45
44
|
}
|
|
@@ -272,6 +271,9 @@ export function usePinegrow() {
|
|
|
272
271
|
} else {
|
|
273
272
|
pinegrow.elCache.delete(el)
|
|
274
273
|
}
|
|
274
|
+
if (pinegrow.elUpdateHanderFn) {
|
|
275
|
+
pinegrow.elUpdateHanderFn(el)
|
|
276
|
+
}
|
|
275
277
|
}
|
|
276
278
|
}
|
|
277
279
|
|