@atlaskit/adf-schema 49.0.5 → 49.1.0
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 +12 -0
- package/dist/cjs/index.js +114 -0
- package/dist/cjs/next-schema/generated/nodeTypes.js +118 -1
- package/dist/cjs/next-schema/nodes/blockCard.js +15 -0
- package/dist/cjs/next-schema/nodes/blockquote.js +16 -2
- package/dist/cjs/next-schema/nodes/caption.js +7 -0
- package/dist/cjs/next-schema/nodes/codeBlock.js +5 -0
- package/dist/cjs/next-schema/nodes/date.js +5 -0
- package/dist/cjs/next-schema/nodes/embedCard.js +5 -0
- package/dist/cjs/next-schema/nodes/emoji.js +5 -0
- package/dist/cjs/next-schema/nodes/expand.js +5 -0
- package/dist/cjs/next-schema/nodes/hardBreak.js +5 -0
- package/dist/cjs/next-schema/nodes/inlineCard.js +10 -0
- package/dist/cjs/next-schema/nodes/layoutColumn.js +5 -0
- package/dist/cjs/next-schema/nodes/layoutSection.js +12 -0
- package/dist/cjs/next-schema/nodes/list.js +20 -1
- package/dist/cjs/next-schema/nodes/media.js +10 -0
- package/dist/cjs/next-schema/nodes/mediaInline.js +5 -0
- package/dist/cjs/next-schema/nodes/mediaSingle.js +10 -0
- package/dist/cjs/next-schema/nodes/nestedExpand.js +5 -0
- package/dist/cjs/next-schema/nodes/panel.js +5 -0
- package/dist/cjs/next-schema/nodes/placeholder.js +5 -0
- package/dist/cjs/next-schema/nodes/rule.js +9 -1
- package/dist/cjs/schema/index.js +120 -0
- package/dist/cjs/schema/marks/background-color.js +9 -9
- package/dist/cjs/schema/nodes/block-card.js +48 -1
- package/dist/cjs/schema/nodes/blockquote.js +20 -2
- package/dist/cjs/schema/nodes/bullet-list.js +20 -1
- package/dist/cjs/schema/nodes/caption.js +20 -1
- package/dist/cjs/schema/nodes/code-block.js +72 -2
- package/dist/cjs/schema/nodes/date.js +22 -1
- package/dist/cjs/schema/nodes/embed-card.js +36 -1
- package/dist/cjs/schema/nodes/emoji.js +73 -1
- package/dist/cjs/schema/nodes/expand.js +56 -1
- package/dist/cjs/schema/nodes/hard-break.js +18 -1
- package/dist/cjs/schema/nodes/index.js +120 -0
- package/dist/cjs/schema/nodes/inline-card.js +46 -1
- package/dist/cjs/schema/nodes/layout-column.js +37 -1
- package/dist/cjs/schema/nodes/layout-section.js +31 -1
- package/dist/cjs/schema/nodes/list-item.js +34 -1
- package/dist/cjs/schema/nodes/media-inline.js +12 -2
- package/dist/cjs/schema/nodes/media-single.js +22 -2
- package/dist/cjs/schema/nodes/media.js +21 -4
- package/dist/cjs/schema/nodes/nested-expand.js +34 -7
- package/dist/cjs/schema/nodes/ordered-list.js +54 -3
- package/dist/cjs/schema/nodes/panel.js +13 -5
- package/dist/cjs/schema/nodes/placeholder.js +24 -1
- package/dist/cjs/schema/nodes/rule.js +18 -1
- package/dist/cjs/validator-schema/generated/validatorSpec.js +142 -0
- package/dist/es2019/index.js +2 -2
- package/dist/es2019/next-schema/generated/nodeTypes.js +118 -1
- package/dist/es2019/next-schema/nodes/blockCard.js +15 -0
- package/dist/es2019/next-schema/nodes/blockquote.js +16 -2
- package/dist/es2019/next-schema/nodes/caption.js +7 -0
- package/dist/es2019/next-schema/nodes/codeBlock.js +5 -0
- package/dist/es2019/next-schema/nodes/date.js +5 -0
- package/dist/es2019/next-schema/nodes/embedCard.js +5 -0
- package/dist/es2019/next-schema/nodes/emoji.js +5 -0
- package/dist/es2019/next-schema/nodes/expand.js +5 -0
- package/dist/es2019/next-schema/nodes/hardBreak.js +5 -0
- package/dist/es2019/next-schema/nodes/inlineCard.js +10 -0
- package/dist/es2019/next-schema/nodes/layoutColumn.js +5 -0
- package/dist/es2019/next-schema/nodes/layoutSection.js +12 -0
- package/dist/es2019/next-schema/nodes/list.js +20 -1
- package/dist/es2019/next-schema/nodes/media.js +10 -0
- package/dist/es2019/next-schema/nodes/mediaInline.js +5 -0
- package/dist/es2019/next-schema/nodes/mediaSingle.js +10 -0
- package/dist/es2019/next-schema/nodes/nestedExpand.js +5 -0
- package/dist/es2019/next-schema/nodes/panel.js +5 -0
- package/dist/es2019/next-schema/nodes/placeholder.js +5 -0
- package/dist/es2019/next-schema/nodes/rule.js +9 -1
- package/dist/es2019/schema/index.js +1 -1
- package/dist/es2019/schema/marks/background-color.js +9 -9
- package/dist/es2019/schema/nodes/block-card.js +50 -0
- package/dist/es2019/schema/nodes/blockquote.js +19 -1
- package/dist/es2019/schema/nodes/bullet-list.js +19 -0
- package/dist/es2019/schema/nodes/caption.js +19 -0
- package/dist/es2019/schema/nodes/code-block.js +68 -0
- package/dist/es2019/schema/nodes/date.js +19 -0
- package/dist/es2019/schema/nodes/embed-card.js +34 -0
- package/dist/es2019/schema/nodes/emoji.js +71 -0
- package/dist/es2019/schema/nodes/expand.js +59 -0
- package/dist/es2019/schema/nodes/hard-break.js +15 -0
- package/dist/es2019/schema/nodes/index.js +19 -19
- package/dist/es2019/schema/nodes/inline-card.js +45 -0
- package/dist/es2019/schema/nodes/layout-column.js +38 -0
- package/dist/es2019/schema/nodes/layout-section.js +32 -0
- package/dist/es2019/schema/nodes/list-item.js +29 -0
- package/dist/es2019/schema/nodes/media-inline.js +8 -1
- package/dist/es2019/schema/nodes/media-single.js +20 -1
- package/dist/es2019/schema/nodes/media.js +17 -4
- package/dist/es2019/schema/nodes/nested-expand.js +21 -6
- package/dist/es2019/schema/nodes/ordered-list.js +51 -2
- package/dist/es2019/schema/nodes/panel.js +11 -5
- package/dist/es2019/schema/nodes/placeholder.js +23 -0
- package/dist/es2019/schema/nodes/rule.js +15 -0
- package/dist/es2019/validator-schema/generated/validatorSpec.js +142 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/next-schema/generated/nodeTypes.js +118 -1
- package/dist/esm/next-schema/nodes/blockCard.js +15 -0
- package/dist/esm/next-schema/nodes/blockquote.js +16 -2
- package/dist/esm/next-schema/nodes/caption.js +7 -0
- package/dist/esm/next-schema/nodes/codeBlock.js +5 -0
- package/dist/esm/next-schema/nodes/date.js +5 -0
- package/dist/esm/next-schema/nodes/embedCard.js +5 -0
- package/dist/esm/next-schema/nodes/emoji.js +5 -0
- package/dist/esm/next-schema/nodes/expand.js +5 -0
- package/dist/esm/next-schema/nodes/hardBreak.js +5 -0
- package/dist/esm/next-schema/nodes/inlineCard.js +10 -0
- package/dist/esm/next-schema/nodes/layoutColumn.js +5 -0
- package/dist/esm/next-schema/nodes/layoutSection.js +12 -0
- package/dist/esm/next-schema/nodes/list.js +20 -1
- package/dist/esm/next-schema/nodes/media.js +10 -0
- package/dist/esm/next-schema/nodes/mediaInline.js +5 -0
- package/dist/esm/next-schema/nodes/mediaSingle.js +10 -0
- package/dist/esm/next-schema/nodes/nestedExpand.js +5 -0
- package/dist/esm/next-schema/nodes/panel.js +5 -0
- package/dist/esm/next-schema/nodes/placeholder.js +5 -0
- package/dist/esm/next-schema/nodes/rule.js +9 -1
- package/dist/esm/schema/index.js +1 -1
- package/dist/esm/schema/marks/background-color.js +9 -9
- package/dist/esm/schema/nodes/block-card.js +47 -0
- package/dist/esm/schema/nodes/blockquote.js +19 -1
- package/dist/esm/schema/nodes/bullet-list.js +19 -0
- package/dist/esm/schema/nodes/caption.js +19 -0
- package/dist/esm/schema/nodes/code-block.js +71 -1
- package/dist/esm/schema/nodes/date.js +21 -0
- package/dist/esm/schema/nodes/embed-card.js +35 -0
- package/dist/esm/schema/nodes/emoji.js +71 -0
- package/dist/esm/schema/nodes/expand.js +55 -0
- package/dist/esm/schema/nodes/hard-break.js +17 -0
- package/dist/esm/schema/nodes/index.js +19 -19
- package/dist/esm/schema/nodes/inline-card.js +45 -0
- package/dist/esm/schema/nodes/layout-column.js +36 -0
- package/dist/esm/schema/nodes/layout-section.js +30 -0
- package/dist/esm/schema/nodes/list-item.js +33 -0
- package/dist/esm/schema/nodes/media-inline.js +10 -1
- package/dist/esm/schema/nodes/media-single.js +21 -1
- package/dist/esm/schema/nodes/media.js +19 -3
- package/dist/esm/schema/nodes/nested-expand.js +32 -6
- package/dist/esm/schema/nodes/ordered-list.js +53 -2
- package/dist/esm/schema/nodes/panel.js +12 -4
- package/dist/esm/schema/nodes/placeholder.js +23 -0
- package/dist/esm/schema/nodes/rule.js +17 -0
- package/dist/esm/validator-schema/generated/validatorSpec.js +142 -0
- package/dist/json-schema/v1/full.json +125 -2
- package/dist/json-schema/v1/stage-0.json +137 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/next-schema/generated/nodeTypes.d.ts +62 -0
- package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +7 -0
- package/dist/types/next-schema/groups/tableCellContentPseudoGroup.d.ts +7 -0
- package/dist/types/next-schema/nodes/blockquote.d.ts +7 -0
- package/dist/types/next-schema/nodes/layoutSection.d.ts +5 -0
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/nodes/block-card.d.ts +4 -0
- package/dist/types/schema/nodes/blockquote.d.ts +4 -0
- package/dist/types/schema/nodes/bullet-list.d.ts +1 -0
- package/dist/types/schema/nodes/caption.d.ts +4 -0
- package/dist/types/schema/nodes/code-block.d.ts +2 -0
- package/dist/types/schema/nodes/date.d.ts +2 -0
- package/dist/types/schema/nodes/embed-card.d.ts +2 -0
- package/dist/types/schema/nodes/emoji.d.ts +2 -0
- package/dist/types/schema/nodes/expand.d.ts +2 -0
- package/dist/types/schema/nodes/hard-break.d.ts +2 -0
- package/dist/types/schema/nodes/index.d.ts +19 -19
- package/dist/types/schema/nodes/inline-card.d.ts +1 -0
- package/dist/types/schema/nodes/layout-column.d.ts +2 -0
- package/dist/types/schema/nodes/layout-section.d.ts +4 -0
- package/dist/types/schema/nodes/list-item.d.ts +2 -0
- package/dist/types/schema/nodes/media-inline.d.ts +1 -0
- package/dist/types/schema/nodes/media-single.d.ts +3 -1
- package/dist/types/schema/nodes/media.d.ts +3 -1
- package/dist/types/schema/nodes/nested-expand.d.ts +2 -0
- package/dist/types/schema/nodes/ordered-list.d.ts +2 -0
- package/dist/types/schema/nodes/panel.d.ts +2 -0
- package/dist/types/schema/nodes/placeholder.d.ts +2 -0
- package/dist/types/schema/nodes/rule.d.ts +4 -0
- package/dist/types/schema/nodes/types/list.d.ts +7 -0
- package/dist/types/schema/nodes/types/rich-media-common.d.ts +1 -0
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +142 -0
- package/json-schema/v1/full.json +125 -2
- package/json-schema/v1/stage-0.json +137 -2
- package/package.json +2 -2
- package/schema-generators/__tests__/unit/adfToValidatorSpec.unit.ts +1 -0
@@ -24,6 +24,11 @@ var expand = exports.expand = (0, _adfSchemaGenerator.adfNode)('expand').define(
|
|
24
24
|
type: 'boolean',
|
25
25
|
default: true,
|
26
26
|
optional: true
|
27
|
+
},
|
28
|
+
localId: {
|
29
|
+
type: 'string',
|
30
|
+
default: null,
|
31
|
+
optional: true
|
27
32
|
}
|
28
33
|
},
|
29
34
|
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_nonNestableBlockContentGroup.nonNestableBlockContentGroup, _nestedExpand.nestedExpand.use('with_no_marks')))]
|
@@ -19,11 +19,21 @@ var inlineCard = exports.inlineCard = (0, _adfSchemaGenerator.adfNode)('inlineCa
|
|
19
19
|
type: 'string',
|
20
20
|
default: null,
|
21
21
|
validatorFn: 'safeUrl'
|
22
|
+
},
|
23
|
+
localId: {
|
24
|
+
type: 'string',
|
25
|
+
default: null,
|
26
|
+
optional: true
|
22
27
|
}
|
23
28
|
}, {
|
24
29
|
data: {
|
25
30
|
type: 'object',
|
26
31
|
default: null
|
32
|
+
},
|
33
|
+
localId: {
|
34
|
+
type: 'string',
|
35
|
+
default: null,
|
36
|
+
optional: true
|
27
37
|
}
|
28
38
|
}]
|
29
39
|
},
|
@@ -20,6 +20,11 @@ var layoutColumn = exports.layoutColumn = (0, _adfSchemaGenerator.adfNode)('layo
|
|
20
20
|
minimum: 0,
|
21
21
|
maximum: 100,
|
22
22
|
default: undefined
|
23
|
+
},
|
24
|
+
localId: {
|
25
|
+
type: 'string',
|
26
|
+
default: null,
|
27
|
+
optional: true
|
23
28
|
}
|
24
29
|
},
|
25
30
|
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_blockGroup.blockGroup, _blockContentGroup.blockContentGroup, _unsupportedBlock.unsupportedBlock))]
|
@@ -12,6 +12,13 @@ var _layoutColumn = require("./layoutColumn");
|
|
12
12
|
var _unsupportedBlock = require("./unsupportedBlock");
|
13
13
|
var layoutSection = exports.layoutSection = (0, _adfSchemaGenerator.adfNode)('layoutSection').define({
|
14
14
|
isolating: true,
|
15
|
+
attrs: {
|
16
|
+
localId: {
|
17
|
+
type: 'string',
|
18
|
+
default: null,
|
19
|
+
optional: true
|
20
|
+
}
|
21
|
+
},
|
15
22
|
marks: [_breakout.breakout, _unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
16
23
|
content: [(0, _adfSchemaGenerator.$range)(1, 3, (0, _adfSchemaGenerator.$or)(_layoutColumn.layoutColumn, _unsupportedBlock.unsupportedBlock)), (0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_unsupportedBlock.unsupportedBlock))]
|
17
24
|
}).variant('with_single_column', {
|
@@ -24,6 +31,11 @@ var layoutSection = exports.layoutSection = (0, _adfSchemaGenerator.adfNode)('la
|
|
24
31
|
values: ['solid'],
|
25
32
|
default: null,
|
26
33
|
optional: true
|
34
|
+
},
|
35
|
+
localId: {
|
36
|
+
type: 'string',
|
37
|
+
default: null,
|
38
|
+
optional: true
|
27
39
|
}
|
28
40
|
}
|
29
41
|
}).variant('full', {
|
@@ -19,6 +19,13 @@ var bulletList = exports.bulletList = (0, _adfSchemaGenerator.adfNode)('bulletLi
|
|
19
19
|
var listItem = (0, _adfSchemaGenerator.adfNode)('listItem').define({
|
20
20
|
defining: true,
|
21
21
|
selectable: false,
|
22
|
+
attrs: {
|
23
|
+
localId: {
|
24
|
+
type: 'string',
|
25
|
+
default: null,
|
26
|
+
optional: true
|
27
|
+
}
|
28
|
+
},
|
22
29
|
marks: [_unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
23
30
|
contentMinItems: 1,
|
24
31
|
content: [(0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _codeBlock.codeBlock, _unsupportedBlock.unsupportedBlock, _extension.extension.use('with_marks')), (0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), bulletList, orderedList, _task.taskList, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _codeBlock.codeBlock, _unsupportedBlock.unsupportedBlock, _extension.extension.use('with_marks')))]
|
@@ -36,6 +43,11 @@ orderedList.define({
|
|
36
43
|
minimum: 0,
|
37
44
|
default: 1,
|
38
45
|
optional: true
|
46
|
+
},
|
47
|
+
localId: {
|
48
|
+
type: 'string',
|
49
|
+
default: null,
|
50
|
+
optional: true
|
39
51
|
}
|
40
52
|
},
|
41
53
|
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(listItem, listItem.use('with_nested_decision')))]
|
@@ -43,5 +55,12 @@ orderedList.define({
|
|
43
55
|
bulletList.define({
|
44
56
|
selectable: false,
|
45
57
|
marks: [_unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
46
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(listItem, listItem.use('with_nested_decision')))]
|
58
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(listItem, listItem.use('with_nested_decision')))],
|
59
|
+
attrs: {
|
60
|
+
localId: {
|
61
|
+
type: 'string',
|
62
|
+
default: null,
|
63
|
+
optional: true
|
64
|
+
}
|
65
|
+
}
|
47
66
|
});
|
@@ -20,6 +20,11 @@ var media = exports.media = (0, _adfSchemaGenerator.adfNode)('media').define({
|
|
20
20
|
values: ['link', 'file'],
|
21
21
|
default: 'file'
|
22
22
|
},
|
23
|
+
localId: {
|
24
|
+
type: 'string',
|
25
|
+
default: null,
|
26
|
+
optional: true
|
27
|
+
},
|
23
28
|
id: {
|
24
29
|
minLength: 1,
|
25
30
|
type: 'string',
|
@@ -92,6 +97,11 @@ var media = exports.media = (0, _adfSchemaGenerator.adfNode)('media').define({
|
|
92
97
|
values: ['external'],
|
93
98
|
default: 'file'
|
94
99
|
},
|
100
|
+
localId: {
|
101
|
+
type: 'string',
|
102
|
+
default: null,
|
103
|
+
optional: true
|
104
|
+
},
|
95
105
|
alt: {
|
96
106
|
type: 'string',
|
97
107
|
default: '',
|
@@ -17,6 +17,11 @@ var mediaSingle = exports.mediaSingle = (0, _adfSchemaGenerator.adfNode)('mediaS
|
|
17
17
|
marks: [_link.link, _unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
18
18
|
attrs: {
|
19
19
|
anyOf: [{
|
20
|
+
localId: {
|
21
|
+
type: 'string',
|
22
|
+
default: null,
|
23
|
+
optional: true
|
24
|
+
},
|
20
25
|
width: {
|
21
26
|
type: 'number',
|
22
27
|
minimum: 0,
|
@@ -36,6 +41,11 @@ var mediaSingle = exports.mediaSingle = (0, _adfSchemaGenerator.adfNode)('mediaS
|
|
36
41
|
optional: true
|
37
42
|
}
|
38
43
|
}, {
|
44
|
+
localId: {
|
45
|
+
type: 'string',
|
46
|
+
default: null,
|
47
|
+
optional: true
|
48
|
+
},
|
39
49
|
width: {
|
40
50
|
type: 'number',
|
41
51
|
minimum: 0,
|
@@ -35,6 +35,11 @@ var nestedExpand = exports.nestedExpand = (0, _adfSchemaGenerator.adfNode)('nest
|
|
35
35
|
type: 'boolean',
|
36
36
|
default: true,
|
37
37
|
optional: true
|
38
|
+
},
|
39
|
+
localId: {
|
40
|
+
type: 'string',
|
41
|
+
default: null,
|
42
|
+
optional: true
|
38
43
|
}
|
39
44
|
},
|
40
45
|
content: [(0, _adfSchemaGenerator.$onePlus)(_adfSchemaGenerator.$or.apply(void 0, nestedExpandContent.concat([_extension.extension.use('with_marks')])))],
|
@@ -48,6 +48,11 @@ var panel = exports.panel = (0, _adfSchemaGenerator.adfNode)('panel').define({
|
|
48
48
|
type: 'string',
|
49
49
|
default: null,
|
50
50
|
optional: true
|
51
|
+
},
|
52
|
+
localId: {
|
53
|
+
type: 'string',
|
54
|
+
default: null,
|
55
|
+
optional: true
|
51
56
|
}
|
52
57
|
},
|
53
58
|
content: [(0, _adfSchemaGenerator.$onePlus)(_adfSchemaGenerator.$or.apply(void 0, panelContent.concat([_extension.extension.use('with_marks')])))]
|
@@ -5,4 +5,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.rule = void 0;
|
7
7
|
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
-
var rule = exports.rule = (0, _adfSchemaGenerator.adfNode)('rule').define({
|
8
|
+
var rule = exports.rule = (0, _adfSchemaGenerator.adfNode)('rule').define({
|
9
|
+
attrs: {
|
10
|
+
localId: {
|
11
|
+
type: 'string',
|
12
|
+
default: null,
|
13
|
+
optional: true
|
14
|
+
}
|
15
|
+
}
|
16
|
+
});
|
package/dist/cjs/schema/index.js
CHANGED
@@ -63,6 +63,12 @@ Object.defineProperty(exports, "blockCard", {
|
|
63
63
|
return _nodes.blockCard;
|
64
64
|
}
|
65
65
|
});
|
66
|
+
Object.defineProperty(exports, "blockCardWithLocalId", {
|
67
|
+
enumerable: true,
|
68
|
+
get: function get() {
|
69
|
+
return _nodes.blockCardWithLocalId;
|
70
|
+
}
|
71
|
+
});
|
66
72
|
Object.defineProperty(exports, "blockquote", {
|
67
73
|
enumerable: true,
|
68
74
|
get: function get() {
|
@@ -111,12 +117,24 @@ Object.defineProperty(exports, "bulletListSelector", {
|
|
111
117
|
return _nodes.bulletListSelector;
|
112
118
|
}
|
113
119
|
});
|
120
|
+
Object.defineProperty(exports, "bulletListWithLocalId", {
|
121
|
+
enumerable: true,
|
122
|
+
get: function get() {
|
123
|
+
return _nodes.bulletListWithLocalId;
|
124
|
+
}
|
125
|
+
});
|
114
126
|
Object.defineProperty(exports, "caption", {
|
115
127
|
enumerable: true,
|
116
128
|
get: function get() {
|
117
129
|
return _nodes.caption;
|
118
130
|
}
|
119
131
|
});
|
132
|
+
Object.defineProperty(exports, "captionWithLocalId", {
|
133
|
+
enumerable: true,
|
134
|
+
get: function get() {
|
135
|
+
return _nodes.captionWithLocalId;
|
136
|
+
}
|
137
|
+
});
|
120
138
|
Object.defineProperty(exports, "code", {
|
121
139
|
enumerable: true,
|
122
140
|
get: function get() {
|
@@ -135,6 +153,12 @@ Object.defineProperty(exports, "codeBlockToJSON", {
|
|
135
153
|
return _nodes.codeBlockToJSON;
|
136
154
|
}
|
137
155
|
});
|
156
|
+
Object.defineProperty(exports, "codeBlockWithLocalId", {
|
157
|
+
enumerable: true,
|
158
|
+
get: function get() {
|
159
|
+
return _nodes.codeBlockWithLocalId;
|
160
|
+
}
|
161
|
+
});
|
138
162
|
Object.defineProperty(exports, "colorPalette", {
|
139
163
|
enumerable: true,
|
140
164
|
get: function get() {
|
@@ -213,6 +237,12 @@ Object.defineProperty(exports, "date", {
|
|
213
237
|
return _nodes.date;
|
214
238
|
}
|
215
239
|
});
|
240
|
+
Object.defineProperty(exports, "dateWithLocalId", {
|
241
|
+
enumerable: true,
|
242
|
+
get: function get() {
|
243
|
+
return _nodes.dateWithLocalId;
|
244
|
+
}
|
245
|
+
});
|
216
246
|
Object.defineProperty(exports, "decisionItem", {
|
217
247
|
enumerable: true,
|
218
248
|
get: function get() {
|
@@ -249,12 +279,24 @@ Object.defineProperty(exports, "embedCard", {
|
|
249
279
|
return _nodes.embedCard;
|
250
280
|
}
|
251
281
|
});
|
282
|
+
Object.defineProperty(exports, "embedCardWithLocalId", {
|
283
|
+
enumerable: true,
|
284
|
+
get: function get() {
|
285
|
+
return _nodes.embedCardWithLocalId;
|
286
|
+
}
|
287
|
+
});
|
252
288
|
Object.defineProperty(exports, "emoji", {
|
253
289
|
enumerable: true,
|
254
290
|
get: function get() {
|
255
291
|
return _nodes.emoji;
|
256
292
|
}
|
257
293
|
});
|
294
|
+
Object.defineProperty(exports, "emojiWithLocalId", {
|
295
|
+
enumerable: true,
|
296
|
+
get: function get() {
|
297
|
+
return _nodes.emojiWithLocalId;
|
298
|
+
}
|
299
|
+
});
|
258
300
|
Object.defineProperty(exports, "expandToJSON", {
|
259
301
|
enumerable: true,
|
260
302
|
get: function get() {
|
@@ -267,18 +309,36 @@ Object.defineProperty(exports, "expandWithNestedExpand", {
|
|
267
309
|
return _nodes.expandWithNestedExpand;
|
268
310
|
}
|
269
311
|
});
|
312
|
+
Object.defineProperty(exports, "expandWithNestedExpandLocalId", {
|
313
|
+
enumerable: true,
|
314
|
+
get: function get() {
|
315
|
+
return _nodes.expandWithNestedExpandLocalId;
|
316
|
+
}
|
317
|
+
});
|
270
318
|
Object.defineProperty(exports, "extendedBlockquote", {
|
271
319
|
enumerable: true,
|
272
320
|
get: function get() {
|
273
321
|
return _nodes.extendedBlockquote;
|
274
322
|
}
|
275
323
|
});
|
324
|
+
Object.defineProperty(exports, "extendedBlockquoteWithLocalId", {
|
325
|
+
enumerable: true,
|
326
|
+
get: function get() {
|
327
|
+
return _nodes.extendedBlockquoteWithLocalId;
|
328
|
+
}
|
329
|
+
});
|
276
330
|
Object.defineProperty(exports, "extendedPanel", {
|
277
331
|
enumerable: true,
|
278
332
|
get: function get() {
|
279
333
|
return _nodes.extendedPanel;
|
280
334
|
}
|
281
335
|
});
|
336
|
+
Object.defineProperty(exports, "extendedPanelWithLocalId", {
|
337
|
+
enumerable: true,
|
338
|
+
get: function get() {
|
339
|
+
return _nodes.extendedPanelWithLocalId;
|
340
|
+
}
|
341
|
+
});
|
282
342
|
Object.defineProperty(exports, "extension", {
|
283
343
|
enumerable: true,
|
284
344
|
get: function get() {
|
@@ -321,6 +381,12 @@ Object.defineProperty(exports, "hardBreak", {
|
|
321
381
|
return _nodes.hardBreak;
|
322
382
|
}
|
323
383
|
});
|
384
|
+
Object.defineProperty(exports, "hardBreakWithLocalId", {
|
385
|
+
enumerable: true,
|
386
|
+
get: function get() {
|
387
|
+
return _nodes.hardBreakWithLocalId;
|
388
|
+
}
|
389
|
+
});
|
324
390
|
Object.defineProperty(exports, "heading", {
|
325
391
|
enumerable: true,
|
326
392
|
get: function get() {
|
@@ -345,6 +411,12 @@ Object.defineProperty(exports, "inlineCard", {
|
|
345
411
|
return _nodes.inlineCard;
|
346
412
|
}
|
347
413
|
});
|
414
|
+
Object.defineProperty(exports, "inlineCardWithLocalId", {
|
415
|
+
enumerable: true,
|
416
|
+
get: function get() {
|
417
|
+
return _nodes.inlineCardWithLocalId;
|
418
|
+
}
|
419
|
+
});
|
348
420
|
Object.defineProperty(exports, "inlineExtension", {
|
349
421
|
enumerable: true,
|
350
422
|
get: function get() {
|
@@ -363,6 +435,12 @@ Object.defineProperty(exports, "layoutColumn", {
|
|
363
435
|
return _nodes.layoutColumn;
|
364
436
|
}
|
365
437
|
});
|
438
|
+
Object.defineProperty(exports, "layoutColumnWithLocalId", {
|
439
|
+
enumerable: true,
|
440
|
+
get: function get() {
|
441
|
+
return _nodes.layoutColumnWithLocalId;
|
442
|
+
}
|
443
|
+
});
|
366
444
|
Object.defineProperty(exports, "layoutSection", {
|
367
445
|
enumerable: true,
|
368
446
|
get: function get() {
|
@@ -375,6 +453,12 @@ Object.defineProperty(exports, "layoutSectionWithSingleColumn", {
|
|
375
453
|
return _nodes.layoutSectionWithSingleColumn;
|
376
454
|
}
|
377
455
|
});
|
456
|
+
Object.defineProperty(exports, "layoutSectionWithSingleColumnLocalId", {
|
457
|
+
enumerable: true,
|
458
|
+
get: function get() {
|
459
|
+
return _nodes.layoutSectionWithSingleColumnLocalId;
|
460
|
+
}
|
461
|
+
});
|
378
462
|
Object.defineProperty(exports, "link", {
|
379
463
|
enumerable: true,
|
380
464
|
get: function get() {
|
@@ -429,6 +513,12 @@ Object.defineProperty(exports, "mediaSingleFull", {
|
|
429
513
|
return _nodes.mediaSingleFull;
|
430
514
|
}
|
431
515
|
});
|
516
|
+
Object.defineProperty(exports, "mediaSingleFullWithLocalId", {
|
517
|
+
enumerable: true,
|
518
|
+
get: function get() {
|
519
|
+
return _nodes.mediaSingleFullWithLocalId;
|
520
|
+
}
|
521
|
+
});
|
432
522
|
Object.defineProperty(exports, "mediaSingleSpec", {
|
433
523
|
enumerable: true,
|
434
524
|
get: function get() {
|
@@ -483,6 +573,12 @@ Object.defineProperty(exports, "nestedExpand", {
|
|
483
573
|
return _nodes.nestedExpand;
|
484
574
|
}
|
485
575
|
});
|
576
|
+
Object.defineProperty(exports, "nestedExpandWithLocalId", {
|
577
|
+
enumerable: true,
|
578
|
+
get: function get() {
|
579
|
+
return _nodes.nestedExpandWithLocalId;
|
580
|
+
}
|
581
|
+
});
|
486
582
|
Object.defineProperty(exports, "orderedList", {
|
487
583
|
enumerable: true,
|
488
584
|
get: function get() {
|
@@ -495,12 +591,24 @@ Object.defineProperty(exports, "orderedListSelector", {
|
|
495
591
|
return _nodes.orderedListSelector;
|
496
592
|
}
|
497
593
|
});
|
594
|
+
Object.defineProperty(exports, "orderedListWithLocalId", {
|
595
|
+
enumerable: true,
|
596
|
+
get: function get() {
|
597
|
+
return _nodes.orderedListWithLocalId;
|
598
|
+
}
|
599
|
+
});
|
498
600
|
Object.defineProperty(exports, "orderedListWithOrder", {
|
499
601
|
enumerable: true,
|
500
602
|
get: function get() {
|
501
603
|
return _nodes.orderedListWithOrder;
|
502
604
|
}
|
503
605
|
});
|
606
|
+
Object.defineProperty(exports, "orderedListWithOrderAndLocalId", {
|
607
|
+
enumerable: true,
|
608
|
+
get: function get() {
|
609
|
+
return _nodes.orderedListWithOrderAndLocalId;
|
610
|
+
}
|
611
|
+
});
|
504
612
|
Object.defineProperty(exports, "paragraph", {
|
505
613
|
enumerable: true,
|
506
614
|
get: function get() {
|
@@ -513,12 +621,24 @@ Object.defineProperty(exports, "placeholder", {
|
|
513
621
|
return _nodes.placeholder;
|
514
622
|
}
|
515
623
|
});
|
624
|
+
Object.defineProperty(exports, "placeholderWithLocalId", {
|
625
|
+
enumerable: true,
|
626
|
+
get: function get() {
|
627
|
+
return _nodes.placeholderWithLocalId;
|
628
|
+
}
|
629
|
+
});
|
516
630
|
Object.defineProperty(exports, "rule", {
|
517
631
|
enumerable: true,
|
518
632
|
get: function get() {
|
519
633
|
return _nodes.rule;
|
520
634
|
}
|
521
635
|
});
|
636
|
+
Object.defineProperty(exports, "ruleWithLocalId", {
|
637
|
+
enumerable: true,
|
638
|
+
get: function get() {
|
639
|
+
return _nodes.ruleWithLocalId;
|
640
|
+
}
|
641
|
+
});
|
522
642
|
Object.defineProperty(exports, "sanitizeNodes", {
|
523
643
|
enumerable: true,
|
524
644
|
get: function get() {
|
@@ -32,17 +32,17 @@ var colorArrayPalette = [[_colors.Neutral300, 'Gray'],
|
|
32
32
|
];
|
33
33
|
var colorArrayPaletteNext = [[_colors.Neutral300, 'Gray'],
|
34
34
|
// token: color.background.accent.gray.subtler
|
35
|
-
[_colors.
|
36
|
-
// token: color.background.accent.
|
37
|
-
[_colors.L200, 'Lime'],
|
38
|
-
// token: color.background.accent.lime.subtler
|
39
|
-
[_colors.Yellow200, 'Yellow'],
|
40
|
-
// token: color.background.accent.yellow.subtler
|
41
|
-
[_colors.O200, 'Orange'],
|
42
|
-
// token: color.background.accent.orange.subtler
|
35
|
+
[_colors.P200, 'Purple'],
|
36
|
+
// token: color.background.accent.purple.subtler
|
43
37
|
[_colors.M200, 'Magenta'],
|
44
38
|
// token: color.background.accent.magenta.subtler
|
45
|
-
[_colors.
|
39
|
+
[_colors.O200, 'Orange'],
|
40
|
+
// token: color.background.accent.orange.subtler
|
41
|
+
[_colors.Yellow200, 'Yellow'],
|
42
|
+
// token: color.background.accent.yellow.subtler
|
43
|
+
[_colors.L200, 'Lime'],
|
44
|
+
// token: color.background.accent.lime.subtler
|
45
|
+
[_colors.T200, 'Teal'] // token: color.background.accent.teal.subtler
|
46
46
|
];
|
47
47
|
|
48
48
|
// @see https://product-fabric.atlassian.net/wiki/spaces/E/pages/55979455/Colour+picker+decisions#Colourpickerdecisions-Visualdesigndecisions
|
@@ -4,9 +4,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
5
5
|
value: true
|
6
6
|
});
|
7
|
-
exports.blockCard = void 0;
|
7
|
+
exports.blockCardWithLocalId = exports.blockCard = void 0;
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
9
9
|
var _nodeTypes = require("../../next-schema/generated/nodeTypes");
|
10
|
+
var _utils = require("../../utils");
|
10
11
|
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; }
|
11
12
|
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) { (0, _defineProperty2.default)(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; }
|
12
13
|
/**
|
@@ -64,4 +65,50 @@ var blockCard = exports.blockCard = (0, _nodeTypes.blockCard)({
|
|
64
65
|
};
|
65
66
|
return ['a', attrs, (node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.url) || ' '];
|
66
67
|
}
|
68
|
+
});
|
69
|
+
var blockCardWithLocalId = exports.blockCardWithLocalId = (0, _nodeTypes.blockCard)({
|
70
|
+
parseDOM: [{
|
71
|
+
tag: 'a[data-block-card]',
|
72
|
+
// bump priority higher than hyperlink
|
73
|
+
priority: 100,
|
74
|
+
getAttrs: function getAttrs(dom) {
|
75
|
+
var anchor = dom;
|
76
|
+
return _objectSpread(_objectSpread({
|
77
|
+
url: anchor.getAttribute('href') || undefined
|
78
|
+
}, getCommonAttributesFromDom(dom)), {}, {
|
79
|
+
localId: _utils.uuid.generate()
|
80
|
+
});
|
81
|
+
}
|
82
|
+
}, {
|
83
|
+
tag: 'div[data-block-card]',
|
84
|
+
getAttrs: function getAttrs(dom) {
|
85
|
+
var anchor = dom;
|
86
|
+
return _objectSpread(_objectSpread({
|
87
|
+
url: anchor.getAttribute('data-card-url') || undefined
|
88
|
+
}, getCommonAttributesFromDom(dom)), {}, {
|
89
|
+
localId: _utils.uuid.generate()
|
90
|
+
});
|
91
|
+
}
|
92
|
+
}],
|
93
|
+
toDOM: function toDOM(node) {
|
94
|
+
var _node$attrs2, _node$attrs3;
|
95
|
+
var _ref4 = node.attrs,
|
96
|
+
url = _ref4.url;
|
97
|
+
var _ref5 = node.attrs,
|
98
|
+
data = _ref5.data;
|
99
|
+
var _ref6 = node.attrs,
|
100
|
+
layout = _ref6.layout,
|
101
|
+
width = _ref6.width,
|
102
|
+
datasource = _ref6.datasource;
|
103
|
+
var attrs = {
|
104
|
+
'data-block-card': '',
|
105
|
+
href: url || '',
|
106
|
+
'data-card-data': data ? JSON.stringify(data) : '',
|
107
|
+
'data-datasource': datasource ? JSON.stringify(datasource) : '',
|
108
|
+
'data-layout': layout,
|
109
|
+
'data-width': "".concat(width),
|
110
|
+
'data-local-id': (node === null || node === void 0 ? void 0 : (_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : _node$attrs2.localId) || undefined
|
111
|
+
};
|
112
|
+
return ['a', attrs, (node === null || node === void 0 ? void 0 : (_node$attrs3 = node.attrs) === null || _node$attrs3 === void 0 ? void 0 : _node$attrs3.url) || ' '];
|
113
|
+
}
|
67
114
|
});
|
@@ -3,8 +3,9 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.extendedBlockquote = exports.blockquote = void 0;
|
6
|
+
exports.extendedBlockquoteWithLocalId = exports.extendedBlockquote = exports.blockquote = void 0;
|
7
7
|
var _nodeTypes = require("../../next-schema/generated/nodeTypes");
|
8
|
+
var _utils = require("../../utils");
|
8
9
|
/**
|
9
10
|
* @name blockquote_node
|
10
11
|
*/
|
@@ -23,4 +24,21 @@ var blockquote = exports.blockquote = (0, _nodeTypes.blockquoteLegacy)(nodeSpecO
|
|
23
24
|
* @name extentedBlockquote
|
24
25
|
* @description the block quote node with nested code block, media, and extension
|
25
26
|
*/
|
26
|
-
var extendedBlockquote = exports.extendedBlockquote = (0, _nodeTypes.blockquote)(nodeSpecOptions);
|
27
|
+
var extendedBlockquote = exports.extendedBlockquote = (0, _nodeTypes.blockquote)(nodeSpecOptions);
|
28
|
+
var nodeSpecOptionsWithLocalId = {
|
29
|
+
parseDOM: [{
|
30
|
+
tag: 'blockquote',
|
31
|
+
getAttrs: function getAttrs() {
|
32
|
+
return {
|
33
|
+
localId: _utils.uuid.generate()
|
34
|
+
};
|
35
|
+
}
|
36
|
+
}],
|
37
|
+
toDOM: function toDOM(node) {
|
38
|
+
var _node$attrs;
|
39
|
+
return ['blockquote', {
|
40
|
+
'data-local-id': (node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.localId) || undefined
|
41
|
+
}, 0];
|
42
|
+
}
|
43
|
+
};
|
44
|
+
var extendedBlockquoteWithLocalId = exports.extendedBlockquoteWithLocalId = (0, _nodeTypes.blockquote)(nodeSpecOptionsWithLocalId);
|
@@ -3,7 +3,8 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.bulletListSelector = exports.bulletList = void 0;
|
6
|
+
exports.bulletListWithLocalId = exports.bulletListSelector = exports.bulletList = void 0;
|
7
|
+
var _utils = require("../../utils");
|
7
8
|
var _nodeTypes = require("../../next-schema/generated/nodeTypes");
|
8
9
|
var bulletListSelector = exports.bulletListSelector = '.ak-ul';
|
9
10
|
var bulletList = exports.bulletList = (0, _nodeTypes.bulletList)({
|
@@ -16,4 +17,22 @@ var bulletList = exports.bulletList = (0, _nodeTypes.bulletList)({
|
|
16
17
|
};
|
17
18
|
return ['ul', attrs, 0];
|
18
19
|
}
|
20
|
+
});
|
21
|
+
var bulletListWithLocalId = exports.bulletListWithLocalId = (0, _nodeTypes.bulletList)({
|
22
|
+
parseDOM: [{
|
23
|
+
tag: 'ul',
|
24
|
+
getAttrs: function getAttrs() {
|
25
|
+
return {
|
26
|
+
localId: _utils.uuid.generate()
|
27
|
+
};
|
28
|
+
}
|
29
|
+
}],
|
30
|
+
toDOM: function toDOM(node) {
|
31
|
+
var _node$attrs;
|
32
|
+
var attrs = {
|
33
|
+
class: bulletListSelector.substr(1),
|
34
|
+
'data-local-id': (node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.localId) || undefined
|
35
|
+
};
|
36
|
+
return ['ul', attrs, 0];
|
37
|
+
}
|
19
38
|
});
|
@@ -3,8 +3,9 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.caption = void 0;
|
6
|
+
exports.captionWithLocalId = exports.caption = void 0;
|
7
7
|
var _nodeTypes = require("../../next-schema/generated/nodeTypes");
|
8
|
+
var _utils = require("../../utils");
|
8
9
|
/**
|
9
10
|
* @name caption_node
|
10
11
|
*/
|
@@ -19,4 +20,22 @@ var caption = exports.caption = (0, _nodeTypes.caption)({
|
|
19
20
|
};
|
20
21
|
return ['figcaption', attrs, 0];
|
21
22
|
}
|
23
|
+
});
|
24
|
+
var captionWithLocalId = exports.captionWithLocalId = (0, _nodeTypes.caption)({
|
25
|
+
parseDOM: [{
|
26
|
+
tag: 'figcaption[data-caption]',
|
27
|
+
getAttrs: function getAttrs() {
|
28
|
+
return {
|
29
|
+
localId: _utils.uuid.generate()
|
30
|
+
};
|
31
|
+
}
|
32
|
+
}],
|
33
|
+
toDOM: function toDOM(node) {
|
34
|
+
var _node$attrs;
|
35
|
+
var attrs = {
|
36
|
+
'data-caption': 'true',
|
37
|
+
'data-local-id': (node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.localId) || undefined
|
38
|
+
};
|
39
|
+
return ['figcaption', attrs, 0];
|
40
|
+
}
|
22
41
|
});
|