@atlaskit/adf-utils 19.33.7 → 19.33.9

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 (186) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/alignment/package.json +1 -8
  3. package/background-color/package.json +1 -8
  4. package/block-card/package.json +1 -8
  5. package/block-task-item/package.json +1 -8
  6. package/blockquote/package.json +1 -8
  7. package/bodied-extension/package.json +1 -8
  8. package/bodied-sync-block/package.json +1 -8
  9. package/border/package.json +1 -8
  10. package/breakout/package.json +1 -8
  11. package/builders/package.json +1 -8
  12. package/bullet-list/package.json +1 -8
  13. package/code/package.json +1 -8
  14. package/code-block/package.json +1 -8
  15. package/data-consumer/package.json +1 -8
  16. package/date/package.json +1 -8
  17. package/decision-item/package.json +1 -8
  18. package/decision-list/package.json +1 -8
  19. package/dedupe-marks-transform/package.json +1 -8
  20. package/doc/package.json +1 -8
  21. package/em/package.json +1 -8
  22. package/embed-card/package.json +1 -8
  23. package/emoji/package.json +1 -8
  24. package/empty-adf/package.json +1 -8
  25. package/errors/package.json +1 -8
  26. package/expand/package.json +1 -8
  27. package/extension/package.json +1 -8
  28. package/filter/package.json +1 -8
  29. package/fragment/package.json +1 -8
  30. package/hard-break/package.json +1 -8
  31. package/heading/package.json +1 -8
  32. package/helpers/package.json +1 -8
  33. package/indentation/package.json +1 -8
  34. package/indentation-marks-transform/package.json +1 -8
  35. package/inline-card/package.json +1 -8
  36. package/inline-extension/package.json +1 -8
  37. package/invalid-media-content-transform/package.json +1 -8
  38. package/layout-column/package.json +1 -8
  39. package/layout-section/package.json +1 -8
  40. package/link/package.json +1 -8
  41. package/list-item/package.json +1 -8
  42. package/map/package.json +1 -8
  43. package/media/package.json +1 -8
  44. package/media-group/package.json +1 -8
  45. package/media-link-transform/package.json +1 -8
  46. package/media-single/package.json +1 -8
  47. package/mention/package.json +1 -8
  48. package/native-embeds-fallback-transform/package.json +1 -8
  49. package/nested-expand/package.json +1 -8
  50. package/nested-table-transform/package.json +1 -8
  51. package/nodes-missing-content-transform/package.json +1 -8
  52. package/ordered-list/package.json +1 -8
  53. package/package.json +2 -2
  54. package/panel/package.json +1 -8
  55. package/paragraph/package.json +1 -8
  56. package/placeholder/package.json +1 -8
  57. package/reduce/package.json +1 -8
  58. package/rule/package.json +1 -8
  59. package/scrub/package.json +1 -8
  60. package/scrub-adf/package.json +1 -8
  61. package/scrub-content/package.json +1 -8
  62. package/status/package.json +1 -8
  63. package/strike/package.json +1 -8
  64. package/strong/package.json +1 -8
  65. package/subsup/package.json +1 -8
  66. package/sync-block/package.json +1 -8
  67. package/sync-block-fallback-transform/package.json +1 -8
  68. package/table/package.json +1 -8
  69. package/table-cell/package.json +1 -8
  70. package/table-header/package.json +1 -8
  71. package/table-row/package.json +1 -8
  72. package/task-item/package.json +1 -8
  73. package/task-list/package.json +1 -8
  74. package/text/package.json +1 -8
  75. package/text-color/package.json +1 -8
  76. package/text-link-code-transform/package.json +1 -8
  77. package/transform-media-single-width/package.json +1 -8
  78. package/transforms/package.json +1 -8
  79. package/traverse/main/package.json +1 -8
  80. package/traverse/package.json +1 -8
  81. package/types/package.json +1 -8
  82. package/underline/package.json +1 -8
  83. package/validator/main/package.json +1 -8
  84. package/validator/package.json +1 -8
  85. package/validatorTypes/package.json +1 -8
  86. package/dist/types-ts4.5/builders/marks/alignment.d.ts +0 -3
  87. package/dist/types-ts4.5/builders/marks/annotation.d.ts +0 -3
  88. package/dist/types-ts4.5/builders/marks/background-color.d.ts +0 -3
  89. package/dist/types-ts4.5/builders/marks/border.d.ts +0 -3
  90. package/dist/types-ts4.5/builders/marks/breakout.d.ts +0 -3
  91. package/dist/types-ts4.5/builders/marks/code.d.ts +0 -3
  92. package/dist/types-ts4.5/builders/marks/data-consumer.d.ts +0 -3
  93. package/dist/types-ts4.5/builders/marks/em.d.ts +0 -3
  94. package/dist/types-ts4.5/builders/marks/font-size.d.ts +0 -3
  95. package/dist/types-ts4.5/builders/marks/fragment.d.ts +0 -3
  96. package/dist/types-ts4.5/builders/marks/indentation.d.ts +0 -3
  97. package/dist/types-ts4.5/builders/marks/link.d.ts +0 -3
  98. package/dist/types-ts4.5/builders/marks/strike.d.ts +0 -3
  99. package/dist/types-ts4.5/builders/marks/strong.d.ts +0 -3
  100. package/dist/types-ts4.5/builders/marks/subsup.d.ts +0 -3
  101. package/dist/types-ts4.5/builders/marks/text-color.d.ts +0 -3
  102. package/dist/types-ts4.5/builders/marks/underline.d.ts +0 -3
  103. package/dist/types-ts4.5/builders/nodes/block-card.d.ts +0 -2
  104. package/dist/types-ts4.5/builders/nodes/block-task-item.d.ts +0 -2
  105. package/dist/types-ts4.5/builders/nodes/blockquote.d.ts +0 -2
  106. package/dist/types-ts4.5/builders/nodes/bodied-extension.d.ts +0 -2
  107. package/dist/types-ts4.5/builders/nodes/bodied-sync-block.d.ts +0 -4
  108. package/dist/types-ts4.5/builders/nodes/bullet-list.d.ts +0 -2
  109. package/dist/types-ts4.5/builders/nodes/caption.d.ts +0 -2
  110. package/dist/types-ts4.5/builders/nodes/code-block.d.ts +0 -3
  111. package/dist/types-ts4.5/builders/nodes/date.d.ts +0 -2
  112. package/dist/types-ts4.5/builders/nodes/decision-item.d.ts +0 -2
  113. package/dist/types-ts4.5/builders/nodes/decision-list.d.ts +0 -2
  114. package/dist/types-ts4.5/builders/nodes/doc.d.ts +0 -2
  115. package/dist/types-ts4.5/builders/nodes/embed-card.d.ts +0 -2
  116. package/dist/types-ts4.5/builders/nodes/emoji.d.ts +0 -4
  117. package/dist/types-ts4.5/builders/nodes/expand.d.ts +0 -2
  118. package/dist/types-ts4.5/builders/nodes/extension.d.ts +0 -2
  119. package/dist/types-ts4.5/builders/nodes/hard-break.d.ts +0 -2
  120. package/dist/types-ts4.5/builders/nodes/heading.d.ts +0 -2
  121. package/dist/types-ts4.5/builders/nodes/inline-card.d.ts +0 -2
  122. package/dist/types-ts4.5/builders/nodes/inline-extension.d.ts +0 -2
  123. package/dist/types-ts4.5/builders/nodes/layout-column.d.ts +0 -4
  124. package/dist/types-ts4.5/builders/nodes/layout-section.d.ts +0 -2
  125. package/dist/types-ts4.5/builders/nodes/list-item.d.ts +0 -2
  126. package/dist/types-ts4.5/builders/nodes/media-group.d.ts +0 -2
  127. package/dist/types-ts4.5/builders/nodes/media-inline.d.ts +0 -2
  128. package/dist/types-ts4.5/builders/nodes/media-single.d.ts +0 -7
  129. package/dist/types-ts4.5/builders/nodes/media.d.ts +0 -2
  130. package/dist/types-ts4.5/builders/nodes/mention.d.ts +0 -2
  131. package/dist/types-ts4.5/builders/nodes/multi-bodied-extension.d.ts +0 -2
  132. package/dist/types-ts4.5/builders/nodes/nested-expand.d.ts +0 -2
  133. package/dist/types-ts4.5/builders/nodes/ordered-list.d.ts +0 -2
  134. package/dist/types-ts4.5/builders/nodes/panel.d.ts +0 -2
  135. package/dist/types-ts4.5/builders/nodes/paragraph.d.ts +0 -2
  136. package/dist/types-ts4.5/builders/nodes/placeholder.d.ts +0 -2
  137. package/dist/types-ts4.5/builders/nodes/rule.d.ts +0 -2
  138. package/dist/types-ts4.5/builders/nodes/status.d.ts +0 -2
  139. package/dist/types-ts4.5/builders/nodes/sync-block.d.ts +0 -2
  140. package/dist/types-ts4.5/builders/nodes/table-cell.d.ts +0 -2
  141. package/dist/types-ts4.5/builders/nodes/table-header.d.ts +0 -2
  142. package/dist/types-ts4.5/builders/nodes/table-row.d.ts +0 -2
  143. package/dist/types-ts4.5/builders/nodes/table.d.ts +0 -2
  144. package/dist/types-ts4.5/builders/nodes/task-item.d.ts +0 -2
  145. package/dist/types-ts4.5/builders/nodes/task-list.d.ts +0 -2
  146. package/dist/types-ts4.5/builders/nodes/text.d.ts +0 -2
  147. package/dist/types-ts4.5/builders/types.d.ts +0 -8
  148. package/dist/types-ts4.5/builders/utils/apply-mark.d.ts +0 -5
  149. package/dist/types-ts4.5/builders/utils/create-text-nodes.d.ts +0 -3
  150. package/dist/types-ts4.5/builders/utils/is-duplicate-mark.d.ts +0 -6
  151. package/dist/types-ts4.5/builders.d.ts +0 -68
  152. package/dist/types-ts4.5/empty-adf.d.ts +0 -3
  153. package/dist/types-ts4.5/index.d.ts +0 -1
  154. package/dist/types-ts4.5/scrub/default-node-replacements.d.ts +0 -10
  155. package/dist/types-ts4.5/scrub/default-value-replacements.d.ts +0 -6
  156. package/dist/types-ts4.5/scrub/hash.d.ts +0 -1
  157. package/dist/types-ts4.5/scrub/scrub-adf.d.ts +0 -9
  158. package/dist/types-ts4.5/scrub/scrub-content.d.ts +0 -11
  159. package/dist/types-ts4.5/scrub.d.ts +0 -2
  160. package/dist/types-ts4.5/transforms/dedupe-marks-transform.d.ts +0 -8
  161. package/dist/types-ts4.5/transforms/depth-limited-nesting-container-nodes-transform.d.ts +0 -10
  162. package/dist/types-ts4.5/transforms/errors.d.ts +0 -7
  163. package/dist/types-ts4.5/transforms/helpers.d.ts +0 -2
  164. package/dist/types-ts4.5/transforms/indentation-marks-transform.d.ts +0 -7
  165. package/dist/types-ts4.5/transforms/invalid-media-content-transform.d.ts +0 -5
  166. package/dist/types-ts4.5/transforms/media-link-transform.d.ts +0 -5
  167. package/dist/types-ts4.5/transforms/native-embeds-fallback-transform.d.ts +0 -13
  168. package/dist/types-ts4.5/transforms/nested-table-transform.d.ts +0 -7
  169. package/dist/types-ts4.5/transforms/nodes-missing-content-transform.d.ts +0 -7
  170. package/dist/types-ts4.5/transforms/sync-block-fallback-transform.d.ts +0 -6
  171. package/dist/types-ts4.5/transforms/text-link-code-transform.d.ts +0 -5
  172. package/dist/types-ts4.5/transforms/transform-media-single-width.d.ts +0 -5
  173. package/dist/types-ts4.5/transforms.d.ts +0 -13
  174. package/dist/types-ts4.5/traverse/filter.d.ts +0 -2
  175. package/dist/types-ts4.5/traverse/map.d.ts +0 -2
  176. package/dist/types-ts4.5/traverse/reduce.d.ts +0 -2
  177. package/dist/types-ts4.5/traverse/traverse.d.ts +0 -12
  178. package/dist/types-ts4.5/traverse.d.ts +0 -4
  179. package/dist/types-ts4.5/types/index.d.ts +0 -24
  180. package/dist/types-ts4.5/types/validatorTypes.d.ts +0 -150
  181. package/dist/types-ts4.5/validator/extractAllowedContent.d.ts +0 -3
  182. package/dist/types-ts4.5/validator/rules.d.ts +0 -3
  183. package/dist/types-ts4.5/validator/specs/index.d.ts +0 -1
  184. package/dist/types-ts4.5/validator/utils.d.ts +0 -8
  185. package/dist/types-ts4.5/validator/validator.d.ts +0 -15
  186. package/dist/types-ts4.5/validator.d.ts +0 -1
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/types/validatorTypes.js",
5
5
  "module:es2019": "../dist/es2019/types/validatorTypes.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/types/validatorTypes.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/types/validatorTypes.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/types/validatorTypes.d.ts"
15
8
  }
@@ -1,3 +0,0 @@
1
- import type { AlignmentMarkDefinition, AlignmentAttributes, ParagraphDefinition, HeadingDefinition } from '@atlaskit/adf-schema';
2
- import type { WithMark, WithAppliedMark } from '../types';
3
- export declare const alignment: (attrs: AlignmentAttributes) => (maybeNode: WithMark | string) => WithAppliedMark<ParagraphDefinition | HeadingDefinition, AlignmentMarkDefinition>;
@@ -1,3 +0,0 @@
1
- import type { AnnotationMarkAttributes, TextDefinition } from '@atlaskit/adf-schema';
2
- import type { WithMark } from '../types';
3
- export declare const annotation: (attrs: AnnotationMarkAttributes) => (maybeNode: WithMark | string) => WithMark | TextDefinition;
@@ -1,3 +0,0 @@
1
- import type { TextColorAttributes, TextDefinition } from '@atlaskit/adf-schema';
2
- import type { WithMark } from '../types';
3
- export declare const backgroundColor: (attrs: TextColorAttributes) => (maybeNode: WithMark | string) => WithMark | TextDefinition;
@@ -1,3 +0,0 @@
1
- import type { BorderMarkAttributes, TextDefinition } from '@atlaskit/adf-schema';
2
- import type { WithMark } from '../types';
3
- export declare const border: (attrs: BorderMarkAttributes) => (maybeNode: WithMark | string) => WithMark | TextDefinition;
@@ -1,3 +0,0 @@
1
- import type { BreakoutMarkAttrs, BreakoutMarkDefinition, CodeBlockDefinition, LayoutSectionDefinition } from '@atlaskit/adf-schema';
2
- import type { WithAppliedMark } from '../types';
3
- export declare const breakout: (attrs: BreakoutMarkAttrs) => (maybeNode: CodeBlockDefinition | LayoutSectionDefinition) => WithAppliedMark<typeof maybeNode, BreakoutMarkDefinition>;
@@ -1,3 +0,0 @@
1
- import type { TextDefinition } from '@atlaskit/adf-schema';
2
- import type { WithMark } from '../types';
3
- export declare const code: (maybeNode: WithMark | string) => WithMark | TextDefinition;
@@ -1,3 +0,0 @@
1
- import type { ExtensionDefinition, BodiedExtensionDefinition, InlineExtensionDefinition, DataConsumerAttributes, DataConsumerDefinition } from '@atlaskit/adf-schema';
2
- import type { WithAppliedMark } from '../types';
3
- export declare const dataConsumer: (attrs: DataConsumerAttributes) => (maybeNode: ExtensionDefinition | BodiedExtensionDefinition | InlineExtensionDefinition) => WithAppliedMark<typeof maybeNode, DataConsumerDefinition>;
@@ -1,3 +0,0 @@
1
- import type { TextDefinition } from '@atlaskit/adf-schema';
2
- import type { WithMark } from '../types';
3
- export declare const em: (maybeNode: WithMark | string) => WithMark | TextDefinition;
@@ -1,3 +0,0 @@
1
- import type { FontSizeMarkAttrs, FontSizeMarkDefinition, ParagraphDefinition } from '@atlaskit/adf-schema';
2
- import type { WithMark, WithAppliedMark } from '../types';
3
- export declare const fontSize: (attrs: FontSizeMarkAttrs) => (maybeNode: WithMark | string) => WithAppliedMark<ParagraphDefinition, FontSizeMarkDefinition>;
@@ -1,3 +0,0 @@
1
- import type { ExtensionDefinition, BodiedExtensionDefinition, InlineExtensionDefinition, TableDefinition, FragmentAttributes, FragmentDefinition } from '@atlaskit/adf-schema';
2
- import type { WithAppliedMark } from '../types';
3
- export declare const fragment: (attrs: FragmentAttributes) => (maybeNode: TableDefinition | ExtensionDefinition | BodiedExtensionDefinition | InlineExtensionDefinition) => WithAppliedMark<typeof maybeNode, FragmentDefinition>;
@@ -1,3 +0,0 @@
1
- import type { IndentationMarkDefinition, IndentationMarkAttributes, ParagraphDefinition } from '@atlaskit/adf-schema';
2
- import type { WithMark, WithAppliedMark } from '../types';
3
- export declare const indentation: (attrs: IndentationMarkAttributes) => (maybeNode: WithMark | string) => WithAppliedMark<ParagraphDefinition, IndentationMarkDefinition>;
@@ -1,3 +0,0 @@
1
- import type { LinkAttributes, TextDefinition } from '@atlaskit/adf-schema';
2
- import type { WithMark } from '../types';
3
- export declare const link: (attrs: LinkAttributes) => (maybeNode: WithMark | string) => WithMark | TextDefinition;
@@ -1,3 +0,0 @@
1
- import type { TextDefinition } from '@atlaskit/adf-schema';
2
- import type { WithMark } from '../types';
3
- export declare const strike: (maybeNode: WithMark | string) => WithMark | TextDefinition;
@@ -1,3 +0,0 @@
1
- import type { TextDefinition } from '@atlaskit/adf-schema';
2
- import type { WithMark } from '../types';
3
- export declare const strong: (maybeNode: WithMark | string) => WithMark | TextDefinition;
@@ -1,3 +0,0 @@
1
- import type { SubSupAttributes, TextDefinition } from '@atlaskit/adf-schema';
2
- import type { WithMark } from '../types';
3
- export declare const subsup: (attrs: SubSupAttributes) => (maybeNode: WithMark | string) => WithMark | TextDefinition;
@@ -1,3 +0,0 @@
1
- import type { TextColorAttributes, TextDefinition } from '@atlaskit/adf-schema';
2
- import type { WithMark } from '../types';
3
- export declare const textColor: (attrs: TextColorAttributes) => (maybeNode: WithMark | string) => WithMark | TextDefinition;
@@ -1,3 +0,0 @@
1
- import type { TextDefinition } from '@atlaskit/adf-schema';
2
- import type { WithMark } from '../types';
3
- export declare const underline: (maybeNode: WithMark | string) => WithMark | TextDefinition;
@@ -1,2 +0,0 @@
1
- import type { BlockCardDefinition, CardAttributes } from '@atlaskit/adf-schema';
2
- export declare const blockCard: (attrs: CardAttributes) => BlockCardDefinition;
@@ -1,2 +0,0 @@
1
- import type { BlockTaskItemDefinition, ParagraphDefinition, ExtensionDefinition } from '@atlaskit/adf-schema';
2
- export declare const blockTaskItem: (attrs: BlockTaskItemDefinition["attrs"]) => (...content: Array<ParagraphDefinition | ExtensionDefinition>) => BlockTaskItemDefinition;
@@ -1,2 +0,0 @@
1
- import type { ParagraphDefinition, OrderedListDefinition, BulletListDefinition, CodeBlockDefinition, MediaGroupDefinition, BlockQuoteDefinition, MediaSingleDefinition } from '@atlaskit/adf-schema';
2
- export declare const blockQuote: (...content: Array<ParagraphDefinition | OrderedListDefinition | BulletListDefinition | CodeBlockDefinition | MediaGroupDefinition | MediaSingleDefinition>) => BlockQuoteDefinition;
@@ -1,2 +0,0 @@
1
- import type { BodiedExtensionDefinition, NonNestableBlockContent } from '@atlaskit/adf-schema';
2
- export declare const bodiedExtension: (attrs: BodiedExtensionDefinition["attrs"]) => (...content: Array<NonNestableBlockContent>) => BodiedExtensionDefinition;
@@ -1,4 +0,0 @@
1
- import type { BlockCardDefinition as BlockCard, BlockQuoteDefinition as Blockquote, BulletListDefinition as BulletList, CodeBlockDefinition as CodeBlock, DecisionListDefinition as DecisionList, EmbedCardDefinition as EmbedCard, ExpandDefinition as Expand, HeadingDefinition as Heading, HeadingWithMarksDefinition as HeadingWithMarks, LayoutSectionDefinition as LayoutSection, MediaGroupDefinition as MediaGroup, MediaSingleDefinition as MediaSingle, OrderedListDefinition as OrderedList, PanelDefinition as Panel, ParagraphDefinition as Paragraph, ParagraphWithMarksDefinition as ParagraphWithMarks, RuleDefinition as Rule, TableDefinition as Table, TaskListDefinition as TaskList, BodiedSyncBlockDefinition } from '@atlaskit/adf-schema';
2
- type BodiedSyncBlockContent = BlockCard | Blockquote | BulletList | CodeBlock | DecisionList | EmbedCard | Expand | Heading | HeadingWithMarks | LayoutSection | MediaGroup | MediaSingle | OrderedList | Panel | Paragraph | ParagraphWithMarks | Rule | Table | TaskList;
3
- export declare const bodiedSyncBlock: (attrs: BodiedSyncBlockDefinition["attrs"]) => (...content: Array<BodiedSyncBlockContent>) => BodiedSyncBlockDefinition;
4
- export {};
@@ -1,2 +0,0 @@
1
- import type { BulletListDefinition, ListItemDefinition } from '@atlaskit/adf-schema';
2
- export declare const bulletList: (...content: Array<ListItemDefinition>) => BulletListDefinition;
@@ -1,2 +0,0 @@
1
- import type { CaptionDefinition } from '@atlaskit/adf-schema';
2
- export declare const caption: (...content: CaptionDefinition["content"]) => CaptionDefinition;
@@ -1,3 +0,0 @@
1
- import type { CodeBlockDefinition, TextDefinition, NoMark } from '@atlaskit/adf-schema';
2
- export type CodeBlockContent = TextDefinition & NoMark;
3
- export declare const codeBlock: (attrs: CodeBlockDefinition["attrs"] | undefined) => (...content: Array<CodeBlockContent>) => CodeBlockDefinition;
@@ -1,2 +0,0 @@
1
- import type { DateDefinition } from '@atlaskit/adf-schema';
2
- export declare const date: (attrs?: DateDefinition["attrs"]) => DateDefinition;
@@ -1,2 +0,0 @@
1
- import type { DecisionItemDefinition, Inline } from '@atlaskit/adf-schema';
2
- export declare const decisionItem: (attrs: DecisionItemDefinition["attrs"]) => (...content: Array<Inline>) => DecisionItemDefinition;
@@ -1,2 +0,0 @@
1
- import type { DecisionListDefinition, DecisionItemDefinition } from '@atlaskit/adf-schema';
2
- export declare const decisionList: (attrs: DecisionListDefinition["attrs"]) => (...content: Array<DecisionItemDefinition>) => DecisionListDefinition;
@@ -1,2 +0,0 @@
1
- import type { DocNode, BlockContent, LayoutSectionDefinition, MultiBodiedExtensionDefinition, SyncBlockDefinition, BodiedSyncBlockDefinition } from '@atlaskit/adf-schema';
2
- export declare const doc: (...content: Array<BlockContent | LayoutSectionDefinition | MultiBodiedExtensionDefinition | SyncBlockDefinition | BodiedSyncBlockDefinition>) => DocNode;
@@ -1,2 +0,0 @@
1
- import type { EmbedCardDefinition, EmbedCardAttributes } from '@atlaskit/adf-schema';
2
- export declare const embedCard: (attrs: EmbedCardAttributes) => EmbedCardDefinition;
@@ -1,4 +0,0 @@
1
- import type { EmojiDefinition, EmojiAttributes, AnnotationMarkDefinition } from '@atlaskit/adf-schema';
2
- export declare const emoji: (attrs: EmojiAttributes, options?: {
3
- marks: AnnotationMarkDefinition[];
4
- }) => EmojiDefinition;
@@ -1,2 +0,0 @@
1
- import type { ExpandDefinition, NestedExpandDefinition, NonNestableBlockContent } from '@atlaskit/adf-schema';
2
- export declare const expand: (attrs: ExpandDefinition["attrs"]) => (...content: Array<NonNestableBlockContent | NestedExpandDefinition>) => ExpandDefinition;
@@ -1,2 +0,0 @@
1
- import type { ExtensionDefinition } from '@atlaskit/adf-schema';
2
- export declare const extension: (attrs: ExtensionDefinition["attrs"]) => ExtensionDefinition;
@@ -1,2 +0,0 @@
1
- import type { HardBreakDefinition } from '@atlaskit/adf-schema';
2
- export declare const hardBreak: (attrs?: HardBreakDefinition["attrs"]) => HardBreakDefinition;
@@ -1,2 +0,0 @@
1
- import type { Inline, HeadingDefinition } from '@atlaskit/adf-schema';
2
- export declare const heading: (attrs: HeadingDefinition["attrs"]) => (...content: Array<Inline>) => HeadingDefinition;
@@ -1,2 +0,0 @@
1
- import type { InlineCardDefinition, CardAttributes } from '@atlaskit/adf-schema';
2
- export declare const inlineCard: (attrs: CardAttributes) => InlineCardDefinition;
@@ -1,2 +0,0 @@
1
- import type { InlineExtensionDefinition } from '@atlaskit/adf-schema';
2
- export declare const inlineExtension: (attrs: InlineExtensionDefinition["attrs"]) => () => InlineExtensionDefinition;
@@ -1,4 +0,0 @@
1
- import type { BlockContent, LayoutColumnDefinition } from '@atlaskit/adf-schema';
2
- export declare const layoutColumn: (attrs: {
3
- width: number;
4
- }) => (content: BlockContent[]) => LayoutColumnDefinition;
@@ -1,2 +0,0 @@
1
- import type { LayoutColumnDefinition, LayoutSectionDefinition } from '@atlaskit/adf-schema';
2
- export declare const layoutSection: () => (content: Array<LayoutColumnDefinition>) => LayoutSectionDefinition;
@@ -1,2 +0,0 @@
1
- import type { ListItemDefinition, ListItemArray } from '@atlaskit/adf-schema';
2
- export declare const listItem: (content: ListItemArray) => ListItemDefinition;
@@ -1,2 +0,0 @@
1
- import type { MediaGroupDefinition, MediaDefinition } from '@atlaskit/adf-schema';
2
- export declare const mediaGroup: (...content: Array<MediaDefinition>) => MediaGroupDefinition;
@@ -1,2 +0,0 @@
1
- import type { MediaInlineDefinition, MediaInlineAttributes } from '@atlaskit/adf-schema';
2
- export declare const mediaInline: (attrs: MediaInlineAttributes) => MediaInlineDefinition;
@@ -1,7 +0,0 @@
1
- import type { MediaSingleDefinition, MediaDefinition, ExtendedMediaAttributes as MediaSingleAttributes, CaptionDefinition } from '@atlaskit/adf-schema';
2
- export declare const mediaSingle: (attrs: MediaSingleAttributes | undefined) => (content: MediaDefinition | [
3
- MediaDefinition
4
- ] | [
5
- MediaDefinition,
6
- CaptionDefinition
7
- ]) => MediaSingleDefinition;
@@ -1,2 +0,0 @@
1
- import type { MediaDefinition, MediaADFAttrs } from '@atlaskit/adf-schema';
2
- export declare const media: (attrs: MediaADFAttrs) => MediaDefinition;
@@ -1,2 +0,0 @@
1
- import type { MentionDefinition, MentionAttributes } from '@atlaskit/adf-schema';
2
- export declare const mention: (attrs: MentionAttributes) => MentionDefinition;
@@ -1,2 +0,0 @@
1
- import type { ExtensionFrameDefinition, MultiBodiedExtensionDefinition } from '@atlaskit/adf-schema';
2
- export declare const bodiedExtension: (attrs: MultiBodiedExtensionDefinition["attrs"]) => (...content: Array<ExtensionFrameDefinition>) => MultiBodiedExtensionDefinition;
@@ -1,2 +0,0 @@
1
- import type { NestedExpandDefinition, NestedExpandContent } from '@atlaskit/adf-schema';
2
- export declare const nestedExpand: (attrs: NestedExpandDefinition["attrs"]) => (...content: NestedExpandContent) => NestedExpandDefinition;
@@ -1,2 +0,0 @@
1
- import type { ListItemDefinition, OrderedListDefinition } from '@atlaskit/adf-schema';
2
- export declare const orderedList: (attrs?: OrderedListDefinition["attrs"]) => (...content: Array<ListItemDefinition>) => OrderedListDefinition;
@@ -1,2 +0,0 @@
1
- import type { PanelDefinition, PanelAttributes } from '@atlaskit/adf-schema';
2
- export declare const panel: (attrs: PanelAttributes) => (...content: PanelDefinition["content"]) => PanelDefinition;
@@ -1,2 +0,0 @@
1
- import type { ParagraphDefinition, Inline } from '@atlaskit/adf-schema';
2
- export declare const paragraph: (...content: Array<Inline | string>) => ParagraphDefinition;
@@ -1,2 +0,0 @@
1
- import type { PlaceholderDefinition } from '@atlaskit/adf-schema';
2
- export declare const placeholder: (attrs: PlaceholderDefinition["attrs"]) => PlaceholderDefinition;
@@ -1,2 +0,0 @@
1
- import type { RuleDefinition } from '@atlaskit/adf-schema';
2
- export declare const rule: () => RuleDefinition;
@@ -1,2 +0,0 @@
1
- import type { StatusDefinition } from '@atlaskit/adf-schema';
2
- export declare const status: (attrs?: StatusDefinition["attrs"]) => StatusDefinition;
@@ -1,2 +0,0 @@
1
- import type { SyncBlockDefinition } from '@atlaskit/adf-schema';
2
- export declare const syncBlock: (attrs: SyncBlockDefinition["attrs"]) => () => SyncBlockDefinition;
@@ -1,2 +0,0 @@
1
- import type { TableCellDefinition, CellAttributes } from '@atlaskit/adf-schema';
2
- export declare const tableCell: (attrs?: CellAttributes) => (...content: TableCellDefinition["content"]) => TableCellDefinition;
@@ -1,2 +0,0 @@
1
- import type { TableHeaderDefinition, CellAttributes } from '@atlaskit/adf-schema';
2
- export declare const tableHeader: (attrs?: CellAttributes) => (...content: TableHeaderDefinition["content"]) => TableHeaderDefinition;
@@ -1,2 +0,0 @@
1
- import type { TableRowDefinition, TableHeaderDefinition, TableCellDefinition } from '@atlaskit/adf-schema';
2
- export declare const tableRow: (content: Array<TableHeaderDefinition> | Array<TableCellDefinition>) => TableRowDefinition;
@@ -1,2 +0,0 @@
1
- import type { TableDefinition, TableRowDefinition } from '@atlaskit/adf-schema';
2
- export declare const table: (...content: Array<TableRowDefinition>) => TableDefinition;
@@ -1,2 +0,0 @@
1
- import type { Inline, TaskItemDefinition } from '@atlaskit/adf-schema';
2
- export declare const taskItem: (attrs: TaskItemDefinition["attrs"]) => (...content: Array<Inline>) => TaskItemDefinition;
@@ -1,2 +0,0 @@
1
- import type { TaskListDefinition, TaskListContent } from '@atlaskit/adf-schema';
2
- export declare const taskList: (attrs: TaskListDefinition["attrs"]) => (...content: TaskListContent) => TaskListDefinition;
@@ -1,2 +0,0 @@
1
- import type { TextDefinition } from '@atlaskit/adf-schema';
2
- export declare const text: (text: string) => TextDefinition;
@@ -1,8 +0,0 @@
1
- export type WithMark = {
2
- [prop: string]: any;
3
- marks?: Array<any>;
4
- type: any;
5
- };
6
- export type WithAppliedMark<T, M> = T & {
7
- marks?: Array<M>;
8
- };
@@ -1,5 +0,0 @@
1
- import type { WithMark } from '../types';
2
- import type { TextDefinition } from '@atlaskit/adf-schema';
3
- export declare function applyMark<T>(mark: T & {
4
- type: string;
5
- }, maybeNode: WithMark | string): WithMark | TextDefinition;
@@ -1,3 +0,0 @@
1
- import type { TextDefinition } from '@atlaskit/adf-schema';
2
- export declare function createTextNodes<T = any>(nodes: Array<T | string>): Array<T | TextDefinition>;
3
- export declare function createTextFromString<T = any>(str: T | string): T | TextDefinition;
@@ -1,6 +0,0 @@
1
- export declare function isDuplicateMark(node: {
2
- marks?: Array<any>;
3
- }, type: string): boolean;
4
- export declare function duplicateMarkError(node: {
5
- marks?: Array<any>;
6
- }, type: string): string;
@@ -1,68 +0,0 @@
1
- export { breakout } from './builders/marks/breakout';
2
- export { code } from './builders/marks/code';
3
- export { em } from './builders/marks/em';
4
- export { link } from './builders/marks/link';
5
- export { link as a } from './builders/marks/link';
6
- export { strike } from './builders/marks/strike';
7
- export { strong } from './builders/marks/strong';
8
- export { strong as b } from './builders/marks/strong';
9
- export { subsup } from './builders/marks/subsup';
10
- export { textColor } from './builders/marks/text-color';
11
- export { underline } from './builders/marks/underline';
12
- export { underline as u } from './builders/marks/underline';
13
- export { alignment } from './builders/marks/alignment';
14
- export { indentation } from './builders/marks/indentation';
15
- export { dataConsumer } from './builders/marks/data-consumer';
16
- export { fragment } from './builders/marks/fragment';
17
- export { border } from './builders/marks/border';
18
- export { backgroundColor } from './builders/marks/background-color';
19
- export { blockQuote } from './builders/nodes/blockquote';
20
- export { bodiedExtension } from './builders/nodes/bodied-extension';
21
- export { blockCard } from './builders/nodes/block-card';
22
- export { bulletList } from './builders/nodes/bullet-list';
23
- export { bulletList as ul } from './builders/nodes/bullet-list';
24
- export { codeBlock } from './builders/nodes/code-block';
25
- export { date } from './builders/nodes/date';
26
- export { decisionItem } from './builders/nodes/decision-item';
27
- export { decisionList } from './builders/nodes/decision-list';
28
- export { doc } from './builders/nodes/doc';
29
- export { emoji } from './builders/nodes/emoji';
30
- export { extension } from './builders/nodes/extension';
31
- export { expand } from './builders/nodes/expand';
32
- export { nestedExpand } from './builders/nodes/nested-expand';
33
- export { hardBreak } from './builders/nodes/hard-break';
34
- export { hardBreak as br } from './builders/nodes/hard-break';
35
- export { heading } from './builders/nodes/heading';
36
- export { inlineExtension } from './builders/nodes/inline-extension';
37
- export { inlineCard } from './builders/nodes/inline-card';
38
- export { layoutColumn } from './builders/nodes/layout-column';
39
- export { layoutSection } from './builders/nodes/layout-section';
40
- export { listItem } from './builders/nodes/list-item';
41
- export { listItem as li } from './builders/nodes/list-item';
42
- export { mediaGroup } from './builders/nodes/media-group';
43
- export { mediaSingle } from './builders/nodes/media-single';
44
- export { media } from './builders/nodes/media';
45
- export { mention } from './builders/nodes/mention';
46
- export { orderedList } from './builders/nodes/ordered-list';
47
- export { orderedList as ol } from './builders/nodes/ordered-list';
48
- export { panel } from './builders/nodes/panel';
49
- export { paragraph } from './builders/nodes/paragraph';
50
- export { paragraph as p } from './builders/nodes/paragraph';
51
- export { placeholder } from './builders/nodes/placeholder';
52
- export { rule } from './builders/nodes/rule';
53
- export { rule as hr } from './builders/nodes/rule';
54
- export { status } from './builders/nodes/status';
55
- export { tableCell } from './builders/nodes/table-cell';
56
- export { tableCell as td } from './builders/nodes/table-cell';
57
- export { tableHeader } from './builders/nodes/table-header';
58
- export { tableHeader as th } from './builders/nodes/table-header';
59
- export { tableRow } from './builders/nodes/table-row';
60
- export { tableRow as tr } from './builders/nodes/table-row';
61
- export { table } from './builders/nodes/table';
62
- export { taskItem } from './builders/nodes/task-item';
63
- export { taskList } from './builders/nodes/task-list';
64
- export { text } from './builders/nodes/text';
65
- export { embedCard } from './builders/nodes/embed-card';
66
- export { blockTaskItem } from './builders/nodes/block-task-item';
67
- export { syncBlock } from './builders/nodes/sync-block';
68
- export { bodiedSyncBlock } from './builders/nodes/bodied-sync-block';
@@ -1,3 +0,0 @@
1
- import type { DocNode } from '@atlaskit/adf-schema';
2
- export declare const getEmptyADF: () => DocNode;
3
- export { isEmpty } from './transforms/helpers';
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- import type { ADFEntity, EntityParent } from '../types';
2
- import type { ValueReplacements } from './default-value-replacements';
3
- export type NodeReplacer = (node: ADFEntity, context: {
4
- parent: EntityParent;
5
- valueReplacements: ValueReplacements;
6
- }) => ADFEntity | null | false;
7
- export type NodeReplacements = {
8
- [key: string]: NodeReplacer;
9
- };
10
- export declare const defaultNodeReplacements: NodeReplacements;
@@ -1,6 +0,0 @@
1
- export type Value = string | number | boolean | undefined | null;
2
- export type ValueReplacer<V extends Value> = (value: V) => V;
3
- export type ValueReplacements = {
4
- href: ValueReplacer<string>;
5
- };
6
- export declare const defaultValueReplacements: ValueReplacements;
@@ -1 +0,0 @@
1
- export declare const hash: (input: string) => string;
@@ -1,9 +0,0 @@
1
- import type { ADFEntity } from '../types';
2
- import type { NodeReplacements } from './default-node-replacements';
3
- import type { ValueReplacements } from './default-value-replacements';
4
- export interface ScrubAdfOptions {
5
- nodeReplacements?: NodeReplacements;
6
- valueReplacements?: ValueReplacements;
7
- }
8
- declare const _default: (adf: ADFEntity, options?: ScrubAdfOptions) => false | ADFEntity;
9
- export default _default;
@@ -1,11 +0,0 @@
1
- import type { ValueReplacements } from './default-value-replacements';
2
- export declare const scrubStr: (val: string, offset?: number) => string;
3
- export type ScrubLinkOptions = {
4
- valueReplacements: ValueReplacements;
5
- };
6
- export declare const scrubLink: (marks: Array<{
7
- [key: string]: any;
8
- }>, { valueReplacements }: ScrubLinkOptions) => {
9
- [key: string]: any;
10
- }[];
11
- export declare const scrubAttrs: (nodeType: string, attrs: unknown, offset?: number) => any;
@@ -1,2 +0,0 @@
1
- export { default as scrubAdf } from './scrub/scrub-adf';
2
- export { scrubStr } from './scrub/scrub-content';
@@ -1,8 +0,0 @@
1
- import type { ADFEntity, ADFEntityMark } from '../types';
2
- interface TransformDedupeMarksResult {
3
- discardedMarks: ADFEntityMark[];
4
- isTransformed: boolean;
5
- transformedAdf: ADFEntity;
6
- }
7
- export declare const transformDedupeMarks: (adf: ADFEntity) => TransformDedupeMarksResult;
8
- export {};
@@ -1,10 +0,0 @@
1
- import type { Schema } from '@atlaskit/editor-prosemirror/model';
2
- import type { ADFEntity } from '../types';
3
- /**
4
- * Promotes nodes to their _c1 variant wherever the schema allows it.
5
- */
6
- export declare const transformContainerNodes: (adf: ADFEntity, schema: Schema) => {
7
- isTransformed: boolean;
8
- transformedAdf: ADFEntity | false;
9
- transformedNodeTypes: string[];
10
- };
@@ -1,7 +0,0 @@
1
- /** NodeNestingTransformError */
2
- export declare class NodeNestingTransformError extends Error {
3
- /**
4
- * @param message - Error message - Do not use any UGC in this message
5
- */
6
- constructor(message: string);
7
- }
@@ -1,2 +0,0 @@
1
- import type { ADFEntity } from '../types';
2
- export declare const isEmpty: (node: ADFEntity) => boolean;
@@ -1,7 +0,0 @@
1
- import type { ADFEntity } from '../types';
2
- interface TransformIndentationMarksResult {
3
- isTransformed: boolean;
4
- transformedAdf: ADFEntity;
5
- }
6
- export declare const transformIndentationMarks: (adf: ADFEntity) => TransformIndentationMarksResult;
7
- export {};
@@ -1,5 +0,0 @@
1
- import type { ADFEntity } from '../types';
2
- export declare const transformInvalidMediaContent: (adf: ADFEntity) => {
3
- transformedAdf: ADFEntity;
4
- isTransformed: boolean;
5
- };
@@ -1,5 +0,0 @@
1
- import type { ADFEntity } from '../types';
2
- export declare const transformMediaLinkMarks: (adf: ADFEntity) => {
3
- transformedAdf: false | ADFEntity;
4
- isTransformed: boolean;
5
- };
@@ -1,13 +0,0 @@
1
- import type { Schema } from '@atlaskit/editor-prosemirror/model';
2
- import type { ADFEntity } from '../types';
3
- /**
4
- * Replaces `extension` nodes whose `extensionKey` starts with `native-embed`
5
- * with an `embedCard` when the parent context allows it (per the supplied
6
- * schema), otherwise a `paragraph` containing an `inlineCard`. Native-embed
7
- * nodes with no URL are dropped. If the transformed ADF fails schema
8
- * validation the original ADF is returned.
9
- */
10
- export declare const nativeEmbedsFallbackTransform: (adf: ADFEntity, schema: Schema) => {
11
- hasValidTransform: boolean;
12
- transformedAdf: false | ADFEntity;
13
- };
@@ -1,7 +0,0 @@
1
- import type { ADFEntity } from '../types';
2
- export declare const isNestedTableExtension: (extensionNode: ADFEntity) => boolean;
3
- export declare const transformNestedTablesIncomingDocument: (adf: ADFEntity) => {
4
- isTransformed: boolean;
5
- transformedAdf: ADFEntity;
6
- };
7
- export declare const transformNestedTableNodeOutgoingDocument: (tableCellNode: ADFEntity) => ADFEntity;
@@ -1,7 +0,0 @@
1
- import type { ADFEntity } from '../types';
2
- interface TransformNodesMissingContentResult {
3
- isTransformed: boolean;
4
- transformedAdf: ADFEntity;
5
- }
6
- export declare const transformNodesMissingContent: (adf: ADFEntity) => TransformNodesMissingContentResult;
7
- export {};
@@ -1,6 +0,0 @@
1
- import type { Schema } from '@atlaskit/editor-prosemirror/model';
2
- import type { ADFEntity } from '../types';
3
- export declare const syncBlockFallbackTransform: (schema: Schema, adf: ADFEntity) => {
4
- transformedAdf: false | ADFEntity;
5
- isTransformed: boolean;
6
- };
@@ -1,5 +0,0 @@
1
- import type { ADFEntity } from '../types';
2
- export declare const transformTextLinkCodeMarks: (adf: ADFEntity) => {
3
- transformedAdf: false | ADFEntity;
4
- isTransformed: boolean;
5
- };
@@ -1,5 +0,0 @@
1
- import type { ADFEntity } from '../types';
2
- export declare const transformMediaSingleWidth: (adf: ADFEntity) => {
3
- transformedAdf: false | ADFEntity;
4
- isTransformed: boolean;
5
- };