@tryghost/koenig-lexical 0.3.3 → 0.3.4
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] = "d2d8c34f-9590-4fdf-aa72-d52a47d6c867", t._sentryDebugIdIdentifier = "sentry-dbid-d2d8c34f-9590-4fdf-aa72-d52a47d6c867");
|
|
11
11
|
} catch {
|
|
12
12
|
}
|
|
13
13
|
})();
|
|
@@ -47232,7 +47232,7 @@ function HV({
|
|
|
47232
47232
|
/* @__PURE__ */ _.jsx(t5, { label: "Insert image", "data-kg-unsplash-insert-button": !0, onClick: (p) => {
|
|
47233
47233
|
p.stopPropagation(), f({
|
|
47234
47234
|
src: o.regular.replace(/&w=1080/, "&w=2000"),
|
|
47235
|
-
caption: `<span>Photo by <a href="${r.links.html}">${r.name}</a>
|
|
47235
|
+
caption: `<span>Photo by <a href="${r.links.html}">${r.name}</a> / <a href="https://unsplash.com/?utm_source=ghost&utm_medium=referral&utm_campaign=api-credit">Unsplash</a></span>`,
|
|
47236
47236
|
height: a,
|
|
47237
47237
|
width: l,
|
|
47238
47238
|
alt: s,
|
|
@@ -55950,7 +55950,7 @@ const xlt = {
|
|
|
55950
55950
|
if (!xet(t))
|
|
55951
55951
|
return null;
|
|
55952
55952
|
const e = t.getTextContent();
|
|
55953
|
-
return "```" + (t.
|
|
55953
|
+
return "```" + (t.language || "") + (e ? `
|
|
55954
55954
|
` + e : "") + "\n```";
|
|
55955
55955
|
},
|
|
55956
55956
|
regExp: /^```(\w{1,10})?\s/,
|
|
@@ -101449,7 +101449,8 @@ function Oft({
|
|
|
101449
101449
|
F.preventDefault(), F.stopPropagation(), c.dispatchCommand(xl, { cardKey: t, focusEditor: !1 });
|
|
101450
101450
|
}, E = (F) => {
|
|
101451
101451
|
c.update(() => {
|
|
101452
|
-
L.$getNodeByKey(t)
|
|
101452
|
+
const q = L.$getNodeByKey(t);
|
|
101453
|
+
q.segment = F;
|
|
101453
101454
|
});
|
|
101454
101455
|
};
|
|
101455
101456
|
U.useEffect(() => {
|
|
@@ -125900,7 +125901,7 @@ const UA = ({ paragraphs: t, allowBr: e }) => {
|
|
|
125900
125901
|
Fs.ListNode,
|
|
125901
125902
|
Fs.ListItemNode,
|
|
125902
125903
|
ks.LinkNode
|
|
125903
|
-
], nw = Nkt, d2t = "0.3.
|
|
125904
|
+
], nw = Nkt, d2t = "0.3.4";
|
|
125904
125905
|
export {
|
|
125905
125906
|
GR as $isAtStartOfDocument,
|
|
125906
125907
|
YR as $isAtTopOfNode,
|