@luminix/mui-cms 0.0.1-beta.3 → 0.0.1-beta.4
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/bundle/mui-cms.bundle.iife.js +7 -7
- package/dist/mui-cms.js +31 -8
- package/package.json +1 -1
- package/types/dist.d.ts +22 -1
- package/types/types/PropTypes.d.ts +3 -3
package/dist/mui-cms.js
CHANGED
|
@@ -3205,31 +3205,54 @@ const _r = {
|
|
|
3205
3205
|
}, ma = ({
|
|
3206
3206
|
theme: e = _r,
|
|
3207
3207
|
plugins: t,
|
|
3208
|
-
i18nOptions: n = {}
|
|
3208
|
+
i18nOptions: n = {},
|
|
3209
|
+
...a
|
|
3209
3210
|
}) => {
|
|
3210
|
-
const
|
|
3211
|
+
const s = ie("(prefers-color-scheme: dark)"), o = p.useMemo(() => Dn({
|
|
3211
3212
|
...e,
|
|
3212
3213
|
palette: {
|
|
3213
3214
|
...e.palette,
|
|
3214
|
-
mode:
|
|
3215
|
+
mode: s ? "dark" : "light"
|
|
3215
3216
|
}
|
|
3216
|
-
}), [e,
|
|
3217
|
-
return /* @__PURE__ */ m(Tn, { theme:
|
|
3217
|
+
}), [e, s]);
|
|
3218
|
+
return /* @__PURE__ */ m(Tn, { theme: o, children: [
|
|
3218
3219
|
/* @__PURE__ */ r(ln, {}),
|
|
3219
3220
|
/* @__PURE__ */ r(
|
|
3220
3221
|
Pt,
|
|
3221
3222
|
{
|
|
3222
|
-
routes: (
|
|
3223
|
+
routes: (i) => i.make("cms").getRoutes(),
|
|
3223
3224
|
plugins: [
|
|
3224
3225
|
new Xr(),
|
|
3225
3226
|
new Jr(n),
|
|
3226
3227
|
...t || []
|
|
3227
|
-
]
|
|
3228
|
+
],
|
|
3229
|
+
...a
|
|
3228
3230
|
}
|
|
3229
3231
|
)
|
|
3230
3232
|
] });
|
|
3231
3233
|
};
|
|
3232
3234
|
export {
|
|
3233
3235
|
Xr as CmsPlugin,
|
|
3234
|
-
|
|
3236
|
+
Nn as DialogProvider,
|
|
3237
|
+
Ln as LayoutProvider,
|
|
3238
|
+
ce as Link,
|
|
3239
|
+
ma as LuminixCms,
|
|
3240
|
+
me as ModelProvider,
|
|
3241
|
+
jn as NotificationProvider,
|
|
3242
|
+
We as useActionEvent,
|
|
3243
|
+
Hn as useBackButton,
|
|
3244
|
+
$ as useCurrentModel,
|
|
3245
|
+
Xn as useDialog,
|
|
3246
|
+
Qn as useDisplaceNotifications,
|
|
3247
|
+
Zn as useHandleError,
|
|
3248
|
+
tr as useHasSearch,
|
|
3249
|
+
v as useIsDesktopMode,
|
|
3250
|
+
L as useLayoutConfig,
|
|
3251
|
+
ze as useMenu,
|
|
3252
|
+
qe as useNotify,
|
|
3253
|
+
gt as usePageTitle,
|
|
3254
|
+
Kn as useSearch,
|
|
3255
|
+
Ye as useSelection,
|
|
3256
|
+
je as useSetPageTitle,
|
|
3257
|
+
Q as useTable
|
|
3235
3258
|
};
|
package/package.json
CHANGED
package/types/dist.d.ts
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
1
|
import { default as CmsPlugin } from './plugins/CmsPlugin';
|
|
2
2
|
import { default as LuminixCms } from './components/LuminixCms';
|
|
3
|
-
|
|
3
|
+
import { default as Link } from './components/Link';
|
|
4
|
+
import { default as DialogProvider } from './providers/DialogProvider';
|
|
5
|
+
import { default as LayoutProvider } from './providers/LayoutProvider';
|
|
6
|
+
import { default as ModelProvider } from './providers/ModelProvider';
|
|
7
|
+
import { default as NotificationProvider } from './providers/NotificationProvider';
|
|
8
|
+
import { default as useActionEvent } from './hooks/useActionEvent';
|
|
9
|
+
import { default as useBackButton } from './hooks/useBackButton';
|
|
10
|
+
import { default as useCurrentModel } from './hooks/useCurrentModel';
|
|
11
|
+
import { default as useDialog } from './hooks/useDialog';
|
|
12
|
+
import { default as useDisplaceNotifications } from './hooks/useDisplaceNotifications';
|
|
13
|
+
import { default as useHandleError } from './hooks/useHandleError';
|
|
14
|
+
import { default as useHasSearch } from './hooks/useHasSearch';
|
|
15
|
+
import { default as useIsDesktopMode } from './hooks/useIsDesktopMode';
|
|
16
|
+
import { default as useLayoutConfig } from './hooks/useLayoutConfig';
|
|
17
|
+
import { default as useMenu } from './hooks/useMenu';
|
|
18
|
+
import { default as useNotify } from './hooks/useNotify';
|
|
19
|
+
import { default as usePageTitle } from './hooks/usePageTitle';
|
|
20
|
+
import { default as useSearch } from './hooks/useSearch';
|
|
21
|
+
import { default as useSelection } from './hooks/useSelection';
|
|
22
|
+
import { default as useSetPageTitle } from './hooks/useSetPageTitle';
|
|
23
|
+
import { default as useTable } from './hooks/useTable';
|
|
24
|
+
export { CmsPlugin, LuminixCms, Link, useActionEvent, useBackButton, useCurrentModel, useDialog, useDisplaceNotifications, useHandleError, useHasSearch, useIsDesktopMode, useLayoutConfig, useMenu, useNotify, usePageTitle, useSearch, useSelection, useSetPageTitle, useTable, DialogProvider, LayoutProvider, ModelProvider, NotificationProvider, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Model
|
|
1
|
+
import { Model } from '@luminix/core';
|
|
2
2
|
import { DrawerProps as MuiDrawerProps, AppBarProps as MuiAppBarProps, BoxProps, DrawerProps, MenuProps, TableProps as MuiTableProps, StackProps, TableHeadProps as MuiTableHeadProps, TableBodyProps as MuiTableBodyProps, TableRowProps as MuiTableRowProps, ThemeOptions, BreadcrumbsOwnProps, SnackbarProps, AlertProps } from '@mui/material';
|
|
3
3
|
import { ListTypeMap } from '@mui/material/List';
|
|
4
4
|
import { DefaultComponentProps } from '@mui/material/OverridableComponent';
|
|
@@ -7,9 +7,9 @@ import { ModelPaginatedResponse } from '@luminix/core/dist/types/Model';
|
|
|
7
7
|
import { Collection, CollectionIteratorCallback } from '@luminix/core/dist/types/Collection';
|
|
8
8
|
import { Scope } from '@luminix/core/dist/types/Builder';
|
|
9
9
|
import { InitOptions } from 'i18next';
|
|
10
|
-
|
|
10
|
+
import { LuminixProviderProps } from '@luminix/react/dist/components/LuminixProvider';
|
|
11
|
+
export type LuminixCmsProps = Partial<LuminixProviderProps> & {
|
|
11
12
|
theme?: ThemeOptions;
|
|
12
|
-
plugins?: Plugin[];
|
|
13
13
|
i18nOptions?: InitOptions;
|
|
14
14
|
};
|
|
15
15
|
export type LayoutProps = BoxProps & {
|