@devtron-labs/devtron-fe-common-lib 1.18.0-pre-0 → 1.18.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 (38) hide show
  1. package/dist/{@code-editor-BDktoNH9.js → @code-editor-Cmi_dLiG.js} +6698 -6876
  2. package/dist/{@common-rjsf-B-rBhlAg.js → @common-rjsf-DTSwvp93.js} +2 -2
  3. package/dist/{@framer-motion-BcOlP2tv.js → @framer-motion-j6RIjEIR.js} +1 -1
  4. package/dist/{@react-dates-BkJF0N9I.js → @react-dates-BVyHiOGU.js} +213 -213
  5. package/dist/{@react-select-Dw-yFFvz.js → @react-select-BQNFZu0Y.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-YTxUTwpg.js → @react-virtualized-sticky-tree-CuElh0mS.js} +1 -1
  7. package/dist/{@vendor-Dkf3d5cm.js → @vendor-DbxoIktR.js} +14725 -17434
  8. package/dist/Common/API/CoreAPI.d.ts +0 -11
  9. package/dist/Common/API/index.d.ts +0 -2
  10. package/dist/Common/Drawer/Drawer.d.ts +2 -3
  11. package/dist/Common/Modals/Modal.d.ts +2 -1
  12. package/dist/Common/Modals/VisibleModal.d.ts +8 -6
  13. package/dist/Common/Modals/VisibleModal2.d.ts +7 -4
  14. package/dist/Common/RJSF/Form.d.ts +1 -1
  15. package/dist/Shared/Components/Backdrop/Backdrop.d.ts +1 -1
  16. package/dist/Shared/Components/Backdrop/types.d.ts +10 -2
  17. package/dist/Shared/Components/Button/Button.component.d.ts +12 -24
  18. package/dist/Shared/Components/Button/types.d.ts +0 -4
  19. package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
  20. package/dist/Shared/Components/Header/types.d.ts +0 -2
  21. package/dist/Shared/Components/Popover/types.d.ts +0 -4
  22. package/dist/Shared/Components/Popover/usePopover.hook.d.ts +1 -1
  23. package/dist/Shared/Components/Popover/utils.d.ts +1 -1
  24. package/dist/Shared/Components/index.d.ts +0 -1
  25. package/dist/Shared/Helpers.d.ts +2 -1
  26. package/dist/Shared/Providers/MainContextProvider/index.d.ts +1 -1
  27. package/dist/Shared/Providers/MainContextProvider/types.d.ts +0 -18
  28. package/dist/Shared/types.d.ts +4 -0
  29. package/dist/index.d.ts +5 -16
  30. package/dist/index.js +544 -549
  31. package/package.json +2 -5
  32. package/dist/Common/API/QueryClientProvider.d.ts +0 -2
  33. package/dist/Common/API/reactQueryHooks.d.ts +0 -6
  34. package/dist/Shared/Components/DTFocusTrap/DTFocusTrap.d.ts +0 -3
  35. package/dist/Shared/Components/DTFocusTrap/index.d.ts +0 -2
  36. package/dist/Shared/Components/DTFocusTrap/types.d.ts +0 -33
  37. package/dist/Shared/Components/TempAppWindow/TempAppWindow.d.ts +0 -1
  38. package/dist/Shared/Components/TempAppWindow/index.d.ts +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "1.18.0-pre-0",
3
+ "version": "1.18.1",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -40,7 +40,6 @@
40
40
  "@esbuild-plugins/node-globals-polyfill": "0.2.3",
41
41
  "@laynezh/vite-plugin-lib-assets": "1.1.0",
42
42
  "@sentry/browser": "^7.119.1",
43
- "@tanstack/eslint-plugin-query": "<5",
44
43
  "@testing-library/jest-dom": "^5.16.2",
45
44
  "@testing-library/react": "^12.1.4",
46
45
  "@tippyjs/react": "^4.2.0",
@@ -48,7 +47,6 @@
48
47
  "@types/dompurify": "^3.0.5",
49
48
  "@types/json-schema": "^7.0.15",
50
49
  "@types/react": "17.0.39",
51
- "@types/react-dates": "^21.8.6",
52
50
  "@types/react-dom": "17.0.13",
53
51
  "@types/react-router-dom": "^5.3.3",
54
52
  "@typescript-eslint/eslint-plugin": "8.3.0",
@@ -109,7 +107,7 @@
109
107
  "@lezer/highlight": "1.2.1",
110
108
  "@replit/codemirror-indentation-markers": "6.5.3",
111
109
  "@replit/codemirror-vscode-keymap": "6.0.2",
112
- "@tanstack/react-query": "<5",
110
+ "@types/react-dates": "^21.8.6",
113
111
  "@uiw/codemirror-extensions-hyper-link": "4.23.10",
114
112
  "@uiw/codemirror-theme-github": "4.23.7",
115
113
  "@uiw/react-codemirror": "4.23.7",
@@ -118,7 +116,6 @@
118
116
  "codemirror-json-schema": "0.8.0",
119
117
  "dayjs": "^1.11.13",
120
118
  "fast-json-patch": "^3.1.1",
121
- "focus-trap-react": "^10.3.1",
122
119
  "framer-motion": "^6.5.1",
123
120
  "jsonpath-plus": "^10.3.0",
124
121
  "marked": "^13.0.3",
@@ -1,2 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- export declare const QueryClientProvider: ({ children }: PropsWithChildren<{}>) => JSX.Element;
@@ -1,6 +0,0 @@
1
- import { QueryKey, UseMutationOptions, UseMutationResult, useQueryClient, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
- import { ServerErrors } from '../ServerError';
3
- import { ResponseType } from '../Types';
4
- export declare const useQuery: <TQueryFnData = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UseQueryOptions<ResponseType<TQueryFnData>, ServerErrors, TData, TQueryKey>) => UseQueryResult<TData, ServerErrors>;
5
- export declare const useMutation: <TData = unknown, TVariables = void, TContext = unknown>(options: UseMutationOptions<ResponseType<TData>, ServerErrors, TVariables, TContext>) => UseMutationResult<ResponseType<TData>, ServerErrors, TVariables, TContext>;
6
- export { useQueryClient };
@@ -1,3 +0,0 @@
1
- import { DTFocusTrapType } from './types';
2
- declare const DTFocusTrap: ({ onEscape, deactivateFocusOnEscape, children, initialFocus, }: DTFocusTrapType) => JSX.Element;
3
- export default DTFocusTrap;
@@ -1,2 +0,0 @@
1
- export { default as DTFocusTrap } from './DTFocusTrap';
2
- export type { DTFocusTrapType } from './types';
@@ -1,33 +0,0 @@
1
- import { ReactNode } from 'react';
2
- type FocusTargetValue = HTMLElement | SVGElement | string;
3
- type FocusTargetValueOrFalse = FocusTargetValue | false;
4
- /**
5
- * A DOM node, a selector string (which will be passed to
6
- * `document.querySelector()` to find the DOM node), `false` to explicitly indicate
7
- * an opt-out, or a function that returns a DOM node or `false`.
8
- */
9
- type FocusTargetOrFalse = FocusTargetValueOrFalse | (() => FocusTargetValueOrFalse);
10
- export interface DTFocusTrapType {
11
- /**
12
- * Callback function that gets triggered when the Escape key is pressed. \
13
- * Should be wrapped in useCallback to prevent unnecessary re-renders.
14
- * @example
15
- * const handleEscape = useCallback(() => {
16
- * // Handle escape key press
17
- * }, []);
18
- */
19
- onEscape: (e?: KeyboardEvent | MouseEvent) => void;
20
- /**
21
- * If focus should be deactivated on escape, pass false when escape is disabled or has no action
22
- * true for cases when we are closing modals or dialogs
23
- * @default true
24
- */
25
- deactivateFocusOnEscape?: boolean;
26
- children: ReactNode;
27
- /**
28
- * With this option, you can specify an element to receive the initial focus, or use false for no initially focused element at all.
29
- * Setting this option to undefined (or to a function that returns undefined) will result in the first element in the focus trap's tab order receiving focus.
30
- */
31
- initialFocus?: FocusTargetOrFalse | undefined | (() => void);
32
- }
33
- export {};
@@ -1 +0,0 @@
1
- export declare const TempAppWindow: () => JSX.Element;
@@ -1 +0,0 @@
1
- export * from './TempAppWindow';