@lexical/rich-text
Advanced tools
Comparing version 0.9.1 to 0.9.2
@@ -13,10 +13,5 @@ /** @module @lexical/rich-text */ | ||
tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'; | ||
type: 'heading'; | ||
version: 1; | ||
}, SerializedElementNode>; | ||
export declare const DRAG_DROP_PASTE: LexicalCommand<Array<File>>; | ||
export declare type SerializedQuoteNode = Spread<{ | ||
type: 'quote'; | ||
version: 1; | ||
}, SerializedElementNode>; | ||
export declare type SerializedQuoteNode = SerializedElementNode; | ||
/** @noInheritDoc */ | ||
@@ -23,0 +18,0 @@ export declare class QuoteNode extends ElementNode { |
@@ -838,2 +838,7 @@ /** | ||
return true; | ||
} // if inputs then paste within the input ignore creating a new node on paste event | ||
if (lexical.isSelectionCapturedInDecoratorInput(event.target)) { | ||
return false; | ||
} | ||
@@ -840,0 +845,0 @@ |
@@ -31,3 +31,3 @@ /** | ||
f,"element");e.focus.set(h,f,"element")}e=l.$normalizeSelection__EXPERIMENTAL(e);l.$setSelection(e)}c.dispatchCommand(y,d)}b.preventDefault();return!0}b=l.$getSelection();return l.$isRangeSelection(b)?!0:!1},l.COMMAND_PRIORITY_EDITOR),c.registerCommand(l.DRAGSTART_COMMAND,b=>{[b]=J(b);const d=l.$getSelection();return b&&!l.$isRangeSelection(d)?!1:!0},l.COMMAND_PRIORITY_EDITOR),c.registerCommand(l.DRAGOVER_COMMAND,b=>{var [d]=J(b);const e=l.$getSelection();if(d&&!l.$isRangeSelection(e))return!1;d= | ||
m(b.clientX,b.clientY);null!==d&&(d=l.$getNearestNodeFromDOMNode(d.node),l.$isDecoratorNode(d)&&b.preventDefault());return!0},l.COMMAND_PRIORITY_EDITOR),c.registerCommand(l.COPY_COMMAND,b=>{a.copyToClipboard(c,b instanceof ClipboardEvent?b:null);return!0},l.COMMAND_PRIORITY_EDITOR),c.registerCommand(l.CUT_COMMAND,b=>{I(b,c);return!0},l.COMMAND_PRIORITY_EDITOR),c.registerCommand(l.PASTE_COMMAND,b=>{const [,d,e]=J(b);if(0<d.length&&!e)return c.dispatchCommand(y,d),!0;const f=l.$getSelection();return l.$isRangeSelection(f)|| | ||
l.DEPRECATED_$isGridSelection(f)?(H(b,c),!0):!1},l.COMMAND_PRIORITY_EDITOR))} | ||
m(b.clientX,b.clientY);null!==d&&(d=l.$getNearestNodeFromDOMNode(d.node),l.$isDecoratorNode(d)&&b.preventDefault());return!0},l.COMMAND_PRIORITY_EDITOR),c.registerCommand(l.COPY_COMMAND,b=>{a.copyToClipboard(c,b instanceof ClipboardEvent?b:null);return!0},l.COMMAND_PRIORITY_EDITOR),c.registerCommand(l.CUT_COMMAND,b=>{I(b,c);return!0},l.COMMAND_PRIORITY_EDITOR),c.registerCommand(l.PASTE_COMMAND,b=>{const [,d,e]=J(b);if(0<d.length&&!e)return c.dispatchCommand(y,d),!0;if(l.isSelectionCapturedInDecoratorInput(b.target))return!1; | ||
const f=l.$getSelection();return l.$isRangeSelection(f)||l.DEPRECATED_$isGridSelection(f)?(H(b,c),!0):!1},l.COMMAND_PRIORITY_EDITOR))} |
@@ -10,9 +10,9 @@ { | ||
"license": "MIT", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"main": "LexicalRichText.js", | ||
"peerDependencies": { | ||
"lexical": "0.9.1", | ||
"@lexical/selection": "0.9.1", | ||
"@lexical/clipboard": "0.9.1", | ||
"@lexical/utils": "0.9.1" | ||
"lexical": "0.9.2", | ||
"@lexical/selection": "0.9.2", | ||
"@lexical/clipboard": "0.9.2", | ||
"@lexical/utils": "0.9.2" | ||
}, | ||
@@ -19,0 +19,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44881
826