@atlaskit/editor-plugin-paste-options-toolbar 17.1.4 → 17.1.6

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,20 @@
1
1
  # @atlaskit/editor-plugin-paste-options-toolbar
2
2
 
3
+ ## 17.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a6c26b16402ca`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a6c26b16402ca) -
8
+ Migrate nine dogfooding editor experiments from `@atlaskit/tmp-editor-statsig` to the Platform
9
+ experiment API and move their tests to Platform experiment mocks.
10
+ - Updated dependencies
11
+
12
+ ## 17.1.5
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 17.1.4
4
19
 
5
20
  ### Patch Changes
@@ -12,7 +12,7 @@ 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 _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
15
+ var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
16
16
  var _index = require("./index");
17
17
  // Ignored via go/ees005
18
18
  // eslint-disable-next-line require-unicode-regexp
@@ -169,7 +169,7 @@ function getMarkdownSlice(text, schema, selection, markdownToPmConverter) {
169
169
  }
170
170
  }
171
171
  textInput = textSplitByCodeBlock.join('```');
172
- var doc = markdownToPmConverter && (0, _expValEquals.expValEquals)('platform_editor_paste_as_md_use_gfm', 'isEnabled', true) ? schema.nodes.doc.createAndFill({}, markdownToPmConverter({
172
+ var doc = markdownToPmConverter && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_paste_as_md_use_gfm') ? schema.nodes.doc.createAndFill({}, markdownToPmConverter({
173
173
  markdown: textInput,
174
174
  schema: schema
175
175
  })) : new _editorMarkdownTransformer.MarkdownTransformer(schema, _paste.md).parse((0, _index.escapeLinks)(textInput));
@@ -5,7 +5,7 @@ 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 { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
8
+ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
9
9
  import { escapeLinks } from './index';
10
10
 
11
11
  // Ignored via go/ees005
@@ -165,7 +165,7 @@ export function getMarkdownSlice(text, schema, selection, markdownToPmConverter)
165
165
  }
166
166
  }
167
167
  textInput = textSplitByCodeBlock.join('```');
168
- const doc = markdownToPmConverter && expValEquals('platform_editor_paste_as_md_use_gfm', 'isEnabled', true) ? schema.nodes.doc.createAndFill({}, markdownToPmConverter({
168
+ const doc = markdownToPmConverter && isExperimentEnabled('platform_editor_paste_as_md_use_gfm') ? schema.nodes.doc.createAndFill({}, markdownToPmConverter({
169
169
  markdown: textInput,
170
170
  schema
171
171
  })) : new MarkdownTransformer(schema, md).parse(escapeLinks(textInput));
@@ -5,7 +5,7 @@ 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 { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
8
+ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
9
9
  import { escapeLinks } from './index';
10
10
 
11
11
  // Ignored via go/ees005
@@ -163,7 +163,7 @@ export function getMarkdownSlice(text, schema, selection, markdownToPmConverter)
163
163
  }
164
164
  }
165
165
  textInput = textSplitByCodeBlock.join('```');
166
- var doc = markdownToPmConverter && expValEquals('platform_editor_paste_as_md_use_gfm', 'isEnabled', true) ? schema.nodes.doc.createAndFill({}, markdownToPmConverter({
166
+ var doc = markdownToPmConverter && isExperimentEnabled('platform_editor_paste_as_md_use_gfm') ? schema.nodes.doc.createAndFill({}, markdownToPmConverter({
167
167
  markdown: textInput,
168
168
  schema: schema
169
169
  })) : 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": "17.1.4",
3
+ "version": "17.1.6",
4
4
  "description": "Paste options toolbar for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,14 +35,14 @@
35
35
  "@atlaskit/platform-feature-experiments": "^0.3.0",
36
36
  "@atlaskit/platform-feature-flags": "^2.2.0",
37
37
  "@atlaskit/primitives": "^22.5.0",
38
- "@atlaskit/tmp-editor-statsig": "^172.0.0",
38
+ "@atlaskit/tmp-editor-statsig": "^174.0.0",
39
39
  "@atlaskit/tokens": "^16.11.0",
40
40
  "@babel/runtime": "^7.0.0",
41
41
  "@compiled/react": "^1.0.2",
42
42
  "@emotion/react": "^11.7.1"
43
43
  },
44
44
  "peerDependencies": {
45
- "@atlaskit/editor-common": "^120.11.0",
45
+ "@atlaskit/editor-common": "^120.12.0",
46
46
  "react": "^18.2.0 || ^19.2.0",
47
47
  "react-dom": "^18.2.0 || ^19.2.0",
48
48
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"