@atlaskit/editor-plugin-highlight 18.0.9 → 18.0.11
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 +14 -0
- package/dist/cjs/highlightPlugin.js +2 -3
- package/dist/cjs/ui/HighlightColorMenuItem.js +1 -1
- package/dist/es2019/highlightPlugin.js +2 -3
- package/dist/es2019/ui/HighlightColorMenuItem.js +1 -1
- package/dist/esm/highlightPlugin.js +2 -3
- package/dist/esm/ui/HighlightColorMenuItem.js +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-highlight
|
|
2
2
|
|
|
3
|
+
## 18.0.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0920715a6b9fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0920715a6b9fc) -
|
|
8
|
+
Clean up feature gate `platform_editor_use_preferences_plugin`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 18.0.10
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 18.0.9
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -9,7 +9,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _backgroundColor = require("@atlaskit/adf-schema/background-color");
|
|
11
11
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
12
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
13
12
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
14
13
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
15
14
|
var _changeColor = require("./editor-commands/change-color");
|
|
@@ -105,8 +104,8 @@ var highlightPlugin = exports.highlightPlugin = function highlightPlugin(_ref) {
|
|
|
105
104
|
},
|
|
106
105
|
pluginsOptions: !isToolbarAIFCEnabled ? {
|
|
107
106
|
selectionToolbar: function selectionToolbar() {
|
|
108
|
-
var _api$userPreferences
|
|
109
|
-
var toolbarDocking =
|
|
107
|
+
var _api$userPreferences;
|
|
108
|
+
var toolbarDocking = api === null || api === void 0 || (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.preferences) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.toolbarDockingPosition;
|
|
110
109
|
if (toolbarDocking === 'none' && (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1', {
|
|
111
110
|
exposure: true
|
|
112
111
|
})) {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { backgroundColor } from '@atlaskit/adf-schema/background-color';
|
|
3
3
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
4
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
5
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
7
6
|
import { changeColor } from './editor-commands/change-color';
|
|
@@ -92,8 +91,8 @@ export const highlightPlugin = ({
|
|
|
92
91
|
},
|
|
93
92
|
pluginsOptions: !isToolbarAIFCEnabled ? {
|
|
94
93
|
selectionToolbar() {
|
|
95
|
-
var _api$userPreferences, _api$userPreferences$, _api$userPreferences$2
|
|
96
|
-
const toolbarDocking =
|
|
94
|
+
var _api$userPreferences, _api$userPreferences$, _api$userPreferences$2;
|
|
95
|
+
const toolbarDocking = api === null || api === void 0 ? void 0 : (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 ? void 0 : (_api$userPreferences$ = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences$ === void 0 ? void 0 : (_api$userPreferences$2 = _api$userPreferences$.preferences) === null || _api$userPreferences$2 === void 0 ? void 0 : _api$userPreferences$2.toolbarDockingPosition;
|
|
97
96
|
if (toolbarDocking === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
|
|
98
97
|
exposure: true
|
|
99
98
|
})) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* HighlightColorMenuItem.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* HighlightColorMenuItem.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import "./HighlightColorMenuItem.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -4,7 +4,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { backgroundColor } from '@atlaskit/adf-schema/background-color';
|
|
6
6
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
7
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
8
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
10
9
|
import { changeColor } from './editor-commands/change-color';
|
|
@@ -98,8 +97,8 @@ export var highlightPlugin = function highlightPlugin(_ref) {
|
|
|
98
97
|
},
|
|
99
98
|
pluginsOptions: !isToolbarAIFCEnabled ? {
|
|
100
99
|
selectionToolbar: function selectionToolbar() {
|
|
101
|
-
var _api$userPreferences
|
|
102
|
-
var toolbarDocking =
|
|
100
|
+
var _api$userPreferences;
|
|
101
|
+
var toolbarDocking = api === null || api === void 0 || (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.preferences) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.toolbarDockingPosition;
|
|
103
102
|
if (toolbarDocking === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
|
|
104
103
|
exposure: true
|
|
105
104
|
})) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* HighlightColorMenuItem.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* HighlightColorMenuItem.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import "./HighlightColorMenuItem.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-highlight",
|
|
3
|
-
"version": "18.0.
|
|
3
|
+
"version": "18.0.11",
|
|
4
4
|
"description": "Highlight plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
"atlassian": {
|
|
11
11
|
"team": "Editor: Core Experiences",
|
|
12
12
|
"website": {
|
|
13
|
+
"tags": [
|
|
14
|
+
"platform-labs"
|
|
15
|
+
],
|
|
13
16
|
"name": "EditorPluginHighlight",
|
|
14
17
|
"category": "Components"
|
|
15
18
|
}
|
|
@@ -24,7 +27,7 @@
|
|
|
24
27
|
],
|
|
25
28
|
"atlaskit:src": "src/index.ts",
|
|
26
29
|
"dependencies": {
|
|
27
|
-
"@atlaskit/adf-schema": "^57.
|
|
30
|
+
"@atlaskit/adf-schema": "^57.5.0",
|
|
28
31
|
"@atlaskit/css": "^1.1.0",
|
|
29
32
|
"@atlaskit/editor-palette": "^3.5.0",
|
|
30
33
|
"@atlaskit/editor-plugin-analytics": "^18.0.0",
|
|
@@ -42,13 +45,13 @@
|
|
|
42
45
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
43
46
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
44
47
|
"@atlaskit/primitives": "^22.5.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^198.0.0",
|
|
46
49
|
"@atlaskit/tokens": "^17.0.0",
|
|
47
50
|
"@babel/runtime": "^7.0.0",
|
|
48
51
|
"@emotion/react": "^11.7.1"
|
|
49
52
|
},
|
|
50
53
|
"peerDependencies": {
|
|
51
|
-
"@atlaskit/editor-common": "^122.
|
|
54
|
+
"@atlaskit/editor-common": "^122.11.0",
|
|
52
55
|
"react": "^18.2.0 || ^19.2.0",
|
|
53
56
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
54
57
|
},
|
|
@@ -57,9 +60,6 @@
|
|
|
57
60
|
"type": "boolean",
|
|
58
61
|
"referenceOnly": "true"
|
|
59
62
|
},
|
|
60
|
-
"platform_editor_use_preferences_plugin": {
|
|
61
|
-
"type": "boolean"
|
|
62
|
-
},
|
|
63
63
|
"platform_editor_lovability_text_bg_color_patch_1": {
|
|
64
64
|
"type": "boolean"
|
|
65
65
|
}
|