@nivaro/react 0.2.55 → 0.3.0
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/dist/components/slots/TasksSlot.js +31 -29
- package/dist/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +101 -1
- package/dist/index.js +538 -525
- package/dist/shared/components/ItemEditForm.js +666 -658
- package/dist/shared/components/MyWorkView.js +47 -37
- package/dist/shared/components/ProfileView.js +163 -144
- package/dist/shared/components/ai/AiPlanCard.js +427 -0
- package/dist/shared/components/ai/AiPlanChanges.js +117 -0
- package/dist/shared/components/ai/TaskDo.js +1022 -0
- package/dist/shared/components/chat/ChatAnalyticsView.js +19 -17
- package/dist/shared/components/chat/ChatPanel.js +1356 -1317
- package/dist/shared/components/chat/HuddleAnalyticsTab.js +198 -0
- package/dist/shared/components/chat/RoomHeaderMenu.js +78 -65
- package/dist/shared/components/chat/chat-core.js +273 -264
- package/dist/shared/components/chat/huddle/HuddleAudioUi.js +397 -0
- package/dist/shared/components/chat/huddle/HuddleCallBar.js +296 -0
- package/dist/shared/components/chat/huddle/HuddleCallLayer.js +180 -0
- package/dist/shared/components/chat/huddle/HuddleCamera.js +124 -0
- package/dist/shared/components/chat/huddle/HuddleCollab.js +320 -0
- package/dist/shared/components/chat/huddle/HuddleControls.js +82 -121
- package/dist/shared/components/chat/huddle/HuddleDraw.js +231 -0
- package/dist/shared/components/chat/huddle/HuddleLiveBadge.js +52 -0
- package/dist/shared/components/chat/huddle/HuddlePeoplePicker.js +143 -0
- package/dist/shared/components/chat/huddle/HuddleScheduleCard.js +190 -0
- package/dist/shared/components/chat/huddle/HuddleScheduleForm.js +188 -0
- package/dist/shared/components/chat/huddle/HuddleStage.js +184 -89
- package/dist/shared/components/chat/huddle/HuddleStageTools.js +197 -0
- package/dist/shared/components/chat/huddle/huddle-audio-logic.js +156 -0
- package/dist/shared/components/chat/huddle/huddle-audio.js +69 -0
- package/dist/shared/components/chat/huddle/huddle-calls.js +129 -0
- package/dist/shared/components/chat/huddle/huddle-camera.js +143 -0
- package/dist/shared/components/chat/huddle/huddle-collab-store.js +391 -0
- package/dist/shared/components/chat/huddle/huddle-device-prefs.js +55 -0
- package/dist/shared/components/chat/huddle/huddle-devices.js +99 -0
- package/dist/shared/components/chat/huddle/huddle-draw.js +226 -0
- package/dist/shared/components/chat/huddle/huddle-follow-bus.js +96 -0
- package/dist/shared/components/chat/huddle/huddle-hold.js +62 -0
- package/dist/shared/components/chat/huddle/huddle-link-quality.js +159 -0
- package/dist/shared/components/chat/huddle/huddle-live.js +82 -0
- package/dist/shared/components/chat/huddle/huddle-pip.js +343 -0
- package/dist/shared/components/chat/huddle/huddle-quality.js +22 -0
- package/dist/shared/components/chat/huddle/huddle-reactions.js +71 -0
- package/dist/shared/components/chat/huddle/huddle-ring-refused.js +34 -0
- package/dist/shared/components/chat/huddle/huddle-schedule.js +102 -0
- package/dist/shared/components/chat/huddle/huddle-sfu.js +176 -0
- package/dist/shared/components/chat/huddle/huddle-shortcuts.js +91 -0
- package/dist/shared/components/chat/huddle/huddle-speaking.js +100 -0
- package/dist/shared/components/chat/huddle/huddle-store.js +431 -157
- package/dist/shared/components/chat/huddle/useHuddle.js +46 -38
- package/dist/shared/components/chat/huddle/useHuddleAudio.js +35 -0
- package/dist/shared/components/item-edit/GroupSection.js +1 -0
- package/dist/shared/components/item-edit/RecordChatActions.js +68 -59
- package/dist/shared/components/item-edit/UserChip.js +145 -142
- package/dist/shared/components/panels/TaskPanel.js +51 -49
- package/dist/shared/components/support/TicketDetailSheet.js +57 -42
- package/dist/shared/lib/notification-sound.js +25 -16
- package/dist/shared/lib/stale-chunk.js +60 -0
- package/package.json +2 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
const l = "nvr-stale-chunk-reload";
|
|
2
|
+
const d = [
|
|
3
|
+
/Failed to fetch dynamically imported module/i,
|
|
4
|
+
// Chromium
|
|
5
|
+
/Importing a module script failed/i,
|
|
6
|
+
// Safari
|
|
7
|
+
/error loading dynamically imported module/i,
|
|
8
|
+
// Firefox
|
|
9
|
+
/Unable to preload CSS/i
|
|
10
|
+
// Vite's CSS preload
|
|
11
|
+
];
|
|
12
|
+
function c(e) {
|
|
13
|
+
const n = e instanceof Error ? e.message : typeof e == "string" ? e : e && typeof e == "object" && "message" in e ? String(e.message) : "";
|
|
14
|
+
return d.some((t) => t.test(n));
|
|
15
|
+
}
|
|
16
|
+
function u(e = {}) {
|
|
17
|
+
var o;
|
|
18
|
+
const n = (e.now ?? Date.now)(), t = e.storage === void 0 ? s() : e.storage;
|
|
19
|
+
let r = 0;
|
|
20
|
+
try {
|
|
21
|
+
r = Number(t == null ? void 0 : t.getItem(l)) || 0;
|
|
22
|
+
} catch {
|
|
23
|
+
r = 0;
|
|
24
|
+
}
|
|
25
|
+
if (r && n - r < 6e4)
|
|
26
|
+
return (o = e.onGiveUp) == null || o.call(e), "gave-up";
|
|
27
|
+
try {
|
|
28
|
+
t == null || t.setItem(l, String(n));
|
|
29
|
+
} catch {
|
|
30
|
+
}
|
|
31
|
+
return (e.reload ?? (() => window.location.reload()))(), "reload";
|
|
32
|
+
}
|
|
33
|
+
function f(e = {}) {
|
|
34
|
+
const n = e.target ?? (typeof window < "u" ? window : void 0);
|
|
35
|
+
if (!n) return () => {
|
|
36
|
+
};
|
|
37
|
+
let t = !1;
|
|
38
|
+
const r = () => {
|
|
39
|
+
t || (t = !0, u(e) === "gave-up" && (t = !1));
|
|
40
|
+
}, o = (i) => {
|
|
41
|
+
i.preventDefault(), r();
|
|
42
|
+
}, a = (i) => {
|
|
43
|
+
c(i.reason) && (i.preventDefault(), r());
|
|
44
|
+
};
|
|
45
|
+
return n.addEventListener("vite:preloadError", o), n.addEventListener("unhandledrejection", a), () => {
|
|
46
|
+
n.removeEventListener("vite:preloadError", o), n.removeEventListener("unhandledrejection", a);
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function s() {
|
|
50
|
+
try {
|
|
51
|
+
return typeof sessionStorage < "u" ? sessionStorage : null;
|
|
52
|
+
} catch {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export {
|
|
57
|
+
f as installStaleChunkRecovery,
|
|
58
|
+
c as isStaleChunkError,
|
|
59
|
+
u as recoverFromStaleChunk
|
|
60
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nivaro/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "React hooks and components for Nivaro CMS forms",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -85,6 +85,7 @@
|
|
|
85
85
|
"class-variance-authority": "^0.7.0",
|
|
86
86
|
"clsx": "^2.0.0",
|
|
87
87
|
"cmdk": "^1.0.0",
|
|
88
|
+
"livekit-client": "^2.23.0",
|
|
88
89
|
"lucide-react": "^0.460.0",
|
|
89
90
|
"recharts": "^3.8.1",
|
|
90
91
|
"tailwind-merge": "^2.0.0",
|