@atlaskit/editor-common 119.9.0 → 119.9.1
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,13 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 119.9.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`4d7433f9c93d8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4d7433f9c93d8) -
|
|
8
|
+
Clean up the enabled `platform_editor_code_block_fold_gutter` experiment for Confluence.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 119.9.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -158,9 +158,7 @@ var setCodeBlockFoldState = exports.setCodeBlockFoldState = function setCodeBloc
|
|
|
158
158
|
* Swap the old node key with the new node key in the wrapped states WeakMap.
|
|
159
159
|
*/
|
|
160
160
|
var transferCodeBlockWrappedValue = exports.transferCodeBlockWrappedValue = function transferCodeBlockWrappedValue(oldCodeBlockNode, newCodeBlockNode) {
|
|
161
|
-
|
|
162
|
-
transferCodeBlockFoldValue(oldCodeBlockNode, newCodeBlockNode);
|
|
163
|
-
}
|
|
161
|
+
transferCodeBlockFoldValue(oldCodeBlockNode, newCodeBlockNode);
|
|
164
162
|
|
|
165
163
|
// Don't overwrite the value for the new node if it already exists.
|
|
166
164
|
// This can happen when a drag&drop is swapping nodes.
|
|
@@ -193,9 +191,7 @@ var transferCodeBlockFoldValue = function transferCodeBlockFoldValue(oldCodeBloc
|
|
|
193
191
|
*/
|
|
194
192
|
var updateCodeBlockWrappedStateNodeKeys = exports.updateCodeBlockWrappedStateNodeKeys = function updateCodeBlockWrappedStateNodeKeys(newCodeBlockNodes, oldState) {
|
|
195
193
|
newCodeBlockNodes.forEach(function (newCodeBlockNode) {
|
|
196
|
-
|
|
197
|
-
updateCodeBlockFoldStateNodeKeys(newCodeBlockNode, oldState);
|
|
198
|
-
}
|
|
194
|
+
updateCodeBlockFoldStateNodeKeys(newCodeBlockNode, oldState);
|
|
199
195
|
// Don't overwrite the value for the new node if it already exists.
|
|
200
196
|
// This can happen when a drag&drop is swapping nodes.
|
|
201
197
|
if (codeBlockWrappedStates.has(newCodeBlockNode.node)) {
|
|
@@ -140,9 +140,7 @@ export const setCodeBlockFoldState = (codeBlockNode, foldRanges) => {
|
|
|
140
140
|
* Swap the old node key with the new node key in the wrapped states WeakMap.
|
|
141
141
|
*/
|
|
142
142
|
export const transferCodeBlockWrappedValue = (oldCodeBlockNode, newCodeBlockNode) => {
|
|
143
|
-
|
|
144
|
-
transferCodeBlockFoldValue(oldCodeBlockNode, newCodeBlockNode);
|
|
145
|
-
}
|
|
143
|
+
transferCodeBlockFoldValue(oldCodeBlockNode, newCodeBlockNode);
|
|
146
144
|
|
|
147
145
|
// Don't overwrite the value for the new node if it already exists.
|
|
148
146
|
// This can happen when a drag&drop is swapping nodes.
|
|
@@ -175,9 +173,7 @@ const transferCodeBlockFoldValue = (oldCodeBlockNode, newCodeBlockNode) => {
|
|
|
175
173
|
*/
|
|
176
174
|
export const updateCodeBlockWrappedStateNodeKeys = (newCodeBlockNodes, oldState) => {
|
|
177
175
|
newCodeBlockNodes.forEach(newCodeBlockNode => {
|
|
178
|
-
|
|
179
|
-
updateCodeBlockFoldStateNodeKeys(newCodeBlockNode, oldState);
|
|
180
|
-
}
|
|
176
|
+
updateCodeBlockFoldStateNodeKeys(newCodeBlockNode, oldState);
|
|
181
177
|
// Don't overwrite the value for the new node if it already exists.
|
|
182
178
|
// This can happen when a drag&drop is swapping nodes.
|
|
183
179
|
if (codeBlockWrappedStates.has(newCodeBlockNode.node)) {
|
|
@@ -152,9 +152,7 @@ export var setCodeBlockFoldState = function setCodeBlockFoldState(codeBlockNode,
|
|
|
152
152
|
* Swap the old node key with the new node key in the wrapped states WeakMap.
|
|
153
153
|
*/
|
|
154
154
|
export var transferCodeBlockWrappedValue = function transferCodeBlockWrappedValue(oldCodeBlockNode, newCodeBlockNode) {
|
|
155
|
-
|
|
156
|
-
transferCodeBlockFoldValue(oldCodeBlockNode, newCodeBlockNode);
|
|
157
|
-
}
|
|
155
|
+
transferCodeBlockFoldValue(oldCodeBlockNode, newCodeBlockNode);
|
|
158
156
|
|
|
159
157
|
// Don't overwrite the value for the new node if it already exists.
|
|
160
158
|
// This can happen when a drag&drop is swapping nodes.
|
|
@@ -187,9 +185,7 @@ var transferCodeBlockFoldValue = function transferCodeBlockFoldValue(oldCodeBloc
|
|
|
187
185
|
*/
|
|
188
186
|
export var updateCodeBlockWrappedStateNodeKeys = function updateCodeBlockWrappedStateNodeKeys(newCodeBlockNodes, oldState) {
|
|
189
187
|
newCodeBlockNodes.forEach(function (newCodeBlockNode) {
|
|
190
|
-
|
|
191
|
-
updateCodeBlockFoldStateNodeKeys(newCodeBlockNode, oldState);
|
|
192
|
-
}
|
|
188
|
+
updateCodeBlockFoldStateNodeKeys(newCodeBlockNode, oldState);
|
|
193
189
|
// Don't overwrite the value for the new node if it already exists.
|
|
194
190
|
// This can happen when a drag&drop is swapping nodes.
|
|
195
191
|
if (codeBlockWrappedStates.has(newCodeBlockNode.node)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "119.9.
|
|
3
|
+
"version": "119.9.1",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@atlaskit/task-decision": "^21.8.0",
|
|
85
85
|
"@atlaskit/teams-app-config": "^2.2.0",
|
|
86
86
|
"@atlaskit/textfield": "^10.0.0",
|
|
87
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
87
|
+
"@atlaskit/tmp-editor-statsig": "^150.0.0",
|
|
88
88
|
"@atlaskit/tokens": "^16.7.0",
|
|
89
89
|
"@atlaskit/tooltip": "^24.0.0",
|
|
90
90
|
"@atlaskit/width-detector": "^7.0.0",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
},
|
|
126
126
|
"devDependencies": {
|
|
127
127
|
"@atlaskit/media-core": "^38.0.0",
|
|
128
|
-
"@atlassian/a11y-jest-testing": "^0.
|
|
128
|
+
"@atlassian/a11y-jest-testing": "^0.16.0",
|
|
129
129
|
"@atlassian/experiment-test-utils": "^0.2.0",
|
|
130
130
|
"@atlassian/feature-flags-test-utils": "^1.2.0",
|
|
131
131
|
"@atlassian/testing-library": "^0.11.0",
|