@atlaskit/editor-plugin-status 3.1.16 → 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 +15 -0
- package/dist/cjs/nodeviews/StatusNodeView.js +15 -0
- package/dist/cjs/nodeviews/statusNodeSpec.js +3 -0
- package/dist/es2019/nodeviews/StatusNodeView.js +16 -0
- package/dist/es2019/nodeviews/statusNodeSpec.js +3 -0
- package/dist/esm/nodeviews/StatusNodeView.js +16 -0
- package/dist/esm/nodeviews/statusNodeSpec.js +3 -0
- package/dist/types/nodeviews/StatusNodeView.d.ts +15 -1
- package/dist/types/nodeviews/statusNodeSpec.d.ts +1 -0
- package/dist/types-ts4.5/nodeviews/StatusNodeView.d.ts +15 -1
- package/dist/types-ts4.5/nodeviews/statusNodeSpec.d.ts +1 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-status
|
|
2
2
|
|
|
3
|
+
## 3.1.18
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 3.1.17
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#154961](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/154961)
|
|
14
|
+
[`766001ae63324`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/766001ae63324) -
|
|
15
|
+
NOISSUE: fix bad ssr render on vanilla status node
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 3.1.16
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -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) {
|
|
@@ -99,6 +99,7 @@ var isAndroidChromium = typeof window !== 'undefined' && /Version\/(?:[\0-\t\x0B
|
|
|
99
99
|
* Wrapper for ADF status node spec to augment toDOM implementation
|
|
100
100
|
* with fallback UI for lazy node view rendering / window virtualization
|
|
101
101
|
* @returns
|
|
102
|
+
* @example
|
|
102
103
|
*/
|
|
103
104
|
var statusNodeSpec = exports.statusNodeSpec = function statusNodeSpec() {
|
|
104
105
|
if (isSSR) {
|
|
@@ -137,6 +138,7 @@ var statusNodeSpec = exports.statusNodeSpec = function statusNodeSpec() {
|
|
|
137
138
|
class: 'status-lozenge-span',
|
|
138
139
|
'aria-busy': 'true',
|
|
139
140
|
'data-node-type': 'status',
|
|
141
|
+
'data-prosemirror-node-name': 'status',
|
|
140
142
|
'data-color': color,
|
|
141
143
|
'data-style': style
|
|
142
144
|
};
|
|
@@ -230,6 +232,7 @@ var statusToDOM = exports.statusToDOM = function statusToDOM(node) {
|
|
|
230
232
|
class: 'statusView-content-wrap inlineNodeView',
|
|
231
233
|
'data-testid': 'statusContainerView',
|
|
232
234
|
'data-prosemirror-node-view-type': 'vanilla',
|
|
235
|
+
'data-prosemirror-node-name': 'status',
|
|
233
236
|
'local-id': localId
|
|
234
237
|
};
|
|
235
238
|
var statusElementAttrs = {
|
|
@@ -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;
|
|
@@ -89,6 +89,7 @@ const isAndroidChromium = typeof window !== 'undefined' && /Version\/.* Chrome\/
|
|
|
89
89
|
* Wrapper for ADF status node spec to augment toDOM implementation
|
|
90
90
|
* with fallback UI for lazy node view rendering / window virtualization
|
|
91
91
|
* @returns
|
|
92
|
+
* @example
|
|
92
93
|
*/
|
|
93
94
|
export const statusNodeSpec = () => {
|
|
94
95
|
if (isSSR) {
|
|
@@ -129,6 +130,7 @@ export const statusNodeSpec = () => {
|
|
|
129
130
|
class: 'status-lozenge-span',
|
|
130
131
|
'aria-busy': 'true',
|
|
131
132
|
'data-node-type': 'status',
|
|
133
|
+
'data-prosemirror-node-name': 'status',
|
|
132
134
|
'data-color': color,
|
|
133
135
|
'data-style': style
|
|
134
136
|
};
|
|
@@ -226,6 +228,7 @@ export const statusToDOM = node => {
|
|
|
226
228
|
class: 'statusView-content-wrap inlineNodeView',
|
|
227
229
|
'data-testid': 'statusContainerView',
|
|
228
230
|
'data-prosemirror-node-view-type': 'vanilla',
|
|
231
|
+
'data-prosemirror-node-name': 'status',
|
|
229
232
|
'local-id': localId
|
|
230
233
|
};
|
|
231
234
|
const statusElementAttrs = {
|
|
@@ -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) {
|
|
@@ -92,6 +92,7 @@ var isAndroidChromium = typeof window !== 'undefined' && /Version\/(?:[\0-\t\x0B
|
|
|
92
92
|
* Wrapper for ADF status node spec to augment toDOM implementation
|
|
93
93
|
* with fallback UI for lazy node view rendering / window virtualization
|
|
94
94
|
* @returns
|
|
95
|
+
* @example
|
|
95
96
|
*/
|
|
96
97
|
export var statusNodeSpec = function statusNodeSpec() {
|
|
97
98
|
if (isSSR) {
|
|
@@ -130,6 +131,7 @@ export var statusNodeSpec = function statusNodeSpec() {
|
|
|
130
131
|
class: 'status-lozenge-span',
|
|
131
132
|
'aria-busy': 'true',
|
|
132
133
|
'data-node-type': 'status',
|
|
134
|
+
'data-prosemirror-node-name': 'status',
|
|
133
135
|
'data-color': color,
|
|
134
136
|
'data-style': style
|
|
135
137
|
};
|
|
@@ -223,6 +225,7 @@ export var statusToDOM = function statusToDOM(node) {
|
|
|
223
225
|
class: 'statusView-content-wrap inlineNodeView',
|
|
224
226
|
'data-testid': 'statusContainerView',
|
|
225
227
|
'data-prosemirror-node-view-type': 'vanilla',
|
|
228
|
+
'data-prosemirror-node-name': 'status',
|
|
226
229
|
'local-id': localId
|
|
227
230
|
};
|
|
228
231
|
var statusElementAttrs = {
|
|
@@ -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
|
}
|
|
@@ -3,6 +3,7 @@ import type { DOMOutputSpec, Node as PMNode } from '@atlaskit/editor-prosemirror
|
|
|
3
3
|
* Wrapper for ADF status node spec to augment toDOM implementation
|
|
4
4
|
* with fallback UI for lazy node view rendering / window virtualization
|
|
5
5
|
* @returns
|
|
6
|
+
* @example
|
|
6
7
|
*/
|
|
7
8
|
export declare const statusNodeSpec: () => import("prosemirror-model").NodeSpec;
|
|
8
9
|
export declare const statusToDOM: (node: PMNode) => DOMOutputSpec;
|
|
@@ -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
|
}
|
|
@@ -3,6 +3,7 @@ import type { DOMOutputSpec, Node as PMNode } from '@atlaskit/editor-prosemirror
|
|
|
3
3
|
* Wrapper for ADF status node spec to augment toDOM implementation
|
|
4
4
|
* with fallback UI for lazy node view rendering / window virtualization
|
|
5
5
|
* @returns
|
|
6
|
+
* @example
|
|
6
7
|
*/
|
|
7
8
|
export declare const statusNodeSpec: () => import("prosemirror-model").NodeSpec;
|
|
8
9
|
export declare const statusToDOM: (node: PMNode) => DOMOutputSpec;
|
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.
|
|
39
|
-
"@atlaskit/editor-plugin-analytics": "^2.
|
|
38
|
+
"@atlaskit/editor-common": "^105.10.0",
|
|
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"
|