@atlaskit/editor-plugin-undo-redo 6.1.2 → 6.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,15 @@
1
1
  # @atlaskit/editor-plugin-undo-redo
2
2
 
3
+ ## 6.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ef001bf65d48f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ef001bf65d48f) -
8
+ Remove usage of `platform_editor_toolbar_aifc` inside editor packages - instead rely on checking
9
+ for new toolbar plugin option, make `enableNewToolbarExperience` mandatory for consumers to opt in
10
+ to new toolbar experience
11
+ - Updated dependencies
12
+
3
13
  ## 6.1.2
4
14
 
5
15
  ### Patch Changes
@@ -53,7 +53,7 @@ var ToolbarUndoRedo = exports.ToolbarUndoRedo = function ToolbarUndoRedo(_ref) {
53
53
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
54
54
  (0, _react.jsx)("span", {
55
55
  css:
56
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration, @atlaskit/platform/ensure-feature-flag-prefix
56
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
57
57
  (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ?
58
58
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
59
59
  _styles.buttonGroupStyle :
@@ -25,9 +25,7 @@ var undoRedoPlugin = exports.undoRedoPlugin = function undoRedoPlugin(_ref) {
25
25
  var editorViewRef = {
26
26
  current: null
27
27
  };
28
- var isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
29
- exposure: true
30
- });
28
+ var isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar);
31
29
  var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
32
30
  var editorView = _ref2.editorView,
33
31
  disabled = _ref2.disabled,
@@ -49,7 +49,7 @@ export const ToolbarUndoRedo = ({
49
49
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
50
50
  jsx("span", {
51
51
  css:
52
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration, @atlaskit/platform/ensure-feature-flag-prefix
52
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
53
53
  fg('platform-visual-refresh-icons') ?
54
54
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
55
55
  buttonGroupStyle :
@@ -18,9 +18,7 @@ export const undoRedoPlugin = ({
18
18
  const editorViewRef = {
19
19
  current: null
20
20
  };
21
- const isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
22
- exposure: true
23
- });
21
+ const isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar);
24
22
  const primaryToolbarComponent = ({
25
23
  editorView,
26
24
  disabled,
@@ -45,7 +45,7 @@ export var ToolbarUndoRedo = function ToolbarUndoRedo(_ref) {
45
45
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
46
46
  jsx("span", {
47
47
  css:
48
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration, @atlaskit/platform/ensure-feature-flag-prefix
48
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
49
49
  fg('platform-visual-refresh-icons') ?
50
50
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
51
51
  buttonGroupStyle :
@@ -17,9 +17,7 @@ export var undoRedoPlugin = function undoRedoPlugin(_ref) {
17
17
  var editorViewRef = {
18
18
  current: null
19
19
  };
20
- var isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
21
- exposure: true
22
- });
20
+ var isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar);
23
21
  var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
24
22
  var editorView = _ref2.editorView,
25
23
  disabled = _ref2.disabled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-undo-redo",
3
- "version": "6.1.2",
3
+ "version": "6.1.3",
4
4
  "description": "Undo redo plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -39,7 +39,7 @@
39
39
  "@atlaskit/icon": "^28.5.0",
40
40
  "@atlaskit/platform-feature-flags": "^1.1.0",
41
41
  "@atlaskit/prosemirror-history": "^0.2.0",
42
- "@atlaskit/tmp-editor-statsig": "^13.8.0",
42
+ "@atlaskit/tmp-editor-statsig": "^13.10.0",
43
43
  "@babel/runtime": "^7.0.0",
44
44
  "@emotion/react": "^11.7.1"
45
45
  },