@headless-adminapp/app 0.0.17-alpha.3 → 0.0.17-alpha.5
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/app/LayoutProvider.d.ts +1 -7
- package/app/LayoutProvider.js +2 -4
- package/app/index.d.ts +1 -0
- package/app/index.js +3 -1
- package/package.json +9 -3
package/app/LayoutProvider.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { IDataService } from '@headless-adminapp/core/transport';
|
|
2
2
|
import { QueryClient } from '@tanstack/react-query';
|
|
3
|
-
import {
|
|
4
|
-
import { AppearanceContextState } from '../appearance';
|
|
3
|
+
import { FC, PropsWithChildren } from 'react';
|
|
5
4
|
import { AuthProviderPlaceholderProps, AuthProviderProps } from '../auth';
|
|
6
5
|
import { LocaleProviderProps } from '../locale';
|
|
7
6
|
import { MetadataProviderProps } from '../metadata/MetadataProvider';
|
|
@@ -9,10 +8,6 @@ import { RouteProviderProps } from '../route/RouteProvider';
|
|
|
9
8
|
export interface LayoutProviderProps {
|
|
10
9
|
routeProps: RouteProviderProps;
|
|
11
10
|
queryClient: QueryClient;
|
|
12
|
-
appearanceState: [
|
|
13
|
-
AppearanceContextState,
|
|
14
|
-
Dispatch<SetStateAction<AppearanceContextState>>
|
|
15
|
-
];
|
|
16
11
|
localeProps: LocaleProviderProps;
|
|
17
12
|
dataService: IDataService;
|
|
18
13
|
authProps: AuthProviderProps;
|
|
@@ -24,5 +19,4 @@ export interface LayoutProviderProps {
|
|
|
24
19
|
ToastNotificationContainer: FC;
|
|
25
20
|
};
|
|
26
21
|
}
|
|
27
|
-
/** @todo: move to app */
|
|
28
22
|
export declare const LayoutProvider: FC<PropsWithChildren<LayoutProviderProps>>;
|
package/app/LayoutProvider.js
CHANGED
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.LayoutProvider = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_query_1 = require("@tanstack/react-query");
|
|
6
|
-
const appearance_1 = require("../appearance");
|
|
7
6
|
const auth_1 = require("../auth");
|
|
8
7
|
const dialog_1 = require("../dialog");
|
|
9
8
|
const locale_1 = require("../locale");
|
|
@@ -14,8 +13,7 @@ const route_1 = require("../route");
|
|
|
14
13
|
const toast_notification_1 = require("../toast-notification");
|
|
15
14
|
const transport_1 = require("../transport");
|
|
16
15
|
const AuthWrapper_1 = require("./AuthWrapper");
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return ((0, jsx_runtime_1.jsx)(route_1.RouteProvider, Object.assign({}, routeProps, { children: (0, jsx_runtime_1.jsx)(react_query_1.QueryClientProvider, { client: queryClient, children: (0, jsx_runtime_1.jsx)(appearance_1.AppearanceContext.Provider, { value: appearanceState, children: (0, jsx_runtime_1.jsx)(locale_1.LocaleProvider, Object.assign({}, localeProps, { children: (0, jsx_runtime_1.jsx)(metadata_1.MetadataProvider, Object.assign({}, metadataProps, { children: (0, jsx_runtime_1.jsx)(transport_1.DataServiceContext.Provider, { value: dataService, children: (0, jsx_runtime_1.jsx)(dialog_1.DialogProvider, { children: (0, jsx_runtime_1.jsx)(progress_indicator_1.ProgressIndicatorProvider, { children: (0, jsx_runtime_1.jsxs)(toast_notification_1.ToastNotificationProvider, { children: [(0, jsx_runtime_1.jsx)(DialogContainer, {}), (0, jsx_runtime_1.jsx)(ProgressIndicatorContainer, {}), (0, jsx_runtime_1.jsx)(ToastNotificationContainer, {}), (0, jsx_runtime_1.jsx)(auth_1.AuthProvider, Object.assign({}, authProps, { children: (0, jsx_runtime_1.jsx)(AuthWrapper_1.AuthWrapper, { Placeholder: authPlaceholder, children: (0, jsx_runtime_1.jsx)(recordset_1.RecordSetProvider, { children: children }) }) }))] }) }) }) }) })) })) }) }) })));
|
|
16
|
+
const LayoutProvider = ({ authPlaceholder, authProps, dataService, localeProps, metadataProps, queryClient, routeProps, children, containers: { DialogContainer, ProgressIndicatorContainer, ToastNotificationContainer, }, }) => {
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)(route_1.RouteProvider, Object.assign({}, routeProps, { children: (0, jsx_runtime_1.jsx)(react_query_1.QueryClientProvider, { client: queryClient, children: (0, jsx_runtime_1.jsx)(locale_1.LocaleProvider, Object.assign({}, localeProps, { children: (0, jsx_runtime_1.jsx)(metadata_1.MetadataProvider, Object.assign({}, metadataProps, { children: (0, jsx_runtime_1.jsx)(transport_1.DataServiceContext.Provider, { value: dataService, children: (0, jsx_runtime_1.jsx)(dialog_1.DialogProvider, { children: (0, jsx_runtime_1.jsx)(progress_indicator_1.ProgressIndicatorProvider, { children: (0, jsx_runtime_1.jsxs)(toast_notification_1.ToastNotificationProvider, { children: [(0, jsx_runtime_1.jsx)(DialogContainer, {}), (0, jsx_runtime_1.jsx)(ProgressIndicatorContainer, {}), (0, jsx_runtime_1.jsx)(ToastNotificationContainer, {}), (0, jsx_runtime_1.jsx)(auth_1.AuthProvider, Object.assign({}, authProps, { children: (0, jsx_runtime_1.jsx)(AuthWrapper_1.AuthWrapper, { Placeholder: authPlaceholder, children: (0, jsx_runtime_1.jsx)(recordset_1.RecordSetProvider, { children: children }) }) }))] }) }) }) }) })) })) }) })));
|
|
20
18
|
};
|
|
21
19
|
exports.LayoutProvider = LayoutProvider;
|
package/app/index.d.ts
CHANGED
package/app/index.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AppProvider = exports.useAppContext = exports.AppContext = void 0;
|
|
3
|
+
exports.LayoutProvider = exports.AppProvider = exports.useAppContext = exports.AppContext = void 0;
|
|
4
4
|
var context_1 = require("./context");
|
|
5
5
|
Object.defineProperty(exports, "AppContext", { enumerable: true, get: function () { return context_1.AppContext; } });
|
|
6
6
|
var hooks_1 = require("./hooks");
|
|
7
7
|
Object.defineProperty(exports, "useAppContext", { enumerable: true, get: function () { return hooks_1.useAppContext; } });
|
|
8
8
|
var AppProvider_1 = require("./AppProvider");
|
|
9
9
|
Object.defineProperty(exports, "AppProvider", { enumerable: true, get: function () { return AppProvider_1.AppProvider; } });
|
|
10
|
+
var LayoutProvider_1 = require("./LayoutProvider");
|
|
11
|
+
Object.defineProperty(exports, "LayoutProvider", { enumerable: true, get: function () { return LayoutProvider_1.LayoutProvider; } });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@headless-adminapp/app",
|
|
3
|
-
"version": "0.0.17-alpha.
|
|
3
|
+
"version": "0.0.17-alpha.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -27,8 +27,14 @@
|
|
|
27
27
|
"author": "",
|
|
28
28
|
"license": "ISC",
|
|
29
29
|
"dependencies": {
|
|
30
|
+
"@hookform/resolvers": "^3.9.0",
|
|
31
|
+
"@tanstack/react-query": "5.51.1",
|
|
30
32
|
"clsx": "2.1.1",
|
|
31
|
-
"
|
|
33
|
+
"dayjs": "^1.11.13",
|
|
34
|
+
"lodash": "^4.17.21",
|
|
35
|
+
"react-custom-scrollbars-2": "^4.5.0",
|
|
36
|
+
"react-hook-form": "7.52.2",
|
|
37
|
+
"yup": "^1.4.0"
|
|
32
38
|
},
|
|
33
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "ce1cd9d647ff147098bed887326ab0b0f73017ce"
|
|
34
40
|
}
|