@atlaskit/adf-schema 28.0.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 +12 -0
- package/dist/cjs/schema/nodes/list-item.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/schema/nodes/list-item.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/schema/nodes/list-item.js +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/schema/nodes/types/list.d.ts +1 -0
- 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/dist/types-ts4.5/schema/nodes/types/list.d.ts +1 -0
- package/package.json +2 -2
- package/report.api.md +5 -13
- package/tmp/api-report-tmp.d.ts +5 -13
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# @atlaskit/adf-schema
|
2
2
|
|
3
|
+
## 28.1.1
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies
|
8
|
+
|
9
|
+
## 28.1.0
|
10
|
+
|
11
|
+
### Minor Changes
|
12
|
+
|
13
|
+
- [`106c54b0ce4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/106c54b0ce4) - [ux] ED-15896 - Added support for unsupported nodes in listItem
|
14
|
+
|
3
15
|
## 28.0.0
|
4
16
|
|
5
17
|
### Major Changes
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.listItem = void 0;
|
7
7
|
var listItem = {
|
8
|
-
content: '(paragraph | mediaSingle | codeBlock) (paragraph | bulletList | orderedList | mediaSingle | codeBlock)*',
|
8
|
+
content: '(paragraph | mediaSingle | codeBlock | unsupportedBlock) (paragraph | bulletList | orderedList | mediaSingle | codeBlock | unsupportedBlock)*',
|
9
9
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
10
10
|
defining: true,
|
11
11
|
selectable: false,
|
package/dist/cjs/version.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
export const listItem = {
|
2
|
-
content: '(paragraph | mediaSingle | codeBlock) (paragraph | bulletList | orderedList | mediaSingle | codeBlock)*',
|
2
|
+
content: '(paragraph | mediaSingle | codeBlock | unsupportedBlock) (paragraph | bulletList | orderedList | mediaSingle | codeBlock | unsupportedBlock)*',
|
3
3
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
4
4
|
defining: true,
|
5
5
|
selectable: false,
|
package/dist/es2019/version.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
export var listItem = {
|
2
|
-
content: '(paragraph | mediaSingle | codeBlock) (paragraph | bulletList | orderedList | mediaSingle | codeBlock)*',
|
2
|
+
content: '(paragraph | mediaSingle | codeBlock | unsupportedBlock) (paragraph | bulletList | orderedList | mediaSingle | codeBlock | unsupportedBlock)*',
|
3
3
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
4
4
|
defining: true,
|
5
5
|
selectable: false,
|
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.
|
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
|
@@ -1002,7 +999,6 @@ export interface ListItemArray
|
|
1002
999
|
|
1003
1000
|
// @public
|
1004
1001
|
export interface ListItemDefinition {
|
1005
|
-
// (undocumented)
|
1006
1002
|
content: ListItemArray;
|
1007
1003
|
// (undocumented)
|
1008
1004
|
type: 'listItem';
|
@@ -1215,9 +1211,7 @@ export interface MentionDefinition {
|
|
1215
1211
|
|
1216
1212
|
// @public (undocumented)
|
1217
1213
|
export const mentionToJSON: (node: Node_2) => {
|
1218
|
-
attrs:
|
1219
|
-
[key: string]: any;
|
1220
|
-
};
|
1214
|
+
attrs: Attrs;
|
1221
1215
|
};
|
1222
1216
|
|
1223
1217
|
// @public (undocumented)
|
@@ -1727,9 +1721,7 @@ export interface TableRowDefinition {
|
|
1727
1721
|
|
1728
1722
|
// @public (undocumented)
|
1729
1723
|
export const tableToJSON: (node: Node_2) => {
|
1730
|
-
attrs:
|
1731
|
-
[key: string]: any;
|
1732
|
-
};
|
1724
|
+
attrs: Attrs;
|
1733
1725
|
};
|
1734
1726
|
|
1735
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
|
@@ -897,7 +894,6 @@ export interface ListItemArray extends Array<BulletListDefinition | CodeBlockDef
|
|
897
894
|
|
898
895
|
// @public
|
899
896
|
export interface ListItemDefinition {
|
900
|
-
// (undocumented)
|
901
897
|
content: ListItemArray;
|
902
898
|
// (undocumented)
|
903
899
|
type: 'listItem';
|
@@ -1103,9 +1099,7 @@ export interface MentionDefinition {
|
|
1103
1099
|
|
1104
1100
|
// @public (undocumented)
|
1105
1101
|
export const mentionToJSON: (node: Node_2) => {
|
1106
|
-
attrs:
|
1107
|
-
[key: string]: any;
|
1108
|
-
};
|
1102
|
+
attrs: Attrs;
|
1109
1103
|
};
|
1110
1104
|
|
1111
1105
|
// @public (undocumented)
|
@@ -1552,9 +1546,7 @@ export interface TableRowDefinition {
|
|
1552
1546
|
|
1553
1547
|
// @public (undocumented)
|
1554
1548
|
export const tableToJSON: (node: Node_2) => {
|
1555
|
-
attrs:
|
1556
|
-
[key: string]: any;
|
1557
|
-
};
|
1549
|
+
attrs: Attrs;
|
1558
1550
|
};
|
1559
1551
|
|
1560
1552
|
// @public (undocumented)
|