chayns-api 1.2.0-9 → 2.0.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/.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 +108 -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 +1 -1
- package/dist/cjs/components/ErrorBoundary.js +1 -1
- package/dist/cjs/components/withCompatMode.js +3 -3
- 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 +1 -1
- package/dist/cjs/host/module/utils/loadComponent.js +2 -5
- package/dist/cjs/index.js +13 -1
- package/dist/cjs/types/IChaynsReact.js +11 -5
- package/dist/cjs/util/bindChaynsApi.js +12 -0
- package/dist/cjs/util/heightHelper.js +1 -1
- package/dist/cjs/util/initModuleFederationSharing.js +32 -32
- package/dist/cjs/wrapper/AppWrapper.js +1 -1
- package/dist/cjs/wrapper/FrameWrapper.js +1 -1
- package/dist/cjs/wrapper/ModuleFederationWrapper.js +1 -1
- package/dist/cjs/wrapper/StaticChaynsApi.js +6 -3
- package/dist/esm/calls/dialogs/date.js +34 -34
- package/dist/esm/calls/index.js +108 -108
- 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/withCompatMode.js +2 -2
- package/dist/esm/handler/DialogHandler.js +1 -1
- 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/utils/loadComponent.js +1 -4
- package/dist/esm/index.js +2 -1
- package/dist/esm/types/IChaynsReact.js +10 -4
- package/dist/esm/util/bindChaynsApi.js +5 -0
- package/dist/esm/util/initModuleFederationSharing.js +32 -31
- package/dist/esm/wrapper/AppWrapper.js +1 -1
- package/dist/esm/wrapper/FrameWrapper.js +1 -1
- package/dist/esm/wrapper/StaticChaynsApi.js +6 -3
- 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 -255
- 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 +14 -14
- package/dist/types/components/withHydrationBoundary.d.ts +17 -17
- package/dist/types/constants/hydrationContext.d.ts +9 -9
- package/dist/types/constants/index.d.ts +1 -1
- package/dist/types/constants/languages.d.ts +12 -12
- package/dist/types/handler/DialogHandler.d.ts +24 -24
- 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 +7 -7
- 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 +29 -29
- 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 +28 -28
- package/dist/types/host/module/utils/loadComponent.d.ts +3 -3
- package/dist/types/index.d.ts +20 -19
- package/dist/types/types/IChaynsReact.d.ts +896 -890
- package/dist/types/types/dialog.d.ts +41 -41
- package/dist/types/util/appCall.d.ts +2 -2
- package/dist/types/util/bindChaynsApi.d.ts +1 -0
- package/dist/types/util/deviceHelper.d.ts +9 -9
- package/dist/types/util/heightHelper.d.ts +1 -1
- package/dist/types/util/initModuleFederationSharing.d.ts +3 -1
- package/dist/types/util/is.d.ts +5 -5
- 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 -19
- 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 -16
- package/package.json +88 -88
- package/toolkit.config.js +20 -20
- package/tsconfig.json +56 -56
- package/dist/cjs/host/module/utils/useDynamicScript.js +0 -59
- package/dist/esm/host/module/utils/useDynamicScript.js +0 -50
- package/dist/types/host/module/utils/useDynamicScript.d.ts +0 -9
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
export interface DialogTextBlock {
|
|
2
|
-
headline: string;
|
|
3
|
-
text: string;
|
|
4
|
-
position: number;
|
|
5
|
-
}
|
|
6
|
-
export interface WeekDayIntervalObject {
|
|
7
|
-
start: number;
|
|
8
|
-
end: number;
|
|
9
|
-
}
|
|
10
|
-
export interface IntervalItem {
|
|
11
|
-
start: Date | number;
|
|
12
|
-
end: Date | number;
|
|
13
|
-
}
|
|
14
|
-
export interface SelectDialogItem {
|
|
15
|
-
name: string;
|
|
16
|
-
value: string | number | Record<string, any> | boolean;
|
|
17
|
-
backgroundColor?: string;
|
|
18
|
-
className?: string;
|
|
19
|
-
url?: string;
|
|
20
|
-
isSelected?: boolean;
|
|
21
|
-
icon?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface DialogButtonOld {
|
|
24
|
-
text: buttonText | string;
|
|
25
|
-
buttonType: buttonType | number;
|
|
26
|
-
collapseTime?: number;
|
|
27
|
-
textColor?: string;
|
|
28
|
-
backgroundColor?: string;
|
|
29
|
-
}
|
|
30
|
-
declare enum buttonType {
|
|
31
|
-
CANCEL = -1,
|
|
32
|
-
NEGATIVE = 0,
|
|
33
|
-
POSITIVE = 1
|
|
34
|
-
}
|
|
35
|
-
declare enum buttonText {
|
|
36
|
-
CANCEL = "Abbrechen",
|
|
37
|
-
NO = "Nein",
|
|
38
|
-
OK = "OK",
|
|
39
|
-
YES = "Ja"
|
|
40
|
-
}
|
|
41
|
-
export {};
|
|
1
|
+
export interface DialogTextBlock {
|
|
2
|
+
headline: string;
|
|
3
|
+
text: string;
|
|
4
|
+
position: number;
|
|
5
|
+
}
|
|
6
|
+
export interface WeekDayIntervalObject {
|
|
7
|
+
start: number;
|
|
8
|
+
end: number;
|
|
9
|
+
}
|
|
10
|
+
export interface IntervalItem {
|
|
11
|
+
start: Date | number;
|
|
12
|
+
end: Date | number;
|
|
13
|
+
}
|
|
14
|
+
export interface SelectDialogItem {
|
|
15
|
+
name: string;
|
|
16
|
+
value: string | number | Record<string, any> | boolean;
|
|
17
|
+
backgroundColor?: string;
|
|
18
|
+
className?: string;
|
|
19
|
+
url?: string;
|
|
20
|
+
isSelected?: boolean;
|
|
21
|
+
icon?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface DialogButtonOld {
|
|
24
|
+
text: buttonText | string;
|
|
25
|
+
buttonType: buttonType | number;
|
|
26
|
+
collapseTime?: number;
|
|
27
|
+
textColor?: string;
|
|
28
|
+
backgroundColor?: string;
|
|
29
|
+
}
|
|
30
|
+
declare enum buttonType {
|
|
31
|
+
CANCEL = -1,
|
|
32
|
+
NEGATIVE = 0,
|
|
33
|
+
POSITIVE = 1
|
|
34
|
+
}
|
|
35
|
+
declare enum buttonText {
|
|
36
|
+
CANCEL = "Abbrechen",
|
|
37
|
+
NO = "Nein",
|
|
38
|
+
OK = "OK",
|
|
39
|
+
YES = "Ja"
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const invokeAppCall: (call: any) => void;
|
|
2
|
-
export default invokeAppCall;
|
|
1
|
+
declare const invokeAppCall: (call: any) => void;
|
|
2
|
+
export default invokeAppCall;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const bindChaynsApi: (fun: any) => (values: any, functions: any) => any;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ChaynsApiDevice, ScreenSize } from '../types/IChaynsReact';
|
|
2
|
-
declare const getDeviceInfo: (userAgent: string, acceptHeader: string, { imei }?: {
|
|
3
|
-
imei?: string | undefined;
|
|
4
|
-
}) => ChaynsApiDevice;
|
|
5
|
-
export declare const getClientDeviceInfo: () => {
|
|
6
|
-
isTouch: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare const getScreenSize: (width: any) => ScreenSize;
|
|
9
|
-
export default getDeviceInfo;
|
|
1
|
+
import { ChaynsApiDevice, ScreenSize } from '../types/IChaynsReact';
|
|
2
|
+
declare const getDeviceInfo: (userAgent: string, acceptHeader: string, { imei }?: {
|
|
3
|
+
imei?: string | undefined;
|
|
4
|
+
}) => ChaynsApiDevice;
|
|
5
|
+
export declare const getClientDeviceInfo: () => {
|
|
6
|
+
isTouch: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const getScreenSize: (width: any) => ScreenSize;
|
|
9
|
+
export default getDeviceInfo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const setTappHeight: (setHeight: (height: number) => Promise<void>) => void;
|
|
1
|
+
export declare const setTappHeight: (setHeight: (height: number) => Promise<void>) => void;
|
package/dist/types/util/is.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const isApp: () => boolean;
|
|
2
|
-
export declare const isAppCallSupported: ({ minAndroidVersion, minIOSVersion }: {
|
|
3
|
-
minAndroidVersion?: number | undefined;
|
|
4
|
-
minIOSVersion?: number | undefined;
|
|
5
|
-
}) => boolean;
|
|
1
|
+
export declare const isApp: () => boolean;
|
|
2
|
+
export declare const isAppCallSupported: ({ minAndroidVersion, minIOSVersion }: {
|
|
3
|
+
minAndroidVersion?: number | undefined;
|
|
4
|
+
minIOSVersion?: number | undefined;
|
|
5
|
+
}) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function postIframeForm(url: string, value: string, fieldName: string, frameId: string): Promise<boolean>;
|
|
1
|
+
export default function postIframeForm(url: string, value: string, fieldName: string, frameId: string): Promise<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/dist/types/util/url.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const replaceStagingUrl: (prevent: any, url: any, environment: any) => any;
|
|
1
|
+
export declare const replaceStagingUrl: (prevent: any, url: any, environment: any) => any;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ChaynsReactFunctions, ChaynsReactValues, CleanupCallback, DataChangeCallback, IChaynsReact } from '../types/IChaynsReact';
|
|
2
|
-
export declare class AppWrapper implements IChaynsReact {
|
|
3
|
-
values: ChaynsReactValues;
|
|
4
|
-
accessToken: string;
|
|
5
|
-
mapOldApiToNew(retVal: any): ChaynsReactValues;
|
|
6
|
-
constructor();
|
|
7
|
-
notImplemented(call: string): void;
|
|
8
|
-
counter: number;
|
|
9
|
-
appCall(action: any, value?: unknown, { callback, awaitResult }?: {
|
|
10
|
-
callback: any;
|
|
11
|
-
awaitResult?: boolean | undefined;
|
|
12
|
-
}): Promise<unknown> | undefined;
|
|
13
|
-
functions: ChaynsReactFunctions;
|
|
14
|
-
private dialogs;
|
|
15
|
-
init(): Promise<undefined>;
|
|
16
|
-
getSSRData(): null;
|
|
17
|
-
addDataListener(cb: DataChangeCallback): CleanupCallback;
|
|
18
|
-
getInitialData(): ChaynsReactValues;
|
|
19
|
-
}
|
|
1
|
+
import { ChaynsReactFunctions, ChaynsReactValues, CleanupCallback, DataChangeCallback, IChaynsReact } from '../types/IChaynsReact';
|
|
2
|
+
export declare class AppWrapper implements IChaynsReact {
|
|
3
|
+
values: ChaynsReactValues;
|
|
4
|
+
accessToken: string;
|
|
5
|
+
mapOldApiToNew(retVal: any): ChaynsReactValues;
|
|
6
|
+
constructor();
|
|
7
|
+
notImplemented(call: string): void;
|
|
8
|
+
counter: number;
|
|
9
|
+
appCall(action: any, value?: unknown, { callback, awaitResult }?: {
|
|
10
|
+
callback: any;
|
|
11
|
+
awaitResult?: boolean | undefined;
|
|
12
|
+
}): Promise<unknown> | undefined;
|
|
13
|
+
functions: ChaynsReactFunctions;
|
|
14
|
+
private dialogs;
|
|
15
|
+
init(): Promise<undefined>;
|
|
16
|
+
getSSRData(): null;
|
|
17
|
+
addDataListener(cb: DataChangeCallback): CleanupCallback;
|
|
18
|
+
getInitialData(): ChaynsReactValues;
|
|
19
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { ChaynsReactFunctions, ChaynsReactValues, DataChangeCallback, IChaynsReact } from '../types/IChaynsReact';
|
|
2
|
-
export declare class FrameWrapper implements IChaynsReact {
|
|
3
|
-
private resolve;
|
|
4
|
-
private exposedFunctions;
|
|
5
|
-
private resizeListener;
|
|
6
|
-
ready: Promise<unknown>;
|
|
7
|
-
values: ChaynsReactValues;
|
|
8
|
-
functions: ChaynsReactFunctions;
|
|
9
|
-
initialized: boolean;
|
|
10
|
-
constructor();
|
|
11
|
-
init(): Promise<void>;
|
|
12
|
-
addDataListener(cb: DataChangeCallback): () => void;
|
|
13
|
-
getSSRData(): null;
|
|
14
|
-
getInitialData(): ChaynsReactValues;
|
|
15
|
-
}
|
|
1
|
+
import { ChaynsReactFunctions, ChaynsReactValues, DataChangeCallback, IChaynsReact } from '../types/IChaynsReact';
|
|
2
|
+
export declare class FrameWrapper implements IChaynsReact {
|
|
3
|
+
private resolve;
|
|
4
|
+
private exposedFunctions;
|
|
5
|
+
private resizeListener;
|
|
6
|
+
ready: Promise<unknown>;
|
|
7
|
+
values: ChaynsReactValues;
|
|
8
|
+
functions: ChaynsReactFunctions;
|
|
9
|
+
initialized: boolean;
|
|
10
|
+
constructor();
|
|
11
|
+
init(): Promise<void>;
|
|
12
|
+
addDataListener(cb: DataChangeCallback): () => void;
|
|
13
|
+
getSSRData(): null;
|
|
14
|
+
getInitialData(): ChaynsReactValues;
|
|
15
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ChaynsReactFunctions, ChaynsReactValues, DataChangeCallback, IChaynsReact } from '../types/IChaynsReact';
|
|
2
|
-
export declare class ModuleFederationWrapper implements IChaynsReact {
|
|
3
|
-
values: ChaynsReactValues;
|
|
4
|
-
functions: ChaynsReactFunctions;
|
|
5
|
-
constructor(values: ChaynsReactValues, functions: ChaynsReactFunctions);
|
|
6
|
-
init(): Promise<undefined>;
|
|
7
|
-
addDataListener(cb: DataChangeCallback): () => void;
|
|
8
|
-
getSSRData(): null;
|
|
9
|
-
getInitialData(): ChaynsReactValues;
|
|
10
|
-
}
|
|
1
|
+
import { ChaynsReactFunctions, ChaynsReactValues, DataChangeCallback, IChaynsReact } from '../types/IChaynsReact';
|
|
2
|
+
export declare class ModuleFederationWrapper implements IChaynsReact {
|
|
3
|
+
values: ChaynsReactValues;
|
|
4
|
+
functions: ChaynsReactFunctions;
|
|
5
|
+
constructor(values: ChaynsReactValues, functions: ChaynsReactFunctions);
|
|
6
|
+
init(): Promise<undefined>;
|
|
7
|
+
addDataListener(cb: DataChangeCallback): () => void;
|
|
8
|
+
getSSRData(): null;
|
|
9
|
+
getInitialData(): ChaynsReactValues;
|
|
10
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ChaynsReactFunctions, ChaynsReactValues, CleanupCallback, DataChangeCallback, IChaynsReact } from '../types/IChaynsReact';
|
|
2
|
-
export declare class SsrWrapper implements IChaynsReact {
|
|
3
|
-
private readonly initialData;
|
|
4
|
-
values: ChaynsReactValues;
|
|
5
|
-
functions: ChaynsReactFunctions;
|
|
6
|
-
constructor(values: ChaynsReactValues, functions: ChaynsReactFunctions);
|
|
7
|
-
init(): Promise<undefined>;
|
|
8
|
-
addDataListener(cb: DataChangeCallback): CleanupCallback;
|
|
9
|
-
getSSRData(): ChaynsReactValues;
|
|
10
|
-
getInitialData(): ChaynsReactValues;
|
|
11
|
-
}
|
|
1
|
+
import { ChaynsReactFunctions, ChaynsReactValues, CleanupCallback, DataChangeCallback, IChaynsReact } from '../types/IChaynsReact';
|
|
2
|
+
export declare class SsrWrapper implements IChaynsReact {
|
|
3
|
+
private readonly initialData;
|
|
4
|
+
values: ChaynsReactValues;
|
|
5
|
+
functions: ChaynsReactFunctions;
|
|
6
|
+
constructor(values: ChaynsReactValues, functions: ChaynsReactFunctions);
|
|
7
|
+
init(): Promise<undefined>;
|
|
8
|
+
addDataListener(cb: DataChangeCallback): CleanupCallback;
|
|
9
|
+
getSSRData(): ChaynsReactValues;
|
|
10
|
+
getInitialData(): ChaynsReactValues;
|
|
11
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { DataChangeCallback } from '../types/IChaynsReact';
|
|
2
|
-
declare class StaticChaynsApi {
|
|
3
|
-
ready: Promise<void>;
|
|
4
|
-
addDataListener: (cb: DataChangeCallback) => () => void;
|
|
5
|
-
private _wrapper;
|
|
6
|
-
constructor();
|
|
7
|
-
getUser: () => any;
|
|
8
|
-
getSite: () => any;
|
|
9
|
-
getCurrentPage: () => any;
|
|
10
|
-
getDevice: () => any;
|
|
11
|
-
getLanguage: () => any;
|
|
12
|
-
getParameters: () => any;
|
|
13
|
-
getPages: () => any;
|
|
14
|
-
getEnvironment: () => any;
|
|
15
|
-
}
|
|
16
|
-
export default StaticChaynsApi;
|
|
1
|
+
import { DataChangeCallback } from '../types/IChaynsReact';
|
|
2
|
+
declare class StaticChaynsApi {
|
|
3
|
+
ready: Promise<void>;
|
|
4
|
+
addDataListener: (cb: DataChangeCallback) => () => void;
|
|
5
|
+
private _wrapper;
|
|
6
|
+
constructor(values: any, functions: any);
|
|
7
|
+
getUser: () => any;
|
|
8
|
+
getSite: () => any;
|
|
9
|
+
getCurrentPage: () => any;
|
|
10
|
+
getDevice: () => any;
|
|
11
|
+
getLanguage: () => any;
|
|
12
|
+
getParameters: () => any;
|
|
13
|
+
getPages: () => any;
|
|
14
|
+
getEnvironment: () => any;
|
|
15
|
+
}
|
|
16
|
+
export default StaticChaynsApi;
|
package/package.json
CHANGED
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "chayns-api",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "new chayns api",
|
|
5
|
-
"main": "dist/cjs/index.js",
|
|
6
|
-
"module": "dist/esm/index.js",
|
|
7
|
-
"types": "dist/types/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"require": "./dist/cjs/index.js",
|
|
11
|
-
"import": "./dist/esm/index.js",
|
|
12
|
-
"types": "./dist/types/index.d.ts"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"keywords": [
|
|
16
|
-
"chayns",
|
|
17
|
-
"chayns-toolkit",
|
|
18
|
-
"react"
|
|
19
|
-
],
|
|
20
|
-
"scripts": {
|
|
21
|
-
"start": "npm run dev",
|
|
22
|
-
"build:umd": "chayns-toolkit build",
|
|
23
|
-
"build:cjs": "cross-env NODE_ENV=cjs babel src --out-dir dist/cjs --extensions=.ts,.tsx",
|
|
24
|
-
"build:esm": "cross-env NODE_ENV=esm babel src --out-dir dist/esm --extensions=.ts,.tsx",
|
|
25
|
-
"build-docs": "npm i && cd website && npm i && npm run build",
|
|
26
|
-
"build:typescript": "tsc",
|
|
27
|
-
"watch:cjs": "npm run build:cjs -- --watch",
|
|
28
|
-
"watch:esm": "npm run build:esm -- --watch",
|
|
29
|
-
"watch:typescript": "tsc -w",
|
|
30
|
-
"watch": "concurrently \"npm run watch:cjs\" \"npm run watch:esm\" \"npm run watch:typescript\"",
|
|
31
|
-
"dev": "npm link && npm run watch",
|
|
32
|
-
"format": "prettier . --write",
|
|
33
|
-
"lint": "eslint src",
|
|
34
|
-
"prepublishOnly": "npm run build:cjs && npm run build:esm && npm run build:typescript"
|
|
35
|
-
},
|
|
36
|
-
"prettier": {
|
|
37
|
-
"proseWrap": "always",
|
|
38
|
-
"singleQuote": true,
|
|
39
|
-
"tabWidth": 4
|
|
40
|
-
},
|
|
41
|
-
"eslintConfig": {
|
|
42
|
-
"extends": "@chayns-toolkit"
|
|
43
|
-
},
|
|
44
|
-
"dependencies": {
|
|
45
|
-
"@module-federation/enhanced": "^0.6.10",
|
|
46
|
-
"@module-federation/runtime": "^0.6.9",
|
|
47
|
-
"@types/semver": "^7.5.8",
|
|
48
|
-
"comlink": "4.3.1",
|
|
49
|
-
"htmlescape": "^1.1.1",
|
|
50
|
-
"lodash.throttle": "^4.1.1",
|
|
51
|
-
"prop-types": "^15.7.2",
|
|
52
|
-
"scheduler": "^0.23.0",
|
|
53
|
-
"semaphore-async-await": "^1.5.1",
|
|
54
|
-
"semver": "^7.6.0",
|
|
55
|
-
"ua-parser-js": "^1.0.38",
|
|
56
|
-
"use-context-selector": "^1.4.4",
|
|
57
|
-
"util": "^0.12.5"
|
|
58
|
-
},
|
|
59
|
-
"devDependencies": {
|
|
60
|
-
"@babel/cli": "^7.24.1",
|
|
61
|
-
"@babel/core": "^7.24.4",
|
|
62
|
-
"@babel/preset-env": "^7.24.4",
|
|
63
|
-
"@babel/preset-react": "^7.24.1",
|
|
64
|
-
"@babel/preset-typescript": "^7.24.1",
|
|
65
|
-
"@chayns-toolkit/eslint-config": "^2.0.0",
|
|
66
|
-
"@testing-library/react": "^12.1.2",
|
|
67
|
-
"@types/htmlescape": "^1.1.3",
|
|
68
|
-
"@types/lodash.throttle": "^4.1.9",
|
|
69
|
-
"@types/prop-types": "^15.7.12",
|
|
70
|
-
"@types/react": "^18.2.78",
|
|
71
|
-
"@types/react-dom": "^18.2.25",
|
|
72
|
-
"@types/ua-parser-js": "^0.7.39",
|
|
73
|
-
"@typescript-eslint/parser": "^7.6.0",
|
|
74
|
-
"chayns-toolkit": "^2.0.9",
|
|
75
|
-
"concurrently": "^8.2.2",
|
|
76
|
-
"cross-env": "^7.0.3",
|
|
77
|
-
"postcss-prefix-selector": "^1.13.0",
|
|
78
|
-
"prettier": "^3.2.5",
|
|
79
|
-
"prettier-plugin-packagejson": "^2.5.0",
|
|
80
|
-
"react": "^18.3.1",
|
|
81
|
-
"react-dom": "^18.3.1",
|
|
82
|
-
"typescript": "^4.9.5"
|
|
83
|
-
},
|
|
84
|
-
"peerDependencies": {
|
|
85
|
-
"react": "^16.8 || ^17.0.1 || ^18.0.0",
|
|
86
|
-
"react-dom": "^16.8 || ^17.0.1 || ^18.0.0"
|
|
87
|
-
}
|
|
88
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "chayns-api",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "new chayns api",
|
|
5
|
+
"main": "dist/cjs/index.js",
|
|
6
|
+
"module": "dist/esm/index.js",
|
|
7
|
+
"types": "dist/types/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"require": "./dist/cjs/index.js",
|
|
11
|
+
"import": "./dist/esm/index.js",
|
|
12
|
+
"types": "./dist/types/index.d.ts"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"chayns",
|
|
17
|
+
"chayns-toolkit",
|
|
18
|
+
"react"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"start": "npm run dev",
|
|
22
|
+
"build:umd": "chayns-toolkit build",
|
|
23
|
+
"build:cjs": "cross-env NODE_ENV=cjs babel src --out-dir dist/cjs --extensions=.ts,.tsx",
|
|
24
|
+
"build:esm": "cross-env NODE_ENV=esm babel src --out-dir dist/esm --extensions=.ts,.tsx",
|
|
25
|
+
"build-docs": "npm i && cd website && npm i && npm run build",
|
|
26
|
+
"build:typescript": "tsc",
|
|
27
|
+
"watch:cjs": "npm run build:cjs -- --watch",
|
|
28
|
+
"watch:esm": "npm run build:esm -- --watch",
|
|
29
|
+
"watch:typescript": "tsc -w",
|
|
30
|
+
"watch": "concurrently \"npm run watch:cjs\" \"npm run watch:esm\" \"npm run watch:typescript\"",
|
|
31
|
+
"dev": "npm link && npm run watch",
|
|
32
|
+
"format": "prettier . --write",
|
|
33
|
+
"lint": "eslint src",
|
|
34
|
+
"prepublishOnly": "npm run build:cjs && npm run build:esm && npm run build:typescript"
|
|
35
|
+
},
|
|
36
|
+
"prettier": {
|
|
37
|
+
"proseWrap": "always",
|
|
38
|
+
"singleQuote": true,
|
|
39
|
+
"tabWidth": 4
|
|
40
|
+
},
|
|
41
|
+
"eslintConfig": {
|
|
42
|
+
"extends": "@chayns-toolkit"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@module-federation/enhanced": "^0.6.10",
|
|
46
|
+
"@module-federation/runtime": "^0.6.9",
|
|
47
|
+
"@types/semver": "^7.5.8",
|
|
48
|
+
"comlink": "4.3.1",
|
|
49
|
+
"htmlescape": "^1.1.1",
|
|
50
|
+
"lodash.throttle": "^4.1.1",
|
|
51
|
+
"prop-types": "^15.7.2",
|
|
52
|
+
"scheduler": "^0.23.0",
|
|
53
|
+
"semaphore-async-await": "^1.5.1",
|
|
54
|
+
"semver": "^7.6.0",
|
|
55
|
+
"ua-parser-js": "^1.0.38",
|
|
56
|
+
"use-context-selector": "^1.4.4",
|
|
57
|
+
"util": "^0.12.5"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@babel/cli": "^7.24.1",
|
|
61
|
+
"@babel/core": "^7.24.4",
|
|
62
|
+
"@babel/preset-env": "^7.24.4",
|
|
63
|
+
"@babel/preset-react": "^7.24.1",
|
|
64
|
+
"@babel/preset-typescript": "^7.24.1",
|
|
65
|
+
"@chayns-toolkit/eslint-config": "^2.0.0",
|
|
66
|
+
"@testing-library/react": "^12.1.2",
|
|
67
|
+
"@types/htmlescape": "^1.1.3",
|
|
68
|
+
"@types/lodash.throttle": "^4.1.9",
|
|
69
|
+
"@types/prop-types": "^15.7.12",
|
|
70
|
+
"@types/react": "^18.2.78",
|
|
71
|
+
"@types/react-dom": "^18.2.25",
|
|
72
|
+
"@types/ua-parser-js": "^0.7.39",
|
|
73
|
+
"@typescript-eslint/parser": "^7.6.0",
|
|
74
|
+
"chayns-toolkit": "^2.0.9",
|
|
75
|
+
"concurrently": "^8.2.2",
|
|
76
|
+
"cross-env": "^7.0.3",
|
|
77
|
+
"postcss-prefix-selector": "^1.13.0",
|
|
78
|
+
"prettier": "^3.2.5",
|
|
79
|
+
"prettier-plugin-packagejson": "^2.5.0",
|
|
80
|
+
"react": "^18.3.1",
|
|
81
|
+
"react-dom": "^18.3.1",
|
|
82
|
+
"typescript": "^4.9.5"
|
|
83
|
+
},
|
|
84
|
+
"peerDependencies": {
|
|
85
|
+
"react": "^16.8 || ^17.0.1 || ^18.0.0",
|
|
86
|
+
"react-dom": "^16.8 || ^17.0.1 || ^18.0.0"
|
|
87
|
+
}
|
|
88
|
+
}
|
package/toolkit.config.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
development: {
|
|
5
|
-
host: "0.0.0.0",
|
|
6
|
-
port: 8081,
|
|
7
|
-
},
|
|
8
|
-
output: {
|
|
9
|
-
singleBundle: true,
|
|
10
|
-
filename: 'chayns-api.js',
|
|
11
|
-
path: path.resolve(__dirname, 'dist'),
|
|
12
|
-
},
|
|
13
|
-
webpack(config) {
|
|
14
|
-
config.output.library = {
|
|
15
|
-
name: 'ChaynsApi',
|
|
16
|
-
type: 'umd',
|
|
17
|
-
}
|
|
18
|
-
return config;
|
|
19
|
-
}
|
|
20
|
-
};
|
|
1
|
+
const path = require('path');
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
development: {
|
|
5
|
+
host: "0.0.0.0",
|
|
6
|
+
port: 8081,
|
|
7
|
+
},
|
|
8
|
+
output: {
|
|
9
|
+
singleBundle: true,
|
|
10
|
+
filename: 'chayns-api.js',
|
|
11
|
+
path: path.resolve(__dirname, 'dist'),
|
|
12
|
+
},
|
|
13
|
+
webpack(config) {
|
|
14
|
+
config.output.library = {
|
|
15
|
+
name: 'ChaynsApi',
|
|
16
|
+
type: 'umd',
|
|
17
|
+
}
|
|
18
|
+
return config;
|
|
19
|
+
}
|
|
20
|
+
};
|
package/tsconfig.json
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
/* Basic Options */
|
|
4
|
-
"target": "ES2020", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */
|
|
5
|
-
"module": "commonjs", /* Specify module code generation: 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
|
|
6
|
-
// "lib": [], /* Specify library files to be included in the compilation: */
|
|
7
|
-
// "allowJs": true, /* Allow javascript files to be compiled. */
|
|
8
|
-
// "checkJs": true, /* Report errors in .js files. */
|
|
9
|
-
"jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
|
10
|
-
"declaration": true, /* Generates corresponding '.d.ts' file. */
|
|
11
|
-
// "sourceMap": true, /* Generates corresponding '.map' file. */
|
|
12
|
-
// "outFile": "./", /* Concatenate and emit output to single file. */
|
|
13
|
-
"outDir": "dist/types", /* Redirect output structure to the directory. */
|
|
14
|
-
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
|
15
|
-
// "removeComments": true, /* Do not emit comments to output. */
|
|
16
|
-
"noEmit": false, /* Do not emit outputs. */
|
|
17
|
-
"emitDeclarationOnly": true,
|
|
18
|
-
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
|
|
19
|
-
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
|
|
20
|
-
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
|
|
21
|
-
"skipLibCheck": true,
|
|
22
|
-
|
|
23
|
-
/* Strict Type-Checking Options */
|
|
24
|
-
"strict": true, /* Enable all strict type-checking options. */
|
|
25
|
-
"noImplicitAny": false, /* Raise error on expressions and declarations with an implied 'any' type. */
|
|
26
|
-
// "strictNullChecks": true, /* Enable strict null checks. */
|
|
27
|
-
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
|
|
28
|
-
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
|
|
29
|
-
|
|
30
|
-
/* Additional Checks */
|
|
31
|
-
// "noUnusedLocals": true, /* Report errors on unused locals. */
|
|
32
|
-
// "noUnusedParameters": true, /* Report errors on unused parameters. */
|
|
33
|
-
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
|
34
|
-
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
|
35
|
-
|
|
36
|
-
/* Module Resolution Options */
|
|
37
|
-
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
|
38
|
-
"baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
|
39
|
-
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
|
40
|
-
"rootDirs": ["./src"], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
|
41
|
-
// "typeRoots": [], /* List of folders to include type definitions from. */
|
|
42
|
-
// "types": [], /* Type declaration files to be included in compilation. */
|
|
43
|
-
"allowSyntheticDefaultImports": true /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
|
44
|
-
|
|
45
|
-
/* Source Map Options */
|
|
46
|
-
// "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|
|
47
|
-
// "mapRoot": "./", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
48
|
-
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
|
|
49
|
-
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
|
|
50
|
-
|
|
51
|
-
/* Experimental Options */
|
|
52
|
-
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
|
53
|
-
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
|
54
|
-
},
|
|
55
|
-
"exclude": ["node_modules", "**/*.spec.ts", "**/*.spec.tsx", "dist"]
|
|
56
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
/* Basic Options */
|
|
4
|
+
"target": "ES2020", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */
|
|
5
|
+
"module": "commonjs", /* Specify module code generation: 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
|
|
6
|
+
// "lib": [], /* Specify library files to be included in the compilation: */
|
|
7
|
+
// "allowJs": true, /* Allow javascript files to be compiled. */
|
|
8
|
+
// "checkJs": true, /* Report errors in .js files. */
|
|
9
|
+
"jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
|
10
|
+
"declaration": true, /* Generates corresponding '.d.ts' file. */
|
|
11
|
+
// "sourceMap": true, /* Generates corresponding '.map' file. */
|
|
12
|
+
// "outFile": "./", /* Concatenate and emit output to single file. */
|
|
13
|
+
"outDir": "dist/types", /* Redirect output structure to the directory. */
|
|
14
|
+
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
|
15
|
+
// "removeComments": true, /* Do not emit comments to output. */
|
|
16
|
+
"noEmit": false, /* Do not emit outputs. */
|
|
17
|
+
"emitDeclarationOnly": true,
|
|
18
|
+
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
|
|
19
|
+
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
|
|
20
|
+
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
|
|
21
|
+
"skipLibCheck": true,
|
|
22
|
+
|
|
23
|
+
/* Strict Type-Checking Options */
|
|
24
|
+
"strict": true, /* Enable all strict type-checking options. */
|
|
25
|
+
"noImplicitAny": false, /* Raise error on expressions and declarations with an implied 'any' type. */
|
|
26
|
+
// "strictNullChecks": true, /* Enable strict null checks. */
|
|
27
|
+
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
|
|
28
|
+
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
|
|
29
|
+
|
|
30
|
+
/* Additional Checks */
|
|
31
|
+
// "noUnusedLocals": true, /* Report errors on unused locals. */
|
|
32
|
+
// "noUnusedParameters": true, /* Report errors on unused parameters. */
|
|
33
|
+
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
|
34
|
+
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
|
35
|
+
|
|
36
|
+
/* Module Resolution Options */
|
|
37
|
+
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
|
38
|
+
"baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
|
39
|
+
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
|
40
|
+
"rootDirs": ["./src"], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
|
41
|
+
// "typeRoots": [], /* List of folders to include type definitions from. */
|
|
42
|
+
// "types": [], /* Type declaration files to be included in compilation. */
|
|
43
|
+
"allowSyntheticDefaultImports": true /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
|
44
|
+
|
|
45
|
+
/* Source Map Options */
|
|
46
|
+
// "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|
|
47
|
+
// "mapRoot": "./", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
48
|
+
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
|
|
49
|
+
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
|
|
50
|
+
|
|
51
|
+
/* Experimental Options */
|
|
52
|
+
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
|
53
|
+
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
|
54
|
+
},
|
|
55
|
+
"exclude": ["node_modules", "**/*.spec.ts", "**/*.spec.tsx", "dist"]
|
|
56
|
+
}
|