@atlaskit/editor-wikimarkup-transformer 11.20.16 → 12.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/char/package.json +1 -8
- package/dist/cjs/encoder/marks/__base.js +12 -8
- package/dist/cjs/parser/builder/list-builder.js +5 -3
- package/dist/cjs/parser/builder/table-builder.js +5 -3
- package/dist/cjs/parser/nodes/mediaSingle.js +5 -6
- package/dist/cjs/parser/tokenize/common-formatter.js +5 -8
- package/dist/cjs/parser/tokenize/dash-token-creator.js +5 -3
- package/dist/cjs/parser/tokenize/issue-key.js +2 -1
- package/dist/cjs/parser/tokenize/link-text.js +5 -7
- package/dist/cjs/parser/tokenize/links/url-link.js +4 -3
- package/dist/cjs/parser/utils/text.js +5 -3
- package/dist/es2019/encoder/marks/__base.js +12 -8
- package/dist/es2019/parser/builder/list-builder.js +5 -3
- package/dist/es2019/parser/builder/table-builder.js +5 -3
- package/dist/es2019/parser/nodes/mediaSingle.js +5 -6
- package/dist/es2019/parser/tokenize/common-formatter.js +6 -8
- package/dist/es2019/parser/tokenize/dash-token-creator.js +5 -3
- package/dist/es2019/parser/tokenize/issue-key.js +2 -1
- package/dist/es2019/parser/tokenize/link-text.js +5 -7
- package/dist/es2019/parser/tokenize/links/url-link.js +4 -3
- package/dist/es2019/parser/utils/text.js +5 -3
- package/dist/esm/encoder/marks/__base.js +12 -8
- package/dist/esm/parser/builder/list-builder.js +5 -3
- package/dist/esm/parser/builder/table-builder.js +5 -3
- package/dist/esm/parser/nodes/mediaSingle.js +5 -6
- package/dist/esm/parser/tokenize/common-formatter.js +6 -8
- package/dist/esm/parser/tokenize/dash-token-creator.js +5 -3
- package/dist/esm/parser/tokenize/issue-key.js +2 -1
- package/dist/esm/parser/tokenize/link-text.js +5 -7
- package/dist/esm/parser/tokenize/links/url-link.js +4 -3
- package/dist/esm/parser/utils/text.js +5 -3
- package/interfaces/package.json +1 -8
- package/package.json +8 -16
- package/dist/types-ts4.5/char.d.ts +0 -1
- package/dist/types-ts4.5/encoder/emoji-unicode-mapping.d.ts +0 -3
- package/dist/types-ts4.5/encoder/index.d.ts +0 -9
- package/dist/types-ts4.5/encoder/marks/__base.d.ts +0 -5
- package/dist/types-ts4.5/encoder/marks/code.d.ts +0 -2
- package/dist/types-ts4.5/encoder/marks/color.d.ts +0 -2
- package/dist/types-ts4.5/encoder/marks/em.d.ts +0 -2
- package/dist/types-ts4.5/encoder/marks/link.d.ts +0 -2
- package/dist/types-ts4.5/encoder/marks/strike.d.ts +0 -2
- package/dist/types-ts4.5/encoder/marks/strong.d.ts +0 -6
- package/dist/types-ts4.5/encoder/marks/subsup.d.ts +0 -2
- package/dist/types-ts4.5/encoder/marks/underline.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/block-card.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/blockquote.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/bodied-sync-block.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/bullet-list.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/caption.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/code-block.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/date.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/decisionItem.d.ts +0 -3
- package/dist/types-ts4.5/encoder/nodes/decisionList.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/doc.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/embed-card.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/emoji.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/expand.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/hard-break.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/heading.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/inline-card.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/inlines.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/listItem.d.ts +0 -3
- package/dist/types-ts4.5/encoder/nodes/media-group.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/media-inline.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/media.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/mention.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/ordered-list.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/panel.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/paragraph.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/rule.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/status.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/table.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/taskItem.d.ts +0 -3
- package/dist/types-ts4.5/encoder/nodes/taskList.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/text.d.ts +0 -2
- package/dist/types-ts4.5/encoder/nodes/unknown.d.ts +0 -2
- package/dist/types-ts4.5/index.d.ts +0 -15
- package/dist/types-ts4.5/interfaces.d.ts +0 -74
- package/dist/types-ts4.5/parser/abstract-tree.d.ts +0 -11
- package/dist/types-ts4.5/parser/builder/list-builder.d.ts +0 -66
- package/dist/types-ts4.5/parser/builder/table-builder.d.ts +0 -45
- package/dist/types-ts4.5/parser/color.d.ts +0 -3
- package/dist/types-ts4.5/parser/error.d.ts +0 -1
- package/dist/types-ts4.5/parser/nodes/mediaGroup.d.ts +0 -3
- package/dist/types-ts4.5/parser/nodes/mediaSingle.d.ts +0 -5
- package/dist/types-ts4.5/parser/nodes/paragraph.d.ts +0 -7
- package/dist/types-ts4.5/parser/nodes/rule.d.ts +0 -3
- package/dist/types-ts4.5/parser/nodes/text.d.ts +0 -2
- package/dist/types-ts4.5/parser/text.d.ts +0 -10
- package/dist/types-ts4.5/parser/tokenize/adf-macro.d.ts +0 -2
- package/dist/types-ts4.5/parser/tokenize/anchor-macro.d.ts +0 -2
- package/dist/types-ts4.5/parser/tokenize/blockquote.d.ts +0 -2
- package/dist/types-ts4.5/parser/tokenize/citation.d.ts +0 -2
- package/dist/types-ts4.5/parser/tokenize/code-macro.d.ts +0 -2
- package/dist/types-ts4.5/parser/tokenize/color-macro.d.ts +0 -2
- package/dist/types-ts4.5/parser/tokenize/common-formatter.d.ts +0 -10
- package/dist/types-ts4.5/parser/tokenize/common-macro.d.ts +0 -10
- package/dist/types-ts4.5/parser/tokenize/dash-token-creator.d.ts +0 -2
- package/dist/types-ts4.5/parser/tokenize/deleted.d.ts +0 -2
- package/dist/types-ts4.5/parser/tokenize/double-dash-symbol.d.ts +0 -2
- package/dist/types-ts4.5/parser/tokenize/emoji.d.ts +0 -15
- package/dist/types-ts4.5/parser/tokenize/emphasis.d.ts +0 -2
- package/dist/types-ts4.5/parser/tokenize/file-link.d.ts +0 -3
- package/dist/types-ts4.5/parser/tokenize/force-line-break.d.ts +0 -2
- package/dist/types-ts4.5/parser/tokenize/hardbreak.d.ts +0 -2
- package/dist/types-ts4.5/parser/tokenize/heading.d.ts +0 -2
- package/dist/types-ts4.5/parser/tokenize/index.d.ts +0 -55
- package/dist/types-ts4.5/parser/tokenize/inserted.d.ts +0 -2
- package/dist/types-ts4.5/parser/tokenize/issue-key.d.ts +0 -20
- package/dist/types-ts4.5/parser/tokenize/keyword.d.ts +0 -19
- package/dist/types-ts4.5/parser/tokenize/link-text.d.ts +0 -3
- package/dist/types-ts4.5/parser/tokenize/links/attachment-link.d.ts +0 -4
- package/dist/types-ts4.5/parser/tokenize/links/issue-link.d.ts +0 -4
- package/dist/types-ts4.5/parser/tokenize/links/link-format.d.ts +0 -2
- package/dist/types-ts4.5/parser/tokenize/links/link-parser.d.ts +0 -17
- package/dist/types-ts4.5/parser/tokenize/links/link-resolver.d.ts +0 -5
- package/dist/types-ts4.5/parser/tokenize/links/mention-link.d.ts +0 -4
- package/dist/types-ts4.5/parser/tokenize/links/url-link.d.ts +0 -4
- package/dist/types-ts4.5/parser/tokenize/list.d.ts +0 -3
- package/dist/types-ts4.5/parser/tokenize/media.d.ts +0 -2
- package/dist/types-ts4.5/parser/tokenize/monospace.d.ts +0 -2
- package/dist/types-ts4.5/parser/tokenize/noformat-macro.d.ts +0 -2
- package/dist/types-ts4.5/parser/tokenize/panel-macro.d.ts +0 -2
- package/dist/types-ts4.5/parser/tokenize/quadruple-dash-symbol.d.ts +0 -2
- package/dist/types-ts4.5/parser/tokenize/quote-macro.d.ts +0 -8
- package/dist/types-ts4.5/parser/tokenize/ruler.d.ts +0 -2
- package/dist/types-ts4.5/parser/tokenize/strong.d.ts +0 -2
- package/dist/types-ts4.5/parser/tokenize/subscript.d.ts +0 -2
- package/dist/types-ts4.5/parser/tokenize/superscript.d.ts +0 -2
- package/dist/types-ts4.5/parser/tokenize/table.d.ts +0 -2
- package/dist/types-ts4.5/parser/tokenize/triple-dash-symbol.d.ts +0 -2
- package/dist/types-ts4.5/parser/tokenize/whitespace.d.ts +0 -3
- package/dist/types-ts4.5/parser/utils/attrs.d.ts +0 -3
- package/dist/types-ts4.5/parser/utils/color-name-mapping.d.ts +0 -10
- package/dist/types-ts4.5/parser/utils/escape.d.ts +0 -2
- package/dist/types-ts4.5/parser/utils/normalize.d.ts +0 -5
- package/dist/types-ts4.5/parser/utils/panel-type.d.ts +0 -3
- package/dist/types-ts4.5/parser/utils/text.d.ts +0 -25
- package/dist/types-ts4.5/parser/utils/title.d.ts +0 -7
- package/dist/types-ts4.5/parser/utils/url.d.ts +0 -8
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { TokenType } from './tokenize';
|
|
3
|
-
import type { Context } from '../interfaces';
|
|
4
|
-
export declare function parseString({ input, schema, ignoreTokenTypes, context, includeLeadingSpace, }: {
|
|
5
|
-
context: Context;
|
|
6
|
-
ignoreTokenTypes: TokenType[];
|
|
7
|
-
includeLeadingSpace?: boolean;
|
|
8
|
-
input: string;
|
|
9
|
-
schema: Schema;
|
|
10
|
-
}): PMNode[];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import type { Token } from './';
|
|
3
|
-
import type { Context } from '../../interfaces';
|
|
4
|
-
export interface FormatterOption {
|
|
5
|
-
closing: string;
|
|
6
|
-
context: Context;
|
|
7
|
-
opening: string;
|
|
8
|
-
rawContentProcessor: (raw: string, length: number) => Token;
|
|
9
|
-
}
|
|
10
|
-
export declare function commonFormatter(input: string, position: number, schema: Schema, opt: FormatterOption): Token;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import type { Token } from './';
|
|
3
|
-
import type { Context } from '../../interfaces';
|
|
4
|
-
export interface MacroOption {
|
|
5
|
-
context: Context;
|
|
6
|
-
keyword: string;
|
|
7
|
-
paired: boolean;
|
|
8
|
-
rawContentProcessor: (rawAttrs: string, rawContent: string, length: number, schema: Schema, context: Context) => Token;
|
|
9
|
-
}
|
|
10
|
-
export declare function commonMacro(input: string, schema: Schema, opt: MacroOption): Token;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { TokenParser } from './';
|
|
2
|
-
export declare const emoji: TokenParser;
|
|
3
|
-
interface AdfEmojiItems {
|
|
4
|
-
[key: string]: {
|
|
5
|
-
id: string;
|
|
6
|
-
shortName: string;
|
|
7
|
-
text: string;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
export declare const adfEmojiItems: AdfEmojiItems;
|
|
11
|
-
export interface WikiToEmojiMapping {
|
|
12
|
-
[key: string]: string;
|
|
13
|
-
}
|
|
14
|
-
export declare const wikiToAdfEmojiMapping: WikiToEmojiMapping;
|
|
15
|
-
export {};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import type { Context } from '../../interfaces';
|
|
3
|
-
export declare enum TokenType {
|
|
4
|
-
ADF_MACRO = "ADF_MACRO",// {adf}
|
|
5
|
-
ANCHOR_MACRO = "ANCHOR_MACRO",// {anchor}
|
|
6
|
-
CODE_MACRO = "CODE_MACRO",// {code}
|
|
7
|
-
QUOTE_MACRO = "QUOTE_MACRO",// {quote}
|
|
8
|
-
NOFORMAT_MACRO = "NOFORMAT_MACRO",// {noformat}
|
|
9
|
-
PANEL_MACRO = "PANEL_MACRO",// {panel}
|
|
10
|
-
COLOR_MACRO = "COLOR_MACRO",// {color}
|
|
11
|
-
LOREM_MACRO = "LOREM_MACRO",// {loremipsum}
|
|
12
|
-
QUOTE = "QUOTE",
|
|
13
|
-
STRING = "STRING",
|
|
14
|
-
ISSUE_KEY = "ISSUE_KEY",
|
|
15
|
-
LINK_FORMAT = "LINK_FORMAT",
|
|
16
|
-
LINK_TEXT = "LINK_TEXT",
|
|
17
|
-
MEDIA = "MEDIA",
|
|
18
|
-
HEADING = "HEADING",
|
|
19
|
-
LIST = "LIST",
|
|
20
|
-
TABLE = "TABLE",
|
|
21
|
-
RULER = "RULER",
|
|
22
|
-
HARD_BREAK = "HARD_BREAK",// \\, \r, \n, \r\n
|
|
23
|
-
DOUBLE_DASH_SYMBOL = "DOUBLE_DASH_SYMBOL",// --
|
|
24
|
-
TRIPLE_DASH_SYMBOL = "TRIPLE_DASH_SYMBOL",// ---
|
|
25
|
-
QUADRUPLE_DASH_SYMBOL = "QUADRUPLE_DASH_SYMBOL",// ----
|
|
26
|
-
STRONG = "STRONG",// *strong*
|
|
27
|
-
MONOSPACE = "MONOSPACE",// {{text}}
|
|
28
|
-
SUPERSCRIPT = "SUPERSCRIPT",// ^superscript^
|
|
29
|
-
SUBSCRIPT = "SUBSCRIPT",// ^subscript^
|
|
30
|
-
EMPHASIS = "EMPHASIS",// _emphasis_
|
|
31
|
-
CITATION = "CITATION",// ??citation??
|
|
32
|
-
DELETED = "DELETED",// -deleted-
|
|
33
|
-
INSERTED = "INSERTED",// +deleted+
|
|
34
|
-
EMOJI = "EMOJI",// :)
|
|
35
|
-
FORCE_LINE_BREAK = "FORCE_LINE_BREAK"
|
|
36
|
-
}
|
|
37
|
-
export interface TextToken {
|
|
38
|
-
readonly length: number;
|
|
39
|
-
readonly text: string;
|
|
40
|
-
readonly type: 'text';
|
|
41
|
-
}
|
|
42
|
-
export interface PMNodeToken {
|
|
43
|
-
readonly length: number;
|
|
44
|
-
readonly nodes: PMNode[];
|
|
45
|
-
readonly type: 'pmnode';
|
|
46
|
-
}
|
|
47
|
-
export type TokenErrCallback = (err: Error, tokenType: string) => void;
|
|
48
|
-
export type Token = TextToken | PMNodeToken;
|
|
49
|
-
export type TokenParser = ({ input, position, schema, context, }: {
|
|
50
|
-
context: Context;
|
|
51
|
-
input: string;
|
|
52
|
-
position: number;
|
|
53
|
-
schema: Schema;
|
|
54
|
-
}) => Token;
|
|
55
|
-
export declare function parseToken(input: string, type: TokenType, position: number, schema: Schema, context: Context): Token;
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
/**
|
|
5
|
-
* Inline Card From Text (ICFT).
|
|
6
|
-
*
|
|
7
|
-
* When we convert WikiMarkup to ADF we stamp all issue keys URLs with the
|
|
8
|
-
* #icft= syntax to identify which keys should be involved by brackets
|
|
9
|
-
* [XX-999] from the ones which should be blue links in the ADF to WikiMarkup
|
|
10
|
-
* convertion.
|
|
11
|
-
*/
|
|
12
|
-
export declare const INLINE_CARD_FROM_TEXT_STAMP: RegExp;
|
|
13
|
-
export interface Issue {
|
|
14
|
-
key: string;
|
|
15
|
-
url: string;
|
|
16
|
-
}
|
|
17
|
-
export declare const issueKey: TokenParser;
|
|
18
|
-
export declare const getIssue: (context: Context, key: string) => Issue | null;
|
|
19
|
-
export declare const buildInlineCard: (schema: Schema, issue: Issue) => PMNode[];
|
|
20
|
-
export declare const buildIssueKeyRegex: (inlineCardConversion?: ConversionMap) => RegExp | undefined;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { TokenType } from './';
|
|
2
|
-
interface KeywordToken {
|
|
3
|
-
regex: RegExp;
|
|
4
|
-
type: TokenType;
|
|
5
|
-
}
|
|
6
|
-
export declare const macroKeywordTokenMap: KeywordToken[];
|
|
7
|
-
export declare function parseMacroKeyword(input: string): {
|
|
8
|
-
type: TokenType;
|
|
9
|
-
} | null;
|
|
10
|
-
export declare function parseOtherKeyword(input: string): {
|
|
11
|
-
type: TokenType;
|
|
12
|
-
} | null;
|
|
13
|
-
export declare function parseLeadingKeyword(input: string): {
|
|
14
|
-
type: TokenType;
|
|
15
|
-
} | null;
|
|
16
|
-
export declare function parseIssueKeyword(input: string, issueKeyRegex?: RegExp): {
|
|
17
|
-
type: TokenType;
|
|
18
|
-
} | null;
|
|
19
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|
-
export declare function attachmentLinkResolver(link: ContentLink, schema: Schema, context: Context): PMNode[] | undefined;
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|
-
export declare function issueLinkResolver(link: ContentLink, schema: Schema, context: Context): PMNode[] | undefined;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface Link {
|
|
2
|
-
readonly linkBody: string | null;
|
|
3
|
-
readonly linkTitle: string | null;
|
|
4
|
-
readonly notLinkBody: string;
|
|
5
|
-
readonly originalLinkText: string;
|
|
6
|
-
}
|
|
7
|
-
export declare function parseLink(linkText: string): Link;
|
|
8
|
-
export interface ContentLink extends Link {
|
|
9
|
-
readonly anchor: string | null;
|
|
10
|
-
readonly attachmentName: string | null;
|
|
11
|
-
readonly contentId: number;
|
|
12
|
-
readonly destinationTitle: string;
|
|
13
|
-
readonly shortcutName: string | null;
|
|
14
|
-
readonly shortcutValue: string | null;
|
|
15
|
-
readonly spaceKey: string | null;
|
|
16
|
-
}
|
|
17
|
-
export declare function parseContentLink(link: Link | string): ContentLink;
|
|
@@ -1,5 +0,0 @@
|
|
|
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
|
-
export declare function resolveLink(link: ContentLink, schema: Schema, context: Context): Token | undefined;
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|
-
export declare function mentionLinkResolver(link: ContentLink, schema: Schema, context: Context): PMNode[] | undefined;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ContentLink } from './link-parser';
|
|
2
|
-
import type { Context } from '../../../interfaces';
|
|
3
|
-
import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
-
export declare function urlLinkResolver(link: ContentLink, schema: Schema, context: Context): PMNode[] | undefined;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import type { Token, TokenParser } from '.';
|
|
3
|
-
import type { Context } from '../../interfaces';
|
|
4
|
-
export declare const quoteMacro: TokenParser;
|
|
5
|
-
export declare const rawContentProcessor: (_rawAttrs: string, rawContent: string, length: number, schema: Schema, context: Context) => Token;
|
|
6
|
-
export type Writeable<T> = {
|
|
7
|
-
-readonly [P in keyof T]: T[P];
|
|
8
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
export declare function normalizePMNodes(nodes: PMNode[], schema: Schema, parentNode?: string): PMNode[];
|
|
3
|
-
export declare function normalizeNestedExpands(nodes: PMNode[], schema: Schema, parentNode?: string): PMNode[];
|
|
4
|
-
export declare function normalizeInlineNodes(nodes: PMNode[], schema: Schema, _parentNode?: string): PMNode[];
|
|
5
|
-
export declare function isNextLineEmpty(input: string): boolean;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
/**
|
|
3
|
-
* Check if the node has certain marks
|
|
4
|
-
*/
|
|
5
|
-
export declare function hasAnyOfMarks(node: PMNode, types: string[]): boolean;
|
|
6
|
-
export declare function isDigit(value: string): boolean;
|
|
7
|
-
export declare function isBlank(value: string | null): boolean;
|
|
8
|
-
export declare function isNotBlank(value: string | null): boolean;
|
|
9
|
-
/**
|
|
10
|
-
* ESS-2375 Returns the beginning and closing symbol to parse a token
|
|
11
|
-
*/
|
|
12
|
-
export declare const getSurroundingSymbols: (trimmedInput: string, openingText: string, closingText: string) => Record<string, string>;
|
|
13
|
-
export declare class StringBuffer {
|
|
14
|
-
private buffer;
|
|
15
|
-
constructor(buffer?: string);
|
|
16
|
-
indexOf(value: string): number;
|
|
17
|
-
lastIndexOf(value: string): number;
|
|
18
|
-
charAt(index: number): string;
|
|
19
|
-
length(): number;
|
|
20
|
-
delete(start: number, end: number): void;
|
|
21
|
-
append(value: string): void;
|
|
22
|
-
substring(start: number, end?: number): string;
|
|
23
|
-
deleteCharAt(index: number): void;
|
|
24
|
-
toString(): string;
|
|
25
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
/**
|
|
3
|
-
* This will return ADF to replace the titles in some macro
|
|
4
|
-
* For example
|
|
5
|
-
* {panel:title}aaa{panel}
|
|
6
|
-
*/
|
|
7
|
-
export declare function title(text: string, schema: Schema): PMNode;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* returns a correctly percent-encoded & sanitized url.
|
|
3
|
-
* Will fallback to using a DOM based implementation if the `URL` class
|
|
4
|
-
* doesn't exist.
|
|
5
|
-
*
|
|
6
|
-
* @param raw a 'raw' url (possibly mixed percent-encoded).
|
|
7
|
-
*/
|
|
8
|
-
export declare function decode(raw: string): string;
|