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

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.7",
3
+ "version": "1.2.8",
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,12 +134,15 @@ 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())
137
138
  if (isInIframe() && props.trackPageName) {
138
- window.parent.postMessage({
139
+ const msg = {
139
140
  type: 'trackVisit',
140
141
  name: props.trackPageName,
141
142
  path: props.trackPagePath || `/${props.trackPageName}`,
142
- }, '*')
143
+ }
144
+ console.log('[Header] sending trackVisit:', msg)
145
+ window.parent.postMessage(msg, '*')
143
146
  }
144
147
 
145
148
  // Load translations from parent