@roomle/embedding-lib 6.7.0-alpha.4 → 6.7.0-alpha.5
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/docs/md/web/embedding/CHANGELOG.md +183 -20
- package/{drag-ghost-BYii9QJZ.mjs → drag-ghost-BFAJCWau.mjs} +1 -1
- package/{drag-ghost-B_-3-gs5.mjs → drag-ghost-DbEzikW5.mjs} +1 -1
- package/{drag-in-DIjstF9k.mjs → drag-in-B42WpY_e.mjs} +2 -2
- package/{drag-in-BT6p3GQN.mjs → drag-in-DXVxlotA.mjs} +2 -2
- package/embedding-plugins.js +1 -1
- package/embedding-plugins.min.js +1 -1
- package/{from-custom-view-BeT4KXut.mjs → from-custom-view-CNctfhuo.mjs} +2 -2
- package/{from-custom-view-CsPmMf8D.mjs → from-custom-view-DgMx7_5-.mjs} +2 -2
- package/{from-website-e9mLgLyV.mjs → from-website-BVznMwIE.mjs} +4 -4
- package/{from-website-Cj545oPw.mjs → from-website-il2_I_s5.mjs} +4 -4
- package/hi.js +32 -31
- package/hi.min.js +31 -28
- package/package.json +1 -1
- package/packages/embedding-lib/src/homag-intelligence/hi-utils.d.ts +7 -0
- package/packages/embedding-lib/src/plugins/strategy/types.d.ts +2 -2
- package/roomle-embedding-lib.js +51 -46
- package/roomle-embedding-lib.min.js +7 -2
|
@@ -1,21 +1,184 @@
|
|
|
1
|
-
## 6.7.0-alpha.
|
|
1
|
+
## 6.7.0-alpha.5 (2026-04-30)
|
|
2
2
|
|
|
3
|
-
* Merge branch 'master' into
|
|
4
|
-
* Merge branch 'master' into
|
|
5
|
-
* Merge branch 'master' into
|
|
6
|
-
* Merge
|
|
7
|
-
* Merge
|
|
8
|
-
* Merge
|
|
9
|
-
* Merge
|
|
10
|
-
* Merge
|
|
11
|
-
* Merge
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
3
|
+
* Merge branch 'master' into chore/strict-null-checks-roomle-ui-phase-0 ([f3393e7](https://github.com/roomle-dev/roomle-ui/commit/f3393e7))
|
|
4
|
+
* Merge branch 'master' into chore/strict-null-checks-roomle-ui-phases-1-3 ([c1d7da0](https://github.com/roomle-dev/roomle-ui/commit/c1d7da0))
|
|
5
|
+
* Merge branch 'master' into chore/strict-null-checks-roomle-ui-phases-1-3 ([a5113c4](https://github.com/roomle-dev/roomle-ui/commit/a5113c4))
|
|
6
|
+
* Merge branch 'master' into feat/addWebGPUGUI ([0979e39](https://github.com/roomle-dev/roomle-ui/commit/0979e39))
|
|
7
|
+
* Merge branch 'master' into feat/addWebGPUGUI ([64daa1b](https://github.com/roomle-dev/roomle-ui/commit/64daa1b))
|
|
8
|
+
* Merge branch 'master' into feat/advanced-highlighting ([41e6733](https://github.com/roomle-dev/roomle-ui/commit/41e6733))
|
|
9
|
+
* Merge branch 'master' into feat/advanced-highlighting ([2b5c823](https://github.com/roomle-dev/roomle-ui/commit/2b5c823))
|
|
10
|
+
* Merge branch 'master' into feat/advanced-highlighting ([2c7e773](https://github.com/roomle-dev/roomle-ui/commit/2c7e773))
|
|
11
|
+
* Merge branch 'master' into feat/docking-context-data ([81b1acc](https://github.com/roomle-dev/roomle-ui/commit/81b1acc))
|
|
12
|
+
* Merge branch 'master' into feat/hi-catalog-level-one ([e7ab7c2](https://github.com/roomle-dev/roomle-ui/commit/e7ab7c2))
|
|
13
|
+
* Merge branch 'master' into feat/hi-transparent-highlighting ([b5057fa](https://github.com/roomle-dev/roomle-ui/commit/b5057fa))
|
|
14
|
+
* Merge branch 'master' into feat/hi-transparent-highlighting ([17eed94](https://github.com/roomle-dev/roomle-ui/commit/17eed94))
|
|
15
|
+
* Merge branch 'master' into feat/hi-transparent-highlighting ([84052d1](https://github.com/roomle-dev/roomle-ui/commit/84052d1))
|
|
16
|
+
* Merge branch 'master' into feat/hi-transparent-highlighting ([da17e23](https://github.com/roomle-dev/roomle-ui/commit/da17e23))
|
|
17
|
+
* Merge branch 'master' into feat/RML-16477-awaitable-request-callbacks ([e1dbf95](https://github.com/roomle-dev/roomle-ui/commit/e1dbf95))
|
|
18
|
+
* Merge branch 'master' into feat/RML-16477-awaitable-request-callbacks ([1534fd1](https://github.com/roomle-dev/roomle-ui/commit/1534fd1))
|
|
19
|
+
* Merge branch 'master' into feat/sub-article-position ([c8ec309](https://github.com/roomle-dev/roomle-ui/commit/c8ec309))
|
|
20
|
+
* Merge branch 'master' into feat/sub-article-position ([6f9e769](https://github.com/roomle-dev/roomle-ui/commit/6f9e769))
|
|
21
|
+
* Merge branch 'master' into fix/dragin-fix ([e2b2ce7](https://github.com/roomle-dev/roomle-ui/commit/e2b2ce7))
|
|
22
|
+
* Merge branch 'master' into fix/fractional-inch-range-rounding-DM-4494 ([7efa07c](https://github.com/roomle-dev/roomle-ui/commit/7efa07c))
|
|
23
|
+
* Merge branch 'master' into fix/fractional-inch-range-rounding-DM-4494 ([121941b](https://github.com/roomle-dev/roomle-ui/commit/121941b))
|
|
24
|
+
* Merge branch 'master' into fix/hi-object-highlighting ([c8eefa4](https://github.com/roomle-dev/roomle-ui/commit/c8eefa4))
|
|
25
|
+
* Merge branch 'master' into fix/lf-vs-crlf ([38c0c06](https://github.com/roomle-dev/roomle-ui/commit/38c0c06))
|
|
26
|
+
* Merge branch 'master' into fix/lf-vs-crlf ([2d87812](https://github.com/roomle-dev/roomle-ui/commit/2d87812))
|
|
27
|
+
* Merge branch 'master' into fix/open-close ([091d5e8](https://github.com/roomle-dev/roomle-ui/commit/091d5e8))
|
|
28
|
+
* Merge branch 'master' into fix/planner-edit-mode-ui-issues ([6f71cd5](https://github.com/roomle-dev/roomle-ui/commit/6f71cd5))
|
|
29
|
+
* Merge branch 'master' into fix/planner-edit-mode-ui-issues ([7b3f1cb](https://github.com/roomle-dev/roomle-ui/commit/7b3f1cb))
|
|
30
|
+
* Merge branch 'master' into fix/RML-16536-cabinet-library-extended-error ([796712b](https://github.com/roomle-dev/roomle-ui/commit/796712b))
|
|
31
|
+
* Merge branch 'master' into fix/RML-16536-cabinet-library-extended-error ([be8c304](https://github.com/roomle-dev/roomle-ui/commit/be8c304))
|
|
32
|
+
* Merge branch 'master' into fix/undo-redo ([b49158a](https://github.com/roomle-dev/roomle-ui/commit/b49158a))
|
|
33
|
+
* Merge branch 'master' into fix/webgpuEnvMapConfigurable ([e0589f7](https://github.com/roomle-dev/roomle-ui/commit/e0589f7))
|
|
34
|
+
* Merge branch 'master' into fix/webgpuEnvMapConfigurable ([55d6099](https://github.com/roomle-dev/roomle-ui/commit/55d6099))
|
|
35
|
+
* Merge branch 'master' into fix/webgpuEnvMapConfigurable ([22dc796](https://github.com/roomle-dev/roomle-ui/commit/22dc796))
|
|
36
|
+
* Merge pull request #2498 from roomle-dev/feat/addWebGPUGUI ([064db96](https://github.com/roomle-dev/roomle-ui/commit/064db96)), closes [#2498](https://github.com/roomle-dev/roomle-ui/issues/2498)
|
|
37
|
+
* Merge pull request #2511 from roomle-dev/fix/planner-edit-mode-ui-issues ([00a243e](https://github.com/roomle-dev/roomle-ui/commit/00a243e)), closes [#2511](https://github.com/roomle-dev/roomle-ui/issues/2511)
|
|
38
|
+
* Merge pull request #2523 from roomle-dev/fix/fractional-inch-range-rounding-DM-4494 ([1a33dbe](https://github.com/roomle-dev/roomle-ui/commit/1a33dbe)), closes [#2523](https://github.com/roomle-dev/roomle-ui/issues/2523)
|
|
39
|
+
* Merge pull request #2538 from roomle-dev/chore/strict-null-checks-roomle-ui-phase-0 ([2de51bb](https://github.com/roomle-dev/roomle-ui/commit/2de51bb)), closes [#2538](https://github.com/roomle-dev/roomle-ui/issues/2538)
|
|
40
|
+
* Merge pull request #2540 from roomle-dev/feat/advanced-highlighting ([9d68342](https://github.com/roomle-dev/roomle-ui/commit/9d68342)), closes [#2540](https://github.com/roomle-dev/roomle-ui/issues/2540)
|
|
41
|
+
* Merge pull request #2546 from roomle-dev/fix/lf-vs-crlf ([e1ababe](https://github.com/roomle-dev/roomle-ui/commit/e1ababe)), closes [#2546](https://github.com/roomle-dev/roomle-ui/issues/2546)
|
|
42
|
+
* Merge pull request #2547 from roomle-dev/feat/hi-transparent-highlighting ([c3a3e41](https://github.com/roomle-dev/roomle-ui/commit/c3a3e41)), closes [#2547](https://github.com/roomle-dev/roomle-ui/issues/2547)
|
|
43
|
+
* Merge pull request #2549 from roomle-dev/fix/RML-16536-cabinet-library-extended-error ([de88932](https://github.com/roomle-dev/roomle-ui/commit/de88932)), closes [#2549](https://github.com/roomle-dev/roomle-ui/issues/2549)
|
|
44
|
+
* Merge pull request #2550 from roomle-dev/release/test ([86a7183](https://github.com/roomle-dev/roomle-ui/commit/86a7183)), closes [#2550](https://github.com/roomle-dev/roomle-ui/issues/2550)
|
|
45
|
+
* Merge pull request #2551 from roomle-dev/upgraded-by-ci/core-2.75.0-alpha.4 ([acab230](https://github.com/roomle-dev/roomle-ui/commit/acab230)), closes [#2551](https://github.com/roomle-dev/roomle-ui/issues/2551)
|
|
46
|
+
* Merge pull request #2552 from roomle-dev/feat/root-module-connections ([8f5d573](https://github.com/roomle-dev/roomle-ui/commit/8f5d573)), closes [#2552](https://github.com/roomle-dev/roomle-ui/issues/2552)
|
|
47
|
+
* Merge pull request #2554 from roomle-dev/fix/open-close ([9d4c462](https://github.com/roomle-dev/roomle-ui/commit/9d4c462)), closes [#2554](https://github.com/roomle-dev/roomle-ui/issues/2554)
|
|
48
|
+
* Merge pull request #2556 from roomle-dev/feat/RML-16477-awaitable-request-callbacks ([4a374b1](https://github.com/roomle-dev/roomle-ui/commit/4a374b1)), closes [#2556](https://github.com/roomle-dev/roomle-ui/issues/2556)
|
|
49
|
+
* Merge pull request #2557 from roomle-dev/upgraded-by-ci/core-2.75.0-alpha.8 ([efb8285](https://github.com/roomle-dev/roomle-ui/commit/efb8285)), closes [#2557](https://github.com/roomle-dev/roomle-ui/issues/2557)
|
|
50
|
+
* Merge pull request #2558 from roomle-dev/fix/oc-callbacks ([d889d19](https://github.com/roomle-dev/roomle-ui/commit/d889d19)), closes [#2558](https://github.com/roomle-dev/roomle-ui/issues/2558)
|
|
51
|
+
* Merge pull request #2559 from roomle-dev/chore/strict-null-checks-roomle-ui-phases-1-3 ([40bc835](https://github.com/roomle-dev/roomle-ui/commit/40bc835)), closes [#2559](https://github.com/roomle-dev/roomle-ui/issues/2559)
|
|
52
|
+
* Merge pull request #2560 from roomle-dev/upgraded-by-ci/core-2.75.0-alpha.9 ([bf06b48](https://github.com/roomle-dev/roomle-ui/commit/bf06b48)), closes [#2560](https://github.com/roomle-dev/roomle-ui/issues/2560)
|
|
53
|
+
* Merge pull request #2561 from roomle-dev/feat/docking-context-data ([4ee1f09](https://github.com/roomle-dev/roomle-ui/commit/4ee1f09)), closes [#2561](https://github.com/roomle-dev/roomle-ui/issues/2561)
|
|
54
|
+
* Merge pull request #2562 from roomle-dev/upgraded-by-ci/core-2.75.0-alpha.10 ([3e3d898](https://github.com/roomle-dev/roomle-ui/commit/3e3d898)), closes [#2562](https://github.com/roomle-dev/roomle-ui/issues/2562)
|
|
55
|
+
* Merge pull request #2563 from roomle-dev/fix/undo-redo ([b314122](https://github.com/roomle-dev/roomle-ui/commit/b314122)), closes [#2563](https://github.com/roomle-dev/roomle-ui/issues/2563)
|
|
56
|
+
* Merge pull request #2565 from roomle-dev/fix/webgpuEnvMapConfigurable ([42b6a0c](https://github.com/roomle-dev/roomle-ui/commit/42b6a0c)), closes [#2565](https://github.com/roomle-dev/roomle-ui/issues/2565)
|
|
57
|
+
* Merge pull request #2566 from roomle-dev/fix/hi-root-module-selection ([831cf9a](https://github.com/roomle-dev/roomle-ui/commit/831cf9a)), closes [#2566](https://github.com/roomle-dev/roomle-ui/issues/2566)
|
|
58
|
+
* Merge pull request #2567 from roomle-dev/feat/(core)--upgrade-to-version-2.75.0-alpha.11 ([f111adc](https://github.com/roomle-dev/roomle-ui/commit/f111adc)), closes [#2567](https://github.com/roomle-dev/roomle-ui/issues/2567)
|
|
59
|
+
* Merge pull request #2568 from roomle-dev/feat/(core)--upgrade-to-version-2.75.0-alpha.12 ([d4c4a72](https://github.com/roomle-dev/roomle-ui/commit/d4c4a72)), closes [#2568](https://github.com/roomle-dev/roomle-ui/issues/2568)
|
|
60
|
+
* Merge pull request #2570 from roomle-dev/feat/hi-catalog-level-one ([5856bb6](https://github.com/roomle-dev/roomle-ui/commit/5856bb6)), closes [#2570](https://github.com/roomle-dev/roomle-ui/issues/2570)
|
|
61
|
+
* Merge pull request #2571 from roomle-dev/feat/(core)--upgrade-to-version-2.75.0-alpha.13 ([86ce106](https://github.com/roomle-dev/roomle-ui/commit/86ce106)), closes [#2571](https://github.com/roomle-dev/roomle-ui/issues/2571)
|
|
62
|
+
* Merge pull request #2572 from roomle-dev/feat/sub-article-position ([d98c963](https://github.com/roomle-dev/roomle-ui/commit/d98c963)), closes [#2572](https://github.com/roomle-dev/roomle-ui/issues/2572)
|
|
63
|
+
* Merge pull request #2573 from roomle-dev/fix/dragin-fix ([358d959](https://github.com/roomle-dev/roomle-ui/commit/358d959)), closes [#2573](https://github.com/roomle-dev/roomle-ui/issues/2573)
|
|
64
|
+
* Merge pull request #2574 from roomle-dev/fix/enable-two-level-catalog-compat ([2c7eea9](https://github.com/roomle-dev/roomle-ui/commit/2c7eea9)), closes [#2574](https://github.com/roomle-dev/roomle-ui/issues/2574)
|
|
65
|
+
* Merge pull request #2575 from roomle-dev/fix/webgpu-gui-type-errors ([5ff6594](https://github.com/roomle-dev/roomle-ui/commit/5ff6594)), closes [#2575](https://github.com/roomle-dev/roomle-ui/issues/2575) [#2498](https://github.com/roomle-dev/roomle-ui/issues/2498)
|
|
66
|
+
* Merge pull request #2577 from roomle-dev/upgraded-by-ci/core-2.75.0-alpha.16 ([5bf0f68](https://github.com/roomle-dev/roomle-ui/commit/5bf0f68)), closes [#2577](https://github.com/roomle-dev/roomle-ui/issues/2577)
|
|
67
|
+
* Merge pull request #2578 from roomle-dev/upgraded-by-ci/core-2.75.0-alpha.17 ([1846b3e](https://github.com/roomle-dev/roomle-ui/commit/1846b3e)), closes [#2578](https://github.com/roomle-dev/roomle-ui/issues/2578)
|
|
68
|
+
* Merge pull request #2579 from roomle-dev/upgraded-by-ci/core-2.75.0-alpha.18 ([6ce0f7e](https://github.com/roomle-dev/roomle-ui/commit/6ce0f7e)), closes [#2579](https://github.com/roomle-dev/roomle-ui/issues/2579)
|
|
69
|
+
* Merge pull request #2580 from roomle-dev/upgraded-by-ci/core-2.75.0-alpha.19 ([752c0fe](https://github.com/roomle-dev/roomle-ui/commit/752c0fe)), closes [#2580](https://github.com/roomle-dev/roomle-ui/issues/2580)
|
|
70
|
+
* Merge pull request #2581 from roomle-dev/upgraded-by-ci/core-2.75.0-alpha.20 ([0248ec0](https://github.com/roomle-dev/roomle-ui/commit/0248ec0)), closes [#2581](https://github.com/roomle-dev/roomle-ui/issues/2581)
|
|
71
|
+
* Merge pull request #2582 from roomle-dev/fix/hi-object-highlighting ([877ae44](https://github.com/roomle-dev/roomle-ui/commit/877ae44)), closes [#2582](https://github.com/roomle-dev/roomle-ui/issues/2582)
|
|
72
|
+
* Merge pull request #2583 from roomle-dev/upgraded-by-ci/core-2.75.0-alpha.21 ([bd587e1](https://github.com/roomle-dev/roomle-ui/commit/bd587e1)), closes [#2583](https://github.com/roomle-dev/roomle-ui/issues/2583)
|
|
73
|
+
* Merge pull request #2584 from roomle-dev/upgraded-by-ci/core-2.75.0-alpha.22 ([f60dddc](https://github.com/roomle-dev/roomle-ui/commit/f60dddc)), closes [#2584](https://github.com/roomle-dev/roomle-ui/issues/2584)
|
|
74
|
+
* Merge pull request #2585 from roomle-dev/upgraded-by-ci/core-2.75.0-alpha.23 ([34fbbfd](https://github.com/roomle-dev/roomle-ui/commit/34fbbfd)), closes [#2585](https://github.com/roomle-dev/roomle-ui/issues/2585)
|
|
75
|
+
* Merge remote-tracking branch 'origin/master' into feat/advanced-highlighting ([37c668f](https://github.com/roomle-dev/roomle-ui/commit/37c668f))
|
|
76
|
+
* feat: add GUI for WebGPU ([7e7d3e5](https://github.com/roomle-dev/roomle-ui/commit/7e7d3e5))
|
|
77
|
+
* feat: advanced highlighting for webgpu ([ce74594](https://github.com/roomle-dev/roomle-ui/commit/ce74594))
|
|
78
|
+
* feat(embedding): await onRequestPlan and onRequestProduct callbacks ([722a7e2](https://github.com/roomle-dev/roomle-ui/commit/722a7e2))
|
|
79
|
+
* feat: core api - component geometry bounds ([f1d1b83](https://github.com/roomle-dev/roomle-ui/commit/f1d1b83))
|
|
80
|
+
* feat: core api - docking context data ([b034e12](https://github.com/roomle-dev/roomle-ui/commit/b034e12))
|
|
81
|
+
* feat: core api - docking position and preview type ([60d653a](https://github.com/roomle-dev/roomle-ui/commit/60d653a))
|
|
82
|
+
* feat: core api - geometry bounds ([0a0f128](https://github.com/roomle-dev/roomle-ui/commit/0a0f128))
|
|
83
|
+
* feat: core api - get component bounds ([6461079](https://github.com/roomle-dev/roomle-ui/commit/6461079))
|
|
84
|
+
* feat: core api - root module connections ([2dd929b](https://github.com/roomle-dev/roomle-ui/commit/2dd929b))
|
|
85
|
+
* feat: external object maximum catalog level for one level catalog ([5d140d6](https://github.com/roomle-dev/roomle-ui/commit/5d140d6))
|
|
86
|
+
* feat: featureFlags.advancedHighlighting ([c851388](https://github.com/roomle-dev/roomle-ui/commit/c851388))
|
|
87
|
+
* feat: hi presets example - advancedHighlighting parameter ([9ff153d](https://github.com/roomle-dev/roomle-ui/commit/9ff153d))
|
|
88
|
+
* feat: hi presets example settings - transparent highlighting ([89bbf64](https://github.com/roomle-dev/roomle-ui/commit/89bbf64))
|
|
89
|
+
* feat: highlight color settings ([7f9cf20](https://github.com/roomle-dev/roomle-ui/commit/7f9cf20))
|
|
90
|
+
* feat: set component type ([b69e117](https://github.com/roomle-dev/roomle-ui/commit/b69e117))
|
|
91
|
+
* feat: set component type of preview component ([6a98d85](https://github.com/roomle-dev/roomle-ui/commit/6a98d85))
|
|
92
|
+
* feat: set highlight color depending on snap state ([8e1e028](https://github.com/roomle-dev/roomle-ui/commit/8e1e028))
|
|
93
|
+
* feat: set insert position on add sub article ([764fb38](https://github.com/roomle-dev/roomle-ui/commit/764fb38))
|
|
94
|
+
* feat: set preview component intersection position ([1ba172d](https://github.com/roomle-dev/roomle-ui/commit/1ba172d))
|
|
95
|
+
* feat: set root module context data ([e3f9a14](https://github.com/roomle-dev/roomle-ui/commit/e3f9a14))
|
|
96
|
+
* feat: set the root module connections in the group data ([6509e5f](https://github.com/roomle-dev/roomle-ui/commit/6509e5f))
|
|
97
|
+
* feat: spacial transparent highlighting for external objects ([d48f865](https://github.com/roomle-dev/roomle-ui/commit/d48f865))
|
|
98
|
+
* feat(core): upgrade to version 2.75.0-alpha.10 ([254a9f2](https://github.com/roomle-dev/roomle-ui/commit/254a9f2))
|
|
99
|
+
* feat(core): upgrade to version 2.75.0-alpha.11 ([15149fb](https://github.com/roomle-dev/roomle-ui/commit/15149fb))
|
|
100
|
+
* feat(core): upgrade to version 2.75.0-alpha.12 ([c94a8b6](https://github.com/roomle-dev/roomle-ui/commit/c94a8b6))
|
|
101
|
+
* feat(core): upgrade to version 2.75.0-alpha.13 ([c3fbf2d](https://github.com/roomle-dev/roomle-ui/commit/c3fbf2d))
|
|
102
|
+
* feat(core): upgrade to version 2.75.0-alpha.16 ([0b62072](https://github.com/roomle-dev/roomle-ui/commit/0b62072))
|
|
103
|
+
* feat(core): upgrade to version 2.75.0-alpha.17 ([24b23cd](https://github.com/roomle-dev/roomle-ui/commit/24b23cd))
|
|
104
|
+
* feat(core): upgrade to version 2.75.0-alpha.18 ([25ad450](https://github.com/roomle-dev/roomle-ui/commit/25ad450))
|
|
105
|
+
* feat(core): upgrade to version 2.75.0-alpha.19 ([eeb53cc](https://github.com/roomle-dev/roomle-ui/commit/eeb53cc))
|
|
106
|
+
* feat(core): upgrade to version 2.75.0-alpha.20 ([7e1f7cf](https://github.com/roomle-dev/roomle-ui/commit/7e1f7cf))
|
|
107
|
+
* feat(core): upgrade to version 2.75.0-alpha.21 ([41b8df6](https://github.com/roomle-dev/roomle-ui/commit/41b8df6))
|
|
108
|
+
* feat(core): upgrade to version 2.75.0-alpha.22 ([fc40ec4](https://github.com/roomle-dev/roomle-ui/commit/fc40ec4))
|
|
109
|
+
* feat(core): upgrade to version 2.75.0-alpha.23 ([b4fb419](https://github.com/roomle-dev/roomle-ui/commit/b4fb419))
|
|
110
|
+
* feat(core): upgrade to version 2.75.0-alpha.4 ([5178dc2](https://github.com/roomle-dev/roomle-ui/commit/5178dc2))
|
|
111
|
+
* feat(core): upgrade to version 2.75.0-alpha.8 ([4daff1d](https://github.com/roomle-dev/roomle-ui/commit/4daff1d))
|
|
112
|
+
* feat(core): upgrade to version 2.75.0-alpha.9 ([bdfbdee](https://github.com/roomle-dev/roomle-ui/commit/bdfbdee))
|
|
113
|
+
* chore: add lint:types:strict-null-checks npm script for migration progress tracking ([23de3fc](https://github.com/roomle-dev/roomle-ui/commit/23de3fc))
|
|
114
|
+
* chore: add strictNullChecks migration plan for root roomle-ui ([5d90fef](https://github.com/roomle-dev/roomle-ui/commit/5d90fef))
|
|
115
|
+
* chore: address pr comments ([e28b399](https://github.com/roomle-dev/roomle-ui/commit/e28b399))
|
|
116
|
+
* chore: address review comments on PR #2559 ([6d4aecb](https://github.com/roomle-dev/roomle-ui/commit/6d4aecb)), closes [#2559](https://github.com/roomle-dev/roomle-ui/issues/2559)
|
|
117
|
+
* chore: address review feedback on PR #2549 ([5226049](https://github.com/roomle-dev/roomle-ui/commit/5226049)), closes [#2549](https://github.com/roomle-dev/roomle-ui/issues/2549)
|
|
118
|
+
* chore: apply code review suggestions ([33aec0d](https://github.com/roomle-dev/roomle-ui/commit/33aec0d))
|
|
119
|
+
* chore: apply copilot code review suggestions ([7a6d50a](https://github.com/roomle-dev/roomle-ui/commit/7a6d50a))
|
|
120
|
+
* chore: apply copilot code review suggestions ([62552f9](https://github.com/roomle-dev/roomle-ui/commit/62552f9))
|
|
121
|
+
* chore: apply copilot code reviews suggestions ([b4b7c37](https://github.com/roomle-dev/roomle-ui/commit/b4b7c37))
|
|
122
|
+
* chore: apply copilot reviews suggestions ([8b46cc1](https://github.com/roomle-dev/roomle-ui/commit/8b46cc1))
|
|
123
|
+
* chore: avoid code duplication and use an existing function. ([987aa32](https://github.com/roomle-dev/roomle-ui/commit/987aa32))
|
|
124
|
+
* chore: constants for open/close animation values ([5570465](https://github.com/roomle-dev/roomle-ui/commit/5570465))
|
|
125
|
+
* chore: enable strictNullChecks in root tsconfig.json (Phase 3) ([ff125f9](https://github.com/roomle-dev/roomle-ui/commit/ff125f9))
|
|
126
|
+
* chore: enforce LF line endings via .gitattributes ([da8d16d](https://github.com/roomle-dev/roomle-ui/commit/da8d16d))
|
|
127
|
+
* chore: fix strictNullChecks errors in web-sdk residual files (Phase 0) ([f5f325e](https://github.com/roomle-dev/roomle-ui/commit/f5f325e))
|
|
128
|
+
* chore: format code ([d52a755](https://github.com/roomle-dev/roomle-ui/commit/d52a755))
|
|
129
|
+
* chore: formatting ([91f6bc7](https://github.com/roomle-dev/roomle-ui/commit/91f6bc7))
|
|
130
|
+
* chore: get rid of "any" ([90ded2f](https://github.com/roomle-dev/roomle-ui/commit/90ded2f))
|
|
131
|
+
* chore: initial fix idea ([3d49e5a](https://github.com/roomle-dev/roomle-ui/commit/3d49e5a))
|
|
132
|
+
* chore: npm run format ([465a6c7](https://github.com/roomle-dev/roomle-ui/commit/465a6c7))
|
|
133
|
+
* chore: remove dead code + address pr comments ([a8bbafc](https://github.com/roomle-dev/roomle-ui/commit/a8bbafc))
|
|
134
|
+
* chore: renaming - snap feedabck ([3a566ce](https://github.com/roomle-dev/roomle-ui/commit/3a566ce))
|
|
135
|
+
* chore: revert --roomle-family css variable change ([f4fb3c6](https://github.com/roomle-dev/roomle-ui/commit/f4fb3c6))
|
|
136
|
+
* fix(unit-formatter): address Copilot review comments (DM-4494) ([81f1eca](https://github.com/roomle-dev/roomle-ui/commit/81f1eca))
|
|
137
|
+
* fix: address review comments on PR #2556 ([117265c](https://github.com/roomle-dev/roomle-ui/commit/117265c)), closes [#2556](https://github.com/roomle-dev/roomle-ui/issues/2556)
|
|
138
|
+
* fix: correct open/close anim icon visibility in planner edit mode ([078c425](https://github.com/roomle-dev/roomle-ui/commit/078c425))
|
|
139
|
+
* fix: disable strictNullChecks in ts-schema tsconfig for build:flags ([439d6c3](https://github.com/roomle-dev/roomle-ui/commit/439d6c3))
|
|
140
|
+
* fix: dont override unused environment scene parameters ([f47bfce](https://github.com/roomle-dev/roomle-ui/commit/f47bfce))
|
|
141
|
+
* fix: drag in and out and in again working ([634ea2c](https://github.com/roomle-dev/roomle-ui/commit/634ea2c))
|
|
142
|
+
* fix: e2e tests ([9818ae4](https://github.com/roomle-dev/roomle-ui/commit/9818ae4))
|
|
143
|
+
* fix: external object highlighting ([03a5c1d](https://github.com/roomle-dev/roomle-ui/commit/03a5c1d))
|
|
144
|
+
* fix: find combined open/close state for multiple components ([cf16eb8](https://github.com/roomle-dev/roomle-ui/commit/cf16eb8))
|
|
145
|
+
* fix: fix manual draw e2e test ([54bd674](https://github.com/roomle-dev/roomle-ui/commit/54bd674))
|
|
146
|
+
* fix: fix z-fighting and flickering of transparent objects ([0b32030](https://github.com/roomle-dev/roomle-ui/commit/0b32030))
|
|
147
|
+
* fix: forward libraryId in HI callbacks and serialize _initCalcScript ([1f200a7](https://github.com/roomle-dev/roomle-ui/commit/1f200a7))
|
|
148
|
+
* fix: hi example settings ([2f6b196](https://github.com/roomle-dev/roomle-ui/commit/2f6b196))
|
|
149
|
+
* fix: hi example settings ([2388909](https://github.com/roomle-dev/roomle-ui/commit/2388909))
|
|
150
|
+
* fix: hi selection and drawer state callbacks ([d3eb784](https://github.com/roomle-dev/roomle-ui/commit/d3eb784))
|
|
151
|
+
* fix: hide open/close icon in planner edit mode, fix collapse icon and slider overflow ([5069954](https://github.com/roomle-dev/roomle-ui/commit/5069954))
|
|
152
|
+
* fix: hide second-level drawer indicator when entering planner edit mode ([30bb102](https://github.com/roomle-dev/roomle-ui/commit/30bb102))
|
|
153
|
+
* fix: make object transparent when preview ghosts are shown ([a856c9c](https://github.com/roomle-dev/roomle-ui/commit/a856c9c))
|
|
154
|
+
* fix: merge master, revert open/close anim icon hiding in planner edit mode ([38668ee](https://github.com/roomle-dev/roomle-ui/commit/38668ee))
|
|
155
|
+
* fix: migrate featureFlags.enableTwoLevelCatalog to top-level initData ([9cb3271](https://github.com/roomle-dev/roomle-ui/commit/9cb3271))
|
|
156
|
+
* fix: open/close state for first root module ([a35db69](https://github.com/roomle-dev/roomle-ui/commit/a35db69))
|
|
157
|
+
* fix: prevent snapping from center to mouse ([072e8f9](https://github.com/roomle-dev/roomle-ui/commit/072e8f9))
|
|
158
|
+
* fix: recalculate group on undo/redo ([c5e563f](https://github.com/roomle-dev/roomle-ui/commit/c5e563f))
|
|
159
|
+
* fix: reintroduce environment defnition intensity and rotation for tracking ([3cf70c4](https://github.com/roomle-dev/roomle-ui/commit/3cf70c4))
|
|
160
|
+
* fix: remove redundant left offset for down-trigger on second-level-active desktop ([bf09e44](https://github.com/roomle-dev/roomle-ui/commit/bf09e44))
|
|
161
|
+
* fix: resolve strictNullChecks errors in embedding-lib (Phase 1) ([fc84745](https://github.com/roomle-dev/roomle-ui/commit/fc84745))
|
|
162
|
+
* fix: resolve strictNullChecks errors in outer UI (Phase 2) ([3c8c539](https://github.com/roomle-dev/roomle-ui/commit/3c8c539))
|
|
163
|
+
* fix: resolve type errors from WebGPU GUI feature (PR #2498) ([f1d04d2](https://github.com/roomle-dev/roomle-ui/commit/f1d04d2)), closes [#2498](https://github.com/roomle-dev/roomle-ui/issues/2498)
|
|
164
|
+
* fix: revoke blob URL in finally to prevent leak on error ([5dae17e](https://github.com/roomle-dev/roomle-ui/commit/5dae17e))
|
|
165
|
+
* fix: select root module when object is in child selection mode ([b0caf0e](https://github.com/roomle-dev/roomle-ui/commit/b0caf0e))
|
|
166
|
+
* fix: set sub article insert position ([53d4757](https://github.com/roomle-dev/roomle-ui/commit/53d4757))
|
|
167
|
+
* fix(unit-formatter): snap current value to step boundary for inch range params (DM-4494) ([68793b1](https://github.com/roomle-dev/roomle-ui/commit/68793b1))
|
|
168
|
+
* fix: update highlighting after changing parameter ([995adbc](https://github.com/roomle-dev/roomle-ui/commit/995adbc))
|
|
169
|
+
* fix: update open/close state for selected component ([72f7a64](https://github.com/roomle-dev/roomle-ui/commit/72f7a64))
|
|
170
|
+
* fix: updating highlighting after hi object has changed ([f8a52d7](https://github.com/roomle-dev/roomle-ui/commit/f8a52d7))
|
|
171
|
+
* fix: webgpu environment map intensity and rotation configurable ([6914353](https://github.com/roomle-dev/roomle-ui/commit/6914353))
|
|
172
|
+
* fix: widen getCategory contentType param to string | null instead of call-site workaround ([f6f2bcb](https://github.com/roomle-dev/roomle-ui/commit/f6f2bcb))
|
|
173
|
+
* fix: wrong env map rotation axis ([aa867f3](https://github.com/roomle-dev/roomle-ui/commit/aa867f3))
|
|
174
|
+
* test: add regression tests for RangeSlider clamping and FlyingMenu planner edit mode ([2c26f84](https://github.com/roomle-dev/roomle-ui/commit/2c26f84)), closes [#2511](https://github.com/roomle-dev/roomle-ui/issues/2511)
|
|
175
|
+
* test: add slight delay ([ad6a306](https://github.com/roomle-dev/roomle-ui/commit/ad6a306))
|
|
176
|
+
* test: snap feedback helper ([84226b7](https://github.com/roomle-dev/roomle-ui/commit/84226b7))
|
|
177
|
+
* refactor: address PR review comments ([602d3d5](https://github.com/roomle-dev/roomle-ui/commit/602d3d5))
|
|
178
|
+
* refactor: dock component with position ([fca731c](https://github.com/roomle-dev/roomle-ui/commit/fca731c))
|
|
179
|
+
* refactor: replace throws with safer alternatives in measurements and material-viewer ([110cb77](https://github.com/roomle-dev/roomle-ui/commit/110cb77))
|
|
180
|
+
* refactor: request docking preview for external objects ([c9f6067](https://github.com/roomle-dev/roomle-ui/commit/c9f6067))
|
|
181
|
+
* refactor: update of highlight helper ([2aacf54](https://github.com/roomle-dev/roomle-ui/commit/2aacf54))
|
|
182
|
+
* docs: clarify void vs Promise<void> semantics in callback JSDoc ([4882689](https://github.com/roomle-dev/roomle-ui/commit/4882689))
|
|
183
|
+
* docs: update strict null checks plan and add phases 1-3 findings ([8f892f0](https://github.com/roomle-dev/roomle-ui/commit/8f892f0))
|
|
184
|
+
* style: format unit-formatter test file ([7012dfc](https://github.com/roomle-dev/roomle-ui/commit/7012dfc))
|
|
@@ -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-B42WpY_e.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-DXVxlotA.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;
|
|
@@ -35,7 +35,7 @@ var t = "rml-drag-in-styles", n = "rml-drag-in-drag-element", r = "rml-drag-in-o
|
|
|
35
35
|
}
|
|
36
36
|
async init() {
|
|
37
37
|
if (await super.init(), this._mode === "website") try {
|
|
38
|
-
let { DragInFromWebsiteStrategy: e } = await import("./from-website-
|
|
38
|
+
let { DragInFromWebsiteStrategy: e } = await import("./from-website-il2_I_s5.mjs");
|
|
39
39
|
this._strategy = new e(this._instance, this._mainDomElement, {
|
|
40
40
|
settings: this.options,
|
|
41
41
|
mode: "website"
|
|
@@ -44,7 +44,7 @@ var t = "rml-drag-in-styles", n = "rml-drag-in-drag-element", r = "rml-drag-in-o
|
|
|
44
44
|
throw console.error("Could not load Dragin strategy \"FromWebsite\""), e;
|
|
45
45
|
}
|
|
46
46
|
else if (this._mode === "custom-view") try {
|
|
47
|
-
let { DragInFromCustomViewStrategy: e } = await import("./from-custom-view-
|
|
47
|
+
let { DragInFromCustomViewStrategy: e } = await import("./from-custom-view-DgMx7_5-.mjs");
|
|
48
48
|
this._strategy = new e(this._instance, this._mainDomElement, this.options, this._viewName);
|
|
49
49
|
} catch (e) {
|
|
50
50
|
throw console.error("Could not load Dragin strategy \"FromCustomView\""), e;
|
|
@@ -28,7 +28,7 @@ var t = "rml-drag-in-styles", n = "rml-drag-in-drag-element", r = "rml-drag-in-o
|
|
|
28
28
|
}
|
|
29
29
|
async init() {
|
|
30
30
|
if (await super.init(), this._mode === "website") try {
|
|
31
|
-
let { DragInFromWebsiteStrategy: e } = await import("./from-website-
|
|
31
|
+
let { DragInFromWebsiteStrategy: e } = await import("./from-website-BVznMwIE.mjs");
|
|
32
32
|
this._strategy = new e(this._instance, this._mainDomElement, {
|
|
33
33
|
settings: this.options,
|
|
34
34
|
mode: "website"
|
|
@@ -39,7 +39,7 @@ var t = "rml-drag-in-styles", n = "rml-drag-in-drag-element", r = "rml-drag-in-o
|
|
|
39
39
|
else {
|
|
40
40
|
if (this._mode !== "custom-view") throw Error("Unsupported mode");
|
|
41
41
|
try {
|
|
42
|
-
let { DragInFromCustomViewStrategy: e } = await import("./from-custom-view-
|
|
42
|
+
let { DragInFromCustomViewStrategy: e } = await import("./from-custom-view-CNctfhuo.mjs");
|
|
43
43
|
this._strategy = new e(this._instance, this._mainDomElement, this.options, this._viewName);
|
|
44
44
|
} catch (e) {
|
|
45
45
|
throw e;
|
package/embedding-plugins.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, h as i, i as a, m as o, o as s, s as c, t as l, u } from "./drag-in-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, h as i, i as a, m as o, o as s, s as c, t as l, u } from "./drag-in-B42WpY_e.mjs";
|
|
2
2
|
export { l as DragIn, a as RML_DRAG_GHOST_FADE_IN, e as RML_DRAG_GHOST_FADE_IN_ANIMATION_CSS, s as RML_DRAG_GHOST_FADE_OUT, c as RML_DRAG_GHOST_FADE_OUT_ANIMATION_CSS, t as RML_DRAG_IN_DRAG_ELEMENT_ID, u as RML_DRAG_IN_FALLBACK_GHOST_HEIGHT, n as RML_DRAG_IN_FALLBACK_GHOST_URL, r as RML_DRAG_IN_FALLBACK_GHOST_WIDTH, o as RML_DRAG_IN_STYLES_ID, i as TARGET_OPACITY };
|
package/embedding-plugins.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, h as i, i as a, m as o, o as s, s as c, t as l, u } from "./drag-in-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, h as i, i as a, m as o, o as s, s as c, t as l, u } from "./drag-in-DXVxlotA.mjs";
|
|
2
2
|
export { l as DragIn, a as RML_DRAG_GHOST_FADE_IN, e as RML_DRAG_GHOST_FADE_IN_ANIMATION_CSS, s as RML_DRAG_GHOST_FADE_OUT, c as RML_DRAG_GHOST_FADE_OUT_ANIMATION_CSS, t as RML_DRAG_IN_DRAG_ELEMENT_ID, u as RML_DRAG_IN_FALLBACK_GHOST_HEIGHT, n as RML_DRAG_IN_FALLBACK_GHOST_URL, r as RML_DRAG_IN_FALLBACK_GHOST_WIDTH, o as RML_DRAG_IN_STYLES_ID, i as TARGET_OPACITY };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, n as t, o as n } from "./utils-DfC2ZLUc.mjs";
|
|
2
|
-
import { d as r } from "./drag-in-
|
|
3
|
-
import { t as i } from "./drag-ghost-
|
|
2
|
+
import { d as r } from "./drag-in-DXVxlotA.mjs";
|
|
3
|
+
import { t as i } from "./drag-ghost-DbEzikW5.mjs";
|
|
4
4
|
var a = (e, t = 0) => n(e) ? {
|
|
5
5
|
clientX: e.touches[t].clientX,
|
|
6
6
|
clientY: e.touches[t].clientY
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, n as t, o as n } from "./utils-BnWKaFPc.mjs";
|
|
2
|
-
import { d as r } from "./drag-in-
|
|
3
|
-
import { t as i } from "./drag-ghost-
|
|
2
|
+
import { d as r } from "./drag-in-B42WpY_e.mjs";
|
|
3
|
+
import { t as i } from "./drag-ghost-BFAJCWau.mjs";
|
|
4
4
|
var a = (e, t = 0) => n(e) ? {
|
|
5
5
|
clientX: e.touches[t].clientX,
|
|
6
6
|
clientY: e.touches[t].clientY
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as e, n as t, o as n, r } from "./utils-DfC2ZLUc.mjs";
|
|
2
|
-
import { l as i, p as a, r as o } from "./drag-in-
|
|
3
|
-
import { t as s } from "./drag-ghost-
|
|
2
|
+
import { l as i, p as a, r as o } from "./drag-in-DXVxlotA.mjs";
|
|
3
|
+
import { t as s } from "./drag-ghost-DbEzikW5.mjs";
|
|
4
4
|
var c = class {
|
|
5
5
|
_options = {};
|
|
6
6
|
_instance;
|
|
@@ -72,8 +72,8 @@ var c = class {
|
|
|
72
72
|
};
|
|
73
73
|
if (f && this._pendingDragIn) {
|
|
74
74
|
let e = p();
|
|
75
|
-
e && !this._hasEnteredIframe ? (this._dragInObjectCalled || (this._dragInObjectCalled = !0, this._instance.dragInObject(this._pendingDragIn.id, s, c, this._pendingDragIn.type)), this._hasEnteredIframe = !0) : !e && this._hasEnteredIframe && (this._instance.cancelDragIn(), this._hasEnteredIframe = !1);
|
|
76
|
-
} else !f && this._hasEnteredIframe && (this._instance.cancelDragIn(), this._hasEnteredIframe = !1);
|
|
75
|
+
e && !this._hasEnteredIframe ? (this._dragInObjectCalled || (this._dragInObjectCalled = !0, this._instance.dragInObject(this._pendingDragIn.id, s, c, this._pendingDragIn.type)), this._hasEnteredIframe = !0) : !e && this._hasEnteredIframe && (this._instance.cancelDragIn(), this._hasEnteredIframe = !1, this._dragInObjectCalled = !1);
|
|
76
|
+
} else !f && this._hasEnteredIframe && (this._instance.cancelDragIn(), this._hasEnteredIframe = !1, this._dragInObjectCalled = !1);
|
|
77
77
|
let m = s, h = c;
|
|
78
78
|
if (n(r)) {
|
|
79
79
|
let e = this._options.settings?.fingerSize || 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as e, n as t, o as n, r } from "./utils-BnWKaFPc.mjs";
|
|
2
|
-
import { l as i, p as a, r as o } from "./drag-in-
|
|
3
|
-
import { t as s } from "./drag-ghost-
|
|
2
|
+
import { l as i, p as a, r as o } from "./drag-in-B42WpY_e.mjs";
|
|
3
|
+
import { t as s } from "./drag-ghost-BFAJCWau.mjs";
|
|
4
4
|
//#region packages/embedding-lib/src/plugins/strategy/from-website.ts
|
|
5
5
|
var c = class {
|
|
6
6
|
_options = {};
|
|
@@ -76,8 +76,8 @@ var c = class {
|
|
|
76
76
|
};
|
|
77
77
|
if (f && this._pendingDragIn) {
|
|
78
78
|
let e = p();
|
|
79
|
-
e && !this._hasEnteredIframe ? (this._dragInObjectCalled || (this._dragInObjectCalled = !0, this._instance.dragInObject(this._pendingDragIn.id, s, c, this._pendingDragIn.type)), this._hasEnteredIframe = !0) : !e && this._hasEnteredIframe && (this._instance.cancelDragIn(), this._hasEnteredIframe = !1);
|
|
80
|
-
} else !f && this._hasEnteredIframe && (this._instance.cancelDragIn(), this._hasEnteredIframe = !1);
|
|
79
|
+
e && !this._hasEnteredIframe ? (this._dragInObjectCalled || (this._dragInObjectCalled = !0, this._instance.dragInObject(this._pendingDragIn.id, s, c, this._pendingDragIn.type)), this._hasEnteredIframe = !0) : !e && this._hasEnteredIframe && (this._instance.cancelDragIn(), this._hasEnteredIframe = !1, this._dragInObjectCalled = !1);
|
|
80
|
+
} else !f && this._hasEnteredIframe && (this._instance.cancelDragIn(), this._hasEnteredIframe = !1, this._dragInObjectCalled = !1);
|
|
81
81
|
let m = s, h = c;
|
|
82
82
|
if (n(r)) {
|
|
83
83
|
let e = this._options.settings?.fingerSize || 0;
|
package/hi.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./browser-C_Dfiou7.mjs";
|
|
2
2
|
import { t } from "./utils-BnWKaFPc.mjs";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
var n = (e, t) => t === e.libraryId ? e : {
|
|
4
|
+
...e,
|
|
5
|
+
libraryId: t
|
|
6
|
+
}, r = async (e, t, n, r = { property: "default" }) => {
|
|
6
7
|
let i = n.serverOptions ?? {}, a = { headers: {
|
|
7
8
|
"Content-Type": t === "json" ? "application/json" : "text/plain",
|
|
8
9
|
"Access-Control-Allow-Origin": "*"
|
|
@@ -15,22 +16,22 @@ var n = async (e, t, n, r = { property: "default" }) => {
|
|
|
15
16
|
} catch (e) {
|
|
16
17
|
throw console.warn(`Failed to fetch data from ${r.property}`), console.error(e), e;
|
|
17
18
|
}
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
}, a = (e, t) => {
|
|
21
|
-
r[e]?.delete(t), r[e]?.size === 0 && delete r[e];
|
|
19
|
+
}, i = { "e2fe8b3d-da31-4a20-92ab-ab6e3839300e": new Set(["Furniture_Smith"]) }, a = (e, t) => {
|
|
20
|
+
i[e] || (i[e] = /* @__PURE__ */ new Set()), i[e].add(t);
|
|
22
21
|
}, o = (e, t) => {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
i[e]?.delete(t), i[e]?.size === 0 && delete i[e];
|
|
23
|
+
}, s = (e, t) => {
|
|
24
|
+
let { libraryId: n, serverOptions: r } = e;
|
|
25
|
+
return r?.subscriptionId && i[r.subscriptionId]?.has(n) ? `api/pos/${t}?libraryId=${n}` : `api/pos/libraries/${n}/${t}`;
|
|
26
|
+
}, c = async (e) => await (await r(s(e, "articles"), "json", e, { property: "articles" })).json(), l = async (e) => await (await r(s(e, "masterData"), "json", e, { property: "masterData" })).json(), u = async (e) => {
|
|
27
|
+
let t = await (await r(s(e, "calc.js"), "text", e, { property: "calc.js" })).text();
|
|
27
28
|
if (!t) throw Error("Script load error");
|
|
28
29
|
return t;
|
|
29
|
-
},
|
|
30
|
-
onLoadJavascript: (t) =>
|
|
31
|
-
onLoadArticleCatalog: (t) =>
|
|
32
|
-
onLoadMasterData: (t) =>
|
|
33
|
-
}),
|
|
30
|
+
}, d = (e) => ({
|
|
31
|
+
onLoadJavascript: (t) => u(n(e, t)),
|
|
32
|
+
onLoadArticleCatalog: (t) => c(n(e, t)),
|
|
33
|
+
onLoadMasterData: (t) => l(n(e, t))
|
|
34
|
+
}), f = async (e, t, n, r = {}) => {
|
|
34
35
|
let { baseUrl: i, om: a } = e.serverOptions ?? {}, o = encodeURIComponent(a?.endpointUrl || ""), s = encodeURIComponent(a?.subscriptionId || ""), c = a?.key || "";
|
|
35
36
|
return await (await fetch((i ?? "https://europe-west3-rml-showcases.cloudfunctions.net/proxy_request?url=") + `${encodeURIComponent(n)}&subscriptionId=${s}&apiKey=${c}&baseUrl=${o}`, {
|
|
36
37
|
method: "POST",
|
|
@@ -40,7 +41,7 @@ var n = async (e, t, n, r = { property: "default" }) => {
|
|
|
40
41
|
...r
|
|
41
42
|
}
|
|
42
43
|
})).json();
|
|
43
|
-
},
|
|
44
|
+
}, p = async (e, t, n = {}) => {
|
|
44
45
|
let { baseUrl: r, om: i } = e.serverOptions ?? {}, a = encodeURIComponent(i?.endpointUrl || ""), o = encodeURIComponent(i?.subscriptionId || ""), s = i?.key || "";
|
|
45
46
|
return await (await fetch((r ?? "https://europe-west3-rml-showcases.cloudfunctions.net/proxy_request?url=") + `${encodeURIComponent(t)}&subscriptionId=${o}&apiKey=${s}&baseUrl=${a}`, {
|
|
46
47
|
method: "GET",
|
|
@@ -49,25 +50,25 @@ var n = async (e, t, n, r = { property: "default" }) => {
|
|
|
49
50
|
...n
|
|
50
51
|
}
|
|
51
52
|
})).json();
|
|
52
|
-
},
|
|
53
|
+
}, m = (t, n) => {
|
|
53
54
|
t.serverOptions ||= {}, !t.serverOptions.language && n?.locale && (t.serverOptions.language = n.locale), t.serverOptions.language || (t.serverOptions.language = e(null, !0));
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
let
|
|
57
|
-
|
|
58
|
-
let { expose:
|
|
59
|
-
|
|
55
|
+
}, h = null, g = async (e, r = {}) => {
|
|
56
|
+
h && window.removeEventListener("message", h);
|
|
57
|
+
let i = typeof e == "string" ? { libraryId: e } : e;
|
|
58
|
+
r.onLoadJavascript === void 0 && (r.onLoadJavascript = (e) => u(n(i, e))), r.onLoadArticleCatalog === void 0 && (r.onLoadArticleCatalog = (e) => c(n(i, e))), r.onLoadMasterData === void 0 && (r.onLoadMasterData = (e) => l(n(i, e)));
|
|
59
|
+
let { expose: a } = await import("./comlink-BipJ8Ikr.mjs").then((e) => e.t);
|
|
60
|
+
h = (e) => {
|
|
60
61
|
if (e.data.type === "connect_hi" && e.data.port) {
|
|
61
|
-
let
|
|
62
|
-
|
|
62
|
+
let n = e.data.port;
|
|
63
|
+
m(i, e.data.globalInitData || {}), n.start?.(), a(t(r), n);
|
|
63
64
|
}
|
|
64
|
-
}, window.addEventListener("message",
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
},
|
|
65
|
+
}, window.addEventListener("message", h);
|
|
66
|
+
}, _ = () => {
|
|
67
|
+
h &&= (window.removeEventListener("message", h), null);
|
|
68
|
+
}, v = {
|
|
68
69
|
HIDE: "hide",
|
|
69
70
|
SHOW_ATTRIBUTES: "attributes",
|
|
70
71
|
SHOW_ARTICLES: "articles"
|
|
71
72
|
};
|
|
72
73
|
//#endregion
|
|
73
|
-
export {
|
|
74
|
+
export { v as HI_PANEL_ACTION, _ as cleanupHi, d as createHiLibraryCallbacks, c as libLoadArticleCatalog, u as libLoadCalcScript, l as libLoadMasterData, p as omGetRequest, f as omPostRequest, a as registerLegacyUrlFormat, g as setupHi, o as unregisterLegacyUrlFormat };
|
package/hi.min.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./browser-DRgK3Fk8.mjs";
|
|
2
2
|
import { t } from "./utils-DfC2ZLUc.mjs";
|
|
3
|
-
var n =
|
|
3
|
+
var n = (e, t) => t === e.libraryId ? e : {
|
|
4
|
+
...e,
|
|
5
|
+
libraryId: t
|
|
6
|
+
}, r = async (e, t, n, r = { property: "default" }) => {
|
|
4
7
|
let i = n.serverOptions ?? {}, a = { headers: {
|
|
5
8
|
"Content-Type": t === "json" ? "application/json" : "text/plain",
|
|
6
9
|
"Access-Control-Allow-Origin": "*"
|
|
@@ -14,22 +17,22 @@ var n = async (e, t, n, r = { property: "default" }) => {
|
|
|
14
17
|
} catch (e) {
|
|
15
18
|
throw e;
|
|
16
19
|
}
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
}, a = (e, t) => {
|
|
20
|
-
r[e]?.delete(t), r[e]?.size === 0 && delete r[e];
|
|
20
|
+
}, i = { "e2fe8b3d-da31-4a20-92ab-ab6e3839300e": new Set(["Furniture_Smith"]) }, a = (e, t) => {
|
|
21
|
+
i[e] || (i[e] = /* @__PURE__ */ new Set()), i[e].add(t);
|
|
21
22
|
}, o = (e, t) => {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
i[e]?.delete(t), i[e]?.size === 0 && delete i[e];
|
|
24
|
+
}, s = (e, t) => {
|
|
25
|
+
let { libraryId: n, serverOptions: r } = e;
|
|
26
|
+
return r?.subscriptionId && i[r.subscriptionId]?.has(n) ? `api/pos/${t}?libraryId=${n}` : `api/pos/libraries/${n}/${t}`;
|
|
27
|
+
}, c = async (e) => await (await r(s(e, "articles"), "json", e, { property: "articles" })).json(), l = async (e) => await (await r(s(e, "masterData"), "json", e, { property: "masterData" })).json(), u = async (e) => {
|
|
28
|
+
let t = await (await r(s(e, "calc.js"), "text", e, { property: "calc.js" })).text();
|
|
26
29
|
if (!t) throw Error("Script load error");
|
|
27
30
|
return t;
|
|
28
|
-
},
|
|
29
|
-
onLoadJavascript: (t) =>
|
|
30
|
-
onLoadArticleCatalog: (t) =>
|
|
31
|
-
onLoadMasterData: (t) =>
|
|
32
|
-
}),
|
|
31
|
+
}, d = (e) => ({
|
|
32
|
+
onLoadJavascript: (t) => u(n(e, t)),
|
|
33
|
+
onLoadArticleCatalog: (t) => c(n(e, t)),
|
|
34
|
+
onLoadMasterData: (t) => l(n(e, t))
|
|
35
|
+
}), f = async (e, t, n, r = {}) => {
|
|
33
36
|
let { baseUrl: i, om: a } = e.serverOptions ?? {}, o = encodeURIComponent(a?.endpointUrl || ""), s = encodeURIComponent(a?.subscriptionId || ""), c = a?.key || "";
|
|
34
37
|
return await (await fetch((i ?? "https://europe-west3-rml-showcases.cloudfunctions.net/proxy_request?url=") + `${encodeURIComponent(n)}&subscriptionId=${s}&apiKey=${c}&baseUrl=${o}`, {
|
|
35
38
|
method: "POST",
|
|
@@ -39,7 +42,7 @@ var n = async (e, t, n, r = { property: "default" }) => {
|
|
|
39
42
|
...r
|
|
40
43
|
}
|
|
41
44
|
})).json();
|
|
42
|
-
},
|
|
45
|
+
}, p = async (e, t, n = {}) => {
|
|
43
46
|
let { baseUrl: r, om: i } = e.serverOptions ?? {}, a = encodeURIComponent(i?.endpointUrl || ""), o = encodeURIComponent(i?.subscriptionId || ""), s = i?.key || "";
|
|
44
47
|
return await (await fetch((r ?? "https://europe-west3-rml-showcases.cloudfunctions.net/proxy_request?url=") + `${encodeURIComponent(t)}&subscriptionId=${o}&apiKey=${s}&baseUrl=${a}`, {
|
|
45
48
|
method: "GET",
|
|
@@ -48,24 +51,24 @@ var n = async (e, t, n, r = { property: "default" }) => {
|
|
|
48
51
|
...n
|
|
49
52
|
}
|
|
50
53
|
})).json();
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
let
|
|
54
|
-
|
|
55
|
-
let { expose:
|
|
56
|
-
|
|
54
|
+
}, m = null, h = async (r, i = {}) => {
|
|
55
|
+
m && window.removeEventListener("message", m);
|
|
56
|
+
let a = typeof r == "string" ? { libraryId: r } : r;
|
|
57
|
+
i.onLoadJavascript === void 0 && (i.onLoadJavascript = (e) => u(n(a, e))), i.onLoadArticleCatalog === void 0 && (i.onLoadArticleCatalog = (e) => c(n(a, e))), i.onLoadMasterData === void 0 && (i.onLoadMasterData = (e) => l(n(a, e)));
|
|
58
|
+
let { expose: o } = await import("./comlink-Dds_bpug.mjs").then((e) => e.t);
|
|
59
|
+
m = (n) => {
|
|
57
60
|
if (n.data.type === "connect_hi" && n.data.port) {
|
|
58
|
-
let
|
|
61
|
+
let r = n.data.port;
|
|
59
62
|
((t, n) => {
|
|
60
63
|
t.serverOptions ||= {}, !t.serverOptions.language && n?.locale && (t.serverOptions.language = n.locale), t.serverOptions.language || (t.serverOptions.language = e(null, !0));
|
|
61
|
-
})(
|
|
64
|
+
})(a, n.data.globalInitData || {}), r.start?.(), o(t(i), r);
|
|
62
65
|
}
|
|
63
|
-
}, window.addEventListener("message",
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
},
|
|
66
|
+
}, window.addEventListener("message", m);
|
|
67
|
+
}, g = () => {
|
|
68
|
+
m &&= (window.removeEventListener("message", m), null);
|
|
69
|
+
}, _ = {
|
|
67
70
|
HIDE: "hide",
|
|
68
71
|
SHOW_ATTRIBUTES: "attributes",
|
|
69
72
|
SHOW_ARTICLES: "articles"
|
|
70
73
|
};
|
|
71
|
-
export {
|
|
74
|
+
export { _ as HI_PANEL_ACTION, g as cleanupHi, d as createHiLibraryCallbacks, c as libLoadArticleCatalog, u as libLoadCalcScript, l as libLoadMasterData, p as omGetRequest, f as omPostRequest, a as registerLegacyUrlFormat, h as setupHi, o as unregisterLegacyUrlFormat };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roomle/embedding-lib",
|
|
3
|
-
"version": "6.7.0-alpha.
|
|
3
|
+
"version": "6.7.0-alpha.5",
|
|
4
4
|
"description": "This is a small library which can be used to communicate with the Roomle Configurator. ES modules only (browser-compatible).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./roomle-embedding-lib.js",
|
|
@@ -1 +1,8 @@
|
|
|
1
|
+
import { HomagIntelligenceInitData } from '../../../web-sdk/packages';
|
|
1
2
|
export declare const HOMAG_INTELLIGENCE_ENDPOINT = "https://europe-west3-rml-showcases.cloudfunctions.net/proxy_request?url=";
|
|
3
|
+
/**
|
|
4
|
+
* Returns `hiInitData` unchanged when its `libraryId` already matches the
|
|
5
|
+
* requested one (avoiding an unnecessary allocation), otherwise returns a
|
|
6
|
+
* shallow copy with the `libraryId` overridden.
|
|
7
|
+
*/
|
|
8
|
+
export declare const withLibraryId: (hiInitData: HomagIntelligenceInitData, libraryId: string) => HomagIntelligenceInitData;
|
|
@@ -2,10 +2,10 @@ import { RapiId } from '../../../../web-sdk/packages';
|
|
|
2
2
|
import { OnBeforeUpdateDragGhost } from '../../embedding-plugins';
|
|
3
3
|
export interface DragInStrategy {
|
|
4
4
|
isDragging: boolean;
|
|
5
|
-
dragStart(id: RapiId, event: DragEvent | TouchEvent | MouseEvent, type
|
|
5
|
+
dragStart(id: RapiId, event: DragEvent | TouchEvent | MouseEvent, type?: string): void | Promise<void>;
|
|
6
6
|
dragUpdate(event: DragEvent | TouchEvent | MouseEvent): void;
|
|
7
7
|
dragEnd(): void;
|
|
8
|
-
touchStart(id: RapiId, event: TouchEvent, type
|
|
8
|
+
touchStart(id: RapiId, event: TouchEvent, type?: string): void;
|
|
9
9
|
touchMove(event: TouchEvent): void;
|
|
10
10
|
touchEnd(): void;
|
|
11
11
|
beforeUpdateGhost(handler: OnBeforeUpdateDragGhost): void;
|
package/roomle-embedding-lib.js
CHANGED
|
@@ -140,13 +140,18 @@ var r = class {
|
|
|
140
140
|
let n = o();
|
|
141
141
|
return n && s(n) && (e.configuratorId = "demoConfigurator"), e.customApiUrl = "https://rubens.alpha.roomle.com/api/v2", e.emails = !1, e;
|
|
142
142
|
}, g = "<CONF_ID>", _ = "#CONFIGURATIONID#", v = (e) => {
|
|
143
|
+
let t = e.featureFlags;
|
|
144
|
+
if (!t || typeof t != "object" || Array.isArray(t)) return;
|
|
145
|
+
let n = t;
|
|
146
|
+
"enableTwoLevelCatalog" in n && typeof n.enableTwoLevelCatalog == "boolean" && (e.enableTwoLevelCatalog === !1 || e.enableTwoLevelCatalog === void 0) && (e.enableTwoLevelCatalog = n.enableTwoLevelCatalog);
|
|
147
|
+
}, y = (e) => {
|
|
143
148
|
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);
|
|
144
|
-
},
|
|
149
|
+
}, b = (e, t) => {
|
|
145
150
|
let n = d(t), r = h();
|
|
146
|
-
|
|
151
|
+
y(r);
|
|
147
152
|
let i = c(c(r, e.settings || {}), n);
|
|
148
|
-
return i.configuratorId = e.id, !i.overrideTenant && e.tenant && (i.overrideTenant = e.tenant), i;
|
|
149
|
-
},
|
|
153
|
+
return i.configuratorId = e.id, !i.overrideTenant && e.tenant && (i.overrideTenant = e.tenant), v(i), i;
|
|
154
|
+
}, x = () => /(android)/i.test(navigator.userAgent), S = class {
|
|
150
155
|
_messageHandler = null;
|
|
151
156
|
isSetupDone = !1;
|
|
152
157
|
viewName = "main";
|
|
@@ -188,7 +193,7 @@ var r = class {
|
|
|
188
193
|
setupPlugins(e, t, n = "website") {
|
|
189
194
|
for (let r of e) typeof r == "string" && r === "dragIn" ? this.pluginsLoaded.push(new Promise((e, r) => {
|
|
190
195
|
try {
|
|
191
|
-
import("./drag-in-
|
|
196
|
+
import("./drag-in-B42WpY_e.mjs").then((e) => e.n).then(({ DragIn: i }) => {
|
|
192
197
|
let a = new i(this.ui, t, n, this.viewName);
|
|
193
198
|
a.init().then(() => {
|
|
194
199
|
this.plugins.dragIn = a, e();
|
|
@@ -210,7 +215,7 @@ var r = class {
|
|
|
210
215
|
}
|
|
211
216
|
}));
|
|
212
217
|
}
|
|
213
|
-
},
|
|
218
|
+
}, C = () => {
|
|
214
219
|
let e, t;
|
|
215
220
|
return {
|
|
216
221
|
promise: new Promise((n, r) => {
|
|
@@ -219,7 +224,7 @@ var r = class {
|
|
|
219
224
|
resolve: e,
|
|
220
225
|
reject: t
|
|
221
226
|
};
|
|
222
|
-
},
|
|
227
|
+
}, w = {
|
|
223
228
|
SDK: "extended",
|
|
224
229
|
CONFIGURATOR_SDK: "configurator",
|
|
225
230
|
CALLBACKS: "callbacks",
|
|
@@ -227,20 +232,20 @@ var r = class {
|
|
|
227
232
|
ANALYTICS: "analytics",
|
|
228
233
|
GLOBAL: "global",
|
|
229
234
|
RAPI: "rapi"
|
|
230
|
-
},
|
|
235
|
+
}, T = ".", E = w.SDK + "." + w.CALLBACKS, D = {
|
|
231
236
|
REQUEST_BOOT: "requestBoot",
|
|
232
237
|
SETUP: "setup",
|
|
233
238
|
WEBSITE_READY: "websiteReady"
|
|
234
|
-
},
|
|
239
|
+
}, O = {
|
|
235
240
|
GET_METHODS: "getMethods",
|
|
236
241
|
RETURN_METHODS: "returnMethods",
|
|
237
242
|
REGISTER_CUSTOM_VIEW: "registerCustomView",
|
|
238
243
|
REGISTER_CUSTOM_VIEW_DONE: "registerCustomViewDone"
|
|
239
|
-
},
|
|
244
|
+
}, k = ["constructor", "callbacks"], A = (e) => e[0] !== "_" && !k.includes(e), j = (e, t, n = !1) => {
|
|
240
245
|
if (!e) return [];
|
|
241
|
-
let r = Object.getOwnPropertyNames(e), i = n ?
|
|
242
|
-
return r.filter(
|
|
243
|
-
},
|
|
246
|
+
let r = Object.getOwnPropertyNames(e), i = n ? w.CALLBACKS + "." : "";
|
|
247
|
+
return r.filter(A).map((e) => t + "." + i + e);
|
|
248
|
+
}, M = async (e, t) => {
|
|
244
249
|
if (typeof e != "string") throw Error("Configurator ID is not a string type: \"" + typeof e + "\"");
|
|
245
250
|
let n = t.customApiUrl ? t.customApiUrl : "https://api.roomle.com/v2", r = t.overrideTenant || 9, i = n + "/configurators/" + e, a = "03-" + window.btoa((/* @__PURE__ */ new Date()).toISOString() + ";anonymous;roomle_portal_v2"), o = new Request(i, {
|
|
246
251
|
method: "GET",
|
|
@@ -257,7 +262,7 @@ var r = class {
|
|
|
257
262
|
cache: "default"
|
|
258
263
|
}), { configurator: s } = await (await fetch(o)).json();
|
|
259
264
|
return s;
|
|
260
|
-
},
|
|
265
|
+
}, N = "data-rml-interaction-container", P = (e, t, n) => {
|
|
261
266
|
let r = null;
|
|
262
267
|
Object.defineProperty(e, t, {
|
|
263
268
|
get() {
|
|
@@ -267,28 +272,28 @@ var r = class {
|
|
|
267
272
|
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);
|
|
268
273
|
}
|
|
269
274
|
});
|
|
270
|
-
},
|
|
271
|
-
e && setTimeout(() => e.style.setProperty(
|
|
272
|
-
},
|
|
275
|
+
}, F = () => window.innerHeight * .01 + "px", I = (e) => {
|
|
276
|
+
e && setTimeout(() => e.style.setProperty(z, F()), 0);
|
|
277
|
+
}, L = "rml-styles", R = 450, z = "--rml-full-height", B = {
|
|
273
278
|
CONTAINER: "rml-container",
|
|
274
279
|
FILL: "rml-fill",
|
|
275
280
|
POSITION: "rml-pos",
|
|
276
281
|
TRANSITION: "rml-transition",
|
|
277
282
|
ANDROID_HEIGHT: "rml-android-height",
|
|
278
283
|
OVERFLOW_HIDDEN: "rml-overflow-hidden"
|
|
279
|
-
},
|
|
284
|
+
}, V = /* @__PURE__ */ new Map(), H = class extends S {
|
|
280
285
|
static createPlanner(e, t, n, r = []) {
|
|
281
286
|
return this._create(e, t, n, r);
|
|
282
287
|
}
|
|
283
288
|
static async connect(e, t = []) {
|
|
284
|
-
let n = new
|
|
289
|
+
let n = new S();
|
|
285
290
|
n.viewName = e;
|
|
286
|
-
let { resolve: i, promise: a } =
|
|
291
|
+
let { resolve: i, promise: a } = C(), { resolve: o, promise: s } = C(), c = new r("custom-view-" + e, window, window.parent, ({ message: e, args: t }) => {
|
|
287
292
|
switch (e) {
|
|
288
|
-
case
|
|
293
|
+
case O.REGISTER_CUSTOM_VIEW_DONE:
|
|
289
294
|
i();
|
|
290
295
|
break;
|
|
291
|
-
case
|
|
296
|
+
case O.RETURN_METHODS:
|
|
292
297
|
n.handleSetup(t[0]), o();
|
|
293
298
|
break;
|
|
294
299
|
default: if (n.isSetupDone) return n.executeMessage({
|
|
@@ -299,7 +304,7 @@ var r = class {
|
|
|
299
304
|
});
|
|
300
305
|
n.setMessageHandler(c);
|
|
301
306
|
let l = [e];
|
|
302
|
-
return c.sendMessage(
|
|
307
|
+
return c.sendMessage(O.REGISTER_CUSTOM_VIEW, l), await a, c.sendMessage(O.GET_METHODS, l), await s, n.setupPlugins(t, document.body, "custom-view"), await Promise.allSettled(n.pluginsLoaded), n;
|
|
303
308
|
}
|
|
304
309
|
static createConfigurator(e, t, n, r = []) {
|
|
305
310
|
return this._create(e, t, n, r);
|
|
@@ -323,9 +328,9 @@ var r = class {
|
|
|
323
328
|
return new Promise(async (i, a) => {
|
|
324
329
|
try {
|
|
325
330
|
let a = p(n), o = h();
|
|
326
|
-
|
|
327
|
-
let s = await
|
|
328
|
-
n =
|
|
331
|
+
y(o);
|
|
332
|
+
let s = await M(e, c(o, a));
|
|
333
|
+
n = b(s, a);
|
|
329
334
|
let l = new this(s, t, n, r, i);
|
|
330
335
|
return await Promise.allSettled(l.pluginsLoaded), l;
|
|
331
336
|
} catch (e) {
|
|
@@ -340,51 +345,51 @@ var r = class {
|
|
|
340
345
|
_iframe;
|
|
341
346
|
constructor(e, t, n, i, a) {
|
|
342
347
|
if (super(), !e || typeof e.id != "string") throw Error("Please provide a correct configuratorId, you get the correct ID from your Roomle Contact Person");
|
|
343
|
-
if (
|
|
344
|
-
if (!document.getElementById(
|
|
348
|
+
if (V.has(t)) throw Error("There is already an instance on this DOM element");
|
|
349
|
+
if (!document.getElementById(L)) {
|
|
345
350
|
let e = n.zIndex || 9999999, t = document.createElement("style");
|
|
346
|
-
t.type = "text/css", t.id =
|
|
347
|
-
let r = "transition:all ease-in-out " +
|
|
351
|
+
t.type = "text/css", t.id = L;
|
|
352
|
+
let r = "transition:all ease-in-out " + R + "ms;", i = ["-webkit-", "-o-"].reduce((e, t) => e += t + r, "") + r, a = F();
|
|
348
353
|
t.innerHTML = `
|
|
349
|
-
.${
|
|
350
|
-
.${
|
|
351
|
-
.${
|
|
352
|
-
.${
|
|
353
|
-
.${
|
|
354
|
-
.${
|
|
354
|
+
.${B.CONTAINER}{${z}:${a};}
|
|
355
|
+
.${B.POSITION}{position:fixed;top:0;left:0;z-index:${e};opacity:0}
|
|
356
|
+
.${B.TRANSITION}{${i}}
|
|
357
|
+
.${B.FILL}{width:100%;height:100%;opacity:1}
|
|
358
|
+
.${B.ANDROID_HEIGHT}{height:calc(var(${z},1vh)*100)}
|
|
359
|
+
.${B.OVERFLOW_HIDDEN}{overflow:hidden}
|
|
355
360
|
`, document.head.appendChild(t);
|
|
356
361
|
}
|
|
357
362
|
this._executeMessage = this._executeMessage.bind(this);
|
|
358
363
|
let o = new r("website", window, null, this._executeMessage);
|
|
359
|
-
this.setMessageHandler(o), this._onResize = this._onResize.bind(this),
|
|
364
|
+
this.setMessageHandler(o), this._onResize = this._onResize.bind(this), x() && window.addEventListener("resize", this._onResize), this._container = t, this._initData = n, this._configuratorSettings = e;
|
|
360
365
|
let s = this._createIframe();
|
|
361
|
-
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),
|
|
366
|
+
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), V.set(t, !0);
|
|
362
367
|
}
|
|
363
368
|
teardown() {
|
|
364
|
-
this._container &&
|
|
369
|
+
this._container && V.delete(this._container);
|
|
365
370
|
let e = this._container.querySelector("iframe");
|
|
366
371
|
e && this._container.removeChild(e), window.removeEventListener("resize", this._onResize);
|
|
367
372
|
}
|
|
368
373
|
_createIframe() {
|
|
369
374
|
let e = document.createElement("iframe"), t = this._configuratorSettings?.url || "https://www.roomle.com/t/cp/";
|
|
370
|
-
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(
|
|
375
|
+
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(B.CONTAINER), e.classList.add(B.FILL), e;
|
|
371
376
|
}
|
|
372
377
|
_onResize() {
|
|
373
|
-
|
|
378
|
+
I(this._iframe);
|
|
374
379
|
}
|
|
375
380
|
_onUseFullPage() {
|
|
376
|
-
this._iframe.classList.add(
|
|
381
|
+
this._iframe.classList.add(B.POSITION), document.documentElement.classList.add(B.OVERFLOW_HIDDEN), window.document.body.classList.add(B.OVERFLOW_HIDDEN), x() && (I(this._iframe), this._iframe.classList.add(B.ANDROID_HEIGHT));
|
|
377
382
|
}
|
|
378
383
|
_onBackToWebsite() {
|
|
379
|
-
this._iframe.classList.remove(
|
|
384
|
+
this._iframe.classList.remove(B.POSITION), this._iframe.classList.remove(B.ANDROID_HEIGHT), document.documentElement.classList.remove(B.OVERFLOW_HIDDEN), window.document.body.classList.remove(B.OVERFLOW_HIDDEN);
|
|
380
385
|
}
|
|
381
386
|
_executeMessage({ message: e, args: t }, n) {
|
|
382
|
-
if (n.source && n.source === this._iframe?.contentWindow) return e ===
|
|
387
|
+
if (n.source && n.source === this._iframe?.contentWindow) return e === D.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 === D.SETUP ? (this.handleSetup(t[0]), P(this.ui.callbacks, "onUseFullPage", this._onUseFullPage), P(this.ui.callbacks, "onBackToWebsite", this._onBackToWebsite), this._waitForIframe(this), setTimeout(() => {
|
|
383
388
|
if (!this._messageHandler) {
|
|
384
389
|
console.error("MessageHandler not set");
|
|
385
390
|
return;
|
|
386
391
|
}
|
|
387
|
-
this._messageHandler.sendMessage(
|
|
392
|
+
this._messageHandler.sendMessage(D.WEBSITE_READY);
|
|
388
393
|
}, 0), Promise.resolve({ result: null })) : this.executeMessage({
|
|
389
394
|
message: e,
|
|
390
395
|
args: t
|
|
@@ -392,4 +397,4 @@ var r = class {
|
|
|
392
397
|
}
|
|
393
398
|
};
|
|
394
399
|
//#endregion
|
|
395
|
-
export {
|
|
400
|
+
export { D as HANDSHAKE_MESSAGES, N as INTERACTION_CONTAINER_SELECTOR, w as NAMESPACE, T as NAMESPACE_SEPARATOR, E as SDK_CALLBACK, O as WELL_KNOWN_MESSAGES, H as default, M as getConfiguratorSettings, j as getMethodNames, A as isExposable };
|
|
@@ -174,7 +174,7 @@ var r = class {
|
|
|
174
174
|
setupPlugins(e, t, n = "website") {
|
|
175
175
|
for (let r of e) typeof r == "string" && r === "dragIn" ? this.pluginsLoaded.push(new Promise((e, r) => {
|
|
176
176
|
try {
|
|
177
|
-
import("./drag-in-
|
|
177
|
+
import("./drag-in-DXVxlotA.mjs").then((e) => e.n).then(({ DragIn: i }) => {
|
|
178
178
|
let a = new i(this.ui, t, n, this.viewName);
|
|
179
179
|
a.init().then(() => {
|
|
180
180
|
this.plugins.dragIn = a, e();
|
|
@@ -306,7 +306,12 @@ var r = class {
|
|
|
306
306
|
let n = c(t), r = d();
|
|
307
307
|
f(r);
|
|
308
308
|
let i = a(a(r, e.settings || {}), n);
|
|
309
|
-
return i.configuratorId = e.id, !i.overrideTenant && e.tenant && (i.overrideTenant = e.tenant),
|
|
309
|
+
return i.configuratorId = e.id, !i.overrideTenant && e.tenant && (i.overrideTenant = e.tenant), ((e) => {
|
|
310
|
+
let t = e.featureFlags;
|
|
311
|
+
if (!t || typeof t != "object" || Array.isArray(t)) return;
|
|
312
|
+
let n = t;
|
|
313
|
+
!("enableTwoLevelCatalog" in n) || typeof n.enableTwoLevelCatalog != "boolean" || !1 !== e.enableTwoLevelCatalog && e.enableTwoLevelCatalog !== void 0 || (e.enableTwoLevelCatalog = n.enableTwoLevelCatalog);
|
|
314
|
+
})(i), i;
|
|
310
315
|
})(l, o);
|
|
311
316
|
let p = new this(l, t, n, r, i);
|
|
312
317
|
return await Promise.allSettled(p.pluginsLoaded), p;
|