@3dsource/metabox-front-api 0.0.19-dev.0 → 0.0.19-dev.1

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.esm.js CHANGED
@@ -395,7 +395,7 @@ class Communicator extends EventDispatcher {
395
395
  const data = command.data;
396
396
  const iframe = document.getElementById('embeddedContent');
397
397
  if (!(iframe === null || iframe === void 0 ? void 0 : iframe.contentWindow)) {
398
- console.warn('Iframe not found or not ready');
398
+ console.warn('IFrame not found or not ready');
399
399
  return;
400
400
  }
401
401
  const dataToSend = {
@@ -418,7 +418,7 @@ class Communicator extends EventDispatcher {
418
418
  var _a;
419
419
  // Optional: Perform origin check here for added security
420
420
  // if (event.origin !== "EXPECTED_ORIGIN") return;
421
- if (((_a = event === null || event === void 0 ? void 0 : event.data) === null || _a === void 0 ? void 0 : _a.host) !== 'metabox') {
421
+ if (messageType !== 'metaboxData' || ((_a = event.data) === null || _a === void 0 ? void 0 : _a.host) !== 'metabox') {
422
422
  return;
423
423
  }
424
424
  const { eventType, payload } = event.data.payload;
package/dist/index.umd.js CHANGED
@@ -399,7 +399,7 @@
399
399
  const data = command.data;
400
400
  const iframe = document.getElementById('embeddedContent');
401
401
  if (!(iframe === null || iframe === void 0 ? void 0 : iframe.contentWindow)) {
402
- console.warn('Iframe not found or not ready');
402
+ console.warn('IFrame not found or not ready');
403
403
  return;
404
404
  }
405
405
  const dataToSend = {
@@ -422,7 +422,7 @@
422
422
  var _a;
423
423
  // Optional: Perform origin check here for added security
424
424
  // if (event.origin !== "EXPECTED_ORIGIN") return;
425
- if (((_a = event === null || event === void 0 ? void 0 : event.data) === null || _a === void 0 ? void 0 : _a.host) !== 'metabox') {
425
+ if (messageType !== 'metaboxData' || ((_a = event.data) === null || _a === void 0 ? void 0 : _a.host) !== 'metabox') {
426
426
  return;
427
427
  }
428
428
  const { eventType, payload } = event.data.payload;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3dsource/metabox-front-api",
3
- "version": "0.0.19-dev.0",
3
+ "version": "0.0.19-dev.1",
4
4
  "description": "API for MetaBox BASIC configurator",
5
5
  "keywords": [
6
6
  "metabox",