@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.
Files changed (47) hide show
  1. package/README.md +30 -0
  2. package/dist/.vite/manifest.json +12 -0
  3. package/dist/App.d.ts +2 -0
  4. package/dist/components/feedback/appreciation/list/appreciation-list.d.ts +2 -0
  5. package/dist/components/feedback/appreciation/modal/appreciation-modal.d.ts +2 -0
  6. package/dist/components/feedback/continuous-feedback/list/continuous-feedback-list.d.ts +2 -0
  7. package/dist/components/feedback/continuous-feedback/modal/continuous-feedback-modal.d.ts +2 -0
  8. package/dist/components/feedback/continuous-feedback/modal/form.schema.d.ts +39 -0
  9. package/dist/components/feedback/one-to-one/constants.d.ts +11 -0
  10. package/dist/components/feedback/one-to-one/list/one-to-one-list.d.ts +2 -0
  11. package/dist/components/feedback/one-to-one/reschedule-modal/form.schema.d.ts +15 -0
  12. package/dist/components/feedback/one-to-one/reschedule-modal/reschedule-modal.d.ts +2 -0
  13. package/dist/components/feedback/one-to-one/schedule-modal/form.schema.d.ts +30 -0
  14. package/dist/components/feedback/one-to-one/schedule-modal/schedule-modal.d.ts +2 -0
  15. package/dist/components/feedback/one-to-one/view-details-modal/form.schema.d.ts +18 -0
  16. package/dist/components/feedback/one-to-one/view-details-modal/view-details-modal.d.ts +3 -0
  17. package/dist/components/ui/alert/alert.d.ts +6 -0
  18. package/dist/components/ui/description/description.d.ts +12 -0
  19. package/dist/components/ui/empty/empty.d.ts +4 -0
  20. package/dist/components/ui/header-title/header-title.d.ts +1 -0
  21. package/dist/components/ui/image-viewer/image-viewer.d.ts +6 -0
  22. package/dist/components/ui/multi-select/async/multi-select.d.ts +20 -0
  23. package/dist/components/ui/pdf-viewer/pdf.viewer.d.ts +6 -0
  24. package/dist/components/ui/spinner/spinner.d.ts +7 -0
  25. package/dist/components/ui/text-reducing-tooltip/text-reducing-tooltip.d.ts +13 -0
  26. package/dist/components/ui/toggle-button/toggle-button.d.ts +13 -0
  27. package/dist/main.cjs +3316 -0
  28. package/dist/main.d.ts +7 -0
  29. package/dist/main.js +102644 -0
  30. package/dist/shared/constants/datatypes.d.ts +10 -0
  31. package/dist/shared/constants/endpoints.d.ts +18 -0
  32. package/dist/shared/constants/form-types.d.ts +44 -0
  33. package/dist/shared/constants/time.d.ts +53 -0
  34. package/dist/shared/hooks/useConstants.d.ts +35 -0
  35. package/dist/shared/hooks/useFetch.d.ts +124 -0
  36. package/dist/shared/hooks/useMutation.d.ts +11 -0
  37. package/dist/shared/providers/auth-provider.d.ts +7 -0
  38. package/dist/shared/providers/feedback-provider.d.ts +8 -0
  39. package/dist/shared/services/http.d.ts +11 -0
  40. package/dist/shared/types/backend.types.d.ts +16 -0
  41. package/dist/shared/types/form-fields.types.d.ts +0 -0
  42. package/dist/shared/utils/utils.d.ts +18 -0
  43. package/dist/shared/zustand/alert.store.d.ts +16 -0
  44. package/dist/shared/zustand/session.store.d.ts +17 -0
  45. package/dist/style.css +1 -0
  46. package/dist/vite.svg +1 -0
  47. 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
@@ -0,0 +1,12 @@
1
+ {
2
+ "src/main.ts": {
3
+ "file": "main.cjs",
4
+ "name": "main",
5
+ "src": "src/main.ts",
6
+ "isEntry": true
7
+ },
8
+ "style.css": {
9
+ "file": "style.css",
10
+ "src": "style.css"
11
+ }
12
+ }
package/dist/App.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ declare function App(): import("react/jsx-runtime").JSX.Element;
2
+ export default App;
@@ -0,0 +1,2 @@
1
+ import { AppreciationListProps } from '@/index';
2
+ export declare const AppreciationList: (props: AppreciationListProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { CreateAppreciationModalProps } from "@/index";
2
+ export declare const AppreciationModal: (props: CreateAppreciationModalProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ContinuousFeedbackListProps } from '@/index';
2
+ export declare const ContinuousFeedbackList: (props: ContinuousFeedbackListProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ContinuousFeedbackModalProps } from "@/index";
2
+ export declare const ContinuousFeedbackModal: (props: ContinuousFeedbackModalProps) => import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ import { OneToOneListType } from "@/index";
2
+ export declare const OneToOneList: (props: OneToOneListType) => import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ import { ReScheduleOneToOneModalProps } from '@/index';
2
+ export declare const ReScheduleOneToOneModal: (props: ReScheduleOneToOneModalProps) => import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ import { ScheduleOneToOneModalProps } from '@/index';
2
+ export declare const OneToOneModal: (props: ScheduleOneToOneModalProps) => import("react/jsx-runtime").JSX.Element;
@@ -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,3 @@
1
+ import { ViewOneToOneDetailsModalProps } from '@/index';
2
+ export declare const ViewOneToOneDetailsModal: (props: ViewOneToOneDetailsModalProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default ViewOneToOneDetailsModal;
@@ -0,0 +1,6 @@
1
+ import { AlertColor } from "@mui/material";
2
+ declare const AlertComponent: (props: {
3
+ type: AlertColor | undefined;
4
+ message?: string;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default AlertComponent;
@@ -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,4 @@
1
+ export declare const Empty: ({ message, svgProps }: {
2
+ message: string;
3
+ svgProps?: React.SVGProps<SVGSVGElement>;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -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,6 @@
1
+ /// <reference types="react" />
2
+ export declare const usePdfViewer: () => {
3
+ pdfURL: string | undefined;
4
+ setPdfURL: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
5
+ PdfViewer: () => import("react/jsx-runtime").JSX.Element;
6
+ };
@@ -0,0 +1,7 @@
1
+ import "./spinner.css";
2
+ type props = {
3
+ visible: boolean;
4
+ type?: "component" | "table" | "skeleton";
5
+ };
6
+ export declare const Loader: ({ visible, type }: props) => import("react/jsx-runtime").JSX.Element;
7
+ 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 {};