@tryghost/koenig-lexical 0.2.36 → 0.2.37
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/koenig-lexical.js
CHANGED
|
@@ -7,7 +7,7 @@ import Gj, { createPortal as Qre } from "react-dom";
|
|
|
7
7
|
(function() {
|
|
8
8
|
try {
|
|
9
9
|
var n = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, e = new Error().stack;
|
|
10
|
-
e && (n._sentryDebugIds = n._sentryDebugIds || {}, n._sentryDebugIds[e] = "
|
|
10
|
+
e && (n._sentryDebugIds = n._sentryDebugIds || {}, n._sentryDebugIds[e] = "5c3354d1-8515-47ee-c834-2e902530ef42", n._sentryDebugIdIdentifier = "sentry-dbid-5c3354d1-8515-47ee-c834-2e902530ef42");
|
|
11
11
|
} catch {
|
|
12
12
|
}
|
|
13
13
|
})();
|
|
@@ -21213,10 +21213,18 @@ let nUe = class extends Ki {
|
|
|
21213
21213
|
function iUe(n) {
|
|
21214
21214
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
21215
21215
|
lr(e);
|
|
21216
|
-
const t = e.createDocument(), i = n.getHtml() || ""
|
|
21217
|
-
|
|
21218
|
-
|
|
21219
|
-
|
|
21216
|
+
const t = e.createDocument(), i = n.getHtml() || "";
|
|
21217
|
+
if (i) {
|
|
21218
|
+
const r = t.createElement("textarea");
|
|
21219
|
+
return r.innerHTML = i, {
|
|
21220
|
+
element: r,
|
|
21221
|
+
type: "value"
|
|
21222
|
+
};
|
|
21223
|
+
} else
|
|
21224
|
+
return {
|
|
21225
|
+
element: t.createElement("div"),
|
|
21226
|
+
type: "inner"
|
|
21227
|
+
};
|
|
21220
21228
|
}
|
|
21221
21229
|
class rUe {
|
|
21222
21230
|
constructor(e) {
|
|
@@ -21309,13 +21317,7 @@ let oUe = class extends Ki {
|
|
|
21309
21317
|
}
|
|
21310
21318
|
exportDOM() {
|
|
21311
21319
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
21312
|
-
|
|
21313
|
-
element: i
|
|
21314
|
-
} = iUe(this, t);
|
|
21315
|
-
return {
|
|
21316
|
-
element: i,
|
|
21317
|
-
type: "inner"
|
|
21318
|
-
};
|
|
21320
|
+
return iUe(this, t);
|
|
21319
21321
|
}
|
|
21320
21322
|
getHtml() {
|
|
21321
21323
|
return this.getLatest().__html;
|
|
@@ -102472,7 +102474,7 @@ function wft({ nodeKey: n, textEditor: e, textEditorInitialState: t, backgroundC
|
|
|
102472
102474
|
}, R = (F) => {
|
|
102473
102475
|
s.update(() => {
|
|
102474
102476
|
const H = L.$getNodeByKey(n);
|
|
102475
|
-
x(F.native), H.setCalloutEmoji(F.native), D();
|
|
102477
|
+
x(F.native), H.setCalloutEmoji(F.native), l(!0), D();
|
|
102476
102478
|
});
|
|
102477
102479
|
}, D = () => {
|
|
102478
102480
|
if (!a) {
|
|
@@ -127165,7 +127167,7 @@ const QA = ({ paragraphs: n, allowBr: e }) => {
|
|
|
127165
127167
|
js.ListNode,
|
|
127166
127168
|
js.ListItemNode,
|
|
127167
127169
|
_s.LinkNode
|
|
127168
|
-
], ew = $kt, u2t = "0.2.
|
|
127170
|
+
], ew = $kt, u2t = "0.2.37";
|
|
127169
127171
|
export {
|
|
127170
127172
|
nI as $isAtStartOfDocument,
|
|
127171
127173
|
iI as $isAtTopOfNode,
|