gavaengine 1.2.0 → 2.1.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.
@@ -0,0 +1,154 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { Editor, NodeViewProps } from '@tiptap/react';
3
+ import * as _tiptap_core from '@tiptap/core';
4
+ import { Node } from '@tiptap/core';
5
+ import * as _tiptap_extension_youtube from '@tiptap/extension-youtube';
6
+ import { g as GEMedia } from './types-X07o_zKf.js';
7
+ import { LucideIcon } from 'lucide-react';
8
+
9
+ interface ArticleData {
10
+ id: string;
11
+ title: string;
12
+ slug: string;
13
+ excerpt: string;
14
+ content: string;
15
+ coverImage: string;
16
+ category: string;
17
+ status: string;
18
+ authorName: string;
19
+ }
20
+ interface ArticleEditorProps {
21
+ article: ArticleData;
22
+ canPublish: boolean;
23
+ }
24
+ declare function ArticleEditor({ article, canPublish: canPub }: ArticleEditorProps): react_jsx_runtime.JSX.Element;
25
+
26
+ interface EditorToolbarProps {
27
+ editor: Editor | null;
28
+ }
29
+ declare function EditorToolbar({ editor }: EditorToolbarProps): react_jsx_runtime.JSX.Element | null;
30
+
31
+ interface CoverImageUploadProps {
32
+ value: string;
33
+ onChange: (url: string) => void;
34
+ }
35
+ declare function CoverImageUpload({ value, onChange }: CoverImageUploadProps): react_jsx_runtime.JSX.Element;
36
+
37
+ interface RevisionPanelProps {
38
+ articleId: string;
39
+ onClose: () => void;
40
+ onRestore: () => void;
41
+ }
42
+ declare function RevisionPanel({ articleId, onClose, onRestore, }: RevisionPanelProps): react_jsx_runtime.JSX.Element;
43
+
44
+ interface ImageEditModalProps {
45
+ src: string;
46
+ originalSrc?: string | null;
47
+ onSave: (newUrl: string) => void;
48
+ onRestore?: () => void;
49
+ onClose: () => void;
50
+ }
51
+ declare function ImageEditModal({ src, originalSrc, onSave, onRestore, onClose, }: ImageEditModalProps): react_jsx_runtime.JSX.Element;
52
+
53
+ interface ImageOptions {
54
+ HTMLAttributes: Record<string, any>;
55
+ }
56
+ declare module "@tiptap/core" {
57
+ interface Commands<ReturnType> {
58
+ resizableImage: {
59
+ setImage: (options: {
60
+ src: string;
61
+ alt?: string;
62
+ title?: string;
63
+ }) => ReturnType;
64
+ };
65
+ }
66
+ }
67
+ declare const ResizableImage: Node<ImageOptions, any>;
68
+
69
+ declare function ResizableImageView({ node, updateAttributes, selected, deleteNode, }: NodeViewProps): react_jsx_runtime.JSX.Element;
70
+
71
+ declare const DraggableYoutube: _tiptap_core.Node<_tiptap_extension_youtube.YoutubeOptions, any>;
72
+
73
+ declare function DraggableYoutubeView({ node, selected }: NodeViewProps): react_jsx_runtime.JSX.Element;
74
+
75
+ declare module "@tiptap/core" {
76
+ interface Commands<ReturnType> {
77
+ videoBlock: {
78
+ setVideo: (options: {
79
+ src: string;
80
+ }) => ReturnType;
81
+ };
82
+ }
83
+ }
84
+ declare const VideoExtension: Node<any, any>;
85
+
86
+ declare function VideoView({ node, selected }: NodeViewProps): react_jsx_runtime.JSX.Element;
87
+
88
+ interface Article {
89
+ id: string;
90
+ title: string;
91
+ status: string;
92
+ category: string;
93
+ coverImage: string;
94
+ authorName: string;
95
+ updatedAt: Date;
96
+ publishedAt: Date | null;
97
+ }
98
+ interface ArticleListProps {
99
+ articles: Article[];
100
+ canCreate: boolean;
101
+ canEdit: boolean;
102
+ canPublish: boolean;
103
+ }
104
+ declare function ArticleList({ articles, canCreate, canEdit, canPublish: canPub, }: ArticleListProps): react_jsx_runtime.JSX.Element;
105
+
106
+ type User = {
107
+ id: string;
108
+ name: string;
109
+ email: string;
110
+ role: string;
111
+ createdAt: Date;
112
+ };
113
+ declare function UserTable({ users, currentUserId, }: {
114
+ users: User[];
115
+ currentUserId: string;
116
+ }): react_jsx_runtime.JSX.Element;
117
+
118
+ type UserData = {
119
+ id: string;
120
+ name: string;
121
+ email: string;
122
+ role: string;
123
+ } | null;
124
+ declare function UserForm({ user }: {
125
+ user?: UserData;
126
+ }): react_jsx_runtime.JSX.Element;
127
+
128
+ interface MediaGridProps {
129
+ media: GEMedia[];
130
+ }
131
+ declare function MediaGrid({ media }: MediaGridProps): react_jsx_runtime.JSX.Element;
132
+
133
+ interface MediaPickerModalProps {
134
+ open: boolean;
135
+ onClose: () => void;
136
+ onSelect: (url: string) => void;
137
+ }
138
+ declare function MediaPickerModal({ open, onClose, onSelect, }: MediaPickerModalProps): react_jsx_runtime.JSX.Element | null;
139
+
140
+ declare function DashboardNavbar(): react_jsx_runtime.JSX.Element;
141
+
142
+ interface StatCardProps {
143
+ label: string;
144
+ value: number | string;
145
+ icon: LucideIcon;
146
+ accent?: "blue" | "green" | "purple" | "amber";
147
+ }
148
+ declare function StatCard({ label, value, icon: Icon, accent, }: StatCardProps): react_jsx_runtime.JSX.Element;
149
+
150
+ declare function SplashScreen(): react_jsx_runtime.JSX.Element | null;
151
+
152
+ declare function DashboardSplashTrigger(): null;
153
+
154
+ export { ArticleEditor as A, CoverImageUpload as C, DashboardNavbar as D, EditorToolbar as E, ImageEditModal as I, MediaGrid as M, ResizableImage as R, SplashScreen as S, UserForm as U, VideoExtension as V, ArticleList as a, DashboardSplashTrigger as b, DraggableYoutube as c, DraggableYoutubeView as d, MediaPickerModal as e, ResizableImageView as f, RevisionPanel as g, StatCard as h, UserTable as i, VideoView as j };
@@ -3,7 +3,7 @@ import {
3
3
  ActionsProvider,
4
4
  ConfigProvider,
5
5
  SplashProvider
6
- } from "./chunk-IK24OCFW.js";
6
+ } from "./chunk-MC3FBYWV.js";
7
7
 
8
8
  // src/providers/GavaEngineProvider.tsx
9
9
  import { useRouter } from "next/navigation";
@@ -64,4 +64,4 @@ export {
64
64
  GavaEngineProvider,
65
65
  ThemeToggle
66
66
  };
67
- //# sourceMappingURL=chunk-ICIFEKSX.js.map
67
+ //# sourceMappingURL=chunk-4LM22T36.js.map