@atlaskit/editor-plugin-highlight 16.0.11 → 16.0.13
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
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.highlightPlugin = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var
|
|
10
|
+
var _backgroundColor = require("@atlaskit/adf-schema/background-color");
|
|
11
11
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
12
12
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
13
13
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
@@ -62,13 +62,13 @@ var highlightPlugin = exports.highlightPlugin = function highlightPlugin(_ref) {
|
|
|
62
62
|
if ((0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true) || (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_lovability_color_schema_change')) {
|
|
63
63
|
return [{
|
|
64
64
|
name: 'backgroundColor',
|
|
65
|
-
mark:
|
|
65
|
+
mark: _backgroundColor.backgroundColor
|
|
66
66
|
}];
|
|
67
67
|
}
|
|
68
68
|
// color is defined in platform/packages/editor/adf-schema/src/next-schema/marks/color.ts
|
|
69
69
|
return [{
|
|
70
70
|
name: 'backgroundColor',
|
|
71
|
-
mark: _objectSpread(_objectSpread({},
|
|
71
|
+
mark: _objectSpread(_objectSpread({}, _backgroundColor.backgroundColor), {}, {
|
|
72
72
|
excludes: 'color'
|
|
73
73
|
})
|
|
74
74
|
}];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { backgroundColor } from '@atlaskit/adf-schema';
|
|
2
|
+
import { backgroundColor } from '@atlaskit/adf-schema/background-color';
|
|
3
3
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
4
4
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
5
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { backgroundColor } from '@atlaskit/adf-schema';
|
|
5
|
+
import { backgroundColor } from '@atlaskit/adf-schema/background-color';
|
|
6
6
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-highlight",
|
|
3
|
-
"version": "16.0.
|
|
3
|
+
"version": "16.0.13",
|
|
4
4
|
"description": "Highlight plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -42,52 +42,16 @@
|
|
|
42
42
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
44
44
|
"@atlaskit/primitives": "^22.5.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^173.0.0",
|
|
46
46
|
"@atlaskit/tokens": "^16.11.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"@emotion/react": "^11.7.1"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@atlaskit/editor-common": "^120.
|
|
51
|
+
"@atlaskit/editor-common": "^120.11.0",
|
|
52
52
|
"react": "^18.2.0 || ^19.2.0",
|
|
53
53
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
54
54
|
},
|
|
55
|
-
"techstack": {
|
|
56
|
-
"@atlassian/frontend": {
|
|
57
|
-
"import-structure": [
|
|
58
|
-
"atlassian-conventions"
|
|
59
|
-
],
|
|
60
|
-
"circular-dependencies": [
|
|
61
|
-
"file-and-folder-level"
|
|
62
|
-
],
|
|
63
|
-
"code-structure": [
|
|
64
|
-
"editor-plugin"
|
|
65
|
-
]
|
|
66
|
-
},
|
|
67
|
-
"@repo/internal": {
|
|
68
|
-
"dom-events": "use-bind-event-listener",
|
|
69
|
-
"analytics": [
|
|
70
|
-
"analytics-next"
|
|
71
|
-
],
|
|
72
|
-
"design-tokens": [
|
|
73
|
-
"color"
|
|
74
|
-
],
|
|
75
|
-
"theming": [
|
|
76
|
-
"react-context"
|
|
77
|
-
],
|
|
78
|
-
"ui-components": [
|
|
79
|
-
"lite-mode"
|
|
80
|
-
],
|
|
81
|
-
"deprecation": "no-deprecated-imports",
|
|
82
|
-
"styling": [
|
|
83
|
-
"emotion",
|
|
84
|
-
"compiled"
|
|
85
|
-
],
|
|
86
|
-
"imports": [
|
|
87
|
-
"import-no-extraneous-disable-for-examples-and-docs"
|
|
88
|
-
]
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
55
|
"platform-feature-flags": {
|
|
92
56
|
"editor_inline_comments_on_inline_nodes": {
|
|
93
57
|
"type": "boolean",
|