@dxos/react-ui-list 0.8.4-main.21d9917 → 0.8.4-main.2244d791bb

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/react-ui-list",
3
- "version": "0.8.4-main.21d9917",
3
+ "version": "0.8.4-main.2244d791bb",
4
4
  "description": "A list component.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -30,35 +30,35 @@
30
30
  "dependencies": {
31
31
  "@atlaskit/pragmatic-drag-and-drop": "1.7.7",
32
32
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "1.1.0",
33
- "@effect-atom/atom-react": "^0.4.6",
33
+ "@effect-atom/atom-react": "^0.5.0",
34
34
  "@radix-ui/react-accordion": "1.2.3",
35
35
  "@radix-ui/react-context": "1.1.1",
36
- "@dxos/echo": "0.8.4-main.21d9917",
37
- "@dxos/log": "0.8.4-main.21d9917",
38
- "@dxos/invariant": "0.8.4-main.21d9917",
39
- "@dxos/react-ui": "0.8.4-main.21d9917",
40
- "@dxos/ui-theme": "0.8.4-main.21d9917",
41
- "@dxos/ui-types": "0.8.4-main.21d9917",
42
- "@dxos/react-ui-text-tooltip": "0.8.4-main.21d9917",
43
- "@dxos/util": "0.8.4-main.21d9917",
44
- "@dxos/debug": "0.8.4-main.21d9917"
36
+ "@dxos/debug": "0.8.4-main.2244d791bb",
37
+ "@dxos/echo": "0.8.4-main.2244d791bb",
38
+ "@dxos/log": "0.8.4-main.2244d791bb",
39
+ "@dxos/react-ui-text-tooltip": "0.8.4-main.2244d791bb",
40
+ "@dxos/ui-types": "0.8.4-main.2244d791bb",
41
+ "@dxos/react-ui": "0.8.4-main.2244d791bb",
42
+ "@dxos/invariant": "0.8.4-main.2244d791bb",
43
+ "@dxos/ui-theme": "0.8.4-main.2244d791bb",
44
+ "@dxos/util": "0.8.4-main.2244d791bb"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/react": "~19.2.7",
48
48
  "@types/react-dom": "~19.2.3",
49
- "effect": "3.19.11",
49
+ "effect": "3.19.16",
50
50
  "react": "~19.2.3",
51
51
  "react-dom": "~19.2.3",
52
52
  "vite": "7.1.9",
53
- "@dxos/storybook-utils": "0.8.4-main.21d9917",
54
- "@dxos/random": "0.8.4-main.21d9917"
53
+ "@dxos/storybook-utils": "0.8.4-main.2244d791bb",
54
+ "@dxos/random": "0.8.4-main.2244d791bb"
55
55
  },
56
56
  "peerDependencies": {
57
- "effect": "3.19.11",
57
+ "effect": "3.19.16",
58
58
  "react": "~19.2.3",
59
59
  "react-dom": "~19.2.3",
60
- "@dxos/react-ui": "0.8.4-main.21d9917",
61
- "@dxos/ui-theme": "0.8.4-main.21d9917"
60
+ "@dxos/react-ui": "0.8.4-main.2244d791bb",
61
+ "@dxos/ui-theme": "0.8.4-main.2244d791bb"
62
62
  },
63
63
  "publishConfig": {
64
64
  "access": "public"
@@ -42,7 +42,7 @@ const DefaultStory = () => {
42
42
  const meta = {
43
43
  title: 'ui/react-ui-list/Accordion',
44
44
  render: DefaultStory,
45
- decorators: [withTheme, withLayout({ layout: 'column' })],
45
+ decorators: [withTheme(), withLayout({ layout: 'column' })],
46
46
  } satisfies Meta<typeof Accordion>;
47
47
 
48
48
  export default meta;
@@ -106,7 +106,7 @@ const SimpleStory = (props: Omit<ListRootProps<TestItemType>, 'items'>) => {
106
106
  const meta = {
107
107
  title: 'ui/react-ui-list/List',
108
108
  component: List.Root,
109
- decorators: [withTheme, withRegistry],
109
+ decorators: [withTheme(), withRegistry],
110
110
  parameters: {
111
111
  layout: 'fullscreen',
112
112
  },
@@ -26,14 +26,14 @@ export const [ListProvider, useListContext] = createContext<ListContext<any>>(LI
26
26
 
27
27
  export type ListRendererProps<T extends ListItemRecord> = {
28
28
  state: ListContext<T>['state'];
29
- items: T[];
29
+ items: readonly T[];
30
30
  };
31
31
 
32
32
  const defaultGetId = <T extends ListItemRecord>(item: T) => (item as any)?.id;
33
33
 
34
34
  export type ListRootProps<T extends ListItemRecord> = {
35
35
  children?: (props: ListRendererProps<T>) => ReactNode;
36
- items?: T[];
36
+ items?: readonly T[];
37
37
  onMove?: (fromIndex: number, toIndex: number) => void;
38
38
  } & Pick<ListContext<T>, 'isItem' | 'getId' | 'readonly' | 'dragPreview'>;
39
39
 
@@ -116,7 +116,7 @@ const DefaultStory = ({ draggable }: { draggable?: boolean }) => {
116
116
  const meta = {
117
117
  title: 'ui/react-ui-list/Tree',
118
118
 
119
- decorators: [withTheme, withRegistry],
119
+ decorators: [withTheme(), withRegistry],
120
120
  component: Tree,
121
121
  render: DefaultStory,
122
122
  } satisfies Meta<typeof Tree<TestItem>>;