@threekit-tools/treble 0.0.72 → 0.0.73
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/Treble/Treble.js +3 -2
- package/package.json +1 -1
package/dist/Treble/Treble.js
CHANGED
|
@@ -50,7 +50,7 @@ var Treble = /** @class */ (function () {
|
|
|
50
50
|
var _this = this;
|
|
51
51
|
var player = _a.player, orgId = _a.orgId, initialConfiguration = _a.initialConfiguration;
|
|
52
52
|
this.saveConfiguration = function (config) { return __awaiter(_this, void 0, void 0, function () {
|
|
53
|
-
var threekitDomain, _a, customerId, metadata, productVersion, attachments, response, params, url;
|
|
53
|
+
var threekitDomain, _a, customerId, metadata, productVersion, attachments, player, response, params, url;
|
|
54
54
|
var _b;
|
|
55
55
|
var _c;
|
|
56
56
|
return __generator(this, function (_d) {
|
|
@@ -58,9 +58,10 @@ var Treble = /** @class */ (function () {
|
|
|
58
58
|
case 0:
|
|
59
59
|
threekitDomain = connection_1.default.getConnection().threekitDomain;
|
|
60
60
|
_a = Object.assign({}, config), customerId = _a.customerId, metadata = _a.metadata, productVersion = _a.productVersion, attachments = _a.attachments;
|
|
61
|
+
player = window.threekit.player.enableApi('player');
|
|
61
62
|
return [4 /*yield*/, api_1.default.configurations.save({
|
|
62
63
|
assetId: window.threekit.player.assetId,
|
|
63
|
-
configuration:
|
|
64
|
+
configuration: player.getConfigurator().getFullConfiguration(),
|
|
64
65
|
customerId: customerId,
|
|
65
66
|
metadata: metadata,
|
|
66
67
|
productVersion: productVersion,
|