@atlaskit/editor-wikimarkup-transformer 11.4.0 → 11.4.2
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 +16 -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/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/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/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/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/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/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 +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-wikimarkup-transformer
|
|
2
2
|
|
|
3
|
+
## 11.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
|
|
8
|
+
[`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
|
|
9
|
+
[ED-23332] Update adf-schema package to 36.10.1
|
|
10
|
+
|
|
11
|
+
## 11.4.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
|
|
16
|
+
[`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
|
|
17
|
+
ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
|
|
18
|
+
|
|
3
19
|
## 11.4.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { Context } from '../interfaces';
|
|
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 { MarkEncoder } from '..';
|
|
1
|
+
import { type MarkEncoder } from '..';
|
|
2
2
|
export declare const code: MarkEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MarkEncoder } from '..';
|
|
1
|
+
import { type MarkEncoder } from '..';
|
|
2
2
|
export declare const textColor: MarkEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MarkEncoder } from '..';
|
|
1
|
+
import { type MarkEncoder } from '..';
|
|
2
2
|
export declare const em: MarkEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MarkEncoder } from '..';
|
|
1
|
+
import { type MarkEncoder } from '..';
|
|
2
2
|
export declare const link: MarkEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MarkEncoder } from '..';
|
|
1
|
+
import { type MarkEncoder } from '..';
|
|
2
2
|
export declare const strike: MarkEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MarkEncoder } from '..';
|
|
1
|
+
import { type MarkEncoder } from '..';
|
|
2
2
|
export declare const subsup: MarkEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MarkEncoder } from '..';
|
|
1
|
+
import { type MarkEncoder } from '..';
|
|
2
2
|
export declare const underline: MarkEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NodeEncoder } from '..';
|
|
1
|
+
import { type NodeEncoder } from '..';
|
|
2
2
|
export declare const blockCard: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NodeEncoder } from '..';
|
|
1
|
+
import { type NodeEncoder } from '..';
|
|
2
2
|
export declare const blockquote: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NodeEncoder } from '..';
|
|
1
|
+
import { type NodeEncoder } from '..';
|
|
2
2
|
export declare const bulletList: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NodeEncoder } from '..';
|
|
1
|
+
import { type NodeEncoder } from '..';
|
|
2
2
|
export declare const caption: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NodeEncoder } from '..';
|
|
1
|
+
import { type NodeEncoder } from '..';
|
|
2
2
|
export declare const codeBlock: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NodeEncoder } from '..';
|
|
1
|
+
import { type NodeEncoder } from '..';
|
|
2
2
|
export declare const date: NodeEncoder;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { NodeEncoderOpts } from '..';
|
|
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 { NodeEncoder } from '..';
|
|
1
|
+
import { type NodeEncoder } from '..';
|
|
2
2
|
export declare const decisionList: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NodeEncoder } from '../';
|
|
1
|
+
import { type NodeEncoder } from '../';
|
|
2
2
|
export declare const doc: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NodeEncoder } from '..';
|
|
1
|
+
import { type NodeEncoder } from '..';
|
|
2
2
|
export declare const embedCard: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NodeEncoder } from '..';
|
|
1
|
+
import { type NodeEncoder } from '..';
|
|
2
2
|
export declare const emoji: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NodeEncoder } from '..';
|
|
1
|
+
import { type NodeEncoder } from '..';
|
|
2
2
|
export declare const expand: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NodeEncoder } from '..';
|
|
1
|
+
import { type NodeEncoder } from '..';
|
|
2
2
|
export declare const hardBreak: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NodeEncoder } from '..';
|
|
1
|
+
import { type NodeEncoder } from '..';
|
|
2
2
|
export declare const heading: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NodeEncoder } from '..';
|
|
1
|
+
import { type NodeEncoder } from '..';
|
|
2
2
|
export declare const inlineCard: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NodeEncoder } from '..';
|
|
1
|
+
import { type NodeEncoder } from '..';
|
|
2
2
|
export declare const inlines: NodeEncoder;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { Context } from '../../interfaces';
|
|
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 { NodeEncoder } from '..';
|
|
1
|
+
import { type NodeEncoder } from '..';
|
|
2
2
|
export declare const mediaGroup: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NodeEncoder } from '..';
|
|
1
|
+
import { type NodeEncoder } from '..';
|
|
2
2
|
export declare const mediaInline: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NodeEncoder } from '..';
|
|
1
|
+
import { type NodeEncoder } from '..';
|
|
2
2
|
export declare const media: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NodeEncoder } from '..';
|
|
1
|
+
import { type NodeEncoder } from '..';
|
|
2
2
|
export declare const mention: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NodeEncoder } from '..';
|
|
1
|
+
import { type NodeEncoder } from '..';
|
|
2
2
|
export declare const orderedList: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NodeEncoder } from '..';
|
|
1
|
+
import { type NodeEncoder } from '..';
|
|
2
2
|
export declare const panel: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NodeEncoder } from '..';
|
|
1
|
+
import { type NodeEncoder } from '..';
|
|
2
2
|
export declare const paragraph: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NodeEncoder } from '..';
|
|
1
|
+
import { type NodeEncoder } from '..';
|
|
2
2
|
export declare const rule: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NodeEncoder } from '..';
|
|
1
|
+
import { type NodeEncoder } from '..';
|
|
2
2
|
export declare const status: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NodeEncoder } from '..';
|
|
1
|
+
import { type NodeEncoder } from '..';
|
|
2
2
|
export declare const table: NodeEncoder;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { NodeEncoderOpts } from '..';
|
|
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 { NodeEncoder } from '..';
|
|
1
|
+
import { type NodeEncoder } from '..';
|
|
2
2
|
export declare const taskList: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NodeEncoder } from '..';
|
|
1
|
+
import { type NodeEncoder } from '..';
|
|
2
2
|
export declare const text: NodeEncoder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NodeEncoder } from '..';
|
|
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 { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { Context } from './interfaces';
|
|
1
|
+
import { type Node as PMNode, type 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 { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { Context } from '../interfaces';
|
|
1
|
+
import { type Node as PMNode, type 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 { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { AddArgs, ListType } from '../../interfaces';
|
|
1
|
+
import { type Node as PMNode, type Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { type AddArgs, type ListType } from '../../interfaces';
|
|
3
3
|
/**
|
|
4
4
|
* Return the type of a list from the bullets
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { AddCellArgs, Builder } from '../../interfaces';
|
|
1
|
+
import { type Node as PMNode, type Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { type AddCellArgs, type 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 { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { Context } from '../../interfaces';
|
|
1
|
+
import { type Node as PMNode, type 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 { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { Context } from '../../interfaces';
|
|
1
|
+
import { type Node as PMNode, type 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 { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import { type Node as PMNode, type 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 { Node as PMNode, NodeType, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import { type Node as PMNode, type NodeType, type 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 { Mark as PMMark, Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import { type Mark as PMMark, type Node as PMNode, type 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 { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import { type Node as PMNode, type Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import { TokenType } from './tokenize';
|
|
3
|
-
import { Context } from '../interfaces';
|
|
3
|
+
import { type Context } from '../interfaces';
|
|
4
4
|
export declare function parseString({ input, schema, ignoreTokenTypes, context, includeLeadingSpace, }: {
|
|
5
5
|
input: string;
|
|
6
6
|
schema: Schema;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TokenParser } from '.';
|
|
1
|
+
import { type TokenParser } from '.';
|
|
2
2
|
export declare const adfMacro: TokenParser;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TokenParser } from '.';
|
|
1
|
+
import { type TokenParser } from '.';
|
|
2
2
|
export declare const anchorMacro: TokenParser;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TokenParser } from './';
|
|
1
|
+
import { type TokenParser } from './';
|
|
2
2
|
export declare const blockquote: TokenParser;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TokenParser } from './';
|
|
1
|
+
import { type TokenParser } from './';
|
|
2
2
|
export declare const citation: TokenParser;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TokenParser } from '.';
|
|
1
|
+
import { type TokenParser } from '.';
|
|
2
2
|
export declare const codeMacro: TokenParser;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { Token } from './';
|
|
3
|
-
import { Context } from '../../interfaces';
|
|
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
|
keyword: string;
|
|
6
6
|
paired: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TextToken, TokenParser } from './';
|
|
1
|
+
import { type TextToken, type TokenParser } from './';
|
|
2
2
|
export declare const createDashTokenParser: (token: TextToken, fallback: TextToken) => TokenParser;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TokenParser } from './';
|
|
1
|
+
import { type TokenParser } from './';
|
|
2
2
|
export declare const deleted: TokenParser;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TokenParser } from './';
|
|
1
|
+
import { type TokenParser } from './';
|
|
2
2
|
export declare const emphasis: TokenParser;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { Token } from './';
|
|
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 { TokenParser } from './';
|
|
1
|
+
import { type TokenParser } from './';
|
|
2
2
|
export declare const forceLineBreak: TokenParser;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TokenParser } from './';
|
|
1
|
+
import { type TokenParser } from './';
|
|
2
2
|
export declare const hardbreak: TokenParser;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TokenParser } from './';
|
|
1
|
+
import { type TokenParser } from './';
|
|
2
2
|
export declare const heading: TokenParser;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { Context } from '../../interfaces';
|
|
1
|
+
import { type Node as PMNode, type 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 { TokenParser } from './';
|
|
1
|
+
import { type TokenParser } from './';
|
|
2
2
|
export declare const inserted: TokenParser;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Schema, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { TokenParser } from './';
|
|
3
|
-
import { Context, ConversionMap } from '../../interfaces';
|
|
1
|
+
import { type Schema, type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { type TokenParser } from './';
|
|
3
|
+
import { type Context, type ConversionMap } from '../../interfaces';
|
|
4
4
|
/**
|
|
5
5
|
* Inline Card From Text (ICFT).
|
|
6
6
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContentLink } from './link-parser';
|
|
2
|
-
import { Schema, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import { Context } from '../../../interfaces';
|
|
1
|
+
import { type ContentLink } from './link-parser';
|
|
2
|
+
import { type Schema, type 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 { ContentLink } from './link-parser';
|
|
2
|
-
import { Schema, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import { Context } from '../../../interfaces';
|
|
1
|
+
import { type ContentLink } from './link-parser';
|
|
2
|
+
import { type Schema, type 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 { TokenParser } from '../';
|
|
1
|
+
import { type TokenParser } from '../';
|
|
2
2
|
export declare const linkFormat: TokenParser;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ContentLink } from './link-parser';
|
|
2
|
-
import { Token } from '../index';
|
|
3
|
-
import { Context } from '../../../interfaces';
|
|
4
|
-
import { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
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 { ContentLink } from './link-parser';
|
|
2
|
-
import { Schema, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import { Context } from '../../../interfaces';
|
|
1
|
+
import { type ContentLink } from './link-parser';
|
|
2
|
+
import { type Schema, type 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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContentLink } from './link-parser';
|
|
2
|
-
import { Context } from '../../../interfaces';
|
|
3
|
-
import { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import { type ContentLink } from './link-parser';
|
|
2
|
+
import { type Context } from '../../../interfaces';
|
|
3
|
+
import { type Node as PMNode, type Schema } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
export declare function urlLinkResolver(link: ContentLink, schema: Schema, context: Context): PMNode[] | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TokenParser } from './';
|
|
1
|
+
import { type TokenParser } from './';
|
|
2
2
|
export declare const media: TokenParser;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TokenParser } from './';
|
|
1
|
+
import { type TokenParser } from './';
|
|
2
2
|
export declare const monospace: TokenParser;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TokenParser } from '.';
|
|
1
|
+
import { type TokenParser } from '.';
|
|
2
2
|
export declare const noformatMacro: TokenParser;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TokenParser } from '.';
|
|
1
|
+
import { type TokenParser } from '.';
|
|
2
2
|
export declare const panelMacro: TokenParser;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TokenParser } from './';
|
|
1
|
+
import { type TokenParser } from './';
|
|
2
2
|
export declare const quadrupleDashSymbol: TokenParser;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TokenParser } from './';
|
|
1
|
+
import { type TokenParser } from './';
|
|
2
2
|
export declare const ruler: TokenParser;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TokenParser } from './';
|
|
1
|
+
import { type TokenParser } from './';
|
|
2
2
|
export declare const strong: TokenParser;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TokenParser } from './';
|
|
1
|
+
import { type TokenParser } from './';
|
|
2
2
|
export declare const subscript: TokenParser;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TokenParser } from './';
|
|
1
|
+
import { type TokenParser } from './';
|
|
2
2
|
export declare const superscript: TokenParser;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TextToken } from '../tokenize';
|
|
1
|
+
import { type TextToken } from '../tokenize';
|
|
2
2
|
export declare function escapeHandler(input: string, position: number): TextToken;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import { type Node as PMNode, type Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export declare function normalizePMNodes(nodes: PMNode[], schema: Schema, parentNode?: string): PMNode[];
|
|
3
3
|
export declare function normalizeInlineNodes(nodes: PMNode[], schema: Schema, parentNode?: string): PMNode[];
|
|
4
4
|
export declare function isNextLineEmpty(input: string): boolean;
|