@hortiview/modulebase 0.0.13075 → 0.0.13101-beta
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/ModuleCore-BWvRhZyP.js +14980 -0
- package/dist/{QueryClientProvider-Q_mWQTzQ.js → QueryClientProvider-BSM1ol7r.js} +81 -78
- package/dist/{_baseGet-B7FwMMGI.js → _baseGet-C6jMXSsQ.js} +447 -447
- package/dist/{api-D9Lmqe6S.js → api-s6E2GJtu.js} +48 -48
- package/dist/assets/ModuleCore.css +1 -0
- package/dist/components/ModuleBase.js +17 -498
- package/dist/components/ModuleCore.js +10 -0
- package/dist/hooks/useCustom.js +15 -18
- package/dist/hooks/useCustomMutation.js +14 -12
- package/dist/hooks/useEntity.js +48 -58
- package/dist/hooks/useOffline.js +45 -0
- package/dist/hooks/useOption.js +16 -16
- package/dist/hooks/useServiceBus.js +19 -11
- package/dist/hooks/useStores.js +1 -1
- package/dist/{query-CRIVoEP7.js → isRestoring-LSIsLTaI.js} +21 -17
- package/dist/lib/components/ModuleBase.d.ts +36 -0
- package/dist/lib/components/ModuleCore.d.ts +32 -0
- package/dist/{constants.d.ts → lib/constants.d.ts} +1 -1
- package/dist/{hooks → lib/hooks}/useCustom.d.ts +2 -1
- package/dist/{hooks → lib/hooks}/useCustomMutation.d.ts +2 -1
- package/dist/{hooks → lib/hooks}/useEntity.d.ts +6 -24
- package/dist/lib/hooks/useOffline.d.ts +15 -0
- package/dist/{hooks → lib/hooks}/useServiceBus.d.ts +6 -2
- package/dist/lib/hooks/useStores.d.ts +38 -0
- package/dist/lib/main.d.ts +27 -0
- package/dist/lib/types/ActionStorage.d.ts +13 -0
- package/dist/{types → lib/types}/BaseProps.d.ts +11 -2
- package/dist/{types → lib/types}/Deprecated.d.ts +6 -0
- package/dist/lib/types/Entities.d.ts +22 -0
- package/dist/{types → lib/types}/Environment.d.ts +1 -1
- package/dist/lib/types/EnvironmentVariable.d.ts +6 -0
- package/dist/{types → lib/types}/Requests.d.ts +4 -10
- package/dist/{utils → lib/utils}/api.d.ts +1 -1
- package/dist/{utils → lib/utils}/baseFetches.d.ts +2 -2
- package/dist/{utils → lib/utils}/fetches.d.ts +14 -6
- package/dist/lib/utils/helper.d.ts +29 -0
- package/dist/main.js +212 -133
- package/dist/{mutation-X73nm7Df.js → mutation-EhVtpjb0.js} +1 -1
- package/dist/{omit-B7MWDtHq.js → omit-C9Qe80rl.js} +1 -1
- package/dist/stores/EnvironmentStore.js +3 -2
- package/dist/types/ActionStorage.js +4 -0
- package/dist/types/Entities.js +25 -0
- package/dist/types/Environment.js +1 -4
- package/dist/types/EnvironmentVariable.js +1 -0
- package/dist/types/Requests.js +1 -4
- package/dist/{useMutation-3rykrmeD.js → useMutation-BYO7aks8.js} +16 -16
- package/dist/{useQuery-CwwWze9O.js → useQuery-Jx956wwH.js} +94 -94
- package/dist/utils/api.js +1 -1
- package/dist/utils/baseFetches.js +15 -15
- package/dist/utils/fetches.js +14 -13
- package/dist/utils/helper.js +55 -0
- package/package.json +7 -2
- package/dist/components/ModuleBase.d.ts +0 -11
- package/dist/hooks/useStores.d.ts +0 -30
- package/dist/main.d.ts +0 -13
- /package/dist/{hooks → lib/hooks}/useBreadcrumbTranslation.d.ts +0 -0
- /package/dist/{hooks → lib/hooks}/useOption.d.ts +0 -0
- /package/dist/{hooks → lib/hooks}/useSignalRMessages.d.ts +0 -0
- /package/dist/{module-router.d.ts → lib/module-router.d.ts} +0 -0
- /package/dist/{provider → lib/provider}/SignalR/SignalRProvider.d.ts +0 -0
- /package/dist/{provider → lib/provider}/SignalR/signalR.d.ts +0 -0
- /package/dist/{stores → lib/stores}/BasePropsStore.d.ts +0 -0
- /package/dist/{stores → lib/stores}/EnvironmentStore.d.ts +0 -0
- /package/dist/{types → lib/types}/AppInsights.d.ts +0 -0
- /package/dist/{types → lib/types}/CommonOptions.d.ts +0 -0
- /package/dist/{types → lib/types}/ModuleApi.d.ts +0 -0
- /package/dist/{types → lib/types}/ServiceBus.d.ts +0 -0
- /package/dist/{types → lib/types}/SystemMessage.d.ts +0 -0
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { QueryClient } from '@tanstack/react-query';
|
|
2
|
-
import { RouteObject } from 'react-router';
|
|
3
|
-
import { BaseProps } from '../types/BaseProps';
|
|
4
|
-
import { EnvConfig } from '../types/Environment';
|
|
5
|
-
export declare const ModuleBase: ({ props, routes, env, useSignalR, queryClient, }: {
|
|
6
|
-
props: BaseProps;
|
|
7
|
-
routes: RouteObject[];
|
|
8
|
-
env?: EnvConfig;
|
|
9
|
-
useSignalR?: boolean;
|
|
10
|
-
queryClient?: QueryClient;
|
|
11
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export declare const useBaseProps: () => Pick<import('../types/Deprecated').DeprecatedBaseProps & {
|
|
2
|
-
modulePermissionToken?: string;
|
|
3
|
-
moduleId?: string;
|
|
4
|
-
organizationId?: string;
|
|
5
|
-
basePath?: string;
|
|
6
|
-
currentNavigationPath?: string;
|
|
7
|
-
sourcePath?: string | null;
|
|
8
|
-
currentLanguage?: string;
|
|
9
|
-
currentLanguageId?: string;
|
|
10
|
-
alertRules?: string;
|
|
11
|
-
commonOptions?: import('../types/CommonOptions').AllDropdownsData<import('../types/CommonOptions').CommonOption>["items"];
|
|
12
|
-
serviceBusNotification?: (message: import('../types/ServiceBus').AlertServiceBusMessage, apiKey: string, queue: string, topic: string) => Promise<unknown>;
|
|
13
|
-
navigateInHortiview?: (path: string) => void;
|
|
14
|
-
addBreadcrumbTranslation?: (translation: {
|
|
15
|
-
key: string;
|
|
16
|
-
value: string;
|
|
17
|
-
}, hide?: boolean) => void;
|
|
18
|
-
showSnackbar?: (message: string, icon?: string) => void;
|
|
19
|
-
showMessage?: (message: import('../types/SystemMessage').SystemMessage) => void;
|
|
20
|
-
logEvent?: (event: import('../types/AppInsights').AppInsightsEvent, customProperties?: import('../types/AppInsights').AppInsightsProperties) => void;
|
|
21
|
-
logError?: (exception: import('../types/AppInsights').AppInsightsException) => void;
|
|
22
|
-
throwError?: (message: string, code: number) => void;
|
|
23
|
-
} & {
|
|
24
|
-
setBaseProps: (props: import('../main').BaseProps) => void;
|
|
25
|
-
}, keyof import('../types/Deprecated').DeprecatedBaseProps | "modulePermissionToken" | "moduleId" | "organizationId" | "basePath" | "currentNavigationPath" | "sourcePath" | "currentLanguage" | "currentLanguageId" | "alertRules" | "commonOptions" | "serviceBusNotification" | "navigateInHortiview" | "addBreadcrumbTranslation" | "showSnackbar" | "showMessage" | "logEvent" | "logError" | "throwError">;
|
|
26
|
-
export declare const useConfig: () => Pick<{
|
|
27
|
-
environment: import('../types/Environment').HortiViewEnvironments;
|
|
28
|
-
setEnvironment: (environment: import('../types/Environment').HortiViewEnvironments) => void;
|
|
29
|
-
addEnvironment: (customEnv: import('../types/Environment').CustomEnv) => void;
|
|
30
|
-
}, "environment">;
|
package/dist/main.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export { ModuleBase } from './components/ModuleBase';
|
|
2
|
-
export type { BaseProps } from './types/BaseProps';
|
|
3
|
-
export { useBreadcrumbTranslation } from './hooks/useBreadcrumbTranslation';
|
|
4
|
-
export { useSignalRMessages } from './hooks/useSignalRMessages';
|
|
5
|
-
export * from './module-router';
|
|
6
|
-
export { useNavigate } from './module-router';
|
|
7
|
-
export { useBaseProps, useConfig } from './hooks/useStores';
|
|
8
|
-
export { useCustom } from './hooks/useCustom';
|
|
9
|
-
export { useEntity } from './hooks/useEntity';
|
|
10
|
-
export { useOption } from './hooks/useOption';
|
|
11
|
-
export { useCustomMutation } from './hooks/useCustomMutation';
|
|
12
|
-
export { useServiceBus } from './hooks/useServiceBus';
|
|
13
|
-
export { mutateOnCustomApi } from './utils/fetches';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|