@uniformdev/mesh-sdk-react 19.39.1-alpha.10 → 19.40.1-alpha.16
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/index.esm.js +3 -2
- package/dist/index.js +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +5 -5
package/dist/index.esm.js
CHANGED
|
@@ -4318,6 +4318,7 @@ import { ContentEditable } from "@lexical/react/LexicalContentEditable";
|
|
|
4318
4318
|
import LexicalErrorBoundary from "@lexical/react/LexicalErrorBoundary";
|
|
4319
4319
|
import { HistoryPlugin } from "@lexical/react/LexicalHistoryPlugin";
|
|
4320
4320
|
import { PlainTextPlugin } from "@lexical/react/LexicalPlainTextPlugin";
|
|
4321
|
+
import { objectKlassEquals } from "@lexical/utils";
|
|
4321
4322
|
import {
|
|
4322
4323
|
$getSelection as $getSelection3,
|
|
4323
4324
|
$isNodeSelection as $isNodeSelection2,
|
|
@@ -4349,7 +4350,7 @@ function RichishCopyAndPastePlugin() {
|
|
|
4349
4350
|
editor.registerCommand(
|
|
4350
4351
|
COPY_COMMAND,
|
|
4351
4352
|
(event) => {
|
|
4352
|
-
copyToClipboard(editor, event);
|
|
4353
|
+
copyToClipboard(editor, objectKlassEquals(event, ClipboardEvent) ? event : null);
|
|
4353
4354
|
return true;
|
|
4354
4355
|
},
|
|
4355
4356
|
COMMAND_PRIORITY_HIGH2
|
|
@@ -4357,7 +4358,7 @@ function RichishCopyAndPastePlugin() {
|
|
|
4357
4358
|
editor.registerCommand(
|
|
4358
4359
|
CUT_COMMAND,
|
|
4359
4360
|
(event) => {
|
|
4360
|
-
copyToClipboard(editor, event);
|
|
4361
|
+
copyToClipboard(editor, objectKlassEquals(event, ClipboardEvent) ? event : null);
|
|
4361
4362
|
editor.update(() => {
|
|
4362
4363
|
const selection = $getSelection3();
|
|
4363
4364
|
if ($isRangeSelection3(selection)) {
|
package/dist/index.js
CHANGED
|
@@ -4492,6 +4492,7 @@ var import_LexicalContentEditable = require("@lexical/react/LexicalContentEditab
|
|
|
4492
4492
|
var import_LexicalErrorBoundary = __toESM(require("@lexical/react/LexicalErrorBoundary"));
|
|
4493
4493
|
var import_LexicalHistoryPlugin = require("@lexical/react/LexicalHistoryPlugin");
|
|
4494
4494
|
var import_LexicalPlainTextPlugin = require("@lexical/react/LexicalPlainTextPlugin");
|
|
4495
|
+
var import_utils2 = require("@lexical/utils");
|
|
4495
4496
|
var import_lexical9 = require("lexical");
|
|
4496
4497
|
var import_react46 = require("react");
|
|
4497
4498
|
var import_jsx_runtime38 = require("@emotion/react/jsx-runtime");
|
|
@@ -4515,7 +4516,7 @@ function RichishCopyAndPastePlugin() {
|
|
|
4515
4516
|
editor.registerCommand(
|
|
4516
4517
|
import_lexical9.COPY_COMMAND,
|
|
4517
4518
|
(event) => {
|
|
4518
|
-
(0, import_clipboard.copyToClipboard)(editor, event);
|
|
4519
|
+
(0, import_clipboard.copyToClipboard)(editor, (0, import_utils2.objectKlassEquals)(event, ClipboardEvent) ? event : null);
|
|
4519
4520
|
return true;
|
|
4520
4521
|
},
|
|
4521
4522
|
import_lexical9.COMMAND_PRIORITY_HIGH
|
|
@@ -4523,7 +4524,7 @@ function RichishCopyAndPastePlugin() {
|
|
|
4523
4524
|
editor.registerCommand(
|
|
4524
4525
|
import_lexical9.CUT_COMMAND,
|
|
4525
4526
|
(event) => {
|
|
4526
|
-
(0, import_clipboard.copyToClipboard)(editor, event);
|
|
4527
|
+
(0, import_clipboard.copyToClipboard)(editor, (0, import_utils2.objectKlassEquals)(event, ClipboardEvent) ? event : null);
|
|
4527
4528
|
editor.update(() => {
|
|
4528
4529
|
const selection = (0, import_lexical9.$getSelection)();
|
|
4529
4530
|
if ((0, import_lexical9.$isRangeSelection)(selection)) {
|
package/dist/index.mjs
CHANGED
|
@@ -4318,6 +4318,7 @@ import { ContentEditable } from "@lexical/react/LexicalContentEditable";
|
|
|
4318
4318
|
import LexicalErrorBoundary from "@lexical/react/LexicalErrorBoundary";
|
|
4319
4319
|
import { HistoryPlugin } from "@lexical/react/LexicalHistoryPlugin";
|
|
4320
4320
|
import { PlainTextPlugin } from "@lexical/react/LexicalPlainTextPlugin";
|
|
4321
|
+
import { objectKlassEquals } from "@lexical/utils";
|
|
4321
4322
|
import {
|
|
4322
4323
|
$getSelection as $getSelection3,
|
|
4323
4324
|
$isNodeSelection as $isNodeSelection2,
|
|
@@ -4349,7 +4350,7 @@ function RichishCopyAndPastePlugin() {
|
|
|
4349
4350
|
editor.registerCommand(
|
|
4350
4351
|
COPY_COMMAND,
|
|
4351
4352
|
(event) => {
|
|
4352
|
-
copyToClipboard(editor, event);
|
|
4353
|
+
copyToClipboard(editor, objectKlassEquals(event, ClipboardEvent) ? event : null);
|
|
4353
4354
|
return true;
|
|
4354
4355
|
},
|
|
4355
4356
|
COMMAND_PRIORITY_HIGH2
|
|
@@ -4357,7 +4358,7 @@ function RichishCopyAndPastePlugin() {
|
|
|
4357
4358
|
editor.registerCommand(
|
|
4358
4359
|
CUT_COMMAND,
|
|
4359
4360
|
(event) => {
|
|
4360
|
-
copyToClipboard(editor, event);
|
|
4361
|
+
copyToClipboard(editor, objectKlassEquals(event, ClipboardEvent) ? event : null);
|
|
4361
4362
|
editor.update(() => {
|
|
4362
4363
|
const selection = $getSelection3();
|
|
4363
4364
|
if ($isRangeSelection3(selection)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk-react",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.40.1-alpha.16+810fa24de",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK for React",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"@lexical/react": "^0.11.3",
|
|
49
49
|
"@lexical/selection": "^0.11.3",
|
|
50
50
|
"@lexical/utils": "^0.11.3",
|
|
51
|
-
"@uniformdev/canvas": "19.
|
|
52
|
-
"@uniformdev/design-system": "19.
|
|
53
|
-
"@uniformdev/mesh-sdk": "19.
|
|
51
|
+
"@uniformdev/canvas": "19.40.1-alpha.16+810fa24de",
|
|
52
|
+
"@uniformdev/design-system": "19.40.1-alpha.16+810fa24de",
|
|
53
|
+
"@uniformdev/mesh-sdk": "19.40.1-alpha.16+810fa24de",
|
|
54
54
|
"dequal": "^2.0.3",
|
|
55
55
|
"lexical": "^0.11.3",
|
|
56
56
|
"mitt": "^3.0.0",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"publishConfig": {
|
|
86
86
|
"access": "public"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "810fa24de01ecdc5411e39456f2b5341db908cb0"
|
|
89
89
|
}
|