@roomle/embedding-lib 11.0.0-alpha.6 → 11.0.0-alpha.8

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.
Files changed (69) hide show
  1. package/THIRD-PARTY-NOTICES.txt +1 -1
  2. package/ai.js +6 -6
  3. package/ai.min.js +5 -4
  4. package/{browser-D6M-d6y5.mjs → browser-Cys-y5Hy.mjs} +1 -2
  5. package/chat-model-B7BO8IhK.mjs +212 -0
  6. package/chat-model-XYf503pT.mjs +213 -0
  7. package/coerce-CuLRCRlo.mjs +6 -0
  8. package/coerce-Dup0o-HR.mjs +7 -0
  9. package/{comlink-CG3f9q6z.mjs → comlink-7u13Z2ZH.mjs} +2 -3
  10. package/{comlink-hSUzCx9j.mjs → comlink-DKhvPU0o.mjs} +1 -1
  11. package/configurator.js +3 -4
  12. package/configurator.min.js +2 -2
  13. package/construction.js +278 -24
  14. package/construction.min.js +284 -27
  15. package/continuation-CswXtOus.mjs +10 -0
  16. package/continuation-NclHDSgS.mjs +9 -0
  17. package/{dist-Cm3aF4sf.mjs → dist-7-X7Xqsl.mjs} +851 -919
  18. package/{dist-BQaw78-_.mjs → dist-BMxyw-Zs.mjs} +411 -405
  19. package/{dist-0WZWTj8T.mjs → dist-BU022PnG.mjs} +4 -9
  20. package/{dist-DkR6G9Kj.mjs → dist-BY8OLJ2p.mjs} +1 -1
  21. package/{dist-6TznX-Ae.mjs → dist-BZSd56sr.mjs} +3850 -3942
  22. package/{dist-70R0b5Mq.mjs → dist-Ba3J8AjB.mjs} +400 -390
  23. package/{dist-CTS0DDwt.mjs → dist-CbQKC1xX.mjs} +1590 -1616
  24. package/{dist-BmOBP9h9.mjs → dist-CiybWJvs.mjs} +44 -41
  25. package/{dist-CPG4atmb.mjs → dist-CkZuNdCU.mjs} +6 -4
  26. package/{dist-Bt1FopV4.mjs → dist-D2ZAAHGn.mjs} +1058 -1042
  27. package/{dist-BWNv7qW9.mjs → dist-DjsS42rR.mjs} +916 -962
  28. package/{dist-9UI7dzwc.mjs → dist-Jcq_kKKT.mjs} +403 -393
  29. package/{dist-D0XFfKEL.mjs → dist-S9sLSjZ4.mjs} +3112 -3104
  30. package/{dist-BV-32IEX.mjs → dist-XECXrV5Q.mjs} +1497 -1558
  31. package/{dist-Bc2s-kJZ.mjs → dist-a5_BIeaS.mjs} +45 -51
  32. package/{dist-Crrp-Bno.mjs → dist-bQAJDeYc.mjs} +698 -748
  33. package/docs/md/web/embedding/CHANGELOG.md +19 -64
  34. package/{drag-ghost-BpIDzSdK.mjs → drag-ghost-QZelgA-_.mjs} +2 -3
  35. package/{drag-ghost-Bhb0_67G.mjs → drag-ghost-VmgSWLva.mjs} +5 -7
  36. package/{drag-in-mE_ozj_Q.mjs → drag-in-Cd_67tzS.mjs} +4 -5
  37. package/{drag-in-CGBG4wEk.mjs → drag-in-DlDsgY4T.mjs} +3 -3
  38. package/embedding-plugins.js +1 -2
  39. package/embedding-plugins.min.js +1 -2
  40. package/{experimental-evaluation-FzKFGoye.mjs → experimental-evaluation-B4hKMgFH.mjs} +19 -38
  41. package/{experimental-evaluation-DczxmJme.mjs → experimental-evaluation-DmqghFSx.mjs} +1 -1
  42. package/{from-custom-view-B3fIWMox.mjs → from-custom-view-6HMD_sPe.mjs} +5 -4
  43. package/{from-custom-view-B3HCOhdT.mjs → from-custom-view-BRFynafo.mjs} +16 -16
  44. package/{from-website-DaTahmvJ.mjs → from-website-Dl1VN4h7.mjs} +5 -6
  45. package/{from-website-DUQ9USj1.mjs → from-website-iZzauH4C.mjs} +3 -3
  46. package/hi.js +188 -197
  47. package/hi.min.js +193 -194
  48. package/mcp-tools-BLB7pCga.mjs +42 -0
  49. package/mcp-tools-BirFT2R0.mjs +41 -0
  50. package/package.json +1 -1
  51. package/packages/web-sdk/packages/assistant.d.ts +1 -0
  52. package/packages/web-sdk/packages/common-core/src/planning-assistant/runtime.d.ts +4 -1
  53. package/packages/web-sdk/packages/common-core/src/planning-assistant.d.ts +3 -0
  54. package/rolldown-runtime--db92txo.mjs +10 -0
  55. package/rolldown-runtime-CyjYJMBa.mjs +11 -0
  56. package/roomle-embedding-lib.js +25 -34
  57. package/roomle-embedding-lib.min.js +3 -3
  58. package/sbom.cdx.json +5 -5
  59. package/turn-limits-9LbUeSG2.mjs +9 -0
  60. package/turn-limits-Ciq383Bd.mjs +10 -0
  61. package/{utils-BwWn6Fw4.mjs → utils-CJnKZceY.mjs} +3 -4
  62. package/{utils-BoELtcEK.mjs → utils-DdNhTbJr.mjs} +6 -6
  63. package/chat-model-CZfZsgX9.mjs +0 -377
  64. package/chat-model-vgLJamoj.mjs +0 -373
  65. package/coerce-CqJod_GZ.mjs +0 -8
  66. package/coerce-CsI42_k0.mjs +0 -6
  67. package/mcp-tools-8qPMNqTK.mjs +0 -2
  68. package/mcp-tools-D_GxXscW.mjs +0 -2
  69. /package/{browser-BjtSrqbu.mjs → browser-CzLpXYFF.mjs} +0 -0
@@ -1,65 +1,20 @@
1
- ## 11.0.0-alpha.6 (2026-11-19)
1
+ ## 11.0.0-alpha.8 (2026-11-19)
2
2
 
3
- * Merge branch 'master' into chore/RML-18690-playwright-pr-matrix ([1ef589e](https://github.com/roomle-dev/roomle-ui/commit/1ef589e))
4
- * Merge branch 'master' into chore/RML-18691-docs-only-skip ([e00854f](https://github.com/roomle-dev/roomle-ui/commit/e00854f))
5
- * Merge branch 'master' into chore/RML-18691-docs-only-skip ([ff9c6be](https://github.com/roomle-dev/roomle-ui/commit/ff9c6be))
6
- * Merge branch 'master' into chore/RML-18705-local-test-speed ([84fbc0e](https://github.com/roomle-dev/roomle-ui/commit/84fbc0e))
7
- * Merge branch 'master' into chore/RML-18760-gate-sdk-checks ([a69f5ff](https://github.com/roomle-dev/roomle-ui/commit/a69f5ff))
8
- * Merge branch 'master' into claude/rml-18732-npm-cache-c13994 ([5bb1481](https://github.com/roomle-dev/roomle-ui/commit/5bb1481))
9
- * Merge branch 'master' into claude/type-check-ci-failure-b828cd ([4dec144](https://github.com/roomle-dev/roomle-ui/commit/4dec144))
10
- * Merge branch 'master' into claude/type-check-ci-failure-b828cd ([e3e0654](https://github.com/roomle-dev/roomle-ui/commit/e3e0654))
11
- * Merge branch 'master' into release/test ([155f879](https://github.com/roomle-dev/roomle-ui/commit/155f879))
12
- * Merge pull request #3411 from roomle-dev/chore/RML-18690-playwright-pr-matrix ([b8027ae](https://github.com/roomle-dev/roomle-ui/commit/b8027ae)), closes [#3411](https://github.com/roomle-dev/roomle-ui/issues/3411)
13
- * Merge pull request #3416 from roomle-dev/chore/RML-18705-local-test-speed ([07f5d77](https://github.com/roomle-dev/roomle-ui/commit/07f5d77)), closes [#3416](https://github.com/roomle-dev/roomle-ui/issues/3416)
14
- * Merge pull request #3417 from roomle-dev/claude/type-check-ci-failure-b828cd ([2199eb6](https://github.com/roomle-dev/roomle-ui/commit/2199eb6)), closes [#3417](https://github.com/roomle-dev/roomle-ui/issues/3417)
15
- * Merge pull request #3418 from roomle-dev/chore/RML-18691-docs-only-skip ([2fa9fab](https://github.com/roomle-dev/roomle-ui/commit/2fa9fab)), closes [#3418](https://github.com/roomle-dev/roomle-ui/issues/3418)
16
- * Merge pull request #3422 from roomle-dev/claude/rml-18732-npm-cache-c13994 ([09378b6](https://github.com/roomle-dev/roomle-ui/commit/09378b6)), closes [#3422](https://github.com/roomle-dev/roomle-ui/issues/3422)
17
- * Merge pull request #3424 from roomle-dev/chore/RML-18760-gate-sdk-checks ([44fa6c6](https://github.com/roomle-dev/roomle-ui/commit/44fa6c6)), closes [#3424](https://github.com/roomle-dev/roomle-ui/issues/3424)
18
- * Merge pull request #3427 from roomle-dev/upgraded-by-ci/core-3.4.0-alpha.4 ([cb9d8dc](https://github.com/roomle-dev/roomle-ui/commit/cb9d8dc)), closes [#3427](https://github.com/roomle-dev/roomle-ui/issues/3427)
19
- * Merge pull request #3429 from roomle-dev/upgraded-by-ci/core-3.4.0-alpha.5 ([fdd07c7](https://github.com/roomle-dev/roomle-ui/commit/fdd07c7)), closes [#3429](https://github.com/roomle-dev/roomle-ui/issues/3429)
20
- * feat(core): upgrade to version 3.4.0-alpha.4 ([abfb029](https://github.com/roomle-dev/roomle-ui/commit/abfb029))
21
- * feat(core): upgrade to version 3.4.0-alpha.5 ([cc00187](https://github.com/roomle-dev/roomle-ui/commit/cc00187))
22
- * ci: a newer release push cancels the older deploy gate (RML-18690) ([fd8a78b](https://github.com/roomle-dev/roomle-ui/commit/fd8a78b))
23
- * ci: add the image's libc fingerprint to the cache key (RML-18732) ([ab7fc8b](https://github.com/roomle-dev/roomle-ui/commit/ab7fc8b))
24
- * ci: alpha and live deploy only after the full embedding matrix passed (RML-18690) ([d8225c9](https://github.com/roomle-dev/roomle-ui/commit/d8225c9))
25
- * ci: cover third-party and bun.lock in the SDK filter, document the SDK gate (RML-18760) ([cd9d051](https://github.com/roomle-dev/roomle-ui/commit/cd9d051))
26
- * ci: emergency dispatch deploys alpha or live without the Playwright gate (RML-18690) ([8a5ab7c](https://github.com/roomle-dev/roomle-ui/commit/8a5ab7c))
27
- * ci: include the npm-install action in the SDK filter (RML-18760) ([84d0796](https://github.com/roomle-dev/roomle-ui/commit/84d0796))
28
- * ci: keep container images apart in the cache key, drop unused output (RML-18732) ([c60197c](https://github.com/roomle-dev/roomle-ui/commit/c60197c))
29
- * ci: keep the preview deploy running when SDK unit test is skipped (RML-18760) ([2a1d612](https://github.com/roomle-dev/roomle-ui/commit/2a1d612))
30
- * ci: mention the npm-install action in the filter comment (RML-18760) ([7a38eed](https://github.com/roomle-dev/roomle-ui/commit/7a38eed))
31
- * ci: merge origin/master, nightly uses the node_modules cache, deploy gate installs fresh (RML-18732) ([e6a32a2](https://github.com/roomle-dev/roomle-ui/commit/e6a32a2))
32
- * ci: nightly gets its own check name and alerts Slack only for master runs (RML-18690) ([ea9ebe5](https://github.com/roomle-dev/roomle-ui/commit/ea9ebe5))
33
- * ci: note why the root tsconfig.json is not in the SDK filter (RML-18760) ([cd87bbd](https://github.com/roomle-dev/roomle-ui/commit/cd87bbd))
34
- * ci: remove the TEMPORARY push trigger of the nightly (RML-18690) ([d84c969](https://github.com/roomle-dev/roomle-ui/commit/d84c969))
35
- * ci: run SDK unit test and SDK package types only for SDK changes (RML-18760) ([783df0b](https://github.com/roomle-dev/roomle-ui/commit/783df0b))
36
- * ci: run the full embedding matrix nightly through a reusable Playwright workflow (RML-18690) ([c0c0946](https://github.com/roomle-dev/roomle-ui/commit/c0c0946))
37
- * ci: run the PR workflow when a draft is marked ready (RML-18690) ([e80808c](https://github.com/roomle-dev/roomle-ui/commit/e80808c))
38
- * ci: say that HUSKY=0 skips all git hooks ([17cd4f2](https://github.com/roomle-dev/roomle-ui/commit/17cd4f2))
39
- * ci: skip husky hooks in the core upgrade workflow ([a326d04](https://github.com/roomle-dev/roomle-ui/commit/a326d04))
40
- * ci: TEMPORARY push trigger for the nightly on this branch, to be removed (RML-18690) ([11585fe](https://github.com/roomle-dev/roomle-ui/commit/11585fe))
41
- * ci: trustworthy node_modules cache for PR jobs (RML-18732) ([4b58a52](https://github.com/roomle-dev/roomle-ui/commit/4b58a52))
42
- * ci: try the npm-install action on the Playwright GPU runner (RML-18732) ([2556f44](https://github.com/roomle-dev/roomle-ui/commit/2556f44))
43
- * ci: warm the cache for the Playwright GPU image too (RML-18732) ([a72f8d3](https://github.com/roomle-dev/roomle-ui/commit/a72f8d3))
44
- * docs(e2e): name every full-matrix caller and fix a stale skip reason (RML-18690) ([699eb09](https://github.com/roomle-dev/roomle-ui/commit/699eb09))
45
- * docs: record that skipped review-run checks do not hide failures (RML-18760) ([3eb0c7a](https://github.com/roomle-dev/roomle-ui/commit/3eb0c7a))
46
- * docs(e2e): snapshot updates need the full matrix; clarify the gate bypass input (RML-18690) ([05097ff](https://github.com/roomle-dev/roomle-ui/commit/05097ff))
47
- * fix: harden the changed-files Prettier check (RML-18705) ([94669d1](https://github.com/roomle-dev/roomle-ui/commit/94669d1))
48
- * fix: read changed filenames NUL-delimited in the Prettier check (RML-18705) ([bcd6f1f](https://github.com/roomle-dev/roomle-ui/commit/bcd6f1f))
49
- * fix: skip symlinks and catch config deletions in the Prettier check (RML-18705) ([fd19118](https://github.com/roomle-dev/roomle-ui/commit/fd19118))
50
- * chore: check formatting of changed files only before pushing (RML-18705) ([ff11d74](https://github.com/roomle-dev/roomle-ui/commit/ff11d74))
51
- * chore(ci): count test-fixture and build-consumed Markdown as code (RML-18691) ([06b7ce5](https://github.com/roomle-dev/roomle-ui/commit/06b7ce5))
52
- * chore: drop lint:code from the pre-push hook (RML-18705) ([1bac479](https://github.com/roomle-dev/roomle-ui/commit/1bac479))
53
- * chore: drop test:unit:debugCI, now identical to test:unit (RML-18705) ([37b937a](https://github.com/roomle-dev/roomle-ui/commit/37b937a))
54
- * chore(ci): let preview removal tolerate PRs without a preview (RML-18691) ([8875e32](https://github.com/roomle-dev/roomle-ui/commit/8875e32))
55
- * chore: merge master into chore/RML-18690-playwright-pr-matrix ([cdc7bf9](https://github.com/roomle-dev/roomle-ui/commit/cdc7bf9))
56
- * chore(e2e): run only embedding master on PRs, full matrix behind a flag (RML-18690) ([0edddc1](https://github.com/roomle-dev/roomle-ui/commit/0edddc1))
57
- * chore: run unit tests without lint and coverage locally (RML-18705) ([4b78a55](https://github.com/roomle-dev/roomle-ui/commit/4b78a55))
58
- * chore(ci): skip headless export tests on docs-only PRs (RML-18691) ([2f185ed](https://github.com/roomle-dev/roomle-ui/commit/2f185ed))
59
- * chore(ci): skip heavy checks on docs-only PRs (RML-18691) ([505bfce](https://github.com/roomle-dev/roomle-ui/commit/505bfce))
60
- * chore(ci): treat Markdown below src/ as code and fail docs-only closed (RML-18691) ([0a569c8](https://github.com/roomle-dev/roomle-ui/commit/0a569c8))
61
- * chore: type-check SDK and embedding incrementally (RML-18705) ([e3e9819](https://github.com/roomle-dev/roomle-ui/commit/e3e9819))
62
- * chore: type-check the UI incrementally (RML-18705) ([53a2f11](https://github.com/roomle-dev/roomle-ui/commit/53a2f11))
63
- * test(e2e): darwin baselines of 5.33.0/6.12.0 match master's; drop two unused HARs (RML-18690) ([d762fd1](https://github.com/roomle-dev/roomle-ui/commit/d762fd1))
64
- * test(e2e): keep MobileChrome-embedding-master for the touch paths (RML-18690) ([de7fac0](https://github.com/roomle-dev/roomle-ui/commit/de7fac0))
65
- * test(e2e): Linux baselines for embedding 5.33.0 and 6.12.0 from the GPU runner (RML-18690) ([8b57ffd](https://github.com/roomle-dev/roomle-ui/commit/8b57ffd))
3
+ * Merge branch 'master' into release/test ([7dee1bb](https://github.com/roomle-dev/roomle-ui/commit/7dee1bb))
4
+ * Merge branch 'release/test' of github.com:roomle-dev/roomle-ui into release/test ([6c976ce](https://github.com/roomle-dev/roomle-ui/commit/6c976ce))
5
+ * Merge pull request #3433 from roomle-dev/feat/isolation-bug-report-RML-18787 ([5b40a1f](https://github.com/roomle-dev/roomle-ui/commit/5b40a1f)), closes [#3433](https://github.com/roomle-dev/roomle-ui/issues/3433)
6
+ * Merge pull request #3434 from roomle-dev/feat/planner-assistant-session-log-RML-18785 ([2cbe7a2](https://github.com/roomle-dev/roomle-ui/commit/2cbe7a2)), closes [#3434](https://github.com/roomle-dev/roomle-ui/issues/3434)
7
+ * Merge pull request #3438 from roomle-dev/feat/planner-bug-report-RML-18786 ([0b0876e](https://github.com/roomle-dev/roomle-ui/commit/0b0876e)), closes [#3438](https://github.com/roomle-dev/roomle-ui/issues/3438)
8
+ * feat: download an assistant bug report from the planner (RML-18786) ([df07f06](https://github.com/roomle-dev/roomle-ui/commit/df07f06))
9
+ * feat: hide the plan snapshot's re-render behind the loading screen (RML-18787) ([84795ca](https://github.com/roomle-dev/roomle-ui/commit/84795ca))
10
+ * feat(sdk): record a session log for the planner assistants (RML-18785) ([27bb82a](https://github.com/roomle-dev/roomle-ui/commit/27bb82a))
11
+ * feat: report the context, its plan snapshot in isolation and the query parameters (RML-18787) ([bd6cf62](https://github.com/roomle-dev/roomle-ui/commit/bd6cf62))
12
+ * feat: save a plan snapshot in the assistant bug report of planner isolation (RML-18787) ([3c45fc4](https://github.com/roomle-dev/roomle-ui/commit/3c45fc4))
13
+ * chore: merge master into feat/isolation-bug-report-RML-18787 ([a48ff12](https://github.com/roomle-dev/roomle-ui/commit/a48ff12))
14
+ * chore: merge master into feat/planner-assistant-session-log-RML-18785 ([58d7d3d](https://github.com/roomle-dev/roomle-ui/commit/58d7d3d))
15
+ * docs: describe the generic assistant bug report and its plan snapshot (RML-18787) ([91ab485](https://github.com/roomle-dev/roomle-ui/commit/91ab485))
16
+ * docs: name the planner bug report in the embedding docs and cover more cases (RML-18786) ([6ec0349](https://github.com/roomle-dev/roomle-ui/commit/6ec0349))
17
+ * docs: note that the embedding fence adapter exposes no report yet (RML-18785) ([4453a5e](https://github.com/roomle-dev/roomle-ui/commit/4453a5e))
18
+ * fix(sdk): keep no report of a planner assistant whose startup was stopped (RML-18785) ([62b386f](https://github.com/roomle-dev/roomle-ui/commit/62b386f))
19
+ * fix: keep one assistant per bug report and test the plan save's loading screen (RML-18786) ([637b0da](https://github.com/roomle-dev/roomle-ui/commit/637b0da))
20
+ * fix(sdk): keep the planner's log out of the configuration assistant report (RML-18785) ([7557e1a](https://github.com/roomle-dev/roomle-ui/commit/7557e1a))
@@ -1,6 +1,5 @@
1
1
 
2
- import { a as e, c as t, i as n, m as r, o as i, s as a } from "./drag-in-CGBG4wEk.mjs";
3
- import "./embedding-plugins.min.js";
2
+ import { a as e, c as t, i as n, m as r, o as i, s as a } from "./drag-in-DlDsgY4T.mjs";
4
3
  var o = (e, t, n = 0, r = 0) => {
5
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;
6
5
  return c >= a && c <= i && l >= s && l <= o;
@@ -47,7 +46,7 @@ var o = (e, t, n = 0, r = 0) => {
47
46
  let c = a.ghost?.width, l = a.ghost?.height;
48
47
  c === void 0 && (c = o.getBoundingClientRect().width || 112), l === void 0 && (l = o.getBoundingClientRect().height || 112);
49
48
  let u = e - c / 2, d = r - l / 2;
50
- 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));
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 != "rml-drag-in-fade-in 250ms forwards" && (o.style.animation = n) : o.style.animation != "rml-drag-in-fade-out 250ms forwards" && (o.style.animation = i));
51
50
  })(u, l), this._dragGhostAnimationFrameId = null;
52
51
  }));
53
52
  }
@@ -1,12 +1,11 @@
1
1
 
2
- import { a as e, c as t, i as n, m as r, o as i, s as a } from "./drag-in-mE_ozj_Q.mjs";
3
- import "./embedding-plugins.js";
4
- //#region packages/common/src/utils/drag.ts
2
+ import { a as e, c as t, i as n, m as r, o as i, s as a } from "./drag-in-Cd_67tzS.mjs";
3
+ // packages/common/src/utils/drag.ts
5
4
  var o = (e, t, n = 0, r = 0) => {
6
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;
7
6
  return c >= a && c <= i && l >= s && l <= o;
8
7
  }, s = (e, t, n, r = 0, i = 0) => {
9
- if (!(!n || !n.hiddenIn && !n.visibleIn)) return n.visibleIn ? o({
8
+ if (n && (n.hiddenIn || n.visibleIn)) return n.visibleIn ? o({
10
9
  x: e,
11
10
  y: t
12
11
  }, n.visibleIn, r, i) : n.hiddenIn ? !o({
@@ -37,7 +36,7 @@ var o = (e, t, n = 0, r = 0) => {
37
36
  let c = a.ghost?.width, l = a.ghost?.height;
38
37
  c === void 0 && (c = o.getBoundingClientRect().width || 112), l === void 0 && (l = o.getBoundingClientRect().height || 112);
39
38
  let u = e - c / 2, d = r - l / 2;
40
- 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));
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 != "rml-drag-in-fade-in 250ms forwards" && (o.style.animation = n) : o.style.animation != "rml-drag-in-fade-out 250ms forwards" && (o.style.animation = i));
41
40
  }, d = class {
42
41
  _dragGhostAnimationFrameId = null;
43
42
  _dragGhostRemoveAnimationFrameId = null;
@@ -46,7 +45,7 @@ var o = (e, t, n = 0, r = 0) => {
46
45
  this._dragGhostElement = e;
47
46
  }
48
47
  updateDragGhost(e, t, n) {
49
- this._dragGhostRemoveAnimationFrameId &&= (cancelAnimationFrame(this._dragGhostRemoveAnimationFrameId), null), !n.ghost?.external && n.ghost && (this._dragGhostAnimationFrameId ||= requestAnimationFrame(() => {
48
+ this._dragGhostRemoveAnimationFrameId &&= (cancelAnimationFrame(this._dragGhostRemoveAnimationFrameId), null), n.ghost?.external || n.ghost && (this._dragGhostAnimationFrameId ||= requestAnimationFrame(() => {
50
49
  c();
51
50
  let r = {
52
51
  x: e,
@@ -62,5 +61,4 @@ var o = (e, t, n = 0, r = 0) => {
62
61
  });
63
62
  }
64
63
  };
65
- //#endregion
66
64
  export { d as t };
@@ -1,6 +1,6 @@
1
1
 
2
- import { n as e } from "./dist-6TznX-Ae.mjs";
3
- //#region packages/embedding-lib/src/plugins/constants.ts
2
+ import { n as e } from "./rolldown-runtime-CyjYJMBa.mjs";
3
+ // packages/embedding-lib/src/plugins/constants.ts
4
4
  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 {
5
5
  _mainDomElement;
6
6
  _instance;
@@ -36,7 +36,7 @@ var t = "rml-drag-in-styles", n = "rml-drag-in-drag-element", r = "rml-drag-in-o
36
36
  }
37
37
  async init() {
38
38
  if (await super.init(), this._mode === "website") try {
39
- let { DragInFromWebsiteStrategy: e } = await import("./from-website-DaTahmvJ.mjs");
39
+ let { DragInFromWebsiteStrategy: e } = await import("./from-website-Dl1VN4h7.mjs");
40
40
  this._strategy = new e(this._instance, this._mainDomElement, {
41
41
  settings: this.options,
42
42
  mode: "website"
@@ -45,7 +45,7 @@ var t = "rml-drag-in-styles", n = "rml-drag-in-drag-element", r = "rml-drag-in-o
45
45
  throw console.error("Could not load Dragin strategy \"FromWebsite\""), e;
46
46
  }
47
47
  else if (this._mode === "custom-view") try {
48
- let { DragInFromCustomViewStrategy: e } = await import("./from-custom-view-B3HCOhdT.mjs");
48
+ let { DragInFromCustomViewStrategy: e } = await import("./from-custom-view-BRFynafo.mjs");
49
49
  this._strategy = new e(this._instance, this._mainDomElement, this.options, this._viewName);
50
50
  } catch (e) {
51
51
  throw console.error("Could not load Dragin strategy \"FromCustomView\""), e;
@@ -99,5 +99,4 @@ var t = "rml-drag-in-styles", n = "rml-drag-in-drag-element", r = "rml-drag-in-o
99
99
  this._strategy.releaseInput(e);
100
100
  }
101
101
  };
102
- //#endregion
103
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 };
@@ -1,5 +1,5 @@
1
1
 
2
- import { n as e } from "./dist-D0XFfKEL.mjs";
2
+ import { n as e } from "./rolldown-runtime--db92txo.mjs";
3
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: 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 {
4
4
  _mainDomElement;
5
5
  _instance;
@@ -29,7 +29,7 @@ var t = "rml-drag-in-styles", n = "rml-drag-in-drag-element", r = "rml-drag-in-o
29
29
  }
30
30
  async init() {
31
31
  if (await super.init(), this._mode === "website") try {
32
- let { DragInFromWebsiteStrategy: e } = await import("./from-website-DUQ9USj1.mjs");
32
+ let { DragInFromWebsiteStrategy: e } = await import("./from-website-iZzauH4C.mjs");
33
33
  this._strategy = new e(this._instance, this._mainDomElement, {
34
34
  settings: this.options,
35
35
  mode: "website"
@@ -40,7 +40,7 @@ var t = "rml-drag-in-styles", n = "rml-drag-in-drag-element", r = "rml-drag-in-o
40
40
  else {
41
41
  if (this._mode !== "custom-view") throw Error("Unsupported mode");
42
42
  try {
43
- let { DragInFromCustomViewStrategy: e } = await import("./from-custom-view-B3fIWMox.mjs");
43
+ let { DragInFromCustomViewStrategy: e } = await import("./from-custom-view-6HMD_sPe.mjs");
44
44
  this._strategy = new e(this._instance, this._mainDomElement, this.options, this._viewName);
45
45
  } catch (e) {
46
46
  throw e;
@@ -1,3 +1,2 @@
1
1
  /*! Third-party licenses: THIRD-PARTY-NOTICES.txt and sbom.cdx.json in the root of this package */
2
- 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-mE_ozj_Q.mjs";
3
- 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 };
2
+ export { t as DragIn, i as RML_DRAG_GHOST_FADE_IN, a as RML_DRAG_GHOST_FADE_IN_ANIMATION_CSS, o as RML_DRAG_GHOST_FADE_OUT, s as RML_DRAG_GHOST_FADE_OUT_ANIMATION_CSS, c as RML_DRAG_IN_DRAG_ELEMENT_ID, u as RML_DRAG_IN_FALLBACK_GHOST_HEIGHT, d as RML_DRAG_IN_FALLBACK_GHOST_URL, f as RML_DRAG_IN_FALLBACK_GHOST_WIDTH, m as RML_DRAG_IN_STYLES_ID, h as TARGET_OPACITY } from "./drag-in-Cd_67tzS.mjs";
@@ -1,3 +1,2 @@
1
1
  /*! Third-party licenses: THIRD-PARTY-NOTICES.txt and sbom.cdx.json in the root of this package */
2
- 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-CGBG4wEk.mjs";
3
- 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 };
2
+ export { t as DragIn, i as RML_DRAG_GHOST_FADE_IN, a as RML_DRAG_GHOST_FADE_IN_ANIMATION_CSS, o as RML_DRAG_GHOST_FADE_OUT, s as RML_DRAG_GHOST_FADE_OUT_ANIMATION_CSS, c as RML_DRAG_IN_DRAG_ELEMENT_ID, u as RML_DRAG_IN_FALLBACK_GHOST_HEIGHT, d as RML_DRAG_IN_FALLBACK_GHOST_URL, f as RML_DRAG_IN_FALLBACK_GHOST_WIDTH, m as RML_DRAG_IN_STYLES_ID, h as TARGET_OPACITY } from "./drag-in-DlDsgY4T.mjs";
@@ -1,6 +1,6 @@
1
1
 
2
- import { An as e, Cn as t, Ht as n, Sn as r, Vt as i, bn as a, mn as o, pn as s, yn as c } from "./dist-BV-32IEX.mjs";
3
- //#region node_modules/@ai-sdk/provider-utils/dist/experimental-evaluation/index.js
2
+ import { An as e, Cn as t, Ht as n, Sn as r, Vt as i, bn as a, mn as o, pn as s, yn as c } from "./dist-XECXrV5Q.mjs";
3
+ // node_modules/@ai-sdk/provider-utils/dist/experimental-evaluation/index.js
4
4
  var l = /"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/, u = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;
5
5
  function d(e) {
6
6
  let t = JSON.parse(e);
@@ -37,7 +37,7 @@ function p(e) {
37
37
  function m(e) {
38
38
  if (e.type === "object" || Array.isArray(e.type) && e.type.includes("object")) {
39
39
  let { additionalProperties: t } = e;
40
- e.additionalProperties = t != null && typeof t != "boolean" ? h(t) : !1;
40
+ e.additionalProperties = t != null && typeof t != "boolean" && h(t);
41
41
  let { properties: n } = e;
42
42
  if (n != null) for (let e of Object.keys(n)) n[e] = h(n[e]);
43
43
  }
@@ -99,9 +99,7 @@ function y(e) {
99
99
  case "max":
100
100
  n.inclusive ? t.maximum = n.value : t.exclusiveMaximum = n.value;
101
101
  break;
102
- case "multipleOf":
103
- t.multipleOf = n.value;
104
- break;
102
+ case "multipleOf": t.multipleOf = n.value;
105
103
  }
106
104
  return t;
107
105
  }
@@ -137,9 +135,7 @@ var w = (e) => {
137
135
  case "min":
138
136
  t.minimum = n.value;
139
137
  break;
140
- case "max":
141
- t.maximum = n.value;
142
- break;
138
+ case "max": t.maximum = n.value;
143
139
  }
144
140
  return t;
145
141
  };
@@ -227,9 +223,7 @@ function A(e, t) {
227
223
  case "format:idn-email":
228
224
  P(n, "idn-email", r.message, t);
229
225
  break;
230
- case "pattern:zod":
231
- F(n, k.email, r.message, t);
232
- break;
226
+ case "pattern:zod": F(n, k.email, r.message, t);
233
227
  }
234
228
  break;
235
229
  case "url":
@@ -297,16 +291,10 @@ function A(e, t) {
297
291
  case "contentEncoding:base64":
298
292
  n.contentEncoding = "base64";
299
293
  break;
300
- case "pattern:zod":
301
- F(n, k.base64, r.message, t);
302
- break;
294
+ case "pattern:zod": F(n, k.base64, r.message, t);
303
295
  }
304
296
  break;
305
297
  case "nanoid": F(n, k.nanoid, r.message, t);
306
- case "toLowerCase":
307
- case "toUpperCase":
308
- case "trim": break;
309
- default:
310
298
  }
311
299
  return n;
312
300
  }
@@ -338,11 +326,8 @@ function I(e, t) {
338
326
  m: e.flags.includes("m"),
339
327
  s: e.flags.includes("s")
340
328
  }, r = n.i ? e.source.toLowerCase() : e.source, i = "", a = !1, o = !1, s = !1;
341
- for (let e = 0; e < r.length; e++) {
342
- if (a) {
343
- i += r[e], a = !1;
344
- continue;
345
- }
329
+ for (let e = 0; e < r.length; e++) if (a) i += r[e], a = !1;
330
+ else {
346
331
  if (n.i) {
347
332
  if (o) {
348
333
  if (r[e].match(/[a-z]/)) {
@@ -358,18 +343,15 @@ function I(e, t) {
358
343
  if (r[e] === "^") {
359
344
  i += "(^|(?<=[\r\n]))";
360
345
  continue;
361
- } else if (r[e] === "$") {
346
+ }
347
+ if (r[e] === "$") {
362
348
  i += "($|(?=[\r\n]))";
363
349
  continue;
364
350
  }
365
351
  }
366
- if (n.s && r[e] === ".") {
367
- i += o ? `${r[e]}\r
352
+ n.s && r[e] === "." ? i += o ? `${r[e]}\r
368
353
  ` : `[${r[e]}\r
369
- ]`;
370
- continue;
371
- }
372
- i += r[e], r[e] === "\\" ? a = !0 : o && r[e] === "]" ? o = !1 : !o && r[e] === "[" && (o = !0);
354
+ ]` : (i += r[e], r[e] === "\\" ? a = !0 : o && r[e] === "]" ? o = !1 : !o && r[e] === "[" && (o = !0));
373
355
  }
374
356
  try {
375
357
  new RegExp(i);
@@ -392,11 +374,12 @@ function L(e, t) {
392
374
  ...n,
393
375
  propertyNames: i
394
376
  };
395
- } else if (e.keyType?._def.typeName === "ZodEnum") return {
377
+ }
378
+ if (e.keyType?._def.typeName === "ZodEnum") return {
396
379
  ...n,
397
380
  propertyNames: { enum: e.keyType._def.values }
398
381
  };
399
- else if (e.keyType?._def.typeName === "ZodBranded" && e.keyType._def.type._def.typeName === "ZodString" && e.keyType._def.type._def.checks?.length) {
382
+ if (e.keyType?._def.typeName === "ZodBranded" && e.keyType._def.type._def.typeName === "ZodString" && e.keyType._def.type._def.checks?.length) {
400
383
  let { type: r, ...i } = x(e.keyType._def, t);
401
384
  return {
402
385
  ...n,
@@ -461,7 +444,8 @@ function U(e, t) {
461
444
  return n && !e.includes(n) ? [...e, n] : e;
462
445
  }, []);
463
446
  return { type: e.length > 1 ? e : e[0] };
464
- } else if (n.every((e) => e._def.typeName === "ZodLiteral" && !e.description)) {
447
+ }
448
+ if (n.every((e) => e._def.typeName === "ZodLiteral" && !e.description)) {
465
449
  let e = n.reduce((e, t) => {
466
450
  let n = typeof t._def.value;
467
451
  switch (n) {
@@ -528,9 +512,7 @@ function K(e) {
528
512
  case "max":
529
513
  n.inclusive ? t.maximum = n.value : t.exclusiveMaximum = n.value;
530
514
  break;
531
- case "multipleOf":
532
- t.multipleOf = n.value;
533
- break;
515
+ case "multipleOf": t.multipleOf = n.value;
534
516
  }
535
517
  return t;
536
518
  }
@@ -1070,5 +1052,4 @@ var Oe = class e {
1070
1052
  };
1071
1053
  }
1072
1054
  };
1073
- //#endregion
1074
1055
  export { Oe as t };
@@ -1,5 +1,5 @@
1
1
 
2
- import { An as e, Cn as t, Ht as n, Sn as r, Vt as i, bn as a, mn as o, pn as s, yn as c } from "./dist-Bt1FopV4.mjs";
2
+ import { An as e, Cn as t, Ht as n, Sn as r, Vt as i, bn as a, mn as o, pn as s, yn as c } from "./dist-D2ZAAHGn.mjs";
3
3
  var l = /"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/, u = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;
4
4
  function d(e) {
5
5
  let t = JSON.parse(e);
@@ -1,7 +1,7 @@
1
1
 
2
- import { a as e, c as t, n } from "./utils-BoELtcEK.mjs";
3
- import { d as r } from "./drag-in-CGBG4wEk.mjs";
4
- import { t as i } from "./drag-ghost-BpIDzSdK.mjs";
2
+ import { a as e, c as t, n } from "./utils-DdNhTbJr.mjs";
3
+ import { d as r } from "./drag-in-DlDsgY4T.mjs";
4
+ import { t as i } from "./drag-ghost-QZelgA-_.mjs";
5
5
  var a = (e, n = 0) => t(e) ? {
6
6
  clientX: e.touches[n].clientX,
7
7
  clientY: e.touches[n].clientY
@@ -120,9 +120,10 @@ var a = (e, n = 0) => t(e) ? {
120
120
  let s = await this._instance.getBoundingClientRect("canvas"), l = (await this._instance.getDrawerBoundingClientRect()).final, d = await this._instance.getBoundingClientRect(".interaction-container");
121
121
  if (r === this._dragGeneration) {
122
122
  if (!a) {
123
+ let e = `could not read the bounding rect of custom view "${this._viewName}"`;
123
124
  this._phase = {
124
125
  kind: "failed",
125
- reason: `could not read the bounding rect of custom view "${this._viewName}"`
126
+ reason: e
126
127
  };
127
128
  return;
128
129
  }
@@ -1,7 +1,7 @@
1
1
 
2
- import { a as e, c as t, n } from "./utils-BwWn6Fw4.mjs";
3
- import { d as r } from "./drag-in-mE_ozj_Q.mjs";
4
- import { t as i } from "./drag-ghost-Bhb0_67G.mjs";
2
+ import { a as e, c as t, n } from "./utils-CJnKZceY.mjs";
3
+ import { d as r } from "./drag-in-Cd_67tzS.mjs";
4
+ import { t as i } from "./drag-ghost-VmgSWLva.mjs";
5
5
  var a = (e, n = 0) => t(e) ? {
6
6
  clientX: e.touches[n].clientX,
7
7
  clientY: e.touches[n].clientY
@@ -119,7 +119,7 @@ var a = (e, n = 0) => t(e) ? {
119
119
  _dragGeneration = 0;
120
120
  _parentWithDragLeave = null;
121
121
  _parentDragLeave = () => {
122
- this._phase.kind !== "ready" || !this._hasEnteredIframe || (this._instance.cancelDragIn(), this._hasEnteredIframe = !1);
122
+ this._phase.kind === "ready" && this._hasEnteredIframe && (this._instance.cancelDragIn(), this._hasEnteredIframe = !1);
123
123
  };
124
124
  constructor(e, t, n, r) {
125
125
  this._instance = e, this._options = n || {}, this._viewName = r, this._mainDomElement = t, this._parentWithDragLeave = this._mainDomElement.parentElement, this._parentWithDragLeave?.addEventListener("dragleave", this._parentDragLeave);
@@ -135,15 +135,7 @@ var a = (e, n = 0) => t(e) ? {
135
135
  } else this._dragGhost = new i();
136
136
  let a = await this._instance.getBoundingClientRect(c(this._viewName)), o = await this._instance.getBoundingClientRect("canvas"), s = (await this._instance.getDrawerBoundingClientRect()).final, u = await this._instance.getBoundingClientRect(".interaction-container");
137
137
  if (r === this._dragGeneration) {
138
- if (!a) {
139
- let e = `could not read the bounding rect of custom view "${this._viewName}"`;
140
- this._phase = {
141
- kind: "failed",
142
- reason: e
143
- }, console.warn(`Drag-in not started: ${e}`);
144
- return;
145
- }
146
- this._phase = {
138
+ if (a) this._phase = {
147
139
  kind: "ready",
148
140
  bounds: {
149
141
  view: a,
@@ -155,6 +147,13 @@ var a = (e, n = 0) => t(e) ? {
155
147
  id: e,
156
148
  type: n
157
149
  }, this._hasEnteredIframe = !1, this.isDragging = !0;
150
+ else {
151
+ let e = `could not read the bounding rect of custom view "${this._viewName}"`;
152
+ this._phase = {
153
+ kind: "failed",
154
+ reason: e
155
+ }, console.warn(`Drag-in not started: ${e}`);
156
+ }
158
157
  }
159
158
  }
160
159
  _dragUpdate(t) {
@@ -192,9 +191,11 @@ var a = (e, n = 0) => t(e) ? {
192
191
  this._dragGeneration++, this._currentCustomDrag && this._currentCustomDrag.onEnd(), this._currentCustomDrag = null, this.isDragging = !1, this._phase = { kind: "idle" }, this._resetStartTarget(), this._instance.enableEvents(), this._dragGhost &&= (this._dragGhost.removeDragGhost(), null), this._hasEnteredIframe && this._instance.dragInObjectEnd(), this._hasEnteredIframe = !1, this._pendingDragIn = null;
193
192
  }
194
193
  dragStart(e, n, r) {
195
- this._instance.disableEvents(), this._startTarget = n.target, this._currentCustomDrag = t(n) ? new s(p, { onTouchDragStart: (t, n) => {
194
+ this._instance.disableEvents(), this._startTarget = n.target;
195
+ let i = (t, n) => {
196
196
  this._dragStart(e, n, r);
197
- } }, {
197
+ };
198
+ this._currentCustomDrag = t(n) ? new s(p, { onTouchDragStart: i }, {
198
199
  ...m(n, this._options),
199
200
  delay: 0
200
201
  }) : new d({ onCustomDragStart: (t) => this._dragStart(e, t, r) }, m(n, this._options)), this._currentCustomDrag.onStart(n);
@@ -224,5 +225,4 @@ var a = (e, n = 0) => t(e) ? {
224
225
  this._dragEnd();
225
226
  }
226
227
  };
227
- //#endregion
228
228
  export { g as DragInFromCustomViewStrategy };
@@ -1,8 +1,8 @@
1
1
 
2
- import { c as e, i as t, n, o as r, r as i, s as a } from "./utils-BwWn6Fw4.mjs";
3
- import { l as o, p as s, r as c } from "./drag-in-mE_ozj_Q.mjs";
4
- import { t as l } from "./drag-ghost-Bhb0_67G.mjs";
5
- //#region packages/embedding-lib/src/plugins/strategy/from-website.ts
2
+ import { c as e, i as t, n, o as r, r as i, s as a } from "./utils-CJnKZceY.mjs";
3
+ import { l as o, p as s, r as c } from "./drag-in-Cd_67tzS.mjs";
4
+ import { t as l } from "./drag-ghost-VmgSWLva.mjs";
5
+ // packages/embedding-lib/src/plugins/strategy/from-website.ts
6
6
  var u = class {
7
7
  _options = {};
8
8
  _instance;
@@ -28,7 +28,7 @@ var u = class {
28
28
  this._firefoxDragPosition.x = t.pageX || 0, this._firefoxDragPosition.y = t.pageY || 0;
29
29
  };
30
30
  _parentDragLeave = () => {
31
- this._phase.kind !== "ready" || !this._hasEnteredIframe || (this._instance.cancelDragIn(), this._hasEnteredIframe = !1, this._dragInObjectCalled = !1);
31
+ this._phase.kind === "ready" && this._hasEnteredIframe && (this._instance.cancelDragIn(), this._hasEnteredIframe = !1, this._dragInObjectCalled = !1);
32
32
  };
33
33
  constructor(e, t, n) {
34
34
  this._instance = e, this._mainDomElement = t, this._options = n || {}, document.addEventListener("dragover", this._firefoxFallback), this._parentWithDragLeave = this._mainDomElement.parentElement, this._parentWithDragLeave?.addEventListener("dragleave", this._parentDragLeave);
@@ -120,5 +120,4 @@ var u = class {
120
120
  }
121
121
  releaseInput(e) {}
122
122
  };
123
- //#endregion
124
123
  export { u as DragInFromWebsiteStrategy };
@@ -1,7 +1,7 @@
1
1
 
2
- import { c as e, i as t, n, o as r, r as i, s as a } from "./utils-BoELtcEK.mjs";
3
- import { l as o, p as s, r as c } from "./drag-in-CGBG4wEk.mjs";
4
- import { t as l } from "./drag-ghost-BpIDzSdK.mjs";
2
+ import { c as e, i as t, n, o as r, r as i, s as a } from "./utils-DdNhTbJr.mjs";
3
+ import { l as o, p as s, r as c } from "./drag-in-DlDsgY4T.mjs";
4
+ import { t as l } from "./drag-ghost-QZelgA-_.mjs";
5
5
  var u = class {
6
6
  _options = {};
7
7
  _instance;