@atlaskit/adf-schema 57.2.11 → 57.3.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 +20 -0
- package/bodied-rule/package.json +8 -0
- package/dist/cjs/next-schema/full-schema.adf.js +2 -1
- package/dist/cjs/next-schema/generated/nodeTypes.js +91 -17
- package/dist/cjs/next-schema/groups/blockContentGroup.js +2 -1
- package/dist/cjs/next-schema/groups/blockGroup.js +2 -1
- package/dist/cjs/next-schema/groups/nonNestableBlockContentGroup.js +2 -1
- package/dist/cjs/next-schema/groups/tableCellContentPseudoGroup.js +2 -1
- package/dist/cjs/next-schema/nodes/bodiedRule.js +56 -0
- package/dist/cjs/next-schema/nodes/bodiedSyncBlock.js +2 -1
- package/dist/cjs/next-schema/nodes/extensionFrame.js +2 -1
- package/dist/cjs/next-schema/nodes/nestedExpand.js +2 -1
- package/dist/cjs/next-schema/nodes/panel.js +2 -1
- package/dist/cjs/next-schema/nodes/rule.js +33 -0
- package/dist/cjs/schema/default-schema.js +3 -1
- package/dist/cjs/schema/nodes/bodied-rule.js +57 -0
- package/dist/cjs/schema/nodes/rule.js +53 -1
- package/dist/cjs/schema/nodes-in-order.js +4 -0
- package/dist/cjs/validator-schema/generated/validatorSpec.js +142 -14
- package/dist/es2019/next-schema/full-schema.adf.js +2 -1
- package/dist/es2019/next-schema/generated/nodeTypes.js +90 -16
- package/dist/es2019/next-schema/groups/blockContentGroup.js +2 -1
- package/dist/es2019/next-schema/groups/blockGroup.js +2 -1
- package/dist/es2019/next-schema/groups/nonNestableBlockContentGroup.js +2 -1
- package/dist/es2019/next-schema/groups/tableCellContentPseudoGroup.js +2 -1
- package/dist/es2019/next-schema/nodes/bodiedRule.js +50 -0
- package/dist/es2019/next-schema/nodes/bodiedSyncBlock.js +2 -1
- package/dist/es2019/next-schema/nodes/extensionFrame.js +2 -1
- package/dist/es2019/next-schema/nodes/nestedExpand.js +2 -1
- package/dist/es2019/next-schema/nodes/panel.js +2 -1
- package/dist/es2019/next-schema/nodes/rule.js +33 -0
- package/dist/es2019/schema/default-schema.js +4 -2
- package/dist/es2019/schema/nodes/bodied-rule.js +50 -0
- package/dist/es2019/schema/nodes/rule.js +56 -0
- package/dist/es2019/schema/nodes-in-order.js +4 -0
- package/dist/es2019/validator-schema/generated/validatorSpec.js +140 -13
- package/dist/esm/next-schema/full-schema.adf.js +2 -1
- package/dist/esm/next-schema/generated/nodeTypes.js +90 -16
- package/dist/esm/next-schema/groups/blockContentGroup.js +2 -1
- package/dist/esm/next-schema/groups/blockGroup.js +2 -1
- package/dist/esm/next-schema/groups/nonNestableBlockContentGroup.js +2 -1
- package/dist/esm/next-schema/groups/tableCellContentPseudoGroup.js +2 -1
- package/dist/esm/next-schema/nodes/bodiedRule.js +50 -0
- package/dist/esm/next-schema/nodes/bodiedSyncBlock.js +2 -1
- package/dist/esm/next-schema/nodes/extensionFrame.js +2 -1
- package/dist/esm/next-schema/nodes/nestedExpand.js +2 -1
- package/dist/esm/next-schema/nodes/panel.js +2 -1
- package/dist/esm/next-schema/nodes/rule.js +33 -0
- package/dist/esm/schema/default-schema.js +4 -2
- package/dist/esm/schema/nodes/bodied-rule.js +51 -0
- package/dist/esm/schema/nodes/rule.js +52 -0
- package/dist/esm/schema/nodes-in-order.js +4 -0
- package/dist/esm/validator-schema/generated/validatorSpec.js +140 -13
- package/dist/json-schema/v1/stage-0.json +248 -0
- package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +3 -3
- package/dist/types/next-schema/generated/nodeTypes.d.ts +67 -16
- package/dist/types/next-schema/nodes/bodiedRule.d.ts +2 -0
- package/dist/types/next-schema/nodes/rule.d.ts +6 -1
- package/dist/types/schema/default-schema.d.ts +1 -1
- package/dist/types/schema/nodes/bodied-rule.d.ts +34 -0
- package/dist/types/schema/nodes/bodied-sync-block.d.ts +2 -1
- package/dist/types/schema/nodes/doc.d.ts +2 -1
- package/dist/types/schema/nodes/multi-bodied-extension.d.ts +2 -1
- package/dist/types/schema/nodes/nested-expand.d.ts +2 -1
- package/dist/types/schema/nodes/panel.d.ts +3 -2
- package/dist/types/schema/nodes/rule.d.ts +20 -0
- package/dist/types/schema/nodes/tableNodes.d.ts +2 -1
- package/dist/types/schema/nodes/types/block-content.d.ts +2 -1
- package/dist/types/schema/nodes/types/non-nestable-block-content.d.ts +2 -1
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +127 -0
- package/json-schema/v1/stage-0.json +248 -0
- package/package.json +2 -2
- package/schema/bodied-rule/package.json +8 -0
- package/schema-generators/__tests__/unit/adfToValidatorSpec.unit.ts +2 -0
|
@@ -5,6 +5,7 @@ import type { ParagraphDefinition as Paragraph, ParagraphWithMarksDefinition as
|
|
|
5
5
|
import type { BlockQuoteDefinition as Blockquote } from './blockquote';
|
|
6
6
|
import type { OrderedListDefinition as OrderedList, BulletListDefinition as BulletList } from './types/list';
|
|
7
7
|
import type { RuleDefinition as Rule } from './rule';
|
|
8
|
+
import type { BodiedRuleDefinition as BodiedRule } from './bodied-rule';
|
|
8
9
|
import type { HeadingDefinition as Heading, HeadingWithMarksDefinition as HeadingWithMarks } from './heading';
|
|
9
10
|
import type { BlockCardDefinition as BlockCard } from './block-card';
|
|
10
11
|
import type { CodeBlockDefinition as CodeBlock } from './code-block';
|
|
@@ -39,7 +40,7 @@ export interface BodiedSyncBlockDefinition {
|
|
|
39
40
|
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
40
41
|
* @allowUnsupportedBlock true
|
|
41
42
|
*/
|
|
42
|
-
content: Array<Paragraph | ParagraphWithMarks | BlockCard | Blockquote | BulletList | CodeBlock | DecisionList | EmbedCard | Expand | Heading | HeadingWithMarks | LayoutSection | MediaGroup | MediaSingle | OrderedList | Panel | PanelC1 | Rule | Table | TaskList>;
|
|
43
|
+
content: Array<Paragraph | ParagraphWithMarks | BlockCard | Blockquote | BulletList | CodeBlock | DecisionList | EmbedCard | Expand | Heading | HeadingWithMarks | LayoutSection | MediaGroup | MediaSingle | OrderedList | Panel | PanelC1 | Rule | BodiedRule | Table | TaskList>;
|
|
43
44
|
marks?: Array<BreakoutMarkDefinition>;
|
|
44
45
|
type: 'bodiedSyncBlock';
|
|
45
46
|
}
|
|
@@ -8,6 +8,7 @@ import type { BlockContent } from './types/block-content';
|
|
|
8
8
|
import type { MultiBodiedExtensionRootOnlyDefinition as MultiBodiedExtensionRootOnly } from './multi-bodied-extension';
|
|
9
9
|
import type { PanelRootOnlyDefinition as PanelRootOnly } from './panel';
|
|
10
10
|
import type { RuleRootOnlyDefinition as RuleRootOnly } from './rule';
|
|
11
|
+
import type { BodiedRuleRootOnlyDefinition as BodiedRuleRootOnly } from './bodied-rule';
|
|
11
12
|
import type { SyncBlockDefinition as SyncBlock } from './sync-block';
|
|
12
13
|
import type { BodiedSyncBlockDefinition as BodiedSyncBlock } from './bodied-sync-block';
|
|
13
14
|
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
@@ -19,7 +20,7 @@ export interface DocNode {
|
|
|
19
20
|
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
20
21
|
* @allowUnsupportedBlock true
|
|
21
22
|
*/
|
|
22
|
-
content: Array<BlockContent | LayoutSection | CodeBlockWithMarks | ExpandRootOnly | PanelRootOnly | RuleRootOnly | ExtensionRootOnly | BodiedExtensionRootOnly | ParagraphWithIndentationDefinition | MultiBodiedExtensionRootOnly | BodiedSyncBlock | SyncBlock>;
|
|
23
|
+
content: Array<BlockContent | LayoutSection | CodeBlockWithMarks | ExpandRootOnly | PanelRootOnly | RuleRootOnly | BodiedRuleRootOnly | ExtensionRootOnly | BodiedExtensionRootOnly | ParagraphWithIndentationDefinition | MultiBodiedExtensionRootOnly | BodiedSyncBlock | SyncBlock>;
|
|
23
24
|
type: 'doc';
|
|
24
25
|
version: 1;
|
|
25
26
|
}
|
|
@@ -17,6 +17,7 @@ import type { RuleDefinition as Rule } from './rule';
|
|
|
17
17
|
import type { TableDefinition as Table } from './tableNodes';
|
|
18
18
|
import type { TaskListDefinition as TaskList } from './task-list';
|
|
19
19
|
import type { ExtensionAttributes } from './types/extensions';
|
|
20
|
+
import type { BodiedRuleDefinition as BodiedRule } from './bodied-rule';
|
|
20
21
|
import type { OrderedListDefinition as OrderedList, BulletListDefinition as BulletList } from './types/list';
|
|
21
22
|
import type { MarksObject } from './types/mark';
|
|
22
23
|
/**
|
|
@@ -30,7 +31,7 @@ export interface ExtensionFrameDefinition {
|
|
|
30
31
|
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
31
32
|
* @minItems 1
|
|
32
33
|
*/
|
|
33
|
-
content: Array<BodiedExtension | Panel | Paragraph | Blockquote | OrderedList | BulletList | Rule | Heading | CodeBlock | MediaGroup | MediaSingle | DecisionList | TaskList | Table | Extension | BlockCard | EmbedCard>;
|
|
34
|
+
content: Array<BodiedExtension | Panel | Paragraph | Blockquote | OrderedList | BulletList | Rule | BodiedRule | Heading | CodeBlock | MediaGroup | MediaSingle | DecisionList | TaskList | Table | Extension | BlockCard | EmbedCard>;
|
|
34
35
|
marks?: Array<DataConsumerDefinition | FragmentDefinition>;
|
|
35
36
|
type: 'extensionFrame';
|
|
36
37
|
}
|
|
@@ -8,6 +8,7 @@ import type { BulletListDefinition as BulletList, OrderedListDefinition as Order
|
|
|
8
8
|
import type { TaskListDefinition as TaskList } from './task-list';
|
|
9
9
|
import type { DecisionListDefinition as DecisionList } from './decision-list';
|
|
10
10
|
import type { RuleDefinition as Rule } from './rule';
|
|
11
|
+
import type { BodiedRuleDefinition as BodiedRule } from './bodied-rule';
|
|
11
12
|
import type { PanelDefinition as Panel } from './panel';
|
|
12
13
|
import type { BlockQuoteDefinition as BlockQuote } from './blockquote';
|
|
13
14
|
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
@@ -18,7 +19,7 @@ import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
|
18
19
|
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
19
20
|
* @allowUnsupportedBlock true
|
|
20
21
|
*/
|
|
21
|
-
export type NestedExpandContent = Array<Paragraph | Heading | MediaSingle | MediaGroup | CodeBlock | BulletList | OrderedList | TaskList | DecisionList | Rule | Panel | BlockQuote>;
|
|
22
|
+
export type NestedExpandContent = Array<Paragraph | Heading | MediaSingle | MediaGroup | CodeBlock | BulletList | OrderedList | TaskList | DecisionList | Rule | BodiedRule | Panel | BlockQuote>;
|
|
22
23
|
/**
|
|
23
24
|
* @name nestedExpand_node
|
|
24
25
|
*/
|
|
@@ -7,6 +7,7 @@ import type { MediaGroupDefinition as MediaGroup } from './media-group';
|
|
|
7
7
|
import type { MediaSingleDefinition as MediaSingle } from './media-single';
|
|
8
8
|
import type { ParagraphDefinition as Paragraph } from './paragraph';
|
|
9
9
|
import type { RuleDefinition as Rule } from './rule';
|
|
10
|
+
import type { BodiedRuleDefinition as BodiedRule } from './bodied-rule';
|
|
10
11
|
import type { TableDefinition as Table } from './tableNodes';
|
|
11
12
|
import type { TaskListDefinition as TaskList } from './task-list';
|
|
12
13
|
import type { OrderedListDefinition as OrderedList, BulletListDefinition as BulletList } from './types/list';
|
|
@@ -39,7 +40,7 @@ export interface PanelDefinition {
|
|
|
39
40
|
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
40
41
|
* @allowUnsupportedBlock true
|
|
41
42
|
*/
|
|
42
|
-
content: Array<Paragraph | Heading | OrderedList | BulletList | BlockCard | CodeBlock | MediaGroup | MediaSingle | DecisionList | TaskList | Rule>;
|
|
43
|
+
content: Array<Paragraph | Heading | OrderedList | BulletList | BlockCard | CodeBlock | MediaGroup | MediaSingle | DecisionList | TaskList | Rule | BodiedRule>;
|
|
43
44
|
type: 'panel';
|
|
44
45
|
}
|
|
45
46
|
/**
|
|
@@ -53,7 +54,7 @@ export interface PanelC1Definition {
|
|
|
53
54
|
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
54
55
|
* @allowUnsupportedBlock true
|
|
55
56
|
*/
|
|
56
|
-
content: Array<Paragraph | Heading | OrderedList | BulletList | BlockCard | CodeBlock | MediaGroup | MediaSingle | DecisionList | TaskList | Rule | Table>;
|
|
57
|
+
content: Array<Paragraph | Heading | OrderedList | BulletList | BlockCard | CodeBlock | MediaGroup | MediaSingle | DecisionList | TaskList | Rule | BodiedRule | Table>;
|
|
57
58
|
type: 'panel';
|
|
58
59
|
}
|
|
59
60
|
/**
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { BreakoutMarkDefinition } from '../marks';
|
|
3
3
|
import type { MarksObject } from './types/mark';
|
|
4
|
+
export type RuleStyle = 'solid' | 'dashed' | 'dotted' | 'sketch' | 'fade';
|
|
5
|
+
export interface RuleAttributes {
|
|
6
|
+
color?: string;
|
|
7
|
+
localId?: string;
|
|
8
|
+
style?: RuleStyle;
|
|
9
|
+
weight?: number;
|
|
10
|
+
}
|
|
4
11
|
/**
|
|
5
12
|
* @name rule_node
|
|
6
13
|
*/
|
|
@@ -14,6 +21,19 @@ export interface RuleDefinition {
|
|
|
14
21
|
* @name rule_root_only_node
|
|
15
22
|
*/
|
|
16
23
|
export type RuleRootOnlyDefinition = RuleDefinition & MarksObject<BreakoutMarkDefinition>;
|
|
24
|
+
/**
|
|
25
|
+
* @name rule_with_attrs_node
|
|
26
|
+
*/
|
|
27
|
+
export interface RuleWithAttrsDefinition {
|
|
28
|
+
attrs?: RuleAttributes;
|
|
29
|
+
type: 'rule';
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @name rule_with_attrs_root_only_node
|
|
33
|
+
*/
|
|
34
|
+
export type RuleWithAttrsRootOnlyDefinition = RuleWithAttrsDefinition & MarksObject<BreakoutMarkDefinition>;
|
|
17
35
|
export declare const rule: NodeSpec;
|
|
18
36
|
export declare const ruleWithLocalId: NodeSpec;
|
|
37
|
+
export declare const ruleWithAttrs: NodeSpec;
|
|
19
38
|
export declare const ruleRootOnlyStage0: NodeSpec;
|
|
39
|
+
export declare const ruleWithAttrsRootOnlyStage0: NodeSpec;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { NodeSpec, Node as PmNode, Attrs } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { FragmentDefinition } from '../marks/fragment';
|
|
3
|
+
import type { BodiedRuleDefinition as BodiedRule } from './bodied-rule';
|
|
3
4
|
import type { BlockCardDefinition as BlockCard } from './block-card';
|
|
4
5
|
import type { BlockQuoteDefinition as Blockquote } from './blockquote';
|
|
5
6
|
import type { CodeBlockDefinition as CodeBlock } from './code-block';
|
|
@@ -123,7 +124,7 @@ export interface TableRow {
|
|
|
123
124
|
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
124
125
|
* @allowUnsupportedBlock true
|
|
125
126
|
*/
|
|
126
|
-
export type TableCellContent = Array<Panel | Paragraph | ParagraphWithMarks | Blockquote | OrderedList | BulletList | Rule | Heading | HeadingWithMarks | CodeBlock | MediaGroup | MediaSingle | DecisionList | TaskList | Extension | BlockCard | NestedExpand | EmbedCard>;
|
|
127
|
+
export type TableCellContent = Array<Panel | Paragraph | ParagraphWithMarks | Blockquote | OrderedList | BulletList | Rule | BodiedRule | Heading | HeadingWithMarks | CodeBlock | MediaGroup | MediaSingle | DecisionList | TaskList | Extension | BlockCard | NestedExpand | EmbedCard>;
|
|
127
128
|
/**
|
|
128
129
|
* @name table_cell_node
|
|
129
130
|
*/
|
|
@@ -5,6 +5,7 @@ import type { ParagraphDefinition as Paragraph, ParagraphWithMarksDefinition as
|
|
|
5
5
|
import type { BlockQuoteDefinition as Blockquote } from '../blockquote';
|
|
6
6
|
import type { OrderedListDefinition as OrderedList, BulletListDefinition as BulletList } from '../types/list';
|
|
7
7
|
import type { RuleDefinition as Rule } from '../rule';
|
|
8
|
+
import type { BodiedRuleDefinition as BodiedRule } from '../bodied-rule';
|
|
8
9
|
import type { HeadingDefinition as Heading, HeadingWithMarksDefinition as HeadingWithMarks } from '../heading';
|
|
9
10
|
import type { CodeBlockDefinition as CodeBlock } from '../code-block';
|
|
10
11
|
import type { MediaGroupDefinition as MediaGroup } from '../media-group';
|
|
@@ -18,4 +19,4 @@ import type { EmbedCardDefinition as EmbedCard } from '../embed-card';
|
|
|
18
19
|
/**
|
|
19
20
|
* @name block_content
|
|
20
21
|
*/
|
|
21
|
-
export type BlockContent = Panel | Paragraph | ParagraphWithMarks | Blockquote | OrderedList | BulletList | Rule | Heading | HeadingWithMarks | CodeBlock | MediaGroup | MediaSingle | DecisionList | TaskList | Table | Expand | Extension | BodiedExtension | BlockCard | EmbedCard;
|
|
22
|
+
export type BlockContent = Panel | Paragraph | ParagraphWithMarks | Blockquote | OrderedList | BulletList | Rule | BodiedRule | Heading | HeadingWithMarks | CodeBlock | MediaGroup | MediaSingle | DecisionList | TaskList | Table | Expand | Extension | BodiedExtension | BlockCard | EmbedCard;
|
|
@@ -3,6 +3,7 @@ import type { ParagraphDefinition as Paragraph } from '../paragraph';
|
|
|
3
3
|
import type { BlockQuoteDefinition as Blockquote } from '../blockquote';
|
|
4
4
|
import type { OrderedListDefinition as OrderedList, BulletListDefinition as BulletList } from '../types/list';
|
|
5
5
|
import type { RuleDefinition as Rule } from '../rule';
|
|
6
|
+
import type { BodiedRuleDefinition as BodiedRule } from '../bodied-rule';
|
|
6
7
|
import type { HeadingDefinition as Heading } from '../heading';
|
|
7
8
|
import type { CodeBlockDefinition as CodeBlock } from '../code-block';
|
|
8
9
|
import type { MediaGroupDefinition as MediaGroup } from '../media-group';
|
|
@@ -16,4 +17,4 @@ import type { EmbedCardDefinition as EmbedCard } from '../embed-card';
|
|
|
16
17
|
/**
|
|
17
18
|
* @name non_nestable_block_content
|
|
18
19
|
*/
|
|
19
|
-
export type NonNestableBlockContent = Panel | Paragraph | Blockquote | OrderedList | BulletList | Rule | Heading | CodeBlock | MediaGroup | MediaSingle | DecisionList | TaskList | Table | Extension | BlockCard | EmbedCard;
|
|
20
|
+
export type NonNestableBlockContent = Panel | Paragraph | Blockquote | OrderedList | BulletList | Rule | BodiedRule | Heading | CodeBlock | MediaGroup | MediaSingle | DecisionList | TaskList | Table | Extension | BlockCard | EmbedCard;
|
|
@@ -256,6 +256,64 @@ export declare const bodiedExtension_with_marks: (string | {
|
|
|
256
256
|
};
|
|
257
257
|
};
|
|
258
258
|
})[];
|
|
259
|
+
export declare const bodiedRule: {
|
|
260
|
+
meta: {
|
|
261
|
+
stage0: boolean;
|
|
262
|
+
};
|
|
263
|
+
props: {
|
|
264
|
+
attrs: {
|
|
265
|
+
props: {
|
|
266
|
+
alignment: {
|
|
267
|
+
optional: boolean;
|
|
268
|
+
type: string;
|
|
269
|
+
values: string[];
|
|
270
|
+
};
|
|
271
|
+
color: {
|
|
272
|
+
optional: boolean;
|
|
273
|
+
pattern: string;
|
|
274
|
+
type: string;
|
|
275
|
+
};
|
|
276
|
+
localId: {
|
|
277
|
+
minLength: number;
|
|
278
|
+
type: string;
|
|
279
|
+
};
|
|
280
|
+
style: {
|
|
281
|
+
optional: boolean;
|
|
282
|
+
type: string;
|
|
283
|
+
values: string[];
|
|
284
|
+
};
|
|
285
|
+
weight: {
|
|
286
|
+
maximum: number;
|
|
287
|
+
minimum: number;
|
|
288
|
+
optional: boolean;
|
|
289
|
+
type: string;
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
content: {
|
|
294
|
+
items: string[][];
|
|
295
|
+
maxItems: number;
|
|
296
|
+
minItems: number;
|
|
297
|
+
type: string;
|
|
298
|
+
};
|
|
299
|
+
type: {
|
|
300
|
+
type: string;
|
|
301
|
+
values: string[];
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
export declare const bodiedRule_root_only: (string | {
|
|
306
|
+
meta: {
|
|
307
|
+
stage0: boolean;
|
|
308
|
+
};
|
|
309
|
+
props: {
|
|
310
|
+
marks: {
|
|
311
|
+
items: string[];
|
|
312
|
+
optional: boolean;
|
|
313
|
+
type: string;
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
})[];
|
|
259
317
|
export declare const bodiedSyncBlock: {
|
|
260
318
|
props: {
|
|
261
319
|
attrs: {
|
|
@@ -1752,6 +1810,75 @@ export declare const rule_root_only: (string | {
|
|
|
1752
1810
|
};
|
|
1753
1811
|
};
|
|
1754
1812
|
})[];
|
|
1813
|
+
export declare const rule_with_attrs: (string | {
|
|
1814
|
+
meta: {
|
|
1815
|
+
stage0: boolean;
|
|
1816
|
+
};
|
|
1817
|
+
props: {
|
|
1818
|
+
attrs: {
|
|
1819
|
+
optional: boolean;
|
|
1820
|
+
props: {
|
|
1821
|
+
color: {
|
|
1822
|
+
optional: boolean;
|
|
1823
|
+
pattern: string;
|
|
1824
|
+
type: string;
|
|
1825
|
+
};
|
|
1826
|
+
localId: {
|
|
1827
|
+
optional: boolean;
|
|
1828
|
+
type: string;
|
|
1829
|
+
};
|
|
1830
|
+
style: {
|
|
1831
|
+
optional: boolean;
|
|
1832
|
+
type: string;
|
|
1833
|
+
values: string[];
|
|
1834
|
+
};
|
|
1835
|
+
weight: {
|
|
1836
|
+
maximum: number;
|
|
1837
|
+
minimum: number;
|
|
1838
|
+
optional: boolean;
|
|
1839
|
+
type: string;
|
|
1840
|
+
};
|
|
1841
|
+
};
|
|
1842
|
+
};
|
|
1843
|
+
};
|
|
1844
|
+
})[];
|
|
1845
|
+
export declare const rule_with_attrs_root_only: (string | {
|
|
1846
|
+
meta: {
|
|
1847
|
+
stage0: boolean;
|
|
1848
|
+
};
|
|
1849
|
+
props: {
|
|
1850
|
+
attrs: {
|
|
1851
|
+
optional: boolean;
|
|
1852
|
+
props: {
|
|
1853
|
+
color: {
|
|
1854
|
+
optional: boolean;
|
|
1855
|
+
pattern: string;
|
|
1856
|
+
type: string;
|
|
1857
|
+
};
|
|
1858
|
+
localId: {
|
|
1859
|
+
optional: boolean;
|
|
1860
|
+
type: string;
|
|
1861
|
+
};
|
|
1862
|
+
style: {
|
|
1863
|
+
optional: boolean;
|
|
1864
|
+
type: string;
|
|
1865
|
+
values: string[];
|
|
1866
|
+
};
|
|
1867
|
+
weight: {
|
|
1868
|
+
maximum: number;
|
|
1869
|
+
minimum: number;
|
|
1870
|
+
optional: boolean;
|
|
1871
|
+
type: string;
|
|
1872
|
+
};
|
|
1873
|
+
};
|
|
1874
|
+
};
|
|
1875
|
+
marks: {
|
|
1876
|
+
items: string[];
|
|
1877
|
+
optional: boolean;
|
|
1878
|
+
type: string;
|
|
1879
|
+
};
|
|
1880
|
+
};
|
|
1881
|
+
})[];
|
|
1755
1882
|
export declare const status: {
|
|
1756
1883
|
props: {
|
|
1757
1884
|
attrs: {
|
|
@@ -117,6 +117,12 @@
|
|
|
117
117
|
{
|
|
118
118
|
"$ref": "#/definitions/rule_node"
|
|
119
119
|
},
|
|
120
|
+
{
|
|
121
|
+
"$ref": "#/definitions/rule_with_attrs_node"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"$ref": "#/definitions/bodiedRule_node"
|
|
125
|
+
},
|
|
120
126
|
{
|
|
121
127
|
"$ref": "#/definitions/panel_node"
|
|
122
128
|
},
|
|
@@ -446,6 +452,114 @@
|
|
|
446
452
|
}
|
|
447
453
|
]
|
|
448
454
|
},
|
|
455
|
+
"bodiedRule_node": {
|
|
456
|
+
"type": "object",
|
|
457
|
+
"properties": {
|
|
458
|
+
"type": {
|
|
459
|
+
"enum": ["bodiedRule"]
|
|
460
|
+
},
|
|
461
|
+
"attrs": {
|
|
462
|
+
"type": "object",
|
|
463
|
+
"properties": {
|
|
464
|
+
"localId": {
|
|
465
|
+
"type": "string",
|
|
466
|
+
"minLength": 1
|
|
467
|
+
},
|
|
468
|
+
"alignment": {
|
|
469
|
+
"enum": ["start", "center", "end"]
|
|
470
|
+
},
|
|
471
|
+
"color": {
|
|
472
|
+
"type": "string",
|
|
473
|
+
"pattern": "^#[0-9a-fA-F]{6}$"
|
|
474
|
+
},
|
|
475
|
+
"style": {
|
|
476
|
+
"enum": ["solid", "dashed", "dotted", "sketch", "fade"]
|
|
477
|
+
},
|
|
478
|
+
"weight": {
|
|
479
|
+
"type": "number",
|
|
480
|
+
"minimum": 1,
|
|
481
|
+
"maximum": 3
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
"required": ["localId"],
|
|
485
|
+
"additionalProperties": false
|
|
486
|
+
},
|
|
487
|
+
"content": {
|
|
488
|
+
"type": "array",
|
|
489
|
+
"items": {
|
|
490
|
+
"anyOf": [
|
|
491
|
+
{
|
|
492
|
+
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"$ref": "#/definitions/heading_with_no_marks_node"
|
|
496
|
+
}
|
|
497
|
+
]
|
|
498
|
+
},
|
|
499
|
+
"minItems": 1,
|
|
500
|
+
"maxItems": 1
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
"additionalProperties": false,
|
|
504
|
+
"required": ["type", "attrs", "content"]
|
|
505
|
+
},
|
|
506
|
+
"bodiedRule_root_only_node": {
|
|
507
|
+
"type": "object",
|
|
508
|
+
"properties": {
|
|
509
|
+
"type": {
|
|
510
|
+
"enum": ["bodiedRule"]
|
|
511
|
+
},
|
|
512
|
+
"marks": {
|
|
513
|
+
"type": "array",
|
|
514
|
+
"items": {
|
|
515
|
+
"$ref": "#/definitions/breakout_mark"
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
"attrs": {
|
|
519
|
+
"type": "object",
|
|
520
|
+
"properties": {
|
|
521
|
+
"localId": {
|
|
522
|
+
"type": "string",
|
|
523
|
+
"minLength": 1
|
|
524
|
+
},
|
|
525
|
+
"alignment": {
|
|
526
|
+
"enum": ["start", "center", "end"]
|
|
527
|
+
},
|
|
528
|
+
"color": {
|
|
529
|
+
"type": "string",
|
|
530
|
+
"pattern": "^#[0-9a-fA-F]{6}$"
|
|
531
|
+
},
|
|
532
|
+
"style": {
|
|
533
|
+
"enum": ["solid", "dashed", "dotted", "sketch", "fade"]
|
|
534
|
+
},
|
|
535
|
+
"weight": {
|
|
536
|
+
"type": "number",
|
|
537
|
+
"minimum": 1,
|
|
538
|
+
"maximum": 3
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
"required": ["localId"],
|
|
542
|
+
"additionalProperties": false
|
|
543
|
+
},
|
|
544
|
+
"content": {
|
|
545
|
+
"type": "array",
|
|
546
|
+
"items": {
|
|
547
|
+
"anyOf": [
|
|
548
|
+
{
|
|
549
|
+
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"$ref": "#/definitions/heading_with_no_marks_node"
|
|
553
|
+
}
|
|
554
|
+
]
|
|
555
|
+
},
|
|
556
|
+
"minItems": 1,
|
|
557
|
+
"maxItems": 1
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
"additionalProperties": false,
|
|
561
|
+
"required": ["type", "attrs", "content"]
|
|
562
|
+
},
|
|
449
563
|
"bodiedSyncBlock_node": {
|
|
450
564
|
"type": "object",
|
|
451
565
|
"properties": {
|
|
@@ -553,6 +667,12 @@
|
|
|
553
667
|
{
|
|
554
668
|
"$ref": "#/definitions/rule_node"
|
|
555
669
|
},
|
|
670
|
+
{
|
|
671
|
+
"$ref": "#/definitions/rule_with_attrs_node"
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"$ref": "#/definitions/bodiedRule_node"
|
|
675
|
+
},
|
|
556
676
|
{
|
|
557
677
|
"$ref": "#/definitions/table_node"
|
|
558
678
|
},
|
|
@@ -995,6 +1115,12 @@
|
|
|
995
1115
|
{
|
|
996
1116
|
"$ref": "#/definitions/rule_node"
|
|
997
1117
|
},
|
|
1118
|
+
{
|
|
1119
|
+
"$ref": "#/definitions/rule_with_attrs_node"
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
"$ref": "#/definitions/bodiedRule_node"
|
|
1123
|
+
},
|
|
998
1124
|
{
|
|
999
1125
|
"$ref": "#/definitions/panel_node"
|
|
1000
1126
|
},
|
|
@@ -1022,6 +1148,12 @@
|
|
|
1022
1148
|
{
|
|
1023
1149
|
"$ref": "#/definitions/rule_root_only_node"
|
|
1024
1150
|
},
|
|
1151
|
+
{
|
|
1152
|
+
"$ref": "#/definitions/rule_with_attrs_root_only_node"
|
|
1153
|
+
},
|
|
1154
|
+
{
|
|
1155
|
+
"$ref": "#/definitions/bodiedRule_root_only_node"
|
|
1156
|
+
},
|
|
1025
1157
|
{
|
|
1026
1158
|
"$ref": "#/definitions/extension_root_only_node"
|
|
1027
1159
|
},
|
|
@@ -1369,6 +1501,12 @@
|
|
|
1369
1501
|
{
|
|
1370
1502
|
"$ref": "#/definitions/rule_node"
|
|
1371
1503
|
},
|
|
1504
|
+
{
|
|
1505
|
+
"$ref": "#/definitions/rule_with_attrs_node"
|
|
1506
|
+
},
|
|
1507
|
+
{
|
|
1508
|
+
"$ref": "#/definitions/bodiedRule_node"
|
|
1509
|
+
},
|
|
1372
1510
|
{
|
|
1373
1511
|
"$ref": "#/definitions/heading_with_no_marks_node"
|
|
1374
1512
|
},
|
|
@@ -2473,6 +2611,12 @@
|
|
|
2473
2611
|
{
|
|
2474
2612
|
"$ref": "#/definitions/rule_node"
|
|
2475
2613
|
},
|
|
2614
|
+
{
|
|
2615
|
+
"$ref": "#/definitions/rule_with_attrs_node"
|
|
2616
|
+
},
|
|
2617
|
+
{
|
|
2618
|
+
"$ref": "#/definitions/bodiedRule_node"
|
|
2619
|
+
},
|
|
2476
2620
|
{
|
|
2477
2621
|
"$ref": "#/definitions/panel_node"
|
|
2478
2622
|
},
|
|
@@ -2551,6 +2695,12 @@
|
|
|
2551
2695
|
{
|
|
2552
2696
|
"$ref": "#/definitions/rule_node"
|
|
2553
2697
|
},
|
|
2698
|
+
{
|
|
2699
|
+
"$ref": "#/definitions/rule_with_attrs_node"
|
|
2700
|
+
},
|
|
2701
|
+
{
|
|
2702
|
+
"$ref": "#/definitions/bodiedRule_node"
|
|
2703
|
+
},
|
|
2554
2704
|
{
|
|
2555
2705
|
"$ref": "#/definitions/heading_with_no_marks_node"
|
|
2556
2706
|
},
|
|
@@ -2695,6 +2845,12 @@
|
|
|
2695
2845
|
{
|
|
2696
2846
|
"$ref": "#/definitions/rule_node"
|
|
2697
2847
|
},
|
|
2848
|
+
{
|
|
2849
|
+
"$ref": "#/definitions/rule_with_attrs_node"
|
|
2850
|
+
},
|
|
2851
|
+
{
|
|
2852
|
+
"$ref": "#/definitions/bodiedRule_node"
|
|
2853
|
+
},
|
|
2698
2854
|
{
|
|
2699
2855
|
"$ref": "#/definitions/decisionList_node"
|
|
2700
2856
|
},
|
|
@@ -2797,6 +2953,12 @@
|
|
|
2797
2953
|
{
|
|
2798
2954
|
"$ref": "#/definitions/rule_node"
|
|
2799
2955
|
},
|
|
2956
|
+
{
|
|
2957
|
+
"$ref": "#/definitions/rule_with_attrs_node"
|
|
2958
|
+
},
|
|
2959
|
+
{
|
|
2960
|
+
"$ref": "#/definitions/bodiedRule_node"
|
|
2961
|
+
},
|
|
2800
2962
|
{
|
|
2801
2963
|
"$ref": "#/definitions/decisionList_node"
|
|
2802
2964
|
},
|
|
@@ -2893,6 +3055,12 @@
|
|
|
2893
3055
|
{
|
|
2894
3056
|
"$ref": "#/definitions/rule_node"
|
|
2895
3057
|
},
|
|
3058
|
+
{
|
|
3059
|
+
"$ref": "#/definitions/rule_with_attrs_node"
|
|
3060
|
+
},
|
|
3061
|
+
{
|
|
3062
|
+
"$ref": "#/definitions/bodiedRule_node"
|
|
3063
|
+
},
|
|
2896
3064
|
{
|
|
2897
3065
|
"$ref": "#/definitions/decisionList_node"
|
|
2898
3066
|
},
|
|
@@ -2961,6 +3129,12 @@
|
|
|
2961
3129
|
{
|
|
2962
3130
|
"$ref": "#/definitions/rule_node"
|
|
2963
3131
|
},
|
|
3132
|
+
{
|
|
3133
|
+
"$ref": "#/definitions/rule_with_attrs_node"
|
|
3134
|
+
},
|
|
3135
|
+
{
|
|
3136
|
+
"$ref": "#/definitions/bodiedRule_node"
|
|
3137
|
+
},
|
|
2964
3138
|
{
|
|
2965
3139
|
"$ref": "#/definitions/decisionList_node"
|
|
2966
3140
|
},
|
|
@@ -3154,6 +3328,74 @@
|
|
|
3154
3328
|
}
|
|
3155
3329
|
]
|
|
3156
3330
|
},
|
|
3331
|
+
"rule_with_attrs_node": {
|
|
3332
|
+
"type": "object",
|
|
3333
|
+
"properties": {
|
|
3334
|
+
"type": {
|
|
3335
|
+
"enum": ["rule"]
|
|
3336
|
+
},
|
|
3337
|
+
"attrs": {
|
|
3338
|
+
"type": "object",
|
|
3339
|
+
"properties": {
|
|
3340
|
+
"localId": {
|
|
3341
|
+
"type": "string"
|
|
3342
|
+
},
|
|
3343
|
+
"color": {
|
|
3344
|
+
"type": "string",
|
|
3345
|
+
"pattern": "^#[0-9a-fA-F]{6}$"
|
|
3346
|
+
},
|
|
3347
|
+
"style": {
|
|
3348
|
+
"enum": ["solid", "dashed", "dotted", "sketch", "fade"]
|
|
3349
|
+
},
|
|
3350
|
+
"weight": {
|
|
3351
|
+
"type": "number",
|
|
3352
|
+
"minimum": 1,
|
|
3353
|
+
"maximum": 3
|
|
3354
|
+
}
|
|
3355
|
+
},
|
|
3356
|
+
"additionalProperties": false
|
|
3357
|
+
}
|
|
3358
|
+
},
|
|
3359
|
+
"additionalProperties": false,
|
|
3360
|
+
"required": ["type"]
|
|
3361
|
+
},
|
|
3362
|
+
"rule_with_attrs_root_only_node": {
|
|
3363
|
+
"type": "object",
|
|
3364
|
+
"properties": {
|
|
3365
|
+
"type": {
|
|
3366
|
+
"enum": ["rule"]
|
|
3367
|
+
},
|
|
3368
|
+
"marks": {
|
|
3369
|
+
"type": "array",
|
|
3370
|
+
"items": {
|
|
3371
|
+
"$ref": "#/definitions/breakout_mark"
|
|
3372
|
+
}
|
|
3373
|
+
},
|
|
3374
|
+
"attrs": {
|
|
3375
|
+
"type": "object",
|
|
3376
|
+
"properties": {
|
|
3377
|
+
"localId": {
|
|
3378
|
+
"type": "string"
|
|
3379
|
+
},
|
|
3380
|
+
"color": {
|
|
3381
|
+
"type": "string",
|
|
3382
|
+
"pattern": "^#[0-9a-fA-F]{6}$"
|
|
3383
|
+
},
|
|
3384
|
+
"style": {
|
|
3385
|
+
"enum": ["solid", "dashed", "dotted", "sketch", "fade"]
|
|
3386
|
+
},
|
|
3387
|
+
"weight": {
|
|
3388
|
+
"type": "number",
|
|
3389
|
+
"minimum": 1,
|
|
3390
|
+
"maximum": 3
|
|
3391
|
+
}
|
|
3392
|
+
},
|
|
3393
|
+
"additionalProperties": false
|
|
3394
|
+
}
|
|
3395
|
+
},
|
|
3396
|
+
"additionalProperties": false,
|
|
3397
|
+
"required": ["type"]
|
|
3398
|
+
},
|
|
3157
3399
|
"status_node": {
|
|
3158
3400
|
"type": "object",
|
|
3159
3401
|
"properties": {
|
|
@@ -3284,6 +3526,12 @@
|
|
|
3284
3526
|
{
|
|
3285
3527
|
"$ref": "#/definitions/rule_node"
|
|
3286
3528
|
},
|
|
3529
|
+
{
|
|
3530
|
+
"$ref": "#/definitions/rule_with_attrs_node"
|
|
3531
|
+
},
|
|
3532
|
+
{
|
|
3533
|
+
"$ref": "#/definitions/bodiedRule_node"
|
|
3534
|
+
},
|
|
3287
3535
|
{
|
|
3288
3536
|
"$ref": "#/definitions/heading_with_no_marks_node"
|
|
3289
3537
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/adf-schema",
|
|
3
|
-
"version": "57.2
|
|
3
|
+
"version": "57.3.2",
|
|
4
4
|
"description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@atlaskit/adf-schema-generator": "^4.0.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
42
42
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
43
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
43
|
+
"@atlaskit/tmp-editor-statsig": "^176.0.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"css-color-names": "0.0.4",
|
|
46
46
|
"linkify-it": "^5.0.2",
|