@skyservice-developers/vue-dev-kit 1.2.8 → 1.2.9

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyservice-developers/vue-dev-kit",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "description": "Vue 2 and Vue 3 developer toolkit - components and helpers",
5
5
  "type": "module",
6
6
  "main": "./dist/vue3/vue-dev-kit.cjs",
@@ -134,15 +134,17 @@ const localStorageItems = ref([])
134
134
  const parentLang = ref({})
135
135
 
136
136
  // Track page visit in parent's componentStats
137
- console.log('[Header] trackPageName:', props.trackPageName, 'isInIframe:', isInIframe())
138
137
  if (isInIframe() && props.trackPageName) {
139
- const msg = {
138
+ window.parent.postMessage({
140
139
  type: 'trackVisit',
141
140
  name: props.trackPageName,
142
141
  path: props.trackPagePath || `/${props.trackPageName}`,
143
- }
144
- console.log('[Header] sending trackVisit:', msg)
145
- window.parent.postMessage(msg, '*')
142
+ }, '*')
143
+ }
144
+
145
+ // Set rocketMode in parent
146
+ if (isInIframe()) {
147
+ window.parent.postMessage({ type: 'setRocketMode', value: true }, '*')
146
148
  }
147
149
 
148
150
  // Load translations from parent