@dxos/react-ui-table 0.7.5-labs.c0e040f → 0.7.5-labs.d199c0f

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.
Files changed (62) hide show
  1. package/dist/lib/browser/index.mjs +6 -2
  2. package/dist/lib/browser/index.mjs.map +3 -3
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/lib/node/index.cjs +6 -2
  5. package/dist/lib/node/index.cjs.map +3 -3
  6. package/dist/lib/node/meta.json +1 -1
  7. package/dist/lib/node-esm/index.mjs +6 -2
  8. package/dist/lib/node-esm/index.mjs.map +3 -3
  9. package/dist/lib/node-esm/meta.json +1 -1
  10. package/dist/types/src/_deprecated/components/Cell/Cell.d.ts +2 -2
  11. package/dist/types/src/_deprecated/components/Cell/Cell.d.ts.map +1 -1
  12. package/dist/types/src/_deprecated/components/Cell/CellCombobox.d.ts +1 -2
  13. package/dist/types/src/_deprecated/components/Cell/CellCombobox.d.ts.map +1 -1
  14. package/dist/types/src/_deprecated/components/ColumnMenu/ColumnMenu.d.ts +2 -3
  15. package/dist/types/src/_deprecated/components/ColumnMenu/ColumnMenu.d.ts.map +1 -1
  16. package/dist/types/src/_deprecated/components/ColumnMenu/ColumnMenu.stories.d.ts +6 -7
  17. package/dist/types/src/_deprecated/components/ColumnMenu/ColumnMenu.stories.d.ts.map +1 -1
  18. package/dist/types/src/_deprecated/components/ColumnMenu/ColumnSettings.d.ts +1 -2
  19. package/dist/types/src/_deprecated/components/ColumnMenu/ColumnSettings.d.ts.map +1 -1
  20. package/dist/types/src/_deprecated/components/ColumnMenu/ColumnSettings.stories.d.ts +6 -7
  21. package/dist/types/src/_deprecated/components/ColumnMenu/ColumnSettings.stories.d.ts.map +1 -1
  22. package/dist/types/src/_deprecated/components/Table/Table.d.ts +5 -5
  23. package/dist/types/src/_deprecated/components/Table/Table.d.ts.map +1 -1
  24. package/dist/types/src/_deprecated/components/Table/Table.stories.d.ts +8 -9
  25. package/dist/types/src/_deprecated/components/Table/Table.stories.d.ts.map +1 -1
  26. package/dist/types/src/_deprecated/components/Table/TableBody.d.ts +1 -2
  27. package/dist/types/src/_deprecated/components/Table/TableBody.d.ts.map +1 -1
  28. package/dist/types/src/_deprecated/components/Table/TableContext.d.ts +1 -1
  29. package/dist/types/src/_deprecated/components/Table/TableContext.d.ts.map +1 -1
  30. package/dist/types/src/_deprecated/components/Table/TableHead.d.ts +1 -2
  31. package/dist/types/src/_deprecated/components/Table/TableHead.d.ts.map +1 -1
  32. package/dist/types/src/_deprecated/schema/Schema.stories.d.ts +2 -3
  33. package/dist/types/src/_deprecated/schema/Schema.stories.d.ts.map +1 -1
  34. package/dist/types/src/components/Table/ColumnActionsMenu.d.ts +1 -2
  35. package/dist/types/src/components/Table/ColumnActionsMenu.d.ts.map +1 -1
  36. package/dist/types/src/components/Table/ColumnSettings.d.ts +1 -2
  37. package/dist/types/src/components/Table/ColumnSettings.d.ts.map +1 -1
  38. package/dist/types/src/components/Table/CreateRefPanel.d.ts +1 -2
  39. package/dist/types/src/components/Table/CreateRefPanel.d.ts.map +1 -1
  40. package/dist/types/src/components/Table/RefPanel.d.ts +1 -2
  41. package/dist/types/src/components/Table/RefPanel.d.ts.map +1 -1
  42. package/dist/types/src/components/Table/RowActionsMenu.d.ts +1 -2
  43. package/dist/types/src/components/Table/RowActionsMenu.d.ts.map +1 -1
  44. package/dist/types/src/components/Table/Table.d.ts +1 -1
  45. package/dist/types/src/components/TableCellEditor/TableCellEditor.d.ts +1 -2
  46. package/dist/types/src/components/TableCellEditor/TableCellEditor.d.ts.map +1 -1
  47. package/dist/types/src/components/TableToolbar/TableToolbar.d.ts +1 -2
  48. package/dist/types/src/components/TableToolbar/TableToolbar.d.ts.map +1 -1
  49. package/dist/types/src/components/testing.d.ts +11 -10
  50. package/dist/types/src/components/testing.d.ts.map +1 -1
  51. package/dist/types/src/hooks/useTableModel.d.ts.map +1 -1
  52. package/dist/types/src/types/table.d.ts +17 -14
  53. package/dist/types/src/types/table.d.ts.map +1 -1
  54. package/package.json +31 -30
  55. package/src/components/TableCellEditor/TableCellEditor.stories.tsx +1 -1
  56. package/src/hooks/useTableModel.ts +3 -1
  57. package/src/model/table-model.ts +1 -1
  58. package/src/playwright/smoke.spec.ts +3 -3
  59. package/src/util/table.ts +1 -1
  60. package/dist/types/src/playwright/playwright.config.d.ts +0 -3
  61. package/dist/types/src/playwright/playwright.config.d.ts.map +0 -1
  62. /package/src/playwright/{playwright.config.ts → playwright.config.cts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"TableBody.d.ts","sourceRoot":"","sources":["../../../../../../src/_deprecated/components/Table/TableBody.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAc,KAAK,GAAG,EAAE,KAAK,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAqB,MAAM,OAAO,CAAC;AAS1C,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;CACtB,CAAC;AAEF,QAAA,MAAM,SAAS;eAAc,cAAc;;CAwD1C,CAAC;AAIF,OAAO,EAAE,SAAS,EAAE,CAAC;AAErB,YAAY,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"TableBody.d.ts","sourceRoot":"","sources":["../../../../../../src/_deprecated/components/Table/TableBody.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAc,KAAK,GAAG,EAAE,KAAK,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAU3E,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;CACtB,CAAC;AAEF,QAAA,MAAM,SAAS;eAAc,cAAc;;CAwD1C,CAAC;AAIF,OAAO,EAAE,SAAS,EAAE,CAAC;AAErB,YAAY,EAAE,cAAc,EAAE,CAAC"}
@@ -8,6 +8,6 @@ export type TypedTableProvider<TData extends RowData> = {
8
8
  }): JSX.Element;
9
9
  displayName: string;
10
10
  };
11
- export declare const TableProvider: ({ children, ...value }: PropsWithChildren<TableContextValue<RowData>>) => JSX.Element;
11
+ export declare const TableProvider: ({ children, ...value }: PropsWithChildren<TableContextValue<RowData>>) => import("react/jsx-runtime").JSX.Element;
12
12
  export declare const useTableContext: <TData extends RowData>() => TableContextValue<TData>;
13
13
  //# sourceMappingURL=TableContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableContext.d.ts","sourceRoot":"","sources":["../../../../../../src/_deprecated/components/Table/TableContext.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAc,EAIZ,KAAK,GAAG,EACR,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,eAAO,MAAM,UAAU,UAAU,CAAC;AAIlC,MAAM,MAAM,kBAAkB,CAAC,KAAK,SAAS,OAAO,IAAI;IACtD,CAAC,KAAK,EAAE,iBAAiB,CAAC,KAAK,CAAC,GAAG;QAAE,QAAQ,EAAE,SAAS,CAAA;KAAE,GAAG,GAAG,CAAC,OAAO,CAAC;IACzE,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,aAAa,2BAA4B,iBAAiB,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,gBAElG,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,KAAK,SAAS,OAAO,OAAK,iBAAiB,CAAC,KAAK,CAEhF,CAAC"}
1
+ {"version":3,"file":"TableContext.d.ts","sourceRoot":"","sources":["../../../../../../src/_deprecated/components/Table/TableContext.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAc,EAIZ,KAAK,GAAG,EACR,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,eAAO,MAAM,UAAU,UAAU,CAAC;AAIlC,MAAM,MAAM,kBAAkB,CAAC,KAAK,SAAS,OAAO,IAAI;IACtD,CAAC,KAAK,EAAE,iBAAiB,CAAC,KAAK,CAAC,GAAG;QAAE,QAAQ,EAAE,SAAS,CAAA;KAAE,GAAG,GAAG,CAAC,OAAO,CAAC;IACzE,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,aAAa,2BAA4B,iBAAiB,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,4CAElG,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,KAAK,SAAS,OAAO,OAAK,iBAAiB,CAAC,KAAK,CAEhF,CAAC"}
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  type TableHeadProps = {};
3
2
  declare const TableHead: {
4
- (_props: TableHeadProps): React.JSX.Element;
3
+ (_props: TableHeadProps): import("react/jsx-runtime").JSX.Element;
5
4
  displayName: string;
6
5
  };
7
6
  export { TableHead };
@@ -1 +1 @@
1
- {"version":3,"file":"TableHead.d.ts","sourceRoot":"","sources":["../../../../../../src/_deprecated/components/Table/TableHead.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,KAAK,cAAc,GAAG,EAAE,CAAC;AAEzB,QAAA,MAAM,SAAS;aAAY,cAAc;;CAuDxC,CAAC;AAIF,OAAO,EAAE,SAAS,EAAE,CAAC;AAErB,YAAY,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"TableHead.d.ts","sourceRoot":"","sources":["../../../../../../src/_deprecated/components/Table/TableHead.tsx"],"names":[],"mappings":"AAcA,KAAK,cAAc,GAAG,EAAE,CAAC;AAEzB,QAAA,MAAM,SAAS;aAAY,cAAc;;CAuDxC,CAAC;AAIF,OAAO,EAAE,SAAS,EAAE,CAAC;AAErB,YAAY,EAAE,cAAc,EAAE,CAAC"}
@@ -1,11 +1,10 @@
1
1
  import '@dxos-theme';
2
- import React from 'react';
3
2
  declare const _default: {
4
3
  title: string;
5
- decorators: import("@storybook/react/*").Decorator[];
4
+ decorators: import("@storybook/react").Decorator[];
6
5
  };
7
6
  export default _default;
8
7
  export declare const Default: {
9
- render: () => React.JSX.Element;
8
+ render: () => import("react/jsx-runtime").JSX.Element;
10
9
  };
11
10
  //# sourceMappingURL=Schema.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.stories.d.ts","sourceRoot":"","sources":["../../../../../src/_deprecated/schema/Schema.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAIrB,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;AAQ1B,wBAGE;AAoBF,eAAO,MAAM,OAAO;;CAmBnB,CAAC"}
1
+ {"version":3,"file":"Schema.stories.d.ts","sourceRoot":"","sources":["../../../../../src/_deprecated/schema/Schema.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;;;;;AAYrB,wBAGE;AAoBF,eAAO,MAAM,OAAO;;CAmBnB,CAAC"}
@@ -1,9 +1,8 @@
1
- import React from 'react';
2
1
  import { type TableModel, type ModalController } from '../../model';
3
2
  type ColumnActionsMenuProps = {
4
3
  model: TableModel;
5
4
  modals: ModalController;
6
5
  };
7
- export declare const ColumnActionsMenu: ({ model, modals }: ColumnActionsMenuProps) => React.JSX.Element | null;
6
+ export declare const ColumnActionsMenu: ({ model, modals }: ColumnActionsMenuProps) => import("react/jsx-runtime").JSX.Element | null;
8
7
  export {};
9
8
  //# sourceMappingURL=ColumnActionsMenu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ColumnActionsMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/ColumnActionsMenu.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAGpE,KAAK,sBAAsB,GAAG;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,eAAe,CAAA;CAAE,CAAC;AAE7E,eAAO,MAAM,iBAAiB,sBAAuB,sBAAsB,6BAmD1E,CAAC"}
1
+ {"version":3,"file":"ColumnActionsMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/ColumnActionsMenu.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAGpE,KAAK,sBAAsB,GAAG;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,eAAe,CAAA;CAAE,CAAC;AAE7E,eAAO,MAAM,iBAAiB,sBAAuB,sBAAsB,mDAmD1E,CAAC"}
@@ -1,10 +1,9 @@
1
- import React from 'react';
2
1
  import { type TableModel, type ModalController } from '../../model';
3
2
  type ColumnSettingsProps = {
4
3
  model?: TableModel;
5
4
  modals: ModalController;
6
5
  onNewColumn: () => void;
7
6
  };
8
- export declare const ColumnSettings: ({ model, modals, onNewColumn }: ColumnSettingsProps) => React.JSX.Element | null;
7
+ export declare const ColumnSettings: ({ model, modals, onNewColumn }: ColumnSettingsProps) => import("react/jsx-runtime").JSX.Element | null;
9
8
  export {};
10
9
  //# sourceMappingURL=ColumnSettings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ColumnSettings.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/ColumnSettings.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAOzE,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAEpE,KAAK,mBAAmB,GAAG;IAAE,KAAK,CAAC,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,eAAe,CAAC;IAAC,WAAW,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC;AAEpG,eAAO,MAAM,cAAc,mCAAoC,mBAAmB,6BA+DjF,CAAC"}
1
+ {"version":3,"file":"ColumnSettings.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/ColumnSettings.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAEpE,KAAK,mBAAmB,GAAG;IAAE,KAAK,CAAC,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,eAAe,CAAC;IAAC,WAAW,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC;AAEpG,eAAO,MAAM,cAAc,mCAAoC,mBAAmB,mDA+DjF,CAAC"}
@@ -1,9 +1,8 @@
1
- import React from 'react';
2
1
  import { type GridScopedProps } from '@dxos/react-ui-grid';
3
2
  import { type TableModel, type ModalController } from '../../model';
4
3
  export type CreateRefPanelProps = {
5
4
  model?: TableModel;
6
5
  modals: ModalController;
7
6
  };
8
- export declare const CreateRefPanel: ({ model, modals, __gridScope }: GridScopedProps<CreateRefPanelProps>) => React.JSX.Element | null;
7
+ export declare const CreateRefPanel: ({ model, modals, __gridScope }: GridScopedProps<CreateRefPanelProps>) => import("react/jsx-runtime").JSX.Element | null;
9
8
  //# sourceMappingURL=CreateRefPanel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreateRefPanel.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/CreateRefPanel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAMpD,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,qBAAqB,CAAC;AAE3E,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAEpE,MAAM,MAAM,mBAAmB,GAAG;IAAE,KAAK,CAAC,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,eAAe,CAAA;CAAE,CAAC;AAGlF,eAAO,MAAM,cAAc,mCAAoC,eAAe,CAAC,mBAAmB,CAAC,6BAgElG,CAAC"}
1
+ {"version":3,"file":"CreateRefPanel.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/CreateRefPanel.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,qBAAqB,CAAC;AAE3E,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAEpE,MAAM,MAAM,mBAAmB,GAAG;IAAE,KAAK,CAAC,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,eAAe,CAAA;CAAE,CAAC;AAGlF,eAAO,MAAM,cAAc,mCAAoC,eAAe,CAAC,mBAAmB,CAAC,mDAgElG,CAAC"}
@@ -1,9 +1,8 @@
1
- import React from 'react';
2
1
  import { type TableModel, type ModalController } from '../../model';
3
2
  type RefPanelProps = {
4
3
  model: TableModel;
5
4
  modals: ModalController;
6
5
  };
7
- export declare const RefPanel: ({ model, modals }: RefPanelProps) => React.JSX.Element | null;
6
+ export declare const RefPanel: ({ model, modals }: RefPanelProps) => import("react/jsx-runtime").JSX.Element | null;
8
7
  export {};
9
8
  //# sourceMappingURL=RefPanel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RefPanel.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/RefPanel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAEpE,KAAK,aAAa,GAAG;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,eAAe,CAAA;CAAE,CAAC;AAUpE,eAAO,MAAM,QAAQ,sBAAuB,aAAa,6BA6BxD,CAAC"}
1
+ {"version":3,"file":"RefPanel.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/RefPanel.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAEpE,KAAK,aAAa,GAAG;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,eAAe,CAAA;CAAE,CAAC;AAUpE,eAAO,MAAM,QAAQ,sBAAuB,aAAa,mDA6BxD,CAAC"}
@@ -1,9 +1,8 @@
1
- import React from 'react';
2
1
  import { type TableModel, type ModalController } from '../../model';
3
2
  type RowActionsMenuProps = {
4
3
  model: TableModel;
5
4
  modals: ModalController;
6
5
  };
7
- export declare const RowActionsMenu: ({ model, modals }: RowActionsMenuProps) => React.JSX.Element | null;
6
+ export declare const RowActionsMenu: ({ model, modals }: RowActionsMenuProps) => import("react/jsx-runtime").JSX.Element | null;
8
7
  export {};
9
8
  //# sourceMappingURL=RowActionsMenu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RowActionsMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/RowActionsMenu.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAGpE,KAAK,mBAAmB,GAAG;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,eAAe,CAAA;CAAE,CAAC;AAE1E,eAAO,MAAM,cAAc,sBAAuB,mBAAmB,6BAoBpE,CAAC"}
1
+ {"version":3,"file":"RowActionsMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/RowActionsMenu.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAGpE,KAAK,mBAAmB,GAAG;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,eAAe,CAAA;CAAE,CAAC;AAE1E,eAAO,MAAM,cAAc,sBAAuB,mBAAmB,mDAoBpE,CAAC"}
@@ -13,7 +13,7 @@ export type TableMainProps = {
13
13
  ignoreAttention?: boolean;
14
14
  };
15
15
  export declare const Table: {
16
- Root: ({ children, role }: TableRootProps) => React.JSX.Element;
16
+ Root: ({ children, role }: TableRootProps) => import("react/jsx-runtime").JSX.Element;
17
17
  Main: React.ForwardRefExoticComponent<TableMainProps & React.RefAttributes<TableController>>;
18
18
  };
19
19
  //# sourceMappingURL=Table.d.ts.map
@@ -1,5 +1,4 @@
1
1
  import { type Completion } from '@codemirror/autocomplete';
2
- import React from 'react';
3
2
  import { type DxGrid } from '@dxos/lit-grid';
4
3
  import { type DxGridPlanePosition, type GridScopedProps } from '@dxos/react-ui-grid';
5
4
  import { type FieldProjection } from '@dxos/schema';
@@ -22,6 +21,6 @@ export type TableCellEditorProps = {
22
21
  onFocus?: DxGrid['refocus'];
23
22
  onQuery?: (field: FieldProjection, text: string) => Promise<QueryResult[]>;
24
23
  };
25
- export declare const TableCellEditor: ({ model, modals, onEnter, onFocus, onQuery, __gridScope, }: GridScopedProps<TableCellEditorProps>) => React.JSX.Element;
24
+ export declare const TableCellEditor: ({ model, modals, onEnter, onFocus, onQuery, __gridScope, }: GridScopedProps<TableCellEditorProps>) => import("react/jsx-runtime").JSX.Element;
26
25
  export {};
27
26
  //# sourceMappingURL=TableCellEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableCellEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableCellEditor/TableCellEditor.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,KAAuC,MAAM,OAAO,CAAC;AAI5D,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAKL,KAAK,mBAAmB,EAMxB,KAAK,eAAe,EACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAGpD,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAEpE,QAAA,MAAM,QA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AE,IAAI,EAAE,GAAG,CAAA;CAAE,CAAC;AAEpE,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC9C,OAAO,CAAC,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC;IAC5B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;CAC5E,CAAC;AAEF,eAAO,MAAM,eAAe,+DAOzB,eAAe,CAAC,oBAAoB,CAAC,4CA0HvC,CAAC"}
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { type ThemedClassName } from '@dxos/react-ui';
3
2
  import { type MenuAction, type MenuActionHandler } from '@dxos/react-ui-menu';
4
3
  export type TableToolbarActionProperties = {
@@ -13,6 +12,6 @@ export type TableToolbarProps = ThemedClassName<TableToolbarState & {
13
12
  onAction?: MenuActionHandler<TableToolbarAction>;
14
13
  attendableId?: string;
15
14
  }>;
16
- export declare const TableToolbar: ({ classNames, viewDirty, attendableId, onAction }: TableToolbarProps) => React.JSX.Element;
15
+ export declare const TableToolbar: ({ classNames, viewDirty, attendableId, onAction }: TableToolbarProps) => import("react/jsx-runtime").JSX.Element;
17
16
  export {};
18
17
  //# sourceMappingURL=TableToolbar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableToolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableToolbar/TableToolbar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAGpD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAGL,KAAK,UAAU,EACf,KAAK,iBAAiB,EAIvB,MAAM,qBAAqB,CAAC;AAI7B,MAAM,MAAM,4B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,MAAM,YAAY,sDAAuD,iBAAiB,4CAUhG,CAAC"}
@@ -1,47 +1,48 @@
1
1
  import { S } from '@dxos/echo-schema';
2
2
  import { TableType } from '../types';
3
- export declare const TestSchema: import("@dxos/echo-schema").TypedObjectPrototype<import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectFields<{
3
+ export declare const TestSchema: import("@dxos/echo-schema").TypedObjectPrototype<import("@dxos/echo-schema").TypedObjectFields<{
4
4
  id: typeof S.String;
5
5
  name: S.optional<typeof S.String>;
6
6
  age: S.optional<typeof S.Number>;
7
7
  active: S.optional<typeof S.Boolean>;
8
8
  netWorth: S.optional<typeof S.Number>;
9
- }, import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectOptions>, S.Struct.Encoded<{
9
+ }, import("@dxos/echo-schema").TypedObjectOptions>, S.Struct.Encoded<{
10
10
  id: typeof S.String;
11
11
  name: S.optional<typeof S.String>;
12
12
  age: S.optional<typeof S.Number>;
13
13
  active: S.optional<typeof S.Boolean>;
14
14
  netWorth: S.optional<typeof S.Number>;
15
15
  }>>;
16
- export declare const createTable: (schema?: import("@dxos/echo-schema").TypedObjectPrototype<import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectFields<{
16
+ export declare const createTable: (schema?: import("@dxos/echo-schema").TypedObjectPrototype<import("@dxos/echo-schema").TypedObjectFields<{
17
17
  id: typeof S.String;
18
18
  name: S.optional<typeof S.String>;
19
19
  age: S.optional<typeof S.Number>;
20
20
  active: S.optional<typeof S.Boolean>;
21
21
  netWorth: S.optional<typeof S.Number>;
22
- }, import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectOptions>, S.Struct.Encoded<{
22
+ }, import("@dxos/echo-schema").TypedObjectOptions>, S.Struct.Encoded<{
23
23
  id: typeof S.String;
24
24
  name: S.optional<typeof S.String>;
25
25
  age: S.optional<typeof S.Number>;
26
26
  active: S.optional<typeof S.Boolean>;
27
27
  netWorth: S.optional<typeof S.Number>;
28
- }>>) => import("@dxos/react-client/echo").ReactiveObject<import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectFields<{
28
+ }>>) => import("@dxos/live-object").ReactiveObject<import("@dxos/echo-schema").TypedObjectFields<{
29
29
  readonly id: import("@dxos/echo-schema").ObjectIdClass;
30
30
  readonly name: S.optional<typeof S.String>;
31
- readonly view: S.optional<import("@dxos/echo-schema").Ref$<import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectFields<{
31
+ readonly view: S.optional<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
32
32
  name: S.SchemaClass<string, string, never>;
33
33
  query: S.Schema<import("@dxos/echo-schema").QueryType, import("@dxos/echo-schema").QueryType, never>;
34
34
  schema: S.optional<S.Schema<import("@dxos/echo-schema").JsonSchemaType, import("@dxos/echo-schema").JsonSchemaType, never>>;
35
35
  fields: S.mutable<S.Array$<S.mutable<S.Struct<{
36
36
  id: typeof S.String;
37
- path: S.Schema<import("@dxos/echo-schema").JsonPath, import("@dxos/echo-schema").JsonPath, never>;
37
+ path: S.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>;
38
38
  visible: S.optional<typeof S.Boolean>;
39
39
  size: S.optional<typeof S.Number>;
40
- referencePath: S.optional<S.Schema<import("@dxos/echo-schema").JsonPath, import("@dxos/echo-schema").JsonPath, never>>;
40
+ referencePath: S.optional<S.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>>;
41
41
  }>>>>;
42
- }, import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectOptions>>>;
42
+ metadata: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.Any>>>;
43
+ }, import("@dxos/echo-schema").TypedObjectOptions>>>;
43
44
  readonly threads: S.optional<S.Array$<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").Expando>>>;
44
- }, import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectOptions>>;
45
+ }, import("@dxos/echo-schema").TypedObjectOptions>>;
45
46
  export declare const createItems: (n: number) => {
46
47
  name: string;
47
48
  age: number;
@@ -1 +1 @@
1
- {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../src/components/testing.ts"],"names":[],"mappings":"AAMA,OAAO,EAA0B,CAAC,EAAqC,MAAM,mBAAmB,CAAC;AAMjG,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,eAAO,MAAM,UAAU;;;;;;;;;;;;GAMrB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;cAEP,EACX,WAAM;eAW2B,EAAG,MACvC;gBAGG,EAAG,QAAQ,CAAC,EAAE,MAAM;gBAWrB,EAAG,OAAO,CAAC,EAAG,MAAK,CAAC,EACzB,OAEG,CAAC,EAAG,MAAK;uBAAqB,EAAG,MAAM;kBAAe,EAAI,MAAK;qBACvD,EAAI,QACb,QAAO,EAAG,OAAO;kBACX,EAAG,QACN,QAEA,EAAG,MAAM;2BACR,EAAE,QAAQ,CAAC,EAAE,MAAM;;;;6FA7BxB,CAAC;AAEF,eAAO,MAAM,WAAW,MAAO,MAAM;;;;;GAWpC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,YAAY,qDAAsD,cAAc,SA8D5F,CAAC"}
1
+ {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../src/components/testing.ts"],"names":[],"mappings":"AAMA,OAAO,EAA0B,CAAC,EAAqC,MAAM,mBAAmB,CAAC;AAMjG,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,eAAO,MAAM,UAAU;;;;;;;;;;;;GAMrB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;cACpB,EAAG,WAAW;eAYO,EACr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c,CAAC,CAAC,CAAC,EAAE,CAAC;CAC/B,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,aAAa,GAAG,cAAc,GAAG,gBAAgB,GAAG,cAAc,GAAG,mBAAmB,CAAC,CAAC;AAEvH,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,YAAY;QAAS,MAAM;6CAKhE,mBAAmB,CAAC,CAAC,CAAC,KAAG,UAAU,CAAC,CAAC,CAAC,GAAG,SA6C3C,CAAC"}
1
+ {"version":3,"file":"useTableModel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTableModel.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAGnD,OAAO,EAAE,KAAK,YAAY,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAC/E,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,YAAY,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,IAAI;IACzE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC;CAC/B,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,aAAa,GAAG,cAAc,GAAG,gBAAgB,GAAG,cAAc,GAAG,mBAAmB,CAAC,CAAC;AAEvH,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,YAAY;QAAS,MAAM;6CAKhE,mBAAmB,CAAC,CAAC,CAAC,KAAG,UAAU,CAAC,CAAC,CAAC,GAAG,SA8C3C,CAAC"}
@@ -2,51 +2,54 @@ import { S, Expando } from '@dxos/echo-schema';
2
2
  export declare const TableSchema: S.Struct<{
3
3
  id: import("@dxos/echo-schema").ObjectIdClass;
4
4
  name: S.optional<typeof S.String>;
5
- view: S.optional<import("@dxos/echo-schema").Ref$<import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectFields<{
5
+ view: S.optional<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
6
6
  name: S.SchemaClass<string, string, never>;
7
7
  query: S.Schema<import("@dxos/echo-schema").QueryType, import("@dxos/echo-schema").QueryType, never>;
8
8
  schema: S.optional<S.Schema<import("@dxos/echo-schema").JsonSchemaType, import("@dxos/echo-schema").JsonSchemaType, never>>;
9
9
  fields: S.mutable<S.Array$<S.mutable<S.Struct<{
10
10
  id: typeof S.String;
11
- path: S.Schema<import("@dxos/echo-schema").JsonPath, import("@dxos/echo-schema").JsonPath, never>;
11
+ path: S.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>;
12
12
  visible: S.optional<typeof S.Boolean>;
13
13
  size: S.optional<typeof S.Number>;
14
- referencePath: S.optional<S.Schema<import("@dxos/echo-schema").JsonPath, import("@dxos/echo-schema").JsonPath, never>>;
14
+ referencePath: S.optional<S.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>>;
15
15
  }>>>>;
16
- }, import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectOptions>>>;
16
+ metadata: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.Any>>>;
17
+ }, import("@dxos/echo-schema").TypedObjectOptions>>>;
17
18
  threads: S.optional<S.Array$<import("@dxos/echo-schema").Ref$<Expando>>>;
18
19
  }>;
19
- declare const TableType_base: import("@dxos/echo-schema").TypedObjectPrototype<import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectFields<{
20
+ declare const TableType_base: import("@dxos/echo-schema").TypedObjectPrototype<import("@dxos/echo-schema").TypedObjectFields<{
20
21
  readonly id: import("@dxos/echo-schema").ObjectIdClass;
21
22
  readonly name: S.optional<typeof S.String>;
22
- readonly view: S.optional<import("@dxos/echo-schema").Ref$<import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectFields<{
23
+ readonly view: S.optional<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
23
24
  name: S.SchemaClass<string, string, never>;
24
25
  query: S.Schema<import("@dxos/echo-schema").QueryType, import("@dxos/echo-schema").QueryType, never>;
25
26
  schema: S.optional<S.Schema<import("@dxos/echo-schema").JsonSchemaType, import("@dxos/echo-schema").JsonSchemaType, never>>;
26
27
  fields: S.mutable<S.Array$<S.mutable<S.Struct<{
27
28
  id: typeof S.String;
28
- path: S.Schema<import("@dxos/echo-schema").JsonPath, import("@dxos/echo-schema").JsonPath, never>;
29
+ path: S.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>;
29
30
  visible: S.optional<typeof S.Boolean>;
30
31
  size: S.optional<typeof S.Number>;
31
- referencePath: S.optional<S.Schema<import("@dxos/echo-schema").JsonPath, import("@dxos/echo-schema").JsonPath, never>>;
32
+ referencePath: S.optional<S.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>>;
32
33
  }>>>>;
33
- }, import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectOptions>>>;
34
+ metadata: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.Any>>>;
35
+ }, import("@dxos/echo-schema").TypedObjectOptions>>>;
34
36
  readonly threads: S.optional<S.Array$<import("@dxos/echo-schema").Ref$<Expando>>>;
35
- }, import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectOptions>, S.Struct.Encoded<{
37
+ }, import("@dxos/echo-schema").TypedObjectOptions>, S.Struct.Encoded<{
36
38
  readonly id: import("@dxos/echo-schema").ObjectIdClass;
37
39
  readonly name: S.optional<typeof S.String>;
38
- readonly view: S.optional<import("@dxos/echo-schema").Ref$<import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectFields<{
40
+ readonly view: S.optional<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
39
41
  name: S.SchemaClass<string, string, never>;
40
42
  query: S.Schema<import("@dxos/echo-schema").QueryType, import("@dxos/echo-schema").QueryType, never>;
41
43
  schema: S.optional<S.Schema<import("@dxos/echo-schema").JsonSchemaType, import("@dxos/echo-schema").JsonSchemaType, never>>;
42
44
  fields: S.mutable<S.Array$<S.mutable<S.Struct<{
43
45
  id: typeof S.String;
44
- path: S.Schema<import("@dxos/echo-schema").JsonPath, import("@dxos/echo-schema").JsonPath, never>;
46
+ path: S.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>;
45
47
  visible: S.optional<typeof S.Boolean>;
46
48
  size: S.optional<typeof S.Number>;
47
- referencePath: S.optional<S.Schema<import("@dxos/echo-schema").JsonPath, import("@dxos/echo-schema").JsonPath, never>>;
49
+ referencePath: S.optional<S.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>>;
48
50
  }>>>>;
49
- }, import("packages/core/echo/echo-schema/dist/types/src/object/common").TypedObjectOptions>>>;
51
+ metadata: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.Any>>>;
52
+ }, import("@dxos/echo-schema").TypedObjectOptions>>>;
50
53
  readonly threads: S.optional<S.Array$<import("@dxos/echo-schema").Ref$<Expando>>>;
51
54
  }>>;
52
55
  export declare class TableType extends TableType_base {
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/types/table.ts"],"names":[],"mappings":"AAIA,OAAO,EAAiB,CAAC,EAAe,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAI3E,eAAO,MAAM,WAAW;;;;cAWL,EAAG,WAAW;eAGmK,EAAG,MAAM;gBAAmI,EAAG,QAAQ,CAAC,EAAE,MAAM;gBAAgJ,EAAG,OAAO,CAAC,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM;uBAAqB,EAAG,MAAM;kBAAe,EAAG,MAAM;qBAA6C,EAAG,QAAQ,QAAO,EAAG,OAAO;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AG,QAAQ,CAAC,EAAE,MAAM;;kBAA+G,EAAG,QAAQ,CAAC,EAAE,OAAO,CAAC,EAAE,OAAO,QAAO,EAAG,MAAM,SAAQ,EAAG,GAAG;;;EARj3B,CAAC;;;;;cAIoB,EAAE,WAAW;eAIsH,EAAG,MAAM;gBAAmI,EAAG,QAAQ,CAAC,EAAE,MAAM;gBAAgJ,EAAG,OAAO,CAAC,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM;uBAAqB,EAAG,MAAM;kBAAe,EAAG,MAAM;qBAA6C,EAAG,QAAQ,QAAO,EAAG,OAAO;kBAAgB,EAAG,QAAQ,QAAO,EAAG,MAAM;2BAAyB,EAAG,QAAQ,CAAC,EAAE,MAAM;;kBAA+G,EAAG,QAAQ,CAAC,EAAE,OAAO,CAAC,EAAE,OAAO,QAAO,EAAG,MAAM,SAAQ,EAAG,GAAG;;;;;;;cAJ51B,EAAE,WAAW;eAIsH,EAAG,MAAM;gBAAmI,EAAG,QAAQ,CAAC,EAAE,MAAM;gBAAgJ,EAAG,OAAO,CAAC,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM;uBAAqB,EAAG,MAAM;kBAAe,EAAG,MAAM;qBAA6C,EAAG,QAAQ,QAAO,EAAG,OAAO;kBAAgB,EAAG,QAAQ,QAAO,EAAG,MAAM;2BAAyB,EAAG,QAAQ,CAAC,EAAE,MAAM;;kBAA+G,EAAG,QAAQ,CAAC,EAAE,OAAO,CAAC,EAAE,OAAO,QAAO,EAAG,MAAM,SAAQ,EAAG,GAAG;;;;AAJn3B,qBAAa,SAAU,SAAQ,cAGT;CAAG"}
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@dxos/react-ui-table",
3
- "version": "0.7.5-labs.c0e040f",
3
+ "version": "0.7.5-labs.d199c0f",
4
4
  "description": "A table component.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
7
7
  "license": "MIT",
8
8
  "author": "DXOS.org",
9
9
  "sideEffects": true,
10
+ "type": "module",
10
11
  "exports": {
11
12
  "./deprecated": {
12
13
  "types": "./dist/types/src/_deprecated/index.d.ts",
@@ -53,27 +54,27 @@
53
54
  "@tanstack/react-virtual": "^3.9.0",
54
55
  "date-fns": "^3.3.1",
55
56
  "lodash.orderby": "^4.6.0",
56
- "@dxos/debug": "0.7.5-labs.c0e040f",
57
- "@dxos/echo-schema": "0.7.5-labs.c0e040f",
58
- "@dxos/context": "0.7.5-labs.c0e040f",
59
- "@dxos/invariant": "0.7.5-labs.c0e040f",
60
- "@dxos/lit-grid": "0.7.5-labs.c0e040f",
61
- "@dxos/keys": "0.7.5-labs.c0e040f",
62
- "@dxos/live-object": "0.7.5-labs.c0e040f",
63
- "@dxos/plugin-search": "0.7.5-labs.c0e040f",
64
- "@dxos/log": "0.7.5-labs.c0e040f",
65
- "@dxos/plugin-space": "0.7.5-labs.c0e040f",
66
- "@dxos/react-client": "0.7.5-labs.c0e040f",
67
- "@dxos/react-ui-attention": "0.7.5-labs.c0e040f",
68
- "@dxos/react-ui-grid": "0.7.5-labs.c0e040f",
69
- "@dxos/react-ui-menu": "0.7.5-labs.c0e040f",
70
- "@dxos/react-ui-form": "0.7.5-labs.c0e040f",
71
- "@dxos/react-ui-stack": "0.7.5-labs.c0e040f",
72
- "@dxos/react-ui-searchlist": "0.7.5-labs.c0e040f",
73
- "@dxos/react-ui-syntax-highlighter": "0.7.5-labs.c0e040f",
74
- "@dxos/react-ui-types": "0.7.5-labs.c0e040f",
75
- "@dxos/schema": "0.7.5-labs.c0e040f",
76
- "@dxos/util": "0.7.5-labs.c0e040f"
57
+ "@dxos/debug": "0.7.5-labs.d199c0f",
58
+ "@dxos/context": "0.7.5-labs.d199c0f",
59
+ "@dxos/invariant": "0.7.5-labs.d199c0f",
60
+ "@dxos/echo-schema": "0.7.5-labs.d199c0f",
61
+ "@dxos/lit-grid": "0.7.5-labs.d199c0f",
62
+ "@dxos/live-object": "0.7.5-labs.d199c0f",
63
+ "@dxos/keys": "0.7.5-labs.d199c0f",
64
+ "@dxos/log": "0.7.5-labs.d199c0f",
65
+ "@dxos/plugin-search": "0.7.5-labs.d199c0f",
66
+ "@dxos/plugin-space": "0.7.5-labs.d199c0f",
67
+ "@dxos/react-client": "0.7.5-labs.d199c0f",
68
+ "@dxos/react-ui-attention": "0.7.5-labs.d199c0f",
69
+ "@dxos/react-ui-grid": "0.7.5-labs.d199c0f",
70
+ "@dxos/react-ui-menu": "0.7.5-labs.d199c0f",
71
+ "@dxos/react-ui-form": "0.7.5-labs.d199c0f",
72
+ "@dxos/react-ui-searchlist": "0.7.5-labs.d199c0f",
73
+ "@dxos/react-ui-syntax-highlighter": "0.7.5-labs.d199c0f",
74
+ "@dxos/react-ui-stack": "0.7.5-labs.d199c0f",
75
+ "@dxos/react-ui-types": "0.7.5-labs.d199c0f",
76
+ "@dxos/util": "0.7.5-labs.d199c0f",
77
+ "@dxos/schema": "0.7.5-labs.d199c0f"
77
78
  },
78
79
  "devDependencies": {
79
80
  "@phosphor-icons/react": "^2.1.5",
@@ -84,19 +85,19 @@
84
85
  "react": "~18.2.0",
85
86
  "react-dom": "~18.2.0",
86
87
  "vite": "5.4.7",
87
- "@dxos/echo-signals": "0.7.5-labs.c0e040f",
88
- "@dxos/random": "0.7.5-labs.c0e040f",
89
- "@dxos/react-ui": "0.7.5-labs.c0e040f",
90
- "@dxos/react-ui-theme": "0.7.5-labs.c0e040f",
91
- "@dxos/storybook-utils": "0.7.5-labs.c0e040f",
92
- "@dxos/test-utils": "0.7.5-labs.c0e040f"
88
+ "@dxos/echo-signals": "0.7.5-labs.d199c0f",
89
+ "@dxos/random": "0.7.5-labs.d199c0f",
90
+ "@dxos/react-ui-theme": "0.7.5-labs.d199c0f",
91
+ "@dxos/storybook-utils": "0.7.5-labs.d199c0f",
92
+ "@dxos/test-utils": "0.7.5-labs.d199c0f",
93
+ "@dxos/react-ui": "0.7.5-labs.d199c0f"
93
94
  },
94
95
  "peerDependencies": {
95
96
  "@phosphor-icons/react": "^2.1.5",
96
97
  "react": "~18.2.0",
97
98
  "react-dom": "~18.2.0",
98
- "@dxos/react-ui": "0.7.5-labs.c0e040f",
99
- "@dxos/react-ui-theme": "0.7.5-labs.c0e040f"
99
+ "@dxos/react-ui-theme": "0.7.5-labs.d199c0f",
100
+ "@dxos/react-ui": "0.7.5-labs.d199c0f"
100
101
  },
101
102
  "publishConfig": {
102
103
  "access": "public"
@@ -38,7 +38,7 @@ const DefaultStory = ({ editing }: StoryProps) => {
38
38
  const table = tables[0];
39
39
  invariant(table.view);
40
40
  setTable(table);
41
- setSchema(space.db.schemaRegistry.getSchema(table.view.target!.query.type));
41
+ setSchema(space.db.schemaRegistry.getSchema(table.view.target!.query.type!));
42
42
  }
43
43
  }, [space, tables]);
44
44
 
@@ -8,6 +8,7 @@ import { useEffect, useState } from 'react';
8
8
  import { type ReactiveObject } from '@dxos/react-client/echo';
9
9
  import { useSelectionActions } from '@dxos/react-ui-attention';
10
10
  import { type ViewProjection } from '@dxos/schema';
11
+ import { isNonNullable } from '@dxos/util';
11
12
 
12
13
  import { type BaseTableRow, TableModel, type TableModelProps } from '../model';
13
14
  import { type TableType } from '../types';
@@ -50,12 +51,13 @@ export const useTableModel = <T extends BaseTableRow = { id: string }>({
50
51
  }
51
52
  }, [model, objects]);
52
53
 
53
- const { select, clear } = useSelectionActions(table?.id);
54
+ const { select, clear } = useSelectionActions([table?.id, table?.view?.target?.query.type].filter(isNonNullable));
54
55
 
55
56
  useEffect(() => {
56
57
  if (!model) {
57
58
  return;
58
59
  }
60
+
59
61
  const unsubscribe = effect(() => {
60
62
  select([...model.selection.selection.value]);
61
63
  });
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright 2024 DXOS.org
2
+ // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
5
  import { computed, effect, signal, type ReadonlySignal } from '@preact/signals-core';
@@ -145,7 +145,7 @@ test.describe('Table', () => {
145
145
  await page.getByRole('option', { name: 'Anita Mayer' }).click();
146
146
 
147
147
  // Assert that the value is shown in the cell.
148
- await expect(page.getByRole('gridcell', { name: 'Anita Mayer' })).toBeVisible();
148
+ await expect(page.getByRole('gridcell', { name: 'Anita Mayer' }).first()).toBeVisible();
149
149
 
150
150
  // Create new object.
151
151
  await table.grid.cell(4, 1, 'grid').click();
@@ -157,7 +157,7 @@ test.describe('Table', () => {
157
157
  await page.getByTestId('save-button').click();
158
158
 
159
159
  // Scroll to the left.
160
- await page.getByRole('gridcell', { name: 'test' }).click();
160
+ await page.getByRole('gridcell', { name: 'test' }).first().click();
161
161
 
162
162
  await page.close();
163
163
  });
@@ -173,7 +173,7 @@ test.describe('Table', () => {
173
173
  await page.getByTestId('table-switch').nth(7).click();
174
174
 
175
175
  // Test that checks are durable in the data model by sorting.
176
- await table.sortColumn(1, 'descending');
176
+ await table.sortColumn(3, 'descending');
177
177
 
178
178
  // Assert the first two switch checkboxes are checked.
179
179
  await expect(page.getByTestId('table-switch').first()).toBeChecked();
package/src/util/table.ts CHANGED
@@ -46,7 +46,7 @@ export const initializeTable = async ({
46
46
  // We need to get the schema properties here. For now, only simple types and refs, not compound types
47
47
  // are going to be supported.
48
48
  const fields = getSchemaProperties(schema.ast)
49
- .filter((prop) => prop.type !== 'object' || prop.format === FormatEnum.Ref)
49
+ .filter((prop) => prop.format !== FormatEnum.Ref)
50
50
  .map((prop) => prop.name);
51
51
 
52
52
  table.view = makeRef(
@@ -1,3 +0,0 @@
1
- declare const _default: import("@playwright/test").PlaywrightTestConfig<{}, {}>;
2
- export default _default;
3
- //# sourceMappingURL=playwright.config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"playwright.config.d.ts","sourceRoot":"","sources":["../../../../src/playwright/playwright.config.ts"],"names":[],"mappings":";AASA,wBAQG"}