@jsonpages/core 1.0.17 → 1.0.19
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/index.d.ts +6 -0
- package/dist/jsonpages-core.js +12431 -4370
- package/dist/jsonpages-core.umd.cjs +89 -40
- package/package.json +10 -1
package/dist/index.d.ts
CHANGED
|
@@ -66,6 +66,12 @@ declare interface AdminSidebarProps {
|
|
|
66
66
|
onResetToFile?: () => void;
|
|
67
67
|
/** When true, shows the "Ripristina da file" button (default false = hidden). */
|
|
68
68
|
showResetToFile?: boolean;
|
|
69
|
+
/** Available page slugs. When length > 0 and onPageChange set, shows page selector under Inspector header. */
|
|
70
|
+
pageSlugs?: string[];
|
|
71
|
+
/** Current page slug. */
|
|
72
|
+
currentSlug?: string;
|
|
73
|
+
/** Called when user selects another page; engine should navigate to /admin/:slug. */
|
|
74
|
+
onPageChange?: (slug: string) => void;
|
|
69
75
|
}
|
|
70
76
|
|
|
71
77
|
/** Optional config for the Image Picker (gallery from assets, save to assets). */
|