@atlaskit/adf-schema 28.1.0 → 28.1.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 +6 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/schema/default-schema.d.ts +0 -1
- package/dist/types/schema/marks/data-consumer.d.ts +1 -3
- package/dist/types/schema/nodes/expand.d.ts +1 -3
- package/dist/types/schema/nodes/mention.d.ts +1 -3
- package/dist/types/schema/nodes/tableNodes.d.ts +1 -3
- package/dist/types-ts4.5/schema/default-schema.d.ts +0 -1
- package/dist/types-ts4.5/schema/marks/data-consumer.d.ts +1 -3
- package/dist/types-ts4.5/schema/nodes/expand.d.ts +1 -3
- package/dist/types-ts4.5/schema/nodes/mention.d.ts +1 -3
- package/dist/types-ts4.5/schema/nodes/tableNodes.d.ts +1 -3
- package/package.json +2 -2
- package/report.api.md +5 -12
- package/tmp/api-report-tmp.d.ts +5 -12
package/CHANGELOG.md
CHANGED
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference path="../../../../../../typings/prosemirror.d.ts" />
|
2
1
|
import { SchemaConfig } from './create-schema';
|
3
2
|
type DefaultSchemaNodes = 'doc' | 'paragraph' | 'text' | 'bulletList' | 'orderedList' | 'listItem' | 'heading' | 'blockquote' | 'codeBlock' | 'panel' | 'rule' | 'image' | 'mention' | 'media' | 'caption' | 'mediaGroup' | 'mediaSingle' | 'mediaInline' | 'confluenceUnsupportedBlock' | 'confluenceUnsupportedInline' | 'confluenceJiraIssue' | 'expand' | 'nestedExpand' | 'extension' | 'inlineExtension' | 'bodiedExtension' | 'hardBreak' | 'emoji' | 'table' | 'tableCell' | 'tableHeader' | 'tableRow' | 'decisionList' | 'decisionItem' | 'taskList' | 'taskItem' | 'unknownBlock' | 'date' | 'status' | 'placeholder' | 'layoutSection' | 'layoutColumn' | 'inlineCard' | 'blockCard' | 'embedCard' | 'unsupportedBlock' | 'unsupportedInline';
|
4
3
|
type DefaultSchemaMarks = 'link' | 'em' | 'strong' | 'strike' | 'subsup' | 'underline' | 'code' | 'textColor' | 'confluenceInlineComment' | 'breakout' | 'alignment' | 'indentation' | 'annotation' | 'border' | 'unsupportedMark' | 'unsupportedNodeAttribute' | 'typeAheadQuery' | 'dataConsumer' | 'fragment';
|
@@ -27,7 +27,5 @@ export type ExpandDefinition = ExpandBaseDefinition & NoMark;
|
|
27
27
|
export type ExpandWithBreakoutDefinition = ExpandBaseDefinition & MarksObject<BreakoutMarkDefinition>;
|
28
28
|
export declare const expand: NodeSpec;
|
29
29
|
export declare const toJSON: (node: PMNode) => {
|
30
|
-
attrs:
|
31
|
-
[key: string]: any;
|
32
|
-
};
|
30
|
+
attrs: import("prosemirror-model").Attrs;
|
33
31
|
};
|
@@ -104,9 +104,7 @@ export interface TableHeader {
|
|
104
104
|
export declare const table: NodeSpec;
|
105
105
|
export declare const tableWithCustomWidth: NodeSpec;
|
106
106
|
export declare const tableToJSON: (node: PmNode) => {
|
107
|
-
attrs:
|
108
|
-
[key: string]: any;
|
109
|
-
};
|
107
|
+
attrs: import("prosemirror-model").Attrs;
|
110
108
|
};
|
111
109
|
export declare const tableRow: NodeSpec;
|
112
110
|
export declare const tableCell: NodeSpec;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference path="../../../../../../typings/prosemirror.d.ts" />
|
2
1
|
import { SchemaConfig } from './create-schema';
|
3
2
|
type DefaultSchemaNodes = 'doc' | 'paragraph' | 'text' | 'bulletList' | 'orderedList' | 'listItem' | 'heading' | 'blockquote' | 'codeBlock' | 'panel' | 'rule' | 'image' | 'mention' | 'media' | 'caption' | 'mediaGroup' | 'mediaSingle' | 'mediaInline' | 'confluenceUnsupportedBlock' | 'confluenceUnsupportedInline' | 'confluenceJiraIssue' | 'expand' | 'nestedExpand' | 'extension' | 'inlineExtension' | 'bodiedExtension' | 'hardBreak' | 'emoji' | 'table' | 'tableCell' | 'tableHeader' | 'tableRow' | 'decisionList' | 'decisionItem' | 'taskList' | 'taskItem' | 'unknownBlock' | 'date' | 'status' | 'placeholder' | 'layoutSection' | 'layoutColumn' | 'inlineCard' | 'blockCard' | 'embedCard' | 'unsupportedBlock' | 'unsupportedInline';
|
4
3
|
type DefaultSchemaMarks = 'link' | 'em' | 'strong' | 'strike' | 'subsup' | 'underline' | 'code' | 'textColor' | 'confluenceInlineComment' | 'breakout' | 'alignment' | 'indentation' | 'annotation' | 'border' | 'unsupportedMark' | 'unsupportedNodeAttribute' | 'typeAheadQuery' | 'dataConsumer' | 'fragment';
|
@@ -27,7 +27,5 @@ export type ExpandDefinition = ExpandBaseDefinition & NoMark;
|
|
27
27
|
export type ExpandWithBreakoutDefinition = ExpandBaseDefinition & MarksObject<BreakoutMarkDefinition>;
|
28
28
|
export declare const expand: NodeSpec;
|
29
29
|
export declare const toJSON: (node: PMNode) => {
|
30
|
-
attrs:
|
31
|
-
[key: string]: any;
|
32
|
-
};
|
30
|
+
attrs: import("prosemirror-model").Attrs;
|
33
31
|
};
|
@@ -104,9 +104,7 @@ export interface TableHeader {
|
|
104
104
|
export declare const table: NodeSpec;
|
105
105
|
export declare const tableWithCustomWidth: NodeSpec;
|
106
106
|
export declare const tableToJSON: (node: PmNode) => {
|
107
|
-
attrs:
|
108
|
-
[key: string]: any;
|
109
|
-
};
|
107
|
+
attrs: import("prosemirror-model").Attrs;
|
110
108
|
};
|
111
109
|
export declare const tableRow: NodeSpec;
|
112
110
|
export declare const tableCell: NodeSpec;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/adf-schema",
|
3
|
-
"version": "28.1.
|
3
|
+
"version": "28.1.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/"
|
@@ -49,7 +49,7 @@
|
|
49
49
|
"dependencies": {
|
50
50
|
"@atlaskit/codemod-utils": "^4.2.0",
|
51
51
|
"@atlaskit/editor-palette": "1.5.1",
|
52
|
-
"@atlaskit/editor-prosemirror": "1.0
|
52
|
+
"@atlaskit/editor-prosemirror": "1.1.0",
|
53
53
|
"@atlaskit/editor-tables": "^2.3.0",
|
54
54
|
"@babel/runtime": "^7.0.0",
|
55
55
|
"css-color-names": "0.0.4",
|
package/report.api.md
CHANGED
@@ -15,6 +15,7 @@
|
|
15
15
|
<!--SECTION START: Main Entry Types-->
|
16
16
|
|
17
17
|
```ts
|
18
|
+
import { Attrs } from 'prosemirror-model';
|
18
19
|
import { CellAttributes } from '@atlaskit/editor-tables/types';
|
19
20
|
import LinkifyIt from 'linkify-it';
|
20
21
|
import { Mark } from '@atlaskit/editor-prosemirror/model';
|
@@ -420,9 +421,7 @@ type DataConsumerSource = string;
|
|
420
421
|
// @public
|
421
422
|
export const dataConsumerToJSON: (mark: Mark) => {
|
422
423
|
type: string;
|
423
|
-
attrs:
|
424
|
-
[key: string]: any;
|
425
|
-
};
|
424
|
+
attrs: Attrs;
|
426
425
|
};
|
427
426
|
|
428
427
|
// @public (undocumented)
|
@@ -592,9 +591,7 @@ export type ExpandDefinition = ExpandBaseDefinition & NoMark;
|
|
592
591
|
|
593
592
|
// @public (undocumented)
|
594
593
|
export const expandToJSON: (node: Node_2) => {
|
595
|
-
attrs:
|
596
|
-
[key: string]: any;
|
597
|
-
};
|
594
|
+
attrs: Attrs;
|
598
595
|
};
|
599
596
|
|
600
597
|
// @public
|
@@ -1214,9 +1211,7 @@ export interface MentionDefinition {
|
|
1214
1211
|
|
1215
1212
|
// @public (undocumented)
|
1216
1213
|
export const mentionToJSON: (node: Node_2) => {
|
1217
|
-
attrs:
|
1218
|
-
[key: string]: any;
|
1219
|
-
};
|
1214
|
+
attrs: Attrs;
|
1220
1215
|
};
|
1221
1216
|
|
1222
1217
|
// @public (undocumented)
|
@@ -1726,9 +1721,7 @@ export interface TableRowDefinition {
|
|
1726
1721
|
|
1727
1722
|
// @public (undocumented)
|
1728
1723
|
export const tableToJSON: (node: Node_2) => {
|
1729
|
-
attrs:
|
1730
|
-
[key: string]: any;
|
1731
|
-
};
|
1724
|
+
attrs: Attrs;
|
1732
1725
|
};
|
1733
1726
|
|
1734
1727
|
// @public (undocumented)
|
package/tmp/api-report-tmp.d.ts
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
```ts
|
6
6
|
|
7
|
+
import { Attrs } from 'prosemirror-model';
|
7
8
|
import { CellAttributes } from '@atlaskit/editor-tables/types';
|
8
9
|
import LinkifyIt from 'linkify-it';
|
9
10
|
import { Mark } from '@atlaskit/editor-prosemirror/model';
|
@@ -366,9 +367,7 @@ type DataConsumerSource = string;
|
|
366
367
|
// @public
|
367
368
|
export const dataConsumerToJSON: (mark: Mark) => {
|
368
369
|
type: string;
|
369
|
-
attrs:
|
370
|
-
[key: string]: any;
|
371
|
-
};
|
370
|
+
attrs: Attrs;
|
372
371
|
};
|
373
372
|
|
374
373
|
// @public (undocumented)
|
@@ -532,9 +531,7 @@ export type ExpandDefinition = ExpandBaseDefinition & NoMark;
|
|
532
531
|
|
533
532
|
// @public (undocumented)
|
534
533
|
export const expandToJSON: (node: Node_2) => {
|
535
|
-
attrs:
|
536
|
-
[key: string]: any;
|
537
|
-
};
|
534
|
+
attrs: Attrs;
|
538
535
|
};
|
539
536
|
|
540
537
|
// @public
|
@@ -1102,9 +1099,7 @@ export interface MentionDefinition {
|
|
1102
1099
|
|
1103
1100
|
// @public (undocumented)
|
1104
1101
|
export const mentionToJSON: (node: Node_2) => {
|
1105
|
-
attrs:
|
1106
|
-
[key: string]: any;
|
1107
|
-
};
|
1102
|
+
attrs: Attrs;
|
1108
1103
|
};
|
1109
1104
|
|
1110
1105
|
// @public (undocumented)
|
@@ -1551,9 +1546,7 @@ export interface TableRowDefinition {
|
|
1551
1546
|
|
1552
1547
|
// @public (undocumented)
|
1553
1548
|
export const tableToJSON: (node: Node_2) => {
|
1554
|
-
attrs:
|
1555
|
-
[key: string]: any;
|
1556
|
-
};
|
1549
|
+
attrs: Attrs;
|
1557
1550
|
};
|
1558
1551
|
|
1559
1552
|
// @public (undocumented)
|