@atlaskit/editor-plugin-paste-options-toolbar 30.0.3 → 31.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
|
+
## 31.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c135881c26871`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c135881c26871) -
|
|
8
|
+
Clean up experiment `platform_editor_paste_as_md_use_gfm`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 30.0.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 30.0.3
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -12,7 +12,6 @@ var _editorMarkdownTransformer = require("@atlaskit/editor-markdown-transformer"
|
|
|
12
12
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
13
13
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
14
14
|
var _transform = require("@atlaskit/editor-prosemirror/transform");
|
|
15
|
-
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
16
15
|
var _index = require("./index");
|
|
17
16
|
// Ignored via go/ees005
|
|
18
17
|
// eslint-disable-next-line require-unicode-regexp
|
|
@@ -169,7 +168,7 @@ function getMarkdownSlice(text, schema, selection, markdownToPmConverter) {
|
|
|
169
168
|
}
|
|
170
169
|
}
|
|
171
170
|
textInput = textSplitByCodeBlock.join('```');
|
|
172
|
-
var doc = markdownToPmConverter
|
|
171
|
+
var doc = markdownToPmConverter ? schema.nodes.doc.createAndFill({}, markdownToPmConverter({
|
|
173
172
|
markdown: textInput,
|
|
174
173
|
schema: schema
|
|
175
174
|
})) : new _editorMarkdownTransformer.MarkdownTransformer(schema, _md.md).parse((0, _index.escapeLinks)(textInput));
|
|
@@ -5,7 +5,6 @@ import { MarkdownTransformer } from '@atlaskit/editor-markdown-transformer';
|
|
|
5
5
|
import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
6
6
|
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
7
7
|
import { ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
|
|
8
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
9
8
|
import { escapeLinks } from './index';
|
|
10
9
|
|
|
11
10
|
// Ignored via go/ees005
|
|
@@ -165,7 +164,7 @@ export function getMarkdownSlice(text, schema, selection, markdownToPmConverter)
|
|
|
165
164
|
}
|
|
166
165
|
}
|
|
167
166
|
textInput = textSplitByCodeBlock.join('```');
|
|
168
|
-
const doc = markdownToPmConverter
|
|
167
|
+
const doc = markdownToPmConverter ? schema.nodes.doc.createAndFill({}, markdownToPmConverter({
|
|
169
168
|
markdown: textInput,
|
|
170
169
|
schema
|
|
171
170
|
})) : new MarkdownTransformer(schema, md).parse(escapeLinks(textInput));
|
|
@@ -5,7 +5,6 @@ import { MarkdownTransformer } from '@atlaskit/editor-markdown-transformer';
|
|
|
5
5
|
import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
6
6
|
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
7
7
|
import { ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
|
|
8
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
9
8
|
import { escapeLinks } from './index';
|
|
10
9
|
|
|
11
10
|
// Ignored via go/ees005
|
|
@@ -163,7 +162,7 @@ export function getMarkdownSlice(text, schema, selection, markdownToPmConverter)
|
|
|
163
162
|
}
|
|
164
163
|
}
|
|
165
164
|
textInput = textSplitByCodeBlock.join('```');
|
|
166
|
-
var doc = markdownToPmConverter
|
|
165
|
+
var doc = markdownToPmConverter ? schema.nodes.doc.createAndFill({}, markdownToPmConverter({
|
|
167
166
|
markdown: textInput,
|
|
168
167
|
schema: schema
|
|
169
168
|
})) : new MarkdownTransformer(schema, md).parse(escapeLinks(textInput));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-paste-options-toolbar",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "31.0.0",
|
|
4
4
|
"description": "Paste options toolbar for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"@atlaskit/docs": "^12.3.0",
|
|
26
26
|
"@atlaskit/dropdown-menu": "^21.0.0",
|
|
27
27
|
"@atlaskit/editor-markdown-transformer": "^6.3.0",
|
|
28
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
29
|
-
"@atlaskit/editor-plugin-paste": "^
|
|
30
|
-
"@atlaskit/editor-plugin-ui-control-registry": "^
|
|
28
|
+
"@atlaskit/editor-plugin-analytics": "^30.0.0",
|
|
29
|
+
"@atlaskit/editor-plugin-paste": "^31.0.0",
|
|
30
|
+
"@atlaskit/editor-plugin-ui-control-registry": "^24.0.0",
|
|
31
31
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
32
32
|
"@atlaskit/editor-shared-styles": "^4.6.0",
|
|
33
33
|
"@atlaskit/editor-toolbar": "^2.8.0",
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
37
37
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
38
38
|
"@atlaskit/primitives": "^22.6.0",
|
|
39
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
40
|
-
"@atlaskit/tokens": "^20.
|
|
39
|
+
"@atlaskit/tmp-editor-statsig": "^246.1.0",
|
|
40
|
+
"@atlaskit/tokens": "^20.8.0",
|
|
41
41
|
"@babel/runtime": "^7.0.0",
|
|
42
42
|
"@compiled/react": "^1.0.2",
|
|
43
43
|
"@emotion/react": "^11.7.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@atlaskit/editor-common": "^
|
|
46
|
+
"@atlaskit/editor-common": "^134.0.0",
|
|
47
47
|
"react": "^18.2.0 || ^19.2.0",
|
|
48
48
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
49
49
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|