@atlaskit/editor-plugin-status 3.1.17 → 3.1.18
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 +6 -0
- package/dist/cjs/nodeviews/StatusNodeView.js +15 -0
- package/dist/es2019/nodeviews/StatusNodeView.js +16 -0
- package/dist/esm/nodeviews/StatusNodeView.js +16 -0
- package/dist/types/nodeviews/StatusNodeView.d.ts +15 -1
- package/dist/types-ts4.5/nodeviews/StatusNodeView.d.ts +15 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -11,7 +11,16 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
11
11
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
12
12
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
13
13
|
var _statusNodeSpec = require("./statusNodeSpec");
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
14
17
|
var StatusNodeView = exports.StatusNodeView = /*#__PURE__*/function () {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @param node
|
|
21
|
+
* @param intl
|
|
22
|
+
* @example
|
|
23
|
+
*/
|
|
15
24
|
function StatusNodeView(node, intl) {
|
|
16
25
|
(0, _classCallCheck2.default)(this, StatusNodeView);
|
|
17
26
|
(0, _defineProperty2.default)(this, "box", null);
|
|
@@ -39,6 +48,12 @@ var StatusNodeView = exports.StatusNodeView = /*#__PURE__*/function () {
|
|
|
39
48
|
this.domElement.style.setProperty('opacity', '0.5');
|
|
40
49
|
}
|
|
41
50
|
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @param node
|
|
55
|
+
* @example
|
|
56
|
+
*/
|
|
42
57
|
}, {
|
|
43
58
|
key: "update",
|
|
44
59
|
value: function update(node) {
|
|
@@ -2,7 +2,17 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import { statusMessages as messages } from '@atlaskit/editor-common/messages';
|
|
3
3
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import { statusToDOM } from './statusNodeSpec';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
5
9
|
export class StatusNodeView {
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @param node
|
|
13
|
+
* @param intl
|
|
14
|
+
* @example
|
|
15
|
+
*/
|
|
6
16
|
constructor(node, intl) {
|
|
7
17
|
_defineProperty(this, "box", null);
|
|
8
18
|
_defineProperty(this, "textContainer", null);
|
|
@@ -28,6 +38,12 @@ export class StatusNodeView {
|
|
|
28
38
|
this.domElement.style.setProperty('opacity', '0.5');
|
|
29
39
|
}
|
|
30
40
|
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @param node
|
|
45
|
+
* @example
|
|
46
|
+
*/
|
|
31
47
|
update(node) {
|
|
32
48
|
if (node.type !== this.node.type) {
|
|
33
49
|
return false;
|
|
@@ -4,7 +4,17 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
4
4
|
import { statusMessages as messages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
6
6
|
import { statusToDOM } from './statusNodeSpec';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
7
11
|
export var StatusNodeView = /*#__PURE__*/function () {
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @param node
|
|
15
|
+
* @param intl
|
|
16
|
+
* @example
|
|
17
|
+
*/
|
|
8
18
|
function StatusNodeView(node, intl) {
|
|
9
19
|
_classCallCheck(this, StatusNodeView);
|
|
10
20
|
_defineProperty(this, "box", null);
|
|
@@ -32,6 +42,12 @@ export var StatusNodeView = /*#__PURE__*/function () {
|
|
|
32
42
|
this.domElement.style.setProperty('opacity', '0.5');
|
|
33
43
|
}
|
|
34
44
|
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @param node
|
|
49
|
+
* @example
|
|
50
|
+
*/
|
|
35
51
|
}, {
|
|
36
52
|
key: "update",
|
|
37
53
|
value: function update(node) {
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { IntlShape } from 'react-intl-next';
|
|
1
|
+
import { type IntlShape } from 'react-intl-next';
|
|
2
2
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
4
7
|
export declare class StatusNodeView implements NodeView {
|
|
5
8
|
dom: Node;
|
|
6
9
|
domElement: HTMLElement | undefined;
|
|
@@ -8,7 +11,18 @@ export declare class StatusNodeView implements NodeView {
|
|
|
8
11
|
private textContainer;
|
|
9
12
|
private node;
|
|
10
13
|
private intl;
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @param node
|
|
17
|
+
* @param intl
|
|
18
|
+
* @example
|
|
19
|
+
*/
|
|
11
20
|
constructor(node: PMNode, intl: IntlShape);
|
|
12
21
|
private setPlaceholder;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @param node
|
|
25
|
+
* @example
|
|
26
|
+
*/
|
|
13
27
|
update(node: PMNode): boolean;
|
|
14
28
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { IntlShape } from 'react-intl-next';
|
|
1
|
+
import { type IntlShape } from 'react-intl-next';
|
|
2
2
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
4
7
|
export declare class StatusNodeView implements NodeView {
|
|
5
8
|
dom: Node;
|
|
6
9
|
domElement: HTMLElement | undefined;
|
|
@@ -8,7 +11,18 @@ export declare class StatusNodeView implements NodeView {
|
|
|
8
11
|
private textContainer;
|
|
9
12
|
private node;
|
|
10
13
|
private intl;
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @param node
|
|
17
|
+
* @param intl
|
|
18
|
+
* @example
|
|
19
|
+
*/
|
|
11
20
|
constructor(node: PMNode, intl: IntlShape);
|
|
12
21
|
private setPlaceholder;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @param node
|
|
25
|
+
* @example
|
|
26
|
+
*/
|
|
13
27
|
update(node: PMNode): boolean;
|
|
14
28
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-status",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.18",
|
|
4
4
|
"description": "Status plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
37
37
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
38
|
-
"@atlaskit/editor-common": "^105.
|
|
38
|
+
"@atlaskit/editor-common": "^105.10.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^2.3.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
41
41
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
42
|
-
"@atlaskit/icon": "^26.
|
|
42
|
+
"@atlaskit/icon": "^26.3.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
44
|
"@atlaskit/status": "^3.0.0",
|
|
45
45
|
"@atlaskit/theme": "^18.0.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
47
|
-
"@atlaskit/tokens": "^4.
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^5.0.0",
|
|
47
|
+
"@atlaskit/tokens": "^4.9.0",
|
|
48
48
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
50
|
"@emotion/react": "^11.7.1"
|