@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.
- package/dist/store/threekit.js +6 -4
- package/dist/threekit.d.ts +1 -0
- package/package.json +1 -1
package/dist/store/threekit.js
CHANGED
|
@@ -292,11 +292,13 @@ var launch = function (launchConfig) {
|
|
|
292
292
|
configurationId = product;
|
|
293
293
|
}
|
|
294
294
|
else {
|
|
295
|
-
|
|
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 }
|
|
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
|
])];
|
package/dist/threekit.d.ts
CHANGED
|
@@ -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
|
}
|