@opositatest/markdown-text-editor 1.3.0-canary.76f3189 → 1.4.0
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/dist/editor.js +13 -3
- package/dist/react/index.js +13 -3
- package/package.json +1 -1
package/dist/editor.js
CHANGED
|
@@ -87471,7 +87471,7 @@ function X9({ children: e }) {
|
|
|
87471
87471
|
let t = r.getBoundingClientRect();
|
|
87472
87472
|
Math.abs(t.width - l.width) < Y9 && Math.abs(t.height - l.height) < Y9 || (l.width = t.width, l.height = t.height, e.style.width = `${t.width}px`, e.style.height = `${t.height}px`);
|
|
87473
87473
|
};
|
|
87474
|
-
u(), c()
|
|
87474
|
+
u(), c();
|
|
87475
87475
|
let d = new ResizeObserver(u);
|
|
87476
87476
|
d.observe(r);
|
|
87477
87477
|
let f = new MutationObserver(c);
|
|
@@ -87479,7 +87479,7 @@ function X9({ children: e }) {
|
|
|
87479
87479
|
attributes: !0,
|
|
87480
87480
|
attributeFilter: ["style"]
|
|
87481
87481
|
}), () => {
|
|
87482
|
-
d.disconnect(), f.disconnect()
|
|
87482
|
+
d.disconnect(), f.disconnect();
|
|
87483
87483
|
};
|
|
87484
87484
|
}, []), /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsx)("div", { ref: t }), (0, y_.createPortal)(/* @__PURE__ */ (0, D.jsx)("div", {
|
|
87485
87485
|
ref: n,
|
|
@@ -87511,7 +87511,17 @@ function z_e(e) {
|
|
|
87511
87511
|
//#endregion
|
|
87512
87512
|
//#region src/components/app-block-note-view/app-link-toolbar.tsx
|
|
87513
87513
|
function B_e(e) {
|
|
87514
|
-
|
|
87514
|
+
function t() {
|
|
87515
|
+
e.setToolbarPositionFrozen?.(!0);
|
|
87516
|
+
}
|
|
87517
|
+
function n(t) {
|
|
87518
|
+
t.currentTarget.querySelector("[aria-expanded=\"true\"]") || (e.setToolbarPositionFrozen?.(!1), e.setToolbarOpen?.(!1));
|
|
87519
|
+
}
|
|
87520
|
+
return /* @__PURE__ */ (0, D.jsx)(X9, { children: /* @__PURE__ */ (0, D.jsx)("div", {
|
|
87521
|
+
onMouseEnter: t,
|
|
87522
|
+
onMouseLeave: n,
|
|
87523
|
+
children: /* @__PURE__ */ (0, D.jsx)(F1, { ...e })
|
|
87524
|
+
}) });
|
|
87515
87525
|
}
|
|
87516
87526
|
//#endregion
|
|
87517
87527
|
//#region src/components/app-block-note-view/app-block-note-view.tsx
|
package/dist/react/index.js
CHANGED
|
@@ -96604,7 +96604,7 @@ function X9({ children: e }) {
|
|
|
96604
96604
|
let t = r.getBoundingClientRect();
|
|
96605
96605
|
Math.abs(t.width - l.width) < Y9 && Math.abs(t.height - l.height) < Y9 || (l.width = t.width, l.height = t.height, e.style.width = `${t.width}px`, e.style.height = `${t.height}px`);
|
|
96606
96606
|
};
|
|
96607
|
-
u(), c()
|
|
96607
|
+
u(), c();
|
|
96608
96608
|
let d = new ResizeObserver(u);
|
|
96609
96609
|
d.observe(r);
|
|
96610
96610
|
let f = new MutationObserver(c);
|
|
@@ -96612,7 +96612,7 @@ function X9({ children: e }) {
|
|
|
96612
96612
|
attributes: !0,
|
|
96613
96613
|
attributeFilter: ["style"]
|
|
96614
96614
|
}), () => {
|
|
96615
|
-
d.disconnect(), f.disconnect()
|
|
96615
|
+
d.disconnect(), f.disconnect();
|
|
96616
96616
|
};
|
|
96617
96617
|
}, []), /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("div", { ref: t }), k(/* @__PURE__ */ T("div", {
|
|
96618
96618
|
ref: n,
|
|
@@ -96644,7 +96644,17 @@ function Bhe(e) {
|
|
|
96644
96644
|
//#endregion
|
|
96645
96645
|
//#region src/components/app-block-note-view/app-link-toolbar.tsx
|
|
96646
96646
|
function Vhe(e) {
|
|
96647
|
-
|
|
96647
|
+
function t() {
|
|
96648
|
+
e.setToolbarPositionFrozen?.(!0);
|
|
96649
|
+
}
|
|
96650
|
+
function n(t) {
|
|
96651
|
+
t.currentTarget.querySelector("[aria-expanded=\"true\"]") || (e.setToolbarPositionFrozen?.(!1), e.setToolbarOpen?.(!1));
|
|
96652
|
+
}
|
|
96653
|
+
return /* @__PURE__ */ T(X9, { children: /* @__PURE__ */ T("div", {
|
|
96654
|
+
onMouseEnter: t,
|
|
96655
|
+
onMouseLeave: n,
|
|
96656
|
+
children: /* @__PURE__ */ T(l$, { ...e })
|
|
96657
|
+
}) });
|
|
96648
96658
|
}
|
|
96649
96659
|
//#endregion
|
|
96650
96660
|
//#region src/components/app-block-note-view/app-block-note-view.tsx
|