@atlaskit/editor-plugin-paste 7.4.6 → 7.4.8
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-paste
|
|
2
2
|
|
|
3
|
+
## 7.4.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c94c7bb357496`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c94c7bb357496) -
|
|
8
|
+
[ux] EDITOR-3317 Fix beahavior when pasting paragraph from panel into list inside panel
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 7.4.7
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`a05464ea42678`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a05464ea42678) -
|
|
16
|
+
EDITOR-2791 bump adf-schema
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 7.4.6
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -42,6 +42,7 @@ var _utils2 = require("@atlaskit/editor-prosemirror/utils");
|
|
|
42
42
|
var _utils3 = require("@atlaskit/editor-tables/utils");
|
|
43
43
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
44
44
|
var _prosemirrorHistory = require("@atlaskit/prosemirror-history");
|
|
45
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
45
46
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
46
47
|
var _commands = require("../../editor-commands/commands");
|
|
47
48
|
var _pluginFactory = require("../plugin-factory");
|
|
@@ -101,7 +102,7 @@ function handleMention(slice, schema) {
|
|
|
101
102
|
}
|
|
102
103
|
function handlePasteIntoTaskOrDecisionOrPanel(slice, queueCardsFromChangedTr) {
|
|
103
104
|
return function (state, dispatch) {
|
|
104
|
-
var _slice$content$firstC, _slice$content$firstC2, _transformedSlice$con;
|
|
105
|
+
var _slice$content$firstC, _slice$content$firstC2, _slice$content$firstC3, _transformedSlice$con;
|
|
105
106
|
var schema = state.schema,
|
|
106
107
|
selection = state.tr.selection;
|
|
107
108
|
var codeMark = schema.marks.code,
|
|
@@ -124,12 +125,16 @@ function handlePasteIntoTaskOrDecisionOrPanel(slice, queueCardsFromChangedTr) {
|
|
|
124
125
|
var selectionIsValidNode = state.selection instanceof _state.NodeSelection && ['decisionList', 'decisionItem', 'taskList', 'taskItem'].includes(state.selection.node.type.name);
|
|
125
126
|
var selectionHasValidParentNode = (0, _utils2.hasParentNodeOfType)([decisionItem, taskItem, panel])(state.selection);
|
|
126
127
|
var selectionIsCodeBlock = (0, _utils2.hasParentNodeOfType)([codeBlock])(state.selection);
|
|
128
|
+
var selectionIsListItem = (0, _utils2.hasParentNodeOfType)([listItem])(state.selection);
|
|
127
129
|
var panelNode = (0, _index.isSelectionInsidePanel)(selection);
|
|
128
130
|
var selectionIsPanel = Boolean(panelNode);
|
|
131
|
+
var isSliceWholePanel = ((_slice$content$firstC = slice.content.firstChild) === null || _slice$content$firstC === void 0 ? void 0 : _slice$content$firstC.type) === panel && slice.openStart === 0 && slice.openEnd === 0;
|
|
129
132
|
|
|
130
133
|
// we avoid handling codeBlock-in-panel use case in this function
|
|
131
134
|
// returning false will allow code to flow into `handleCodeBlock` function
|
|
132
|
-
|
|
135
|
+
// Partial content copied from panels will have panel in the slice
|
|
136
|
+
// Return false to avoid handling this situation when pasted into list in panel and let `handlePastePanelOrDecisionContentIntoList` handle it
|
|
137
|
+
if (selectionIsPanel && (selectionIsCodeBlock || selectionIsListItem && !isSliceWholePanel && (0, _expValEquals.expValEquals)('platform_editor_pasting_text_in_panel', 'isEnabled', true))) {
|
|
133
138
|
return false;
|
|
134
139
|
}
|
|
135
140
|
|
|
@@ -152,7 +157,7 @@ function handlePasteIntoTaskOrDecisionOrPanel(slice, queueCardsFromChangedTr) {
|
|
|
152
157
|
var selectionIsTaskOrDecision = (0, _utils2.hasParentNode)(function (node) {
|
|
153
158
|
return node.type === taskItem || node.type === decisionItem;
|
|
154
159
|
})(selection);
|
|
155
|
-
var sliceIsAPanelReceivingLowDepthText = selectionIsPanel && !selectionIsTaskOrDecision && ((_slice$content$
|
|
160
|
+
var sliceIsAPanelReceivingLowDepthText = selectionIsPanel && !selectionIsTaskOrDecision && ((_slice$content$firstC2 = slice.content.firstChild) === null || _slice$content$firstC2 === void 0 ? void 0 : _slice$content$firstC2.type) === paragraph && slice.openEnd < 2;
|
|
156
161
|
if (sliceIsInvalid || sliceIsAPanelReceivingLowDepthText || !selectionIsValidNode && !selectionHasValidParentNode) {
|
|
157
162
|
return false;
|
|
158
163
|
}
|
|
@@ -165,7 +170,7 @@ function handlePasteIntoTaskOrDecisionOrPanel(slice, queueCardsFromChangedTr) {
|
|
|
165
170
|
var transformedSlice = compose.apply(null, filters)(slice);
|
|
166
171
|
var isFirstChildTaskNode = transformedSlice.content.firstChild.type === taskList || transformedSlice.content.firstChild.type === taskItem;
|
|
167
172
|
var tr = (0, _prosemirrorHistory.closeHistory)(state.tr);
|
|
168
|
-
if (panelNode && sliceHasTask && ((_slice$content$
|
|
173
|
+
if (panelNode && sliceHasTask && ((_slice$content$firstC3 = slice.content.firstChild) === null || _slice$content$firstC3 === void 0 ? void 0 : _slice$content$firstC3.type) === panel && (0, _index.isEmptyNode)(panelNode) && selection.$from.node() === selection.$to.node()) {
|
|
169
174
|
return Boolean((0, _lists.insertSliceInsideOfPanelNodeSelected)(panelNode)({
|
|
170
175
|
tr: tr,
|
|
171
176
|
slice: slice
|
|
@@ -225,7 +230,7 @@ function handlePasteIntoTaskOrDecisionOrPanel(slice, queueCardsFromChangedTr) {
|
|
|
225
230
|
}
|
|
226
231
|
function handlePasteNonNestableBlockNodesIntoList(slice) {
|
|
227
232
|
return function (state, dispatch) {
|
|
228
|
-
var _tr$doc$nodeAt, _slice$content$
|
|
233
|
+
var _tr$doc$nodeAt, _slice$content$firstC4, _sliceContent$firstCh, _findParentNodeOfType;
|
|
229
234
|
var tr = state.tr;
|
|
230
235
|
var selection = tr.selection;
|
|
231
236
|
var $from = selection.$from,
|
|
@@ -292,7 +297,7 @@ function handlePasteNonNestableBlockNodesIntoList(slice) {
|
|
|
292
297
|
}
|
|
293
298
|
|
|
294
299
|
// handle the insertion of the slice
|
|
295
|
-
if (((_slice$content$
|
|
300
|
+
if (((_slice$content$firstC4 = slice.content.firstChild) === null || _slice$content$firstC4 === void 0 ? void 0 : _slice$content$firstC4.type.name) === 'blockquote' && (0, _utils2.contains)(slice.content.firstChild, state.schema.nodes.listItem)) {
|
|
296
301
|
(0, _edgeCases.insertSliceInsideBlockquote)({
|
|
297
302
|
tr: tr,
|
|
298
303
|
slice: slice
|
|
@@ -1193,8 +1198,8 @@ var handleSelectedTable = exports.handleSelectedTable = function handleSelectedT
|
|
|
1193
1198
|
};
|
|
1194
1199
|
};
|
|
1195
1200
|
function checkTaskListInList(state, slice) {
|
|
1196
|
-
var _slice$content$
|
|
1197
|
-
return Boolean((0, _utils.isInListItem)(state) && ['taskList', 'taskItem'].includes(((_slice$content$
|
|
1201
|
+
var _slice$content$firstC5;
|
|
1202
|
+
return Boolean((0, _utils.isInListItem)(state) && ['taskList', 'taskItem'].includes(((_slice$content$firstC5 = slice.content.firstChild) === null || _slice$content$firstC5 === void 0 || (_slice$content$firstC5 = _slice$content$firstC5.type) === null || _slice$content$firstC5 === void 0 ? void 0 : _slice$content$firstC5.name) || ''));
|
|
1198
1203
|
}
|
|
1199
1204
|
function checkIfSelectionInNestedList(state) {
|
|
1200
1205
|
var selection = state.selection,
|
|
@@ -12,6 +12,7 @@ import { canInsert, contains, findParentNodeOfType, findParentNodeOfTypeClosestT
|
|
|
12
12
|
import { replaceSelectedTable } from '@atlaskit/editor-tables/utils';
|
|
13
13
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
14
|
import { closeHistory } from '@atlaskit/prosemirror-history';
|
|
15
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
15
16
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
16
17
|
// TODO: ED-20519 - Needs Macro extraction
|
|
17
18
|
|
|
@@ -64,7 +65,7 @@ export function handleMention(slice, schema) {
|
|
|
64
65
|
}
|
|
65
66
|
export function handlePasteIntoTaskOrDecisionOrPanel(slice, queueCardsFromChangedTr) {
|
|
66
67
|
return (state, dispatch) => {
|
|
67
|
-
var _slice$content$firstC, _slice$content$firstC2, _transformedSlice$con;
|
|
68
|
+
var _slice$content$firstC, _slice$content$firstC2, _slice$content$firstC3, _transformedSlice$con;
|
|
68
69
|
const {
|
|
69
70
|
schema,
|
|
70
71
|
tr: {
|
|
@@ -96,12 +97,16 @@ export function handlePasteIntoTaskOrDecisionOrPanel(slice, queueCardsFromChange
|
|
|
96
97
|
const selectionIsValidNode = state.selection instanceof NodeSelection && ['decisionList', 'decisionItem', 'taskList', 'taskItem'].includes(state.selection.node.type.name);
|
|
97
98
|
const selectionHasValidParentNode = hasParentNodeOfType([decisionItem, taskItem, panel])(state.selection);
|
|
98
99
|
const selectionIsCodeBlock = hasParentNodeOfType([codeBlock])(state.selection);
|
|
100
|
+
const selectionIsListItem = hasParentNodeOfType([listItem])(state.selection);
|
|
99
101
|
const panelNode = isSelectionInsidePanel(selection);
|
|
100
102
|
const selectionIsPanel = Boolean(panelNode);
|
|
103
|
+
const isSliceWholePanel = ((_slice$content$firstC = slice.content.firstChild) === null || _slice$content$firstC === void 0 ? void 0 : _slice$content$firstC.type) === panel && slice.openStart === 0 && slice.openEnd === 0;
|
|
101
104
|
|
|
102
105
|
// we avoid handling codeBlock-in-panel use case in this function
|
|
103
106
|
// returning false will allow code to flow into `handleCodeBlock` function
|
|
104
|
-
|
|
107
|
+
// Partial content copied from panels will have panel in the slice
|
|
108
|
+
// Return false to avoid handling this situation when pasted into list in panel and let `handlePastePanelOrDecisionContentIntoList` handle it
|
|
109
|
+
if (selectionIsPanel && (selectionIsCodeBlock || selectionIsListItem && !isSliceWholePanel && expValEquals('platform_editor_pasting_text_in_panel', 'isEnabled', true))) {
|
|
105
110
|
return false;
|
|
106
111
|
}
|
|
107
112
|
|
|
@@ -122,7 +127,7 @@ export function handlePasteIntoTaskOrDecisionOrPanel(slice, queueCardsFromChange
|
|
|
122
127
|
// and it is not from a depth that would indicate it being from inside from another node (e.g. text from a decision)
|
|
123
128
|
// then we can rely on the default behaviour.
|
|
124
129
|
const selectionIsTaskOrDecision = hasParentNode(node => node.type === taskItem || node.type === decisionItem)(selection);
|
|
125
|
-
const sliceIsAPanelReceivingLowDepthText = selectionIsPanel && !selectionIsTaskOrDecision && ((_slice$content$
|
|
130
|
+
const sliceIsAPanelReceivingLowDepthText = selectionIsPanel && !selectionIsTaskOrDecision && ((_slice$content$firstC2 = slice.content.firstChild) === null || _slice$content$firstC2 === void 0 ? void 0 : _slice$content$firstC2.type) === paragraph && slice.openEnd < 2;
|
|
126
131
|
if (sliceIsInvalid || sliceIsAPanelReceivingLowDepthText || !selectionIsValidNode && !selectionHasValidParentNode) {
|
|
127
132
|
return false;
|
|
128
133
|
}
|
|
@@ -135,7 +140,7 @@ export function handlePasteIntoTaskOrDecisionOrPanel(slice, queueCardsFromChange
|
|
|
135
140
|
const transformedSlice = compose.apply(null, filters)(slice);
|
|
136
141
|
const isFirstChildTaskNode = transformedSlice.content.firstChild.type === taskList || transformedSlice.content.firstChild.type === taskItem;
|
|
137
142
|
const tr = closeHistory(state.tr);
|
|
138
|
-
if (panelNode && sliceHasTask && ((_slice$content$
|
|
143
|
+
if (panelNode && sliceHasTask && ((_slice$content$firstC3 = slice.content.firstChild) === null || _slice$content$firstC3 === void 0 ? void 0 : _slice$content$firstC3.type) === panel && isEmptyNode(panelNode) && selection.$from.node() === selection.$to.node()) {
|
|
139
144
|
return Boolean(insertSliceInsideOfPanelNodeSelected(panelNode)({
|
|
140
145
|
tr,
|
|
141
146
|
slice
|
|
@@ -195,7 +200,7 @@ export function handlePasteIntoTaskOrDecisionOrPanel(slice, queueCardsFromChange
|
|
|
195
200
|
}
|
|
196
201
|
export function handlePasteNonNestableBlockNodesIntoList(slice) {
|
|
197
202
|
return (state, dispatch) => {
|
|
198
|
-
var _tr$doc$nodeAt, _slice$content$
|
|
203
|
+
var _tr$doc$nodeAt, _slice$content$firstC4, _sliceContent$firstCh, _findParentNodeOfType;
|
|
199
204
|
const {
|
|
200
205
|
tr
|
|
201
206
|
} = state;
|
|
@@ -269,7 +274,7 @@ export function handlePasteNonNestableBlockNodesIntoList(slice) {
|
|
|
269
274
|
}
|
|
270
275
|
|
|
271
276
|
// handle the insertion of the slice
|
|
272
|
-
if (((_slice$content$
|
|
277
|
+
if (((_slice$content$firstC4 = slice.content.firstChild) === null || _slice$content$firstC4 === void 0 ? void 0 : _slice$content$firstC4.type.name) === 'blockquote' && contains(slice.content.firstChild, state.schema.nodes.listItem)) {
|
|
273
278
|
insertSliceInsideBlockquote({
|
|
274
279
|
tr,
|
|
275
280
|
slice
|
|
@@ -1172,8 +1177,8 @@ export const handleSelectedTable = editorAnalyticsAPI => slice => (state, dispat
|
|
|
1172
1177
|
return false;
|
|
1173
1178
|
};
|
|
1174
1179
|
export function checkTaskListInList(state, slice) {
|
|
1175
|
-
var _slice$content$
|
|
1176
|
-
return Boolean(isInListItem(state) && ['taskList', 'taskItem'].includes(((_slice$content$
|
|
1180
|
+
var _slice$content$firstC5, _slice$content$firstC6;
|
|
1181
|
+
return Boolean(isInListItem(state) && ['taskList', 'taskItem'].includes(((_slice$content$firstC5 = slice.content.firstChild) === null || _slice$content$firstC5 === void 0 ? void 0 : (_slice$content$firstC6 = _slice$content$firstC5.type) === null || _slice$content$firstC6 === void 0 ? void 0 : _slice$content$firstC6.name) || ''));
|
|
1177
1182
|
}
|
|
1178
1183
|
export function checkIfSelectionInNestedList(state) {
|
|
1179
1184
|
const {
|
|
@@ -20,6 +20,7 @@ import { canInsert, contains, findParentNodeOfType, findParentNodeOfTypeClosestT
|
|
|
20
20
|
import { replaceSelectedTable } from '@atlaskit/editor-tables/utils';
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import { closeHistory } from '@atlaskit/prosemirror-history';
|
|
23
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
23
24
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
24
25
|
// TODO: ED-20519 - Needs Macro extraction
|
|
25
26
|
|
|
@@ -75,7 +76,7 @@ export function handleMention(slice, schema) {
|
|
|
75
76
|
}
|
|
76
77
|
export function handlePasteIntoTaskOrDecisionOrPanel(slice, queueCardsFromChangedTr) {
|
|
77
78
|
return function (state, dispatch) {
|
|
78
|
-
var _slice$content$firstC, _slice$content$firstC2, _transformedSlice$con;
|
|
79
|
+
var _slice$content$firstC, _slice$content$firstC2, _slice$content$firstC3, _transformedSlice$con;
|
|
79
80
|
var schema = state.schema,
|
|
80
81
|
selection = state.tr.selection;
|
|
81
82
|
var codeMark = schema.marks.code,
|
|
@@ -98,12 +99,16 @@ export function handlePasteIntoTaskOrDecisionOrPanel(slice, queueCardsFromChange
|
|
|
98
99
|
var selectionIsValidNode = state.selection instanceof NodeSelection && ['decisionList', 'decisionItem', 'taskList', 'taskItem'].includes(state.selection.node.type.name);
|
|
99
100
|
var selectionHasValidParentNode = hasParentNodeOfType([decisionItem, taskItem, panel])(state.selection);
|
|
100
101
|
var selectionIsCodeBlock = hasParentNodeOfType([codeBlock])(state.selection);
|
|
102
|
+
var selectionIsListItem = hasParentNodeOfType([listItem])(state.selection);
|
|
101
103
|
var panelNode = isSelectionInsidePanel(selection);
|
|
102
104
|
var selectionIsPanel = Boolean(panelNode);
|
|
105
|
+
var isSliceWholePanel = ((_slice$content$firstC = slice.content.firstChild) === null || _slice$content$firstC === void 0 ? void 0 : _slice$content$firstC.type) === panel && slice.openStart === 0 && slice.openEnd === 0;
|
|
103
106
|
|
|
104
107
|
// we avoid handling codeBlock-in-panel use case in this function
|
|
105
108
|
// returning false will allow code to flow into `handleCodeBlock` function
|
|
106
|
-
|
|
109
|
+
// Partial content copied from panels will have panel in the slice
|
|
110
|
+
// Return false to avoid handling this situation when pasted into list in panel and let `handlePastePanelOrDecisionContentIntoList` handle it
|
|
111
|
+
if (selectionIsPanel && (selectionIsCodeBlock || selectionIsListItem && !isSliceWholePanel && expValEquals('platform_editor_pasting_text_in_panel', 'isEnabled', true))) {
|
|
107
112
|
return false;
|
|
108
113
|
}
|
|
109
114
|
|
|
@@ -126,7 +131,7 @@ export function handlePasteIntoTaskOrDecisionOrPanel(slice, queueCardsFromChange
|
|
|
126
131
|
var selectionIsTaskOrDecision = hasParentNode(function (node) {
|
|
127
132
|
return node.type === taskItem || node.type === decisionItem;
|
|
128
133
|
})(selection);
|
|
129
|
-
var sliceIsAPanelReceivingLowDepthText = selectionIsPanel && !selectionIsTaskOrDecision && ((_slice$content$
|
|
134
|
+
var sliceIsAPanelReceivingLowDepthText = selectionIsPanel && !selectionIsTaskOrDecision && ((_slice$content$firstC2 = slice.content.firstChild) === null || _slice$content$firstC2 === void 0 ? void 0 : _slice$content$firstC2.type) === paragraph && slice.openEnd < 2;
|
|
130
135
|
if (sliceIsInvalid || sliceIsAPanelReceivingLowDepthText || !selectionIsValidNode && !selectionHasValidParentNode) {
|
|
131
136
|
return false;
|
|
132
137
|
}
|
|
@@ -139,7 +144,7 @@ export function handlePasteIntoTaskOrDecisionOrPanel(slice, queueCardsFromChange
|
|
|
139
144
|
var transformedSlice = compose.apply(null, filters)(slice);
|
|
140
145
|
var isFirstChildTaskNode = transformedSlice.content.firstChild.type === taskList || transformedSlice.content.firstChild.type === taskItem;
|
|
141
146
|
var tr = closeHistory(state.tr);
|
|
142
|
-
if (panelNode && sliceHasTask && ((_slice$content$
|
|
147
|
+
if (panelNode && sliceHasTask && ((_slice$content$firstC3 = slice.content.firstChild) === null || _slice$content$firstC3 === void 0 ? void 0 : _slice$content$firstC3.type) === panel && isEmptyNode(panelNode) && selection.$from.node() === selection.$to.node()) {
|
|
143
148
|
return Boolean(insertSliceInsideOfPanelNodeSelected(panelNode)({
|
|
144
149
|
tr: tr,
|
|
145
150
|
slice: slice
|
|
@@ -199,7 +204,7 @@ export function handlePasteIntoTaskOrDecisionOrPanel(slice, queueCardsFromChange
|
|
|
199
204
|
}
|
|
200
205
|
export function handlePasteNonNestableBlockNodesIntoList(slice) {
|
|
201
206
|
return function (state, dispatch) {
|
|
202
|
-
var _tr$doc$nodeAt, _slice$content$
|
|
207
|
+
var _tr$doc$nodeAt, _slice$content$firstC4, _sliceContent$firstCh, _findParentNodeOfType;
|
|
203
208
|
var tr = state.tr;
|
|
204
209
|
var selection = tr.selection;
|
|
205
210
|
var $from = selection.$from,
|
|
@@ -266,7 +271,7 @@ export function handlePasteNonNestableBlockNodesIntoList(slice) {
|
|
|
266
271
|
}
|
|
267
272
|
|
|
268
273
|
// handle the insertion of the slice
|
|
269
|
-
if (((_slice$content$
|
|
274
|
+
if (((_slice$content$firstC4 = slice.content.firstChild) === null || _slice$content$firstC4 === void 0 ? void 0 : _slice$content$firstC4.type.name) === 'blockquote' && contains(slice.content.firstChild, state.schema.nodes.listItem)) {
|
|
270
275
|
insertSliceInsideBlockquote({
|
|
271
276
|
tr: tr,
|
|
272
277
|
slice: slice
|
|
@@ -1167,8 +1172,8 @@ export var handleSelectedTable = function handleSelectedTable(editorAnalyticsAPI
|
|
|
1167
1172
|
};
|
|
1168
1173
|
};
|
|
1169
1174
|
export function checkTaskListInList(state, slice) {
|
|
1170
|
-
var _slice$content$
|
|
1171
|
-
return Boolean(isInListItem(state) && ['taskList', 'taskItem'].includes(((_slice$content$
|
|
1175
|
+
var _slice$content$firstC5;
|
|
1176
|
+
return Boolean(isInListItem(state) && ['taskList', 'taskItem'].includes(((_slice$content$firstC5 = slice.content.firstChild) === null || _slice$content$firstC5 === void 0 || (_slice$content$firstC5 = _slice$content$firstC5.type) === null || _slice$content$firstC5 === void 0 ? void 0 : _slice$content$firstC5.name) || ''));
|
|
1172
1177
|
}
|
|
1173
1178
|
export function checkIfSelectionInNestedList(state) {
|
|
1174
1179
|
var selection = state.selection,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-paste",
|
|
3
|
-
"version": "7.4.
|
|
3
|
+
"version": "7.4.8",
|
|
4
4
|
"description": "Paste plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"atlaskit:src": "src/index.ts",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@atlaskit/adf-schema": "^51.
|
|
30
|
+
"@atlaskit/adf-schema": "^51.4.0",
|
|
31
31
|
"@atlaskit/code": "^17.3.0",
|
|
32
32
|
"@atlaskit/editor-markdown-transformer": "^5.20.0",
|
|
33
33
|
"@atlaskit/editor-plugin-analytics": "^6.2.0",
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"@atlaskit/media-client": "^35.6.0",
|
|
45
45
|
"@atlaskit/media-common": "^12.3.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^13.40.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
49
|
"lodash": "^4.17.21",
|
|
50
50
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
51
51
|
"uuid": "^3.1.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@atlaskit/editor-common": "^110.
|
|
54
|
+
"@atlaskit/editor-common": "^110.33.0",
|
|
55
55
|
"react": "^18.2.0",
|
|
56
56
|
"react-dom": "^18.2.0"
|
|
57
57
|
},
|