@bigbinary/neeto-commons-frontend 2.0.10 → 2.0.12
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/README.md +7 -7
- package/initializers.cjs.js +49 -1
- package/initializers.d.ts +1 -0
- package/initializers.js +48 -1
- package/package.json +12 -4
- package/react-utils.cjs.js +89402 -961
- package/react-utils.d.ts +57 -7
- package/react-utils.js +89404 -966
- package/utils.cjs.js +11 -6
- package/utils.d.ts +2 -2
- package/utils.js +11 -6
package/react-utils.d.ts
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
import { AvatarProps, TooltipProps, TypographyProps } from "@bigbinary/neetoui";
|
|
2
|
-
import { LinkType, NavLinkItemType } from "@bigbinary/neetoui/layouts";
|
|
3
1
|
import React from "react";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
AvatarProps,
|
|
5
|
+
CheckboxProps,
|
|
6
|
+
DropdownProps,
|
|
7
|
+
InputProps,
|
|
8
|
+
TooltipProps,
|
|
9
|
+
TypographyProps,
|
|
10
|
+
} from "@bigbinary/neetoui";
|
|
11
|
+
import { LinkType, NavLinkItemType } from "@bigbinary/neetoui/layouts";
|
|
4
12
|
import { RouteProps } from "react-router-dom";
|
|
5
13
|
import { ObjectAndPrimitives } from "./pure";
|
|
6
14
|
import { DateTimeType, timeFormat } from "./utils";
|
|
@@ -35,13 +43,24 @@ export const Sidebar: React.FC<{
|
|
|
35
43
|
extraTopLinks?: LinkType[];
|
|
36
44
|
showAppSwitcher?: boolean;
|
|
37
45
|
}>;
|
|
46
|
+
type EmbedCode = React.FC<{
|
|
47
|
+
primaryApp?: string;
|
|
48
|
+
initialSelectedWidgets?: string[];
|
|
49
|
+
}>;
|
|
50
|
+
|
|
51
|
+
export const NeetoWidget: {
|
|
52
|
+
EmbedCode: EmbedCode;
|
|
53
|
+
};
|
|
38
54
|
|
|
39
55
|
type OptionsType = {
|
|
40
|
-
root?: Element | null
|
|
41
|
-
rootMargin?: String
|
|
42
|
-
threshold?: Number | Number[]
|
|
43
|
-
}
|
|
44
|
-
export function useIsElementVisibleInDom(
|
|
56
|
+
root?: Element | null;
|
|
57
|
+
rootMargin?: String;
|
|
58
|
+
threshold?: Number | Number[];
|
|
59
|
+
};
|
|
60
|
+
export function useIsElementVisibleInDom(
|
|
61
|
+
target: Element | null,
|
|
62
|
+
options?: OptionsType
|
|
63
|
+
): Boolean;
|
|
45
64
|
export function useDebounce<T>(value: T, delay?: number): T;
|
|
46
65
|
export function useFuncDebounce<F extends Function>(
|
|
47
66
|
func: F,
|
|
@@ -97,3 +116,34 @@ export const DateFormat: {
|
|
|
97
116
|
};
|
|
98
117
|
|
|
99
118
|
export const TimeFormat: typeof DateFormat;
|
|
119
|
+
|
|
120
|
+
export interface ColumnsProps {
|
|
121
|
+
actionBlock?: React.ReactNode;
|
|
122
|
+
checkboxProps?: CheckboxProps;
|
|
123
|
+
columnData: Object[];
|
|
124
|
+
dropdownProps?: DropdownProps;
|
|
125
|
+
fixedColumns?: string[];
|
|
126
|
+
isSearchable?: boolean;
|
|
127
|
+
localStorageKey: string;
|
|
128
|
+
noColumnMessage?: string;
|
|
129
|
+
onChange: (columns: any[]) => any[];
|
|
130
|
+
searchProps?: InputProps;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
type ZustandConfigType = (
|
|
134
|
+
set: (data: any) => void,
|
|
135
|
+
get: () => any,
|
|
136
|
+
api: any
|
|
137
|
+
) => any;
|
|
138
|
+
|
|
139
|
+
export function withImmutableActions(
|
|
140
|
+
config: ZustandConfigType
|
|
141
|
+
): ZustandConfigType;
|
|
142
|
+
|
|
143
|
+
export declare type ZustandStoreHook = {
|
|
144
|
+
(
|
|
145
|
+
selector: (state: any) => any,
|
|
146
|
+
comparator?: (a: any, b: any) => boolean
|
|
147
|
+
): any;
|
|
148
|
+
(): any;
|
|
149
|
+
};
|