@atlaskit/adf-schema 24.0.2 → 25.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 +54 -0
- package/dist/cjs/index.js +6 -0
- package/dist/cjs/schema/bitbucket-schema.js +3 -0
- package/dist/cjs/schema/confluence-schema.js +8 -0
- package/dist/cjs/schema/create-schema.js +1 -1
- package/dist/cjs/schema/index.js +6 -0
- package/dist/cjs/schema/jira-schema.js +47 -0
- package/dist/cjs/schema/marks/alignment.js +1 -1
- package/dist/cjs/schema/marks/annotation.js +1 -1
- package/dist/cjs/schema/marks/text-color.js +16 -2
- package/dist/cjs/schema/nodes/bullet-list.js +0 -5
- package/dist/cjs/schema/nodes/index.js +6 -0
- package/dist/cjs/schema/nodes/list-item.js +0 -6
- package/dist/cjs/schema/nodes/media.js +3 -0
- package/dist/cjs/schema/nodes/ordered-list.js +66 -6
- package/dist/cjs/schema/nodes/tableNodes.js +11 -6
- package/dist/cjs/schema/nodes/types/list.js +5 -0
- package/dist/cjs/utils/url.js +7 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/schema/bitbucket-schema.js +4 -0
- package/dist/es2019/schema/confluence-schema.js +8 -0
- package/dist/es2019/schema/create-schema.js +2 -2
- package/dist/es2019/schema/index.js +1 -1
- package/dist/es2019/schema/jira-schema.js +48 -0
- package/dist/es2019/schema/marks/alignment.js +1 -1
- package/dist/es2019/schema/marks/annotation.js +1 -1
- package/dist/es2019/schema/marks/text-color.js +15 -2
- package/dist/es2019/schema/nodes/bullet-list.js +0 -5
- package/dist/es2019/schema/nodes/index.js +1 -1
- package/dist/es2019/schema/nodes/list-item.js +0 -6
- package/dist/es2019/schema/nodes/media.js +3 -0
- package/dist/es2019/schema/nodes/ordered-list.js +55 -5
- package/dist/es2019/schema/nodes/tableNodes.js +11 -6
- package/dist/es2019/schema/nodes/types/list.js +1 -0
- package/dist/es2019/utils/url.js +7 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/schema/bitbucket-schema.js +4 -0
- package/dist/esm/schema/confluence-schema.js +8 -0
- package/dist/esm/schema/create-schema.js +2 -2
- package/dist/esm/schema/index.js +1 -1
- package/dist/esm/schema/jira-schema.js +48 -0
- package/dist/esm/schema/marks/alignment.js +1 -1
- package/dist/esm/schema/marks/annotation.js +1 -1
- package/dist/esm/schema/marks/text-color.js +15 -2
- package/dist/esm/schema/nodes/bullet-list.js +0 -5
- package/dist/esm/schema/nodes/index.js +1 -1
- package/dist/esm/schema/nodes/list-item.js +0 -6
- package/dist/esm/schema/nodes/media.js +3 -0
- package/dist/esm/schema/nodes/ordered-list.js +59 -5
- package/dist/esm/schema/nodes/tableNodes.js +11 -6
- package/dist/esm/schema/nodes/types/list.js +1 -0
- package/dist/esm/utils/url.js +7 -2
- package/dist/esm/version.json +1 -1
- package/dist/json-schema/v1/full.json +38 -41
- package/dist/json-schema/v1/stage-0.json +38 -41
- package/dist/types/index.d.ts +1 -1
- package/dist/types/schema/bitbucket-schema.d.ts +3 -0
- package/dist/types/schema/confluence-schema.d.ts +6 -0
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/jira-schema.d.ts +39 -0
- package/dist/types/schema/nodes/bullet-list.d.ts +0 -11
- package/dist/types/schema/nodes/index.d.ts +4 -4
- package/dist/types/schema/nodes/list-item.d.ts +0 -18
- package/dist/types/schema/nodes/media.d.ts +1 -0
- package/dist/types/schema/nodes/ordered-list.d.ts +1 -17
- package/dist/types/schema/nodes/panel.d.ts +2 -2
- package/dist/types/schema/nodes/tableNodes.d.ts +2 -2
- package/dist/types/schema/nodes/types/block-content.d.ts +2 -2
- package/dist/types/schema/nodes/types/list.d.ts +42 -0
- package/dist/types/schema/nodes/types/non-nestable-block-content.d.ts +2 -2
- package/dist/types/utils/url.d.ts +4 -0
- package/json-schema/v1/full.json +38 -41
- package/json-schema/v1/stage-0.json +38 -41
- package/package.json +9 -12
- package/report.api.md +1041 -1047
- package/dist/types-ts4.0/index.d.ts +0 -4
- package/dist/types-ts4.0/json-schema/index.d.ts +0 -2
- package/dist/types-ts4.0/schema/bitbucket-schema.d.ts +0 -2
- package/dist/types-ts4.0/schema/confluence-schema.d.ts +0 -3
- package/dist/types-ts4.0/schema/create-schema.d.ts +0 -32
- package/dist/types-ts4.0/schema/default-schema.d.ts +0 -7
- package/dist/types-ts4.0/schema/groups.d.ts +0 -6
- package/dist/types-ts4.0/schema/index.d.ts +0 -7
- package/dist/types-ts4.0/schema/inline-nodes.d.ts +0 -1
- package/dist/types-ts4.0/schema/jira-schema.d.ts +0 -26
- package/dist/types-ts4.0/schema/marks/alignment.d.ts +0 -16
- package/dist/types-ts4.0/schema/marks/annotation.d.ts +0 -32
- package/dist/types-ts4.0/schema/marks/breakout.d.ts +0 -12
- package/dist/types-ts4.0/schema/marks/code.d.ts +0 -8
- package/dist/types-ts4.0/schema/marks/confluence-inline-comment.d.ts +0 -12
- package/dist/types-ts4.0/schema/marks/data-consumer.d.ts +0 -48
- package/dist/types-ts4.0/schema/marks/em.d.ts +0 -8
- package/dist/types-ts4.0/schema/marks/fragment.d.ts +0 -29
- package/dist/types-ts4.0/schema/marks/indentation.d.ts +0 -16
- package/dist/types-ts4.0/schema/marks/index.d.ts +0 -32
- package/dist/types-ts4.0/schema/marks/link.d.ts +0 -35
- package/dist/types-ts4.0/schema/marks/strike.d.ts +0 -8
- package/dist/types-ts4.0/schema/marks/strong.d.ts +0 -8
- package/dist/types-ts4.0/schema/marks/subsup.d.ts +0 -15
- package/dist/types-ts4.0/schema/marks/text-color.d.ts +0 -21
- package/dist/types-ts4.0/schema/marks/type-ahead-query.d.ts +0 -2
- package/dist/types-ts4.0/schema/marks/underline.d.ts +0 -8
- package/dist/types-ts4.0/schema/marks/unsupported-mark.d.ts +0 -2
- package/dist/types-ts4.0/schema/marks/unsupported-node-attributes.d.ts +0 -2
- package/dist/types-ts4.0/schema/nodes/block-card.d.ts +0 -22
- package/dist/types-ts4.0/schema/nodes/blockquote.d.ts +0 -14
- package/dist/types-ts4.0/schema/nodes/bodied-extension.d.ts +0 -24
- package/dist/types-ts4.0/schema/nodes/bullet-list.d.ts +0 -14
- package/dist/types-ts4.0/schema/nodes/caption.d.ts +0 -20
- package/dist/types-ts4.0/schema/nodes/code-block.d.ts +0 -31
- package/dist/types-ts4.0/schema/nodes/confluence-jira-issue.d.ts +0 -2
- package/dist/types-ts4.0/schema/nodes/confluence-unsupported-block.d.ts +0 -2
- package/dist/types-ts4.0/schema/nodes/confluence-unsupported-inline.d.ts +0 -2
- package/dist/types-ts4.0/schema/nodes/date.d.ts +0 -14
- package/dist/types-ts4.0/schema/nodes/decision-item.d.ts +0 -17
- package/dist/types-ts4.0/schema/nodes/decision-list.d.ts +0 -18
- package/dist/types-ts4.0/schema/nodes/doc.d.ts +0 -18
- package/dist/types-ts4.0/schema/nodes/embed-card.d.ts +0 -18
- package/dist/types-ts4.0/schema/nodes/emoji.d.ts +0 -14
- package/dist/types-ts4.0/schema/nodes/expand.d.ts +0 -33
- package/dist/types-ts4.0/schema/nodes/extension.d.ts +0 -18
- package/dist/types-ts4.0/schema/nodes/hard-break.d.ts +0 -11
- package/dist/types-ts4.0/schema/nodes/heading.d.ts +0 -36
- package/dist/types-ts4.0/schema/nodes/image.d.ts +0 -2
- package/dist/types-ts4.0/schema/nodes/index.d.ts +0 -93
- package/dist/types-ts4.0/schema/nodes/inline-card.d.ts +0 -10
- package/dist/types-ts4.0/schema/nodes/inline-extension.d.ts +0 -18
- package/dist/types-ts4.0/schema/nodes/layout-column.d.ts +0 -21
- package/dist/types-ts4.0/schema/nodes/layout-section.d.ts +0 -44
- package/dist/types-ts4.0/schema/nodes/list-item.d.ts +0 -20
- package/dist/types-ts4.0/schema/nodes/media-group.d.ts +0 -14
- package/dist/types-ts4.0/schema/nodes/media-inline.d.ts +0 -16
- package/dist/types-ts4.0/schema/nodes/media-single.d.ts +0 -61
- package/dist/types-ts4.0/schema/nodes/media.d.ts +0 -60
- package/dist/types-ts4.0/schema/nodes/mention.d.ts +0 -26
- package/dist/types-ts4.0/schema/nodes/nested-expand.d.ts +0 -27
- package/dist/types-ts4.0/schema/nodes/ordered-list.d.ts +0 -20
- package/dist/types-ts4.0/schema/nodes/panel.d.ts +0 -38
- package/dist/types-ts4.0/schema/nodes/paragraph.d.ts +0 -37
- package/dist/types-ts4.0/schema/nodes/placeholder.d.ts +0 -11
- package/dist/types-ts4.0/schema/nodes/rule.d.ts +0 -8
- package/dist/types-ts4.0/schema/nodes/status.d.ts +0 -20
- package/dist/types-ts4.0/schema/nodes/tableNodes.d.ts +0 -113
- package/dist/types-ts4.0/schema/nodes/task-item.d.ts +0 -17
- package/dist/types-ts4.0/schema/nodes/task-list.d.ts +0 -21
- package/dist/types-ts4.0/schema/nodes/text.d.ts +0 -15
- package/dist/types-ts4.0/schema/nodes/types/block-content.d.ts +0 -22
- package/dist/types-ts4.0/schema/nodes/types/extensions.d.ts +0 -34
- package/dist/types-ts4.0/schema/nodes/types/inline-content.d.ts +0 -32
- package/dist/types-ts4.0/schema/nodes/types/mark.d.ts +0 -15
- package/dist/types-ts4.0/schema/nodes/types/non-nestable-block-content.d.ts +0 -20
- package/dist/types-ts4.0/schema/nodes/types/rich-media-common.d.ts +0 -9
- package/dist/types-ts4.0/schema/nodes/unknown-block.d.ts +0 -3
- package/dist/types-ts4.0/schema/nodes/unsupported-block.d.ts +0 -2
- package/dist/types-ts4.0/schema/nodes/unsupported-inline.d.ts +0 -2
- package/dist/types-ts4.0/schema/unsupported.d.ts +0 -1
- package/dist/types-ts4.0/steps/analytics.d.ts +0 -59
- package/dist/types-ts4.0/steps/set-attrs.d.ts +0 -23
- package/dist/types-ts4.0/steps/table/add-column.d.ts +0 -88
- package/dist/types-ts4.0/steps/table/constants.d.ts +0 -4
- package/dist/types-ts4.0/steps/table/sort-column.d.ts +0 -18
- package/dist/types-ts4.0/steps/table/types.d.ts +0 -39
- package/dist/types-ts4.0/steps/table/utils/cell-step.d.ts +0 -51
- package/dist/types-ts4.0/steps/table/utils/cells-at-column.d.ts +0 -20
- package/dist/types-ts4.0/steps/table/utils/find-column.d.ts +0 -8
- package/dist/types-ts4.0/steps/table/utils/get-table-rect-from-doc.d.ts +0 -8
- package/dist/types-ts4.0/steps/table/utils/side-effects/rows.d.ts +0 -25
- package/dist/types-ts4.0/steps/table/utils/side-effects/side-effects.d.ts +0 -15
- package/dist/types-ts4.0/steps/table/utils/side-effects/table.d.ts +0 -16
- package/dist/types-ts4.0/steps/table/utils/side-effects/types.d.ts +0 -33
- package/dist/types-ts4.0/steps/table/utils/table-map.d.ts +0 -6
- package/dist/types-ts4.0/steps/type-ahead.d.ts +0 -35
- package/dist/types-ts4.0/steps.d.ts +0 -8
- package/dist/types-ts4.0/utils/colors.d.ts +0 -71
- package/dist/types-ts4.0/utils/confluence/emoji.d.ts +0 -50
- package/dist/types-ts4.0/utils/extensions.d.ts +0 -3
- package/dist/types-ts4.0/utils/index.d.ts +0 -6
- package/dist/types-ts4.0/utils/parseDOM.d.ts +0 -1
- package/dist/types-ts4.0/utils/url.d.ts +0 -23
- package/dist/types-ts4.0/utils/uuid.d.ts +0 -5
@@ -1,11 +1,17 @@
|
|
1
|
-
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
2
|
+
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
4
|
+
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
2
6
|
|
3
|
-
/**
|
4
|
-
* @name orderedList_node
|
5
|
-
*/
|
6
7
|
export var orderedListSelector = '.ak-ol';
|
7
8
|
export var orderedList = {
|
8
9
|
group: 'block',
|
10
|
+
attrs: {
|
11
|
+
order: {
|
12
|
+
default: 1
|
13
|
+
}
|
14
|
+
},
|
9
15
|
content: 'listItem+',
|
10
16
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
11
17
|
selectable: false,
|
@@ -18,4 +24,52 @@ export var orderedList = {
|
|
18
24
|
};
|
19
25
|
return ['ol', attrs, 0];
|
20
26
|
}
|
21
|
-
};
|
27
|
+
}; // resolve "start" to a safe, 0+ integer, otherwise return undefined
|
28
|
+
// Note: Any changes to this function should also be made to "resolveOrder"
|
29
|
+
// in packages/editor/editor-common/src/utils/list.ts
|
30
|
+
|
31
|
+
var resolveStart = function resolveStart(start) {
|
32
|
+
var num = Number(start);
|
33
|
+
|
34
|
+
if (Number.isNaN(num)) {
|
35
|
+
return;
|
36
|
+
}
|
37
|
+
|
38
|
+
if (num < 0) {
|
39
|
+
return;
|
40
|
+
}
|
41
|
+
|
42
|
+
return Math.floor(Math.max(num, 0));
|
43
|
+
};
|
44
|
+
|
45
|
+
export var orderedListWithOrder = _objectSpread(_objectSpread({}, orderedList), {}, {
|
46
|
+
parseDOM: [{
|
47
|
+
tag: 'ol',
|
48
|
+
getAttrs: function getAttrs(domNode) {
|
49
|
+
var dom = domNode;
|
50
|
+
var startDOMAttr = dom.getAttribute('start');
|
51
|
+
|
52
|
+
if (startDOMAttr) {
|
53
|
+
var start = resolveStart(startDOMAttr);
|
54
|
+
|
55
|
+
if (typeof start === 'number') {
|
56
|
+
return {
|
57
|
+
order: start
|
58
|
+
};
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
return null;
|
63
|
+
}
|
64
|
+
}],
|
65
|
+
toDOM: function toDOM(node) {
|
66
|
+
var _node$attrs;
|
67
|
+
|
68
|
+
var start = resolveStart(node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.order);
|
69
|
+
var attrs = {
|
70
|
+
start: typeof start === 'number' ? String(start) : undefined,
|
71
|
+
class: orderedListSelector.substr(1)
|
72
|
+
};
|
73
|
+
return ['ol', attrs, 0];
|
74
|
+
}
|
75
|
+
});
|
@@ -14,13 +14,17 @@ export var getCellAttrs = function getCellAttrs(dom) {
|
|
14
14
|
return Number(str);
|
15
15
|
}) : null;
|
16
16
|
var colspan = Number(dom.getAttribute('colspan') || 1);
|
17
|
-
var backgroundColor = dom.style.backgroundColor;
|
17
|
+
var backgroundColor = dom.style.backgroundColor; // ignore setting background attr if ds neutral token is detected
|
18
18
|
|
19
|
-
if (backgroundColor
|
20
|
-
|
19
|
+
if (backgroundColor.includes('--ds-background-neutral')) {
|
20
|
+
backgroundColor = '';
|
21
|
+
} else {
|
22
|
+
if (backgroundColor && isRgb(backgroundColor)) {
|
23
|
+
var result = rgbToHex(backgroundColor);
|
21
24
|
|
22
|
-
|
23
|
-
|
25
|
+
if (result !== null) {
|
26
|
+
backgroundColor = result;
|
27
|
+
}
|
24
28
|
}
|
25
29
|
}
|
26
30
|
|
@@ -56,8 +60,9 @@ export var getCellDomAttrs = function getCellDomAttrs(node) {
|
|
56
60
|
var background = node.attrs.background; // to ensure that we don't overwrite product's style:
|
57
61
|
// - it clears background color for <th> if its set to gray
|
58
62
|
// - it clears background color for <td> if its set to white
|
63
|
+
// - it clears background color for <th> if ds neutral token is detected
|
59
64
|
|
60
|
-
var ignored = nodeType === 'tableHeader' && background === tableBackgroundColorNames.get('light gray') || nodeType === 'tableCell' && background === tableBackgroundColorNames.get('white');
|
65
|
+
var ignored = nodeType === 'tableHeader' && background === tableBackgroundColorNames.get('light gray') || nodeType === 'tableCell' && background === tableBackgroundColorNames.get('white') || nodeType === 'tableHeader' && background.includes('--ds-background-neutral');
|
61
66
|
|
62
67
|
if (ignored) {
|
63
68
|
attrs.style = '';
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/dist/esm/utils/url.js
CHANGED
@@ -1,5 +1,9 @@
|
|
1
|
+
/**
|
2
|
+
* This file has been duplicated in packages/linking-platform/link-picker/src/common/utils/url.ts
|
3
|
+
* Any changes made here should be mirrored there.
|
4
|
+
*/
|
1
5
|
import LinkifyIt from 'linkify-it';
|
2
|
-
var whitelistedURLPatterns = [/^https?:\/\//im, /^ftps?:\/\//im, /^\//im, /^mailto:/im, /^skype:/im, /^callto:/im, /^facetime:/im, /^git:/im, /^irc6?:/im, /^news:/im, /^nntp:/im, /^feed:/im, /^cvs:/im, /^svn:/im, /^mvn:/im, /^ssh:/im, /^scp:\/\//im, /^sftp:\/\//im, /^itms:/im, /^notes:/im, /^hipchat:\/\//im, /^sourcetree:/im, /^urn:/im, /^tel:/im, /^xmpp:/im, /^telnet:/im, /^vnc:/im, /^rdp:/im, /^whatsapp:/im, /^slack:/im, /^sips?:/im, /^magnet:/im, /^#/im];
|
6
|
+
var whitelistedURLPatterns = [/^https?:\/\//im, /^ftps?:\/\//im, /^jamfselfservice:\/\//im, /^\//im, /^mailto:/im, /^skype:/im, /^callto:/im, /^facetime:/im, /^git:/im, /^irc6?:/im, /^news:/im, /^nntp:/im, /^feed:/im, /^cvs:/im, /^svn:/im, /^mvn:/im, /^ssh:/im, /^scp:\/\//im, /^sftp:\/\//im, /^itms:/im, /^notes:/im, /^hipchat:\/\//im, /^sourcetree:/im, /^urn:/im, /^tel:/im, /^xmpp:/im, /^telnet:/im, /^vnc:/im, /^rdp:/im, /^whatsapp:/im, /^slack:/im, /^sips?:/im, /^magnet:/im, /^#/im];
|
3
7
|
/**
|
4
8
|
* Please notify the Editor Mobile team (Slack: #help-mobilekit) if the logic for this changes.
|
5
9
|
*/
|
@@ -17,11 +21,12 @@ export var isSafeUrl = function isSafeUrl(url) {
|
|
17
21
|
};
|
18
22
|
export var linkify = LinkifyIt();
|
19
23
|
linkify.add('sourcetree:', 'http:');
|
24
|
+
linkify.add('jamfselfservice:', 'http:');
|
20
25
|
var tlds = 'biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф'.split('|');
|
21
26
|
var tlds2Char = 'a[cdefgilmnoqrtuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrtuvwxyz]|n[acefgilopruz]|om|p[aefghkmnrtw]|qa|r[eosuw]|s[abcdegijklmnrtuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]';
|
22
27
|
tlds.push(tlds2Char);
|
23
28
|
linkify.tlds(tlds, false);
|
24
|
-
export var LINK_REGEXP = /(https?|ftp):\/\/[^\s]+/;
|
29
|
+
export var LINK_REGEXP = /(https?|ftp|jamfselfservice):\/\/[^\s]+/;
|
25
30
|
export var linkifyMatch = function linkifyMatch(text) {
|
26
31
|
var matches = [];
|
27
32
|
|
package/dist/esm/version.json
CHANGED
@@ -1143,28 +1143,6 @@
|
|
1143
1143
|
}
|
1144
1144
|
]
|
1145
1145
|
},
|
1146
|
-
"bulletList_node": {
|
1147
|
-
"type": "object",
|
1148
|
-
"properties": {
|
1149
|
-
"type": {
|
1150
|
-
"enum": [
|
1151
|
-
"bulletList"
|
1152
|
-
]
|
1153
|
-
},
|
1154
|
-
"content": {
|
1155
|
-
"type": "array",
|
1156
|
-
"items": {
|
1157
|
-
"$ref": "#/definitions/listItem_node"
|
1158
|
-
},
|
1159
|
-
"minItems": 1
|
1160
|
-
}
|
1161
|
-
},
|
1162
|
-
"required": [
|
1163
|
-
"type",
|
1164
|
-
"content"
|
1165
|
-
],
|
1166
|
-
"additionalProperties": false
|
1167
|
-
},
|
1168
1146
|
"caption_node": {
|
1169
1147
|
"type": "object",
|
1170
1148
|
"properties": {
|
@@ -1348,15 +1326,15 @@
|
|
1348
1326
|
{
|
1349
1327
|
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
1350
1328
|
},
|
1351
|
-
{
|
1352
|
-
"$ref": "#/definitions/bulletList_node"
|
1353
|
-
},
|
1354
1329
|
{
|
1355
1330
|
"$ref": "#/definitions/mediaSingle_full_node"
|
1356
1331
|
},
|
1357
1332
|
{
|
1358
1333
|
"$ref": "#/definitions/mediaSingle_caption_node"
|
1359
1334
|
},
|
1335
|
+
{
|
1336
|
+
"$ref": "#/definitions/bulletList_node"
|
1337
|
+
},
|
1360
1338
|
{
|
1361
1339
|
"$ref": "#/definitions/orderedList_node"
|
1362
1340
|
}
|
@@ -1372,6 +1350,28 @@
|
|
1372
1350
|
],
|
1373
1351
|
"additionalProperties": false
|
1374
1352
|
},
|
1353
|
+
"bulletList_node": {
|
1354
|
+
"type": "object",
|
1355
|
+
"properties": {
|
1356
|
+
"type": {
|
1357
|
+
"enum": [
|
1358
|
+
"bulletList"
|
1359
|
+
]
|
1360
|
+
},
|
1361
|
+
"content": {
|
1362
|
+
"type": "array",
|
1363
|
+
"items": {
|
1364
|
+
"$ref": "#/definitions/listItem_node"
|
1365
|
+
},
|
1366
|
+
"minItems": 1
|
1367
|
+
}
|
1368
|
+
},
|
1369
|
+
"required": [
|
1370
|
+
"type",
|
1371
|
+
"content"
|
1372
|
+
],
|
1373
|
+
"additionalProperties": false
|
1374
|
+
},
|
1375
1375
|
"orderedList_node": {
|
1376
1376
|
"type": "object",
|
1377
1377
|
"properties": {
|
@@ -1392,12 +1392,9 @@
|
|
1392
1392
|
"properties": {
|
1393
1393
|
"order": {
|
1394
1394
|
"type": "number",
|
1395
|
-
"minimum":
|
1395
|
+
"minimum": 0
|
1396
1396
|
}
|
1397
1397
|
},
|
1398
|
-
"required": [
|
1399
|
-
"order"
|
1400
|
-
],
|
1401
1398
|
"additionalProperties": false
|
1402
1399
|
}
|
1403
1400
|
},
|
@@ -2075,15 +2072,15 @@
|
|
2075
2072
|
{
|
2076
2073
|
"$ref": "#/definitions/paragraph_with_alignment_node"
|
2077
2074
|
},
|
2078
|
-
{
|
2079
|
-
"$ref": "#/definitions/bulletList_node"
|
2080
|
-
},
|
2081
2075
|
{
|
2082
2076
|
"$ref": "#/definitions/mediaSingle_full_node"
|
2083
2077
|
},
|
2084
2078
|
{
|
2085
2079
|
"$ref": "#/definitions/mediaSingle_caption_node"
|
2086
2080
|
},
|
2081
|
+
{
|
2082
|
+
"$ref": "#/definitions/bulletList_node"
|
2083
|
+
},
|
2087
2084
|
{
|
2088
2085
|
"$ref": "#/definitions/orderedList_node"
|
2089
2086
|
},
|
@@ -2216,15 +2213,15 @@
|
|
2216
2213
|
{
|
2217
2214
|
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
2218
2215
|
},
|
2219
|
-
{
|
2220
|
-
"$ref": "#/definitions/bulletList_node"
|
2221
|
-
},
|
2222
2216
|
{
|
2223
2217
|
"$ref": "#/definitions/mediaSingle_full_node"
|
2224
2218
|
},
|
2225
2219
|
{
|
2226
2220
|
"$ref": "#/definitions/mediaSingle_caption_node"
|
2227
2221
|
},
|
2222
|
+
{
|
2223
|
+
"$ref": "#/definitions/bulletList_node"
|
2224
|
+
},
|
2228
2225
|
{
|
2229
2226
|
"$ref": "#/definitions/orderedList_node"
|
2230
2227
|
},
|
@@ -2433,15 +2430,15 @@
|
|
2433
2430
|
{
|
2434
2431
|
"$ref": "#/definitions/paragraph_with_indentation_node"
|
2435
2432
|
},
|
2436
|
-
{
|
2437
|
-
"$ref": "#/definitions/bulletList_node"
|
2438
|
-
},
|
2439
2433
|
{
|
2440
2434
|
"$ref": "#/definitions/mediaSingle_full_node"
|
2441
2435
|
},
|
2442
2436
|
{
|
2443
2437
|
"$ref": "#/definitions/mediaSingle_caption_node"
|
2444
2438
|
},
|
2439
|
+
{
|
2440
|
+
"$ref": "#/definitions/bulletList_node"
|
2441
|
+
},
|
2445
2442
|
{
|
2446
2443
|
"$ref": "#/definitions/orderedList_node"
|
2447
2444
|
},
|
@@ -2624,15 +2621,15 @@
|
|
2624
2621
|
{
|
2625
2622
|
"$ref": "#/definitions/paragraph_with_indentation_node"
|
2626
2623
|
},
|
2627
|
-
{
|
2628
|
-
"$ref": "#/definitions/bulletList_node"
|
2629
|
-
},
|
2630
2624
|
{
|
2631
2625
|
"$ref": "#/definitions/mediaSingle_full_node"
|
2632
2626
|
},
|
2633
2627
|
{
|
2634
2628
|
"$ref": "#/definitions/mediaSingle_caption_node"
|
2635
2629
|
},
|
2630
|
+
{
|
2631
|
+
"$ref": "#/definitions/bulletList_node"
|
2632
|
+
},
|
2636
2633
|
{
|
2637
2634
|
"$ref": "#/definitions/orderedList_node"
|
2638
2635
|
},
|
@@ -1143,28 +1143,6 @@
|
|
1143
1143
|
}
|
1144
1144
|
]
|
1145
1145
|
},
|
1146
|
-
"bulletList_node": {
|
1147
|
-
"type": "object",
|
1148
|
-
"properties": {
|
1149
|
-
"type": {
|
1150
|
-
"enum": [
|
1151
|
-
"bulletList"
|
1152
|
-
]
|
1153
|
-
},
|
1154
|
-
"content": {
|
1155
|
-
"type": "array",
|
1156
|
-
"items": {
|
1157
|
-
"$ref": "#/definitions/listItem_node"
|
1158
|
-
},
|
1159
|
-
"minItems": 1
|
1160
|
-
}
|
1161
|
-
},
|
1162
|
-
"required": [
|
1163
|
-
"type",
|
1164
|
-
"content"
|
1165
|
-
],
|
1166
|
-
"additionalProperties": false
|
1167
|
-
},
|
1168
1146
|
"caption_node": {
|
1169
1147
|
"type": "object",
|
1170
1148
|
"properties": {
|
@@ -1348,15 +1326,15 @@
|
|
1348
1326
|
{
|
1349
1327
|
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
1350
1328
|
},
|
1351
|
-
{
|
1352
|
-
"$ref": "#/definitions/bulletList_node"
|
1353
|
-
},
|
1354
1329
|
{
|
1355
1330
|
"$ref": "#/definitions/mediaSingle_full_node"
|
1356
1331
|
},
|
1357
1332
|
{
|
1358
1333
|
"$ref": "#/definitions/mediaSingle_caption_node"
|
1359
1334
|
},
|
1335
|
+
{
|
1336
|
+
"$ref": "#/definitions/bulletList_node"
|
1337
|
+
},
|
1360
1338
|
{
|
1361
1339
|
"$ref": "#/definitions/orderedList_node"
|
1362
1340
|
}
|
@@ -1372,6 +1350,28 @@
|
|
1372
1350
|
],
|
1373
1351
|
"additionalProperties": false
|
1374
1352
|
},
|
1353
|
+
"bulletList_node": {
|
1354
|
+
"type": "object",
|
1355
|
+
"properties": {
|
1356
|
+
"type": {
|
1357
|
+
"enum": [
|
1358
|
+
"bulletList"
|
1359
|
+
]
|
1360
|
+
},
|
1361
|
+
"content": {
|
1362
|
+
"type": "array",
|
1363
|
+
"items": {
|
1364
|
+
"$ref": "#/definitions/listItem_node"
|
1365
|
+
},
|
1366
|
+
"minItems": 1
|
1367
|
+
}
|
1368
|
+
},
|
1369
|
+
"required": [
|
1370
|
+
"type",
|
1371
|
+
"content"
|
1372
|
+
],
|
1373
|
+
"additionalProperties": false
|
1374
|
+
},
|
1375
1375
|
"orderedList_node": {
|
1376
1376
|
"type": "object",
|
1377
1377
|
"properties": {
|
@@ -1392,12 +1392,9 @@
|
|
1392
1392
|
"properties": {
|
1393
1393
|
"order": {
|
1394
1394
|
"type": "number",
|
1395
|
-
"minimum":
|
1395
|
+
"minimum": 0
|
1396
1396
|
}
|
1397
1397
|
},
|
1398
|
-
"required": [
|
1399
|
-
"order"
|
1400
|
-
],
|
1401
1398
|
"additionalProperties": false
|
1402
1399
|
}
|
1403
1400
|
},
|
@@ -2075,15 +2072,15 @@
|
|
2075
2072
|
{
|
2076
2073
|
"$ref": "#/definitions/paragraph_with_alignment_node"
|
2077
2074
|
},
|
2078
|
-
{
|
2079
|
-
"$ref": "#/definitions/bulletList_node"
|
2080
|
-
},
|
2081
2075
|
{
|
2082
2076
|
"$ref": "#/definitions/mediaSingle_full_node"
|
2083
2077
|
},
|
2084
2078
|
{
|
2085
2079
|
"$ref": "#/definitions/mediaSingle_caption_node"
|
2086
2080
|
},
|
2081
|
+
{
|
2082
|
+
"$ref": "#/definitions/bulletList_node"
|
2083
|
+
},
|
2087
2084
|
{
|
2088
2085
|
"$ref": "#/definitions/orderedList_node"
|
2089
2086
|
},
|
@@ -2216,15 +2213,15 @@
|
|
2216
2213
|
{
|
2217
2214
|
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
2218
2215
|
},
|
2219
|
-
{
|
2220
|
-
"$ref": "#/definitions/bulletList_node"
|
2221
|
-
},
|
2222
2216
|
{
|
2223
2217
|
"$ref": "#/definitions/mediaSingle_full_node"
|
2224
2218
|
},
|
2225
2219
|
{
|
2226
2220
|
"$ref": "#/definitions/mediaSingle_caption_node"
|
2227
2221
|
},
|
2222
|
+
{
|
2223
|
+
"$ref": "#/definitions/bulletList_node"
|
2224
|
+
},
|
2228
2225
|
{
|
2229
2226
|
"$ref": "#/definitions/orderedList_node"
|
2230
2227
|
},
|
@@ -2433,15 +2430,15 @@
|
|
2433
2430
|
{
|
2434
2431
|
"$ref": "#/definitions/paragraph_with_indentation_node"
|
2435
2432
|
},
|
2436
|
-
{
|
2437
|
-
"$ref": "#/definitions/bulletList_node"
|
2438
|
-
},
|
2439
2433
|
{
|
2440
2434
|
"$ref": "#/definitions/mediaSingle_full_node"
|
2441
2435
|
},
|
2442
2436
|
{
|
2443
2437
|
"$ref": "#/definitions/mediaSingle_caption_node"
|
2444
2438
|
},
|
2439
|
+
{
|
2440
|
+
"$ref": "#/definitions/bulletList_node"
|
2441
|
+
},
|
2445
2442
|
{
|
2446
2443
|
"$ref": "#/definitions/orderedList_node"
|
2447
2444
|
},
|
@@ -2660,15 +2657,15 @@
|
|
2660
2657
|
{
|
2661
2658
|
"$ref": "#/definitions/paragraph_with_indentation_node"
|
2662
2659
|
},
|
2663
|
-
{
|
2664
|
-
"$ref": "#/definitions/bulletList_node"
|
2665
|
-
},
|
2666
2660
|
{
|
2667
2661
|
"$ref": "#/definitions/mediaSingle_full_node"
|
2668
2662
|
},
|
2669
2663
|
{
|
2670
2664
|
"$ref": "#/definitions/mediaSingle_caption_node"
|
2671
2665
|
},
|
2666
|
+
{
|
2667
|
+
"$ref": "#/definitions/bulletList_node"
|
2668
|
+
},
|
2672
2669
|
{
|
2673
2670
|
"$ref": "#/definitions/orderedList_node"
|
2674
2671
|
},
|
package/dist/types/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette, colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, panel, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, } from './schema';
|
1
|
+
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette, colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, } from './schema';
|
2
2
|
export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, CodeDefinition, DataConsumerAttributes, DataConsumerDefinition, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmDefinition, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, FragmentAttributes, FragmentDefinition, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, IndentationMarkAttributes, IndentationMarkDefinition, Inline, InlineAtomic, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, LinkAttributes, LinkDefinition, ListItemArray, ListItemDefinition, MarksObject, MediaADFAttrs, MediaAttributes, MediaInlineAttributes, MediaInlineDefinition, MediaBaseAttributes, MediaDefinition, MediaDisplayType, MediaGroupDefinition, MediaSingleDefinition, MediaType, MentionAttributes, MentionDefinition, MentionUserType, NestedExpandContent, NestedExpandDefinition, NoMark, NonNestableBlockContent, OrderedListDefinition, PanelAttributes, PanelDefinition, ParagraphBaseDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, StrikeDefinition, StrongDefinition, SubSupAttributes, SubSupDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextColorAttributes, TextColorDefinition, TextDefinition, UnderlineDefinition, UrlType, AnnotationId, RichMediaAttributes, RichMediaLayout, AnnotationDataAttributes, CellDomAttrs, } from './schema';
|
3
3
|
export { B100, B400, B50, B500, B75, G200, G300, G400, G50, G500, G75, N0, N20, N200, N30, N300, N40, N50, N500, N60, N80, N800, N90, P100, P300, P400, P50, P500, P75, R100, R300, R400, R50, R500, R75, T100, T300, T50, T500, T75, Y200, Y400, Y50, Y500, Y75, acNameToEmoji, acShortcutToEmoji, emojiIdToAcName, generateUuid, getEmojiAcName, getLinkMatch, hexToRgb, hexToRgba, isHex, isRgb, isSafeUrl, linkify, linkifyMatch, normalizeHexColor, normalizeUrl, rgbToHex, uuid, } from './utils';
|
4
4
|
export type { Match, NameToEmoji } from './utils';
|
@@ -1,3 +1,9 @@
|
|
1
1
|
import { Schema } from 'prosemirror-model';
|
2
|
+
/**
|
3
|
+
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
4
|
+
**/
|
2
5
|
export declare const confluenceSchema: Schema;
|
6
|
+
/**
|
7
|
+
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
8
|
+
**/
|
3
9
|
export declare const confluenceSchemaWithMediaSingle: Schema;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { PanelType, blockCard, blockquote, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, media, mediaGroup, mediaSingle, mediaInline, mediaSingleWithCaption, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, panel, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, } from './nodes';
|
1
|
+
export { PanelType, blockCard, blockquote, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, media, mediaGroup, mediaSingle, mediaInline, mediaSingleWithCaption, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, } from './nodes';
|
2
2
|
export type { BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, Inline, InlineAtomic, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionBaseDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, ListItemArray, ListItemDefinition, MarksObject, MediaADFAttrs, MediaAttributes, MediaInlineAttributes, MediaInlineDefinition, MediaBaseAttributes, MediaDefinition, MediaDisplayType, MediaGroupDefinition, MediaSingleDefinition, MediaType, MentionAttributes, MentionDefinition, MentionUserType, NestedExpandContent, NestedExpandDefinition, NoMark, NonNestableBlockContent, OrderedListDefinition, PanelAttributes, PanelDefinition, ParagraphBaseDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextDefinition, UrlType, RichMediaAttributes, RichMediaLayout, CellDomAttrs, } from './nodes';
|
3
3
|
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette, colorPaletteExtended, confluenceInlineComment, dataConsumer, dataConsumerToJSON, em, fragment, fragmentToJSON, indentation, link, linkToJSON, strike, strong, subsup, textColor, typeAheadQuery, underline, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, } from './marks';
|
4
4
|
export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, CodeDefinition, EmDefinition, FragmentAttributes, FragmentDefinition, IndentationMarkAttributes, IndentationMarkDefinition, LinkAttributes, LinkDefinition, StrikeDefinition, StrongDefinition, SubSupAttributes, SubSupDefinition, TextColorAttributes, TextColorDefinition, UnderlineDefinition, AnnotationId, AnnotationDataAttributes, DataConsumerAttributes, DataConsumerDefinition, } from './marks';
|
@@ -1,4 +1,7 @@
|
|
1
1
|
import { Schema } from 'prosemirror-model';
|
2
|
+
/**
|
3
|
+
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
4
|
+
**/
|
2
5
|
export interface JIRASchemaConfig {
|
3
6
|
allowLists?: boolean;
|
4
7
|
allowMentions?: boolean;
|
@@ -12,15 +15,51 @@ export interface JIRASchemaConfig {
|
|
12
15
|
allowTextColor?: boolean;
|
13
16
|
allowTables?: boolean;
|
14
17
|
}
|
18
|
+
/**
|
19
|
+
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
20
|
+
**/
|
15
21
|
export default function makeSchema(config: JIRASchemaConfig): Schema<string, string>;
|
22
|
+
/**
|
23
|
+
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
24
|
+
**/
|
16
25
|
export declare function isSchemaWithLists(schema: Schema): boolean;
|
26
|
+
/**
|
27
|
+
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
28
|
+
**/
|
17
29
|
export declare function isSchemaWithMentions(schema: Schema): boolean;
|
30
|
+
/**
|
31
|
+
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
32
|
+
**/
|
18
33
|
export declare function isSchemaWithEmojis(schema: Schema): boolean;
|
34
|
+
/**
|
35
|
+
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
36
|
+
**/
|
19
37
|
export declare function isSchemaWithLinks(schema: Schema): boolean;
|
38
|
+
/**
|
39
|
+
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
40
|
+
**/
|
20
41
|
export declare function isSchemaWithAdvancedTextFormattingMarks(schema: Schema): boolean;
|
42
|
+
/**
|
43
|
+
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
44
|
+
**/
|
21
45
|
export declare function isSchemaWithSubSupMark(schema: Schema): boolean;
|
46
|
+
/**
|
47
|
+
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
48
|
+
**/
|
22
49
|
export declare function isSchemaWithCodeBlock(schema: Schema): boolean;
|
50
|
+
/**
|
51
|
+
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
52
|
+
**/
|
23
53
|
export declare function isSchemaWithBlockQuotes(schema: Schema): boolean;
|
54
|
+
/**
|
55
|
+
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
56
|
+
**/
|
24
57
|
export declare function isSchemaWithMedia(schema: Schema): boolean;
|
58
|
+
/**
|
59
|
+
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
60
|
+
**/
|
25
61
|
export declare function isSchemaWithTextColor(schema: Schema): boolean;
|
62
|
+
/**
|
63
|
+
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
64
|
+
**/
|
26
65
|
export declare function isSchemaWithTables(schema: Schema): boolean;
|
@@ -1,14 +1,3 @@
|
|
1
1
|
import { NodeSpec } from 'prosemirror-model';
|
2
|
-
import { ListItemDefinition as ListItemNode } from './list-item';
|
3
|
-
/**
|
4
|
-
* @name bulletList_node
|
5
|
-
*/
|
6
|
-
export interface BulletListDefinition {
|
7
|
-
type: 'bulletList';
|
8
|
-
/**
|
9
|
-
* @minItems 1
|
10
|
-
*/
|
11
|
-
content: Array<ListItemNode>;
|
12
|
-
}
|
13
2
|
export declare const bulletListSelector = ".ak-ul";
|
14
3
|
export declare const bulletList: NodeSpec;
|
@@ -8,7 +8,7 @@ export type { DocNode } from './doc';
|
|
8
8
|
export { blockquote } from './blockquote';
|
9
9
|
export type { BlockQuoteDefinition } from './blockquote';
|
10
10
|
export { bulletList, bulletListSelector } from './bullet-list';
|
11
|
-
export type { BulletListDefinition } from './
|
11
|
+
export type { BulletListDefinition } from './types/list';
|
12
12
|
export { codeBlock, toJSON as codeBlockToJSON } from './code-block';
|
13
13
|
export type { CodeBlockDefinition, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockWithMarksDefinition, } from './code-block';
|
14
14
|
export { hardBreak } from './hard-break';
|
@@ -17,8 +17,8 @@ export { heading } from './heading';
|
|
17
17
|
export type { HeadingDefinition, HeadingBaseDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, } from './heading';
|
18
18
|
export { rule } from './rule';
|
19
19
|
export type { RuleDefinition } from './rule';
|
20
|
-
export { orderedList, orderedListSelector } from './ordered-list';
|
21
|
-
export type { OrderedListDefinition } from './
|
20
|
+
export { orderedList, orderedListSelector, orderedListWithOrder, } from './ordered-list';
|
21
|
+
export type { OrderedListDefinition } from './types/list';
|
22
22
|
export { paragraph } from './paragraph';
|
23
23
|
export type { ParagraphDefinition, ParagraphBaseDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, } from './paragraph';
|
24
24
|
export { emoji } from './emoji';
|
@@ -27,7 +27,7 @@ export { image } from './image';
|
|
27
27
|
export { mention, toJSON as mentionToJSON } from './mention';
|
28
28
|
export type { MentionAttributes, UserType as MentionUserType, MentionDefinition, } from './mention';
|
29
29
|
export { listItem } from './list-item';
|
30
|
-
export type { ListItemArray, ListItemDefinition } from './list
|
30
|
+
export type { ListItemArray, ListItemDefinition } from './types/list';
|
31
31
|
export { panel, PanelType } from './panel';
|
32
32
|
export type { PanelAttributes, PanelDefinition } from './panel';
|
33
33
|
export { text } from './text';
|
@@ -1,20 +1,2 @@
|
|
1
1
|
import { NodeSpec } from 'prosemirror-model';
|
2
|
-
import { ParagraphDefinition as Paragraph } from './paragraph';
|
3
|
-
import { OrderedListDefinition as OrderedList } from './ordered-list';
|
4
|
-
import { BulletListDefinition as BulletList } from './bullet-list';
|
5
|
-
import { MediaSingleDefinition as MediaSingle } from './media-single';
|
6
|
-
import { CodeBlockDefinition as CodeBlock } from './code-block';
|
7
|
-
export interface ListItemArray extends Array<Paragraph | OrderedList | BulletList | MediaSingle | CodeBlock> {
|
8
|
-
0: Paragraph | MediaSingle | CodeBlock;
|
9
|
-
}
|
10
|
-
/**
|
11
|
-
* @name listItem_node
|
12
|
-
*/
|
13
|
-
export interface ListItemDefinition {
|
14
|
-
type: 'listItem';
|
15
|
-
/**
|
16
|
-
* @minItems 1
|
17
|
-
*/
|
18
|
-
content: ListItemArray;
|
19
|
-
}
|
20
2
|
export declare const listItem: NodeSpec;
|
@@ -36,6 +36,7 @@ export interface MediaBaseAttributes {
|
|
36
36
|
__fileMimeType?: string | null;
|
37
37
|
__displayType?: DisplayType | null;
|
38
38
|
__contextId?: string | null;
|
39
|
+
__mediaTraceId?: string | null;
|
39
40
|
__external?: boolean;
|
40
41
|
}
|
41
42
|
export interface MediaAttributes extends MediaBaseAttributes {
|