@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.
- package/CHANGELOG.md +12 -0
- package/alignment/package.json +1 -8
- package/background-color/package.json +1 -8
- package/block-card/package.json +1 -8
- package/block-task-item/package.json +1 -8
- package/blockquote/package.json +1 -8
- package/bodied-extension/package.json +1 -8
- package/bodied-sync-block/package.json +1 -8
- package/border/package.json +1 -8
- package/breakout/package.json +1 -8
- package/builders/package.json +1 -8
- package/bullet-list/package.json +1 -8
- package/code/package.json +1 -8
- package/code-block/package.json +1 -8
- package/data-consumer/package.json +1 -8
- package/date/package.json +1 -8
- package/decision-item/package.json +1 -8
- package/decision-list/package.json +1 -8
- package/dedupe-marks-transform/package.json +1 -8
- package/doc/package.json +1 -8
- package/em/package.json +1 -8
- package/embed-card/package.json +1 -8
- package/emoji/package.json +1 -8
- package/empty-adf/package.json +1 -8
- package/errors/package.json +1 -8
- package/expand/package.json +1 -8
- package/extension/package.json +1 -8
- package/filter/package.json +1 -8
- package/fragment/package.json +1 -8
- package/hard-break/package.json +1 -8
- package/heading/package.json +1 -8
- package/helpers/package.json +1 -8
- package/indentation/package.json +1 -8
- package/indentation-marks-transform/package.json +1 -8
- package/inline-card/package.json +1 -8
- package/inline-extension/package.json +1 -8
- package/invalid-media-content-transform/package.json +1 -8
- package/layout-column/package.json +1 -8
- package/layout-section/package.json +1 -8
- package/link/package.json +1 -8
- package/list-item/package.json +1 -8
- package/map/package.json +1 -8
- package/media/package.json +1 -8
- package/media-group/package.json +1 -8
- package/media-link-transform/package.json +1 -8
- package/media-single/package.json +1 -8
- package/mention/package.json +1 -8
- package/native-embeds-fallback-transform/package.json +1 -8
- package/nested-expand/package.json +1 -8
- package/nested-table-transform/package.json +1 -8
- package/nodes-missing-content-transform/package.json +1 -8
- package/ordered-list/package.json +1 -8
- package/package.json +2 -2
- package/panel/package.json +1 -8
- package/paragraph/package.json +1 -8
- package/placeholder/package.json +1 -8
- package/reduce/package.json +1 -8
- package/rule/package.json +1 -8
- package/scrub/package.json +1 -8
- package/scrub-adf/package.json +1 -8
- package/scrub-content/package.json +1 -8
- package/status/package.json +1 -8
- package/strike/package.json +1 -8
- package/strong/package.json +1 -8
- package/subsup/package.json +1 -8
- package/sync-block/package.json +1 -8
- package/sync-block-fallback-transform/package.json +1 -8
- package/table/package.json +1 -8
- package/table-cell/package.json +1 -8
- package/table-header/package.json +1 -8
- package/table-row/package.json +1 -8
- package/task-item/package.json +1 -8
- package/task-list/package.json +1 -8
- package/text/package.json +1 -8
- package/text-color/package.json +1 -8
- package/text-link-code-transform/package.json +1 -8
- package/transform-media-single-width/package.json +1 -8
- package/transforms/package.json +1 -8
- package/traverse/main/package.json +1 -8
- package/traverse/package.json +1 -8
- package/types/package.json +1 -8
- package/underline/package.json +1 -8
- package/validator/main/package.json +1 -8
- package/validator/package.json +1 -8
- package/validatorTypes/package.json +1 -8
- package/dist/types-ts4.5/builders/marks/alignment.d.ts +0 -3
- package/dist/types-ts4.5/builders/marks/annotation.d.ts +0 -3
- package/dist/types-ts4.5/builders/marks/background-color.d.ts +0 -3
- package/dist/types-ts4.5/builders/marks/border.d.ts +0 -3
- package/dist/types-ts4.5/builders/marks/breakout.d.ts +0 -3
- package/dist/types-ts4.5/builders/marks/code.d.ts +0 -3
- package/dist/types-ts4.5/builders/marks/data-consumer.d.ts +0 -3
- package/dist/types-ts4.5/builders/marks/em.d.ts +0 -3
- package/dist/types-ts4.5/builders/marks/font-size.d.ts +0 -3
- package/dist/types-ts4.5/builders/marks/fragment.d.ts +0 -3
- package/dist/types-ts4.5/builders/marks/indentation.d.ts +0 -3
- package/dist/types-ts4.5/builders/marks/link.d.ts +0 -3
- package/dist/types-ts4.5/builders/marks/strike.d.ts +0 -3
- package/dist/types-ts4.5/builders/marks/strong.d.ts +0 -3
- package/dist/types-ts4.5/builders/marks/subsup.d.ts +0 -3
- package/dist/types-ts4.5/builders/marks/text-color.d.ts +0 -3
- package/dist/types-ts4.5/builders/marks/underline.d.ts +0 -3
- package/dist/types-ts4.5/builders/nodes/block-card.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/block-task-item.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/blockquote.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/bodied-extension.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/bodied-sync-block.d.ts +0 -4
- package/dist/types-ts4.5/builders/nodes/bullet-list.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/caption.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/code-block.d.ts +0 -3
- package/dist/types-ts4.5/builders/nodes/date.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/decision-item.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/decision-list.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/doc.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/embed-card.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/emoji.d.ts +0 -4
- package/dist/types-ts4.5/builders/nodes/expand.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/extension.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/hard-break.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/heading.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/inline-card.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/inline-extension.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/layout-column.d.ts +0 -4
- package/dist/types-ts4.5/builders/nodes/layout-section.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/list-item.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/media-group.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/media-inline.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/media-single.d.ts +0 -7
- package/dist/types-ts4.5/builders/nodes/media.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/mention.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/multi-bodied-extension.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/nested-expand.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/ordered-list.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/panel.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/paragraph.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/placeholder.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/rule.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/status.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/sync-block.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/table-cell.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/table-header.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/table-row.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/table.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/task-item.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/task-list.d.ts +0 -2
- package/dist/types-ts4.5/builders/nodes/text.d.ts +0 -2
- package/dist/types-ts4.5/builders/types.d.ts +0 -8
- package/dist/types-ts4.5/builders/utils/apply-mark.d.ts +0 -5
- package/dist/types-ts4.5/builders/utils/create-text-nodes.d.ts +0 -3
- package/dist/types-ts4.5/builders/utils/is-duplicate-mark.d.ts +0 -6
- package/dist/types-ts4.5/builders.d.ts +0 -68
- package/dist/types-ts4.5/empty-adf.d.ts +0 -3
- package/dist/types-ts4.5/index.d.ts +0 -1
- package/dist/types-ts4.5/scrub/default-node-replacements.d.ts +0 -10
- package/dist/types-ts4.5/scrub/default-value-replacements.d.ts +0 -6
- package/dist/types-ts4.5/scrub/hash.d.ts +0 -1
- package/dist/types-ts4.5/scrub/scrub-adf.d.ts +0 -9
- package/dist/types-ts4.5/scrub/scrub-content.d.ts +0 -11
- package/dist/types-ts4.5/scrub.d.ts +0 -2
- package/dist/types-ts4.5/transforms/dedupe-marks-transform.d.ts +0 -8
- package/dist/types-ts4.5/transforms/depth-limited-nesting-container-nodes-transform.d.ts +0 -10
- package/dist/types-ts4.5/transforms/errors.d.ts +0 -7
- package/dist/types-ts4.5/transforms/helpers.d.ts +0 -2
- package/dist/types-ts4.5/transforms/indentation-marks-transform.d.ts +0 -7
- package/dist/types-ts4.5/transforms/invalid-media-content-transform.d.ts +0 -5
- package/dist/types-ts4.5/transforms/media-link-transform.d.ts +0 -5
- package/dist/types-ts4.5/transforms/native-embeds-fallback-transform.d.ts +0 -13
- package/dist/types-ts4.5/transforms/nested-table-transform.d.ts +0 -7
- package/dist/types-ts4.5/transforms/nodes-missing-content-transform.d.ts +0 -7
- package/dist/types-ts4.5/transforms/sync-block-fallback-transform.d.ts +0 -6
- package/dist/types-ts4.5/transforms/text-link-code-transform.d.ts +0 -5
- package/dist/types-ts4.5/transforms/transform-media-single-width.d.ts +0 -5
- package/dist/types-ts4.5/transforms.d.ts +0 -13
- package/dist/types-ts4.5/traverse/filter.d.ts +0 -2
- package/dist/types-ts4.5/traverse/map.d.ts +0 -2
- package/dist/types-ts4.5/traverse/reduce.d.ts +0 -2
- package/dist/types-ts4.5/traverse/traverse.d.ts +0 -12
- package/dist/types-ts4.5/traverse.d.ts +0 -4
- package/dist/types-ts4.5/types/index.d.ts +0 -24
- package/dist/types-ts4.5/types/validatorTypes.d.ts +0 -150
- package/dist/types-ts4.5/validator/extractAllowedContent.d.ts +0 -3
- package/dist/types-ts4.5/validator/rules.d.ts +0 -3
- package/dist/types-ts4.5/validator/specs/index.d.ts +0 -1
- package/dist/types-ts4.5/validator/utils.d.ts +0 -8
- package/dist/types-ts4.5/validator/validator.d.ts +0 -15
- 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 { 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 { 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 { 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,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,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,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 { DocNode, BlockContent, LayoutSectionDefinition, MultiBodiedExtensionDefinition, SyncBlockDefinition, BodiedSyncBlockDefinition } from '@atlaskit/adf-schema';
|
|
2
|
-
export declare const doc: (...content: Array<BlockContent | LayoutSectionDefinition | MultiBodiedExtensionDefinition | SyncBlockDefinition | BodiedSyncBlockDefinition>) => DocNode;
|
|
@@ -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,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 +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 +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,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,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 {};
|