@arbidocs/blocks 0.4.129 → 0.4.131

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 (121) hide show
  1. package/dist/agents/index.cjs +303 -303
  2. package/dist/agents/index.js +11 -11
  3. package/dist/calendar/CalendarPrint.d.ts +25 -0
  4. package/dist/calendar/booking-slots.d.ts +21 -0
  5. package/dist/calendar/index.cjs +381 -97
  6. package/dist/calendar/index.cjs.map +1 -1
  7. package/dist/calendar/index.d.ts +4 -0
  8. package/dist/calendar/index.js +277 -3
  9. package/dist/calendar/index.js.map +1 -1
  10. package/dist/calendar/print-layout.d.ts +16 -0
  11. package/dist/calendar/printCalendar.d.ts +6 -0
  12. package/dist/calls/composite-canvas.d.ts +52 -0
  13. package/dist/calls/index.cjs +374 -1
  14. package/dist/calls/index.cjs.map +1 -1
  15. package/dist/calls/index.d.ts +3 -0
  16. package/dist/calls/index.js +359 -4
  17. package/dist/calls/index.js.map +1 -1
  18. package/dist/calls/ringtone.d.ts +16 -0
  19. package/dist/calls/voice-levels.d.ts +32 -0
  20. package/dist/chat/ThreadVisualizer.d.ts +28 -0
  21. package/dist/chat/index.cjs +151 -135
  22. package/dist/chat/index.d.ts +2 -0
  23. package/dist/chat/index.js +4 -4
  24. package/dist/chat/thread-diagram.d.ts +26 -0
  25. package/dist/{chunk-H2KQ6OSU.js → chunk-26E6PHD2.js} +231 -6
  26. package/dist/chunk-26E6PHD2.js.map +1 -0
  27. package/dist/{chunk-2PNNCEPH.js → chunk-54ANPPMV.js} +4 -4
  28. package/dist/{chunk-2PNNCEPH.js.map → chunk-54ANPPMV.js.map} +1 -1
  29. package/dist/{chunk-IBZJYCYM.js → chunk-66TA5IBN.js} +17 -25
  30. package/dist/chunk-66TA5IBN.js.map +1 -0
  31. package/dist/{chunk-OYMWV45N.js → chunk-7D4W3SAH.js} +51 -4
  32. package/dist/chunk-7D4W3SAH.js.map +1 -0
  33. package/dist/{chunk-2DFDFOM7.js → chunk-7HAM7Y5U.js} +3 -3
  34. package/dist/{chunk-2DFDFOM7.js.map → chunk-7HAM7Y5U.js.map} +1 -1
  35. package/dist/{chunk-7423V6RM.cjs → chunk-7KH4M3KY.cjs} +8 -8
  36. package/dist/{chunk-7423V6RM.cjs.map → chunk-7KH4M3KY.cjs.map} +1 -1
  37. package/dist/{chunk-TGWTLNXW.cjs → chunk-BIXHB4LV.cjs} +3 -2
  38. package/dist/{chunk-TGWTLNXW.cjs.map → chunk-BIXHB4LV.cjs.map} +1 -1
  39. package/dist/{chunk-DZYAAL4H.cjs → chunk-BZF55UCE.cjs} +234 -5
  40. package/dist/chunk-BZF55UCE.cjs.map +1 -0
  41. package/dist/{chunk-3BJLNKOB.cjs → chunk-CDZVC32G.cjs} +5 -5
  42. package/dist/{chunk-3BJLNKOB.cjs.map → chunk-CDZVC32G.cjs.map} +1 -1
  43. package/dist/{chunk-PUCY3UXN.js → chunk-CXLVI3SB.js} +3 -3
  44. package/dist/{chunk-PUCY3UXN.js.map → chunk-CXLVI3SB.js.map} +1 -1
  45. package/dist/{chunk-KYDRUFWT.cjs → chunk-D4YR56FV.cjs} +5 -5
  46. package/dist/{chunk-KYDRUFWT.cjs.map → chunk-D4YR56FV.cjs.map} +1 -1
  47. package/dist/{chunk-6BTCDKCK.js → chunk-DI35D756.js} +4 -4
  48. package/dist/{chunk-6BTCDKCK.js.map → chunk-DI35D756.js.map} +1 -1
  49. package/dist/{chunk-TGJNPKST.js → chunk-GTCC2VAR.js} +3 -3
  50. package/dist/{chunk-TGJNPKST.js.map → chunk-GTCC2VAR.js.map} +1 -1
  51. package/dist/{chunk-6AALMYPS.cjs → chunk-HM23LXUP.cjs} +3 -3
  52. package/dist/{chunk-6AALMYPS.cjs.map → chunk-HM23LXUP.cjs.map} +1 -1
  53. package/dist/{chunk-HSFLEVZY.js → chunk-KLOSOT26.js} +10 -10
  54. package/dist/{chunk-HSFLEVZY.js.map → chunk-KLOSOT26.js.map} +1 -1
  55. package/dist/{chunk-SARREDFP.cjs → chunk-LC2KJSUS.cjs} +46 -46
  56. package/dist/{chunk-SARREDFP.cjs.map → chunk-LC2KJSUS.cjs.map} +1 -1
  57. package/dist/{chunk-MUMH3Z6K.cjs → chunk-LRD7BHAT.cjs} +50 -3
  58. package/dist/chunk-LRD7BHAT.cjs.map +1 -0
  59. package/dist/{chunk-CJBN5HIS.js → chunk-P5HOXWYL.js} +3 -3
  60. package/dist/{chunk-CJBN5HIS.js.map → chunk-P5HOXWYL.js.map} +1 -1
  61. package/dist/{chunk-5Y7JRY7Y.js → chunk-P5ST47VY.js} +3 -3
  62. package/dist/{chunk-5Y7JRY7Y.js.map → chunk-P5ST47VY.js.map} +1 -1
  63. package/dist/{chunk-A7NCSZAP.cjs → chunk-QZTNTP75.cjs} +17 -25
  64. package/dist/chunk-QZTNTP75.cjs.map +1 -0
  65. package/dist/{chunk-ENDP7JER.js → chunk-VW2C2AZL.js} +3 -3
  66. package/dist/{chunk-ENDP7JER.js.map → chunk-VW2C2AZL.js.map} +1 -1
  67. package/dist/{chunk-JLTXVW25.cjs → chunk-W27VK32R.cjs} +78 -78
  68. package/dist/{chunk-JLTXVW25.cjs.map → chunk-W27VK32R.cjs.map} +1 -1
  69. package/dist/{chunk-PJJY6CYL.cjs → chunk-WV4IDVDQ.cjs} +11 -11
  70. package/dist/{chunk-PJJY6CYL.cjs.map → chunk-WV4IDVDQ.cjs.map} +1 -1
  71. package/dist/{chunk-NYHGG2IA.cjs → chunk-ZV3BKLFY.cjs} +3 -3
  72. package/dist/{chunk-NYHGG2IA.cjs.map → chunk-ZV3BKLFY.cjs.map} +1 -1
  73. package/dist/collaboration/index.cjs +9 -9
  74. package/dist/collaboration/index.js +1 -1
  75. package/dist/connect/docx.cjs +4 -4
  76. package/dist/connect/docx.js +3 -3
  77. package/dist/connect/index.cjs +183 -146
  78. package/dist/connect/index.cjs.map +1 -1
  79. package/dist/connect/index.d.ts +1 -1
  80. package/dist/connect/index.js +134 -98
  81. package/dist/connect/index.js.map +1 -1
  82. package/dist/connection/ConnectedSettings.d.ts +42 -7
  83. package/dist/document-tools/index.cjs +1 -1
  84. package/dist/document-tools/index.js +1 -1
  85. package/dist/facts/fact-citations.d.ts +56 -0
  86. package/dist/facts/fact-table-column-resize.d.ts +18 -0
  87. package/dist/facts/index.cjs +194 -8
  88. package/dist/facts/index.cjs.map +1 -1
  89. package/dist/facts/index.d.ts +2 -0
  90. package/dist/facts/index.js +180 -5
  91. package/dist/facts/index.js.map +1 -1
  92. package/dist/files/index.cjs +1 -1
  93. package/dist/files/index.js +1 -1
  94. package/dist/home/index.cjs +17 -17
  95. package/dist/home/index.js +3 -3
  96. package/dist/index.cjs +517 -501
  97. package/dist/index.js +18 -18
  98. package/dist/settings/MoreInfo.d.ts +25 -0
  99. package/dist/settings/PlanCard.d.ts +1 -1
  100. package/dist/settings/index.cjs +79 -225
  101. package/dist/settings/index.cjs.map +1 -1
  102. package/dist/settings/index.d.ts +1 -1
  103. package/dist/settings/index.js +70 -215
  104. package/dist/settings/index.js.map +1 -1
  105. package/dist/shell/index.cjs +1 -1
  106. package/dist/shell/index.js +1 -1
  107. package/dist/site/index.cjs +5 -5
  108. package/dist/site/index.js +1 -1
  109. package/dist/studio/index.cjs +8 -8
  110. package/dist/studio/index.js +6 -6
  111. package/dist/workflow-canvas/index.cjs +64 -64
  112. package/dist/workflow-canvas/index.js +12 -12
  113. package/node_modules/@arbidocs/coedit/package.json +1 -1
  114. package/package.json +9 -4
  115. package/dist/chunk-A7NCSZAP.cjs.map +0 -1
  116. package/dist/chunk-DZYAAL4H.cjs.map +0 -1
  117. package/dist/chunk-H2KQ6OSU.js.map +0 -1
  118. package/dist/chunk-IBZJYCYM.js.map +0 -1
  119. package/dist/chunk-MUMH3Z6K.cjs.map +0 -1
  120. package/dist/chunk-OYMWV45N.js.map +0 -1
  121. package/dist/settings/FirmPool.d.ts +0 -82
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Incoming-call ringtone, synthesised with WebAudio (no audio asset): a soft
3
+ * two-tone ring (440 Hz + 480 Hz, like a phone line), 1.2 s on / 2.8 s off,
4
+ * repeating until stopped. The mute preference is per browser.
5
+ *
6
+ * Browsers only let audio start after a user gesture on the page; when the
7
+ * AudioContext stays suspended the ring is silent and the visual ringer still
8
+ * shows. Nothing throws.
9
+ */
10
+ export declare const RINGTONE_MUTED_KEY = "arbi-call-ringtone-muted";
11
+ /** Start ringing; returns a stop function (idempotent). */
12
+ export declare function startRingtone(): () => void;
13
+ /** The per-browser "mute ringtone" preference. */
14
+ export declare function useRingtoneMuted(): [boolean, (muted: boolean) => void];
15
+ /** Ring while `ringing` and not muted; stops on unmount, mute, or when the ring goes away. */
16
+ export declare function useRingtone(ringing: boolean, muted: boolean): void;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Who is talking, fast: each participant's microphone level, measured in this browser from the
3
+ * audio it already plays (WebAudio analysers, ~60 ms), not from the media server's slower
4
+ * active-speaker events. One store for the whole app, so the call panel (rings, spotlight, live
5
+ * speaker list) and the conversation beside it (the transcript line being spoken) agree.
6
+ *
7
+ * The store is plain data; `startVoiceLevels` (used by the call room) feeds it.
8
+ */
9
+ /** Sampling period. */
10
+ export declare const LEVEL_TICK_MS = 60;
11
+ /** My voice level (0..1, in 0.05 steps) — re-renders only when it changes. */
12
+ export declare function useVoiceLevel(identity: string | null | undefined): number;
13
+ /** Everyone's level (re-renders at the level rate: for small lists). */
14
+ export declare function useVoiceLevels(): Readonly<Record<string, number>>;
15
+ export declare function useIsSpeaking(identity: string | null | undefined): boolean;
16
+ /** Identities talking now, loudest first (a stable string key, split by the caller). */
17
+ export declare function useSpeakingIds(): string[];
18
+ export declare function useSpotlightId(): string | null;
19
+ /** A track to measure: whose it is, and its audio. */
20
+ export interface VoiceSource {
21
+ identity: string;
22
+ track: MediaStreamTrack | null;
23
+ /** Mic muted / off: level 0 without measuring. */
24
+ muted: boolean;
25
+ /** Me: measured (my ring, "Speaking: … (me)") but never put in the spotlight. */
26
+ local?: boolean;
27
+ }
28
+ /**
29
+ * Measure the given sources every {@link LEVEL_TICK_MS} until stopped. `sources()` is read each
30
+ * tick, so the caller can hand over a ref to its current track list.
31
+ */
32
+ export declare function startVoiceLevels(sources: () => VoiceSource[]): () => void;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * ThreadVisualizer: renders a conversation's threads as a Mermaid flowchart (message
3
+ * relationships, branch points, thread paths) inside the ThreadMap parts. The diagram source is
4
+ * built by `thread-diagram.ts`; node clicks open the thread through `switchToThread`.
5
+ *
6
+ * Mermaid is an optional peer, imported on first render, so it stays out of every bundle that
7
+ * never shows the map.
8
+ */
9
+ import { type ThreadDiagramThread } from './thread-diagram';
10
+ /** The hint above the map. */
11
+ export interface ThreadVisualizerLabels {
12
+ hint: string;
13
+ /** Shown instead of `hint` when there are more than five threads. */
14
+ hintMany: string;
15
+ }
16
+ export declare const DEFAULT_THREAD_VISUALIZER_LABELS: ThreadVisualizerLabels;
17
+ export interface ThreadVisualizerProps {
18
+ threads: ThreadDiagramThread[];
19
+ /** Open a thread, by its leaf message id. */
20
+ switchToThread: (threadId: string) => void;
21
+ showHeader?: boolean;
22
+ showDownloadButton?: boolean;
23
+ className?: string;
24
+ labels?: Partial<ThreadVisualizerLabels>;
25
+ }
26
+ declare function ThreadVisualizerView({ threads, switchToThread, showHeader, showDownloadButton, className, labels, }: ThreadVisualizerProps): import("react").JSX.Element;
27
+ export declare const ThreadVisualizer: import("react").MemoExoticComponent<typeof ThreadVisualizerView>;
28
+ export {};