@memberjunction/ng-conversations 6.2.0-edge.6 → 6.2.0-edge.8

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 (159) hide show
  1. package/README.md +7 -0
  2. package/dist/lib/components/collection/collection-view.component.d.ts.map +1 -1
  3. package/dist/lib/components/collection/collection-view.component.js +1 -0
  4. package/dist/lib/components/collection/collection-view.component.js.map +1 -1
  5. package/dist/lib/components/conversation/conversation-chat-area.component.d.ts +182 -2
  6. package/dist/lib/components/conversation/conversation-chat-area.component.d.ts.map +1 -1
  7. package/dist/lib/components/conversation/conversation-chat-area.component.js +1295 -462
  8. package/dist/lib/components/conversation/conversation-chat-area.component.js.map +1 -1
  9. package/dist/lib/components/conversation/conversation-list.component.d.ts +26 -4
  10. package/dist/lib/components/conversation/conversation-list.component.d.ts.map +1 -1
  11. package/dist/lib/components/conversation/conversation-list.component.js +305 -122
  12. package/dist/lib/components/conversation/conversation-list.component.js.map +1 -1
  13. package/dist/lib/components/conversation/conversation-mode-picker.component.js +2 -2
  14. package/dist/lib/components/conversation/conversation-mode-picker.component.js.map +1 -1
  15. package/dist/lib/components/conversation/conversation-remote-browser-controller.d.ts +109 -0
  16. package/dist/lib/components/conversation/conversation-remote-browser-controller.d.ts.map +1 -0
  17. package/dist/lib/components/conversation/conversation-remote-browser-controller.js +298 -0
  18. package/dist/lib/components/conversation/conversation-remote-browser-controller.js.map +1 -0
  19. package/dist/lib/components/message/agent-handoff-card.component.d.ts +102 -0
  20. package/dist/lib/components/message/agent-handoff-card.component.d.ts.map +1 -0
  21. package/dist/lib/components/message/agent-handoff-card.component.js +439 -0
  22. package/dist/lib/components/message/agent-handoff-card.component.js.map +1 -0
  23. package/dist/lib/components/message/message-input.component.d.ts +80 -53
  24. package/dist/lib/components/message/message-input.component.d.ts.map +1 -1
  25. package/dist/lib/components/message/message-input.component.js +381 -277
  26. package/dist/lib/components/message/message-input.component.js.map +1 -1
  27. package/dist/lib/components/message/message-item.component.d.ts +24 -1
  28. package/dist/lib/components/message/message-item.component.d.ts.map +1 -1
  29. package/dist/lib/components/message/message-item.component.js +556 -426
  30. package/dist/lib/components/message/message-item.component.js.map +1 -1
  31. package/dist/lib/components/message/message-list.component.d.ts +16 -1
  32. package/dist/lib/components/message/message-list.component.d.ts.map +1 -1
  33. package/dist/lib/components/message/message-list.component.js +59 -2
  34. package/dist/lib/components/message/message-list.component.js.map +1 -1
  35. package/dist/lib/components/overlay/chat-overlay.component.d.ts +27 -2
  36. package/dist/lib/components/overlay/chat-overlay.component.d.ts.map +1 -1
  37. package/dist/lib/components/overlay/chat-overlay.component.js +183 -16
  38. package/dist/lib/components/overlay/chat-overlay.component.js.map +1 -1
  39. package/dist/lib/components/project/project-form-modal.component.d.ts +34 -23
  40. package/dist/lib/components/project/project-form-modal.component.d.ts.map +1 -1
  41. package/dist/lib/components/project/project-form-modal.component.js +437 -71
  42. package/dist/lib/components/project/project-form-modal.component.js.map +1 -1
  43. package/dist/lib/components/project/project-selector.component.d.ts.map +1 -1
  44. package/dist/lib/components/project/project-selector.component.js +6 -3
  45. package/dist/lib/components/project/project-selector.component.js.map +1 -1
  46. package/dist/lib/components/realtime/interactive-component/run-view-component-artifact-source.js +1 -1
  47. package/dist/lib/components/realtime/interactive-component/run-view-component-artifact-source.js.map +1 -1
  48. package/dist/lib/components/realtime/media/media-channel-state.d.ts +5 -0
  49. package/dist/lib/components/realtime/media/media-channel-state.d.ts.map +1 -1
  50. package/dist/lib/components/realtime/media/media-channel-state.js +27 -1
  51. package/dist/lib/components/realtime/media/media-channel-state.js.map +1 -1
  52. package/dist/lib/components/realtime/media/media-channel.d.ts.map +1 -1
  53. package/dist/lib/components/realtime/media/media-channel.js +7 -2
  54. package/dist/lib/components/realtime/media/media-channel.js.map +1 -1
  55. package/dist/lib/components/realtime/media/realtime-media-surface.component.d.ts +19 -2
  56. package/dist/lib/components/realtime/media/realtime-media-surface.component.d.ts.map +1 -1
  57. package/dist/lib/components/realtime/media/realtime-media-surface.component.js +59 -10
  58. package/dist/lib/components/realtime/media/realtime-media-surface.component.js.map +1 -1
  59. package/dist/lib/components/realtime/realtime-agent-banner.component.d.ts +17 -6
  60. package/dist/lib/components/realtime/realtime-agent-banner.component.d.ts.map +1 -1
  61. package/dist/lib/components/realtime/realtime-agent-banner.component.js +61 -27
  62. package/dist/lib/components/realtime/realtime-agent-banner.component.js.map +1 -1
  63. package/dist/lib/components/realtime/realtime-composer.component.d.ts +27 -3
  64. package/dist/lib/components/realtime/realtime-composer.component.d.ts.map +1 -1
  65. package/dist/lib/components/realtime/realtime-composer.component.js +199 -103
  66. package/dist/lib/components/realtime/realtime-composer.component.js.map +1 -1
  67. package/dist/lib/components/realtime/realtime-session-overlay.component.d.ts +55 -15
  68. package/dist/lib/components/realtime/realtime-session-overlay.component.d.ts.map +1 -1
  69. package/dist/lib/components/realtime/realtime-session-overlay.component.js +134 -53
  70. package/dist/lib/components/realtime/realtime-session-overlay.component.js.map +1 -1
  71. package/dist/lib/components/realtime/realtime-session-thread.component.d.ts +3 -1
  72. package/dist/lib/components/realtime/realtime-session-thread.component.d.ts.map +1 -1
  73. package/dist/lib/components/realtime/realtime-session-thread.component.js +8 -4
  74. package/dist/lib/components/realtime/realtime-session-thread.component.js.map +1 -1
  75. package/dist/lib/components/realtime/realtime-ui-config.d.ts +9 -12
  76. package/dist/lib/components/realtime/realtime-ui-config.d.ts.map +1 -1
  77. package/dist/lib/components/realtime/realtime-ui-config.js +38 -18
  78. package/dist/lib/components/realtime/realtime-ui-config.js.map +1 -1
  79. package/dist/lib/components/realtime/remote-browser/remote-browser-channel.d.ts.map +1 -1
  80. package/dist/lib/components/realtime/remote-browser/remote-browser-channel.js +27 -4
  81. package/dist/lib/components/realtime/remote-browser/remote-browser-channel.js.map +1 -1
  82. package/dist/lib/components/realtime/remote-browser/remote-browser-tools.d.ts +8 -2
  83. package/dist/lib/components/realtime/remote-browser/remote-browser-tools.d.ts.map +1 -1
  84. package/dist/lib/components/realtime/remote-browser/remote-browser-tools.js +51 -10
  85. package/dist/lib/components/realtime/remote-browser/remote-browser-tools.js.map +1 -1
  86. package/dist/lib/components/realtime/whiteboard/whiteboard-channel-config.d.ts +46 -0
  87. package/dist/lib/components/realtime/whiteboard/whiteboard-channel-config.d.ts.map +1 -0
  88. package/dist/lib/components/realtime/whiteboard/whiteboard-channel-config.js +64 -0
  89. package/dist/lib/components/realtime/whiteboard/whiteboard-channel-config.js.map +1 -0
  90. package/dist/lib/components/realtime/whiteboard/whiteboard-channel.d.ts +131 -9
  91. package/dist/lib/components/realtime/whiteboard/whiteboard-channel.d.ts.map +1 -1
  92. package/dist/lib/components/realtime/whiteboard/whiteboard-channel.js +347 -38
  93. package/dist/lib/components/realtime/whiteboard/whiteboard-channel.js.map +1 -1
  94. package/dist/lib/components/share/share-modal.component.d.ts +7 -0
  95. package/dist/lib/components/share/share-modal.component.d.ts.map +1 -1
  96. package/dist/lib/components/share/share-modal.component.js +153 -61
  97. package/dist/lib/components/share/share-modal.component.js.map +1 -1
  98. package/dist/lib/conversations.module.d.ts +2 -1
  99. package/dist/lib/conversations.module.d.ts.map +1 -1
  100. package/dist/lib/conversations.module.js +9 -4
  101. package/dist/lib/conversations.module.js.map +1 -1
  102. package/dist/lib/events/chat-events.d.ts +5 -4
  103. package/dist/lib/events/chat-events.d.ts.map +1 -1
  104. package/dist/lib/events/chat-events.js +2 -2
  105. package/dist/lib/events/chat-events.js.map +1 -1
  106. package/dist/lib/models/agent-turn.model.d.ts +11 -7
  107. package/dist/lib/models/agent-turn.model.d.ts.map +1 -1
  108. package/dist/lib/models/agent-turn.model.js.map +1 -1
  109. package/dist/lib/services/active-tasks.service.d.ts +5 -0
  110. package/dist/lib/services/active-tasks.service.d.ts.map +1 -1
  111. package/dist/lib/services/active-tasks.service.js +16 -0
  112. package/dist/lib/services/active-tasks.service.js.map +1 -1
  113. package/dist/lib/services/agent-state.service.d.ts.map +1 -1
  114. package/dist/lib/services/agent-state.service.js +7 -1
  115. package/dist/lib/services/agent-state.service.js.map +1 -1
  116. package/dist/lib/services/artifact-permission.service.d.ts.map +1 -1
  117. package/dist/lib/services/artifact-permission.service.js +2 -0
  118. package/dist/lib/services/artifact-permission.service.js.map +1 -1
  119. package/dist/lib/services/artifact-state.service.d.ts.map +1 -1
  120. package/dist/lib/services/artifact-state.service.js +1 -0
  121. package/dist/lib/services/artifact-state.service.js.map +1 -1
  122. package/dist/lib/services/collection-permission.service.d.ts.map +1 -1
  123. package/dist/lib/services/collection-permission.service.js +1 -0
  124. package/dist/lib/services/collection-permission.service.js.map +1 -1
  125. package/dist/lib/services/conversation-agent.service.d.ts +1 -4
  126. package/dist/lib/services/conversation-agent.service.d.ts.map +1 -1
  127. package/dist/lib/services/conversation-agent.service.js +7 -45
  128. package/dist/lib/services/conversation-agent.service.js.map +1 -1
  129. package/dist/lib/services/realtime-session-review.service.d.ts +2 -1
  130. package/dist/lib/services/realtime-session-review.service.d.ts.map +1 -1
  131. package/dist/lib/services/realtime-session-review.service.js.map +1 -1
  132. package/dist/lib/services/search.service.d.ts.map +1 -1
  133. package/dist/lib/services/search.service.js +1 -0
  134. package/dist/lib/services/search.service.js.map +1 -1
  135. package/dist/lib/utils/agent-handoff-map.d.ts +52 -0
  136. package/dist/lib/utils/agent-handoff-map.d.ts.map +1 -0
  137. package/dist/lib/utils/agent-handoff-map.js +270 -0
  138. package/dist/lib/utils/agent-handoff-map.js.map +1 -0
  139. package/dist/lib/utils/agent-turn-routing.d.ts +62 -7
  140. package/dist/lib/utils/agent-turn-routing.d.ts.map +1 -1
  141. package/dist/lib/utils/agent-turn-routing.js +147 -6
  142. package/dist/lib/utils/agent-turn-routing.js.map +1 -1
  143. package/dist/lib/utils/decision-routing.d.ts +17 -9
  144. package/dist/lib/utils/decision-routing.d.ts.map +1 -1
  145. package/dist/lib/utils/decision-routing.js +23 -14
  146. package/dist/lib/utils/decision-routing.js.map +1 -1
  147. package/dist/lib/utils/folder-move.d.ts +30 -0
  148. package/dist/lib/utils/folder-move.d.ts.map +1 -0
  149. package/dist/lib/utils/folder-move.js +47 -0
  150. package/dist/lib/utils/folder-move.js.map +1 -0
  151. package/dist/lib/utils/thread-replies.d.ts +34 -0
  152. package/dist/lib/utils/thread-replies.d.ts.map +1 -0
  153. package/dist/lib/utils/thread-replies.js +49 -0
  154. package/dist/lib/utils/thread-replies.js.map +1 -0
  155. package/dist/public-api.d.ts +5 -0
  156. package/dist/public-api.d.ts.map +1 -1
  157. package/dist/public-api.js +5 -0
  158. package/dist/public-api.js.map +1 -1
  159. package/package.json +36 -36
@@ -1,62 +1,87 @@
1
1
  import { Component, Input, Output, EventEmitter } from '@angular/core';
2
2
  import { BaseAngularComponent } from '@memberjunction/ng-base-types';
3
+ import { BuildUpdatedAdditionalDataForFolderInheritance, ConversationEngine, IsInheritingFolderAccess } from '@memberjunction/core-entities';
3
4
  import { RunView } from '@memberjunction/core';
5
+ import { UUIDsEqual } from '@memberjunction/global';
6
+ import { ConfirmInheritFolderAccess } from '../../utils/folder-move';
4
7
  import * as i0 from "@angular/core";
5
8
  import * as i1 from "../../services/dialog.service";
6
9
  import * as i2 from "../../services/toast.service";
7
10
  import * as i3 from "@angular/forms";
8
11
  import * as i4 from "@memberjunction/ng-ui-components";
9
12
  const _forTrack0 = ($index, $item) => $item.value;
10
- function ShareModalComponent_Conditional_0_Conditional_13_Template(rf, ctx) { if (rf & 1) {
11
- i0.ɵɵelement(0, "mj-empty-state", 9);
13
+ function ShareModalComponent_Conditional_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
14
+ const _r3 = i0.ɵɵgetCurrentView();
15
+ i0.ɵɵelementStart(0, "div", 3)(1, "h4");
16
+ i0.ɵɵtext(2, "Folder Access");
17
+ i0.ɵɵelementEnd();
18
+ i0.ɵɵelementStart(3, "label", 17)(4, "input", 14);
19
+ i0.ɵɵtwoWayListener("ngModelChange", function ShareModalComponent_Conditional_0_Conditional_2_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r1.InheritFolderAccess, $event) || (ctx_r1.InheritFolderAccess = $event); return i0.ɵɵresetView($event); });
20
+ i0.ɵɵlistener("ngModelChange", function ShareModalComponent_Conditional_0_Conditional_2_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnToggleInheritFolderAccess($event)); });
21
+ i0.ɵɵelementEnd();
22
+ i0.ɵɵelementStart(5, "span");
23
+ i0.ɵɵtext(6, "Inherit access from folder");
24
+ i0.ɵɵelementEnd()();
25
+ i0.ɵɵelementStart(7, "p", 18);
26
+ i0.ɵɵtext(8);
27
+ i0.ɵɵelementEnd()();
28
+ } if (rf & 2) {
29
+ const ctx_r1 = i0.ɵɵnextContext(2);
30
+ i0.ɵɵadvance(4);
31
+ i0.ɵɵtwoWayProperty("ngModel", ctx_r1.InheritFolderAccess);
32
+ i0.ɵɵadvance(4);
33
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.InheritFolderAccess ? "People with access to this folder see this conversation in their list." : "People with access to this folder do not see this conversation in their list. People added below do.", " ");
12
34
  } }
13
- function ShareModalComponent_Conditional_0_For_15_For_11_Template(rf, ctx) { if (rf & 1) {
14
- i0.ɵɵelementStart(0, "option", 23);
35
+ function ShareModalComponent_Conditional_0_Conditional_14_Template(rf, ctx) { if (rf & 1) {
36
+ i0.ɵɵelement(0, "mj-empty-state", 10);
37
+ } }
38
+ function ShareModalComponent_Conditional_0_For_16_For_11_Template(rf, ctx) { if (rf & 1) {
39
+ i0.ɵɵelementStart(0, "option", 26);
15
40
  i0.ɵɵtext(1);
16
41
  i0.ɵɵelementEnd();
17
42
  } if (rf & 2) {
18
- const level_r5 = ctx.$implicit;
19
- i0.ɵɵproperty("value", level_r5.value);
43
+ const level_r6 = ctx.$implicit;
44
+ i0.ɵɵproperty("value", level_r6.value);
20
45
  i0.ɵɵadvance();
21
- i0.ɵɵtextInterpolate(level_r5.label);
46
+ i0.ɵɵtextInterpolate(level_r6.label);
22
47
  } }
23
- function ShareModalComponent_Conditional_0_For_15_Template(rf, ctx) { if (rf & 1) {
24
- const _r3 = i0.ɵɵgetCurrentView();
25
- i0.ɵɵelementStart(0, "div", 10)(1, "div", 16);
26
- i0.ɵɵelement(2, "i", 17);
27
- i0.ɵɵelementStart(3, "div", 18)(4, "div", 19);
48
+ function ShareModalComponent_Conditional_0_For_16_Template(rf, ctx) { if (rf & 1) {
49
+ const _r4 = i0.ɵɵgetCurrentView();
50
+ i0.ɵɵelementStart(0, "div", 11)(1, "div", 19);
51
+ i0.ɵɵelement(2, "i", 20);
52
+ i0.ɵɵelementStart(3, "div", 21)(4, "div", 22);
28
53
  i0.ɵɵtext(5);
29
54
  i0.ɵɵelementEnd();
30
- i0.ɵɵelementStart(6, "div", 20);
55
+ i0.ɵɵelementStart(6, "div", 23);
31
56
  i0.ɵɵtext(7);
32
57
  i0.ɵɵelementEnd()()();
33
- i0.ɵɵelementStart(8, "div", 21)(9, "select", 22);
34
- i0.ɵɵlistener("ngModelChange", function ShareModalComponent_Conditional_0_For_15_Template_select_ngModelChange_9_listener($event) { const permission_r4 = i0.ɵɵrestoreView(_r3).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onAccessLevelChange(permission_r4, $event)); });
35
- i0.ɵɵrepeaterCreate(10, ShareModalComponent_Conditional_0_For_15_For_11_Template, 2, 2, "option", 23, _forTrack0);
58
+ i0.ɵɵelementStart(8, "div", 24)(9, "select", 25);
59
+ i0.ɵɵlistener("ngModelChange", function ShareModalComponent_Conditional_0_For_16_Template_select_ngModelChange_9_listener($event) { const permission_r5 = i0.ɵɵrestoreView(_r4).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onAccessLevelChange(permission_r5, $event)); });
60
+ i0.ɵɵrepeaterCreate(10, ShareModalComponent_Conditional_0_For_16_For_11_Template, 2, 2, "option", 26, _forTrack0);
36
61
  i0.ɵɵelementEnd();
37
- i0.ɵɵelementStart(12, "button", 24);
38
- i0.ɵɵlistener("click", function ShareModalComponent_Conditional_0_For_15_Template_button_click_12_listener() { const permission_r4 = i0.ɵɵrestoreView(_r3).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onRemoveUser(permission_r4)); });
39
- i0.ɵɵelement(13, "i", 25);
62
+ i0.ɵɵelementStart(12, "button", 27);
63
+ i0.ɵɵlistener("click", function ShareModalComponent_Conditional_0_For_16_Template_button_click_12_listener() { const permission_r5 = i0.ɵɵrestoreView(_r4).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onRemoveUser(permission_r5)); });
64
+ i0.ɵɵelement(13, "i", 28);
40
65
  i0.ɵɵelementEnd()()();
41
66
  } if (rf & 2) {
42
- const permission_r4 = ctx.$implicit;
67
+ const permission_r5 = ctx.$implicit;
43
68
  const ctx_r1 = i0.ɵɵnextContext(2);
44
69
  i0.ɵɵadvance(5);
45
- i0.ɵɵtextInterpolate(permission_r4.userName);
70
+ i0.ɵɵtextInterpolate(permission_r5.userName);
46
71
  i0.ɵɵadvance(2);
47
- i0.ɵɵtextInterpolate(permission_r4.userEmail);
72
+ i0.ɵɵtextInterpolate(permission_r5.userEmail);
48
73
  i0.ɵɵadvance(2);
49
- i0.ɵɵproperty("ngModel", permission_r4.permissionLevel);
74
+ i0.ɵɵproperty("ngModel", permission_r5.permissionLevel);
50
75
  i0.ɵɵadvance();
51
76
  i0.ɵɵrepeater(ctx_r1.accessLevels);
52
77
  } }
53
- function ShareModalComponent_Conditional_0_Conditional_23_Template(rf, ctx) { if (rf & 1) {
54
- const _r6 = i0.ɵɵgetCurrentView();
55
- i0.ɵɵelementStart(0, "div", 14);
56
- i0.ɵɵelement(1, "input", 26);
57
- i0.ɵɵelementStart(2, "button", 27);
58
- i0.ɵɵlistener("click", function ShareModalComponent_Conditional_0_Conditional_23_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onCopyLink()); });
59
- i0.ɵɵelement(3, "i", 28);
78
+ function ShareModalComponent_Conditional_0_Conditional_24_Template(rf, ctx) { if (rf & 1) {
79
+ const _r7 = i0.ɵɵgetCurrentView();
80
+ i0.ɵɵelementStart(0, "div", 15);
81
+ i0.ɵɵelement(1, "input", 29);
82
+ i0.ɵɵelementStart(2, "button", 30);
83
+ i0.ɵɵlistener("click", function ShareModalComponent_Conditional_0_Conditional_24_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onCopyLink()); });
84
+ i0.ɵɵelement(3, "i", 31);
60
85
  i0.ɵɵtext(4, " Copy ");
61
86
  i0.ɵɵelementEnd()();
62
87
  } if (rf & 2) {
@@ -68,52 +93,56 @@ function ShareModalComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
68
93
  const _r1 = i0.ɵɵgetCurrentView();
69
94
  i0.ɵɵelementStart(0, "mj-dialog", 1);
70
95
  i0.ɵɵlistener("Close", function ShareModalComponent_Conditional_0_Template_mj_dialog_Close_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onClose()); });
71
- i0.ɵɵelementStart(1, "div", 2)(2, "div", 3)(3, "h4");
72
- i0.ɵɵtext(4, "Add People");
96
+ i0.ɵɵelementStart(1, "div", 2);
97
+ i0.ɵɵconditionalCreate(2, ShareModalComponent_Conditional_0_Conditional_2_Template, 9, 2, "div", 3);
98
+ i0.ɵɵelementStart(3, "div", 4)(4, "h4");
99
+ i0.ɵɵtext(5, "Add People");
73
100
  i0.ɵɵelementEnd();
74
- i0.ɵɵelementStart(5, "div", 4)(6, "input", 5);
75
- i0.ɵɵtwoWayListener("ngModelChange", function ShareModalComponent_Conditional_0_Template_input_ngModelChange_6_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.newUserEmail, $event) || (ctx_r1.newUserEmail = $event); return i0.ɵɵresetView($event); });
101
+ i0.ɵɵelementStart(6, "div", 5)(7, "input", 6);
102
+ i0.ɵɵtwoWayListener("ngModelChange", function ShareModalComponent_Conditional_0_Template_input_ngModelChange_7_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.newUserEmail, $event) || (ctx_r1.newUserEmail = $event); return i0.ɵɵresetView($event); });
76
103
  i0.ɵɵelementEnd();
77
- i0.ɵɵelementStart(7, "button", 6);
78
- i0.ɵɵlistener("click", function ShareModalComponent_Conditional_0_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onAddUser()); });
79
- i0.ɵɵtext(8, " Add ");
104
+ i0.ɵɵelementStart(8, "button", 7);
105
+ i0.ɵɵlistener("click", function ShareModalComponent_Conditional_0_Template_button_click_8_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onAddUser()); });
106
+ i0.ɵɵtext(9, " Add ");
80
107
  i0.ɵɵelementEnd()()();
81
- i0.ɵɵelementStart(9, "div", 7)(10, "h4");
82
- i0.ɵɵtext(11, "People with Access");
108
+ i0.ɵɵelementStart(10, "div", 8)(11, "h4");
109
+ i0.ɵɵtext(12, "People with Access");
83
110
  i0.ɵɵelementEnd();
84
- i0.ɵɵelementStart(12, "div", 8);
85
- i0.ɵɵconditionalCreate(13, ShareModalComponent_Conditional_0_Conditional_13_Template, 1, 0, "mj-empty-state", 9);
86
- i0.ɵɵrepeaterCreate(14, ShareModalComponent_Conditional_0_For_15_Template, 14, 3, "div", 10, i0.ɵɵrepeaterTrackByIdentity);
111
+ i0.ɵɵelementStart(13, "div", 9);
112
+ i0.ɵɵconditionalCreate(14, ShareModalComponent_Conditional_0_Conditional_14_Template, 1, 0, "mj-empty-state", 10);
113
+ i0.ɵɵrepeaterCreate(15, ShareModalComponent_Conditional_0_For_16_Template, 14, 3, "div", 11, i0.ɵɵrepeaterTrackByIdentity);
87
114
  i0.ɵɵelementEnd()();
88
- i0.ɵɵelementStart(16, "div", 11)(17, "h4");
89
- i0.ɵɵtext(18, "Share Link");
115
+ i0.ɵɵelementStart(17, "div", 12)(18, "h4");
116
+ i0.ɵɵtext(19, "Share Link");
90
117
  i0.ɵɵelementEnd();
91
- i0.ɵɵelementStart(19, "div", 12)(20, "input", 13);
92
- i0.ɵɵtwoWayListener("ngModelChange", function ShareModalComponent_Conditional_0_Template_input_ngModelChange_20_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.isPublicLink, $event) || (ctx_r1.isPublicLink = $event); return i0.ɵɵresetView($event); });
93
- i0.ɵɵlistener("ngModelChange", function ShareModalComponent_Conditional_0_Template_input_ngModelChange_20_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onTogglePublicLink()); });
118
+ i0.ɵɵelementStart(20, "div", 13)(21, "input", 14);
119
+ i0.ɵɵtwoWayListener("ngModelChange", function ShareModalComponent_Conditional_0_Template_input_ngModelChange_21_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.isPublicLink, $event) || (ctx_r1.isPublicLink = $event); return i0.ɵɵresetView($event); });
120
+ i0.ɵɵlistener("ngModelChange", function ShareModalComponent_Conditional_0_Template_input_ngModelChange_21_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onTogglePublicLink()); });
94
121
  i0.ɵɵelementEnd();
95
- i0.ɵɵelementStart(21, "label");
96
- i0.ɵɵtext(22, "Anyone with the link can view");
122
+ i0.ɵɵelementStart(22, "label");
123
+ i0.ɵɵtext(23, "Anyone with the link can view");
97
124
  i0.ɵɵelementEnd()();
98
- i0.ɵɵconditionalCreate(23, ShareModalComponent_Conditional_0_Conditional_23_Template, 5, 1, "div", 14);
125
+ i0.ɵɵconditionalCreate(24, ShareModalComponent_Conditional_0_Conditional_24_Template, 5, 1, "div", 15);
99
126
  i0.ɵɵelementEnd()();
100
- i0.ɵɵelementStart(24, "mj-dialog-actions")(25, "button", 15);
101
- i0.ɵɵlistener("click", function ShareModalComponent_Conditional_0_Template_button_click_25_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onClose()); });
102
- i0.ɵɵtext(26, "Close");
127
+ i0.ɵɵelementStart(25, "mj-dialog-actions")(26, "button", 16);
128
+ i0.ɵɵlistener("click", function ShareModalComponent_Conditional_0_Template_button_click_26_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onClose()); });
129
+ i0.ɵɵtext(27, "Close");
103
130
  i0.ɵɵelementEnd()()();
104
131
  } if (rf & 2) {
105
132
  const ctx_r1 = i0.ɵɵnextContext();
106
133
  i0.ɵɵproperty("Title", "Share: " + (ctx_r1.conversation.Name || ""))("Width", 500)("Height", 600)("Visible", true);
107
- i0.ɵɵadvance(6);
134
+ i0.ɵɵadvance(2);
135
+ i0.ɵɵconditional((ctx_r1.conversation == null ? null : ctx_r1.conversation.ProjectID) && ctx_r1.IsConversationOwner ? 2 : -1);
136
+ i0.ɵɵadvance(5);
108
137
  i0.ɵɵtwoWayProperty("ngModel", ctx_r1.newUserEmail);
109
138
  i0.ɵɵadvance(7);
110
- i0.ɵɵconditional(ctx_r1.permissions.length === 0 ? 13 : -1);
139
+ i0.ɵɵconditional(ctx_r1.permissions.length === 0 ? 14 : -1);
111
140
  i0.ɵɵadvance();
112
141
  i0.ɵɵrepeater(ctx_r1.permissions);
113
142
  i0.ɵɵadvance(6);
114
143
  i0.ɵɵtwoWayProperty("ngModel", ctx_r1.isPublicLink);
115
144
  i0.ɵɵadvance(3);
116
- i0.ɵɵconditional(ctx_r1.isPublicLink ? 23 : -1);
145
+ i0.ɵɵconditional(ctx_r1.isPublicLink ? 24 : -1);
117
146
  } }
118
147
  export class ShareModalComponent extends BaseAngularComponent {
119
148
  dialogService;
@@ -191,6 +220,7 @@ export class ShareModalComponent extends BaseAngularComponent {
191
220
  set shareLink(value) {
192
221
  this.ShareLink = value;
193
222
  }
223
+ InheritFolderAccess = false;
194
224
  AccessLevels = [
195
225
  { label: 'Can View', value: 'View' },
196
226
  { label: 'Can Edit', value: 'Edit' },
@@ -213,10 +243,55 @@ export class ShareModalComponent extends BaseAngularComponent {
213
243
  }
214
244
  ngOnInit() {
215
245
  if (this.Conversation) {
246
+ this.InheritFolderAccess = IsInheritingFolderAccess(this.Conversation);
216
247
  this.loadPermissions();
217
248
  this.updateShareLink();
218
249
  }
219
250
  }
251
+ /**
252
+ * True when the current user owns the conversation. Only the owner may change whether it inherits its
253
+ * folder's access; the server refuses anyone else (`MJConversationEntityServer`).
254
+ */
255
+ get IsConversationOwner() {
256
+ return !!this.Conversation?.UserID && !!this.CurrentUser && UUIDsEqual(this.Conversation.UserID, this.CurrentUser.ID);
257
+ }
258
+ async OnToggleInheritFolderAccess(inherit) {
259
+ if (!this.Conversation)
260
+ return;
261
+ const engine = ConversationEngine.Instance;
262
+ if (inherit && !(await ConfirmInheritFolderAccess(this.dialogService, engine, this.Conversation.ProjectID))) {
263
+ this.InheritFolderAccess = false;
264
+ this.cdr.detectChanges();
265
+ return;
266
+ }
267
+ try {
268
+ let saved = false;
269
+ if (engine?.SetConversationFolderInheritance && engine.GetConversation(this.Conversation.ID)) {
270
+ saved = await engine.SetConversationFolderInheritance(this.Conversation.ID, inherit, this.CurrentUser);
271
+ }
272
+ else {
273
+ this.Conversation.AdditionalData = BuildUpdatedAdditionalDataForFolderInheritance(this.Conversation.AdditionalData, inherit);
274
+ saved = await this.Conversation.Save();
275
+ }
276
+ if (!saved) {
277
+ this.InheritFolderAccess = !inherit;
278
+ this.toastService.error('Failed to update folder access inheritance');
279
+ }
280
+ else {
281
+ this.toastService.success(inherit
282
+ ? 'Folder access inheritance enabled'
283
+ : 'Folder access restricted for this conversation');
284
+ }
285
+ }
286
+ catch (err) {
287
+ console.error('Failed to update folder inheritance:', err);
288
+ this.InheritFolderAccess = !inherit;
289
+ this.toastService.error('Failed to update folder access inheritance');
290
+ }
291
+ finally {
292
+ this.cdr.detectChanges();
293
+ }
294
+ }
220
295
  async loadPermissions() {
221
296
  try {
222
297
  const rv = RunView.FromMetadataProvider(this.ProviderToUse);
@@ -433,11 +508,11 @@ export class ShareModalComponent extends BaseAngularComponent {
433
508
  return this.OnClose();
434
509
  }
435
510
  static ɵfac = function ShareModalComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ShareModalComponent)(i0.ɵɵdirectiveInject(i1.DialogService), i0.ɵɵdirectiveInject(i2.ToastService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
436
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ShareModalComponent, selectors: [["mj-share-modal"]], inputs: { Conversation: "Conversation", conversation: "conversation", CurrentUser: "CurrentUser", currentUser: "currentUser", IsOpen: "IsOpen", isOpen: "isOpen" }, outputs: { Closed: "Closed", closed: "closed" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "Title", "Width", "Height", "Visible"], [3, "Close", "Title", "Width", "Height", "Visible"], [1, "share-content"], [1, "add-user-section"], [1, "add-user-form"], ["type", "text", "placeholder", "Enter email address", 1, "mj-textbox", 2, "flex", "1", 3, "ngModelChange", "ngModel"], ["mjButton", "", "variant", "primary", 3, "click"], [1, "permissions-section"], [1, "permission-list"], ["Icon", "fa-solid fa-user-group", "Title", "No one has been given access yet", "Size", "compact"], [1, "permission-item"], [1, "link-section"], [1, "link-controls"], ["type", "checkbox", 3, "ngModelChange", "ngModel"], [1, "link-display"], ["mjButton", "", 3, "click"], [1, "user-info"], [1, "fas", "fa-user-circle"], [1, "user-details"], [1, "user-name"], [1, "user-email"], [1, "permission-controls"], [1, "mj-select", 2, "width", "120px", 3, "ngModelChange", "ngModel"], [3, "value"], ["title", "Remove access", 1, "btn-remove", 3, "click"], [1, "fas", "fa-times"], ["type", "text", "readonly", "", 1, "mj-textbox", 2, "flex", "1", 3, "value"], ["mjButton", "", "variant", "flat", 3, "click"], [1, "fas", "fa-copy"]], template: function ShareModalComponent_Template(rf, ctx) { if (rf & 1) {
437
- i0.ɵɵconditionalCreate(0, ShareModalComponent_Conditional_0_Template, 27, 8, "mj-dialog", 0);
511
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ShareModalComponent, selectors: [["mj-share-modal"]], inputs: { Conversation: "Conversation", conversation: "conversation", CurrentUser: "CurrentUser", currentUser: "currentUser", IsOpen: "IsOpen", isOpen: "isOpen" }, outputs: { Closed: "Closed", closed: "closed" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "Title", "Width", "Height", "Visible"], [3, "Close", "Title", "Width", "Height", "Visible"], [1, "share-content"], [1, "folder-inheritance-section"], [1, "add-user-section"], [1, "add-user-form"], ["type", "text", "placeholder", "Enter email address", 1, "mj-textbox", 2, "flex", "1", 3, "ngModelChange", "ngModel"], ["mjButton", "", "variant", "primary", 3, "click"], [1, "permissions-section"], [1, "permission-list"], ["Icon", "fa-solid fa-user-group", "Title", "No one has been given access yet", "Size", "compact"], [1, "permission-item"], [1, "link-section"], [1, "link-controls"], ["type", "checkbox", 3, "ngModelChange", "ngModel"], [1, "link-display"], ["mjButton", "", 3, "click"], [1, "folder-inheritance-toggle"], [1, "folder-inheritance-hint"], [1, "user-info"], [1, "fas", "fa-user-circle"], [1, "user-details"], [1, "user-name"], [1, "user-email"], [1, "permission-controls"], [1, "mj-select", 2, "width", "120px", 3, "ngModelChange", "ngModel"], [3, "value"], ["title", "Remove access", 1, "btn-remove", 3, "click"], [1, "fas", "fa-times"], ["type", "text", "readonly", "", 1, "mj-textbox", 2, "flex", "1", 3, "value"], ["mjButton", "", "variant", "flat", 3, "click"], [1, "fas", "fa-copy"]], template: function ShareModalComponent_Template(rf, ctx) { if (rf & 1) {
512
+ i0.ɵɵconditionalCreate(0, ShareModalComponent_Conditional_0_Template, 28, 9, "mj-dialog", 0);
438
513
  } if (rf & 2) {
439
514
  i0.ɵɵconditional(ctx.isOpen ? 0 : -1);
440
- } }, dependencies: [i3.NgSelectOption, i3.ɵNgSelectMultipleOption, i3.DefaultValueAccessor, i3.CheckboxControlValueAccessor, i3.SelectControlValueAccessor, i3.NgControlStatus, i3.NgModel, i4.MJButtonDirective, i4.MJDialogComponent, i4.MJDialogActionsComponent, i4.MJEmptyStateComponent], styles: [".share-content[_ngcontent-%COMP%] { display: flex; flex-direction: column; gap: 24px; }\n\n .add-user-section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], \n .permissions-section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], \n .link-section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] { margin: 0 0 12px 0; font-size: 14px; font-weight: 600; }\n\n .add-user-form[_ngcontent-%COMP%] { display: flex; gap: 8px; }\n\n .permission-list[_ngcontent-%COMP%] { border: 1px solid #D9D9D9; border-radius: 4px; max-height: 300px; overflow-y: auto; }\n .permission-item[_ngcontent-%COMP%] { padding: 12px; border-bottom: 1px solid #E8E8E8; display: flex; justify-content: space-between; align-items: center; }\n .permission-item[_ngcontent-%COMP%]:last-child { border-bottom: none; }\n\n .user-info[_ngcontent-%COMP%] { display: flex; align-items: center; gap: 12px; flex: 1; }\n .user-info[_ngcontent-%COMP%] i[_ngcontent-%COMP%] { font-size: 32px; color: #999; }\n .user-details[_ngcontent-%COMP%] { display: flex; flex-direction: column; }\n .user-name[_ngcontent-%COMP%] { font-size: 14px; font-weight: 500; }\n .user-email[_ngcontent-%COMP%] { font-size: 12px; color: #666; }\n\n .permission-controls[_ngcontent-%COMP%] { display: flex; align-items: center; gap: 8px; }\n .btn-remove[_ngcontent-%COMP%] { padding: 6px 8px; background: transparent; border: none; cursor: pointer; border-radius: 3px; color: #999; }\n .btn-remove[_ngcontent-%COMP%]:hover { background: #FFEBEE; color: #D32F2F; }\n\n .link-controls[_ngcontent-%COMP%] { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }\n .link-controls[_ngcontent-%COMP%] label[_ngcontent-%COMP%] { font-size: 13px; }\n\n .link-display[_ngcontent-%COMP%] { display: flex; gap: 8px; }"] });
515
+ } }, dependencies: [i3.NgSelectOption, i3.ɵNgSelectMultipleOption, i3.DefaultValueAccessor, i3.CheckboxControlValueAccessor, i3.SelectControlValueAccessor, i3.NgControlStatus, i3.NgModel, i4.MJButtonDirective, i4.MJDialogComponent, i4.MJDialogActionsComponent, i4.MJEmptyStateComponent], styles: [".share-content[_ngcontent-%COMP%] { display: flex; flex-direction: column; gap: 24px; }\n\n .folder-inheritance-section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], \n .add-user-section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], \n .permissions-section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], \n .link-section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] { margin: 0 0 12px 0; font-size: 14px; font-weight: 600; }\n\n .folder-inheritance-toggle[_ngcontent-%COMP%] { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }\n .folder-inheritance-hint[_ngcontent-%COMP%] { margin: 6px 0 0 0; font-size: 12px; color: #666; line-height: 1.4; }\n\n .add-user-form[_ngcontent-%COMP%] { display: flex; gap: 8px; }\n\n .permission-list[_ngcontent-%COMP%] { border: 1px solid #D9D9D9; border-radius: 4px; max-height: 300px; overflow-y: auto; }\n .permission-item[_ngcontent-%COMP%] { padding: 12px; border-bottom: 1px solid #E8E8E8; display: flex; justify-content: space-between; align-items: center; }\n .permission-item[_ngcontent-%COMP%]:last-child { border-bottom: none; }\n\n .user-info[_ngcontent-%COMP%] { display: flex; align-items: center; gap: 12px; flex: 1; }\n .user-info[_ngcontent-%COMP%] i[_ngcontent-%COMP%] { font-size: 32px; color: #999; }\n .user-details[_ngcontent-%COMP%] { display: flex; flex-direction: column; }\n .user-name[_ngcontent-%COMP%] { font-size: 14px; font-weight: 500; }\n .user-email[_ngcontent-%COMP%] { font-size: 12px; color: #666; }\n\n .permission-controls[_ngcontent-%COMP%] { display: flex; align-items: center; gap: 8px; }\n .btn-remove[_ngcontent-%COMP%] { padding: 6px 8px; background: transparent; border: none; cursor: pointer; border-radius: 3px; color: #999; }\n .btn-remove[_ngcontent-%COMP%]:hover { background: #FFEBEE; color: #D32F2F; }\n\n .link-controls[_ngcontent-%COMP%] { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }\n .link-controls[_ngcontent-%COMP%] label[_ngcontent-%COMP%] { font-size: 13px; }\n\n .link-display[_ngcontent-%COMP%] { display: flex; gap: 8px; }"] });
441
516
  }
442
517
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ShareModalComponent, [{
443
518
  type: Component,
@@ -450,6 +525,23 @@ export class ShareModalComponent extends BaseAngularComponent {
450
525
  [Visible]="true"
451
526
  (Close)="onClose()">
452
527
  <div class="share-content">
528
+ @if (conversation?.ProjectID && IsConversationOwner) {
529
+ <div class="folder-inheritance-section">
530
+ <h4>Folder Access</h4>
531
+ <label class="folder-inheritance-toggle">
532
+ <input
533
+ type="checkbox"
534
+ [(ngModel)]="InheritFolderAccess"
535
+ (ngModelChange)="OnToggleInheritFolderAccess($event)" />
536
+ <span>Inherit access from folder</span>
537
+ </label>
538
+ <p class="folder-inheritance-hint">
539
+ {{ InheritFolderAccess
540
+ ? 'People with access to this folder see this conversation in their list.'
541
+ : 'People with access to this folder do not see this conversation in their list. People added below do.' }}
542
+ </p>
543
+ </div>
544
+ }
453
545
  <div class="add-user-section">
454
546
  <h4>Add People</h4>
455
547
  <div class="add-user-form">
@@ -531,7 +623,7 @@ export class ShareModalComponent extends BaseAngularComponent {
531
623
  </mj-dialog-actions>
532
624
  </mj-dialog>
533
625
  }
534
- `, styles: ["\n .share-content { display: flex; flex-direction: column; gap: 24px; }\n\n .add-user-section h4,\n .permissions-section h4,\n .link-section h4 { margin: 0 0 12px 0; font-size: 14px; font-weight: 600; }\n\n .add-user-form { display: flex; gap: 8px; }\n\n .permission-list { border: 1px solid #D9D9D9; border-radius: 4px; max-height: 300px; overflow-y: auto; }\n .permission-item { padding: 12px; border-bottom: 1px solid #E8E8E8; display: flex; justify-content: space-between; align-items: center; }\n .permission-item:last-child { border-bottom: none; }\n\n .user-info { display: flex; align-items: center; gap: 12px; flex: 1; }\n .user-info i { font-size: 32px; color: #999; }\n .user-details { display: flex; flex-direction: column; }\n .user-name { font-size: 14px; font-weight: 500; }\n .user-email { font-size: 12px; color: #666; }\n\n .permission-controls { display: flex; align-items: center; gap: 8px; }\n .btn-remove { padding: 6px 8px; background: transparent; border: none; cursor: pointer; border-radius: 3px; color: #999; }\n .btn-remove:hover { background: #FFEBEE; color: #D32F2F; }\n\n .link-controls { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }\n .link-controls label { font-size: 13px; }\n\n .link-display { display: flex; gap: 8px; }\n "] }]
626
+ `, styles: ["\n .share-content { display: flex; flex-direction: column; gap: 24px; }\n\n .folder-inheritance-section h4,\n .add-user-section h4,\n .permissions-section h4,\n .link-section h4 { margin: 0 0 12px 0; font-size: 14px; font-weight: 600; }\n\n .folder-inheritance-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }\n .folder-inheritance-hint { margin: 6px 0 0 0; font-size: 12px; color: #666; line-height: 1.4; }\n\n .add-user-form { display: flex; gap: 8px; }\n\n .permission-list { border: 1px solid #D9D9D9; border-radius: 4px; max-height: 300px; overflow-y: auto; }\n .permission-item { padding: 12px; border-bottom: 1px solid #E8E8E8; display: flex; justify-content: space-between; align-items: center; }\n .permission-item:last-child { border-bottom: none; }\n\n .user-info { display: flex; align-items: center; gap: 12px; flex: 1; }\n .user-info i { font-size: 32px; color: #999; }\n .user-details { display: flex; flex-direction: column; }\n .user-name { font-size: 14px; font-weight: 500; }\n .user-email { font-size: 12px; color: #666; }\n\n .permission-controls { display: flex; align-items: center; gap: 8px; }\n .btn-remove { padding: 6px 8px; background: transparent; border: none; cursor: pointer; border-radius: 3px; color: #999; }\n .btn-remove:hover { background: #FFEBEE; color: #D32F2F; }\n\n .link-controls { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }\n .link-controls label { font-size: 13px; }\n\n .link-display { display: flex; gap: 8px; }\n "] }]
535
627
  }], () => [{ type: i1.DialogService }, { type: i2.ToastService }, { type: i0.ChangeDetectorRef }], { Conversation: [{
536
628
  type: Input
537
629
  }], conversation: [{
@@ -549,5 +641,5 @@ export class ShareModalComponent extends BaseAngularComponent {
549
641
  }], closed: [{
550
642
  type: Output
551
643
  }] }); })();
552
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ShareModalComponent, { className: "ShareModalComponent", filePath: "src/lib/components/share/share-modal.component.ts", lineNumber: 139 }); })();
644
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ShareModalComponent, { className: "ShareModalComponent", filePath: "src/lib/components/share/share-modal.component.ts", lineNumber: 169 }); })();
553
645
  //# sourceMappingURL=share-modal.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"share-modal.component.js","sourceRoot":"","sources":["../../../../src/lib/components/share/share-modal.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAA6B,MAAM,eAAe,CAAC;AAClG,OAAO,EAAE,oBAAoB,EAAE,M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kBAQL,MAAM;;kBASN,MAAM;;kFAzCI,mBAAmB","sourcesContent":["import { Component, Input, Output, EventEmitter, OnInit, ChangeDetectorRef } from '@angular/core';\nimport { BaseAngularComponent } from '@memberjunction/ng-base-types';\nimport { MJConversationEntity, MJResourcePermissionEntity, MJUserEntity } from '@memberjunction/core-entities';\nimport { UserInfo, RunView, Metadata } from '@memberjunction/core';\nimport { DialogService } from '../../services/dialog.service';\nimport { ToastService } from '../../services/toast.service';\n\ninterface SharePermission {\n permissionId: string | null;\n userId: string;\n userEmail: string;\n userName: string;\n permissionLevel: 'View' | 'Edit' | 'Owner';\n}\n\n@Component({\n standalone: false,\n selector: 'mj-share-modal',\n template: `\n @if (isOpen) {\n <mj-dialog\n [Title]=\"'Share: ' + (conversation.Name || '')\"\n [Width]=\"500\"\n [Height]=\"600\"\n [Visible]=\"true\"\n (Close)=\"onClose()\">\n <div class=\"share-content\">\n <div class=\"add-user-section\">\n <h4>Add People</h4>\n <div class=\"add-user-form\">\n <input\n type=\"text\"\n [(ngModel)]=\"newUserEmail\"\n placeholder=\"Enter email address\"\n class=\"mj-textbox\"\n style=\"flex: 1;\">\n <button mjButton variant=\"primary\" (click)=\"onAddUser()\">\n Add\n </button>\n </div>\n </div>\n <div class=\"permissions-section\">\n <h4>People with Access</h4>\n <div class=\"permission-list\">\n @if (permissions.length === 0) {\n <mj-empty-state\n Icon=\"fa-solid fa-user-group\"\n Title=\"No one has been given access yet\"\n Size=\"compact\" />\n }\n @for (permission of permissions; track permission) {\n <div class=\"permission-item\">\n <div class=\"user-info\">\n <i class=\"fas fa-user-circle\"></i>\n <div class=\"user-details\">\n <div class=\"user-name\">{{ permission.userName }}</div>\n <div class=\"user-email\">{{ permission.userEmail }}</div>\n </div>\n </div>\n <div class=\"permission-controls\">\n <select\n [ngModel]=\"permission.permissionLevel\"\n (ngModelChange)=\"onAccessLevelChange(permission, $event)\"\n style=\"width: 120px;\" class=\"mj-select\">\n @for (level of accessLevels; track level.value) {\n <option [value]=\"level.value\">{{ level.label }}</option>\n }\n </select>\n <button\n class=\"btn-remove\"\n (click)=\"onRemoveUser(permission)\"\n title=\"Remove access\">\n <i class=\"fas fa-times\"></i>\n </button>\n </div>\n </div>\n }\n </div>\n </div>\n <div class=\"link-section\">\n <h4>Share Link</h4>\n <div class=\"link-controls\">\n <input\n type=\"checkbox\"\n [(ngModel)]=\"isPublicLink\"\n (ngModelChange)=\"onTogglePublicLink()\">\n <label>Anyone with the link can view</label>\n </div>\n @if (isPublicLink) {\n <div class=\"link-display\">\n <input\n type=\"text\"\n [value]=\"shareLink\"\n readonly\n class=\"mj-textbox\"\n style=\"flex: 1;\">\n <button mjButton variant=\"flat\" (click)=\"onCopyLink()\">\n <i class=\"fas fa-copy\"></i> Copy\n </button>\n </div>\n }\n </div>\n </div>\n <mj-dialog-actions>\n <button mjButton (click)=\"onClose()\">Close</button>\n </mj-dialog-actions>\n </mj-dialog>\n }\n `,\n styles: [`\n .share-content { display: flex; flex-direction: column; gap: 24px; }\n\n .add-user-section h4,\n .permissions-section h4,\n .link-section h4 { margin: 0 0 12px 0; font-size: 14px; font-weight: 600; }\n\n .add-user-form { display: flex; gap: 8px; }\n\n .permission-list { border: 1px solid #D9D9D9; border-radius: 4px; max-height: 300px; overflow-y: auto; }\n .permission-item { padding: 12px; border-bottom: 1px solid #E8E8E8; display: flex; justify-content: space-between; align-items: center; }\n .permission-item:last-child { border-bottom: none; }\n\n .user-info { display: flex; align-items: center; gap: 12px; flex: 1; }\n .user-info i { font-size: 32px; color: #999; }\n .user-details { display: flex; flex-direction: column; }\n .user-name { font-size: 14px; font-weight: 500; }\n .user-email { font-size: 12px; color: #666; }\n\n .permission-controls { display: flex; align-items: center; gap: 8px; }\n .btn-remove { padding: 6px 8px; background: transparent; border: none; cursor: pointer; border-radius: 3px; color: #999; }\n .btn-remove:hover { background: #FFEBEE; color: #D32F2F; }\n\n .link-controls { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }\n .link-controls label { font-size: 13px; }\n\n .link-display { display: flex; gap: 8px; }\n `]\n})\nexport class ShareModalComponent extends BaseAngularComponent implements OnInit {\n @Input() Conversation!: MJConversationEntity;\n\n /** @deprecated Use {@link Conversation}. */\n @Input() set conversation(value: MJConversationEntity) {\n this.Conversation = value;\n }\n /** @deprecated Use {@link Conversation}. */\n get conversation(): MJConversationEntity {\n return this.Conversation;\n }\n @Input() CurrentUser!: UserInfo;\n\n /** @deprecated Use {@link CurrentUser}. */\n @Input() set currentUser(value: UserInfo) {\n this.CurrentUser = value;\n }\n /** @deprecated Use {@link CurrentUser}. */\n get currentUser(): UserInfo {\n return this.CurrentUser;\n }\n @Input() IsOpen: boolean = false;\n\n /** @deprecated Use {@link IsOpen}. */\n @Input() set isOpen(value: boolean) {\n this.IsOpen = value;\n }\n /** @deprecated Use {@link IsOpen}. */\n get isOpen(): boolean {\n return this.IsOpen;\n }\n\n @Output() Closed = new EventEmitter<void>();\n\n /**\n * @deprecated Use {@link Closed}.\n *\n * The same emitter under the old binding name, so a template still binding\n * (closed) keeps working. Must stay AFTER Closed: class fields\n * initialise in order, and the other way round this captures undefined.\n */\n @Output() closed = this.Closed;\n\n public Permissions: SharePermission[] = [];\n\n /** @deprecated Use {@link Permissions}. */\n public get permissions(): SharePermission[] {\n return this.Permissions;\n }\n /** @deprecated Use {@link Permissions}. */\n public set permissions(value: SharePermission[]) {\n this.Permissions = value;\n }\n public NewUserEmail: string = '';\n\n /** @deprecated Use {@link NewUserEmail}. */\n public get newUserEmail(): string {\n return this.NewUserEmail;\n }\n /** @deprecated Use {@link NewUserEmail}. */\n public set newUserEmail(value: string) {\n this.NewUserEmail = value;\n }\n public IsPublicLink: boolean = false;\n\n /** @deprecated Use {@link IsPublicLink}. */\n public get isPublicLink(): boolean {\n return this.IsPublicLink;\n }\n /** @deprecated Use {@link IsPublicLink}. */\n public set isPublicLink(value: boolean) {\n this.IsPublicLink = value;\n }\n public ShareLink: string = '';\n\n /** @deprecated Use {@link ShareLink}. */\n public get shareLink(): string {\n return this.ShareLink;\n }\n /** @deprecated Use {@link ShareLink}. */\n public set shareLink(value: string) {\n this.ShareLink = value;\n }\n\n public AccessLevels = [\n { label: 'Can View', value: 'View' },\n { label: 'Can Edit', value: 'Edit' },\n { label: 'Owner', value: 'Owner' }\n ];\n\n /** @deprecated Use {@link AccessLevels}. */\n public get accessLevels() {\n return this.AccessLevels;\n }\n /** @deprecated Use {@link AccessLevels}. */\n public set accessLevels(value) {\n this.AccessLevels = value;\n }\n\n private readonly CONVERSATIONS_RESOURCE_TYPE_ID = '81D4BC3D-9FEB-EF11-B01A-286B35C04427';\n\n constructor(\n private dialogService: DialogService,\n private toastService: ToastService,\n private cdr: ChangeDetectorRef\n ) {\n super();}\n\n ngOnInit() {\n if (this.Conversation) {\n this.loadPermissions();\n this.updateShareLink();\n }\n }\n\n private async loadPermissions(): Promise<void> {\n try {\n const rv = RunView.FromMetadataProvider(this.ProviderToUse);\n const result = await rv.RunView<MJResourcePermissionEntity>({\n EntityName: 'MJ: Resource Permissions',\n ExtraFilter: `ResourceTypeID='${this.CONVERSATIONS_RESOURCE_TYPE_ID}' AND ResourceRecordID='${this.Conversation.ID}' AND Status='Approved'`,\n ResultType: 'entity_object'\n });\n\n if (result.Success && result.Results) {\n const permissionPromises = result.Results.map(async (perm) => {\n if (perm.UserID) {\n const userRv = RunView.FromMetadataProvider(this.ProviderToUse);\n const userResult = await userRv.RunView<MJUserEntity>({\n EntityName: 'MJ: Users',\n ExtraFilter: `ID='${perm.UserID}'`,\n ResultType: 'entity_object'\n });\n\n if (userResult.Success && userResult.Results && userResult.Results.length > 0) {\n const user = userResult.Results[0];\n return {\n permissionId: perm.ID,\n userId: perm.UserID,\n userEmail: user.Email,\n userName: user.Name,\n permissionLevel: perm.PermissionLevel || 'View'\n } as SharePermission;\n }\n }\n return null;\n });\n\n const resolvedPermissions = await Promise.all(permissionPromises);\n this.Permissions = resolvedPermissions.filter(p => p !== null) as SharePermission[];\n }\n } catch (error) {\n console.error('Failed to load permissions:', error);\n } finally {\n this.cdr.detectChanges();\n }\n }\n\n GetAccessLevel(permission: SharePermission): string {\n return permission.permissionLevel;\n }\n\n /** @deprecated Use {@link GetAccessLevel}. */\n getAccessLevel(permission: SharePermission): string {\n return this.GetAccessLevel(permission);\n }\n\n async OnAccessLevelChange(permission: SharePermission, level: 'View' | 'Edit' | 'Owner'): Promise<void> {\n permission.permissionLevel = level;\n await this.savePermission(permission);\n }\n\n /** @deprecated Use {@link OnAccessLevelChange}. */\n async onAccessLevelChange(permission: SharePermission, level: 'View' | 'Edit' | 'Owner'): Promise<void> {\n return this.OnAccessLevelChange(permission, level);\n }\n\n async OnAddUser(): Promise<void> {\n const email = this.NewUserEmail.trim();\n if (!email) return;\n\n // Simple email validation\n if (!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email)) {\n await this.dialogService.alert('Invalid Email', 'Please enter a valid email address');\n return;\n }\n\n // Check if user already has access\n if (this.Permissions.some(p => p.userEmail === email)) {\n await this.dialogService.alert('User Already Has Access', 'This user already has access');\n return;\n }\n\n try {\n // Look up user by email\n const rv = RunView.FromMetadataProvider(this.ProviderToUse);\n const userResult = await rv.RunView<MJUserEntity>({\n EntityName: 'MJ: Users',\n ExtraFilter: `Email='${email}'`,\n ResultType: 'entity_object'\n });\n\n if (!userResult.Success || !userResult.Results || userResult.Results.length === 0) {\n await this.dialogService.alert('User Not Found', 'No user found with that email address');\n return;\n }\n\n const user = userResult.Results[0];\n const newPermission: SharePermission = {\n permissionId: null,\n userId: user.ID,\n userEmail: user.Email,\n userName: user.Name,\n permissionLevel: 'View'\n };\n\n await this.savePermission(newPermission);\n this.Permissions.push(newPermission);\n this.NewUserEmail = '';\n this.toastService.success(`Access granted to ${user.Email}`);\n this.cdr.detectChanges();\n } catch (error) {\n console.error('Failed to add user:', error);\n this.toastService.error('Failed to add user');\n }\n }\n\n /** @deprecated Use {@link OnAddUser}. */\n async onAddUser(): Promise<void> {\n return this.OnAddUser();\n }\n\n async OnRemoveUser(permission: SharePermission): Promise<void> {\n const confirmed = await this.dialogService.confirm({\n title: 'Remove Access',\n message: `Remove access for ${permission.userEmail}?`,\n okText: 'Remove',\n cancelText: 'Cancel'\n });\n\n if (!confirmed) return;\n\n try {\n if (permission.permissionId) {\n const md = this.ProviderToUse;\n const permEntity = await md.GetEntityObject<MJResourcePermissionEntity>('MJ: Resource Permissions');\n await permEntity.Load(permission.permissionId);\n\n const deleteResult = await permEntity.Delete();\n if (!deleteResult) {\n throw new Error('Failed to delete permission');\n }\n }\n\n this.Permissions = this.Permissions.filter(p => p.userId !== permission.userId);\n this.toastService.success(`Access removed for ${permission.userEmail}`);\n } catch (error) {\n console.error('Failed to remove user:', error);\n this.toastService.error('Failed to remove user');\n }\n }\n\n /** @deprecated Use {@link OnRemoveUser}. */\n async onRemoveUser(permission: SharePermission): Promise<void> {\n return this.OnRemoveUser(permission);\n }\n\n private async savePermission(permission: SharePermission): Promise<void> {\n try {\n const md = this.ProviderToUse;\n const permEntity = await md.GetEntityObject<MJResourcePermissionEntity>('MJ: Resource Permissions');\n\n if (permission.permissionId) {\n // Update existing permission\n await permEntity.Load(permission.permissionId);\n permEntity.PermissionLevel = permission.permissionLevel;\n } else {\n // Create new permission\n permEntity.ResourceTypeID = this.CONVERSATIONS_RESOURCE_TYPE_ID;\n permEntity.ResourceRecordID = this.Conversation.ID;\n permEntity.Type = 'User';\n permEntity.UserID = permission.userId;\n permEntity.PermissionLevel = permission.permissionLevel;\n permEntity.Status = 'Approved';\n }\n\n const saveResult = await permEntity.Save();\n if (!saveResult) {\n throw new Error('Failed to save permission');\n }\n\n // Update the permission ID if it was a new permission\n if (!permission.permissionId) {\n permission.permissionId = permEntity.ID;\n }\n } catch (error) {\n console.error('Failed to save permission:', error);\n throw error;\n }\n }\n\n async OnTogglePublicLink(): Promise<void> {\n try {\n // Note: Public link functionality uses the conversation ID directly.\n // For enhanced security with unique tokens, password protection, and expiration,\n // future migration should add: PublicAccessToken, PublicAccessPassword, PublicAccessExpiresAt fields\n this.updateShareLink();\n } catch (error) {\n console.error('Failed to toggle public link:', error);\n await this.dialogService.alert('Error', 'Failed to update sharing settings');\n }\n }\n\n /** @deprecated Use {@link OnTogglePublicLink}. */\n async onTogglePublicLink(): Promise<void> {\n return this.OnTogglePublicLink();\n }\n\n private updateShareLink(): void {\n if (this.IsPublicLink && this.Conversation) {\n // Generate shareable link\n const baseUrl = window.location.origin;\n this.ShareLink = `${baseUrl}/chat/${this.Conversation.ID}`;\n } else {\n this.ShareLink = '';\n }\n }\n\n async OnCopyLink(): Promise<void> {\n try {\n await navigator.clipboard.writeText(this.ShareLink);\n this.toastService.success('Link copied to clipboard');\n } catch (err) {\n console.error('Failed to copy link:', err);\n this.toastService.error('Failed to copy link');\n }\n }\n\n /** @deprecated Use {@link OnCopyLink}. */\n async onCopyLink(): Promise<void> {\n return this.OnCopyLink();\n }\n\n OnClose(): void {\n this.Closed.emit();\n }\n\n /** @deprecated Use {@link OnClose}. */\n onClose(): void {\n return this.OnClose();\n }\n}"]}
1
+ {"version":3,"file":"share-modal.component.js","sourceRoot":"","sources":["../../../../src/lib/components/share/share-modal.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAA6B,MAAM,eAAe,CAAC;AAClG,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EACL,8CAA8C,EAC9C,kBAAkB,EAClB,wBAAwB,EAIzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAY,OAAO,EAAY,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAGpD,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;;;;;;;;;IAwBvD,AADF,8BAAwC,SAClC;IAAA,6BAAa;IAAA,iBAAK;IAEpB,AADF,iCAAyC,gBAImB;IADxD,gVAAiC;IACjC,2NAAiB,0CAAmC,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C,0BAA0B,CAAC,CAAC;QACxD,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,CAAC,KAAK,CAAC,sBAAsB,EAAE,GAAG,CAAC,CAAC;YAC3C,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;QACjD,CAAC;IACH,CAAC;IAED,0CAA0C;IAC1C,KAAK,CAAC,UAAU;QACd,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC;IAC3B,CAAC;IAED,OAAO;QACL,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;IACrB,CAAC;IAED,uCAAuC;IACvC,OAAO;QACL,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;IACxB,CAAC;6GAnZU,mBAAmB;6DAAnB,mBAAmB;YA5I5B,4FAAc;;YAAd,qCAyGC;;;iFAmCQ,mBAAmB;cAhJ/B,SAAS;6BACI,KAAK,YACP,gBAAgB,YAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2GP;;kBAmCF,KAAK;;kBAGL,KAAK;;kBAOL,KAAK;;kBAGL,KAAK;;kBAOL,KAAK;;kBAGL,KAAK;;kBAQL,MAAM;;kBASN,MAAM;;kFAzCI,mBAAmB","sourcesContent":["import { Component, Input, Output, EventEmitter, OnInit, ChangeDetectorRef } from '@angular/core';\nimport { BaseAngularComponent } from '@memberjunction/ng-base-types';\nimport {\n BuildUpdatedAdditionalDataForFolderInheritance,\n ConversationEngine,\n IsInheritingFolderAccess,\n MJConversationEntity,\n MJResourcePermissionEntity,\n MJUserEntity\n} from '@memberjunction/core-entities';\nimport { UserInfo, RunView, Metadata } from '@memberjunction/core';\nimport { UUIDsEqual } from '@memberjunction/global';\nimport { DialogService } from '../../services/dialog.service';\nimport { ToastService } from '../../services/toast.service';\nimport { ConfirmInheritFolderAccess } from '../../utils/folder-move';\n\ninterface SharePermission {\n permissionId: string | null;\n userId: string;\n userEmail: string;\n userName: string;\n permissionLevel: 'View' | 'Edit' | 'Owner';\n}\n\n@Component({\n standalone: false,\n selector: 'mj-share-modal',\n template: `\n @if (isOpen) {\n <mj-dialog\n [Title]=\"'Share: ' + (conversation.Name || '')\"\n [Width]=\"500\"\n [Height]=\"600\"\n [Visible]=\"true\"\n (Close)=\"onClose()\">\n <div class=\"share-content\">\n @if (conversation?.ProjectID && IsConversationOwner) {\n <div class=\"folder-inheritance-section\">\n <h4>Folder Access</h4>\n <label class=\"folder-inheritance-toggle\">\n <input\n type=\"checkbox\"\n [(ngModel)]=\"InheritFolderAccess\"\n (ngModelChange)=\"OnToggleInheritFolderAccess($event)\" />\n <span>Inherit access from folder</span>\n </label>\n <p class=\"folder-inheritance-hint\">\n {{ InheritFolderAccess\n ? 'People with access to this folder see this conversation in their list.'\n : 'People with access to this folder do not see this conversation in their list. People added below do.' }}\n </p>\n </div>\n }\n <div class=\"add-user-section\">\n <h4>Add People</h4>\n <div class=\"add-user-form\">\n <input\n type=\"text\"\n [(ngModel)]=\"newUserEmail\"\n placeholder=\"Enter email address\"\n class=\"mj-textbox\"\n style=\"flex: 1;\">\n <button mjButton variant=\"primary\" (click)=\"onAddUser()\">\n Add\n </button>\n </div>\n </div>\n <div class=\"permissions-section\">\n <h4>People with Access</h4>\n <div class=\"permission-list\">\n @if (permissions.length === 0) {\n <mj-empty-state\n Icon=\"fa-solid fa-user-group\"\n Title=\"No one has been given access yet\"\n Size=\"compact\" />\n }\n @for (permission of permissions; track permission) {\n <div class=\"permission-item\">\n <div class=\"user-info\">\n <i class=\"fas fa-user-circle\"></i>\n <div class=\"user-details\">\n <div class=\"user-name\">{{ permission.userName }}</div>\n <div class=\"user-email\">{{ permission.userEmail }}</div>\n </div>\n </div>\n <div class=\"permission-controls\">\n <select\n [ngModel]=\"permission.permissionLevel\"\n (ngModelChange)=\"onAccessLevelChange(permission, $event)\"\n style=\"width: 120px;\" class=\"mj-select\">\n @for (level of accessLevels; track level.value) {\n <option [value]=\"level.value\">{{ level.label }}</option>\n }\n </select>\n <button\n class=\"btn-remove\"\n (click)=\"onRemoveUser(permission)\"\n title=\"Remove access\">\n <i class=\"fas fa-times\"></i>\n </button>\n </div>\n </div>\n }\n </div>\n </div>\n <div class=\"link-section\">\n <h4>Share Link</h4>\n <div class=\"link-controls\">\n <input\n type=\"checkbox\"\n [(ngModel)]=\"isPublicLink\"\n (ngModelChange)=\"onTogglePublicLink()\">\n <label>Anyone with the link can view</label>\n </div>\n @if (isPublicLink) {\n <div class=\"link-display\">\n <input\n type=\"text\"\n [value]=\"shareLink\"\n readonly\n class=\"mj-textbox\"\n style=\"flex: 1;\">\n <button mjButton variant=\"flat\" (click)=\"onCopyLink()\">\n <i class=\"fas fa-copy\"></i> Copy\n </button>\n </div>\n }\n </div>\n </div>\n <mj-dialog-actions>\n <button mjButton (click)=\"onClose()\">Close</button>\n </mj-dialog-actions>\n </mj-dialog>\n }\n `,\n styles: [`\n .share-content { display: flex; flex-direction: column; gap: 24px; }\n\n .folder-inheritance-section h4,\n .add-user-section h4,\n .permissions-section h4,\n .link-section h4 { margin: 0 0 12px 0; font-size: 14px; font-weight: 600; }\n\n .folder-inheritance-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }\n .folder-inheritance-hint { margin: 6px 0 0 0; font-size: 12px; color: #666; line-height: 1.4; }\n\n .add-user-form { display: flex; gap: 8px; }\n\n .permission-list { border: 1px solid #D9D9D9; border-radius: 4px; max-height: 300px; overflow-y: auto; }\n .permission-item { padding: 12px; border-bottom: 1px solid #E8E8E8; display: flex; justify-content: space-between; align-items: center; }\n .permission-item:last-child { border-bottom: none; }\n\n .user-info { display: flex; align-items: center; gap: 12px; flex: 1; }\n .user-info i { font-size: 32px; color: #999; }\n .user-details { display: flex; flex-direction: column; }\n .user-name { font-size: 14px; font-weight: 500; }\n .user-email { font-size: 12px; color: #666; }\n\n .permission-controls { display: flex; align-items: center; gap: 8px; }\n .btn-remove { padding: 6px 8px; background: transparent; border: none; cursor: pointer; border-radius: 3px; color: #999; }\n .btn-remove:hover { background: #FFEBEE; color: #D32F2F; }\n\n .link-controls { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }\n .link-controls label { font-size: 13px; }\n\n .link-display { display: flex; gap: 8px; }\n `]\n})\nexport class ShareModalComponent extends BaseAngularComponent implements OnInit {\n @Input() Conversation!: MJConversationEntity;\n\n /** @deprecated Use {@link Conversation}. */\n @Input() set conversation(value: MJConversationEntity) {\n this.Conversation = value;\n }\n /** @deprecated Use {@link Conversation}. */\n get conversation(): MJConversationEntity {\n return this.Conversation;\n }\n @Input() CurrentUser!: UserInfo;\n\n /** @deprecated Use {@link CurrentUser}. */\n @Input() set currentUser(value: UserInfo) {\n this.CurrentUser = value;\n }\n /** @deprecated Use {@link CurrentUser}. */\n get currentUser(): UserInfo {\n return this.CurrentUser;\n }\n @Input() IsOpen: boolean = false;\n\n /** @deprecated Use {@link IsOpen}. */\n @Input() set isOpen(value: boolean) {\n this.IsOpen = value;\n }\n /** @deprecated Use {@link IsOpen}. */\n get isOpen(): boolean {\n return this.IsOpen;\n }\n\n @Output() Closed = new EventEmitter<void>();\n\n /**\n * @deprecated Use {@link Closed}.\n *\n * The same emitter under the old binding name, so a template still binding\n * (closed) keeps working. Must stay AFTER Closed: class fields\n * initialise in order, and the other way round this captures undefined.\n */\n @Output() closed = this.Closed;\n\n public Permissions: SharePermission[] = [];\n\n /** @deprecated Use {@link Permissions}. */\n public get permissions(): SharePermission[] {\n return this.Permissions;\n }\n /** @deprecated Use {@link Permissions}. */\n public set permissions(value: SharePermission[]) {\n this.Permissions = value;\n }\n public NewUserEmail: string = '';\n\n /** @deprecated Use {@link NewUserEmail}. */\n public get newUserEmail(): string {\n return this.NewUserEmail;\n }\n /** @deprecated Use {@link NewUserEmail}. */\n public set newUserEmail(value: string) {\n this.NewUserEmail = value;\n }\n public IsPublicLink: boolean = false;\n\n /** @deprecated Use {@link IsPublicLink}. */\n public get isPublicLink(): boolean {\n return this.IsPublicLink;\n }\n /** @deprecated Use {@link IsPublicLink}. */\n public set isPublicLink(value: boolean) {\n this.IsPublicLink = value;\n }\n public ShareLink: string = '';\n\n /** @deprecated Use {@link ShareLink}. */\n public get shareLink(): string {\n return this.ShareLink;\n }\n /** @deprecated Use {@link ShareLink}. */\n public set shareLink(value: string) {\n this.ShareLink = value;\n }\n\n public InheritFolderAccess: boolean = false;\n\n public AccessLevels = [\n { label: 'Can View', value: 'View' },\n { label: 'Can Edit', value: 'Edit' },\n { label: 'Owner', value: 'Owner' }\n ];\n\n /** @deprecated Use {@link AccessLevels}. */\n public get accessLevels() {\n return this.AccessLevels;\n }\n /** @deprecated Use {@link AccessLevels}. */\n public set accessLevels(value) {\n this.AccessLevels = value;\n }\n\n private readonly CONVERSATIONS_RESOURCE_TYPE_ID = '81D4BC3D-9FEB-EF11-B01A-286B35C04427';\n\n constructor(\n private dialogService: DialogService,\n private toastService: ToastService,\n private cdr: ChangeDetectorRef\n ) {\n super();}\n\n ngOnInit() {\n if (this.Conversation) {\n this.InheritFolderAccess = IsInheritingFolderAccess(this.Conversation);\n this.loadPermissions();\n this.updateShareLink();\n }\n }\n\n /**\n * True when the current user owns the conversation. Only the owner may change whether it inherits its\n * folder's access; the server refuses anyone else (`MJConversationEntityServer`).\n */\n public get IsConversationOwner(): boolean {\n return !!this.Conversation?.UserID && !!this.CurrentUser && UUIDsEqual(this.Conversation.UserID, this.CurrentUser.ID);\n }\n\n async OnToggleInheritFolderAccess(inherit: boolean): Promise<void> {\n if (!this.Conversation) return;\n const engine = ConversationEngine.Instance;\n if (inherit && !(await ConfirmInheritFolderAccess(this.dialogService, engine, this.Conversation.ProjectID))) {\n this.InheritFolderAccess = false;\n this.cdr.detectChanges();\n return;\n }\n try {\n let saved = false;\n if (engine?.SetConversationFolderInheritance && engine.GetConversation(this.Conversation.ID)) {\n saved = await engine.SetConversationFolderInheritance(\n this.Conversation.ID,\n inherit,\n this.CurrentUser\n );\n } else {\n this.Conversation.AdditionalData = BuildUpdatedAdditionalDataForFolderInheritance(\n this.Conversation.AdditionalData,\n inherit\n );\n saved = await this.Conversation.Save();\n }\n if (!saved) {\n this.InheritFolderAccess = !inherit;\n this.toastService.error('Failed to update folder access inheritance');\n } else {\n this.toastService.success(\n inherit\n ? 'Folder access inheritance enabled'\n : 'Folder access restricted for this conversation'\n );\n }\n } catch (err) {\n console.error('Failed to update folder inheritance:', err);\n this.InheritFolderAccess = !inherit;\n this.toastService.error('Failed to update folder access inheritance');\n } finally {\n this.cdr.detectChanges();\n }\n }\n\n private async loadPermissions(): Promise<void> {\n try {\n const rv = RunView.FromMetadataProvider(this.ProviderToUse);\n const result = await rv.RunView<MJResourcePermissionEntity>({\n EntityName: 'MJ: Resource Permissions',\n ExtraFilter: `ResourceTypeID='${this.CONVERSATIONS_RESOURCE_TYPE_ID}' AND ResourceRecordID='${this.Conversation.ID}' AND Status='Approved'`,\n ResultType: 'entity_object'\n });\n\n if (result.Success && result.Results) {\n const permissionPromises = result.Results.map(async (perm) => {\n if (perm.UserID) {\n const userRv = RunView.FromMetadataProvider(this.ProviderToUse);\n const userResult = await userRv.RunView<MJUserEntity>({\n EntityName: 'MJ: Users',\n ExtraFilter: `ID='${perm.UserID}'`,\n ResultType: 'entity_object'\n });\n\n if (userResult.Success && userResult.Results && userResult.Results.length > 0) {\n const user = userResult.Results[0];\n return {\n permissionId: perm.ID,\n userId: perm.UserID,\n userEmail: user.Email,\n userName: user.Name,\n permissionLevel: perm.PermissionLevel || 'View'\n } as SharePermission;\n }\n }\n return null;\n });\n\n const resolvedPermissions = await Promise.all(permissionPromises);\n this.Permissions = resolvedPermissions.filter(p => p !== null) as SharePermission[];\n }\n } catch (error) {\n console.error('Failed to load permissions:', error);\n } finally {\n this.cdr.detectChanges();\n }\n }\n\n GetAccessLevel(permission: SharePermission): string {\n return permission.permissionLevel;\n }\n\n /** @deprecated Use {@link GetAccessLevel}. */\n getAccessLevel(permission: SharePermission): string {\n return this.GetAccessLevel(permission);\n }\n\n async OnAccessLevelChange(permission: SharePermission, level: 'View' | 'Edit' | 'Owner'): Promise<void> {\n permission.permissionLevel = level;\n await this.savePermission(permission);\n }\n\n /** @deprecated Use {@link OnAccessLevelChange}. */\n async onAccessLevelChange(permission: SharePermission, level: 'View' | 'Edit' | 'Owner'): Promise<void> {\n return this.OnAccessLevelChange(permission, level);\n }\n\n async OnAddUser(): Promise<void> {\n const email = this.NewUserEmail.trim();\n if (!email) return;\n\n // Simple email validation\n if (!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email)) {\n await this.dialogService.alert('Invalid Email', 'Please enter a valid email address');\n return;\n }\n\n // Check if user already has access\n if (this.Permissions.some(p => p.userEmail === email)) {\n await this.dialogService.alert('User Already Has Access', 'This user already has access');\n return;\n }\n\n try {\n // Look up user by email\n const rv = RunView.FromMetadataProvider(this.ProviderToUse);\n const userResult = await rv.RunView<MJUserEntity>({\n EntityName: 'MJ: Users',\n ExtraFilter: `Email='${email}'`,\n ResultType: 'entity_object'\n });\n\n if (!userResult.Success || !userResult.Results || userResult.Results.length === 0) {\n await this.dialogService.alert('User Not Found', 'No user found with that email address');\n return;\n }\n\n const user = userResult.Results[0];\n const newPermission: SharePermission = {\n permissionId: null,\n userId: user.ID,\n userEmail: user.Email,\n userName: user.Name,\n permissionLevel: 'View'\n };\n\n await this.savePermission(newPermission);\n this.Permissions.push(newPermission);\n this.NewUserEmail = '';\n this.toastService.success(`Access granted to ${user.Email}`);\n this.cdr.detectChanges();\n } catch (error) {\n console.error('Failed to add user:', error);\n this.toastService.error('Failed to add user');\n }\n }\n\n /** @deprecated Use {@link OnAddUser}. */\n async onAddUser(): Promise<void> {\n return this.OnAddUser();\n }\n\n async OnRemoveUser(permission: SharePermission): Promise<void> {\n const confirmed = await this.dialogService.confirm({\n title: 'Remove Access',\n message: `Remove access for ${permission.userEmail}?`,\n okText: 'Remove',\n cancelText: 'Cancel'\n });\n\n if (!confirmed) return;\n\n try {\n if (permission.permissionId) {\n const md = this.ProviderToUse;\n const permEntity = await md.GetEntityObject<MJResourcePermissionEntity>('MJ: Resource Permissions');\n await permEntity.Load(permission.permissionId);\n\n const deleteResult = await permEntity.Delete();\n if (!deleteResult) {\n throw new Error('Failed to delete permission');\n }\n }\n\n this.Permissions = this.Permissions.filter(p => p.userId !== permission.userId);\n this.toastService.success(`Access removed for ${permission.userEmail}`);\n } catch (error) {\n console.error('Failed to remove user:', error);\n this.toastService.error('Failed to remove user');\n }\n }\n\n /** @deprecated Use {@link OnRemoveUser}. */\n async onRemoveUser(permission: SharePermission): Promise<void> {\n return this.OnRemoveUser(permission);\n }\n\n private async savePermission(permission: SharePermission): Promise<void> {\n try {\n const md = this.ProviderToUse;\n const permEntity = await md.GetEntityObject<MJResourcePermissionEntity>('MJ: Resource Permissions');\n\n if (permission.permissionId) {\n // Update existing permission\n await permEntity.Load(permission.permissionId);\n permEntity.PermissionLevel = permission.permissionLevel;\n } else {\n // Create new permission\n permEntity.ResourceTypeID = this.CONVERSATIONS_RESOURCE_TYPE_ID;\n permEntity.ResourceRecordID = this.Conversation.ID;\n permEntity.Type = 'User';\n permEntity.UserID = permission.userId;\n permEntity.PermissionLevel = permission.permissionLevel;\n permEntity.Status = 'Approved';\n }\n\n const saveResult = await permEntity.Save();\n if (!saveResult) {\n throw new Error('Failed to save permission');\n }\n\n // Update the permission ID if it was a new permission\n if (!permission.permissionId) {\n permission.permissionId = permEntity.ID;\n }\n } catch (error) {\n console.error('Failed to save permission:', error);\n throw error;\n }\n }\n\n async OnTogglePublicLink(): Promise<void> {\n try {\n // Note: Public link functionality uses the conversation ID directly.\n // For enhanced security with unique tokens, password protection, and expiration,\n // future migration should add: PublicAccessToken, PublicAccessPassword, PublicAccessExpiresAt fields\n this.updateShareLink();\n } catch (error) {\n console.error('Failed to toggle public link:', error);\n await this.dialogService.alert('Error', 'Failed to update sharing settings');\n }\n }\n\n /** @deprecated Use {@link OnTogglePublicLink}. */\n async onTogglePublicLink(): Promise<void> {\n return this.OnTogglePublicLink();\n }\n\n private updateShareLink(): void {\n if (this.IsPublicLink && this.Conversation) {\n // Generate shareable link\n const baseUrl = window.location.origin;\n this.ShareLink = `${baseUrl}/chat/${this.Conversation.ID}`;\n } else {\n this.ShareLink = '';\n }\n }\n\n async OnCopyLink(): Promise<void> {\n try {\n await navigator.clipboard.writeText(this.ShareLink);\n this.toastService.success('Link copied to clipboard');\n } catch (err) {\n console.error('Failed to copy link:', err);\n this.toastService.error('Failed to copy link');\n }\n }\n\n /** @deprecated Use {@link OnCopyLink}. */\n async onCopyLink(): Promise<void> {\n return this.OnCopyLink();\n }\n\n OnClose(): void {\n this.Closed.emit();\n }\n\n /** @deprecated Use {@link OnClose}. */\n onClose(): void {\n return this.OnClose();\n }\n}"]}
@@ -78,9 +78,10 @@ import * as i76 from "./components/realtime/remote-browser/remote-browser-surfac
78
78
  import * as i77 from "./components/realtime/media/realtime-media-surface.component";
79
79
  import * as i78 from "./components/realtime/interactive-component/realtime-interactive-component-surface.component";
80
80
  import * as i79 from "./components/realtime/evidence-playback/realtime-evidence-playback.component";
81
+ import * as i80 from "./components/message/agent-handoff-card.component";
81
82
  export declare class ConversationsModule {
82
83
  static ɵfac: i0.ɵɵFactoryDeclaration<ConversationsModule, never>;
83
- static ɵmod: i0.ɵɵNgModuleDeclaration<ConversationsModule, [typeof i1.MessageItemComponent, typeof i2.MessageListComponent, typeof i3.MessageInputComponent, typeof i4.AiComposerComponent, typeof i5.ActionableCommandsComponent, typeof i6.WorkflowPlanCardComponent, typeof i7.ConversationMessageRatingComponent, typeof i8.ConversationWorkspaceComponent, typeof i9.ConversationNavigationComponent, typeof i10.ConversationSidebarComponent, typeof i11.RoutinesSectionComponent, typeof i12.ConversationListComponent, typeof i13.ConversationChatAreaComponent, typeof i14.ConversationEmptyStateComponent, typeof i15.ConversationAgentPickerComponent, typeof i16.ConversationModePickerComponent, typeof i17.CollectionTreeComponent, typeof i18.CollectionViewComponent, typeof i19.CollectionArtifactCardComponent, typeof i20.LibraryFullViewComponent, typeof i21.CollectionFormModalComponent, typeof i22.ArtifactCreateModalComponent, typeof i23.CollectionsFullViewComponent, typeof i24.ProjectSelectorComponent, typeof i25.ProjectFormModalComponent, typeof i26.TasksDropdownComponent, typeof i27.TaskWidgetComponent, typeof i28.AgentProcessPanelComponent, typeof i29.ActiveAgentIndicatorComponent, typeof i30.ActiveTasksPanelComponent, typeof i31.ShareModalComponent, typeof i32.MembersModalComponent, typeof i33.ExportModalComponent, typeof i34.SearchPanelComponent, typeof i35.NotificationBadgeComponent, typeof i36.ActivityIndicatorComponent, typeof i37.ToastComponent, typeof i38.InputDialogComponent, typeof i39.RatingDialogComponent, typeof i40.GlobalTasksPanelComponent, typeof i41.ImageViewerComponent, typeof i42.PinnedMessagesPanelComponent, typeof i43.ForksPopoverComponent, typeof i44.ChatAgentsOverlayComponent, typeof i45.SearchShortcutDirective], [typeof i46.CommonModule, typeof i47.FormsModule, typeof i48.TaskGraphEditorModule, typeof i47.ReactiveFormsModule, typeof i49.OverlayModule, typeof i50.MJButtonDirective, typeof i50.MJClickableDirective, typeof i50.MJDatepickerComponent, typeof i50.MJDialogComponent, typeof i50.MJDialogActionsComponent, typeof i50.MJEmptyStateComponent, typeof i50.MJAlertComponent, typeof i50.MJAccordionModule, typeof i50.MJFilterChipComponent, typeof i51.ContainerDirectivesModule, typeof i52.CodeEditorModule, typeof i53.ArtifactsModule, typeof i54.TestingModule, typeof i55.SharedGenericModule, typeof i56.UserRoutinesModule, typeof i57.ComposerModule, typeof i58.MarkdownModule, typeof i59.DynamicFormsModule, typeof i60.ResourcePermissionsModule, typeof i61.TasksFullViewComponent, typeof i62.CollectionShareModalComponent, typeof i63.UserPickerComponent, typeof i64.ArtifactCollectionPickerModalComponent, typeof i65.ArtifactShareModalComponent, typeof i66.ChatSlotDirective, typeof i67.MJChatEmptyStateDefaultComponent, typeof i68.MJChatAgentPresenceDefaultComponent, typeof i69.MJChatHeaderDefaultComponent, typeof i70.MJChatMessageExtraDefaultComponent, typeof i71.MJChatDemonstrationSurfaceDefaultComponent, typeof i72.MJChatMessageBubbleDefaultComponent, typeof i73.RealtimeAgentPickerComponent, typeof i74.RealtimeSessionOverlayComponent, typeof i75.RealtimeWhiteboardHostComponent, typeof i76.RemoteBrowserSurfaceComponent, typeof i77.RealtimeMediaSurfaceComponent, typeof i78.RealtimeInteractiveComponentSurfaceComponent, typeof i79.RealtimeEvidencePlaybackComponent], [typeof i1.MessageItemComponent, typeof i2.MessageListComponent, typeof i3.MessageInputComponent, typeof i4.AiComposerComponent, typeof i5.ActionableCommandsComponent, typeof i6.WorkflowPlanCardComponent, typeof i7.ConversationMessageRatingComponent, typeof i8.ConversationWorkspaceComponent, typeof i9.ConversationNavigationComponent, typeof i10.ConversationSidebarComponent, typeof i11.RoutinesSectionComponent, typeof i12.ConversationListComponent, typeof i13.ConversationChatAreaComponent, typeof i14.ConversationEmptyStateComponent, typeof i15.ConversationAgentPickerComponent, typeof i16.ConversationModePickerComponent, typeof i17.CollectionTreeComponent, typeof i18.CollectionViewComponent, typeof i19.CollectionArtifactCardComponent, typeof i20.LibraryFullViewComponent, typeof i21.CollectionFormModalComponent, typeof i22.ArtifactCreateModalComponent, typeof i23.CollectionsFullViewComponent, typeof i24.ProjectSelectorComponent, typeof i25.ProjectFormModalComponent, typeof i26.TasksDropdownComponent, typeof i27.TaskWidgetComponent, typeof i28.AgentProcessPanelComponent, typeof i29.ActiveAgentIndicatorComponent, typeof i30.ActiveTasksPanelComponent, typeof i31.ShareModalComponent, typeof i32.MembersModalComponent, typeof i33.ExportModalComponent, typeof i34.SearchPanelComponent, typeof i35.NotificationBadgeComponent, typeof i36.ActivityIndicatorComponent, typeof i37.ToastComponent, typeof i38.InputDialogComponent, typeof i39.RatingDialogComponent, typeof i40.GlobalTasksPanelComponent, typeof i41.ImageViewerComponent, typeof i42.PinnedMessagesPanelComponent, typeof i43.ForksPopoverComponent, typeof i44.ChatAgentsOverlayComponent, typeof i45.SearchShortcutDirective, typeof i57.ComposerModule, typeof i61.TasksFullViewComponent, typeof i66.ChatSlotDirective, typeof i67.MJChatEmptyStateDefaultComponent, typeof i68.MJChatAgentPresenceDefaultComponent, typeof i69.MJChatHeaderDefaultComponent, typeof i70.MJChatMessageExtraDefaultComponent, typeof i71.MJChatDemonstrationSurfaceDefaultComponent, typeof i72.MJChatMessageBubbleDefaultComponent, typeof i73.RealtimeAgentPickerComponent, typeof i74.RealtimeSessionOverlayComponent, typeof i75.RealtimeWhiteboardHostComponent, typeof i76.RemoteBrowserSurfaceComponent, typeof i77.RealtimeMediaSurfaceComponent, typeof i79.RealtimeEvidencePlaybackComponent]>;
84
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ConversationsModule, [typeof i1.MessageItemComponent, typeof i2.MessageListComponent, typeof i3.MessageInputComponent, typeof i4.AiComposerComponent, typeof i5.ActionableCommandsComponent, typeof i6.WorkflowPlanCardComponent, typeof i7.ConversationMessageRatingComponent, typeof i8.ConversationWorkspaceComponent, typeof i9.ConversationNavigationComponent, typeof i10.ConversationSidebarComponent, typeof i11.RoutinesSectionComponent, typeof i12.ConversationListComponent, typeof i13.ConversationChatAreaComponent, typeof i14.ConversationEmptyStateComponent, typeof i15.ConversationAgentPickerComponent, typeof i16.ConversationModePickerComponent, typeof i17.CollectionTreeComponent, typeof i18.CollectionViewComponent, typeof i19.CollectionArtifactCardComponent, typeof i20.LibraryFullViewComponent, typeof i21.CollectionFormModalComponent, typeof i22.ArtifactCreateModalComponent, typeof i23.CollectionsFullViewComponent, typeof i24.ProjectSelectorComponent, typeof i25.ProjectFormModalComponent, typeof i26.TasksDropdownComponent, typeof i27.TaskWidgetComponent, typeof i28.AgentProcessPanelComponent, typeof i29.ActiveAgentIndicatorComponent, typeof i30.ActiveTasksPanelComponent, typeof i31.ShareModalComponent, typeof i32.MembersModalComponent, typeof i33.ExportModalComponent, typeof i34.SearchPanelComponent, typeof i35.NotificationBadgeComponent, typeof i36.ActivityIndicatorComponent, typeof i37.ToastComponent, typeof i38.InputDialogComponent, typeof i39.RatingDialogComponent, typeof i40.GlobalTasksPanelComponent, typeof i41.ImageViewerComponent, typeof i42.PinnedMessagesPanelComponent, typeof i43.ForksPopoverComponent, typeof i44.ChatAgentsOverlayComponent, typeof i45.SearchShortcutDirective], [typeof i46.CommonModule, typeof i47.FormsModule, typeof i48.TaskGraphEditorModule, typeof i47.ReactiveFormsModule, typeof i49.OverlayModule, typeof i50.MJButtonDirective, typeof i50.MJClickableDirective, typeof i50.MJDatepickerComponent, typeof i50.MJDialogComponent, typeof i50.MJDialogActionsComponent, typeof i50.MJEmptyStateComponent, typeof i50.MJAlertComponent, typeof i50.MJAccordionModule, typeof i50.MJFilterChipComponent, typeof i51.ContainerDirectivesModule, typeof i52.CodeEditorModule, typeof i53.ArtifactsModule, typeof i54.TestingModule, typeof i55.SharedGenericModule, typeof i56.UserRoutinesModule, typeof i57.ComposerModule, typeof i58.MarkdownModule, typeof i59.DynamicFormsModule, typeof i60.ResourcePermissionsModule, typeof i61.TasksFullViewComponent, typeof i62.CollectionShareModalComponent, typeof i63.UserPickerComponent, typeof i64.ArtifactCollectionPickerModalComponent, typeof i65.ArtifactShareModalComponent, typeof i66.ChatSlotDirective, typeof i67.MJChatEmptyStateDefaultComponent, typeof i68.MJChatAgentPresenceDefaultComponent, typeof i69.MJChatHeaderDefaultComponent, typeof i70.MJChatMessageExtraDefaultComponent, typeof i71.MJChatDemonstrationSurfaceDefaultComponent, typeof i72.MJChatMessageBubbleDefaultComponent, typeof i73.RealtimeAgentPickerComponent, typeof i74.RealtimeSessionOverlayComponent, typeof i75.RealtimeWhiteboardHostComponent, typeof i76.RemoteBrowserSurfaceComponent, typeof i77.RealtimeMediaSurfaceComponent, typeof i78.RealtimeInteractiveComponentSurfaceComponent, typeof i79.RealtimeEvidencePlaybackComponent, typeof i80.AgentHandoffCardComponent], [typeof i1.MessageItemComponent, typeof i2.MessageListComponent, typeof i3.MessageInputComponent, typeof i4.AiComposerComponent, typeof i5.ActionableCommandsComponent, typeof i6.WorkflowPlanCardComponent, typeof i7.ConversationMessageRatingComponent, typeof i8.ConversationWorkspaceComponent, typeof i9.ConversationNavigationComponent, typeof i10.ConversationSidebarComponent, typeof i11.RoutinesSectionComponent, typeof i12.ConversationListComponent, typeof i13.ConversationChatAreaComponent, typeof i14.ConversationEmptyStateComponent, typeof i15.ConversationAgentPickerComponent, typeof i16.ConversationModePickerComponent, typeof i17.CollectionTreeComponent, typeof i18.CollectionViewComponent, typeof i19.CollectionArtifactCardComponent, typeof i20.LibraryFullViewComponent, typeof i21.CollectionFormModalComponent, typeof i22.ArtifactCreateModalComponent, typeof i23.CollectionsFullViewComponent, typeof i24.ProjectSelectorComponent, typeof i25.ProjectFormModalComponent, typeof i26.TasksDropdownComponent, typeof i27.TaskWidgetComponent, typeof i28.AgentProcessPanelComponent, typeof i29.ActiveAgentIndicatorComponent, typeof i30.ActiveTasksPanelComponent, typeof i31.ShareModalComponent, typeof i32.MembersModalComponent, typeof i33.ExportModalComponent, typeof i34.SearchPanelComponent, typeof i35.NotificationBadgeComponent, typeof i36.ActivityIndicatorComponent, typeof i37.ToastComponent, typeof i38.InputDialogComponent, typeof i39.RatingDialogComponent, typeof i40.GlobalTasksPanelComponent, typeof i41.ImageViewerComponent, typeof i42.PinnedMessagesPanelComponent, typeof i43.ForksPopoverComponent, typeof i44.ChatAgentsOverlayComponent, typeof i45.SearchShortcutDirective, typeof i57.ComposerModule, typeof i61.TasksFullViewComponent, typeof i66.ChatSlotDirective, typeof i67.MJChatEmptyStateDefaultComponent, typeof i68.MJChatAgentPresenceDefaultComponent, typeof i69.MJChatHeaderDefaultComponent, typeof i70.MJChatMessageExtraDefaultComponent, typeof i71.MJChatDemonstrationSurfaceDefaultComponent, typeof i72.MJChatMessageBubbleDefaultComponent, typeof i73.RealtimeAgentPickerComponent, typeof i74.RealtimeSessionOverlayComponent, typeof i75.RealtimeWhiteboardHostComponent, typeof i76.RemoteBrowserSurfaceComponent, typeof i77.RealtimeMediaSurfaceComponent, typeof i79.RealtimeEvidencePlaybackComponent, typeof i80.AgentHandoffCardComponent]>;
84
85
  static ɵinj: i0.ɵɵInjectorDeclaration<ConversationsModule>;
85
86
  }
86
87
  //# sourceMappingURL=conversations.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"conversations.module.d.ts","sourceRoot":"","sources":["../../src/lib/conversations.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0LA,qBA8Ea,mBAAmB;yCAAnB,mBAAmB;0CAAnB,mBAAmB;0CAAnB,mBAAmB;CAAG"}
1
+ {"version":3,"file":"conversations.module.d.ts","sourceRoot":"","sources":["../../src/lib/conversations.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2LA,qBAgFa,mBAAmB;yCAAnB,mBAAmB;0CAAnB,mBAAmB;0CAAnB,mBAAmB;CAAG"}
@@ -22,6 +22,7 @@ import { AiComposerComponent } from './components/composer/ai-composer.component
22
22
  import { LoadComposerPlugins } from './composer-plugins/load-composer-plugins';
23
23
  // Components
24
24
  import { MessageItemComponent } from './components/message/message-item.component';
25
+ import { AgentHandoffCardComponent } from './components/message/agent-handoff-card.component';
25
26
  import { MessageListComponent } from './components/message/message-list.component';
26
27
  import { MessageInputComponent } from './components/message/message-input.component';
27
28
  import { DynamicFormsModule } from '@memberjunction/ng-forms';
@@ -275,7 +276,8 @@ export class ConversationsModule {
275
276
  RemoteBrowserSurfaceComponent,
276
277
  RealtimeMediaSurfaceComponent,
277
278
  RealtimeInteractiveComponentSurfaceComponent,
278
- RealtimeEvidencePlaybackComponent
279
+ RealtimeEvidencePlaybackComponent,
280
+ AgentHandoffCardComponent
279
281
  ],
280
282
  exports: [
281
283
  ...COMPONENTS,
@@ -299,7 +301,8 @@ export class ConversationsModule {
299
301
  RealtimeWhiteboardHostComponent,
300
302
  RemoteBrowserSurfaceComponent,
301
303
  RealtimeMediaSurfaceComponent,
302
- RealtimeEvidencePlaybackComponent
304
+ RealtimeEvidencePlaybackComponent,
305
+ AgentHandoffCardComponent
303
306
  ]
304
307
  }]
305
308
  }], null, null); })();
@@ -392,7 +395,8 @@ export class ConversationsModule {
392
395
  RemoteBrowserSurfaceComponent,
393
396
  RealtimeMediaSurfaceComponent,
394
397
  RealtimeInteractiveComponentSurfaceComponent,
395
- RealtimeEvidencePlaybackComponent], exports: [MessageItemComponent,
398
+ RealtimeEvidencePlaybackComponent,
399
+ AgentHandoffCardComponent], exports: [MessageItemComponent,
396
400
  MessageListComponent,
397
401
  MessageInputComponent,
398
402
  AiComposerComponent,
@@ -456,5 +460,6 @@ export class ConversationsModule {
456
460
  RealtimeWhiteboardHostComponent,
457
461
  RemoteBrowserSurfaceComponent,
458
462
  RealtimeMediaSurfaceComponent,
459
- RealtimeEvidencePlaybackComponent] }); })();
463
+ RealtimeEvidencePlaybackComponent,
464
+ AgentHandoffCardComponent] }); })();
460
465
  //# sourceMappingURL=conversations.module.js.map