pagepilot-visual-editor 1.0.11 → 1.0.12
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/editor/Topbar.d.ts +5 -1
- package/dist/index.cjs +223 -223
- package/dist/index.js +17680 -17637
- package/package.json +1 -1
package/dist/editor/Topbar.d.ts
CHANGED
|
@@ -23,9 +23,13 @@ export interface TopbarProps {
|
|
|
23
23
|
onToggleMode?: () => void;
|
|
24
24
|
/** Disables Save Changes when false — the user has nothing to save. */
|
|
25
25
|
isDirty?: boolean;
|
|
26
|
+
/** Shows a spinner in Save Changes and disables it to prevent duplicate saves. */
|
|
27
|
+
isSaving?: boolean;
|
|
28
|
+
/** When true, swaps Save Changes for a transient "Changes saved" success button. */
|
|
29
|
+
changesSaved?: boolean;
|
|
26
30
|
/** Checked state of the Auto Save switch. */
|
|
27
31
|
autoSaveEnabled?: boolean;
|
|
28
32
|
/** Fired when the user toggles the Auto Save switch. */
|
|
29
33
|
onAutoSaveChange?: (enabled: boolean) => void;
|
|
30
34
|
}
|
|
31
|
-
export default function Topbar({ toggles, title, recordTitle, recordStatus, onBack, onSave, onPublish, onPublishMenu, publishSlot, onPreview, onToggleFullscreen, isFullscreen, onOpenMoreMenu, sectionsDropdown, mode, onToggleMode, isDirty, autoSaveEnabled, onAutoSaveChange, }: TopbarProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export default function Topbar({ toggles, title, recordTitle, recordStatus, onBack, onSave, onPublish, onPublishMenu, publishSlot, onPreview, onToggleFullscreen, isFullscreen, onOpenMoreMenu, sectionsDropdown, mode, onToggleMode, isDirty, isSaving, changesSaved, autoSaveEnabled, onAutoSaveChange, }: TopbarProps): import("react/jsx-runtime").JSX.Element;
|