@wulperstudio/editor-render 0.0.4-beta → 0.0.5-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.
Files changed (71) hide show
  1. package/dist/cjs/dist/base/index.d.ts +75 -2
  2. package/dist/cjs/dist/components/CheckList/index.d.ts +1 -1
  3. package/dist/cjs/dist/components/CheckListItem/index.d.ts +2 -2
  4. package/dist/cjs/dist/components/Code/index.d.ts +1 -1
  5. package/dist/cjs/dist/components/Container/index.d.ts +3 -3
  6. package/dist/cjs/dist/components/Delimiter/index.d.ts +1 -1
  7. package/dist/cjs/dist/components/Embed/index.d.ts +1 -1
  8. package/dist/cjs/dist/components/Header/index.d.ts +1 -1
  9. package/dist/cjs/dist/components/Image/index.d.ts +1 -1
  10. package/dist/cjs/dist/components/Link/index.d.ts +2 -2
  11. package/dist/cjs/dist/components/List/index.d.ts +1 -1
  12. package/dist/cjs/dist/components/ListItem/index.d.ts +1 -1
  13. package/dist/cjs/dist/components/Paragraph/index.d.ts +1 -1
  14. package/dist/cjs/dist/components/Quote/index.d.ts +1 -1
  15. package/dist/cjs/dist/components/Raw/index.d.ts +1 -1
  16. package/dist/cjs/dist/components/Table/index.d.ts +1 -1
  17. package/dist/cjs/dist/components/TableCell/index.d.ts +1 -1
  18. package/dist/cjs/dist/components/TableRow/index.d.ts +1 -1
  19. package/dist/cjs/dist/helpers/RecursiveNode/index.d.ts +5 -4
  20. package/dist/cjs/dist/helpers/checklist/index.d.ts +9 -3
  21. package/dist/cjs/dist/helpers/code/index.d.ts +7 -3
  22. package/dist/cjs/dist/helpers/delimiter/index.d.ts +7 -3
  23. package/dist/cjs/dist/helpers/embed/index.d.ts +7 -3
  24. package/dist/cjs/dist/helpers/header/index.d.ts +7 -3
  25. package/dist/cjs/dist/helpers/image/index.d.ts +7 -3
  26. package/dist/cjs/dist/helpers/index.d.ts +12 -12
  27. package/dist/cjs/dist/helpers/link/index.d.ts +7 -3
  28. package/dist/cjs/dist/helpers/list/index.d.ts +8 -2
  29. package/dist/cjs/dist/helpers/paragraph/index.d.ts +7 -3
  30. package/dist/cjs/dist/helpers/quote/index.d.ts +7 -3
  31. package/dist/cjs/dist/helpers/raw/index.d.ts +7 -3
  32. package/dist/cjs/dist/helpers/table/index.d.ts +12 -4
  33. package/dist/cjs/index.js +87 -171
  34. package/dist/cjs/index.js.map +1 -1
  35. package/dist/esm/dist/base/index.d.ts +75 -2
  36. package/dist/esm/dist/components/CheckList/index.d.ts +1 -1
  37. package/dist/esm/dist/components/CheckListItem/index.d.ts +2 -2
  38. package/dist/esm/dist/components/Code/index.d.ts +1 -1
  39. package/dist/esm/dist/components/Container/index.d.ts +3 -3
  40. package/dist/esm/dist/components/Delimiter/index.d.ts +1 -1
  41. package/dist/esm/dist/components/Embed/index.d.ts +1 -1
  42. package/dist/esm/dist/components/Header/index.d.ts +1 -1
  43. package/dist/esm/dist/components/Image/index.d.ts +1 -1
  44. package/dist/esm/dist/components/Link/index.d.ts +2 -2
  45. package/dist/esm/dist/components/List/index.d.ts +1 -1
  46. package/dist/esm/dist/components/ListItem/index.d.ts +1 -1
  47. package/dist/esm/dist/components/Paragraph/index.d.ts +1 -1
  48. package/dist/esm/dist/components/Quote/index.d.ts +1 -1
  49. package/dist/esm/dist/components/Raw/index.d.ts +1 -1
  50. package/dist/esm/dist/components/Table/index.d.ts +1 -1
  51. package/dist/esm/dist/components/TableCell/index.d.ts +1 -1
  52. package/dist/esm/dist/components/TableRow/index.d.ts +1 -1
  53. package/dist/esm/dist/helpers/RecursiveNode/index.d.ts +5 -4
  54. package/dist/esm/dist/helpers/checklist/index.d.ts +9 -3
  55. package/dist/esm/dist/helpers/code/index.d.ts +7 -3
  56. package/dist/esm/dist/helpers/delimiter/index.d.ts +7 -3
  57. package/dist/esm/dist/helpers/embed/index.d.ts +7 -3
  58. package/dist/esm/dist/helpers/header/index.d.ts +7 -3
  59. package/dist/esm/dist/helpers/image/index.d.ts +7 -3
  60. package/dist/esm/dist/helpers/index.d.ts +12 -12
  61. package/dist/esm/dist/helpers/link/index.d.ts +7 -3
  62. package/dist/esm/dist/helpers/list/index.d.ts +8 -2
  63. package/dist/esm/dist/helpers/paragraph/index.d.ts +7 -3
  64. package/dist/esm/dist/helpers/quote/index.d.ts +7 -3
  65. package/dist/esm/dist/helpers/raw/index.d.ts +7 -3
  66. package/dist/esm/dist/helpers/table/index.d.ts +12 -4
  67. package/dist/esm/index.js +87 -171
  68. package/dist/esm/index.js.map +1 -1
  69. package/dist/index.d.ts +122 -37
  70. package/dist/package.json +6 -4
  71. package/package.json +6 -4
@@ -1,3 +1,76 @@
1
- import { ReactNode } from 'react';
1
+ /// <reference types="react" />
2
2
  import { EditorDataModel } from '../interfaces';
3
- export declare const getBaseNodesFromEditor: (value: EditorDataModel) => ReactNode[];
3
+ import { RootContainerProps } from '../components/Container';
4
+ import { HeaderRootProps } from '../components/Header';
5
+ import { ParagraphRootProps } from '../components/Paragraph';
6
+ import { DelimiterRootProps } from '../components/Delimiter';
7
+ import { ListRootProps } from '../components/List';
8
+ import { RootItemProps } from '../components/ListItem';
9
+ import { ImageRootProps } from '../components/Image';
10
+ import { TableRootProps } from '../components/Table';
11
+ import { TableRowRootProps } from '../components/TableRow';
12
+ import { TableCellRootProps } from '../components/TableCell';
13
+ import { EmbedRootProps } from '../components/Embed';
14
+ import { RawRootProps } from '../components/Raw';
15
+ import { QuoteRootProps } from '../components/Quote';
16
+ import { CodeRootProps } from '../components/Code';
17
+ import { LinkRootProps } from '../components/Link';
18
+ import { CheckListRootProps } from '../components/CheckList';
19
+ import { RootCheckListItemProps } from '../components/CheckListItem';
20
+ declare type Props = {
21
+ value: EditorDataModel;
22
+ ParagraphSlot?: {
23
+ Container?: RootContainerProps;
24
+ Paragraph?: ParagraphRootProps;
25
+ };
26
+ HeaderSlot?: {
27
+ Container?: RootContainerProps;
28
+ Header?: HeaderRootProps;
29
+ };
30
+ DelimiterSlot?: {
31
+ Container?: RootContainerProps;
32
+ Delimiter?: DelimiterRootProps;
33
+ };
34
+ ListSlot?: {
35
+ Container?: RootContainerProps;
36
+ List?: ListRootProps;
37
+ Item?: RootItemProps;
38
+ };
39
+ ImageSlot?: {
40
+ Container?: RootContainerProps;
41
+ Image?: ImageRootProps;
42
+ };
43
+ TableSlot?: {
44
+ Container?: RootContainerProps;
45
+ Table?: TableRootProps;
46
+ Row?: TableRowRootProps;
47
+ Cell?: TableCellRootProps;
48
+ };
49
+ EmbedSlot?: {
50
+ Container?: RootContainerProps;
51
+ Embed?: EmbedRootProps;
52
+ };
53
+ RawSlot?: {
54
+ Container?: RootContainerProps;
55
+ Raw?: RawRootProps;
56
+ };
57
+ QuoteSlot?: {
58
+ Container?: RootContainerProps;
59
+ Quote?: QuoteRootProps;
60
+ };
61
+ CodeSlot?: {
62
+ Container?: RootContainerProps;
63
+ Code?: CodeRootProps;
64
+ };
65
+ LinkSlot?: {
66
+ Container?: RootContainerProps;
67
+ Link?: LinkRootProps;
68
+ };
69
+ CheckListSlot?: {
70
+ Container?: RootContainerProps;
71
+ CheckList?: CheckListRootProps;
72
+ Item?: RootCheckListItemProps;
73
+ };
74
+ };
75
+ export declare const BaseNodesEditor: ({ value, ParagraphSlot, HeaderSlot, DelimiterSlot, ListSlot, ImageSlot, TableSlot, EmbedSlot, RawSlot, QuoteSlot, CodeSlot, LinkSlot, CheckListSlot, }: Props) => (JSX.Element | null)[];
76
+ 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 RootItemProps = React.ComponentPropsWithRef<typeof RootListItem>;
4
- interface ItemModel extends RootItemProps {
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 ContainerModel extends RootContainerProps {
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: ContainerModel) => JSX.Element;
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 Omit<LinkRootProps, 'children'> {
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
- import { DOMNode } from 'html-react-parser';
3
- declare type RecursiveNodeType = false | void | object | JSX.Element | null | undefined;
4
- export declare const RecursiveNode: (domNode: DOMNode, idx: string) => RecursiveNodeType;
5
- export declare const getRecursiveNode: (html: string, id: string) => string | JSX.Element | JSX.Element[];
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
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { DataCheckList } from '../../interfaces';
3
- export interface CheckListNodeModel {
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, }: CheckListNodeModel) => React.ReactNode;
15
+ export declare const CheckListNode: ({ type, data, id, tunes, Container, CheckList, Item, }: CheckListNodeProps) => JSX.Element;
@@ -1,8 +1,12 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { DataCodeLang } from '../../interfaces';
3
- export interface CodeNodeModel {
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 }: CodeNodeModel) => React.ReactNode;
12
+ export declare const CodeNode: ({ type, data, id, Container, Code, }: CodeNodeProps) => JSX.Element;
@@ -1,8 +1,12 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { DataDelimiter } from '../../interfaces';
3
- export interface DelimiterNodeModel {
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, }: DelimiterNodeModel) => React.ReactNode;
12
+ export declare const DelimiterNode: ({ type, id, Delimiter, Container }: DelimiterNodeProps) => JSX.Element;
@@ -1,8 +1,12 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { DataEmbed } from '../../interfaces';
3
- export interface EmbedNodeModel {
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, }: EmbedNodeModel) => React.ReactNode;
12
+ export declare const EmbedNode: ({ type, data, id, Container, Embed }: EmbedNodeProps) => JSX.Element;
@@ -1,8 +1,12 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { DataHeader } from '../../interfaces';
3
- export interface HeaderNodeModel {
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, }: HeaderNodeModel) => React.ReactNode;
12
+ export declare const HeaderNode: ({ type, data, id, Container, Header, }: HeaderNodeProps) => JSX.Element;
@@ -1,8 +1,12 @@
1
- import React from 'react';
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 ImageNodeModel {
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, }: ImageNodeModel) => React.ReactNode;
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, ParagraphNodeModel } from './paragraph';
3
- import { HeaderNode, HeaderNodeModel } from './header';
2
+ import { ParagraphNode, ParagraphNodeProps } from './paragraph';
3
+ import { HeaderNode, HeaderNodeProps } from './header';
4
4
  import { ListNode, ListNodeModel } from './list';
5
- import { ImageNode, ImageNodeModel } from './image';
6
- import { TableNode, TableNodeModel } from './table';
7
- import { DelimiterNode, DelimiterNodeModel } from './delimiter';
8
- import { EmbedNode, EmbedNodeModel } from './embed';
9
- import { RawNode, RawNodeModel } from './raw';
10
- import { QuoteNode, QuoteNodeModel } from './quote';
11
- import { CodeNode, CodeNodeModel } from './code';
12
- import { LinkNode, LinkNodeModel } from './link';
13
- import { CheckListNode, CheckListNodeModel } from './checklist';
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
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { DataLinkTool } from '../../interfaces';
3
- export interface LinkNodeModel {
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, }: LinkNodeModel) => React.ReactNode;
12
+ export declare const LinkNode: ({ type, data, id, Container, Link }: LinkNodeProps) => JSX.Element;
@@ -1,9 +1,15 @@
1
- import React from 'react';
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) => React.ReactNode;
15
+ export declare const ListNode: ({ type, data, id, tunes, List, Item }: ListNodeModel) => JSX.Element;
@@ -1,8 +1,12 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { DataParagraph } from '../../interfaces';
3
- export interface ParagraphNodeModel {
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, }: ParagraphNodeModel) => React.ReactNode;
12
+ export declare const ParagraphNode: ({ type, data, id, Container, Paragraph, }: ParagraphNodeProps) => JSX.Element;
@@ -1,8 +1,12 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { DataQuote } from '../../interfaces';
3
- export interface QuoteNodeModel {
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, }: QuoteNodeModel) => React.ReactNode;
12
+ export declare const QuoteNode: ({ type, data, id, Container, Quote, }: QuoteNodeProps) => JSX.Element;
@@ -1,8 +1,12 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { DataRawTool } from '../../interfaces';
3
- export interface RawNodeModel {
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 }: RawNodeModel) => React.ReactNode;
12
+ export declare const RawNode: ({ type, data, id, Container, Raw }: RawNodeProps) => JSX.Element;
@@ -1,8 +1,16 @@
1
- import React from 'react';
2
- import { DataTable } from '../../interfaces/index';
3
- export interface TableNodeModel {
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, }: TableNodeModel) => React.ReactNode;
16
+ export declare const TableNode: ({ type, data, id, Container }: TableNodeProps) => JSX.Element;