@threekit-tools/treble 0.0.45 → 0.0.46

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.
@@ -292,11 +292,13 @@ var launch = function (launchConfig) {
292
292
  configurationId = product;
293
293
  }
294
294
  else {
295
- if ((0, utils_1.isUuid)(product.assetId))
295
+ stageId = product.stageId;
296
+ if (product.configurationId)
297
+ configurationId = product.configurationId;
298
+ else if ((0, utils_1.isUuid)(product.assetId))
296
299
  assetId = product.assetId;
297
300
  else
298
301
  configurationId = product.assetId;
299
- stageId = product.stageId;
300
302
  }
301
303
  if (playerConfig.elementId) {
302
304
  el = document.getElementById(playerConfig.elementId);
@@ -340,9 +342,9 @@ var launch = function (launchConfig) {
340
342
  // We create the threekit script
341
343
  _j.sent();
342
344
  return [4 /*yield*/, Promise.all([
343
- window.threekitPlayer(__assign({ el: el,
345
+ window.threekitPlayer(__assign(__assign({ el: el,
344
346
  // Variables to sort out
345
- authToken: authToken, stageId: stageId, assetId: updatedAssetId, initialConfiguration: initialConfiguration }, playerConfig)),
347
+ authToken: authToken, stageId: stageId, assetId: updatedAssetId }, playerConfig), { initialConfiguration: initialConfiguration })),
346
348
  api_1.default.products.fetchTranslations(),
347
349
  api_1.default.price.getPricebooksList(),
348
350
  ])];
@@ -237,6 +237,7 @@ export interface IPlayerConfig extends Omit<ThreekitInitConfig, 'el' | 'authToke
237
237
  elementId?: string;
238
238
  }
239
239
  export interface IProduct extends Pick<ThreekitInitConfig, 'assetId' | 'stageId' | 'initialConfiguration'> {
240
+ configurationId?: string;
240
241
  }
241
242
  export interface IProducts extends Record<string, string | Partial<IProduct>> {
242
243
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threekit-tools/treble",
3
- "version": "0.0.45",
3
+ "version": "0.0.46",
4
4
  "author": "Amaan Saeed",
5
5
  "license": "MIT",
6
6
  "files": [