@wulperstudio/editor-render 0.0.4-beta → 0.0.6-beta
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/dist/cjs/dist/base/index.d.ts +74 -2
- package/dist/cjs/dist/components/CheckList/index.d.ts +1 -1
- package/dist/cjs/dist/components/CheckListItem/index.d.ts +2 -2
- package/dist/cjs/dist/components/Code/index.d.ts +1 -1
- package/dist/cjs/dist/components/Container/index.d.ts +3 -3
- package/dist/cjs/dist/components/Delimiter/index.d.ts +1 -1
- package/dist/cjs/dist/components/Embed/index.d.ts +1 -1
- package/dist/cjs/dist/components/Header/index.d.ts +1 -1
- package/dist/cjs/dist/components/Image/index.d.ts +1 -1
- package/dist/cjs/dist/components/Link/index.d.ts +2 -2
- package/dist/cjs/dist/components/List/index.d.ts +1 -1
- package/dist/cjs/dist/components/ListItem/index.d.ts +1 -1
- package/dist/cjs/dist/components/Paragraph/index.d.ts +1 -1
- package/dist/cjs/dist/components/Quote/index.d.ts +1 -1
- package/dist/cjs/dist/components/Raw/index.d.ts +1 -1
- package/dist/cjs/dist/components/Table/index.d.ts +1 -1
- package/dist/cjs/dist/components/TableCell/index.d.ts +1 -1
- package/dist/cjs/dist/components/TableRow/index.d.ts +1 -1
- package/dist/cjs/dist/helpers/RecursiveNode/index.d.ts +5 -4
- package/dist/cjs/dist/helpers/checklist/index.d.ts +9 -3
- package/dist/cjs/dist/helpers/code/index.d.ts +7 -3
- package/dist/cjs/dist/helpers/delimiter/index.d.ts +7 -3
- package/dist/cjs/dist/helpers/embed/index.d.ts +7 -3
- package/dist/cjs/dist/helpers/header/index.d.ts +7 -3
- package/dist/cjs/dist/helpers/image/index.d.ts +7 -3
- package/dist/cjs/dist/helpers/index.d.ts +12 -12
- package/dist/cjs/dist/helpers/link/index.d.ts +7 -3
- package/dist/cjs/dist/helpers/list/index.d.ts +8 -2
- package/dist/cjs/dist/helpers/paragraph/index.d.ts +7 -3
- package/dist/cjs/dist/helpers/quote/index.d.ts +7 -3
- package/dist/cjs/dist/helpers/raw/index.d.ts +7 -3
- package/dist/cjs/dist/helpers/table/index.d.ts +12 -4
- package/dist/cjs/index.js +118 -202
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/dist/base/index.d.ts +74 -2
- package/dist/esm/dist/components/CheckList/index.d.ts +1 -1
- package/dist/esm/dist/components/CheckListItem/index.d.ts +2 -2
- package/dist/esm/dist/components/Code/index.d.ts +1 -1
- package/dist/esm/dist/components/Container/index.d.ts +3 -3
- package/dist/esm/dist/components/Delimiter/index.d.ts +1 -1
- package/dist/esm/dist/components/Embed/index.d.ts +1 -1
- package/dist/esm/dist/components/Header/index.d.ts +1 -1
- package/dist/esm/dist/components/Image/index.d.ts +1 -1
- package/dist/esm/dist/components/Link/index.d.ts +2 -2
- package/dist/esm/dist/components/List/index.d.ts +1 -1
- package/dist/esm/dist/components/ListItem/index.d.ts +1 -1
- package/dist/esm/dist/components/Paragraph/index.d.ts +1 -1
- package/dist/esm/dist/components/Quote/index.d.ts +1 -1
- package/dist/esm/dist/components/Raw/index.d.ts +1 -1
- package/dist/esm/dist/components/Table/index.d.ts +1 -1
- package/dist/esm/dist/components/TableCell/index.d.ts +1 -1
- package/dist/esm/dist/components/TableRow/index.d.ts +1 -1
- package/dist/esm/dist/helpers/RecursiveNode/index.d.ts +5 -4
- package/dist/esm/dist/helpers/checklist/index.d.ts +9 -3
- package/dist/esm/dist/helpers/code/index.d.ts +7 -3
- package/dist/esm/dist/helpers/delimiter/index.d.ts +7 -3
- package/dist/esm/dist/helpers/embed/index.d.ts +7 -3
- package/dist/esm/dist/helpers/header/index.d.ts +7 -3
- package/dist/esm/dist/helpers/image/index.d.ts +7 -3
- package/dist/esm/dist/helpers/index.d.ts +12 -12
- package/dist/esm/dist/helpers/link/index.d.ts +7 -3
- package/dist/esm/dist/helpers/list/index.d.ts +8 -2
- package/dist/esm/dist/helpers/paragraph/index.d.ts +7 -3
- package/dist/esm/dist/helpers/quote/index.d.ts +7 -3
- package/dist/esm/dist/helpers/raw/index.d.ts +7 -3
- package/dist/esm/dist/helpers/table/index.d.ts +12 -4
- package/dist/esm/index.js +118 -202
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +122 -37
- package/dist/package.json +6 -4
- package/package.json +6 -4
|
@@ -1,3 +1,75 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
1
|
import { EditorDataModel } from '../interfaces';
|
|
3
|
-
|
|
2
|
+
import { RootContainerProps } from '../components/Container';
|
|
3
|
+
import { HeaderRootProps } from '../components/Header';
|
|
4
|
+
import { ParagraphRootProps } from '../components/Paragraph';
|
|
5
|
+
import { DelimiterRootProps } from '../components/Delimiter';
|
|
6
|
+
import { ListRootProps } from '../components/List';
|
|
7
|
+
import { RootItemProps } from '../components/ListItem';
|
|
8
|
+
import { ImageRootProps } from '../components/Image';
|
|
9
|
+
import { TableRootProps } from '../components/Table';
|
|
10
|
+
import { TableRowRootProps } from '../components/TableRow';
|
|
11
|
+
import { TableCellRootProps } from '../components/TableCell';
|
|
12
|
+
import { EmbedRootProps } from '../components/Embed';
|
|
13
|
+
import { RawRootProps } from '../components/Raw';
|
|
14
|
+
import { QuoteRootProps } from '../components/Quote';
|
|
15
|
+
import { CodeRootProps } from '../components/Code';
|
|
16
|
+
import { LinkRootProps } from '../components/Link';
|
|
17
|
+
import { CheckListRootProps } from '../components/CheckList';
|
|
18
|
+
import { RootCheckListItemProps } from '../components/CheckListItem';
|
|
19
|
+
declare type Props = {
|
|
20
|
+
value: EditorDataModel;
|
|
21
|
+
ParagraphSlot?: {
|
|
22
|
+
Container?: RootContainerProps;
|
|
23
|
+
Paragraph?: ParagraphRootProps;
|
|
24
|
+
};
|
|
25
|
+
HeaderSlot?: {
|
|
26
|
+
Container?: RootContainerProps;
|
|
27
|
+
Header?: HeaderRootProps;
|
|
28
|
+
};
|
|
29
|
+
DelimiterSlot?: {
|
|
30
|
+
Container?: RootContainerProps;
|
|
31
|
+
Delimiter?: DelimiterRootProps;
|
|
32
|
+
};
|
|
33
|
+
ListSlot?: {
|
|
34
|
+
Container?: RootContainerProps;
|
|
35
|
+
List?: ListRootProps;
|
|
36
|
+
Item?: RootItemProps;
|
|
37
|
+
};
|
|
38
|
+
ImageSlot?: {
|
|
39
|
+
Container?: RootContainerProps;
|
|
40
|
+
Image?: ImageRootProps;
|
|
41
|
+
};
|
|
42
|
+
TableSlot?: {
|
|
43
|
+
Container?: RootContainerProps;
|
|
44
|
+
Table?: TableRootProps;
|
|
45
|
+
Row?: TableRowRootProps;
|
|
46
|
+
Cell?: TableCellRootProps;
|
|
47
|
+
};
|
|
48
|
+
EmbedSlot?: {
|
|
49
|
+
Container?: RootContainerProps;
|
|
50
|
+
Embed?: EmbedRootProps;
|
|
51
|
+
};
|
|
52
|
+
RawSlot?: {
|
|
53
|
+
Container?: RootContainerProps;
|
|
54
|
+
Raw?: RawRootProps;
|
|
55
|
+
};
|
|
56
|
+
QuoteSlot?: {
|
|
57
|
+
Container?: RootContainerProps;
|
|
58
|
+
Quote?: QuoteRootProps;
|
|
59
|
+
};
|
|
60
|
+
CodeSlot?: {
|
|
61
|
+
Container?: RootContainerProps;
|
|
62
|
+
Code?: CodeRootProps;
|
|
63
|
+
};
|
|
64
|
+
LinkSlot?: {
|
|
65
|
+
Container?: RootContainerProps;
|
|
66
|
+
Link?: LinkRootProps;
|
|
67
|
+
};
|
|
68
|
+
CheckListSlot?: {
|
|
69
|
+
Container?: RootContainerProps;
|
|
70
|
+
CheckList?: CheckListRootProps;
|
|
71
|
+
Item?: RootCheckListItemProps;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
export declare const BaseNodesEditor: ({ value, ParagraphSlot, HeaderSlot, DelimiterSlot, ListSlot, ImageSlot, TableSlot, EmbedSlot, RawSlot, QuoteSlot, CodeSlot, LinkSlot, CheckListSlot, }: Props) => void;
|
|
75
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RootCheckList } from './styled';
|
|
3
|
-
declare type CheckListRootProps = React.ComponentPropsWithRef<typeof RootCheckList>;
|
|
3
|
+
export declare type CheckListRootProps = React.ComponentPropsWithRef<typeof RootCheckList>;
|
|
4
4
|
interface CheckListProps extends CheckListRootProps {
|
|
5
5
|
}
|
|
6
6
|
export declare const CheckList: (props: CheckListProps) => JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RootListItem } from './styled';
|
|
3
|
-
declare type
|
|
4
|
-
interface ItemModel extends
|
|
3
|
+
export declare type RootCheckListItemProps = React.ComponentPropsWithRef<typeof RootListItem>;
|
|
4
|
+
interface ItemModel extends RootCheckListItemProps {
|
|
5
5
|
}
|
|
6
6
|
export declare const CheckListItem: (props: ItemModel) => JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RootCode } from './styled';
|
|
3
|
-
declare type CodeRootProps = React.ComponentPropsWithRef<typeof RootCode>;
|
|
3
|
+
export declare type CodeRootProps = React.ComponentPropsWithRef<typeof RootCode>;
|
|
4
4
|
interface CodeProps extends CodeRootProps {
|
|
5
5
|
}
|
|
6
6
|
export declare const Code: (props: CodeProps) => JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RootContainer } from './style';
|
|
3
|
-
declare type RootContainerProps = React.ComponentPropsWithRef<typeof RootContainer>;
|
|
4
|
-
interface
|
|
3
|
+
export declare type RootContainerProps = React.ComponentPropsWithRef<typeof RootContainer>;
|
|
4
|
+
interface ContainerProps extends RootContainerProps {
|
|
5
5
|
stretched?: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare const Container: (props:
|
|
7
|
+
export declare const Container: (props: ContainerProps) => JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RootDelimiter } from './styled';
|
|
3
|
-
declare type DelimiterRootProps = React.ComponentPropsWithRef<typeof RootDelimiter>;
|
|
3
|
+
export declare type DelimiterRootProps = React.ComponentPropsWithRef<typeof RootDelimiter>;
|
|
4
4
|
interface DelimiterProps extends Omit<DelimiterRootProps, 'children'> {
|
|
5
5
|
}
|
|
6
6
|
export declare const Delimiter: (props: DelimiterProps) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RootEmbed } from './styled';
|
|
3
|
-
declare type EmbedRootProps = React.ComponentPropsWithRef<typeof RootEmbed>;
|
|
3
|
+
export declare type EmbedRootProps = React.ComponentPropsWithRef<typeof RootEmbed>;
|
|
4
4
|
interface EmbedProps extends EmbedRootProps {
|
|
5
5
|
}
|
|
6
6
|
export declare const Embed: (props: EmbedProps) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RootHeader } from './styled';
|
|
3
|
-
declare type HeaderRootProps = React.ComponentPropsWithRef<typeof RootHeader>;
|
|
3
|
+
export declare type HeaderRootProps = React.ComponentPropsWithRef<typeof RootHeader>;
|
|
4
4
|
interface HeaderModel extends HeaderRootProps {
|
|
5
5
|
level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RootImage } from './styled';
|
|
3
|
-
declare type ImageRootProps = React.ComponentPropsWithRef<typeof RootImage>;
|
|
3
|
+
export declare type ImageRootProps = React.ComponentPropsWithRef<typeof RootImage>;
|
|
4
4
|
interface ImageProps extends ImageRootProps {
|
|
5
5
|
caption?: string;
|
|
6
6
|
withBorder?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RootLink } from './styled';
|
|
3
|
-
declare type LinkRootProps = React.ComponentPropsWithRef<typeof RootLink>;
|
|
4
|
-
interface LinkProps extends
|
|
3
|
+
export declare type LinkRootProps = Omit<React.ComponentPropsWithRef<typeof RootLink>, 'children'>;
|
|
4
|
+
interface LinkProps extends LinkRootProps {
|
|
5
5
|
image?: string;
|
|
6
6
|
title?: string;
|
|
7
7
|
description?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RootList } from './styled';
|
|
3
|
-
declare type ListRootProps = React.ComponentPropsWithRef<typeof RootList>;
|
|
3
|
+
export declare type ListRootProps = React.ComponentPropsWithRef<typeof RootList>;
|
|
4
4
|
interface ListProps extends ListRootProps {
|
|
5
5
|
}
|
|
6
6
|
export declare const List: ({ ...props }: ListProps) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RootListItem } from './styled';
|
|
3
|
-
declare type RootItemProps = React.ComponentPropsWithRef<typeof RootListItem>;
|
|
3
|
+
export declare type RootItemProps = React.ComponentPropsWithRef<typeof RootListItem>;
|
|
4
4
|
interface ItemModel extends RootItemProps {
|
|
5
5
|
}
|
|
6
6
|
export declare const ListItem: (props: ItemModel) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RootParagraph } from './styled';
|
|
3
|
-
declare type ParagraphRootProps = React.ComponentPropsWithRef<typeof RootParagraph>;
|
|
3
|
+
export declare type ParagraphRootProps = React.ComponentPropsWithRef<typeof RootParagraph>;
|
|
4
4
|
interface ParagraphProps extends ParagraphRootProps {
|
|
5
5
|
}
|
|
6
6
|
export declare const Paragraph: (props: ParagraphProps) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RootQuote } from './styled';
|
|
3
|
-
declare type QuoteRootProps = React.ComponentPropsWithRef<typeof RootQuote>;
|
|
3
|
+
export declare type QuoteRootProps = React.ComponentPropsWithRef<typeof RootQuote>;
|
|
4
4
|
interface QuoteProps extends QuoteRootProps {
|
|
5
5
|
}
|
|
6
6
|
export declare const Quote: (props: QuoteProps) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RootRaw } from './styled';
|
|
3
|
-
declare type RawRootProps = React.ComponentPropsWithRef<typeof RootRaw>;
|
|
3
|
+
export declare type RawRootProps = React.ComponentPropsWithRef<typeof RootRaw>;
|
|
4
4
|
interface RawProps extends RawRootProps {
|
|
5
5
|
}
|
|
6
6
|
export declare const Raw: (props: RawProps) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RootTable } from './styled';
|
|
3
|
-
declare type TableRootProps = React.ComponentPropsWithRef<typeof RootTable>;
|
|
3
|
+
export declare type TableRootProps = React.ComponentPropsWithRef<typeof RootTable>;
|
|
4
4
|
interface TableProps extends TableRootProps {
|
|
5
5
|
}
|
|
6
6
|
export declare const Table: (props: TableProps) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RootTableCell } from './styled';
|
|
3
|
-
declare type TableCellRootProps = React.ComponentPropsWithRef<typeof RootTableCell>;
|
|
3
|
+
export declare type TableCellRootProps = React.ComponentPropsWithRef<typeof RootTableCell>;
|
|
4
4
|
interface TableCellProps extends TableCellRootProps {
|
|
5
5
|
}
|
|
6
6
|
export declare const TableCell: (props: TableCellProps) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RootTableRow } from './styled';
|
|
3
|
-
declare type TableRowRootProps = React.ComponentPropsWithRef<typeof RootTableRow>;
|
|
3
|
+
export declare type TableRowRootProps = React.ComponentPropsWithRef<typeof RootTableRow>;
|
|
4
4
|
interface TableRowProps extends TableRowRootProps {
|
|
5
5
|
}
|
|
6
6
|
export declare const TableRow: (props: TableRowProps) => JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
declare type Props = {
|
|
3
|
+
html: string;
|
|
4
|
+
id: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const RecursiveNode: ({ html, id }: Props) => JSX.Element;
|
|
6
7
|
export {};
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { DataCheckList } from '../../interfaces';
|
|
3
|
-
|
|
3
|
+
import { RootContainerProps } from '../../components/Container';
|
|
4
|
+
import { CheckListRootProps } from '../../components/CheckList';
|
|
5
|
+
import { RootCheckListItemProps } from '../../components/CheckListItem';
|
|
6
|
+
export interface CheckListNodeProps {
|
|
4
7
|
type: 'checklist';
|
|
5
8
|
data: DataCheckList;
|
|
6
9
|
id: string;
|
|
7
10
|
tunes?: any;
|
|
11
|
+
Container?: RootContainerProps;
|
|
12
|
+
CheckList?: CheckListRootProps;
|
|
13
|
+
Item?: RootCheckListItemProps;
|
|
8
14
|
}
|
|
9
|
-
export declare const CheckListNode: ({ type, data, id, tunes, }:
|
|
15
|
+
export declare const CheckListNode: ({ type, data, id, tunes, Container, CheckList, Item, }: CheckListNodeProps) => JSX.Element;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { DataCodeLang } from '../../interfaces';
|
|
3
|
-
|
|
3
|
+
import { RootContainerProps } from '../../components/Container';
|
|
4
|
+
import { CodeRootProps } from '../../components/Code';
|
|
5
|
+
export interface CodeNodeProps {
|
|
4
6
|
type: 'code';
|
|
5
7
|
data: DataCodeLang;
|
|
6
8
|
id: string;
|
|
9
|
+
Container?: RootContainerProps;
|
|
10
|
+
Code?: CodeRootProps;
|
|
7
11
|
}
|
|
8
|
-
export declare const CodeNode: ({ type, data, id }:
|
|
12
|
+
export declare const CodeNode: ({ type, data, id, Container, Code, }: CodeNodeProps) => JSX.Element;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { DataDelimiter } from '../../interfaces';
|
|
3
|
-
|
|
3
|
+
import { DelimiterRootProps } from '../../components/Delimiter';
|
|
4
|
+
import { RootContainerProps } from '../../components/Container';
|
|
5
|
+
export interface DelimiterNodeProps {
|
|
4
6
|
type: 'delimiter';
|
|
5
7
|
data: DataDelimiter;
|
|
6
8
|
id: string;
|
|
9
|
+
Delimiter?: DelimiterRootProps;
|
|
10
|
+
Container?: RootContainerProps;
|
|
7
11
|
}
|
|
8
|
-
export declare const DelimiterNode: ({ type, id, }:
|
|
12
|
+
export declare const DelimiterNode: ({ type, id, Delimiter, Container }: DelimiterNodeProps) => JSX.Element;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { DataEmbed } from '../../interfaces';
|
|
3
|
-
|
|
3
|
+
import { RootContainerProps } from '../../components/Container';
|
|
4
|
+
import { EmbedRootProps } from '../../components/Embed';
|
|
5
|
+
export interface EmbedNodeProps {
|
|
4
6
|
type: 'embed';
|
|
5
7
|
data: DataEmbed;
|
|
6
8
|
id: string;
|
|
9
|
+
Container?: RootContainerProps;
|
|
10
|
+
Embed?: EmbedRootProps;
|
|
7
11
|
}
|
|
8
|
-
export declare const EmbedNode: ({ type, data, id, }:
|
|
12
|
+
export declare const EmbedNode: ({ type, data, id, Container, Embed }: EmbedNodeProps) => JSX.Element;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { DataHeader } from '../../interfaces';
|
|
3
|
-
|
|
3
|
+
import { RootContainerProps } from '../../components/Container';
|
|
4
|
+
import { HeaderRootProps } from '../../components/Header';
|
|
5
|
+
export interface HeaderNodeProps {
|
|
4
6
|
type: 'header';
|
|
5
7
|
data: DataHeader;
|
|
6
8
|
id: string;
|
|
9
|
+
Container?: RootContainerProps;
|
|
10
|
+
Header?: HeaderRootProps;
|
|
7
11
|
}
|
|
8
|
-
export declare const HeaderNode: ({ type, data, id, }:
|
|
12
|
+
export declare const HeaderNode: ({ type, data, id, Container, Header, }: HeaderNodeProps) => JSX.Element;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { RootContainerProps } from '../../components/Container';
|
|
3
|
+
import { ImageRootProps } from '../../components/Image';
|
|
2
4
|
import { DataImage } from '../../interfaces';
|
|
3
|
-
export interface
|
|
5
|
+
export interface ImageNodeProps {
|
|
4
6
|
type: 'image';
|
|
5
7
|
data: DataImage;
|
|
6
8
|
id: string;
|
|
9
|
+
Container?: RootContainerProps;
|
|
10
|
+
Image?: ImageRootProps;
|
|
7
11
|
}
|
|
8
|
-
export declare const ImageNode: ({ type, data, id, }:
|
|
12
|
+
export declare const ImageNode: ({ type, data, id, Container, Image }: ImageNodeProps) => JSX.Element;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { RecursiveNode } from './RecursiveNode';
|
|
2
|
-
import { ParagraphNode,
|
|
3
|
-
import { HeaderNode,
|
|
2
|
+
import { ParagraphNode, ParagraphNodeProps } from './paragraph';
|
|
3
|
+
import { HeaderNode, HeaderNodeProps } from './header';
|
|
4
4
|
import { ListNode, ListNodeModel } from './list';
|
|
5
|
-
import { ImageNode,
|
|
6
|
-
import { TableNode,
|
|
7
|
-
import { DelimiterNode,
|
|
8
|
-
import { EmbedNode,
|
|
9
|
-
import { RawNode,
|
|
10
|
-
import { QuoteNode,
|
|
11
|
-
import { CodeNode,
|
|
12
|
-
import { LinkNode,
|
|
13
|
-
import { CheckListNode,
|
|
5
|
+
import { ImageNode, ImageNodeProps } from './image';
|
|
6
|
+
import { TableNode, TableNodeProps } from './table';
|
|
7
|
+
import { DelimiterNode, DelimiterNodeProps } from './delimiter';
|
|
8
|
+
import { EmbedNode, EmbedNodeProps } from './embed';
|
|
9
|
+
import { RawNode, RawNodeProps } from './raw';
|
|
10
|
+
import { QuoteNode, QuoteNodeProps } from './quote';
|
|
11
|
+
import { CodeNode, CodeNodeProps } from './code';
|
|
12
|
+
import { LinkNode, LinkNodeProps } from './link';
|
|
13
|
+
import { CheckListNode, CheckListNodeProps } from './checklist';
|
|
14
14
|
export { RecursiveNode, ParagraphNode, HeaderNode, ListNode, ImageNode, TableNode, DelimiterNode, EmbedNode, RawNode, QuoteNode, CodeNode, LinkNode, CheckListNode, };
|
|
15
|
-
export type { ParagraphNodeModel, HeaderNodeModel, ListNodeModel, ImageNodeModel, TableNodeModel, DelimiterNodeModel, EmbedNodeModel, RawNodeModel, QuoteNodeModel, CodeNodeModel, LinkNodeModel, CheckListNodeModel, };
|
|
15
|
+
export type { ParagraphNodeProps as ParagraphNodeModel, HeaderNodeProps as HeaderNodeModel, ListNodeModel, ImageNodeProps as ImageNodeModel, TableNodeProps as TableNodeModel, DelimiterNodeProps as DelimiterNodeModel, EmbedNodeProps as EmbedNodeModel, RawNodeProps as RawNodeModel, QuoteNodeProps as QuoteNodeModel, CodeNodeProps as CodeNodeModel, LinkNodeProps as LinkNodeModel, CheckListNodeProps as CheckListNodeModel, };
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { DataLinkTool } from '../../interfaces';
|
|
3
|
-
|
|
3
|
+
import { RootContainerProps } from '../../components/Container';
|
|
4
|
+
import { LinkRootProps } from '../../components/Link';
|
|
5
|
+
export interface LinkNodeProps {
|
|
4
6
|
type: 'linkTool';
|
|
5
7
|
data: DataLinkTool;
|
|
6
8
|
id: string;
|
|
9
|
+
Container?: RootContainerProps;
|
|
10
|
+
Link?: LinkRootProps;
|
|
7
11
|
}
|
|
8
|
-
export declare const LinkNode: ({ type, data, id, }:
|
|
12
|
+
export declare const LinkNode: ({ type, data, id, Container, Link }: LinkNodeProps) => JSX.Element;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { DataList } from '../../interfaces';
|
|
3
|
+
import { RootContainerProps } from '../../components/Container';
|
|
4
|
+
import { ListRootProps } from '../../components/List';
|
|
5
|
+
import { RootItemProps } from '../../components/ListItem';
|
|
3
6
|
export interface ListNodeModel {
|
|
4
7
|
type: 'list';
|
|
5
8
|
data: DataList;
|
|
6
9
|
id: string;
|
|
7
10
|
tunes?: any;
|
|
11
|
+
Container?: RootContainerProps;
|
|
12
|
+
List?: ListRootProps;
|
|
13
|
+
Item?: RootItemProps;
|
|
8
14
|
}
|
|
9
|
-
export declare const ListNode: ({ type, data, id, tunes, }: ListNodeModel) =>
|
|
15
|
+
export declare const ListNode: ({ type, data, id, tunes, List, Item }: ListNodeModel) => JSX.Element;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { DataParagraph } from '../../interfaces';
|
|
3
|
-
|
|
3
|
+
import { RootContainerProps } from '../../components/Container';
|
|
4
|
+
import { ParagraphRootProps } from '../../components/Paragraph';
|
|
5
|
+
export interface ParagraphNodeProps {
|
|
4
6
|
type: 'paragraph';
|
|
5
7
|
data: DataParagraph;
|
|
6
8
|
id: string;
|
|
9
|
+
Container?: RootContainerProps;
|
|
10
|
+
Paragraph?: ParagraphRootProps;
|
|
7
11
|
}
|
|
8
|
-
export declare const ParagraphNode: ({ type, data, id, }:
|
|
12
|
+
export declare const ParagraphNode: ({ type, data, id, Container, Paragraph, }: ParagraphNodeProps) => JSX.Element;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { DataQuote } from '../../interfaces';
|
|
3
|
-
|
|
3
|
+
import { QuoteRootProps } from '../../components/Quote';
|
|
4
|
+
import { RootContainerProps } from '../../components/Container';
|
|
5
|
+
export interface QuoteNodeProps {
|
|
4
6
|
type: 'quote';
|
|
5
7
|
data: DataQuote;
|
|
6
8
|
id: string;
|
|
9
|
+
Container?: RootContainerProps;
|
|
10
|
+
Quote?: QuoteRootProps;
|
|
7
11
|
}
|
|
8
|
-
export declare const QuoteNode: ({ type, data, id, }:
|
|
12
|
+
export declare const QuoteNode: ({ type, data, id, Container, Quote, }: QuoteNodeProps) => JSX.Element;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { DataRawTool } from '../../interfaces';
|
|
3
|
-
|
|
3
|
+
import { RootContainerProps } from '../../components/Container';
|
|
4
|
+
import { RawRootProps } from '../../components/Raw';
|
|
5
|
+
export interface RawNodeProps {
|
|
4
6
|
type: 'rawTool';
|
|
5
7
|
data: DataRawTool;
|
|
6
8
|
id: string;
|
|
9
|
+
Container?: RootContainerProps;
|
|
10
|
+
Raw?: RawRootProps;
|
|
7
11
|
}
|
|
8
|
-
export declare const RawNode: ({ type, data, id }:
|
|
12
|
+
export declare const RawNode: ({ type, data, id, Container, Raw }: RawNodeProps) => JSX.Element;
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
import { DataTable } from '../../interfaces
|
|
3
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DataTable } from '../../interfaces';
|
|
3
|
+
import { RootContainerProps } from '../../components/Container';
|
|
4
|
+
import { TableRowRootProps } from '../../components/TableRow';
|
|
5
|
+
import { TableRootProps } from '../../components/Table';
|
|
6
|
+
import { TableCellRootProps } from '../../components/TableCell';
|
|
7
|
+
export interface TableNodeProps {
|
|
4
8
|
type: 'table';
|
|
5
9
|
data: DataTable;
|
|
6
10
|
id: string;
|
|
11
|
+
Container?: RootContainerProps;
|
|
12
|
+
Table?: TableRootProps;
|
|
13
|
+
Row?: TableRowRootProps;
|
|
14
|
+
Cell?: TableCellRootProps;
|
|
7
15
|
}
|
|
8
|
-
export declare const TableNode: ({ type, data, id, }:
|
|
16
|
+
export declare const TableNode: ({ type, data, id, Container }: TableNodeProps) => JSX.Element;
|