@arbidocs/react 0.5.120 → 0.5.122

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 (100) hide show
  1. package/dist/PdfViewerImpl-ZVJZ4KNW.cjs +22 -0
  2. package/dist/PdfViewerImpl-ZVJZ4KNW.cjs.map +1 -0
  3. package/dist/{PdfViewerImpl.d-B28hLEuj.d.ts → PdfViewerImpl.d-CqnEzQO7.d.ts} +9 -1
  4. package/dist/ai/MessageArtifactCard.js +9 -1
  5. package/dist/ai/MessageArtifactCard.js.map +2 -2
  6. package/dist/annotations/freeze/index.d.ts +1 -1
  7. package/dist/artifacts/artifact-kind.js +1 -0
  8. package/dist/artifacts/artifact-kind.js.map +2 -2
  9. package/dist/artifacts/index.cjs +3 -2
  10. package/dist/artifacts/index.cjs.map +1 -1
  11. package/dist/artifacts/index.d.ts +3 -2
  12. package/dist/calls/livekit/index.cjs +51 -51
  13. package/dist/chat/chat-artifacts.js +0 -1
  14. package/dist/chat/chat-artifacts.js.map +2 -2
  15. package/dist/chat/open-document.js +3 -1
  16. package/dist/chat/open-document.js.map +2 -2
  17. package/dist/chat/turn-flush.js +16 -0
  18. package/dist/chat/turn-flush.js.map +7 -0
  19. package/dist/chat/useConversationActions.js +3 -0
  20. package/dist/chat/useConversationActions.js.map +2 -2
  21. package/dist/{chunk-QP3WQSAA.cjs → chunk-4B2GW3AY.cjs} +3 -3
  22. package/dist/{chunk-QP3WQSAA.cjs.map → chunk-4B2GW3AY.cjs.map} +1 -1
  23. package/dist/{chunk-YMB6XUR2.cjs → chunk-7L7QRIQ2.cjs} +11 -7
  24. package/dist/chunk-7L7QRIQ2.cjs.map +1 -0
  25. package/dist/{chunk-KDYYAZXP.cjs → chunk-DLEHM4IA.cjs} +227 -155
  26. package/dist/chunk-DLEHM4IA.cjs.map +1 -0
  27. package/dist/{chunk-5TRUFWKT.cjs → chunk-FAJLJDWS.cjs} +12 -12
  28. package/dist/{chunk-5TRUFWKT.cjs.map → chunk-FAJLJDWS.cjs.map} +1 -1
  29. package/dist/{PdfViewerImpl-QUSDLNNM.cjs → chunk-ICBT2XGF.cjs} +5 -2
  30. package/dist/chunk-ICBT2XGF.cjs.map +1 -0
  31. package/dist/{chunk-RLSBRZ6Z.cjs → chunk-IX4HOS5Z.cjs} +2 -3
  32. package/dist/chunk-IX4HOS5Z.cjs.map +1 -0
  33. package/dist/{chunk-AJRYZ3IC.cjs → chunk-K6ELFSG6.cjs} +3 -3
  34. package/dist/{chunk-AJRYZ3IC.cjs.map → chunk-K6ELFSG6.cjs.map} +1 -1
  35. package/dist/chunk-MAOGK7IC.cjs +61 -0
  36. package/dist/chunk-MAOGK7IC.cjs.map +1 -0
  37. package/dist/{chunk-C72FSQUE.cjs → chunk-WUYSVTKE.cjs} +14 -12
  38. package/dist/chunk-WUYSVTKE.cjs.map +1 -0
  39. package/dist/datasets/sources/documents.js +1 -1
  40. package/dist/datasets/sources/documents.js.map +2 -2
  41. package/dist/document-tools/core.cjs +80 -80
  42. package/dist/document-tools/images-to-pdf.js +43 -0
  43. package/dist/document-tools/images-to-pdf.js.map +7 -0
  44. package/dist/document-tools/index.cjs +184 -80
  45. package/dist/document-tools/index.cjs.map +1 -1
  46. package/dist/document-tools/index.d.ts +41 -1
  47. package/dist/document-tools/index.js +6 -1
  48. package/dist/document-tools/index.js.map +2 -2
  49. package/dist/document-tools/pdf-attachments.js +63 -0
  50. package/dist/document-tools/pdf-attachments.js.map +7 -0
  51. package/dist/entities/DocumentEntity.js +7 -2
  52. package/dist/entities/DocumentEntity.js.map +2 -2
  53. package/dist/entities/file-type.js +14 -2
  54. package/dist/entities/file-type.js.map +2 -2
  55. package/dist/entities/index.js +9 -1
  56. package/dist/entities/index.js.map +2 -2
  57. package/dist/icons/PresIcon.js +53 -0
  58. package/dist/icons/PresIcon.js.map +7 -0
  59. package/dist/icons/colors.js +2 -0
  60. package/dist/icons/colors.js.map +2 -2
  61. package/dist/icons/file-type.js +3 -0
  62. package/dist/icons/file-type.js.map +2 -2
  63. package/dist/icons/index.js +2 -0
  64. package/dist/icons/index.js.map +2 -2
  65. package/dist/index.cjs +964 -919
  66. package/dist/index.cjs.map +1 -1
  67. package/dist/{index.d-DYlUprG9.d.ts → index.d-D2puqWeN.d.ts} +17 -3
  68. package/dist/{index.d-oR5FKZpJ.d.ts → index.d-KbsNPTEN.d.ts} +7 -5
  69. package/dist/index.d.ts +46 -12
  70. package/dist/index.js +1 -0
  71. package/dist/index.js.map +2 -2
  72. package/dist/pdf-region-impl-ZG5G2OX2.cjs +98 -0
  73. package/dist/pdf-region-impl-ZG5G2OX2.cjs.map +1 -0
  74. package/dist/session/documents.js +9 -5
  75. package/dist/session/documents.js.map +2 -2
  76. package/dist/shell/index.cjs +54 -50
  77. package/dist/shell/index.d.ts +1 -1
  78. package/dist/ui/index.cjs +182 -170
  79. package/dist/ui/index.d.ts +1 -1
  80. package/dist/ui/slider.js +7 -1
  81. package/dist/ui/slider.js.map +2 -2
  82. package/dist/viewers/PdfViewer.cjs +3 -3
  83. package/dist/viewers/PdfViewer.d.ts +2 -2
  84. package/dist/viewers/PdfViewerImpl.js +4 -1
  85. package/dist/viewers/PdfViewerImpl.js.map +2 -2
  86. package/dist/viewers/index.cjs +28 -3
  87. package/dist/viewers/index.cjs.map +1 -1
  88. package/dist/viewers/index.d.ts +68 -2
  89. package/dist/viewers/index.js +14 -0
  90. package/dist/viewers/index.js.map +2 -2
  91. package/dist/viewers/pdf-region-impl.js +96 -0
  92. package/dist/viewers/pdf-region-impl.js.map +7 -0
  93. package/dist/viewers/pdf-region.js +57 -0
  94. package/dist/viewers/pdf-region.js.map +7 -0
  95. package/package.json +3 -3
  96. package/dist/PdfViewerImpl-QUSDLNNM.cjs.map +0 -1
  97. package/dist/chunk-C72FSQUE.cjs.map +0 -1
  98. package/dist/chunk-KDYYAZXP.cjs.map +0 -1
  99. package/dist/chunk-RLSBRZ6Z.cjs.map +0 -1
  100. package/dist/chunk-YMB6XUR2.cjs.map +0 -1
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkYMB6XUR2_cjs = require('./chunk-YMB6XUR2.cjs');
3
+ var chunk7L7QRIQ2_cjs = require('./chunk-7L7QRIQ2.cjs');
4
4
  var chunkO32T7XRD_cjs = require('./chunk-O32T7XRD.cjs');
5
- var chunkRLSBRZ6Z_cjs = require('./chunk-RLSBRZ6Z.cjs');
5
+ var chunkIX4HOS5Z_cjs = require('./chunk-IX4HOS5Z.cjs');
6
6
  var chunkEEIYXVM4_cjs = require('./chunk-EEIYXVM4.cjs');
7
7
  var reactQuery = require('@tanstack/react-query');
8
8
  var react = require('react');
@@ -618,7 +618,7 @@ function applyCallEvent(queryClient, event, options = {}) {
618
618
  }
619
619
  case "call.declined":
620
620
  if (callExtId && callSession.getState().active?.callExtId === callExtId) {
621
- chunkRLSBRZ6Z_cjs.notify.info("Call declined", { record: false, ambient: false });
621
+ chunkIX4HOS5Z_cjs.notify.info("Call declined", { record: false, ambient: false });
622
622
  }
623
623
  return true;
624
624
  case "call.started":
@@ -1087,8 +1087,8 @@ function arbiAccountClient(arbi, overrides = {}) {
1087
1087
  if (everywhere) await arbi.sessions.logoutAll();
1088
1088
  else await arbi.logout();
1089
1089
  } finally {
1090
- chunkYMB6XUR2_cjs.clearSealedDrafts();
1091
- chunkRLSBRZ6Z_cjs.clearChatArtifacts();
1090
+ chunk7L7QRIQ2_cjs.clearSealedDrafts();
1091
+ chunkIX4HOS5Z_cjs.clearChatArtifacts();
1092
1092
  await wipeOfflineMail().catch(() => {
1093
1093
  });
1094
1094
  }
@@ -2452,13 +2452,13 @@ function callLink(callExtId, key, linkVersion) {
2452
2452
  function alreadyInCall(callExtId) {
2453
2453
  const active = callSession.getState().active;
2454
2454
  if (!active || active.callExtId === callExtId) return false;
2455
- chunkRLSBRZ6Z_cjs.notify.warning("You are already in a call. Leave it first.");
2455
+ chunkIX4HOS5Z_cjs.notify.warning("You are already in a call. Leave it first.");
2456
2456
  return true;
2457
2457
  }
2458
2458
  function fail(err, what = "start the call") {
2459
2459
  console.error(`[calls] failed to ${what}`, err);
2460
2460
  const message = err instanceof Error ? err.message : "Unknown error";
2461
- chunkRLSBRZ6Z_cjs.notify.error(`Could not ${what}: ${message}`);
2461
+ chunkIX4HOS5Z_cjs.notify.error(`Could not ${what}: ${message}`);
2462
2462
  }
2463
2463
  function callContext(call) {
2464
2464
  return {
@@ -2481,7 +2481,7 @@ async function sendInviteLinks(arbi, callExtId, key, linkVersion, invites) {
2481
2481
  fail(err, `invite ${invite.name || "a contact"}`);
2482
2482
  }
2483
2483
  }
2484
- if (sent) chunkRLSBRZ6Z_cjs.notify.success(`Sent ${sent} ${sent === 1 ? "invitation" : "invitations"}`);
2484
+ if (sent) chunkIX4HOS5Z_cjs.notify.success(`Sent ${sent} ${sent === 1 ? "invitation" : "invitations"}`);
2485
2485
  return sent;
2486
2486
  }
2487
2487
  async function startCall(arbi, opts) {
@@ -2721,7 +2721,7 @@ function isWorkspaceGuestOf(workspaces, workspaceExtId, me) {
2721
2721
  function useMeetingReadOnly(lockedWorkspaceExtId) {
2722
2722
  const arbi = chunkO32T7XRD_cjs.useArbi();
2723
2723
  const me = arbi.isLoggedIn ? arbi.user.identity()?.externalId ?? null : null;
2724
- const { data: workspaces } = chunkYMB6XUR2_cjs.useWorkspaces({
2724
+ const { data: workspaces } = chunk7L7QRIQ2_cjs.useWorkspaces({
2725
2725
  enabled: !!lockedWorkspaceExtId && arbi.isLoggedIn
2726
2726
  });
2727
2727
  return isWorkspaceGuestOf(
@@ -2754,7 +2754,7 @@ function useOpenCallMeetingChat() {
2754
2754
  open?.(ref);
2755
2755
  } catch (err) {
2756
2756
  console.warn("[calls] could not open the meeting chat", err);
2757
- chunkRLSBRZ6Z_cjs.notify.error(
2757
+ chunkIX4HOS5Z_cjs.notify.error(
2758
2758
  `Could not open the meeting chat: ${err instanceof Error ? err.message : "unknown error"}`
2759
2759
  );
2760
2760
  }
@@ -2983,5 +2983,5 @@ exports.useUserSettings = useUserSettings;
2983
2983
  exports.wipeOfflineMail = wipeOfflineMail;
2984
2984
  exports.wrapTrackKey = wrapTrackKey;
2985
2985
  exports.writeSamples = writeSamples;
2986
- //# sourceMappingURL=chunk-5TRUFWKT.cjs.map
2987
- //# sourceMappingURL=chunk-5TRUFWKT.cjs.map
2986
+ //# sourceMappingURL=chunk-FAJLJDWS.cjs.map
2987
+ //# sourceMappingURL=chunk-FAJLJDWS.cjs.map