@devtron-labs/devtron-fe-common-lib 1.8.10 → 1.9.0-beta-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 (29) hide show
  1. package/dist/{@code-editor-D5VtXWpJ.js → @code-editor-DMmiDwEu.js} +4103 -4137
  2. package/dist/{@common-rjsf-CDSJkAPa.js → @common-rjsf-GZ1AwL7Z.js} +2 -2
  3. package/dist/{@framer-motion-DWs0_8aB.js → @framer-motion-CRreovbm.js} +1 -1
  4. package/dist/{@react-dates-CHCZFrgt.js → @react-dates-DRHZX3ZR.js} +243 -243
  5. package/dist/{@react-select-Dn2Z7PBK.js → @react-select-BmMsEPgS.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-KcWdTSlv.js → @react-virtualized-sticky-tree-D3UifVD8.js} +1 -1
  7. package/dist/{@vendor-C6JiJKw0.js → @vendor-pl9jWVJU.js} +14125 -13524
  8. package/dist/Common/SegmentedBarChart/types.d.ts +0 -1
  9. package/dist/Shared/Components/Confetti/Confetti.component.d.ts +2 -0
  10. package/dist/Shared/Components/Confetti/index.d.ts +1 -0
  11. package/dist/Shared/Components/ConfirmationModal/types.d.ts +4 -0
  12. package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +5 -5
  13. package/dist/Shared/Components/ImageWithFallback/types.d.ts +1 -1
  14. package/dist/Shared/Components/InfoBlock/types.d.ts +3 -3
  15. package/dist/Shared/Components/LogoutCard.d.ts +1 -1
  16. package/dist/Shared/Components/index.d.ts +1 -0
  17. package/dist/Shared/Helpers.d.ts +0 -1
  18. package/dist/Shared/Hooks/index.d.ts +0 -1
  19. package/dist/Shared/Providers/ThemeProvider/index.d.ts +1 -0
  20. package/dist/Shared/Providers/ThemeProvider/types.d.ts +5 -1
  21. package/dist/assets/@code-editor.css +1 -1
  22. package/dist/assets/{ic-info-filled.96f15070.svg → ic-info-filled.9277eb13.svg} +2 -2
  23. package/dist/index.js +639 -639
  24. package/package.json +2 -1
  25. package/dist/Shared/Hooks/useStickyEvent/constants.d.ts +0 -3
  26. package/dist/Shared/Hooks/useStickyEvent/index.d.ts +0 -1
  27. package/dist/Shared/Hooks/useStickyEvent/types.d.ts +0 -32
  28. package/dist/Shared/Hooks/useStickyEvent/useStickyEvent.d.ts +0 -8
  29. package/dist/Shared/Hooks/useStickyEvent/utils.d.ts +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "1.8.10",
3
+ "version": "1.9.0-beta-1",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -118,6 +118,7 @@
118
118
  "jsonpath-plus": "^10.3.0",
119
119
  "marked": "^13.0.3",
120
120
  "nanoid": "^3.3.8",
121
+ "react-canvas-confetti": "^2.0.7",
121
122
  "react-codemirror-merge": "4.23.6",
122
123
  "react-dates": "^21.8.0",
123
124
  "react-diff-viewer-continued": "^3.4.0",
@@ -1,3 +0,0 @@
1
- export declare const FALLBACK_SENTINEL_HEIGHT = "1px";
2
- export declare const OBSERVER_THRESHOLD = 1;
3
- export declare const OBSERVER_ROOT_MARGIN = "0px";
@@ -1 +0,0 @@
1
- export { default as useStickyEvent } from './useStickyEvent';
@@ -1,32 +0,0 @@
1
- import { MutableRefObject } from 'react';
2
- export type UseStickyEventProps<T extends HTMLElement = HTMLDivElement> = {
3
- /**
4
- * Unique identifier used to create the id of the sentinel element
5
- *
6
- * A sentinel element is used to determine when the sticky element is 'stuck'
7
- * It is dynamically created and appended to the DOM
8
- */
9
- identifier: string;
10
- /**
11
- * Indicates whether the sticky element is conditionally rendered.
12
- * - Set to true if the sticky element is mounted.
13
- * - Set to false if the sticky element is not mounted.
14
- * - If the sticky element is always rendered, this flag can be ignored.
15
- */
16
- isStickyElementMounted?: boolean;
17
- } & ({
18
- /**
19
- * Reference to the scroll container element that contains the sticky element
20
- *
21
- * Either the reference can be passed or its querySelector
22
- */
23
- containerRef: MutableRefObject<T>;
24
- containerSelector?: never;
25
- } | {
26
- containerSelector: string;
27
- containerRef?: never;
28
- });
29
- export interface UseStickyEventReturnType<T extends HTMLElement = HTMLDivElement> {
30
- isStuck: boolean;
31
- stickyElementRef: MutableRefObject<T>;
32
- }
@@ -1,8 +0,0 @@
1
- import { UseStickyEventProps, UseStickyEventReturnType } from './types';
2
- /**
3
- * Please read
4
- * https://developer.chrome.com/docs/css-ui/sticky-headers
5
- * as a reference for the implementation
6
- */
7
- declare const useStickyEvent: <T extends HTMLElement = HTMLDivElement>({ containerSelector, containerRef, identifier, isStickyElementMounted, }: UseStickyEventProps<T>) => UseStickyEventReturnType<T>;
8
- export default useStickyEvent;
@@ -1,2 +0,0 @@
1
- import { UseStickyEventReturnType } from './types';
2
- export declare const getHeightForStickyElementTopOffset: <T extends HTMLElement>({ stickyElementRef, }: Pick<UseStickyEventReturnType<T>, "stickyElementRef">) => string;