@atlaskit/adf-schema 52.2.6 → 52.3.1
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 +17 -0
- package/dist/cjs/next-schema/generated/nodeTypes.js +4 -4
- package/dist/cjs/next-schema/nodes/media.js +2 -1
- package/dist/cjs/next-schema/nodes/mediaInline.js +2 -1
- package/dist/cjs/validator-schema/generated/validatorSpec.js +2 -2
- package/dist/es2019/next-schema/generated/nodeTypes.js +4 -4
- package/dist/es2019/next-schema/nodes/media.js +2 -1
- package/dist/es2019/next-schema/nodes/mediaInline.js +2 -1
- package/dist/es2019/validator-schema/generated/validatorSpec.js +2 -2
- package/dist/esm/next-schema/generated/nodeTypes.js +4 -4
- package/dist/esm/next-schema/nodes/media.js +2 -1
- package/dist/esm/next-schema/nodes/mediaInline.js +2 -1
- package/dist/esm/validator-schema/generated/validatorSpec.js +2 -2
- package/dist/json-schema/v1/full.json +6 -0
- package/dist/json-schema/v1/stage-0.json +6 -0
- package/dist/types/next-schema/generated/nodeTypes.d.ts +2 -2
- package/dist/types-ts4.5/next-schema/generated/nodeTypes.d.ts +2 -2
- package/json-schema/v1/full.json +6 -0
- package/json-schema/v1/stage-0.json +6 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/adf-schema
|
|
2
2
|
|
|
3
|
+
## 52.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 52.3.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`b9eb3030562a9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b9eb3030562a9) -
|
|
14
|
+
Add 'dataConsumer' mark to media and mediaInline. This change is made directly to the full schema.
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 52.2.6
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -737,7 +737,7 @@ var media = exports.media = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
|
|
737
737
|
});
|
|
738
738
|
var mediaGroup = exports.mediaGroup = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
|
739
739
|
content: '(media | unsupportedBlock)+',
|
|
740
|
-
marks: 'link annotation border unsupportedMark unsupportedNodeAttribute',
|
|
740
|
+
marks: 'dataConsumer link annotation border unsupportedMark unsupportedNodeAttribute',
|
|
741
741
|
group: 'block',
|
|
742
742
|
attrs: {},
|
|
743
743
|
selectable: false
|
|
@@ -814,7 +814,7 @@ var mediaSingle = exports.mediaSingle = (0, _createPMSpecFactory.createPMNodeSpe
|
|
|
814
814
|
});
|
|
815
815
|
var mediaSingleCaption = exports.mediaSingleCaption = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
|
816
816
|
content: 'media|unsupportedBlock+|media (caption|unsupportedBlock) unsupportedBlock*',
|
|
817
|
-
marks: 'link annotation border unsupportedMark unsupportedNodeAttribute',
|
|
817
|
+
marks: 'dataConsumer link annotation border unsupportedMark unsupportedNodeAttribute',
|
|
818
818
|
group: 'block',
|
|
819
819
|
atom: false,
|
|
820
820
|
attrs: {
|
|
@@ -829,7 +829,7 @@ var mediaSingleCaption = exports.mediaSingleCaption = (0, _createPMSpecFactory.c
|
|
|
829
829
|
});
|
|
830
830
|
var mediaSingleFull = exports.mediaSingleFull = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
|
831
831
|
content: 'media|unsupportedBlock+|media (caption|unsupportedBlock) unsupportedBlock*',
|
|
832
|
-
marks: 'link annotation border unsupportedMark unsupportedNodeAttribute',
|
|
832
|
+
marks: 'dataConsumer link annotation border unsupportedMark unsupportedNodeAttribute',
|
|
833
833
|
group: 'block',
|
|
834
834
|
atom: false,
|
|
835
835
|
attrs: {
|
|
@@ -850,7 +850,7 @@ var mediaSingleFull = exports.mediaSingleFull = (0, _createPMSpecFactory.createP
|
|
|
850
850
|
});
|
|
851
851
|
var mediaSingleWidthType = exports.mediaSingleWidthType = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
|
852
852
|
content: 'media|unsupportedBlock+|media unsupportedBlock+',
|
|
853
|
-
marks: 'link annotation border unsupportedMark unsupportedNodeAttribute',
|
|
853
|
+
marks: 'dataConsumer link annotation border unsupportedMark unsupportedNodeAttribute',
|
|
854
854
|
group: 'block',
|
|
855
855
|
atom: true,
|
|
856
856
|
attrs: {
|
|
@@ -7,12 +7,13 @@ exports.media = void 0;
|
|
|
7
7
|
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
|
8
8
|
var _annotation = require("../marks/annotation");
|
|
9
9
|
var _border = require("../marks/border");
|
|
10
|
+
var _dataConsumer = require("../marks/dataConsumer");
|
|
10
11
|
var _link = require("../marks/link");
|
|
11
12
|
var _unsupportedMark = require("../marks/unsupportedMark");
|
|
12
13
|
var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
|
|
13
14
|
var media = exports.media = (0, _adfSchemaGenerator.adfNode)('media').define({
|
|
14
15
|
selectable: true,
|
|
15
|
-
marks: [_link.link, _annotation.annotation, _border.border, _unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
|
16
|
+
marks: [_dataConsumer.dataConsumer, _link.link, _annotation.annotation, _border.border, _unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
|
16
17
|
attrs: {
|
|
17
18
|
anyOf: [{
|
|
18
19
|
type: {
|
|
@@ -7,6 +7,7 @@ exports.mediaInline = void 0;
|
|
|
7
7
|
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
|
8
8
|
var _annotation = require("../marks/annotation");
|
|
9
9
|
var _border = require("../marks/border");
|
|
10
|
+
var _dataConsumer = require("../marks/dataConsumer");
|
|
10
11
|
var _link = require("../marks/link");
|
|
11
12
|
var _unsupportedMark = require("../marks/unsupportedMark");
|
|
12
13
|
var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
|
|
@@ -14,7 +15,7 @@ var mediaInline = exports.mediaInline = (0, _adfSchemaGenerator.adfNode)('mediaI
|
|
|
14
15
|
selectable: true,
|
|
15
16
|
// atom: false,
|
|
16
17
|
inline: true,
|
|
17
|
-
marks: [_link.link, _annotation.annotation, _border.border, _unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
|
18
|
+
marks: [_dataConsumer.dataConsumer, _link.link, _annotation.annotation, _border.border, _unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
|
18
19
|
attrs: {
|
|
19
20
|
type: {
|
|
20
21
|
type: 'enum',
|
|
@@ -1166,7 +1166,7 @@ var media = exports.media = {
|
|
|
1166
1166
|
marks: {
|
|
1167
1167
|
type: 'array',
|
|
1168
1168
|
optional: true,
|
|
1169
|
-
items: [['link', 'annotation', 'border']]
|
|
1169
|
+
items: [['dataConsumer', 'link', 'annotation', 'border']]
|
|
1170
1170
|
}
|
|
1171
1171
|
},
|
|
1172
1172
|
required: ['attrs']
|
|
@@ -1239,7 +1239,7 @@ var mediaInline = exports.mediaInline = {
|
|
|
1239
1239
|
marks: {
|
|
1240
1240
|
type: 'array',
|
|
1241
1241
|
optional: true,
|
|
1242
|
-
items: [['link', 'annotation', 'border']]
|
|
1242
|
+
items: [['dataConsumer', 'link', 'annotation', 'border']]
|
|
1243
1243
|
}
|
|
1244
1244
|
}
|
|
1245
1245
|
};
|
|
@@ -731,7 +731,7 @@ export const media = createPMNodeSpecFactory({
|
|
|
731
731
|
});
|
|
732
732
|
export const mediaGroup = createPMNodeSpecFactory({
|
|
733
733
|
content: '(media | unsupportedBlock)+',
|
|
734
|
-
marks: 'link annotation border unsupportedMark unsupportedNodeAttribute',
|
|
734
|
+
marks: 'dataConsumer link annotation border unsupportedMark unsupportedNodeAttribute',
|
|
735
735
|
group: 'block',
|
|
736
736
|
attrs: {},
|
|
737
737
|
selectable: false
|
|
@@ -808,7 +808,7 @@ export const mediaSingle = createPMNodeSpecFactory({
|
|
|
808
808
|
});
|
|
809
809
|
export const mediaSingleCaption = createPMNodeSpecFactory({
|
|
810
810
|
content: 'media|unsupportedBlock+|media (caption|unsupportedBlock) unsupportedBlock*',
|
|
811
|
-
marks: 'link annotation border unsupportedMark unsupportedNodeAttribute',
|
|
811
|
+
marks: 'dataConsumer link annotation border unsupportedMark unsupportedNodeAttribute',
|
|
812
812
|
group: 'block',
|
|
813
813
|
atom: false,
|
|
814
814
|
attrs: {
|
|
@@ -823,7 +823,7 @@ export const mediaSingleCaption = createPMNodeSpecFactory({
|
|
|
823
823
|
});
|
|
824
824
|
export const mediaSingleFull = createPMNodeSpecFactory({
|
|
825
825
|
content: 'media|unsupportedBlock+|media (caption|unsupportedBlock) unsupportedBlock*',
|
|
826
|
-
marks: 'link annotation border unsupportedMark unsupportedNodeAttribute',
|
|
826
|
+
marks: 'dataConsumer link annotation border unsupportedMark unsupportedNodeAttribute',
|
|
827
827
|
group: 'block',
|
|
828
828
|
atom: false,
|
|
829
829
|
attrs: {
|
|
@@ -844,7 +844,7 @@ export const mediaSingleFull = createPMNodeSpecFactory({
|
|
|
844
844
|
});
|
|
845
845
|
export const mediaSingleWidthType = createPMNodeSpecFactory({
|
|
846
846
|
content: 'media|unsupportedBlock+|media unsupportedBlock+',
|
|
847
|
-
marks: 'link annotation border unsupportedMark unsupportedNodeAttribute',
|
|
847
|
+
marks: 'dataConsumer link annotation border unsupportedMark unsupportedNodeAttribute',
|
|
848
848
|
group: 'block',
|
|
849
849
|
atom: true,
|
|
850
850
|
attrs: {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { adfNode } from '@atlaskit/adf-schema-generator';
|
|
2
2
|
import { annotation } from '../marks/annotation';
|
|
3
3
|
import { border } from '../marks/border';
|
|
4
|
+
import { dataConsumer } from '../marks/dataConsumer';
|
|
4
5
|
import { link } from '../marks/link';
|
|
5
6
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
|
6
7
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
7
8
|
export const media = adfNode('media').define({
|
|
8
9
|
selectable: true,
|
|
9
|
-
marks: [link, annotation, border, unsupportedMark, unsupportedNodeAttribute],
|
|
10
|
+
marks: [dataConsumer, link, annotation, border, unsupportedMark, unsupportedNodeAttribute],
|
|
10
11
|
attrs: {
|
|
11
12
|
anyOf: [{
|
|
12
13
|
type: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { adfNode } from '@atlaskit/adf-schema-generator';
|
|
2
2
|
import { annotation } from '../marks/annotation';
|
|
3
3
|
import { border } from '../marks/border';
|
|
4
|
+
import { dataConsumer } from '../marks/dataConsumer';
|
|
4
5
|
import { link } from '../marks/link';
|
|
5
6
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
|
6
7
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
@@ -8,7 +9,7 @@ export const mediaInline = adfNode('mediaInline').define({
|
|
|
8
9
|
selectable: true,
|
|
9
10
|
// atom: false,
|
|
10
11
|
inline: true,
|
|
11
|
-
marks: [link, annotation, border, unsupportedMark, unsupportedNodeAttribute],
|
|
12
|
+
marks: [dataConsumer, link, annotation, border, unsupportedMark, unsupportedNodeAttribute],
|
|
12
13
|
attrs: {
|
|
13
14
|
type: {
|
|
14
15
|
type: 'enum',
|
|
@@ -1160,7 +1160,7 @@ export const media = {
|
|
|
1160
1160
|
marks: {
|
|
1161
1161
|
type: 'array',
|
|
1162
1162
|
optional: true,
|
|
1163
|
-
items: [['link', 'annotation', 'border']]
|
|
1163
|
+
items: [['dataConsumer', 'link', 'annotation', 'border']]
|
|
1164
1164
|
}
|
|
1165
1165
|
},
|
|
1166
1166
|
required: ['attrs']
|
|
@@ -1233,7 +1233,7 @@ export const mediaInline = {
|
|
|
1233
1233
|
marks: {
|
|
1234
1234
|
type: 'array',
|
|
1235
1235
|
optional: true,
|
|
1236
|
-
items: [['link', 'annotation', 'border']]
|
|
1236
|
+
items: [['dataConsumer', 'link', 'annotation', 'border']]
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
1239
|
};
|
|
@@ -731,7 +731,7 @@ export var media = createPMNodeSpecFactory({
|
|
|
731
731
|
});
|
|
732
732
|
export var mediaGroup = createPMNodeSpecFactory({
|
|
733
733
|
content: '(media | unsupportedBlock)+',
|
|
734
|
-
marks: 'link annotation border unsupportedMark unsupportedNodeAttribute',
|
|
734
|
+
marks: 'dataConsumer link annotation border unsupportedMark unsupportedNodeAttribute',
|
|
735
735
|
group: 'block',
|
|
736
736
|
attrs: {},
|
|
737
737
|
selectable: false
|
|
@@ -808,7 +808,7 @@ export var mediaSingle = createPMNodeSpecFactory({
|
|
|
808
808
|
});
|
|
809
809
|
export var mediaSingleCaption = createPMNodeSpecFactory({
|
|
810
810
|
content: 'media|unsupportedBlock+|media (caption|unsupportedBlock) unsupportedBlock*',
|
|
811
|
-
marks: 'link annotation border unsupportedMark unsupportedNodeAttribute',
|
|
811
|
+
marks: 'dataConsumer link annotation border unsupportedMark unsupportedNodeAttribute',
|
|
812
812
|
group: 'block',
|
|
813
813
|
atom: false,
|
|
814
814
|
attrs: {
|
|
@@ -823,7 +823,7 @@ export var mediaSingleCaption = createPMNodeSpecFactory({
|
|
|
823
823
|
});
|
|
824
824
|
export var mediaSingleFull = createPMNodeSpecFactory({
|
|
825
825
|
content: 'media|unsupportedBlock+|media (caption|unsupportedBlock) unsupportedBlock*',
|
|
826
|
-
marks: 'link annotation border unsupportedMark unsupportedNodeAttribute',
|
|
826
|
+
marks: 'dataConsumer link annotation border unsupportedMark unsupportedNodeAttribute',
|
|
827
827
|
group: 'block',
|
|
828
828
|
atom: false,
|
|
829
829
|
attrs: {
|
|
@@ -844,7 +844,7 @@ export var mediaSingleFull = createPMNodeSpecFactory({
|
|
|
844
844
|
});
|
|
845
845
|
export var mediaSingleWidthType = createPMNodeSpecFactory({
|
|
846
846
|
content: 'media|unsupportedBlock+|media unsupportedBlock+',
|
|
847
|
-
marks: 'link annotation border unsupportedMark unsupportedNodeAttribute',
|
|
847
|
+
marks: 'dataConsumer link annotation border unsupportedMark unsupportedNodeAttribute',
|
|
848
848
|
group: 'block',
|
|
849
849
|
atom: true,
|
|
850
850
|
attrs: {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { adfNode } from '@atlaskit/adf-schema-generator';
|
|
2
2
|
import { annotation } from '../marks/annotation';
|
|
3
3
|
import { border } from '../marks/border';
|
|
4
|
+
import { dataConsumer } from '../marks/dataConsumer';
|
|
4
5
|
import { link } from '../marks/link';
|
|
5
6
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
|
6
7
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
7
8
|
export var media = adfNode('media').define({
|
|
8
9
|
selectable: true,
|
|
9
|
-
marks: [link, annotation, border, unsupportedMark, unsupportedNodeAttribute],
|
|
10
|
+
marks: [dataConsumer, link, annotation, border, unsupportedMark, unsupportedNodeAttribute],
|
|
10
11
|
attrs: {
|
|
11
12
|
anyOf: [{
|
|
12
13
|
type: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { adfNode } from '@atlaskit/adf-schema-generator';
|
|
2
2
|
import { annotation } from '../marks/annotation';
|
|
3
3
|
import { border } from '../marks/border';
|
|
4
|
+
import { dataConsumer } from '../marks/dataConsumer';
|
|
4
5
|
import { link } from '../marks/link';
|
|
5
6
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
|
6
7
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
@@ -8,7 +9,7 @@ export var mediaInline = adfNode('mediaInline').define({
|
|
|
8
9
|
selectable: true,
|
|
9
10
|
// atom: false,
|
|
10
11
|
inline: true,
|
|
11
|
-
marks: [link, annotation, border, unsupportedMark, unsupportedNodeAttribute],
|
|
12
|
+
marks: [dataConsumer, link, annotation, border, unsupportedMark, unsupportedNodeAttribute],
|
|
12
13
|
attrs: {
|
|
13
14
|
type: {
|
|
14
15
|
type: 'enum',
|
|
@@ -1160,7 +1160,7 @@ export var media = {
|
|
|
1160
1160
|
marks: {
|
|
1161
1161
|
type: 'array',
|
|
1162
1162
|
optional: true,
|
|
1163
|
-
items: [['link', 'annotation', 'border']]
|
|
1163
|
+
items: [['dataConsumer', 'link', 'annotation', 'border']]
|
|
1164
1164
|
}
|
|
1165
1165
|
},
|
|
1166
1166
|
required: ['attrs']
|
|
@@ -1233,7 +1233,7 @@ export var mediaInline = {
|
|
|
1233
1233
|
marks: {
|
|
1234
1234
|
type: 'array',
|
|
1235
1235
|
optional: true,
|
|
1236
|
-
items: [['link', 'annotation', 'border']]
|
|
1236
|
+
items: [['dataConsumer', 'link', 'annotation', 'border']]
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
1239
|
};
|
|
@@ -1742,6 +1742,9 @@
|
|
|
1742
1742
|
"type": "array",
|
|
1743
1743
|
"items": {
|
|
1744
1744
|
"anyOf": [
|
|
1745
|
+
{
|
|
1746
|
+
"$ref": "#/definitions/dataConsumer_mark"
|
|
1747
|
+
},
|
|
1745
1748
|
{
|
|
1746
1749
|
"$ref": "#/definitions/link_mark"
|
|
1747
1750
|
},
|
|
@@ -1847,6 +1850,9 @@
|
|
|
1847
1850
|
"type": "array",
|
|
1848
1851
|
"items": {
|
|
1849
1852
|
"anyOf": [
|
|
1853
|
+
{
|
|
1854
|
+
"$ref": "#/definitions/dataConsumer_mark"
|
|
1855
|
+
},
|
|
1850
1856
|
{
|
|
1851
1857
|
"$ref": "#/definitions/link_mark"
|
|
1852
1858
|
},
|
|
@@ -2007,6 +2007,9 @@
|
|
|
2007
2007
|
"type": "array",
|
|
2008
2008
|
"items": {
|
|
2009
2009
|
"anyOf": [
|
|
2010
|
+
{
|
|
2011
|
+
"$ref": "#/definitions/dataConsumer_mark"
|
|
2012
|
+
},
|
|
2010
2013
|
{
|
|
2011
2014
|
"$ref": "#/definitions/link_mark"
|
|
2012
2015
|
},
|
|
@@ -2112,6 +2115,9 @@
|
|
|
2112
2115
|
"type": "array",
|
|
2113
2116
|
"items": {
|
|
2114
2117
|
"anyOf": [
|
|
2118
|
+
{
|
|
2119
|
+
"$ref": "#/definitions/dataConsumer_mark"
|
|
2120
|
+
},
|
|
2115
2121
|
{
|
|
2116
2122
|
"$ref": "#/definitions/link_mark"
|
|
2117
2123
|
},
|
|
@@ -519,7 +519,7 @@ export interface MediaNodeAttributes1 {
|
|
|
519
519
|
}
|
|
520
520
|
export interface MediaDefinition {
|
|
521
521
|
type: 'media';
|
|
522
|
-
marks: Array<AnnotationMark | BorderMark | LinkMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
522
|
+
marks: Array<AnnotationMark | BorderMark | DataConsumerMark | LinkMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
523
523
|
attrs: MediaNodeAttributes0 | MediaNodeAttributes1;
|
|
524
524
|
}
|
|
525
525
|
export type MediaNode = PMNode & MediaDefinition;
|
|
@@ -533,7 +533,7 @@ export type MediaGroupNode = PMNode & MediaGroupDefinition;
|
|
|
533
533
|
export declare const mediaGroup: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<MediaGroupNode>) => import("prosemirror-model").NodeSpec;
|
|
534
534
|
export interface MediaInlineDefinition {
|
|
535
535
|
type: 'mediaInline';
|
|
536
|
-
marks: Array<AnnotationMark | BorderMark | LinkMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
536
|
+
marks: Array<AnnotationMark | BorderMark | DataConsumerMark | LinkMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
537
537
|
attrs: {
|
|
538
538
|
type?: 'link' | 'file' | 'image';
|
|
539
539
|
localId?: string;
|
|
@@ -519,7 +519,7 @@ export interface MediaNodeAttributes1 {
|
|
|
519
519
|
}
|
|
520
520
|
export interface MediaDefinition {
|
|
521
521
|
type: 'media';
|
|
522
|
-
marks: Array<AnnotationMark | BorderMark | LinkMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
522
|
+
marks: Array<AnnotationMark | BorderMark | DataConsumerMark | LinkMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
523
523
|
attrs: MediaNodeAttributes0 | MediaNodeAttributes1;
|
|
524
524
|
}
|
|
525
525
|
export type MediaNode = PMNode & MediaDefinition;
|
|
@@ -533,7 +533,7 @@ export type MediaGroupNode = PMNode & MediaGroupDefinition;
|
|
|
533
533
|
export declare const mediaGroup: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<MediaGroupNode>) => import("prosemirror-model").NodeSpec;
|
|
534
534
|
export interface MediaInlineDefinition {
|
|
535
535
|
type: 'mediaInline';
|
|
536
|
-
marks: Array<AnnotationMark | BorderMark | LinkMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
536
|
+
marks: Array<AnnotationMark | BorderMark | DataConsumerMark | LinkMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
537
537
|
attrs: {
|
|
538
538
|
type?: 'link' | 'file' | 'image';
|
|
539
539
|
localId?: string;
|
package/json-schema/v1/full.json
CHANGED
|
@@ -1742,6 +1742,9 @@
|
|
|
1742
1742
|
"type": "array",
|
|
1743
1743
|
"items": {
|
|
1744
1744
|
"anyOf": [
|
|
1745
|
+
{
|
|
1746
|
+
"$ref": "#/definitions/dataConsumer_mark"
|
|
1747
|
+
},
|
|
1745
1748
|
{
|
|
1746
1749
|
"$ref": "#/definitions/link_mark"
|
|
1747
1750
|
},
|
|
@@ -1847,6 +1850,9 @@
|
|
|
1847
1850
|
"type": "array",
|
|
1848
1851
|
"items": {
|
|
1849
1852
|
"anyOf": [
|
|
1853
|
+
{
|
|
1854
|
+
"$ref": "#/definitions/dataConsumer_mark"
|
|
1855
|
+
},
|
|
1850
1856
|
{
|
|
1851
1857
|
"$ref": "#/definitions/link_mark"
|
|
1852
1858
|
},
|
|
@@ -2007,6 +2007,9 @@
|
|
|
2007
2007
|
"type": "array",
|
|
2008
2008
|
"items": {
|
|
2009
2009
|
"anyOf": [
|
|
2010
|
+
{
|
|
2011
|
+
"$ref": "#/definitions/dataConsumer_mark"
|
|
2012
|
+
},
|
|
2010
2013
|
{
|
|
2011
2014
|
"$ref": "#/definitions/link_mark"
|
|
2012
2015
|
},
|
|
@@ -2112,6 +2115,9 @@
|
|
|
2112
2115
|
"type": "array",
|
|
2113
2116
|
"items": {
|
|
2114
2117
|
"anyOf": [
|
|
2118
|
+
{
|
|
2119
|
+
"$ref": "#/definitions/dataConsumer_mark"
|
|
2120
|
+
},
|
|
2115
2121
|
{
|
|
2116
2122
|
"$ref": "#/definitions/link_mark"
|
|
2117
2123
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/adf-schema",
|
|
3
|
-
"version": "52.
|
|
3
|
+
"version": "52.3.1",
|
|
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/"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@atlaskit/adf-schema-generator": "^2.1.0",
|
|
44
44
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^39.0.0",
|
|
46
46
|
"@babel/runtime": "^7.0.0",
|
|
47
47
|
"css-color-names": "0.0.4",
|
|
48
48
|
"linkify-it": "^3.0.3",
|