@atlaskit/adf-utils 19.27.17 → 19.27.19
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 +14 -0
- package/dist/types/builders/marks/alignment.d.ts +2 -2
- package/dist/types/builders/marks/annotation.d.ts +2 -2
- package/dist/types/builders/marks/border.d.ts +2 -2
- package/dist/types/builders/marks/breakout.d.ts +2 -2
- package/dist/types/builders/marks/code.d.ts +2 -2
- package/dist/types/builders/marks/data-consumer.d.ts +2 -2
- package/dist/types/builders/marks/em.d.ts +2 -2
- package/dist/types/builders/marks/font-size.d.ts +2 -2
- package/dist/types/builders/marks/fragment.d.ts +2 -2
- package/dist/types/builders/marks/indentation.d.ts +2 -2
- package/dist/types/builders/marks/link.d.ts +2 -2
- package/dist/types/builders/marks/strike.d.ts +2 -2
- package/dist/types/builders/marks/strong.d.ts +2 -2
- package/dist/types/builders/marks/subsup.d.ts +2 -2
- package/dist/types/builders/marks/text-color.d.ts +2 -2
- package/dist/types/builders/marks/underline.d.ts +2 -2
- package/dist/types/builders/nodes/block-card.d.ts +1 -1
- package/dist/types/builders/nodes/block-task-item.d.ts +1 -1
- package/dist/types/builders/nodes/bodied-extension.d.ts +1 -1
- package/dist/types/builders/nodes/bodied-sync-block.d.ts +1 -1
- package/dist/types/builders/nodes/bullet-list.d.ts +1 -1
- package/dist/types/builders/nodes/caption.d.ts +1 -1
- package/dist/types/builders/nodes/code-block.d.ts +1 -1
- package/dist/types/builders/nodes/date.d.ts +1 -1
- package/dist/types/builders/nodes/decision-item.d.ts +1 -1
- package/dist/types/builders/nodes/decision-list.d.ts +1 -1
- package/dist/types/builders/nodes/embed-card.d.ts +1 -1
- package/dist/types/builders/nodes/emoji.d.ts +1 -1
- package/dist/types/builders/nodes/extension.d.ts +1 -1
- package/dist/types/builders/nodes/hard-break.d.ts +1 -1
- package/dist/types/builders/nodes/heading.d.ts +1 -1
- package/dist/types/builders/nodes/inline-card.d.ts +1 -1
- package/dist/types/builders/nodes/inline-extension.d.ts +1 -1
- package/dist/types/builders/nodes/layout-column.d.ts +1 -1
- package/dist/types/builders/nodes/layout-section.d.ts +1 -1
- package/dist/types/builders/nodes/list-item.d.ts +1 -1
- package/dist/types/builders/nodes/media-group.d.ts +1 -1
- package/dist/types/builders/nodes/media-inline.d.ts +1 -1
- package/dist/types/builders/nodes/media-single.d.ts +1 -1
- package/dist/types/builders/nodes/media.d.ts +1 -1
- package/dist/types/builders/nodes/mention.d.ts +1 -1
- package/dist/types/builders/nodes/ordered-list.d.ts +1 -1
- package/dist/types/builders/nodes/panel.d.ts +1 -1
- package/dist/types/builders/nodes/paragraph.d.ts +1 -1
- package/dist/types/builders/nodes/placeholder.d.ts +1 -1
- package/dist/types/builders/nodes/rule.d.ts +1 -1
- package/dist/types/builders/nodes/status.d.ts +1 -1
- package/dist/types/builders/nodes/sync-block.d.ts +1 -1
- package/dist/types/builders/nodes/table-cell.d.ts +1 -1
- package/dist/types/builders/nodes/table-header.d.ts +1 -1
- package/dist/types/builders/nodes/table-row.d.ts +1 -1
- package/dist/types/builders/nodes/table.d.ts +1 -1
- package/dist/types/builders/nodes/task-item.d.ts +1 -1
- package/dist/types/builders/nodes/task-list.d.ts +1 -1
- package/dist/types/builders/nodes/text.d.ts +1 -1
- package/dist/types/builders/utils/apply-mark.d.ts +1 -1
- package/dist/types/builders/utils/create-text-nodes.d.ts +1 -1
- package/dist/types/empty-adf.d.ts +1 -1
- package/dist/types/scrub/default-node-replacements.d.ts +2 -2
- package/dist/types/scrub/scrub-adf.d.ts +3 -3
- package/dist/types/scrub/scrub-content.d.ts +1 -1
- package/dist/types/transforms/dedupe-marks-transform.d.ts +1 -1
- package/dist/types/transforms/helpers.d.ts +1 -1
- package/dist/types/transforms/indentation-marks-transform.d.ts +1 -1
- package/dist/types/transforms/invalid-media-content-transform.d.ts +1 -1
- package/dist/types/transforms/media-link-transform.d.ts +1 -1
- package/dist/types/transforms/native-embeds-fallback-transform.d.ts +1 -1
- package/dist/types/transforms/nodes-missing-content-transform.d.ts +1 -1
- package/dist/types/transforms/sync-block-fallback-transform.d.ts +1 -1
- package/dist/types/transforms/text-link-code-transform.d.ts +1 -1
- package/dist/types/transforms/transform-media-single-width.d.ts +1 -1
- package/dist/types/traverse/filter.d.ts +1 -1
- package/dist/types/traverse/map.d.ts +1 -1
- package/dist/types/traverse/reduce.d.ts +1 -1
- package/dist/types/traverse/traverse.d.ts +1 -1
- package/dist/types-ts4.5/builders/marks/alignment.d.ts +2 -2
- package/dist/types-ts4.5/builders/marks/annotation.d.ts +2 -2
- package/dist/types-ts4.5/builders/marks/border.d.ts +2 -2
- package/dist/types-ts4.5/builders/marks/breakout.d.ts +2 -2
- package/dist/types-ts4.5/builders/marks/code.d.ts +2 -2
- package/dist/types-ts4.5/builders/marks/data-consumer.d.ts +2 -2
- package/dist/types-ts4.5/builders/marks/em.d.ts +2 -2
- package/dist/types-ts4.5/builders/marks/font-size.d.ts +2 -2
- package/dist/types-ts4.5/builders/marks/fragment.d.ts +2 -2
- package/dist/types-ts4.5/builders/marks/indentation.d.ts +2 -2
- package/dist/types-ts4.5/builders/marks/link.d.ts +2 -2
- package/dist/types-ts4.5/builders/marks/strike.d.ts +2 -2
- package/dist/types-ts4.5/builders/marks/strong.d.ts +2 -2
- package/dist/types-ts4.5/builders/marks/subsup.d.ts +2 -2
- package/dist/types-ts4.5/builders/marks/text-color.d.ts +2 -2
- package/dist/types-ts4.5/builders/marks/underline.d.ts +2 -2
- package/dist/types-ts4.5/builders/nodes/block-card.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/block-task-item.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/bodied-extension.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/bodied-sync-block.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/bullet-list.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/caption.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/code-block.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/date.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/decision-item.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/decision-list.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/embed-card.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/emoji.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/extension.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/hard-break.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/heading.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/inline-card.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/inline-extension.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/layout-column.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/layout-section.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/list-item.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/media-group.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/media-inline.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/media-single.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/media.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/mention.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/ordered-list.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/panel.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/paragraph.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/placeholder.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/rule.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/status.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/sync-block.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/table-cell.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/table-header.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/table-row.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/table.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/task-item.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/task-list.d.ts +1 -1
- package/dist/types-ts4.5/builders/nodes/text.d.ts +1 -1
- package/dist/types-ts4.5/builders/utils/apply-mark.d.ts +1 -1
- package/dist/types-ts4.5/builders/utils/create-text-nodes.d.ts +1 -1
- package/dist/types-ts4.5/empty-adf.d.ts +1 -1
- package/dist/types-ts4.5/scrub/default-node-replacements.d.ts +2 -2
- package/dist/types-ts4.5/scrub/scrub-adf.d.ts +3 -3
- package/dist/types-ts4.5/scrub/scrub-content.d.ts +1 -1
- package/dist/types-ts4.5/transforms/dedupe-marks-transform.d.ts +1 -1
- package/dist/types-ts4.5/transforms/helpers.d.ts +1 -1
- package/dist/types-ts4.5/transforms/indentation-marks-transform.d.ts +1 -1
- package/dist/types-ts4.5/transforms/invalid-media-content-transform.d.ts +1 -1
- package/dist/types-ts4.5/transforms/media-link-transform.d.ts +1 -1
- package/dist/types-ts4.5/transforms/native-embeds-fallback-transform.d.ts +1 -1
- package/dist/types-ts4.5/transforms/nodes-missing-content-transform.d.ts +1 -1
- package/dist/types-ts4.5/transforms/sync-block-fallback-transform.d.ts +1 -1
- package/dist/types-ts4.5/transforms/text-link-code-transform.d.ts +1 -1
- package/dist/types-ts4.5/transforms/transform-media-single-width.d.ts +1 -1
- package/dist/types-ts4.5/traverse/filter.d.ts +1 -1
- package/dist/types-ts4.5/traverse/map.d.ts +1 -1
- package/dist/types-ts4.5/traverse/reduce.d.ts +1 -1
- package/dist/types-ts4.5/traverse/traverse.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { IndentationMarkDefinition, IndentationMarkAttributes, ParagraphDefinition } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { WithMark, WithAppliedMark } from '../types';
|
|
3
3
|
export declare const indentation: (attrs: IndentationMarkAttributes) => (maybeNode: WithMark | string) => WithAppliedMark<ParagraphDefinition, IndentationMarkDefinition>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { LinkAttributes, TextDefinition } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { WithMark } from '../types';
|
|
3
3
|
export declare const link: (attrs: LinkAttributes) => (maybeNode: WithMark | string) => WithMark | TextDefinition;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { TextDefinition } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { WithMark } from '../types';
|
|
3
3
|
export declare const strike: (maybeNode: WithMark | string) => WithMark | TextDefinition;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { TextDefinition } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { WithMark } from '../types';
|
|
3
3
|
export declare const strong: (maybeNode: WithMark | string) => WithMark | TextDefinition;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { SubSupAttributes, TextDefinition } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { WithMark } from '../types';
|
|
3
3
|
export declare const subsup: (attrs: SubSupAttributes) => (maybeNode: WithMark | string) => WithMark | TextDefinition;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { TextColorAttributes, TextDefinition } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { WithMark } from '../types';
|
|
3
3
|
export declare const textColor: (attrs: TextColorAttributes) => (maybeNode: WithMark | string) => WithMark | TextDefinition;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { TextDefinition } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { WithMark } from '../types';
|
|
3
3
|
export declare const underline: (maybeNode: WithMark | string) => WithMark | TextDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { BlockCardDefinition, CardAttributes } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const blockCard: (attrs: CardAttributes) => BlockCardDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { BlockTaskItemDefinition, ParagraphDefinition, ExtensionDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const blockTaskItem: (attrs: BlockTaskItemDefinition["attrs"]) => (...content: Array<ParagraphDefinition | ExtensionDefinition>) => BlockTaskItemDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { BodiedExtensionDefinition, NonNestableBlockContent } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const bodiedExtension: (attrs: BodiedExtensionDefinition["attrs"]) => (...content: Array<NonNestableBlockContent>) => BodiedExtensionDefinition;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
2
|
type BodiedSyncBlockContent = BlockCard | Blockquote | BulletList | CodeBlock | DecisionList | EmbedCard | Expand | Heading | HeadingWithMarks | LayoutSection | MediaGroup | MediaSingle | OrderedList | Panel | Paragraph | ParagraphWithMarks | Rule | Table | TaskList;
|
|
3
3
|
export declare const bodiedSyncBlock: (attrs: BodiedSyncBlockDefinition["attrs"]) => (...content: Array<BodiedSyncBlockContent>) => BodiedSyncBlockDefinition;
|
|
4
4
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { BulletListDefinition, ListItemDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const bulletList: (...content: Array<ListItemDefinition>) => BulletListDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CaptionDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const caption: (...content: CaptionDefinition["content"]) => CaptionDefinition;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CodeBlockDefinition, TextDefinition, NoMark } from '@atlaskit/adf-schema';
|
|
2
2
|
export type CodeBlockContent = TextDefinition & NoMark;
|
|
3
3
|
export declare const codeBlock: (attrs: CodeBlockDefinition["attrs"] | undefined) => (...content: Array<CodeBlockContent>) => CodeBlockDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DateDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const date: (attrs?: DateDefinition["attrs"]) => DateDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DecisionItemDefinition, Inline } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const decisionItem: (attrs: DecisionItemDefinition["attrs"]) => (...content: Array<Inline>) => DecisionItemDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DecisionListDefinition, DecisionItemDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const decisionList: (attrs: DecisionListDefinition["attrs"]) => (...content: Array<DecisionItemDefinition>) => DecisionListDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { EmbedCardDefinition, EmbedCardAttributes } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const embedCard: (attrs: EmbedCardAttributes) => EmbedCardDefinition;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { EmojiDefinition, EmojiAttributes, AnnotationMarkDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const emoji: (attrs: EmojiAttributes, options?: {
|
|
3
3
|
marks: AnnotationMarkDefinition[];
|
|
4
4
|
}) => EmojiDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ExtensionDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const extension: (attrs: ExtensionDefinition["attrs"]) => ExtensionDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { HardBreakDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const hardBreak: (attrs?: HardBreakDefinition["attrs"]) => HardBreakDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Inline, HeadingDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const heading: (attrs: HeadingDefinition["attrs"]) => (...content: Array<Inline>) => HeadingDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { InlineCardDefinition, CardAttributes } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const inlineCard: (attrs: CardAttributes) => InlineCardDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { InlineExtensionDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const inlineExtension: (attrs: InlineExtensionDefinition["attrs"]) => () => InlineExtensionDefinition;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { BlockContent, LayoutColumnDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const layoutColumn: (attrs: {
|
|
3
3
|
width: number;
|
|
4
4
|
}) => (content: BlockContent[]) => LayoutColumnDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { LayoutColumnDefinition, LayoutSectionDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const layoutSection: () => (content: Array<LayoutColumnDefinition>) => LayoutSectionDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ListItemDefinition, ListItemArray } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const listItem: (content: ListItemArray) => ListItemDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { MediaGroupDefinition, MediaDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const mediaGroup: (...content: Array<MediaDefinition>) => MediaGroupDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { MediaInlineDefinition, MediaInlineAttributes } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const mediaInline: (attrs: MediaInlineAttributes) => MediaInlineDefinition;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { MediaSingleDefinition, MediaDefinition, ExtendedMediaAttributes as MediaSingleAttributes, CaptionDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const mediaSingle: (attrs: MediaSingleAttributes | undefined) => (content: MediaDefinition | [
|
|
3
3
|
MediaDefinition
|
|
4
4
|
] | [
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { MediaDefinition, MediaADFAttrs } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const media: (attrs: MediaADFAttrs) => MediaDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { MentionDefinition, MentionAttributes } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const mention: (attrs: MentionAttributes) => MentionDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ListItemDefinition, OrderedListDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const orderedList: (attrs?: OrderedListDefinition["attrs"]) => (...content: Array<ListItemDefinition>) => OrderedListDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { PanelDefinition, PanelAttributes } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const panel: (attrs: PanelAttributes) => (...content: PanelDefinition["content"]) => PanelDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ParagraphDefinition, Inline } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const paragraph: (...content: Array<Inline | string>) => ParagraphDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { PlaceholderDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const placeholder: (attrs: PlaceholderDefinition["attrs"]) => PlaceholderDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RuleDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const rule: () => RuleDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { StatusDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const status: (attrs?: StatusDefinition["attrs"]) => StatusDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { SyncBlockDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const syncBlock: (attrs: SyncBlockDefinition["attrs"]) => () => SyncBlockDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TableCellDefinition, CellAttributes } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const tableCell: (attrs?: CellAttributes) => (...content: TableCellDefinition["content"]) => TableCellDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TableHeaderDefinition, CellAttributes } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const tableHeader: (attrs?: CellAttributes) => (...content: TableHeaderDefinition["content"]) => TableHeaderDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TableRowDefinition, TableHeaderDefinition, TableCellDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const tableRow: (content: Array<TableHeaderDefinition> | Array<TableCellDefinition>) => TableRowDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TableDefinition, TableRowDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const table: (...content: Array<TableRowDefinition>) => TableDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Inline, TaskItemDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const taskItem: (attrs: TaskItemDefinition["attrs"]) => (...content: Array<Inline>) => TaskItemDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TaskListDefinition, TaskListContent } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const taskList: (attrs: TaskListDefinition["attrs"]) => (...content: TaskListContent) => TaskListDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TextDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare const text: (text: string) => TextDefinition;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TextDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
export declare function createTextNodes<T = any>(nodes: Array<T | string>): Array<T | TextDefinition>;
|
|
3
3
|
export declare function createTextFromString<T = any>(str: T | string): T | TextDefinition;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { ADFEntity, EntityParent } from '../types';
|
|
2
|
+
import type { ValueReplacements } from './default-value-replacements';
|
|
3
3
|
export type NodeReplacer = (node: ADFEntity, context: {
|
|
4
4
|
parent: EntityParent;
|
|
5
5
|
valueReplacements: ValueReplacements;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { ADFEntity } from '../types';
|
|
2
|
+
import type { NodeReplacements } from './default-node-replacements';
|
|
3
|
+
import type { ValueReplacements } from './default-value-replacements';
|
|
4
4
|
export interface ScrubAdfOptions {
|
|
5
5
|
nodeReplacements?: NodeReplacements;
|
|
6
6
|
valueReplacements?: ValueReplacements;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ValueReplacements } from './default-value-replacements';
|
|
2
2
|
export declare const scrubStr: (val: string, offset?: number) => string;
|
|
3
3
|
export type ScrubLinkOptions = {
|
|
4
4
|
valueReplacements: ValueReplacements;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ADFEntity } from '../types';
|
|
2
2
|
export declare const isEmpty: (node: ADFEntity) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import {
|
|
2
|
+
import type { ADFEntity } from '../types';
|
|
3
3
|
export declare const syncBlockFallbackTransform: (schema: Schema, adf: ADFEntity) => {
|
|
4
4
|
transformedAdf: false | ADFEntity;
|
|
5
5
|
isTransformed: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ADFEntity } from '../types';
|
|
2
2
|
export declare function filter(adf: ADFEntity, callback: (node: ADFEntity) => boolean): Array<ADFEntity>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ADFEntity } from '../types';
|
|
2
2
|
export declare function map<T = any>(adf: ADFEntity, callback: (node: ADFEntity) => T): Array<T>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ADFEntity } from '../types';
|
|
2
2
|
export declare function reduce<T = any>(adf: ADFEntity, callback: (accunulator: T, node: ADFEntity) => T, initial: T): T;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ADFEntity, VisitorCollection } from '../types';
|
|
2
2
|
export declare function validateVisitors(_visitors: VisitorCollection): boolean;
|
|
3
3
|
/**
|
|
4
4
|
* Provides recursive, depth-first search document traversal. Use visitors collection to define nodes of interest.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/adf-utils",
|
|
3
|
-
"version": "19.27.
|
|
3
|
+
"version": "19.27.19",
|
|
4
4
|
"description": "Set of utilities to traverse, modify and create ADF documents.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@atlaskit/adf-schema": "^52.4.0",
|
|
30
30
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
31
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
31
|
+
"@atlaskit/tmp-editor-statsig": "^45.1.0",
|
|
32
32
|
"@babel/runtime": "^7.0.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|