@atlaskit/adf-schema 34.0.1 → 35.0.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 +6 -0
- package/dist/cjs/schema/nodes/paragraph.js +1 -1
- package/dist/es2019/schema/nodes/paragraph.js +1 -1
- package/dist/esm/schema/nodes/paragraph.js +1 -1
- package/dist/json-schema/v1/full.json +10 -2
- package/dist/json-schema/v1/stage-0.json +10 -2
- package/dist/types/schema/nodes/media-inline.d.ts +3 -2
- package/dist/types/schema/nodes/media.d.ts +3 -0
- package/json-schema/v1/full.json +10 -2
- package/json-schema/v1/stage-0.json +10 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -31,7 +31,7 @@ var paragraph = {
|
|
31
31
|
selectable: false,
|
32
32
|
content: 'inline*',
|
33
33
|
group: 'block',
|
34
|
-
marks: 'strong code em link strike subsup textColor typeAheadQuery underline confluenceInlineComment action annotation unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
34
|
+
marks: 'strong code em link border strike subsup textColor typeAheadQuery underline confluenceInlineComment action annotation unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
35
35
|
parseDOM: [{
|
36
36
|
tag: 'p'
|
37
37
|
}],
|
@@ -25,7 +25,7 @@ export const paragraph = {
|
|
25
25
|
selectable: false,
|
26
26
|
content: 'inline*',
|
27
27
|
group: 'block',
|
28
|
-
marks: 'strong code em link strike subsup textColor typeAheadQuery underline confluenceInlineComment action annotation unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
28
|
+
marks: 'strong code em link border strike subsup textColor typeAheadQuery underline confluenceInlineComment action annotation unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
29
29
|
parseDOM: [{
|
30
30
|
tag: 'p'
|
31
31
|
}],
|
@@ -25,7 +25,7 @@ export var paragraph = {
|
|
25
25
|
selectable: false,
|
26
26
|
content: 'inline*',
|
27
27
|
group: 'block',
|
28
|
-
marks: 'strong code em link strike subsup textColor typeAheadQuery underline confluenceInlineComment action annotation unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
28
|
+
marks: 'strong code em link border strike subsup textColor typeAheadQuery underline confluenceInlineComment action annotation unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
29
29
|
parseDOM: [{
|
30
30
|
tag: 'p'
|
31
31
|
}],
|
@@ -1011,7 +1011,8 @@
|
|
1011
1011
|
"type": {
|
1012
1012
|
"enum": [
|
1013
1013
|
"link",
|
1014
|
-
"file"
|
1014
|
+
"file",
|
1015
|
+
"image"
|
1015
1016
|
]
|
1016
1017
|
},
|
1017
1018
|
"id": {
|
@@ -1044,7 +1045,14 @@
|
|
1044
1045
|
"marks": {
|
1045
1046
|
"type": "array",
|
1046
1047
|
"items": {
|
1047
|
-
"
|
1048
|
+
"anyOf": [
|
1049
|
+
{
|
1050
|
+
"$ref": "#/definitions/link_mark"
|
1051
|
+
},
|
1052
|
+
{
|
1053
|
+
"$ref": "#/definitions/border_mark"
|
1054
|
+
}
|
1055
|
+
]
|
1048
1056
|
}
|
1049
1057
|
}
|
1050
1058
|
},
|
@@ -1011,7 +1011,8 @@
|
|
1011
1011
|
"type": {
|
1012
1012
|
"enum": [
|
1013
1013
|
"link",
|
1014
|
-
"file"
|
1014
|
+
"file",
|
1015
|
+
"image"
|
1015
1016
|
]
|
1016
1017
|
},
|
1017
1018
|
"id": {
|
@@ -1044,7 +1045,14 @@
|
|
1044
1045
|
"marks": {
|
1045
1046
|
"type": "array",
|
1046
1047
|
"items": {
|
1047
|
-
"
|
1048
|
+
"anyOf": [
|
1049
|
+
{
|
1050
|
+
"$ref": "#/definitions/link_mark"
|
1051
|
+
},
|
1052
|
+
{
|
1053
|
+
"$ref": "#/definitions/border_mark"
|
1054
|
+
}
|
1055
|
+
]
|
1048
1056
|
}
|
1049
1057
|
}
|
1050
1058
|
},
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
2
2
|
import { LinkDefinition } from '../marks/link';
|
3
3
|
import { MediaBaseAttributes } from './media';
|
4
|
+
import { BorderMarkDefinition } from '../marks/border';
|
4
5
|
export interface MediaInlineAttributes extends MediaBaseAttributes {
|
5
6
|
data?: object;
|
6
|
-
type?: 'file' | 'link';
|
7
|
+
type?: 'file' | 'link' | 'image';
|
7
8
|
}
|
8
9
|
/**
|
9
10
|
* @name mediaInline_node
|
@@ -11,6 +12,6 @@ export interface MediaInlineAttributes extends MediaBaseAttributes {
|
|
11
12
|
export interface MediaInlineDefinition {
|
12
13
|
type: 'mediaInline';
|
13
14
|
attrs: MediaInlineAttributes;
|
14
|
-
marks?: Array<LinkDefinition>;
|
15
|
+
marks?: Array<LinkDefinition | BorderMarkDefinition>;
|
15
16
|
}
|
16
17
|
export declare const mediaInline: NodeSpec;
|
@@ -53,6 +53,9 @@ export interface ExternalMediaAttributes {
|
|
53
53
|
}
|
54
54
|
export type MediaADFAttrs = MediaAttributes | ExternalMediaAttributes;
|
55
55
|
export declare const defaultAttrs: DefaultAttributes<MediaADFAttrs>;
|
56
|
+
export interface MutableMediaAttributes extends MediaAttributes {
|
57
|
+
[key: string]: string | number | undefined | null | boolean;
|
58
|
+
}
|
56
59
|
export declare const createMediaSpec: (attributes: Partial<NodeSpec['attrs']>, inline?: boolean) => NodeSpec;
|
57
60
|
export declare const media: NodeSpec;
|
58
61
|
export declare const camelCaseToKebabCase: (str: string) => string;
|
package/json-schema/v1/full.json
CHANGED
@@ -1011,7 +1011,8 @@
|
|
1011
1011
|
"type": {
|
1012
1012
|
"enum": [
|
1013
1013
|
"link",
|
1014
|
-
"file"
|
1014
|
+
"file",
|
1015
|
+
"image"
|
1015
1016
|
]
|
1016
1017
|
},
|
1017
1018
|
"id": {
|
@@ -1044,7 +1045,14 @@
|
|
1044
1045
|
"marks": {
|
1045
1046
|
"type": "array",
|
1046
1047
|
"items": {
|
1047
|
-
"
|
1048
|
+
"anyOf": [
|
1049
|
+
{
|
1050
|
+
"$ref": "#/definitions/link_mark"
|
1051
|
+
},
|
1052
|
+
{
|
1053
|
+
"$ref": "#/definitions/border_mark"
|
1054
|
+
}
|
1055
|
+
]
|
1048
1056
|
}
|
1049
1057
|
}
|
1050
1058
|
},
|
@@ -1011,7 +1011,8 @@
|
|
1011
1011
|
"type": {
|
1012
1012
|
"enum": [
|
1013
1013
|
"link",
|
1014
|
-
"file"
|
1014
|
+
"file",
|
1015
|
+
"image"
|
1015
1016
|
]
|
1016
1017
|
},
|
1017
1018
|
"id": {
|
@@ -1044,7 +1045,14 @@
|
|
1044
1045
|
"marks": {
|
1045
1046
|
"type": "array",
|
1046
1047
|
"items": {
|
1047
|
-
"
|
1048
|
+
"anyOf": [
|
1049
|
+
{
|
1050
|
+
"$ref": "#/definitions/link_mark"
|
1051
|
+
},
|
1052
|
+
{
|
1053
|
+
"$ref": "#/definitions/border_mark"
|
1054
|
+
}
|
1055
|
+
]
|
1048
1056
|
}
|
1049
1057
|
}
|
1050
1058
|
},
|
package/package.json
CHANGED