@atlaskit/editor-plugin-paste-options-toolbar 11.4.0 → 11.4.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-plugin-paste-options-toolbar
2
2
 
3
+ ## 11.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`52a08b0d14e39`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/52a08b0d14e39) -
8
+ Add code block language auto-detection experiment
9
+ - Updated dependencies
10
+
3
11
  ## 11.4.0
4
12
 
5
13
  ### 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.defaultWrapForMarkdownCodeBlocksInSlice)(new _model.Slice(doc.content, openStart, openEnd), schema);
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 { defaultWrapForMarkdownCodeBlocksInSlice } from '@atlaskit/editor-common/code-block';
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 defaultWrapForMarkdownCodeBlocksInSlice(new Slice(doc.content, openStart, openEnd), schema);
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 { defaultWrapForMarkdownCodeBlocksInSlice } from '@atlaskit/editor-common/code-block';
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 defaultWrapForMarkdownCodeBlocksInSlice(new Slice(doc.content, openStart, openEnd), schema);
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": "11.4.0",
3
+ "version": "11.4.1",
4
4
  "description": "Paste options toolbar for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.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": "^86.0.0",
45
+ "@atlaskit/tmp-editor-statsig": "^87.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": "^114.54.0",
52
+ "@atlaskit/editor-common": "^114.55.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"