@atlaskit/adf-schema 47.3.1 → 47.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/next-schema/generated/nodeTypes.js +11 -11
- package/dist/cjs/next-schema/groups/blockContentGroup.js +1 -1
- package/dist/cjs/next-schema/groups/blockGroup.js +1 -1
- package/dist/cjs/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/cjs/next-schema/nodes/expand.js +1 -1
- package/dist/cjs/next-schema/nodes/nestedExpand.js +7 -12
- package/dist/cjs/next-schema/nodes/panel.js +3 -17
- package/dist/cjs/schema/default-schema.js +1 -3
- package/dist/cjs/schema/index.js +4 -4
- package/dist/cjs/schema/nodes/index.js +4 -4
- package/dist/cjs/schema/nodes/nested-expand.js +27 -3
- package/dist/cjs/schema/nodes/panel.js +3 -3
- package/dist/cjs/validator-schema/generated/validatorSpec.js +8 -39
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/next-schema/generated/nodeTypes.js +10 -10
- package/dist/es2019/next-schema/groups/blockContentGroup.js +1 -1
- package/dist/es2019/next-schema/groups/blockGroup.js +1 -1
- package/dist/es2019/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/es2019/next-schema/nodes/expand.js +1 -1
- package/dist/es2019/next-schema/nodes/nestedExpand.js +7 -12
- package/dist/es2019/next-schema/nodes/panel.js +3 -17
- package/dist/es2019/schema/default-schema.js +2 -4
- package/dist/es2019/schema/index.js +1 -1
- package/dist/es2019/schema/nodes/index.js +2 -2
- package/dist/es2019/schema/nodes/nested-expand.js +27 -3
- package/dist/es2019/schema/nodes/panel.js +2 -2
- package/dist/es2019/validator-schema/generated/validatorSpec.js +7 -38
- package/dist/esm/index.js +1 -1
- package/dist/esm/next-schema/generated/nodeTypes.js +10 -10
- package/dist/esm/next-schema/groups/blockContentGroup.js +1 -1
- package/dist/esm/next-schema/groups/blockGroup.js +1 -1
- package/dist/esm/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/esm/next-schema/nodes/expand.js +1 -1
- package/dist/esm/next-schema/nodes/nestedExpand.js +7 -12
- package/dist/esm/next-schema/nodes/panel.js +3 -17
- package/dist/esm/schema/default-schema.js +2 -4
- package/dist/esm/schema/index.js +1 -1
- package/dist/esm/schema/nodes/index.js +2 -2
- package/dist/esm/schema/nodes/nested-expand.js +27 -3
- package/dist/esm/schema/nodes/panel.js +3 -3
- package/dist/esm/validator-schema/generated/validatorSpec.js +7 -38
- package/dist/json-schema/v1/full.json +6 -0
- package/dist/json-schema/v1/stage-0.json +3 -172
- package/dist/types/index.d.ts +1 -1
- package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +2 -2
- package/dist/types/next-schema/generated/nodeTypes.d.ts +16 -16
- package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +2 -2
- package/dist/types/next-schema/groups/tableCellContentPseudoGroup.d.ts +3 -3
- package/dist/types/next-schema/nodes/nestedExpand.d.ts +2 -2
- package/dist/types/next-schema/nodes/panel.d.ts +2 -2
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/nodes/index.d.ts +2 -2
- package/dist/types/schema/nodes/nested-expand.d.ts +2 -2
- package/dist/types/schema/nodes/panel.d.ts +1 -1
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +1 -32
- package/json-schema/v1/full.json +6 -0
- package/json-schema/v1/stage-0.json +3 -172
- package/package.json +2 -2
@@ -28,7 +28,7 @@ export { mention, toJSON as mentionToJSON } from './mention';
|
|
28
28
|
export type { MentionAttributes, UserType as MentionUserType, MentionDefinition, } from './mention';
|
29
29
|
export { listItem, listItemWithTask, listItemWithDecisionStage0, listItemWithNonBodiedMacrosStage0, } from './list-item';
|
30
30
|
export type { ListItemArray, ListItemDefinition } from './types/list';
|
31
|
-
export { extendedPanel,
|
31
|
+
export { extendedPanel, panelWithoutNestedNonBodiedMacros, PanelType, } from './panel';
|
32
32
|
export type { PanelAttributes, PanelDefinition } from './panel';
|
33
33
|
export { text } from './text';
|
34
34
|
export type { TextDefinition } from './text';
|
@@ -69,7 +69,7 @@ export { unsupportedBlock } from './unsupported-block';
|
|
69
69
|
export { unsupportedInline } from './unsupported-inline';
|
70
70
|
export { status } from './status';
|
71
71
|
export type { StatusDefinition } from './status';
|
72
|
-
export { nestedExpand,
|
72
|
+
export { nestedExpand, nestedExpandWithoutNonBodiedMacros, } from './nested-expand';
|
73
73
|
export type { NestedExpandDefinition } from './nested-expand';
|
74
74
|
export type { NoMark } from './types/mark';
|
75
75
|
export type { MarksObject } from './types/mark';
|
@@ -37,7 +37,7 @@ export type NestedExpandDefinition = NestedExpandBaseDefinition & NoMark;
|
|
37
37
|
*/
|
38
38
|
export declare const nestedExpand: import("prosemirror-model").NodeSpec;
|
39
39
|
/**
|
40
|
-
* @name
|
40
|
+
* @name nestedExpandWithNonBodiedMacros
|
41
41
|
* @description an expand that can be nested (eg. inside table, layout).
|
42
42
|
*/
|
43
|
-
export declare const
|
43
|
+
export declare const nestedExpandWithoutNonBodiedMacros: import("prosemirror-model").NodeSpec;
|
@@ -47,4 +47,4 @@ export interface DOMAttributes {
|
|
47
47
|
* addition to content allowed inside panel
|
48
48
|
*/
|
49
49
|
export declare const extendedPanel: (allowCustomPanel: boolean) => import("prosemirror-model").NodeSpec;
|
50
|
-
export declare const
|
50
|
+
export declare const panelWithoutNestedNonBodiedMacros: (allowCustomPanel: boolean) => import("prosemirror-model").NodeSpec;
|
@@ -1268,12 +1268,7 @@ export declare const nestedExpand: {
|
|
1268
1268
|
};
|
1269
1269
|
};
|
1270
1270
|
};
|
1271
|
-
content:
|
1272
|
-
type: string;
|
1273
|
-
items: string[][];
|
1274
|
-
minItems: number;
|
1275
|
-
allowUnsupportedBlock: boolean;
|
1276
|
-
};
|
1271
|
+
content: string;
|
1277
1272
|
};
|
1278
1273
|
required: string[];
|
1279
1274
|
};
|
@@ -1293,22 +1288,6 @@ export declare const nestedExpand_with_no_marks: (string | {
|
|
1293
1288
|
};
|
1294
1289
|
};
|
1295
1290
|
})[];
|
1296
|
-
export declare const nestedExpand_with_non_bodied_macros: (string | {
|
1297
|
-
props: {
|
1298
|
-
content: {
|
1299
|
-
type: string;
|
1300
|
-
items: string[][];
|
1301
|
-
minItems: number;
|
1302
|
-
allowUnsupportedBlock: boolean;
|
1303
|
-
};
|
1304
|
-
marks: {
|
1305
|
-
type: string;
|
1306
|
-
maxItems: number;
|
1307
|
-
items: any[];
|
1308
|
-
optional: boolean;
|
1309
|
-
};
|
1310
|
-
};
|
1311
|
-
})[];
|
1312
1291
|
export declare const non_nestable_block_content: string[];
|
1313
1292
|
export declare const orderedList: {
|
1314
1293
|
props: {
|
@@ -1371,16 +1350,6 @@ export declare const panel: {
|
|
1371
1350
|
};
|
1372
1351
|
};
|
1373
1352
|
};
|
1374
|
-
export declare const panel_with_nested_non_bodied_macros: (string | {
|
1375
|
-
props: {
|
1376
|
-
content: {
|
1377
|
-
type: string;
|
1378
|
-
items: string[][];
|
1379
|
-
minItems: number;
|
1380
|
-
allowUnsupportedBlock: boolean;
|
1381
|
-
};
|
1382
|
-
};
|
1383
|
-
})[];
|
1384
1353
|
export declare const paragraph: {
|
1385
1354
|
props: {
|
1386
1355
|
type: {
|
package/json-schema/v1/full.json
CHANGED
@@ -1819,6 +1819,9 @@
|
|
1819
1819
|
},
|
1820
1820
|
{
|
1821
1821
|
"$ref": "#/definitions/blockquote_node"
|
1822
|
+
},
|
1823
|
+
{
|
1824
|
+
"$ref": "#/definitions/extension_with_marks_node"
|
1822
1825
|
}
|
1823
1826
|
]
|
1824
1827
|
},
|
@@ -2020,6 +2023,9 @@
|
|
2020
2023
|
},
|
2021
2024
|
{
|
2022
2025
|
"$ref": "#/definitions/decisionList_node"
|
2026
|
+
},
|
2027
|
+
{
|
2028
|
+
"$ref": "#/definitions/extension_with_marks_node"
|
2023
2029
|
}
|
2024
2030
|
]
|
2025
2031
|
},
|
@@ -120,9 +120,6 @@
|
|
120
120
|
{
|
121
121
|
"$ref": "#/definitions/panel_node"
|
122
122
|
},
|
123
|
-
{
|
124
|
-
"$ref": "#/definitions/panel_with_nested_non_bodied_macros_node"
|
125
|
-
},
|
126
123
|
{
|
127
124
|
"$ref": "#/definitions/blockquote_node"
|
128
125
|
},
|
@@ -741,9 +738,6 @@
|
|
741
738
|
{
|
742
739
|
"$ref": "#/definitions/panel_node"
|
743
740
|
},
|
744
|
-
{
|
745
|
-
"$ref": "#/definitions/panel_with_nested_non_bodied_macros_node"
|
746
|
-
},
|
747
741
|
{
|
748
742
|
"$ref": "#/definitions/table_node"
|
749
743
|
},
|
@@ -890,9 +884,6 @@
|
|
890
884
|
},
|
891
885
|
{
|
892
886
|
"$ref": "#/definitions/nestedExpand_with_no_marks_node"
|
893
|
-
},
|
894
|
-
{
|
895
|
-
"$ref": "#/definitions/nestedExpand_with_non_bodied_macros_node"
|
896
887
|
}
|
897
888
|
]
|
898
889
|
},
|
@@ -932,9 +923,6 @@
|
|
932
923
|
},
|
933
924
|
{
|
934
925
|
"$ref": "#/definitions/nestedExpand_with_no_marks_node"
|
935
|
-
},
|
936
|
-
{
|
937
|
-
"$ref": "#/definitions/nestedExpand_with_non_bodied_macros_node"
|
938
926
|
}
|
939
927
|
]
|
940
928
|
},
|
@@ -2166,6 +2154,9 @@
|
|
2166
2154
|
},
|
2167
2155
|
{
|
2168
2156
|
"$ref": "#/definitions/blockquote_node"
|
2157
|
+
},
|
2158
|
+
{
|
2159
|
+
"$ref": "#/definitions/extension_with_marks_node"
|
2169
2160
|
}
|
2170
2161
|
]
|
2171
2162
|
},
|
@@ -2210,79 +2201,6 @@
|
|
2210
2201
|
}
|
2211
2202
|
]
|
2212
2203
|
},
|
2213
|
-
"nestedExpand_with_non_bodied_macros_node": {
|
2214
|
-
"type": "object",
|
2215
|
-
"properties": {
|
2216
|
-
"type": {
|
2217
|
-
"enum": ["nestedExpand"]
|
2218
|
-
},
|
2219
|
-
"marks": {
|
2220
|
-
"type": "array",
|
2221
|
-
"maxItems": 0
|
2222
|
-
},
|
2223
|
-
"attrs": {
|
2224
|
-
"type": "object",
|
2225
|
-
"properties": {
|
2226
|
-
"title": {
|
2227
|
-
"type": "string"
|
2228
|
-
}
|
2229
|
-
},
|
2230
|
-
"additionalProperties": false
|
2231
|
-
},
|
2232
|
-
"content": {
|
2233
|
-
"type": "array",
|
2234
|
-
"items": {
|
2235
|
-
"anyOf": [
|
2236
|
-
{
|
2237
|
-
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
2238
|
-
},
|
2239
|
-
{
|
2240
|
-
"$ref": "#/definitions/heading_with_no_marks_node"
|
2241
|
-
},
|
2242
|
-
{
|
2243
|
-
"$ref": "#/definitions/mediaSingle_caption_node"
|
2244
|
-
},
|
2245
|
-
{
|
2246
|
-
"$ref": "#/definitions/mediaSingle_full_node"
|
2247
|
-
},
|
2248
|
-
{
|
2249
|
-
"$ref": "#/definitions/mediaGroup_node"
|
2250
|
-
},
|
2251
|
-
{
|
2252
|
-
"$ref": "#/definitions/codeBlock_node"
|
2253
|
-
},
|
2254
|
-
{
|
2255
|
-
"$ref": "#/definitions/bulletList_node"
|
2256
|
-
},
|
2257
|
-
{
|
2258
|
-
"$ref": "#/definitions/orderedList_node"
|
2259
|
-
},
|
2260
|
-
{
|
2261
|
-
"$ref": "#/definitions/taskList_node"
|
2262
|
-
},
|
2263
|
-
{
|
2264
|
-
"$ref": "#/definitions/decisionList_node"
|
2265
|
-
},
|
2266
|
-
{
|
2267
|
-
"$ref": "#/definitions/rule_node"
|
2268
|
-
},
|
2269
|
-
{
|
2270
|
-
"$ref": "#/definitions/panel_node"
|
2271
|
-
},
|
2272
|
-
{
|
2273
|
-
"$ref": "#/definitions/blockquote_node"
|
2274
|
-
},
|
2275
|
-
{
|
2276
|
-
"$ref": "#/definitions/extension_with_marks_node"
|
2277
|
-
}
|
2278
|
-
]
|
2279
|
-
},
|
2280
|
-
"minItems": 1
|
2281
|
-
}
|
2282
|
-
},
|
2283
|
-
"additionalProperties": false,
|
2284
|
-
"required": ["type", "content"]
|
2285
|
-
},
|
2286
2204
|
"non_nestable_block_content": {
|
2287
2205
|
"anyOf": [
|
2288
2206
|
{
|
@@ -2376,90 +2294,6 @@
|
|
2376
2294
|
"required": ["type", "content"]
|
2377
2295
|
},
|
2378
2296
|
"panel_node": {
|
2379
|
-
"type": "object",
|
2380
|
-
"properties": {
|
2381
|
-
"type": {
|
2382
|
-
"enum": ["panel"]
|
2383
|
-
},
|
2384
|
-
"attrs": {
|
2385
|
-
"type": "object",
|
2386
|
-
"properties": {
|
2387
|
-
"panelType": {
|
2388
|
-
"enum": [
|
2389
|
-
"info",
|
2390
|
-
"note",
|
2391
|
-
"tip",
|
2392
|
-
"warning",
|
2393
|
-
"error",
|
2394
|
-
"success",
|
2395
|
-
"custom"
|
2396
|
-
]
|
2397
|
-
},
|
2398
|
-
"panelIcon": {
|
2399
|
-
"type": "string"
|
2400
|
-
},
|
2401
|
-
"panelIconId": {
|
2402
|
-
"type": "string"
|
2403
|
-
},
|
2404
|
-
"panelIconText": {
|
2405
|
-
"type": "string"
|
2406
|
-
},
|
2407
|
-
"panelColor": {
|
2408
|
-
"type": "string"
|
2409
|
-
}
|
2410
|
-
},
|
2411
|
-
"required": ["panelType"],
|
2412
|
-
"additionalProperties": false
|
2413
|
-
},
|
2414
|
-
"content": {
|
2415
|
-
"type": "array",
|
2416
|
-
"items": {
|
2417
|
-
"anyOf": [
|
2418
|
-
{
|
2419
|
-
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
2420
|
-
},
|
2421
|
-
{
|
2422
|
-
"$ref": "#/definitions/heading_with_no_marks_node"
|
2423
|
-
},
|
2424
|
-
{
|
2425
|
-
"$ref": "#/definitions/bulletList_node"
|
2426
|
-
},
|
2427
|
-
{
|
2428
|
-
"$ref": "#/definitions/orderedList_node"
|
2429
|
-
},
|
2430
|
-
{
|
2431
|
-
"$ref": "#/definitions/blockCard_node"
|
2432
|
-
},
|
2433
|
-
{
|
2434
|
-
"$ref": "#/definitions/mediaGroup_node"
|
2435
|
-
},
|
2436
|
-
{
|
2437
|
-
"$ref": "#/definitions/mediaSingle_caption_node"
|
2438
|
-
},
|
2439
|
-
{
|
2440
|
-
"$ref": "#/definitions/mediaSingle_full_node"
|
2441
|
-
},
|
2442
|
-
{
|
2443
|
-
"$ref": "#/definitions/codeBlock_node"
|
2444
|
-
},
|
2445
|
-
{
|
2446
|
-
"$ref": "#/definitions/taskList_node"
|
2447
|
-
},
|
2448
|
-
{
|
2449
|
-
"$ref": "#/definitions/rule_node"
|
2450
|
-
},
|
2451
|
-
{
|
2452
|
-
"$ref": "#/definitions/decisionList_node"
|
2453
|
-
}
|
2454
|
-
]
|
2455
|
-
},
|
2456
|
-
"minItems": 1
|
2457
|
-
}
|
2458
|
-
},
|
2459
|
-
"additionalProperties": false,
|
2460
|
-
"required": ["type", "attrs", "content"]
|
2461
|
-
},
|
2462
|
-
"panel_with_nested_non_bodied_macros_node": {
|
2463
2297
|
"type": "object",
|
2464
2298
|
"properties": {
|
2465
2299
|
"type": {
|
@@ -2798,9 +2632,6 @@
|
|
2798
2632
|
},
|
2799
2633
|
{
|
2800
2634
|
"$ref": "#/definitions/nestedExpand_with_no_marks_node"
|
2801
|
-
},
|
2802
|
-
{
|
2803
|
-
"$ref": "#/definitions/nestedExpand_with_non_bodied_macros_node"
|
2804
2635
|
}
|
2805
2636
|
]
|
2806
2637
|
},
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/adf-schema",
|
3
|
-
"version": "47.
|
3
|
+
"version": "47.5.0",
|
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/"
|
@@ -45,7 +45,7 @@
|
|
45
45
|
"memoize-one": "^6.0.0"
|
46
46
|
},
|
47
47
|
"devDependencies": {
|
48
|
-
"@atlassian/adf-schema-json": "^1.
|
48
|
+
"@atlassian/adf-schema-json": "^1.30.0",
|
49
49
|
"@atlaskit/adf-schema-generator": "^2.1.0",
|
50
50
|
"@atlaskit/codemod-utils": "^4.2.4",
|
51
51
|
"@babel/cli": "^7.22.9",
|