@atlaskit/editor-plugin-loom 8.0.7 → 8.0.8

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-loom
2
2
 
3
+ ## 8.0.8
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
  ## 8.0.7
4
14
 
5
15
  ### Patch Changes
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.loomPlugin = void 0;
7
7
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
8
8
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
9
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
10
9
  var _commands = require("./pm-plugins/commands");
11
10
  var _main = require("./pm-plugins/main");
12
11
  var _PrimaryToolbarButton = require("./ui/PrimaryToolbarButton");
@@ -17,9 +16,7 @@ var loomPlugin = exports.loomPlugin = function loomPlugin(_ref) {
17
16
  var config = _ref.config,
18
17
  api = _ref.api;
19
18
  var editorAnalyticsAPI = api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
20
- var isNewToolbarEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
21
- exposure: true
22
- }) && (0, _expValEquals.expValEquals)('platform_editor_toolbar_migrate_loom', 'isEnabled', true);
19
+ var isNewToolbarEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && (0, _expValEquals.expValEquals)('platform_editor_toolbar_migrate_loom', 'isEnabled', true);
23
20
 
24
21
  // Workaround since we want to insert a loom via the `hyperlink` plugin for now.
25
22
  // The hyperlink plugin (and the card plugin) are deeply tied into using the Prosemirror Command
@@ -1,6 +1,5 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
3
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
4
3
  import { insertLoom, recordVideo, setupLoom } from './pm-plugins/commands';
5
4
  import { createPlugin, loomPluginKey } from './pm-plugins/main';
6
5
  import { loomPrimaryToolbarComponent } from './ui/PrimaryToolbarButton';
@@ -12,9 +11,7 @@ export const loomPlugin = ({
12
11
  }) => {
13
12
  var _api$analytics;
14
13
  const editorAnalyticsAPI = api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
15
- const isNewToolbarEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
16
- exposure: true
17
- }) && expValEquals('platform_editor_toolbar_migrate_loom', 'isEnabled', true);
14
+ const isNewToolbarEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && expValEquals('platform_editor_toolbar_migrate_loom', 'isEnabled', true);
18
15
 
19
16
  // Workaround since we want to insert a loom via the `hyperlink` plugin for now.
20
17
  // The hyperlink plugin (and the card plugin) are deeply tied into using the Prosemirror Command
@@ -1,6 +1,5 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
3
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
4
3
  import { insertLoom as _insertLoom, recordVideo, setupLoom } from './pm-plugins/commands';
5
4
  import { createPlugin, loomPluginKey } from './pm-plugins/main';
6
5
  import { loomPrimaryToolbarComponent } from './ui/PrimaryToolbarButton';
@@ -11,9 +10,7 @@ export var loomPlugin = function loomPlugin(_ref) {
11
10
  var config = _ref.config,
12
11
  api = _ref.api;
13
12
  var editorAnalyticsAPI = api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
14
- var isNewToolbarEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
15
- exposure: true
16
- }) && expValEquals('platform_editor_toolbar_migrate_loom', 'isEnabled', true);
13
+ var isNewToolbarEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && expValEquals('platform_editor_toolbar_migrate_loom', 'isEnabled', true);
17
14
 
18
15
  // Workaround since we want to insert a loom via the `hyperlink` plugin for now.
19
16
  // The hyperlink plugin (and the card plugin) are deeply tied into using the Prosemirror Command
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-loom",
3
- "version": "8.0.7",
3
+ "version": "8.0.8",
4
4
  "description": "Loom plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/icon": "^28.5.0",
46
46
  "@atlaskit/platform-feature-flags": "^1.1.0",
47
47
  "@atlaskit/platform-feature-flags-react": "^0.3.0",
48
- "@atlaskit/tmp-editor-statsig": "^13.8.0",
48
+ "@atlaskit/tmp-editor-statsig": "^13.10.0",
49
49
  "@atlaskit/tokens": "^6.4.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1",