@atlaskit/editor-plugin-loom 6.0.5 → 7.0.0

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
+ ## 7.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 6.0.6
10
+
11
+ ### Patch Changes
12
+
13
+ - [`c0113eeccb2df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c0113eeccb2df) -
14
+ [ux] ED-29120 add a new config option for default editor preset
15
+ (`toolbar.enableNewToolbarExperience`) which allows the new toolbar to be disabled. This is needed
16
+ for editors that can't be excluded at the experiment level.
17
+ - Updated dependencies
18
+
3
19
  ## 6.0.5
4
20
 
5
21
  ### Patch Changes
@@ -17,7 +17,7 @@ var loomPlugin = exports.loomPlugin = function loomPlugin(_ref) {
17
17
  var config = _ref.config,
18
18
  api = _ref.api;
19
19
  var editorAnalyticsAPI = api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
20
- var isNewToolbarEnabled = (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
20
+ var isNewToolbarEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
21
21
  exposure: true
22
22
  }) && (0, _expValEquals.expValEquals)('platform_editor_toolbar_migrate_loom', 'isEnabled', true);
23
23
 
@@ -12,7 +12,7 @@ export const loomPlugin = ({
12
12
  }) => {
13
13
  var _api$analytics;
14
14
  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 = editorExperiment('platform_editor_toolbar_aifc', true, {
15
+ const isNewToolbarEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
16
16
  exposure: true
17
17
  }) && expValEquals('platform_editor_toolbar_migrate_loom', 'isEnabled', true);
18
18
 
@@ -11,7 +11,7 @@ export var loomPlugin = function loomPlugin(_ref) {
11
11
  var config = _ref.config,
12
12
  api = _ref.api;
13
13
  var editorAnalyticsAPI = api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
14
- var isNewToolbarEnabled = editorExperiment('platform_editor_toolbar_aifc', true, {
14
+ var isNewToolbarEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
15
15
  exposure: true
16
16
  }) && expValEquals('platform_editor_toolbar_migrate_loom', 'isEnabled', true);
17
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-loom",
3
- "version": "6.0.5",
3
+ "version": "7.0.0",
4
4
  "description": "Loom plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,38 +33,38 @@
33
33
  "atlaskit:src": "src/index.ts",
34
34
  "dependencies": {
35
35
  "@atlaskit/button": "^23.4.0",
36
- "@atlaskit/editor-plugin-analytics": "^4.0.0",
37
- "@atlaskit/editor-plugin-editor-viewmode": "^6.0.0",
38
- "@atlaskit/editor-plugin-hyperlink": "^6.0.0",
39
- "@atlaskit/editor-plugin-primary-toolbar": "^5.0.0",
40
- "@atlaskit/editor-plugin-quick-insert": "^4.0.0",
41
- "@atlaskit/editor-plugin-toolbar": "^1.1.0",
42
- "@atlaskit/editor-plugin-width": "^5.0.0",
36
+ "@atlaskit/editor-plugin-analytics": "^5.0.0",
37
+ "@atlaskit/editor-plugin-editor-viewmode": "^7.0.0",
38
+ "@atlaskit/editor-plugin-hyperlink": "^7.0.0",
39
+ "@atlaskit/editor-plugin-primary-toolbar": "^6.0.0",
40
+ "@atlaskit/editor-plugin-quick-insert": "^5.0.0",
41
+ "@atlaskit/editor-plugin-toolbar": "^2.0.0",
42
+ "@atlaskit/editor-plugin-width": "^6.0.0",
43
43
  "@atlaskit/editor-prosemirror": "7.0.0",
44
44
  "@atlaskit/editor-toolbar": "^0.8.0",
45
45
  "@atlaskit/icon": "^28.1.0",
46
46
  "@atlaskit/platform-feature-flags": "^1.1.0",
47
- "@atlaskit/tmp-editor-statsig": "^12.7.0",
47
+ "@atlaskit/tmp-editor-statsig": "^12.9.0",
48
48
  "@atlaskit/tokens": "^6.3.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "@emotion/react": "^11.7.1",
51
51
  "@loomhq/record-sdk": "^2.36.18"
52
52
  },
53
53
  "peerDependencies": {
54
- "@atlaskit/editor-common": "^108.6.0",
54
+ "@atlaskit/editor-common": "^109.0.0",
55
55
  "react": "^18.2.0",
56
56
  "react-dom": "^18.2.0",
57
57
  "react-intl-next": "npm:react-intl@^5.18.1"
58
58
  },
59
59
  "devDependencies": {
60
- "@atlaskit/editor-plugin-base": "^5.0.0",
61
- "@atlaskit/editor-plugin-card": "^8.0.0",
62
- "@atlaskit/editor-plugin-copy-button": "^4.0.0",
63
- "@atlaskit/editor-plugin-decorations": "^4.0.0",
64
- "@atlaskit/editor-plugin-editor-disabled": "^4.0.0",
65
- "@atlaskit/editor-plugin-feature-flags": "^3.0.0",
66
- "@atlaskit/editor-plugin-floating-toolbar": "^6.0.0",
67
- "@atlaskit/editor-plugin-grid": "^4.0.0",
60
+ "@atlaskit/editor-plugin-base": "^6.0.0",
61
+ "@atlaskit/editor-plugin-card": "^9.0.0",
62
+ "@atlaskit/editor-plugin-copy-button": "^5.0.0",
63
+ "@atlaskit/editor-plugin-decorations": "^5.0.0",
64
+ "@atlaskit/editor-plugin-editor-disabled": "^5.0.0",
65
+ "@atlaskit/editor-plugin-feature-flags": "^4.0.0",
66
+ "@atlaskit/editor-plugin-floating-toolbar": "^7.0.0",
67
+ "@atlaskit/editor-plugin-grid": "^5.0.0",
68
68
  "@testing-library/react": "^13.4.0",
69
69
  "@testing-library/user-event": "^14.4.3",
70
70
  "raf-stub": "^2.0.1"