visual-forge-hub-test-env 0.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.
- package/README.md +73 -0
- package/dist/App.d.ts +2 -0
- package/dist/components/admin/AdminLayout.d.ts +6 -0
- package/dist/components/admin/CreateLayoutDialog.d.ts +7 -0
- package/dist/components/admin/CreatePageDialog.d.ts +6 -0
- package/dist/components/admin/CreateTemplateDialog.d.ts +7 -0
- package/dist/components/admin/CreateWidgetDialog.d.ts +7 -0
- package/dist/components/admin/LayoutList.d.ts +8 -0
- package/dist/components/admin/PageList.d.ts +5 -0
- package/dist/components/admin/TemplateList.d.ts +8 -0
- package/dist/components/admin/WidgetList.d.ts +8 -0
- package/dist/components/api/ApiAuthEditor.d.ts +15 -0
- package/dist/components/api/ApiRequestEditor.d.ts +20 -0
- package/dist/components/api/ApiRequestTree.d.ts +25 -0
- package/dist/components/api/ApiResponseViewer.d.ts +13 -0
- package/dist/components/api/CodeGeneratorDialog.d.ts +23 -0
- package/dist/components/api/CreateCollectionDialog.d.ts +3 -0
- package/dist/components/api/EnvironmentSelector.d.ts +16 -0
- package/dist/components/api/ExportCollectionButton.d.ts +6 -0
- package/dist/components/api/ImportCollectionDialog.d.ts +5 -0
- package/dist/components/api/KeyValueEditor.d.ts +15 -0
- package/dist/components/api/RequestHistoryPanel.d.ts +16 -0
- package/dist/components/editor/AccordionComponentEditor.d.ts +13 -0
- package/dist/components/editor/ButtonComponentEditor.d.ts +7 -0
- package/dist/components/editor/CardComponentEditor.d.ts +15 -0
- package/dist/components/editor/ChartComponentEditor.d.ts +8 -0
- package/dist/components/editor/CodeComponentEditor.d.ts +7 -0
- package/dist/components/editor/ColumnDivider.d.ts +6 -0
- package/dist/components/editor/ComponentContextMenu.d.ts +15 -0
- package/dist/components/editor/ComponentStylePanel.d.ts +25 -0
- package/dist/components/editor/ComponentsSidebar.d.ts +7 -0
- package/dist/components/editor/DeviceFrame.d.ts +7 -0
- package/dist/components/editor/DividerComponentEditor.d.ts +1 -0
- package/dist/components/editor/DraggableComponent.d.ts +13 -0
- package/dist/components/editor/DroppableColumn.d.ts +15 -0
- package/dist/components/editor/EntityDetailComponentEditor.d.ts +6 -0
- package/dist/components/editor/EntityListComponentEditor.d.ts +6 -0
- package/dist/components/editor/FormCheckboxComponentEditor.d.ts +12 -0
- package/dist/components/editor/FormInputComponentEditor.d.ts +13 -0
- package/dist/components/editor/FormSelectComponentEditor.d.ts +12 -0
- package/dist/components/editor/FormSubmitComponentEditor.d.ts +14 -0
- package/dist/components/editor/FormTextareaComponentEditor.d.ts +13 -0
- package/dist/components/editor/GridCanvas.d.ts +27 -0
- package/dist/components/editor/HeadingComponentEditor.d.ts +7 -0
- package/dist/components/editor/ImageComponentEditor.d.ts +7 -0
- package/dist/components/editor/InsertWidgetDialog.d.ts +7 -0
- package/dist/components/editor/LayoutPreviewModal.d.ts +10 -0
- package/dist/components/editor/LinkComponentEditor.d.ts +7 -0
- package/dist/components/editor/ListComponentEditor.d.ts +7 -0
- package/dist/components/editor/OutlinePanel.d.ts +14 -0
- package/dist/components/editor/OutlineTreeItem.d.ts +18 -0
- package/dist/components/editor/PageActionsDropdown.d.ts +9 -0
- package/dist/components/editor/PageContentComponentEditor.d.ts +1 -0
- package/dist/components/editor/PagePreviewModal.d.ts +17 -0
- package/dist/components/editor/PageVersionDiffView.d.ts +28 -0
- package/dist/components/editor/PageVersionsDialog.d.ts +9 -0
- package/dist/components/editor/PreviewModal.d.ts +7 -0
- package/dist/components/editor/QueryComponentEditor.d.ts +6 -0
- package/dist/components/editor/QuoteComponentEditor.d.ts +7 -0
- package/dist/components/editor/ResponsiveControls.d.ts +7 -0
- package/dist/components/editor/RowContextMenu.d.ts +12 -0
- package/dist/components/editor/RowPropertiesPanel.d.ts +37 -0
- package/dist/components/editor/SectionTemplatesDialog.d.ts +5 -0
- package/dist/components/editor/SidebarToggle.d.ts +17 -0
- package/dist/components/editor/SortableRow.d.ts +23 -0
- package/dist/components/editor/SpacerComponentEditor.d.ts +7 -0
- package/dist/components/editor/TabsComponentEditor.d.ts +13 -0
- package/dist/components/editor/TextComponentEditor.d.ts +7 -0
- package/dist/components/editor/VideoComponentEditor.d.ts +7 -0
- package/dist/components/editor/WidgetPreviewModal.d.ts +10 -0
- package/dist/components/entities/AddFieldPopover.d.ts +11 -0
- package/dist/components/entities/CardLayoutEditor.d.ts +24 -0
- package/dist/components/entities/CreateEntityDialog.d.ts +7 -0
- package/dist/components/entities/EntityActionsDropdown.d.ts +8 -0
- package/dist/components/entities/EntityRecordDialog.d.ts +24 -0
- package/dist/components/entities/EntityVersionDiffView.d.ts +9 -0
- package/dist/components/entities/EntityVersionsDialog.d.ts +8 -0
- package/dist/components/entities/FieldEditor.d.ts +16 -0
- package/dist/components/entities/ViewOptionsPanel.d.ts +82 -0
- package/dist/components/entities/ViewSelector.d.ts +22 -0
- package/dist/components/entities/views/CalendarView.d.ts +27 -0
- package/dist/components/entities/views/CardView.d.ts +32 -0
- package/dist/components/entities/views/GalleryView.d.ts +28 -0
- package/dist/components/entities/views/GanttView.d.ts +33 -0
- package/dist/components/entities/views/KanbanView.d.ts +35 -0
- package/dist/components/entities/views/ListView.d.ts +31 -0
- package/dist/components/entities/views/TimelineView.d.ts +28 -0
- package/dist/components/forms/ConditionalLogicEditor.d.ts +20 -0
- package/dist/components/forms/CreateFormDialog.d.ts +6 -0
- package/dist/components/forms/FieldLibrary.d.ts +5 -0
- package/dist/components/forms/FieldPropertiesPanel.d.ts +11 -0
- package/dist/components/forms/FormCanvas.d.ts +11 -0
- package/dist/components/forms/FormPreviewModal.d.ts +9 -0
- package/dist/components/forms/FormPropertiesPanel.d.ts +6 -0
- package/dist/components/forms/FormSubmissionDialog.d.ts +6 -0
- package/dist/components/forms/FormTemplateDialog.d.ts +15 -0
- package/dist/components/forms/OptionsEditor.d.ts +10 -0
- package/dist/components/forms/SectionPropertiesPanel.d.ts +11 -0
- package/dist/components/forms/SectionRenderer.d.ts +15 -0
- package/dist/components/forms/ValidationRulesEditor.d.ts +7 -0
- package/dist/components/public/ChartRenderer.d.ts +12 -0
- package/dist/components/public/ComponentRenderer.d.ts +7 -0
- package/dist/components/queries/CreateQueryDialog.d.ts +6 -0
- package/dist/components/queries/QueryConditionBuilder.d.ts +5 -0
- package/dist/components/queries/QueryConditionTree.d.ts +5 -0
- package/dist/components/queries/QueryFieldSelector.d.ts +7 -0
- package/dist/components/queries/QueryJoinBuilder.d.ts +5 -0
- package/dist/components/queries/QueryJoinTree.d.ts +5 -0
- package/dist/components/queries/QuerySettingsPanel.d.ts +6 -0
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/alert-dialog.d.ts +20 -0
- package/dist/components/ui/alert.d.ts +8 -0
- package/dist/components/ui/aspect-ratio.d.ts +3 -0
- package/dist/components/ui/avatar.d.ts +6 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/breadcrumb.d.ts +19 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/calendar.d.ts +8 -0
- package/dist/components/ui/card.d.ts +8 -0
- package/dist/components/ui/carousel.d.ts +18 -0
- package/dist/components/ui/chart.d.ts +62 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/collapsible.d.ts +5 -0
- package/dist/components/ui/command.d.ts +82 -0
- package/dist/components/ui/context-menu.d.ts +27 -0
- package/dist/components/ui/dialog.d.ts +21 -0
- package/dist/components/ui/drawer.d.ts +22 -0
- package/dist/components/ui/dropdown-menu.d.ts +27 -0
- package/dist/components/ui/form.d.ts +23 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/input-otp.d.ts +34 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/label.d.ts +5 -0
- package/dist/components/ui/menubar.d.ts +33 -0
- package/dist/components/ui/navigation-menu.d.ts +12 -0
- package/dist/components/ui/pagination.d.ts +28 -0
- package/dist/components/ui/popover.d.ts +6 -0
- package/dist/components/ui/progress.d.ts +4 -0
- package/dist/components/ui/radio-group.d.ts +5 -0
- package/dist/components/ui/resizable.d.ts +23 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/select.d.ts +13 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/sheet.d.ts +25 -0
- package/dist/components/ui/sidebar.d.ts +66 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/slider.d.ts +4 -0
- package/dist/components/ui/sonner.d.ts +4 -0
- package/dist/components/ui/switch.d.ts +4 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/tabs.d.ts +7 -0
- package/dist/components/ui/textarea.d.ts +5 -0
- package/dist/components/ui/toast.d.ts +15 -0
- package/dist/components/ui/toaster.d.ts +1 -0
- package/dist/components/ui/toggle-group.d.ts +12 -0
- package/dist/components/ui/toggle.d.ts +12 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/components/ui/use-toast.d.ts +2 -0
- package/dist/contexts/ClipboardContext.d.ts +12 -0
- package/dist/favicon.ico +0 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-toast.d.ts +44 -0
- package/dist/hooks/useHistory.d.ts +14 -0
- package/dist/hooks/useKeyboardShortcuts.d.ts +11 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +31293 -0
- package/dist/index.umd.js +175 -0
- package/dist/integrations/supabase/client.d.ts +1450 -0
- package/dist/integrations/supabase/types.d.ts +1581 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/main.d.ts +0 -0
- package/dist/pages/Admin.d.ts +2 -0
- package/dist/pages/ApiCollectionEditor.d.ts +2 -0
- package/dist/pages/ApiCollections.d.ts +2 -0
- package/dist/pages/Auth.d.ts +2 -0
- package/dist/pages/Entities.d.ts +2 -0
- package/dist/pages/EntityEditor.d.ts +2 -0
- package/dist/pages/EntityRecords.d.ts +2 -0
- package/dist/pages/FormBuilder.d.ts +1 -0
- package/dist/pages/FormSettings.d.ts +1 -0
- package/dist/pages/FormSubmissions.d.ts +1 -0
- package/dist/pages/Forms.d.ts +1 -0
- package/dist/pages/LayoutEditor.d.ts +2 -0
- package/dist/pages/Layouts.d.ts +2 -0
- package/dist/pages/NotFound.d.ts +2 -0
- package/dist/pages/PageEditor.d.ts +2 -0
- package/dist/pages/PublicPage.d.ts +5 -0
- package/dist/pages/Queries.d.ts +1 -0
- package/dist/pages/QueryEditor.d.ts +1 -0
- package/dist/pages/QueryResults.d.ts +1 -0
- package/dist/pages/TemplateEditor.d.ts +2 -0
- package/dist/pages/Templates.d.ts +2 -0
- package/dist/pages/WidgetEditor.d.ts +2 -0
- package/dist/pages/Widgets.d.ts +2 -0
- package/dist/placeholder.svg +1 -0
- package/dist/robots.txt +14 -0
- package/dist/types/entity.d.ts +43 -0
- package/package.json +100 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Tables } from '../../integrations/supabase/types';
|
|
2
|
+
interface LayoutPreviewModalProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onOpenChange: (open: boolean) => void;
|
|
5
|
+
layout: Tables<"layouts"> | null;
|
|
6
|
+
rows: Tables<"layout_rows">[];
|
|
7
|
+
components: Tables<"layout_components">[];
|
|
8
|
+
}
|
|
9
|
+
export declare const LayoutPreviewModal: ({ open, onOpenChange, layout, rows, components }: LayoutPreviewModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Tables } from '../../integrations/supabase/types';
|
|
2
|
+
interface LinkComponentEditorProps {
|
|
3
|
+
component: Tables<"page_components">;
|
|
4
|
+
onUpdate: (content: any) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const LinkComponentEditor: ({ component, onUpdate, }: LinkComponentEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Tables } from '../../integrations/supabase/types';
|
|
2
|
+
interface ListComponentEditorProps {
|
|
3
|
+
component: Tables<"page_components">;
|
|
4
|
+
onUpdate: (content: any) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const ListComponentEditor: ({ component, onUpdate, }: ListComponentEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Tables } from '../../integrations/supabase/types';
|
|
2
|
+
type Row = Tables<"page_rows"> | Tables<"widget_rows"> | Tables<"layout_rows">;
|
|
3
|
+
type Component = Tables<"page_components"> | Tables<"widget_components"> | Tables<"layout_components">;
|
|
4
|
+
interface OutlinePanelProps {
|
|
5
|
+
title: string;
|
|
6
|
+
rows: Row[];
|
|
7
|
+
components: Component[];
|
|
8
|
+
selectedComponentId?: string | null;
|
|
9
|
+
onSelectComponent: (id: string) => void;
|
|
10
|
+
onToggleVisibility: (id: string) => void;
|
|
11
|
+
onToggleLock: (id: string) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const OutlinePanel: ({ title, rows, components, selectedComponentId, onSelectComponent, onToggleVisibility, onToggleLock, }: OutlinePanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface OutlineTreeItemProps {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
type: "component" | "column" | "row";
|
|
5
|
+
componentType?: string;
|
|
6
|
+
visible?: boolean;
|
|
7
|
+
locked?: boolean;
|
|
8
|
+
isSelected?: boolean;
|
|
9
|
+
hasChildren?: boolean;
|
|
10
|
+
isExpanded?: boolean;
|
|
11
|
+
onToggleExpand?: () => void;
|
|
12
|
+
level: number;
|
|
13
|
+
onToggleVisibility?: () => void;
|
|
14
|
+
onToggleLock?: () => void;
|
|
15
|
+
onSelect?: () => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const OutlineTreeItem: ({ id, label, type, componentType, visible, locked, isSelected, hasChildren, isExpanded, onToggleExpand, level, onToggleVisibility, onToggleLock, onSelect, }: OutlineTreeItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface PageActionsDropdownProps {
|
|
2
|
+
pageId: string;
|
|
3
|
+
pageTitle: string;
|
|
4
|
+
pageSlug: string;
|
|
5
|
+
currentPageData: any;
|
|
6
|
+
onRestore: (pageData: any) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const PageActionsDropdown: ({ pageId, pageTitle, pageSlug, currentPageData, onRestore, }: PageActionsDropdownProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PageContentComponentEditor: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Tables } from '../../integrations/supabase/types';
|
|
2
|
+
interface PagePreviewModalProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onOpenChange: (open: boolean) => void;
|
|
5
|
+
page: Tables<"pages"> | null;
|
|
6
|
+
rows: Tables<"page_rows">[];
|
|
7
|
+
components: Tables<"page_components">[];
|
|
8
|
+
layout: Tables<"layouts"> | null;
|
|
9
|
+
layoutRows: Tables<"layout_rows">[];
|
|
10
|
+
layoutComponents: Tables<"layout_components">[];
|
|
11
|
+
widgetData: Map<string, {
|
|
12
|
+
rows: any[];
|
|
13
|
+
components: any[];
|
|
14
|
+
}>;
|
|
15
|
+
}
|
|
16
|
+
export declare const PagePreviewModal: ({ open, onOpenChange, page, rows, components, layout, layoutRows, layoutComponents, widgetData }: PagePreviewModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
interface PageRow {
|
|
2
|
+
id: string;
|
|
3
|
+
columns: number;
|
|
4
|
+
column_widths?: number[] | null;
|
|
5
|
+
styles?: Record<string, unknown> | null;
|
|
6
|
+
position: number;
|
|
7
|
+
}
|
|
8
|
+
interface PageComponent {
|
|
9
|
+
id: string;
|
|
10
|
+
component_type: string;
|
|
11
|
+
content: Record<string, unknown>;
|
|
12
|
+
column_index: number;
|
|
13
|
+
position: number;
|
|
14
|
+
row_id: string | null;
|
|
15
|
+
styles?: Record<string, unknown> | null;
|
|
16
|
+
}
|
|
17
|
+
interface PageData {
|
|
18
|
+
rows?: PageRow[];
|
|
19
|
+
components?: PageComponent[];
|
|
20
|
+
}
|
|
21
|
+
interface PageVersionDiffViewProps {
|
|
22
|
+
currentData: PageData;
|
|
23
|
+
versionData: PageData;
|
|
24
|
+
currentLabel?: string;
|
|
25
|
+
versionLabel?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare function PageVersionDiffView({ currentData, versionData, currentLabel, versionLabel }: PageVersionDiffViewProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface PageVersionsDialogProps {
|
|
2
|
+
open: boolean;
|
|
3
|
+
onOpenChange: (open: boolean) => void;
|
|
4
|
+
pageId: string;
|
|
5
|
+
currentPageData: any;
|
|
6
|
+
onRestore: (pageData: any) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const PageVersionsDialog: ({ open, onOpenChange, pageId, currentPageData, onRestore, }: PageVersionsDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Tables } from '../../integrations/supabase/types';
|
|
2
|
+
interface QuoteComponentEditorProps {
|
|
3
|
+
component: Tables<"page_components">;
|
|
4
|
+
onUpdate: (content: any) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const QuoteComponentEditor: ({ component, onUpdate, }: QuoteComponentEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type Breakpoint = "desktop" | "tablet" | "mobile";
|
|
2
|
+
interface ResponsiveControlsProps {
|
|
3
|
+
currentBreakpoint: Breakpoint;
|
|
4
|
+
onBreakpointChange: (breakpoint: Breakpoint) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const ResponsiveControls: ({ currentBreakpoint, onBreakpointChange, }: ResponsiveControlsProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface RowContextMenuProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
rowId: string;
|
|
5
|
+
onAddRowAbove: () => void;
|
|
6
|
+
onAddRowBelow: () => void;
|
|
7
|
+
onDuplicateRow: () => void;
|
|
8
|
+
onDeleteRow: () => void;
|
|
9
|
+
onToggleProperties: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const RowContextMenu: ({ children, rowId, onAddRowAbove, onAddRowBelow, onDuplicateRow, onDeleteRow, onToggleProperties, }: RowContextMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
interface RowStyles {
|
|
2
|
+
backgroundColor?: string;
|
|
3
|
+
backgroundImage?: string;
|
|
4
|
+
paddingTop?: string;
|
|
5
|
+
paddingBottom?: string;
|
|
6
|
+
paddingLeft?: string;
|
|
7
|
+
paddingRight?: string;
|
|
8
|
+
borderRadius?: string;
|
|
9
|
+
boxShadow?: string;
|
|
10
|
+
}
|
|
11
|
+
interface ResponsiveConfig {
|
|
12
|
+
mobile?: {
|
|
13
|
+
paddingTop?: string;
|
|
14
|
+
paddingBottom?: string;
|
|
15
|
+
paddingLeft?: string;
|
|
16
|
+
paddingRight?: string;
|
|
17
|
+
stackColumns?: boolean;
|
|
18
|
+
};
|
|
19
|
+
tablet?: {
|
|
20
|
+
paddingTop?: string;
|
|
21
|
+
paddingBottom?: string;
|
|
22
|
+
paddingLeft?: string;
|
|
23
|
+
paddingRight?: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
interface RowPropertiesPanelProps {
|
|
27
|
+
rowId: string;
|
|
28
|
+
columns: number;
|
|
29
|
+
styles: RowStyles;
|
|
30
|
+
columnWidths?: number[];
|
|
31
|
+
responsiveConfig?: ResponsiveConfig;
|
|
32
|
+
onUpdate: (styles: RowStyles) => void;
|
|
33
|
+
onUpdateColumnWidths?: (widths: number[]) => void;
|
|
34
|
+
onUpdateResponsiveConfig?: (config: ResponsiveConfig) => void;
|
|
35
|
+
}
|
|
36
|
+
export declare const RowPropertiesPanel: ({ columns, styles, columnWidths, responsiveConfig, onUpdate, onUpdateColumnWidths, onUpdateResponsiveConfig, }: RowPropertiesPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Tables } from '../../integrations/supabase/types';
|
|
2
|
+
type Row = Tables<"page_rows"> | Tables<"widget_rows"> | Tables<"layout_rows">;
|
|
3
|
+
type Component = Tables<"page_components"> | Tables<"widget_components"> | Tables<"layout_components">;
|
|
4
|
+
interface SidebarToggleProps {
|
|
5
|
+
showOutline: boolean;
|
|
6
|
+
onToggle: () => void;
|
|
7
|
+
title: string;
|
|
8
|
+
rows: Row[];
|
|
9
|
+
components: Component[];
|
|
10
|
+
selectedComponentId?: string | null;
|
|
11
|
+
onSelectComponent: (id: string) => void;
|
|
12
|
+
onToggleVisibility: (id: string) => void;
|
|
13
|
+
onToggleLock: (id: string) => void;
|
|
14
|
+
isLayoutEditor?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const SidebarToggle: ({ showOutline, onToggle, title, rows, components, selectedComponentId, onSelectComponent, onToggleVisibility, onToggleLock, isLayoutEditor, }: SidebarToggleProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Tables } from '../../integrations/supabase/types';
|
|
2
|
+
type Row = Tables<"page_rows"> | Tables<"widget_rows"> | Tables<"layout_rows">;
|
|
3
|
+
type Component = Tables<"page_components"> | Tables<"widget_components"> | Tables<"layout_components">;
|
|
4
|
+
interface SortableRowProps {
|
|
5
|
+
row: Row;
|
|
6
|
+
components: Component[];
|
|
7
|
+
onUpdate: (id: string, content: any) => void;
|
|
8
|
+
onDelete: (id: string) => void;
|
|
9
|
+
onDeleteRow: (rowId: string) => void;
|
|
10
|
+
onUpdateRowColumns: (rowId: string, columns: number) => void;
|
|
11
|
+
onUpdateRowStyles: (rowId: string, styles: any) => void;
|
|
12
|
+
onUpdateRowColumnWidths?: (rowId: string, widths: number[]) => void;
|
|
13
|
+
onUpdateRowResponsiveConfig?: (rowId: string, config: any) => void;
|
|
14
|
+
onUpdateStyles: (id: string, styles: any) => void;
|
|
15
|
+
onDuplicate: (id: string) => void;
|
|
16
|
+
onPaste: (rowId: string, columnIndex: number) => void;
|
|
17
|
+
onMoveToPosition: (id: string, position: number) => void;
|
|
18
|
+
onAddRowAbove?: (rowId: string) => void;
|
|
19
|
+
onAddRowBelow?: (rowId: string) => void;
|
|
20
|
+
onDuplicateRow?: (rowId: string) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const SortableRow: ({ row, components, onUpdate, onDelete, onDeleteRow, onUpdateRowColumns, onUpdateRowStyles, onUpdateRowColumnWidths, onUpdateRowResponsiveConfig, onUpdateStyles, onDuplicate, onPaste, onMoveToPosition, onAddRowAbove, onAddRowBelow, onDuplicateRow, }: SortableRowProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Tables } from '../../integrations/supabase/types';
|
|
2
|
+
interface SpacerComponentEditorProps {
|
|
3
|
+
component: Tables<"page_components">;
|
|
4
|
+
onUpdate: (content: any) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const SpacerComponentEditor: ({ component, onUpdate, }: SpacerComponentEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface TabItem {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
content: string;
|
|
5
|
+
}
|
|
6
|
+
interface TabsComponentEditorProps {
|
|
7
|
+
content: {
|
|
8
|
+
tabs?: TabItem[];
|
|
9
|
+
};
|
|
10
|
+
onUpdate: (content: any) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const TabsComponentEditor: ({ content, onUpdate }: TabsComponentEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Tables } from '../../integrations/supabase/types';
|
|
2
|
+
interface TextComponentEditorProps {
|
|
3
|
+
component: Tables<"page_components">;
|
|
4
|
+
onUpdate: (content: any) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const TextComponentEditor: ({ component, onUpdate, }: TextComponentEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Tables } from '../../integrations/supabase/types';
|
|
2
|
+
interface VideoComponentEditorProps {
|
|
3
|
+
component: Tables<"page_components">;
|
|
4
|
+
onUpdate: (content: any) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const VideoComponentEditor: ({ component, onUpdate, }: VideoComponentEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Tables } from '../../integrations/supabase/types';
|
|
2
|
+
interface WidgetPreviewModalProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onOpenChange: (open: boolean) => void;
|
|
5
|
+
widget: Tables<"widgets"> | null;
|
|
6
|
+
rows: Tables<"widget_rows">[];
|
|
7
|
+
components: Tables<"widget_components">[];
|
|
8
|
+
}
|
|
9
|
+
export declare const WidgetPreviewModal: ({ open, onOpenChange, widget, rows, components }: WidgetPreviewModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type FieldType = 'text' | 'number' | 'boolean' | 'date' | 'longtext' | 'image' | 'url';
|
|
2
|
+
interface NewField {
|
|
3
|
+
name: string;
|
|
4
|
+
display_name: string;
|
|
5
|
+
field_type: FieldType;
|
|
6
|
+
}
|
|
7
|
+
interface AddFieldPopoverProps {
|
|
8
|
+
onAddField: (field: NewField) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const AddFieldPopover: ({ onAddField }: AddFieldPopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type FieldType = 'text' | 'number' | 'boolean' | 'date' | 'longtext' | 'image' | 'url';
|
|
2
|
+
interface EntityField {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
display_name: string;
|
|
6
|
+
field_type: FieldType;
|
|
7
|
+
}
|
|
8
|
+
interface CardLayout {
|
|
9
|
+
titleField: string;
|
|
10
|
+
subtitleField?: string;
|
|
11
|
+
imageField?: string;
|
|
12
|
+
displayFields: Array<{
|
|
13
|
+
fieldId: string;
|
|
14
|
+
position: number;
|
|
15
|
+
}>;
|
|
16
|
+
}
|
|
17
|
+
interface CardLayoutEditorProps {
|
|
18
|
+
fields: EntityField[];
|
|
19
|
+
layout: CardLayout;
|
|
20
|
+
onChange: (layout: CardLayout) => void;
|
|
21
|
+
showImageField?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare const CardLayoutEditor: ({ fields, layout, onChange, showImageField }: CardLayoutEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface CreateEntityDialogProps {
|
|
2
|
+
open: boolean;
|
|
3
|
+
onOpenChange: (open: boolean) => void;
|
|
4
|
+
onSuccess?: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const CreateEntityDialog: ({ open, onOpenChange, onSuccess }: CreateEntityDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EntityData } from '../../types/entity';
|
|
2
|
+
interface EntityActionsDropdownProps {
|
|
3
|
+
entityId: string;
|
|
4
|
+
entityData: EntityData;
|
|
5
|
+
onRestore: (entityData: EntityData) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function EntityActionsDropdown({ entityId, entityData, onRestore }: EntityActionsDropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type FieldType = 'text' | 'number' | 'boolean' | 'date' | 'longtext' | 'image' | 'url';
|
|
2
|
+
interface EntityField {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
display_name: string;
|
|
6
|
+
field_type: FieldType;
|
|
7
|
+
is_required: boolean;
|
|
8
|
+
default_value: string | null;
|
|
9
|
+
}
|
|
10
|
+
interface EntityRecord {
|
|
11
|
+
id: string;
|
|
12
|
+
data: any;
|
|
13
|
+
is_published: boolean;
|
|
14
|
+
}
|
|
15
|
+
interface EntityRecordDialogProps {
|
|
16
|
+
open: boolean;
|
|
17
|
+
onOpenChange: (open: boolean) => void;
|
|
18
|
+
entityId: string;
|
|
19
|
+
fields: EntityField[];
|
|
20
|
+
record: EntityRecord | null;
|
|
21
|
+
onSuccess: () => void;
|
|
22
|
+
}
|
|
23
|
+
export declare const EntityRecordDialog: ({ open, onOpenChange, entityId, fields, record, onSuccess, }: EntityRecordDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EntityData } from '../../types/entity';
|
|
2
|
+
interface EntityVersionDiffViewProps {
|
|
3
|
+
currentData: EntityData;
|
|
4
|
+
versionData: EntityData;
|
|
5
|
+
currentLabel?: string;
|
|
6
|
+
versionLabel?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function EntityVersionDiffView({ currentData, versionData, currentLabel, versionLabel }: EntityVersionDiffViewProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EntityData } from '../../types/entity';
|
|
2
|
+
interface EntityVersionsDialogProps {
|
|
3
|
+
entityId: string;
|
|
4
|
+
currentEntityData: EntityData;
|
|
5
|
+
onRestore: (entityData: EntityData) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function EntityVersionsDialog({ entityId, currentEntityData, onRestore }: EntityVersionsDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type FieldType = 'text' | 'number' | 'boolean' | 'date' | 'longtext' | 'image' | 'url';
|
|
2
|
+
interface EntityField {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
display_name: string;
|
|
6
|
+
field_type: FieldType;
|
|
7
|
+
is_required: boolean;
|
|
8
|
+
default_value: string | null;
|
|
9
|
+
}
|
|
10
|
+
interface FieldEditorProps {
|
|
11
|
+
field: EntityField;
|
|
12
|
+
onUpdate: (updates: Partial<EntityField>) => void;
|
|
13
|
+
onDelete: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const FieldEditor: ({ field, onUpdate, onDelete }: FieldEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
type FieldType = 'text' | 'number' | 'boolean' | 'date' | 'longtext' | 'image' | 'url';
|
|
2
|
+
interface EntityField {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
display_name: string;
|
|
6
|
+
field_type: FieldType;
|
|
7
|
+
is_required: boolean;
|
|
8
|
+
default_value: string | null;
|
|
9
|
+
}
|
|
10
|
+
interface CardLayout {
|
|
11
|
+
titleField: string;
|
|
12
|
+
subtitleField?: string;
|
|
13
|
+
imageField?: string;
|
|
14
|
+
displayFields: Array<{
|
|
15
|
+
fieldId: string;
|
|
16
|
+
position: number;
|
|
17
|
+
}>;
|
|
18
|
+
}
|
|
19
|
+
interface KanbanConfig {
|
|
20
|
+
groupByField: string;
|
|
21
|
+
cardLayout: CardLayout;
|
|
22
|
+
}
|
|
23
|
+
interface GalleryConfig {
|
|
24
|
+
imageField: string;
|
|
25
|
+
titleField: string;
|
|
26
|
+
subtitleField?: string;
|
|
27
|
+
}
|
|
28
|
+
interface ListConfig {
|
|
29
|
+
titleField: string;
|
|
30
|
+
subtitleField?: string;
|
|
31
|
+
displayFields: Array<{
|
|
32
|
+
fieldId: string;
|
|
33
|
+
position: number;
|
|
34
|
+
}>;
|
|
35
|
+
}
|
|
36
|
+
interface TimelineConfig {
|
|
37
|
+
dateField: string;
|
|
38
|
+
titleField: string;
|
|
39
|
+
descriptionField?: string;
|
|
40
|
+
}
|
|
41
|
+
interface CalendarConfig {
|
|
42
|
+
dateField: string;
|
|
43
|
+
titleField: string;
|
|
44
|
+
}
|
|
45
|
+
interface GanttConfig {
|
|
46
|
+
startDateField: string;
|
|
47
|
+
endDateField: string;
|
|
48
|
+
titleField: string;
|
|
49
|
+
groupByField?: string;
|
|
50
|
+
colorByField?: string;
|
|
51
|
+
dependenciesField?: string;
|
|
52
|
+
progressField?: string;
|
|
53
|
+
}
|
|
54
|
+
interface ViewOptions {
|
|
55
|
+
viewType?: 'table' | 'card' | 'kanban' | 'gallery' | 'list' | 'timeline' | 'calendar' | 'gantt';
|
|
56
|
+
visibleColumns: string[];
|
|
57
|
+
sortField: string | null;
|
|
58
|
+
sortOrder: 'asc' | 'desc';
|
|
59
|
+
filters: Array<{
|
|
60
|
+
field: string;
|
|
61
|
+
operator: string;
|
|
62
|
+
value: string;
|
|
63
|
+
}>;
|
|
64
|
+
cardLayout?: CardLayout;
|
|
65
|
+
kanbanConfig?: KanbanConfig;
|
|
66
|
+
galleryConfig?: GalleryConfig;
|
|
67
|
+
listConfig?: ListConfig;
|
|
68
|
+
timelineConfig?: TimelineConfig;
|
|
69
|
+
calendarConfig?: CalendarConfig;
|
|
70
|
+
ganttConfig?: GanttConfig;
|
|
71
|
+
}
|
|
72
|
+
interface ViewOptionsPanelProps {
|
|
73
|
+
entityId: string;
|
|
74
|
+
fields: EntityField[];
|
|
75
|
+
viewOptions: ViewOptions;
|
|
76
|
+
onViewOptionsChange: (options: ViewOptions) => void;
|
|
77
|
+
currentViewName?: string;
|
|
78
|
+
currentViewId?: string | null;
|
|
79
|
+
onViewSaved?: () => void;
|
|
80
|
+
}
|
|
81
|
+
export declare const ViewOptionsPanel: ({ entityId, fields, viewOptions, onViewOptionsChange, currentViewName, currentViewId, onViewSaved }: ViewOptionsPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
82
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
interface ViewOptions {
|
|
2
|
+
visibleColumns: string[];
|
|
3
|
+
sortField: string | null;
|
|
4
|
+
sortOrder: 'asc' | 'desc';
|
|
5
|
+
filters: Array<{
|
|
6
|
+
field: string;
|
|
7
|
+
operator: string;
|
|
8
|
+
value: string;
|
|
9
|
+
}>;
|
|
10
|
+
}
|
|
11
|
+
interface ViewSelectorProps {
|
|
12
|
+
entityId: string;
|
|
13
|
+
currentView: ViewOptions;
|
|
14
|
+
onViewLoad: (view: ViewOptions) => void;
|
|
15
|
+
onViewNameChange?: (name: string) => void;
|
|
16
|
+
onViewIdChange?: (id: string | null) => void;
|
|
17
|
+
}
|
|
18
|
+
export interface ViewSelectorRef {
|
|
19
|
+
refreshViews: () => void;
|
|
20
|
+
}
|
|
21
|
+
export declare const ViewSelector: import('react').ForwardRefExoticComponent<ViewSelectorProps & import('react').RefAttributes<ViewSelectorRef>>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
type FieldType = 'text' | 'number' | 'boolean' | 'date' | 'longtext' | 'image' | 'url';
|
|
2
|
+
interface EntityField {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
display_name: string;
|
|
6
|
+
field_type: FieldType;
|
|
7
|
+
}
|
|
8
|
+
interface EntityRecord {
|
|
9
|
+
id: string;
|
|
10
|
+
data: Record<string, any>;
|
|
11
|
+
is_published: boolean;
|
|
12
|
+
created_at: string;
|
|
13
|
+
}
|
|
14
|
+
interface CalendarConfig {
|
|
15
|
+
dateField: string;
|
|
16
|
+
titleField: string;
|
|
17
|
+
}
|
|
18
|
+
interface CalendarViewProps {
|
|
19
|
+
records: EntityRecord[];
|
|
20
|
+
fields: EntityField[];
|
|
21
|
+
calendarConfig?: CalendarConfig;
|
|
22
|
+
onEdit: (record: EntityRecord) => void;
|
|
23
|
+
onDelete: (record: EntityRecord) => void;
|
|
24
|
+
onTogglePublish: (record: EntityRecord) => void;
|
|
25
|
+
}
|
|
26
|
+
export declare const CalendarView: ({ records, fields, calendarConfig, onEdit, onDelete, onTogglePublish }: CalendarViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
type FieldType = 'text' | 'number' | 'boolean' | 'date' | 'longtext' | 'image' | 'url';
|
|
2
|
+
interface EntityField {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
display_name: string;
|
|
6
|
+
field_type: FieldType;
|
|
7
|
+
}
|
|
8
|
+
interface EntityRecord {
|
|
9
|
+
id: string;
|
|
10
|
+
data: Record<string, any>;
|
|
11
|
+
is_published: boolean;
|
|
12
|
+
created_at: string;
|
|
13
|
+
}
|
|
14
|
+
interface CardLayout {
|
|
15
|
+
titleField: string;
|
|
16
|
+
subtitleField?: string;
|
|
17
|
+
imageField?: string;
|
|
18
|
+
displayFields: Array<{
|
|
19
|
+
fieldId: string;
|
|
20
|
+
position: number;
|
|
21
|
+
}>;
|
|
22
|
+
}
|
|
23
|
+
interface CardViewProps {
|
|
24
|
+
records: EntityRecord[];
|
|
25
|
+
fields: EntityField[];
|
|
26
|
+
cardLayout?: CardLayout;
|
|
27
|
+
onEdit: (record: EntityRecord) => void;
|
|
28
|
+
onDelete: (record: EntityRecord) => void;
|
|
29
|
+
onTogglePublish: (record: EntityRecord) => void;
|
|
30
|
+
}
|
|
31
|
+
export declare const CardView: ({ records, fields, cardLayout, onEdit, onDelete, onTogglePublish }: CardViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
type FieldType = 'text' | 'number' | 'boolean' | 'date' | 'longtext' | 'image' | 'url';
|
|
2
|
+
interface EntityField {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
display_name: string;
|
|
6
|
+
field_type: FieldType;
|
|
7
|
+
}
|
|
8
|
+
interface EntityRecord {
|
|
9
|
+
id: string;
|
|
10
|
+
data: Record<string, any>;
|
|
11
|
+
is_published: boolean;
|
|
12
|
+
created_at: string;
|
|
13
|
+
}
|
|
14
|
+
interface GalleryConfig {
|
|
15
|
+
imageField: string;
|
|
16
|
+
titleField: string;
|
|
17
|
+
subtitleField?: string;
|
|
18
|
+
}
|
|
19
|
+
interface GalleryViewProps {
|
|
20
|
+
records: EntityRecord[];
|
|
21
|
+
fields: EntityField[];
|
|
22
|
+
galleryConfig?: GalleryConfig;
|
|
23
|
+
onEdit: (record: EntityRecord) => void;
|
|
24
|
+
onDelete: (record: EntityRecord) => void;
|
|
25
|
+
onTogglePublish: (record: EntityRecord) => void;
|
|
26
|
+
}
|
|
27
|
+
export declare const GalleryView: ({ records, fields, galleryConfig, onEdit, onDelete, onTogglePublish }: GalleryViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export {};
|