@atlaskit/adf-schema 40.8.1 → 40.8.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 +6 -0
- package/dist/cjs/schema/nodes/expand.js +2 -2
- package/dist/cjs/schema/nodes/nested-expand.js +10 -8
- package/dist/es2019/schema/nodes/expand.js +2 -2
- package/dist/es2019/schema/nodes/nested-expand.js +10 -8
- package/dist/esm/schema/nodes/expand.js +2 -2
- package/dist/esm/schema/nodes/nested-expand.js +10 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -36,11 +36,11 @@ var nodeSpecOptions = {
|
|
36
36
|
}, {
|
37
37
|
context: 'expand//',
|
38
38
|
tag: '[data-node-type="expand"]',
|
39
|
-
|
39
|
+
getAttrs: getExpandAttrs
|
40
40
|
}, {
|
41
41
|
context: 'nestedExpand//',
|
42
42
|
tag: '[data-node-type="expand"]',
|
43
|
-
|
43
|
+
getAttrs: getExpandAttrs
|
44
44
|
}, {
|
45
45
|
tag: '[data-node-type="nestedExpand"] button',
|
46
46
|
ignore: true
|
@@ -19,6 +19,14 @@ var _nodeTypes = require("../../next-schema/generated/nodeTypes");
|
|
19
19
|
* @name nestedExpand_with_no_marks_node
|
20
20
|
*/
|
21
21
|
|
22
|
+
function getExpandAttrs(domNode) {
|
23
|
+
var dom = domNode;
|
24
|
+
return {
|
25
|
+
title: dom.getAttribute('data-title'),
|
26
|
+
__expanded: true
|
27
|
+
};
|
28
|
+
}
|
29
|
+
|
22
30
|
/**
|
23
31
|
* @name nestedExpand
|
24
32
|
* @description an expand that can be nested (eg. inside table, layout).
|
@@ -27,7 +35,7 @@ var nestedExpand = exports.nestedExpand = (0, _nodeTypes.nestedExpand)({
|
|
27
35
|
parseDOM: [{
|
28
36
|
context: 'nestedExpand//',
|
29
37
|
tag: '[data-node-type="nestedExpand"]',
|
30
|
-
|
38
|
+
getAttrs: getExpandAttrs
|
31
39
|
}, {
|
32
40
|
tag: '[data-node-type="nestedExpand"] button',
|
33
41
|
ignore: true
|
@@ -36,13 +44,7 @@ var nestedExpand = exports.nestedExpand = (0, _nodeTypes.nestedExpand)({
|
|
36
44
|
ignore: true
|
37
45
|
}, {
|
38
46
|
tag: 'div[data-node-type="nestedExpand"]',
|
39
|
-
getAttrs:
|
40
|
-
var dom = domNode;
|
41
|
-
return {
|
42
|
-
title: dom.getAttribute('data-title'),
|
43
|
-
__expanded: true
|
44
|
-
};
|
45
|
-
}
|
47
|
+
getAttrs: getExpandAttrs
|
46
48
|
}],
|
47
49
|
toDOM: function toDOM(node) {
|
48
50
|
var attrs = {
|
@@ -27,11 +27,11 @@ const nodeSpecOptions = {
|
|
27
27
|
}, {
|
28
28
|
context: 'expand//',
|
29
29
|
tag: '[data-node-type="expand"]',
|
30
|
-
|
30
|
+
getAttrs: getExpandAttrs
|
31
31
|
}, {
|
32
32
|
context: 'nestedExpand//',
|
33
33
|
tag: '[data-node-type="expand"]',
|
34
|
-
|
34
|
+
getAttrs: getExpandAttrs
|
35
35
|
}, {
|
36
36
|
tag: '[data-node-type="nestedExpand"] button',
|
37
37
|
ignore: true
|
@@ -14,6 +14,14 @@ import { nestedExpand as nestedExpandFactory } from '../../next-schema/generated
|
|
14
14
|
* @name nestedExpand_with_no_marks_node
|
15
15
|
*/
|
16
16
|
|
17
|
+
function getExpandAttrs(domNode) {
|
18
|
+
const dom = domNode;
|
19
|
+
return {
|
20
|
+
title: dom.getAttribute('data-title'),
|
21
|
+
__expanded: true
|
22
|
+
};
|
23
|
+
}
|
24
|
+
|
17
25
|
/**
|
18
26
|
* @name nestedExpand
|
19
27
|
* @description an expand that can be nested (eg. inside table, layout).
|
@@ -22,7 +30,7 @@ export const nestedExpand = nestedExpandFactory({
|
|
22
30
|
parseDOM: [{
|
23
31
|
context: 'nestedExpand//',
|
24
32
|
tag: '[data-node-type="nestedExpand"]',
|
25
|
-
|
33
|
+
getAttrs: getExpandAttrs
|
26
34
|
}, {
|
27
35
|
tag: '[data-node-type="nestedExpand"] button',
|
28
36
|
ignore: true
|
@@ -31,13 +39,7 @@ export const nestedExpand = nestedExpandFactory({
|
|
31
39
|
ignore: true
|
32
40
|
}, {
|
33
41
|
tag: 'div[data-node-type="nestedExpand"]',
|
34
|
-
getAttrs:
|
35
|
-
const dom = domNode;
|
36
|
-
return {
|
37
|
-
title: dom.getAttribute('data-title'),
|
38
|
-
__expanded: true
|
39
|
-
};
|
40
|
-
}
|
42
|
+
getAttrs: getExpandAttrs
|
41
43
|
}],
|
42
44
|
toDOM(node) {
|
43
45
|
const attrs = {
|
@@ -30,11 +30,11 @@ var nodeSpecOptions = {
|
|
30
30
|
}, {
|
31
31
|
context: 'expand//',
|
32
32
|
tag: '[data-node-type="expand"]',
|
33
|
-
|
33
|
+
getAttrs: getExpandAttrs
|
34
34
|
}, {
|
35
35
|
context: 'nestedExpand//',
|
36
36
|
tag: '[data-node-type="expand"]',
|
37
|
-
|
37
|
+
getAttrs: getExpandAttrs
|
38
38
|
}, {
|
39
39
|
tag: '[data-node-type="nestedExpand"] button',
|
40
40
|
ignore: true
|
@@ -14,6 +14,14 @@ import { nestedExpand as nestedExpandFactory } from '../../next-schema/generated
|
|
14
14
|
* @name nestedExpand_with_no_marks_node
|
15
15
|
*/
|
16
16
|
|
17
|
+
function getExpandAttrs(domNode) {
|
18
|
+
var dom = domNode;
|
19
|
+
return {
|
20
|
+
title: dom.getAttribute('data-title'),
|
21
|
+
__expanded: true
|
22
|
+
};
|
23
|
+
}
|
24
|
+
|
17
25
|
/**
|
18
26
|
* @name nestedExpand
|
19
27
|
* @description an expand that can be nested (eg. inside table, layout).
|
@@ -22,7 +30,7 @@ export var nestedExpand = nestedExpandFactory({
|
|
22
30
|
parseDOM: [{
|
23
31
|
context: 'nestedExpand//',
|
24
32
|
tag: '[data-node-type="nestedExpand"]',
|
25
|
-
|
33
|
+
getAttrs: getExpandAttrs
|
26
34
|
}, {
|
27
35
|
tag: '[data-node-type="nestedExpand"] button',
|
28
36
|
ignore: true
|
@@ -31,13 +39,7 @@ export var nestedExpand = nestedExpandFactory({
|
|
31
39
|
ignore: true
|
32
40
|
}, {
|
33
41
|
tag: 'div[data-node-type="nestedExpand"]',
|
34
|
-
getAttrs:
|
35
|
-
var dom = domNode;
|
36
|
-
return {
|
37
|
-
title: dom.getAttribute('data-title'),
|
38
|
-
__expanded: true
|
39
|
-
};
|
40
|
-
}
|
42
|
+
getAttrs: getExpandAttrs
|
41
43
|
}],
|
42
44
|
toDOM: function toDOM(node) {
|
43
45
|
var attrs = {
|
package/package.json
CHANGED