chayns-api 1.1.0-9 → 1.1.3
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/.babelrc +30 -30
- package/.eslintrc +17 -17
- package/.github/workflows/deploy_docs.yml +28 -28
- package/.github/workflows/publish.yml +21 -21
- package/LICENSE +21 -21
- package/README.md +54 -54
- package/dist/cjs/calls/dialogs/date.js +34 -34
- package/dist/cjs/calls/index.js +116 -108
- package/dist/cjs/calls/sendMessage.js +8 -8
- package/dist/cjs/calls/visibilityChangeListener.js +4 -4
- package/dist/cjs/components/AppDialogWrapper.js +2 -2
- package/dist/cjs/components/ChaynsProvider.js +3 -6
- package/dist/cjs/components/ErrorBoundary.js +1 -1
- package/dist/cjs/components/withCompatMode.js +2 -2
- package/dist/cjs/constants/languages.js +19 -0
- package/dist/cjs/handler/DialogHandler.js +1 -2
- package/dist/cjs/hooks/geoLocationListener.js +4 -4
- package/dist/cjs/hooks/scrollListener.js +8 -8
- package/dist/cjs/hooks/useAccessToken.js +3 -3
- package/dist/cjs/hooks/useCurrentPage.js +2 -2
- package/dist/cjs/hooks/useCustomData.js +2 -2
- package/dist/cjs/hooks/useDevice.js +2 -2
- package/dist/cjs/hooks/useDialogState.js +4 -4
- package/dist/cjs/hooks/useEnvironment.js +2 -2
- package/dist/cjs/hooks/useFunctions.js +2 -2
- package/dist/cjs/hooks/useIsAdminMode.js +2 -2
- package/dist/cjs/hooks/useLanguage.js +2 -2
- package/dist/cjs/hooks/usePages.js +4 -4
- package/dist/cjs/hooks/useParameters.js +2 -2
- package/dist/cjs/hooks/useSite.js +2 -2
- package/dist/cjs/hooks/useUser.js +2 -2
- package/dist/cjs/hooks/useValues.js +2 -2
- package/dist/cjs/hooks/windowMetricsListener.js +4 -4
- package/dist/cjs/host/ChaynsHost.js +1 -1
- package/dist/cjs/host/iframe/HostIframe.js +2 -2
- package/dist/cjs/host/module/ModuleHost.js +20 -23
- package/dist/cjs/host/module/utils/loadComponent.js +54 -57
- package/dist/cjs/host/module/utils/useDynamicScript.js +5 -7
- package/dist/cjs/index.js +5 -21
- package/dist/cjs/types/IChaynsReact.js +5 -4
- package/dist/cjs/util/deviceHelper.js +9 -2
- package/dist/cjs/util/heightHelper.js +1 -1
- package/dist/cjs/util/is.js +30 -0
- package/dist/cjs/util/transferNestedFunctions.js +5 -2
- package/dist/cjs/wrapper/AppWrapper.js +86 -43
- package/dist/cjs/wrapper/FrameWrapper.js +6 -2
- package/dist/cjs/wrapper/ModuleFederationWrapper.js +1 -1
- package/dist/cjs/wrapper/StaticChaynsApi.js +7 -0
- package/dist/esm/calls/dialogs/date.js +34 -34
- package/dist/esm/calls/index.js +114 -109
- package/dist/esm/calls/sendMessage.js +8 -8
- package/dist/esm/calls/visibilityChangeListener.js +4 -4
- package/dist/esm/components/AppDialogWrapper.js +1 -1
- package/dist/esm/components/ChaynsProvider.js +2 -5
- package/dist/esm/components/withCompatMode.js +1 -1
- package/dist/esm/constants/languages.js +13 -0
- package/dist/esm/handler/DialogHandler.js +2 -3
- package/dist/esm/hooks/geoLocationListener.js +4 -4
- package/dist/esm/hooks/scrollListener.js +8 -8
- package/dist/esm/hooks/useAccessToken.js +3 -3
- package/dist/esm/hooks/useCurrentPage.js +2 -2
- package/dist/esm/hooks/useCustomData.js +2 -2
- package/dist/esm/hooks/useDevice.js +2 -2
- package/dist/esm/hooks/useDialogState.js +4 -4
- package/dist/esm/hooks/useEnvironment.js +2 -2
- package/dist/esm/hooks/useFunctions.js +2 -2
- package/dist/esm/hooks/useIsAdminMode.js +2 -2
- package/dist/esm/hooks/useLanguage.js +2 -2
- package/dist/esm/hooks/usePages.js +4 -4
- package/dist/esm/hooks/useParameters.js +2 -2
- package/dist/esm/hooks/useSite.js +2 -2
- package/dist/esm/hooks/useUser.js +2 -2
- package/dist/esm/hooks/useValues.js +2 -2
- package/dist/esm/hooks/windowMetricsListener.js +4 -4
- package/dist/esm/host/iframe/HostIframe.js +1 -1
- package/dist/esm/host/module/ModuleHost.js +19 -22
- package/dist/esm/host/module/utils/loadComponent.js +53 -56
- package/dist/esm/index.js +1 -3
- package/dist/esm/types/IChaynsReact.js +5 -4
- package/dist/esm/util/deviceHelper.js +9 -2
- package/dist/esm/util/is.js +23 -0
- package/dist/esm/util/transferNestedFunctions.js +5 -2
- package/dist/esm/wrapper/AppWrapper.js +90 -45
- package/dist/esm/wrapper/FrameWrapper.js +6 -2
- package/dist/esm/wrapper/StaticChaynsApi.js +8 -1
- package/dist/types/calls/dialogs/alert.d.ts +1 -1
- package/dist/types/calls/dialogs/chaynsDialog.d.ts +24 -24
- package/dist/types/calls/dialogs/close.d.ts +1 -1
- package/dist/types/calls/dialogs/communication.d.ts +3 -3
- package/dist/types/calls/dialogs/confirm.d.ts +13 -13
- package/dist/types/calls/dialogs/date.d.ts +96 -96
- package/dist/types/calls/dialogs/dropUpAlert.d.ts +5 -5
- package/dist/types/calls/dialogs/fileSelect.d.ts +16 -16
- package/dist/types/calls/dialogs/iFrame.d.ts +10 -10
- package/dist/types/calls/dialogs/index.d.ts +14 -14
- package/dist/types/calls/dialogs/input.d.ts +15 -15
- package/dist/types/calls/dialogs/mediaSelect.d.ts +8 -8
- package/dist/types/calls/dialogs/open.d.ts +1 -1
- package/dist/types/calls/dialogs/select.d.ts +6 -6
- package/dist/types/calls/dialogs/signature.d.ts +7 -7
- package/dist/types/calls/dialogs/toast.d.ts +1 -1
- package/dist/types/calls/dialogs/utils/callback.d.ts +1 -1
- package/dist/types/calls/dialogs/utils/is.d.ts +4 -4
- package/dist/types/calls/getUserInfo.d.ts +9 -9
- package/dist/types/calls/index.d.ts +255 -251
- package/dist/types/calls/sendMessage.d.ts +13 -13
- package/dist/types/calls/visibilityChangeListener.d.ts +9 -9
- package/dist/types/components/AppDialogWrapper.d.ts +5 -5
- package/dist/types/components/ChaynsContext.d.ts +3 -3
- package/dist/types/components/ChaynsProvider.d.ts +11 -11
- package/dist/types/components/ErrorBoundary.d.ts +13 -13
- package/dist/types/components/WaitUntil.d.ts +7 -7
- package/dist/types/components/moduleWrapper.d.ts +4 -4
- package/dist/types/components/withCompatMode.d.ts +13 -13
- package/dist/types/constants/languages.d.ts +12 -0
- package/dist/types/handler/DialogHandler.d.ts +24 -18
- package/dist/types/helper/apiListenerHelper.d.ts +6 -6
- package/dist/types/hooks/geoLocationListener.d.ts +18 -18
- package/dist/types/hooks/index.d.ts +17 -17
- package/dist/types/hooks/scrollListener.d.ts +28 -28
- package/dist/types/hooks/useAccessToken.d.ts +6 -6
- package/dist/types/hooks/useCurrentPage.d.ts +4 -4
- package/dist/types/hooks/useCustomData.d.ts +4 -4
- package/dist/types/hooks/useDevice.d.ts +5 -5
- package/dist/types/hooks/useDialogState.d.ts +9 -9
- package/dist/types/hooks/useEnvironment.d.ts +5 -5
- package/dist/types/hooks/useFunctions.d.ts +5 -5
- package/dist/types/hooks/useIsAdminMode.d.ts +4 -4
- package/dist/types/hooks/useLanguage.d.ts +5 -5
- package/dist/types/hooks/usePages.d.ts +18 -18
- package/dist/types/hooks/useParameters.d.ts +5 -5
- package/dist/types/hooks/useSite.d.ts +5 -5
- package/dist/types/hooks/useUser.d.ts +5 -5
- package/dist/types/hooks/useValues.d.ts +5 -5
- package/dist/types/hooks/windowMetricsListener.d.ts +11 -11
- package/dist/types/host/ChaynsHost.d.ts +30 -30
- package/dist/types/host/iframe/HostIframe.d.ts +26 -26
- package/dist/types/host/iframe/utils/useUpdateData.d.ts +3 -3
- package/dist/types/host/module/ModuleHost.d.ts +27 -27
- package/dist/types/host/module/utils/loadComponent.d.ts +1 -1
- package/dist/types/host/module/utils/useDynamicScript.d.ts +9 -9
- package/dist/types/index.d.ts +20 -22
- package/dist/types/types/IChaynsReact.d.ts +859 -816
- package/dist/types/types/dialog.d.ts +41 -41
- package/dist/types/util/appCall.d.ts +2 -2
- package/dist/types/util/deviceHelper.d.ts +7 -7
- package/dist/types/util/heightHelper.d.ts +1 -1
- package/dist/types/util/is.d.ts +5 -0
- package/dist/types/util/postIframeForm.d.ts +1 -1
- package/dist/types/util/transferNestedFunctions.d.ts +1 -1
- package/dist/types/util/url.d.ts +1 -1
- package/dist/types/wrapper/AppWrapper.d.ts +19 -22
- package/dist/types/wrapper/FrameWrapper.d.ts +15 -15
- package/dist/types/wrapper/ModuleFederationWrapper.d.ts +10 -10
- package/dist/types/wrapper/SsrWrapper.d.ts +11 -11
- package/dist/types/wrapper/StaticChaynsApi.d.ts +16 -9
- package/package.json +78 -86
- package/toolkit.config.js +20 -20
- package/tsconfig.json +56 -56
- package/dist/cjs/components/withHydrationBoundary.js +0 -58
- package/dist/cjs/constants/hydrationContext.js +0 -16
- package/dist/cjs/constants/index.js +0 -16
- package/dist/esm/components/withHydrationBoundary.js +0 -51
- package/dist/esm/constants/hydrationContext.js +0 -10
- package/dist/esm/constants/index.js +0 -1
- package/dist/types/components/withHydrationBoundary.d.ts +0 -17
- package/dist/types/constants/hydrationContext.d.ts +0 -9
- package/dist/types/constants/index.d.ts +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { buttonText, buttonType } from './chaynsDialog';
|
|
2
|
-
export * from './alert';
|
|
3
|
-
export * from './confirm';
|
|
4
|
-
export * from './select';
|
|
5
|
-
export * from './date';
|
|
6
|
-
export * from './input';
|
|
7
|
-
export * from './close';
|
|
8
|
-
export * from './dropUpAlert';
|
|
9
|
-
export * from './iFrame';
|
|
10
|
-
export * from './mediaSelect';
|
|
11
|
-
export * from './fileSelect';
|
|
12
|
-
export * from './communication';
|
|
13
|
-
export * from './toast';
|
|
14
|
-
export * from './signature';
|
|
1
|
+
export { buttonText, buttonType } from './chaynsDialog';
|
|
2
|
+
export * from './alert';
|
|
3
|
+
export * from './confirm';
|
|
4
|
+
export * from './select';
|
|
5
|
+
export * from './date';
|
|
6
|
+
export * from './input';
|
|
7
|
+
export * from './close';
|
|
8
|
+
export * from './dropUpAlert';
|
|
9
|
+
export * from './iFrame';
|
|
10
|
+
export * from './mediaSelect';
|
|
11
|
+
export * from './fileSelect';
|
|
12
|
+
export * from './communication';
|
|
13
|
+
export * from './toast';
|
|
14
|
+
export * from './signature';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { DialogButtonOld } from "../../types/dialog";
|
|
2
|
-
type InputDialog = {
|
|
3
|
-
buttons?: DialogButtonOld[];
|
|
4
|
-
callType?: number;
|
|
5
|
-
formatter?: string;
|
|
6
|
-
};
|
|
7
|
-
export declare function input(dialog?: InputDialog): Promise<unknown>;
|
|
8
|
-
export declare const inputType: {
|
|
9
|
-
DEFAULT: number;
|
|
10
|
-
PASSWORD: number;
|
|
11
|
-
TEXTAREA: number;
|
|
12
|
-
INPUT: number;
|
|
13
|
-
NUMBER: number;
|
|
14
|
-
};
|
|
15
|
-
export {};
|
|
1
|
+
import { DialogButtonOld } from "../../types/dialog";
|
|
2
|
+
type InputDialog = {
|
|
3
|
+
buttons?: DialogButtonOld[];
|
|
4
|
+
callType?: number;
|
|
5
|
+
formatter?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function input(dialog?: InputDialog): Promise<unknown>;
|
|
8
|
+
export declare const inputType: {
|
|
9
|
+
DEFAULT: number;
|
|
10
|
+
PASSWORD: number;
|
|
11
|
+
TEXTAREA: number;
|
|
12
|
+
INPUT: number;
|
|
13
|
+
NUMBER: number;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DialogButtonOld } from "../../types/dialog";
|
|
2
|
-
type MediaSelectInput = {
|
|
3
|
-
buttons?: DialogButtonOld[];
|
|
4
|
-
callType?: number;
|
|
5
|
-
chaynsToken?: string;
|
|
6
|
-
};
|
|
7
|
-
export declare function mediaSelect(dialog?: MediaSelectInput): Promise<unknown>;
|
|
8
|
-
export {};
|
|
1
|
+
import { DialogButtonOld } from "../../types/dialog";
|
|
2
|
+
type MediaSelectInput = {
|
|
3
|
+
buttons?: DialogButtonOld[];
|
|
4
|
+
callType?: number;
|
|
5
|
+
chaynsToken?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function mediaSelect(dialog?: MediaSelectInput): Promise<unknown>;
|
|
8
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function open(json: any): Promise<unknown>;
|
|
1
|
+
export declare function open(json: any): Promise<unknown>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SelectInput } from '../../types/IChaynsReact';
|
|
2
|
-
export declare function select(config: SelectInput): Promise<unknown>;
|
|
3
|
-
export declare const selectType: {
|
|
4
|
-
DEFAULT: number;
|
|
5
|
-
ICON: number;
|
|
6
|
-
};
|
|
1
|
+
import { SelectInput } from '../../types/IChaynsReact';
|
|
2
|
+
export declare function select(config: SelectInput): Promise<unknown>;
|
|
3
|
+
export declare const selectType: {
|
|
4
|
+
DEFAULT: number;
|
|
5
|
+
ICON: number;
|
|
6
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DialogButtonOld } from "../../types/dialog";
|
|
2
|
-
type SignatureInput = {
|
|
3
|
-
buttons?: DialogButtonOld[];
|
|
4
|
-
callType?: number;
|
|
5
|
-
};
|
|
6
|
-
export declare function signature(dialog?: SignatureInput): Promise<unknown>;
|
|
7
|
-
export {};
|
|
1
|
+
import { DialogButtonOld } from "../../types/dialog";
|
|
2
|
+
type SignatureInput = {
|
|
3
|
+
buttons?: DialogButtonOld[];
|
|
4
|
+
callType?: number;
|
|
5
|
+
};
|
|
6
|
+
export declare function signature(dialog?: SignatureInput): Promise<unknown>;
|
|
7
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function toast(config?: {}): Promise<any>;
|
|
1
|
+
export declare function toast(config?: {}): Promise<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getCallbackName(fnName: any, framePrefix?: string): string;
|
|
1
|
+
export declare function getCallbackName(fnName: any, framePrefix?: string): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function isObject(value: any): boolean;
|
|
2
|
-
export declare function isNumber(value: any): boolean;
|
|
3
|
-
export declare function isDate(value: any): boolean;
|
|
4
|
-
export declare function isPresent(value: any): boolean;
|
|
1
|
+
export declare function isObject(value: any): boolean;
|
|
2
|
+
export declare function isNumber(value: any): boolean;
|
|
3
|
+
export declare function isDate(value: any): boolean;
|
|
4
|
+
export declare function isPresent(value: any): boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { IChaynsReact, UserInfoQuery } from '../types/IChaynsReact';
|
|
2
|
-
declare const getUserInfo: (api: IChaynsReact, value: UserInfoQuery) => Promise<{
|
|
3
|
-
firstName: string;
|
|
4
|
-
lastName: string;
|
|
5
|
-
userId: number;
|
|
6
|
-
personId: string;
|
|
7
|
-
name: string;
|
|
8
|
-
} | null>;
|
|
9
|
-
export default getUserInfo;
|
|
1
|
+
import type { IChaynsReact, UserInfoQuery } from '../types/IChaynsReact';
|
|
2
|
+
declare const getUserInfo: (api: IChaynsReact, value: UserInfoQuery) => Promise<{
|
|
3
|
+
firstName: string;
|
|
4
|
+
lastName: string;
|
|
5
|
+
userId: number;
|
|
6
|
+
personId: string;
|
|
7
|
+
name: string;
|
|
8
|
+
} | null>;
|
|
9
|
+
export default getUserInfo;
|