@atlaskit/adf-schema 35.5.1 → 35.6.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/schema/nodes/multi-bodied-extension.js +1 -0
- package/dist/es2019/schema/nodes/multi-bodied-extension.js +1 -0
- package/dist/esm/schema/nodes/multi-bodied-extension.js +1 -0
- package/dist/json-schema/v1/stage-0.json +19 -0
- package/dist/types/schema/nodes/inline-card.d.ts +5 -0
- package/dist/types/schema/nodes/multi-bodied-extension.d.ts +2 -0
- package/json-schema/v1/stage-0.json +19 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# @atlaskit/adf-schema
|
2
2
|
|
3
|
+
## 35.6.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- cbc7286: ED-22379 Add annotation mark to inline card
|
8
|
+
|
9
|
+
## 35.5.2
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- 63299c9: ED-22219: Added back marks to extensionFrame node and ADF
|
14
|
+
|
3
15
|
## 35.5.1
|
4
16
|
|
5
17
|
### Patch Changes
|
@@ -18,6 +18,7 @@ var extensionFrame = {
|
|
18
18
|
type: 'extensionFrame',
|
19
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,
|
@@ -13,6 +13,7 @@ export const extensionFrame = {
|
|
13
13
|
type: 'extensionFrame',
|
14
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,
|
@@ -13,6 +13,7 @@ export var extensionFrame = {
|
|
13
13
|
type: 'extensionFrame',
|
14
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,
|
@@ -847,6 +847,12 @@
|
|
847
847
|
"additionalProperties": false
|
848
848
|
}
|
849
849
|
]
|
850
|
+
},
|
851
|
+
"marks": {
|
852
|
+
"type": "array",
|
853
|
+
"items": {
|
854
|
+
"$ref": "#/definitions/annotation_mark"
|
855
|
+
}
|
850
856
|
}
|
851
857
|
},
|
852
858
|
"required": [
|
@@ -2899,6 +2905,19 @@
|
|
2899
2905
|
]
|
2900
2906
|
},
|
2901
2907
|
"minItems": 1
|
2908
|
+
},
|
2909
|
+
"marks": {
|
2910
|
+
"type": "array",
|
2911
|
+
"items": {
|
2912
|
+
"anyOf": [
|
2913
|
+
{
|
2914
|
+
"$ref": "#/definitions/dataConsumer_mark"
|
2915
|
+
},
|
2916
|
+
{
|
2917
|
+
"$ref": "#/definitions/fragment_mark"
|
2918
|
+
}
|
2919
|
+
]
|
2920
|
+
}
|
2902
2921
|
}
|
2903
2922
|
},
|
2904
2923
|
"required": [
|
@@ -1,10 +1,15 @@
|
|
1
1
|
import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
2
2
|
import { CardAttributes } from './block-card';
|
3
|
+
import { AnnotationMarkDefinition } from '../marks/annotation';
|
3
4
|
/**
|
4
5
|
* @name inlineCard_node
|
5
6
|
*/
|
6
7
|
export interface InlineCardDefinition {
|
7
8
|
type: 'inlineCard';
|
8
9
|
attrs: CardAttributes;
|
10
|
+
/**
|
11
|
+
* @stage 0
|
12
|
+
*/
|
13
|
+
marks?: Array<AnnotationMarkDefinition>;
|
9
14
|
}
|
10
15
|
export declare const inlineCard: NodeSpec;
|
@@ -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
|
@@ -847,6 +847,12 @@
|
|
847
847
|
"additionalProperties": false
|
848
848
|
}
|
849
849
|
]
|
850
|
+
},
|
851
|
+
"marks": {
|
852
|
+
"type": "array",
|
853
|
+
"items": {
|
854
|
+
"$ref": "#/definitions/annotation_mark"
|
855
|
+
}
|
850
856
|
}
|
851
857
|
},
|
852
858
|
"required": [
|
@@ -2899,6 +2905,19 @@
|
|
2899
2905
|
]
|
2900
2906
|
},
|
2901
2907
|
"minItems": 1
|
2908
|
+
},
|
2909
|
+
"marks": {
|
2910
|
+
"type": "array",
|
2911
|
+
"items": {
|
2912
|
+
"anyOf": [
|
2913
|
+
{
|
2914
|
+
"$ref": "#/definitions/dataConsumer_mark"
|
2915
|
+
},
|
2916
|
+
{
|
2917
|
+
"$ref": "#/definitions/fragment_mark"
|
2918
|
+
}
|
2919
|
+
]
|
2920
|
+
}
|
2902
2921
|
}
|
2903
2922
|
},
|
2904
2923
|
"required": [
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/adf-schema",
|
3
|
-
"version": "35.
|
3
|
+
"version": "35.6.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/"
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"memoize-one": "^6.0.0"
|
42
42
|
},
|
43
43
|
"devDependencies": {
|
44
|
-
"@atlassian/adf-schema-json": "^1.
|
44
|
+
"@atlassian/adf-schema-json": "^1.6.0",
|
45
45
|
"@babel/cli": "^7.22.9",
|
46
46
|
"@babel/core": "^7.22.9",
|
47
47
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|