@atlaskit/editor-wikimarkup-transformer 11.20.9 → 11.20.11
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 +15 -0
- package/dist/cjs/encoder/nodes/listItem.js +1 -0
- package/dist/cjs/parser/utils/attrs.js +1 -0
- package/dist/es2019/encoder/nodes/listItem.js +1 -0
- package/dist/es2019/encoder/nodes/text.js +3 -1
- package/dist/es2019/parser/tokenize/heading.js +0 -1
- package/dist/es2019/parser/utils/attrs.js +1 -0
- package/dist/esm/encoder/nodes/listItem.js +1 -0
- package/dist/esm/parser/tokenize/heading.js +0 -1
- package/dist/esm/parser/utils/attrs.js +1 -0
- package/dist/types/encoder/index.d.ts +2 -2
- package/dist/types/encoder/marks/code.d.ts +1 -1
- package/dist/types/encoder/marks/color.d.ts +1 -1
- package/dist/types/encoder/marks/em.d.ts +1 -1
- package/dist/types/encoder/marks/link.d.ts +1 -1
- package/dist/types/encoder/marks/strike.d.ts +1 -1
- package/dist/types/encoder/marks/strong.d.ts +1 -1
- package/dist/types/encoder/marks/subsup.d.ts +1 -1
- package/dist/types/encoder/marks/underline.d.ts +1 -1
- package/dist/types/encoder/nodes/block-card.d.ts +1 -1
- package/dist/types/encoder/nodes/blockquote.d.ts +1 -1
- package/dist/types/encoder/nodes/bodied-sync-block.d.ts +1 -1
- package/dist/types/encoder/nodes/bullet-list.d.ts +1 -1
- package/dist/types/encoder/nodes/caption.d.ts +1 -1
- package/dist/types/encoder/nodes/code-block.d.ts +1 -1
- package/dist/types/encoder/nodes/date.d.ts +1 -1
- package/dist/types/encoder/nodes/decisionItem.d.ts +2 -2
- package/dist/types/encoder/nodes/decisionList.d.ts +1 -1
- package/dist/types/encoder/nodes/doc.d.ts +1 -1
- package/dist/types/encoder/nodes/embed-card.d.ts +1 -1
- package/dist/types/encoder/nodes/emoji.d.ts +1 -1
- package/dist/types/encoder/nodes/expand.d.ts +1 -1
- package/dist/types/encoder/nodes/hard-break.d.ts +1 -1
- package/dist/types/encoder/nodes/heading.d.ts +1 -1
- package/dist/types/encoder/nodes/inline-card.d.ts +1 -1
- package/dist/types/encoder/nodes/inlines.d.ts +1 -1
- package/dist/types/encoder/nodes/listItem.d.ts +2 -2
- package/dist/types/encoder/nodes/media-group.d.ts +1 -1
- package/dist/types/encoder/nodes/media-inline.d.ts +1 -1
- package/dist/types/encoder/nodes/media.d.ts +1 -1
- package/dist/types/encoder/nodes/mention.d.ts +1 -1
- package/dist/types/encoder/nodes/ordered-list.d.ts +1 -1
- package/dist/types/encoder/nodes/panel.d.ts +1 -1
- package/dist/types/encoder/nodes/paragraph.d.ts +1 -1
- package/dist/types/encoder/nodes/rule.d.ts +1 -1
- package/dist/types/encoder/nodes/status.d.ts +1 -1
- package/dist/types/encoder/nodes/table.d.ts +1 -1
- package/dist/types/encoder/nodes/taskItem.d.ts +2 -2
- package/dist/types/encoder/nodes/taskList.d.ts +1 -1
- package/dist/types/encoder/nodes/text.d.ts +1 -1
- package/dist/types/encoder/nodes/unknown.d.ts +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/interfaces.d.ts +1 -1
- package/dist/types/parser/abstract-tree.d.ts +2 -2
- package/dist/types/parser/builder/list-builder.d.ts +2 -2
- package/dist/types/parser/builder/table-builder.d.ts +2 -2
- package/dist/types/parser/nodes/mediaGroup.d.ts +2 -2
- package/dist/types/parser/nodes/mediaSingle.d.ts +2 -2
- package/dist/types/parser/nodes/paragraph.d.ts +1 -1
- package/dist/types/parser/nodes/rule.d.ts +1 -1
- package/dist/types/parser/nodes/text.d.ts +1 -1
- package/dist/types/parser/text.d.ts +2 -2
- package/dist/types/parser/tokenize/adf-macro.d.ts +1 -1
- package/dist/types/parser/tokenize/anchor-macro.d.ts +1 -1
- package/dist/types/parser/tokenize/blockquote.d.ts +1 -1
- package/dist/types/parser/tokenize/citation.d.ts +1 -1
- package/dist/types/parser/tokenize/code-macro.d.ts +1 -1
- package/dist/types/parser/tokenize/common-macro.d.ts +3 -3
- package/dist/types/parser/tokenize/dash-token-creator.d.ts +1 -1
- package/dist/types/parser/tokenize/deleted.d.ts +1 -1
- package/dist/types/parser/tokenize/double-dash-symbol.d.ts +1 -1
- package/dist/types/parser/tokenize/emoji.d.ts +1 -1
- package/dist/types/parser/tokenize/emphasis.d.ts +1 -1
- package/dist/types/parser/tokenize/file-link.d.ts +2 -2
- package/dist/types/parser/tokenize/force-line-break.d.ts +1 -1
- package/dist/types/parser/tokenize/hardbreak.d.ts +1 -1
- package/dist/types/parser/tokenize/heading.d.ts +1 -1
- package/dist/types/parser/tokenize/index.d.ts +2 -2
- package/dist/types/parser/tokenize/inserted.d.ts +1 -1
- package/dist/types/parser/tokenize/issue-key.d.ts +3 -3
- package/dist/types/parser/tokenize/link-text.d.ts +1 -1
- package/dist/types/parser/tokenize/links/attachment-link.d.ts +3 -3
- package/dist/types/parser/tokenize/links/issue-link.d.ts +3 -3
- package/dist/types/parser/tokenize/links/link-format.d.ts +1 -1
- package/dist/types/parser/tokenize/links/link-resolver.d.ts +4 -4
- package/dist/types/parser/tokenize/links/mention-link.d.ts +3 -3
- package/dist/types/parser/tokenize/links/url-link.d.ts +3 -3
- package/dist/types/parser/tokenize/list.d.ts +1 -1
- package/dist/types/parser/tokenize/media.d.ts +1 -1
- package/dist/types/parser/tokenize/monospace.d.ts +1 -1
- package/dist/types/parser/tokenize/noformat-macro.d.ts +1 -1
- package/dist/types/parser/tokenize/panel-macro.d.ts +1 -1
- package/dist/types/parser/tokenize/quadruple-dash-symbol.d.ts +1 -1
- package/dist/types/parser/tokenize/ruler.d.ts +1 -1
- package/dist/types/parser/tokenize/strong.d.ts +1 -1
- package/dist/types/parser/tokenize/subscript.d.ts +1 -1
- package/dist/types/parser/tokenize/superscript.d.ts +1 -1
- package/dist/types/parser/tokenize/triple-dash-symbol.d.ts +1 -1
- package/dist/types/parser/utils/escape.d.ts +1 -1
- package/dist/types/parser/utils/normalize.d.ts +1 -1
- package/dist/types/parser/utils/text.d.ts +1 -1
- package/dist/types/parser/utils/title.d.ts +1 -1
- package/dist/types-ts4.5/encoder/index.d.ts +2 -2
- package/dist/types-ts4.5/encoder/marks/code.d.ts +1 -1
- package/dist/types-ts4.5/encoder/marks/color.d.ts +1 -1
- package/dist/types-ts4.5/encoder/marks/em.d.ts +1 -1
- package/dist/types-ts4.5/encoder/marks/link.d.ts +1 -1
- package/dist/types-ts4.5/encoder/marks/strike.d.ts +1 -1
- package/dist/types-ts4.5/encoder/marks/strong.d.ts +1 -1
- package/dist/types-ts4.5/encoder/marks/subsup.d.ts +1 -1
- package/dist/types-ts4.5/encoder/marks/underline.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/block-card.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/blockquote.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/bodied-sync-block.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/bullet-list.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/caption.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/code-block.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/date.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/decisionItem.d.ts +2 -2
- package/dist/types-ts4.5/encoder/nodes/decisionList.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/doc.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/embed-card.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/emoji.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/expand.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/hard-break.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/heading.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/inline-card.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/inlines.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/listItem.d.ts +2 -2
- package/dist/types-ts4.5/encoder/nodes/media-group.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/media-inline.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/media.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/mention.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/ordered-list.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/panel.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/paragraph.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/rule.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/status.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/table.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/taskItem.d.ts +2 -2
- package/dist/types-ts4.5/encoder/nodes/taskList.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/text.d.ts +1 -1
- package/dist/types-ts4.5/encoder/nodes/unknown.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +2 -2
- package/dist/types-ts4.5/interfaces.d.ts +1 -1
- package/dist/types-ts4.5/parser/abstract-tree.d.ts +2 -2
- package/dist/types-ts4.5/parser/builder/list-builder.d.ts +2 -2
- package/dist/types-ts4.5/parser/builder/table-builder.d.ts +2 -2
- package/dist/types-ts4.5/parser/nodes/mediaGroup.d.ts +2 -2
- package/dist/types-ts4.5/parser/nodes/mediaSingle.d.ts +2 -2
- package/dist/types-ts4.5/parser/nodes/paragraph.d.ts +1 -1
- package/dist/types-ts4.5/parser/nodes/rule.d.ts +1 -1
- package/dist/types-ts4.5/parser/nodes/text.d.ts +1 -1
- package/dist/types-ts4.5/parser/text.d.ts +2 -2
- package/dist/types-ts4.5/parser/tokenize/adf-macro.d.ts +1 -1
- package/dist/types-ts4.5/parser/tokenize/anchor-macro.d.ts +1 -1
- package/dist/types-ts4.5/parser/tokenize/blockquote.d.ts +1 -1
- package/dist/types-ts4.5/parser/tokenize/citation.d.ts +1 -1
- package/dist/types-ts4.5/parser/tokenize/code-macro.d.ts +1 -1
- package/dist/types-ts4.5/parser/tokenize/common-macro.d.ts +3 -3
- package/dist/types-ts4.5/parser/tokenize/dash-token-creator.d.ts +1 -1
- package/dist/types-ts4.5/parser/tokenize/deleted.d.ts +1 -1
- package/dist/types-ts4.5/parser/tokenize/double-dash-symbol.d.ts +1 -1
- package/dist/types-ts4.5/parser/tokenize/emoji.d.ts +1 -1
- package/dist/types-ts4.5/parser/tokenize/emphasis.d.ts +1 -1
- package/dist/types-ts4.5/parser/tokenize/file-link.d.ts +2 -2
- package/dist/types-ts4.5/parser/tokenize/force-line-break.d.ts +1 -1
- package/dist/types-ts4.5/parser/tokenize/hardbreak.d.ts +1 -1
- package/dist/types-ts4.5/parser/tokenize/heading.d.ts +1 -1
- package/dist/types-ts4.5/parser/tokenize/index.d.ts +2 -2
- package/dist/types-ts4.5/parser/tokenize/inserted.d.ts +1 -1
- package/dist/types-ts4.5/parser/tokenize/issue-key.d.ts +3 -3
- package/dist/types-ts4.5/parser/tokenize/link-text.d.ts +1 -1
- package/dist/types-ts4.5/parser/tokenize/links/attachment-link.d.ts +3 -3
- package/dist/types-ts4.5/parser/tokenize/links/issue-link.d.ts +3 -3
- package/dist/types-ts4.5/parser/tokenize/links/link-format.d.ts +1 -1
- package/dist/types-ts4.5/parser/tokenize/links/link-resolver.d.ts +4 -4
- package/dist/types-ts4.5/parser/tokenize/links/mention-link.d.ts +3 -3
- package/dist/types-ts4.5/parser/tokenize/links/url-link.d.ts +3 -3
- package/dist/types-ts4.5/parser/tokenize/list.d.ts +1 -1
- package/dist/types-ts4.5/parser/tokenize/media.d.ts +1 -1
- package/dist/types-ts4.5/parser/tokenize/monospace.d.ts +1 -1
- package/dist/types-ts4.5/parser/tokenize/noformat-macro.d.ts +1 -1
- package/dist/types-ts4.5/parser/tokenize/panel-macro.d.ts +1 -1
- package/dist/types-ts4.5/parser/tokenize/quadruple-dash-symbol.d.ts +1 -1
- package/dist/types-ts4.5/parser/tokenize/ruler.d.ts +1 -1
- package/dist/types-ts4.5/parser/tokenize/strong.d.ts +1 -1
- package/dist/types-ts4.5/parser/tokenize/subscript.d.ts +1 -1
- package/dist/types-ts4.5/parser/tokenize/superscript.d.ts +1 -1
- package/dist/types-ts4.5/parser/tokenize/triple-dash-symbol.d.ts +1 -1
- package/dist/types-ts4.5/parser/utils/escape.d.ts +1 -1
- package/dist/types-ts4.5/parser/utils/normalize.d.ts +1 -1
- package/dist/types-ts4.5/parser/utils/text.d.ts +1 -1
- package/dist/types-ts4.5/parser/utils/title.d.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-wikimarkup-transformer
|
|
2
2
|
|
|
3
|
+
## 11.20.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e974c7d2d3aef`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e974c7d2d3aef) -
|
|
8
|
+
Mechanical type-import autofix for editor-wikimarkup-transformer.
|
|
9
|
+
|
|
10
|
+
## 11.20.10
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`0f4a08b633f6e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0f4a08b633f6e) -
|
|
15
|
+
Internal changes to remove unnecessary token fallbacks and imports from `@atlaskit/theme`
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 11.20.9
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -30,6 +30,7 @@ var listItem = exports.listItem = function listItem(node, prefix, context) {
|
|
|
30
30
|
result.push("".concat(prefix, " ").concat(contentBuffer.join('\n')));
|
|
31
31
|
contentBuffer = [];
|
|
32
32
|
}
|
|
33
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
33
34
|
var nestedList = (0, _.encode)(n, context).split('\n').map(function (line) {
|
|
34
35
|
if (['#', '*'].indexOf(line.substr(0, 1)) !== -1) {
|
|
35
36
|
return "".concat(prefix).concat(line);
|
|
@@ -14,6 +14,7 @@ function parseAttrs(str) {
|
|
|
14
14
|
}
|
|
15
15
|
var attributesStr = str.split(sep);
|
|
16
16
|
attributesStr.forEach(function (attributeStr) {
|
|
17
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
17
18
|
var _attributeStr$split = attributeStr.split('='),
|
|
18
19
|
_attributeStr$split2 = (0, _toArray2.default)(_attributeStr$split),
|
|
19
20
|
key = _attributeStr$split2[0],
|
|
@@ -24,6 +24,7 @@ export const listItem = (node, prefix, context) => {
|
|
|
24
24
|
result.push(`${prefix} ${contentBuffer.join('\n')}`);
|
|
25
25
|
contentBuffer = [];
|
|
26
26
|
}
|
|
27
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
27
28
|
const nestedList = encode(n, context).split('\n').map(line => {
|
|
28
29
|
if (['#', '*'].indexOf(line.substr(0, 1)) !== -1) {
|
|
29
30
|
return `${prefix}${line}`;
|
|
@@ -42,7 +42,9 @@ const isEscapeNeeded = (node, parent) => {
|
|
|
42
42
|
* ADFEXP-131: Improved logic for escaping metacharacters "[" and "!"
|
|
43
43
|
*/
|
|
44
44
|
function escapingWikiFormatter(text) {
|
|
45
|
-
const pattern = [MENTION_ESCAPE_PATTERN,
|
|
45
|
+
const pattern = [MENTION_ESCAPE_PATTERN,
|
|
46
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
47
|
+
...macroKeywordTokenMap.map(macro => `(${macro.regex.source.replace('^', '')})`)].join('|');
|
|
46
48
|
return text
|
|
47
49
|
// Ignored via go/ees005
|
|
48
50
|
// eslint-disable-next-line require-unicode-regexp
|
|
@@ -5,6 +5,7 @@ export function parseAttrs(str, sep = '|') {
|
|
|
5
5
|
}
|
|
6
6
|
const attributesStr = str.split(sep);
|
|
7
7
|
attributesStr.forEach(attributeStr => {
|
|
8
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
8
9
|
const [key, ...value] = attributeStr.split('=');
|
|
9
10
|
// take only first value of the same keys
|
|
10
11
|
if (!output[key]) {
|
|
@@ -24,6 +24,7 @@ export var listItem = function listItem(node, prefix, context) {
|
|
|
24
24
|
result.push("".concat(prefix, " ").concat(contentBuffer.join('\n')));
|
|
25
25
|
contentBuffer = [];
|
|
26
26
|
}
|
|
27
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
27
28
|
var nestedList = encode(n, context).split('\n').map(function (line) {
|
|
28
29
|
if (['#', '*'].indexOf(line.substr(0, 1)) !== -1) {
|
|
29
30
|
return "".concat(prefix).concat(line);
|
|
@@ -7,6 +7,7 @@ export function parseAttrs(str) {
|
|
|
7
7
|
}
|
|
8
8
|
var attributesStr = str.split(sep);
|
|
9
9
|
attributesStr.forEach(function (attributeStr) {
|
|
10
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
10
11
|
var _attributeStr$split = attributeStr.split('='),
|
|
11
12
|
_attributeStr$split2 = _toArray(_attributeStr$split),
|
|
12
13
|
key = _attributeStr$split2[0],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { Context } from '../interfaces';
|
|
3
3
|
export type MarkEncoder = (text: string, attrs: any) => string;
|
|
4
4
|
export type NodeEncoder = (node: PMNode, opts?: NodeEncoderOpts) => string;
|
|
5
5
|
export type NodeEncoderOpts = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { MarkEncoder } from '..';
|
|
2
2
|
export declare const code: MarkEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { MarkEncoder } from '..';
|
|
2
2
|
export declare const textColor: MarkEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { MarkEncoder } from '..';
|
|
2
2
|
export declare const em: MarkEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { MarkEncoder } from '..';
|
|
2
2
|
export declare const link: MarkEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { MarkEncoder } from '..';
|
|
2
2
|
export declare const strike: MarkEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { MarkEncoder } from '..';
|
|
2
2
|
export declare const subsup: MarkEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { MarkEncoder } from '..';
|
|
2
2
|
export declare const underline: MarkEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const blockCard: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const blockquote: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const bodiedSyncBlock: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const bulletList: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const caption: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const codeBlock: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const date: NodeEncoder;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { NodeEncoderOpts } from '..';
|
|
3
3
|
export declare const decisionItem: (node: PMNode, { context }?: NodeEncoderOpts) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const decisionList: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '../';
|
|
2
2
|
export declare const doc: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const embedCard: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const emoji: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const expand: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const hardBreak: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const heading: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const inlineCard: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const inlines: NodeEncoder;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { Context } from '../../interfaces';
|
|
3
3
|
export declare const listItem: (node: PMNode, prefix: string, context?: Context) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const mediaGroup: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const mediaInline: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const media: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const mention: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const orderedList: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const panel: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const paragraph: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const rule: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const status: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const table: NodeEncoder;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { NodeEncoderOpts } from '..';
|
|
3
3
|
export declare const taskItem: (node: PMNode, nestedLevel: number, { context }?: NodeEncoderOpts) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const taskList: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const text: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NodeEncoder } from '..';
|
|
2
2
|
export declare const unknown: NodeEncoder;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { Context } from './interfaces';
|
|
3
3
|
interface Transformer<T> {
|
|
4
4
|
encode: (node: PMNode) => T;
|
|
5
5
|
parse: (content: T) => PMNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { Context } from '../interfaces';
|
|
3
3
|
export default class AbstractTree {
|
|
4
4
|
private schema;
|
|
5
5
|
private wikiMarkup;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { AddArgs, ListType } from '../../interfaces';
|
|
3
3
|
/**
|
|
4
4
|
* Return the type of a list from the bullets
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { AddCellArgs, Builder } from '../../interfaces';
|
|
3
3
|
export declare class TableBuilder implements Builder {
|
|
4
4
|
private schema;
|
|
5
5
|
private root;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { Context } from '../../interfaces';
|
|
3
3
|
export default function getMediaGroupNodeView(schema: Schema, filename: string, context?: Context): PMNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { Context } from '../../interfaces';
|
|
3
3
|
export default function getMediaSingleNodeView(schema: Schema, filename: string, attrs: {
|
|
4
4
|
[key: string]: string;
|
|
5
5
|
}, context?: Context): PMNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export declare function createEmptyParagraphNode(schema: Schema): PMNode;
|
|
3
3
|
/**
|
|
4
4
|
* Create paragraphs from inline nodes. Function will return
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Node as PMNode, NodeType, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export default function getRuleNodeView(schema: Schema, containerNodeType: NodeType | null): PMNode;
|
|
3
3
|
export declare function createRuleNode(schema: Schema): PMNode[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Mark as PMMark, Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export declare function createTextNode(input: string, schema: Schema, marks?: PMMark[]): PMNode[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import { TokenType } from './tokenize';
|
|
3
|
-
import {
|
|
3
|
+
import type { Context } from '../interfaces';
|
|
4
4
|
export declare function parseString({ input, schema, ignoreTokenTypes, context, includeLeadingSpace, }: {
|
|
5
5
|
context: Context;
|
|
6
6
|
ignoreTokenTypes: TokenType[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TokenParser } from '.';
|
|
2
2
|
export declare const adfMacro: TokenParser;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TokenParser } from '.';
|
|
2
2
|
export declare const anchorMacro: TokenParser;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TokenParser } from './';
|
|
2
2
|
export declare const blockquote: TokenParser;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TokenParser } from './';
|
|
2
2
|
export declare const citation: TokenParser;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TokenParser } from '.';
|
|
2
2
|
export declare const codeMacro: TokenParser;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { Token } from './';
|
|
3
|
+
import type { Context } from '../../interfaces';
|
|
4
4
|
export interface MacroOption {
|
|
5
5
|
context: Context;
|
|
6
6
|
keyword: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TextToken, TokenParser } from './';
|
|
2
2
|
export declare const createDashTokenParser: (token: TextToken, fallback: TextToken) => TokenParser;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TokenParser } from './';
|
|
2
2
|
export declare const deleted: TokenParser;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TokenParser } from './';
|
|
2
2
|
export declare const doubleDashSymbol: TokenParser;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TokenParser } from './';
|
|
2
2
|
export declare const emphasis: TokenParser;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { Token } from './';
|
|
3
3
|
export declare function fileLink(input: string, position: number, schema: Schema): Token;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TokenParser } from './';
|
|
2
2
|
export declare const forceLineBreak: TokenParser;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TokenParser } from './';
|
|
2
2
|
export declare const hardbreak: TokenParser;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TokenParser } from './';
|
|
2
2
|
export declare const heading: TokenParser;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { Context } from '../../interfaces';
|
|
3
3
|
export declare enum TokenType {
|
|
4
4
|
ADF_MACRO = "ADF_MACRO",// {adf}
|
|
5
5
|
ANCHOR_MACRO = "ANCHOR_MACRO",// {anchor}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TokenParser } from './';
|
|
2
2
|
export declare const inserted: TokenParser;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { Schema, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { TokenParser } from './';
|
|
3
|
+
import type { Context, ConversionMap } from '../../interfaces';
|
|
4
4
|
/**
|
|
5
5
|
* Inline Card From Text (ICFT).
|
|
6
6
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { ContentLink } from './link-parser';
|
|
2
|
+
import type { Schema, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import type { Context } from '../../../interfaces';
|
|
4
4
|
export declare function attachmentLinkResolver(link: ContentLink, schema: Schema, context: Context): PMNode[] | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { ContentLink } from './link-parser';
|
|
2
|
+
import type { Schema, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import type { Context } from '../../../interfaces';
|
|
4
4
|
export declare function issueLinkResolver(link: ContentLink, schema: Schema, context: Context): PMNode[] | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TokenParser } from '../';
|
|
2
2
|
export declare const linkFormat: TokenParser;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import type { ContentLink } from './link-parser';
|
|
2
|
+
import type { Token } from '../index';
|
|
3
|
+
import type { Context } from '../../../interfaces';
|
|
4
|
+
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
export declare function resolveLink(link: ContentLink, schema: Schema, context: Context): Token | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { ContentLink } from './link-parser';
|
|
2
|
+
import type { Schema, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import type { Context } from '../../../interfaces';
|
|
4
4
|
export declare function mentionLinkResolver(link: ContentLink, schema: Schema, context: Context): PMNode[] | undefined;
|