@atlaskit/editor-plugin-loom 8.0.7 → 8.0.9

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,21 @@
1
1
  # @atlaskit/editor-plugin-loom
2
2
 
3
+ ## 8.0.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 8.0.8
10
+
11
+ ### Patch Changes
12
+
13
+ - [`ef001bf65d48f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ef001bf65d48f) -
14
+ Remove usage of `platform_editor_toolbar_aifc` inside editor packages - instead rely on checking
15
+ for new toolbar plugin option, make `enableNewToolbarExperience` mandatory for consumers to opt in
16
+ to new toolbar experience
17
+ - Updated dependencies
18
+
3
19
  ## 8.0.7
4
20
 
5
21
  ### Patch Changes
@@ -219,7 +235,6 @@
219
235
  shared context or singletons.
220
236
 
221
237
  **HOW TO ADJUST:**
222
-
223
238
  - Consumers must now explicitly install `@atlaskit/editor-common` in their own project if they use
224
239
  any of these editor plugins.
225
240
  - Ensure the version you install matches the version required by the plugins.
@@ -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.9",
4
4
  "description": "Loom plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -38,21 +38,21 @@
38
38
  "@atlaskit/editor-plugin-hyperlink": "^8.0.0",
39
39
  "@atlaskit/editor-plugin-primary-toolbar": "^7.0.0",
40
40
  "@atlaskit/editor-plugin-quick-insert": "^6.0.0",
41
- "@atlaskit/editor-plugin-toolbar": "^3.2.0",
41
+ "@atlaskit/editor-plugin-toolbar": "^3.3.0",
42
42
  "@atlaskit/editor-plugin-width": "^7.0.0",
43
43
  "@atlaskit/editor-prosemirror": "7.0.0",
44
44
  "@atlaskit/editor-toolbar": "^0.15.0",
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",
49
- "@atlaskit/tokens": "^6.4.0",
48
+ "@atlaskit/tmp-editor-statsig": "^13.13.0",
49
+ "@atlaskit/tokens": "^7.0.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1",
52
52
  "@loomhq/record-sdk": "^4.3.3"
53
53
  },
54
54
  "peerDependencies": {
55
- "@atlaskit/editor-common": "^110.10.0",
55
+ "@atlaskit/editor-common": "^110.13.0",
56
56
  "react": "^18.2.0",
57
57
  "react-dom": "^18.2.0",
58
58
  "react-intl-next": "npm:react-intl@^5.18.1"