@wulperstudio/editor-render 0.0.5-beta → 0.0.6-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -1909,50 +1909,50 @@ var CheckListNode = function (_a) {
1909
1909
  var BaseNodesEditor = function (_a) {
1910
1910
  var value = _a.value, ParagraphSlot = _a.ParagraphSlot, HeaderSlot = _a.HeaderSlot, DelimiterSlot = _a.DelimiterSlot, ListSlot = _a.ListSlot, ImageSlot = _a.ImageSlot, TableSlot = _a.TableSlot, EmbedSlot = _a.EmbedSlot, RawSlot = _a.RawSlot, QuoteSlot = _a.QuoteSlot, CodeSlot = _a.CodeSlot, LinkSlot = _a.LinkSlot, CheckListSlot = _a.CheckListSlot;
1911
1911
  var blocks = value.blocks;
1912
- return blocks.map(function (_a) {
1913
- var id = _a.id, type = _a.type, data = _a.data, tunes = _a.tunes;
1914
- switch (type) {
1915
- case 'paragraph': {
1916
- return (jsxRuntime.exports.jsx(ParagraphNode, __assign({ id: id, type: type, data: data }, ParagraphSlot)));
1912
+ jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment, { children: blocks.map(function (_a) {
1913
+ var id = _a.id, type = _a.type, data = _a.data, tunes = _a.tunes;
1914
+ switch (type) {
1915
+ case 'paragraph': {
1916
+ return (jsxRuntime.exports.jsx(ParagraphNode, __assign({ id: id, type: type, data: data }, ParagraphSlot), id));
1917
+ }
1918
+ case 'header': {
1919
+ return (jsxRuntime.exports.jsx(HeaderNode, __assign({ id: id, type: type, data: data }, HeaderSlot), id));
1920
+ }
1921
+ case 'delimiter': {
1922
+ return (jsxRuntime.exports.jsx(DelimiterNode, __assign({ id: id, type: type, data: data }, DelimiterSlot), id));
1923
+ }
1924
+ case 'list': {
1925
+ return (jsxRuntime.exports.jsx(ListNode, __assign({ id: id, type: type, data: data, tunes: tunes }, ListSlot), id));
1926
+ }
1927
+ case 'image': {
1928
+ return (jsxRuntime.exports.jsx(ImageNode, __assign({ id: id, type: type, data: data }, ImageSlot), id));
1929
+ }
1930
+ case 'table': {
1931
+ return (jsxRuntime.exports.jsx(TableNode, __assign({ id: id, type: type, data: data }, TableSlot), id));
1932
+ }
1933
+ case 'embed': {
1934
+ return (jsxRuntime.exports.jsx(EmbedNode, __assign({ id: id, type: type, data: data }, EmbedSlot), id));
1935
+ }
1936
+ case 'rawTool': {
1937
+ return (jsxRuntime.exports.jsx(RawNode, __assign({ id: id, type: type, data: data }, RawSlot), id));
1938
+ }
1939
+ case 'quote': {
1940
+ return (jsxRuntime.exports.jsx(QuoteNode, __assign({ id: id, type: type, data: data }, QuoteSlot), id));
1941
+ }
1942
+ case 'code': {
1943
+ return (jsxRuntime.exports.jsx(CodeNode, __assign({ id: id, type: type, data: data }, CodeSlot), id));
1944
+ }
1945
+ case 'linkTool': {
1946
+ return (jsxRuntime.exports.jsx(LinkNode, __assign({ id: id, type: type, data: data }, LinkSlot), id));
1947
+ }
1948
+ case 'checklist': {
1949
+ return (jsxRuntime.exports.jsx(CheckListNode, __assign({ id: id, type: type, data: data, tunes: tunes }, CheckListSlot), id));
1950
+ }
1951
+ default: {
1952
+ return null;
1953
+ }
1917
1954
  }
1918
- case 'header': {
1919
- return (jsxRuntime.exports.jsx(HeaderNode, __assign({ id: id, type: type, data: data }, HeaderSlot)));
1920
- }
1921
- case 'delimiter': {
1922
- return (jsxRuntime.exports.jsx(DelimiterNode, __assign({ id: id, type: type, data: data }, DelimiterSlot)));
1923
- }
1924
- case 'list': {
1925
- return (jsxRuntime.exports.jsx(ListNode, __assign({ id: id, type: type, data: data, tunes: tunes }, ListSlot)));
1926
- }
1927
- case 'image': {
1928
- return (jsxRuntime.exports.jsx(ImageNode, __assign({ id: id, type: type, data: data }, ImageSlot)));
1929
- }
1930
- case 'table': {
1931
- return (jsxRuntime.exports.jsx(TableNode, __assign({ id: id, type: type, data: data }, TableSlot)));
1932
- }
1933
- case 'embed': {
1934
- return (jsxRuntime.exports.jsx(EmbedNode, __assign({ id: id, type: type, data: data }, EmbedSlot)));
1935
- }
1936
- case 'rawTool': {
1937
- return (jsxRuntime.exports.jsx(RawNode, __assign({ id: id, type: type, data: data }, RawSlot)));
1938
- }
1939
- case 'quote': {
1940
- return (jsxRuntime.exports.jsx(QuoteNode, __assign({ id: id, type: type, data: data }, QuoteSlot)));
1941
- }
1942
- case 'code': {
1943
- return (jsxRuntime.exports.jsx(CodeNode, __assign({ id: id, type: type, data: data }, CodeSlot)));
1944
- }
1945
- case 'linkTool': {
1946
- return (jsxRuntime.exports.jsx(LinkNode, __assign({ id: id, type: type, data: data }, LinkSlot)));
1947
- }
1948
- case 'checklist': {
1949
- return (jsxRuntime.exports.jsx(CheckListNode, __assign({ id: id, type: type, data: data, tunes: tunes }, CheckListSlot)));
1950
- }
1951
- default: {
1952
- return null;
1953
- }
1954
- }
1955
- });
1955
+ }) });
1956
1956
  };
1957
1957
 
1958
1958
  export { BaseNodesEditor, CheckListNode, CodeNode, DelimiterNode, Anchor as EditorAnchor, Bold as EditorBold, CheckBox as EditorCheckBox, CheckList as EditorCheckList, CheckListItem as EditorCheckListItem, Code as EditorCode, Container as EditorContainer, Delimiter as EditorDelimiter, Embed as EditorEmbed, Header as EditorHeader, Image as EditorImage, InlineCode as EditorInlineCode, Italic as EditorItalic, Link as EditorLink, List as EditorList, ListItem as EditorListItem, Marker as EditorMarker, Paragraph as EditorParagraph, Quote as EditorQuote, Raw as EditorRaw, Table as EditorTable, TableCell as EditorTableCell, TableRow as EditorTableRow, EmbedNode, ForkIdWithType, HeaderNode, ImageNode, LinkNode, ListNode, ParagraphNode, PurifyHtml, QuoteNode, RawNode, RecursiveNode, TableNode, getFlexBasis };