@atlaskit/editor-plugin-highlight 4.0.2 → 4.0.3
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,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-highlight
|
|
2
2
|
|
|
3
|
+
## 4.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`db97eb262cc5a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/db97eb262cc5a) -
|
|
8
|
+
replace platform_editor_toolbar_aifc with separate experiements for jira and confluence
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 4.0.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -8,7 +8,6 @@ exports.highlightPlugin = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
10
10
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
12
11
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
13
12
|
var _changeColor = require("./editor-commands/change-color");
|
|
14
13
|
var _keymap = require("./pm-plugins/keymap");
|
|
@@ -21,7 +20,9 @@ var highlightPlugin = exports.highlightPlugin = function highlightPlugin(_ref) {
|
|
|
21
20
|
var api = _ref.api,
|
|
22
21
|
options = _ref.config;
|
|
23
22
|
var editorAnalyticsAPI = api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
|
|
24
|
-
var isToolbarAifcEnabled = (0,
|
|
23
|
+
var isToolbarAifcEnabled = (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
|
|
24
|
+
exposure: true
|
|
25
|
+
});
|
|
25
26
|
var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
|
|
26
27
|
var popupsMountPoint = _ref2.popupsMountPoint,
|
|
27
28
|
popupsBoundariesElement = _ref2.popupsBoundariesElement,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { backgroundColor } from '@atlaskit/adf-schema';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
4
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
6
5
|
import { changeColor } from './editor-commands/change-color';
|
|
7
6
|
import { keymapPlugin } from './pm-plugins/keymap';
|
|
@@ -15,7 +14,9 @@ export const highlightPlugin = ({
|
|
|
15
14
|
}) => {
|
|
16
15
|
var _api$analytics;
|
|
17
16
|
const editorAnalyticsAPI = api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
|
|
18
|
-
const isToolbarAifcEnabled =
|
|
17
|
+
const isToolbarAifcEnabled = editorExperiment('platform_editor_toolbar_aifc', true, {
|
|
18
|
+
exposure: true
|
|
19
|
+
});
|
|
19
20
|
const primaryToolbarComponent = ({
|
|
20
21
|
popupsMountPoint,
|
|
21
22
|
popupsBoundariesElement,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { backgroundColor } from '@atlaskit/adf-schema';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
4
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
6
5
|
import { changeColor } from './editor-commands/change-color';
|
|
7
6
|
import { keymapPlugin } from './pm-plugins/keymap';
|
|
@@ -14,7 +13,9 @@ export var highlightPlugin = function highlightPlugin(_ref) {
|
|
|
14
13
|
var api = _ref.api,
|
|
15
14
|
options = _ref.config;
|
|
16
15
|
var editorAnalyticsAPI = api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
|
|
17
|
-
var isToolbarAifcEnabled =
|
|
16
|
+
var isToolbarAifcEnabled = editorExperiment('platform_editor_toolbar_aifc', true, {
|
|
17
|
+
exposure: true
|
|
18
|
+
});
|
|
18
19
|
var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
|
|
19
20
|
var popupsMountPoint = _ref2.popupsMountPoint,
|
|
20
21
|
popupsBoundariesElement = _ref2.popupsBoundariesElement,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-highlight",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"description": "Highlight plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"@atlaskit/icon": "^28.1.0",
|
|
50
50
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
51
51
|
"@atlaskit/primitives": "^14.13.0",
|
|
52
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
52
|
+
"@atlaskit/tmp-editor-statsig": "^12.5.0",
|
|
53
53
|
"@atlaskit/tokens": "^6.2.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
55
55
|
"@emotion/react": "^11.7.1"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@atlaskit/editor-common": "^108.
|
|
58
|
+
"@atlaskit/editor-common": "^108.3.0",
|
|
59
59
|
"react": "^18.2.0",
|
|
60
60
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
61
61
|
},
|