@tryghost/koenig-lexical 0.2.40 → 0.2.41

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.
@@ -7,7 +7,7 @@ import Kj, { createPortal as Wre } 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] = "74de3c61-857e-4542-9483-c3cb6dcf9c13", n._sentryDebugIdIdentifier = "sentry-dbid-74de3c61-857e-4542-9483-c3cb6dcf9c13");
10
+ e && (n._sentryDebugIds = n._sentryDebugIds || {}, n._sentryDebugIds[e] = "b7452972-d620-40e6-871a-566574acb3ac", n._sentryDebugIdIdentifier = "sentry-dbid-b7452972-d620-40e6-871a-566574acb3ac");
11
11
  } catch {
12
12
  }
13
13
  })();
@@ -43846,6 +43846,12 @@ function xV({ code: n, language: e, updateCode: t, updateLanguage: i }) {
43846
43846
  L.UNDO_COMMAND,
43847
43847
  () => !0,
43848
43848
  L.COMMAND_PRIORITY_LOW
43849
+ ),
43850
+ a.registerCommand(
43851
+ L.COPY_COMMAND,
43852
+ (A) => !0,
43853
+ L.COMMAND_PRIORITY_CRITICAL
43854
+ // mobiledoc copy plugin uses HIGH and otherwise would intercept the copy
43849
43855
  )
43850
43856
  ), [a]);
43851
43857
  const l = U.useCallback((A) => {
@@ -46679,9 +46685,9 @@ function utt({ editor: n, containerElem: e, cursorDidExitAtTop: t, isNested: i }
46679
46685
  n.registerCommand(
46680
46686
  L.KEY_ARROW_UP_COMMAND,
46681
46687
  (l) => {
46682
- if (l.shiftKey)
46688
+ if (l != null && l.shiftKey)
46683
46689
  return !1;
46684
- if (l._fromCaptionEditor && hv(n, r), document.activeElement !== n.getRootElement())
46690
+ if (l != null && l._fromCaptionEditor && hv(n, r), document.activeElement !== n.getRootElement())
46685
46691
  return !0;
46686
46692
  const c = L.$getSelection();
46687
46693
  if (L.$isNodeSelection(c)) {
@@ -46712,7 +46718,7 @@ function utt({ editor: n, containerElem: e, cursorDidExitAtTop: t, isNested: i }
46712
46718
  (l) => {
46713
46719
  if (l != null && l.shiftKey)
46714
46720
  return !1;
46715
- if (l._fromCaptionEditor && hv(n, r), document.activeElement !== n.getRootElement())
46721
+ if (l != null && l._fromCaptionEditor && hv(n, r), document.activeElement !== n.getRootElement())
46716
46722
  return !0;
46717
46723
  const c = L.$getSelection();
46718
46724
  if (L.$isNodeSelection(c)) {
@@ -104296,6 +104302,12 @@ function Uft({ darkMode: n, html: e, updateHtml: t }) {
104296
104302
  L.UNDO_COMMAND,
104297
104303
  () => !0,
104298
104304
  L.COMMAND_PRIORITY_LOW
104305
+ ),
104306
+ i.registerCommand(
104307
+ L.COPY_COMMAND,
104308
+ () => !0,
104309
+ L.COMMAND_PRIORITY_CRITICAL
104310
+ // mobiledoc copy plugin uses HIGH and otherwise would intercept the copy
104299
104311
  )
104300
104312
  ), [i]);
104301
104313
  const r = U.useCallback((g) => {
@@ -113837,6 +113849,12 @@ function Sdt({
113837
113849
  L.UNDO_COMMAND,
113838
113850
  () => !0,
113839
113851
  L.COMMAND_PRIORITY_LOW
113852
+ ),
113853
+ g.registerCommand(
113854
+ L.COPY_COMMAND,
113855
+ () => !0,
113856
+ L.COMMAND_PRIORITY_CRITICAL
113857
+ // mobiledoc copy plugin uses HIGH and otherwise would intercept the copy
113840
113858
  )
113841
113859
  ), [g]), vy(() => {
113842
113860
  a.current = new xdt({
@@ -127203,7 +127221,7 @@ const WA = ({ paragraphs: n, allowBr: e }) => {
127203
127221
  js.ListNode,
127204
127222
  js.ListItemNode,
127205
127223
  _s.LinkNode
127206
- ], tw = Akt, f2t = "0.2.40";
127224
+ ], tw = Akt, f2t = "0.2.41";
127207
127225
  export {
127208
127226
  iI as $isAtStartOfDocument,
127209
127227
  rI as $isAtTopOfNode,