@devtron-labs/devtron-fe-common-lib 1.8.11 → 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.
- package/dist/{@code-editor-NsRH8fYx.js → @code-editor-DMmiDwEu.js} +4759 -4793
- package/dist/{@common-rjsf-Dw8DpcgR.js → @common-rjsf-GZ1AwL7Z.js} +2 -2
- package/dist/{@framer-motion-DWs0_8aB.js → @framer-motion-CRreovbm.js} +1 -1
- package/dist/{@react-dates-CHCZFrgt.js → @react-dates-DRHZX3ZR.js} +243 -243
- package/dist/{@react-select-Dn2Z7PBK.js → @react-select-BmMsEPgS.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-KcWdTSlv.js → @react-virtualized-sticky-tree-D3UifVD8.js} +1 -1
- package/dist/{@vendor-C6JiJKw0.js → @vendor-pl9jWVJU.js} +14125 -13524
- package/dist/Common/EmptyState/GenericEmptyState.d.ts +1 -1
- package/dist/Common/ErrorPage.d.ts +1 -1
- package/dist/Common/ErrorScreenManager.d.ts +1 -1
- package/dist/Common/Reload.d.ts +1 -1
- package/dist/Common/SegmentedBarChart/types.d.ts +0 -1
- package/dist/Common/Types.d.ts +4 -0
- package/dist/Shared/Components/Confetti/Confetti.component.d.ts +2 -0
- package/dist/Shared/Components/Confetti/index.d.ts +1 -0
- package/dist/Shared/Components/ConfirmationModal/types.d.ts +4 -0
- package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +5 -5
- package/dist/Shared/Components/ImageWithFallback/types.d.ts +1 -1
- package/dist/Shared/Components/InfoBlock/types.d.ts +3 -3
- package/dist/Shared/Components/LogoutCard.d.ts +1 -1
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/Helpers.d.ts +0 -1
- package/dist/Shared/Hooks/UseDownload/UseDownload.d.ts +2 -2
- package/dist/Shared/Hooks/UseDownload/types.d.ts +0 -8
- package/dist/Shared/Hooks/index.d.ts +0 -1
- package/dist/Shared/Providers/ThemeProvider/index.d.ts +1 -0
- package/dist/Shared/Providers/ThemeProvider/types.d.ts +5 -1
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/{ic-info-filled.96f15070.svg → ic-info-filled.9277eb13.svg} +2 -2
- package/dist/index.js +639 -639
- package/package.json +2 -1
- package/dist/Shared/Hooks/useStickyEvent/constants.d.ts +0 -3
- package/dist/Shared/Hooks/useStickyEvent/index.d.ts +0 -1
- package/dist/Shared/Hooks/useStickyEvent/types.d.ts +0 -32
- package/dist/Shared/Hooks/useStickyEvent/useStickyEvent.d.ts +0 -8
- 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.
|
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 +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;
|