@devtron-labs/devtron-fe-common-lib 0.0.85 → 0.0.86-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 (30) hide show
  1. package/dist/Common/Helper.d.ts +0 -1
  2. package/dist/Shared/Hooks/UsePrompt/UsePrompt.d.ts +8 -0
  3. package/dist/Shared/Hooks/UsePrompt/index.d.ts +1 -0
  4. package/dist/Shared/Hooks/UsePrompt/types.d.ts +6 -0
  5. package/dist/Shared/Hooks/index.d.ts +1 -0
  6. package/dist/Shared/Providers/UserEmailProvider/UserEmailProvider.d.ts +6 -0
  7. package/dist/Shared/Providers/UserEmailProvider/index.d.ts +2 -0
  8. package/dist/Shared/Providers/UserEmailProvider/types.d.ts +5 -0
  9. package/dist/Shared/Providers/index.d.ts +1 -0
  10. package/dist/Shared/index.d.ts +1 -0
  11. package/dist/assets/index.css +1 -1
  12. package/dist/assets/{yaml.worker-cc1a551a.js → yaml.worker-632eebb8.js} +1 -1
  13. package/dist/{cssMode-fc8027c0.js → cssMode-05d0449a.js} +1 -1
  14. package/dist/{freemarker2-a1b77c94.js → freemarker2-417aed1a.js} +1 -1
  15. package/dist/{handlebars-600385ac.js → handlebars-fe6d5bbd.js} +1 -1
  16. package/dist/{html-4b43d01e.js → html-ddf34535.js} +1 -1
  17. package/dist/{htmlMode-30202b19.js → htmlMode-dc986573.js} +1 -1
  18. package/dist/{index-b4fe7092.js → index-5d01f761.js} +10977 -10967
  19. package/dist/index.js +143 -140
  20. package/dist/{javascript-a5c9dc03.js → javascript-21a55869.js} +1 -1
  21. package/dist/{jsonMode-913910ff.js → jsonMode-03ac982d.js} +1 -1
  22. package/dist/{liquid-e3f21e09.js → liquid-ec36ac41.js} +1 -1
  23. package/dist/{mdx-7a771bd1.js → mdx-792d060d.js} +1 -1
  24. package/dist/{python-ae59b55f.js → python-53e865f0.js} +1 -1
  25. package/dist/{razor-679f6ece.js → razor-c3773944.js} +1 -1
  26. package/dist/{tsMode-1536b46f.js → tsMode-a8c0f670.js} +1 -1
  27. package/dist/{typescript-92e07346.js → typescript-4dc2d234.js} +1 -1
  28. package/dist/{xml-eb691a67.js → xml-42c02e76.js} +1 -1
  29. package/dist/{yaml-a92d5973.js → yaml-c5427c7d.js} +1 -1
  30. package/package.json +1 -1
@@ -21,7 +21,6 @@ export declare const refresh: () => void;
21
21
  export declare const reportIssue: () => void;
22
22
  export declare function useEffectAfterMount(cb: any, dependencies: any): void;
23
23
  export declare function getCookie(sKey: any): string;
24
- export declare function getLoginInfo(): any;
25
24
  export declare function useForm(stateSchema: any, validationSchema: {}, callback: any): {
26
25
  state: any;
27
26
  disable: boolean;
@@ -0,0 +1,8 @@
1
+ import { UsePromptProps } from './types';
2
+
3
+ /**
4
+ * Hook that shows a prompt when shouldPrompt is true and the user tries to leave the page through refresh
5
+ * Meant to be used alongside the Prompt component from react-router-dom
6
+ */
7
+ declare const usePrompt: ({ shouldPrompt }: UsePromptProps) => void;
8
+ export default usePrompt;
@@ -0,0 +1 @@
1
+ export { default as usePrompt } from './UsePrompt';
@@ -0,0 +1,6 @@
1
+ export interface UsePromptProps {
2
+ /**
3
+ * If true the prompt will be shown
4
+ */
5
+ shouldPrompt: boolean;
6
+ }
@@ -0,0 +1 @@
1
+ export * from './UsePrompt';
@@ -0,0 +1,6 @@
1
+ import { UseUserEmailContextType } from './types';
2
+ import { default as React } from 'react';
3
+
4
+ export declare const useUserEmail: () => UseUserEmailContextType;
5
+ export declare const UserEmailProvider: React.FC<{}>;
6
+ export declare const withUserEmail: (Component: React.ComponentClass) => (props: object) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './UserEmailProvider';
2
+ export * from './types';
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export interface UseUserEmailContextType {
3
+ email: string;
4
+ setEmail: React.Dispatch<React.SetStateAction<string>>;
5
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './MainContextProvider';
2
2
  export * from './ImageSelectionUtility';
3
+ export * from './UserEmailProvider';
@@ -5,3 +5,4 @@ export * from './constants';
5
5
  export * from './types';
6
6
  export * from './Providers';
7
7
  export * from './constants';
8
+ export * from './Hooks';