infinity-forge 0.31.8 → 0.32.0
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/sites/components/brands-carousel/styles.d.ts +0 -1
- package/dist/sites/components/counter/versions/version-01/box/styles.d.ts +0 -1
- package/dist/sites/components/counter/versions/version-01/styles.d.ts +0 -1
- package/dist/sites/components/header-link/versions/version-01/styles.d.ts +0 -1
- package/dist/sites/components/mvv/versions/version-01/styles.d.ts +0 -1
- package/dist/sites/context/configs/interfaces.d.ts +0 -1
- package/dist/sites/context/configs/scripts/acept-cookies/styles.d.ts +0 -1
- package/dist/sites/context/configs/scripts/acept-ratedr/styles.d.ts +0 -1
- package/dist/sites/context/configs/scripts/whatsapp-fixed/styles.d.ts +0 -1
- package/dist/system/container/main.d.ts +1 -1
- package/dist/system/domain/use-cases/notifications/load-all.d.ts +1 -3
- package/dist/system/presentation/components/data/chat/card-message/styles.d.ts +0 -1
- package/dist/system/presentation/components/data/chat/loader/styles.d.ts +0 -1
- package/dist/system/presentation/components/data/chat/styles.d.ts +0 -1
- package/dist/system/presentation/components/data/detail-card/styles.d.ts +0 -1
- package/dist/system/presentation/components/data/highlight-icon/styles.d.ts +0 -1
- package/dist/system/presentation/components/data/highlight-text/styles.d.ts +0 -1
- package/dist/system/presentation/components/data/input-search/styles.d.ts +0 -1
- package/dist/system/presentation/components/data/logo/styles.d.ts +0 -1
- package/dist/system/presentation/components/data/overlay/styles.d.ts +0 -1
- package/dist/system/presentation/components/data/page-wrapper/styles.d.ts +0 -1
- package/dist/system/presentation/components/data/profile-infos/profile/styles.d.ts +0 -1
- package/dist/system/presentation/components/data/profile-infos/styles.d.ts +0 -1
- package/dist/system/presentation/components/data/select-workspace/styles.d.ts +0 -1
- package/dist/system/presentation/components/data/sign-up/styles.d.ts +0 -1
- package/dist/system/presentation/components/data/tab/styles.d.ts +0 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/index.js +2 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/styles.d.ts +0 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/styles.d.ts +0 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/card/styles.d.ts +0 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.js +9 -9
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/styles.d.ts +0 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/styles.d.ts +0 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/styles.d.ts +0 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/settings/styles.d.ts +0 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/styles.d.ts +0 -1
- package/dist/system/presentation/components/layout/header/components/search-modal/search-list/styles.d.ts +0 -1
- package/dist/system/presentation/components/layout/header/components/search-modal/styles.d.ts +0 -1
- package/dist/system/presentation/components/layout/header/components/search-modal/trigger/styles.d.ts +0 -1
- package/dist/system/presentation/components/layout/header/index.js +1 -3
- package/dist/system/presentation/components/layout/header/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/version-01/styles.d.ts +0 -1
- package/dist/system/presentation/components/layout/menu/components/menu/index.js +0 -1
- package/dist/system/presentation/components/layout/menu/components/menu/index.js.map +1 -1
- package/dist/system/presentation/components/layout/menu/components/menu/styles.d.ts +0 -1
- package/dist/system/presentation/components/layout/menu/components/select-workspace/custom-styles.d.ts +2 -0
- package/dist/system/presentation/components/layout/menu/components/select-workspace/custom-styles.js +26 -0
- package/dist/system/presentation/components/layout/menu/components/select-workspace/custom-styles.js.map +1 -0
- package/dist/system/presentation/components/layout/menu/components/select-workspace/index.d.ts +17 -0
- package/dist/system/presentation/components/layout/menu/components/select-workspace/index.js +66 -0
- package/dist/system/presentation/components/layout/menu/components/select-workspace/index.js.map +1 -0
- package/dist/system/presentation/components/layout/menu/components/select-workspace/styles.d.ts +2 -0
- package/dist/system/presentation/components/layout/menu/components/select-workspace/styles.js +14 -0
- package/dist/system/presentation/components/layout/menu/components/select-workspace/styles.js.map +1 -0
- package/dist/system/presentation/components/layout/menu/version-01/styles.d.ts +0 -1
- package/dist/system/presentation/components/layout/styles.d.ts +0 -1
- package/dist/system/presentation/components/pages/menus/table/icon/style.d.ts +0 -1
- package/dist/system/presentation/context/auth/context.js +4 -2
- package/dist/system/presentation/context/auth/context.js.map +1 -1
- package/dist/system/presentation/context/auth/login/styles.d.ts +0 -1
- package/dist/system/presentation/context/container.d.ts +3 -2
- package/dist/system/presentation/context/container.js +3 -3
- package/dist/system/presentation/context/container.js.map +1 -1
- package/dist/system/presentation/context/index.d.ts +1 -1
- package/dist/system/presentation/context/index.js +1 -1
- package/dist/system/presentation/context/index.js.map +1 -1
- package/dist/system/presentation/context/infra-injection/context.d.ts +7 -0
- package/dist/system/presentation/context/infra-injection/context.js +14 -0
- package/dist/system/presentation/context/infra-injection/context.js.map +1 -0
- package/dist/system/presentation/context/infra-injection/index.d.ts +2 -0
- package/dist/system/presentation/context/infra-injection/index.js +19 -0
- package/dist/system/presentation/context/infra-injection/index.js.map +1 -0
- package/dist/system/presentation/context/infra-injection/interfaces.d.ts +13 -0
- package/dist/system/presentation/context/infra-injection/interfaces.js +3 -0
- package/dist/system/presentation/context/infra-injection/interfaces.js.map +1 -0
- package/dist/system/presentation/hooks/menu/use-load-menu.d.ts +1 -1
- package/dist/system/presentation/hooks/menu/use-load-menu.js +7 -5
- package/dist/system/presentation/hooks/menu/use-load-menu.js.map +1 -1
- package/dist/system/presentation/hooks/notifications/use-load-all/index.d.ts +1 -4
- package/dist/system/presentation/hooks/notifications/use-load-all/index.js +5 -11
- package/dist/system/presentation/hooks/notifications/use-load-all/index.js.map +1 -1
- package/dist/system/presentation/hooks/notifications/use-load-no-read/index.d.ts +1 -1
- package/dist/system/presentation/hooks/notifications/use-load-no-read/index.js +3 -1
- package/dist/system/presentation/hooks/notifications/use-load-no-read/index.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/create/styles.d.ts +0 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/export/styles.d.ts +0 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/styles.d.ts +0 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/styles.d.ts +0 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/styles.d.ts +0 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/styles.d.ts +0 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/styles.d.ts +0 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/ui/components/accordion/styles.d.ts +0 -1
- package/dist/ui/components/breadcrumb/styles.d.ts +0 -1
- package/dist/ui/components/button/styles.d.ts +0 -1
- package/dist/ui/components/form/checkbox/styles.d.ts +0 -1
- package/dist/ui/components/form/handler/dynamic_form_handler/component.js +1 -1
- package/dist/ui/components/form/handler/dynamic_form_handler/styles.d.ts +0 -1
- package/dist/ui/components/form/handler/form-handler/index.js +1 -5
- package/dist/ui/components/form/handler/form-handler/index.js.map +1 -1
- package/dist/ui/components/form/handler/styles.d.ts +0 -1
- package/dist/ui/components/form/input-control/error/styles.d.ts +0 -1
- package/dist/ui/components/form/input-control/label/styles.d.ts +0 -1
- package/dist/ui/components/form/input-control/loader-input/styles.d.ts +0 -1
- package/dist/ui/components/form/input-control/styles.d.ts +0 -1
- package/dist/ui/components/form/input-date/styles.d.ts +0 -1
- package/dist/ui/components/form/input-file/file-card/styles.d.ts +0 -1
- package/dist/ui/components/form/input-file/styles.d.ts +0 -1
- package/dist/ui/components/form/input-password/styles.d.ts +0 -1
- package/dist/ui/components/form/radio/styles.d.ts +0 -1
- package/dist/ui/components/form/select/styles.d.ts +0 -1
- package/dist/ui/components/loading-screen/styles.d.ts +0 -1
- package/dist/ui/components/menu-mobile/components/nav-links/styles.d.ts +0 -1
- package/dist/ui/components/menu-mobile/styles.d.ts +0 -1
- package/dist/ui/components/menu-mobile/top/styles.d.ts +0 -1
- package/dist/ui/components/next-image/styles.d.ts +0 -1
- package/dist/ui/components/sidebar/styles.d.ts +0 -1
- package/dist/ui/contexts/toast/styles.d.ts +0 -1
- package/dist/ui/contexts/toast/toast-item/styles.d.ts +0 -1
- package/dist/ui/utils/file/load-file.js +1 -1
- package/dist/ui/utils/file/upload-file.js +5 -5
- package/dist/ui/utils/file/upload-file.js.map +1 -1
- package/package.json +77 -77
|
@@ -71,14 +71,16 @@ function AuthAdminProvider(_a) {
|
|
|
71
71
|
var children = _a.children, onSignOut = _a.onSignOut;
|
|
72
72
|
var _b = (0, react_1.useState)(undefined), user = _b[0], setUser = _b[1];
|
|
73
73
|
var router = (0, router_1.useRouter)();
|
|
74
|
+
var InjectedRemotes = (0, system_1.useInfraInjection)().InjectedRemotes;
|
|
74
75
|
function loadUser() {
|
|
75
76
|
return __awaiter(this, void 0, void 0, function () {
|
|
76
|
-
var user_1, err_1;
|
|
77
|
+
var RemoteLoadUserAdmin_1, user_1, err_1;
|
|
77
78
|
return __generator(this, function (_a) {
|
|
78
79
|
switch (_a.label) {
|
|
79
80
|
case 0:
|
|
80
81
|
_a.trys.push([0, 2, , 3]);
|
|
81
|
-
|
|
82
|
+
RemoteLoadUserAdmin_1 = InjectedRemotes.users.loadUserAdmin || system_1.container.get(system_1.Types.RemoteLoadUserAdmin);
|
|
83
|
+
return [4 /*yield*/, RemoteLoadUserAdmin_1.load()];
|
|
82
84
|
case 1:
|
|
83
85
|
user_1 = _a.sent();
|
|
84
86
|
setUser(user_1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../src/system/presentation/context/auth/context.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C,QAAQ,IAAC,KAAK,EAAE,EAAE,IAAI,MAAA,EAAE,MAAM,QAAA,EAAE,OAAO,SAAA,EAAE,OAAO,SAAA,EAAE,YAAG,QAAQ,GAAwB,CAAA;AAC3G,CAAC;AAWQ,8CAAiB;AAT1B,SAAS,YAAY;IACnB,IAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,WAAW,CAAC,CAAA;IAEvC,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAA;IACtE,CAAC;IACD,OAAO,OAAO,CAAA;AAChB,CAAC;AAE2B,oCAAY"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react/experimental" />
|
|
3
2
|
export declare const Login: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
3
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
5
4
|
}, never>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
import { InfraInjectionContextType } from './infra-injection/index.js';
|
|
3
|
+
export declare function InfinityForgeProviders({ children, onSignOut, toast, InjectedRemotes, Configurations }: {
|
|
3
4
|
children: React.ReactNode;
|
|
4
5
|
onSignOut?: () => void;
|
|
5
6
|
toast?: any;
|
|
6
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
} & InfraInjectionContextType): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,10 +4,10 @@ exports.InfinityForgeProviders = void 0;
|
|
|
4
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
var ui_1 = require("../../../ui/index.js");
|
|
6
6
|
var auth_1 = require("./auth/index.js");
|
|
7
|
-
var
|
|
7
|
+
var infra_injection_1 = require("./infra-injection/index.js");
|
|
8
8
|
function InfinityForgeProviders(_a) {
|
|
9
|
-
var children = _a.children, onSignOut = _a.onSignOut, toast = _a.toast;
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
9
|
+
var children = _a.children, onSignOut = _a.onSignOut, toast = _a.toast, InjectedRemotes = _a.InjectedRemotes, Configurations = _a.Configurations;
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)(infra_injection_1.InfraInjectionProvider, { InjectedRemotes: InjectedRemotes, Configurations: Configurations, children: (0, jsx_runtime_1.jsx)(auth_1.AuthAdminProvider, { onSignOut: onSignOut, children: (0, jsx_runtime_1.jsx)(ui_1.ToastProvider, { toast: toast, children: children }) }) }));
|
|
11
11
|
}
|
|
12
12
|
exports.InfinityForgeProviders = InfinityForgeProviders;
|
|
13
13
|
//# sourceMappingURL=container.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.js","sourceRoot":"","sources":["../../../../src/system/presentation/context/container.tsx"],"names":[],"mappings":";;;;AAAA,2BAAoC;AACpC,+BAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"container.js","sourceRoot":"","sources":["../../../../src/system/presentation/context/container.tsx"],"names":[],"mappings":";;;;AAAA,2BAAoC;AACpC,+BAA0C;AAC1C,qDAAqF;AAErF,SAAgB,sBAAsB,CAAC,EAUV;QAT3B,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,KAAK,WAAA,EACL,eAAe,qBAAA,EACf,cAAc,oBAAA;IAMd,OAAO,CACL,uBAAC,wCAAsB,IAAC,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,cAAc,YACtF,uBAAC,wBAAiB,IAAC,SAAS,EAAE,SAAS,YACnC,uBAAC,kBAAa,IAAC,KAAK,EAAE,KAAK,YAAG,QAAQ,GAAiB,GACvC,GACG,CAC1B,CAAA;AACH,CAAC;AAlBD,wDAkBC"}
|
|
@@ -16,5 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./auth/index.js"), exports);
|
|
18
18
|
__exportStar(require("./container.js"), exports);
|
|
19
|
-
__exportStar(require("./
|
|
19
|
+
__exportStar(require("./infra-injection/index.js"), exports);
|
|
20
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/system/presentation/context/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,8CAA2B;AAC3B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/system/presentation/context/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,8CAA2B;AAC3B,oDAAkC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { InfraInjectionContextType } from './interfaces.js';
|
|
3
|
+
declare const useInfraInjection: () => InfraInjectionContextType;
|
|
4
|
+
declare const InfraInjectionProvider: ({ children, InjectedRemotes, Configurations }: {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
} & InfraInjectionContextType) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { useInfraInjection, InfraInjectionProvider };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InfraInjectionProvider = exports.useInfraInjection = void 0;
|
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
var react_1 = require("react");
|
|
6
|
+
var InfraInjectionContext = (0, react_1.createContext)({});
|
|
7
|
+
var useInfraInjection = function () { return (0, react_1.useContext)(InfraInjectionContext); };
|
|
8
|
+
exports.useInfraInjection = useInfraInjection;
|
|
9
|
+
var InfraInjectionProvider = function (_a) {
|
|
10
|
+
var children = _a.children, InjectedRemotes = _a.InjectedRemotes, Configurations = _a.Configurations;
|
|
11
|
+
return ((0, jsx_runtime_1.jsx)(InfraInjectionContext.Provider, { value: { InjectedRemotes: InjectedRemotes, Configurations: Configurations }, children: children }));
|
|
12
|
+
};
|
|
13
|
+
exports.InfraInjectionProvider = InfraInjectionProvider;
|
|
14
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../src/system/presentation/context/infra-injection/context.tsx"],"names":[],"mappings":";;;;AAAA,+BAA4D;AAI5D,IAAM,qBAAqB,GAAG,IAAA,qBAAa,EAA4B,EAAE,CAAC,CAAA;AAE1E,IAAM,iBAAiB,GAAG,cAAM,OAAA,IAAA,kBAAU,EAAC,qBAAqB,CAAC,EAAjC,CAAiC,CAAA;AAUxD,8CAAiB;AAR1B,IAAM,sBAAsB,GAAG,UAAC,EAAkG;QAAhG,QAAQ,cAAA,EAAE,eAAe,qBAAA,EAAE,cAAc,oBAAA;IACzE,OAAO,CACL,uBAAC,qBAAqB,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,eAAe,iBAAA,EAAE,cAAc,gBAAA,EAAE,YACvE,QAAQ,GACsB,CAClC,CAAA;AACH,CAAC,CAAA;AAE2B,wDAAsB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./context.js"), exports);
|
|
18
|
+
__exportStar(require("./interfaces.js"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/system/presentation/context/infra-injection/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,+CAA4B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RemoteLoadUserAdmin, RemoteMenu } from '../../../../system/data/index.js';
|
|
2
|
+
export interface InfraInjectionContextType {
|
|
3
|
+
InjectedRemotes?: {
|
|
4
|
+
users?: {
|
|
5
|
+
loadUserAdmin?: RemoteLoadUserAdmin;
|
|
6
|
+
};
|
|
7
|
+
menu?: RemoteMenu;
|
|
8
|
+
};
|
|
9
|
+
Configurations?: {
|
|
10
|
+
chat?: boolean;
|
|
11
|
+
notification?: boolean;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/system/presentation/context/infra-injection/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function useLoadMenu(): import("swr").SWRResponse<import("../../../../system/index.js").LoadAllMenu.Model, any, {
|
|
1
|
+
export declare function useLoadMenu(): import("swr/dist/_internal").SWRResponse<import("../../../../system/index.js").LoadAllMenu.Model, any, {
|
|
2
2
|
revalidateIfStale: false;
|
|
3
3
|
revalidateOnFocus: false;
|
|
4
4
|
revalidateOnReconnect: false;
|
|
@@ -42,16 +42,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
42
42
|
exports.useLoadMenu = void 0;
|
|
43
43
|
var system_1 = require("../../../../system/index.js");
|
|
44
44
|
var swr_1 = __importDefault(require("swr"));
|
|
45
|
+
var infra_injection_1 = require("../../context/infra-injection/index.js");
|
|
45
46
|
function useLoadMenu() {
|
|
47
|
+
var InjectedRemotes = (0, infra_injection_1.useInfraInjection)().InjectedRemotes;
|
|
46
48
|
function fetcher() {
|
|
47
49
|
return __awaiter(this, void 0, void 0, function () {
|
|
48
|
-
var
|
|
50
|
+
var RemoteMenu;
|
|
49
51
|
return __generator(this, function (_a) {
|
|
50
52
|
switch (_a.label) {
|
|
51
|
-
case 0:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
case 0:
|
|
54
|
+
RemoteMenu = InjectedRemotes.menu || system_1.container.get(system_1.Types.RemoteMenu);
|
|
55
|
+
return [4 /*yield*/, RemoteMenu.loadAll()];
|
|
56
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
55
57
|
}
|
|
56
58
|
});
|
|
57
59
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-load-menu.js","sourceRoot":"","sources":["../../../../../src/system/presentation/hooks/menu/use-load-menu.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAuD;AAEvD,4CAAwB;
|
|
1
|
+
{"version":3,"file":"use-load-menu.js","sourceRoot":"","sources":["../../../../../src/system/presentation/hooks/menu/use-load-menu.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAuD;AAEvD,4CAAwB;AACxB,iEAAiE;AAEjE,SAAgB,WAAW;IACjB,IAAA,eAAe,GAAK,IAAA,mCAAiB,GAAE,gBAAxB,CAAwB;IAE/C,SAAe,OAAO;;;;;;wBACd,UAAU,GAAG,eAAe,CAAC,IAAI,IAAI,kBAAS,CAAC,GAAG,CAAa,cAAK,CAAC,UAAU,CAAC,CAAA;wBAE/E,qBAAM,UAAU,CAAC,OAAO,EAAE,EAAA;4BAAjC,sBAAO,SAA0B,EAAA;;;;KAClC;IAED,OAAO,IAAA,aAAM,EAAC,YAAY,EAAE,OAAO,EAAE;QACnC,iBAAiB,EAAE,KAAK;QACxB,iBAAiB,EAAE,KAAK;QACxB,qBAAqB,EAAE,KAAK;KAC7B,CAAC,CAAA;AACJ,CAAC;AAdD,kCAcC"}
|
|
@@ -42,26 +42,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
42
42
|
exports.useLoadAllNotifications = void 0;
|
|
43
43
|
var swr_1 = __importDefault(require("swr"));
|
|
44
44
|
var container_1 = require("../../../../../system/container/index.js");
|
|
45
|
+
var context_1 = require("../../../../../system/presentation/context/index.js");
|
|
45
46
|
function useLoadAllNotifications() {
|
|
46
|
-
var
|
|
47
|
+
var Configurations = (0, context_1.useInfraInjection)().Configurations;
|
|
47
48
|
function fetcher() {
|
|
48
49
|
return __awaiter(this, void 0, void 0, function () {
|
|
49
|
-
var response;
|
|
50
50
|
return __generator(this, function (_a) {
|
|
51
51
|
switch (_a.label) {
|
|
52
|
-
case 0: return [4 /*yield*/, container_1.container.get(container_1.Types.RemoteNotifications).loadAll({
|
|
53
|
-
case 1:
|
|
54
|
-
response = _a.sent();
|
|
55
|
-
return [2 /*return*/, response];
|
|
52
|
+
case 0: return [4 /*yield*/, container_1.container.get(container_1.Types.RemoteNotifications).loadAll({})];
|
|
53
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
56
54
|
}
|
|
57
55
|
});
|
|
58
56
|
});
|
|
59
57
|
}
|
|
60
|
-
|
|
61
|
-
return {
|
|
62
|
-
notifications: swrResponse.data,
|
|
63
|
-
isLoading: swrResponse.isLoading,
|
|
64
|
-
};
|
|
58
|
+
return (0, swr_1.default)(Configurations.notification && 'LoadAllNotifications', fetcher);
|
|
65
59
|
}
|
|
66
60
|
exports.useLoadAllNotifications = useLoadAllNotifications;
|
|
67
61
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/hooks/notifications/use-load-all/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAwB;AAExB,gDAAqD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/hooks/notifications/use-load-all/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAwB;AAExB,gDAAqD;AAErD,yDAAiE;AAEjE,SAAgB,uBAAuB;IAC7B,IAAA,cAAc,GAAK,IAAA,2BAAiB,GAAE,eAAxB,CAAyB;IAE/C,SAAe,OAAO;;;;4BACb,qBAAM,qBAAS,CAAC,GAAG,CAAsB,iBAAK,CAAC,mBAAmB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,EAAA;4BAAtF,sBAAO,SAA+E,EAAA;;;;KACvF;IAED,OAAO,IAAA,aAAM,EAAC,cAAc,CAAC,YAAY,IAAI,sBAAsB,EAAE,OAAO,CAAC,CAAA;AAC/E,CAAC;AARD,0DAQC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { LoadNoReadNotifications } from '../../../../../system/domain/index.js';
|
|
2
|
-
export declare function useLoadNoReadNotifications(): import("swr").SWRResponse<LoadNoReadNotifications.Model, any, any>;
|
|
2
|
+
export declare function useLoadNoReadNotifications(): import("swr/dist/_internal").SWRResponse<LoadNoReadNotifications.Model, any, any>;
|
|
@@ -42,7 +42,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
42
42
|
exports.useLoadNoReadNotifications = void 0;
|
|
43
43
|
var swr_1 = __importDefault(require("swr"));
|
|
44
44
|
var container_1 = require("../../../../../system/container/index.js");
|
|
45
|
+
var context_1 = require("../../../../../system/presentation/context/index.js");
|
|
45
46
|
function useLoadNoReadNotifications() {
|
|
47
|
+
var Configurations = (0, context_1.useInfraInjection)().Configurations;
|
|
46
48
|
function fetcher() {
|
|
47
49
|
return __awaiter(this, void 0, void 0, function () {
|
|
48
50
|
var response;
|
|
@@ -56,7 +58,7 @@ function useLoadNoReadNotifications() {
|
|
|
56
58
|
});
|
|
57
59
|
});
|
|
58
60
|
}
|
|
59
|
-
return (0, swr_1.default)('LoadNoReadNotifications', fetcher);
|
|
61
|
+
return (0, swr_1.default)(Configurations.notification && 'LoadNoReadNotifications', fetcher);
|
|
60
62
|
}
|
|
61
63
|
exports.useLoadNoReadNotifications = useLoadNoReadNotifications;
|
|
62
64
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/hooks/notifications/use-load-no-read/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAwB;AAExB,gDAAqD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/hooks/notifications/use-load-no-read/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAwB;AAExB,gDAAqD;AAErD,yDAAiE;AAEjE,SAAgB,0BAA0B;IAChC,IAAA,cAAc,GAAK,IAAA,2BAAiB,GAAE,eAAxB,CAAyB;IAE/C,SAAe,OAAO;;;;;4BACH,qBAAM,qBAAS,CAAC,GAAG,CAA0B,iBAAK,CAAC,mBAAmB,CAAC,CAAC,UAAU,EAAE,EAAA;;wBAA/F,QAAQ,GAAG,SAAoF;wBAErG,sBAAO,QAAQ,EAAA;;;;KAChB;IAED,OAAO,IAAA,aAAM,EAAC,cAAc,CAAC,YAAY,IAAI,yBAAyB,EAAE,OAAO,CAAC,CAAA;AAClF,CAAC;AAVD,gEAUC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react/experimental" />
|
|
3
2
|
export declare const Create: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
3
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
5
4
|
}, never>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react/experimental" />
|
|
3
2
|
export declare const Export: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
3
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
5
4
|
}, never>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react/experimental" />
|
|
3
2
|
export declare const Filters: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
3
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
5
4
|
}, never>>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react/experimental" />
|
|
3
2
|
export declare const PaginationStyle: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/styles.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react/experimental" />
|
|
3
2
|
export declare const SkeletonCustom: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
3
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
5
4
|
}, never>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react/experimental" />
|
|
3
2
|
export declare const Table: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
3
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
5
4
|
}, never>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react/experimental" />
|
|
3
2
|
export declare const THeadItem: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
3
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
5
4
|
}, never>>;
|