@roomle/web-sdk 7.0.0-alpha.3 → 7.0.0-alpha.4
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/THIRD-PARTY-NOTICES.txt +1 -1
- package/lib/ConfiguratorKernel.wasm +0 -0
- package/lib/RoomleCore.wasm +0 -0
- package/lib/RoomleToolsCore.wasm +0 -0
- package/lib/{api-B_Mu7Mg1.mjs → api-0LgvKoxe.mjs} +2 -2
- package/lib/{api-B_Mu7Mg1.mjs.map → api-0LgvKoxe.mjs.map} +1 -1
- package/lib/asset-loader.worker-Bdvb-pt7.mjs.map +1 -1
- package/lib/budgeteer.sw-ByZxiRBr.mjs.map +1 -1
- package/lib/{configuration-operations-C5rnDS8e.mjs → configuration-operations-B7uJDX_4.mjs} +3 -3
- package/lib/{configuration-operations-C5rnDS8e.mjs.map → configuration-operations-B7uJDX_4.mjs.map} +1 -1
- package/lib/{configurator-BeDJ8jD1.mjs → configurator-CU7jNdgC.mjs} +3 -3
- package/lib/{configurator-BeDJ8jD1.mjs.map → configurator-CU7jNdgC.mjs.map} +1 -1
- package/lib/configurator-c5g9sbhL.mjs +3 -0
- package/lib/configurator-capabilities-Cr6BAnms.mjs +3 -0
- package/lib/{configurator-capabilities-C3TQUu_S.mjs → configurator-capabilities-o8fQ6Ang.mjs} +2 -2
- package/lib/{configurator-capabilities-C3TQUu_S.mjs.map → configurator-capabilities-o8fQ6Ang.mjs.map} +1 -1
- package/lib/{glb-viewer-BkU2Z-HJ.mjs → glb-viewer-BByRaJ8F.mjs} +3 -3
- package/lib/{glb-viewer-BkU2Z-HJ.mjs.map → glb-viewer-BByRaJ8F.mjs.map} +1 -1
- package/lib/glb-viewer-q6BU-GNu.mjs +3 -0
- package/lib/{homag-intelligence-DboRA-Yd.mjs → homag-intelligence-wHSuuAC4.mjs} +3 -3
- package/lib/{homag-intelligence-DboRA-Yd.mjs.map → homag-intelligence-wHSuuAC4.mjs.map} +1 -1
- package/lib/{material-viewer-BkaTt8Sn.mjs → material-viewer-beYa7Vpa.mjs} +3 -3
- package/lib/{material-viewer-BkaTt8Sn.mjs.map → material-viewer-beYa7Vpa.mjs.map} +1 -1
- package/lib/{packages-DZzpY6V8.mjs → packages-BrZdc9Gx.mjs} +5 -5
- package/lib/{packages-DZzpY6V8.mjs.map → packages-BrZdc9Gx.mjs.map} +1 -1
- package/lib/planner-C0ylcrU1.mjs +3 -0
- package/lib/{planner-CuZaTB-P.mjs → planner-CSOl3bpc.mjs} +3 -3
- package/lib/{planner-CuZaTB-P.mjs.map → planner-CSOl3bpc.mjs.map} +1 -1
- package/lib/roomle-headless.js +7 -7
- package/lib/{roomle-sdk-CSH3WHXV.mjs → roomle-sdk-ByoTm5M6.mjs} +21 -21
- package/lib/roomle-sdk-ByoTm5M6.mjs.map +1 -0
- package/lib/roomle-sdk.js +6 -6
- package/lib/{script-loader-O8x5UOnP.mjs → script-loader-DGVS2Wqe.mjs} +2 -2
- package/lib/{script-loader-O8x5UOnP.mjs.map → script-loader-DGVS2Wqe.mjs.map} +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/package.json +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm +0 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
- package/lib/{tools-core-DJvn2gR6.mjs → tools-core-eVa8OooA.mjs} +3 -3
- package/lib/{tools-core-DJvn2gR6.mjs.map → tools-core-eVa8OooA.mjs.map} +1 -1
- package/package.json +2 -2
- package/sbom.cdx.json +5 -5
- package/lib/configurator-capabilities-C42HYCCb.mjs +0 -3
- package/lib/configurator-yctV6IDY.mjs +0 -3
- package/lib/glb-viewer-jt9mrYrF.mjs +0 -3
- package/lib/planner-C7kZ9SKV.mjs +0 -3
- package/lib/roomle-sdk-CSH3WHXV.mjs.map +0 -1
package/lib/roomle-headless.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*! Third-party licenses: THIRD-PARTY-NOTICES.txt and sbom.cdx.json in the root of this package */
|
|
2
|
-
import { a as e, i as t, n, r, t as i } from "./packages-
|
|
2
|
+
import { a as e, i as t, n, r, t as i } from "./packages-BrZdc9Gx.mjs";
|
|
3
3
|
import { i as a, t as o } from "./kernel-2ku6lFfE.mjs";
|
|
4
4
|
import { Ot as s, Tt as c, wt as l } from "./threejs-utils-D1gtvxiA.mjs";
|
|
5
5
|
import { m as u, nt as d, wi as f } from "./three.core-BpdpLVZy.mjs";
|
|
6
6
|
import { i as p } from "./decorate-CooD7C6J.mjs";
|
|
7
7
|
import { D as ee, H as m, g as te } from "./common-utils-zPOllvAT.mjs";
|
|
8
|
-
import { A as ne, C as re, G as ie, H as ae, J as oe, K as se, O as ce, V as le, X as ue, Y as h, Z as de, _ as fe, _t as pe, b as me, bt as he, c as ge, dt as g, f as _e, ft as _, gt as ve, ht as ye, i as v, j as y, k as b, l as x, m as S, mt as C, o as w, p as T, pt as E, q as D, r as O, s as k, t as A, u as j, ut as M, v as N, y as P, z as be } from "./roomle-sdk-
|
|
8
|
+
import { A as ne, C as re, G as ie, H as ae, J as oe, K as se, O as ce, V as le, X as ue, Y as h, Z as de, _ as fe, _t as pe, b as me, bt as he, c as ge, dt as g, f as _e, ft as _, gt as ve, ht as ye, i as v, j as y, k as b, l as x, m as S, mt as C, o as w, p as T, pt as E, q as D, r as O, s as k, t as A, u as j, ut as M, v as N, y as P, z as be } from "./roomle-sdk-ByoTm5M6.mjs";
|
|
9
9
|
import { n as xe } from "./roomle-renderer-hDktY-wA.mjs";
|
|
10
|
-
import { n as Se } from "./script-loader-
|
|
11
|
-
import { t as Ce } from "./configurator-
|
|
12
|
-
import { t as we } from "./planner-
|
|
13
|
-
import { n as Te, t as Ee } from "./glb-viewer-
|
|
14
|
-
import { t as De } from "./api-
|
|
10
|
+
import { n as Se } from "./script-loader-DGVS2Wqe.mjs";
|
|
11
|
+
import { t as Ce } from "./configurator-CU7jNdgC.mjs";
|
|
12
|
+
import { t as we } from "./planner-CSOl3bpc.mjs";
|
|
13
|
+
import { n as Te, t as Ee } from "./glb-viewer-BByRaJ8F.mjs";
|
|
14
|
+
import { t as De } from "./api-0LgvKoxe.mjs";
|
|
15
15
|
import { t as Oe } from "./roomle-headless-setup-Cbu025cl.mjs";
|
|
16
16
|
import { createRequire as ke } from "module";
|
|
17
17
|
//#region packages/headless-core/src/headless-tween-stub.ts
|
|
@@ -39190,7 +39190,7 @@ var ql = /* @__PURE__ */ new Map(), Jl = (e) => {
|
|
|
39190
39190
|
async _addStaticItem(e) {
|
|
39191
39191
|
this._rapiItem = e;
|
|
39192
39192
|
let t = this.getPlanObject();
|
|
39193
|
-
if (this._glbUrl = Zr(e), !this._glbUrl) return
|
|
39193
|
+
if (this._glbUrl = Zr(e), !this._glbUrl) return this.failInit(/* @__PURE__ */ Error("No glb url found"));
|
|
39194
39194
|
try {
|
|
39195
39195
|
let n = await this._staticItemLoader.loadGLB(this._glbUrl, void 0, void 0, void 0, t.rgbColor, e.colorable);
|
|
39196
39196
|
this._originalSize.copy(n.boundingBox.getSize(new k())), n.scene.name = e.label, this.setObject(n.scene), Te(n.scene, this._glbUrl), Qe(n.scene), this._container.add(this.getObject()), this.update(), this.hidePreviewBox(), await this.finishInit();
|
|
@@ -41420,15 +41420,15 @@ var df = (e, t) => !e.sort && !t.sort ? 0 : e.sort ? t.sort ? e.sort - t.sort :
|
|
|
41420
41420
|
}), this._configuratorAgentTools;
|
|
41421
41421
|
}
|
|
41422
41422
|
async getConfiguratorCapabilities(e) {
|
|
41423
|
-
let { collectConfiguratorCapabilities: t } = await import("./configurator-capabilities-
|
|
41423
|
+
let { collectConfiguratorCapabilities: t } = await import("./configurator-capabilities-Cr6BAnms.mjs");
|
|
41424
41424
|
return t(this._configuratorContext, this._plannerKernelAccess, this._rapiAccess, e);
|
|
41425
41425
|
}
|
|
41426
41426
|
async queryConfigurationOperation(e, t) {
|
|
41427
|
-
let { queryConfigurationOperation: n } = await import("./configuration-operations-
|
|
41427
|
+
let { queryConfigurationOperation: n } = await import("./configuration-operations-B7uJDX_4.mjs");
|
|
41428
41428
|
return n(this._configuratorContext, this._plannerKernelAccess, this._rapiAccess, this, e, t);
|
|
41429
41429
|
}
|
|
41430
41430
|
async executeConfigurationOperation(e, t) {
|
|
41431
|
-
let { executeConfigurationOperation: n } = await import("./configuration-operations-
|
|
41431
|
+
let { executeConfigurationOperation: n } = await import("./configuration-operations-B7uJDX_4.mjs");
|
|
41432
41432
|
return n(this._configuratorContext, this._plannerKernelAccess, this._rapiAccess, this, () => this._sceneManager.getConfigurationHistoryState(), e, t);
|
|
41433
41433
|
}
|
|
41434
41434
|
getParametersOfPlanObject() {
|
|
@@ -52397,18 +52397,18 @@ var mv = "rml_plans", hv = {
|
|
|
52397
52397
|
this.viewModel.getStaticPlanObjectViewModels().forEach((t) => {
|
|
52398
52398
|
let n = t.getPlanObject();
|
|
52399
52399
|
e.has(n.getCatalogItemId()) ? e.get(n.getCatalogItemId())?.push(t) : e.set(n.getCatalogItemId(), [t]);
|
|
52400
|
-
}), this._rapiAccess.getItems(Array.from(e.keys())).then((t) => {
|
|
52400
|
+
}), this._rapiAccess.getItems(Array.from(e.keys())).then(async (t) => {
|
|
52401
52401
|
let n = [];
|
|
52402
52402
|
t.forEach((t) => {
|
|
52403
52403
|
this._getKernelAccess().catalogItemLoaded(t), e.get(t.id)?.forEach((e) => {
|
|
52404
|
-
n.push(
|
|
52405
|
-
e.setRapiItem(t).then(() => {
|
|
52406
|
-
this._requestRender(), n();
|
|
52407
|
-
}, r);
|
|
52408
|
-
}));
|
|
52404
|
+
n.push(e.setRapiItem(t).then(() => this._requestRender()));
|
|
52409
52405
|
});
|
|
52410
|
-
}), Promise.
|
|
52411
|
-
|
|
52406
|
+
}), (await Promise.allSettled(n)).forEach((e) => {
|
|
52407
|
+
e.status === "rejected" && console.warn("Could not load static plan object", e.reason);
|
|
52408
|
+
});
|
|
52409
|
+
}).catch((e) => {
|
|
52410
|
+
console.warn("Could not load static plan objects", e);
|
|
52411
|
+
}).then(() => this._staticItemsLoaded());
|
|
52412
52412
|
}
|
|
52413
52413
|
requestCatalogItem(e) {
|
|
52414
52414
|
this._rapiAccess.getItem(e).then((e) => {
|
|
@@ -54440,7 +54440,7 @@ var ey = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
|
|
|
54440
54440
|
async switchToConfigurator() {
|
|
54441
54441
|
let e = await this._singlePromiseFactory.create(Bo.START_HSC, "startHSC", (e) => {
|
|
54442
54442
|
if (this._hscInstance) return e(this._hscInstance);
|
|
54443
|
-
import("./configurator-
|
|
54443
|
+
import("./configurator-c5g9sbhL.mjs").then(({ Configurator: t }) => {
|
|
54444
54444
|
let n = new t(this._creator_);
|
|
54445
54445
|
n.boot({
|
|
54446
54446
|
kernelInstance: this._planInteractionManager.getConfiguratorKernel(),
|
|
@@ -54458,7 +54458,7 @@ var ey = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
|
|
|
54458
54458
|
async switchToViewer() {
|
|
54459
54459
|
let e = await this._singlePromiseFactory.create(Bo.START_GLB, "startGLB", (e) => {
|
|
54460
54460
|
if (this._glbInstance) return e(this._glbInstance);
|
|
54461
|
-
import("./glb-viewer-
|
|
54461
|
+
import("./glb-viewer-q6BU-GNu.mjs").then((t) => {
|
|
54462
54462
|
let n = new t.GlbViewer(this._creator_);
|
|
54463
54463
|
n.boot(), n.getApi().setOverrides(this._initData);
|
|
54464
54464
|
let r = this._domHelper.element;
|
|
@@ -55571,7 +55571,7 @@ var ey = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
|
|
|
55571
55571
|
globalInitData: JSON.parse(JSON.stringify(this._globalInitData))
|
|
55572
55572
|
}, "*", [t.port2]);
|
|
55573
55573
|
let n = Fv(t.port1), r = null;
|
|
55574
|
-
this._initData.hi?.libraryId && (r = n.onLoadArticleCatalog(this._initData.hi.libraryId), this._earlyHiTagCatalogCallbacks = new $v(this._creator_, r)), await new (await (import("./homag-intelligence-
|
|
55574
|
+
this._initData.hi?.libraryId && (r = n.onLoadArticleCatalog(this._initData.hi.libraryId), this._earlyHiTagCatalogCallbacks = new $v(this._creator_, r)), await new (await (import("./homag-intelligence-wHSuuAC4.mjs"))).HomagIntelligence(this, e, n, () => this._plannerKernelAccess.arrangementCorrectionEnabled).loadSavedPosData(), this._initData.hi?.libraryId && await this.loadExternalObjectLibrary(this._initData.hi.libraryId, r ?? void 0);
|
|
55575
55575
|
}
|
|
55576
55576
|
async _loadHomagIntelligenceArticles(e, t) {
|
|
55577
55577
|
let n = this._homagIntelligence;
|
|
@@ -66067,7 +66067,7 @@ var nA = [
|
|
|
66067
66067
|
static getConfigurator(e, t) {
|
|
66068
66068
|
t = this._setupDI(X.CONFIGURATOR, e, t);
|
|
66069
66069
|
let n = rA.lookup("global-init-data");
|
|
66070
|
-
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./configurator-
|
|
66070
|
+
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./configurator-c5g9sbhL.mjs").then(({ Configurator: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
66071
66071
|
}
|
|
66072
66072
|
static getPlanner(e, t) {
|
|
66073
66073
|
return this._getPlanner(e, t);
|
|
@@ -66078,15 +66078,15 @@ var nA = [
|
|
|
66078
66078
|
static async getGlbViewer(e, t) {
|
|
66079
66079
|
t = this._setupDI(X.GLB_VIEWER, e, t);
|
|
66080
66080
|
let n = rA.lookup("global-init-data");
|
|
66081
|
-
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./glb-viewer-
|
|
66081
|
+
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./glb-viewer-q6BU-GNu.mjs").then(({ GlbViewer: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
66082
66082
|
}
|
|
66083
66083
|
static getMaterialViewer(e, t) {
|
|
66084
66084
|
t = this._setupDI(X.CONFIGURATOR, e, t);
|
|
66085
66085
|
let n = rA.lookup("global-init-data");
|
|
66086
|
-
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./material-viewer-
|
|
66086
|
+
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./material-viewer-beYa7Vpa.mjs").then(({ MaterialViewer: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
66087
66087
|
}
|
|
66088
66088
|
static getCoreTools(e, t) {
|
|
66089
|
-
return t = this._setupDI(X.TOOLS_CORE, e, t), new Promise((e, n) => import("./tools-core-
|
|
66089
|
+
return t = this._setupDI(X.TOOLS_CORE, e, t), new Promise((e, n) => import("./tools-core-eVa8OooA.mjs").then(({ ToolsCore: n }) => {
|
|
66090
66090
|
let r = new n(t);
|
|
66091
66091
|
r.boot(), e(r);
|
|
66092
66092
|
}, n));
|
|
@@ -66114,7 +66114,7 @@ var nA = [
|
|
|
66114
66114
|
}
|
|
66115
66115
|
static _getPlanner(e, t, n) {
|
|
66116
66116
|
let r = this._setupDI(X.PLANNER, e, t), i = rA.lookup("global-init-data");
|
|
66117
|
-
return i === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : i.configuratorId ? new Promise((e, t) => import("./planner-
|
|
66117
|
+
return i === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : i.configuratorId ? new Promise((e, t) => import("./planner-C0ylcrU1.mjs").then(({ Planner: t }) => {
|
|
66118
66118
|
e(n ? new t(r, n) : new t(r));
|
|
66119
66119
|
}, t)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
66120
66120
|
}
|
|
@@ -66131,4 +66131,4 @@ var nA = [
|
|
|
66131
66131
|
//#endregion
|
|
66132
66132
|
export { wl as $, Tm as A, gf as B, ug as C, Jm as D, rh as E, rp as F, Md as G, nf as H, Y as I, Hu as J, md as K, Jf as L, Op as M, Cp as N, Wm as O, bp as P, Pl as Q, Wf as R, dg as S, rg as T, Kd as U, hf as V, zd as W, Nu as X, Iu as Y, Eu as Z, yg as _, Wa as _t, hO as a, vs as at, gg as b, Ma as bt, Wy as c, ts as ct, Ay as d, H as dt, _l as et, Dy as f, U as ft, Og as g, Ao as gt, xv as h, jo as ht, bO as i, K as it, X as j, wm as k, Uy as l, Bo as lt, Sv as m, Fo as mt, rA as n, fl as nt, FS as o, is as ot, cy as p, Io as pt, rd as q, nA as r, Zc as rt, IS as s, rs as st, iA as t, hl as tt, Hy as u, zo as ut, _g as v, Ra as vt, ig as w, mg as x, vg as y, Na as yt, Uf as z };
|
|
66133
66133
|
|
|
66134
|
-
//# sourceMappingURL=roomle-sdk-
|
|
66134
|
+
//# sourceMappingURL=roomle-sdk-ByoTm5M6.mjs.map
|