grep-components 2.7.0 → 2.8.0-GREPF-2633.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.
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { JSX } from 'react';
2
2
  export interface GrepDialogOptions {
3
3
  title: string;
4
4
  content: React.ReactNode;
@@ -1,17 +1,17 @@
1
- import React from 'react';
1
+ import { JSX } from 'react';
2
2
  declare const _default: {
3
3
  title: string;
4
- decorators: ((storyFn: any) => React.JSX.Element)[];
4
+ decorators: ((storyFn: any) => JSX.Element)[];
5
5
  };
6
6
  export default _default;
7
7
  export declare const Standard: {
8
- (): React.JSX.Element;
8
+ (): JSX.Element;
9
9
  story: {
10
10
  name: string;
11
11
  };
12
12
  };
13
13
  export declare const WithCustomActions: {
14
- (): React.JSX.Element;
14
+ (): JSX.Element;
15
15
  story: {
16
16
  name: string;
17
17
  };
@@ -1,3 +1,3 @@
1
- import { DOMExportOutput, KlassConstructor, LexicalEditor, LexicalNode } from 'lexical';
2
- export declare const htmlExportMap: Map<KlassConstructor<typeof LexicalNode>, (editor: LexicalEditor, target: LexicalNode) => DOMExportOutput>;
1
+ import { DOMExportOutputMap } from 'lexical';
2
+ export declare const htmlExportMap: DOMExportOutputMap;
3
3
  export declare function ApplyFormatting(element: HTMLElement, formatting: Record<string, boolean>): HTMLElement;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { FC } from 'react';
8
+ import { FC, JSX } from 'react';
9
9
  import { Button } from '../buttons';
10
10
  import { ToolbarProperties } from '../../entities';
11
11
  export default function FloatingTextFormatToolbarPlugin({ anchorElem, buttons, CustomToolbar, }: {
@@ -18,7 +18,7 @@ export interface Properties {
18
18
  disableNewlines?: boolean;
19
19
  stripPastedStyles?: boolean;
20
20
  blockPasting?: boolean;
21
- editorRef?: RefObject<LexicalEditor>;
21
+ editorRef?: RefObject<LexicalEditor | null | undefined>;
22
22
  /**
23
23
  * Undefined: allow all styles.
24
24
  * Empty array: disable all styles.
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { JSX } from 'react';
2
2
  import { TableProps } from '@mui/material/Table';
3
3
  import { TableCellProps } from '@mui/material/TableCell';
4
4
  import GrepTableRow from './components/grep-table-row';
@@ -69,6 +69,6 @@ export declare const useStyles: (params: StyleProps, muiStyleOverridesParams?: {
69
69
  * @todo enhance page handling
70
70
  *
71
71
  */
72
- export declare const GrepTable: <T>({ placeholderText, dropdownItems, isRowDisabled, pagination, outlined, columns, header, data, onSelectedRowChange, sortBy, sortDirection, onSortBy, onRowClick, size, caption, stickyHeader, padding, disableSelectOnClick, menuButtonLabel, underlineOnFocus, rowTabIndex, rowStyle, rowsPerPageOptions, ...props }: GrepTableProps<T>) => React.JSX.Element;
72
+ export declare const GrepTable: <T>({ placeholderText, dropdownItems, isRowDisabled, pagination, outlined, columns, header, data, onSelectedRowChange, sortBy, sortDirection, onSortBy, onRowClick, size, caption, stickyHeader, padding, disableSelectOnClick, menuButtonLabel, underlineOnFocus, rowTabIndex, rowStyle, rowsPerPageOptions, ...props }: GrepTableProps<T>) => JSX.Element;
73
73
  export { GrepTableRow };
74
74
  export default GrepTable;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { JSX } from 'react';
2
2
  import { TableCellProps } from '@mui/material/TableCell';
3
3
  export interface Properties extends TableCellProps {
4
4
  locked: boolean;
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { CellNode } from '..';
2
3
  interface Properties<T> {
3
4
  id: string | number;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { ReactNode, JSX } from 'react';
2
2
  import { TableCellProps } from '@mui/material/TableCell';
3
3
  export interface CellNode {
4
4
  value: ReactNode;