@dxos/react-ui-grid 0.8.4-main.b97322e → 0.8.4-main.f5c0578
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/dist/lib/browser/index.mjs.map +2 -2
- package/dist/lib/browser/meta.json +1 -1
- package/dist/types/src/CellEditor/CellEditor.d.ts +1 -1
- package/dist/types/src/CellEditor/CellEditor.d.ts.map +1 -1
- package/dist/types/src/CellEditor/GridCellEditor.d.ts +1 -1
- package/dist/types/src/CellEditor/GridCellEditor.d.ts.map +1 -1
- package/dist/types/src/Grid/Grid.d.ts.map +1 -1
- package/dist/types/src/Grid/Grid.stories.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +12 -11
- package/src/CellEditor/CellEditor.tsx +1 -1
- package/src/CellEditor/GridCellEditor.tsx +2 -1
- package/src/Grid/Grid.stories.tsx +1 -1
- package/src/Grid/Grid.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-ui-grid",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.f5c0578",
|
|
4
4
|
"description": "React component which manages a `dx-grid` Lit web component.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"type": "module",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
|
+
"source": "./src/index.ts",
|
|
13
14
|
"types": "./dist/types/src/index.d.ts",
|
|
14
15
|
"browser": "./dist/lib/browser/index.mjs"
|
|
15
16
|
}
|
|
@@ -31,9 +32,9 @@
|
|
|
31
32
|
"@radix-ui/react-context": "1.1.1",
|
|
32
33
|
"@radix-ui/react-popper": "1.2.2",
|
|
33
34
|
"@radix-ui/react-use-controllable-state": "1.1.0",
|
|
34
|
-
"@dxos/lit-grid": "0.8.4-main.
|
|
35
|
-
"@dxos/util": "0.8.4-main.
|
|
36
|
-
"@dxos/react-ui-editor": "0.8.4-main.
|
|
35
|
+
"@dxos/lit-grid": "0.8.4-main.f5c0578",
|
|
36
|
+
"@dxos/util": "0.8.4-main.f5c0578",
|
|
37
|
+
"@dxos/react-ui-editor": "0.8.4-main.f5c0578"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
40
|
"@types/react": "~18.2.0",
|
|
@@ -41,17 +42,17 @@
|
|
|
41
42
|
"react": "~18.2.0",
|
|
42
43
|
"react-dom": "~18.2.0",
|
|
43
44
|
"vite": "5.4.7",
|
|
44
|
-
"@dxos/random": "0.8.4-main.
|
|
45
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
46
|
-
"@dxos/react-ui-searchlist": "0.8.4-main.
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
45
|
+
"@dxos/random": "0.8.4-main.f5c0578",
|
|
46
|
+
"@dxos/react-ui": "0.8.4-main.f5c0578",
|
|
47
|
+
"@dxos/react-ui-searchlist": "0.8.4-main.f5c0578",
|
|
48
|
+
"@dxos/storybook-utils": "0.8.4-main.f5c0578",
|
|
49
|
+
"@dxos/react-ui-theme": "0.8.4-main.f5c0578"
|
|
49
50
|
},
|
|
50
51
|
"peerDependencies": {
|
|
51
52
|
"react": "~18.2.0",
|
|
52
53
|
"react-dom": "~18.2.0",
|
|
53
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
54
|
-
"@dxos/react-ui-theme": "0.8.4-main.
|
|
54
|
+
"@dxos/react-ui": "0.8.4-main.f5c0578",
|
|
55
|
+
"@dxos/react-ui-theme": "0.8.4-main.f5c0578"
|
|
55
56
|
},
|
|
56
57
|
"publishConfig": {
|
|
57
58
|
"access": "public"
|
|
@@ -9,12 +9,12 @@ import React, { type KeyboardEvent } from 'react';
|
|
|
9
9
|
|
|
10
10
|
import { useThemeContext } from '@dxos/react-ui';
|
|
11
11
|
import {
|
|
12
|
+
type ThemeExtensionsOptions,
|
|
12
13
|
type UseTextEditorProps,
|
|
13
14
|
createBasicExtensions,
|
|
14
15
|
createThemeExtensions,
|
|
15
16
|
preventNewline,
|
|
16
17
|
useTextEditor,
|
|
17
|
-
type ThemeExtensionsOptions,
|
|
18
18
|
} from '@dxos/react-ui-editor';
|
|
19
19
|
import { mx } from '@dxos/react-ui-theme';
|
|
20
20
|
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import React, { useCallback } from 'react';
|
|
6
6
|
|
|
7
|
+
import { type DxGridCellIndex, type GridScopedProps, useGridContext } from '../Grid';
|
|
8
|
+
|
|
7
9
|
import { CellEditor, type CellEditorProps } from './CellEditor';
|
|
8
|
-
import { type GridScopedProps, useGridContext, type DxGridCellIndex } from '../Grid';
|
|
9
10
|
|
|
10
11
|
export type GridCellEditorProps = GridScopedProps<
|
|
11
12
|
Pick<CellEditorProps, 'extension' | 'onBlur' | 'slots'> & {
|
|
@@ -13,7 +13,7 @@ import { DropdownMenu } from '@dxos/react-ui';
|
|
|
13
13
|
import { PopoverCombobox, type PopoverComboboxRootProps } from '@dxos/react-ui-searchlist';
|
|
14
14
|
import { withTheme } from '@dxos/storybook-utils';
|
|
15
15
|
|
|
16
|
-
import { Grid, type
|
|
16
|
+
import { Grid, type GridContentProps, type GridEditing, type GridRootProps } from './Grid';
|
|
17
17
|
|
|
18
18
|
const storybookItems = faker.helpers.uniqueArray(faker.commerce.productName, 16);
|
|
19
19
|
|
package/src/Grid/Grid.tsx
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import '@dxos/lit-grid/dx-grid.pcss';
|
|
6
6
|
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { type EventName, createComponent } from '@lit/react';
|
|
8
|
+
import { type Scope, createContextScope } from '@radix-ui/react-context';
|
|
9
9
|
import { useControllableState } from '@radix-ui/react-use-controllable-state';
|
|
10
10
|
import React, {
|
|
11
11
|
type ComponentProps,
|