@atlaskit/editor-plugin-expand 17.1.1 → 17.1.3

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-expand
2
2
 
3
+ ## 17.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`5d35806b69659`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5d35806b69659) -
8
+ Clean up experiment `platform_editor_expand_paste_in_comment_editor`
9
+ - Updated dependencies
10
+
11
+ ## 17.1.2
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 17.1.1
4
18
 
5
19
  ### Patch Changes
@@ -14,7 +14,6 @@ var _messages = require("@atlaskit/editor-common/messages");
14
14
  var _assets = require("@atlaskit/editor-common/assets");
15
15
  var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
16
16
  var _utils = require("@atlaskit/editor-common/utils");
17
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
18
17
  var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
19
18
  var _toggleExpandRange = require("../editor-commands/toggleExpandRange");
20
19
  var _ExpandBlockMenuItem = require("../ui/ExpandBlockMenuItem");
@@ -81,9 +80,9 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
81
80
  },
82
81
  getSharedState: function getSharedState() {
83
82
  var _options$allowInserti;
84
- return (0, _expValEquals.expValEquals)('platform_editor_expand_paste_in_comment_editor', 'isEnabled', true) ? {
83
+ return {
85
84
  allowInsertion: (_options$allowInserti = options === null || options === void 0 ? void 0 : options.allowInsertion) !== null && _options$allowInserti !== void 0 ? _options$allowInserti : true
86
- } : undefined;
85
+ };
87
86
  },
88
87
  pmPlugins: function pmPlugins() {
89
88
  return [{
@@ -15,7 +15,6 @@ var _assets = require("@atlaskit/editor-common/assets");
15
15
  var _utils = require("@atlaskit/editor-common/utils");
16
16
  var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
17
17
  var _fg = require("@atlaskit/platform-feature-flags/fg");
18
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
19
18
  var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
20
19
  var _toggleExpandRange = require("../editor-commands/toggleExpandRange");
21
20
  var _ExpandBlockMenuItem = require("../ui/ExpandBlockMenuItem");
@@ -81,9 +80,9 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
81
80
  },
82
81
  getSharedState: function getSharedState() {
83
82
  var _options$allowInserti;
84
- return (0, _expValEquals.expValEquals)('platform_editor_expand_paste_in_comment_editor', 'isEnabled', true) ? {
83
+ return {
85
84
  allowInsertion: (_options$allowInserti = options === null || options === void 0 ? void 0 : options.allowInsertion) !== null && _options$allowInserti !== void 0 ? _options$allowInserti : true
86
- } : undefined;
85
+ };
87
86
  },
88
87
  pmPlugins: function pmPlugins() {
89
88
  return [{
@@ -6,7 +6,6 @@ import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/
6
6
  import { IconExpand } from '@atlaskit/editor-common/assets';
7
7
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
8
8
  import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
9
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
9
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
11
10
  import { toggleExpandRange } from '../editor-commands/toggleExpandRange';
12
11
  import { createExpandBlockMenuItem } from '../ui/ExpandBlockMenuItem';
@@ -70,9 +69,9 @@ export let expandPlugin = ({
70
69
  },
71
70
  getSharedState() {
72
71
  var _options$allowInserti;
73
- return expValEquals('platform_editor_expand_paste_in_comment_editor', 'isEnabled', true) ? {
72
+ return {
74
73
  allowInsertion: (_options$allowInserti = options === null || options === void 0 ? void 0 : options.allowInsertion) !== null && _options$allowInserti !== void 0 ? _options$allowInserti : true
75
- } : undefined;
74
+ };
76
75
  },
77
76
  pmPlugins() {
78
77
  return [{
@@ -7,7 +7,6 @@ import { IconExpand } from '@atlaskit/editor-common/assets';
7
7
  import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
8
8
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
9
9
  import { fg } from '@atlaskit/platform-feature-flags/fg';
10
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
11
10
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
12
11
  import { toggleExpandRange } from '../editor-commands/toggleExpandRange';
13
12
  import { createExpandBlockMenuItem } from '../ui/ExpandBlockMenuItem';
@@ -70,9 +69,9 @@ export let expandPlugin = ({
70
69
  },
71
70
  getSharedState() {
72
71
  var _options$allowInserti;
73
- return expValEquals('platform_editor_expand_paste_in_comment_editor', 'isEnabled', true) ? {
72
+ return {
74
73
  allowInsertion: (_options$allowInserti = options === null || options === void 0 ? void 0 : options.allowInsertion) !== null && _options$allowInserti !== void 0 ? _options$allowInserti : true
75
- } : undefined;
74
+ };
76
75
  },
77
76
  pmPlugins() {
78
77
  return [{
@@ -9,7 +9,6 @@ import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/
9
9
  import { IconExpand } from '@atlaskit/editor-common/assets';
10
10
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
11
11
  import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
12
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
13
12
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
14
13
  import { toggleExpandRange } from '../editor-commands/toggleExpandRange';
15
14
  import { createExpandBlockMenuItem } from '../ui/ExpandBlockMenuItem';
@@ -75,9 +74,9 @@ export var expandPlugin = function expandPlugin(_ref) {
75
74
  },
76
75
  getSharedState: function getSharedState() {
77
76
  var _options$allowInserti;
78
- return expValEquals('platform_editor_expand_paste_in_comment_editor', 'isEnabled', true) ? {
77
+ return {
79
78
  allowInsertion: (_options$allowInserti = options === null || options === void 0 ? void 0 : options.allowInsertion) !== null && _options$allowInserti !== void 0 ? _options$allowInserti : true
80
- } : undefined;
79
+ };
81
80
  },
82
81
  pmPlugins: function pmPlugins() {
83
82
  return [{
@@ -10,7 +10,6 @@ import { IconExpand } from '@atlaskit/editor-common/assets';
10
10
  import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
11
11
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
12
12
  import { fg } from '@atlaskit/platform-feature-flags/fg';
13
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
14
13
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
15
14
  import { toggleExpandRange } from '../editor-commands/toggleExpandRange';
16
15
  import { createExpandBlockMenuItem } from '../ui/ExpandBlockMenuItem';
@@ -75,9 +74,9 @@ export var expandPlugin = function expandPlugin(_ref) {
75
74
  },
76
75
  getSharedState: function getSharedState() {
77
76
  var _options$allowInserti;
78
- return expValEquals('platform_editor_expand_paste_in_comment_editor', 'isEnabled', true) ? {
77
+ return {
79
78
  allowInsertion: (_options$allowInserti = options === null || options === void 0 ? void 0 : options.allowInsertion) !== null && _options$allowInserti !== void 0 ? _options$allowInserti : true
80
- } : undefined;
79
+ };
81
80
  },
82
81
  pmPlugins: function pmPlugins() {
83
82
  return [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "17.1.1",
3
+ "version": "17.1.3",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -43,8 +43,8 @@
43
43
  "@atlaskit/platform-feature-experiments": "^0.3.0",
44
44
  "@atlaskit/platform-feature-flags": "^2.2.0",
45
45
  "@atlaskit/prosemirror-history": "^1.2.0",
46
- "@atlaskit/tmp-editor-statsig": "^169.0.0",
47
- "@atlaskit/tokens": "^16.10.0",
46
+ "@atlaskit/tmp-editor-statsig": "^171.0.0",
47
+ "@atlaskit/tokens": "^16.11.0",
48
48
  "@atlaskit/tooltip": "^24.3.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "@emotion/react": "^11.7.1",