@atlaskit/editor-plugin-highlight 4.0.4 → 4.0.6

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-highlight
2
2
 
3
+ ## 4.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c0113eeccb2df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c0113eeccb2df) -
8
+ [ux] ED-29120 add a new config option for default editor preset
9
+ (`toolbar.enableNewToolbarExperience`) which allows the new toolbar to be disabled. This is needed
10
+ for editors that can't be excluded at the experiment level.
11
+ - Updated dependencies
12
+
13
+ ## 4.0.5
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 4.0.4
4
20
 
5
21
  ### Patch Changes
@@ -20,7 +20,7 @@ var highlightPlugin = exports.highlightPlugin = function highlightPlugin(_ref) {
20
20
  var api = _ref.api,
21
21
  options = _ref.config;
22
22
  var editorAnalyticsAPI = api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
23
- var isToolbarAifcEnabled = (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
23
+ var isToolbarAifcEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
24
24
  exposure: true
25
25
  });
26
26
  var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
@@ -14,7 +14,7 @@ export const highlightPlugin = ({
14
14
  }) => {
15
15
  var _api$analytics;
16
16
  const editorAnalyticsAPI = api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
17
- const isToolbarAifcEnabled = editorExperiment('platform_editor_toolbar_aifc', true, {
17
+ const isToolbarAifcEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
18
18
  exposure: true
19
19
  });
20
20
  const primaryToolbarComponent = ({
@@ -13,7 +13,7 @@ export var highlightPlugin = function highlightPlugin(_ref) {
13
13
  var api = _ref.api,
14
14
  options = _ref.config;
15
15
  var editorAnalyticsAPI = api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
16
- var isToolbarAifcEnabled = editorExperiment('platform_editor_toolbar_aifc', true, {
16
+ var isToolbarAifcEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
17
17
  exposure: true
18
18
  });
19
19
  var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-highlight",
3
- "version": "4.0.4",
3
+ "version": "4.0.6",
4
4
  "description": "Highlight plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,13 +34,13 @@
34
34
  "dependencies": {
35
35
  "@atlaskit/adf-schema": "^50.2.3",
36
36
  "@atlaskit/button": "^23.4.0",
37
- "@atlaskit/css": "^0.13.0",
37
+ "@atlaskit/css": "^0.14.0",
38
38
  "@atlaskit/editor-palette": "^2.1.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^4.0.0",
40
40
  "@atlaskit/editor-plugin-primary-toolbar": "^5.0.0",
41
41
  "@atlaskit/editor-plugin-selection-toolbar": "^5.0.0",
42
42
  "@atlaskit/editor-plugin-text-formatting": "^4.0.0",
43
- "@atlaskit/editor-plugin-toolbar": "^1.1.0",
43
+ "@atlaskit/editor-plugin-toolbar": "^1.2.0",
44
44
  "@atlaskit/editor-prosemirror": "7.0.0",
45
45
  "@atlaskit/editor-shared-styles": "^3.6.0",
46
46
  "@atlaskit/editor-tables": "^2.9.0",
@@ -49,14 +49,14 @@
49
49
  "@atlaskit/heading": "^5.2.0",
50
50
  "@atlaskit/icon": "^28.1.0",
51
51
  "@atlaskit/platform-feature-flags": "^1.1.0",
52
- "@atlaskit/primitives": "^14.13.0",
53
- "@atlaskit/tmp-editor-statsig": "^12.5.0",
54
- "@atlaskit/tokens": "^6.2.0",
52
+ "@atlaskit/primitives": "^14.14.0",
53
+ "@atlaskit/tmp-editor-statsig": "^12.8.0",
54
+ "@atlaskit/tokens": "^6.3.0",
55
55
  "@babel/runtime": "^7.0.0",
56
56
  "@emotion/react": "^11.7.1"
57
57
  },
58
58
  "peerDependencies": {
59
- "@atlaskit/editor-common": "^108.5.0",
59
+ "@atlaskit/editor-common": "^108.6.0",
60
60
  "react": "^18.2.0",
61
61
  "react-intl-next": "npm:react-intl@^5.18.1"
62
62
  },