@atlaskit/adf-schema 36.11.0 → 36.12.1
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/next-schema/full-schema.adf.js +1 -1
- package/dist/cjs/next-schema/generated/nodeTypes.js +45 -45
- package/dist/cjs/next-schema/nodes/blockCard.js +5 -5
- package/dist/cjs/next-schema/nodes/bodiedExtension.js +2 -2
- package/dist/cjs/next-schema/nodes/codeBlock.js +2 -1
- package/dist/cjs/next-schema/nodes/extension.js +2 -2
- package/dist/cjs/next-schema/nodes/inlineCard.js +0 -2
- package/dist/cjs/next-schema/nodes/inlineExtension.js +2 -2
- package/dist/cjs/next-schema/nodes/list.js +2 -1
- package/dist/cjs/next-schema/nodes/media.js +11 -11
- package/dist/cjs/next-schema/nodes/mediaInline.js +2 -1
- package/dist/cjs/next-schema/nodes/mediaSingle.js +8 -9
- package/dist/cjs/next-schema/nodes/table.js +3 -1
- package/dist/cjs/next-schema/nodes/tableRow.js +1 -1
- package/dist/es2019/next-schema/full-schema.adf.js +2 -2
- package/dist/es2019/next-schema/generated/nodeTypes.js +45 -45
- package/dist/es2019/next-schema/nodes/blockCard.js +5 -5
- package/dist/es2019/next-schema/nodes/bodiedExtension.js +2 -2
- package/dist/es2019/next-schema/nodes/codeBlock.js +2 -1
- package/dist/es2019/next-schema/nodes/extension.js +2 -2
- package/dist/es2019/next-schema/nodes/inlineCard.js +0 -2
- package/dist/es2019/next-schema/nodes/inlineExtension.js +2 -2
- package/dist/es2019/next-schema/nodes/list.js +2 -1
- package/dist/es2019/next-schema/nodes/media.js +11 -11
- package/dist/es2019/next-schema/nodes/mediaInline.js +2 -1
- package/dist/es2019/next-schema/nodes/mediaSingle.js +8 -9
- package/dist/es2019/next-schema/nodes/table.js +3 -1
- package/dist/es2019/next-schema/nodes/tableRow.js +2 -2
- package/dist/esm/next-schema/full-schema.adf.js +2 -2
- package/dist/esm/next-schema/generated/nodeTypes.js +45 -45
- package/dist/esm/next-schema/nodes/blockCard.js +5 -5
- package/dist/esm/next-schema/nodes/bodiedExtension.js +2 -2
- package/dist/esm/next-schema/nodes/codeBlock.js +2 -1
- package/dist/esm/next-schema/nodes/extension.js +2 -2
- package/dist/esm/next-schema/nodes/inlineCard.js +0 -2
- package/dist/esm/next-schema/nodes/inlineExtension.js +2 -2
- package/dist/esm/next-schema/nodes/list.js +2 -1
- package/dist/esm/next-schema/nodes/media.js +11 -11
- package/dist/esm/next-schema/nodes/mediaInline.js +2 -1
- package/dist/esm/next-schema/nodes/mediaSingle.js +8 -9
- package/dist/esm/next-schema/nodes/table.js +3 -1
- package/dist/esm/next-schema/nodes/tableRow.js +2 -2
- package/dist/types/next-schema/generated/nodeTypes.d.ts +42 -42
- package/package.json +3 -2
- package/schema-generators/__tests__/unit/jqueries.md +13 -0
- package/schema-generators/__tests__/unit/json-full-schema.unit.ts +103 -0
@@ -10,7 +10,6 @@ export const blockCard = adfNode('blockCard').define({
|
|
10
10
|
},
|
11
11
|
datasource: {
|
12
12
|
type: 'object',
|
13
|
-
optional: true,
|
14
13
|
properties: {
|
15
14
|
id: {
|
16
15
|
type: 'string'
|
@@ -26,12 +25,14 @@ export const blockCard = adfNode('blockCard').define({
|
|
26
25
|
type: 'string'
|
27
26
|
}
|
28
27
|
},
|
28
|
+
required: ['type'],
|
29
29
|
type: 'object'
|
30
30
|
},
|
31
31
|
minItems: 1,
|
32
32
|
type: 'array'
|
33
33
|
}
|
34
|
-
}
|
34
|
+
},
|
35
|
+
required: ['id', 'parameters', 'views']
|
35
36
|
},
|
36
37
|
width: {
|
37
38
|
type: 'number',
|
@@ -44,12 +45,11 @@ export const blockCard = adfNode('blockCard').define({
|
|
44
45
|
}
|
45
46
|
}, {
|
46
47
|
url: {
|
47
|
-
type: 'string'
|
48
|
-
optional: true
|
48
|
+
type: 'string'
|
49
49
|
}
|
50
50
|
}, {
|
51
51
|
data: {
|
52
|
-
|
52
|
+
default: null
|
53
53
|
}
|
54
54
|
}]
|
55
55
|
}
|
@@ -7,12 +7,12 @@ export const bodiedExtension = adfNode('bodiedExtension').define({
|
|
7
7
|
selectable: true,
|
8
8
|
isolating: true,
|
9
9
|
attrs: {
|
10
|
-
|
10
|
+
extensionKey: {
|
11
11
|
minLength: 1,
|
12
12
|
type: 'string',
|
13
13
|
default: ''
|
14
14
|
},
|
15
|
-
|
15
|
+
extensionType: {
|
16
16
|
minLength: 1,
|
17
17
|
type: 'string',
|
18
18
|
default: ''
|
@@ -5,12 +5,12 @@ export const extension = adfNode('extension').define({
|
|
5
5
|
atom: true,
|
6
6
|
selectable: true,
|
7
7
|
attrs: {
|
8
|
-
|
8
|
+
extensionKey: {
|
9
9
|
minLength: 1,
|
10
10
|
type: 'string',
|
11
11
|
default: ''
|
12
12
|
},
|
13
|
-
|
13
|
+
extensionType: {
|
14
14
|
minLength: 1,
|
15
15
|
type: 'string',
|
16
16
|
default: ''
|
@@ -3,12 +3,12 @@ export const inlineExtension = adfNode('inlineExtension').define({
|
|
3
3
|
inline: true,
|
4
4
|
selectable: true,
|
5
5
|
attrs: {
|
6
|
-
|
6
|
+
extensionKey: {
|
7
7
|
minLength: 1,
|
8
8
|
type: 'string',
|
9
9
|
default: ''
|
10
10
|
},
|
11
|
-
|
11
|
+
extensionType: {
|
12
12
|
minLength: 1,
|
13
13
|
type: 'string',
|
14
14
|
default: ''
|
@@ -12,6 +12,11 @@ export const media = adfNode('media').define({
|
|
12
12
|
values: ['link', 'file'],
|
13
13
|
default: 'file'
|
14
14
|
},
|
15
|
+
id: {
|
16
|
+
minLength: 1,
|
17
|
+
type: 'string',
|
18
|
+
default: ''
|
19
|
+
},
|
15
20
|
alt: {
|
16
21
|
type: 'string',
|
17
22
|
default: '',
|
@@ -21,11 +26,6 @@ export const media = adfNode('media').define({
|
|
21
26
|
type: 'string',
|
22
27
|
default: ''
|
23
28
|
},
|
24
|
-
id: {
|
25
|
-
minLength: 1,
|
26
|
-
type: 'string',
|
27
|
-
default: ''
|
28
|
-
},
|
29
29
|
height: {
|
30
30
|
type: 'number',
|
31
31
|
default: null,
|
@@ -78,6 +78,11 @@ export const media = adfNode('media').define({
|
|
78
78
|
optional: true
|
79
79
|
}
|
80
80
|
}, {
|
81
|
+
type: {
|
82
|
+
type: 'enum',
|
83
|
+
values: ['external'],
|
84
|
+
default: 'file'
|
85
|
+
},
|
81
86
|
alt: {
|
82
87
|
type: 'string',
|
83
88
|
default: '',
|
@@ -96,12 +101,7 @@ export const media = adfNode('media').define({
|
|
96
101
|
url: {
|
97
102
|
type: 'string',
|
98
103
|
default: null,
|
99
|
-
optional:
|
100
|
-
},
|
101
|
-
type: {
|
102
|
-
type: 'enum',
|
103
|
-
values: ['external'],
|
104
|
-
default: 'file'
|
104
|
+
optional: false
|
105
105
|
}
|
106
106
|
}]
|
107
107
|
}
|
@@ -17,7 +17,8 @@ export const mediaSingle = adfNode('mediaSingle').define({
|
|
17
17
|
},
|
18
18
|
layout: {
|
19
19
|
type: 'enum',
|
20
|
-
values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start']
|
20
|
+
values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start'],
|
21
|
+
default: 'center'
|
21
22
|
},
|
22
23
|
widthType: {
|
23
24
|
type: 'enum',
|
@@ -29,19 +30,17 @@ export const mediaSingle = adfNode('mediaSingle').define({
|
|
29
30
|
width: {
|
30
31
|
type: 'number',
|
31
32
|
minimum: 0,
|
32
|
-
default: null
|
33
|
-
|
33
|
+
default: null
|
34
|
+
},
|
35
|
+
widthType: {
|
36
|
+
type: 'enum',
|
37
|
+
values: ['pixel'],
|
38
|
+
default: 'pixel'
|
34
39
|
},
|
35
40
|
layout: {
|
36
41
|
type: 'enum',
|
37
42
|
values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start'],
|
38
43
|
default: 'center'
|
39
|
-
},
|
40
|
-
widthType: {
|
41
|
-
type: 'enum',
|
42
|
-
values: ['pixel'],
|
43
|
-
default: 'pixel',
|
44
|
-
optional: true
|
45
44
|
}
|
46
45
|
}]
|
47
46
|
}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { $
|
1
|
+
import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
|
2
2
|
import { tableCell } from './tableCell';
|
3
3
|
import { tableHeader } from './tableHeader';
|
4
4
|
export const tableRow = adfNode('tableRow').define({
|
5
5
|
selectable: false,
|
6
|
-
content: [$
|
6
|
+
content: [$onePlus($or(tableCell, tableHeader))]
|
7
7
|
});
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { $or, $
|
1
|
+
import { $or, $onePlus, adfNode } from '@atlaskit/adf-schema-generator';
|
2
2
|
import { blockGroup } from './groups/blockGroup';
|
3
3
|
import { layoutSection } from './nodes/layoutSection';
|
4
4
|
import { blockRootOnlyGroup } from './groups/blockRootOnlyGroup';
|
@@ -7,6 +7,6 @@ import { paragraph } from './nodes/paragraph';
|
|
7
7
|
var doc = adfNode('doc').define({
|
8
8
|
root: true,
|
9
9
|
version: 1,
|
10
|
-
content: [$
|
10
|
+
content: [$onePlus($or(blockGroup, layoutSection, layoutSection.use('full'), blockRootOnlyGroup, nestedExpand, paragraph))]
|
11
11
|
});
|
12
12
|
export default doc;
|
@@ -111,9 +111,6 @@ export var media = createPMNodeSpecFactory({
|
|
111
111
|
},
|
112
112
|
selectable: true
|
113
113
|
});
|
114
|
-
export var textFormatted = createPMNodeSpecFactory({
|
115
|
-
group: 'inline'
|
116
|
-
});
|
117
114
|
export var hardBreak = createPMNodeSpecFactory({
|
118
115
|
group: 'inline',
|
119
116
|
inline: true,
|
@@ -211,9 +208,15 @@ export var status = createPMNodeSpecFactory({
|
|
211
208
|
},
|
212
209
|
selectable: true
|
213
210
|
});
|
211
|
+
export var textFormatted = createPMNodeSpecFactory({
|
212
|
+
group: 'inline'
|
213
|
+
});
|
214
|
+
export var textCodeInline = createPMNodeSpecFactory({
|
215
|
+
group: 'inline'
|
216
|
+
});
|
214
217
|
export var caption = createPMNodeSpecFactory({
|
215
|
-
content: '(
|
216
|
-
marks: 'link em strong strike subsup underline textColor annotation backgroundColor',
|
218
|
+
content: '(hardBreak | mention | emoji | date | placeholder | inlineCard | status | text)*',
|
219
|
+
marks: 'link em strong strike subsup underline textColor annotation backgroundColor code',
|
217
220
|
selectable: false,
|
218
221
|
isolating: true
|
219
222
|
});
|
@@ -251,9 +254,6 @@ export var mediaSingleFull = createPMNodeSpecFactory({
|
|
251
254
|
},
|
252
255
|
selectable: true
|
253
256
|
});
|
254
|
-
export var textCodeInline = createPMNodeSpecFactory({
|
255
|
-
group: 'inline'
|
256
|
-
});
|
257
257
|
export var inlineExtension = createPMNodeSpecFactory({
|
258
258
|
group: 'inline',
|
259
259
|
inline: true,
|
@@ -522,13 +522,8 @@ export var mediaGroup = createPMNodeSpecFactory({
|
|
522
522
|
export var rule = createPMNodeSpecFactory({
|
523
523
|
group: 'block'
|
524
524
|
});
|
525
|
-
export var paragraph = createPMNodeSpecFactory({
|
526
|
-
content: 'inline*',
|
527
|
-
marks: 'link em strong strike subsup underline textColor annotation backgroundColor code border',
|
528
|
-
selectable: false
|
529
|
-
});
|
530
525
|
export var panel = createPMNodeSpecFactory({
|
531
|
-
content: '(
|
526
|
+
content: '(codeBlock | blockCard | paragraph | mediaSingle | taskList | bulletList | orderedList | heading | mediaGroup | decisionList | rule)+',
|
532
527
|
marks: 'link',
|
533
528
|
group: 'block',
|
534
529
|
attrs: {
|
@@ -572,8 +567,8 @@ export var headingWithIndentation = createPMNodeSpecFactory({
|
|
572
567
|
selectable: false,
|
573
568
|
defining: true
|
574
569
|
});
|
575
|
-
export var
|
576
|
-
content: '(
|
570
|
+
export var nestedExpandWithNoMarks = createPMNodeSpecFactory({
|
571
|
+
content: '(codeBlock | paragraph | mediaSingle | taskList | bulletList | orderedList | heading | mediaGroup | decisionList | rule | panel | blockquote)+',
|
577
572
|
marks: 'link',
|
578
573
|
attrs: {
|
579
574
|
title: {
|
@@ -587,8 +582,8 @@ export var nestedExpand = createPMNodeSpecFactory({
|
|
587
582
|
isolating: true
|
588
583
|
});
|
589
584
|
export var tableCell = createPMNodeSpecFactory({
|
590
|
-
content: '(
|
591
|
-
marks: 'alignment indentation
|
585
|
+
content: '(codeBlock | blockCard | paragraph | mediaSingle | taskList | bulletList | orderedList | heading | mediaGroup | decisionList | rule | panel | blockquote | extension | embedCard | nestedExpand)+',
|
586
|
+
marks: 'alignment link indentation dataConsumer fragment',
|
592
587
|
attrs: {
|
593
588
|
colspan: {
|
594
589
|
default: 1
|
@@ -606,23 +601,9 @@ export var tableCell = createPMNodeSpecFactory({
|
|
606
601
|
selectable: false,
|
607
602
|
isolating: true
|
608
603
|
});
|
609
|
-
export var nestedExpandWithNoMarks = createPMNodeSpecFactory({
|
610
|
-
content: '(paragraph | heading | mediaSingle | mediaGroup | codeBlock | bulletList | orderedList | taskList | decisionList | rule | panel | blockquote)+',
|
611
|
-
marks: 'link',
|
612
|
-
attrs: {
|
613
|
-
title: {
|
614
|
-
default: ''
|
615
|
-
},
|
616
|
-
__expanded: {
|
617
|
-
default: true
|
618
|
-
}
|
619
|
-
},
|
620
|
-
selectable: true,
|
621
|
-
isolating: true
|
622
|
-
});
|
623
604
|
export var tableHeader = createPMNodeSpecFactory({
|
624
|
-
content: '(
|
625
|
-
marks: 'alignment indentation
|
605
|
+
content: '(codeBlock | blockCard | paragraph | mediaSingle | taskList | bulletList | orderedList | heading | mediaGroup | decisionList | rule | panel | blockquote | extension | embedCard | nestedExpand)+',
|
606
|
+
marks: 'alignment link indentation dataConsumer fragment',
|
626
607
|
attrs: {
|
627
608
|
colspan: {
|
628
609
|
default: 1
|
@@ -669,8 +650,8 @@ export var table = createPMNodeSpecFactory({
|
|
669
650
|
isolating: true
|
670
651
|
});
|
671
652
|
export var bodiedExtension = createPMNodeSpecFactory({
|
672
|
-
content: '(
|
673
|
-
marks: 'link fragment',
|
653
|
+
content: '(codeBlock | blockCard | paragraph | mediaSingle | taskList | bulletList | orderedList | heading | mediaGroup | decisionList | rule | panel | blockquote | extension | embedCard | table)+',
|
654
|
+
marks: 'link dataConsumer fragment',
|
674
655
|
group: 'block',
|
675
656
|
attrs: {
|
676
657
|
extensionType: {
|
@@ -697,8 +678,8 @@ export var bodiedExtension = createPMNodeSpecFactory({
|
|
697
678
|
isolating: true
|
698
679
|
});
|
699
680
|
export var bodiedExtensionWithMarks = createPMNodeSpecFactory({
|
700
|
-
content: '(
|
701
|
-
marks: 'link fragment',
|
681
|
+
content: '(codeBlock | blockCard | paragraph | mediaSingle | taskList | bulletList | orderedList | heading | mediaGroup | decisionList | rule | panel | blockquote | extension | embedCard | table)+',
|
682
|
+
marks: 'link dataConsumer fragment',
|
702
683
|
group: 'block',
|
703
684
|
attrs: {
|
704
685
|
extensionType: {
|
@@ -725,8 +706,8 @@ export var bodiedExtensionWithMarks = createPMNodeSpecFactory({
|
|
725
706
|
isolating: true
|
726
707
|
});
|
727
708
|
export var expand = createPMNodeSpecFactory({
|
728
|
-
content: '(
|
729
|
-
marks: 'link fragment',
|
709
|
+
content: '(codeBlock | blockCard | paragraph | mediaSingle | taskList | bulletList | orderedList | heading | mediaGroup | decisionList | rule | panel | blockquote | extension | embedCard | table)+',
|
710
|
+
marks: 'link dataConsumer fragment',
|
730
711
|
group: 'block',
|
731
712
|
attrs: {
|
732
713
|
title: {
|
@@ -740,8 +721,8 @@ export var expand = createPMNodeSpecFactory({
|
|
740
721
|
isolating: true
|
741
722
|
});
|
742
723
|
export var expandWithBreakoutMark = createPMNodeSpecFactory({
|
743
|
-
content: '(
|
744
|
-
marks: 'link fragment',
|
724
|
+
content: '(codeBlock | blockCard | paragraph | mediaSingle | taskList | bulletList | orderedList | heading | mediaGroup | decisionList | rule | panel | blockquote | extension | embedCard | table)+',
|
725
|
+
marks: 'link dataConsumer fragment',
|
745
726
|
group: 'block',
|
746
727
|
attrs: {
|
747
728
|
title: {
|
@@ -755,8 +736,8 @@ export var expandWithBreakoutMark = createPMNodeSpecFactory({
|
|
755
736
|
isolating: true
|
756
737
|
});
|
757
738
|
export var expandWithNoMark = createPMNodeSpecFactory({
|
758
|
-
content: '(
|
759
|
-
marks: 'link fragment',
|
739
|
+
content: '(codeBlock | blockCard | paragraph | mediaSingle | taskList | bulletList | orderedList | heading | mediaGroup | decisionList | rule | panel | blockquote | extension | embedCard | table)+',
|
740
|
+
marks: 'link dataConsumer fragment',
|
760
741
|
group: 'block',
|
761
742
|
attrs: {
|
762
743
|
title: {
|
@@ -786,7 +767,26 @@ export var layoutSectionFull = createPMNodeSpecFactory({
|
|
786
767
|
content: 'layoutColumn{1,3}',
|
787
768
|
isolating: true
|
788
769
|
});
|
770
|
+
export var nestedExpand = createPMNodeSpecFactory({
|
771
|
+
content: '(codeBlock | paragraph | mediaSingle | taskList | bulletList | orderedList | heading | mediaGroup | decisionList | rule | panel | blockquote)+',
|
772
|
+
marks: 'link',
|
773
|
+
attrs: {
|
774
|
+
title: {
|
775
|
+
default: ''
|
776
|
+
},
|
777
|
+
__expanded: {
|
778
|
+
default: true
|
779
|
+
}
|
780
|
+
},
|
781
|
+
selectable: true,
|
782
|
+
isolating: true
|
783
|
+
});
|
784
|
+
export var paragraph = createPMNodeSpecFactory({
|
785
|
+
content: 'inline*',
|
786
|
+
marks: 'link em strong strike subsup underline textColor annotation backgroundColor code border',
|
787
|
+
selectable: false
|
788
|
+
});
|
789
789
|
export var doc = createPMNodeSpecFactory({
|
790
|
-
content: '(block | layoutSection | blockRootOnly)*',
|
790
|
+
content: '(block | layoutSection | blockRootOnly | nestedExpand | paragraph)*',
|
791
791
|
marks: 'breakout link alignment indentation dataConsumer fragment'
|
792
792
|
});
|
@@ -10,7 +10,6 @@ export var blockCard = adfNode('blockCard').define({
|
|
10
10
|
},
|
11
11
|
datasource: {
|
12
12
|
type: 'object',
|
13
|
-
optional: true,
|
14
13
|
properties: {
|
15
14
|
id: {
|
16
15
|
type: 'string'
|
@@ -26,12 +25,14 @@ export var blockCard = adfNode('blockCard').define({
|
|
26
25
|
type: 'string'
|
27
26
|
}
|
28
27
|
},
|
28
|
+
required: ['type'],
|
29
29
|
type: 'object'
|
30
30
|
},
|
31
31
|
minItems: 1,
|
32
32
|
type: 'array'
|
33
33
|
}
|
34
|
-
}
|
34
|
+
},
|
35
|
+
required: ['id', 'parameters', 'views']
|
35
36
|
},
|
36
37
|
width: {
|
37
38
|
type: 'number',
|
@@ -44,12 +45,11 @@ export var blockCard = adfNode('blockCard').define({
|
|
44
45
|
}
|
45
46
|
}, {
|
46
47
|
url: {
|
47
|
-
type: 'string'
|
48
|
-
optional: true
|
48
|
+
type: 'string'
|
49
49
|
}
|
50
50
|
}, {
|
51
51
|
data: {
|
52
|
-
|
52
|
+
default: null
|
53
53
|
}
|
54
54
|
}]
|
55
55
|
}
|
@@ -8,12 +8,12 @@ export var bodiedExtension = adfNode('bodiedExtension').define({
|
|
8
8
|
selectable: true,
|
9
9
|
isolating: true,
|
10
10
|
attrs: {
|
11
|
-
|
11
|
+
extensionKey: {
|
12
12
|
minLength: 1,
|
13
13
|
type: 'string',
|
14
14
|
default: ''
|
15
15
|
},
|
16
|
-
|
16
|
+
extensionType: {
|
17
17
|
minLength: 1,
|
18
18
|
type: 'string',
|
19
19
|
default: ''
|
@@ -5,12 +5,12 @@ export var extension = adfNode('extension').define({
|
|
5
5
|
atom: true,
|
6
6
|
selectable: true,
|
7
7
|
attrs: {
|
8
|
-
|
8
|
+
extensionKey: {
|
9
9
|
minLength: 1,
|
10
10
|
type: 'string',
|
11
11
|
default: ''
|
12
12
|
},
|
13
|
-
|
13
|
+
extensionType: {
|
14
14
|
minLength: 1,
|
15
15
|
type: 'string',
|
16
16
|
default: ''
|
@@ -3,12 +3,12 @@ export var inlineExtension = adfNode('inlineExtension').define({
|
|
3
3
|
inline: true,
|
4
4
|
selectable: true,
|
5
5
|
attrs: {
|
6
|
-
|
6
|
+
extensionKey: {
|
7
7
|
minLength: 1,
|
8
8
|
type: 'string',
|
9
9
|
default: ''
|
10
10
|
},
|
11
|
-
|
11
|
+
extensionType: {
|
12
12
|
minLength: 1,
|
13
13
|
type: 'string',
|
14
14
|
default: ''
|
@@ -12,6 +12,11 @@ export var media = adfNode('media').define({
|
|
12
12
|
values: ['link', 'file'],
|
13
13
|
default: 'file'
|
14
14
|
},
|
15
|
+
id: {
|
16
|
+
minLength: 1,
|
17
|
+
type: 'string',
|
18
|
+
default: ''
|
19
|
+
},
|
15
20
|
alt: {
|
16
21
|
type: 'string',
|
17
22
|
default: '',
|
@@ -21,11 +26,6 @@ export var media = adfNode('media').define({
|
|
21
26
|
type: 'string',
|
22
27
|
default: ''
|
23
28
|
},
|
24
|
-
id: {
|
25
|
-
minLength: 1,
|
26
|
-
type: 'string',
|
27
|
-
default: ''
|
28
|
-
},
|
29
29
|
height: {
|
30
30
|
type: 'number',
|
31
31
|
default: null,
|
@@ -78,6 +78,11 @@ export var media = adfNode('media').define({
|
|
78
78
|
optional: true
|
79
79
|
}
|
80
80
|
}, {
|
81
|
+
type: {
|
82
|
+
type: 'enum',
|
83
|
+
values: ['external'],
|
84
|
+
default: 'file'
|
85
|
+
},
|
81
86
|
alt: {
|
82
87
|
type: 'string',
|
83
88
|
default: '',
|
@@ -96,12 +101,7 @@ export var media = adfNode('media').define({
|
|
96
101
|
url: {
|
97
102
|
type: 'string',
|
98
103
|
default: null,
|
99
|
-
optional:
|
100
|
-
},
|
101
|
-
type: {
|
102
|
-
type: 'enum',
|
103
|
-
values: ['external'],
|
104
|
-
default: 'file'
|
104
|
+
optional: false
|
105
105
|
}
|
106
106
|
}]
|
107
107
|
}
|
@@ -17,7 +17,8 @@ export var mediaSingle = adfNode('mediaSingle').define({
|
|
17
17
|
},
|
18
18
|
layout: {
|
19
19
|
type: 'enum',
|
20
|
-
values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start']
|
20
|
+
values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start'],
|
21
|
+
default: 'center'
|
21
22
|
},
|
22
23
|
widthType: {
|
23
24
|
type: 'enum',
|
@@ -29,19 +30,17 @@ export var mediaSingle = adfNode('mediaSingle').define({
|
|
29
30
|
width: {
|
30
31
|
type: 'number',
|
31
32
|
minimum: 0,
|
32
|
-
default: null
|
33
|
-
|
33
|
+
default: null
|
34
|
+
},
|
35
|
+
widthType: {
|
36
|
+
type: 'enum',
|
37
|
+
values: ['pixel'],
|
38
|
+
default: 'pixel'
|
34
39
|
},
|
35
40
|
layout: {
|
36
41
|
type: 'enum',
|
37
42
|
values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start'],
|
38
43
|
default: 'center'
|
39
|
-
},
|
40
|
-
widthType: {
|
41
|
-
type: 'enum',
|
42
|
-
values: ['pixel'],
|
43
|
-
default: 'pixel',
|
44
|
-
optional: true
|
45
44
|
}
|
46
45
|
}]
|
47
46
|
}
|