@tryghost/koenig-lexical 0.0.93 → 0.0.94
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
|
@@ -27598,7 +27598,14 @@ const kje = ({ nodeKey: n, width: e, wrapperStyle: t, IndicatorIcon: i, children
|
|
|
27598
27598
|
// preventing the click behaviour of other React components inside the card
|
|
27599
27599
|
s.registerCommand(
|
|
27600
27600
|
z.CLICK_COMMAND,
|
|
27601
|
-
(A) =>
|
|
27601
|
+
(A) => {
|
|
27602
|
+
var D;
|
|
27603
|
+
if (g.current.contains(A.target)) {
|
|
27604
|
+
const R = z.$getNodeByKey(n);
|
|
27605
|
+
return R ? (_ && ((D = R.hasEditMode) != null && D.call(R)) && !E ? s.dispatchCommand(hc, { cardKey: n }) : _ || s.dispatchCommand(ey, { cardKey: n }), !0) : void 0;
|
|
27606
|
+
}
|
|
27607
|
+
return !1;
|
|
27608
|
+
},
|
|
27602
27609
|
z.COMMAND_PRIORITY_LOW
|
|
27603
27610
|
)
|
|
27604
27611
|
));
|