@atlaskit/editor-plugin-media 12.6.0 → 12.6.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,14 @@
1
1
  # @atlaskit/editor-plugin-media
2
2
 
3
+ ## 12.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`06cac9d5b6b96`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/06cac9d5b6b96) -
8
+ Cleanup dynamic config maui_ai_border_killswitch (resolved as false). Removed FeatureGates import
9
+ and killswitch condition check.
10
+ - Updated dependencies
11
+
3
12
  ## 12.6.0
4
13
 
5
14
  ### Minor Changes
@@ -13,7 +13,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
13
13
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
14
14
  var _state = require("@atlaskit/editor-prosemirror/state");
15
15
  var _view = require("@atlaskit/editor-prosemirror/view");
16
- var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
17
16
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
17
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
19
18
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -115,10 +114,8 @@ function createAIGeneratingDecorationPlugin() {
115
114
  };
116
115
  },
117
116
  apply: function apply(tr, pluginState, _oldState, newState) {
118
- // Disabled when killswitch is on or gate/experiment off — drop decorations.
119
- if (
120
- // eslint-disable-next-line @atlaskit/platform/use-recommended-utils -- dynamic config killswitch, not a standard feature gate
121
- _featureGateJsClient.default.getExperimentValue('maui_ai_border_killswitch', 'value', false) || !(0, _platformFeatureFlags.fg)('cc-maui-phase-2-loading') || !(0, _expValEquals.expValEquals)('cc-maui-experiment', 'isEnabled', true)) {
117
+ // Disabled when gate/experiment off — drop decorations.
118
+ if (!(0, _platformFeatureFlags.fg)('cc-maui-phase-2-loading') || !(0, _expValEquals.expValEquals)('cc-maui-experiment', 'isEnabled', true)) {
122
119
  if (pluginState.generatingMediaIds.size > 0) {
123
120
  return {
124
121
  generatingMediaIds: new Set(),
@@ -1,7 +1,6 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
3
  import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
4
- import FeatureGates from '@atlaskit/feature-gate-js-client';
5
4
  import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
7
6
 
@@ -100,10 +99,8 @@ export function createAIGeneratingDecorationPlugin() {
100
99
  };
101
100
  },
102
101
  apply(tr, pluginState, _oldState, newState) {
103
- // Disabled when killswitch is on or gate/experiment off — drop decorations.
104
- if (
105
- // eslint-disable-next-line @atlaskit/platform/use-recommended-utils -- dynamic config killswitch, not a standard feature gate
106
- FeatureGates.getExperimentValue('maui_ai_border_killswitch', 'value', false) || !fg('cc-maui-phase-2-loading') || !expValEquals('cc-maui-experiment', 'isEnabled', true)) {
102
+ // Disabled when gate/experiment off — drop decorations.
103
+ if (!fg('cc-maui-phase-2-loading') || !expValEquals('cc-maui-experiment', 'isEnabled', true)) {
107
104
  if (pluginState.generatingMediaIds.size > 0) {
108
105
  return {
109
106
  generatingMediaIds: new Set(),
@@ -4,7 +4,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
5
5
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
6
6
  import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
7
- import FeatureGates from '@atlaskit/feature-gate-js-client';
8
7
  import { fg } from '@atlaskit/platform-feature-flags';
9
8
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
9
 
@@ -105,10 +104,8 @@ export function createAIGeneratingDecorationPlugin() {
105
104
  };
106
105
  },
107
106
  apply: function apply(tr, pluginState, _oldState, newState) {
108
- // Disabled when killswitch is on or gate/experiment off — drop decorations.
109
- if (
110
- // eslint-disable-next-line @atlaskit/platform/use-recommended-utils -- dynamic config killswitch, not a standard feature gate
111
- FeatureGates.getExperimentValue('maui_ai_border_killswitch', 'value', false) || !fg('cc-maui-phase-2-loading') || !expValEquals('cc-maui-experiment', 'isEnabled', true)) {
107
+ // Disabled when gate/experiment off — drop decorations.
108
+ if (!fg('cc-maui-phase-2-loading') || !expValEquals('cc-maui-experiment', 'isEnabled', true)) {
112
109
  if (pluginState.generatingMediaIds.size > 0) {
113
110
  return {
114
111
  generatingMediaIds: new Set(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-media",
3
- "version": "12.6.0",
3
+ "version": "12.6.1",
4
4
  "description": "Media plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,7 +30,7 @@
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
32
  "@atlaskit/adf-schema": "^52.11.0",
33
- "@atlaskit/analytics-namespaced-context": "^7.2.0",
33
+ "@atlaskit/analytics-namespaced-context": "^7.3.0",
34
34
  "@atlaskit/analytics-next": "^11.2.0",
35
35
  "@atlaskit/button": "^23.11.0",
36
36
  "@atlaskit/editor-palette": "^2.1.0",
@@ -51,7 +51,6 @@
51
51
  "@atlaskit/editor-prosemirror": "^7.3.0",
52
52
  "@atlaskit/editor-shared-styles": "^3.10.0",
53
53
  "@atlaskit/editor-tables": "^2.9.0",
54
- "@atlaskit/feature-gate-js-client": "5.5.11",
55
54
  "@atlaskit/form": "^15.5.0",
56
55
  "@atlaskit/icon": "^34.5.0",
57
56
  "@atlaskit/icon-lab": "^6.9.0",