easy-email-pro-core 0.2.0

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 (100) hide show
  1. package/lib/index.cjs.js +105 -0
  2. package/lib/index.es.js +7244 -0
  3. package/lib/typings/blocks/basic/Button/index.d.ts +2 -0
  4. package/lib/typings/blocks/basic/Column/index.d.ts +2 -0
  5. package/lib/typings/blocks/basic/Divider/index.d.ts +2 -0
  6. package/lib/typings/blocks/basic/Group/index.d.ts +2 -0
  7. package/lib/typings/blocks/basic/Hero/index.d.ts +2 -0
  8. package/lib/typings/blocks/basic/HtmlNode/index.d.ts +2 -0
  9. package/lib/typings/blocks/basic/Image/index.d.ts +2 -0
  10. package/lib/typings/blocks/basic/LineBreak/index.d.ts +2 -0
  11. package/lib/typings/blocks/basic/Mergetag/index.d.ts +2 -0
  12. package/lib/typings/blocks/basic/Navbar/index.d.ts +2 -0
  13. package/lib/typings/blocks/basic/NavbarLink/index.d.ts +2 -0
  14. package/lib/typings/blocks/basic/Page/index.d.ts +3 -0
  15. package/lib/typings/blocks/basic/Placeholder/index.d.ts +2 -0
  16. package/lib/typings/blocks/basic/Raw/index.d.ts +2 -0
  17. package/lib/typings/blocks/basic/Section/index.d.ts +2 -0
  18. package/lib/typings/blocks/basic/Social/index.d.ts +2 -0
  19. package/lib/typings/blocks/basic/SocialElement/index.d.ts +2 -0
  20. package/lib/typings/blocks/basic/Spacer/index.d.ts +2 -0
  21. package/lib/typings/blocks/basic/Text/index.d.ts +2 -0
  22. package/lib/typings/blocks/basic/Wrapper/index.d.ts +2 -0
  23. package/lib/typings/blocks/basic/index.d.ts +23 -0
  24. package/lib/typings/blocks/index.d.ts +45 -0
  25. package/lib/typings/blocks/logic/ForEach/index.d.ts +3 -0
  26. package/lib/typings/blocks/logic/Show/index.d.ts +2 -0
  27. package/lib/typings/blocks/logic/index.d.ts +5 -0
  28. package/lib/typings/blocks/standard/Button/index.d.ts +2 -0
  29. package/lib/typings/blocks/standard/Column/index.d.ts +2 -0
  30. package/lib/typings/blocks/standard/Divider/index.d.ts +2 -0
  31. package/lib/typings/blocks/standard/Group/index.d.ts +2 -0
  32. package/lib/typings/blocks/standard/Hero/index.d.ts +2 -0
  33. package/lib/typings/blocks/standard/Image/index.d.ts +2 -0
  34. package/lib/typings/blocks/standard/Navbar/index.d.ts +2 -0
  35. package/lib/typings/blocks/standard/NavbarLink/index.d.ts +2 -0
  36. package/lib/typings/blocks/standard/Section/index.d.ts +2 -0
  37. package/lib/typings/blocks/standard/Social/index.d.ts +2 -0
  38. package/lib/typings/blocks/standard/SocialElement/index.d.ts +2 -0
  39. package/lib/typings/blocks/standard/Spacer/index.d.ts +2 -0
  40. package/lib/typings/blocks/standard/Text/generateTextBlock.d.ts +4 -0
  41. package/lib/typings/blocks/standard/Text/index.d.ts +7 -0
  42. package/lib/typings/blocks/standard/TextList/TextListItem.d.ts +2 -0
  43. package/lib/typings/blocks/standard/TextList/index.d.ts +3 -0
  44. package/lib/typings/blocks/standard/Wrapper/index.d.ts +2 -0
  45. package/lib/typings/blocks/standard/index.d.ts +24 -0
  46. package/lib/typings/components/BasicBlock.d.ts +7 -0
  47. package/lib/typings/components/BlockRenderer.d.ts +9 -0
  48. package/lib/typings/components/ContentEditableBlock.d.ts +4 -0
  49. package/lib/typings/components/ContentLeaf.d.ts +4 -0
  50. package/lib/typings/components/Elements/Button.d.ts +9 -0
  51. package/lib/typings/components/Elements/Column.d.ts +8 -0
  52. package/lib/typings/components/Elements/Divider.d.ts +8 -0
  53. package/lib/typings/components/Elements/ForEach.d.ts +6 -0
  54. package/lib/typings/components/Elements/Group.d.ts +8 -0
  55. package/lib/typings/components/Elements/Hero.d.ts +8 -0
  56. package/lib/typings/components/Elements/HtmlNode.d.ts +9 -0
  57. package/lib/typings/components/Elements/Image.d.ts +8 -0
  58. package/lib/typings/components/Elements/Navbar.d.ts +8 -0
  59. package/lib/typings/components/Elements/NavbarLink.d.ts +8 -0
  60. package/lib/typings/components/Elements/Raw.d.ts +8 -0
  61. package/lib/typings/components/Elements/Section.d.ts +8 -0
  62. package/lib/typings/components/Elements/Show.d.ts +6 -0
  63. package/lib/typings/components/Elements/Social.d.ts +8 -0
  64. package/lib/typings/components/Elements/SocialElement.d.ts +8 -0
  65. package/lib/typings/components/Elements/Spacer.d.ts +8 -0
  66. package/lib/typings/components/Elements/Text.d.ts +8 -0
  67. package/lib/typings/components/Elements/Wrapper.d.ts +8 -0
  68. package/lib/typings/components/Elements/index.d.ts +19 -0
  69. package/lib/typings/components/index.d.ts +5 -0
  70. package/lib/typings/constants/blockCategory.d.ts +20 -0
  71. package/lib/typings/constants/blockType.d.ts +100 -0
  72. package/lib/typings/constants/editor.d.ts +1 -0
  73. package/lib/typings/constants/index.d.ts +4 -0
  74. package/lib/typings/constants/regexp.d.ts +2 -0
  75. package/lib/typings/constants/responsive.d.ts +4 -0
  76. package/lib/typings/index.d.ts +8 -0
  77. package/lib/typings/typings/custom-types.d.ts +22 -0
  78. package/lib/typings/typings/element-logic.d.ts +38 -0
  79. package/lib/typings/typings/element.d.ts +609 -0
  80. package/lib/typings/typings/helper.d.ts +6 -0
  81. package/lib/typings/typings/index.d.ts +35 -0
  82. package/lib/typings/typings/mergeTagGenerate.d.ts +18 -0
  83. package/lib/typings/utils/BeacasCore/contexts/EmailGlobalContext.d.ts +32 -0
  84. package/lib/typings/utils/BeacasCore/contexts/EmailRenderContext.d.ts +18 -0
  85. package/lib/typings/utils/BeacasCore/index.d.ts +14 -0
  86. package/lib/typings/utils/BeacasCore/universalElement.d.ts +11 -0
  87. package/lib/typings/utils/BlockManager.d.ts +7 -0
  88. package/lib/typings/utils/I18nManager.d.ts +9 -0
  89. package/lib/typings/utils/NodeUtils.d.ts +37 -0
  90. package/lib/typings/utils/classnames.d.ts +1 -0
  91. package/lib/typings/utils/createBlock.d.ts +5 -0
  92. package/lib/typings/utils/getAdapterAttributesString.d.ts +10 -0
  93. package/lib/typings/utils/index.d.ts +9 -0
  94. package/lib/typings/utils/isProductionMode.d.ts +15 -0
  95. package/lib/typings/utils/isValidReactChildren.d.ts +2 -0
  96. package/lib/typings/utils/mergeBlock.d.ts +2 -0
  97. package/lib/typings/utils/plugins/PluginManager.d.ts +43 -0
  98. package/lib/typings/utils/plugins/TemplateEngine.d.ts +9 -0
  99. package/lib/typings/utils/plugins/index.d.ts +2 -0
  100. package/package.json +34 -0
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, ButtonElement } from "../../../typings";
2
+ export declare const Button: ElementDefinition<ButtonElement>;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, ColumnElement } from "../../../typings";
2
+ export declare const Column: ElementDefinition<ColumnElement>;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, DividerElement } from "../../../typings";
2
+ export declare const Divider: ElementDefinition<DividerElement>;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, GroupElement } from "../../../typings";
2
+ export declare const Group: ElementDefinition<GroupElement>;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, HeroElement } from "../../../typings";
2
+ export declare const Hero: ElementDefinition<HeroElement>;
@@ -0,0 +1,2 @@
1
+ import { HtmlNodeElement, ElementDefinition } from "../../../typings";
2
+ export declare const HtmlNode: ElementDefinition<HtmlNodeElement>;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, ImageElement } from "../../../typings";
2
+ export declare const Image: ElementDefinition<ImageElement>;
@@ -0,0 +1,2 @@
1
+ import { LineBreakElement, ElementDefinition } from "../../../typings";
2
+ export declare const LineBreak: ElementDefinition<LineBreakElement>;
@@ -0,0 +1,2 @@
1
+ import { MergetagElement, ElementDefinition } from "../../../typings";
2
+ export declare const Mergetag: ElementDefinition<MergetagElement>;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, NavbarElement } from "../../../typings";
2
+ export declare const Navbar: ElementDefinition<NavbarElement>;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, NavbarLinkElement } from "../../../typings";
2
+ export declare const NavbarLink: ElementDefinition<NavbarLinkElement>;
@@ -0,0 +1,3 @@
1
+ import { ElementDefinition, PageElement } from "../../../typings";
2
+ export declare const Page: ElementDefinition<PageElement>;
3
+ export declare const PageTestingCss: string;
@@ -0,0 +1,2 @@
1
+ import { PlaceholderElement, ElementDefinition } from "../../../typings";
2
+ export declare const Placeholder: ElementDefinition<PlaceholderElement>;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, RawElement } from "../../../typings";
2
+ export declare const Raw: ElementDefinition<RawElement>;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, SectionElement } from "../../../typings";
2
+ export declare const Section: ElementDefinition<SectionElement>;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, SocialElement } from "../../../typings";
2
+ export declare const Social: ElementDefinition<SocialElement>;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, SocialItemElement } from "../../../typings";
2
+ export declare const SocialElement: ElementDefinition<SocialItemElement>;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, SpacerElement } from "../../../typings";
2
+ export declare const Spacer: ElementDefinition<SpacerElement>;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, TextElement } from "../../../typings";
2
+ export declare const Text: ElementDefinition<TextElement>;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, WrapperElement } from "../../../typings";
2
+ export declare const Wrapper: ElementDefinition<WrapperElement>;
@@ -0,0 +1,23 @@
1
+ declare const _default: {
2
+ page: import("../..").ElementDefinition<import("../..").PageElement>;
3
+ hero: import("../..").ElementDefinition<import("../..").HeroElement>;
4
+ wrapper: import("../..").ElementDefinition<import("../..").WrapperElement>;
5
+ section: import("../..").ElementDefinition<import("../..").SectionElement>;
6
+ group: import("../..").ElementDefinition<import("../..").GroupElement>;
7
+ column: import("../..").ElementDefinition<import("../..").ColumnElement>;
8
+ text: import("../..").ElementDefinition<import("../..").TextElement>;
9
+ image: import("../..").ElementDefinition<import("../..").ImageElement>;
10
+ button: import("../..").ElementDefinition<import("../..").ButtonElement>;
11
+ spacer: import("../..").ElementDefinition<import("../..").SpacerElement>;
12
+ divider: import("../..").ElementDefinition<import("../..").DividerElement>;
13
+ social: import("../..").ElementDefinition<import("../..").SocialElement>;
14
+ "social-element": import("../..").ElementDefinition<import("../..").SocialItemElement>;
15
+ navbar: import("../..").ElementDefinition<import("../..").NavbarElement>;
16
+ "navbar-link": import("../..").ElementDefinition<import("../..").NavbarLinkElement>;
17
+ raw: import("../..").ElementDefinition<import("../..").RawElement>;
18
+ mergetag: import("../..").ElementDefinition<import("../..").MergetagElement>;
19
+ "line-break": import("../..").ElementDefinition<import("../..").LineBreakElement>;
20
+ placeholder: import("../..").ElementDefinition<import("../..").PlaceholderElement>;
21
+ "html-node": import("../..").ElementDefinition<import("../..").HtmlNodeElement>;
22
+ };
23
+ export default _default;
@@ -0,0 +1,45 @@
1
+ export declare const blockMap: {
2
+ "logic-for-each": import("..").ElementDefinition<import("..").ForEachElement>;
3
+ "logic-show": import("..").ElementDefinition<import("..").ShowElement>;
4
+ "standard-hero": import("..").ElementDefinition<import("..").StandardHeroElement>;
5
+ "standard-divider": import("..").ElementDefinition<import("..").StandardDividerElement>;
6
+ "standard-wrapper": import("..").ElementDefinition<import("..").StandardWrapperElement>;
7
+ "standard-section": import("..").ElementDefinition<import("..").StandardSectionElement>;
8
+ "standard-group": import("..").ElementDefinition<import("..").StandardGroupElement>;
9
+ "standard-social": import("..").ElementDefinition<import("..").StandardSocialElement>;
10
+ "standard-social-element": import("..").ElementDefinition<import("..").StandardSocialItemElement>;
11
+ "standard-column": import("..").ElementDefinition<import("..").StandardColumnElement>;
12
+ "standard-button": import("..").ElementDefinition<import("..").StandardButtonElement>;
13
+ "standard-spacer": import("..").ElementDefinition<import("..").StandardSpacerElement>;
14
+ "standard-image": import("..").ElementDefinition<import("..").StandardImageElement>;
15
+ "standard-text": import("..").ElementDefinition<import("..").StandardTextElement>;
16
+ "standard-navbar": import("..").ElementDefinition<import("..").StandardNavbarElement>;
17
+ "standard-navbar-link": import("..").ElementDefinition<import("..").StandardNavbarLinkElement>;
18
+ "standard-paragraph": import("..").ElementDefinition<import("..").StandardParagraphElement>;
19
+ "standard-h1": import("..").ElementDefinition<import("..").StandardH1Element>;
20
+ "standard-h2": import("..").ElementDefinition<import("..").StandardH2Element>;
21
+ "standard-h3": import("..").ElementDefinition<import("..").StandardH3Element>;
22
+ "standard-h4": import("..").ElementDefinition<import("..").StandardH4Element>;
23
+ "standard-text-list": import("..").ElementDefinition<import("..").StandardTextListElement>;
24
+ "standard-text-list-item": import("..").ElementDefinition<import("..").StandardTextListItemElement>;
25
+ page: import("..").ElementDefinition<import("..").PageElement>;
26
+ hero: import("..").ElementDefinition<import("..").HeroElement>;
27
+ wrapper: import("..").ElementDefinition<import("..").WrapperElement>;
28
+ section: import("..").ElementDefinition<import("..").SectionElement>;
29
+ group: import("..").ElementDefinition<import("..").GroupElement>;
30
+ column: import("..").ElementDefinition<import("..").ColumnElement>;
31
+ text: import("..").ElementDefinition<import("..").TextElement>;
32
+ image: import("..").ElementDefinition<import("..").ImageElement>;
33
+ button: import("..").ElementDefinition<import("..").ButtonElement>;
34
+ spacer: import("..").ElementDefinition<import("..").SpacerElement>;
35
+ divider: import("..").ElementDefinition<import("..").DividerElement>;
36
+ social: import("..").ElementDefinition<import("..").SocialElement>;
37
+ "social-element": import("..").ElementDefinition<import("..").SocialItemElement>;
38
+ navbar: import("..").ElementDefinition<import("..").NavbarElement>;
39
+ "navbar-link": import("..").ElementDefinition<import("..").NavbarLinkElement>;
40
+ raw: import("..").ElementDefinition<import("..").RawElement>;
41
+ mergetag: import("..").ElementDefinition<import("..").MergetagElement>;
42
+ "line-break": import("..").ElementDefinition<import("..").LineBreakElement>;
43
+ placeholder: import("..").ElementDefinition<import("..").PlaceholderElement>;
44
+ "html-node": import("..").ElementDefinition<import("..").HtmlNodeElement>;
45
+ };
@@ -0,0 +1,3 @@
1
+ import { ElementDefinition, ForEachElement } from "../../../typings";
2
+ export type IForEach = ElementDefinition<ForEachElement>;
3
+ export declare const ForEach: ElementDefinition<ForEachElement>;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, ShowElement } from "../../../typings";
2
+ export declare const Show: ElementDefinition<ShowElement>;
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ "logic-for-each": import("../..").ElementDefinition<import("../..").ForEachElement>;
3
+ "logic-show": import("../..").ElementDefinition<import("../..").ShowElement>;
4
+ };
5
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, StandardButtonElement } from "../../../typings";
2
+ export declare const StandardButton: ElementDefinition<StandardButtonElement>;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, StandardColumnElement } from "../../../typings";
2
+ export declare const StandardColumn: ElementDefinition<StandardColumnElement>;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, StandardDividerElement } from "../../../typings";
2
+ export declare const StandardDivider: ElementDefinition<StandardDividerElement>;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, StandardGroupElement } from "../../../typings";
2
+ export declare const StandardGroup: ElementDefinition<StandardGroupElement>;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, StandardHeroElement } from "../../../typings";
2
+ export declare const StandardHero: ElementDefinition<StandardHeroElement>;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, StandardImageElement } from "../../../typings";
2
+ export declare const StandardImage: ElementDefinition<StandardImageElement>;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, StandardNavbarElement } from "../../../typings";
2
+ export declare const StandardNavbar: ElementDefinition<StandardNavbarElement>;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, StandardNavbarLinkElement } from "../../../typings";
2
+ export declare const StandardNavbarLink: ElementDefinition<StandardNavbarLinkElement>;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, StandardSectionElement } from "../../../typings";
2
+ export declare const StandardSection: ElementDefinition<StandardSectionElement>;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, StandardSocialElement } from "../../../typings";
2
+ export declare const StandardSocial: ElementDefinition<StandardSocialElement>;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, StandardSocialItemElement } from "../../../typings";
2
+ export declare const StandardSocialElement: ElementDefinition<StandardSocialItemElement>;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, StandardSpacerElement } from "../../../typings";
2
+ export declare const StandardSpacer: ElementDefinition<StandardSpacerElement>;
@@ -0,0 +1,4 @@
1
+ import { ElementDefinition, Element } from "../../../typings";
2
+ export declare const generateTextBlock: <T extends Element>(element: T & {
3
+ name: string;
4
+ }, defaultData: Omit<T, "type" | "children">) => ElementDefinition<T>;
@@ -0,0 +1,7 @@
1
+ import { StandardH1Element, StandardH2Element, StandardH3Element, StandardH4Element, StandardParagraphElement, StandardTextElement } from "../../../typings";
2
+ export declare const StandardText: import("../../../typings").ElementDefinition<StandardTextElement>;
3
+ export declare const StandardParagraph: import("../../../typings").ElementDefinition<StandardParagraphElement>;
4
+ export declare const StandardHeading1: import("../../../typings").ElementDefinition<StandardH1Element>;
5
+ export declare const StandardHeading2: import("../../../typings").ElementDefinition<StandardH2Element>;
6
+ export declare const StandardHeading3: import("../../../typings").ElementDefinition<StandardH3Element>;
7
+ export declare const StandardHeading4: import("../../../typings").ElementDefinition<StandardH4Element>;
@@ -0,0 +1,2 @@
1
+ import { StandardTextListItemElement } from "../../../typings";
2
+ export declare const StandardTextListItem: import("../../../typings").ElementDefinition<StandardTextListItemElement>;
@@ -0,0 +1,3 @@
1
+ import { StandardTextListElement } from "../../../typings";
2
+ export { StandardTextListItem } from "./TextListItem";
3
+ export declare const StandardTextList: import("../../../typings").ElementDefinition<StandardTextListElement>;
@@ -0,0 +1,2 @@
1
+ import { ElementDefinition, StandardWrapperElement } from "../../../typings";
2
+ export declare const StandardWrapper: ElementDefinition<StandardWrapperElement>;
@@ -0,0 +1,24 @@
1
+ declare const _default: {
2
+ "standard-hero": import("../..").ElementDefinition<import("../..").StandardHeroElement>;
3
+ "standard-divider": import("../..").ElementDefinition<import("../..").StandardDividerElement>;
4
+ "standard-wrapper": import("../..").ElementDefinition<import("../..").StandardWrapperElement>;
5
+ "standard-section": import("../..").ElementDefinition<import("../..").StandardSectionElement>;
6
+ "standard-group": import("../..").ElementDefinition<import("../..").StandardGroupElement>;
7
+ "standard-social": import("../..").ElementDefinition<import("../..").StandardSocialElement>;
8
+ "standard-social-element": import("../..").ElementDefinition<import("../..").StandardSocialItemElement>;
9
+ "standard-column": import("../..").ElementDefinition<import("../..").StandardColumnElement>;
10
+ "standard-button": import("../..").ElementDefinition<import("../..").StandardButtonElement>;
11
+ "standard-spacer": import("../..").ElementDefinition<import("../..").StandardSpacerElement>;
12
+ "standard-image": import("../..").ElementDefinition<import("../..").StandardImageElement>;
13
+ "standard-text": import("../..").ElementDefinition<import("../..").StandardTextElement>;
14
+ "standard-navbar": import("../..").ElementDefinition<import("../..").StandardNavbarElement>;
15
+ "standard-navbar-link": import("../..").ElementDefinition<import("../..").StandardNavbarLinkElement>;
16
+ "standard-paragraph": import("../..").ElementDefinition<import("../..").StandardParagraphElement>;
17
+ "standard-h1": import("../..").ElementDefinition<import("../..").StandardH1Element>;
18
+ "standard-h2": import("../..").ElementDefinition<import("../..").StandardH2Element>;
19
+ "standard-h3": import("../..").ElementDefinition<import("../..").StandardH3Element>;
20
+ "standard-h4": import("../..").ElementDefinition<import("../..").StandardH4Element>;
21
+ "standard-text-list": import("../..").ElementDefinition<import("../..").StandardTextListElement>;
22
+ "standard-text-list-item": import("../..").ElementDefinition<import("../..").StandardTextListItemElement>;
23
+ };
24
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { ElementDefinition } from "..";
3
+ export declare function BasicBlock(props: {
4
+ params: Parameters<ElementDefinition["render"]>[0];
5
+ tag: string;
6
+ children?: React.ReactNode;
7
+ }): JSX.Element;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { Element } from "../typings";
3
+ type BlockDataItem = {
4
+ node: Element;
5
+ children?: React.ReactNode;
6
+ idx?: string | null | undefined;
7
+ };
8
+ export declare const BlockRenderer: (props: BlockDataItem) => JSX.Element;
9
+ export {};
@@ -0,0 +1,4 @@
1
+ import { TextElement } from "..";
2
+ export declare const ContentEditableBlock: ({ node }: {
3
+ node: TextElement;
4
+ }) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { TextNode } from "../typings";
2
+ export declare const ContentLeaf: ({ node }: {
3
+ node: TextNode;
4
+ }) => JSX.Element | null;
@@ -0,0 +1,9 @@
1
+ import { ElementChildren, ButtonElement } from "../../typings";
2
+ import { RecursivePartial } from "../../typings/helper";
3
+ export type ButtonProps = RecursivePartial<ButtonElement["attributes"]> & {
4
+ idx?: string | null;
5
+ children?: ElementChildren | ButtonElement["children"] | string;
6
+ data?: ButtonElement["data"];
7
+ logic?: ButtonElement["logic"];
8
+ };
9
+ export declare function Button(props: ButtonProps): JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { ElementChildren, ColumnElement } from "../../typings";
2
+ import { RecursivePartial } from "../../typings/helper";
3
+ export type ColumnProps = RecursivePartial<ColumnElement["attributes"]> & {
4
+ idx?: string | null;
5
+ children?: ElementChildren | ColumnElement["children"];
6
+ data?: ColumnElement["data"];
7
+ };
8
+ export declare function Column(props: ColumnProps): JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { ElementChildren, DividerElement } from "../../typings";
2
+ import { RecursivePartial } from "../../typings/helper";
3
+ export type DividerProps = RecursivePartial<DividerElement["attributes"]> & {
4
+ idx?: string | null;
5
+ children?: ElementChildren | DividerElement["children"];
6
+ data?: DividerElement["data"];
7
+ };
8
+ export declare function Divider(props: DividerProps): JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { ElementChildren, ForEachElement } from "../../typings";
2
+ export type ForEachElementProps = ForEachElement["data"] & {
3
+ idx?: string | null;
4
+ children?: ElementChildren | ForEachElement["children"];
5
+ };
6
+ export declare function ForEach(props: ForEachElementProps): JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { ElementChildren, GroupElement } from "../../typings";
2
+ import { RecursivePartial } from "../../typings/helper";
3
+ export type GroupProps = RecursivePartial<GroupElement["attributes"]> & {
4
+ idx?: string | null;
5
+ children?: ElementChildren | GroupElement["children"];
6
+ data?: GroupElement["data"];
7
+ };
8
+ export declare function Group(props: GroupProps): JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { ElementChildren, HeroElement } from "../../typings";
2
+ import { RecursivePartial } from "../../typings/helper";
3
+ export type HeroProps = RecursivePartial<HeroElement["attributes"]> & {
4
+ idx?: string | null;
5
+ children?: ElementChildren | HeroElement["children"];
6
+ data?: HeroElement["data"];
7
+ };
8
+ export declare function Hero(props: HeroProps): JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { HtmlNodeElement } from "../../typings";
2
+ import React from "react";
3
+ import { RecursivePartial } from "../../typings/helper";
4
+ export type HtmlNodeProps = RecursivePartial<HtmlNodeElement["attributes"]> & {
5
+ idx?: string | null;
6
+ children?: React.ReactNode;
7
+ tagName: keyof HTMLElementTagNameMap;
8
+ };
9
+ export declare function HtmlNode(props: HtmlNodeProps): JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { ElementChildren, ImageElement } from "../../typings";
2
+ import { RecursivePartial } from "../../typings/helper";
3
+ export type ImageProps = RecursivePartial<ImageElement["attributes"]> & {
4
+ idx?: string | null;
5
+ children?: ElementChildren | ImageElement["children"];
6
+ data?: ImageElement["data"];
7
+ };
8
+ export declare function Image(props: ImageProps): JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { ElementChildren, NavbarElement } from "../../typings";
2
+ import { RecursivePartial } from "../../typings/helper";
3
+ export type NavbarProps = RecursivePartial<NavbarElement["attributes"]> & {
4
+ idx?: string | null;
5
+ children?: ElementChildren | NavbarElement["children"];
6
+ data?: NavbarElement["data"];
7
+ };
8
+ export declare function Navbar(props: NavbarProps): JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { ElementChildren, NavbarLinkElement } from "../../typings";
2
+ import { RecursivePartial } from "../../typings/helper";
3
+ export type NavbarLinkProps = RecursivePartial<NavbarLinkElement["attributes"]> & {
4
+ idx?: string | null;
5
+ children?: ElementChildren | NavbarLinkElement["children"];
6
+ data?: NavbarLinkElement["data"];
7
+ };
8
+ export declare function NavbarLink(props: NavbarLinkProps): JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { RawElement } from "../../typings";
2
+ import { RecursivePartial } from "../../typings/helper";
3
+ export type RawProps = RecursivePartial<RawElement["attributes"]> & {
4
+ idx?: string | null;
5
+ children?: string;
6
+ data?: RawElement["data"];
7
+ };
8
+ export declare function Raw(props: RawProps): JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { ElementChildren, SectionElement } from "../../typings";
2
+ import { RecursivePartial } from "../../typings/helper";
3
+ export type SectionProps = RecursivePartial<SectionElement["attributes"]> & {
4
+ idx?: string | null;
5
+ children?: ElementChildren | SectionElement["children"];
6
+ data?: SectionElement["data"];
7
+ };
8
+ export declare function Section(props: SectionProps): JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { ShowElement } from "../../typings";
2
+ export type ShowElementProps = Omit<ShowElement["data"], "component"> & {
3
+ idx?: string | null;
4
+ children: ShowElement["data"]["component"];
5
+ };
6
+ export declare function Show(props: ShowElementProps): JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { ElementChildren, SocialElement } from "../../typings";
2
+ import { RecursivePartial } from "../../typings/helper";
3
+ export type SocialProps = RecursivePartial<SocialElement["attributes"]> & {
4
+ idx?: string | null;
5
+ children?: ElementChildren | SocialElement["children"];
6
+ data?: SocialElement["data"];
7
+ };
8
+ export declare function Social(props: SocialProps): JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { ElementChildren, SocialItemElement } from "../../typings";
2
+ import { RecursivePartial } from "../../typings/helper";
3
+ export type SocialElementProps = RecursivePartial<SocialItemElement["attributes"]> & {
4
+ idx?: string | null;
5
+ children?: ElementChildren | SocialItemElement["children"];
6
+ data?: SocialItemElement["data"];
7
+ };
8
+ export declare function SocialElement(props: SocialElementProps): JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { ElementChildren, SpacerElement } from "../../typings";
2
+ import { RecursivePartial } from "../../typings/helper";
3
+ export type SpacerProps = RecursivePartial<SpacerElement["attributes"]> & {
4
+ idx?: string | null;
5
+ children?: ElementChildren | SpacerElement["children"];
6
+ data?: SpacerElement["data"];
7
+ };
8
+ export declare function Spacer(props: SpacerProps): JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { ElementChildren, TextElement } from "../../typings";
2
+ import { RecursivePartial } from "../../typings/helper";
3
+ export type TextProps = RecursivePartial<Omit<TextElement["attributes"], "children">> & {
4
+ idx?: string | null;
5
+ children?: ElementChildren | TextElement["children"] | string;
6
+ data?: TextElement["data"];
7
+ };
8
+ export declare function Text(props: TextProps): JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { ElementChildren, WrapperElement } from "../../typings";
2
+ import { RecursivePartial } from "../../typings/helper";
3
+ export type WrapperProps = RecursivePartial<WrapperElement["attributes"]> & {
4
+ idx?: string | null;
5
+ children?: ElementChildren | WrapperElement["children"];
6
+ data?: WrapperElement["data"];
7
+ };
8
+ export declare function Wrapper(props: WrapperProps): JSX.Element;
@@ -0,0 +1,19 @@
1
+ import { Wrapper } from "./Wrapper";
2
+ import { Section } from "./Section";
3
+ import { Group } from "./Group";
4
+ import { Column } from "./Column";
5
+ import { Button } from "./Button";
6
+ import { Image } from "./Image";
7
+ import { Text } from "./Text";
8
+ import { Spacer } from "./Spacer";
9
+ import { Raw } from "./Raw";
10
+ import { Divider } from "./Divider";
11
+ import { Navbar } from "./Navbar";
12
+ import { NavbarLink } from "./NavbarLink";
13
+ import { Social } from "./Social";
14
+ import { SocialElement } from "./SocialElement";
15
+ import { Hero } from "./Hero";
16
+ import { HtmlNode } from "./HtmlNode";
17
+ import { ForEach } from "./ForEach";
18
+ import { Show } from "./Show";
19
+ export { Wrapper, Section, Column, Text, Button, Image, Raw, Spacer, Group, Divider, Navbar, NavbarLink, Social, SocialElement, Hero, HtmlNode, ForEach, Show, };
@@ -0,0 +1,5 @@
1
+ export * from "./BlockRenderer";
2
+ export * from "./BasicBlock";
3
+ export * from "./ContentLeaf";
4
+ export * from "./Elements";
5
+ export * from "./ContentEditableBlock";
@@ -0,0 +1,20 @@
1
+ export declare const ElementCategory: {
2
+ PAGE: "page";
3
+ RAW: "raw";
4
+ HERO: "hero";
5
+ WRAPPER: "wrapper";
6
+ SECTION: "section";
7
+ COLUMN: "column";
8
+ GROUP: "group";
9
+ TEXT: "text";
10
+ BUTTON: "button";
11
+ IMAGE: "image";
12
+ DIVIDER: "divider";
13
+ NAVBAR: "navbar";
14
+ SOCIAL: "social";
15
+ SPACER: "spacer";
16
+ TEXT_LIST: "text-list";
17
+ TEXT_LIST_ITEM: "text-list-item";
18
+ INLINE_TEXT: "inline-text";
19
+ UNSET: "unset";
20
+ };