rita-workspace 0.5.47 → 0.5.49
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 +13 -4
- package/dist/index.js +1 -21
- package/dist/index.mjs +1 -21
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
# Rita Workspace
|
|
1
|
+
# Excalidraw/Rita Workspace
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/rita-workspace)
|
|
4
|
+
[](https://www.npmjs.com/package/rita-workspace)
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
npm install rita-workspace
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Multi-drawing workspace feature for Excalidraw/Rita (Excalidraw fork based on B310-digital/excalidraw).
|
|
11
|
+
|
|
12
|
+
<img width="504" height="574" alt="image" src="https://github.com/user-attachments/assets/ada58a93-a664-4ab2-80e2-55354ae3a544" />
|
|
4
13
|
|
|
5
14
|
## Features
|
|
6
15
|
|
|
@@ -10,7 +19,7 @@ Multi-drawing workspace feature for Rita (Excalidraw fork based on B310-digital/
|
|
|
10
19
|
- **Multi-tab conflict detection** - Prevents data loss when same drawing is open in multiple tabs
|
|
11
20
|
- **F5 preserves write ownership** - TAB_ID and openedAt persist in sessionStorage across page refresh
|
|
12
21
|
- **Cross-tab refresh** - Creating/renaming/deleting drawings in one tab auto-refreshes other tabs via BroadcastChannel
|
|
13
|
-
- **Workspace toggle** -
|
|
22
|
+
- **Workspace toggle** - Can be enabled/disabled per browser tab
|
|
14
23
|
- **Export/Import** - Export workspace as JSON, export all drawings as individual .excalidraw files, import .excalidraw files
|
|
15
24
|
- **i18n support** - Swedish and English with automatic Excalidraw language sync
|
|
16
25
|
- **Optimized loading** - DB pre-warming and parallel initialization
|
|
@@ -111,7 +120,7 @@ if (isDrawingOpenedEarlierInOtherTab(drawingId)) {
|
|
|
111
120
|
- **localStorage** (`rita-workspace-tabs`) — persistent tab registry, backup for BroadcastChannel
|
|
112
121
|
- **Stale tab cleanup** — on mount, pings other tabs via BroadcastChannel and removes entries that don't respond
|
|
113
122
|
|
|
114
|
-
## Workspace Toggle
|
|
123
|
+
## Workspace Toggle
|
|
115
124
|
|
|
116
125
|
The workspace can be enabled/disabled per browser tab using `sessionStorage`:
|
|
117
126
|
|
package/dist/index.js
CHANGED
|
@@ -2407,27 +2407,7 @@ var DrawingsDialog = ({
|
|
|
2407
2407
|
borderBottom: "1px solid var(--default-border-color, #e0e0e0)"
|
|
2408
2408
|
},
|
|
2409
2409
|
children: [
|
|
2410
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.
|
|
2411
|
-
t.dialogTitle,
|
|
2412
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
2413
|
-
"span",
|
|
2414
|
-
{
|
|
2415
|
-
style: {
|
|
2416
|
-
fontSize: "10px",
|
|
2417
|
-
fontWeight: 700,
|
|
2418
|
-
letterSpacing: "0.5px",
|
|
2419
|
-
padding: "2px 8px",
|
|
2420
|
-
borderRadius: "10px",
|
|
2421
|
-
backgroundColor: "#fff3cd",
|
|
2422
|
-
color: "#856404",
|
|
2423
|
-
border: "1px solid #ffc107",
|
|
2424
|
-
textTransform: "uppercase"
|
|
2425
|
-
},
|
|
2426
|
-
title: "Beta \u2014 funktionen \xE4r under utveckling och kan \xE4ndras",
|
|
2427
|
-
children: "BETA"
|
|
2428
|
-
}
|
|
2429
|
-
)
|
|
2430
|
-
] }),
|
|
2410
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("h2", { style: { margin: 0, fontSize: "18px", fontWeight: 600 }, children: t.dialogTitle }),
|
|
2431
2411
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
2432
2412
|
"button",
|
|
2433
2413
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -2335,27 +2335,7 @@ var DrawingsDialog = ({
|
|
|
2335
2335
|
borderBottom: "1px solid var(--default-border-color, #e0e0e0)"
|
|
2336
2336
|
},
|
|
2337
2337
|
children: [
|
|
2338
|
-
/* @__PURE__ */
|
|
2339
|
-
t.dialogTitle,
|
|
2340
|
-
/* @__PURE__ */ jsx6(
|
|
2341
|
-
"span",
|
|
2342
|
-
{
|
|
2343
|
-
style: {
|
|
2344
|
-
fontSize: "10px",
|
|
2345
|
-
fontWeight: 700,
|
|
2346
|
-
letterSpacing: "0.5px",
|
|
2347
|
-
padding: "2px 8px",
|
|
2348
|
-
borderRadius: "10px",
|
|
2349
|
-
backgroundColor: "#fff3cd",
|
|
2350
|
-
color: "#856404",
|
|
2351
|
-
border: "1px solid #ffc107",
|
|
2352
|
-
textTransform: "uppercase"
|
|
2353
|
-
},
|
|
2354
|
-
title: "Beta \u2014 funktionen \xE4r under utveckling och kan \xE4ndras",
|
|
2355
|
-
children: "BETA"
|
|
2356
|
-
}
|
|
2357
|
-
)
|
|
2358
|
-
] }),
|
|
2338
|
+
/* @__PURE__ */ jsx6("h2", { style: { margin: 0, fontSize: "18px", fontWeight: 600 }, children: t.dialogTitle }),
|
|
2359
2339
|
/* @__PURE__ */ jsx6(
|
|
2360
2340
|
"button",
|
|
2361
2341
|
{
|