@mandolop97/constructor-nexora 1.1.3 → 1.3.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.
@@ -24,9 +24,11 @@ export interface NexoraBuilderAppProps {
24
24
  customStylesheets?: string[];
25
25
  /** Raw CSS string to inject into the canvas */
26
26
  customCSS?: string;
27
+ /** URLs of external scripts to inject into the canvas (e.g. Tailwind CDN) */
28
+ customScripts?: string[];
27
29
  /** Callback for image uploads from inspector fields */
28
30
  onImageUpload?: (file: File) => Promise<string>;
29
31
  /** Resolve asset paths to full URLs */
30
32
  resolveAssetUrl?: (path: string) => string;
31
33
  }
32
- export declare function NexoraBuilderApp({ initialSchema, domain, pageSlug, onSave, onPublish, onPreview, onExport, className, pages, activePage, onPageChange, onSaveWithSlug, onPublishSubmit, locale: localeProp, customComponents, extraBlocks, customStylesheets, customCSS, onImageUpload, resolveAssetUrl, }: NexoraBuilderAppProps): import("react/jsx-runtime").JSX.Element;
34
+ export declare function NexoraBuilderApp({ initialSchema, domain, pageSlug, onSave, onPublish, onPreview, onExport, className, pages, activePage, onPageChange, onSaveWithSlug, onPublishSubmit, locale: localeProp, customComponents, extraBlocks, customStylesheets, customCSS, customScripts, onImageUpload, resolveAssetUrl, }: NexoraBuilderAppProps): import("react/jsx-runtime").JSX.Element;
@@ -14,11 +14,14 @@ interface BuilderCanvasProps {
14
14
  mockData?: Record<string, any>;
15
15
  customStylesheets?: string[];
16
16
  customCSS?: string;
17
+ customScripts?: string[];
17
18
  onCopyNode?: (nodeId: string) => void;
18
19
  onPasteNode?: (nodeId: string) => void;
19
20
  onDuplicateNode?: (nodeId: string) => void;
20
21
  onDeleteNode?: (nodeId: string) => void;
21
22
  canPaste?: boolean;
23
+ onEditSection?: (nodeType: string) => void;
24
+ onSaveAsTemplate?: (nodeId: string) => void;
22
25
  }
23
- export declare function BuilderCanvas({ schema, device, selectedNodeId, onSelectNode, customComponents, templateType, canvasSize, mockData, customStylesheets, customCSS, onCopyNode, onPasteNode, onDuplicateNode, onDeleteNode, canPaste }: BuilderCanvasProps): import("react/jsx-runtime").JSX.Element;
26
+ export declare function BuilderCanvas({ schema, device, selectedNodeId, onSelectNode, customComponents, templateType, canvasSize, mockData, customStylesheets, customCSS, customScripts, onCopyNode, onPasteNode, onDuplicateNode, onDeleteNode, canPaste, onEditSection, onSaveAsTemplate }: BuilderCanvasProps): import("react/jsx-runtime").JSX.Element;
24
27
  export {};
@@ -17,7 +17,8 @@ export interface BuilderEditorShellProps {
17
17
  onBack?: () => void;
18
18
  customStylesheets?: string[];
19
19
  customCSS?: string;
20
+ customScripts?: string[];
20
21
  onImageUpload?: (file: File) => Promise<string>;
21
22
  resolveAssetUrl?: (path: string) => string;
22
23
  }
23
- export declare function BuilderEditorShell({ initialSchema, onSave: onSaveExternal, onPublish, onPreview, onExport, className, onPublishSubmit, pages, activePage, onPageChange, pageTitle, customComponents, onBack, customStylesheets, customCSS, onImageUpload, resolveAssetUrl, }: BuilderEditorShellProps): import("react/jsx-runtime").JSX.Element;
24
+ export declare function BuilderEditorShell({ initialSchema, onSave: onSaveExternal, onPublish, onPreview, onExport, className, onPublishSubmit, pages, activePage, onPageChange, pageTitle, customComponents, onBack, customStylesheets, customCSS, customScripts, onImageUpload, resolveAssetUrl, }: BuilderEditorShellProps): import("react/jsx-runtime").JSX.Element;
@@ -3,10 +3,12 @@ interface CustomStylesInjectorProps {
3
3
  stylesheets?: string[];
4
4
  /** Raw CSS string to inject */
5
5
  css?: string;
6
+ /** External script URLs to inject (e.g. Tailwind CDN) */
7
+ scripts?: string[];
6
8
  }
7
9
  /**
8
- * Injects custom stylesheets (<link>) and raw CSS (<style>) into the
9
- * canvas so builder preview matches the real site appearance.
10
+ * Injects custom stylesheets (<link>), raw CSS (<style>), and scripts (<script>)
11
+ * into the canvas so builder preview matches the real site appearance.
10
12
  */
11
- export declare function CustomStylesInjector({ stylesheets, css }: CustomStylesInjectorProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare function CustomStylesInjector({ stylesheets, css, scripts }: CustomStylesInjectorProps): import("react/jsx-runtime").JSX.Element;
12
14
  export {};
@@ -12,6 +12,8 @@ interface PageRendererProps {
12
12
  onDuplicateNode?: (nodeId: string) => void;
13
13
  onDeleteNode?: (nodeId: string) => void;
14
14
  canPaste?: boolean;
15
+ onEditSection?: (nodeType: string) => void;
16
+ onSaveAsTemplate?: (nodeId: string) => void;
15
17
  }
16
- export declare function PageRenderer({ schema, mode, selectedNodeId, onSelectNode, customComponents, mockData, onCopyNode, onPasteNode, onDuplicateNode, onDeleteNode, canPaste }: PageRendererProps): import("react/jsx-runtime").JSX.Element;
18
+ export declare function PageRenderer({ schema, mode, selectedNodeId, onSelectNode, customComponents, mockData, onCopyNode, onPasteNode, onDuplicateNode, onDeleteNode, canPaste, onEditSection, onSaveAsTemplate }: PageRendererProps): import("react/jsx-runtime").JSX.Element;
17
19
  export {};
@@ -10,6 +10,8 @@ interface SortableNodeWrapperProps {
10
10
  onDuplicate?: (id: string) => void;
11
11
  onDelete?: (id: string) => void;
12
12
  canPaste?: boolean;
13
+ onEditSection?: (nodeType: string) => void;
14
+ onSaveAsTemplate?: (nodeId: string) => void;
13
15
  }
14
- export declare function SortableNodeWrapper({ nodeId, children, isSelected, nodeType, onSelect, onCopy, onPaste, onDuplicate, onDelete, canPaste }: SortableNodeWrapperProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare function SortableNodeWrapper({ nodeId, children, isSelected, nodeType, onSelect, onCopy, onPaste, onDuplicate, onDelete, canPaste, onEditSection, onSaveAsTemplate }: SortableNodeWrapperProps): import("react/jsx-runtime").JSX.Element;
15
17
  export {};
@@ -5,5 +5,5 @@ interface NodeComponentProps {
5
5
  mode: RenderMode;
6
6
  renderChildren: (childIds: string[]) => React.ReactNode;
7
7
  }
8
- export declare function ProductCardNode({ node }: NodeComponentProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function ProductCardNode({ node, mode, renderChildren }: NodeComponentProps): import("react/jsx-runtime").JSX.Element;
9
9
  export {};
@@ -8,4 +8,5 @@ interface NodeComponentProps {
8
8
  export declare function AccordionNode({ node }: NodeComponentProps): import("react/jsx-runtime").JSX.Element;
9
9
  export declare function TabsBlockNode({ node }: NodeComponentProps): import("react/jsx-runtime").JSX.Element;
10
10
  export declare function VideoEmbedNode({ node }: NodeComponentProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare function FormBlockNode({ node }: NodeComponentProps): import("react/jsx-runtime").JSX.Element;
11
12
  export {};
@@ -55,7 +55,7 @@ declare const ChartTooltipContent: React.ForwardRefExoticComponent<Omit<Recharts
55
55
  labelKey?: string;
56
56
  }, "ref"> & React.RefAttributes<HTMLDivElement>>;
57
57
  declare const ChartLegend: typeof RechartsPrimitive.Legend;
58
- declare const ChartLegendContent: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Pick<RechartsPrimitive.LegendProps, "payload" | "verticalAlign"> & {
58
+ declare const ChartLegendContent: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Pick<RechartsPrimitive.LegendProps, "verticalAlign" | "payload"> & {
59
59
  hideIcon?: boolean;
60
60
  nameKey?: string;
61
61
  }, "ref"> & React.RefAttributes<HTMLDivElement>>;