@tryghost/koenig-lexical 0.3.4 → 0.3.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/dist/koenig-lexical.js
CHANGED
|
@@ -7,7 +7,7 @@ import qj, { createPortal as Fre } from "react-dom";
|
|
|
7
7
|
(function() {
|
|
8
8
|
try {
|
|
9
9
|
var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, e = new Error().stack;
|
|
10
|
-
e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "
|
|
10
|
+
e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "8bf0769a-7347-4ed6-92e4-1a1ca700efd3", t._sentryDebugIdIdentifier = "sentry-dbid-8bf0769a-7347-4ed6-92e4-1a1ca700efd3");
|
|
11
11
|
} catch {
|
|
12
12
|
}
|
|
13
13
|
})();
|
|
@@ -42491,12 +42491,6 @@ function rV({ code: t, language: e, updateCode: n, updateLanguage: i, onBlur: r
|
|
|
42491
42491
|
L.UNDO_COMMAND,
|
|
42492
42492
|
() => !0,
|
|
42493
42493
|
L.COMMAND_PRIORITY_LOW
|
|
42494
|
-
),
|
|
42495
|
-
l.registerCommand(
|
|
42496
|
-
L.COPY_COMMAND,
|
|
42497
|
-
(R) => !0,
|
|
42498
|
-
L.COMMAND_PRIORITY_CRITICAL
|
|
42499
|
-
// mobiledoc copy plugin uses HIGH and otherwise would intercept the copy
|
|
42500
42494
|
)
|
|
42501
42495
|
), [l]);
|
|
42502
42496
|
const c = U.useCallback((R) => {
|
|
@@ -45306,7 +45300,7 @@ function ftt({ editor: t, containerElem: e, cursorDidExitAtTop: n, isNested: i }
|
|
|
45306
45300
|
}
|
|
45307
45301
|
}
|
|
45308
45302
|
if (!l._fromNested && document.activeElement !== t.getRootElement())
|
|
45309
|
-
return !
|
|
45303
|
+
return !0;
|
|
45310
45304
|
if (!i && r) {
|
|
45311
45305
|
l.preventDefault();
|
|
45312
45306
|
const h = L.$getNodeByKey(r), p = L.$createParagraphNode();
|
|
@@ -101593,7 +101587,8 @@ Ee(N3, "kgMenu", {
|
|
|
101593
101587
|
Icon: Y5,
|
|
101594
101588
|
insertCommand: mY,
|
|
101595
101589
|
matches: ["email", "cta", "email-cta"],
|
|
101596
|
-
priority: 8
|
|
101590
|
+
priority: 8,
|
|
101591
|
+
postType: "post"
|
|
101597
101592
|
});
|
|
101598
101593
|
function Sft() {
|
|
101599
101594
|
return new N3();
|
|
@@ -101725,7 +101720,8 @@ Ee(P3, "kgMenu", [{
|
|
|
101725
101720
|
Icon: G5,
|
|
101726
101721
|
insertCommand: vY,
|
|
101727
101722
|
matches: ["email content", "only email"],
|
|
101728
|
-
priority: 7
|
|
101723
|
+
priority: 7,
|
|
101724
|
+
postType: "post"
|
|
101729
101725
|
}]);
|
|
101730
101726
|
const Tft = (t) => new P3(t);
|
|
101731
101727
|
function $ft({ onFileChange: t, fileInputRef: e }) {
|
|
@@ -102967,12 +102963,6 @@ function Hft({ darkMode: t, html: e, updateHtml: n, onBlur: i }) {
|
|
|
102967
102963
|
L.UNDO_COMMAND,
|
|
102968
102964
|
() => !0,
|
|
102969
102965
|
L.COMMAND_PRIORITY_LOW
|
|
102970
|
-
),
|
|
102971
|
-
r.registerCommand(
|
|
102972
|
-
L.COPY_COMMAND,
|
|
102973
|
-
() => !0,
|
|
102974
|
-
L.COMMAND_PRIORITY_CRITICAL
|
|
102975
|
-
// mobiledoc copy plugin uses HIGH and otherwise would intercept the copy
|
|
102976
102966
|
)
|
|
102977
102967
|
), [r]);
|
|
102978
102968
|
const s = U.useCallback((m) => {
|
|
@@ -112519,12 +112509,6 @@ function Edt({
|
|
|
112519
112509
|
L.UNDO_COMMAND,
|
|
112520
112510
|
() => !0,
|
|
112521
112511
|
L.COMMAND_PRIORITY_LOW
|
|
112522
|
-
),
|
|
112523
|
-
p.registerCommand(
|
|
112524
|
-
L.COPY_COMMAND,
|
|
112525
|
-
() => !0,
|
|
112526
|
-
L.COMMAND_PRIORITY_CRITICAL
|
|
112527
|
-
// mobiledoc copy plugin uses HIGH and otherwise would intercept the copy
|
|
112528
112512
|
)
|
|
112529
112513
|
), [p]), yy(() => {
|
|
112530
112514
|
a.current = new Sdt({
|
|
@@ -123970,10 +123954,10 @@ function ZJ(t, { query: e, config: n } = {}) {
|
|
|
123970
123954
|
e = e == null ? void 0 : e.toLowerCase();
|
|
123971
123955
|
let r = -1;
|
|
123972
123956
|
function s(a) {
|
|
123973
|
-
var f, h, p, m;
|
|
123974
|
-
if (a.isHidden && ((f = a.isHidden) != null && f.call(a, { config: n })))
|
|
123957
|
+
var f, h, p, m, w, x;
|
|
123958
|
+
if (a.isHidden && ((f = a.isHidden) != null && f.call(a, { config: n })) || a.postType && ((h = n == null ? void 0 : n.post) != null && h.displayName) && a.postType !== ((p = n == null ? void 0 : n.post) == null ? void 0 : p.displayName))
|
|
123975
123959
|
return;
|
|
123976
|
-
const l = typeof (a == null ? void 0 : a.matches) == "function" ? (
|
|
123960
|
+
const l = typeof (a == null ? void 0 : a.matches) == "function" ? (m = a == null ? void 0 : a.matches) == null ? void 0 : m.call(a, e, a.label) : (x = (w = a == null ? void 0 : a.matches) == null ? void 0 : w.find) == null ? void 0 : x.call(w, (O) => O.startsWith(e));
|
|
123977
123961
|
if (e && !l)
|
|
123978
123962
|
return;
|
|
123979
123963
|
typeof a.insertParams == "function" && (a.insertParams = a.insertParams({ config: n }));
|
|
@@ -125822,6 +125806,8 @@ function $kt(t, e) {
|
|
|
125822
125806
|
async function zj(t, e) {
|
|
125823
125807
|
if (!(e instanceof ClipboardEvent))
|
|
125824
125808
|
return;
|
|
125809
|
+
if (document.activeElement !== t.getRootElement())
|
|
125810
|
+
return !0;
|
|
125825
125811
|
await wd.copyToClipboard(t, e);
|
|
125826
125812
|
const n = JSON.parse(e.clipboardData.getData("application/x-lexical-editor")), i = JSON.stringify({
|
|
125827
125813
|
root: {
|
|
@@ -125901,7 +125887,7 @@ const UA = ({ paragraphs: t, allowBr: e }) => {
|
|
|
125901
125887
|
Fs.ListNode,
|
|
125902
125888
|
Fs.ListItemNode,
|
|
125903
125889
|
ks.LinkNode
|
|
125904
|
-
], nw = Nkt, d2t = "0.3.
|
|
125890
|
+
], nw = Nkt, d2t = "0.3.5";
|
|
125905
125891
|
export {
|
|
125906
125892
|
GR as $isAtStartOfDocument,
|
|
125907
125893
|
YR as $isAtTopOfNode,
|