@roomle/embedding-lib 7.3.0-alpha.3 → 8.0.0-alpha.1
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/comlink-B2Kj_5Ge.mjs +206 -0
- package/comlink-B5lV2OWp.mjs +226 -0
- package/docs/md/web/embedding/CHANGELOG.md +62 -13
- package/{drag-ghost-DqF-SGUQ.mjs → drag-ghost-BxqPJdhq.mjs} +1 -1
- package/{drag-ghost-Rbgko27K.mjs → drag-ghost-CDFtC1pd.mjs} +1 -1
- package/{drag-in-DDGopCLr.mjs → drag-in-CV1E-DO6.mjs} +15 -9
- package/{drag-in-BCnrHxxt.mjs → drag-in-ClPpCYyi.mjs} +20 -14
- package/embedding-plugins.js +1 -1
- package/embedding-plugins.min.js +1 -1
- package/{from-custom-view-BxJkoaTB.mjs → from-custom-view-Q9A-J7qV.mjs} +31 -31
- package/{from-custom-view-CbO74qvE.mjs → from-custom-view-Sx6P6iDI.mjs} +30 -30
- package/{from-website-W-UZ3lee.mjs → from-website-BmCO2xli.mjs} +23 -23
- package/{from-website-D07qrmeq.mjs → from-website-DZJy_l42.mjs} +23 -23
- package/hi.js +3 -3
- package/hi.min.js +3 -3
- package/package.json +1 -1
- package/packages/embedding-lib/src/roomle-embedding-lib.d.ts +0 -3
- package/roomle-embedding-lib.js +83 -94
- package/roomle-embedding-lib.min.js +75 -86
- package/comlink-BipJ8Ikr.mjs +0 -237
- package/comlink-Dds_bpug.mjs +0 -220
- package/rolldown-runtime-C-QNzSnW.mjs +0 -11
- package/rolldown-runtime-C017PlDO.mjs +0 -9
- /package/{browser-DRgK3Fk8.mjs → browser-BxG7yIaK.mjs} +0 -0
- /package/{browser-C_Dfiou7.mjs → browser-CW9o-dtT.mjs} +0 -0
- /package/{utils-i2eOrtnv.mjs → utils-DxJ3PcKe.mjs} +0 -0
- /package/{utils-Co3lE-Ji.mjs → utils-wJ80awOA.mjs} +0 -0
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
var e = Symbol("Comlink.proxy"), t = Symbol("Comlink.endpoint"), n = Symbol("Comlink.releaseProxy"), r = Symbol("Comlink.finalizer"), i = Symbol("Comlink.thrown"), a = (e) => typeof e == "object" && !!e || typeof e == "function", o = new Map([["proxy", {
|
|
2
|
+
canHandle: (t) => a(t) && t[e],
|
|
3
|
+
serialize(e) {
|
|
4
|
+
let { port1: t, port2: n } = new MessageChannel();
|
|
5
|
+
return s(e, t), [n, [n]];
|
|
6
|
+
},
|
|
7
|
+
deserialize: (e) => (e.start(), function(e) {
|
|
8
|
+
let t = /* @__PURE__ */ new Map();
|
|
9
|
+
return e.addEventListener("message", function(e) {
|
|
10
|
+
let { data: n } = e;
|
|
11
|
+
if (!n || !n.id) return;
|
|
12
|
+
let r = t.get(n.id);
|
|
13
|
+
if (r) try {
|
|
14
|
+
r(n);
|
|
15
|
+
} finally {
|
|
16
|
+
t.delete(n.id);
|
|
17
|
+
}
|
|
18
|
+
}), p(e, t, [], void 0);
|
|
19
|
+
}(e))
|
|
20
|
+
}], ["throw", {
|
|
21
|
+
canHandle: (e) => a(e) && i in e,
|
|
22
|
+
serialize({ value: e }) {
|
|
23
|
+
let t;
|
|
24
|
+
return t = e instanceof Error ? {
|
|
25
|
+
isError: !0,
|
|
26
|
+
value: {
|
|
27
|
+
message: e.message,
|
|
28
|
+
name: e.name,
|
|
29
|
+
stack: e.stack
|
|
30
|
+
}
|
|
31
|
+
} : {
|
|
32
|
+
isError: !1,
|
|
33
|
+
value: e
|
|
34
|
+
}, [t, []];
|
|
35
|
+
},
|
|
36
|
+
deserialize(e) {
|
|
37
|
+
throw e.isError ? Object.assign(Error(e.value.message), e.value) : e.value;
|
|
38
|
+
}
|
|
39
|
+
}]]);
|
|
40
|
+
function s(t, n = globalThis, a = ["*"]) {
|
|
41
|
+
n.addEventListener("message", function o(l) {
|
|
42
|
+
if (!l || !l.data || !function(e, t) {
|
|
43
|
+
for (let n of e) if (t === n || n === "*" || n instanceof RegExp && n.test(t)) return !0;
|
|
44
|
+
return !1;
|
|
45
|
+
}(a, l.origin)) return;
|
|
46
|
+
let { id: u, type: d, path: f } = Object.assign({ path: [] }, l.data), p = (l.data.argumentList || []).map(_), m;
|
|
47
|
+
try {
|
|
48
|
+
let n = f.slice(0, -1).reduce((e, t) => e[t], t), r = f.reduce((e, t) => e[t], t);
|
|
49
|
+
switch (d) {
|
|
50
|
+
case "GET":
|
|
51
|
+
m = r;
|
|
52
|
+
break;
|
|
53
|
+
case "SET":
|
|
54
|
+
n[f.slice(-1)[0]] = _(l.data.value), m = !0;
|
|
55
|
+
break;
|
|
56
|
+
case "APPLY":
|
|
57
|
+
m = r.apply(n, p);
|
|
58
|
+
break;
|
|
59
|
+
case "CONSTRUCT":
|
|
60
|
+
m = function(t) {
|
|
61
|
+
return Object.assign(t, { [e]: !0 });
|
|
62
|
+
}(new r(...p));
|
|
63
|
+
break;
|
|
64
|
+
case "ENDPOINT":
|
|
65
|
+
{
|
|
66
|
+
let { port1: e, port2: n } = new MessageChannel();
|
|
67
|
+
s(t, n), m = function(e, t) {
|
|
68
|
+
return h.set(e, t), e;
|
|
69
|
+
}(e, [e]);
|
|
70
|
+
}
|
|
71
|
+
break;
|
|
72
|
+
case "RELEASE":
|
|
73
|
+
m = void 0;
|
|
74
|
+
break;
|
|
75
|
+
default: return;
|
|
76
|
+
}
|
|
77
|
+
} catch (e) {
|
|
78
|
+
m = {
|
|
79
|
+
value: e,
|
|
80
|
+
[i]: 0
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
Promise.resolve(m).catch((e) => ({
|
|
84
|
+
value: e,
|
|
85
|
+
[i]: 0
|
|
86
|
+
})).then((e) => {
|
|
87
|
+
let [i, a] = g(e);
|
|
88
|
+
n.postMessage(Object.assign(Object.assign({}, i), { id: u }), a), d === "RELEASE" && (n.removeEventListener("message", o), c(n), r in t && typeof t[r] == "function" && t[r]());
|
|
89
|
+
}).catch((e) => {
|
|
90
|
+
let [t, r] = g({
|
|
91
|
+
value: /* @__PURE__ */ TypeError("Unserializable return value"),
|
|
92
|
+
[i]: 0
|
|
93
|
+
});
|
|
94
|
+
n.postMessage(Object.assign(Object.assign({}, t), { id: u }), r);
|
|
95
|
+
});
|
|
96
|
+
}), n.start && n.start();
|
|
97
|
+
}
|
|
98
|
+
function c(e) {
|
|
99
|
+
(function(e) {
|
|
100
|
+
return e.constructor.name === "MessagePort";
|
|
101
|
+
})(e) && e.close();
|
|
102
|
+
}
|
|
103
|
+
function l(e) {
|
|
104
|
+
if (e) throw Error("Proxy has been released and is not useable");
|
|
105
|
+
}
|
|
106
|
+
function u(e) {
|
|
107
|
+
return v(e, /* @__PURE__ */ new Map(), { type: "RELEASE" }).then(() => {
|
|
108
|
+
c(e);
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
var d = /* @__PURE__ */ new WeakMap(), f = "FinalizationRegistry" in globalThis && new FinalizationRegistry((e) => {
|
|
112
|
+
let t = (d.get(e) || 0) - 1;
|
|
113
|
+
d.set(e, t), t === 0 && u(e);
|
|
114
|
+
});
|
|
115
|
+
function p(e, r, i = [], a = function() {}) {
|
|
116
|
+
let o = !1, s = new Proxy(a, {
|
|
117
|
+
get(t, a) {
|
|
118
|
+
if (l(o), a === n) return () => {
|
|
119
|
+
(function(e) {
|
|
120
|
+
f && f.unregister(e);
|
|
121
|
+
})(s), u(e), r.clear(), o = !0;
|
|
122
|
+
};
|
|
123
|
+
if (a === "then") {
|
|
124
|
+
if (i.length === 0) return { then: () => s };
|
|
125
|
+
let t = v(e, r, {
|
|
126
|
+
type: "GET",
|
|
127
|
+
path: i.map((e) => e.toString())
|
|
128
|
+
}).then(_);
|
|
129
|
+
return t.then.bind(t);
|
|
130
|
+
}
|
|
131
|
+
return p(e, r, [...i, a]);
|
|
132
|
+
},
|
|
133
|
+
set(t, n, a) {
|
|
134
|
+
l(o);
|
|
135
|
+
let [s, c] = g(a);
|
|
136
|
+
return v(e, r, {
|
|
137
|
+
type: "SET",
|
|
138
|
+
path: [...i, n].map((e) => e.toString()),
|
|
139
|
+
value: s
|
|
140
|
+
}, c).then(_);
|
|
141
|
+
},
|
|
142
|
+
apply(n, a, s) {
|
|
143
|
+
l(o);
|
|
144
|
+
let c = i[i.length - 1];
|
|
145
|
+
if (c === t) return v(e, r, { type: "ENDPOINT" }).then(_);
|
|
146
|
+
if (c === "bind") return p(e, r, i.slice(0, -1));
|
|
147
|
+
let [u, d] = m(s);
|
|
148
|
+
return v(e, r, {
|
|
149
|
+
type: "APPLY",
|
|
150
|
+
path: i.map((e) => e.toString()),
|
|
151
|
+
argumentList: u
|
|
152
|
+
}, d).then(_);
|
|
153
|
+
},
|
|
154
|
+
construct(t, n) {
|
|
155
|
+
l(o);
|
|
156
|
+
let [a, s] = m(n);
|
|
157
|
+
return v(e, r, {
|
|
158
|
+
type: "CONSTRUCT",
|
|
159
|
+
path: i.map((e) => e.toString()),
|
|
160
|
+
argumentList: a
|
|
161
|
+
}, s).then(_);
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
return function(e, t) {
|
|
165
|
+
let n = (d.get(t) || 0) + 1;
|
|
166
|
+
d.set(t, n), f && f.register(e, t, e);
|
|
167
|
+
}(s, e), s;
|
|
168
|
+
}
|
|
169
|
+
function m(e) {
|
|
170
|
+
let t = e.map(g);
|
|
171
|
+
return [t.map((e) => e[0]), (n = t.map((e) => e[1]), Array.prototype.concat.apply([], n))];
|
|
172
|
+
var n;
|
|
173
|
+
}
|
|
174
|
+
var h = /* @__PURE__ */ new WeakMap();
|
|
175
|
+
function g(e) {
|
|
176
|
+
for (let [t, n] of o) if (n.canHandle(e)) {
|
|
177
|
+
let [r, i] = n.serialize(e);
|
|
178
|
+
return [{
|
|
179
|
+
type: "HANDLER",
|
|
180
|
+
name: t,
|
|
181
|
+
value: r
|
|
182
|
+
}, i];
|
|
183
|
+
}
|
|
184
|
+
return [{
|
|
185
|
+
type: "RAW",
|
|
186
|
+
value: e
|
|
187
|
+
}, h.get(e) || []];
|
|
188
|
+
}
|
|
189
|
+
function _(e) {
|
|
190
|
+
switch (e.type) {
|
|
191
|
+
case "HANDLER": return o.get(e.name).deserialize(e.value);
|
|
192
|
+
case "RAW": return e.value;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
function v(e, t, n, r) {
|
|
196
|
+
return new Promise((i) => {
|
|
197
|
+
let a = [
|
|
198
|
+
,
|
|
199
|
+
,
|
|
200
|
+
,
|
|
201
|
+
,
|
|
202
|
+
].fill(0).map(() => Math.floor(Math.random() * (2 ** 53 - 1)).toString(16)).join("-");
|
|
203
|
+
t.set(a, i), e.start && e.start(), e.postMessage(Object.assign({ id: a }, n), r);
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
export { s as expose };
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
//#region node_modules/comlink/dist/esm/comlink.mjs
|
|
2
|
+
var e = Symbol("Comlink.proxy"), t = Symbol("Comlink.endpoint"), n = Symbol("Comlink.releaseProxy"), r = Symbol("Comlink.finalizer"), i = Symbol("Comlink.thrown"), a = (e) => typeof e == "object" && !!e || typeof e == "function", o = new Map([["proxy", {
|
|
3
|
+
canHandle: (t) => a(t) && t[e],
|
|
4
|
+
serialize(e) {
|
|
5
|
+
let { port1: t, port2: n } = new MessageChannel();
|
|
6
|
+
return c(e, t), [n, [n]];
|
|
7
|
+
},
|
|
8
|
+
deserialize(e) {
|
|
9
|
+
return e.start(), d(e);
|
|
10
|
+
}
|
|
11
|
+
}], ["throw", {
|
|
12
|
+
canHandle: (e) => a(e) && i in e,
|
|
13
|
+
serialize({ value: e }) {
|
|
14
|
+
let t;
|
|
15
|
+
return t = e instanceof Error ? {
|
|
16
|
+
isError: !0,
|
|
17
|
+
value: {
|
|
18
|
+
message: e.message,
|
|
19
|
+
name: e.name,
|
|
20
|
+
stack: e.stack
|
|
21
|
+
}
|
|
22
|
+
} : {
|
|
23
|
+
isError: !1,
|
|
24
|
+
value: e
|
|
25
|
+
}, [t, []];
|
|
26
|
+
},
|
|
27
|
+
deserialize(e) {
|
|
28
|
+
throw e.isError ? Object.assign(Error(e.value.message), e.value) : e.value;
|
|
29
|
+
}
|
|
30
|
+
}]]);
|
|
31
|
+
function s(e, t) {
|
|
32
|
+
for (let n of e) if (t === n || n === "*" || n instanceof RegExp && n.test(t)) return !0;
|
|
33
|
+
return !1;
|
|
34
|
+
}
|
|
35
|
+
function c(e, t = globalThis, n = ["*"]) {
|
|
36
|
+
t.addEventListener("message", function a(o) {
|
|
37
|
+
if (!o || !o.data) return;
|
|
38
|
+
if (!s(n, o.origin)) {
|
|
39
|
+
console.warn(`Invalid origin '${o.origin}' for comlink proxy`);
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
let { id: l, type: d, path: f } = Object.assign({ path: [] }, o.data), p = (o.data.argumentList || []).map(T), m;
|
|
43
|
+
try {
|
|
44
|
+
let t = f.slice(0, -1).reduce((e, t) => e[t], e), n = f.reduce((e, t) => e[t], e);
|
|
45
|
+
switch (d) {
|
|
46
|
+
case "GET":
|
|
47
|
+
m = n;
|
|
48
|
+
break;
|
|
49
|
+
case "SET":
|
|
50
|
+
t[f.slice(-1)[0]] = T(o.data.value), m = !0;
|
|
51
|
+
break;
|
|
52
|
+
case "APPLY":
|
|
53
|
+
m = n.apply(t, p);
|
|
54
|
+
break;
|
|
55
|
+
case "CONSTRUCT":
|
|
56
|
+
m = C(new n(...p));
|
|
57
|
+
break;
|
|
58
|
+
case "ENDPOINT":
|
|
59
|
+
{
|
|
60
|
+
let { port1: t, port2: n } = new MessageChannel();
|
|
61
|
+
c(e, n), m = S(t, [t]);
|
|
62
|
+
}
|
|
63
|
+
break;
|
|
64
|
+
case "RELEASE":
|
|
65
|
+
m = void 0;
|
|
66
|
+
break;
|
|
67
|
+
default: return;
|
|
68
|
+
}
|
|
69
|
+
} catch (e) {
|
|
70
|
+
m = {
|
|
71
|
+
value: e,
|
|
72
|
+
[i]: 0
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
Promise.resolve(m).catch((e) => ({
|
|
76
|
+
value: e,
|
|
77
|
+
[i]: 0
|
|
78
|
+
})).then((n) => {
|
|
79
|
+
let [i, o] = w(n);
|
|
80
|
+
t.postMessage(Object.assign(Object.assign({}, i), { id: l }), o), d === "RELEASE" && (t.removeEventListener("message", a), u(t), r in e && typeof e[r] == "function" && e[r]());
|
|
81
|
+
}).catch((e) => {
|
|
82
|
+
let [n, r] = w({
|
|
83
|
+
value: /* @__PURE__ */ TypeError("Unserializable return value"),
|
|
84
|
+
[i]: 0
|
|
85
|
+
});
|
|
86
|
+
t.postMessage(Object.assign(Object.assign({}, n), { id: l }), r);
|
|
87
|
+
});
|
|
88
|
+
}), t.start && t.start();
|
|
89
|
+
}
|
|
90
|
+
function l(e) {
|
|
91
|
+
return e.constructor.name === "MessagePort";
|
|
92
|
+
}
|
|
93
|
+
function u(e) {
|
|
94
|
+
l(e) && e.close();
|
|
95
|
+
}
|
|
96
|
+
function d(e, t) {
|
|
97
|
+
let n = /* @__PURE__ */ new Map();
|
|
98
|
+
return e.addEventListener("message", function(e) {
|
|
99
|
+
let { data: t } = e;
|
|
100
|
+
if (!t || !t.id) return;
|
|
101
|
+
let r = n.get(t.id);
|
|
102
|
+
if (r) try {
|
|
103
|
+
r(t);
|
|
104
|
+
} finally {
|
|
105
|
+
n.delete(t.id);
|
|
106
|
+
}
|
|
107
|
+
}), v(e, n, [], t);
|
|
108
|
+
}
|
|
109
|
+
function f(e) {
|
|
110
|
+
if (e) throw Error("Proxy has been released and is not useable");
|
|
111
|
+
}
|
|
112
|
+
function p(e) {
|
|
113
|
+
return E(e, /* @__PURE__ */ new Map(), { type: "RELEASE" }).then(() => {
|
|
114
|
+
u(e);
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
var m = /* @__PURE__ */ new WeakMap(), h = "FinalizationRegistry" in globalThis && new FinalizationRegistry((e) => {
|
|
118
|
+
let t = (m.get(e) || 0) - 1;
|
|
119
|
+
m.set(e, t), t === 0 && p(e);
|
|
120
|
+
});
|
|
121
|
+
function g(e, t) {
|
|
122
|
+
let n = (m.get(t) || 0) + 1;
|
|
123
|
+
m.set(t, n), h && h.register(e, t, e);
|
|
124
|
+
}
|
|
125
|
+
function _(e) {
|
|
126
|
+
h && h.unregister(e);
|
|
127
|
+
}
|
|
128
|
+
function v(e, r, i = [], a = function() {}) {
|
|
129
|
+
let o = !1, s = new Proxy(a, {
|
|
130
|
+
get(t, a) {
|
|
131
|
+
if (f(o), a === n) return () => {
|
|
132
|
+
_(s), p(e), r.clear(), o = !0;
|
|
133
|
+
};
|
|
134
|
+
if (a === "then") {
|
|
135
|
+
if (i.length === 0) return { then: () => s };
|
|
136
|
+
let t = E(e, r, {
|
|
137
|
+
type: "GET",
|
|
138
|
+
path: i.map((e) => e.toString())
|
|
139
|
+
}).then(T);
|
|
140
|
+
return t.then.bind(t);
|
|
141
|
+
}
|
|
142
|
+
return v(e, r, [...i, a]);
|
|
143
|
+
},
|
|
144
|
+
set(t, n, a) {
|
|
145
|
+
f(o);
|
|
146
|
+
let [s, c] = w(a);
|
|
147
|
+
return E(e, r, {
|
|
148
|
+
type: "SET",
|
|
149
|
+
path: [...i, n].map((e) => e.toString()),
|
|
150
|
+
value: s
|
|
151
|
+
}, c).then(T);
|
|
152
|
+
},
|
|
153
|
+
apply(n, a, s) {
|
|
154
|
+
f(o);
|
|
155
|
+
let c = i[i.length - 1];
|
|
156
|
+
if (c === t) return E(e, r, { type: "ENDPOINT" }).then(T);
|
|
157
|
+
if (c === "bind") return v(e, r, i.slice(0, -1));
|
|
158
|
+
let [l, u] = b(s);
|
|
159
|
+
return E(e, r, {
|
|
160
|
+
type: "APPLY",
|
|
161
|
+
path: i.map((e) => e.toString()),
|
|
162
|
+
argumentList: l
|
|
163
|
+
}, u).then(T);
|
|
164
|
+
},
|
|
165
|
+
construct(t, n) {
|
|
166
|
+
f(o);
|
|
167
|
+
let [a, s] = b(n);
|
|
168
|
+
return E(e, r, {
|
|
169
|
+
type: "CONSTRUCT",
|
|
170
|
+
path: i.map((e) => e.toString()),
|
|
171
|
+
argumentList: a
|
|
172
|
+
}, s).then(T);
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
return g(s, e), s;
|
|
176
|
+
}
|
|
177
|
+
function y(e) {
|
|
178
|
+
return Array.prototype.concat.apply([], e);
|
|
179
|
+
}
|
|
180
|
+
function b(e) {
|
|
181
|
+
let t = e.map(w);
|
|
182
|
+
return [t.map((e) => e[0]), y(t.map((e) => e[1]))];
|
|
183
|
+
}
|
|
184
|
+
var x = /* @__PURE__ */ new WeakMap();
|
|
185
|
+
function S(e, t) {
|
|
186
|
+
return x.set(e, t), e;
|
|
187
|
+
}
|
|
188
|
+
function C(t) {
|
|
189
|
+
return Object.assign(t, { [e]: !0 });
|
|
190
|
+
}
|
|
191
|
+
function w(e) {
|
|
192
|
+
for (let [t, n] of o) if (n.canHandle(e)) {
|
|
193
|
+
let [r, i] = n.serialize(e);
|
|
194
|
+
return [{
|
|
195
|
+
type: "HANDLER",
|
|
196
|
+
name: t,
|
|
197
|
+
value: r
|
|
198
|
+
}, i];
|
|
199
|
+
}
|
|
200
|
+
return [{
|
|
201
|
+
type: "RAW",
|
|
202
|
+
value: e
|
|
203
|
+
}, x.get(e) || []];
|
|
204
|
+
}
|
|
205
|
+
function T(e) {
|
|
206
|
+
switch (e.type) {
|
|
207
|
+
case "HANDLER": return o.get(e.name).deserialize(e.value);
|
|
208
|
+
case "RAW": return e.value;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
function E(e, t, n, r) {
|
|
212
|
+
return new Promise((i) => {
|
|
213
|
+
let a = D();
|
|
214
|
+
t.set(a, i), e.start && e.start(), e.postMessage(Object.assign({ id: a }, n), r);
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
function D() {
|
|
218
|
+
return [
|
|
219
|
+
,
|
|
220
|
+
,
|
|
221
|
+
,
|
|
222
|
+
,
|
|
223
|
+
].fill(0).map(() => Math.floor(Math.random() * (2 ** 53 - 1)).toString(16)).join("-");
|
|
224
|
+
}
|
|
225
|
+
//#endregion
|
|
226
|
+
export { c as expose };
|
|
@@ -1,13 +1,62 @@
|
|
|
1
|
-
##
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Merge branch 'master' into fix/
|
|
5
|
-
* Merge branch 'master' into fix/
|
|
6
|
-
* Merge
|
|
7
|
-
* Merge
|
|
8
|
-
* Merge
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
1
|
+
## 8.0.0-alpha.1 (2026-09-15)
|
|
2
|
+
|
|
3
|
+
* fix(embedding-lib)!: remove deprecated RoomleEmbeddingApi.setupHi ([e6ce76c](https://github.com/roomle-dev/roomle-ui/commit/e6ce76c))
|
|
4
|
+
* Merge branch 'master' into fix/dock-line-preview-not-cleared-RML-17757 ([c5a4da3](https://github.com/roomle-dev/roomle-ui/commit/c5a4da3))
|
|
5
|
+
* Merge branch 'master' into fix/dock-line-preview-not-cleared-RML-17757 ([f676791](https://github.com/roomle-dev/roomle-ui/commit/f676791))
|
|
6
|
+
* Merge branch 'master' into fix/dock-line-preview-not-cleared-RML-17757 ([b869ae5](https://github.com/roomle-dev/roomle-ui/commit/b869ae5))
|
|
7
|
+
* Merge branch 'master' into fix/elevation-plan-dimension-labels-reading-direction-RML-17771 ([34f02da](https://github.com/roomle-dev/roomle-ui/commit/34f02da))
|
|
8
|
+
* Merge branch 'master' into fix/elevation-plan-dimension-labels-reading-direction-RML-17771 ([4dc463a](https://github.com/roomle-dev/roomle-ui/commit/4dc463a))
|
|
9
|
+
* Merge branch 'master' into fix/elevation-plan-dimension-labels-reading-direction-RML-17771 ([c8b3e1a](https://github.com/roomle-dev/roomle-ui/commit/c8b3e1a))
|
|
10
|
+
* Merge branch 'master' into fix/hide-construction-elements-in-edit-mode ([3ec3343](https://github.com/roomle-dev/roomle-ui/commit/3ec3343))
|
|
11
|
+
* Merge branch 'master' into fix/remove-deprecated-setup-hi-RML-17666 ([1899b1b](https://github.com/roomle-dev/roomle-ui/commit/1899b1b))
|
|
12
|
+
* Merge branch 'master' into fix/webgpu-fog-transparent-objects ([3b03e6e](https://github.com/roomle-dev/roomle-ui/commit/3b03e6e))
|
|
13
|
+
* Merge branch 'master' into fix/webgpu-fog-transparent-objects ([2b990d0](https://github.com/roomle-dev/roomle-ui/commit/2b990d0))
|
|
14
|
+
* Merge branch 'master' into fix/webgpu-fog-transparent-objects ([ad626ed](https://github.com/roomle-dev/roomle-ui/commit/ad626ed))
|
|
15
|
+
* Merge branch 'master' into fix/webgpu-fog-transparent-objects ([d2506cd](https://github.com/roomle-dev/roomle-ui/commit/d2506cd))
|
|
16
|
+
* Merge pull request #2959 from roomle-dev/fix/webgpu-fog-transparent-objects ([1b30728](https://github.com/roomle-dev/roomle-ui/commit/1b30728)), closes [#2959](https://github.com/roomle-dev/roomle-ui/issues/2959)
|
|
17
|
+
* Merge pull request #2965 from roomle-dev/fix/elevation-plan-dimension-labels-reading-direction-RML-1 ([60f785a](https://github.com/roomle-dev/roomle-ui/commit/60f785a)), closes [#2965](https://github.com/roomle-dev/roomle-ui/issues/2965)
|
|
18
|
+
* Merge pull request #2966 from roomle-dev/fix/dock-line-preview-not-cleared-RML-17757 ([6e70611](https://github.com/roomle-dev/roomle-ui/commit/6e70611)), closes [#2966](https://github.com/roomle-dev/roomle-ui/issues/2966)
|
|
19
|
+
* Merge pull request #2968 from roomle-dev/fix/telemetry-url-only-in-dev-all-RML-17733 ([199d94e](https://github.com/roomle-dev/roomle-ui/commit/199d94e)), closes [#2968](https://github.com/roomle-dev/roomle-ui/issues/2968)
|
|
20
|
+
* Merge pull request #2970 from roomle-dev/fix/remove-deprecated-setup-hi-RML-17666 ([a1e4666](https://github.com/roomle-dev/roomle-ui/commit/a1e4666)), closes [#2970](https://github.com/roomle-dev/roomle-ui/issues/2970)
|
|
21
|
+
* Merge pull request #2973 from roomle-dev/feat/floor-plan-svg-for-fence ([d886d0c](https://github.com/roomle-dev/roomle-ui/commit/d886d0c)), closes [#2973](https://github.com/roomle-dev/roomle-ui/issues/2973)
|
|
22
|
+
* Merge pull request #2981 from roomle-dev/upgraded-by-ci/core-2.84.0-alpha.8 ([02e9341](https://github.com/roomle-dev/roomle-ui/commit/02e9341)), closes [#2981](https://github.com/roomle-dev/roomle-ui/issues/2981)
|
|
23
|
+
* Merge pull request #2982 from roomle-dev/fix/hide-construction-elements-in-edit-mode ([6c8be53](https://github.com/roomle-dev/roomle-ui/commit/6c8be53)), closes [#2982](https://github.com/roomle-dev/roomle-ui/issues/2982)
|
|
24
|
+
* Merge pull request #2983 from roomle-dev/fix/fence-contour-line-visible-in-3d-RML-17844 ([b8bbfff](https://github.com/roomle-dev/roomle-ui/commit/b8bbfff)), closes [#2983](https://github.com/roomle-dev/roomle-ui/issues/2983)
|
|
25
|
+
* Merge pull request #2984 from roomle-dev/upgraded-by-ci/core-2.84.0-alpha.9 ([bf28187](https://github.com/roomle-dev/roomle-ui/commit/bf28187)), closes [#2984](https://github.com/roomle-dev/roomle-ui/issues/2984)
|
|
26
|
+
* chore(snapshots): auto-update headless baselines [skip ci] ([c316ef5](https://github.com/roomle-dev/roomle-ui/commit/c316ef5))
|
|
27
|
+
* chore(snapshots): auto-update headless baselines [skip ci] ([9dd05a1](https://github.com/roomle-dev/roomle-ui/commit/9dd05a1))
|
|
28
|
+
* chore: merge master into fix/webgpu-fog-transparent-objects ([34d8cd8](https://github.com/roomle-dev/roomle-ui/commit/34d8cd8))
|
|
29
|
+
* chore: merge master into floor plan svg branch ([b18a3ef](https://github.com/roomle-dev/roomle-ui/commit/b18a3ef))
|
|
30
|
+
* chore: reword comment ([e37e8bc](https://github.com/roomle-dev/roomle-ui/commit/e37e8bc))
|
|
31
|
+
* refactor: address floor plan svg review feedback ([172d898](https://github.com/roomle-dev/roomle-ui/commit/172d898))
|
|
32
|
+
* refactor: clarify upside-down dimension predicate ([bb0acb2](https://github.com/roomle-dev/roomle-ui/commit/bb0acb2))
|
|
33
|
+
* feat: export the floor plan svg of a fence construction ([5ae4c95](https://github.com/roomle-dev/roomle-ui/commit/5ae4c95))
|
|
34
|
+
* feat(core): upgrade to version 2.84.0-alpha.8 ([40c2b02](https://github.com/roomle-dev/roomle-ui/commit/40c2b02))
|
|
35
|
+
* feat(core): upgrade to version 2.84.0-alpha.9 ([fa91bbc](https://github.com/roomle-dev/roomle-ui/commit/fa91bbc))
|
|
36
|
+
* fix: address review comments on PR #2966 ([f95596f](https://github.com/roomle-dev/roomle-ui/commit/f95596f)), closes [#2966](https://github.com/roomle-dev/roomle-ui/issues/2966)
|
|
37
|
+
* fix: address review comments on PR #2966 ([356120d](https://github.com/roomle-dev/roomle-ui/commit/356120d)), closes [#2966](https://github.com/roomle-dev/roomle-ui/issues/2966)
|
|
38
|
+
* fix: draw elevation plan dimension labels in reading direction ([9ab324c](https://github.com/roomle-dev/roomle-ui/commit/9ab324c))
|
|
39
|
+
* fix: hide the fence contour line outside the top view ([3106241](https://github.com/roomle-dev/roomle-ui/commit/3106241))
|
|
40
|
+
* fix(planner): keep hidden construction elements hidden in edit mode ([99ca5c4](https://github.com/roomle-dev/roomle-ui/commit/99ca5c4))
|
|
41
|
+
* fix: keep the docking line hover cylinder out of the render list ([879b509](https://github.com/roomle-dev/roomle-ui/commit/879b509))
|
|
42
|
+
* fix: name the example plan downloads by view type ([df2a924](https://github.com/roomle-dev/roomle-ui/commit/df2a924))
|
|
43
|
+
* fix: pad elevation exports around rendered labels ([52c323e](https://github.com/roomle-dev/roomle-ui/commit/52c323e))
|
|
44
|
+
* fix: restore the pre-pass object state in the render caches instead of the build snapshot ([83345e4](https://github.com/roomle-dev/roomle-ui/commit/83345e4))
|
|
45
|
+
* fix: set init-data telemetry url only where a telemetry service exists ([5c56a61](https://github.com/roomle-dev/roomle-ui/commit/5c56a61))
|
|
46
|
+
* fix: show the contour line again when an edge stops being a contour ([f3df460](https://github.com/roomle-dev/roomle-ui/commit/f3df460))
|
|
47
|
+
* fix: webgpu fog pass for transparent objects (by adding a separate depth pass for them) ([b927e60](https://github.com/roomle-dev/roomle-ui/commit/b927e60))
|
|
48
|
+
* test(headless): regenerate plan baselines against current SDK build ([07e329e](https://github.com/roomle-dev/roomle-ui/commit/07e329e))
|
|
49
|
+
* test(headless): update plan snapshots for wall-culled doors ([692f7a3](https://github.com/roomle-dev/roomle-ui/commit/692f7a3))
|
|
50
|
+
* style(planner): format plan view model ([b7b0c3d](https://github.com/roomle-dev/roomle-ui/commit/b7b0c3d))
|
|
51
|
+
* ci: post bo init-data telemetry to the stage endpoint ([90fc77e](https://github.com/roomle-dev/roomle-ui/commit/90fc77e))
|
|
52
|
+
* docs: document the render cache save and restore contract ([adb4e88](https://github.com/roomle-dev/roomle-ui/commit/adb4e88))
|
|
53
|
+
* docs: record that invisible raycast proxies hide via material.visible ([8b8bb06](https://github.com/roomle-dev/roomle-ui/commit/8b8bb06))
|
|
54
|
+
|
|
55
|
+
### BREAKING CHANGE
|
|
56
|
+
|
|
57
|
+
* RoomleEmbeddingApi.setupHi() has been removed. Use
|
|
58
|
+
`import { setupHi } from '@roomle/embedding-lib/hi'` instead.
|
|
59
|
+
|
|
60
|
+
RML-17666
|
|
61
|
+
|
|
62
|
+
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, m as r, o as i, s as a } from "./drag-in-
|
|
1
|
+
import { a as e, c as t, i as n, m as r, o as i, s as a } from "./drag-in-ClPpCYyi.mjs";
|
|
2
2
|
import "./embedding-plugins.js";
|
|
3
3
|
//#region packages/common/src/utils/drag.ts
|
|
4
4
|
var o = (e, t, n = 0, r = 0) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, m as r, o as i, s as a } from "./drag-in-
|
|
1
|
+
import { a as e, c as t, i as n, m as r, o as i, s as a } from "./drag-in-CV1E-DO6.mjs";
|
|
2
2
|
import "./embedding-plugins.min.js";
|
|
3
3
|
var o = (e, t, n = 0, r = 0) => {
|
|
4
4
|
let i = t.x + t.width + n, a = t.x - n, o = t.y + t.height + r, s = t.y - r, { x: c, y: l } = e;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var e = Object.defineProperty, t = (t, n) => {
|
|
2
|
+
let r = {};
|
|
3
|
+
for (var i in t) e(r, i, {
|
|
4
|
+
get: t[i],
|
|
5
|
+
enumerable: !0
|
|
6
|
+
});
|
|
7
|
+
return n || e(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
8
|
+
}, n = "rml-drag-in-styles", r = "rml-drag-in-drag-element", i = "rml-drag-in-overlay", a = "rml-drag-in-drag-ghost", o = "rml-drag-in-fade-in", s = "rml-drag-in-fade-out", c = { DISPLAY_NONE: "rml-display-none" }, l = .5, u = "250ms", d = "forwards", f = `@keyframes ${o} {from{opacity: 0;}to {opacity: 0.5;}}`, p = `@keyframes ${s} {from{opacity: 0.5;}to {opacity: 0;}}`, m = `${o} ${u} ${d}`, h = `${s} ${u} ${d}`, g = "https://res.cloudinary.com/roomle/image/upload/v1729679975/fallback_afpyqr.jpg", _ = 112, v = 112, y = class {
|
|
3
9
|
_mainDomElement;
|
|
4
10
|
_instance;
|
|
5
11
|
_mode = "website";
|
|
@@ -10,25 +16,25 @@ var t = "rml-drag-in-styles", n = "rml-drag-in-drag-element", r = "rml-drag-in-o
|
|
|
10
16
|
async init() {
|
|
11
17
|
return Promise.resolve();
|
|
12
18
|
}
|
|
13
|
-
},
|
|
19
|
+
}, b = t({ DragIn: () => x }), x = class extends y {
|
|
14
20
|
options = {};
|
|
15
21
|
_customDragSignal = new AbortController();
|
|
16
22
|
_injectStyles() {
|
|
17
23
|
if (!document.getElementById("rml-drag-in-styles")) {
|
|
18
24
|
let e = document.createElement("style");
|
|
19
|
-
e.type = "text/css", e.id =
|
|
25
|
+
e.type = "text/css", e.id = n, e.innerHTML = `\n .${c.DISPLAY_NONE}{display:none}\n .${i}{position:absolute;top:0;left:0;width:100%;height:100%;z-index:999;}\n .${a}{position:absolute;top:0;left:0;width:1px;height:1px;z-index:999;pointer-events:none;background-color:transparent;}\n ${f}\n ${p}\n `, document.head.appendChild(e);
|
|
20
26
|
}
|
|
21
27
|
}
|
|
22
28
|
_initializeDragGhost() {
|
|
23
|
-
let e = this._mainDomElement.parentNode, t = e.querySelector("." +
|
|
24
|
-
t || (t = document.createElement("div"), t.classList.add(
|
|
29
|
+
let e = this._mainDomElement.parentNode, t = e.querySelector("." + a);
|
|
30
|
+
t || (t = document.createElement("div"), t.classList.add(a), t.innerText = " ", e.appendChild(t));
|
|
25
31
|
}
|
|
26
32
|
constructor(e, t, n, r) {
|
|
27
33
|
super(e, t, n, r), this._mainDomElement = t, this._injectStyles(), this._initializeDragGhost();
|
|
28
34
|
}
|
|
29
35
|
async init() {
|
|
30
36
|
if (await super.init(), this._mode === "website") try {
|
|
31
|
-
let { DragInFromWebsiteStrategy: e } = await import("./from-website-
|
|
37
|
+
let { DragInFromWebsiteStrategy: e } = await import("./from-website-BmCO2xli.mjs");
|
|
32
38
|
this._strategy = new e(this._instance, this._mainDomElement, {
|
|
33
39
|
settings: this.options,
|
|
34
40
|
mode: "website"
|
|
@@ -39,7 +45,7 @@ var t = "rml-drag-in-styles", n = "rml-drag-in-drag-element", r = "rml-drag-in-o
|
|
|
39
45
|
else {
|
|
40
46
|
if (this._mode !== "custom-view") throw Error("Unsupported mode");
|
|
41
47
|
try {
|
|
42
|
-
let { DragInFromCustomViewStrategy: e } = await import("./from-custom-view-
|
|
48
|
+
let { DragInFromCustomViewStrategy: e } = await import("./from-custom-view-Sx6P6iDI.mjs");
|
|
43
49
|
this._strategy = new e(this._instance, this._mainDomElement, this.options, this._viewName);
|
|
44
50
|
} catch (e) {
|
|
45
51
|
throw e;
|
|
@@ -93,4 +99,4 @@ var t = "rml-drag-in-styles", n = "rml-drag-in-drag-element", r = "rml-drag-in-o
|
|
|
93
99
|
this._strategy.releaseInput(e);
|
|
94
100
|
}
|
|
95
101
|
};
|
|
96
|
-
export {
|
|
102
|
+
export { f as a, r as c, g as d, _ as f, l as h, m as i, a as l, n as m, b as n, h as o, i as p, c as r, p as s, x as t, v as u };
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var e = Object.defineProperty, t = (t, n) => {
|
|
3
|
+
let r = {};
|
|
4
|
+
for (var i in t) e(r, i, {
|
|
5
|
+
get: t[i],
|
|
6
|
+
enumerable: !0
|
|
7
|
+
});
|
|
8
|
+
return n || e(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
9
|
+
}, n = "rml-drag-in-styles", r = "rml-drag-in-drag-element", i = "rml-drag-in-overlay", a = "rml-drag-in-drag-ghost", o = "rml-drag-in-fade-in", s = "rml-drag-in-fade-out", c = { DISPLAY_NONE: "rml-display-none" }, l = .5, u = "250ms", d = "forwards", f = `@keyframes ${o} {from{opacity: 0;}to {opacity: ${l};}}`, p = `@keyframes ${s} {from{opacity: ${l};}to {opacity: 0;}}`, m = `${o} ${u} ${d}`, h = `${s} ${u} ${d}`, g = "https://res.cloudinary.com/roomle/image/upload/v1729679975/fallback_afpyqr.jpg", _ = 112, v = 112, y = class {
|
|
4
10
|
_mainDomElement;
|
|
5
11
|
_instance;
|
|
6
12
|
_mode = "website";
|
|
@@ -11,31 +17,31 @@ var t = "rml-drag-in-styles", n = "rml-drag-in-drag-element", r = "rml-drag-in-o
|
|
|
11
17
|
async init() {
|
|
12
18
|
return Promise.resolve();
|
|
13
19
|
}
|
|
14
|
-
},
|
|
20
|
+
}, b = /* @__PURE__ */ t({ DragIn: () => x }), x = class extends y {
|
|
15
21
|
options = {};
|
|
16
22
|
_customDragSignal = new AbortController();
|
|
17
23
|
_injectStyles() {
|
|
18
24
|
if (!document.getElementById("rml-drag-in-styles")) {
|
|
19
25
|
let e = document.createElement("style");
|
|
20
|
-
e.type = "text/css", e.id =
|
|
21
|
-
.${
|
|
22
|
-
.${
|
|
23
|
-
.${
|
|
24
|
-
${d}
|
|
26
|
+
e.type = "text/css", e.id = n, e.innerHTML = `
|
|
27
|
+
.${c.DISPLAY_NONE}{display:none}
|
|
28
|
+
.${i}{position:absolute;top:0;left:0;width:100%;height:100%;z-index:999;}
|
|
29
|
+
.${a}{position:absolute;top:0;left:0;width:1px;height:1px;z-index:999;pointer-events:none;background-color:transparent;}
|
|
25
30
|
${f}
|
|
31
|
+
${p}
|
|
26
32
|
`, document.head.appendChild(e);
|
|
27
33
|
}
|
|
28
34
|
}
|
|
29
35
|
_initializeDragGhost() {
|
|
30
|
-
let e = this._mainDomElement.parentNode, t = e.querySelector("." +
|
|
31
|
-
t || (t = document.createElement("div"), t.classList.add(
|
|
36
|
+
let e = this._mainDomElement.parentNode, t = e.querySelector("." + a);
|
|
37
|
+
t || (t = document.createElement("div"), t.classList.add(a), t.innerText = " ", e.appendChild(t));
|
|
32
38
|
}
|
|
33
39
|
constructor(e, t, n, r) {
|
|
34
40
|
super(e, t, n, r), this._mainDomElement = t, this._injectStyles(), this._initializeDragGhost();
|
|
35
41
|
}
|
|
36
42
|
async init() {
|
|
37
43
|
if (await super.init(), this._mode === "website") try {
|
|
38
|
-
let { DragInFromWebsiteStrategy: e } = await import("./from-website-
|
|
44
|
+
let { DragInFromWebsiteStrategy: e } = await import("./from-website-DZJy_l42.mjs");
|
|
39
45
|
this._strategy = new e(this._instance, this._mainDomElement, {
|
|
40
46
|
settings: this.options,
|
|
41
47
|
mode: "website"
|
|
@@ -44,7 +50,7 @@ var t = "rml-drag-in-styles", n = "rml-drag-in-drag-element", r = "rml-drag-in-o
|
|
|
44
50
|
throw console.error("Could not load Dragin strategy \"FromWebsite\""), e;
|
|
45
51
|
}
|
|
46
52
|
else if (this._mode === "custom-view") try {
|
|
47
|
-
let { DragInFromCustomViewStrategy: e } = await import("./from-custom-view-
|
|
53
|
+
let { DragInFromCustomViewStrategy: e } = await import("./from-custom-view-Q9A-J7qV.mjs");
|
|
48
54
|
this._strategy = new e(this._instance, this._mainDomElement, this.options, this._viewName);
|
|
49
55
|
} catch (e) {
|
|
50
56
|
throw console.error("Could not load Dragin strategy \"FromCustomView\""), e;
|
|
@@ -99,4 +105,4 @@ var t = "rml-drag-in-styles", n = "rml-drag-in-drag-element", r = "rml-drag-in-o
|
|
|
99
105
|
}
|
|
100
106
|
};
|
|
101
107
|
//#endregion
|
|
102
|
-
export {
|
|
108
|
+
export { f as a, r as c, g as d, _ as f, l as h, m as i, a as l, n as m, b as n, h as o, i as p, c as r, p as s, x as t, v as u };
|