@roomle/embedding-lib 9.0.0-alpha.1 → 9.0.0-alpha.11
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 +764 -0
- package/{browser-BxG7yIaK.mjs → browser-D6As4Zxr.mjs} +1 -0
- package/{browser-CW9o-dtT.mjs → browser-zrjtYpL8.mjs} +1 -0
- package/coerce-CqJod_GZ.mjs +8 -0
- package/coerce-CsI42_k0.mjs +6 -0
- package/{comlink-B5lV2OWp.mjs → comlink-Cmiqa2s0.mjs} +1 -0
- package/{comlink-B2Kj_5Ge.mjs → comlink-Dc3LZUoi.mjs} +1 -0
- package/configurator.d.ts +2 -0
- package/configurator.js +29 -0
- package/configurator.min.js +27 -0
- package/dist-5jYYtT4q.mjs +8216 -0
- package/dist-B9yy8ym8.mjs +5512 -0
- package/dist-BV-32IEX.mjs +8128 -0
- package/dist-Bb2L1Zel.mjs +6045 -0
- package/dist-Bo3WzRdf.mjs +6223 -0
- package/dist-Bt1FopV4.mjs +7594 -0
- package/dist-C5fKJXpB.mjs +5598 -0
- package/dist-COgAdYY1.mjs +7554 -0
- package/dist-CXemOs84.mjs +849 -0
- package/dist-CqP0aX0A.mjs +866 -0
- package/dist-CqpDM10w.mjs +1179 -0
- package/dist-D0kh4WfT.mjs +7721 -0
- package/dist-D5HdKuwj.mjs +1221 -0
- package/dist-DJtonrDM.mjs +16906 -0
- package/dist-GTk8ppiK.mjs +8380 -0
- package/dist-XEy6Tk_Y.mjs +17341 -0
- package/docs/md/web/embedding/CHANGELOG.md +284 -98
- package/{drag-ghost-BQ8r6NVo.mjs → drag-ghost-D7FnWbO4.mjs} +2 -1
- package/{drag-ghost-BOwjMbG3.mjs → drag-ghost-yXe7c8jA.mjs} +2 -1
- package/{drag-in-QhL3zGC0.mjs → drag-in-BiEe2Lgv.mjs} +15 -20
- package/{drag-in-BP_E53zb.mjs → drag-in-t7T6Pqwc.mjs} +10 -15
- package/embedding-plugins.js +2 -1
- package/embedding-plugins.min.js +2 -1
- package/experimental-evaluation-BgWFolud.mjs +1074 -0
- package/experimental-evaluation-D56MbtjO.mjs +970 -0
- package/{from-custom-view-D2Z1YmCx.mjs → from-custom-view-CTBapIc6.mjs} +31 -30
- package/{from-custom-view-BM_zRJCf.mjs → from-custom-view-xbjgsLll.mjs} +32 -31
- package/{from-website-CPVeVVMI.mjs → from-website-DUPMQPl6.mjs} +24 -23
- package/{from-website-DlklVbxU.mjs → from-website-JwG7Ic_U.mjs} +24 -23
- package/hi.js +250 -111
- package/hi.min.js +212 -95
- package/mcp-tools-CJ7j_FI2.mjs +151 -0
- package/mcp-tools-D__M74CZ.mjs +153 -0
- package/package.json +12 -1
- package/packages/embedding-lib/src/configurator-agent/configurator-mcp-tools.d.ts +4 -0
- package/packages/embedding-lib/src/configurator-agent/configurator-planning-assistant.d.ts +13 -0
- package/packages/embedding-lib/src/configurator.d.ts +3 -0
- package/packages/embedding-lib/src/hi.d.ts +1 -3
- package/packages/embedding-lib/src/homag-intelligence/hi-mcp-tools.d.ts +11 -11
- package/packages/embedding-lib/src/homag-intelligence/hi-planning-assistant.d.ts +11 -34
- package/packages/embedding-lib/src/homag-intelligence/hi-planning-usage.d.ts +54 -0
- package/packages/embedding-lib/src/planning-assistant/chat-model.d.ts +1 -0
- package/packages/embedding-lib/src/planning-assistant/mcp-tools.d.ts +2 -0
- package/packages/web-sdk/packages/assistant.d.ts +3 -0
- package/packages/web-sdk/packages/common-core/src/agent-tools/mcp-tool-types.d.ts +30 -0
- package/packages/web-sdk/packages/common-core/src/planning-assistant/chat-model.d.ts +8 -0
- package/packages/{embedding-lib/src/homag-intelligence/hi-mcp/mcp-tool-types.d.ts → web-sdk/packages/common-core/src/planning-assistant/mcp-tools.d.ts} +15 -20
- package/packages/web-sdk/packages/common-core/src/planning-assistant/types.d.ts +35 -0
- package/roomle-embedding-lib.js +67 -57
- package/roomle-embedding-lib.min.js +13 -3
- package/sbom.cdx.json +405 -0
- package/{utils-wJ80awOA.mjs → utils-CAAGdgk8.mjs} +1 -0
- package/{utils-DxJ3PcKe.mjs → utils-WeolMfC5.mjs} +1 -0
- package/hi-mcp-server-BiZlFkBm.mjs +0 -4866
- package/hi-mcp-server-DTQnrykg.mjs +0 -5278
- package/packages/embedding-lib/src/homag-intelligence/hi-mcp/agent-facing.d.ts +0 -35
- package/packages/embedding-lib/src/homag-intelligence/hi-mcp/hi-mcp-server.d.ts +0 -3
- package/packages/embedding-lib/src/homag-intelligence/hi-mcp/mcp-tool.d.ts +0 -13
- package/packages/embedding-lib/src/homag-intelligence/hi-mcp/plan-history.d.ts +0 -33
- package/packages/embedding-lib/src/homag-intelligence/hi-mcp/planner-api.d.ts +0 -32
- package/packages/embedding-lib/src/homag-intelligence/hi-mcp/skills.d.ts +0 -23
- package/packages/embedding-lib/src/homag-intelligence/hi-mcp/tool-executors.d.ts +0 -4
package/roomle-embedding-lib.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/*! Third-party licenses: THIRD-PARTY-NOTICES.txt and sbom.cdx.json in the root of this package */
|
|
2
|
+
import { t as e } from "./browser-zrjtYpL8.mjs";
|
|
2
3
|
//#region packages/common/src/utils/message-handler.ts
|
|
3
4
|
var t = class {
|
|
4
5
|
_side;
|
|
@@ -97,6 +98,14 @@ var t = class {
|
|
|
97
98
|
}, c = /* @__PURE__ */ function(e) {
|
|
98
99
|
return e.BOTTOM_BAR = "bottom_bar", e.PARTLIST_BOUNDS = "partlist_bounds", e.INTERACTION_NOTES = "interaction_notes", e.PARAMETER_GROUPS = "parameter_groups", e;
|
|
99
100
|
}({}), l = (e) => JSON.parse(JSON.stringify(e)), u = {
|
|
101
|
+
staging: !1,
|
|
102
|
+
theme: "scandinavian",
|
|
103
|
+
density: "balanced",
|
|
104
|
+
light: "soft",
|
|
105
|
+
birdsEyeView: "adjust",
|
|
106
|
+
debug: !1,
|
|
107
|
+
stage: "alpha"
|
|
108
|
+
}, d = {
|
|
100
109
|
mobileLandscape: !0,
|
|
101
110
|
floorMaterialRootTag: "materials_root",
|
|
102
111
|
buttons: {
|
|
@@ -124,35 +133,36 @@ var t = class {
|
|
|
124
133
|
openCloseAnimation: !0,
|
|
125
134
|
localExport3d: !1
|
|
126
135
|
},
|
|
136
|
+
imageGenConfig: u,
|
|
127
137
|
configuratorZoom: !1,
|
|
128
138
|
rotationSnapDegrees: 10,
|
|
129
139
|
interactionsCollapsed: !1
|
|
130
|
-
},
|
|
140
|
+
}, f = (e) => (m(e), e?.customApiUrl && (e.customApiUrl = decodeURIComponent(e.customApiUrl)), e.shareUrl && (e.deeplink = e.shareUrl.replace(g, _)), e), p = (e) => e.trim() !== "" && Number.isFinite(Number(e.trim())), m = (e) => {
|
|
131
141
|
if (!e || typeof e != "object") return;
|
|
132
142
|
let t = Object.keys(e);
|
|
133
143
|
for (let n of t) {
|
|
134
144
|
let t = e[n];
|
|
135
|
-
if (!Array.isArray(t) && typeof t == "object" && t &&
|
|
136
|
-
t === "true" || t === "false" ? e[n] = t === "true" : typeof t == "string" &&
|
|
145
|
+
if (!Array.isArray(t) && typeof t == "object" && t && m(t), Array.isArray(t)) for (let e of t) m(e);
|
|
146
|
+
t === "true" || t === "false" ? e[n] = t === "true" : typeof t == "string" && p(t) && (e[n] = Number(t));
|
|
137
147
|
}
|
|
138
|
-
},
|
|
139
|
-
let t = l(
|
|
148
|
+
}, h = () => {
|
|
149
|
+
let t = l(d);
|
|
140
150
|
t.locale ||= e(null, !0), t.id === "(idle)" && delete t.id;
|
|
141
151
|
let n = i();
|
|
142
152
|
return n && a(n) && (t.configuratorId = "demoConfigurator"), t.customApiUrl = "https://rubens.alpha.roomle.com/api/v2", t.emails = !1, t;
|
|
143
|
-
},
|
|
153
|
+
}, g = "<CONF_ID>", _ = "#CONFIGURATIONID#", v = (e) => {
|
|
144
154
|
let t = e.featureFlags;
|
|
145
155
|
if (!t || typeof t != "object" || Array.isArray(t)) return;
|
|
146
156
|
let n = t;
|
|
147
157
|
"enableTwoLevelCatalog" in n && typeof n.enableTwoLevelCatalog == "boolean" && (e.enableTwoLevelCatalog === !1 || e.enableTwoLevelCatalog === void 0) && (e.enableTwoLevelCatalog = n.enableTwoLevelCatalog), "webGpu" in n && typeof n.webGpu == "boolean" && (e.webGpu === !1 || e.webGpu === void 0) && (e.webGpu = n.webGpu);
|
|
148
|
-
},
|
|
158
|
+
}, y = (e) => {
|
|
149
159
|
e.featureFlags ||= {}, typeof e.featureFlags.realPartList != "boolean" && (e.featureFlags.realPartList = !0), typeof e.featureFlags.globalCallbacks != "boolean" && (e.featureFlags.globalCallbacks = !0), typeof e.featureFlags.mocAr != "boolean" && (e.featureFlags.mocAr = !1);
|
|
150
|
-
},
|
|
151
|
-
let n = l(t), r =
|
|
152
|
-
|
|
160
|
+
}, b = (e, t) => {
|
|
161
|
+
let n = l(t), r = h();
|
|
162
|
+
y(r);
|
|
153
163
|
let i = o(o(r, e.settings || {}), n);
|
|
154
|
-
return i.configuratorId = e.id, !i.overrideTenant && e.tenant && (i.overrideTenant = e.tenant),
|
|
155
|
-
},
|
|
164
|
+
return i.configuratorId = e.id, !i.overrideTenant && e.tenant && (i.overrideTenant = e.tenant), v(i), i;
|
|
165
|
+
}, x = () => /(android)/i.test(navigator.userAgent), S = class {
|
|
156
166
|
_messageHandler = null;
|
|
157
167
|
isSetupDone = !1;
|
|
158
168
|
viewName = "main";
|
|
@@ -194,7 +204,7 @@ var t = class {
|
|
|
194
204
|
setupPlugins(e, t, n = "website") {
|
|
195
205
|
for (let r of e) typeof r == "string" && r === "dragIn" ? this.pluginsLoaded.push(new Promise((e, r) => {
|
|
196
206
|
try {
|
|
197
|
-
import("./drag-in-
|
|
207
|
+
import("./drag-in-BiEe2Lgv.mjs").then((e) => e.n).then(({ DragIn: i }) => {
|
|
198
208
|
let a = new i(this.ui, t, n, this.viewName);
|
|
199
209
|
a.init().then(() => {
|
|
200
210
|
this.plugins.dragIn = a, e();
|
|
@@ -216,7 +226,7 @@ var t = class {
|
|
|
216
226
|
}
|
|
217
227
|
}));
|
|
218
228
|
}
|
|
219
|
-
},
|
|
229
|
+
}, C = () => {
|
|
220
230
|
let e, t;
|
|
221
231
|
return {
|
|
222
232
|
promise: new Promise((n, r) => {
|
|
@@ -229,7 +239,7 @@ var t = class {
|
|
|
229
239
|
//#endregion
|
|
230
240
|
//#region packages/common/src/utils/rapi-version.ts
|
|
231
241
|
(/* @__PURE__ */ "/items./items/{id}./items/{id}/renderings./items/{id}/conversions./items/{id}/3d-exports./items/{id}/perspectiveImage./items/{id}/perspectiveImageHD./items/{id}/topImage./items/{id}/tags./items/{id}/tagConnections./items/{id}/additionalContents./items/{id}/assetProcessings./items/{id}/3dAssets/{format}./items/{id}/3dAssets/{format}/{dummyFileName}./configurations./configurations/{id}./configurations/{id}/shares./configurations/{id}/renderings./configurations/{id}/3d-exports./configurations/{id}/3dAssets/{format}./configurations/{id}/3dAssets/{format}/{dummyFileName}./auth/signin./auth/signout./auth/reset./auth/reset/confirm./auth/change/pwd./auth/context./assets/analyze./version".split(".")).map((e) => RegExp("^" + e.replace(/\{[^}]+\}/g, "[^/]+") + "/?$"));
|
|
232
|
-
var
|
|
242
|
+
var w = /\/v[23]\/?$/, T = (e, t) => w.test(e) ? e.replace(w, "/v2") + t : e + t, E = {
|
|
233
243
|
SDK: "extended",
|
|
234
244
|
CONFIGURATOR_SDK: "configurator",
|
|
235
245
|
CALLBACKS: "callbacks",
|
|
@@ -237,22 +247,22 @@ var C = /\/v[23]\/?$/, w = (e, t) => C.test(e) ? e.replace(C, "/v2") + t : e + t
|
|
|
237
247
|
ANALYTICS: "analytics",
|
|
238
248
|
GLOBAL: "global",
|
|
239
249
|
RAPI: "rapi"
|
|
240
|
-
},
|
|
250
|
+
}, D = ".", O = E.SDK + "." + E.CALLBACKS, k = {
|
|
241
251
|
REQUEST_BOOT: "requestBoot",
|
|
242
252
|
SETUP: "setup",
|
|
243
253
|
WEBSITE_READY: "websiteReady"
|
|
244
|
-
},
|
|
254
|
+
}, A = {
|
|
245
255
|
GET_METHODS: "getMethods",
|
|
246
256
|
RETURN_METHODS: "returnMethods",
|
|
247
257
|
REGISTER_CUSTOM_VIEW: "registerCustomView",
|
|
248
258
|
REGISTER_CUSTOM_VIEW_DONE: "registerCustomViewDone"
|
|
249
|
-
},
|
|
259
|
+
}, j = ["constructor", "callbacks"], M = (e) => e[0] !== "_" && !j.includes(e), N = (e, t, n = !1) => {
|
|
250
260
|
if (!e) return [];
|
|
251
|
-
let r = Object.getOwnPropertyNames(e), i = n ?
|
|
252
|
-
return r.filter(
|
|
253
|
-
},
|
|
261
|
+
let r = Object.getOwnPropertyNames(e), i = n ? E.CALLBACKS + "." : "";
|
|
262
|
+
return r.filter(M).map((e) => t + "." + i + e);
|
|
263
|
+
}, P = async (e, t) => {
|
|
254
264
|
if (typeof e != "string") throw Error("Configurator ID is not a string type: \"" + typeof e + "\"");
|
|
255
|
-
let n = t.customApiUrl ? t.customApiUrl : "https://api.roomle.com/v2", r = t.overrideTenant || 9, i =
|
|
265
|
+
let n = t.customApiUrl ? t.customApiUrl : "https://api.roomle.com/v2", r = t.overrideTenant || 9, i = T(n, "/configurators/" + e), a = "03-" + window.btoa((/* @__PURE__ */ new Date()).toISOString() + ";anonymous;roomle_portal_v2"), o = new Request(i, {
|
|
256
266
|
method: "GET",
|
|
257
267
|
headers: new Headers({
|
|
258
268
|
apiKey: "roomle_portal_v2",
|
|
@@ -267,7 +277,7 @@ var C = /\/v[23]\/?$/, w = (e, t) => C.test(e) ? e.replace(C, "/v2") + t : e + t
|
|
|
267
277
|
cache: "default"
|
|
268
278
|
}), { configurator: s } = await (await fetch(o)).json();
|
|
269
279
|
return s;
|
|
270
|
-
},
|
|
280
|
+
}, F = "data-rml-interaction-container", I = (e, t, n) => {
|
|
271
281
|
let r = null;
|
|
272
282
|
Object.defineProperty(e, t, {
|
|
273
283
|
get() {
|
|
@@ -277,28 +287,28 @@ var C = /\/v[23]\/?$/, w = (e, t) => C.test(e) ? e.replace(C, "/v2") + t : e + t
|
|
|
277
287
|
e?.mute ? r = e.value : (console.warn("You override Roomle defined behaviour. To disalbe this warning pass in an object with the following properties"), console.warn("{ mute: true, value: () => void }"), r = e);
|
|
278
288
|
}
|
|
279
289
|
});
|
|
280
|
-
},
|
|
281
|
-
e && setTimeout(() => e.style.setProperty(
|
|
282
|
-
},
|
|
290
|
+
}, L = () => window.innerHeight * .01 + "px", R = (e) => {
|
|
291
|
+
e && setTimeout(() => e.style.setProperty(V, L()), 0);
|
|
292
|
+
}, z = "rml-styles", B = 450, V = "--rml-full-height", H = {
|
|
283
293
|
CONTAINER: "rml-container",
|
|
284
294
|
FILL: "rml-fill",
|
|
285
295
|
POSITION: "rml-pos",
|
|
286
296
|
TRANSITION: "rml-transition",
|
|
287
297
|
ANDROID_HEIGHT: "rml-android-height",
|
|
288
298
|
OVERFLOW_HIDDEN: "rml-overflow-hidden"
|
|
289
|
-
},
|
|
299
|
+
}, U = /* @__PURE__ */ new Map(), W = class extends S {
|
|
290
300
|
static createPlanner(e, t, n, r = []) {
|
|
291
301
|
return this._create(e, t, n, r);
|
|
292
302
|
}
|
|
293
303
|
static async connect(e, n = []) {
|
|
294
|
-
let r = new
|
|
304
|
+
let r = new S();
|
|
295
305
|
r.viewName = e;
|
|
296
|
-
let { resolve: i, promise: a } =
|
|
306
|
+
let { resolve: i, promise: a } = C(), { resolve: o, promise: s } = C(), c = new t("custom-view-" + e, window, window.parent, ({ message: e, args: t }) => {
|
|
297
307
|
switch (e) {
|
|
298
|
-
case
|
|
308
|
+
case A.REGISTER_CUSTOM_VIEW_DONE:
|
|
299
309
|
i();
|
|
300
310
|
break;
|
|
301
|
-
case
|
|
311
|
+
case A.RETURN_METHODS:
|
|
302
312
|
r.handleSetup(t[0]), o();
|
|
303
313
|
break;
|
|
304
314
|
default: if (r.isSetupDone) return r.executeMessage({
|
|
@@ -309,7 +319,7 @@ var C = /\/v[23]\/?$/, w = (e, t) => C.test(e) ? e.replace(C, "/v2") + t : e + t
|
|
|
309
319
|
});
|
|
310
320
|
r.setMessageHandler(c);
|
|
311
321
|
let l = [e];
|
|
312
|
-
return c.sendMessage(
|
|
322
|
+
return c.sendMessage(A.REGISTER_CUSTOM_VIEW, l), await a, c.sendMessage(A.GET_METHODS, l), await s, r.setupPlugins(n, document.body, "custom-view"), await Promise.allSettled(r.pluginsLoaded), r;
|
|
313
323
|
}
|
|
314
324
|
static createConfigurator(e, t, n, r = []) {
|
|
315
325
|
return this._create(e, t, n, r);
|
|
@@ -323,10 +333,10 @@ var C = /\/v[23]\/?$/, w = (e, t) => C.test(e) ? e.replace(C, "/v2") + t : e + t
|
|
|
323
333
|
static async _create(e, t, n, r) {
|
|
324
334
|
return new Promise(async (i, a) => {
|
|
325
335
|
try {
|
|
326
|
-
let a =
|
|
327
|
-
|
|
328
|
-
let c = await
|
|
329
|
-
n =
|
|
336
|
+
let a = f(n), s = h();
|
|
337
|
+
y(s);
|
|
338
|
+
let c = await P(e, o(s, a));
|
|
339
|
+
n = b(c, a);
|
|
330
340
|
let l = new this(c, t, n, r, i);
|
|
331
341
|
return await Promise.allSettled(l.pluginsLoaded), l;
|
|
332
342
|
} catch (e) {
|
|
@@ -341,51 +351,51 @@ var C = /\/v[23]\/?$/, w = (e, t) => C.test(e) ? e.replace(C, "/v2") + t : e + t
|
|
|
341
351
|
_iframe;
|
|
342
352
|
constructor(e, n, r, i, a) {
|
|
343
353
|
if (super(), !e || typeof e.id != "string") throw Error("Please provide a correct configuratorId, you get the correct ID from your Roomle Contact Person");
|
|
344
|
-
if (
|
|
345
|
-
if (!document.getElementById(
|
|
354
|
+
if (U.has(n)) throw Error("There is already an instance on this DOM element");
|
|
355
|
+
if (!document.getElementById(z)) {
|
|
346
356
|
let e = r.zIndex || 9999999, t = document.createElement("style");
|
|
347
|
-
t.type = "text/css", t.id =
|
|
348
|
-
let n = "transition:all ease-in-out " +
|
|
357
|
+
t.type = "text/css", t.id = z;
|
|
358
|
+
let n = "transition:all ease-in-out " + B + "ms;", i = ["-webkit-", "-o-"].reduce((e, t) => e += t + n, "") + n, a = L();
|
|
349
359
|
t.innerHTML = `
|
|
350
|
-
.${
|
|
351
|
-
.${
|
|
352
|
-
.${
|
|
353
|
-
.${
|
|
354
|
-
.${
|
|
355
|
-
.${
|
|
360
|
+
.${H.CONTAINER}{${V}:${a};}
|
|
361
|
+
.${H.POSITION}{position:fixed;top:0;left:0;z-index:${e};opacity:0}
|
|
362
|
+
.${H.TRANSITION}{${i}}
|
|
363
|
+
.${H.FILL}{width:100%;height:100%;opacity:1}
|
|
364
|
+
.${H.ANDROID_HEIGHT}{height:calc(var(${V},1vh)*100)}
|
|
365
|
+
.${H.OVERFLOW_HIDDEN}{overflow:hidden}
|
|
356
366
|
`, document.head.appendChild(t);
|
|
357
367
|
}
|
|
358
368
|
this._executeMessage = this._executeMessage.bind(this);
|
|
359
369
|
let o = new t("website", window, null, this._executeMessage);
|
|
360
|
-
this.setMessageHandler(o), this._onResize = this._onResize.bind(this),
|
|
370
|
+
this.setMessageHandler(o), this._onResize = this._onResize.bind(this), x() && window.addEventListener("resize", this._onResize), this._container = n, this._initData = r, this._configuratorSettings = e;
|
|
361
371
|
let s = this._createIframe();
|
|
362
|
-
this._onUseFullPage = this._onUseFullPage.bind(this), this._onBackToWebsite = this._onBackToWebsite.bind(this), this._waitForIframe = a, this._container.appendChild(s), this._iframe = s, this.setupPlugins(i, this._iframe),
|
|
372
|
+
this._onUseFullPage = this._onUseFullPage.bind(this), this._onBackToWebsite = this._onBackToWebsite.bind(this), this._waitForIframe = a, this._container.appendChild(s), this._iframe = s, this.setupPlugins(i, this._iframe), U.set(n, !0);
|
|
363
373
|
}
|
|
364
374
|
teardown() {
|
|
365
|
-
this._container &&
|
|
375
|
+
this._container && U.delete(this._container);
|
|
366
376
|
let e = this._container.querySelector("iframe");
|
|
367
377
|
e && this._container.removeChild(e), window.removeEventListener("resize", this._onResize);
|
|
368
378
|
}
|
|
369
379
|
_createIframe() {
|
|
370
380
|
let e = document.createElement("iframe"), t = this._configuratorSettings?.url || "https://www.roomle.com/t/cp/";
|
|
371
|
-
return this._initData.useLocalRoomle && (t = location.href.replace("embedding.html", "")), location.href.includes("roomle.gitlab.io") && (t = location.href.replace("embedding.html", "index.html")), this._initData.overrideServerUrl && (t = this._initData.overrideServerUrl), e.src = t, e.classList.add(
|
|
381
|
+
return this._initData.useLocalRoomle && (t = location.href.replace("embedding.html", "")), location.href.includes("roomle.gitlab.io") && (t = location.href.replace("embedding.html", "index.html")), this._initData.overrideServerUrl && (t = this._initData.overrideServerUrl), e.src = t, e.allow = "microphone", e.classList.add(H.CONTAINER), e.classList.add(H.FILL), e;
|
|
372
382
|
}
|
|
373
383
|
_onResize() {
|
|
374
|
-
|
|
384
|
+
R(this._iframe);
|
|
375
385
|
}
|
|
376
386
|
_onUseFullPage() {
|
|
377
|
-
this._iframe.classList.add(
|
|
387
|
+
this._iframe.classList.add(H.POSITION), document.documentElement.classList.add(H.OVERFLOW_HIDDEN), window.document.body.classList.add(H.OVERFLOW_HIDDEN), x() && (R(this._iframe), this._iframe.classList.add(H.ANDROID_HEIGHT));
|
|
378
388
|
}
|
|
379
389
|
_onBackToWebsite() {
|
|
380
|
-
this._iframe.classList.remove(
|
|
390
|
+
this._iframe.classList.remove(H.POSITION), this._iframe.classList.remove(H.ANDROID_HEIGHT), document.documentElement.classList.remove(H.OVERFLOW_HIDDEN), window.document.body.classList.remove(H.OVERFLOW_HIDDEN);
|
|
381
391
|
}
|
|
382
392
|
_executeMessage({ message: e, args: t }, n) {
|
|
383
|
-
if (n.source && n.source === this._iframe?.contentWindow) return e ===
|
|
393
|
+
if (n.source && n.source === this._iframe?.contentWindow) return e === k.REQUEST_BOOT ? this._messageHandler ? (this._messageHandler.setOutgoingMessageBus(n.source), Promise.resolve({ result: this._initData })) : (console.error("MessageHandler not set"), Promise.resolve({ error: "MessageHandler not set" })) : e === k.SETUP ? (this.handleSetup(t[0]), I(this.ui.callbacks, "onUseFullPage", this._onUseFullPage), I(this.ui.callbacks, "onBackToWebsite", this._onBackToWebsite), this._waitForIframe(this), setTimeout(() => {
|
|
384
394
|
if (!this._messageHandler) {
|
|
385
395
|
console.error("MessageHandler not set");
|
|
386
396
|
return;
|
|
387
397
|
}
|
|
388
|
-
this._messageHandler.sendMessage(
|
|
398
|
+
this._messageHandler.sendMessage(k.WEBSITE_READY);
|
|
389
399
|
}, 0), Promise.resolve({ result: null })) : this.executeMessage({
|
|
390
400
|
message: e,
|
|
391
401
|
args: t
|
|
@@ -393,4 +403,4 @@ var C = /\/v[23]\/?$/, w = (e, t) => C.test(e) ? e.replace(C, "/v2") + t : e + t
|
|
|
393
403
|
}
|
|
394
404
|
};
|
|
395
405
|
//#endregion
|
|
396
|
-
export {
|
|
406
|
+
export { k as HANDSHAKE_MESSAGES, F as INTERACTION_CONTAINER_SELECTOR, E as NAMESPACE, D as NAMESPACE_SEPARATOR, O as SDK_CALLBACK, A as WELL_KNOWN_MESSAGES, W as default, P as getConfiguratorSettings, N as getMethodNames, M as isExposable };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/*! Third-party licenses: THIRD-PARTY-NOTICES.txt and sbom.cdx.json in the root of this package */
|
|
2
|
+
import { t as e } from "./browser-D6As4Zxr.mjs";
|
|
2
3
|
var t = class {
|
|
3
4
|
_side;
|
|
4
5
|
_incomingMessageBus = null;
|
|
@@ -102,6 +103,15 @@ var t = class {
|
|
|
102
103
|
openCloseAnimation: !0,
|
|
103
104
|
localExport3d: !1
|
|
104
105
|
},
|
|
106
|
+
imageGenConfig: {
|
|
107
|
+
staging: !1,
|
|
108
|
+
theme: "scandinavian",
|
|
109
|
+
density: "balanced",
|
|
110
|
+
light: "soft",
|
|
111
|
+
birdsEyeView: "adjust",
|
|
112
|
+
debug: !1,
|
|
113
|
+
stage: "alpha"
|
|
114
|
+
},
|
|
105
115
|
configuratorZoom: !1,
|
|
106
116
|
rotationSnapDegrees: 10,
|
|
107
117
|
interactionsCollapsed: !1
|
|
@@ -175,7 +185,7 @@ var t = class {
|
|
|
175
185
|
setupPlugins(e, t, n = "website") {
|
|
176
186
|
for (let r of e) typeof r == "string" && r === "dragIn" ? this.pluginsLoaded.push(new Promise((e, r) => {
|
|
177
187
|
try {
|
|
178
|
-
import("./drag-in-
|
|
188
|
+
import("./drag-in-t7T6Pqwc.mjs").then((e) => e.n).then(({ DragIn: i }) => {
|
|
179
189
|
let a = new i(this.ui, t, n, this.viewName);
|
|
180
190
|
a.init().then(() => {
|
|
181
191
|
this.plugins.dragIn = a, e();
|
|
@@ -343,7 +353,7 @@ var h = /\/v[23]\/?$/, g = {
|
|
|
343
353
|
}
|
|
344
354
|
_createIframe() {
|
|
345
355
|
let e = document.createElement("iframe"), t = this._configuratorSettings?.url || "https://www.roomle.com/t/cp/";
|
|
346
|
-
return this._initData.useLocalRoomle && (t = location.href.replace("embedding.html", "")), location.href.includes("roomle.gitlab.io") && (t = location.href.replace("embedding.html", "index.html")), this._initData.overrideServerUrl && (t = this._initData.overrideServerUrl), e.src = t, e.classList.add(j), e.classList.add(M), e;
|
|
356
|
+
return this._initData.useLocalRoomle && (t = location.href.replace("embedding.html", "")), location.href.includes("roomle.gitlab.io") && (t = location.href.replace("embedding.html", "index.html")), this._initData.overrideServerUrl && (t = this._initData.overrideServerUrl), e.src = t, e.allow = "microphone", e.classList.add(j), e.classList.add(M), e;
|
|
347
357
|
}
|
|
348
358
|
_onResize() {
|
|
349
359
|
O(this._iframe);
|