@dxos/react-ui-grid 0.8.0 → 0.8.1-main.a06ad20

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,5 +1,5 @@
1
1
  import { type Extension } from '@codemirror/state';
2
- import { type KeyboardEvent } from 'react';
2
+ import React, { type KeyboardEvent } from 'react';
3
3
  import { type UseTextEditorProps } from '@dxos/react-ui-editor';
4
4
  import { type GridEditBox } from '../Grid';
5
5
  export type EditorKeyEvent = Pick<KeyboardEvent<HTMLInputElement>, 'key'> & {
@@ -21,5 +21,5 @@ export type CellEditorProps = {
21
21
  } & Pick<UseTextEditorProps, 'autoFocus'> & {
22
22
  onBlur?: EditorBlurHandler;
23
23
  };
24
- export declare const CellEditor: ({ value, extension, autoFocus, onBlur, box, gridId }: CellEditorProps) => import("react/jsx-runtime").JSX.Element;
24
+ export declare const CellEditor: ({ value, extension, autoFocus, onBlur, box, gridId }: CellEditorProps) => React.JSX.Element;
25
25
  //# sourceMappingURL=CellEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CellEditor.d.ts","sourceRoot":"","sources":["../../../../src/CellEditor/CellEditor.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAc,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAGlD,OAAO,EACL,KAAK,kBAAkB,EAKxB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,EAAE,KAAK,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEhG,MAAM,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;AA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EAAE,MAAM,GAAG,SAAS,EAAE,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;AAC1F,MAAM,MAAM,iBAAiB,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;AACpE,MAAM,MAAM,sBAAsB,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,KAAK,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;AAEjG,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,gBAAgB,CAAC;IAC1B,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAGF,eAAO,MAAM,UAAU,uBAAwB,eAAe,KAAG,SAgFhE,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,GAAG,CAAC,EAAE,WAAW,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,IAAI,CAAC,kBAAkB,EAAE,WAAW,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,iBAAiB,CAAA;CAAE,CAAC;AAE3E,eAAO,MAAM,UAAU,yDAA0D,eAAe,sBA4C/F,CAAC"}
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import { type CellEditorProps } from './CellEditor';
2
3
  import { type GridScopedProps, type DxGridCellIndex } from '../Grid';
3
4
  export type GridCellEditorProps = GridScopedProps<Pick<CellEditorProps, 'extension' | 'onBlur'> & {
4
5
  getCellContent: (index: DxGridCellIndex) => string | undefined;
5
6
  }>;
6
- export declare const GridCellEditor: ({ extension, getCellContent, onBlur, __gridScope }: GridCellEditorProps) => import("react/jsx-runtime").JSX.Element | null;
7
+ export declare const GridCellEditor: ({ extension, getCellContent, onBlur, __gridScope }: GridCellEditorProps) => React.JSX.Element | null;
7
8
  //# sourceMappingURL=GridCellEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GridCellEditor.d.ts","sourceRoot":"","sources":["../../../../src/CellEditor/GridCellEditor.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,KAAK,eAAe,EAAkB,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AAErF,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAC/C,IAAI,CAAC,eAAe,EAAE,WAAW,GAAG,QAAQ,CAAC,GAAG;IAAE,cAAc,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,MAAM,GAAG,SAAS,CAAA;CAAE,CACnH,CAAC;AAEF,eAAO,MAAM,cAAc,uDAAwD,mBAAmB,mDAqBrG,CAAC"}
1
+ {"version":3,"file":"GridCellEditor.d.ts","sourceRoot":"","sources":["../../../../src/CellEditor/GridCellEditor.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,KAAK,eAAe,EAAkB,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AAErF,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAC/C,IAAI,CAAC,eAAe,EAAE,WAAW,GAAG,QAAQ,CAAC,GAAG;IAAE,cAAc,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,MAAM,GAAG,SAAS,CAAA;CAAE,CACnH,CAAC;AAEF,eAAO,MAAM,cAAc,uDAAwD,mBAAmB,6BAqBrG,CAAC"}
@@ -34,7 +34,7 @@ type GridRootProps = PropsWithChildren<{
34
34
  onEditingChange: (nextEditing: GridEditing) => void;
35
35
  }>>;
36
36
  declare const GridRoot: {
37
- ({ id, editing: propsEditing, defaultEditing, onEditingChange, children, __gridScope, }: GridScopedProps<GridRootProps>): import("react/jsx-runtime").JSX.Element;
37
+ ({ id, editing: propsEditing, defaultEditing, onEditingChange, children, __gridScope, }: GridScopedProps<GridRootProps>): React.JSX.Element;
38
38
  displayName: string;
39
39
  };
40
40
  type GridContentProps = Omit<ComponentProps<typeof DxGrid>, 'onEdit'> & {
@@ -44,7 +44,7 @@ type GridContentProps = Omit<ComponentProps<typeof DxGrid>, 'onEdit'> & {
44
44
  declare const GridContent: React.ForwardRefExoticComponent<Omit<GridScopedProps<GridContentProps>, "ref"> & React.RefAttributes<NaturalDxGrid>>;
45
45
  export declare const Grid: {
46
46
  Root: {
47
- ({ id, editing: propsEditing, defaultEditing, onEditingChange, children, __gridScope, }: GridScopedProps<GridRootProps>): import("react/jsx-runtime").JSX.Element;
47
+ ({ id, editing: propsEditing, defaultEditing, onEditingChange, children, __gridScope, }: GridScopedProps<GridRootProps>): React.JSX.Element;
48
48
  displayName: string;
49
49
  };
50
50
  Content: React.ForwardRefExoticComponent<Omit<GridScopedProps<GridContentProps>, "ref"> & React.RefAttributes<NaturalDxGrid>>;
@@ -1,11 +1,12 @@
1
1
  import '@dxos-theme';
2
2
  import { type StoryObj } from '@storybook/react';
3
+ import React from 'react';
3
4
  import { type GridContentProps, type GridRootProps } from './Grid';
4
5
  export { defaultSizeCol, defaultSizeRow } from '@dxos/lit-grid';
5
6
  type StoryGridProps = GridContentProps & Pick<GridRootProps, 'onEditingChange'>;
6
7
  declare const _default: {
7
8
  title: string;
8
- component: ({ onEditingChange, ...props }: StoryGridProps) => import("react/jsx-runtime").JSX.Element;
9
+ component: ({ onEditingChange, ...props }: StoryGridProps) => React.JSX.Element;
9
10
  decorators: import("@storybook/react").Decorator[];
10
11
  parameters: {
11
12
  layout: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Grid.stories.d.ts","sourceRoot":"","sources":["../../../../src/Grid/Grid.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AASjD,OAAO,EAAQ,KAAK,gBAAgB,EAAE,KAAK,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEzE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhE,KAAK,cAAc,GAAG,gBAAgB,GAAG,IAAI,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAC;;;+CAiB9B,cAAc;;;;;;AAiEhE,wBAKE;AAEF,eAAO,MAAM,KAAK,EAAE,QAAQ,CAAC,cAAc,CA+B1C,CAAC"}
1
+ {"version":3,"file":"Grid.stories.d.ts","sourceRoot":"","sources":["../../../../src/Grid/Grid.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAgF,MAAM,OAAO,CAAC;AAQrG,OAAO,EAAQ,KAAK,gBAAgB,EAAE,KAAK,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEzE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhE,KAAK,cAAc,GAAG,gBAAgB,GAAG,IAAI,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAC;;;+CAiB9B,cAAc;;;;;;AAiEhE,wBAKE;AAEF,eAAO,MAAM,KAAK,EAAE,QAAQ,CAAC,cAAc,CA+B1C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/react-ui-grid",
3
- "version": "0.8.0",
3
+ "version": "0.8.1-main.a06ad20",
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",
@@ -30,9 +30,9 @@
30
30
  "@radix-ui/react-context": "1.1.1",
31
31
  "@radix-ui/react-popper": "1.2.2",
32
32
  "@radix-ui/react-use-controllable-state": "1.1.0",
33
- "@dxos/lit-grid": "0.8.0",
34
- "@dxos/react-ui-editor": "0.8.0",
35
- "@dxos/util": "0.8.0"
33
+ "@dxos/react-ui-editor": "0.8.1-main.a06ad20",
34
+ "@dxos/util": "0.8.1-main.a06ad20",
35
+ "@dxos/lit-grid": "0.8.1-main.a06ad20"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/react": "~18.2.0",
@@ -40,17 +40,17 @@
40
40
  "react": "~18.2.0",
41
41
  "react-dom": "~18.2.0",
42
42
  "vite": "5.4.7",
43
- "@dxos/random": "0.8.0",
44
- "@dxos/react-ui": "0.8.0",
45
- "@dxos/react-ui-searchlist": "0.8.0",
46
- "@dxos/react-ui-theme": "0.8.0",
47
- "@dxos/storybook-utils": "0.8.0"
43
+ "@dxos/random": "0.8.1-main.a06ad20",
44
+ "@dxos/react-ui-searchlist": "0.8.1-main.a06ad20",
45
+ "@dxos/react-ui": "0.8.1-main.a06ad20",
46
+ "@dxos/react-ui-theme": "0.8.1-main.a06ad20",
47
+ "@dxos/storybook-utils": "0.8.1-main.a06ad20"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "react": "~18.2.0",
51
51
  "react-dom": "~18.2.0",
52
- "@dxos/react-ui": "0.8.0",
53
- "@dxos/react-ui-theme": "0.8.0"
52
+ "@dxos/react-ui": "0.8.1-main.a06ad20",
53
+ "@dxos/react-ui-theme": "0.8.1-main.a06ad20"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public"