@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
|
@@ -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
|
},
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source files in "packages/adf-schema/src/next-schema" ,
|
|
4
4
|
* and run "yarn workspace @atlaskit/adf-schema build:schema:all" to regenerate this file.
|
|
5
5
|
*/
|
|
6
|
-
import type { BlockCardDefinition, BlockquoteDefinition, BlockquoteLegacyDefinition, BodiedExtensionDefinition, BodiedExtensionWithMarksDefinition, BulletListDefinition, CodeBlockDefinition, ConfluenceJiraIssueDefinition, ConfluenceUnsupportedBlockDefinition, ConfluenceUnsupportedInlineDefinition, DateDefinition, DateStage0Definition, DecisionListDefinition, EmbedCardDefinition, EmojiDefinition, EmojiStage0Definition, ExpandDefinition, ExtensionDefinition, ExtensionWithMarksDefinition, HardBreakDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithNoMarksDefinition, ImageDefinition, InlineCardDefinition, InlineCardStage0Definition, InlineExtensionDefinition, InlineExtensionWithMarksDefinition, MediaGroupDefinition, MediaInlineDefinition, MediaSingleCaptionDefinition, MediaSingleDefinition, MediaSingleFullDefinition, MediaSingleWidthTypeDefinition, MentionDefinition, MentionStage0Definition, MultiBodiedExtensionStage0Definition, OrderedListDefinition, PanelC1Stage0Definition, PanelDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithFontSizeDefinition, ParagraphWithIndentationDefinition, ParagraphWithNoMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, StatusStage0Definition, TableDefinition, TableWithNestedTableDefinition, TaskListDefinition, TextCodeInlineDefinition, TextDefinition, TextFormattedDefinition, UnsupportedBlockDefinition, UnsupportedInlineDefinition } from './nodeTypes';
|
|
7
|
-
export type BlockDefinition = Array<BlockCardDefinition | CodeBlockDefinition | MediaSingleDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | MediaSingleWidthTypeDefinition | ParagraphDefinition | ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | OrderedListDefinition | BulletListDefinition | BlockquoteDefinition | BlockquoteLegacyDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionDefinition | ExtensionWithMarksDefinition | HeadingDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | HeadingWithAlignmentDefinition | MediaGroupDefinition | RuleDefinition | PanelDefinition | PanelC1Stage0Definition | TableDefinition | TableWithNestedTableDefinition | BodiedExtensionDefinition | BodiedExtensionWithMarksDefinition | ExpandDefinition | ConfluenceUnsupportedBlockDefinition | UnsupportedBlockDefinition>;
|
|
6
|
+
import type { BlockCardDefinition, BlockquoteDefinition, BlockquoteLegacyDefinition, BodiedExtensionDefinition, BodiedExtensionWithMarksDefinition, BodiedRuleStage0Definition, BulletListDefinition, CodeBlockDefinition, ConfluenceJiraIssueDefinition, ConfluenceUnsupportedBlockDefinition, ConfluenceUnsupportedInlineDefinition, DateDefinition, DateStage0Definition, DecisionListDefinition, EmbedCardDefinition, EmojiDefinition, EmojiStage0Definition, ExpandDefinition, ExtensionDefinition, ExtensionWithMarksDefinition, HardBreakDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithNoMarksDefinition, ImageDefinition, InlineCardDefinition, InlineCardStage0Definition, InlineExtensionDefinition, InlineExtensionWithMarksDefinition, MediaGroupDefinition, MediaInlineDefinition, MediaSingleCaptionDefinition, MediaSingleDefinition, MediaSingleFullDefinition, MediaSingleWidthTypeDefinition, MentionDefinition, MentionStage0Definition, MultiBodiedExtensionStage0Definition, OrderedListDefinition, PanelC1Stage0Definition, PanelDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithFontSizeDefinition, ParagraphWithIndentationDefinition, ParagraphWithNoMarksDefinition, PlaceholderDefinition, RuleDefinition, RuleWithAttrsStage0Definition, StatusDefinition, StatusStage0Definition, TableDefinition, TableWithNestedTableDefinition, TaskListDefinition, TextCodeInlineDefinition, TextDefinition, TextFormattedDefinition, UnsupportedBlockDefinition, UnsupportedInlineDefinition } from './nodeTypes';
|
|
7
|
+
export type BlockDefinition = Array<BlockCardDefinition | CodeBlockDefinition | MediaSingleDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | MediaSingleWidthTypeDefinition | ParagraphDefinition | ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | OrderedListDefinition | BulletListDefinition | BlockquoteDefinition | BlockquoteLegacyDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionDefinition | ExtensionWithMarksDefinition | HeadingDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | HeadingWithAlignmentDefinition | MediaGroupDefinition | RuleDefinition | RuleWithAttrsStage0Definition | BodiedRuleStage0Definition | PanelDefinition | PanelC1Stage0Definition | TableDefinition | TableWithNestedTableDefinition | BodiedExtensionDefinition | BodiedExtensionWithMarksDefinition | ExpandDefinition | ConfluenceUnsupportedBlockDefinition | UnsupportedBlockDefinition>;
|
|
8
8
|
export type BlockRootOnlyDefinition = Array<MultiBodiedExtensionStage0Definition>;
|
|
9
9
|
export type InlineDefinition = Array<TextDefinition | TextFormattedDefinition | TextCodeInlineDefinition | DateDefinition | DateStage0Definition | EmojiDefinition | EmojiStage0Definition | HardBreakDefinition | InlineCardDefinition | InlineCardStage0Definition | MentionDefinition | MentionStage0Definition | PlaceholderDefinition | StatusDefinition | StatusStage0Definition | InlineExtensionDefinition | InlineExtensionWithMarksDefinition | MediaInlineDefinition | ImageDefinition | ConfluenceJiraIssueDefinition | ConfluenceUnsupportedInlineDefinition | UnsupportedInlineDefinition>;
|
|
10
|
-
export type NonNestableBlockContentDefinition = Array<ParagraphWithNoMarksDefinition | ParagraphWithFontSizeDefinition | PanelDefinition | BlockquoteDefinition | OrderedListDefinition | BulletListDefinition | RuleDefinition | HeadingWithNoMarksDefinition | CodeBlockDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | DecisionListDefinition | TaskListDefinition | TableDefinition | TableWithNestedTableDefinition | BlockCardDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | UnsupportedBlockDefinition>;
|
|
10
|
+
export type NonNestableBlockContentDefinition = Array<ParagraphWithNoMarksDefinition | ParagraphWithFontSizeDefinition | PanelDefinition | BlockquoteDefinition | OrderedListDefinition | BulletListDefinition | RuleDefinition | RuleWithAttrsStage0Definition | BodiedRuleStage0Definition | HeadingWithNoMarksDefinition | CodeBlockDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | DecisionListDefinition | TaskListDefinition | TableDefinition | TableWithNestedTableDefinition | BlockCardDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | UnsupportedBlockDefinition>;
|
|
@@ -62,7 +62,7 @@ export type BlockTaskItemNode = PMNode & BlockTaskItemDefinition;
|
|
|
62
62
|
export declare const blockTaskItem: PMNodeSpecFactoryInstance<BlockTaskItemNode>;
|
|
63
63
|
export interface BodiedExtensionDefinition {
|
|
64
64
|
type: 'bodiedExtension';
|
|
65
|
-
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
65
|
+
content: Array<BlockCardDefinition | BlockquoteDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
66
66
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
67
67
|
attrs: {
|
|
68
68
|
extensionKey: string;
|
|
@@ -77,7 +77,7 @@ export type BodiedExtensionNode = PMNode & BodiedExtensionDefinition;
|
|
|
77
77
|
export declare const bodiedExtension: PMNodeSpecFactoryInstance<BodiedExtensionNode>;
|
|
78
78
|
export interface BodiedExtensionRootOnlyStage0Definition {
|
|
79
79
|
type: 'bodiedExtension';
|
|
80
|
-
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
80
|
+
content: Array<BlockCardDefinition | BlockquoteDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
81
81
|
marks: Array<BreakoutMark | DataConsumerMark | FragmentMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
82
82
|
attrs: {
|
|
83
83
|
extensionKey: string;
|
|
@@ -104,9 +104,37 @@ export interface BodiedExtensionWithMarksDefinition {
|
|
|
104
104
|
}
|
|
105
105
|
export type BodiedExtensionWithMarksNode = PMNode & BodiedExtensionWithMarksDefinition;
|
|
106
106
|
export declare const bodiedExtensionWithMarks: PMNodeSpecFactoryInstance<BodiedExtensionWithMarksNode>;
|
|
107
|
+
export interface BodiedRuleRootOnlyStage0Definition {
|
|
108
|
+
type: 'bodiedRule';
|
|
109
|
+
content: Array<HeadingWithNoMarksDefinition | ParagraphWithNoMarksDefinition>;
|
|
110
|
+
marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
111
|
+
attrs: {
|
|
112
|
+
localId: string;
|
|
113
|
+
alignment?: 'start' | 'center' | 'end';
|
|
114
|
+
color?: string;
|
|
115
|
+
style?: 'solid' | 'dashed' | 'dotted' | 'sketch' | 'fade';
|
|
116
|
+
weight?: number;
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
export type BodiedRuleRootOnlyStage0Node = PMNode & BodiedRuleRootOnlyStage0Definition;
|
|
120
|
+
export declare const bodiedRuleRootOnlyStage0: PMNodeSpecFactoryInstance<BodiedRuleRootOnlyStage0Node>;
|
|
121
|
+
export interface BodiedRuleStage0Definition {
|
|
122
|
+
type: 'bodiedRule';
|
|
123
|
+
content: Array<HeadingWithNoMarksDefinition | ParagraphWithNoMarksDefinition>;
|
|
124
|
+
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
125
|
+
attrs: {
|
|
126
|
+
localId: string;
|
|
127
|
+
alignment?: 'start' | 'center' | 'end';
|
|
128
|
+
color?: string;
|
|
129
|
+
style?: 'solid' | 'dashed' | 'dotted' | 'sketch' | 'fade';
|
|
130
|
+
weight?: number;
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
export type BodiedRuleStage0Node = PMNode & BodiedRuleStage0Definition;
|
|
134
|
+
export declare const bodiedRuleStage0: PMNodeSpecFactoryInstance<BodiedRuleStage0Node>;
|
|
107
135
|
export interface BodiedSyncBlockDefinition {
|
|
108
136
|
type: 'bodiedSyncBlock';
|
|
109
|
-
content: Array<BlockCardDefinition | BlockquoteDefinition | BlockquoteLegacyDefinition | BulletListDefinition | CodeBlockDefinition | ConfluenceUnsupportedBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExpandDefinition | HeadingDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | LayoutSectionDefinition | LayoutSectionFullDefinition | LayoutSectionWithSingleColumnStage0Definition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleDefinition | MediaSingleFullDefinition | MediaSingleWidthTypeDefinition | OrderedListDefinition | PanelC1Stage0Definition | PanelDefinition | ParagraphDefinition | ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
137
|
+
content: Array<BlockCardDefinition | BlockquoteDefinition | BlockquoteLegacyDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | ConfluenceUnsupportedBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExpandDefinition | HeadingDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | LayoutSectionDefinition | LayoutSectionFullDefinition | LayoutSectionWithSingleColumnStage0Definition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleDefinition | MediaSingleFullDefinition | MediaSingleWidthTypeDefinition | OrderedListDefinition | PanelC1Stage0Definition | PanelDefinition | ParagraphDefinition | ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
110
138
|
marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
111
139
|
attrs: {
|
|
112
140
|
resourceId: string;
|
|
@@ -233,7 +261,7 @@ export type DecisionListNode = PMNode & DecisionListDefinition;
|
|
|
233
261
|
export declare const decisionList: PMNodeSpecFactoryInstance<DecisionListNode>;
|
|
234
262
|
export interface DocDefinition {
|
|
235
263
|
type: 'doc';
|
|
236
|
-
content: Array<BlockDefinition | BlockRootOnlyDefinition | BodiedExtensionRootOnlyStage0Definition | BodiedSyncBlockDefinition | CodeBlockRootOnlyDefinition | ExpandRootOnlyDefinition | ExtensionRootOnlyStage0Definition | LayoutSectionDefinition | LayoutSectionFullDefinition | LayoutSectionWithSingleColumnStage0Definition | MultiBodiedExtensionRootOnlyStage0Definition | PanelC1RootOnlyStage0Definition | PanelC1Stage0Definition | PanelRootOnlyStage0Definition | RuleRootOnlyStage0Definition | SyncBlockDefinition>;
|
|
264
|
+
content: Array<BlockDefinition | BlockRootOnlyDefinition | BodiedExtensionRootOnlyStage0Definition | BodiedRuleRootOnlyStage0Definition | BodiedSyncBlockDefinition | CodeBlockRootOnlyDefinition | ExpandRootOnlyDefinition | ExtensionRootOnlyStage0Definition | LayoutSectionDefinition | LayoutSectionFullDefinition | LayoutSectionWithSingleColumnStage0Definition | MultiBodiedExtensionRootOnlyStage0Definition | PanelC1RootOnlyStage0Definition | PanelC1Stage0Definition | PanelRootOnlyStage0Definition | RuleRootOnlyStage0Definition | RuleWithAttrsRootOnlyStage0Definition | SyncBlockDefinition>;
|
|
237
265
|
}
|
|
238
266
|
export type DocNode = PMNode & DocDefinition;
|
|
239
267
|
export declare const doc: PMNodeSpecFactoryInstance<DocNode>;
|
|
@@ -277,7 +305,7 @@ export type EmojiStage0Node = PMNode & EmojiStage0Definition;
|
|
|
277
305
|
export declare const emojiStage0: PMNodeSpecFactoryInstance<EmojiStage0Node>;
|
|
278
306
|
export interface ExpandDefinition {
|
|
279
307
|
type: 'expand';
|
|
280
|
-
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
308
|
+
content: Array<BlockCardDefinition | BlockquoteDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
281
309
|
attrs: {
|
|
282
310
|
title?: string;
|
|
283
311
|
__expanded?: boolean;
|
|
@@ -288,7 +316,7 @@ export type ExpandNode = PMNode & ExpandDefinition;
|
|
|
288
316
|
export declare const expand: PMNodeSpecFactoryInstance<ExpandNode>;
|
|
289
317
|
export interface ExpandRootOnlyDefinition {
|
|
290
318
|
type: 'expand';
|
|
291
|
-
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
319
|
+
content: Array<BlockCardDefinition | BlockquoteDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
292
320
|
marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
293
321
|
attrs: {
|
|
294
322
|
title?: string;
|
|
@@ -342,7 +370,7 @@ export type ExtensionWithMarksNode = PMNode & ExtensionWithMarksDefinition;
|
|
|
342
370
|
export declare const extensionWithMarks: PMNodeSpecFactoryInstance<ExtensionWithMarksNode>;
|
|
343
371
|
export interface ExtensionFrameStage0Definition {
|
|
344
372
|
type: 'extensionFrame';
|
|
345
|
-
content: Array<BlockCardDefinition | BlockquoteDefinition | BodiedExtensionWithMarksDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
373
|
+
content: Array<BlockCardDefinition | BlockquoteDefinition | BodiedExtensionWithMarksDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
346
374
|
marks: Array<DataConsumerMark | FragmentMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
347
375
|
}
|
|
348
376
|
export type ExtensionFrameStage0Node = PMNode & ExtensionFrameStage0Definition;
|
|
@@ -715,7 +743,7 @@ export type MultiBodiedExtensionStage0Node = PMNode & MultiBodiedExtensionStage0
|
|
|
715
743
|
export declare const multiBodiedExtensionStage0: PMNodeSpecFactoryInstance<MultiBodiedExtensionStage0Node>;
|
|
716
744
|
export interface NestedExpandDefinition {
|
|
717
745
|
type: 'nestedExpand';
|
|
718
|
-
content: Array<BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
746
|
+
content: Array<BlockquoteDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
719
747
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
720
748
|
attrs: {
|
|
721
749
|
title?: string;
|
|
@@ -748,7 +776,7 @@ export type OrderedListNode = PMNode & OrderedListDefinition;
|
|
|
748
776
|
export declare const orderedList: PMNodeSpecFactoryInstance<OrderedListNode>;
|
|
749
777
|
export interface PanelDefinition {
|
|
750
778
|
type: 'panel';
|
|
751
|
-
content: Array<BlockCardDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
779
|
+
content: Array<BlockCardDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
752
780
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
753
781
|
attrs: {
|
|
754
782
|
panelType: 'info' | 'note' | 'tip' | 'warning' | 'error' | 'success' | 'custom';
|
|
@@ -763,7 +791,7 @@ export type PanelNode = PMNode & PanelDefinition;
|
|
|
763
791
|
export declare const panel: PMNodeSpecFactoryInstance<PanelNode>;
|
|
764
792
|
export interface PanelC1RootOnlyStage0Definition {
|
|
765
793
|
type: 'panel';
|
|
766
|
-
content: Array<BlockCardDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
794
|
+
content: Array<BlockCardDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
767
795
|
marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
768
796
|
attrs: {
|
|
769
797
|
panelType: 'info' | 'note' | 'tip' | 'warning' | 'error' | 'success' | 'custom';
|
|
@@ -778,7 +806,7 @@ export type PanelC1RootOnlyStage0Node = PMNode & PanelC1RootOnlyStage0Definition
|
|
|
778
806
|
export declare const panelC1RootOnlyStage0: PMNodeSpecFactoryInstance<PanelC1RootOnlyStage0Node>;
|
|
779
807
|
export interface PanelC1Stage0Definition {
|
|
780
808
|
type: 'panel';
|
|
781
|
-
content: Array<BlockCardDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
809
|
+
content: Array<BlockCardDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
782
810
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
783
811
|
attrs: {
|
|
784
812
|
panelType: 'info' | 'note' | 'tip' | 'warning' | 'error' | 'success' | 'custom';
|
|
@@ -793,7 +821,7 @@ export type PanelC1Stage0Node = PMNode & PanelC1Stage0Definition;
|
|
|
793
821
|
export declare const panelC1Stage0: PMNodeSpecFactoryInstance<PanelC1Stage0Node>;
|
|
794
822
|
export interface PanelRootOnlyStage0Definition {
|
|
795
823
|
type: 'panel';
|
|
796
|
-
content: Array<BlockCardDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
824
|
+
content: Array<BlockCardDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
797
825
|
marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
798
826
|
attrs: {
|
|
799
827
|
panelType: 'info' | 'note' | 'tip' | 'warning' | 'error' | 'success' | 'custom';
|
|
@@ -878,6 +906,29 @@ export interface RuleRootOnlyStage0Definition {
|
|
|
878
906
|
}
|
|
879
907
|
export type RuleRootOnlyStage0Node = PMNode & RuleRootOnlyStage0Definition;
|
|
880
908
|
export declare const ruleRootOnlyStage0: PMNodeSpecFactoryInstance<RuleRootOnlyStage0Node>;
|
|
909
|
+
export interface RuleWithAttrsRootOnlyStage0Definition {
|
|
910
|
+
type: 'rule';
|
|
911
|
+
marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
912
|
+
attrs: {
|
|
913
|
+
localId?: string;
|
|
914
|
+
color?: string;
|
|
915
|
+
style?: 'solid' | 'dashed' | 'dotted' | 'sketch' | 'fade';
|
|
916
|
+
weight?: number;
|
|
917
|
+
};
|
|
918
|
+
}
|
|
919
|
+
export type RuleWithAttrsRootOnlyStage0Node = PMNode & RuleWithAttrsRootOnlyStage0Definition;
|
|
920
|
+
export declare const ruleWithAttrsRootOnlyStage0: PMNodeSpecFactoryInstance<RuleWithAttrsRootOnlyStage0Node>;
|
|
921
|
+
export interface RuleWithAttrsStage0Definition {
|
|
922
|
+
type: 'rule';
|
|
923
|
+
attrs: {
|
|
924
|
+
localId?: string;
|
|
925
|
+
color?: string;
|
|
926
|
+
style?: 'solid' | 'dashed' | 'dotted' | 'sketch' | 'fade';
|
|
927
|
+
weight?: number;
|
|
928
|
+
};
|
|
929
|
+
}
|
|
930
|
+
export type RuleWithAttrsStage0Node = PMNode & RuleWithAttrsStage0Definition;
|
|
931
|
+
export declare const ruleWithAttrsStage0: PMNodeSpecFactoryInstance<RuleWithAttrsStage0Node>;
|
|
881
932
|
export interface StatusDefinition {
|
|
882
933
|
type: 'status';
|
|
883
934
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
@@ -944,7 +995,7 @@ export type TableWithNestedTableNode = PMNode & TableWithNestedTableDefinition;
|
|
|
944
995
|
export declare const tableWithNestedTable: PMNodeSpecFactoryInstance<TableWithNestedTableNode>;
|
|
945
996
|
export interface TableCellDefinition {
|
|
946
997
|
type: 'tableCell';
|
|
947
|
-
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
998
|
+
content: Array<BlockCardDefinition | BlockquoteDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
948
999
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
949
1000
|
attrs: {
|
|
950
1001
|
colspan?: number;
|
|
@@ -959,7 +1010,7 @@ export type TableCellNode = PMNode & TableCellDefinition;
|
|
|
959
1010
|
export declare const tableCell: PMNodeSpecFactoryInstance<TableCellNode>;
|
|
960
1011
|
export interface TableCellWithNestedTableDefinition {
|
|
961
1012
|
type: 'tableCell';
|
|
962
|
-
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
1013
|
+
content: Array<BlockCardDefinition | BlockquoteDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
963
1014
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
964
1015
|
attrs: {
|
|
965
1016
|
colspan?: number;
|
|
@@ -974,7 +1025,7 @@ export type TableCellWithNestedTableNode = PMNode & TableCellWithNestedTableDefi
|
|
|
974
1025
|
export declare const tableCellWithNestedTable: PMNodeSpecFactoryInstance<TableCellWithNestedTableNode>;
|
|
975
1026
|
export interface TableHeaderDefinition {
|
|
976
1027
|
type: 'tableHeader';
|
|
977
|
-
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition>;
|
|
1028
|
+
content: Array<BlockCardDefinition | BlockquoteDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TaskListDefinition>;
|
|
978
1029
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
979
1030
|
attrs: {
|
|
980
1031
|
colspan?: number;
|
|
@@ -989,7 +1040,7 @@ export type TableHeaderNode = PMNode & TableHeaderDefinition;
|
|
|
989
1040
|
export declare const tableHeader: PMNodeSpecFactoryInstance<TableHeaderNode>;
|
|
990
1041
|
export interface TableHeaderWithNestedTableDefinition {
|
|
991
1042
|
type: 'tableHeader';
|
|
992
|
-
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition>;
|
|
1043
|
+
content: Array<BlockCardDefinition | BlockquoteDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TableDefinition | TaskListDefinition>;
|
|
993
1044
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
994
1045
|
attrs: {
|
|
995
1046
|
colspan?: number;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import type { ADFCommonNodeSpec, ADFNode } from '@atlaskit/adf-schema-generator';
|
|
2
|
-
export declare const rule: ADFNode<[
|
|
2
|
+
export declare const rule: ADFNode<[
|
|
3
|
+
string,
|
|
4
|
+
'with_attrs',
|
|
5
|
+
'root_only',
|
|
6
|
+
'with_attrs_root_only'
|
|
7
|
+
], ADFCommonNodeSpec>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MemoizedFn } from 'memoize-one';
|
|
2
2
|
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { SchemaConfig } from './create-schema';
|
|
4
|
-
type DefaultSchemaNodes = 'doc' | 'paragraph' | 'text' | 'bulletList' | 'orderedList' | 'listItem' | 'heading' | 'blockquote' | 'codeBlock' | 'panel' | 'panel_c1' | 'rule' | 'image' | 'mention' | 'media' | 'caption' | 'mediaGroup' | 'mediaSingle' | 'mediaInline' | 'confluenceUnsupportedBlock' | 'confluenceUnsupportedInline' | 'confluenceJiraIssue' | 'expand' | 'nestedExpand' | 'extension' | 'inlineExtension' | 'bodiedExtension' | 'hardBreak' | 'emoji' | 'table' | 'tableCell' | 'tableHeader' | 'tableRow' | 'decisionList' | 'decisionItem' | 'taskList' | 'taskItem' | 'blockTaskItem' | 'unknownBlock' | 'date' | 'status' | 'placeholder' | 'layoutSection' | 'layoutColumn' | 'inlineCard' | 'blockCard' | 'embedCard' | 'syncBlock' | 'bodiedSyncBlock' | 'unsupportedBlock' | 'unsupportedInline';
|
|
4
|
+
type DefaultSchemaNodes = 'doc' | 'paragraph' | 'text' | 'bulletList' | 'orderedList' | 'listItem' | 'heading' | 'blockquote' | 'codeBlock' | 'panel' | 'panel_c1' | 'rule' | 'bodiedRule' | 'image' | 'mention' | 'media' | 'caption' | 'mediaGroup' | 'mediaSingle' | 'mediaInline' | 'confluenceUnsupportedBlock' | 'confluenceUnsupportedInline' | 'confluenceJiraIssue' | 'expand' | 'nestedExpand' | 'extension' | 'inlineExtension' | 'bodiedExtension' | 'hardBreak' | 'emoji' | 'table' | 'tableCell' | 'tableHeader' | 'tableRow' | 'decisionList' | 'decisionItem' | 'taskList' | 'taskItem' | 'blockTaskItem' | 'unknownBlock' | 'date' | 'status' | 'placeholder' | 'layoutSection' | 'layoutColumn' | 'inlineCard' | 'blockCard' | 'embedCard' | 'syncBlock' | 'bodiedSyncBlock' | 'unsupportedBlock' | 'unsupportedInline';
|
|
5
5
|
type DefaultSchemaMarks = 'link' | 'em' | 'strong' | 'strike' | 'subsup' | 'underline' | 'code' | 'textColor' | 'backgroundColor' | 'confluenceInlineComment' | 'breakout' | 'alignment' | 'indentation' | 'annotation' | 'border' | 'fontSize' | 'unsupportedMark' | 'unsupportedNodeAttribute' | 'typeAheadQuery' | 'dataConsumer' | 'fragment';
|
|
6
6
|
export declare const defaultSchemaConfig: SchemaConfig<DefaultSchemaNodes, DefaultSchemaMarks>;
|
|
7
7
|
export declare const getSchemaBasedOnStage: MemoizedFn<(this: any, stage?: any) => Schema<DefaultSchemaNodes, DefaultSchemaMarks>>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { BreakoutMarkDefinition } from '../marks';
|
|
3
|
+
import type { HeadingDefinition } from './heading';
|
|
4
|
+
import type { MarksObject } from './types/mark';
|
|
5
|
+
import type { ParagraphDefinition } from './paragraph';
|
|
6
|
+
export type BodiedRuleAlignment = 'start' | 'center' | 'end';
|
|
7
|
+
export type BodiedRuleStyle = 'solid' | 'dashed' | 'dotted' | 'sketch' | 'fade';
|
|
8
|
+
export interface BodiedRuleAttributes {
|
|
9
|
+
alignment?: BodiedRuleAlignment;
|
|
10
|
+
color?: string;
|
|
11
|
+
localId: string;
|
|
12
|
+
style?: BodiedRuleStyle;
|
|
13
|
+
weight?: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @name bodiedRule_node
|
|
17
|
+
*/
|
|
18
|
+
export interface BodiedRuleDefinition {
|
|
19
|
+
attrs: BodiedRuleAttributes;
|
|
20
|
+
/**
|
|
21
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
22
|
+
* @minItems 1
|
|
23
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
24
|
+
* @maxItems 1
|
|
25
|
+
*/
|
|
26
|
+
content: Array<HeadingDefinition | ParagraphDefinition>;
|
|
27
|
+
type: 'bodiedRule';
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @name bodiedRule_root_only_node
|
|
31
|
+
*/
|
|
32
|
+
export type BodiedRuleRootOnlyDefinition = BodiedRuleDefinition & MarksObject<BreakoutMarkDefinition>;
|
|
33
|
+
export declare const bodiedRule: NodeSpec;
|
|
34
|
+
export declare const bodiedRuleRootOnlyStage0: NodeSpec;
|