@wulperstudio/editor-render 0.0.5-beta → 0.0.7-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/dist/base/index.d.ts +1 -1
- package/dist/cjs/index.js +43 -43
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/dist/base/index.d.ts +1 -1
- package/dist/esm/index.js +43 -43
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -72,5 +72,5 @@ declare type Props = {
|
|
|
72
72
|
Item?: RootCheckListItemProps;
|
|
73
73
|
};
|
|
74
74
|
};
|
|
75
|
-
export declare const BaseNodesEditor: ({ value, ParagraphSlot, HeaderSlot, DelimiterSlot, ListSlot, ImageSlot, TableSlot, EmbedSlot, RawSlot, QuoteSlot, CodeSlot, LinkSlot, CheckListSlot, }: Props) =>
|
|
75
|
+
export declare const BaseNodesEditor: ({ value, ParagraphSlot, HeaderSlot, DelimiterSlot, ListSlot, ImageSlot, TableSlot, EmbedSlot, RawSlot, QuoteSlot, CodeSlot, LinkSlot, CheckListSlot, }: Props) => JSX.Element;
|
|
76
76
|
export {};
|
package/dist/cjs/index.js
CHANGED
|
@@ -1919,50 +1919,50 @@ var CheckListNode = function (_a) {
|
|
|
1919
1919
|
var BaseNodesEditor = function (_a) {
|
|
1920
1920
|
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;
|
|
1921
1921
|
var blocks = value.blocks;
|
|
1922
|
-
return blocks.map(function (_a) {
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1922
|
+
return (jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment, { children: blocks.map(function (_a) {
|
|
1923
|
+
var id = _a.id, type = _a.type, data = _a.data, tunes = _a.tunes;
|
|
1924
|
+
switch (type) {
|
|
1925
|
+
case 'paragraph': {
|
|
1926
|
+
return (jsxRuntime.exports.jsx(ParagraphNode, tslib.__assign({ id: id, type: type, data: data }, ParagraphSlot), id));
|
|
1927
|
+
}
|
|
1928
|
+
case 'header': {
|
|
1929
|
+
return (jsxRuntime.exports.jsx(HeaderNode, tslib.__assign({ id: id, type: type, data: data }, HeaderSlot), id));
|
|
1930
|
+
}
|
|
1931
|
+
case 'delimiter': {
|
|
1932
|
+
return (jsxRuntime.exports.jsx(DelimiterNode, tslib.__assign({ id: id, type: type, data: data }, DelimiterSlot), id));
|
|
1933
|
+
}
|
|
1934
|
+
case 'list': {
|
|
1935
|
+
return (jsxRuntime.exports.jsx(ListNode, tslib.__assign({ id: id, type: type, data: data, tunes: tunes }, ListSlot), id));
|
|
1936
|
+
}
|
|
1937
|
+
case 'image': {
|
|
1938
|
+
return (jsxRuntime.exports.jsx(ImageNode, tslib.__assign({ id: id, type: type, data: data }, ImageSlot), id));
|
|
1939
|
+
}
|
|
1940
|
+
case 'table': {
|
|
1941
|
+
return (jsxRuntime.exports.jsx(TableNode, tslib.__assign({ id: id, type: type, data: data }, TableSlot), id));
|
|
1942
|
+
}
|
|
1943
|
+
case 'embed': {
|
|
1944
|
+
return (jsxRuntime.exports.jsx(EmbedNode, tslib.__assign({ id: id, type: type, data: data }, EmbedSlot), id));
|
|
1945
|
+
}
|
|
1946
|
+
case 'rawTool': {
|
|
1947
|
+
return (jsxRuntime.exports.jsx(RawNode, tslib.__assign({ id: id, type: type, data: data }, RawSlot), id));
|
|
1948
|
+
}
|
|
1949
|
+
case 'quote': {
|
|
1950
|
+
return (jsxRuntime.exports.jsx(QuoteNode, tslib.__assign({ id: id, type: type, data: data }, QuoteSlot), id));
|
|
1951
|
+
}
|
|
1952
|
+
case 'code': {
|
|
1953
|
+
return (jsxRuntime.exports.jsx(CodeNode, tslib.__assign({ id: id, type: type, data: data }, CodeSlot), id));
|
|
1954
|
+
}
|
|
1955
|
+
case 'linkTool': {
|
|
1956
|
+
return (jsxRuntime.exports.jsx(LinkNode, tslib.__assign({ id: id, type: type, data: data }, LinkSlot), id));
|
|
1957
|
+
}
|
|
1958
|
+
case 'checklist': {
|
|
1959
|
+
return (jsxRuntime.exports.jsx(CheckListNode, tslib.__assign({ id: id, type: type, data: data, tunes: tunes }, CheckListSlot), id));
|
|
1960
|
+
}
|
|
1961
|
+
default: {
|
|
1962
|
+
return null;
|
|
1963
|
+
}
|
|
1927
1964
|
}
|
|
1928
|
-
|
|
1929
|
-
return (jsxRuntime.exports.jsx(HeaderNode, tslib.__assign({ id: id, type: type, data: data }, HeaderSlot)));
|
|
1930
|
-
}
|
|
1931
|
-
case 'delimiter': {
|
|
1932
|
-
return (jsxRuntime.exports.jsx(DelimiterNode, tslib.__assign({ id: id, type: type, data: data }, DelimiterSlot)));
|
|
1933
|
-
}
|
|
1934
|
-
case 'list': {
|
|
1935
|
-
return (jsxRuntime.exports.jsx(ListNode, tslib.__assign({ id: id, type: type, data: data, tunes: tunes }, ListSlot)));
|
|
1936
|
-
}
|
|
1937
|
-
case 'image': {
|
|
1938
|
-
return (jsxRuntime.exports.jsx(ImageNode, tslib.__assign({ id: id, type: type, data: data }, ImageSlot)));
|
|
1939
|
-
}
|
|
1940
|
-
case 'table': {
|
|
1941
|
-
return (jsxRuntime.exports.jsx(TableNode, tslib.__assign({ id: id, type: type, data: data }, TableSlot)));
|
|
1942
|
-
}
|
|
1943
|
-
case 'embed': {
|
|
1944
|
-
return (jsxRuntime.exports.jsx(EmbedNode, tslib.__assign({ id: id, type: type, data: data }, EmbedSlot)));
|
|
1945
|
-
}
|
|
1946
|
-
case 'rawTool': {
|
|
1947
|
-
return (jsxRuntime.exports.jsx(RawNode, tslib.__assign({ id: id, type: type, data: data }, RawSlot)));
|
|
1948
|
-
}
|
|
1949
|
-
case 'quote': {
|
|
1950
|
-
return (jsxRuntime.exports.jsx(QuoteNode, tslib.__assign({ id: id, type: type, data: data }, QuoteSlot)));
|
|
1951
|
-
}
|
|
1952
|
-
case 'code': {
|
|
1953
|
-
return (jsxRuntime.exports.jsx(CodeNode, tslib.__assign({ id: id, type: type, data: data }, CodeSlot)));
|
|
1954
|
-
}
|
|
1955
|
-
case 'linkTool': {
|
|
1956
|
-
return (jsxRuntime.exports.jsx(LinkNode, tslib.__assign({ id: id, type: type, data: data }, LinkSlot)));
|
|
1957
|
-
}
|
|
1958
|
-
case 'checklist': {
|
|
1959
|
-
return (jsxRuntime.exports.jsx(CheckListNode, tslib.__assign({ id: id, type: type, data: data, tunes: tunes }, CheckListSlot)));
|
|
1960
|
-
}
|
|
1961
|
-
default: {
|
|
1962
|
-
return null;
|
|
1963
|
-
}
|
|
1964
|
-
}
|
|
1965
|
-
});
|
|
1965
|
+
}) }));
|
|
1966
1966
|
};
|
|
1967
1967
|
|
|
1968
1968
|
exports.BaseNodesEditor = BaseNodesEditor;
|