@bigbinary/neeto-commons-frontend 2.0.38 → 2.0.40
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 +1 -0
- package/configs/babel.js +14 -9
- package/cypress-commands.d.ts +2 -0
- package/cypress-utils.cjs.js +46 -5
- package/cypress-utils.d.ts +2 -0
- package/cypress-utils.js +46 -5
- package/initializers.cjs.js +12 -167
- package/initializers.js +5 -160
- package/package.json +15 -2
- package/react-utils.cjs.js +879 -2964
- package/react-utils.d.ts +9 -2
- package/react-utils.js +844 -2929
- package/utils.cjs.js +3 -70
- package/utils.d.ts +2 -0
- package/utils.js +2 -69
package/react-utils.d.ts
CHANGED
|
@@ -115,7 +115,7 @@ export const DateFormat: {
|
|
|
115
115
|
|
|
116
116
|
export const TimeFormat: typeof DateFormat;
|
|
117
117
|
|
|
118
|
-
export
|
|
118
|
+
export const Columns: React.FC<{
|
|
119
119
|
actionBlock?: React.ReactNode;
|
|
120
120
|
checkboxProps?: CheckboxProps;
|
|
121
121
|
columnData: {
|
|
@@ -131,7 +131,7 @@ export interface ColumnsProps {
|
|
|
131
131
|
noColumnMessage?: string;
|
|
132
132
|
onChange: (columns: any[]) => any[];
|
|
133
133
|
searchProps?: InputProps;
|
|
134
|
-
}
|
|
134
|
+
}>
|
|
135
135
|
|
|
136
136
|
type ZustandConfigType = (
|
|
137
137
|
set: (data: any) => void,
|
|
@@ -197,6 +197,7 @@ export const ShareViaLink: React.FC<{
|
|
|
197
197
|
};
|
|
198
198
|
entityName: string;
|
|
199
199
|
handleRegenerate?: Function;
|
|
200
|
+
previewUrl?: string;
|
|
200
201
|
socialMediaPostTitle: string;
|
|
201
202
|
url: string;
|
|
202
203
|
}>;
|
|
@@ -265,9 +266,15 @@ export const KeyboardShortcutsPane: React.FC<{
|
|
|
265
266
|
type ConfigType = {
|
|
266
267
|
mode?: "default" | "global" | "scoped";
|
|
267
268
|
unbindOnUnmount?: boolean;
|
|
269
|
+
enabled?: boolean;
|
|
268
270
|
};
|
|
269
271
|
export function useHotKeys(
|
|
270
272
|
hotkey: string,
|
|
271
273
|
handler: () => void,
|
|
272
274
|
config?: ConfigType
|
|
273
275
|
): React.MutableRefObject | null;
|
|
276
|
+
|
|
277
|
+
export function useKeyboardShortcutsPaneState(): [
|
|
278
|
+
boolean,
|
|
279
|
+
React.Dispatch<React.SetStateAction<boolean>>
|
|
280
|
+
];
|