@zimyo/engage 0.0.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/README.md +30 -0
- package/dist/.vite/manifest.json +12 -0
- package/dist/App.d.ts +2 -0
- package/dist/components/feedback/appreciation/list/appreciation-list.d.ts +2 -0
- package/dist/components/feedback/appreciation/modal/appreciation-modal.d.ts +2 -0
- package/dist/components/feedback/continuous-feedback/list/continuous-feedback-list.d.ts +2 -0
- package/dist/components/feedback/continuous-feedback/modal/continuous-feedback-modal.d.ts +2 -0
- package/dist/components/feedback/continuous-feedback/modal/form.schema.d.ts +39 -0
- package/dist/components/feedback/one-to-one/constants.d.ts +11 -0
- package/dist/components/feedback/one-to-one/list/one-to-one-list.d.ts +2 -0
- package/dist/components/feedback/one-to-one/reschedule-modal/form.schema.d.ts +15 -0
- package/dist/components/feedback/one-to-one/reschedule-modal/reschedule-modal.d.ts +2 -0
- package/dist/components/feedback/one-to-one/schedule-modal/form.schema.d.ts +30 -0
- package/dist/components/feedback/one-to-one/schedule-modal/schedule-modal.d.ts +2 -0
- package/dist/components/feedback/one-to-one/view-details-modal/form.schema.d.ts +18 -0
- package/dist/components/feedback/one-to-one/view-details-modal/view-details-modal.d.ts +3 -0
- package/dist/components/ui/alert/alert.d.ts +6 -0
- package/dist/components/ui/description/description.d.ts +12 -0
- package/dist/components/ui/empty/empty.d.ts +4 -0
- package/dist/components/ui/header-title/header-title.d.ts +1 -0
- package/dist/components/ui/image-viewer/image-viewer.d.ts +6 -0
- package/dist/components/ui/multi-select/async/multi-select.d.ts +20 -0
- package/dist/components/ui/pdf-viewer/pdf.viewer.d.ts +6 -0
- package/dist/components/ui/spinner/spinner.d.ts +7 -0
- package/dist/components/ui/text-reducing-tooltip/text-reducing-tooltip.d.ts +13 -0
- package/dist/components/ui/toggle-button/toggle-button.d.ts +13 -0
- package/dist/main.cjs +3316 -0
- package/dist/main.d.ts +7 -0
- package/dist/main.js +102644 -0
- package/dist/shared/constants/datatypes.d.ts +10 -0
- package/dist/shared/constants/endpoints.d.ts +18 -0
- package/dist/shared/constants/form-types.d.ts +44 -0
- package/dist/shared/constants/time.d.ts +53 -0
- package/dist/shared/hooks/useConstants.d.ts +35 -0
- package/dist/shared/hooks/useFetch.d.ts +124 -0
- package/dist/shared/hooks/useMutation.d.ts +11 -0
- package/dist/shared/providers/auth-provider.d.ts +7 -0
- package/dist/shared/providers/feedback-provider.d.ts +8 -0
- package/dist/shared/services/http.d.ts +11 -0
- package/dist/shared/types/backend.types.d.ts +16 -0
- package/dist/shared/types/form-fields.types.d.ts +0 -0
- package/dist/shared/utils/utils.d.ts +18 -0
- package/dist/shared/zustand/alert.store.d.ts +16 -0
- package/dist/shared/zustand/session.store.d.ts +17 -0
- package/dist/style.css +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +69 -0
package/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# React + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
|
4
|
+
|
|
5
|
+
Currently, two official plugins are available:
|
|
6
|
+
|
|
7
|
+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
|
|
8
|
+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
|
9
|
+
|
|
10
|
+
## Expanding the ESLint configuration
|
|
11
|
+
|
|
12
|
+
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
|
|
13
|
+
|
|
14
|
+
- Configure the top-level `parserOptions` property like this:
|
|
15
|
+
|
|
16
|
+
```js
|
|
17
|
+
export default {
|
|
18
|
+
// other rules...
|
|
19
|
+
parserOptions: {
|
|
20
|
+
ecmaVersion: 'latest',
|
|
21
|
+
sourceType: 'module',
|
|
22
|
+
project: ['./tsconfig.json', './tsconfig.node.json'],
|
|
23
|
+
tsconfigRootDir: __dirname,
|
|
24
|
+
},
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
|
|
29
|
+
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
|
|
30
|
+
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
|
package/dist/App.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ContinuousFeedbackFormSchema: z.ZodObject<{
|
|
3
|
+
FEEDBACK_FOR: z.ZodNumber;
|
|
4
|
+
FEEDBACK_TITLE: z.ZodString;
|
|
5
|
+
FEEDBACK_CONTENT: z.ZodString;
|
|
6
|
+
FILES: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
|
|
7
|
+
IMAGES: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
|
|
8
|
+
SKILL_RATING: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
9
|
+
NAME: z.ZodString;
|
|
10
|
+
RATING: z.ZodNumber;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
NAME: string;
|
|
13
|
+
RATING: number;
|
|
14
|
+
}, {
|
|
15
|
+
NAME: string;
|
|
16
|
+
RATING: number;
|
|
17
|
+
}>, "many">>;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
FILES: any[];
|
|
20
|
+
IMAGES: any[];
|
|
21
|
+
FEEDBACK_FOR: number;
|
|
22
|
+
FEEDBACK_TITLE: string;
|
|
23
|
+
FEEDBACK_CONTENT: string;
|
|
24
|
+
SKILL_RATING: {
|
|
25
|
+
NAME: string;
|
|
26
|
+
RATING: number;
|
|
27
|
+
}[];
|
|
28
|
+
}, {
|
|
29
|
+
FEEDBACK_FOR: number;
|
|
30
|
+
FEEDBACK_TITLE: string;
|
|
31
|
+
FEEDBACK_CONTENT: string;
|
|
32
|
+
FILES?: any[] | undefined;
|
|
33
|
+
IMAGES?: any[] | undefined;
|
|
34
|
+
SKILL_RATING?: {
|
|
35
|
+
NAME: string;
|
|
36
|
+
RATING: number;
|
|
37
|
+
}[] | undefined;
|
|
38
|
+
}>;
|
|
39
|
+
export type ContinuousFeedbackFormType = z.infer<typeof ContinuousFeedbackFormSchema>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const COMPONENT_VISIBILITY_TYPES: {
|
|
2
|
+
SHEDULE_BY_WITH: string;
|
|
3
|
+
SHEDULE_BY_WITH_OUTSIDE: string;
|
|
4
|
+
SHEDULE_BY: string;
|
|
5
|
+
SHEDULE_WITH: string;
|
|
6
|
+
REMARKS_VISIBILITY: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const MEETING_STATUS_TYPES: {
|
|
9
|
+
COMPLETED: number;
|
|
10
|
+
CANCELED: number;
|
|
11
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const RescheduleOneToOneFormSchema: z.ZodObject<{
|
|
3
|
+
DATE: z.ZodDefault<z.ZodString>;
|
|
4
|
+
START_TIME: z.ZodDefault<z.ZodString>;
|
|
5
|
+
DURATION: z.ZodString;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
DATE: string;
|
|
8
|
+
START_TIME: string;
|
|
9
|
+
DURATION: string;
|
|
10
|
+
}, {
|
|
11
|
+
DURATION: string;
|
|
12
|
+
DATE?: string | undefined;
|
|
13
|
+
START_TIME?: string | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export type RescheduleOneToOneFormType = z.infer<typeof RescheduleOneToOneFormSchema>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ScheduleOneToOneFormSchema: z.ZodObject<{
|
|
3
|
+
MEETING_TITLE: z.ZodString;
|
|
4
|
+
DESCRIPTION: z.ZodOptional<z.ZodString>;
|
|
5
|
+
SCHEDULE_WITH: z.ZodNumber;
|
|
6
|
+
DATE: z.ZodDefault<z.ZodString>;
|
|
7
|
+
START_TIME: z.ZodDefault<z.ZodString>;
|
|
8
|
+
DURATION: z.ZodString;
|
|
9
|
+
MEDIUM: z.ZodNumber;
|
|
10
|
+
MEDIUM_ALIAS: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
DATE: string;
|
|
13
|
+
START_TIME: string;
|
|
14
|
+
DURATION: string;
|
|
15
|
+
MEETING_TITLE: string;
|
|
16
|
+
SCHEDULE_WITH: number;
|
|
17
|
+
MEDIUM: number;
|
|
18
|
+
DESCRIPTION?: string | undefined;
|
|
19
|
+
MEDIUM_ALIAS?: string | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
DURATION: string;
|
|
22
|
+
MEETING_TITLE: string;
|
|
23
|
+
SCHEDULE_WITH: number;
|
|
24
|
+
MEDIUM: number;
|
|
25
|
+
DATE?: string | undefined;
|
|
26
|
+
START_TIME?: string | undefined;
|
|
27
|
+
DESCRIPTION?: string | undefined;
|
|
28
|
+
MEDIUM_ALIAS?: string | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export type ScheduleOneToOneFormType = z.infer<typeof ScheduleOneToOneFormSchema>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const OneToOneDetailsFormSchema: z.ZodObject<{
|
|
3
|
+
TEXT: z.ZodString;
|
|
4
|
+
FILES: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
|
|
5
|
+
IMAGES: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
|
|
6
|
+
VISIBLE_TO: z.ZodDefault<z.ZodNumber>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
TEXT: string;
|
|
9
|
+
FILES: any[];
|
|
10
|
+
IMAGES: any[];
|
|
11
|
+
VISIBLE_TO: number;
|
|
12
|
+
}, {
|
|
13
|
+
TEXT: string;
|
|
14
|
+
FILES?: any[] | undefined;
|
|
15
|
+
IMAGES?: any[] | undefined;
|
|
16
|
+
VISIBLE_TO?: number | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
export type OneToOneDetailsFormType = z.infer<typeof OneToOneDetailsFormSchema>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type DescriptionProps = {
|
|
2
|
+
descriptionsArray: Array<any>;
|
|
3
|
+
bordered?: boolean;
|
|
4
|
+
className?: string;
|
|
5
|
+
layout?: string;
|
|
6
|
+
spacingBetweenDescriptions?: string;
|
|
7
|
+
spacingBetweenDescriptionTitleAndItems?: string;
|
|
8
|
+
spacingBetweenSubsequentDescriptionItems?: string;
|
|
9
|
+
spacingBetweenItemAndLabel?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const Description: ({ bordered, layout, className, spacingBetweenDescriptions, spacingBetweenDescriptionTitleAndItems, spacingBetweenSubsequentDescriptionItems, spacingBetweenItemAndLabel, descriptionsArray, }: DescriptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CustomHeaderTitle: (title: string, icon?: React.ReactNode) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const useImageViewer: () => {
|
|
3
|
+
imageURL: string | undefined;
|
|
4
|
+
setImageURL: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
|
|
5
|
+
ImageViewer: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type props = {
|
|
2
|
+
searchKey: string;
|
|
3
|
+
reqParams: {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
};
|
|
6
|
+
endpoint: string;
|
|
7
|
+
optionValue: string;
|
|
8
|
+
inputPlaceHolder?: string;
|
|
9
|
+
optionTitleFn: (item: any) => string;
|
|
10
|
+
onChange?: (value: {
|
|
11
|
+
title: string;
|
|
12
|
+
value: any;
|
|
13
|
+
}) => void;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @description Async multi select component on top of material ui .
|
|
17
|
+
* @author Pawan Gupta
|
|
18
|
+
*/
|
|
19
|
+
export declare const MultiSelectAsync: (props: props) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type props = {
|
|
2
|
+
data?: string;
|
|
3
|
+
limit?: number;
|
|
4
|
+
doNotShowTooltip?: boolean;
|
|
5
|
+
arrow?: boolean;
|
|
6
|
+
styleOverrides?: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
endAdornment?: string;
|
|
10
|
+
startAdornment?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function TextReducingTooltip({ limit, doNotShowTooltip, arrow, data, endAdornment, startAdornment, styleOverrides }: props): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "./toggle-button.css";
|
|
3
|
+
type ToggleButtonType = {
|
|
4
|
+
items: {
|
|
5
|
+
label: string;
|
|
6
|
+
value: any;
|
|
7
|
+
}[];
|
|
8
|
+
value?: any;
|
|
9
|
+
onClickTab?: ((event: React.MouseEvent<HTMLElement, MouseEvent>, value: any) => void);
|
|
10
|
+
onChangeTab?: ((event: React.MouseEvent<HTMLElement, MouseEvent>, value: any) => void);
|
|
11
|
+
};
|
|
12
|
+
export declare const CustomToggleButton: (props: ToggleButtonType) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|