@sqlrooms/room-shell 0.24.0 → 0.24.2
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/README.md +6 -6
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -41,7 +41,7 @@ The room-shell package uses Zustand for state management. You can create a custo
|
|
|
41
41
|
|
|
42
42
|
```tsx
|
|
43
43
|
import {
|
|
44
|
-
|
|
44
|
+
createRoomShellSlice,
|
|
45
45
|
createRoomStore,
|
|
46
46
|
RoomState,
|
|
47
47
|
BaseRoomConfig,
|
|
@@ -67,7 +67,7 @@ export const {roomStore, useRoomStore} = createRoomStore<
|
|
|
67
67
|
MyRoomState
|
|
68
68
|
>((set, get, store) => ({
|
|
69
69
|
// Base room slice with initial configuration
|
|
70
|
-
...
|
|
70
|
+
...createRoomShellSlice<MyRoomConfig>({
|
|
71
71
|
config: {
|
|
72
72
|
title: 'My Room',
|
|
73
73
|
layout: {
|
|
@@ -120,7 +120,7 @@ The room configuration is designed to be persisted between sessions. You can use
|
|
|
120
120
|
```tsx
|
|
121
121
|
import {persist} from 'zustand/middleware';
|
|
122
122
|
import {
|
|
123
|
-
|
|
123
|
+
createRoomShellSlice,
|
|
124
124
|
createRoomStore,
|
|
125
125
|
RoomState,
|
|
126
126
|
BaseRoomConfig,
|
|
@@ -147,7 +147,7 @@ export const {roomStore, useRoomStore} = createRoomStore<
|
|
|
147
147
|
persist(
|
|
148
148
|
(set, get, store) => ({
|
|
149
149
|
// Base room slice
|
|
150
|
-
...
|
|
150
|
+
...createRoomShellSlice<MyRoomConfig>({
|
|
151
151
|
config: {
|
|
152
152
|
title: 'My Room',
|
|
153
153
|
layout: {
|
|
@@ -187,7 +187,7 @@ For larger applications, you can organize your state into feature slices:
|
|
|
187
187
|
|
|
188
188
|
```tsx
|
|
189
189
|
import {
|
|
190
|
-
|
|
190
|
+
createRoomShellSlice,
|
|
191
191
|
createRoomStore,
|
|
192
192
|
RoomState,
|
|
193
193
|
} from '@sqlrooms/room-shell';
|
|
@@ -206,7 +206,7 @@ export const {roomStore, useRoomStore} = createRoomStore<
|
|
|
206
206
|
RoomState
|
|
207
207
|
>((set, get, store) => ({
|
|
208
208
|
// Base room slice
|
|
209
|
-
...
|
|
209
|
+
...createRoomShellSlice<MyRoomConfig>({
|
|
210
210
|
config: {
|
|
211
211
|
/* initial config */
|
|
212
212
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqlrooms/room-shell",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.2",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -25,23 +25,23 @@
|
|
|
25
25
|
"typedoc": "typedoc"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@sqlrooms/data-table": "0.24.
|
|
29
|
-
"@sqlrooms/duckdb": "0.24.
|
|
30
|
-
"@sqlrooms/layout": "0.24.
|
|
31
|
-
"@sqlrooms/layout-config": "0.24.
|
|
32
|
-
"@sqlrooms/room-config": "0.24.
|
|
33
|
-
"@sqlrooms/room-store": "0.24.
|
|
34
|
-
"@sqlrooms/ui": "0.24.
|
|
35
|
-
"@sqlrooms/utils": "0.24.
|
|
28
|
+
"@sqlrooms/data-table": "0.24.2",
|
|
29
|
+
"@sqlrooms/duckdb": "0.24.2",
|
|
30
|
+
"@sqlrooms/layout": "0.24.2",
|
|
31
|
+
"@sqlrooms/layout-config": "0.24.2",
|
|
32
|
+
"@sqlrooms/room-config": "0.24.2",
|
|
33
|
+
"@sqlrooms/room-store": "0.24.2",
|
|
34
|
+
"@sqlrooms/ui": "0.24.2",
|
|
35
|
+
"@sqlrooms/utils": "0.24.2",
|
|
36
36
|
"apache-arrow": "17.0.0",
|
|
37
37
|
"immer": "^10.1.1",
|
|
38
38
|
"lucide-react": "^0.474.0",
|
|
39
39
|
"react-mosaic-component": "5.3.0",
|
|
40
|
-
"zod": "^3.25.
|
|
40
|
+
"zod": "^3.25.73",
|
|
41
41
|
"zustand": "^5.0.5"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": ">=18"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "1fd8260c61f7d02a5c8d821bd14c3dd036058a4a"
|
|
47
47
|
}
|