@infuro/cms-core 1.0.9 → 1.0.11
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.cjs +2568 -1184
- package/dist/admin.cjs.map +1 -1
- package/dist/admin.d.cts +41 -2
- package/dist/admin.d.ts +41 -2
- package/dist/admin.js +2594 -1214
- package/dist/admin.js.map +1 -1
- package/dist/api.cjs +1695 -151
- package/dist/api.cjs.map +1 -1
- package/dist/api.d.cts +2 -1
- package/dist/api.d.ts +2 -1
- package/dist/api.js +1689 -146
- package/dist/api.js.map +1 -1
- package/dist/auth.cjs +153 -9
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +17 -27
- package/dist/auth.d.ts +17 -27
- package/dist/auth.js +143 -8
- package/dist/auth.js.map +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/helpers-dlrF_49e.d.cts +60 -0
- package/dist/helpers-dlrF_49e.d.ts +60 -0
- package/dist/{index-P5ajDo8-.d.ts → index-C_CZLmHD.d.cts} +88 -1
- package/dist/{index-P5ajDo8-.d.cts → index-DeO4AnAj.d.ts} +88 -1
- package/dist/index.cjs +3340 -715
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +154 -5
- package/dist/index.d.ts +154 -5
- package/dist/index.js +2821 -223
- package/dist/index.js.map +1 -1
- package/dist/migrations/1772178563555-ChatAndKnowledgeBase.ts +33 -17
- package/dist/migrations/1774300000000-RbacSeedGroupsAndPermissionUnique.ts +24 -0
- package/dist/migrations/1774300000001-SeedAdministratorUsersPermission.ts +35 -0
- package/dist/migrations/1774400000000-CustomerAdminAccessContactUser.ts +37 -0
- package/dist/migrations/1774400000001-StorefrontCartWishlist.ts +100 -0
- package/dist/migrations/1774400000002-WishlistGuestId.ts +29 -0
- package/dist/migrations/1774500000000-ProductCollectionHsn.ts +15 -0
- package/package.json +13 -7
- /package/{dist → src/admin}/admin.css +0 -0
package/dist/admin.d.cts
CHANGED
|
@@ -112,7 +112,7 @@ type CrudFilterItem = {
|
|
|
112
112
|
type: 'select' | 'dateRange' | 'text';
|
|
113
113
|
options?: CrudFilterOption[];
|
|
114
114
|
};
|
|
115
|
-
declare function AdminCRUD({ title, apiEndpoint, columns, addEditPageUrl, customViewPageUrl, defaultSortField, defaultSortOrder, filters, extraListParams, }: {
|
|
115
|
+
declare function AdminCRUD({ title, apiEndpoint, columns, addEditPageUrl, customViewPageUrl, defaultSortField, defaultSortOrder, filters, extraListParams, manageUserGroups, }: {
|
|
116
116
|
title: string;
|
|
117
117
|
apiEndpoint: string;
|
|
118
118
|
columns: any[];
|
|
@@ -122,6 +122,8 @@ declare function AdminCRUD({ title, apiEndpoint, columns, addEditPageUrl, custom
|
|
|
122
122
|
defaultSortOrder?: 'asc' | 'desc';
|
|
123
123
|
filters?: CrudFilterItem[];
|
|
124
124
|
extraListParams?: Record<string, string>;
|
|
125
|
+
/** When true, show group (role) selector for each user; requires GET /api/admin/roles. */
|
|
126
|
+
manageUserGroups?: boolean;
|
|
125
127
|
}): react_jsx_runtime.JSX.Element;
|
|
126
128
|
|
|
127
129
|
declare function CreateEditForm({ isOpen, onClose, apiEndpoint, columns, existingData }: {
|
|
@@ -220,6 +222,14 @@ interface NavbarEditorProps {
|
|
|
220
222
|
}
|
|
221
223
|
declare function NavbarEditor({ config, onChange }: NavbarEditorProps): react_jsx_runtime.JSX.Element;
|
|
222
224
|
|
|
225
|
+
interface JoditRichTextProps {
|
|
226
|
+
value: string;
|
|
227
|
+
onChange: (html: string) => void;
|
|
228
|
+
placeholder?: string;
|
|
229
|
+
minHeight?: number;
|
|
230
|
+
}
|
|
231
|
+
declare function JoditRichText({ value, onChange, placeholder, minHeight }: JoditRichTextProps): react_jsx_runtime.JSX.Element;
|
|
232
|
+
|
|
223
233
|
declare const SigninPage: () => react_jsx_runtime.JSX.Element;
|
|
224
234
|
|
|
225
235
|
declare function ForgotPasswordPage(): react_jsx_runtime.JSX.Element;
|
|
@@ -247,10 +257,39 @@ declare function BrandEditPage({ brandId }: {
|
|
|
247
257
|
brandId: string;
|
|
248
258
|
}): react_jsx_runtime.JSX.Element;
|
|
249
259
|
|
|
260
|
+
declare function ProductEditPage({ productId }: {
|
|
261
|
+
productId: string;
|
|
262
|
+
}): react_jsx_runtime.JSX.Element;
|
|
263
|
+
|
|
264
|
+
declare function CollectionEditPage({ collectionId }: {
|
|
265
|
+
collectionId: string;
|
|
266
|
+
}): react_jsx_runtime.JSX.Element;
|
|
267
|
+
|
|
268
|
+
interface DetailPageHeaderMenuItem {
|
|
269
|
+
label: string;
|
|
270
|
+
onClick: () => void;
|
|
271
|
+
}
|
|
272
|
+
interface DetailPageHeaderProps {
|
|
273
|
+
title: React.ReactNode;
|
|
274
|
+
subtitle?: React.ReactNode;
|
|
275
|
+
backHref?: string;
|
|
276
|
+
backLabel?: string;
|
|
277
|
+
closeHref?: string;
|
|
278
|
+
onClose?: () => void;
|
|
279
|
+
menuItems?: DetailPageHeaderMenuItem[];
|
|
280
|
+
}
|
|
281
|
+
declare function DetailPageHeader({ title, subtitle, backHref, backLabel, closeHref, onClose, menuItems, }: DetailPageHeaderProps): react_jsx_runtime.JSX.Element;
|
|
282
|
+
|
|
283
|
+
declare function DetailPageLayout({ main, sidebar, }: {
|
|
284
|
+
main: React$1.ReactNode;
|
|
285
|
+
/** Omit for a single full-width main column (e.g. product/collection merchandising). */
|
|
286
|
+
sidebar?: React$1.ReactNode;
|
|
287
|
+
}): react_jsx_runtime.JSX.Element;
|
|
288
|
+
|
|
250
289
|
declare const STORE_CRUD_CONFIGS: Record<string, CustomCrudConfig>;
|
|
251
290
|
|
|
252
291
|
declare function CmsProviders({ children }: {
|
|
253
292
|
children: React.ReactNode;
|
|
254
293
|
}): react_jsx_runtime.JSX.Element;
|
|
255
294
|
|
|
256
|
-
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, ComponentSettings, CreateEditForm, type CustomCrudColumn, type CustomCrudConfig, type CustomNavItem, type CustomNavSection, DailyUserChart, FormBuilder, GeographicMap, LayoutSettingsPage, NavbarEditor, PageBuilderPage, type PluginDescriptor, STORE_CRUD_CONFIGS, TagAutocomplete, type ThemeRegistryItem, UserAutocomplete, AdminLayout as default };
|
|
295
|
+
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 };
|
package/dist/admin.d.ts
CHANGED
|
@@ -112,7 +112,7 @@ type CrudFilterItem = {
|
|
|
112
112
|
type: 'select' | 'dateRange' | 'text';
|
|
113
113
|
options?: CrudFilterOption[];
|
|
114
114
|
};
|
|
115
|
-
declare function AdminCRUD({ title, apiEndpoint, columns, addEditPageUrl, customViewPageUrl, defaultSortField, defaultSortOrder, filters, extraListParams, }: {
|
|
115
|
+
declare function AdminCRUD({ title, apiEndpoint, columns, addEditPageUrl, customViewPageUrl, defaultSortField, defaultSortOrder, filters, extraListParams, manageUserGroups, }: {
|
|
116
116
|
title: string;
|
|
117
117
|
apiEndpoint: string;
|
|
118
118
|
columns: any[];
|
|
@@ -122,6 +122,8 @@ declare function AdminCRUD({ title, apiEndpoint, columns, addEditPageUrl, custom
|
|
|
122
122
|
defaultSortOrder?: 'asc' | 'desc';
|
|
123
123
|
filters?: CrudFilterItem[];
|
|
124
124
|
extraListParams?: Record<string, string>;
|
|
125
|
+
/** When true, show group (role) selector for each user; requires GET /api/admin/roles. */
|
|
126
|
+
manageUserGroups?: boolean;
|
|
125
127
|
}): react_jsx_runtime.JSX.Element;
|
|
126
128
|
|
|
127
129
|
declare function CreateEditForm({ isOpen, onClose, apiEndpoint, columns, existingData }: {
|
|
@@ -220,6 +222,14 @@ interface NavbarEditorProps {
|
|
|
220
222
|
}
|
|
221
223
|
declare function NavbarEditor({ config, onChange }: NavbarEditorProps): react_jsx_runtime.JSX.Element;
|
|
222
224
|
|
|
225
|
+
interface JoditRichTextProps {
|
|
226
|
+
value: string;
|
|
227
|
+
onChange: (html: string) => void;
|
|
228
|
+
placeholder?: string;
|
|
229
|
+
minHeight?: number;
|
|
230
|
+
}
|
|
231
|
+
declare function JoditRichText({ value, onChange, placeholder, minHeight }: JoditRichTextProps): react_jsx_runtime.JSX.Element;
|
|
232
|
+
|
|
223
233
|
declare const SigninPage: () => react_jsx_runtime.JSX.Element;
|
|
224
234
|
|
|
225
235
|
declare function ForgotPasswordPage(): react_jsx_runtime.JSX.Element;
|
|
@@ -247,10 +257,39 @@ declare function BrandEditPage({ brandId }: {
|
|
|
247
257
|
brandId: string;
|
|
248
258
|
}): react_jsx_runtime.JSX.Element;
|
|
249
259
|
|
|
260
|
+
declare function ProductEditPage({ productId }: {
|
|
261
|
+
productId: string;
|
|
262
|
+
}): react_jsx_runtime.JSX.Element;
|
|
263
|
+
|
|
264
|
+
declare function CollectionEditPage({ collectionId }: {
|
|
265
|
+
collectionId: string;
|
|
266
|
+
}): react_jsx_runtime.JSX.Element;
|
|
267
|
+
|
|
268
|
+
interface DetailPageHeaderMenuItem {
|
|
269
|
+
label: string;
|
|
270
|
+
onClick: () => void;
|
|
271
|
+
}
|
|
272
|
+
interface DetailPageHeaderProps {
|
|
273
|
+
title: React.ReactNode;
|
|
274
|
+
subtitle?: React.ReactNode;
|
|
275
|
+
backHref?: string;
|
|
276
|
+
backLabel?: string;
|
|
277
|
+
closeHref?: string;
|
|
278
|
+
onClose?: () => void;
|
|
279
|
+
menuItems?: DetailPageHeaderMenuItem[];
|
|
280
|
+
}
|
|
281
|
+
declare function DetailPageHeader({ title, subtitle, backHref, backLabel, closeHref, onClose, menuItems, }: DetailPageHeaderProps): react_jsx_runtime.JSX.Element;
|
|
282
|
+
|
|
283
|
+
declare function DetailPageLayout({ main, sidebar, }: {
|
|
284
|
+
main: React$1.ReactNode;
|
|
285
|
+
/** Omit for a single full-width main column (e.g. product/collection merchandising). */
|
|
286
|
+
sidebar?: React$1.ReactNode;
|
|
287
|
+
}): react_jsx_runtime.JSX.Element;
|
|
288
|
+
|
|
250
289
|
declare const STORE_CRUD_CONFIGS: Record<string, CustomCrudConfig>;
|
|
251
290
|
|
|
252
291
|
declare function CmsProviders({ children }: {
|
|
253
292
|
children: React.ReactNode;
|
|
254
293
|
}): react_jsx_runtime.JSX.Element;
|
|
255
294
|
|
|
256
|
-
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, ComponentSettings, CreateEditForm, type CustomCrudColumn, type CustomCrudConfig, type CustomNavItem, type CustomNavSection, DailyUserChart, FormBuilder, GeographicMap, LayoutSettingsPage, NavbarEditor, PageBuilderPage, type PluginDescriptor, STORE_CRUD_CONFIGS, TagAutocomplete, type ThemeRegistryItem, UserAutocomplete, AdminLayout as default };
|
|
295
|
+
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 };
|