@infuro/cms-core 1.0.22 → 1.0.23

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/admin.d.cts CHANGED
@@ -126,13 +126,16 @@ declare function AdminCRUD({ title, apiEndpoint, columns, addEditPageUrl, custom
126
126
  manageUserGroups?: boolean;
127
127
  }): react_jsx_runtime.JSX.Element;
128
128
 
129
- declare function CreateEditForm({ isOpen, onClose, apiEndpoint, columns, existingData }: {
130
- isOpen: any;
131
- onClose: any;
132
- apiEndpoint: any;
133
- columns: any;
134
- existingData: any;
135
- }): react_jsx_runtime.JSX.Element | null;
129
+ type CreateEditFormProps = {
130
+ isOpen: boolean;
131
+ onClose: () => void;
132
+ /** Called only after a successful POST/PUT so parents can refetch lists without reloading on cancel. */
133
+ onSaveSuccess?: () => void;
134
+ apiEndpoint: string;
135
+ columns: any[];
136
+ existingData?: Record<string, unknown> | null;
137
+ };
138
+ declare function CreateEditForm({ isOpen, onClose, onSaveSuccess, apiEndpoint, columns, existingData, }: CreateEditFormProps): react_jsx_runtime.JSX.Element | null;
136
139
 
137
140
  declare function FormBuilder({ formId }: {
138
141
  formId?: string;
@@ -246,6 +249,8 @@ declare function AdminPageResolver({ slug }: {
246
249
 
247
250
  declare function SettingsPage(): react_jsx_runtime.JSX.Element;
248
251
 
252
+ declare function AdminProfilePage(): react_jsx_runtime.JSX.Element | null;
253
+
249
254
  declare function LayoutSettingsPage(): react_jsx_runtime.JSX.Element;
250
255
 
251
256
  interface PageBuilderPageProps {
@@ -296,4 +301,4 @@ declare function CmsProviders({ children }: {
296
301
  children: React.ReactNode;
297
302
  }): react_jsx_runtime.JSX.Element;
298
303
 
299
- export { AdminCRUD, AdminConfigContext, DashboardPage as AdminDashboardPage, ForgotPasswordPage as AdminForgotPasswordPage, AdminHeader, InvitePage as AdminInvitePage, AdminLayout, type AdminLayoutProps, AdminPageResolver, ResetPasswordPage as AdminResetPasswordPage, SettingsPage as AdminSettingsPage, AdminShell, AdminSidebar, SigninPage as AdminSignInPage, AnalyticsCard, AnalyticsChart, AnalyticsExclusion, BlogEditor as BlogEditorPage, BrandEditPage, CategoryAutocomplete, CmsProviders, CollectionEditPage, ComponentSettings, CreateEditForm, type CustomCrudColumn, type CustomCrudConfig, type CustomNavItem, type CustomNavSection, DailyUserChart, DetailPageHeader, type DetailPageHeaderMenuItem, DetailPageLayout, FormBuilder, GeographicMap, JoditRichText, LayoutSettingsPage, NavbarEditor, PageBuilderPage, type PluginDescriptor, ProductEditPage, STORE_CRUD_CONFIGS, TagAutocomplete, type ThemeRegistryItem, UserAutocomplete, AdminLayout as default };
304
+ export { AdminCRUD, AdminConfigContext, DashboardPage as AdminDashboardPage, ForgotPasswordPage as AdminForgotPasswordPage, AdminHeader, InvitePage as AdminInvitePage, AdminLayout, type AdminLayoutProps, AdminPageResolver, AdminProfilePage, ResetPasswordPage as AdminResetPasswordPage, SettingsPage as AdminSettingsPage, AdminShell, AdminSidebar, SigninPage as AdminSignInPage, AnalyticsCard, AnalyticsChart, AnalyticsExclusion, BlogEditor as BlogEditorPage, BrandEditPage, CategoryAutocomplete, CmsProviders, CollectionEditPage, ComponentSettings, CreateEditForm, type CustomCrudColumn, type CustomCrudConfig, type CustomNavItem, type CustomNavSection, DailyUserChart, DetailPageHeader, type DetailPageHeaderMenuItem, DetailPageLayout, FormBuilder, GeographicMap, JoditRichText, LayoutSettingsPage, NavbarEditor, PageBuilderPage, type PluginDescriptor, ProductEditPage, STORE_CRUD_CONFIGS, TagAutocomplete, type ThemeRegistryItem, UserAutocomplete, AdminLayout as default };
package/dist/admin.d.ts CHANGED
@@ -126,13 +126,16 @@ declare function AdminCRUD({ title, apiEndpoint, columns, addEditPageUrl, custom
126
126
  manageUserGroups?: boolean;
127
127
  }): react_jsx_runtime.JSX.Element;
128
128
 
129
- declare function CreateEditForm({ isOpen, onClose, apiEndpoint, columns, existingData }: {
130
- isOpen: any;
131
- onClose: any;
132
- apiEndpoint: any;
133
- columns: any;
134
- existingData: any;
135
- }): react_jsx_runtime.JSX.Element | null;
129
+ type CreateEditFormProps = {
130
+ isOpen: boolean;
131
+ onClose: () => void;
132
+ /** Called only after a successful POST/PUT so parents can refetch lists without reloading on cancel. */
133
+ onSaveSuccess?: () => void;
134
+ apiEndpoint: string;
135
+ columns: any[];
136
+ existingData?: Record<string, unknown> | null;
137
+ };
138
+ declare function CreateEditForm({ isOpen, onClose, onSaveSuccess, apiEndpoint, columns, existingData, }: CreateEditFormProps): react_jsx_runtime.JSX.Element | null;
136
139
 
137
140
  declare function FormBuilder({ formId }: {
138
141
  formId?: string;
@@ -246,6 +249,8 @@ declare function AdminPageResolver({ slug }: {
246
249
 
247
250
  declare function SettingsPage(): react_jsx_runtime.JSX.Element;
248
251
 
252
+ declare function AdminProfilePage(): react_jsx_runtime.JSX.Element | null;
253
+
249
254
  declare function LayoutSettingsPage(): react_jsx_runtime.JSX.Element;
250
255
 
251
256
  interface PageBuilderPageProps {
@@ -296,4 +301,4 @@ declare function CmsProviders({ children }: {
296
301
  children: React.ReactNode;
297
302
  }): react_jsx_runtime.JSX.Element;
298
303
 
299
- export { AdminCRUD, AdminConfigContext, DashboardPage as AdminDashboardPage, ForgotPasswordPage as AdminForgotPasswordPage, AdminHeader, InvitePage as AdminInvitePage, AdminLayout, type AdminLayoutProps, AdminPageResolver, ResetPasswordPage as AdminResetPasswordPage, SettingsPage as AdminSettingsPage, AdminShell, AdminSidebar, SigninPage as AdminSignInPage, AnalyticsCard, AnalyticsChart, AnalyticsExclusion, BlogEditor as BlogEditorPage, BrandEditPage, CategoryAutocomplete, CmsProviders, CollectionEditPage, ComponentSettings, CreateEditForm, type CustomCrudColumn, type CustomCrudConfig, type CustomNavItem, type CustomNavSection, DailyUserChart, DetailPageHeader, type DetailPageHeaderMenuItem, DetailPageLayout, FormBuilder, GeographicMap, JoditRichText, LayoutSettingsPage, NavbarEditor, PageBuilderPage, type PluginDescriptor, ProductEditPage, STORE_CRUD_CONFIGS, TagAutocomplete, type ThemeRegistryItem, UserAutocomplete, AdminLayout as default };
304
+ export { AdminCRUD, AdminConfigContext, DashboardPage as AdminDashboardPage, ForgotPasswordPage as AdminForgotPasswordPage, AdminHeader, InvitePage as AdminInvitePage, AdminLayout, type AdminLayoutProps, AdminPageResolver, AdminProfilePage, ResetPasswordPage as AdminResetPasswordPage, SettingsPage as AdminSettingsPage, AdminShell, AdminSidebar, SigninPage as AdminSignInPage, AnalyticsCard, AnalyticsChart, AnalyticsExclusion, BlogEditor as BlogEditorPage, BrandEditPage, CategoryAutocomplete, CmsProviders, CollectionEditPage, ComponentSettings, CreateEditForm, type CustomCrudColumn, type CustomCrudConfig, type CustomNavItem, type CustomNavSection, DailyUserChart, DetailPageHeader, type DetailPageHeaderMenuItem, DetailPageLayout, FormBuilder, GeographicMap, JoditRichText, LayoutSettingsPage, NavbarEditor, PageBuilderPage, type PluginDescriptor, ProductEditPage, STORE_CRUD_CONFIGS, TagAutocomplete, type ThemeRegistryItem, UserAutocomplete, AdminLayout as default };