@roomle/embedding-lib 6.5.0 → 6.6.0-alpha.2
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/browser-C_Dfiou7.mjs +18 -0
- package/browser-DRgK3Fk8.mjs +16 -0
- package/comlink-BipJ8Ikr.mjs +237 -0
- package/comlink-Dds_bpug.mjs +220 -0
- package/docs/md/web/embedding/CHANGELOG.md +32 -150
- package/drag-ghost-BGZWgVa7.mjs +60 -0
- package/drag-ghost-DGgvJ4Lm.mjs +65 -0
- package/drag-in-AFSAsnAN.mjs +102 -0
- package/drag-in-BwqVwCBp.mjs +96 -0
- package/embedding-plugins.js +2 -14
- package/embedding-plugins.min.js +2 -1
- package/from-custom-view-B-eXMXF1.mjs +207 -0
- package/from-custom-view-tZcYF-zX.mjs +206 -0
- package/from-website--UCl1aQs.mjs +113 -0
- package/from-website-BesXdvcV.mjs +118 -0
- package/hi.js +72 -119
- package/hi.min.js +71 -1
- package/package.json +1 -1
- package/rolldown-runtime-C-QNzSnW.mjs +11 -0
- package/rolldown-runtime-C017PlDO.mjs +9 -0
- package/roomle-embedding-lib.js +394 -576
- package/roomle-embedding-lib.min.js +365 -1
- package/utils-BnWKaFPc.mjs +126 -0
- package/utils-DfC2ZLUc.mjs +118 -0
- package/browser-BhHw2H1M.mjs +0 -1
- package/browser-CUgD7zyH.mjs +0 -21
- package/comlink-BAiXCcU9.mjs +0 -258
- package/comlink-CmT64Qi3.mjs +0 -1
- package/drag-ghost-B7UAYefM.mjs +0 -1
- package/drag-ghost-DHrf_Evu.mjs +0 -81
- package/embedding-plugins-DLVs7ER4.mjs +0 -1
- package/embedding-plugins-DqMSzAJe.mjs +0 -140
- package/from-custom-view-CaDOooe4.mjs +0 -1
- package/from-custom-view-T67aFIDR.mjs +0 -249
- package/from-website-Bvd5Pi0i.mjs +0 -134
- package/from-website-nKwD78_u.mjs +0 -1
- package/utils-BqTPLNLs.mjs +0 -1
- package/utils-Dav4kGNW.mjs +0 -150
|
@@ -1,151 +1,33 @@
|
|
|
1
|
-
## 6.
|
|
1
|
+
## 6.6.0-alpha.2 (2026-04-02)
|
|
2
2
|
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Merge branch '
|
|
6
|
-
* Merge branch 'master' into
|
|
7
|
-
* Merge branch 'master' into
|
|
8
|
-
* Merge branch 'master' into
|
|
9
|
-
* Merge branch 'master' into
|
|
10
|
-
* Merge branch 'master' into
|
|
11
|
-
* Merge
|
|
12
|
-
* Merge
|
|
13
|
-
* Merge
|
|
14
|
-
* Merge
|
|
15
|
-
* Merge
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* Merge branch 'master' into upgraded-by-ci/core-2.72.0-alpha.8 ([eb1c734](https://github.com/roomle-dev/roomle-ui/commit/eb1c734))
|
|
35
|
-
* Merge pull request #2346 from roomle-dev/fix/drag-fade ([1426d41](https://github.com/roomle-dev/roomle-ui/commit/1426d41)), closes [#2346](https://github.com/roomle-dev/roomle-ui/issues/2346)
|
|
36
|
-
* Merge pull request #2365 from roomle-dev/copilot/upgrade-web-sdk-to-strict-null-checks ([18e45eb](https://github.com/roomle-dev/roomle-ui/commit/18e45eb)), closes [#2365](https://github.com/roomle-dev/roomle-ui/issues/2365)
|
|
37
|
-
* Merge pull request #2373 from roomle-dev/refactor/typed-event-dispatcher-map ([5d50308](https://github.com/roomle-dev/roomle-ui/commit/5d50308)), closes [#2373](https://github.com/roomle-dev/roomle-ui/issues/2373)
|
|
38
|
-
* Merge pull request #2383 from roomle-dev/copilot/fix-buttons-partlist-planner-issue ([de1229c](https://github.com/roomle-dev/roomle-ui/commit/de1229c)), closes [#2383](https://github.com/roomle-dev/roomle-ui/issues/2383)
|
|
39
|
-
* Merge pull request #2384 from roomle-dev/docs/pos-group ([f4c6a77](https://github.com/roomle-dev/roomle-ui/commit/f4c6a77)), closes [#2384](https://github.com/roomle-dev/roomle-ui/issues/2384)
|
|
40
|
-
* Merge pull request #2385 from roomle-dev/upgraded-by-ci/core-2.72.0-alpha.3 ([71b0d74](https://github.com/roomle-dev/roomle-ui/commit/71b0d74)), closes [#2385](https://github.com/roomle-dev/roomle-ui/issues/2385)
|
|
41
|
-
* Merge pull request #2386 from roomle-dev/fix/override-translations-RML-16228 ([f919a0f](https://github.com/roomle-dev/roomle-ui/commit/f919a0f)), closes [#2386](https://github.com/roomle-dev/roomle-ui/issues/2386)
|
|
42
|
-
* Merge pull request #2387 from roomle-dev/fix/decimal-range-parameter-RML-16233 ([0096766](https://github.com/roomle-dev/roomle-ui/commit/0096766)), closes [#2387](https://github.com/roomle-dev/roomle-ui/issues/2387)
|
|
43
|
-
* Merge pull request #2388 from roomle-dev/fix/move-wall-nodes-RML-16252 ([7a8b6fa](https://github.com/roomle-dev/roomle-ui/commit/7a8b6fa)), closes [#2388](https://github.com/roomle-dev/roomle-ui/issues/2388)
|
|
44
|
-
* Merge pull request #2389 from roomle-dev/fix/radio-toggle-icon-centering-RML-16207 ([6ad4b4a](https://github.com/roomle-dev/roomle-ui/commit/6ad4b4a)), closes [#2389](https://github.com/roomle-dev/roomle-ui/issues/2389)
|
|
45
|
-
* Merge pull request #2390 from roomle-dev/fix/missing-param-lbal ([7c9cc59](https://github.com/roomle-dev/roomle-ui/commit/7c9cc59)), closes [#2390](https://github.com/roomle-dev/roomle-ui/issues/2390)
|
|
46
|
-
* Merge pull request #2391 from roomle-dev/fix/set-only-selected-floor-color ([c59f3fe](https://github.com/roomle-dev/roomle-ui/commit/c59f3fe)), closes [#2391](https://github.com/roomle-dev/roomle-ui/issues/2391)
|
|
47
|
-
* Merge pull request #2392 from roomle-dev/fix/product-dimension-after-update ([d76eaf2](https://github.com/roomle-dev/roomle-ui/commit/d76eaf2)), closes [#2392](https://github.com/roomle-dev/roomle-ui/issues/2392)
|
|
48
|
-
* Merge pull request #2393 from roomle-dev/ci/cancel-duplicate-ci-workflow-run ([bee772f](https://github.com/roomle-dev/roomle-ui/commit/bee772f)), closes [#2393](https://github.com/roomle-dev/roomle-ui/issues/2393)
|
|
49
|
-
* Merge pull request #2395 from roomle-dev/fix/close-icon-on-mobile-RML-16254 ([2430c73](https://github.com/roomle-dev/roomle-ui/commit/2430c73)), closes [#2395](https://github.com/roomle-dev/roomle-ui/issues/2395)
|
|
50
|
-
* Merge pull request #2396 from roomle-dev/feat/add-flag-for-mesh-raycasting ([0d803d0](https://github.com/roomle-dev/roomle-ui/commit/0d803d0)), closes [#2396](https://github.com/roomle-dev/roomle-ui/issues/2396)
|
|
51
|
-
* Merge pull request #2397 from roomle-dev/upgraded-by-ci/core-2.72.0-alpha.4 ([2ac6965](https://github.com/roomle-dev/roomle-ui/commit/2ac6965)), closes [#2397](https://github.com/roomle-dev/roomle-ui/issues/2397)
|
|
52
|
-
* Merge pull request #2398 from roomle-dev/fix/2-level-catalog-with-custom-data-structure-RML-16263 ([33ba6a7](https://github.com/roomle-dev/roomle-ui/commit/33ba6a7)), closes [#2398](https://github.com/roomle-dev/roomle-ui/issues/2398)
|
|
53
|
-
* Merge pull request #2401 from roomle-dev/upgraded-by-ci/core-2.72.0-alpha.5 ([e8e14bd](https://github.com/roomle-dev/roomle-ui/commit/e8e14bd)), closes [#2401](https://github.com/roomle-dev/roomle-ui/issues/2401)
|
|
54
|
-
* Merge pull request #2402 from roomle-dev/upgraded-by-ci/core-2.72.0-alpha.6 ([2aac90d](https://github.com/roomle-dev/roomle-ui/commit/2aac90d)), closes [#2402](https://github.com/roomle-dev/roomle-ui/issues/2402)
|
|
55
|
-
* Merge pull request #2403 from roomle-dev/chore/build-examples-alpha-stage ([e15ac89](https://github.com/roomle-dev/roomle-ui/commit/e15ac89)), closes [#2403](https://github.com/roomle-dev/roomle-ui/issues/2403)
|
|
56
|
-
* Merge pull request #2404 from roomle-dev/upgraded-by-ci/core-2.72.0-alpha.8 ([f334468](https://github.com/roomle-dev/roomle-ui/commit/f334468)), closes [#2404](https://github.com/roomle-dev/roomle-ui/issues/2404)
|
|
57
|
-
* Merge pull request #2405 from roomle-dev/fix/hi-examples-use-server-proxy ([cc41244](https://github.com/roomle-dev/roomle-ui/commit/cc41244)), closes [#2405](https://github.com/roomle-dev/roomle-ui/issues/2405)
|
|
58
|
-
* Merge pull request #2406 from roomle-dev/fix/mapping-data-on-level1 ([7d63c9d](https://github.com/roomle-dev/roomle-ui/commit/7d63c9d)), closes [#2406](https://github.com/roomle-dev/roomle-ui/issues/2406)
|
|
59
|
-
* Merge pull request #2407 from roomle-dev/upgraded-by-ci/core-2.72.0-alpha.9 ([58cd87d](https://github.com/roomle-dev/roomle-ui/commit/58cd87d)), closes [#2407](https://github.com/roomle-dev/roomle-ui/issues/2407)
|
|
60
|
-
* Merge pull request #2410 from roomle-dev/upgraded-by-ci/core-2.72.0-alpha.10 ([735c63a](https://github.com/roomle-dev/roomle-ui/commit/735c63a)), closes [#2410](https://github.com/roomle-dev/roomle-ui/issues/2410)
|
|
61
|
-
* Merge pull request #2411 from roomle-dev/upgraded-by-ci/core-2.72.0-alpha.11 ([58ea7bf](https://github.com/roomle-dev/roomle-ui/commit/58ea7bf)), closes [#2411](https://github.com/roomle-dev/roomle-ui/issues/2411)
|
|
62
|
-
* Merge pull request #2414 from roomle-dev/upgraded-by-ci/core-2.72.0-alpha.12 ([ef98f78](https://github.com/roomle-dev/roomle-ui/commit/ef98f78)), closes [#2414](https://github.com/roomle-dev/roomle-ui/issues/2414)
|
|
63
|
-
* feat(sdk): add a new flag to enable raycasting based on meshes ([834f18c](https://github.com/roomle-dev/roomle-ui/commit/834f18c))
|
|
64
|
-
* feat: core api - childObjectLevel ([ed3cc0d](https://github.com/roomle-dev/roomle-ui/commit/ed3cc0d))
|
|
65
|
-
* feat(core): upgrade to version 2.72.0-alpha.10 ([f890cee](https://github.com/roomle-dev/roomle-ui/commit/f890cee))
|
|
66
|
-
* feat(core): upgrade to version 2.72.0-alpha.11 ([c186968](https://github.com/roomle-dev/roomle-ui/commit/c186968))
|
|
67
|
-
* feat(core): upgrade to version 2.72.0-alpha.12 ([75998c7](https://github.com/roomle-dev/roomle-ui/commit/75998c7))
|
|
68
|
-
* feat(core): upgrade to version 2.72.0-alpha.3 ([d6e47ab](https://github.com/roomle-dev/roomle-ui/commit/d6e47ab))
|
|
69
|
-
* feat(core): upgrade to version 2.72.0-alpha.4 ([70c7364](https://github.com/roomle-dev/roomle-ui/commit/70c7364))
|
|
70
|
-
* feat(core): upgrade to version 2.72.0-alpha.5 ([1b7e291](https://github.com/roomle-dev/roomle-ui/commit/1b7e291))
|
|
71
|
-
* feat(core): upgrade to version 2.72.0-alpha.6 ([0547814](https://github.com/roomle-dev/roomle-ui/commit/0547814))
|
|
72
|
-
* feat(core): upgrade to version 2.72.0-alpha.8 ([b6e2e73](https://github.com/roomle-dev/roomle-ui/commit/b6e2e73))
|
|
73
|
-
* feat(core): upgrade to version 2.72.0-alpha.9 ([77da101](https://github.com/roomle-dev/roomle-ui/commit/77da101))
|
|
74
|
-
* chore: adapt test ([138e2dd](https://github.com/roomle-dev/roomle-ui/commit/138e2dd))
|
|
75
|
-
* chore: add any cast to test ([14589f3](https://github.com/roomle-dev/roomle-ui/commit/14589f3))
|
|
76
|
-
* chore: add docs ([2e7ba8b](https://github.com/roomle-dev/roomle-ui/commit/2e7ba8b))
|
|
77
|
-
* chore: add long press for mobile ([b9345c5](https://github.com/roomle-dev/roomle-ui/commit/b9345c5))
|
|
78
|
-
* chore: build embedding examples for alpha stage deployment ([5028db6](https://github.com/roomle-dev/roomle-ui/commit/5028db6))
|
|
79
|
-
* chore: code review ([71c8ecd](https://github.com/roomle-dev/roomle-ui/commit/71c8ecd))
|
|
80
|
-
* chore: fadein out on grid view ([50bb0d6](https://github.com/roomle-dev/roomle-ui/commit/50bb0d6))
|
|
81
|
-
* chore: fix for mobile drag in HI ([a12120c](https://github.com/roomle-dev/roomle-ui/commit/a12120c))
|
|
82
|
-
* chore: fix imports ([dc14e57](https://github.com/roomle-dev/roomle-ui/commit/dc14e57))
|
|
83
|
-
* chore: fix native browser drag ghost flying around ([1c447d2](https://github.com/roomle-dev/roomle-ui/commit/1c447d2))
|
|
84
|
-
* chore: format ([9c544e9](https://github.com/roomle-dev/roomle-ui/commit/9c544e9))
|
|
85
|
-
* chore: lint ([a52f181](https://github.com/roomle-dev/roomle-ui/commit/a52f181))
|
|
86
|
-
* chore: lint ([f604576](https://github.com/roomle-dev/roomle-ui/commit/f604576))
|
|
87
|
-
* chore: merge master ([edf059b](https://github.com/roomle-dev/roomle-ui/commit/edf059b))
|
|
88
|
-
* chore: merge master into strict-null-checks branch ([f152002](https://github.com/roomle-dev/roomle-ui/commit/f152002))
|
|
89
|
-
* chore: set missing param label ([7a50f5e](https://github.com/roomle-dev/roomle-ui/commit/7a50f5e))
|
|
90
|
-
* chore: start Phase 3 strict null checks migration for common-core ([aa975a0](https://github.com/roomle-dev/roomle-ui/commit/aa975a0))
|
|
91
|
-
* chore: strictNullChecks Phase 3a — DI, utils, services, input ([ab55f13](https://github.com/roomle-dev/roomle-ui/commit/ab55f13))
|
|
92
|
-
* chore: trigger CI ([3dcc2a6](https://github.com/roomle-dev/roomle-ui/commit/3dcc2a6))
|
|
93
|
-
* chore: use default annotation for meshRaycasting ([0ebe749](https://github.com/roomle-dev/roomle-ui/commit/0ebe749))
|
|
94
|
-
* chore: working drag-in fade out ([04c0f22](https://github.com/roomle-dev/roomle-ui/commit/04c0f22))
|
|
95
|
-
* fix(web-sdk): address PR feedback and CI regressions ([a62e799](https://github.com/roomle-dev/roomle-ui/commit/a62e799))
|
|
96
|
-
* fix: address remaining review comments on PR #2365 ([279c7b6](https://github.com/roomle-dev/roomle-ui/commit/279c7b6)), closes [#2365](https://github.com/roomle-dev/roomle-ui/issues/2365)
|
|
97
|
-
* fix: address review comments on PR #2373 ([9a9827b](https://github.com/roomle-dev/roomle-ui/commit/9a9827b)), closes [#2373](https://github.com/roomle-dev/roomle-ui/issues/2373)
|
|
98
|
-
* fix: address review feedback — revert problematic fallbacks, fix null handling ([f6d7bb6](https://github.com/roomle-dev/roomle-ui/commit/f6d7bb6))
|
|
99
|
-
* fix: apply locale fallback to translation overrides for BCP-47 locales ([40c45df](https://github.com/roomle-dev/roomle-ui/commit/40c45df))
|
|
100
|
-
* fix: apply precisionInch to unit=inch (not only inchfeet) ([1f60382](https://github.com/roomle-dev/roomle-ui/commit/1f60382))
|
|
101
|
-
* fix: better positioning of spawned in elements ([bd7ebf9](https://github.com/roomle-dev/roomle-ui/commit/bd7ebf9))
|
|
102
|
-
* fix(design-system): center icon in circle radio toggle by removing SVG descender gap ([f5914b8](https://github.com/roomle-dev/roomle-ui/commit/f5914b8))
|
|
103
|
-
* fix: check all items for pipe-delimited detection, not just the first ([28a3781](https://github.com/roomle-dev/roomle-ui/commit/28a3781))
|
|
104
|
-
* fix: correct cast from KeyboardEvent to MouseEvent in _onMouseDown ([2b4ca5c](https://github.com/roomle-dev/roomle-ui/commit/2b4ca5c))
|
|
105
|
-
* fix: do not add new undo step ([0e8d78c](https://github.com/roomle-dev/roomle-ui/commit/0e8d78c))
|
|
106
|
-
* fix: formatting issues ([860c8da](https://github.com/roomle-dev/roomle-ui/commit/860c8da))
|
|
107
|
-
* fix: from custom overlay dragging working again ([7f37a35](https://github.com/roomle-dev/roomle-ui/commit/7f37a35))
|
|
108
|
-
* fix: harden DI lookup and light cache access ([843eee9](https://github.com/roomle-dev/roomle-ui/commit/843eee9))
|
|
109
|
-
* fix: hide close button in bottom bar when not inside embedding iframe ([8d06d0d](https://github.com/roomle-dev/roomle-ui/commit/8d06d0d))
|
|
110
|
-
* fix: hide product list drawer and fallback to room drawer when partlist_planner is false ([4197db3](https://github.com/roomle-dev/roomle-ui/commit/4197db3))
|
|
111
|
-
* fix: hide product-list-button when partlist_planner is false and fix prettier ([bf759f1](https://github.com/roomle-dev/roomle-ui/commit/bf759f1))
|
|
112
|
-
* fix: mobile external catalog dragging ([4f20d23](https://github.com/roomle-dev/roomle-ui/commit/4f20d23))
|
|
113
|
-
* fix: only set color of the selected floor in planner ([b92ef5b](https://github.com/roomle-dev/roomle-ui/commit/b92ef5b))
|
|
114
|
-
* fix: resolve strictNullChecks errors in cameracontrol directory ([1038f20](https://github.com/roomle-dev/roomle-ui/commit/1038f20))
|
|
115
|
-
* fix: resolve strictNullChecks errors in cameracontrol directory ([a0011c1](https://github.com/roomle-dev/roomle-ui/commit/a0011c1))
|
|
116
|
-
* fix: resolve strictNullChecks errors in common-core ([c7991bf](https://github.com/roomle-dev/roomle-ui/commit/c7991bf))
|
|
117
|
-
* fix: resolve strictNullChecks errors in common-core/utils ([3e68331](https://github.com/roomle-dev/roomle-ui/commit/3e68331))
|
|
118
|
-
* fix: resolve strictNullChecks errors in common-utils.ts ([f8e204d](https://github.com/roomle-dev/roomle-ui/commit/f8e204d))
|
|
119
|
-
* fix: resolve strictNullChecks errors in init-data.ts ([dbf9164](https://github.com/roomle-dev/roomle-ui/commit/dbf9164))
|
|
120
|
-
* fix: resolve strictNullChecks errors in input-manager.ts ([a1ccf79](https://github.com/roomle-dev/roomle-ui/commit/a1ccf79))
|
|
121
|
-
* fix: resolve strictNullChecks errors in services/ files ([1e4356a](https://github.com/roomle-dev/roomle-ui/commit/1e4356a))
|
|
122
|
-
* fix: resolve strictNullChecks errors in single-promise-factory.ts ([b98f80f](https://github.com/roomle-dev/roomle-ui/commit/b98f80f))
|
|
123
|
-
* fix: resolve strictNullChecks errors in threejs-utils.ts ([e131748](https://github.com/roomle-dev/roomle-ui/commit/e131748))
|
|
124
|
-
* fix: respect buttons.partlist_planner option in Room Designer ([a2e230a](https://github.com/roomle-dev/roomle-ui/commit/a2e230a))
|
|
125
|
-
* fix: revert Main.lookup to not throw on null (test regression) ([05793dc](https://github.com/roomle-dev/roomle-ui/commit/05793dc))
|
|
126
|
-
* fix: set VITE_USE_SERVER for HI example builds on stages ([6003ec2](https://github.com/roomle-dev/roomle-ui/commit/6003ec2))
|
|
127
|
-
* fix: skip pipe-delimited transform when enableTwoLevelCatalog is off ([cb33d55](https://github.com/roomle-dev/roomle-ui/commit/cb33d55))
|
|
128
|
-
* fix: upload all example HTML files with no-cache headers ([4f76de7](https://github.com/roomle-dev/roomle-ui/commit/4f76de7))
|
|
129
|
-
* fix: use moveElementToIn2d for wall nodes in 2D mode ([cfc80c1](https://github.com/roomle-dev/roomle-ui/commit/cfc80c1))
|
|
130
|
-
* style: format merge resolution ([1253cf0](https://github.com/roomle-dev/roomle-ui/commit/1253cf0))
|
|
131
|
-
* refactor: add typed CameraEventMap for CameraControl ([b49f7ce](https://github.com/roomle-dev/roomle-ui/commit/b49f7ce))
|
|
132
|
-
* refactor: check meshRaycasting flag directly in event handler ([b855952](https://github.com/roomle-dev/roomle-ui/commit/b855952))
|
|
133
|
-
* refactor: extract factory functions and remove redundant type annotations ([bc09eac](https://github.com/roomle-dev/roomle-ui/commit/bc09eac))
|
|
134
|
-
* refactor: move ghost image creation into composable ([ffa9803](https://github.com/roomle-dev/roomle-ui/commit/ffa9803))
|
|
135
|
-
* refactor: reduce duplicate code in test ([315731c](https://github.com/roomle-dev/roomle-ui/commit/315731c))
|
|
136
|
-
* refactor: remove unnecessary jsdoc and use pointerEvent factory in tests ([4e4630a](https://github.com/roomle-dev/roomle-ui/commit/4e4630a))
|
|
137
|
-
* refactor: simplify EventDispatcher generics and add code guidelines ([a5833a0](https://github.com/roomle-dev/roomle-ui/commit/a5833a0))
|
|
138
|
-
* refactor: typed EventMap for EventDispatcher and InputEvent ([eef56b3](https://github.com/roomle-dev/roomle-ui/commit/eef56b3))
|
|
139
|
-
* refactor: use isInch() in init to avoid duplicated condition ([74831a6](https://github.com/roomle-dev/roomle-ui/commit/74831a6))
|
|
140
|
-
* refactor: use typed inputListener helper and rename factories to createPointerEvent/createKeyboardEv ([769ccb5](https://github.com/roomle-dev/roomle-ui/commit/769ccb5))
|
|
141
|
-
* refactor: working from-website dragin on mobile ([92545de](https://github.com/roomle-dev/roomle-ui/commit/92545de))
|
|
142
|
-
* test: add missing usePurchasableCount mock to factory2 ([f68fead](https://github.com/roomle-dev/roomle-ui/commit/f68fead))
|
|
143
|
-
* test: adjust test to refactored scene event handler ([741af22](https://github.com/roomle-dev/roomle-ui/commit/741af22))
|
|
144
|
-
* test: check that product dimensions are updated after update event ([c478418](https://github.com/roomle-dev/roomle-ui/commit/c478418))
|
|
145
|
-
* test: update playwright tests, because of HI properties ([49bb60f](https://github.com/roomle-dev/roomle-ui/commit/49bb60f))
|
|
146
|
-
* test: verify that addComponentHandlers is called for meshes when meshRaycasting=true ([b36382d](https://github.com/roomle-dev/roomle-ui/commit/b36382d))
|
|
147
|
-
* docs: add Symbol guideline for opaque identifiers and follow-up for refactoring ([066a0cb](https://github.com/roomle-dev/roomle-ui/commit/066a0cb))
|
|
148
|
-
* docs: PosGroup data structure ([71958b0](https://github.com/roomle-dev/roomle-ui/commit/71958b0))
|
|
149
|
-
* docs: update TypeScript guidelines — prefer union types, no enums in new code ([6fc4a54](https://github.com/roomle-dev/roomle-ui/commit/6fc4a54))
|
|
150
|
-
* ci: cancel in progress workflow runs if newer one gets triggered ([7860c41](https://github.com/roomle-dev/roomle-ui/commit/7860c41))
|
|
151
|
-
* wip: use core bound value for product dimensions ([7ff89ba](https://github.com/roomle-dev/roomle-ui/commit/7ff89ba))
|
|
3
|
+
* Merge branch 'master' into chore/vite-8-upgrade-RML-16407 ([1bd398a](https://github.com/roomle-dev/roomle-ui/commit/1bd398a))
|
|
4
|
+
* Merge branch 'master' into fix/display-sub-sub-modules-in-left-panel ([369f41c](https://github.com/roomle-dev/roomle-ui/commit/369f41c))
|
|
5
|
+
* Merge branch 'master' into fix/lamp-state-persistence ([146ab40](https://github.com/roomle-dev/roomle-ui/commit/146ab40))
|
|
6
|
+
* Merge branch 'master' into fix/lamp-state-persistence ([c3baa9e](https://github.com/roomle-dev/roomle-ui/commit/c3baa9e))
|
|
7
|
+
* Merge branch 'master' into fix/lamp-state-persistence ([ed2eaaa](https://github.com/roomle-dev/roomle-ui/commit/ed2eaaa))
|
|
8
|
+
* Merge branch 'master' into fix/lamp-state-persistence ([17fcf9f](https://github.com/roomle-dev/roomle-ui/commit/17fcf9f))
|
|
9
|
+
* Merge branch 'master' into fix/lamp-state-persistence ([a288a01](https://github.com/roomle-dev/roomle-ui/commit/a288a01))
|
|
10
|
+
* Merge branch 'master' into fix/lamp-state-persistence ([bfe9be7](https://github.com/roomle-dev/roomle-ui/commit/bfe9be7))
|
|
11
|
+
* Merge pull request #2457 from roomle-dev/fix/lamp-state-persistence ([7673da1](https://github.com/roomle-dev/roomle-ui/commit/7673da1)), closes [#2457](https://github.com/roomle-dev/roomle-ui/issues/2457)
|
|
12
|
+
* Merge pull request #2459 from roomle-dev/chore/vite-8-upgrade-RML-16407 ([ec54037](https://github.com/roomle-dev/roomle-ui/commit/ec54037)), closes [#2459](https://github.com/roomle-dev/roomle-ui/issues/2459)
|
|
13
|
+
* Merge pull request #2468 from roomle-dev/upgraded-by-ci/core-2.73.0-alpha.16 ([395447d](https://github.com/roomle-dev/roomle-ui/commit/395447d)), closes [#2468](https://github.com/roomle-dev/roomle-ui/issues/2468)
|
|
14
|
+
* Merge pull request #2471 from roomle-dev/fix/display-sub-sub-modules-in-left-panel ([f16ddfd](https://github.com/roomle-dev/roomle-ui/commit/f16ddfd)), closes [#2471](https://github.com/roomle-dev/roomle-ui/issues/2471)
|
|
15
|
+
* Merge pull request #2473 from roomle-dev/upgraded-by-ci/core-2.73.0-alpha.17 ([3974b4f](https://github.com/roomle-dev/roomle-ui/commit/3974b4f)), closes [#2473](https://github.com/roomle-dev/roomle-ui/issues/2473)
|
|
16
|
+
* feat: core api - custom data json ([b1f90be](https://github.com/roomle-dev/roomle-ui/commit/b1f90be))
|
|
17
|
+
* feat(core): upgrade to version 2.73.0-alpha.16 ([06060d0](https://github.com/roomle-dev/roomle-ui/commit/06060d0))
|
|
18
|
+
* feat(core): upgrade to version 2.73.0-alpha.17 ([868f320](https://github.com/roomle-dev/roomle-ui/commit/868f320))
|
|
19
|
+
* fix: guard customDataJson write behind lights check; return empty string for clean payload ([19405e3](https://github.com/roomle-dev/roomle-ui/commit/19405e3))
|
|
20
|
+
* fix: iterate over all submodules ([1ba250a](https://github.com/roomle-dev/roomle-ui/commit/1ba250a))
|
|
21
|
+
* fix: iterate over all submodules - pass root module id ([e998f57](https://github.com/roomle-dev/roomle-ui/commit/e998f57))
|
|
22
|
+
* fix: persist lamp on/off state across plan saves and reloads ([4303e62](https://github.com/roomle-dev/roomle-ui/commit/4303e62))
|
|
23
|
+
* fix: preserve existing customLabel when toggling lamp state ([b8543ee](https://github.com/roomle-dev/roomle-ui/commit/b8543ee))
|
|
24
|
+
* fix: use exact token matching for lamp marker; strip marker from UI label ([8e18cc1](https://github.com/roomle-dev/roomle-ui/commit/8e18cc1))
|
|
25
|
+
* fix: use ToggleableLightSource type consistently; improve label fallback ([42205e3](https://github.com/roomle-dev/roomle-ui/commit/42205e3))
|
|
26
|
+
* refactor: remove dead addDemoLights function and unused PlanViewModel import ([5810ecc](https://github.com/roomle-dev/roomle-ui/commit/5810ecc))
|
|
27
|
+
* refactor: simplify lamp restore by reading customLabel directly from kernel DTO ([02dd40e](https://github.com/roomle-dev/roomle-ui/commit/02dd40e))
|
|
28
|
+
* refactor: use customDataJson API for lamp state persistence ([bcc6208](https://github.com/roomle-dev/roomle-ui/commit/bcc6208))
|
|
29
|
+
* test: increase timeout for component-dimensioning-helper test ([d3534fd](https://github.com/roomle-dev/roomle-ui/commit/d3534fd))
|
|
30
|
+
* chore: merge master into fix/lamp-state-persistence ([95125d2](https://github.com/roomle-dev/roomle-ui/commit/95125d2))
|
|
31
|
+
* chore: upgrade vite 7 to vite 8 (rolldown/oxc) ([f615fbd](https://github.com/roomle-dev/roomle-ui/commit/f615fbd))
|
|
32
|
+
* style: prettier brace formatting ([9db1f7f](https://github.com/roomle-dev/roomle-ui/commit/9db1f7f))
|
|
33
|
+
* style: prettier formatting ([d2124fa](https://github.com/roomle-dev/roomle-ui/commit/d2124fa))
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { a as e, c as t, i as n, m as r, o as i, s as a } from "./drag-in-BwqVwCBp.mjs";
|
|
2
|
+
import "./embedding-plugins.min.js";
|
|
3
|
+
var o = (e, t, n = 0, r = 0) => {
|
|
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;
|
|
5
|
+
return c >= a && c <= i && l >= s && l <= o;
|
|
6
|
+
}, s = (e, t, n, r = 0, i = 0) => {
|
|
7
|
+
if (n && (n.hiddenIn || n.visibleIn)) return n.visibleIn ? o({
|
|
8
|
+
x: e,
|
|
9
|
+
y: t
|
|
10
|
+
}, n.visibleIn, r, i) : !!n.hiddenIn && !o({
|
|
11
|
+
x: e,
|
|
12
|
+
y: t
|
|
13
|
+
}, n.hiddenIn, -r, -i);
|
|
14
|
+
}, c = class {
|
|
15
|
+
_dragGhostAnimationFrameId = null;
|
|
16
|
+
_dragGhostRemoveAnimationFrameId = null;
|
|
17
|
+
_dragGhostElement = null;
|
|
18
|
+
constructor(e = null) {
|
|
19
|
+
this._dragGhostElement = e;
|
|
20
|
+
}
|
|
21
|
+
updateDragGhost(o, c, l) {
|
|
22
|
+
this._dragGhostRemoveAnimationFrameId &&= (cancelAnimationFrame(this._dragGhostRemoveAnimationFrameId), null), l.ghost?.external || l.ghost && (this._dragGhostAnimationFrameId ||= requestAnimationFrame(() => {
|
|
23
|
+
(() => {
|
|
24
|
+
if (!document.getElementById("rml-drag-in-styles")) {
|
|
25
|
+
let t = document.createElement("style");
|
|
26
|
+
t.type = "text/css", t.id = r, t.innerHTML = `\n ${e}\n ${a}\n `, document.head.appendChild(t);
|
|
27
|
+
}
|
|
28
|
+
})();
|
|
29
|
+
let u = {
|
|
30
|
+
x: o,
|
|
31
|
+
y: c
|
|
32
|
+
};
|
|
33
|
+
!l.ghost && this._dragGhostElement && (l.ghost = {}), l.ghost && !l.ghost.element && this._dragGhostElement && (l.ghost.element = this._dragGhostElement), (({ x: e, y: n }, r) => {
|
|
34
|
+
let i = document.getElementById(t);
|
|
35
|
+
if (!i) {
|
|
36
|
+
if (i = document.createElement("div"), r.ghost?.element) i.appendChild(r.ghost.element);
|
|
37
|
+
else {
|
|
38
|
+
let e = document.createElement("img");
|
|
39
|
+
e.src = r.ghost?.url || "https://res.cloudinary.com/roomle/image/upload/v1729679975/fallback_afpyqr.jpg", e.width = r.ghost?.width || 112, e.height = r.ghost?.height || 112, i.appendChild(e);
|
|
40
|
+
}
|
|
41
|
+
i.id = t, i.style.position = "fixed", i.style.top = "0", i.style.left = "0", i.style.willChange = "transform", i.style.transform = "translate3d(0, 0, 0)", i.style.zIndex = "9999", i.style.opacity = "0.5", s(e, n, r.ghost || {}, r.settings?.dragInOverlapX, r.settings?.dragInOverlapY) || (i.style.display = "none"), i.style.pointerEvents = "none", document.body.appendChild(i);
|
|
42
|
+
}
|
|
43
|
+
})(u, l), (({ x: e, y: r }, a) => {
|
|
44
|
+
let o = document.getElementById(t);
|
|
45
|
+
if (!o) return;
|
|
46
|
+
let c = a.ghost?.width, l = a.ghost?.height;
|
|
47
|
+
c === void 0 && (c = o.getBoundingClientRect().width || 112), l === void 0 && (l = o.getBoundingClientRect().height || 112);
|
|
48
|
+
let u = e - c / 2, d = r - l / 2;
|
|
49
|
+
o.style.transform = `translate3d(${u}px, ${d}px, 0)`, a.ghost && (s(e, r, a.ghost, a.settings?.dragInOverlapX, a.settings?.dragInOverlapY) ? o.style.animation != n && (o.style.animation = n) : o.style.animation != i && (o.style.animation = i));
|
|
50
|
+
})(u, l), this._dragGhostAnimationFrameId = null;
|
|
51
|
+
}));
|
|
52
|
+
}
|
|
53
|
+
removeDragGhost() {
|
|
54
|
+
this._dragGhostAnimationFrameId &&= (cancelAnimationFrame(this._dragGhostAnimationFrameId), null), this._dragGhostRemoveAnimationFrameId ||= requestAnimationFrame(() => {
|
|
55
|
+
let e = document.getElementById(t);
|
|
56
|
+
e && document.body.removeChild(e), this._dragGhostRemoveAnimationFrameId = null;
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
export { c as t };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { a as e, c as t, i as n, m as r, o as i, s as a } from "./drag-in-AFSAsnAN.mjs";
|
|
2
|
+
import "./embedding-plugins.js";
|
|
3
|
+
//#region packages/common/src/utils/drag.ts
|
|
4
|
+
var o = (e, t, n = 0, r = 0) => {
|
|
5
|
+
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;
|
|
6
|
+
return c >= a && c <= i && l >= s && l <= o;
|
|
7
|
+
}, s = (e, t, n, r = 0, i = 0) => {
|
|
8
|
+
if (!(!n || !n.hiddenIn && !n.visibleIn)) return n.visibleIn ? o({
|
|
9
|
+
x: e,
|
|
10
|
+
y: t
|
|
11
|
+
}, n.visibleIn, r, i) : n.hiddenIn ? !o({
|
|
12
|
+
x: e,
|
|
13
|
+
y: t
|
|
14
|
+
}, n.hiddenIn, -r, -i) : !1;
|
|
15
|
+
}, c = () => {
|
|
16
|
+
if (!document.getElementById("rml-drag-in-styles")) {
|
|
17
|
+
let t = document.createElement("style");
|
|
18
|
+
t.type = "text/css", t.id = r, t.innerHTML = `
|
|
19
|
+
${e}
|
|
20
|
+
${a}
|
|
21
|
+
`, document.head.appendChild(t);
|
|
22
|
+
}
|
|
23
|
+
}, l = ({ x: e, y: n }, r) => {
|
|
24
|
+
let i = document.getElementById(t);
|
|
25
|
+
if (!i) {
|
|
26
|
+
if (i = document.createElement("div"), r.ghost?.element) i.appendChild(r.ghost.element);
|
|
27
|
+
else {
|
|
28
|
+
let e = document.createElement("img");
|
|
29
|
+
e.src = r.ghost?.url || "https://res.cloudinary.com/roomle/image/upload/v1729679975/fallback_afpyqr.jpg", e.width = r.ghost?.width || 112, e.height = r.ghost?.height || 112, i.appendChild(e);
|
|
30
|
+
}
|
|
31
|
+
i.id = t, i.style.position = "fixed", i.style.top = "0", i.style.left = "0", i.style.willChange = "transform", i.style.transform = "translate3d(0, 0, 0)", i.style.zIndex = "9999", i.style.opacity = "0.5", s(e, n, r.ghost || {}, r.settings?.dragInOverlapX, r.settings?.dragInOverlapY) || (i.style.display = "none"), i.style.pointerEvents = "none", document.body.appendChild(i);
|
|
32
|
+
}
|
|
33
|
+
}, u = ({ x: e, y: r }, a) => {
|
|
34
|
+
let o = document.getElementById(t);
|
|
35
|
+
if (!o) return;
|
|
36
|
+
let c = a.ghost?.width, l = a.ghost?.height;
|
|
37
|
+
c === void 0 && (c = o.getBoundingClientRect().width || 112), l === void 0 && (l = o.getBoundingClientRect().height || 112);
|
|
38
|
+
let u = e - c / 2, d = r - l / 2;
|
|
39
|
+
o.style.transform = `translate3d(${u}px, ${d}px, 0)`, a.ghost && (s(e, r, a.ghost, a.settings?.dragInOverlapX, a.settings?.dragInOverlapY) ? o.style.animation != n && (o.style.animation = n) : o.style.animation != i && (o.style.animation = i));
|
|
40
|
+
}, d = class {
|
|
41
|
+
_dragGhostAnimationFrameId = null;
|
|
42
|
+
_dragGhostRemoveAnimationFrameId = null;
|
|
43
|
+
_dragGhostElement = null;
|
|
44
|
+
constructor(e = null) {
|
|
45
|
+
this._dragGhostElement = e;
|
|
46
|
+
}
|
|
47
|
+
updateDragGhost(e, t, n) {
|
|
48
|
+
this._dragGhostRemoveAnimationFrameId &&= (cancelAnimationFrame(this._dragGhostRemoveAnimationFrameId), null), !n.ghost?.external && n.ghost && (this._dragGhostAnimationFrameId ||= requestAnimationFrame(() => {
|
|
49
|
+
c();
|
|
50
|
+
let r = {
|
|
51
|
+
x: e,
|
|
52
|
+
y: t
|
|
53
|
+
};
|
|
54
|
+
!n.ghost && this._dragGhostElement && (n.ghost = {}), n.ghost && !n.ghost.element && this._dragGhostElement && (n.ghost.element = this._dragGhostElement), l(r, n), u(r, n), this._dragGhostAnimationFrameId = null;
|
|
55
|
+
}));
|
|
56
|
+
}
|
|
57
|
+
removeDragGhost() {
|
|
58
|
+
this._dragGhostAnimationFrameId &&= (cancelAnimationFrame(this._dragGhostAnimationFrameId), null), this._dragGhostRemoveAnimationFrameId ||= requestAnimationFrame(() => {
|
|
59
|
+
let e = document.getElementById(t);
|
|
60
|
+
e && document.body.removeChild(e), this._dragGhostRemoveAnimationFrameId = null;
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
//#endregion
|
|
65
|
+
export { d as t };
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-C-QNzSnW.mjs";
|
|
2
|
+
//#region packages/embedding-lib/src/plugins/constants.ts
|
|
3
|
+
var t = "rml-drag-in-styles", n = "rml-drag-in-drag-element", r = "rml-drag-in-overlay", i = "rml-drag-in-drag-ghost", a = "rml-drag-in-fade-in", o = "rml-drag-in-fade-out", s = { DISPLAY_NONE: "rml-display-none" }, c = .5, l = "250ms", u = "forwards", d = `@keyframes ${a} {from{opacity: 0;}to {opacity: ${c};}}`, f = `@keyframes ${o} {from{opacity: ${c};}to {opacity: 0;}}`, p = `${a} ${l} ${u}`, m = `${o} ${l} ${u}`, h = "https://res.cloudinary.com/roomle/image/upload/v1729679975/fallback_afpyqr.jpg", g = 112, _ = 112, v = class {
|
|
4
|
+
_mainDomElement;
|
|
5
|
+
_instance;
|
|
6
|
+
_mode = "website";
|
|
7
|
+
_viewName = "main";
|
|
8
|
+
constructor(e, t, n, r) {
|
|
9
|
+
this._instance = e, this._mainDomElement = t, this._mode = n, this._viewName = r;
|
|
10
|
+
}
|
|
11
|
+
async init() {
|
|
12
|
+
return Promise.resolve();
|
|
13
|
+
}
|
|
14
|
+
}, y = /* @__PURE__ */ e({ DragIn: () => b }), b = class extends v {
|
|
15
|
+
options = {};
|
|
16
|
+
_customDragSignal = new AbortController();
|
|
17
|
+
_injectStyles() {
|
|
18
|
+
if (!document.getElementById("rml-drag-in-styles")) {
|
|
19
|
+
let e = document.createElement("style");
|
|
20
|
+
e.type = "text/css", e.id = t, e.innerHTML = `
|
|
21
|
+
.${s.DISPLAY_NONE}{display:none}
|
|
22
|
+
.${r}{position:absolute;top:0;left:0;width:100%;height:100%;z-index:999;}
|
|
23
|
+
.${i}{position:absolute;top:0;left:0;width:1px;height:1px;z-index:999;pointer-events:none;background-color:transparent;}
|
|
24
|
+
${d}
|
|
25
|
+
${f}
|
|
26
|
+
`, document.head.appendChild(e);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
_initializeDragGhost() {
|
|
30
|
+
let e = this._mainDomElement.parentNode, t = e.querySelector("." + i);
|
|
31
|
+
t || (t = document.createElement("div"), t.classList.add(i), t.innerText = " ", e.appendChild(t));
|
|
32
|
+
}
|
|
33
|
+
constructor(e, t, n, r) {
|
|
34
|
+
super(e, t, n, r), this._mainDomElement = t, this._injectStyles(), this._initializeDragGhost();
|
|
35
|
+
}
|
|
36
|
+
async init() {
|
|
37
|
+
if (await super.init(), this._mode === "website") try {
|
|
38
|
+
let { DragInFromWebsiteStrategy: e } = await import("./from-website-BesXdvcV.mjs");
|
|
39
|
+
this._strategy = new e(this._instance, this._mainDomElement, {
|
|
40
|
+
settings: this.options,
|
|
41
|
+
mode: "website"
|
|
42
|
+
});
|
|
43
|
+
} catch (e) {
|
|
44
|
+
throw console.error("Could not load Dragin strategy \"FromWebsite\""), e;
|
|
45
|
+
}
|
|
46
|
+
else if (this._mode === "custom-view") try {
|
|
47
|
+
let { DragInFromCustomViewStrategy: e } = await import("./from-custom-view-B-eXMXF1.mjs");
|
|
48
|
+
this._strategy = new e(this._instance, this._mainDomElement, this.options, this._viewName);
|
|
49
|
+
} catch (e) {
|
|
50
|
+
throw console.error("Could not load Dragin strategy \"FromCustomView\""), e;
|
|
51
|
+
}
|
|
52
|
+
else throw Error("Unsupported mode");
|
|
53
|
+
}
|
|
54
|
+
get isDragging() {
|
|
55
|
+
return this._strategy.isDragging;
|
|
56
|
+
}
|
|
57
|
+
dragStart(e, t, n = "rml_id") {
|
|
58
|
+
this._strategy.dragStart(e, t, n);
|
|
59
|
+
}
|
|
60
|
+
dragUpdate(e) {
|
|
61
|
+
this._strategy.dragUpdate(e);
|
|
62
|
+
}
|
|
63
|
+
dragEnd() {
|
|
64
|
+
this._strategy.dragEnd();
|
|
65
|
+
}
|
|
66
|
+
touchStart(e, t, n = "rml_id") {
|
|
67
|
+
this._strategy.touchStart(e, t, n);
|
|
68
|
+
}
|
|
69
|
+
touchMove(e) {
|
|
70
|
+
this._strategy.touchMove(e);
|
|
71
|
+
}
|
|
72
|
+
touchEnd() {
|
|
73
|
+
this._strategy.touchEnd();
|
|
74
|
+
}
|
|
75
|
+
dispose() {
|
|
76
|
+
this._strategy.dispose();
|
|
77
|
+
}
|
|
78
|
+
beforeUpdateGhost(e) {
|
|
79
|
+
this._strategy.beforeUpdateGhost(e);
|
|
80
|
+
}
|
|
81
|
+
registerCustomDrag({ customDragStart: e, customDragEnd: t, customDragUpdate: n, beforeUpdateGhost: r }) {
|
|
82
|
+
r && this._strategy.beforeUpdateGhost(r);
|
|
83
|
+
let i = this._customDragSignal.signal, a = (t) => {
|
|
84
|
+
t.target.getAttribute("data-rml-draggable") === "true" && (t.target.setPointerCapture && t.target.setPointerCapture(t.pointerId), e(t));
|
|
85
|
+
}, o = (e) => {
|
|
86
|
+
this._strategy.releaseInput(e), this._strategy.isDragging && t(e);
|
|
87
|
+
};
|
|
88
|
+
document.querySelectorAll("[data-rml-draggable=\"true\"]").forEach((e) => {
|
|
89
|
+
e.draggable = !1, e.style.touchAction = "none";
|
|
90
|
+
}), document.addEventListener("pointerdown", a, { signal: i }), document.addEventListener("pointermove", (e) => {
|
|
91
|
+
n(e);
|
|
92
|
+
}, { signal: i }), document.addEventListener("pointerup", o, { signal: i }), document.addEventListener("pointercancel", o, { signal: i });
|
|
93
|
+
}
|
|
94
|
+
unregisterCustomDrag() {
|
|
95
|
+
this._customDragSignal.abort(), this._customDragSignal = new AbortController();
|
|
96
|
+
}
|
|
97
|
+
releaseInput(e) {
|
|
98
|
+
this._strategy.releaseInput(e);
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
//#endregion
|
|
102
|
+
export { d as a, n as c, h as d, g as f, c as h, p as i, i as l, t as m, y as n, m as o, r as p, s as r, f as s, b as t, _ as u };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-C017PlDO.mjs";
|
|
2
|
+
var t = "rml-drag-in-styles", n = "rml-drag-in-drag-element", r = "rml-drag-in-overlay", i = "rml-drag-in-drag-ghost", a = "rml-drag-in-fade-in", o = "rml-drag-in-fade-out", s = { DISPLAY_NONE: "rml-display-none" }, c = .5, l = "250ms", u = "forwards", d = `@keyframes ${a} {from{opacity: 0;}to {opacity: 0.5;}}`, f = `@keyframes ${o} {from{opacity: 0.5;}to {opacity: 0;}}`, p = `${a} ${l} ${u}`, m = `${o} ${l} ${u}`, h = "https://res.cloudinary.com/roomle/image/upload/v1729679975/fallback_afpyqr.jpg", g = 112, _ = 112, v = class {
|
|
3
|
+
_mainDomElement;
|
|
4
|
+
_instance;
|
|
5
|
+
_mode = "website";
|
|
6
|
+
_viewName = "main";
|
|
7
|
+
constructor(e, t, n, r) {
|
|
8
|
+
this._instance = e, this._mainDomElement = t, this._mode = n, this._viewName = r;
|
|
9
|
+
}
|
|
10
|
+
async init() {
|
|
11
|
+
return Promise.resolve();
|
|
12
|
+
}
|
|
13
|
+
}, y = e({ DragIn: () => b }), b = class extends v {
|
|
14
|
+
options = {};
|
|
15
|
+
_customDragSignal = new AbortController();
|
|
16
|
+
_injectStyles() {
|
|
17
|
+
if (!document.getElementById("rml-drag-in-styles")) {
|
|
18
|
+
let e = document.createElement("style");
|
|
19
|
+
e.type = "text/css", e.id = t, e.innerHTML = `\n .${s.DISPLAY_NONE}{display:none}\n .${r}{position:absolute;top:0;left:0;width:100%;height:100%;z-index:999;}\n .${i}{position:absolute;top:0;left:0;width:1px;height:1px;z-index:999;pointer-events:none;background-color:transparent;}\n ${d}\n ${f}\n `, document.head.appendChild(e);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
_initializeDragGhost() {
|
|
23
|
+
let e = this._mainDomElement.parentNode, t = e.querySelector("." + i);
|
|
24
|
+
t || (t = document.createElement("div"), t.classList.add(i), t.innerText = " ", e.appendChild(t));
|
|
25
|
+
}
|
|
26
|
+
constructor(e, t, n, r) {
|
|
27
|
+
super(e, t, n, r), this._mainDomElement = t, this._injectStyles(), this._initializeDragGhost();
|
|
28
|
+
}
|
|
29
|
+
async init() {
|
|
30
|
+
if (await super.init(), this._mode === "website") try {
|
|
31
|
+
let { DragInFromWebsiteStrategy: e } = await import("./from-website--UCl1aQs.mjs");
|
|
32
|
+
this._strategy = new e(this._instance, this._mainDomElement, {
|
|
33
|
+
settings: this.options,
|
|
34
|
+
mode: "website"
|
|
35
|
+
});
|
|
36
|
+
} catch (e) {
|
|
37
|
+
throw e;
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
if (this._mode !== "custom-view") throw Error("Unsupported mode");
|
|
41
|
+
try {
|
|
42
|
+
let { DragInFromCustomViewStrategy: e } = await import("./from-custom-view-tZcYF-zX.mjs");
|
|
43
|
+
this._strategy = new e(this._instance, this._mainDomElement, this.options, this._viewName);
|
|
44
|
+
} catch (e) {
|
|
45
|
+
throw e;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
get isDragging() {
|
|
50
|
+
return this._strategy.isDragging;
|
|
51
|
+
}
|
|
52
|
+
dragStart(e, t, n = "rml_id") {
|
|
53
|
+
this._strategy.dragStart(e, t, n);
|
|
54
|
+
}
|
|
55
|
+
dragUpdate(e) {
|
|
56
|
+
this._strategy.dragUpdate(e);
|
|
57
|
+
}
|
|
58
|
+
dragEnd() {
|
|
59
|
+
this._strategy.dragEnd();
|
|
60
|
+
}
|
|
61
|
+
touchStart(e, t, n = "rml_id") {
|
|
62
|
+
this._strategy.touchStart(e, t, n);
|
|
63
|
+
}
|
|
64
|
+
touchMove(e) {
|
|
65
|
+
this._strategy.touchMove(e);
|
|
66
|
+
}
|
|
67
|
+
touchEnd() {
|
|
68
|
+
this._strategy.touchEnd();
|
|
69
|
+
}
|
|
70
|
+
dispose() {
|
|
71
|
+
this._strategy.dispose();
|
|
72
|
+
}
|
|
73
|
+
beforeUpdateGhost(e) {
|
|
74
|
+
this._strategy.beforeUpdateGhost(e);
|
|
75
|
+
}
|
|
76
|
+
registerCustomDrag({ customDragStart: e, customDragEnd: t, customDragUpdate: n, beforeUpdateGhost: r }) {
|
|
77
|
+
r && this._strategy.beforeUpdateGhost(r);
|
|
78
|
+
let i = this._customDragSignal.signal, a = (e) => {
|
|
79
|
+
this._strategy.releaseInput(e), this._strategy.isDragging && t(e);
|
|
80
|
+
};
|
|
81
|
+
document.querySelectorAll("[data-rml-draggable=\"true\"]").forEach((e) => {
|
|
82
|
+
e.draggable = !1, e.style.touchAction = "none";
|
|
83
|
+
}), document.addEventListener("pointerdown", (t) => {
|
|
84
|
+
t.target.getAttribute("data-rml-draggable") === "true" && (t.target.setPointerCapture && t.target.setPointerCapture(t.pointerId), e(t));
|
|
85
|
+
}, { signal: i }), document.addEventListener("pointermove", (e) => {
|
|
86
|
+
n(e);
|
|
87
|
+
}, { signal: i }), document.addEventListener("pointerup", a, { signal: i }), document.addEventListener("pointercancel", a, { signal: i });
|
|
88
|
+
}
|
|
89
|
+
unregisterCustomDrag() {
|
|
90
|
+
this._customDragSignal.abort(), this._customDragSignal = new AbortController();
|
|
91
|
+
}
|
|
92
|
+
releaseInput(e) {
|
|
93
|
+
this._strategy.releaseInput(e);
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
export { d as a, n as c, h as d, g as f, c as h, p as i, i as l, t as m, y as n, m as o, r as p, s as r, f as s, b as t, _ as u };
|
package/embedding-plugins.js
CHANGED
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
R as DragIn,
|
|
4
|
-
D as RML_DRAG_GHOST_FADE_IN,
|
|
5
|
-
G as RML_DRAG_GHOST_FADE_IN_ANIMATION_CSS,
|
|
6
|
-
T as RML_DRAG_GHOST_FADE_OUT,
|
|
7
|
-
L as RML_DRAG_GHOST_FADE_OUT_ANIMATION_CSS,
|
|
8
|
-
I as RML_DRAG_IN_DRAG_ELEMENT_ID,
|
|
9
|
-
S as RML_DRAG_IN_FALLBACK_GHOST_HEIGHT,
|
|
10
|
-
a as RML_DRAG_IN_FALLBACK_GHOST_URL,
|
|
11
|
-
M as RML_DRAG_IN_FALLBACK_GHOST_WIDTH,
|
|
12
|
-
N as RML_DRAG_IN_STYLES_ID,
|
|
13
|
-
O as TARGET_OPACITY
|
|
14
|
-
};
|
|
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-AFSAsnAN.mjs";
|
|
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 +1,2 @@
|
|
|
1
|
-
import{
|
|
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-BwqVwCBp.mjs";
|
|
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 };
|