@wulperstudio/editor-render 0.0.13-beta → 0.0.14-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/base/base.d.ts +3 -0
- package/base/base.js +2 -0
- package/base/base.mjs +2 -0
- package/base/base.types.d.ts +73 -0
- package/base/base.types.js +2 -0
- package/base/base.types.mjs +1 -0
- package/base/index.d.ts +2 -0
- package/base/index.js +3 -0
- package/base/index.mjs +3 -0
- package/components/Anchor/index.d.ts +7 -0
- package/components/Anchor/index.js +2 -0
- package/components/Anchor/index.mjs +2 -0
- package/components/Anchor/styled.d.ts +2 -0
- package/components/Bold/index.d.ts +7 -0
- package/components/Bold/index.js +2 -0
- package/components/Bold/index.mjs +2 -0
- package/components/Bold/styled.d.ts +2 -0
- package/components/CheckBox/index.d.ts +3 -0
- package/components/CheckBox/index.js +2 -0
- package/components/CheckBox/index.mjs +2 -0
- package/components/CheckList/index.d.ts +7 -0
- package/components/CheckList/index.js +2 -0
- package/components/CheckList/index.mjs +2 -0
- package/components/CheckList/styled.d.ts +2 -0
- package/components/CheckListItem/index.d.ts +7 -0
- package/components/CheckListItem/index.js +2 -0
- package/components/CheckListItem/index.mjs +2 -0
- package/components/CheckListItem/styled.d.ts +2 -0
- package/components/Code/index.d.ts +7 -0
- package/components/Code/index.js +2 -0
- package/components/Code/index.mjs +2 -0
- package/components/Code/styled.d.ts +2 -0
- package/components/Container/index.d.ts +8 -0
- package/components/Container/index.js +2 -0
- package/components/Container/index.mjs +2 -0
- package/components/Container/style.d.ts +6 -0
- package/components/Delimiter/index.d.ts +7 -0
- package/components/Delimiter/index.js +2 -0
- package/components/Delimiter/index.mjs +2 -0
- package/components/Delimiter/styled.d.ts +2 -0
- package/components/Embed/index.d.ts +8 -0
- package/components/Embed/index.js +2 -0
- package/components/Embed/index.mjs +2 -0
- package/components/Embed/styled.d.ts +3 -0
- package/components/Header/index.d.ts +8 -0
- package/components/Header/index.js +2 -0
- package/components/Header/index.mjs +2 -0
- package/components/Header/styled.d.ts +2 -0
- package/components/Image/index.d.ts +11 -0
- package/components/Image/index.js +2 -0
- package/components/Image/index.mjs +2 -0
- package/components/Image/styled.d.ts +10 -0
- package/components/InlineCode/index.d.ts +7 -0
- package/components/InlineCode/index.js +2 -0
- package/components/InlineCode/index.mjs +2 -0
- package/components/InlineCode/styled.d.ts +2 -0
- package/components/Italic/index.d.ts +7 -0
- package/components/Italic/index.js +2 -0
- package/components/Italic/index.mjs +2 -0
- package/components/Italic/styled.d.ts +2 -0
- package/components/Link/index.d.ts +11 -0
- package/components/Link/index.js +2 -0
- package/components/Link/index.mjs +2 -0
- package/components/Link/styled.d.ts +8 -0
- package/components/List/index.d.ts +7 -0
- package/components/List/index.js +2 -0
- package/components/List/index.mjs +2 -0
- package/components/List/styled.d.ts +2 -0
- package/components/ListItem/index.d.ts +7 -0
- package/components/ListItem/index.js +2 -0
- package/components/ListItem/index.mjs +2 -0
- package/components/ListItem/styled.d.ts +2 -0
- package/components/Marker/index.d.ts +7 -0
- package/components/Marker/index.js +2 -0
- package/components/Marker/index.mjs +2 -0
- package/components/Marker/styled.d.ts +2 -0
- package/components/Paragraph/index.d.ts +7 -0
- package/components/Paragraph/index.js +2 -0
- package/components/Paragraph/index.mjs +2 -0
- package/components/Paragraph/styled.d.ts +5 -0
- package/components/Quote/index.d.ts +7 -0
- package/components/Quote/index.js +2 -0
- package/components/Quote/index.mjs +2 -0
- package/components/Quote/styled.d.ts +5 -0
- package/components/Raw/index.d.ts +7 -0
- package/components/Raw/index.js +2 -0
- package/components/Raw/index.mjs +2 -0
- package/components/Raw/styled.d.ts +5 -0
- package/components/Table/index.d.ts +7 -0
- package/components/Table/index.js +2 -0
- package/components/Table/index.mjs +2 -0
- package/components/Table/styled.d.ts +2 -0
- package/components/TableCell/index.d.ts +7 -0
- package/components/TableCell/index.js +2 -0
- package/components/TableCell/index.mjs +2 -0
- package/components/TableCell/styled.d.ts +2 -0
- package/components/TableRow/index.d.ts +7 -0
- package/components/TableRow/index.js +2 -0
- package/components/TableRow/index.mjs +2 -0
- package/components/TableRow/styled.d.ts +2 -0
- package/components/index.d.ts +24 -0
- package/components/index.js +49 -0
- package/components/index.mjs +49 -0
- package/helpers/RecursiveNode/index.d.ts +7 -0
- package/helpers/RecursiveNode/index.js +2 -0
- package/helpers/RecursiveNode/index.mjs +2 -0
- package/helpers/checklist/index.d.ts +15 -0
- package/helpers/checklist/index.js +2 -0
- package/helpers/checklist/index.mjs +2 -0
- package/helpers/code/index.d.ts +12 -0
- package/helpers/code/index.js +2 -0
- package/helpers/code/index.mjs +2 -0
- package/helpers/delimiter/index.d.ts +12 -0
- package/helpers/delimiter/index.js +2 -0
- package/helpers/delimiter/index.mjs +2 -0
- package/helpers/embed/index.d.ts +12 -0
- package/helpers/embed/index.js +2 -0
- package/helpers/embed/index.mjs +2 -0
- package/helpers/header/index.d.ts +12 -0
- package/helpers/header/index.js +2 -0
- package/helpers/header/index.mjs +2 -0
- package/helpers/image/index.d.ts +12 -0
- package/helpers/image/index.js +2 -0
- package/helpers/image/index.mjs +2 -0
- package/helpers/index.d.ts +15 -0
- package/helpers/index.js +29 -0
- package/helpers/index.mjs +29 -0
- package/helpers/link/index.d.ts +12 -0
- package/helpers/link/index.js +2 -0
- package/helpers/link/index.mjs +2 -0
- package/helpers/list/index.d.ts +15 -0
- package/helpers/list/index.js +2 -0
- package/helpers/list/index.mjs +2 -0
- package/helpers/paragraph/index.d.ts +12 -0
- package/helpers/paragraph/index.js +2 -0
- package/helpers/paragraph/index.mjs +2 -0
- package/helpers/quote/index.d.ts +12 -0
- package/helpers/quote/index.js +2 -0
- package/helpers/quote/index.mjs +2 -0
- package/helpers/raw/index.d.ts +12 -0
- package/helpers/raw/index.js +2 -0
- package/helpers/raw/index.mjs +2 -0
- package/helpers/table/index.d.ts +16 -0
- package/helpers/table/index.js +2 -0
- package/helpers/table/index.mjs +2 -0
- package/index.d.ts +6 -0
- package/index.js +7 -0
- package/index.mjs +7 -0
- package/interfaces/index.d.ts +112 -0
- package/interfaces/index.js +2 -0
- package/interfaces/index.mjs +1 -0
- package/package.json +1 -4
- package/types/index.d.ts +1 -0
- package/types/index.js +2 -0
- package/types/index.mjs +1 -0
- package/utils/base_embed_service.d.ts +12 -0
- package/utils/base_embed_service.js +2 -0
- package/utils/base_embed_service.mjs +2 -0
- package/utils/get_flex_basis.d.ts +1 -0
- package/utils/get_flex_basis.js +2 -0
- package/utils/get_flex_basis.mjs +2 -0
- package/utils/index.d.ts +2 -0
- package/utils/index.js +3 -0
- package/utils/index.mjs +3 -0
- package/utils/purify_html.d.ts +1 -0
- package/utils/purify_html.js +2 -0
- package/utils/purify_html.mjs +2 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const RootList: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { RootListItem } from './styled';
|
|
3
|
+
export type RootItemProps = ComponentPropsWithRef<typeof RootListItem>;
|
|
4
|
+
interface ItemModel extends RootItemProps {
|
|
5
|
+
}
|
|
6
|
+
export declare const ListItem: ({ sx, ...props }: ItemModel) => import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";var s=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var f=(o,t)=>{for(var m in t)s(o,m,{get:t[m],enumerable:!0})},l=(o,t,m,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of R(t))!d.call(o,e)&&e!==m&&s(o,e,{get:()=>t[e],enumerable:!(r=n(t,e))||r.enumerable});return o};var x=o=>l(s({},"__esModule",{value:!0}),o);var P={};f(P,{ListItem:()=>L});module.exports=x(P);var i=require("@mui/material"),p=(0,i.styled)("div",{name:"RootListItem",label:"root__list__item",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var I=require("react/jsx-runtime"),L=({sx:o,...t})=>(0,I.jsx)(p,{sx:o,...t});0&&(module.exports={ListItem});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const RootListItem: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { RootMarker } from './styled';
|
|
3
|
+
type MarkerRootProps = ComponentPropsWithRef<typeof RootMarker>;
|
|
4
|
+
interface MarkerProps extends MarkerRootProps {
|
|
5
|
+
}
|
|
6
|
+
export declare const Marker: ({ sx, ...props }: MarkerProps) => import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";var p=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var R=Object.prototype.hasOwnProperty;var f=(o,r)=>{for(var t in r)p(o,t,{get:r[t],enumerable:!0})},P=(o,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of n(r))!R.call(o,e)&&e!==t&&p(o,e,{get:()=>r[e],enumerable:!(a=M(r,e))||a.enumerable});return o};var i=o=>P(p({},"__esModule",{value:!0}),o);var l={};f(l,{Marker:()=>d});module.exports=i(l);var s=require("@mui/material"),k=(0,s.styled)("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});var m=require("react/jsx-runtime"),d=({sx:o,...r})=>(0,m.jsx)(k,{sx:o,...r});0&&(module.exports={Marker});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const RootMarker: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { RootParagraph } from './styled';
|
|
3
|
+
export type ParagraphRootProps = ComponentPropsWithRef<typeof RootParagraph>;
|
|
4
|
+
interface ParagraphProps extends ParagraphRootProps {
|
|
5
|
+
}
|
|
6
|
+
export declare const Paragraph: ({ sx, ...props }: ParagraphProps) => import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";var p=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var i=(o,r)=>{for(var t in r)p(o,t,{get:r[t],enumerable:!0})},l=(o,r,t,e)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of s(r))!g.call(o,a)&&a!==t&&p(o,a,{get:()=>r[a],enumerable:!(e=n(r,a))||e.enumerable});return o};var R=o=>l(p({},"__esModule",{value:!0}),o);var d={};i(d,{Paragraph:()=>f});module.exports=R(d);var m=require("@mui/material"),P=(0,m.styled)("p",{name:"RootParagraph",label:"root__paragraph",shouldForwardProp:o=>o!=="as"})({margin:0});var h=require("react/jsx-runtime"),f=({sx:o,...r})=>(0,h.jsx)(P,{sx:o,...r});0&&(module.exports={Paragraph});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { StyledComponent } from '@emotion/styled';
|
|
2
|
+
import { Theme } from '@mui/material';
|
|
3
|
+
import { MUIStyledCommonProps } from '@mui/system';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
export declare const RootParagraph: StyledComponent<MUIStyledCommonProps<Theme>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { RootQuote } from './styled';
|
|
3
|
+
export type QuoteRootProps = ComponentPropsWithRef<typeof RootQuote>;
|
|
4
|
+
interface QuoteProps extends QuoteRootProps {
|
|
5
|
+
}
|
|
6
|
+
export declare const Quote: ({ sx, ...props }: QuoteProps) => import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";var p=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var Q=Object.getOwnPropertyNames;var R=Object.prototype.hasOwnProperty;var f=(o,t)=>{for(var r in t)p(o,r,{get:t[r],enumerable:!0})},i=(o,t,r,m)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of Q(t))!R.call(o,e)&&e!==r&&p(o,e,{get:()=>t[e],enumerable:!(m=l(t,e))||m.enumerable});return o};var P=o=>i(p({},"__esModule",{value:!0}),o);var a={};f(a,{Quote:()=>d});module.exports=P(a);var n=require("@mui/material"),s=(0,n.styled)("blockquote",{name:"RootQuote",label:"root__quote",shouldForwardProp:o=>o!=="as"})({});var u=require("react/jsx-runtime"),d=({sx:o,...t})=>(0,u.jsx)(s,{sx:o,...t});0&&(module.exports={Quote});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { StyledComponent } from '@emotion/styled';
|
|
2
|
+
import { Theme } from '@mui/material';
|
|
3
|
+
import { MUIStyledCommonProps } from '@mui/system';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
export declare const RootQuote: StyledComponent<MUIStyledCommonProps<Theme>, React.DetailedHTMLProps<React.BlockquoteHTMLAttributes<HTMLQuoteElement>, HTMLQuoteElement>, {}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { RootRaw } from './styled';
|
|
3
|
+
export type RawRootProps = ComponentPropsWithRef<typeof RootRaw>;
|
|
4
|
+
interface RawProps extends RawRootProps {
|
|
5
|
+
}
|
|
6
|
+
export declare const Raw: ({ sx, ...props }: RawProps) => import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";var p=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var d=(o,e)=>{for(var r in e)p(o,r,{get:e[r],enumerable:!0})},w=(o,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of s(e))!l.call(o,t)&&t!==r&&p(o,t,{get:()=>e[t],enumerable:!(a=R(e,t))||a.enumerable});return o};var c=o=>w(p({},"__esModule",{value:!0}),o);var h={};d(h,{Raw:()=>f});module.exports=c(h);var i=require("@mui/material"),m=(0,i.styled)("div",{name:"RootRaw",label:"root__raw",shouldForwardProp:o=>o!=="as"})({backgroundColor:"#1e2128",color:"#a1a7b6",overscrollBehavior:"contain",lineHeight:1.6,fontSize:12,minHeight:200,padding:"10px 12px",borderRadius:8,boxShadow:"inset 0 1px 2px 0 rgb(35 44 72 / 6%)",margin:"0",whiteSpace:"pre-wrap",resize:"vertical"});var n=require("react/jsx-runtime"),f=({sx:o,...e})=>(0,n.jsx)(m,{sx:o,...e});0&&(module.exports={Raw});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import{styled as r}from"@mui/material";var e=r("div",{name:"RootRaw",label:"root__raw",shouldForwardProp:o=>o!=="as"})({backgroundColor:"#1e2128",color:"#a1a7b6",overscrollBehavior:"contain",lineHeight:1.6,fontSize:12,minHeight:200,padding:"10px 12px",borderRadius:8,boxShadow:"inset 0 1px 2px 0 rgb(35 44 72 / 6%)",margin:"0",whiteSpace:"pre-wrap",resize:"vertical"});import{jsx as p}from"react/jsx-runtime";var R=({sx:o,...t})=>p(e,{sx:o,...t});export{R as Raw};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { StyledComponent } from '@emotion/styled';
|
|
2
|
+
import { Theme } from '@mui/material';
|
|
3
|
+
import { MUIStyledCommonProps } from '@mui/system';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
export declare const RootRaw: StyledComponent<MUIStyledCommonProps<Theme>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { RootTable } from './styled';
|
|
3
|
+
export type TableRootProps = ComponentPropsWithRef<typeof RootTable>;
|
|
4
|
+
interface TableProps extends TableRootProps {
|
|
5
|
+
}
|
|
6
|
+
export declare const Table: ({ sx, ...props }: TableProps) => import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";var p=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var T=(o,e)=>{for(var r in e)p(o,r,{get:e[r],enumerable:!0})},m=(o,e,r,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of n(e))!d.call(o,t)&&t!==r&&p(o,t,{get:()=>e[t],enumerable:!(l=b(e,t))||l.enumerable});return o};var f=o=>m(p({},"__esModule",{value:!0}),o);var h={};T(h,{Table:()=>R});module.exports=f(h);var a=require("@mui/material"),i=(0,a.styled)("div",{name:"RootTable",label:"root__table",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({position:"relative",width:"100%",height:"100%",display:"grid",fontSize:14,borderTop:"1px solid",borderTopColor:o.palette.primary.main,lineHeight:1.4}));var s=require("react/jsx-runtime"),R=({sx:o,...e})=>(0,s.jsx)(i,{sx:o,...e});0&&(module.exports={Table});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import{styled as r}from"@mui/material";var e=r("div",{name:"RootTable",label:"root__table",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({position:"relative",width:"100%",height:"100%",display:"grid",fontSize:14,borderTop:"1px solid",borderTopColor:o.palette.primary.main,lineHeight:1.4}));import{jsx as p}from"react/jsx-runtime";var s=({sx:o,...t})=>p(e,{sx:o,...t});export{s as Table};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const RootTable: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { RootTableCell } from './styled';
|
|
3
|
+
export type TableCellRootProps = ComponentPropsWithRef<typeof RootTableCell>;
|
|
4
|
+
interface TableCellProps extends TableCellRootProps {
|
|
5
|
+
}
|
|
6
|
+
export declare const TableCell: ({ sx, ...props }: TableCellProps) => import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";var t=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var f=(o,e)=>{for(var r in e)t(o,r,{get:e[r],enumerable:!0})},C=(o,e,r,p)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of b(e))!d.call(o,l)&&l!==r&&t(o,l,{get:()=>e[l],enumerable:!(p=i(e,l))||p.enumerable});return o};var R=o=>C(t({},"__esModule",{value:!0}),o);var T={};f(T,{TableCell:()=>m});module.exports=R(T);var a=require("@mui/material"),n=(0,a.styled)("div",{name:"RootTableRow",label:"root__table__row",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({borderRight:"1px solid",borderRightColor:o.palette.primary.main,padding:"6px 12px",overflow:"hidden",outline:"none",lineBreak:"normal","&:first-of-type":{borderLeft:"unset",borderLeftColor:"unset"},"&:last-of-type":{borderRight:"unset",borderRightColor:"unset"}}));var s=require("react/jsx-runtime"),m=({sx:o,...e})=>(0,s.jsx)(n,{sx:o,...e});0&&(module.exports={TableCell});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import{styled as r}from"@mui/material";var e=r("div",{name:"RootTableRow",label:"root__table__row",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({borderRight:"1px solid",borderRightColor:o.palette.primary.main,padding:"6px 12px",overflow:"hidden",outline:"none",lineBreak:"normal","&:first-of-type":{borderLeft:"unset",borderLeftColor:"unset"},"&:last-of-type":{borderRight:"unset",borderRightColor:"unset"}}));import{jsx as t}from"react/jsx-runtime";var s=({sx:o,...l})=>t(e,{sx:o,...l});export{s as TableCell};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const RootTableCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { RootTableRow } from './styled';
|
|
3
|
+
export type TableRowRootProps = ComponentPropsWithRef<typeof RootTableRow>;
|
|
4
|
+
interface TableRowProps extends TableRowRootProps {
|
|
5
|
+
}
|
|
6
|
+
export declare const TableRow: ({ sx, ...props }: TableRowProps) => import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";var p=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var n=(o,t)=>{for(var r in t)p(o,r,{get:t[r],enumerable:!0})},d=(o,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of s(t))!b.call(o,e)&&e!==r&&p(o,e,{get:()=>t[e],enumerable:!(a=m(t,e))||a.enumerable});return o};var w=o=>d(p({},"__esModule",{value:!0}),o);var f={};n(f,{TableRow:()=>T});module.exports=w(f);var l=require("@mui/material"),i=(0,l.styled)("div",{name:"RootTableRow",label:"root__table__row",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({display:"grid",gridTemplateColumns:"repeat(auto-fit,minmax(10px,1fr))",position:"relative",borderBottom:"1px solid",borderBottomColor:o.palette.primary.main}));var R=require("react/jsx-runtime"),T=({sx:o,...t})=>(0,R.jsx)(i,{sx:o,...t});0&&(module.exports={TableRow});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import{styled as r}from"@mui/material";var t=r("div",{name:"RootTableRow",label:"root__table__row",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({display:"grid",gridTemplateColumns:"repeat(auto-fit,minmax(10px,1fr))",position:"relative",borderBottom:"1px solid",borderBottomColor:o.palette.primary.main}));import{jsx as p}from"react/jsx-runtime";var R=({sx:o,...e})=>p(t,{sx:o,...e});export{R as TableRow};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const RootTableRow: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Container } from './Container';
|
|
2
|
+
import { Paragraph } from './Paragraph';
|
|
3
|
+
import { Header } from './Header';
|
|
4
|
+
import { List } from './List';
|
|
5
|
+
import { ListItem } from './ListItem';
|
|
6
|
+
import { InlineCode } from './InlineCode';
|
|
7
|
+
import { Bold } from './Bold';
|
|
8
|
+
import { Italic } from './Italic';
|
|
9
|
+
import { Marker } from './Marker';
|
|
10
|
+
import { Anchor } from './Anchor';
|
|
11
|
+
import { Delimiter } from './Delimiter';
|
|
12
|
+
import { Image } from './Image';
|
|
13
|
+
import { Table } from './Table';
|
|
14
|
+
import { TableRow } from './TableRow';
|
|
15
|
+
import { TableCell } from './TableCell';
|
|
16
|
+
import { Embed } from './Embed';
|
|
17
|
+
import { Raw } from './Raw';
|
|
18
|
+
import { Quote } from './Quote';
|
|
19
|
+
import { Code } from './Code';
|
|
20
|
+
import { Link } from './Link';
|
|
21
|
+
import { CheckList } from './CheckList';
|
|
22
|
+
import { CheckListItem } from './CheckListItem';
|
|
23
|
+
import { CheckBox } from './CheckBox';
|
|
24
|
+
export { Container as EditorContainer, Paragraph as EditorParagraph, Header as EditorHeader, List as EditorList, ListItem as EditorListItem, InlineCode as EditorInlineCode, Bold as EditorBold, Italic as EditorItalic, Marker as EditorMarker, Anchor as EditorAnchor, Delimiter as EditorDelimiter, Image as EditorImage, Table as EditorTable, TableRow as EditorTableRow, TableCell as EditorTableCell, Embed as EditorEmbed, Raw as EditorRaw, Quote as EditorQuote, Code as EditorCode, Link as EditorLink, CheckList as EditorCheckList, CheckListItem as EditorCheckListItem, CheckBox as EditorCheckBox, };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _Container = require('./Container');
|
|
3
|
+
var _Paragraph = require('./Paragraph');
|
|
4
|
+
var _Header = require('./Header');
|
|
5
|
+
var _List = require('./List');
|
|
6
|
+
var _ListItem = require('./ListItem');
|
|
7
|
+
var _InlineCode = require('./InlineCode');
|
|
8
|
+
var _Bold = require('./Bold');
|
|
9
|
+
var _Italic = require('./Italic');
|
|
10
|
+
var _Marker = require('./Marker');
|
|
11
|
+
var _Anchor = require('./Anchor');
|
|
12
|
+
var _Delimiter = require('./Delimiter');
|
|
13
|
+
var _Image = require('./Image');
|
|
14
|
+
var _Table = require('./Table');
|
|
15
|
+
var _TableRow = require('./TableRow');
|
|
16
|
+
var _TableCell = require('./TableCell');
|
|
17
|
+
var _Embed = require('./Embed');
|
|
18
|
+
var _Raw = require('./Raw');
|
|
19
|
+
var _Quote = require('./Quote');
|
|
20
|
+
var _Code = require('./Code');
|
|
21
|
+
var _Link = require('./Link');
|
|
22
|
+
var _CheckList = require('./CheckList');
|
|
23
|
+
var _CheckListItem = require('./CheckListItem');
|
|
24
|
+
var _CheckBox = require('./CheckBox');
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
exports.EditorAnchor = _Anchor.Anchor; exports.EditorBold = _Bold.Bold; exports.EditorCheckBox = _CheckBox.CheckBox; exports.EditorCheckList = _CheckList.CheckList; exports.EditorCheckListItem = _CheckListItem.CheckListItem; exports.EditorCode = _Code.Code; exports.EditorContainer = _Container.Container; exports.EditorDelimiter = _Delimiter.Delimiter; exports.EditorEmbed = _Embed.Embed; exports.EditorHeader = _Header.Header; exports.EditorImage = _Image.Image; exports.EditorInlineCode = _InlineCode.InlineCode; exports.EditorItalic = _Italic.Italic; exports.EditorLink = _Link.Link; exports.EditorList = _List.List; exports.EditorListItem = _ListItem.ListItem; exports.EditorMarker = _Marker.Marker; exports.EditorParagraph = _Paragraph.Paragraph; exports.EditorQuote = _Quote.Quote; exports.EditorRaw = _Raw.Raw; exports.EditorTable = _Table.Table; exports.EditorTableCell = _TableCell.TableCell; exports.EditorTableRow = _TableRow.TableRow;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { Container } from "./Container";
|
|
3
|
+
import { Paragraph } from "./Paragraph";
|
|
4
|
+
import { Header } from "./Header";
|
|
5
|
+
import { List } from "./List";
|
|
6
|
+
import { ListItem } from "./ListItem";
|
|
7
|
+
import { InlineCode } from "./InlineCode";
|
|
8
|
+
import { Bold } from "./Bold";
|
|
9
|
+
import { Italic } from "./Italic";
|
|
10
|
+
import { Marker } from "./Marker";
|
|
11
|
+
import { Anchor } from "./Anchor";
|
|
12
|
+
import { Delimiter } from "./Delimiter";
|
|
13
|
+
import { Image } from "./Image";
|
|
14
|
+
import { Table } from "./Table";
|
|
15
|
+
import { TableRow } from "./TableRow";
|
|
16
|
+
import { TableCell } from "./TableCell";
|
|
17
|
+
import { Embed } from "./Embed";
|
|
18
|
+
import { Raw } from "./Raw";
|
|
19
|
+
import { Quote } from "./Quote";
|
|
20
|
+
import { Code } from "./Code";
|
|
21
|
+
import { Link } from "./Link";
|
|
22
|
+
import { CheckList } from "./CheckList";
|
|
23
|
+
import { CheckListItem } from "./CheckListItem";
|
|
24
|
+
import { CheckBox } from "./CheckBox";
|
|
25
|
+
export {
|
|
26
|
+
Anchor as EditorAnchor,
|
|
27
|
+
Bold as EditorBold,
|
|
28
|
+
CheckBox as EditorCheckBox,
|
|
29
|
+
CheckList as EditorCheckList,
|
|
30
|
+
CheckListItem as EditorCheckListItem,
|
|
31
|
+
Code as EditorCode,
|
|
32
|
+
Container as EditorContainer,
|
|
33
|
+
Delimiter as EditorDelimiter,
|
|
34
|
+
Embed as EditorEmbed,
|
|
35
|
+
Header as EditorHeader,
|
|
36
|
+
Image as EditorImage,
|
|
37
|
+
InlineCode as EditorInlineCode,
|
|
38
|
+
Italic as EditorItalic,
|
|
39
|
+
Link as EditorLink,
|
|
40
|
+
List as EditorList,
|
|
41
|
+
ListItem as EditorListItem,
|
|
42
|
+
Marker as EditorMarker,
|
|
43
|
+
Paragraph as EditorParagraph,
|
|
44
|
+
Quote as EditorQuote,
|
|
45
|
+
Raw as EditorRaw,
|
|
46
|
+
Table as EditorTable,
|
|
47
|
+
TableCell as EditorTableCell,
|
|
48
|
+
TableRow as EditorTableRow
|
|
49
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";var O=Object.create;var d=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var F=Object.getOwnPropertyNames;var v=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var T=(o,r)=>{for(var e in r)d(o,e,{get:r[e],enumerable:!0})},a=(o,r,e,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of F(r))!w.call(o,s)&&s!==e&&d(o,s,{get:()=>r[s],enumerable:!(t=g(r,s))||t.enumerable});return o};var H=(o,r,e)=>(e=o!=null?O(v(o)):{},a(r||!o||!o.__esModule?d(e,"default",{value:o,enumerable:!0}):e,o)),z=o=>a(d({},"__esModule",{value:!0}),o);var G={};T(G,{RecursiveNode:()=>q});module.exports=z(G);var i=H(require("html-react-parser"));var m=require("isomorphic-dompurify"),f=o=>(0,m.sanitize)(o,{FORBID_ATTR:["class"]});var c=require("@mui/material"),R=(0,c.styled)("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});var h=require("react/jsx-runtime"),P=({sx:o,...r})=>(0,h.jsx)(R,{sx:o,...r});var u=require("@mui/material"),C=(0,u.styled)("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var y=require("react/jsx-runtime"),I=({sx:o,...r})=>(0,y.jsx)(C,{sx:o,...r});var M=require("@mui/material"),k=(0,M.styled)("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});var _=require("react/jsx-runtime"),B=({sx:o,...r})=>(0,_.jsx)(k,{sx:o,...r});var A=require("@mui/material"),b=(0,A.styled)("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});var N=require("react/jsx-runtime"),E=({sx:o,...r})=>(0,N.jsx)(b,{sx:o,...r});var W=require("@mui/material"),$=(0,W.styled)("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var D=require("react/jsx-runtime"),x=({sx:o,...r})=>(0,D.jsx)($,{sx:o,...r});var p=require("react/jsx-runtime"),l=(o,r)=>{if(!("name"in o)||!("children"in o))return null;let{name:e,children:t,attribs:s}=o;return e==="code"?(0,p.jsx)(P,{id:`${e}-${r}`,children:(0,i.domToReact)(t,{replace:n=>l(n,r)})}):e==="b"?(0,p.jsx)(I,{id:`${e}-${r}`,children:(0,i.domToReact)(t,{replace:n=>l(n,r)})}):e==="i"?(0,p.jsx)(B,{id:`${e}-${r}`,children:(0,i.domToReact)(t,{replace:n=>l(n,r)})}):e==="mark"?(0,p.jsx)(E,{id:`${e}-${r}`,children:(0,i.domToReact)(t,{replace:n=>l(n,r)})}):e==="a"?(0,p.jsx)(x,{id:`${e}-${r}`,href:s?.href,rel:"noopener noreferrer",target:"_blank",children:(0,i.domToReact)(t,{replace:n=>l(n,r)})}):null},q=({html:o,id:r})=>{let e=f(o);return(0,p.jsx)(p.Fragment,{children:(0,i.default)(e,{replace:t=>l(t,r)})})};0&&(module.exports={RecursiveNode});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import x,{domToReact as s}from"html-react-parser";import{sanitize as y}from"isomorphic-dompurify";var l=o=>y(o,{FORBID_ATTR:["class"]});import{styled as M}from"@mui/material";var d=M("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});import{jsx as k}from"react/jsx-runtime";var a=({sx:o,...r})=>k(d,{sx:o,...r});import{styled as B}from"@mui/material";var m=B("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as _}from"react/jsx-runtime";var f=({sx:o,...r})=>_(m,{sx:o,...r});import{styled as A}from"@mui/material";var c=A("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});import{jsx as b}from"react/jsx-runtime";var R=({sx:o,...r})=>b(c,{sx:o,...r});import{styled as E}from"@mui/material";var P=E("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});import{jsx as N}from"react/jsx-runtime";var h=({sx:o,...r})=>N(P,{sx:o,...r});import{styled as W}from"@mui/material";var u=W("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as $}from"react/jsx-runtime";var C=({sx:o,...r})=>$(u,{sx:o,...r});import{Fragment as D,jsx as i}from"react/jsx-runtime";var p=(o,r)=>{if(!("name"in o)||!("children"in o))return null;let{name:e,children:n,attribs:I}=o;return e==="code"?i(a,{id:`${e}-${r}`,children:s(n,{replace:t=>p(t,r)})}):e==="b"?i(f,{id:`${e}-${r}`,children:s(n,{replace:t=>p(t,r)})}):e==="i"?i(R,{id:`${e}-${r}`,children:s(n,{replace:t=>p(t,r)})}):e==="mark"?i(h,{id:`${e}-${r}`,children:s(n,{replace:t=>p(t,r)})}):e==="a"?i(C,{id:`${e}-${r}`,href:I?.href,rel:"noopener noreferrer",target:"_blank",children:s(n,{replace:t=>p(t,r)})}):null},Po=({html:o,id:r})=>{let e=l(o);return i(D,{children:x(e,{replace:n=>p(n,r)})})};export{Po as RecursiveNode};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DataCheckList } from '../../interfaces';
|
|
3
|
+
import { RootContainerProps } from '../../components/Container';
|
|
4
|
+
import { CheckListRootProps } from '../../components/CheckList';
|
|
5
|
+
import { RootCheckListItemProps } from '../../components/CheckListItem';
|
|
6
|
+
export interface CheckListNodeProps {
|
|
7
|
+
type: 'checklist';
|
|
8
|
+
data: DataCheckList;
|
|
9
|
+
id: string;
|
|
10
|
+
tunes?: any;
|
|
11
|
+
Container?: RootContainerProps;
|
|
12
|
+
CheckList?: CheckListRootProps;
|
|
13
|
+
Item?: RootCheckListItemProps;
|
|
14
|
+
}
|
|
15
|
+
export declare const CheckListNode: ({ data, id, tunes, Container, CheckList, Item, }: CheckListNodeProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";var mo=Object.create;var l=Object.defineProperty;var lo=Object.getOwnPropertyDescriptor;var co=Object.getOwnPropertyNames;var fo=Object.getPrototypeOf,ho=Object.prototype.hasOwnProperty;var Po=(o,t)=>{for(var r in t)l(o,r,{get:t[r],enumerable:!0})},R=(o,t,r,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let p of co(t))!ho.call(o,p)&&p!==r&&l(o,p,{get:()=>t[p],enumerable:!(e=lo(t,p))||e.enumerable});return o};var Ro=(o,t,r)=>(r=o!=null?mo(fo(o)):{},R(t||!o||!o.__esModule?l(r,"default",{value:o,enumerable:!0}):r,o)),Co=o=>R(l({},"__esModule",{value:!0}),o);var ko={};Po(ko,{CheckListNode:()=>xo});module.exports=Co(ko);var c=(o,t)=>o===3?`calc(${(100/o).toFixed(2)}% - ${t*(o-1)/o}px)`:o===2?`calc(${(100/o).toFixed(2)}% - ${t*(o-1)/o}px)`:"100%";var C=require("isomorphic-dompurify"),x=o=>(0,C.sanitize)(o,{FORBID_ATTR:["class"]});var s=Ro(require("html-react-parser"));var k=require("@mui/material"),y=(0,k.styled)("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});var g=require("react/jsx-runtime"),I=({sx:o,...t})=>(0,g.jsx)(y,{sx:o,...t});var u=require("@mui/material"),L=(0,u.styled)("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var M=require("react/jsx-runtime"),b=({sx:o,...t})=>(0,M.jsx)(L,{sx:o,...t});var _=require("@mui/material"),B=(0,_.styled)("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});var W=require("react/jsx-runtime"),E=({sx:o,...t})=>(0,W.jsx)(B,{sx:o,...t});var w=require("@mui/material"),F=(0,w.styled)("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});var $=require("react/jsx-runtime"),A=({sx:o,...t})=>(0,$.jsx)(F,{sx:o,...t});var D=require("@mui/material"),N=(0,D.styled)("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var v=require("react/jsx-runtime"),T=({sx:o,...t})=>(0,v.jsx)(N,{sx:o,...t});var n=require("react/jsx-runtime"),m=(o,t)=>{if(!("name"in o)||!("children"in o))return null;let{name:r,children:e,attribs:p}=o;return r==="code"?(0,n.jsx)(I,{id:`${r}-${t}`,children:(0,s.domToReact)(e,{replace:i=>m(i,t)})}):r==="b"?(0,n.jsx)(b,{id:`${r}-${t}`,children:(0,s.domToReact)(e,{replace:i=>m(i,t)})}):r==="i"?(0,n.jsx)(E,{id:`${r}-${t}`,children:(0,s.domToReact)(e,{replace:i=>m(i,t)})}):r==="mark"?(0,n.jsx)(A,{id:`${r}-${t}`,children:(0,s.domToReact)(e,{replace:i=>m(i,t)})}):r==="a"?(0,n.jsx)(T,{id:`${r}-${t}`,href:p?.href,rel:"noopener noreferrer",target:"_blank",children:(0,s.domToReact)(e,{replace:i=>m(i,t)})}):null},O=({html:o,id:t})=>{let r=x(o);return(0,n.jsx)(n.Fragment,{children:(0,s.default)(r,{replace:e=>m(e,t)})})};var H=require("@mui/material"),z=(0,H.styled)("p",{name:"RootParagraph",label:"root__paragraph",shouldForwardProp:o=>o!=="as"})({margin:0});var G=require("react/jsx-runtime"),S=({sx:o,...t})=>(0,G.jsx)(z,{sx:o,...t});var U=require("@mui/material"),q=(0,U.styled)("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));var K=require("react/jsx-runtime"),J=({sx:o,...t})=>(0,K.jsx)(q,{sx:o,...t});var Q=require("@mui/material"),V=(0,Q.styled)("div",{name:"RootCheckList",label:"root__check__list",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap",height:"auto"});var Y=require("react/jsx-runtime"),X=({sx:o,...t})=>(0,Y.jsx)(V,{sx:o,...t});var Z=require("@mui/material"),j=(0,Z.styled)("div",{name:"RootListItem",label:"root__list__item",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var to=require("react/jsx-runtime"),oo=({sx:o,...t})=>(0,to.jsx)(j,{sx:o,...t});var ro=require("@mui/material"),P=require("@iconify/react"),d=require("react/jsx-runtime"),eo=({checked:o,sx:t,...r})=>(0,d.jsx)(ro.Checkbox,{sx:t,size:"small",checked:o,icon:(0,d.jsx)(P.Icon,{icon:"akar-icons:circle-fill",color:"inherit",width:"24px",height:"24px"}),checkedIcon:(0,d.jsx)(P.Icon,{icon:"akar-icons:circle-check-fill",color:"inherit",width:"24px",height:"24px"}),...r});var a=require("react/jsx-runtime"),f=10,xo=({data:o,id:t,tunes:r,Container:e,CheckList:p,Item:i})=>{let{items:io}=o,{sx:po,...no}=e||{};return(0,a.jsx)(J,{sx:po,...no,children:(0,a.jsx)(X,{id:t,...p,sx:{display:"flex",flexWrap:"wrap",gap:`${f}px`,borderRadius:"25px",padding:"20px",backgroundColor:h=>h.palette.background.default,border:"1px solid #EFF3FE",...p?.sx},children:io.map(({checked:h,text:so},ao)=>(0,a.jsxs)(oo,{...i,sx:{display:"flex",alignItems:"center",flexWrap:"nowrap",flexGrow:0,columnGap:"5px",flexBasis:c(1,f),...r?.columnTune?.size==="two-columns"&&{flexBasis:c(2,f)},...r?.columnTune?.size==="three-columns"&&{flexBasis:c(3,f)},...i?.sx},children:[(0,a.jsx)(eo,{checked:h,sx:{padding:"5px"}}),(0,a.jsx)(S,{children:(0,a.jsx)(O,{html:so,id:t})})]},ao))})},t)};0&&(module.exports={CheckListNode});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
var l=(o,t)=>o===3?`calc(${(100/o).toFixed(2)}% - ${t*(o-1)/o}px)`:o===2?`calc(${(100/o).toFixed(2)}% - ${t*(o-1)/o}px)`:"100%";import{sanitize as z}from"isomorphic-dompurify";var h=o=>z(o,{FORBID_ATTR:["class"]});import Z,{domToReact as s}from"html-react-parser";import{styled as S}from"@mui/material";var P=S("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});import{jsx as G}from"react/jsx-runtime";var R=({sx:o,...t})=>G(P,{sx:o,...t});import{styled as U}from"@mui/material";var C=U("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as q}from"react/jsx-runtime";var x=({sx:o,...t})=>q(C,{sx:o,...t});import{styled as J}from"@mui/material";var k=J("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});import{jsx as K}from"react/jsx-runtime";var y=({sx:o,...t})=>K(k,{sx:o,...t});import{styled as Q}from"@mui/material";var I=Q("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});import{jsx as V}from"react/jsx-runtime";var g=({sx:o,...t})=>V(I,{sx:o,...t});import{styled as X}from"@mui/material";var u=X("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as Y}from"react/jsx-runtime";var L=({sx:o,...t})=>Y(u,{sx:o,...t});import{Fragment as j,jsx as n}from"react/jsx-runtime";var p=(o,t)=>{if(!("name"in o)||!("children"in o))return null;let{name:r,children:i,attribs:m}=o;return r==="code"?n(R,{id:`${r}-${t}`,children:s(i,{replace:e=>p(e,t)})}):r==="b"?n(x,{id:`${r}-${t}`,children:s(i,{replace:e=>p(e,t)})}):r==="i"?n(y,{id:`${r}-${t}`,children:s(i,{replace:e=>p(e,t)})}):r==="mark"?n(g,{id:`${r}-${t}`,children:s(i,{replace:e=>p(e,t)})}):r==="a"?n(L,{id:`${r}-${t}`,href:m?.href,rel:"noopener noreferrer",target:"_blank",children:s(i,{replace:e=>p(e,t)})}):null},b=({html:o,id:t})=>{let r=h(o);return n(j,{children:Z(r,{replace:i=>p(i,t)})})};import{styled as oo}from"@mui/material";var M=oo("p",{name:"RootParagraph",label:"root__paragraph",shouldForwardProp:o=>o!=="as"})({margin:0});import{jsx as to}from"react/jsx-runtime";var _=({sx:o,...t})=>to(M,{sx:o,...t});import{styled as ro}from"@mui/material";var B=ro("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));import{jsx as eo}from"react/jsx-runtime";var E=({sx:o,...t})=>eo(B,{sx:o,...t});import{styled as io}from"@mui/material";var W=io("div",{name:"RootCheckList",label:"root__check__list",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap",height:"auto"});import{jsx as po}from"react/jsx-runtime";var w=({sx:o,...t})=>po(W,{sx:o,...t});import{styled as no}from"@mui/material";var F=no("div",{name:"RootListItem",label:"root__list__item",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as so}from"react/jsx-runtime";var A=({sx:o,...t})=>so(F,{sx:o,...t});import{Checkbox as ao}from"@mui/material";import{Icon as $}from"@iconify/react";import{jsx as f}from"react/jsx-runtime";var D=({checked:o,sx:t,...r})=>f(ao,{sx:t,size:"small",checked:o,icon:f($,{icon:"akar-icons:circle-fill",color:"inherit",width:"24px",height:"24px"}),checkedIcon:f($,{icon:"akar-icons:circle-check-fill",color:"inherit",width:"24px",height:"24px"}),...r});import{jsx as a,jsxs as mo}from"react/jsx-runtime";var c=10,$t=({data:o,id:t,tunes:r,Container:i,CheckList:m,Item:e})=>{let{items:N}=o,{sx:T,...v}=i||{};return a(E,{sx:T,...v,children:a(w,{id:t,...m,sx:{display:"flex",flexWrap:"wrap",gap:`${c}px`,borderRadius:"25px",padding:"20px",backgroundColor:d=>d.palette.background.default,border:"1px solid #EFF3FE",...m?.sx},children:N.map(({checked:d,text:O},H)=>mo(A,{...e,sx:{display:"flex",alignItems:"center",flexWrap:"nowrap",flexGrow:0,columnGap:"5px",flexBasis:l(1,c),...r?.columnTune?.size==="two-columns"&&{flexBasis:l(2,c)},...r?.columnTune?.size==="three-columns"&&{flexBasis:l(3,c)},...e?.sx},children:[a(D,{checked:d,sx:{padding:"5px"}}),a(_,{children:a(b,{html:O,id:t})})]},H))})},t)};export{$t as CheckListNode};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DataCodeLang } from '../../interfaces';
|
|
3
|
+
import { RootContainerProps } from '../../components/Container';
|
|
4
|
+
import { CodeRootProps } from '../../components/Code';
|
|
5
|
+
export interface CodeNodeProps {
|
|
6
|
+
type: 'code';
|
|
7
|
+
data: DataCodeLang;
|
|
8
|
+
id: string;
|
|
9
|
+
Container?: RootContainerProps;
|
|
10
|
+
Code?: CodeRootProps;
|
|
11
|
+
}
|
|
12
|
+
export declare const CodeNode: ({ type, data, id, Container, Code, }: CodeNodeProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";var i=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var w=(o,e)=>{for(var t in e)i(o,t,{get:e[t],enumerable:!0})},y=(o,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of g(e))!b.call(o,r)&&r!==t&&i(o,r,{get:()=>e[r],enumerable:!(n=x(e,r))||n.enumerable});return o};var W=o=>y(i({},"__esModule",{value:!0}),o);var u={};w(u,{CodeNode:()=>v});module.exports=W(u);var d=require("@mui/material"),p=(0,d.styled)("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));var C=require("react/jsx-runtime"),s=({sx:o,...e})=>(0,C.jsx)(p,{sx:o,...e});var m=require("@mui/material"),f=(0,m.styled)("div",{name:"RootCode",label:"root__code",shouldForwardProp:o=>o!=="as"})({backgroundColor:"#f8f7fa",color:"#41314e",border:"1px solid #f1f1f4",overscrollBehavior:"contain",lineHeight:1.6,fontSize:12,minHeight:200,resize:"vertical",padding:"10px 12px",borderRadius:8,boxShadow:"none",wordWrap:"normal",overflowX:"auto",margin:".4em 0",whiteSpace:"pre-wrap"});var R=require("react/jsx-runtime"),P=({sx:o,...e})=>(0,R.jsx)(f,{sx:o,...e});var a=require("react/jsx-runtime"),v=({type:o,data:e,id:t,Container:n,Code:r})=>{let{code:c}=e,{sx:h,...l}=n||{};return(0,a.jsx)(s,{sx:h,...l,children:(0,a.jsx)(P,{id:`${o}-${t}`,...r,children:c})},t)};0&&(module.exports={CodeNode});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import{styled as P}from"@mui/material";var r=P("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));import{jsx as R}from"react/jsx-runtime";var n=({sx:o,...e})=>R(r,{sx:o,...e});import{styled as c}from"@mui/material";var i=c("div",{name:"RootCode",label:"root__code",shouldForwardProp:o=>o!=="as"})({backgroundColor:"#f8f7fa",color:"#41314e",border:"1px solid #f1f1f4",overscrollBehavior:"contain",lineHeight:1.6,fontSize:12,minHeight:200,resize:"vertical",padding:"10px 12px",borderRadius:8,boxShadow:"none",wordWrap:"normal",overflowX:"auto",margin:".4em 0",whiteSpace:"pre-wrap"});import{jsx as h}from"react/jsx-runtime";var a=({sx:o,...e})=>h(i,{sx:o,...e});import{jsx as d}from"react/jsx-runtime";var z=({type:o,data:e,id:t,Container:p,Code:s})=>{let{code:C}=e,{sx:m,...f}=p||{};return d(n,{sx:m,...f,children:d(a,{id:`${o}-${t}`,...s,children:C})},t)};export{z as CodeNode};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DataDelimiter } from '../../interfaces';
|
|
3
|
+
import { DelimiterRootProps } from '../../components/Delimiter';
|
|
4
|
+
import { RootContainerProps } from '../../components/Container';
|
|
5
|
+
export interface DelimiterNodeProps {
|
|
6
|
+
type: 'delimiter';
|
|
7
|
+
data: DataDelimiter;
|
|
8
|
+
id: string;
|
|
9
|
+
Delimiter?: DelimiterRootProps;
|
|
10
|
+
Container?: RootContainerProps;
|
|
11
|
+
}
|
|
12
|
+
export declare const DelimiterNode: ({ type, id, Delimiter, Container, }: DelimiterNodeProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";var n=Object.defineProperty;var D=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var x=Object.prototype.hasOwnProperty;var c=(o,t)=>{for(var r in t)n(o,r,{get:t[r],enumerable:!0})},y=(o,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of h(t))!x.call(o,e)&&e!==r&&n(o,e,{get:()=>t[e],enumerable:!(i=D(t,e))||i.enumerable});return o};var W=o=>y(n({},"__esModule",{value:!0}),o);var b={};c(b,{DelimiterNode:()=>g});module.exports=W(b);var a=require("@mui/material"),p=(0,a.styled)("div",{name:"RootDelimiter",label:"root__delimiter",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({display:"flex",justifyContent:"center",alignItems:"center",fontSize:"2rem",fontWeight:700});var m=require("react/jsx-runtime"),l=({sx:o,...t})=>(0,m.jsx)(p,{sx:o,...t,children:(0,m.jsx)("span",{children:"\u2743 \u2743 \u2743"})});var d=require("@mui/material"),f=(0,d.styled)("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));var R=require("react/jsx-runtime"),P=({sx:o,...t})=>(0,R.jsx)(f,{sx:o,...t});var s=require("react/jsx-runtime"),g=({type:o,id:t,Delimiter:r,Container:i})=>{let{sx:e,...C}=i||{};return(0,s.jsx)(P,{sx:e,...C,children:(0,s.jsx)(l,{id:`${o}-${t}`,...r})},t)};0&&(module.exports={DelimiterNode});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import{styled as f}from"@mui/material";var e=f("div",{name:"RootDelimiter",label:"root__delimiter",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({display:"flex",justifyContent:"center",alignItems:"center",fontSize:"2rem",fontWeight:700});import{jsx as r}from"react/jsx-runtime";var i=({sx:o,...t})=>r(e,{sx:o,...t,children:r("span",{children:"\u2743 \u2743 \u2743"})});import{styled as P}from"@mui/material";var n=P("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));import{jsx as R}from"react/jsx-runtime";var m=({sx:o,...t})=>R(n,{sx:o,...t});import{jsx as s}from"react/jsx-runtime";var v=({type:o,id:t,Delimiter:a,Container:p})=>{let{sx:l,...d}=p||{};return s(m,{sx:l,...d,children:s(i,{id:`${o}-${t}`,...a})},t)};export{v as DelimiterNode};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DataEmbed } from '../../interfaces';
|
|
3
|
+
import { RootContainerProps } from '../../components/Container';
|
|
4
|
+
import { EmbedRootProps } from '../../components/Embed';
|
|
5
|
+
export interface EmbedNodeProps {
|
|
6
|
+
type: 'embed';
|
|
7
|
+
data: DataEmbed;
|
|
8
|
+
id: string;
|
|
9
|
+
Container?: RootContainerProps;
|
|
10
|
+
Embed?: EmbedRootProps;
|
|
11
|
+
}
|
|
12
|
+
export declare const EmbedNode: ({ type, data, id, Container, Embed }: EmbedNodeProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";var a=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var w=Object.prototype.hasOwnProperty;var W=(o,t)=>{for(var e in t)a(o,e,{get:t[e],enumerable:!0})},u=(o,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of g(t))!w.call(o,r)&&r!==e&&a(o,r,{get:()=>t[r],enumerable:!(i=_(t,r))||i.enumerable});return o};var F=o=>u(a({},"__esModule",{value:!0}),o);var D={};W(D,{EmbedNode:()=>N});module.exports=F(D);var s=require("@mui/material"),p=(0,s.styled)("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));var E=require("react/jsx-runtime"),b=({sx:o,...t})=>(0,E.jsx)(p,{sx:o,...t});var d=require("@mui/material"),C=(0,d.styled)("iframe",{name:"RootEmbed",label:"root__embed",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({width:"100%",border:0,borderRadius:8}),P=(0,d.styled)("span",{name:"CaptionEmbed",label:"root__embed__caption",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({marginTop:10});var n=require("react/jsx-runtime"),R=({sx:o,caption:t,...e})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(C,{sx:o,...e}),t&&(0,n.jsx)(P,{children:t})]});var m=require("react/jsx-runtime"),N=({type:o,data:t,id:e,Container:i,Embed:r})=>{let{embed:h,width:f,height:c,caption:x}=t,{sx:l,...y}=i||{};return(0,m.jsx)(b,{sx:l,...y,children:(0,m.jsx)(R,{id:`${o}-${e}`,src:h,width:f,height:c,caption:x,...r})},e)};0&&(module.exports={EmbedNode});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import{styled as x}from"@mui/material";var r=x("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));import{jsx as l}from"react/jsx-runtime";var n=({sx:o,...t})=>l(r,{sx:o,...t});import{styled as i}from"@mui/material";var a=i("iframe",{name:"RootEmbed",label:"root__embed",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({width:"100%",border:0,borderRadius:8}),d=i("span",{name:"CaptionEmbed",label:"root__embed__caption",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({marginTop:10});import{Fragment as y,jsx as m,jsxs as _}from"react/jsx-runtime";var s=({sx:o,caption:t,...e})=>_(y,{children:[m(a,{sx:o,...e}),t&&m(d,{children:t})]});import{jsx as p}from"react/jsx-runtime";var B=({type:o,data:t,id:e,Container:b,Embed:E})=>{let{embed:C,width:P,height:R,caption:h}=t,{sx:f,...c}=b||{};return p(n,{sx:f,...c,children:p(s,{id:`${o}-${e}`,src:C,width:P,height:R,caption:h,...E})},e)};export{B as EmbedNode};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DataHeader } from '../../interfaces';
|
|
3
|
+
import { RootContainerProps } from '../../components/Container';
|
|
4
|
+
import { HeaderRootProps } from '../../components/Header';
|
|
5
|
+
export interface HeaderNodeProps {
|
|
6
|
+
type: 'header';
|
|
7
|
+
data: DataHeader;
|
|
8
|
+
id: string;
|
|
9
|
+
Container?: RootContainerProps;
|
|
10
|
+
Header?: HeaderRootProps;
|
|
11
|
+
}
|
|
12
|
+
export declare const HeaderNode: ({ type, data, id, Container, Header, }: HeaderNodeProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";var K=Object.create;var d=Object.defineProperty;var Q=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var U=Object.getPrototypeOf,V=Object.prototype.hasOwnProperty;var X=(o,r)=>{for(var e in r)d(o,e,{get:r[e],enumerable:!0})},m=(o,r,e,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let p of S(r))!V.call(o,p)&&p!==e&&d(o,p,{get:()=>r[p],enumerable:!(t=Q(r,p))||t.enumerable});return o};var Y=(o,r,e)=>(e=o!=null?K(U(o)):{},m(r||!o||!o.__esModule?d(e,"default",{value:o,enumerable:!0}):e,o)),Z=o=>m(d({},"__esModule",{value:!0}),o);var ro={};X(ro,{HeaderNode:()=>oo});module.exports=Z(ro);var a=Y(require("html-react-parser"));var f=require("isomorphic-dompurify"),c=o=>(0,f.sanitize)(o,{FORBID_ATTR:["class"]});var R=require("@mui/material"),P=(0,R.styled)("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});var C=require("react/jsx-runtime"),h=({sx:o,...r})=>(0,C.jsx)(P,{sx:o,...r});var y=require("@mui/material"),u=(0,y.styled)("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var H=require("react/jsx-runtime"),x=({sx:o,...r})=>(0,H.jsx)(u,{sx:o,...r});var I=require("@mui/material"),M=(0,I.styled)("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});var k=require("react/jsx-runtime"),_=({sx:o,...r})=>(0,k.jsx)(M,{sx:o,...r});var E=require("@mui/material"),b=(0,E.styled)("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});var W=require("react/jsx-runtime"),B=({sx:o,...r})=>(0,W.jsx)(b,{sx:o,...r});var N=require("@mui/material"),A=(0,N.styled)("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var v=require("react/jsx-runtime"),$=({sx:o,...r})=>(0,v.jsx)(A,{sx:o,...r});var i=require("react/jsx-runtime"),s=(o,r)=>{if(!("name"in o)||!("children"in o))return null;let{name:e,children:t,attribs:p}=o;return e==="code"?(0,i.jsx)(h,{id:`${e}-${r}`,children:(0,a.domToReact)(t,{replace:n=>s(n,r)})}):e==="b"?(0,i.jsx)(x,{id:`${e}-${r}`,children:(0,a.domToReact)(t,{replace:n=>s(n,r)})}):e==="i"?(0,i.jsx)(_,{id:`${e}-${r}`,children:(0,a.domToReact)(t,{replace:n=>s(n,r)})}):e==="mark"?(0,i.jsx)(B,{id:`${e}-${r}`,children:(0,a.domToReact)(t,{replace:n=>s(n,r)})}):e==="a"?(0,i.jsx)($,{id:`${e}-${r}`,href:p?.href,rel:"noopener noreferrer",target:"_blank",children:(0,a.domToReact)(t,{replace:n=>s(n,r)})}):null},D=({html:o,id:r})=>{let e=c(o);return(0,i.jsx)(i.Fragment,{children:(0,a.default)(e,{replace:t=>s(t,r)})})};var g=require("@mui/material"),O=(0,g.styled)("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));var F=require("react/jsx-runtime"),w=({sx:o,...r})=>(0,F.jsx)(O,{sx:o,...r});var T=require("@mui/material"),z=(0,T.styled)("h2",{name:"RootHeader",label:"root__header",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({marginBottom:0});var q=require("react/jsx-runtime"),j={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},L=({level:o,sx:r,...e})=>(0,q.jsx)(z,{as:j[o],sx:r,...e});var l=require("react/jsx-runtime"),oo=({type:o,data:r,id:e,Container:t,Header:p})=>{let{text:n}=r,{sx:G,...J}=t||{};return(0,l.jsx)(w,{sx:G,...J,children:(0,l.jsx)(L,{id:`${o}-${e}`,level:r.level,...p,children:(0,l.jsx)(D,{html:n,id:e})})},e)};0&&(module.exports={HeaderNode});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import T,{domToReact as a}from"html-react-parser";import{sanitize as B}from"isomorphic-dompurify";var l=o=>B(o,{FORBID_ATTR:["class"]});import{styled as W}from"@mui/material";var m=W("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});import{jsx as N}from"react/jsx-runtime";var f=({sx:o,...r})=>N(m,{sx:o,...r});import{styled as A}from"@mui/material";var c=A("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as $}from"react/jsx-runtime";var R=({sx:o,...r})=>$(c,{sx:o,...r});import{styled as v}from"@mui/material";var P=v("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});import{jsx as D}from"react/jsx-runtime";var h=({sx:o,...r})=>D(P,{sx:o,...r});import{styled as g}from"@mui/material";var C=g("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});import{jsx as O}from"react/jsx-runtime";var y=({sx:o,...r})=>O(C,{sx:o,...r});import{styled as w}from"@mui/material";var u=w("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as F}from"react/jsx-runtime";var x=({sx:o,...r})=>F(u,{sx:o,...r});import{Fragment as z,jsx as i}from"react/jsx-runtime";var p=(o,r)=>{if(!("name"in o)||!("children"in o))return null;let{name:e,children:n,attribs:s}=o;return e==="code"?i(f,{id:`${e}-${r}`,children:a(n,{replace:t=>p(t,r)})}):e==="b"?i(R,{id:`${e}-${r}`,children:a(n,{replace:t=>p(t,r)})}):e==="i"?i(h,{id:`${e}-${r}`,children:a(n,{replace:t=>p(t,r)})}):e==="mark"?i(y,{id:`${e}-${r}`,children:a(n,{replace:t=>p(t,r)})}):e==="a"?i(x,{id:`${e}-${r}`,href:s?.href,rel:"noopener noreferrer",target:"_blank",children:a(n,{replace:t=>p(t,r)})}):null},H=({html:o,id:r})=>{let e=l(o);return i(z,{children:T(e,{replace:n=>p(n,r)})})};import{styled as L}from"@mui/material";var I=L("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));import{jsx as q}from"react/jsx-runtime";var M=({sx:o,...r})=>q(I,{sx:o,...r});import{styled as G}from"@mui/material";var _=G("h2",{name:"RootHeader",label:"root__header",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({marginBottom:0});import{jsx as K}from"react/jsx-runtime";var J={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},k=({level:o,sx:r,...e})=>K(_,{as:J[o],sx:r,...e});import{jsx as d}from"react/jsx-runtime";var Ko=({type:o,data:r,id:e,Container:n,Header:s})=>{let{text:t}=r,{sx:E,...b}=n||{};return d(M,{sx:E,...b,children:d(k,{id:`${o}-${e}`,level:r.level,...s,children:d(H,{html:t,id:e})})},e)};export{Ko as HeaderNode};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { RootContainerProps } from '../../components/Container';
|
|
3
|
+
import { ImageRootProps } from '../../components/Image';
|
|
4
|
+
import { DataImage } from '../../interfaces';
|
|
5
|
+
export interface ImageNodeProps {
|
|
6
|
+
type: 'image';
|
|
7
|
+
data: DataImage;
|
|
8
|
+
id: string;
|
|
9
|
+
Container?: RootContainerProps;
|
|
10
|
+
Image?: ImageRootProps;
|
|
11
|
+
}
|
|
12
|
+
export declare const ImageNode: ({ type, data, id, Container, Image }: ImageNodeProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";var d=Object.defineProperty;var B=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var W=(o,t)=>{for(var e in t)d(o,e,{get:t[e],enumerable:!0})},_=(o,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of k(t))!y.call(o,r)&&r!==e&&d(o,r,{get:()=>t[r],enumerable:!(n=B(t,r))||n.enumerable});return o};var v=o=>_(d({},"__esModule",{value:!0}),o);var $={};W($,{ImageNode:()=>F});module.exports=v($);var h=require("@mui/material"),c=(0,h.styled)("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));var R=require("react/jsx-runtime"),l=({sx:o,...t})=>(0,R.jsx)(c,{sx:o,...t});var i=require("@mui/material"),P=(0,i.styled)("div",{name:"Root",label:"root",shouldForwardProp:o=>o!=="as"&&o!=="sx"&&o!=="stretched"&&o!=="withBorder"&&o!=="withBackground"})(({withBorder:o,withBackground:t,theme:e})=>({borderRadius:3,overflow:"hidden",...o&&{border:"1px solid",borderColor:e.palette.primary.main},...t&&{padding:15,backgroundColor:e.palette.background.paper}})),C=(0,i.styled)("img",{name:"RootImage",label:"root__image",shouldForwardProp:o=>o!=="as"&&o!=="sx"&&o!=="stretched"&&o!=="withBorder"&&o!=="withBackground"})(({stretched:o,withBackground:t})=>({maxWidth:"100%",verticalAlign:"bottom",display:"block",...o&&{width:"100%"},...t&&{maxWidth:"60%",margin:"0 auto"}})),I=(0,i.styled)("span",{name:"CaptionImage",label:"root__image__embed",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({marginTop:10});var a=require("react/jsx-runtime"),f=({caption:o,withBorder:t,withBackground:e,stretched:n,sx:r,...s})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(P,{withBorder:t,stretched:n,withBackground:e,children:(0,a.jsx)(C,{sx:r,...s,withBackground:e})}),o&&(0,a.jsx)(I,{children:o})]});var m=require("react/jsx-runtime"),F=({type:o,data:t,id:e,Container:n,Image:r})=>{let{file:s,caption:p,withBorder:x,stretched:g,withBackground:w}=t,{sx:b,...u}=n||{};return(0,m.jsx)(l,{stretched:g,sx:b,...u,children:(0,m.jsx)(f,{id:`${o}-${e}`,src:s?.url||"",alt:p,caption:p,withBorder:x,stretched:g,withBackground:w,...r},`${o}-${e}`)},e)};0&&(module.exports={ImageNode});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import{styled as w}from"@mui/material";var p=w("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));import{jsx as b}from"react/jsx-runtime";var g=({sx:o,...t})=>b(p,{sx:o,...t});import{styled as i}from"@mui/material";var h=i("div",{name:"Root",label:"root",shouldForwardProp:o=>o!=="as"&&o!=="sx"&&o!=="stretched"&&o!=="withBorder"&&o!=="withBackground"})(({withBorder:o,withBackground:t,theme:e})=>({borderRadius:3,overflow:"hidden",...o&&{border:"1px solid",borderColor:e.palette.primary.main},...t&&{padding:15,backgroundColor:e.palette.background.paper}})),c=i("img",{name:"RootImage",label:"root__image",shouldForwardProp:o=>o!=="as"&&o!=="sx"&&o!=="stretched"&&o!=="withBorder"&&o!=="withBackground"})(({stretched:o,withBackground:t})=>({maxWidth:"100%",verticalAlign:"bottom",display:"block",...o&&{width:"100%"},...t&&{maxWidth:"60%",margin:"0 auto"}})),l=i("span",{name:"CaptionImage",label:"root__image__embed",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({marginTop:10});import{Fragment as u,jsx as s,jsxs as B}from"react/jsx-runtime";var R=({caption:o,withBorder:t,withBackground:e,stretched:r,sx:a,...n})=>B(u,{children:[s(h,{withBorder:t,stretched:r,withBackground:e,children:s(c,{sx:a,...n,withBackground:e})}),o&&s(l,{children:o})]});import{jsx as P}from"react/jsx-runtime";var G=({type:o,data:t,id:e,Container:r,Image:a})=>{let{file:n,caption:d,withBorder:C,stretched:m,withBackground:I}=t,{sx:f,...x}=r||{};return P(g,{stretched:m,sx:f,...x,children:P(R,{id:`${o}-${e}`,src:n?.url||"",alt:d,caption:d,withBorder:C,stretched:m,withBackground:I,...a},`${o}-${e}`)},e)};export{G as ImageNode};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RecursiveNode } from './RecursiveNode';
|
|
2
|
+
import { ParagraphNode, ParagraphNodeProps } from './paragraph';
|
|
3
|
+
import { HeaderNode, HeaderNodeProps } from './header';
|
|
4
|
+
import { ListNode, ListNodeModel } from './list';
|
|
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
|
+
export { RecursiveNode, ParagraphNode, HeaderNode, ListNode, ImageNode, TableNode, DelimiterNode, EmbedNode, RawNode, QuoteNode, CodeNode, LinkNode, CheckListNode, };
|
|
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, };
|