@atlaskit/editor-plugin-editor-disabled 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,12 @@
1
1
  # @atlaskit/editor-plugin-editor-disabled
2
2
 
3
+ ## 6.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`2e389ee54c1f1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2e389ee54c1f1) -
8
+ Update gates to roll out minor updates faster
9
+
3
10
  ## 6.1.2
4
11
 
5
12
  ### Patch Changes
@@ -48,7 +48,7 @@ function createPlugin(dispatch, options) {
48
48
  apply: function apply(tr, pluginState) {
49
49
  var meta = tr.getMeta(pluginKey);
50
50
  if (meta) {
51
- if ((0, _platformFeatureFlags.fg)('platform_editor_ai_aifc_patch_beta')) {
51
+ if ((0, _platformFeatureFlags.fg)('platform_editor_ai_generic_prep_for_aifc_2')) {
52
52
  if ('action' in meta) {
53
53
  return (0, _reducer.reducer)(pluginState, meta);
54
54
  }
@@ -62,7 +62,7 @@ function createPlugin(dispatch, options) {
62
62
  // If we set to undefined it respects the previous value.
63
63
  // Prosemirror doesn't have this typed correctly for this type of behaviour
64
64
  // @ts-expect-error
65
- editable: (0, _platformFeatureFlags.fg)('platform_editor_ai_aifc_patch_beta') ? function (state) {
65
+ editable: (0, _platformFeatureFlags.fg)('platform_editor_ai_generic_prep_for_aifc_2') ? function (state) {
66
66
  var _pluginKey$getState;
67
67
  var _ref = (_pluginKey$getState = pluginKey.getState(state)) !== null && _pluginKey$getState !== void 0 ? _pluginKey$getState : {
68
68
  disabledByPlugin: false
@@ -120,7 +120,7 @@ var editorDisabledPlugin = exports.editorDisabledPlugin = function editorDisable
120
120
  editorDisabled: false
121
121
  };
122
122
  }
123
- if ((0, _platformFeatureFlags.fg)('platform_editor_ai_aifc_patch_beta')) {
123
+ if ((0, _platformFeatureFlags.fg)('platform_editor_ai_generic_prep_for_aifc_2')) {
124
124
  return {
125
125
  editorDisabled: pluginState.disabledByPlugin || pluginState.editorDisabled
126
126
  };
@@ -140,7 +140,7 @@ var editorDisabledPlugin = exports.editorDisabledPlugin = function editorDisable
140
140
  toggleDisabled: function toggleDisabled(disabled) {
141
141
  return function (_ref4) {
142
142
  var tr = _ref4.tr;
143
- return (0, _platformFeatureFlags.fg)('platform_editor_ai_aifc_patch_beta') ? tr.setMeta(pluginKey, {
143
+ return (0, _platformFeatureFlags.fg)('platform_editor_ai_generic_prep_for_aifc_2') ? tr.setMeta(pluginKey, {
144
144
  action: _reducer.ACTION.TOGGLE_DISABLED,
145
145
  disabled: disabled
146
146
  }) : null;
@@ -39,7 +39,7 @@ function createPlugin(dispatch, options) {
39
39
  apply: (tr, pluginState) => {
40
40
  const meta = tr.getMeta(pluginKey);
41
41
  if (meta) {
42
- if (fg('platform_editor_ai_aifc_patch_beta')) {
42
+ if (fg('platform_editor_ai_generic_prep_for_aifc_2')) {
43
43
  if ('action' in meta) {
44
44
  return reducer(pluginState, meta);
45
45
  }
@@ -56,7 +56,7 @@ function createPlugin(dispatch, options) {
56
56
  // If we set to undefined it respects the previous value.
57
57
  // Prosemirror doesn't have this typed correctly for this type of behaviour
58
58
  // @ts-expect-error
59
- editable: fg('platform_editor_ai_aifc_patch_beta') ? state => {
59
+ editable: fg('platform_editor_ai_generic_prep_for_aifc_2') ? state => {
60
60
  var _pluginKey$getState;
61
61
  const {
62
62
  disabledByPlugin
@@ -114,7 +114,7 @@ export const editorDisabledPlugin = ({
114
114
  editorDisabled: false
115
115
  };
116
116
  }
117
- if (fg('platform_editor_ai_aifc_patch_beta')) {
117
+ if (fg('platform_editor_ai_generic_prep_for_aifc_2')) {
118
118
  return {
119
119
  editorDisabled: pluginState.disabledByPlugin || pluginState.editorDisabled
120
120
  };
@@ -131,7 +131,7 @@ export const editorDisabledPlugin = ({
131
131
  toggleDisabled: disabled => ({
132
132
  tr
133
133
  }) => {
134
- return fg('platform_editor_ai_aifc_patch_beta') ? tr.setMeta(pluginKey, {
134
+ return fg('platform_editor_ai_generic_prep_for_aifc_2') ? tr.setMeta(pluginKey, {
135
135
  action: ACTION.TOGGLE_DISABLED,
136
136
  disabled
137
137
  }) : null;
@@ -41,7 +41,7 @@ function createPlugin(dispatch, options) {
41
41
  apply: function apply(tr, pluginState) {
42
42
  var meta = tr.getMeta(pluginKey);
43
43
  if (meta) {
44
- if (fg('platform_editor_ai_aifc_patch_beta')) {
44
+ if (fg('platform_editor_ai_generic_prep_for_aifc_2')) {
45
45
  if ('action' in meta) {
46
46
  return reducer(pluginState, meta);
47
47
  }
@@ -55,7 +55,7 @@ function createPlugin(dispatch, options) {
55
55
  // If we set to undefined it respects the previous value.
56
56
  // Prosemirror doesn't have this typed correctly for this type of behaviour
57
57
  // @ts-expect-error
58
- editable: fg('platform_editor_ai_aifc_patch_beta') ? function (state) {
58
+ editable: fg('platform_editor_ai_generic_prep_for_aifc_2') ? function (state) {
59
59
  var _pluginKey$getState;
60
60
  var _ref = (_pluginKey$getState = pluginKey.getState(state)) !== null && _pluginKey$getState !== void 0 ? _pluginKey$getState : {
61
61
  disabledByPlugin: false
@@ -113,7 +113,7 @@ export var editorDisabledPlugin = function editorDisabledPlugin(_ref2) {
113
113
  editorDisabled: false
114
114
  };
115
115
  }
116
- if (fg('platform_editor_ai_aifc_patch_beta')) {
116
+ if (fg('platform_editor_ai_generic_prep_for_aifc_2')) {
117
117
  return {
118
118
  editorDisabled: pluginState.disabledByPlugin || pluginState.editorDisabled
119
119
  };
@@ -133,7 +133,7 @@ export var editorDisabledPlugin = function editorDisabledPlugin(_ref2) {
133
133
  toggleDisabled: function toggleDisabled(disabled) {
134
134
  return function (_ref4) {
135
135
  var tr = _ref4.tr;
136
- return fg('platform_editor_ai_aifc_patch_beta') ? tr.setMeta(pluginKey, {
136
+ return fg('platform_editor_ai_generic_prep_for_aifc_2') ? tr.setMeta(pluginKey, {
137
137
  action: ACTION.TOGGLE_DISABLED,
138
138
  disabled: disabled
139
139
  }) : null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-editor-disabled",
3
- "version": "6.1.2",
3
+ "version": "6.1.3",
4
4
  "description": "Editor disabled plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -19,7 +19,7 @@
19
19
  "sideEffects": false,
20
20
  "atlaskit:src": "src/index.ts",
21
21
  "platform-feature-flags": {
22
- "platform_editor_ai_aifc_patch_beta": {
22
+ "platform_editor_ai_generic_prep_for_aifc_2": {
23
23
  "type": "boolean"
24
24
  }
25
25
  },
@@ -30,7 +30,7 @@
30
30
  "raf-schd": "^4.0.3"
31
31
  },
32
32
  "peerDependencies": {
33
- "@atlaskit/editor-common": "^110.36.0",
33
+ "@atlaskit/editor-common": "^110.38.0",
34
34
  "react": "^18.2.0",
35
35
  "react-dom": "^18.2.0"
36
36
  },