@hortiview/modulebase 1.1.2-alpha.a0b1047e.1 → 1.1.2-alpha.a87fc893.1
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-DRMqZO8r.js → ModuleCore-C4Z4zObE.js} +3030 -3110
- package/{dist/api-COabZnyn.js → api-CikhPcJj.js} +10 -10
- package/{dist/chunk-EVOBXE3Y-B43QN6RE.js → chunk-KS7C4IRE-CT7Z8Xx_.js} +3866 -3585
- package/components/ModuleBase.js +30 -0
- package/{dist/components → components}/ModuleCore.js +2 -3
- package/{dist/constants.js → constants.js} +8 -8
- package/{dist/hooks → hooks}/useCustom.js +9 -9
- package/{dist/hooks → hooks}/useCustomMutation.js +6 -6
- package/{dist/hooks → hooks}/useEntity.js +5 -5
- package/hooks/useOffline.js +57 -0
- package/{dist/hooks → hooks}/useOption.js +6 -6
- package/{dist/hooks → hooks}/useSignalRMessages.js +1 -1
- package/{dist/hooks → hooks}/useStores.js +1 -1
- package/{dist/isTypedArray-SkhznY1k.js → isTypedArray-T1_r8YHg.js} +33 -33
- package/{dist/lib → lib}/components/ModuleBase.d.ts +1 -1
- package/{dist/lib → lib}/components/ModuleCore.d.ts +1 -2
- package/{dist/lib → lib}/hooks/useCustom.d.ts +1 -1
- package/{dist/lib → lib}/hooks/useCustomMutation.d.ts +1 -1
- package/{dist/lib → lib}/hooks/useOffline.d.ts +5 -5
- package/lib/provider/SignalR/SignalRModuleContext.d.ts +4 -0
- package/lib/provider/SignalR/SignalRProvider.d.ts +9 -0
- package/lib/types/BaseProps.d.ts +98 -0
- package/lib/utils/IndexedDbService.d.ts +6 -0
- package/main.js +228 -0
- package/{dist/module-router.js → module-router.js} +813 -847
- package/{dist/omit-DYPaIq41.js → omit-CiJPWayj.js} +66 -66
- package/package.json +22 -56
- package/provider/SignalR/SignalRModuleContext.js +6205 -0
- package/provider/SignalR/SignalRProvider.js +35 -0
- package/{dist/stores → stores}/BasePropsStore.js +1 -0
- package/{dist/stores → stores}/EnvironmentStore.js +5 -5
- package/{dist/types → types}/Entities.js +5 -5
- package/{dist/useCustomMutation-9VUQ7NbQ.js → useCustomMutation-BX8lKAYe.js} +10 -10
- package/{dist/useQuery-DUDyh33-.js → useQuery-URJEw3ly.js} +128 -126
- package/utils/IndexedDbService.js +43 -0
- package/{dist/utils → utils}/api.js +1 -1
- package/{dist/utils → utils}/baseFetches.js +1 -1
- package/README.md +0 -9
- package/dist/components/ModuleBase.js +0 -21
- package/dist/hooks/useOffline.js +0 -57
- package/dist/lib/provider/SignalR/SignalRProvider.d.ts +0 -13
- package/dist/lib/types/BaseProps.d.ts +0 -48
- package/dist/lib/utils/IndexedDbService.d.ts +0 -33
- package/dist/main.js +0 -228
- package/dist/provider/SignalR/SignalRProvider.js +0 -5979
- package/dist/utils/IndexedDbService.js +0 -43
- package/{dist/IsRestoringProvider-SzKJZczp.js → IsRestoringProvider-SzKJZczp.js} +0 -0
- package/{dist/_commonjsHelpers-ByX85dGu.js → _commonjsHelpers-ByX85dGu.js} +0 -0
- package/{dist/assets → assets}/ModuleCore.css +0 -0
- package/{dist/enum → enum}/ActionStorage.js +0 -0
- package/{dist/hooks → hooks}/useBreadcrumbTranslation.js +0 -0
- package/{dist/lib → lib}/constants.d.ts +8 -8
- /package/{dist/lib → lib}/enum/ActionStorage.d.ts +0 -0
- /package/{dist/lib → lib}/hooks/useBreadcrumbTranslation.d.ts +0 -0
- /package/{dist/lib → lib}/hooks/useEntity.d.ts +0 -0
- /package/{dist/lib → lib}/hooks/useOption.d.ts +0 -0
- /package/{dist/lib → lib}/hooks/useSignalRMessages.d.ts +0 -0
- /package/{dist/lib → lib}/hooks/useStores.d.ts +0 -0
- /package/{dist/lib → lib}/main.d.ts +0 -0
- /package/{dist/lib → lib}/module-router.d.ts +0 -0
- /package/{dist/lib → lib}/provider/SignalR/signalR.d.ts +0 -0
- /package/{dist/lib → lib}/stores/BasePropsStore.d.ts +0 -0
- /package/{dist/lib → lib}/stores/EnvironmentStore.d.ts +0 -0
- /package/{dist/lib → lib}/types/ActionStorage.d.ts +0 -0
- /package/{dist/lib → lib}/types/AppInsights.d.ts +0 -0
- /package/{dist/lib → lib}/types/CommonOptions.d.ts +0 -0
- /package/{dist/lib → lib}/types/Entities.d.ts +0 -0
- /package/{dist/lib → lib}/types/Environment.d.ts +0 -0
- /package/{dist/lib → lib}/types/EnvironmentVariable.d.ts +0 -0
- /package/{dist/lib → lib}/types/ModuleApi.d.ts +0 -0
- /package/{dist/lib → lib}/types/Requests.d.ts +0 -0
- /package/{dist/lib → lib}/types/ServiceBus.d.ts +0 -0
- /package/{dist/lib → lib}/types/SystemMessage.d.ts +0 -0
- /package/{dist/lib → lib}/utils/api.d.ts +0 -0
- /package/{dist/lib → lib}/utils/baseFetches.d.ts +0 -0
- /package/{dist/lib → lib}/utils/fetches.d.ts +0 -0
- /package/{dist/lib → lib}/utils/helper.d.ts +0 -0
- /package/{dist/provider → provider}/SignalR/signalR.js +0 -0
- /package/{dist/react-c9FSfB30.js → react-c9FSfB30.js} +0 -0
- /package/{dist/types → types}/ActionStorage.js +0 -0
- /package/{dist/types → types}/AppInsights.js +0 -0
- /package/{dist/types → types}/BaseProps.js +0 -0
- /package/{dist/types → types}/CommonOptions.js +0 -0
- /package/{dist/types → types}/Environment.js +0 -0
- /package/{dist/types → types}/EnvironmentVariable.js +0 -0
- /package/{dist/types → types}/ModuleApi.js +0 -0
- /package/{dist/types → types}/Requests.js +0 -0
- /package/{dist/types → types}/ServiceBus.js +0 -0
- /package/{dist/types → types}/SystemMessage.js +0 -0
- /package/{dist/utils → utils}/fetches.js +0 -0
- /package/{dist/utils → utils}/helper.js +0 -0
- /package/{dist/vite-env.d.js → vite-env.d.js} +0 -0
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
function a(e) {
|
|
2
|
-
return new Promise((n, t) => {
|
|
3
|
-
e.oncomplete = e.onsuccess = () => n(e.result), e.onabort = e.onerror = () => t(e.error);
|
|
4
|
-
});
|
|
5
|
-
}
|
|
6
|
-
function s(e, n) {
|
|
7
|
-
let t;
|
|
8
|
-
const o = () => {
|
|
9
|
-
if (t)
|
|
10
|
-
return t;
|
|
11
|
-
const r = indexedDB.open(e);
|
|
12
|
-
return r.onupgradeneeded = () => r.result.createObjectStore(n), t = a(r), t.then((c) => {
|
|
13
|
-
c.onclose = () => t = void 0;
|
|
14
|
-
}, () => {
|
|
15
|
-
}), t;
|
|
16
|
-
};
|
|
17
|
-
return (r, c) => o().then((d) => c(d.transaction(n, r).objectStore(n)));
|
|
18
|
-
}
|
|
19
|
-
let u;
|
|
20
|
-
function i() {
|
|
21
|
-
return u || (u = s("keyval-store", "keyval")), u;
|
|
22
|
-
}
|
|
23
|
-
function l(e, n = i()) {
|
|
24
|
-
return n("readonly", (t) => a(t.get(e)));
|
|
25
|
-
}
|
|
26
|
-
function f(e, n, t = i()) {
|
|
27
|
-
return t("readwrite", (o) => (o.put(n, e), a(o.transaction)));
|
|
28
|
-
}
|
|
29
|
-
function p(e, n = i()) {
|
|
30
|
-
return n("readwrite", (t) => (t.delete(e), a(t.transaction)));
|
|
31
|
-
}
|
|
32
|
-
const y = {
|
|
33
|
-
getItem: async (e) => await l(e),
|
|
34
|
-
setItem: async (e, n) => {
|
|
35
|
-
await f(e, n);
|
|
36
|
-
},
|
|
37
|
-
removeItem: async (e) => {
|
|
38
|
-
await p(e);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
export {
|
|
42
|
-
y as indexedDbStorage
|
|
43
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -2,23 +2,23 @@ import { BaseProps } from './types/BaseProps';
|
|
|
2
2
|
export declare const REQUIRED_PROPS: (keyof BaseProps)[];
|
|
3
3
|
export declare const RETRY_HTTP_STATUS_CODES: {
|
|
4
4
|
/**
|
|
5
|
-
* The server
|
|
5
|
+
* The server is not ready to handle the request.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
BadGateway: number;
|
|
8
8
|
/**
|
|
9
|
-
* The
|
|
9
|
+
* The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
GatewayTimeout: number;
|
|
12
12
|
/**
|
|
13
|
-
* The server
|
|
13
|
+
* The server timed out waiting for the request.
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
RequestTimeout: number;
|
|
16
16
|
/**
|
|
17
17
|
* The server is not available.
|
|
18
18
|
*/
|
|
19
19
|
ServiceUnavailable: number;
|
|
20
20
|
/**
|
|
21
|
-
* The
|
|
21
|
+
* The user has sent too many requests in a given amount of time ("rate limiting").
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
TooManyRequests: number;
|
|
24
24
|
};
|
|
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
|
|
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
|
|
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
|
|
File without changes
|