@3dsource/metabox-front-api 0.0.19-beta.6 → 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.d.ts CHANGED
@@ -16,6 +16,7 @@ export * from './lib/fromCommunicatorEvent';
16
16
  export * from './lib/saveImage';
17
17
  export * from './lib/sleep';
18
18
  export * from './lib/UrlUtils';
19
+ export type * from './interfaces/application-device-types';
19
20
  export type * from './interfaces/UniversalConfigurator';
20
21
  export type * from './interfaces/ToMetaboxMessagePayloads';
21
22
  export type * from './interfaces/FromMetaboxMessagePayloads';
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,10 +418,11 @@ 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
- this.dispatchEvent(messageType, event.data.payload);
424
+ const { eventType, payload } = event.data.payload;
425
+ this.dispatchEvent(eventType, payload);
425
426
  }
426
427
  /**
427
428
  * Initializes the communicator when the embedded content is ready.
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
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,10 +422,11 @@
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
- this.dispatchEvent(messageType, event.data.payload);
428
+ const { eventType, payload } = event.data.payload;
429
+ this.dispatchEvent(eventType, payload);
429
430
  }
430
431
  /**
431
432
  * Initializes the communicator when the embedded content is ready.
@@ -1 +1 @@
1
- {"version":3,"file":"index.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3dsource/metabox-front-api",
3
- "version": "0.0.19-beta.6",
3
+ "version": "0.0.19-dev.1",
4
4
  "description": "API for MetaBox BASIC configurator",
5
5
  "keywords": [
6
6
  "metabox",
@@ -35,9 +35,9 @@
35
35
  "clean": "rimraf dist",
36
36
  "packAll": "npm run clean && npm run build && npm pack",
37
37
  "publish:prod": "npm run packAll && npm publish --access public",
38
- "publish:dev": "npm run packAll && npm publish --access public --tag beta",
38
+ "publish:dev": "npm run packAll && npm publish --access public --tag dev",
39
39
  "bump:prod": "npm version patch && npm run publish:prod",
40
- "bump:dev": "npm version prerelease --preid=beta && npm run publish:dev"
40
+ "bump:dev": "npm version prerelease --preid=dev && npm run publish:dev"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@3dsource/angular-unreal-module": "^0.0.29",