@atlaskit/editor-plugin-paste 1.2.2 → 1.2.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/LICENSE.md CHANGED
@@ -1,13 +1,11 @@
1
1
  Copyright 2023 Atlassian Pty Ltd
2
2
 
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
4
+ compliance with the License. You may obtain a copy of the License at
6
5
 
7
6
  http://www.apache.org/licenses/LICENSE-2.0
8
7
 
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.
8
+ Unless required by applicable law or agreed to in writing, software distributed under the License is
9
+ distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10
+ implied. See the License for the specific language governing permissions and limitations under the
11
+ License.
@@ -85,8 +85,8 @@ function insertSliceInsideOfPanelNodeSelected(panelNode) {
85
85
  var insertPosition = $to.pos + 1;
86
86
 
87
87
  /* Adapting above logic to handle MBE, as it currently assumes that slice can be safely inserted after the panel node, which is not the case for MBE
88
- If insertPosition is in MBE and current slice contains invalid content for MBE, we need to insert the slice after the MBE node
89
- */
88
+ If insertPosition is in MBE and current slice contains invalid content for MBE, we need to insert the slice after the MBE node
89
+ */
90
90
  if (schema && (0, _platformFeatureFlags.getBooleanFF)('platform.editor.multi-bodied-extension_0rygg')) {
91
91
  var mbeParentOfPanel = (0, _utils2.findParentNodeOfType)(schema.nodes.multiBodiedExtension)(selection);
92
92
  if (mbeParentOfPanel && !mbeParentOfPanel.node.type.validContent(_model.Fragment.from(slice.content))) {
@@ -73,7 +73,11 @@ function compose(func) {
73
73
  // remove text attribute from mention for copy/paste (GDPR)
74
74
  function handleMention(slice, schema) {
75
75
  return (0, _utils.mapSlice)(slice, function (node) {
76
- if (node.type.name === schema.nodes.mention.name) {
76
+ var _schema$nodes$mention;
77
+ // We should move this to the mention plugin when we refactor how paste works in the future
78
+ // For now we can just null check mention exists in the schema to ensure we don't crash if it doesn't
79
+ // exist.
80
+ if (node.type.name === ((_schema$nodes$mention = schema.nodes.mention) === null || _schema$nodes$mention === void 0 ? void 0 : _schema$nodes$mention.name)) {
77
81
  var mention = node.attrs;
78
82
  var newMention = _objectSpread(_objectSpread({}, mention), {}, {
79
83
  text: ''
@@ -91,8 +91,8 @@ export function insertSliceInsideOfPanelNodeSelected(panelNode) {
91
91
  let insertPosition = $to.pos + 1;
92
92
 
93
93
  /* Adapting above logic to handle MBE, as it currently assumes that slice can be safely inserted after the panel node, which is not the case for MBE
94
- If insertPosition is in MBE and current slice contains invalid content for MBE, we need to insert the slice after the MBE node
95
- */
94
+ If insertPosition is in MBE and current slice contains invalid content for MBE, we need to insert the slice after the MBE node
95
+ */
96
96
  if (schema && getBooleanFF('platform.editor.multi-bodied-extension_0rygg')) {
97
97
  const mbeParentOfPanel = findParentNodeOfType(schema.nodes.multiBodiedExtension)(selection);
98
98
  if (mbeParentOfPanel && !mbeParentOfPanel.node.type.validContent(Fragment.from(slice.content))) {
@@ -37,7 +37,11 @@ function compose(func, ...funcs) {
37
37
  // remove text attribute from mention for copy/paste (GDPR)
38
38
  export function handleMention(slice, schema) {
39
39
  return mapSlice(slice, node => {
40
- if (node.type.name === schema.nodes.mention.name) {
40
+ var _schema$nodes$mention;
41
+ // We should move this to the mention plugin when we refactor how paste works in the future
42
+ // For now we can just null check mention exists in the schema to ensure we don't crash if it doesn't
43
+ // exist.
44
+ if (node.type.name === ((_schema$nodes$mention = schema.nodes.mention) === null || _schema$nodes$mention === void 0 ? void 0 : _schema$nodes$mention.name)) {
41
45
  const mention = node.attrs;
42
46
  const newMention = {
43
47
  ...mention,
@@ -76,8 +76,8 @@ export function insertSliceInsideOfPanelNodeSelected(panelNode) {
76
76
  var insertPosition = $to.pos + 1;
77
77
 
78
78
  /* Adapting above logic to handle MBE, as it currently assumes that slice can be safely inserted after the panel node, which is not the case for MBE
79
- If insertPosition is in MBE and current slice contains invalid content for MBE, we need to insert the slice after the MBE node
80
- */
79
+ If insertPosition is in MBE and current slice contains invalid content for MBE, we need to insert the slice after the MBE node
80
+ */
81
81
  if (schema && getBooleanFF('platform.editor.multi-bodied-extension_0rygg')) {
82
82
  var mbeParentOfPanel = findParentNodeOfType(schema.nodes.multiBodiedExtension)(selection);
83
83
  if (mbeParentOfPanel && !mbeParentOfPanel.node.type.validContent(Fragment.from(slice.content))) {
@@ -50,7 +50,11 @@ function compose(func) {
50
50
  // remove text attribute from mention for copy/paste (GDPR)
51
51
  export function handleMention(slice, schema) {
52
52
  return mapSlice(slice, function (node) {
53
- if (node.type.name === schema.nodes.mention.name) {
53
+ var _schema$nodes$mention;
54
+ // We should move this to the mention plugin when we refactor how paste works in the future
55
+ // For now we can just null check mention exists in the schema to ensure we don't crash if it doesn't
56
+ // exist.
57
+ if (node.type.name === ((_schema$nodes$mention = schema.nodes.mention) === null || _schema$nodes$mention === void 0 ? void 0 : _schema$nodes$mention.name)) {
54
58
  var mention = node.attrs;
55
59
  var newMention = _objectSpread(_objectSpread({}, mention), {}, {
56
60
  text: ''
@@ -12,7 +12,7 @@ export declare function insertSliceForListsInsideBlockquote({ tr, slice, }: {
12
12
  export declare function updateSelectionAfterReplace({ tr }: {
13
13
  tr: Transaction;
14
14
  }): Transaction | undefined;
15
- export declare function insertSliceForTaskInsideList({ tr, slice, }: {
15
+ export declare function insertSliceForTaskInsideList({ tr, slice }: {
16
16
  tr: Transaction;
17
17
  slice: PMSlice;
18
18
  }): void;
@@ -1,10 +1,10 @@
1
1
  import type { Node as PMNode, Schema, Slice } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { Transaction } from '@atlaskit/editor-prosemirror/state';
3
- export declare function insertSliceIntoEmptyNode({ tr, slice, }: {
3
+ export declare function insertSliceIntoEmptyNode({ tr, slice }: {
4
4
  tr: Transaction;
5
5
  slice: Slice;
6
6
  }): void;
7
- export declare function insertSliceAtNodeEdge({ tr, slice, }: {
7
+ export declare function insertSliceAtNodeEdge({ tr, slice }: {
8
8
  tr: Transaction;
9
9
  slice: Slice;
10
10
  }): void;
@@ -12,7 +12,7 @@ export declare function insertSliceIntoRangeSelectionInsideList({ tr, slice, }:
12
12
  tr: Transaction;
13
13
  slice: Slice;
14
14
  }): Transaction | undefined;
15
- export declare function insertSliceInsideOfPanelNodeSelected(panelNode: PMNode): ({ tr, slice, schema, }: {
15
+ export declare function insertSliceInsideOfPanelNodeSelected(panelNode: PMNode): ({ tr, slice, schema }: {
16
16
  tr: Transaction;
17
17
  slice: Slice;
18
18
  schema?: Schema<any, any> | undefined;
@@ -1,2 +1,2 @@
1
- export type { PastePlugin, PastePluginOptions, PastePluginState, LastContentPasted, } from './types';
1
+ export type { PastePlugin, PastePluginOptions, PastePluginState, LastContentPasted } from './types';
2
2
  export { pastePlugin } from './plugin';
@@ -12,7 +12,7 @@ export declare function insertSliceForListsInsideBlockquote({ tr, slice, }: {
12
12
  export declare function updateSelectionAfterReplace({ tr }: {
13
13
  tr: Transaction;
14
14
  }): Transaction | undefined;
15
- export declare function insertSliceForTaskInsideList({ tr, slice, }: {
15
+ export declare function insertSliceForTaskInsideList({ tr, slice }: {
16
16
  tr: Transaction;
17
17
  slice: PMSlice;
18
18
  }): void;
@@ -1,10 +1,10 @@
1
1
  import type { Node as PMNode, Schema, Slice } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { Transaction } from '@atlaskit/editor-prosemirror/state';
3
- export declare function insertSliceIntoEmptyNode({ tr, slice, }: {
3
+ export declare function insertSliceIntoEmptyNode({ tr, slice }: {
4
4
  tr: Transaction;
5
5
  slice: Slice;
6
6
  }): void;
7
- export declare function insertSliceAtNodeEdge({ tr, slice, }: {
7
+ export declare function insertSliceAtNodeEdge({ tr, slice }: {
8
8
  tr: Transaction;
9
9
  slice: Slice;
10
10
  }): void;
@@ -12,7 +12,7 @@ export declare function insertSliceIntoRangeSelectionInsideList({ tr, slice, }:
12
12
  tr: Transaction;
13
13
  slice: Slice;
14
14
  }): Transaction | undefined;
15
- export declare function insertSliceInsideOfPanelNodeSelected(panelNode: PMNode): ({ tr, slice, schema, }: {
15
+ export declare function insertSliceInsideOfPanelNodeSelected(panelNode: PMNode): ({ tr, slice, schema }: {
16
16
  tr: Transaction;
17
17
  slice: Slice;
18
18
  schema?: Schema<any, any> | undefined;
@@ -1,2 +1,2 @@
1
- export type { PastePlugin, PastePluginOptions, PastePluginState, LastContentPasted, } from './types';
1
+ export type { PastePlugin, PastePluginOptions, PastePluginState, LastContentPasted } from './types';
2
2
  export { pastePlugin } from './plugin';
package/package.json CHANGED
@@ -1,149 +1,147 @@
1
1
  {
2
- "name": "@atlaskit/editor-plugin-paste",
3
- "version": "1.2.2",
4
- "description": "Paste plugin for @atlaskit/editor-core",
5
- "author": "Atlassian Pty Ltd",
6
- "license": "Apache-2.0",
7
- "publishConfig": {
8
- "registry": "https://registry.npmjs.org/"
9
- },
10
- "atlassian": {
11
- "team": "Editor: Lego",
12
- "singleton": true,
13
- "inPublicMirror": false,
14
- "releaseModel": "continuous",
15
- "runReact18": false
16
- },
17
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
18
- "main": "dist/cjs/index.js",
19
- "module": "dist/esm/index.js",
20
- "module:es2019": "dist/es2019/index.js",
21
- "types": "dist/types/index.d.ts",
22
- "typesVersions": {
23
- ">=4.5 <4.9": {
24
- "*": [
25
- "dist/types-ts4.5/*",
26
- "dist/types-ts4.5/index.d.ts"
27
- ]
28
- }
29
- },
30
- "sideEffects": false,
31
- "atlaskit:src": "src/index.ts",
32
- "af:exports": {
33
- ".": "./src/index.ts"
34
- },
35
- "dependencies": {
36
- "@atlaskit/editor-common": "^81.0.0",
37
- "@atlaskit/editor-markdown-transformer": "^5.6.0",
38
- "@atlaskit/editor-plugin-analytics": "^1.2.0",
39
- "@atlaskit/editor-plugin-annotation": "^1.9.0",
40
- "@atlaskit/editor-plugin-better-type-history": "^1.2.0",
41
- "@atlaskit/editor-plugin-card": "^1.14.0",
42
- "@atlaskit/editor-plugin-feature-flags": "^1.1.0",
43
- "@atlaskit/editor-plugin-list": "^3.3.0",
44
- "@atlaskit/editor-plugin-media": "^1.20.0",
45
- "@atlaskit/editor-prosemirror": "4.0.1",
46
- "@atlaskit/editor-tables": "^2.7.0",
47
- "@atlaskit/media-client": "^27.0.0",
48
- "@atlaskit/media-common": "^11.2.0",
49
- "@atlaskit/platform-feature-flags": "^0.2.0",
50
- "@babel/runtime": "^7.0.0",
51
- "lodash": "^4.17.21",
52
- "uuid": "^3.1.0"
53
- },
54
- "peerDependencies": {
55
- "react": "^16.8.0"
56
- },
57
- "devDependencies": {
58
- "@af/visual-regression": "*",
59
- "@atlaskit/adf-schema": "^36.10.7",
60
- "@atlaskit/editor-plugin-block-type": "^3.4.0",
61
- "@atlaskit/editor-plugin-history": "^1.1.0",
62
- "@atlaskit/editor-plugin-type-ahead": "^1.2.0",
63
- "@atlaskit/ssr": "*",
64
- "@atlaskit/visual-regression": "*",
65
- "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
66
- "@atlassian/feature-flags-test-utils": "^0.2.0",
67
- "@testing-library/react": "^12.1.5",
68
- "react-dom": "^16.8.0",
69
- "typescript": "~5.4.2",
70
- "wait-for-expect": "^1.2.0"
71
- },
72
- "techstack": {
73
- "@atlassian/frontend": {
74
- "code-structure": [
75
- "tangerine-next"
76
- ],
77
- "import-structure": [
78
- "atlassian-conventions"
79
- ],
80
- "circular-dependencies": [
81
- "file-and-folder-level"
82
- ]
83
- },
84
- "@repo/internal": {
85
- "dom-events": "use-bind-event-listener",
86
- "analytics": [
87
- "analytics-next"
88
- ],
89
- "design-tokens": [
90
- "color"
91
- ],
92
- "theming": [
93
- "react-context"
94
- ],
95
- "ui-components": [
96
- "lite-mode"
97
- ],
98
- "deprecation": "no-deprecated-imports",
99
- "styling": [
100
- "emotion",
101
- "emotion"
102
- ],
103
- "imports": [
104
- "import-no-extraneous-disable-for-examples-and-docs"
105
- ]
106
- }
107
- },
108
- "techstackIgnore": {
109
- "stricter": [
110
- "@atlassian/tangerine/project-structure"
111
- ]
112
- },
113
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
114
- "platform-feature-flags": {
115
- "platform.editor.media.extended-resize-experience": {
116
- "type": "boolean"
117
- },
118
- "platform.editor.allow-extended-panel": {
119
- "type": "boolean"
120
- },
121
- "platform.editor.allow-action-in-list": {
122
- "type": "boolean"
123
- },
124
- "platform.editor.media.fix-copy-paste-excel_62g4s": {
125
- "type": "boolean"
126
- },
127
- "platform.editor.handle-paste-for-action-in-panel": {
128
- "type": "boolean"
129
- },
130
- "platform.editor.place-cursor-inside-text-block": {
131
- "type": "boolean"
132
- },
133
- "platform.editor.multi-bodied-extension_0rygg": {
134
- "type": "boolean"
135
- },
136
- "platform.editor.table.copy-paste-in-bodied-extension": {
137
- "type": "boolean"
138
- },
139
- "platform.editor.paste-markdown-table-in-a-table": {
140
- "type": "boolean"
141
- },
142
- "platform.editor.extractlistfromparagraphv2": {
143
- "type": "boolean"
144
- },
145
- "platform.editor.preserve-whitespace-clipboard-text-serialization": {
146
- "type": "boolean"
147
- }
148
- }
149
- }
2
+ "name": "@atlaskit/editor-plugin-paste",
3
+ "version": "1.2.4",
4
+ "description": "Paste plugin for @atlaskit/editor-core",
5
+ "author": "Atlassian Pty Ltd",
6
+ "license": "Apache-2.0",
7
+ "publishConfig": {
8
+ "registry": "https://registry.npmjs.org/"
9
+ },
10
+ "atlassian": {
11
+ "team": "Editor: Lego",
12
+ "singleton": true,
13
+ "inPublicMirror": false,
14
+ "releaseModel": "continuous",
15
+ "runReact18": false
16
+ },
17
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
18
+ "main": "dist/cjs/index.js",
19
+ "module": "dist/esm/index.js",
20
+ "module:es2019": "dist/es2019/index.js",
21
+ "types": "dist/types/index.d.ts",
22
+ "typesVersions": {
23
+ ">=4.5 <4.9": {
24
+ "*": [
25
+ "dist/types-ts4.5/*",
26
+ "dist/types-ts4.5/index.d.ts"
27
+ ]
28
+ }
29
+ },
30
+ "sideEffects": false,
31
+ "atlaskit:src": "src/index.ts",
32
+ "af:exports": {
33
+ ".": "./src/index.ts"
34
+ },
35
+ "dependencies": {
36
+ "@atlaskit/editor-common": "^82.8.0",
37
+ "@atlaskit/editor-markdown-transformer": "^5.6.0",
38
+ "@atlaskit/editor-plugin-analytics": "^1.2.0",
39
+ "@atlaskit/editor-plugin-annotation": "^1.10.0",
40
+ "@atlaskit/editor-plugin-better-type-history": "^1.2.0",
41
+ "@atlaskit/editor-plugin-card": "^2.0.0",
42
+ "@atlaskit/editor-plugin-feature-flags": "^1.1.0",
43
+ "@atlaskit/editor-plugin-list": "^3.3.0",
44
+ "@atlaskit/editor-plugin-media": "^1.20.0",
45
+ "@atlaskit/editor-prosemirror": "4.0.1",
46
+ "@atlaskit/editor-tables": "^2.7.0",
47
+ "@atlaskit/media-client": "^27.2.0",
48
+ "@atlaskit/media-common": "^11.2.0",
49
+ "@atlaskit/platform-feature-flags": "^0.2.0",
50
+ "@babel/runtime": "^7.0.0",
51
+ "lodash": "^4.17.21",
52
+ "uuid": "^3.1.0"
53
+ },
54
+ "peerDependencies": {
55
+ "react": "^16.8.0"
56
+ },
57
+ "devDependencies": {
58
+ "@af/visual-regression": "*",
59
+ "@atlaskit/adf-schema": "^36.10.7",
60
+ "@atlaskit/editor-plugin-block-type": "^3.6.0",
61
+ "@atlaskit/editor-plugin-history": "^1.1.0",
62
+ "@atlaskit/editor-plugin-type-ahead": "^1.2.0",
63
+ "@atlaskit/ssr": "*",
64
+ "@atlaskit/visual-regression": "*",
65
+ "@atlassian/feature-flags-test-utils": "^0.2.0",
66
+ "@testing-library/react": "^12.1.5",
67
+ "react-dom": "^16.8.0",
68
+ "typescript": "~5.4.2",
69
+ "wait-for-expect": "^1.2.0"
70
+ },
71
+ "techstack": {
72
+ "@atlassian/frontend": {
73
+ "code-structure": [
74
+ "tangerine-next"
75
+ ],
76
+ "import-structure": [
77
+ "atlassian-conventions"
78
+ ],
79
+ "circular-dependencies": [
80
+ "file-and-folder-level"
81
+ ]
82
+ },
83
+ "@repo/internal": {
84
+ "dom-events": "use-bind-event-listener",
85
+ "analytics": [
86
+ "analytics-next"
87
+ ],
88
+ "design-tokens": [
89
+ "color"
90
+ ],
91
+ "theming": [
92
+ "react-context"
93
+ ],
94
+ "ui-components": [
95
+ "lite-mode"
96
+ ],
97
+ "deprecation": "no-deprecated-imports",
98
+ "styling": [
99
+ "emotion",
100
+ "emotion"
101
+ ],
102
+ "imports": [
103
+ "import-no-extraneous-disable-for-examples-and-docs"
104
+ ]
105
+ }
106
+ },
107
+ "techstackIgnore": {
108
+ "stricter": [
109
+ "@atlassian/tangerine/project-structure"
110
+ ]
111
+ },
112
+ "platform-feature-flags": {
113
+ "platform.editor.media.extended-resize-experience": {
114
+ "type": "boolean"
115
+ },
116
+ "platform.editor.allow-extended-panel": {
117
+ "type": "boolean"
118
+ },
119
+ "platform.editor.allow-action-in-list": {
120
+ "type": "boolean"
121
+ },
122
+ "platform.editor.media.fix-copy-paste-excel_62g4s": {
123
+ "type": "boolean"
124
+ },
125
+ "platform.editor.handle-paste-for-action-in-panel": {
126
+ "type": "boolean"
127
+ },
128
+ "platform.editor.place-cursor-inside-text-block": {
129
+ "type": "boolean"
130
+ },
131
+ "platform.editor.multi-bodied-extension_0rygg": {
132
+ "type": "boolean"
133
+ },
134
+ "platform.editor.table.copy-paste-in-bodied-extension": {
135
+ "type": "boolean"
136
+ },
137
+ "platform.editor.paste-markdown-table-in-a-table": {
138
+ "type": "boolean"
139
+ },
140
+ "platform.editor.extractlistfromparagraphv2": {
141
+ "type": "boolean"
142
+ },
143
+ "platform.editor.preserve-whitespace-clipboard-text-serialization": {
144
+ "type": "boolean"
145
+ }
146
+ }
147
+ }
package/report.api.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  ## API Report File for "@atlaskit/editor-plugin-paste"
4
4
 
5
- > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
5
+ > Do not edit this file. This report is auto-generated using
6
+ > [API Extractor](https://api-extractor.com/).
6
7
  > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
7
8
 
8
9
  ### Table of contents
@@ -30,49 +31,49 @@ import type { Slice } from '@atlaskit/editor-prosemirror/model';
30
31
 
31
32
  // @public (undocumented)
32
33
  export type LastContentPasted = {
33
- isPlainText: boolean;
34
- text?: string;
35
- isShiftPressed: boolean;
36
- pasteStartPos: number;
37
- pasteEndPos: number;
38
- pastedSlice: Slice;
39
- pastedAt: number;
40
- pasteSource: PasteSource;
34
+ isPlainText: boolean;
35
+ text?: string;
36
+ isShiftPressed: boolean;
37
+ pasteStartPos: number;
38
+ pasteEndPos: number;
39
+ pastedSlice: Slice;
40
+ pastedAt: number;
41
+ pasteSource: PasteSource;
41
42
  };
42
43
 
43
44
  // @public (undocumented)
44
45
  export type PastePlugin = NextEditorPlugin<
45
- 'paste',
46
- {
47
- pluginConfiguration: PastePluginOptions;
48
- dependencies: [
49
- OptionalPlugin<FeatureFlagsPlugin>,
50
- OptionalPlugin<ListPlugin>,
51
- BetterTypeHistoryPlugin,
52
- OptionalPlugin<CardPlugin>,
53
- OptionalPlugin<AnalyticsPlugin>,
54
- OptionalPlugin<MediaPlugin>,
55
- OptionalPlugin<ExtensionPlugin>,
56
- ];
57
- sharedState: {
58
- lastContentPasted: LastContentPasted | null;
59
- };
60
- }
46
+ 'paste',
47
+ {
48
+ pluginConfiguration: PastePluginOptions;
49
+ dependencies: [
50
+ OptionalPlugin<FeatureFlagsPlugin>,
51
+ OptionalPlugin<ListPlugin>,
52
+ BetterTypeHistoryPlugin,
53
+ OptionalPlugin<CardPlugin>,
54
+ OptionalPlugin<AnalyticsPlugin>,
55
+ OptionalPlugin<MediaPlugin>,
56
+ OptionalPlugin<ExtensionPlugin>,
57
+ ];
58
+ sharedState: {
59
+ lastContentPasted: LastContentPasted | null;
60
+ };
61
+ }
61
62
  >;
62
63
 
63
64
  // @public (undocumented)
64
65
  export type PastePluginOptions = {
65
- cardOptions?: CardOptions;
66
- sanitizePrivateContent?: boolean;
66
+ cardOptions?: CardOptions;
67
+ sanitizePrivateContent?: boolean;
67
68
  };
68
69
 
69
70
  // @public (undocumented)
70
71
  export interface PastePluginState {
71
- // (undocumented)
72
- lastContentPasted: LastContentPasted | null;
73
- pastedMacroPositions: {
74
- [key: string]: number;
75
- };
72
+ // (undocumented)
73
+ lastContentPasted: LastContentPasted | null;
74
+ pastedMacroPositions: {
75
+ [key: string]: number;
76
+ };
76
77
  }
77
78
 
78
79
  // (No @packageDocumentation comment for this package)
@@ -86,7 +87,7 @@ export interface PastePluginState {
86
87
 
87
88
  ```json
88
89
  {
89
- "react": "^16.8.0"
90
+ "react": "^16.8.0"
90
91
  }
91
92
  ```
92
93