@atlaskit/editor-plugin-paste-options-toolbar 11.4.0 → 12.0.0
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,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-paste-options-toolbar
|
|
2
2
|
|
|
3
|
+
## 12.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 11.4.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`52a08b0d14e39`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/52a08b0d14e39) -
|
|
14
|
+
Add code block language auto-detection experiment
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 11.4.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -174,7 +174,7 @@ function getMarkdownSlice(text, schema, selection) {
|
|
|
174
174
|
var $end = _state.Selection.atEnd(doc).$from;
|
|
175
175
|
var openStart = canMergeOpenStart ? $start.depth : 0;
|
|
176
176
|
var openEnd = canMergeOpenEnd ? $end.depth : 0;
|
|
177
|
-
return (0, _codeBlock.
|
|
177
|
+
return (0, _codeBlock.normalizeMarkdownCodeBlockAttrsInSlice)(new _model.Slice(doc.content, openStart, openEnd), schema);
|
|
178
178
|
} catch (error) {
|
|
179
179
|
(0, _monitoring.logException)(error, {
|
|
180
180
|
location: 'editor-plugin-paste-options-toolbar/util'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { normalizeMarkdownCodeBlockAttrsInSlice } from '@atlaskit/editor-common/code-block';
|
|
2
2
|
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
3
3
|
import { md } from '@atlaskit/editor-common/paste';
|
|
4
4
|
import { MarkdownTransformer } from '@atlaskit/editor-markdown-transformer';
|
|
@@ -169,7 +169,7 @@ export function getMarkdownSlice(text, schema, selection) {
|
|
|
169
169
|
const $end = Selection.atEnd(doc).$from;
|
|
170
170
|
const openStart = canMergeOpenStart ? $start.depth : 0;
|
|
171
171
|
const openEnd = canMergeOpenEnd ? $end.depth : 0;
|
|
172
|
-
return
|
|
172
|
+
return normalizeMarkdownCodeBlockAttrsInSlice(new Slice(doc.content, openStart, openEnd), schema);
|
|
173
173
|
} catch (error) {
|
|
174
174
|
logException(error, {
|
|
175
175
|
location: 'editor-plugin-paste-options-toolbar/util'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { normalizeMarkdownCodeBlockAttrsInSlice } from '@atlaskit/editor-common/code-block';
|
|
2
2
|
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
3
3
|
import { md } from '@atlaskit/editor-common/paste';
|
|
4
4
|
import { MarkdownTransformer } from '@atlaskit/editor-markdown-transformer';
|
|
@@ -167,7 +167,7 @@ export function getMarkdownSlice(text, schema, selection) {
|
|
|
167
167
|
var $end = Selection.atEnd(doc).$from;
|
|
168
168
|
var openStart = canMergeOpenStart ? $start.depth : 0;
|
|
169
169
|
var openEnd = canMergeOpenEnd ? $end.depth : 0;
|
|
170
|
-
return
|
|
170
|
+
return normalizeMarkdownCodeBlockAttrsInSlice(new Slice(doc.content, openStart, openEnd), schema);
|
|
171
171
|
} catch (error) {
|
|
172
172
|
logException(error, {
|
|
173
173
|
location: 'editor-plugin-paste-options-toolbar/util'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-paste-options-toolbar",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"description": "Paste options toolbar for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"@atlaskit/css": "^0.19.0",
|
|
33
33
|
"@atlaskit/dropdown-menu": "^16.10.0",
|
|
34
34
|
"@atlaskit/editor-markdown-transformer": "^5.21.0",
|
|
35
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
36
|
-
"@atlaskit/editor-plugin-paste": "^
|
|
37
|
-
"@atlaskit/editor-plugin-ui-control-registry": "^
|
|
35
|
+
"@atlaskit/editor-plugin-analytics": "^11.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-paste": "^12.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-ui-control-registry": "^5.0.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
39
39
|
"@atlaskit/editor-shared-styles": "^3.11.0",
|
|
40
40
|
"@atlaskit/editor-toolbar": "^1.9.0",
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"@atlaskit/icon": "^35.3.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
44
|
"@atlaskit/primitives": "^19.0.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^88.0.0",
|
|
46
46
|
"@atlaskit/tokens": "^13.1.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"@compiled/react": "^0.20.0",
|
|
49
49
|
"@emotion/react": "^11.7.1"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@atlaskit/editor-common": "^
|
|
52
|
+
"@atlaskit/editor-common": "^115.0.0",
|
|
53
53
|
"react": "^18.2.0",
|
|
54
54
|
"react-dom": "^18.2.0",
|
|
55
55
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|