@neuctra/cms-core 1.0.7 → 1.0.9
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/cms-core.css +1 -1
- package/dist/index.cjs.js +315 -276
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2140 -1976
- package/dist/index.es.js.map +1 -1
- package/dist/types/components/heading/HeadingPreview.d.ts +2 -1
- package/dist/types/components/image/ImagePreview.d.ts +2 -1
- package/dist/types/components/table/TablePreview.d.ts +2 -3
- package/dist/types/components/text/RichTextPreview.d.ts +2 -1
- package/dist/types/neuctra-editor/NeuctraEditor.d.ts +2 -1
- package/dist/types/neuctra-editor/NeuctraEditorPreview.d.ts +3 -2
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
interface HeadingPreviewProps {
|
|
2
2
|
value?: string;
|
|
3
3
|
level?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
4
|
+
theme?: "light" | "dark";
|
|
4
5
|
}
|
|
5
|
-
declare const HeadingPreview: ({ value, level }: HeadingPreviewProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
6
|
+
declare const HeadingPreview: ({ value, level, theme, }: HeadingPreviewProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
6
7
|
export default HeadingPreview;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ImageBlock } from '../../utils/blogBlocks';
|
|
2
2
|
interface ImagePreviewProps {
|
|
3
3
|
value?: Partial<ImageBlock>;
|
|
4
|
+
theme?: "light" | "dark";
|
|
4
5
|
}
|
|
5
|
-
declare const ImagePreview: ({ value }: ImagePreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare const ImagePreview: ({ value, theme }: ImagePreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export default ImagePreview;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
interface TablePreviewProps {
|
|
2
2
|
headers?: string[];
|
|
3
3
|
rows?: (string | null | undefined)[][];
|
|
4
|
-
|
|
5
|
-
hoverable?: boolean;
|
|
4
|
+
theme?: "light" | "dark";
|
|
6
5
|
}
|
|
7
|
-
declare const TablePreview: ({ headers, rows,
|
|
6
|
+
declare const TablePreview: ({ headers, rows, theme, }: TablePreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export default TablePreview;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
interface RichTextPreviewProps {
|
|
2
2
|
value?: string;
|
|
3
3
|
className?: string;
|
|
4
|
+
theme?: "light" | "dark";
|
|
4
5
|
}
|
|
5
|
-
declare const RichTextPreview: ({ value, className, }: RichTextPreviewProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
6
|
+
declare const RichTextPreview: ({ value, className, theme, }: RichTextPreviewProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
6
7
|
export default RichTextPreview;
|
|
@@ -5,6 +5,7 @@ interface NeuctraEditorProps {
|
|
|
5
5
|
setBlocks?: React.Dispatch<React.SetStateAction<Block[]>>;
|
|
6
6
|
className?: string;
|
|
7
7
|
showToolbar?: boolean;
|
|
8
|
+
theme?: "light" | "dark";
|
|
8
9
|
}
|
|
9
|
-
export declare const NeuctraEditor: ({ blocks, setBlocks, className, showToolbar, }: NeuctraEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const NeuctraEditor: ({ blocks, setBlocks, className, showToolbar, theme, }: NeuctraEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export {};
|
|
@@ -2,6 +2,7 @@ import { Block } from '../utils/blogBlocks';
|
|
|
2
2
|
interface NeuctraBlogPreviewProps {
|
|
3
3
|
blocks?: Block[];
|
|
4
4
|
className?: string;
|
|
5
|
+
theme?: "light" | "dark";
|
|
5
6
|
}
|
|
6
|
-
export declare const NeuctraEditorPreview: ({ blocks, className, }: NeuctraBlogPreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export
|
|
7
|
+
export declare const NeuctraEditorPreview: ({ blocks, className, theme, }: NeuctraBlogPreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default NeuctraEditorPreview;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neuctra/cms-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A powerful, modular CMS core engine for building modern content editors, blogs, notes, and structured content systems with React and Tailwind CSS.",
|
|
6
6
|
"author": "Your Name <tahaasifaqwe@gmail.com>",
|