@neo4j-ndl/react 2.0.0 → 2.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 42a28fc: rename datagrid-types file to be included in the tsc build properly
8
+
3
9
  ## 2.0.0
4
10
 
5
11
  ### Major Changes
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ Object.defineProperty(exports, "__esModule", { value: true });
23
+ // eslint-disable-next-line import/no-duplicates
24
+ require("@tanstack/react-table");
25
+ //# sourceMappingURL=datagrid-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"datagrid-types.js","sourceRoot":"","sources":["../../../src/data-grid/datagrid-types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;AAKH,gDAAgD;AAChD,iCAA+B"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ // eslint-disable-next-line import/no-duplicates
22
+ import '@tanstack/react-table';
23
+ //# sourceMappingURL=datagrid-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"datagrid-types.js","sourceRoot":"","sources":["../../../src/data-grid/datagrid-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAKH,gDAAgD;AAChD,OAAO,uBAAuB,CAAC"}
@@ -63,6 +63,7 @@ interface StandardMenuItemProps extends Omit<ElementBase, 'title' | 'onClick' |
63
63
  /** Enforces no children on standard menu item. Overridden by nested menu item*/
64
64
  children?: never;
65
65
  }
66
+ export type MenuItemProps = StandardMenuItemProps | NestedMenuItemProps;
66
67
  declare const StandardMenuItem: React.ForwardRefExoticComponent<Omit<StandardMenuItemProps, "ref"> & React.RefAttributes<unknown>>;
67
68
  interface MenuHeaderProps extends Omit<ElementBase, 'title'> {
68
69
  /** Header title text */
@@ -0,0 +1,47 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ import { type RowData } from '@tanstack/react-table';
22
+ import { type MenuItemProps } from '../context-menu';
23
+ import '@tanstack/react-table';
24
+ export type ColumnAction = MenuItemProps;
25
+ export type RowAction = MenuItemProps;
26
+ declare module '@tanstack/table-core' {
27
+ interface ColumnMeta<TData extends RowData, TValue> {
28
+ columnActions?: {
29
+ /**
30
+ * Prepends two default sorting actions to the column.
31
+ * Should be disabled for columns that are sorted on server side.
32
+ */
33
+ defaultSortingActions?: boolean;
34
+ /** Column actions that will be rendered in order */
35
+ actions?: ColumnAction[];
36
+ /** Callback for consumer to delegate task like polling */
37
+ onOpenChange?: (isOpen: boolean) => void;
38
+ };
39
+ /** If the column is an action column, including action array is mandatory */
40
+ isActionCell?: {
41
+ /** Column actions that will be rendered in order */
42
+ actions: RowAction[];
43
+ /** Callback for consumer to delegate tasks like polling */
44
+ onOpenChange?: (isOpen: boolean) => void;
45
+ };
46
+ }
47
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo4j-ndl/react",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "sideEffects": false,
5
5
  "description": "React implementation of Neo4j Design System",
6
6
  "keywords": [