@atlaskit/editor-wikimarkup-transformer 11.20.15 → 12.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.
Files changed (142) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/char/package.json +1 -8
  3. package/dist/cjs/encoder/marks/__base.js +12 -8
  4. package/dist/cjs/parser/builder/list-builder.js +5 -3
  5. package/dist/cjs/parser/builder/table-builder.js +5 -3
  6. package/dist/cjs/parser/nodes/mediaSingle.js +5 -6
  7. package/dist/cjs/parser/tokenize/common-formatter.js +5 -8
  8. package/dist/cjs/parser/tokenize/dash-token-creator.js +5 -3
  9. package/dist/cjs/parser/tokenize/issue-key.js +2 -1
  10. package/dist/cjs/parser/tokenize/link-text.js +5 -7
  11. package/dist/cjs/parser/tokenize/links/url-link.js +4 -3
  12. package/dist/cjs/parser/utils/text.js +5 -3
  13. package/dist/es2019/encoder/marks/__base.js +12 -8
  14. package/dist/es2019/parser/builder/list-builder.js +5 -3
  15. package/dist/es2019/parser/builder/table-builder.js +5 -3
  16. package/dist/es2019/parser/nodes/mediaSingle.js +5 -6
  17. package/dist/es2019/parser/tokenize/common-formatter.js +6 -8
  18. package/dist/es2019/parser/tokenize/dash-token-creator.js +5 -3
  19. package/dist/es2019/parser/tokenize/issue-key.js +2 -1
  20. package/dist/es2019/parser/tokenize/link-text.js +5 -7
  21. package/dist/es2019/parser/tokenize/links/url-link.js +4 -3
  22. package/dist/es2019/parser/utils/text.js +5 -3
  23. package/dist/esm/encoder/marks/__base.js +12 -8
  24. package/dist/esm/parser/builder/list-builder.js +5 -3
  25. package/dist/esm/parser/builder/table-builder.js +5 -3
  26. package/dist/esm/parser/nodes/mediaSingle.js +5 -6
  27. package/dist/esm/parser/tokenize/common-formatter.js +6 -8
  28. package/dist/esm/parser/tokenize/dash-token-creator.js +5 -3
  29. package/dist/esm/parser/tokenize/issue-key.js +2 -1
  30. package/dist/esm/parser/tokenize/link-text.js +5 -7
  31. package/dist/esm/parser/tokenize/links/url-link.js +4 -3
  32. package/dist/esm/parser/utils/text.js +5 -3
  33. package/interfaces/package.json +1 -8
  34. package/package.json +8 -16
  35. package/dist/types-ts4.5/char.d.ts +0 -1
  36. package/dist/types-ts4.5/encoder/emoji-unicode-mapping.d.ts +0 -3
  37. package/dist/types-ts4.5/encoder/index.d.ts +0 -9
  38. package/dist/types-ts4.5/encoder/marks/__base.d.ts +0 -5
  39. package/dist/types-ts4.5/encoder/marks/code.d.ts +0 -2
  40. package/dist/types-ts4.5/encoder/marks/color.d.ts +0 -2
  41. package/dist/types-ts4.5/encoder/marks/em.d.ts +0 -2
  42. package/dist/types-ts4.5/encoder/marks/link.d.ts +0 -2
  43. package/dist/types-ts4.5/encoder/marks/strike.d.ts +0 -2
  44. package/dist/types-ts4.5/encoder/marks/strong.d.ts +0 -6
  45. package/dist/types-ts4.5/encoder/marks/subsup.d.ts +0 -2
  46. package/dist/types-ts4.5/encoder/marks/underline.d.ts +0 -2
  47. package/dist/types-ts4.5/encoder/nodes/block-card.d.ts +0 -2
  48. package/dist/types-ts4.5/encoder/nodes/blockquote.d.ts +0 -2
  49. package/dist/types-ts4.5/encoder/nodes/bodied-sync-block.d.ts +0 -2
  50. package/dist/types-ts4.5/encoder/nodes/bullet-list.d.ts +0 -2
  51. package/dist/types-ts4.5/encoder/nodes/caption.d.ts +0 -2
  52. package/dist/types-ts4.5/encoder/nodes/code-block.d.ts +0 -2
  53. package/dist/types-ts4.5/encoder/nodes/date.d.ts +0 -2
  54. package/dist/types-ts4.5/encoder/nodes/decisionItem.d.ts +0 -3
  55. package/dist/types-ts4.5/encoder/nodes/decisionList.d.ts +0 -2
  56. package/dist/types-ts4.5/encoder/nodes/doc.d.ts +0 -2
  57. package/dist/types-ts4.5/encoder/nodes/embed-card.d.ts +0 -2
  58. package/dist/types-ts4.5/encoder/nodes/emoji.d.ts +0 -2
  59. package/dist/types-ts4.5/encoder/nodes/expand.d.ts +0 -2
  60. package/dist/types-ts4.5/encoder/nodes/hard-break.d.ts +0 -2
  61. package/dist/types-ts4.5/encoder/nodes/heading.d.ts +0 -2
  62. package/dist/types-ts4.5/encoder/nodes/inline-card.d.ts +0 -2
  63. package/dist/types-ts4.5/encoder/nodes/inlines.d.ts +0 -2
  64. package/dist/types-ts4.5/encoder/nodes/listItem.d.ts +0 -3
  65. package/dist/types-ts4.5/encoder/nodes/media-group.d.ts +0 -2
  66. package/dist/types-ts4.5/encoder/nodes/media-inline.d.ts +0 -2
  67. package/dist/types-ts4.5/encoder/nodes/media.d.ts +0 -2
  68. package/dist/types-ts4.5/encoder/nodes/mention.d.ts +0 -2
  69. package/dist/types-ts4.5/encoder/nodes/ordered-list.d.ts +0 -2
  70. package/dist/types-ts4.5/encoder/nodes/panel.d.ts +0 -2
  71. package/dist/types-ts4.5/encoder/nodes/paragraph.d.ts +0 -2
  72. package/dist/types-ts4.5/encoder/nodes/rule.d.ts +0 -2
  73. package/dist/types-ts4.5/encoder/nodes/status.d.ts +0 -2
  74. package/dist/types-ts4.5/encoder/nodes/table.d.ts +0 -2
  75. package/dist/types-ts4.5/encoder/nodes/taskItem.d.ts +0 -3
  76. package/dist/types-ts4.5/encoder/nodes/taskList.d.ts +0 -2
  77. package/dist/types-ts4.5/encoder/nodes/text.d.ts +0 -2
  78. package/dist/types-ts4.5/encoder/nodes/unknown.d.ts +0 -2
  79. package/dist/types-ts4.5/index.d.ts +0 -15
  80. package/dist/types-ts4.5/interfaces.d.ts +0 -74
  81. package/dist/types-ts4.5/parser/abstract-tree.d.ts +0 -11
  82. package/dist/types-ts4.5/parser/builder/list-builder.d.ts +0 -66
  83. package/dist/types-ts4.5/parser/builder/table-builder.d.ts +0 -45
  84. package/dist/types-ts4.5/parser/color.d.ts +0 -3
  85. package/dist/types-ts4.5/parser/error.d.ts +0 -1
  86. package/dist/types-ts4.5/parser/nodes/mediaGroup.d.ts +0 -3
  87. package/dist/types-ts4.5/parser/nodes/mediaSingle.d.ts +0 -5
  88. package/dist/types-ts4.5/parser/nodes/paragraph.d.ts +0 -7
  89. package/dist/types-ts4.5/parser/nodes/rule.d.ts +0 -3
  90. package/dist/types-ts4.5/parser/nodes/text.d.ts +0 -2
  91. package/dist/types-ts4.5/parser/text.d.ts +0 -10
  92. package/dist/types-ts4.5/parser/tokenize/adf-macro.d.ts +0 -2
  93. package/dist/types-ts4.5/parser/tokenize/anchor-macro.d.ts +0 -2
  94. package/dist/types-ts4.5/parser/tokenize/blockquote.d.ts +0 -2
  95. package/dist/types-ts4.5/parser/tokenize/citation.d.ts +0 -2
  96. package/dist/types-ts4.5/parser/tokenize/code-macro.d.ts +0 -2
  97. package/dist/types-ts4.5/parser/tokenize/color-macro.d.ts +0 -2
  98. package/dist/types-ts4.5/parser/tokenize/common-formatter.d.ts +0 -10
  99. package/dist/types-ts4.5/parser/tokenize/common-macro.d.ts +0 -10
  100. package/dist/types-ts4.5/parser/tokenize/dash-token-creator.d.ts +0 -2
  101. package/dist/types-ts4.5/parser/tokenize/deleted.d.ts +0 -2
  102. package/dist/types-ts4.5/parser/tokenize/double-dash-symbol.d.ts +0 -2
  103. package/dist/types-ts4.5/parser/tokenize/emoji.d.ts +0 -15
  104. package/dist/types-ts4.5/parser/tokenize/emphasis.d.ts +0 -2
  105. package/dist/types-ts4.5/parser/tokenize/file-link.d.ts +0 -3
  106. package/dist/types-ts4.5/parser/tokenize/force-line-break.d.ts +0 -2
  107. package/dist/types-ts4.5/parser/tokenize/hardbreak.d.ts +0 -2
  108. package/dist/types-ts4.5/parser/tokenize/heading.d.ts +0 -2
  109. package/dist/types-ts4.5/parser/tokenize/index.d.ts +0 -55
  110. package/dist/types-ts4.5/parser/tokenize/inserted.d.ts +0 -2
  111. package/dist/types-ts4.5/parser/tokenize/issue-key.d.ts +0 -20
  112. package/dist/types-ts4.5/parser/tokenize/keyword.d.ts +0 -19
  113. package/dist/types-ts4.5/parser/tokenize/link-text.d.ts +0 -3
  114. package/dist/types-ts4.5/parser/tokenize/links/attachment-link.d.ts +0 -4
  115. package/dist/types-ts4.5/parser/tokenize/links/issue-link.d.ts +0 -4
  116. package/dist/types-ts4.5/parser/tokenize/links/link-format.d.ts +0 -2
  117. package/dist/types-ts4.5/parser/tokenize/links/link-parser.d.ts +0 -17
  118. package/dist/types-ts4.5/parser/tokenize/links/link-resolver.d.ts +0 -5
  119. package/dist/types-ts4.5/parser/tokenize/links/mention-link.d.ts +0 -4
  120. package/dist/types-ts4.5/parser/tokenize/links/url-link.d.ts +0 -4
  121. package/dist/types-ts4.5/parser/tokenize/list.d.ts +0 -3
  122. package/dist/types-ts4.5/parser/tokenize/media.d.ts +0 -2
  123. package/dist/types-ts4.5/parser/tokenize/monospace.d.ts +0 -2
  124. package/dist/types-ts4.5/parser/tokenize/noformat-macro.d.ts +0 -2
  125. package/dist/types-ts4.5/parser/tokenize/panel-macro.d.ts +0 -2
  126. package/dist/types-ts4.5/parser/tokenize/quadruple-dash-symbol.d.ts +0 -2
  127. package/dist/types-ts4.5/parser/tokenize/quote-macro.d.ts +0 -8
  128. package/dist/types-ts4.5/parser/tokenize/ruler.d.ts +0 -2
  129. package/dist/types-ts4.5/parser/tokenize/strong.d.ts +0 -2
  130. package/dist/types-ts4.5/parser/tokenize/subscript.d.ts +0 -2
  131. package/dist/types-ts4.5/parser/tokenize/superscript.d.ts +0 -2
  132. package/dist/types-ts4.5/parser/tokenize/table.d.ts +0 -2
  133. package/dist/types-ts4.5/parser/tokenize/triple-dash-symbol.d.ts +0 -2
  134. package/dist/types-ts4.5/parser/tokenize/whitespace.d.ts +0 -3
  135. package/dist/types-ts4.5/parser/utils/attrs.d.ts +0 -3
  136. package/dist/types-ts4.5/parser/utils/color-name-mapping.d.ts +0 -10
  137. package/dist/types-ts4.5/parser/utils/escape.d.ts +0 -2
  138. package/dist/types-ts4.5/parser/utils/normalize.d.ts +0 -5
  139. package/dist/types-ts4.5/parser/utils/panel-type.d.ts +0 -3
  140. package/dist/types-ts4.5/parser/utils/text.d.ts +0 -25
  141. package/dist/types-ts4.5/parser/utils/title.d.ts +0 -7
  142. package/dist/types-ts4.5/parser/utils/url.d.ts +0 -8
@@ -1,2 +0,0 @@
1
- import type { Mark as PMMark, Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
2
- export declare function createTextNode(input: string, schema: Schema, marks?: PMMark[]): PMNode[];
@@ -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,2 +0,0 @@
1
- import type { TokenParser } from '.';
2
- export declare const adfMacro: TokenParser;
@@ -1,2 +0,0 @@
1
- import type { TokenParser } from '.';
2
- export declare const anchorMacro: TokenParser;
@@ -1,2 +0,0 @@
1
- import type { TokenParser } from './';
2
- export declare const blockquote: TokenParser;
@@ -1,2 +0,0 @@
1
- import type { TokenParser } from './';
2
- export declare const citation: TokenParser;
@@ -1,2 +0,0 @@
1
- import type { TokenParser } from '.';
2
- export declare const codeMacro: TokenParser;
@@ -1,2 +0,0 @@
1
- import type { TokenParser } from '.';
2
- export declare const colorMacro: TokenParser;
@@ -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,2 +0,0 @@
1
- import type { TextToken, TokenParser } from './';
2
- export declare const createDashTokenParser: (token: TextToken, fallback: TextToken) => TokenParser;
@@ -1,2 +0,0 @@
1
- import type { TokenParser } from './';
2
- export declare const deleted: TokenParser;
@@ -1,2 +0,0 @@
1
- import type { TokenParser } from './';
2
- export declare const doubleDashSymbol: TokenParser;
@@ -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,2 +0,0 @@
1
- import type { TokenParser } from './';
2
- export declare const emphasis: TokenParser;
@@ -1,3 +0,0 @@
1
- import type { Schema } from '@atlaskit/editor-prosemirror/model';
2
- import type { Token } from './';
3
- export declare function fileLink(input: string, position: number, schema: Schema): Token;
@@ -1,2 +0,0 @@
1
- import type { TokenParser } from './';
2
- export declare const forceLineBreak: TokenParser;
@@ -1,2 +0,0 @@
1
- import type { TokenParser } from './';
2
- export declare const hardbreak: TokenParser;
@@ -1,2 +0,0 @@
1
- import type { TokenParser } from './';
2
- export declare const heading: TokenParser;
@@ -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,2 +0,0 @@
1
- import type { TokenParser } from './';
2
- export declare const inserted: TokenParser;
@@ -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,3 +0,0 @@
1
- import type { TokenParser } from './';
2
- export declare const LINK_TEXT_REGEXP: RegExp;
3
- export declare const linkText: TokenParser;
@@ -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,2 +0,0 @@
1
- import type { TokenParser } from '../';
2
- export declare const linkFormat: TokenParser;
@@ -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,3 +0,0 @@
1
- import type { TokenParser } from './';
2
- export declare const MAX_LIST_DEPTH = 20;
3
- export declare const list: TokenParser;
@@ -1,2 +0,0 @@
1
- import type { TokenParser } from './';
2
- export declare const media: TokenParser;
@@ -1,2 +0,0 @@
1
- import type { TokenParser } from './';
2
- export declare const monospace: TokenParser;
@@ -1,2 +0,0 @@
1
- import type { TokenParser } from '.';
2
- export declare const noformatMacro: TokenParser;
@@ -1,2 +0,0 @@
1
- import type { TokenParser } from '.';
2
- export declare const panelMacro: TokenParser;
@@ -1,2 +0,0 @@
1
- import type { TokenParser } from './';
2
- export declare const quadrupleDashSymbol: TokenParser;
@@ -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,2 +0,0 @@
1
- import type { TokenParser } from './';
2
- export declare const ruler: TokenParser;
@@ -1,2 +0,0 @@
1
- import type { TokenParser } from './';
2
- export declare const strong: TokenParser;
@@ -1,2 +0,0 @@
1
- import type { TokenParser } from './';
2
- export declare const subscript: TokenParser;
@@ -1,2 +0,0 @@
1
- import type { TokenParser } from './';
2
- export declare const superscript: TokenParser;
@@ -1,2 +0,0 @@
1
- import type { TokenParser } from './';
2
- export declare const table: TokenParser;
@@ -1,2 +0,0 @@
1
- import type { TokenParser } from './';
2
- export declare const tripleDashSymbol: TokenParser;
@@ -1,3 +0,0 @@
1
- export declare function parseWhitespaceAndNewLine(input: string): number;
2
- export declare function parseWhitespaceOnly(input: string): number;
3
- export declare function parseNewlineOnly(input: string): number;
@@ -1,3 +0,0 @@
1
- export declare function parseAttrs(str?: string, sep?: string): {
2
- [key: string]: string;
3
- };
@@ -1,10 +0,0 @@
1
- export interface RGBColors {
2
- [key: string]: RGB;
3
- }
4
- export interface RGB {
5
- b: number;
6
- g: number;
7
- r: number;
8
- }
9
- declare const mapping: RGBColors;
10
- export default mapping;
@@ -1,2 +0,0 @@
1
- import type { TextToken } from '../tokenize';
2
- export declare function escapeHandler(input: string, position: number): TextToken;
@@ -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,3 +0,0 @@
1
- export declare function getPanelType(attrs: {
2
- [key: string]: string;
3
- }): string;
@@ -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;