@atlaskit/editor-plugin-highlight 1.0.0 → 1.0.2
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 +21 -0
- package/dist/cjs/plugin.js +7 -8
- package/dist/es2019/plugin.js +7 -9
- package/dist/esm/plugin.js +7 -9
- package/package.json +8 -3
package/CHANGELOG.md
CHANGED
|
@@ -1 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-highlight
|
|
2
|
+
|
|
3
|
+
## 1.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
|
|
8
|
+
[`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
|
|
9
|
+
[ED-23102] Bump ADF schema to version 35.12.2
|
|
10
|
+
- [#96613](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96613)
|
|
11
|
+
[`398961a2b0a1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/398961a2b0a1) -
|
|
12
|
+
[ux] [ED-23133] Moved stepped rainbow text colour icon styles to editor-common and refactored to
|
|
13
|
+
be reusable
|
|
14
|
+
|
|
15
|
+
## 1.0.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#95715](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/95715)
|
|
20
|
+
[`f036f2fd9ccf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f036f2fd9ccf) -
|
|
21
|
+
[ED-23102] Added global styles that map the custom CSS variables to background color for
|
|
22
|
+
background color mark
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -4,19 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.highlightPlugin = void 0;
|
|
7
|
+
var _adfSchema = require("@atlaskit/adf-schema");
|
|
7
8
|
var _pmPlugin = require("./pm-plugin");
|
|
8
|
-
// TODO: Uncomment once ADF schema change rolled out in AFM
|
|
9
|
-
// import { backgroundColor } from '@atlaskit/adf-schema';
|
|
10
|
-
|
|
11
9
|
var highlightPlugin = exports.highlightPlugin = function highlightPlugin(_ref) {
|
|
12
10
|
var api = _ref.api;
|
|
13
11
|
return {
|
|
14
12
|
name: 'highlight',
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
marks: function marks() {
|
|
14
|
+
return [{
|
|
15
|
+
name: 'backgroundColor',
|
|
16
|
+
mark: _adfSchema.backgroundColor
|
|
17
|
+
}];
|
|
18
|
+
},
|
|
20
19
|
pmPlugins: function pmPlugins() {
|
|
21
20
|
return [{
|
|
22
21
|
name: 'highlight',
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
|
+
import { backgroundColor } from '@atlaskit/adf-schema';
|
|
1
2
|
import { createPlugin, highlightPluginKey } from './pm-plugin';
|
|
2
|
-
|
|
3
|
-
// TODO: Uncomment once ADF schema change rolled out in AFM
|
|
4
|
-
// import { backgroundColor } from '@atlaskit/adf-schema';
|
|
5
|
-
|
|
6
3
|
export const highlightPlugin = ({
|
|
7
4
|
api
|
|
8
5
|
}) => ({
|
|
9
6
|
name: 'highlight',
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
marks() {
|
|
8
|
+
return [{
|
|
9
|
+
name: 'backgroundColor',
|
|
10
|
+
mark: backgroundColor
|
|
11
|
+
}];
|
|
12
|
+
},
|
|
15
13
|
pmPlugins: () => [{
|
|
16
14
|
name: 'highlight',
|
|
17
15
|
plugin: () => createPlugin({
|
package/dist/esm/plugin.js
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
|
+
import { backgroundColor } from '@atlaskit/adf-schema';
|
|
1
2
|
import { createPlugin, highlightPluginKey } from './pm-plugin';
|
|
2
|
-
|
|
3
|
-
// TODO: Uncomment once ADF schema change rolled out in AFM
|
|
4
|
-
// import { backgroundColor } from '@atlaskit/adf-schema';
|
|
5
|
-
|
|
6
3
|
export var highlightPlugin = function highlightPlugin(_ref) {
|
|
7
4
|
var api = _ref.api;
|
|
8
5
|
return {
|
|
9
6
|
name: 'highlight',
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
marks: function marks() {
|
|
8
|
+
return [{
|
|
9
|
+
name: 'backgroundColor',
|
|
10
|
+
mark: backgroundColor
|
|
11
|
+
}];
|
|
12
|
+
},
|
|
15
13
|
pmPlugins: function pmPlugins() {
|
|
16
14
|
return [{
|
|
17
15
|
name: 'highlight',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-highlight",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Highlight plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -38,7 +38,8 @@
|
|
|
38
38
|
".": "./src/index.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@atlaskit/
|
|
41
|
+
"@atlaskit/adf-schema": "^35.12.2",
|
|
42
|
+
"@atlaskit/editor-common": "^78.37.0",
|
|
42
43
|
"@atlaskit/editor-plugin-analytics": "^1.1.0",
|
|
43
44
|
"@atlaskit/editor-plugin-text-formatting": "^1.4.0",
|
|
44
45
|
"@atlaskit/editor-prosemirror": "4.0.0",
|
|
@@ -48,6 +49,7 @@
|
|
|
48
49
|
"react": "^16.8.0"
|
|
49
50
|
},
|
|
50
51
|
"devDependencies": {
|
|
52
|
+
"@atlaskit/tokens": "^1.45.0",
|
|
51
53
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
52
54
|
"typescript": "~5.4.2"
|
|
53
55
|
},
|
|
@@ -89,7 +91,10 @@
|
|
|
89
91
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
|
|
90
92
|
"stricter": {
|
|
91
93
|
"no-unused-dependencies": {
|
|
92
|
-
"checkDevDependencies": true
|
|
94
|
+
"checkDevDependencies": true,
|
|
95
|
+
"exclude": [
|
|
96
|
+
"@atlaskit/tokens"
|
|
97
|
+
]
|
|
93
98
|
}
|
|
94
99
|
}
|
|
95
100
|
}
|