@3dsource/metabox-front-api 1.0.1-beta.0 → 1.0.2-dev.0

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.
@@ -0,0 +1,13 @@
1
+ import { CommandBase } from './CommandBase';
2
+ /**
3
+ * @internal
4
+ * @hidden
5
+ * Represents a command to send Unreal command.
6
+ */
7
+ export declare class UnrealCommand extends CommandBase {
8
+ constructor(payload: unknown);
9
+ }
10
+ /**
11
+ * @deprecated, use `UnrealCommand` instead.
12
+ */
13
+ export declare const SendCommandToUnreal: typeof UnrealCommand;
package/dist/index.d.ts CHANGED
@@ -6,10 +6,11 @@ export { GetPdf } from './actions/GetPdf';
6
6
  export { SetMaterial } from './actions/SetMaterial';
7
7
  export { SetEnvironmentMaterial } from './actions/SetEnvironmentMaterial';
8
8
  export { GetScreenshot } from './actions/GetScreenshot';
9
- export { SendCommandToUnreal } from './actions/SendCommandToUnreal';
9
+ export { SendCommandToUnreal } from './actions/UnrealCommand';
10
+ export { UnrealCommand } from './actions/UnrealCommand';
10
11
  export { WatchCallbacks } from './actions/WatchCallbacks';
11
- export type { MimeType } from './actions/GetScreenshot';
12
12
  export { CommandBase } from './actions/CommandBase';
13
+ export type { MimeType } from './actions/GetScreenshot';
13
14
  export * from './lib/integrateMetaBox';
14
15
  export * from './lib/Communicator';
15
16
  export * from './lib/fromCommunicatorEvent';
package/dist/index.esm.js CHANGED
@@ -261,7 +261,7 @@ class GetScreenshot extends CommandBase {
261
261
  * @hidden
262
262
  * Represents a command to send Unreal command.
263
263
  */
264
- class SendCommandToUnreal extends CommandBase {
264
+ class UnrealCommand extends CommandBase {
265
265
  constructor(payload) {
266
266
  super();
267
267
  this.data = {
@@ -270,6 +270,10 @@ class SendCommandToUnreal extends CommandBase {
270
270
  };
271
271
  }
272
272
  }
273
+ /**
274
+ * @deprecated, use `UnrealCommand` instead.
275
+ */
276
+ const SendCommandToUnreal = UnrealCommand;
273
277
 
274
278
  /**
275
279
  * @experimental
@@ -376,7 +380,7 @@ class Communicator extends EventDispatcher {
376
380
  const { data } = command;
377
381
  const iframe = document.getElementById('embeddedContent');
378
382
  if (!(iframe === null || iframe === void 0 ? void 0 : iframe.contentWindow)) {
379
- console.warn('MetaBox iframe is not available.');
383
+ console.warn('MetaBox IFrame not found or not ready.');
380
384
  return;
381
385
  }
382
386
  const message = {
@@ -572,5 +576,5 @@ function getUrlParams() {
572
576
  return selections;
573
577
  }
574
578
 
575
- export { CommandBase, Communicator, GetPdf, GetScreenshot, SendCommandToUnreal, SetEnvironment, SetEnvironmentMaterial, SetMaterial, SetProduct, ShowEmbeddedMenu, ShowOverlayInterface, WatchCallbacks, fromCommunicatorEvent, getUrlParams, integrateMetaBox, saveImage, setUrlParams, sleep };
579
+ export { CommandBase, Communicator, GetPdf, GetScreenshot, SendCommandToUnreal, SetEnvironment, SetEnvironmentMaterial, SetMaterial, SetProduct, ShowEmbeddedMenu, ShowOverlayInterface, UnrealCommand, WatchCallbacks, fromCommunicatorEvent, getUrlParams, integrateMetaBox, saveImage, setUrlParams, sleep };
576
580
  //# sourceMappingURL=index.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.umd.js CHANGED
@@ -265,7 +265,7 @@
265
265
  * @hidden
266
266
  * Represents a command to send Unreal command.
267
267
  */
268
- class SendCommandToUnreal extends CommandBase {
268
+ class UnrealCommand extends CommandBase {
269
269
  constructor(payload) {
270
270
  super();
271
271
  this.data = {
@@ -274,6 +274,10 @@
274
274
  };
275
275
  }
276
276
  }
277
+ /**
278
+ * @deprecated, use `UnrealCommand` instead.
279
+ */
280
+ const SendCommandToUnreal = UnrealCommand;
277
281
 
278
282
  /**
279
283
  * @experimental
@@ -380,7 +384,7 @@
380
384
  const { data } = command;
381
385
  const iframe = document.getElementById('embeddedContent');
382
386
  if (!(iframe === null || iframe === void 0 ? void 0 : iframe.contentWindow)) {
383
- console.warn('MetaBox iframe is not available.');
387
+ console.warn('MetaBox IFrame not found or not ready.');
384
388
  return;
385
389
  }
386
390
  const message = {
@@ -587,6 +591,7 @@
587
591
  exports.SetProduct = SetProduct;
588
592
  exports.ShowEmbeddedMenu = ShowEmbeddedMenu;
589
593
  exports.ShowOverlayInterface = ShowOverlayInterface;
594
+ exports.UnrealCommand = UnrealCommand;
590
595
  exports.WatchCallbacks = WatchCallbacks;
591
596
  exports.fromCommunicatorEvent = fromCommunicatorEvent;
592
597
  exports.getUrlParams = getUrlParams;
@@ -1 +1 @@
1
- {"version":3,"file":"index.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -190,27 +190,21 @@ export type SelectedIds = Record<string, Record<string, string>>;
190
190
  */
191
191
  export interface SelectedConfigurationForQuote {
192
192
  product: {
193
- id: string;
194
193
  externalId: string;
195
194
  title: string;
196
195
  slots: {
197
- id: string;
198
196
  label: string;
199
197
  material: {
200
- id: string;
201
198
  externalId: string;
202
199
  title: string;
203
200
  };
204
201
  }[];
205
202
  };
206
203
  environment?: {
207
- id: string;
208
204
  title: string;
209
205
  slots: {
210
- id: string;
211
206
  label: string;
212
207
  material: {
213
- id: string;
214
208
  externalId: string;
215
209
  title: string;
216
210
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3dsource/metabox-front-api",
3
- "version": "1.0.1-beta.0",
3
+ "version": "1.0.2-dev.0",
4
4
  "description": "API for MetaBox BASIC configurator",
5
5
  "keywords": [
6
6
  "metabox",
@@ -34,9 +34,9 @@
34
34
  "build": "rollup -c",
35
35
  "bump:dev": "npm version prerelease --preid=dev && npm run publish:dev",
36
36
  "bump:minor": "npm version minor && npm run publish:prod",
37
- "bump:prepatch:beta": "npm version prepatch --preid=beta && npm run publish:dev --tag beta",
38
37
  "bump:preminor:beta": "npm version preminor --preid=beta && npm run publish:dev --tag beta",
39
38
  "bump:preminor:dev": "npm version preminor --preid=dev && npm run publish:dev",
39
+ "bump:prepatch:beta": "npm version prepatch --preid=beta && npm run publish:dev --tag beta",
40
40
  "bump:prod": "npm version patch && npm run publish:prod",
41
41
  "clean": "rimraf dist",
42
42
  "packAll": "npm run clean && npm run build && npm pack",
@@ -1,9 +0,0 @@
1
- import { CommandBase } from './CommandBase';
2
- /**
3
- * @internal
4
- * @hidden
5
- * Represents a command to send Unreal command.
6
- */
7
- export declare class SendCommandToUnreal extends CommandBase {
8
- constructor(payload: unknown);
9
- }