@dxos/react-ui-table 0.8.1 → 0.8.2-main.12df754

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 (32) hide show
  1. package/dist/lib/browser/index.mjs +10 -10
  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 +5 -5
  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 +10 -10
  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/components/testing.d.ts +1 -1
  11. package/dist/types/src/components/testing.d.ts.map +1 -1
  12. package/dist/types/src/hooks/useTableModel.d.ts +2 -2
  13. package/dist/types/src/hooks/useTableModel.d.ts.map +1 -1
  14. package/dist/types/src/model/modal-controller.d.ts +3 -3
  15. package/dist/types/src/model/modal-controller.d.ts.map +1 -1
  16. package/dist/types/src/types/table.d.ts.map +1 -1
  17. package/dist/types/src/util/table.d.ts.map +1 -1
  18. package/package.json +33 -33
  19. package/src/components/Table/CreateRefPanel.tsx +2 -2
  20. package/src/components/Table/DynamicTable.stories.tsx +2 -2
  21. package/src/components/Table/Table.stories.tsx +7 -7
  22. package/src/components/Table/relations.stories.tsx +5 -5
  23. package/src/components/TableCellEditor/TableCellEditor.stories.tsx +3 -3
  24. package/src/components/TableToolbar/TableToolbar.tsx +2 -2
  25. package/src/components/testing.ts +3 -3
  26. package/src/hooks/useTableModel.ts +2 -2
  27. package/src/model/modal-controller.ts +3 -3
  28. package/src/model/table-model.test.ts +3 -3
  29. package/src/model/table-model.ts +2 -2
  30. package/src/model/table-presentation.test.ts +3 -3
  31. package/src/util/dynamic-table.ts +2 -2
  32. package/src/util/table.ts +2 -2
@@ -1 +1 @@
1
- {"inputs":{"packages/ui/react-ui-table/src/translations.ts":{"bytes":3942,"imports":[],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/ColumnActionsMenu.tsx":{"bytes":8486,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/translations.ts","kind":"import-statement","original":"../../translations"}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/ColumnSettings.tsx":{"bytes":8916,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/CreateRefPanel.tsx":{"bytes":9168,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/RefPanel.tsx":{"bytes":5663,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/RowActionsMenu.tsx":{"bytes":5974,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/translations.ts","kind":"import-statement","original":"../../translations"}],"format":"esm"},"packages/ui/react-ui-table/src/types/table.ts":{"bytes":2992,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/types/index.ts":{"bytes":497,"imports":[{"path":"packages/ui/react-ui-table/src/types/table.ts","kind":"import-statement","original":"./table"}],"format":"esm"},"packages/ui/react-ui-table/src/util/dynamic-table.ts":{"bytes":9469,"imports":[{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/ui/react-ui-table/src/util/signals.ts":{"bytes":915,"imports":[],"format":"esm"},"packages/ui/react-ui-table/src/util/table.ts":{"bytes":12131,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/util/table-buttons.ts":{"bytes":14779,"imports":[],"format":"esm"},"packages/ui/react-ui-table/src/util/table-controls.ts":{"bytes":8862,"imports":[],"format":"esm"},"packages/ui/react-ui-table/src/util/index.ts":{"bytes":895,"imports":[{"path":"packages/ui/react-ui-table/src/util/dynamic-table.ts","kind":"import-statement","original":"./dynamic-table"},{"path":"packages/ui/react-ui-table/src/util/signals.ts","kind":"import-statement","original":"./signals"},{"path":"packages/ui/react-ui-table/src/util/table.ts","kind":"import-statement","original":"./table"},{"path":"packages/ui/react-ui-table/src/util/table-buttons.ts","kind":"import-statement","original":"./table-buttons"},{"path":"packages/ui/react-ui-table/src/util/table-controls.ts","kind":"import-statement","original":"./table-controls"}],"format":"esm"},"packages/ui/react-ui-table/src/model/selection-model.ts":{"bytes":12076,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/util/index.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/ui/react-ui-table/src/model/table-sorting.ts":{"bytes":23382,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"lodash.orderby","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/model/table-model.ts":{"bytes":42652,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/model/selection-model.ts","kind":"import-statement","original":"./selection-model"},{"path":"packages/ui/react-ui-table/src/model/table-sorting.ts","kind":"import-statement","original":"./table-sorting"},{"path":"packages/ui/react-ui-table/src/util/index.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/ui/react-ui-table/src/model/modal-controller.ts":{"bytes":8507,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/model/table-presentation.ts":{"bytes":37513,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/util/index.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/ui/react-ui-table/src/model/index.ts":{"bytes":817,"imports":[{"path":"packages/ui/react-ui-table/src/model/table-model.ts","kind":"import-statement","original":"./table-model"},{"path":"packages/ui/react-ui-table/src/model/modal-controller.ts","kind":"import-statement","original":"./modal-controller"},{"path":"packages/ui/react-ui-table/src/model/table-presentation.ts","kind":"import-statement","original":"./table-presentation"}],"format":"esm"},"packages/ui/react-ui-table/src/components/TableCellEditor/extension.ts":{"bytes":5534,"imports":[{"path":"@codemirror/autocomplete","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/components/TableCellEditor/TableCellEditor.tsx":{"bytes":30550,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui-tag-picker","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/components/TableCellEditor/extension.ts","kind":"import-statement","original":"./extension"}],"format":"esm"},"packages/ui/react-ui-table/src/components/TableCellEditor/index.ts":{"bytes":544,"imports":[{"path":"packages/ui/react-ui-table/src/components/TableCellEditor/TableCellEditor.tsx","kind":"import-statement","original":"./TableCellEditor"}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/Table.tsx":{"bytes":41214,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/components/Table/ColumnActionsMenu.tsx","kind":"import-statement","original":"./ColumnActionsMenu"},{"path":"packages/ui/react-ui-table/src/components/Table/ColumnSettings.tsx","kind":"import-statement","original":"./ColumnSettings"},{"path":"packages/ui/react-ui-table/src/components/Table/CreateRefPanel.tsx","kind":"import-statement","original":"./CreateRefPanel"},{"path":"packages/ui/react-ui-table/src/components/Table/RefPanel.tsx","kind":"import-statement","original":"./RefPanel"},{"path":"packages/ui/react-ui-table/src/components/Table/RowActionsMenu.tsx","kind":"import-statement","original":"./RowActionsMenu"},{"path":"packages/ui/react-ui-table/src/model/index.ts","kind":"import-statement","original":"../../model"},{"path":"packages/ui/react-ui-table/src/translations.ts","kind":"import-statement","original":"../../translations"},{"path":"packages/ui/react-ui-table/src/util/index.ts","kind":"import-statement","original":"../../util"},{"path":"packages/ui/react-ui-table/src/components/TableCellEditor/index.ts","kind":"import-statement","original":"../TableCellEditor"}],"format":"esm"},"packages/ui/react-ui-table/src/hooks/useTableModel.ts":{"bytes":8228,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/model/index.ts","kind":"import-statement","original":"../model"}],"format":"esm"},"packages/ui/react-ui-table/src/hooks/index.ts":{"bytes":517,"imports":[{"path":"packages/ui/react-ui-table/src/hooks/useTableModel.ts","kind":"import-statement","original":"./useTableModel"}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/DynamicTable.tsx":{"bytes":10092,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/components/Table/Table.tsx","kind":"import-statement","original":"./Table"},{"path":"packages/ui/react-ui-table/src/hooks/index.ts","kind":"import-statement","original":"../../hooks"},{"path":"packages/ui/react-ui-table/src/model/index.ts","kind":"import-statement","original":"../../model"},{"path":"packages/ui/react-ui-table/src/util/index.ts","kind":"import-statement","original":"../../util"}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/index.ts":{"bytes":608,"imports":[{"path":"packages/ui/react-ui-table/src/components/Table/Table.tsx","kind":"import-statement","original":"./Table"},{"path":"packages/ui/react-ui-table/src/components/Table/DynamicTable.tsx","kind":"import-statement","original":"./DynamicTable"}],"format":"esm"},"packages/ui/react-ui-table/src/components/TableToolbar/TableToolbar.tsx":{"bytes":7741,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/translations.ts","kind":"import-statement","original":"../../translations"}],"format":"esm"},"packages/ui/react-ui-table/src/components/TableToolbar/index.ts":{"bytes":534,"imports":[{"path":"packages/ui/react-ui-table/src/components/TableToolbar/TableToolbar.tsx","kind":"import-statement","original":"./TableToolbar"}],"format":"esm"},"packages/ui/react-ui-table/src/components/index.ts":{"bytes":602,"imports":[{"path":"packages/ui/react-ui-table/src/components/Table/index.ts","kind":"import-statement","original":"./Table"},{"path":"packages/ui/react-ui-table/src/components/TableToolbar/index.ts","kind":"import-statement","original":"./TableToolbar"}],"format":"esm"},"packages/ui/react-ui-table/src/index.ts":{"bytes":1083,"imports":[{"path":"packages/ui/react-ui-table/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/ui/react-ui-table/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/ui/react-ui-table/src/hooks/index.ts","kind":"import-statement","original":"./hooks"},{"path":"packages/ui/react-ui-table/src/model/index.ts","kind":"import-statement","original":"./model"},{"path":"packages/ui/react-ui-table/src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"packages/ui/react-ui-table/src/util/index.ts","kind":"import-statement","original":"./util"}],"format":"esm"}},"outputs":{"packages/ui/react-ui-table/dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":158453},"packages/ui/react-ui-table/dist/lib/node-esm/index.mjs":{"imports":[{"path":"packages/ui/react-ui-table/dist/lib/node-esm/chunk-KKLP54L3.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"lodash.orderby","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui-tag-picker","kind":"import-statement","external":true},{"path":"@codemirror/autocomplete","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true}],"exports":["BUTTON_IDENTIFIERS","CONTROL_IDENTIFIERS","CheckboxStory","DynamicTable","ModalController","SwitchStory","Table","TableModel","TablePresentation","TableSchema","TableToolbar","TableType","cellClassesForRowSelection","getBaseSchems","initializeTable","makeDynamicTable","tableButtons","tableControls","touch","translations","useTableModel"],"entryPoint":"packages/ui/react-ui-table/src/index.ts","inputs":{"packages/ui/react-ui-table/src/translations.ts":{"bytesInOutput":1158},"packages/ui/react-ui-table/src/components/Table/Table.tsx":{"bytesInOutput":9300},"packages/ui/react-ui-table/src/components/Table/ColumnActionsMenu.tsx":{"bytesInOutput":2102},"packages/ui/react-ui-table/src/components/Table/ColumnSettings.tsx":{"bytesInOutput":2214},"packages/ui/react-ui-table/src/components/Table/CreateRefPanel.tsx":{"bytesInOutput":2222},"packages/ui/react-ui-table/src/components/Table/RefPanel.tsx":{"bytesInOutput":1352},"packages/ui/react-ui-table/src/components/Table/RowActionsMenu.tsx":{"bytesInOutput":1373},"packages/ui/react-ui-table/src/model/table-model.ts":{"bytesInOutput":9449},"packages/ui/react-ui-table/src/model/selection-model.ts":{"bytesInOutput":2627},"packages/ui/react-ui-table/src/util/dynamic-table.ts":{"bytesInOutput":2005},"packages/ui/react-ui-table/src/util/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/util/signals.ts":{"bytesInOutput":30},"packages/ui/react-ui-table/src/util/table.ts":{"bytesInOutput":2596},"packages/ui/react-ui-table/src/util/table-buttons.ts":{"bytesInOutput":3500},"packages/ui/react-ui-table/src/util/table-controls.ts":{"bytesInOutput":1905},"packages/ui/react-ui-table/src/model/table-sorting.ts":{"bytesInOutput":4459},"packages/ui/react-ui-table/src/model/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/model/modal-controller.ts":{"bytesInOutput":2085},"packages/ui/react-ui-table/src/model/table-presentation.ts":{"bytesInOutput":9089},"packages/ui/react-ui-table/src/components/TableCellEditor/TableCellEditor.tsx":{"bytesInOutput":7378},"packages/ui/react-ui-table/src/components/TableCellEditor/extension.ts":{"bytesInOutput":1145},"packages/ui/react-ui-table/src/components/TableCellEditor/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/components/Table/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/components/Table/DynamicTable.tsx":{"bytesInOutput":1822},"packages/ui/react-ui-table/src/hooks/useTableModel.ts":{"bytesInOutput":1695},"packages/ui/react-ui-table/src/hooks/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/components/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/components/TableToolbar/TableToolbar.tsx":{"bytesInOutput":1742},"packages/ui/react-ui-table/src/components/TableToolbar/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/index.ts":{"bytesInOutput":0}},"bytes":73562},"packages/ui/react-ui-table/dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/ui/react-ui-table/dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"packages/ui/react-ui-table/dist/lib/node-esm/chunk-KKLP54L3.mjs","kind":"import-statement"}],"exports":["TableSchema","TableType"],"entryPoint":"packages/ui/react-ui-table/src/types/index.ts","inputs":{},"bytes":234},"packages/ui/react-ui-table/dist/lib/node-esm/chunk-KKLP54L3.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1587},"packages/ui/react-ui-table/dist/lib/node-esm/chunk-KKLP54L3.mjs":{"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"exports":["TableSchema","TableType"],"inputs":{"packages/ui/react-ui-table/src/types/table.ts":{"bytesInOutput":581},"packages/ui/react-ui-table/src/types/index.ts":{"bytesInOutput":0}},"bytes":807}}}
1
+ {"inputs":{"packages/ui/react-ui-table/src/translations.ts":{"bytes":3942,"imports":[],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/ColumnActionsMenu.tsx":{"bytes":8486,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/translations.ts","kind":"import-statement","original":"../../translations"}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/ColumnSettings.tsx":{"bytes":8916,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/CreateRefPanel.tsx":{"bytes":9156,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/RefPanel.tsx":{"bytes":5663,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/RowActionsMenu.tsx":{"bytes":5974,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/translations.ts","kind":"import-statement","original":"../../translations"}],"format":"esm"},"packages/ui/react-ui-table/src/types/table.ts":{"bytes":2992,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/types/index.ts":{"bytes":497,"imports":[{"path":"packages/ui/react-ui-table/src/types/table.ts","kind":"import-statement","original":"./table"}],"format":"esm"},"packages/ui/react-ui-table/src/util/dynamic-table.ts":{"bytes":9457,"imports":[{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/ui/react-ui-table/src/util/signals.ts":{"bytes":915,"imports":[],"format":"esm"},"packages/ui/react-ui-table/src/util/table.ts":{"bytes":12119,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/util/table-buttons.ts":{"bytes":14779,"imports":[],"format":"esm"},"packages/ui/react-ui-table/src/util/table-controls.ts":{"bytes":8862,"imports":[],"format":"esm"},"packages/ui/react-ui-table/src/util/index.ts":{"bytes":895,"imports":[{"path":"packages/ui/react-ui-table/src/util/dynamic-table.ts","kind":"import-statement","original":"./dynamic-table"},{"path":"packages/ui/react-ui-table/src/util/signals.ts","kind":"import-statement","original":"./signals"},{"path":"packages/ui/react-ui-table/src/util/table.ts","kind":"import-statement","original":"./table"},{"path":"packages/ui/react-ui-table/src/util/table-buttons.ts","kind":"import-statement","original":"./table-buttons"},{"path":"packages/ui/react-ui-table/src/util/table-controls.ts","kind":"import-statement","original":"./table-controls"}],"format":"esm"},"packages/ui/react-ui-table/src/model/selection-model.ts":{"bytes":12076,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/util/index.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/ui/react-ui-table/src/model/table-sorting.ts":{"bytes":23382,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"lodash.orderby","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/model/table-model.ts":{"bytes":42624,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/model/selection-model.ts","kind":"import-statement","original":"./selection-model"},{"path":"packages/ui/react-ui-table/src/model/table-sorting.ts","kind":"import-statement","original":"./table-sorting"},{"path":"packages/ui/react-ui-table/src/util/index.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/ui/react-ui-table/src/model/modal-controller.ts":{"bytes":8467,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/model/table-presentation.ts":{"bytes":37513,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/util/index.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/ui/react-ui-table/src/model/index.ts":{"bytes":817,"imports":[{"path":"packages/ui/react-ui-table/src/model/table-model.ts","kind":"import-statement","original":"./table-model"},{"path":"packages/ui/react-ui-table/src/model/modal-controller.ts","kind":"import-statement","original":"./modal-controller"},{"path":"packages/ui/react-ui-table/src/model/table-presentation.ts","kind":"import-statement","original":"./table-presentation"}],"format":"esm"},"packages/ui/react-ui-table/src/components/TableCellEditor/extension.ts":{"bytes":5534,"imports":[{"path":"@codemirror/autocomplete","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-table/src/components/TableCellEditor/TableCellEditor.tsx":{"bytes":30550,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui-tag-picker","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/components/TableCellEditor/extension.ts","kind":"import-statement","original":"./extension"}],"format":"esm"},"packages/ui/react-ui-table/src/components/TableCellEditor/index.ts":{"bytes":544,"imports":[{"path":"packages/ui/react-ui-table/src/components/TableCellEditor/TableCellEditor.tsx","kind":"import-statement","original":"./TableCellEditor"}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/Table.tsx":{"bytes":41214,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/components/Table/ColumnActionsMenu.tsx","kind":"import-statement","original":"./ColumnActionsMenu"},{"path":"packages/ui/react-ui-table/src/components/Table/ColumnSettings.tsx","kind":"import-statement","original":"./ColumnSettings"},{"path":"packages/ui/react-ui-table/src/components/Table/CreateRefPanel.tsx","kind":"import-statement","original":"./CreateRefPanel"},{"path":"packages/ui/react-ui-table/src/components/Table/RefPanel.tsx","kind":"import-statement","original":"./RefPanel"},{"path":"packages/ui/react-ui-table/src/components/Table/RowActionsMenu.tsx","kind":"import-statement","original":"./RowActionsMenu"},{"path":"packages/ui/react-ui-table/src/model/index.ts","kind":"import-statement","original":"../../model"},{"path":"packages/ui/react-ui-table/src/translations.ts","kind":"import-statement","original":"../../translations"},{"path":"packages/ui/react-ui-table/src/util/index.ts","kind":"import-statement","original":"../../util"},{"path":"packages/ui/react-ui-table/src/components/TableCellEditor/index.ts","kind":"import-statement","original":"../TableCellEditor"}],"format":"esm"},"packages/ui/react-ui-table/src/hooks/useTableModel.ts":{"bytes":8200,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/model/index.ts","kind":"import-statement","original":"../model"}],"format":"esm"},"packages/ui/react-ui-table/src/hooks/index.ts":{"bytes":517,"imports":[{"path":"packages/ui/react-ui-table/src/hooks/useTableModel.ts","kind":"import-statement","original":"./useTableModel"}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/DynamicTable.tsx":{"bytes":10092,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/components/Table/Table.tsx","kind":"import-statement","original":"./Table"},{"path":"packages/ui/react-ui-table/src/hooks/index.ts","kind":"import-statement","original":"../../hooks"},{"path":"packages/ui/react-ui-table/src/model/index.ts","kind":"import-statement","original":"../../model"},{"path":"packages/ui/react-ui-table/src/util/index.ts","kind":"import-statement","original":"../../util"}],"format":"esm"},"packages/ui/react-ui-table/src/components/Table/index.ts":{"bytes":608,"imports":[{"path":"packages/ui/react-ui-table/src/components/Table/Table.tsx","kind":"import-statement","original":"./Table"},{"path":"packages/ui/react-ui-table/src/components/Table/DynamicTable.tsx","kind":"import-statement","original":"./DynamicTable"}],"format":"esm"},"packages/ui/react-ui-table/src/components/TableToolbar/TableToolbar.tsx":{"bytes":7729,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-table/src/translations.ts","kind":"import-statement","original":"../../translations"}],"format":"esm"},"packages/ui/react-ui-table/src/components/TableToolbar/index.ts":{"bytes":534,"imports":[{"path":"packages/ui/react-ui-table/src/components/TableToolbar/TableToolbar.tsx","kind":"import-statement","original":"./TableToolbar"}],"format":"esm"},"packages/ui/react-ui-table/src/components/index.ts":{"bytes":602,"imports":[{"path":"packages/ui/react-ui-table/src/components/Table/index.ts","kind":"import-statement","original":"./Table"},{"path":"packages/ui/react-ui-table/src/components/TableToolbar/index.ts","kind":"import-statement","original":"./TableToolbar"}],"format":"esm"},"packages/ui/react-ui-table/src/index.ts":{"bytes":1083,"imports":[{"path":"packages/ui/react-ui-table/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/ui/react-ui-table/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/ui/react-ui-table/src/hooks/index.ts","kind":"import-statement","original":"./hooks"},{"path":"packages/ui/react-ui-table/src/model/index.ts","kind":"import-statement","original":"./model"},{"path":"packages/ui/react-ui-table/src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"packages/ui/react-ui-table/src/util/index.ts","kind":"import-statement","original":"./util"}],"format":"esm"}},"outputs":{"packages/ui/react-ui-table/dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":158351},"packages/ui/react-ui-table/dist/lib/node-esm/index.mjs":{"imports":[{"path":"packages/ui/react-ui-table/dist/lib/node-esm/chunk-KKLP54L3.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"lodash.orderby","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui-tag-picker","kind":"import-statement","external":true},{"path":"@codemirror/autocomplete","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true}],"exports":["BUTTON_IDENTIFIERS","CONTROL_IDENTIFIERS","CheckboxStory","DynamicTable","ModalController","SwitchStory","Table","TableModel","TablePresentation","TableSchema","TableToolbar","TableType","cellClassesForRowSelection","getBaseSchems","initializeTable","makeDynamicTable","tableButtons","tableControls","touch","translations","useTableModel"],"entryPoint":"packages/ui/react-ui-table/src/index.ts","inputs":{"packages/ui/react-ui-table/src/translations.ts":{"bytesInOutput":1158},"packages/ui/react-ui-table/src/components/Table/Table.tsx":{"bytesInOutput":9300},"packages/ui/react-ui-table/src/components/Table/ColumnActionsMenu.tsx":{"bytesInOutput":2102},"packages/ui/react-ui-table/src/components/Table/ColumnSettings.tsx":{"bytesInOutput":2214},"packages/ui/react-ui-table/src/components/Table/CreateRefPanel.tsx":{"bytesInOutput":2218},"packages/ui/react-ui-table/src/components/Table/RefPanel.tsx":{"bytesInOutput":1352},"packages/ui/react-ui-table/src/components/Table/RowActionsMenu.tsx":{"bytesInOutput":1373},"packages/ui/react-ui-table/src/model/table-model.ts":{"bytesInOutput":9441},"packages/ui/react-ui-table/src/model/selection-model.ts":{"bytesInOutput":2627},"packages/ui/react-ui-table/src/util/dynamic-table.ts":{"bytesInOutput":1999},"packages/ui/react-ui-table/src/util/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/util/signals.ts":{"bytesInOutput":30},"packages/ui/react-ui-table/src/util/table.ts":{"bytesInOutput":2590},"packages/ui/react-ui-table/src/util/table-buttons.ts":{"bytesInOutput":3500},"packages/ui/react-ui-table/src/util/table-controls.ts":{"bytesInOutput":1905},"packages/ui/react-ui-table/src/model/table-sorting.ts":{"bytesInOutput":4459},"packages/ui/react-ui-table/src/model/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/model/modal-controller.ts":{"bytesInOutput":2085},"packages/ui/react-ui-table/src/model/table-presentation.ts":{"bytesInOutput":9089},"packages/ui/react-ui-table/src/components/TableCellEditor/TableCellEditor.tsx":{"bytesInOutput":7378},"packages/ui/react-ui-table/src/components/TableCellEditor/extension.ts":{"bytesInOutput":1145},"packages/ui/react-ui-table/src/components/TableCellEditor/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/components/Table/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/components/Table/DynamicTable.tsx":{"bytesInOutput":1822},"packages/ui/react-ui-table/src/hooks/useTableModel.ts":{"bytesInOutput":1695},"packages/ui/react-ui-table/src/hooks/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/components/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/components/TableToolbar/TableToolbar.tsx":{"bytesInOutput":1736},"packages/ui/react-ui-table/src/components/TableToolbar/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-table/src/index.ts":{"bytesInOutput":0}},"bytes":73532},"packages/ui/react-ui-table/dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/ui/react-ui-table/dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"packages/ui/react-ui-table/dist/lib/node-esm/chunk-KKLP54L3.mjs","kind":"import-statement"}],"exports":["TableSchema","TableType"],"entryPoint":"packages/ui/react-ui-table/src/types/index.ts","inputs":{},"bytes":234},"packages/ui/react-ui-table/dist/lib/node-esm/chunk-KKLP54L3.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1587},"packages/ui/react-ui-table/dist/lib/node-esm/chunk-KKLP54L3.mjs":{"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"exports":["TableSchema","TableType"],"inputs":{"packages/ui/react-ui-table/src/types/table.ts":{"bytesInOutput":581},"packages/ui/react-ui-table/src/types/index.ts":{"bytesInOutput":0}},"bytes":807}}}
@@ -25,7 +25,7 @@ export declare const createTable: (schema?: import("@dxos/echo-schema").TypedObj
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/live-object").ReactiveObject<{
28
+ }>>) => import("@dxos/live-object").Live<{
29
29
  readonly id: string;
30
30
  name?: string | undefined;
31
31
  view?: import("@dxos/echo-schema").Ref<import("@dxos/echo-schema").TypedObjectFields<{
@@ -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;AAKjG,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,eAAO,MAAM,UAAU;;;;;;;;;;;;GAMrB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;cAGlB,EAAA,WAAU;eAW2B,EACrC,MAAC;gBAGG,EAAG,QAAQ,CAAC,EAAE,MAAM;gBAWrB,EAAG,OAAO,CAAC,EAAE,MACrB,CAED,EAAA,OAAO,CAAC,EAAE,MAAM;uBAAsB,EAAE,MAAM;kBAAe,EAAG,MAAM;qBACvD,EAAG,QACZ,QAAO,EAAG,OAAO;kBACX,EACR,QAEF,QAAQ,EAAE,MAAM;2BACT,EAAG,QAAQ,CAAC,EAAE,MAAM;;sBA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CAAC,EAAE,OAAO,CAAC,EAAE,MAAM,CACxD,EAAA,OAAG,CAAC,EAAE,MAAM;uBAAqB,EAAG,MAAM;kBACxC,EAAI,MAAK;qBAA6C,EAAG,QAC3D,QAAO,EAAG,OAAO;kBAAgB,EAAG,QACrC,QAAO,EAAG,MAAM;2BAAyB,EAAG,QAAQ,CAAC,EAAE,MAAM;;kBAK7C,EAAG,QAAQ,CAC1B,EAAA,OAAG,CAAC,EAAE,OAAO,QAAO,EAAG,MAAM,SAAQ,EAAG,GAAG;;;EApDhD,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,SA+D5F,CAAC"}
@@ -1,11 +1,11 @@
1
- import { type ReactiveObject } from '@dxos/react-client/echo';
1
+ import { type Live } from '@dxos/react-client/echo';
2
2
  import { type ViewProjection } from '@dxos/schema';
3
3
  import { type TableRow, TableModel, type TableModelProps, type TableRowAction } from '../model';
4
4
  import { type TableType } from '../types';
5
5
  export type UseTableModelParams<T extends TableRow = TableRow> = {
6
6
  table?: TableType;
7
7
  projection?: ViewProjection;
8
- rows?: ReactiveObject<T>[];
8
+ rows?: Live<T>[];
9
9
  rowActions?: TableRowAction[];
10
10
  onSelectionChanged?: (selection: string[]) => void;
11
11
  onRowAction?: (actionId: string, data: T) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"useTableModel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTableModel.ts"],"names":[],"mappings":"AAOA,OAAO,EAA8B,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE1F,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAA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B,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAAI;IAC/D,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;IACjB,UAAU,CAAC,EAAE,cAAc,EAAE,CAAC;IAC9B,kBAAkB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACnD,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;CACnD,GAAG,IAAI,CACN,eAAe,CAAC,CAAC,CAAC,EAClB,UAAU,GAAG,aAAa,GAAG,cAAc,GAAG,gBAAgB,GAAG,cAAc,GAAG,kBAAkB,CACrG,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,QAAQ,2GAS7C,mBAAmB,CAAC,CAAC,CAAC,KAAG,UAAU,CAAC,CAAC,CAAC,GAAG,SAyD3C,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { type RefObject } from 'react';
2
- import { type ReactiveObject } from '@dxos/live-object';
2
+ import { type Live } from '@dxos/live-object';
3
3
  export type ColumnSettingsMode = {
4
4
  type: 'create';
5
5
  } | {
@@ -20,7 +20,7 @@ export type ModalState = {
20
20
  type: 'createRefPanel';
21
21
  typename: string;
22
22
  initialValues?: Record<string, string>;
23
- onCreate?: (obj: ReactiveObject<any>) => void;
23
+ onCreate?: (obj: Live<any>) => void;
24
24
  } | {
25
25
  type: 'columnSettings';
26
26
  mode: ColumnSettingsMode;
@@ -38,7 +38,7 @@ export declare class ModalController {
38
38
  showColumnCreator: () => void;
39
39
  showReferencePanel: (targetId: string, schemaId: string) => void;
40
40
  openColumnSettings: () => void;
41
- openCreateRef: (typename: string, anchorCell: Element | null, initialValues?: Record<string, string>, onCreate?: (obj: ReactiveObject<any>) => void) => void;
41
+ openCreateRef: (typename: string, anchorCell: Element | null, initialValues?: Record<string, string>, onCreate?: (obj: Live<any>) => void) => void;
42
42
  close: () => void;
43
43
  }
44
44
  //# sourceMappingURL=modal-controller.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"modal-controller.d.ts","sourceRoot":"","sources":["../../../../src/model/modal-controller.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAAyB,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGxD,MAAM,MAAM,kBAAkB,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAExF,MAAM,MAAM,UAAU,GAClB;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GACjC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACnC;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GACxD;IACE,IAAI,EAAE,gBAAgB,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC;CAC/C,GACD;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,IAAI,EAAE,kBAAkB,CAAA;CAAE,GACpD;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC;AAEvB,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0C;IACjE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA8E;IAE1G,IAAW,KAAK,s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qBAA6C,EAAG,QAAQ,QAAO,EAAG,OAAO;kBAAgB,EAAG,QAAQ,QAAO,EAAG,MAAM;2BAAyB,EAAG,QAAQ,CAAC,EAAE,MAAM;;kBAAgH,EAAG,QAAQ,CAAC,EAAE,OAAO,CAAC,EAAE,OAAO,QAAO,EAAG,MAAM,SAAQ,EAAG,GAAG;;;GAFv1C,CAAC;AAC7G,MAAM,WAAW,SAAU,SAAQ,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC;CAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/util/table.ts"],"names":[],"mappings":"AAIA,OAAO,EAOL,CAAC,EAGF,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,KAAK,MAAM,EAAa,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAmB,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAGtE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAG1C,KAAK,oBAAoB,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,eAAe,oDAMzB,oBAAoB,KAAG,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CA8CtD,CAAC"}
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/util/table.ts"],"names":[],"mappings":"AAIA,OAAO,EAOL,CAAC,EAGF,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,KAAK,MAAM,EAAa,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAiB,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAGpE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAG1C,KAAK,oBAAoB,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,eAAe,oDAMzB,oBAAoB,KAAG,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CA8CtD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/react-ui-table",
3
- "version": "0.8.1",
3
+ "version": "0.8.2-main.12df754",
4
4
  "description": "A table component.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -52,30 +52,30 @@
52
52
  "@radix-ui/react-use-controllable-state": "1.1.0",
53
53
  "date-fns": "^3.3.1",
54
54
  "lodash.orderby": "^4.6.0",
55
- "@dxos/echo-schema": "0.8.1",
56
- "@dxos/context": "0.8.1",
57
- "@dxos/effect": "0.8.1",
58
- "@dxos/invariant": "0.8.1",
59
- "@dxos/keys": "0.8.1",
60
- "@dxos/lit-grid": "0.8.1",
61
- "@dxos/log": "0.8.1",
62
- "@dxos/plugin-search": "0.8.1",
63
- "@dxos/react-ui-attention": "0.8.1",
64
- "@dxos/plugin-space": "0.8.1",
65
- "@dxos/live-object": "0.8.1",
66
- "@dxos/react-client": "0.8.1",
67
- "@dxos/react-ui-editor": "0.8.1",
68
- "@dxos/debug": "0.8.1",
69
- "@dxos/react-ui-form": "0.8.1",
70
- "@dxos/react-ui-grid": "0.8.1",
71
- "@dxos/react-ui-menu": "0.8.1",
72
- "@dxos/react-ui-searchlist": "0.8.1",
73
- "@dxos/react-ui-tag-picker": "0.8.1",
74
- "@dxos/react-ui-types": "0.8.1",
75
- "@dxos/react-ui-stack": "0.8.1",
76
- "@dxos/react-ui-syntax-highlighter": "0.8.1",
77
- "@dxos/schema": "0.8.1",
78
- "@dxos/util": "0.8.1"
55
+ "@dxos/context": "0.8.2-main.12df754",
56
+ "@dxos/debug": "0.8.2-main.12df754",
57
+ "@dxos/echo-schema": "0.8.2-main.12df754",
58
+ "@dxos/keys": "0.8.2-main.12df754",
59
+ "@dxos/effect": "0.8.2-main.12df754",
60
+ "@dxos/lit-grid": "0.8.2-main.12df754",
61
+ "@dxos/invariant": "0.8.2-main.12df754",
62
+ "@dxos/live-object": "0.8.2-main.12df754",
63
+ "@dxos/plugin-search": "0.8.2-main.12df754",
64
+ "@dxos/log": "0.8.2-main.12df754",
65
+ "@dxos/plugin-space": "0.8.2-main.12df754",
66
+ "@dxos/react-client": "0.8.2-main.12df754",
67
+ "@dxos/react-ui-editor": "0.8.2-main.12df754",
68
+ "@dxos/react-ui-attention": "0.8.2-main.12df754",
69
+ "@dxos/react-ui-grid": "0.8.2-main.12df754",
70
+ "@dxos/react-ui-menu": "0.8.2-main.12df754",
71
+ "@dxos/react-ui-form": "0.8.2-main.12df754",
72
+ "@dxos/react-ui-stack": "0.8.2-main.12df754",
73
+ "@dxos/react-ui-searchlist": "0.8.2-main.12df754",
74
+ "@dxos/react-ui-types": "0.8.2-main.12df754",
75
+ "@dxos/react-ui-tag-picker": "0.8.2-main.12df754",
76
+ "@dxos/schema": "0.8.2-main.12df754",
77
+ "@dxos/react-ui-syntax-highlighter": "0.8.2-main.12df754",
78
+ "@dxos/util": "0.8.2-main.12df754"
79
79
  },
80
80
  "devDependencies": {
81
81
  "@phosphor-icons/react": "^2.1.5",
@@ -86,19 +86,19 @@
86
86
  "react": "~18.2.0",
87
87
  "react-dom": "~18.2.0",
88
88
  "vite": "5.4.7",
89
- "@dxos/echo-signals": "0.8.1",
90
- "@dxos/random": "0.8.1",
91
- "@dxos/react-ui": "0.8.1",
92
- "@dxos/react-ui-theme": "0.8.1",
93
- "@dxos/storybook-utils": "0.8.1",
94
- "@dxos/test-utils": "0.8.1"
89
+ "@dxos/random": "0.8.2-main.12df754",
90
+ "@dxos/echo-signals": "0.8.2-main.12df754",
91
+ "@dxos/react-ui": "0.8.2-main.12df754",
92
+ "@dxos/react-ui-theme": "0.8.2-main.12df754",
93
+ "@dxos/storybook-utils": "0.8.2-main.12df754",
94
+ "@dxos/test-utils": "0.8.2-main.12df754"
95
95
  },
96
96
  "peerDependencies": {
97
97
  "@phosphor-icons/react": "^2.1.5",
98
98
  "react": "~18.2.0",
99
99
  "react-dom": "~18.2.0",
100
- "@dxos/react-ui-theme": "0.8.1",
101
- "@dxos/react-ui": "0.8.1"
100
+ "@dxos/react-ui": "0.8.2-main.12df754",
101
+ "@dxos/react-ui-theme": "0.8.2-main.12df754"
102
102
  },
103
103
  "publishConfig": {
104
104
  "access": "public"
@@ -5,7 +5,7 @@
5
5
  import React, { useCallback, useMemo } from 'react';
6
6
 
7
7
  import { S } from '@dxos/echo-schema';
8
- import { create } from '@dxos/react-client/echo';
8
+ import { live } from '@dxos/react-client/echo';
9
9
  import { Popover } from '@dxos/react-ui';
10
10
  import { Form } from '@dxos/react-ui-form';
11
11
  import { type GridScopedProps, useGridContext } from '@dxos/react-ui-grid';
@@ -40,7 +40,7 @@ export const CreateRefPanel = ({ model, modals, __gridScope }: GridScopedProps<C
40
40
 
41
41
  const [schema] = space.db.schemaRegistry.query({ typename: state.typename }).runSync();
42
42
  if (schema) {
43
- const obj = space.db.add(create(schema, values));
43
+ const obj = space.db.add(live(schema, values));
44
44
  state.onCreate?.(obj);
45
45
  }
46
46
  void modals.close();
@@ -10,7 +10,7 @@ import React, { useMemo, useState } from 'react';
10
10
  import { FormatEnum, type JsonSchemaType } from '@dxos/echo-schema';
11
11
  import { faker } from '@dxos/random';
12
12
  import { useClient } from '@dxos/react-client';
13
- import { Filter, useQuery, useSchema, create } from '@dxos/react-client/echo';
13
+ import { Filter, useQuery, useSchema, live } from '@dxos/react-client/echo';
14
14
  import { useClientProvider, withClientProvider } from '@dxos/react-client/testing';
15
15
  import { type SchemaPropertyDefinition } from '@dxos/schema';
16
16
  import { Testing } from '@dxos/schema/testing';
@@ -143,7 +143,7 @@ export const WithEchoSchema: StoryObj = {
143
143
  onSpaceCreated: async ({ space }) => {
144
144
  Array.from({ length: 10 }).forEach(() => {
145
145
  space.db.add(
146
- create(Testing.Contact, {
146
+ live(Testing.Contact, {
147
147
  name: faker.person.fullName(),
148
148
  email: faker.internet.email(),
149
149
  }),
@@ -12,7 +12,7 @@ import { invariant } from '@dxos/invariant';
12
12
  import { useGlobalFilteredObjects } from '@dxos/plugin-search';
13
13
  import { faker } from '@dxos/random';
14
14
  import { useClient } from '@dxos/react-client';
15
- import { Filter, useQuery, useSchema, create } from '@dxos/react-client/echo';
15
+ import { Filter, useQuery, useSchema, live } from '@dxos/react-client/echo';
16
16
  import { useClientProvider, withClientProvider } from '@dxos/react-client/testing';
17
17
  import { ViewEditor } from '@dxos/react-ui-form';
18
18
  import { SyntaxHighlighter } from '@dxos/react-ui-syntax-highlighter';
@@ -73,7 +73,7 @@ const useTestTableModel = () => {
73
73
 
74
74
  const handleInsertRow = useCallback(() => {
75
75
  if (space && schema) {
76
- space.db.add(create(schema, {}));
76
+ space.db.add(live(schema, {}));
77
77
  }
78
78
  }, [space, schema]);
79
79
 
@@ -222,11 +222,11 @@ const meta: Meta<StoryProps> = {
222
222
  createIdentity: true,
223
223
  createSpace: true,
224
224
  onSpaceCreated: async ({ client, space }) => {
225
- const table = space.db.add(create(TableType, {}));
225
+ const table = space.db.add(live(TableType, {}));
226
226
  const schema = await initializeTable({ client, space, table, initialRow: false });
227
227
  Array.from({ length: 10 }).map(() => {
228
228
  return space.db.add(
229
- create(schema, {
229
+ live(schema, {
230
230
  name: faker.person.fullName(),
231
231
  }),
232
232
  );
@@ -251,7 +251,7 @@ export const StaticSchema: StoryObj = {
251
251
  createIdentity: true,
252
252
  createSpace: true,
253
253
  onSpaceCreated: async ({ client, space }) => {
254
- const table = space.db.add(create(TableType, {}));
254
+ const table = space.db.add(live(TableType, {}));
255
255
  await initializeTable({ client, space, table, typename: Testing.Contact.typename });
256
256
 
257
257
  const factory = createObjectFactory(space.db, faker as any);
@@ -303,13 +303,13 @@ export const Tags: Meta<StoryProps> = {
303
303
  const [storedSchema] = await space.db.schemaRegistry.register([schema]);
304
304
 
305
305
  // Initialize table.
306
- const table = space.db.add(create(TableType, {}));
306
+ const table = space.db.add(live(TableType, {}));
307
307
  await initializeTable({ client, space, table, initialRow: false, typename });
308
308
 
309
309
  // Populate.
310
310
  Array.from({ length: 10 }).map(() => {
311
311
  return space.db.add(
312
- create(storedSchema, {
312
+ live(storedSchema, {
313
313
  single: faker.helpers.arrayElement([...selectOptionIds, undefined]),
314
314
  multiple: faker.helpers.randomSubset(selectOptionIds),
315
315
  }),
@@ -10,7 +10,7 @@ import React, { useEffect, useMemo } from 'react';
10
10
  import { AST, type BaseObject, ImmutableSchema, type BaseSchema, type HasId } from '@dxos/echo-schema';
11
11
  import { getAnnotation } from '@dxos/effect';
12
12
  import { faker } from '@dxos/random';
13
- import { create, makeRef, type ReactiveObject } from '@dxos/react-client/echo';
13
+ import { live, makeRef, type Live } from '@dxos/react-client/echo';
14
14
  import { withClientProvider } from '@dxos/react-client/testing';
15
15
  import { createView, ViewProjection, ViewType } from '@dxos/schema';
16
16
  import { createGenerator, Testing, type ValueGenerator } from '@dxos/schema/testing';
@@ -18,7 +18,7 @@ import { withLayout, withTheme } from '@dxos/storybook-utils';
18
18
 
19
19
  import { Table } from './Table';
20
20
  import { useTableModel } from '../../hooks';
21
- import { TablePresentation } from '../../model';
21
+ import { TablePresentation, type TableRow } from '../../model';
22
22
  import translations from '../../translations';
23
23
  import { TableType } from '../../types';
24
24
 
@@ -35,7 +35,7 @@ const useTestModel = <T extends BaseObject & HasId>(schema: BaseSchema<T>, count
35
35
  const typename = schema.typename;
36
36
  const name = getAnnotation<string>(AST.TitleAnnotationId)(schema.ast) ?? typename;
37
37
  const view = createView({ name, typename, jsonSchema: schema.jsonSchema });
38
- return create(TableType, { view: makeRef(view) });
38
+ return live(TableType, { view: makeRef(view) });
39
39
  }, [schema]);
40
40
 
41
41
  const projection = useMemo(() => {
@@ -47,14 +47,14 @@ const useTestModel = <T extends BaseObject & HasId>(schema: BaseSchema<T>, count
47
47
  return new ViewProjection(schema.jsonSchema, table.view.target);
48
48
  }, [schema, table]);
49
49
 
50
- const model = useTableModel({ table, projection, rows: [] });
50
+ const model = useTableModel<TableRow>({ table, projection, rows: [] });
51
51
  useEffect(() => {
52
52
  if (!model) {
53
53
  return;
54
54
  }
55
55
 
56
56
  const objectGenerator = createGenerator(generator, schema, { optional: true });
57
- const objects: ReactiveObject<T>[] = Array.from({ length: count }).map(() => objectGenerator.createObject());
57
+ const objects: Live<T>[] = Array.from({ length: count }).map(() => objectGenerator.createObject());
58
58
  model.setRows(objects);
59
59
  }, [model]);
60
60
 
@@ -10,7 +10,7 @@ import React, { useEffect, useMemo, useState } from 'react';
10
10
  import { ImmutableSchema, type EchoSchema } from '@dxos/echo-schema';
11
11
  import { invariant } from '@dxos/invariant';
12
12
  import { faker } from '@dxos/random';
13
- import { Filter, useQuery, create } from '@dxos/react-client/echo';
13
+ import { Filter, useQuery, live } from '@dxos/react-client/echo';
14
14
  import { useClientProvider, withClientProvider } from '@dxos/react-client/testing';
15
15
  import { defaultSizeRow, Grid, type GridEditing } from '@dxos/react-ui-grid';
16
16
  import { ViewProjection, ViewType } from '@dxos/schema';
@@ -95,11 +95,11 @@ const meta: Meta<StoryProps> = {
95
95
  createIdentity: true,
96
96
  createSpace: true,
97
97
  onSpaceCreated: async ({ client, space }) => {
98
- const table = space.db.add(create(TableType, {}));
98
+ const table = space.db.add(live(TableType, {}));
99
99
  const schema = await initializeTable({ client, space, table });
100
100
  Array.from({ length: 10 }).forEach(() => {
101
101
  space.db.add(
102
- create(schema, {
102
+ live(schema, {
103
103
  name: faker.person.fullName(),
104
104
  }),
105
105
  );
@@ -4,7 +4,7 @@
4
4
 
5
5
  import React, { useCallback, useMemo } from 'react';
6
6
 
7
- import { create } from '@dxos/live-object';
7
+ import { live } from '@dxos/live-object';
8
8
  import { type ThemedClassName } from '@dxos/react-ui';
9
9
  import {
10
10
  createGapSeparator,
@@ -60,7 +60,7 @@ const createTableToolbarActions = (state: TableToolbarState) => {
60
60
  };
61
61
 
62
62
  export const TableToolbar = ({ classNames, viewDirty, attendableId, onAction }: TableToolbarProps) => {
63
- const state = useMemo(() => create<TableToolbarState>({ viewDirty }), []);
63
+ const state = useMemo(() => live<TableToolbarState>({ viewDirty }), []);
64
64
  const actionsCreator = useCallback(() => createTableToolbarActions(state), [state]);
65
65
  const menu = useMenuActions(actionsCreator);
66
66
 
@@ -6,7 +6,7 @@ import { useEffect } from 'react';
6
6
 
7
7
  import { setValue, toJsonSchema, S, TypeEnum, TypedObject, FormatEnum } from '@dxos/echo-schema';
8
8
  import { faker } from '@dxos/random';
9
- import { create, makeRef } from '@dxos/react-client/echo';
9
+ import { live, makeRef } from '@dxos/react-client/echo';
10
10
  import { createView, type ViewProjection } from '@dxos/schema';
11
11
 
12
12
  import { TableType } from '../types';
@@ -20,7 +20,7 @@ export const TestSchema = TypedObject({ typename: 'example.com/type/Test', versi
20
20
  });
21
21
 
22
22
  export const createTable = (schema = TestSchema) => {
23
- return create(TableType, {
23
+ return live(TableType, {
24
24
  view: makeRef(
25
25
  createView({
26
26
  name: 'Test',
@@ -32,7 +32,7 @@ export const createTable = (schema = TestSchema) => {
32
32
  };
33
33
 
34
34
  export const createItems = (n: number) => {
35
- const { data } = create({
35
+ const { data } = live({
36
36
  data: Array.from({ length: n }, () => ({
37
37
  name: faker.person.fullName(),
38
38
  age: faker.number.int({ min: 20, max: 70 }),
@@ -5,7 +5,7 @@
5
5
  import { effect } from '@preact/signals-core';
6
6
  import { useEffect, useState } from 'react';
7
7
 
8
- import { fullyQualifiedId, getSpace, type ReactiveObject } from '@dxos/react-client/echo';
8
+ import { fullyQualifiedId, getSpace, type Live } from '@dxos/react-client/echo';
9
9
  import { useSelectionActions } from '@dxos/react-ui-attention';
10
10
  import { type ViewProjection } from '@dxos/schema';
11
11
  import { isNonNullable } from '@dxos/util';
@@ -16,7 +16,7 @@ import { type TableType } from '../types';
16
16
  export type UseTableModelParams<T extends TableRow = TableRow> = {
17
17
  table?: TableType;
18
18
  projection?: ViewProjection;
19
- rows?: ReactiveObject<T>[];
19
+ rows?: Live<T>[];
20
20
  rowActions?: TableRowAction[];
21
21
  onSelectionChanged?: (selection: string[]) => void;
22
22
  onRowAction?: (actionId: string, data: T) => void;