@atlaskit/adf-schema 35.5.0 → 35.5.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 +12 -0
- package/dist/cjs/schema/nodes/multi-bodied-extension.js +2 -1
- package/dist/es2019/schema/nodes/multi-bodied-extension.js +2 -1
- package/dist/esm/schema/nodes/multi-bodied-extension.js +2 -1
- package/dist/json-schema/v1/stage-0.json +13 -0
- package/dist/types/schema/nodes/multi-bodied-extension.d.ts +2 -0
- package/json-schema/v1/stage-0.json +13 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# @atlaskit/adf-schema
|
2
2
|
|
3
|
+
## 35.5.2
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 63299c9: ED-22219: Added back marks to extensionFrame node and ADF
|
8
|
+
|
9
|
+
## 35.5.1
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- 621b110: ED-21910: Fixed support content order for extensionFrame
|
14
|
+
|
3
15
|
## 35.5.0
|
4
16
|
|
5
17
|
### Minor Changes
|
@@ -16,8 +16,9 @@ var _extensions = require("../../utils/extensions");
|
|
16
16
|
*/
|
17
17
|
var extensionFrame = {
|
18
18
|
type: 'extensionFrame',
|
19
|
-
content: '(
|
19
|
+
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | extension | bodiedExtension | unsupportedBlock | blockCard | embedCard)+',
|
20
20
|
isolating: true,
|
21
|
+
marks: 'dataConsumer fragment',
|
21
22
|
definingAsContext: false,
|
22
23
|
definingForContent: true,
|
23
24
|
selectable: false,
|
@@ -11,8 +11,9 @@ import { getExtensionAttrs } from '../../utils/extensions';
|
|
11
11
|
*/
|
12
12
|
export const extensionFrame = {
|
13
13
|
type: 'extensionFrame',
|
14
|
-
content: '(
|
14
|
+
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | extension | bodiedExtension | unsupportedBlock | blockCard | embedCard)+',
|
15
15
|
isolating: true,
|
16
|
+
marks: 'dataConsumer fragment',
|
16
17
|
definingAsContext: false,
|
17
18
|
definingForContent: true,
|
18
19
|
selectable: false,
|
@@ -11,8 +11,9 @@ import { getExtensionAttrs } from '../../utils/extensions';
|
|
11
11
|
*/
|
12
12
|
export var extensionFrame = {
|
13
13
|
type: 'extensionFrame',
|
14
|
-
content: '(
|
14
|
+
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | extension | bodiedExtension | unsupportedBlock | blockCard | embedCard)+',
|
15
15
|
isolating: true,
|
16
|
+
marks: 'dataConsumer fragment',
|
16
17
|
definingAsContext: false,
|
17
18
|
definingForContent: true,
|
18
19
|
selectable: false,
|
@@ -2899,6 +2899,19 @@
|
|
2899
2899
|
]
|
2900
2900
|
},
|
2901
2901
|
"minItems": 1
|
2902
|
+
},
|
2903
|
+
"marks": {
|
2904
|
+
"type": "array",
|
2905
|
+
"items": {
|
2906
|
+
"anyOf": [
|
2907
|
+
{
|
2908
|
+
"$ref": "#/definitions/dataConsumer_mark"
|
2909
|
+
},
|
2910
|
+
{
|
2911
|
+
"$ref": "#/definitions/fragment_mark"
|
2912
|
+
}
|
2913
|
+
]
|
2914
|
+
}
|
2902
2915
|
}
|
2903
2916
|
},
|
2904
2917
|
"required": [
|
@@ -17,6 +17,7 @@ import { TableDefinition as Table } from './tableNodes';
|
|
17
17
|
import { ExtensionDefinition as Extension } from './extension';
|
18
18
|
import { BlockCardDefinition as BlockCard } from './block-card';
|
19
19
|
import { EmbedCardDefinition as EmbedCard } from './embed-card';
|
20
|
+
import { DataConsumerDefinition, FragmentDefinition } from '../marks';
|
20
21
|
/**
|
21
22
|
* @stage 0
|
22
23
|
* @name extensionFrame_node
|
@@ -28,6 +29,7 @@ export interface ExtensionFrameDefinition {
|
|
28
29
|
* @minItems 1
|
29
30
|
*/
|
30
31
|
content: Array<BodiedExtension | Panel | Paragraph | Blockquote | OrderedList | BulletList | Rule | Heading | CodeBlock | MediaGroup | MediaSingle | DecisionList | TaskList | Table | Extension | BlockCard | EmbedCard>;
|
32
|
+
marks?: Array<DataConsumerDefinition | FragmentDefinition>;
|
31
33
|
}
|
32
34
|
/**
|
33
35
|
* @returns NodeSpec for ExtensionFrameDefinition
|
@@ -2899,6 +2899,19 @@
|
|
2899
2899
|
]
|
2900
2900
|
},
|
2901
2901
|
"minItems": 1
|
2902
|
+
},
|
2903
|
+
"marks": {
|
2904
|
+
"type": "array",
|
2905
|
+
"items": {
|
2906
|
+
"anyOf": [
|
2907
|
+
{
|
2908
|
+
"$ref": "#/definitions/dataConsumer_mark"
|
2909
|
+
},
|
2910
|
+
{
|
2911
|
+
"$ref": "#/definitions/fragment_mark"
|
2912
|
+
}
|
2913
|
+
]
|
2914
|
+
}
|
2902
2915
|
}
|
2903
2916
|
},
|
2904
2917
|
"required": [
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/adf-schema",
|
3
|
-
"version": "35.5.
|
3
|
+
"version": "35.5.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/"
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"memoize-one": "^6.0.0"
|
42
42
|
},
|
43
43
|
"devDependencies": {
|
44
|
-
"@atlassian/adf-schema-json": "^1.5.
|
44
|
+
"@atlassian/adf-schema-json": "^1.5.1",
|
45
45
|
"@babel/cli": "^7.22.9",
|
46
46
|
"@babel/core": "^7.22.9",
|
47
47
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|