@atlaskit/adf-schema 36.10.13 → 36.12.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.
@@ -0,0 +1,120 @@
1
+ import { createPMMarkSpecFactory } from '@atlaskit/adf-schema-generator';
2
+ export const breakout = createPMMarkSpecFactory({
3
+ attrs: {
4
+ mode: {
5
+ default: 'wide'
6
+ }
7
+ },
8
+ inclusive: false,
9
+ spanning: false
10
+ });
11
+ export const link = createPMMarkSpecFactory({
12
+ attrs: {
13
+ href: {},
14
+ title: {},
15
+ id: {},
16
+ collection: {},
17
+ occurrenceKey: {},
18
+ __confluenceMetadata: {
19
+ default: null
20
+ }
21
+ },
22
+ inclusive: false,
23
+ excludes: 'link',
24
+ group: 'link'
25
+ });
26
+ export const annotation = createPMMarkSpecFactory({
27
+ attrs: {
28
+ id: {
29
+ default: ''
30
+ },
31
+ annotationType: {
32
+ default: 'inlineComment'
33
+ }
34
+ },
35
+ inclusive: true,
36
+ group: 'annotation'
37
+ });
38
+ export const border = createPMMarkSpecFactory({
39
+ attrs: {
40
+ size: {},
41
+ color: {}
42
+ },
43
+ inclusive: false
44
+ });
45
+ export const em = createPMMarkSpecFactory({
46
+ inclusive: true,
47
+ group: 'fontStyle'
48
+ });
49
+ export const strong = createPMMarkSpecFactory({
50
+ inclusive: true,
51
+ group: 'fontStyle'
52
+ });
53
+ export const strike = createPMMarkSpecFactory({
54
+ inclusive: true,
55
+ group: 'fontStyle'
56
+ });
57
+ export const subsup = createPMMarkSpecFactory({
58
+ attrs: {
59
+ type: {
60
+ default: 'sub'
61
+ }
62
+ },
63
+ inclusive: true,
64
+ group: 'fontStyle'
65
+ });
66
+ export const underline = createPMMarkSpecFactory({
67
+ inclusive: true,
68
+ group: 'fontStyle'
69
+ });
70
+ export const textColor = createPMMarkSpecFactory({
71
+ attrs: {
72
+ color: {}
73
+ },
74
+ inclusive: true,
75
+ group: 'color'
76
+ });
77
+ export const backgroundColor = createPMMarkSpecFactory({
78
+ attrs: {
79
+ color: {}
80
+ },
81
+ inclusive: true,
82
+ excludes: 'color',
83
+ group: 'color'
84
+ });
85
+ export const code = createPMMarkSpecFactory({
86
+ inclusive: true,
87
+ excludes: 'fontStyle link searchQuery color'
88
+ });
89
+ export const alignment = createPMMarkSpecFactory({
90
+ attrs: {
91
+ align: {}
92
+ },
93
+ excludes: 'alignment indentation',
94
+ group: 'alignment'
95
+ });
96
+ export const indentation = createPMMarkSpecFactory({
97
+ attrs: {
98
+ level: {}
99
+ },
100
+ excludes: 'indentation alignment',
101
+ group: 'indentation'
102
+ });
103
+ export const dataConsumer = createPMMarkSpecFactory({
104
+ attrs: {
105
+ sources: {
106
+ default: []
107
+ }
108
+ }
109
+ });
110
+ export const fragment = createPMMarkSpecFactory({
111
+ attrs: {
112
+ localId: {
113
+ default: ''
114
+ },
115
+ name: {
116
+ default: null
117
+ }
118
+ },
119
+ inclusive: false
120
+ });