@neo4j-ndl/react 4.14.5 → 4.15.0
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/lib/cjs/ai/preview/Preview.js +5 -0
- package/lib/cjs/ai/preview/Preview.js.map +1 -1
- package/lib/cjs/ai/preview/stories/index.js +9 -1
- package/lib/cjs/ai/preview/stories/index.js.map +1 -1
- package/lib/cjs/ai/preview/stories/preview-simple-with-content.story.js +34 -0
- package/lib/cjs/ai/preview/stories/preview-simple-with-content.story.js.map +1 -0
- package/lib/cjs/ai/preview/stories/preview-simple.story.js +33 -0
- package/lib/cjs/ai/preview/stories/preview-simple.story.js.map +1 -0
- package/lib/cjs/ai/prompt/Prompt.js +4 -14
- package/lib/cjs/ai/prompt/Prompt.js.map +1 -1
- package/lib/cjs/ai/prompt/stories/index.js +5 -1
- package/lib/cjs/ai/prompt/stories/index.js.map +1 -1
- package/lib/cjs/ai/prompt/stories/prompt-advanced.story.js +1 -1
- package/lib/cjs/ai/prompt/stories/prompt-advanced.story.js.map +1 -1
- package/lib/cjs/ai/prompt/stories/prompt-header.story.js +39 -0
- package/lib/cjs/ai/prompt/stories/prompt-header.story.js.map +1 -0
- package/lib/cjs/ai/response/Response.js +23 -22
- package/lib/cjs/ai/response/Response.js.map +1 -1
- package/lib/cjs/ai/response/stories/response-all-components.story.js +2 -0
- package/lib/cjs/ai/response/stories/response-all-components.story.js.map +1 -1
- package/lib/cjs/data-grid/Components.js +25 -10
- package/lib/cjs/data-grid/Components.js.map +1 -1
- package/lib/cjs/data-grid/datagrid-types.js.map +1 -1
- package/lib/cjs/data-grid/stories/datagrid-in-dialog.story.js +1 -0
- package/lib/cjs/data-grid/stories/datagrid-in-dialog.story.js.map +1 -1
- package/lib/cjs/data-grid/stories/datagrid-using-editable-cells.story.js +145 -52
- package/lib/cjs/data-grid/stories/datagrid-using-editable-cells.story.js.map +1 -1
- package/lib/esm/ai/preview/Preview.js +5 -0
- package/lib/esm/ai/preview/Preview.js.map +1 -1
- package/lib/esm/ai/preview/stories/index.js +6 -0
- package/lib/esm/ai/preview/stories/index.js.map +1 -1
- package/lib/esm/ai/preview/stories/preview-simple-with-content.story.js +32 -0
- package/lib/esm/ai/preview/stories/preview-simple-with-content.story.js.map +1 -0
- package/lib/esm/ai/preview/stories/preview-simple.story.js +31 -0
- package/lib/esm/ai/preview/stories/preview-simple.story.js.map +1 -0
- package/lib/esm/ai/prompt/Prompt.js +6 -16
- package/lib/esm/ai/prompt/Prompt.js.map +1 -1
- package/lib/esm/ai/prompt/stories/index.js +3 -0
- package/lib/esm/ai/prompt/stories/index.js.map +1 -1
- package/lib/esm/ai/prompt/stories/prompt-advanced.story.js +1 -1
- package/lib/esm/ai/prompt/stories/prompt-advanced.story.js.map +1 -1
- package/lib/esm/ai/prompt/stories/prompt-header.story.js +37 -0
- package/lib/esm/ai/prompt/stories/prompt-header.story.js.map +1 -0
- package/lib/esm/ai/response/Response.js +23 -22
- package/lib/esm/ai/response/Response.js.map +1 -1
- package/lib/esm/ai/response/stories/response-all-components.story.js +2 -0
- package/lib/esm/ai/response/stories/response-all-components.story.js.map +1 -1
- package/lib/esm/data-grid/Components.js +25 -10
- package/lib/esm/data-grid/Components.js.map +1 -1
- package/lib/esm/data-grid/datagrid-types.js.map +1 -1
- package/lib/esm/data-grid/stories/datagrid-in-dialog.story.js +1 -0
- package/lib/esm/data-grid/stories/datagrid-in-dialog.story.js.map +1 -1
- package/lib/esm/data-grid/stories/datagrid-using-editable-cells.story.js +147 -54
- package/lib/esm/data-grid/stories/datagrid-using-editable-cells.story.js.map +1 -1
- package/lib/types/ai/preview/Preview.d.ts +4 -0
- package/lib/types/ai/preview/Preview.d.ts.map +1 -1
- package/lib/types/ai/preview/stories/index.d.ts +4 -0
- package/lib/types/ai/preview/stories/index.d.ts.map +1 -1
- package/lib/types/ai/preview/stories/preview-simple-with-content.story.d.ts +24 -0
- package/lib/types/ai/preview/stories/preview-simple-with-content.story.d.ts.map +1 -0
- package/lib/types/ai/preview/stories/preview-simple.story.d.ts +24 -0
- package/lib/types/ai/preview/stories/preview-simple.story.d.ts.map +1 -0
- package/lib/types/ai/prompt/Prompt.d.ts +6 -2
- package/lib/types/ai/prompt/Prompt.d.ts.map +1 -1
- package/lib/types/ai/prompt/stories/index.d.ts +2 -0
- package/lib/types/ai/prompt/stories/index.d.ts.map +1 -1
- package/lib/types/ai/prompt/stories/prompt-advanced.story.d.ts.map +1 -1
- package/lib/types/ai/prompt/stories/prompt-header.story.d.ts +24 -0
- package/lib/types/ai/prompt/stories/prompt-header.story.d.ts.map +1 -0
- package/lib/types/ai/response/Response.d.ts.map +1 -1
- package/lib/types/ai/response/stories/response-all-components.story.d.ts.map +1 -1
- package/lib/types/data-grid/Components.d.ts +16 -1
- package/lib/types/data-grid/Components.d.ts.map +1 -1
- package/lib/types/data-grid/DataGrid.d.ts +10 -1
- package/lib/types/data-grid/DataGrid.d.ts.map +1 -1
- package/lib/types/data-grid/datagrid-types.d.ts +11 -1
- package/lib/types/data-grid/datagrid-types.d.ts.map +1 -1
- package/lib/types/data-grid/stories/datagrid-in-dialog.story.d.ts.map +1 -1
- package/lib/types/data-grid/stories/datagrid-pinned-columns.stories.d.ts +10 -1
- package/lib/types/data-grid/stories/datagrid-pinned-columns.stories.d.ts.map +1 -1
- package/lib/types/data-grid/stories/datagrid-search-and-filters.stories.d.ts +10 -1
- package/lib/types/data-grid/stories/datagrid-search-and-filters.stories.d.ts.map +1 -1
- package/lib/types/data-grid/stories/datagrid-using-editable-cells.story.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -49,7 +49,17 @@ declare module '@tanstack/react-table' {
|
|
|
49
49
|
onEditChange: (newValue: string, cell: CellContext<TData, TValue>) => void;
|
|
50
50
|
};
|
|
51
51
|
isDropDownCell?: {
|
|
52
|
-
|
|
52
|
+
/**
|
|
53
|
+
* Whether multiple options can be selected.
|
|
54
|
+
* When `true`, the column's value should be an array of values.
|
|
55
|
+
*/
|
|
56
|
+
isMulti?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Called when the selection changes. For array-valued (multi-select) columns
|
|
59
|
+
* `newValue` is the array of selected values; otherwise it is the selected
|
|
60
|
+
* value, or `undefined` when the selection is cleared.
|
|
61
|
+
*/
|
|
62
|
+
onChange: (newValue: TValue extends string[] ? string[] : string | undefined, cell: CellContext<TData, TValue>) => void;
|
|
53
63
|
};
|
|
54
64
|
}
|
|
55
65
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datagrid-types.d.ts","sourceRoot":"","sources":["../../../src/data-grid/datagrid-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,uBAAuB,CAAC;AAE/B,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEvE,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACzB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,MAAM,YAAY,GAAG,aAAa,CAAC;AACzC,MAAM,MAAM,SAAS,GAAG,aAAa,CAAC;AAEtC,OAAO,QAAQ,uBAAuB,CAAC;IACrC,UAAU,UAAU,CAAC,KAAK,SAAS,OAAO,EAAE,MAAM;QAChD,aAAa,CAAC,EAAE;YACd;;;eAGG;YACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;YACnC,oDAAoD;YACpD,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;YACzB,0DAA0D;YAC1D,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;SAC1C,CAAC;QACF,6EAA6E;QAC7E,YAAY,CAAC,EAAE;YACb,oDAAoD;YACpD,OAAO,EAAE,CAAC;gBACR,OAAO,CAAC,EAAE,CACR,KAAK,EACD,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,GACzC,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,EACpC,IAAI,EAAE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AY,CAAC,EAAE;YACb,oDAAoD;YACpD,OAAO,EAAE,CAAC;gBACR,OAAO,CAAC,EAAE,CACR,KAAK,EACD,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,GACzC,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,EACpC,IAAI,EAAE,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,KAC7B,IAAI,CAAC;aACX,GAAG,CACA,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GACpC,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,CACjC,CAAC,EAAE,CAAC;YACL,2DAA2D;YAC3D,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;SAC1C,CAAC;QACF,gBAAgB,CAAC,EAAE;YACjB,YAAY,EAAE,CACZ,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,KAC7B,IAAI,CAAC;SACX,CAAC;QACF,cAAc,CAAC,EAAE;YACf;;;eAGG;YACH,OAAO,CAAC,EAAE,OAAO,CAAC;YAClB;;;;eAIG;YACH,QAAQ,EAAE,CACR,QAAQ,EAAE,MAAM,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,EACjE,IAAI,EAAE,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,KAC7B,IAAI,CAAC;SACX,CAAC;KACH;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datagrid-in-dialog.story.d.ts","sourceRoot":"","sources":["../../../../src/data-grid/stories/datagrid-in-dialog.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAyFjD,QAAA,MAAM,SAAS,+
|
|
1
|
+
{"version":3,"file":"datagrid-in-dialog.story.d.ts","sourceRoot":"","sources":["../../../../src/data-grid/stories/datagrid-in-dialog.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAyFjD,QAAA,MAAM,SAAS,+CA8Ld,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -41,7 +41,7 @@ declare const _default: {
|
|
|
41
41
|
cell: import("@tanstack/react-table").Header<T, unknown>;
|
|
42
42
|
children?: React.ReactNode;
|
|
43
43
|
}>) => import("react/jsx-runtime").JSX.Element | null;
|
|
44
|
-
DropDownCell: <T extends import("@tanstack/react-table").RowData>({ cell, options, portalTarget: portalTargetProp, ariaLabel, className, style, htmlAttributes, ref: forwardRef, isDisabled, ...restProps }: import("../../_common/types").CommonProps<"div", {
|
|
44
|
+
DropDownCell: <T extends import("@tanstack/react-table").RowData>({ cell, options, portalTarget: portalTargetProp, ariaLabel, className, style, htmlAttributes, ref: forwardRef, isDisabled, errorText, helpText, components, ...restProps }: import("../../_common/types").CommonProps<"div", {
|
|
45
45
|
cell: import("@tanstack/react-table").CellContext<T, unknown>;
|
|
46
46
|
options: {
|
|
47
47
|
value: string;
|
|
@@ -50,6 +50,15 @@ declare const _default: {
|
|
|
50
50
|
portalTarget?: HTMLElement | null;
|
|
51
51
|
ariaLabel: string;
|
|
52
52
|
isDisabled?: boolean;
|
|
53
|
+
errorText?: string | React.ReactNode;
|
|
54
|
+
helpText?: string | React.ReactNode;
|
|
55
|
+
components?: import("react-select").SelectComponentsConfig<{
|
|
56
|
+
value: string;
|
|
57
|
+
label: string;
|
|
58
|
+
}, boolean, import("react-select").GroupBase<{
|
|
59
|
+
value: string;
|
|
60
|
+
label: string;
|
|
61
|
+
}>>;
|
|
53
62
|
}>) => import("react/jsx-runtime").JSX.Element | null;
|
|
54
63
|
Header: ({ children, className, style, htmlAttributes, ref, ...restProps }: import("../../_common/types").CommonProps<"div", {
|
|
55
64
|
children?: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datagrid-pinned-columns.stories.d.ts","sourceRoot":"","sources":["../../../../src/data-grid/stories/datagrid-pinned-columns.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC
|
|
1
|
+
{"version":3,"file":"datagrid-pinned-columns.stories.d.ts","sourceRoot":"","sources":["../../../../src/data-grid/stories/datagrid-pinned-columns.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUjD,wBAQE;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAkLF,eAAO,MAAM,eAAe,+CAgC3B,CAAC;AAEF,eAAO,MAAM,cAAc,+CA6B1B,CAAC;AAEF,eAAO,MAAM,eAAe,+CA+B3B,CAAC"}
|
|
@@ -41,7 +41,7 @@ declare const _default: {
|
|
|
41
41
|
cell: import("@tanstack/react-table").Header<T, unknown>;
|
|
42
42
|
children?: React.ReactNode;
|
|
43
43
|
}>) => import("react/jsx-runtime").JSX.Element | null;
|
|
44
|
-
DropDownCell: <T extends import("@tanstack/react-table").RowData>({ cell, options, portalTarget: portalTargetProp, ariaLabel, className, style, htmlAttributes, ref: forwardRef, isDisabled, ...restProps }: import("../../_common/types").CommonProps<"div", {
|
|
44
|
+
DropDownCell: <T extends import("@tanstack/react-table").RowData>({ cell, options, portalTarget: portalTargetProp, ariaLabel, className, style, htmlAttributes, ref: forwardRef, isDisabled, errorText, helpText, components, ...restProps }: import("../../_common/types").CommonProps<"div", {
|
|
45
45
|
cell: import("@tanstack/react-table").CellContext<T, unknown>;
|
|
46
46
|
options: {
|
|
47
47
|
value: string;
|
|
@@ -50,6 +50,15 @@ declare const _default: {
|
|
|
50
50
|
portalTarget?: HTMLElement | null;
|
|
51
51
|
ariaLabel: string;
|
|
52
52
|
isDisabled?: boolean;
|
|
53
|
+
errorText?: string | React.ReactNode;
|
|
54
|
+
helpText?: string | React.ReactNode;
|
|
55
|
+
components?: import("react-select").SelectComponentsConfig<{
|
|
56
|
+
value: string;
|
|
57
|
+
label: string;
|
|
58
|
+
}, boolean, import("react-select").GroupBase<{
|
|
59
|
+
value: string;
|
|
60
|
+
label: string;
|
|
61
|
+
}>>;
|
|
53
62
|
}>) => import("react/jsx-runtime").JSX.Element | null;
|
|
54
63
|
Header: ({ children, className, style, htmlAttributes, ref, ...restProps }: import("../../_common/types").CommonProps<"div", {
|
|
55
64
|
children?: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datagrid-search-and-filters.stories.d.ts","sourceRoot":"","sources":["../../../../src/data-grid/stories/datagrid-search-and-filters.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC
|
|
1
|
+
{"version":3,"file":"datagrid-search-and-filters.stories.d.ts","sourceRoot":"","sources":["../../../../src/data-grid/stories/datagrid-search-and-filters.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCjD,wBAQE;AA+CF,eAAO,MAAM,UAAU,+CA8MtB,CAAC;AAEF,eAAO,MAAM,eAAe,+CAkF3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datagrid-using-editable-cells.story.d.ts","sourceRoot":"","sources":["../../../../src/data-grid/stories/datagrid-using-editable-cells.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"datagrid-using-editable-cells.story.d.ts","sourceRoot":"","sources":["../../../../src/data-grid/stories/datagrid-using-editable-cells.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAyHjD,QAAA,MAAM,SAAS,+CA4Kd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neo4j-ndl/react",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.15.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "React implementation of Neo4j Design System",
|
|
6
6
|
"keywords": [
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@tanstack/react-table": "8.21.3",
|
|
89
89
|
"react": ">=19.0.0",
|
|
90
90
|
"react-dom": ">=19.0.0",
|
|
91
|
-
"@neo4j-ndl/base": "^4.14.
|
|
91
|
+
"@neo4j-ndl/base": "^4.14.2"
|
|
92
92
|
},
|
|
93
93
|
"dependencies": {
|
|
94
94
|
"@dnd-kit/core": "6.3.1",
|