@memberjunction/ng-conversations 6.3.0-edge.1 → 6.3.0-edge.2

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 (128) hide show
  1. package/README.md +13 -0
  2. package/dist/assets/edge-ai.worker.js +3451 -798
  3. package/dist/lib/components/agent/agent-instance-editor-modal.component.d.ts +186 -0
  4. package/dist/lib/components/agent/agent-instance-editor-modal.component.d.ts.map +1 -0
  5. package/dist/lib/components/agent/agent-instance-editor-modal.component.js +2202 -0
  6. package/dist/lib/components/agent/agent-instance-editor-modal.component.js.map +1 -0
  7. package/dist/lib/components/artifact/artifact-share-modal.component.d.ts.map +1 -1
  8. package/dist/lib/components/artifact/artifact-share-modal.component.js +289 -266
  9. package/dist/lib/components/artifact/artifact-share-modal.component.js.map +1 -1
  10. package/dist/lib/components/composer/ai-composer.component.d.ts +15 -1
  11. package/dist/lib/components/composer/ai-composer.component.d.ts.map +1 -1
  12. package/dist/lib/components/composer/ai-composer.component.js +43 -4
  13. package/dist/lib/components/composer/ai-composer.component.js.map +1 -1
  14. package/dist/lib/components/conversation/conversation-agent-picker.component.d.ts +20 -2
  15. package/dist/lib/components/conversation/conversation-agent-picker.component.d.ts.map +1 -1
  16. package/dist/lib/components/conversation/conversation-agent-picker.component.js +378 -62
  17. package/dist/lib/components/conversation/conversation-agent-picker.component.js.map +1 -1
  18. package/dist/lib/components/conversation/conversation-chat-area.component.d.ts +59 -9
  19. package/dist/lib/components/conversation/conversation-chat-area.component.d.ts.map +1 -1
  20. package/dist/lib/components/conversation/conversation-chat-area.component.js +645 -416
  21. package/dist/lib/components/conversation/conversation-chat-area.component.js.map +1 -1
  22. package/dist/lib/components/conversation/conversation-list.component.d.ts +5 -1
  23. package/dist/lib/components/conversation/conversation-list.component.d.ts.map +1 -1
  24. package/dist/lib/components/conversation/conversation-list.component.js +100 -56
  25. package/dist/lib/components/conversation/conversation-list.component.js.map +1 -1
  26. package/dist/lib/components/library/library-workspace.component.d.ts +30 -2
  27. package/dist/lib/components/library/library-workspace.component.d.ts.map +1 -1
  28. package/dist/lib/components/library/library-workspace.component.js +1342 -641
  29. package/dist/lib/components/library/library-workspace.component.js.map +1 -1
  30. package/dist/lib/components/library/library.models.d.ts +33 -3
  31. package/dist/lib/components/library/library.models.d.ts.map +1 -1
  32. package/dist/lib/components/library/library.models.js.map +1 -1
  33. package/dist/lib/components/message/agent-handoff-card.component.js +1 -1
  34. package/dist/lib/components/message/agent-handoff-card.component.js.map +1 -1
  35. package/dist/lib/components/message/message-input.component.d.ts +7 -0
  36. package/dist/lib/components/message/message-input.component.d.ts.map +1 -1
  37. package/dist/lib/components/message/message-input.component.js +52 -20
  38. package/dist/lib/components/message/message-input.component.js.map +1 -1
  39. package/dist/lib/components/message/message-item.component.d.ts +17 -4
  40. package/dist/lib/components/message/message-item.component.d.ts.map +1 -1
  41. package/dist/lib/components/message/message-item.component.js +58 -8
  42. package/dist/lib/components/message/message-item.component.js.map +1 -1
  43. package/dist/lib/components/message/message-list.component.d.ts +15 -1
  44. package/dist/lib/components/message/message-list.component.d.ts.map +1 -1
  45. package/dist/lib/components/message/message-list.component.js +73 -3
  46. package/dist/lib/components/message/message-list.component.js.map +1 -1
  47. package/dist/lib/components/realtime/artifact-workspace/artifact-workspace-channel.d.ts.map +1 -1
  48. package/dist/lib/components/realtime/artifact-workspace/artifact-workspace-channel.js +30 -0
  49. package/dist/lib/components/realtime/artifact-workspace/artifact-workspace-channel.js.map +1 -1
  50. package/dist/lib/components/realtime/capture/realtime-capture-channel.d.ts +28 -1
  51. package/dist/lib/components/realtime/capture/realtime-capture-channel.d.ts.map +1 -1
  52. package/dist/lib/components/realtime/capture/realtime-capture-channel.js +53 -1
  53. package/dist/lib/components/realtime/capture/realtime-capture-channel.js.map +1 -1
  54. package/dist/lib/components/realtime/channels/client-context-channel.d.ts.map +1 -1
  55. package/dist/lib/components/realtime/channels/client-context-channel.js +23 -7
  56. package/dist/lib/components/realtime/channels/client-context-channel.js.map +1 -1
  57. package/dist/lib/components/realtime/media/media-channel.d.ts +32 -11
  58. package/dist/lib/components/realtime/media/media-channel.d.ts.map +1 -1
  59. package/dist/lib/components/realtime/media/media-channel.js +186 -23
  60. package/dist/lib/components/realtime/media/media-channel.js.map +1 -1
  61. package/dist/lib/components/realtime/media/realtime-media-surface.component.d.ts +9 -1
  62. package/dist/lib/components/realtime/media/realtime-media-surface.component.d.ts.map +1 -1
  63. package/dist/lib/components/realtime/media/realtime-media-surface.component.js +33 -10
  64. package/dist/lib/components/realtime/media/realtime-media-surface.component.js.map +1 -1
  65. package/dist/lib/components/realtime/realtime-agent-banner.component.js +2 -2
  66. package/dist/lib/components/realtime/realtime-agent-picker.component.d.ts.map +1 -1
  67. package/dist/lib/components/realtime/realtime-agent-picker.component.js +3 -3
  68. package/dist/lib/components/realtime/realtime-agent-picker.component.js.map +1 -1
  69. package/dist/lib/components/realtime/realtime-composer.component.js +2 -2
  70. package/dist/lib/components/realtime/realtime-session-overlay.component.d.ts +1 -1
  71. package/dist/lib/components/realtime/realtime-session-overlay.component.d.ts.map +1 -1
  72. package/dist/lib/components/realtime/realtime-session-overlay.component.js +20 -11
  73. package/dist/lib/components/realtime/realtime-session-overlay.component.js.map +1 -1
  74. package/dist/lib/components/realtime/realtime-session-state.d.ts.map +1 -1
  75. package/dist/lib/components/realtime/realtime-session-state.js +1 -1
  76. package/dist/lib/components/realtime/realtime-session-state.js.map +1 -1
  77. package/dist/lib/components/realtime/realtime-session-thread.component.d.ts.map +1 -1
  78. package/dist/lib/components/realtime/realtime-session-thread.component.js +1 -1
  79. package/dist/lib/components/realtime/realtime-session-thread.component.js.map +1 -1
  80. package/dist/lib/components/realtime/realtime-surface-tab-style.d.ts +7 -0
  81. package/dist/lib/components/realtime/realtime-surface-tab-style.d.ts.map +1 -1
  82. package/dist/lib/components/realtime/realtime-surface-tab-style.js +19 -0
  83. package/dist/lib/components/realtime/realtime-surface-tab-style.js.map +1 -1
  84. package/dist/lib/components/realtime/realtime-surface-tabs.model.d.ts.map +1 -1
  85. package/dist/lib/components/realtime/realtime-surface-tabs.model.js +13 -2
  86. package/dist/lib/components/realtime/realtime-surface-tabs.model.js.map +1 -1
  87. package/dist/lib/components/realtime/remote-browser/remote-browser-channel.d.ts +3 -1
  88. package/dist/lib/components/realtime/remote-browser/remote-browser-channel.d.ts.map +1 -1
  89. package/dist/lib/components/realtime/remote-browser/remote-browser-channel.js +9 -0
  90. package/dist/lib/components/realtime/remote-browser/remote-browser-channel.js.map +1 -1
  91. package/dist/lib/components/share/share-modal.component.d.ts.map +1 -1
  92. package/dist/lib/components/share/share-modal.component.js +181 -127
  93. package/dist/lib/components/share/share-modal.component.js.map +1 -1
  94. package/dist/lib/components/sidebar/conversation-sidebar.component.d.ts +14 -1
  95. package/dist/lib/components/sidebar/conversation-sidebar.component.d.ts.map +1 -1
  96. package/dist/lib/components/sidebar/conversation-sidebar.component.js +50 -11
  97. package/dist/lib/components/sidebar/conversation-sidebar.component.js.map +1 -1
  98. package/dist/lib/components/sidebar/my-agents-section.component.d.ts +78 -0
  99. package/dist/lib/components/sidebar/my-agents-section.component.d.ts.map +1 -0
  100. package/dist/lib/components/sidebar/my-agents-section.component.js +450 -0
  101. package/dist/lib/components/sidebar/my-agents-section.component.js.map +1 -0
  102. package/dist/lib/components/task/tasks-full-view.component.d.ts.map +1 -1
  103. package/dist/lib/components/task/tasks-full-view.component.js +9 -0
  104. package/dist/lib/components/task/tasks-full-view.component.js.map +1 -1
  105. package/dist/lib/composer-plugins/base-conversation-mention.provider.d.ts +1 -0
  106. package/dist/lib/composer-plugins/base-conversation-mention.provider.d.ts.map +1 -1
  107. package/dist/lib/composer-plugins/base-conversation-mention.provider.js +13 -1
  108. package/dist/lib/composer-plugins/base-conversation-mention.provider.js.map +1 -1
  109. package/dist/lib/conversations.module.d.ts +78 -76
  110. package/dist/lib/conversations.module.d.ts.map +1 -1
  111. package/dist/lib/conversations.module.js +8 -0
  112. package/dist/lib/conversations.module.js.map +1 -1
  113. package/dist/lib/services/conversation-agent.service.d.ts +23 -18
  114. package/dist/lib/services/conversation-agent.service.d.ts.map +1 -1
  115. package/dist/lib/services/conversation-agent.service.js +75 -32
  116. package/dist/lib/services/conversation-agent.service.js.map +1 -1
  117. package/dist/lib/services/realtime-session.service.d.ts.map +1 -1
  118. package/dist/lib/services/realtime-session.service.js +2 -1
  119. package/dist/lib/services/realtime-session.service.js.map +1 -1
  120. package/dist/lib/utils/agent-handoff-map.js +1 -1
  121. package/dist/lib/utils/agent-handoff-map.js.map +1 -1
  122. package/dist/lib/utils/agent-turn-routing.js +1 -1
  123. package/dist/lib/utils/agent-turn-routing.js.map +1 -1
  124. package/dist/public-api.d.ts +2 -0
  125. package/dist/public-api.d.ts.map +1 -1
  126. package/dist/public-api.js +2 -0
  127. package/dist/public-api.js.map +1 -1
  128. package/package.json +37 -37
@@ -15,14 +15,14 @@ function ShareModalComponent_Conditional_0_Conditional_2_Template(rf, ctx) { if
15
15
  i0.ɵɵelementStart(0, "div", 3)(1, "h4");
16
16
  i0.ɵɵtext(2, "Folder Access");
17
17
  i0.ɵɵelementEnd();
18
- i0.ɵɵelementStart(3, "label", 17)(4, "input", 14);
18
+ i0.ɵɵelementStart(3, "label", 12)(4, "input", 13);
19
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
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
21
  i0.ɵɵelementEnd();
22
22
  i0.ɵɵelementStart(5, "span");
23
23
  i0.ɵɵtext(6, "Inherit access from folder");
24
24
  i0.ɵɵelementEnd()();
25
- i0.ɵɵelementStart(7, "p", 18);
25
+ i0.ɵɵelementStart(7, "p", 14);
26
26
  i0.ɵɵtext(8);
27
27
  i0.ɵɵelementEnd()();
28
28
  } if (rf & 2) {
@@ -32,22 +32,72 @@ function ShareModalComponent_Conditional_0_Conditional_2_Template(rf, ctx) { if
32
32
  i0.ɵɵadvance(4);
33
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.", " ");
34
34
  } }
35
- function ShareModalComponent_Conditional_0_Conditional_14_Template(rf, ctx) { if (rf & 1) {
36
- i0.ɵɵelement(0, "mj-empty-state", 10);
35
+ function ShareModalComponent_Conditional_0_Conditional_3_Template(rf, ctx) { if (rf & 1) {
36
+ const _r4 = i0.ɵɵgetCurrentView();
37
+ i0.ɵɵelementStart(0, "div", 4)(1, "h4");
38
+ i0.ɵɵtext(2, "Add People");
39
+ i0.ɵɵelementEnd();
40
+ i0.ɵɵelementStart(3, "div", 15)(4, "input", 16);
41
+ i0.ɵɵtwoWayListener("ngModelChange", function ShareModalComponent_Conditional_0_Conditional_3_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r1.newUserEmail, $event) || (ctx_r1.newUserEmail = $event); return i0.ɵɵresetView($event); });
42
+ i0.ɵɵelementEnd();
43
+ i0.ɵɵelementStart(5, "button", 17);
44
+ i0.ɵɵlistener("click", function ShareModalComponent_Conditional_0_Conditional_3_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onAddUser()); });
45
+ i0.ɵɵtext(6, " Add ");
46
+ i0.ɵɵelementEnd()()();
47
+ } if (rf & 2) {
48
+ const ctx_r1 = i0.ɵɵnextContext(2);
49
+ i0.ɵɵadvance(4);
50
+ i0.ɵɵtwoWayProperty("ngModel", ctx_r1.newUserEmail);
51
+ } }
52
+ function ShareModalComponent_Conditional_0_Conditional_4_Template(rf, ctx) { if (rf & 1) {
53
+ i0.ɵɵelementStart(0, "div", 5);
54
+ i0.ɵɵelement(1, "i", 18);
55
+ i0.ɵɵelementStart(2, "span");
56
+ i0.ɵɵtext(3, "Only the conversation owner can share or revoke access for this conversation.");
57
+ i0.ɵɵelementEnd()();
37
58
  } }
38
- function ShareModalComponent_Conditional_0_For_16_For_11_Template(rf, ctx) { if (rf & 1) {
39
- i0.ɵɵelementStart(0, "option", 26);
59
+ function ShareModalComponent_Conditional_0_Conditional_9_Template(rf, ctx) { if (rf & 1) {
60
+ i0.ɵɵelement(0, "mj-empty-state", 8);
61
+ } }
62
+ function ShareModalComponent_Conditional_0_For_11_Conditional_8_For_3_Template(rf, ctx) { if (rf & 1) {
63
+ i0.ɵɵelementStart(0, "option", 27);
40
64
  i0.ɵɵtext(1);
41
65
  i0.ɵɵelementEnd();
42
66
  } if (rf & 2) {
43
- const level_r6 = ctx.$implicit;
44
- i0.ɵɵproperty("value", level_r6.value);
67
+ const level_r7 = ctx.$implicit;
68
+ i0.ɵɵproperty("value", level_r7.value);
45
69
  i0.ɵɵadvance();
46
- i0.ɵɵtextInterpolate(level_r6.label);
70
+ i0.ɵɵtextInterpolate(level_r7.label);
47
71
  } }
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);
72
+ function ShareModalComponent_Conditional_0_For_11_Conditional_8_Template(rf, ctx) { if (rf & 1) {
73
+ const _r5 = i0.ɵɵgetCurrentView();
74
+ i0.ɵɵelementStart(0, "div", 24)(1, "select", 26);
75
+ i0.ɵɵlistener("ngModelChange", function ShareModalComponent_Conditional_0_For_11_Conditional_8_Template_select_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r5); const permission_r6 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onAccessLevelChange(permission_r6, $event)); });
76
+ i0.ɵɵrepeaterCreate(2, ShareModalComponent_Conditional_0_For_11_Conditional_8_For_3_Template, 2, 2, "option", 27, _forTrack0);
77
+ i0.ɵɵelementEnd();
78
+ i0.ɵɵelementStart(4, "button", 28);
79
+ i0.ɵɵlistener("click", function ShareModalComponent_Conditional_0_For_11_Conditional_8_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r5); const permission_r6 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onRemoveUser(permission_r6)); });
80
+ i0.ɵɵelement(5, "i", 29);
81
+ i0.ɵɵelementEnd()();
82
+ } if (rf & 2) {
83
+ const permission_r6 = i0.ɵɵnextContext().$implicit;
84
+ const ctx_r1 = i0.ɵɵnextContext(2);
85
+ i0.ɵɵadvance();
86
+ i0.ɵɵproperty("ngModel", permission_r6.permissionLevel);
87
+ i0.ɵɵadvance();
88
+ i0.ɵɵrepeater(ctx_r1.accessLevels);
89
+ } }
90
+ function ShareModalComponent_Conditional_0_For_11_Conditional_9_Template(rf, ctx) { if (rf & 1) {
91
+ i0.ɵɵelementStart(0, "span", 25);
92
+ i0.ɵɵtext(1);
93
+ i0.ɵɵelementEnd();
94
+ } if (rf & 2) {
95
+ const permission_r6 = i0.ɵɵnextContext().$implicit;
96
+ i0.ɵɵadvance();
97
+ i0.ɵɵtextInterpolate(permission_r6.permissionLevel);
98
+ } }
99
+ function ShareModalComponent_Conditional_0_For_11_Template(rf, ctx) { if (rf & 1) {
100
+ i0.ɵɵelementStart(0, "div", 9)(1, "div", 19);
51
101
  i0.ɵɵelement(2, "i", 20);
52
102
  i0.ɵɵelementStart(3, "div", 21)(4, "div", 22);
53
103
  i0.ɵɵtext(5);
@@ -55,94 +105,86 @@ function ShareModalComponent_Conditional_0_For_16_Template(rf, ctx) { if (rf & 1
55
105
  i0.ɵɵelementStart(6, "div", 23);
56
106
  i0.ɵɵtext(7);
57
107
  i0.ɵɵelementEnd()()();
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);
108
+ i0.ɵɵconditionalCreate(8, ShareModalComponent_Conditional_0_For_11_Conditional_8_Template, 6, 1, "div", 24)(9, ShareModalComponent_Conditional_0_For_11_Conditional_9_Template, 2, 1, "span", 25);
61
109
  i0.ɵɵelementEnd();
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);
65
- i0.ɵɵelementEnd()()();
66
110
  } if (rf & 2) {
67
- const permission_r5 = ctx.$implicit;
111
+ const permission_r6 = ctx.$implicit;
68
112
  const ctx_r1 = i0.ɵɵnextContext(2);
69
113
  i0.ɵɵadvance(5);
70
- i0.ɵɵtextInterpolate(permission_r5.userName);
71
- i0.ɵɵadvance(2);
72
- i0.ɵɵtextInterpolate(permission_r5.userEmail);
114
+ i0.ɵɵtextInterpolate(permission_r6.userName);
73
115
  i0.ɵɵadvance(2);
74
- i0.ɵɵproperty("ngModel", permission_r5.permissionLevel);
116
+ i0.ɵɵtextInterpolate(permission_r6.userEmail);
75
117
  i0.ɵɵadvance();
76
- i0.ɵɵrepeater(ctx_r1.accessLevels);
118
+ i0.ɵɵconditional(ctx_r1.IsConversationOwner ? 8 : 9);
77
119
  } }
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);
120
+ function ShareModalComponent_Conditional_0_Conditional_12_Conditional_7_Template(rf, ctx) { if (rf & 1) {
121
+ const _r9 = i0.ɵɵgetCurrentView();
122
+ i0.ɵɵelementStart(0, "div", 31);
123
+ i0.ɵɵelement(1, "input", 32);
124
+ i0.ɵɵelementStart(2, "button", 33);
125
+ i0.ɵɵlistener("click", function ShareModalComponent_Conditional_0_Conditional_12_Conditional_7_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onCopyLink()); });
126
+ i0.ɵɵelement(3, "i", 34);
85
127
  i0.ɵɵtext(4, " Copy ");
86
128
  i0.ɵɵelementEnd()();
87
129
  } if (rf & 2) {
88
- const ctx_r1 = i0.ɵɵnextContext(2);
130
+ const ctx_r1 = i0.ɵɵnextContext(3);
89
131
  i0.ɵɵadvance();
90
132
  i0.ɵɵproperty("value", ctx_r1.shareLink);
91
133
  } }
134
+ function ShareModalComponent_Conditional_0_Conditional_12_Template(rf, ctx) { if (rf & 1) {
135
+ const _r8 = i0.ɵɵgetCurrentView();
136
+ i0.ɵɵelementStart(0, "div", 10)(1, "h4");
137
+ i0.ɵɵtext(2, "Share Link");
138
+ i0.ɵɵelementEnd();
139
+ i0.ɵɵelementStart(3, "div", 30)(4, "input", 13);
140
+ i0.ɵɵtwoWayListener("ngModelChange", function ShareModalComponent_Conditional_0_Conditional_12_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r1.isPublicLink, $event) || (ctx_r1.isPublicLink = $event); return i0.ɵɵresetView($event); });
141
+ i0.ɵɵlistener("ngModelChange", function ShareModalComponent_Conditional_0_Conditional_12_Template_input_ngModelChange_4_listener() { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onTogglePublicLink()); });
142
+ i0.ɵɵelementEnd();
143
+ i0.ɵɵelementStart(5, "label");
144
+ i0.ɵɵtext(6, "Anyone with the link can view");
145
+ i0.ɵɵelementEnd()();
146
+ i0.ɵɵconditionalCreate(7, ShareModalComponent_Conditional_0_Conditional_12_Conditional_7_Template, 5, 1, "div", 31);
147
+ i0.ɵɵelementEnd();
148
+ } if (rf & 2) {
149
+ const ctx_r1 = i0.ɵɵnextContext(2);
150
+ i0.ɵɵadvance(4);
151
+ i0.ɵɵtwoWayProperty("ngModel", ctx_r1.isPublicLink);
152
+ i0.ɵɵadvance(3);
153
+ i0.ɵɵconditional(ctx_r1.isPublicLink ? 7 : -1);
154
+ } }
92
155
  function ShareModalComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
93
156
  const _r1 = i0.ɵɵgetCurrentView();
94
157
  i0.ɵɵelementStart(0, "mj-dialog", 1);
95
158
  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()); });
96
159
  i0.ɵɵelementStart(1, "div", 2);
97
160
  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");
161
+ i0.ɵɵconditionalCreate(3, ShareModalComponent_Conditional_0_Conditional_3_Template, 7, 1, "div", 4)(4, ShareModalComponent_Conditional_0_Conditional_4_Template, 4, 0, "div", 5);
162
+ i0.ɵɵelementStart(5, "div", 6)(6, "h4");
163
+ i0.ɵɵtext(7, "People with Access");
100
164
  i0.ɵɵelementEnd();
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); });
103
- i0.ɵɵelementEnd();
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 ");
107
- i0.ɵɵelementEnd()()();
108
- i0.ɵɵelementStart(10, "div", 8)(11, "h4");
109
- i0.ɵɵtext(12, "People with Access");
110
- i0.ɵɵelementEnd();
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);
165
+ i0.ɵɵelementStart(8, "div", 7);
166
+ i0.ɵɵconditionalCreate(9, ShareModalComponent_Conditional_0_Conditional_9_Template, 1, 0, "mj-empty-state", 8);
167
+ i0.ɵɵrepeaterCreate(10, ShareModalComponent_Conditional_0_For_11_Template, 10, 3, "div", 9, i0.ɵɵrepeaterTrackByIdentity);
114
168
  i0.ɵɵelementEnd()();
115
- i0.ɵɵelementStart(17, "div", 12)(18, "h4");
116
- i0.ɵɵtext(19, "Share Link");
169
+ i0.ɵɵconditionalCreate(12, ShareModalComponent_Conditional_0_Conditional_12_Template, 8, 2, "div", 10);
117
170
  i0.ɵɵelementEnd();
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()); });
121
- i0.ɵɵelementEnd();
122
- i0.ɵɵelementStart(22, "label");
123
- i0.ɵɵtext(23, "Anyone with the link can view");
124
- i0.ɵɵelementEnd()();
125
- i0.ɵɵconditionalCreate(24, ShareModalComponent_Conditional_0_Conditional_24_Template, 5, 1, "div", 15);
126
- i0.ɵɵelementEnd()();
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");
171
+ i0.ɵɵelementStart(13, "mj-dialog-actions")(14, "button", 11);
172
+ i0.ɵɵlistener("click", function ShareModalComponent_Conditional_0_Template_button_click_14_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onClose()); });
173
+ i0.ɵɵtext(15, "Close");
130
174
  i0.ɵɵelementEnd()()();
131
175
  } if (rf & 2) {
132
176
  const ctx_r1 = i0.ɵɵnextContext();
133
177
  i0.ɵɵproperty("Title", "Share: " + (ctx_r1.conversation.Name || ""))("Width", 500)("Height", 600)("Visible", true);
134
178
  i0.ɵɵadvance(2);
135
179
  i0.ɵɵconditional((ctx_r1.conversation == null ? null : ctx_r1.conversation.ProjectID) && ctx_r1.IsConversationOwner ? 2 : -1);
136
- i0.ɵɵadvance(5);
137
- i0.ɵɵtwoWayProperty("ngModel", ctx_r1.newUserEmail);
138
- i0.ɵɵadvance(7);
139
- i0.ɵɵconditional(ctx_r1.permissions.length === 0 ? 14 : -1);
140
180
  i0.ɵɵadvance();
141
- i0.ɵɵrepeater(ctx_r1.permissions);
181
+ i0.ɵɵconditional(ctx_r1.IsConversationOwner ? 3 : 4);
142
182
  i0.ɵɵadvance(6);
143
- i0.ɵɵtwoWayProperty("ngModel", ctx_r1.isPublicLink);
144
- i0.ɵɵadvance(3);
145
- i0.ɵɵconditional(ctx_r1.isPublicLink ? 24 : -1);
183
+ i0.ɵɵconditional(ctx_r1.permissions.length === 0 ? 9 : -1);
184
+ i0.ɵɵadvance();
185
+ i0.ɵɵrepeater(ctx_r1.permissions);
186
+ i0.ɵɵadvance(2);
187
+ i0.ɵɵconditional(ctx_r1.IsConversationOwner ? 12 : -1);
146
188
  } }
147
189
  export class ShareModalComponent extends BaseAngularComponent {
148
190
  dialogService;
@@ -223,8 +265,7 @@ export class ShareModalComponent extends BaseAngularComponent {
223
265
  InheritFolderAccess = false;
224
266
  AccessLevels = [
225
267
  { label: 'Can View', value: 'View' },
226
- { label: 'Can Edit', value: 'Edit' },
227
- { label: 'Owner', value: 'Owner' }
268
+ { label: 'Can Edit', value: 'Edit' }
228
269
  ];
229
270
  /** @deprecated Use {@link AccessLevels}. */
230
271
  get accessLevels() {
@@ -508,11 +549,11 @@ export class ShareModalComponent extends BaseAngularComponent {
508
549
  return this.OnClose();
509
550
  }
510
551
  static ɵfac = function ShareModalComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ShareModalComponent)(i0.ɵɵdirectiveInject(i1.DialogService), i0.ɵɵdirectiveInject(i2.ToastService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
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);
552
+ 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"], ["data-testid", "share-modal-owner-only-notice", 1, "owner-only-notice"], [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"], ["mjButton", "", 3, "click"], [1, "folder-inheritance-toggle"], ["type", "checkbox", 3, "ngModelChange", "ngModel"], [1, "folder-inheritance-hint"], [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, "fas", "fa-lock"], [1, "user-info"], [1, "fas", "fa-user-circle"], [1, "user-details"], [1, "user-name"], [1, "user-email"], [1, "permission-controls"], [1, "permission-readonly-badge"], [1, "mj-select", 2, "width", "120px", 3, "ngModelChange", "ngModel"], [3, "value"], ["title", "Remove access", 1, "btn-remove", 3, "click"], [1, "fas", "fa-times"], [1, "link-controls"], [1, "link-display"], ["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) {
553
+ i0.ɵɵconditionalCreate(0, ShareModalComponent_Conditional_0_Template, 16, 8, "mj-dialog", 0);
513
554
  } if (rf & 2) {
514
555
  i0.ɵɵconditional(ctx.isOpen ? 0 : -1);
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; }"] });
556
+ } }, 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; color: var(--mj-text-primary); }\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: var(--mj-text-secondary); line-height: 1.4; }\n .owner-only-notice[_ngcontent-%COMP%] { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 6px; background: var(--mj-bg-surface-sunken); border: 1px solid var(--mj-border-default); color: var(--mj-text-secondary); font-size: 13px; }\n .permission-readonly-badge[_ngcontent-%COMP%] { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--mj-bg-surface-sunken); color: var(--mj-text-secondary); }\n\n .add-user-form[_ngcontent-%COMP%] { display: flex; gap: 8px; }\n\n .permission-list[_ngcontent-%COMP%] { border: 1px solid var(--mj-border-default); border-radius: 4px; max-height: 300px; overflow-y: auto; }\n .permission-item[_ngcontent-%COMP%] { padding: 12px; border-bottom: 1px solid var(--mj-border-subtle); 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: var(--mj-text-muted); }\n .user-details[_ngcontent-%COMP%] { display: flex; flex-direction: column; }\n .user-name[_ngcontent-%COMP%] { font-size: 14px; font-weight: 500; color: var(--mj-text-primary); }\n .user-email[_ngcontent-%COMP%] { font-size: 12px; color: var(--mj-text-secondary); }\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: var(--mj-text-muted); }\n .btn-remove[_ngcontent-%COMP%]:hover { background: color-mix(in srgb, var(--mj-status-error) 12%, transparent); color: var(--mj-status-error); }\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; }"] });
516
557
  }
517
558
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ShareModalComponent, [{
518
559
  type: Component,
@@ -542,20 +583,27 @@ export class ShareModalComponent extends BaseAngularComponent {
542
583
  </p>
543
584
  </div>
544
585
  }
545
- <div class="add-user-section">
546
- <h4>Add People</h4>
547
- <div class="add-user-form">
548
- <input
549
- type="text"
550
- [(ngModel)]="newUserEmail"
551
- placeholder="Enter email address"
552
- class="mj-textbox"
553
- style="flex: 1;">
554
- <button mjButton variant="primary" (click)="onAddUser()">
555
- Add
556
- </button>
586
+ @if (IsConversationOwner) {
587
+ <div class="add-user-section">
588
+ <h4>Add People</h4>
589
+ <div class="add-user-form">
590
+ <input
591
+ type="text"
592
+ [(ngModel)]="newUserEmail"
593
+ placeholder="Enter email address"
594
+ class="mj-textbox"
595
+ style="flex: 1;">
596
+ <button mjButton variant="primary" (click)="onAddUser()">
597
+ Add
598
+ </button>
599
+ </div>
557
600
  </div>
558
- </div>
601
+ } @else {
602
+ <div class="owner-only-notice" data-testid="share-modal-owner-only-notice">
603
+ <i class="fas fa-lock"></i>
604
+ <span>Only the conversation owner can share or revoke access for this conversation.</span>
605
+ </div>
606
+ }
559
607
  <div class="permissions-section">
560
608
  <h4>People with Access</h4>
561
609
  <div class="permission-list">
@@ -574,56 +622,62 @@ export class ShareModalComponent extends BaseAngularComponent {
574
622
  <div class="user-email">{{ permission.userEmail }}</div>
575
623
  </div>
576
624
  </div>
577
- <div class="permission-controls">
578
- <select
579
- [ngModel]="permission.permissionLevel"
580
- (ngModelChange)="onAccessLevelChange(permission, $event)"
581
- style="width: 120px;" class="mj-select">
582
- @for (level of accessLevels; track level.value) {
583
- <option [value]="level.value">{{ level.label }}</option>
584
- }
585
- </select>
586
- <button
587
- class="btn-remove"
588
- (click)="onRemoveUser(permission)"
589
- title="Remove access">
590
- <i class="fas fa-times"></i>
591
- </button>
592
- </div>
625
+ @if (IsConversationOwner) {
626
+ <div class="permission-controls">
627
+ <select
628
+ [ngModel]="permission.permissionLevel"
629
+ (ngModelChange)="onAccessLevelChange(permission, $event)"
630
+ style="width: 120px;" class="mj-select">
631
+ @for (level of accessLevels; track level.value) {
632
+ <option [value]="level.value">{{ level.label }}</option>
633
+ }
634
+ </select>
635
+ <button
636
+ class="btn-remove"
637
+ (click)="onRemoveUser(permission)"
638
+ title="Remove access">
639
+ <i class="fas fa-times"></i>
640
+ </button>
641
+ </div>
642
+ } @else {
643
+ <span class="permission-readonly-badge">{{ permission.permissionLevel }}</span>
644
+ }
593
645
  </div>
594
646
  }
595
647
  </div>
596
648
  </div>
597
- <div class="link-section">
598
- <h4>Share Link</h4>
599
- <div class="link-controls">
600
- <input
601
- type="checkbox"
602
- [(ngModel)]="isPublicLink"
603
- (ngModelChange)="onTogglePublicLink()">
604
- <label>Anyone with the link can view</label>
605
- </div>
606
- @if (isPublicLink) {
607
- <div class="link-display">
649
+ @if (IsConversationOwner) {
650
+ <div class="link-section">
651
+ <h4>Share Link</h4>
652
+ <div class="link-controls">
608
653
  <input
609
- type="text"
610
- [value]="shareLink"
611
- readonly
612
- class="mj-textbox"
613
- style="flex: 1;">
614
- <button mjButton variant="flat" (click)="onCopyLink()">
615
- <i class="fas fa-copy"></i> Copy
616
- </button>
654
+ type="checkbox"
655
+ [(ngModel)]="isPublicLink"
656
+ (ngModelChange)="onTogglePublicLink()">
657
+ <label>Anyone with the link can view</label>
617
658
  </div>
618
- }
619
- </div>
659
+ @if (isPublicLink) {
660
+ <div class="link-display">
661
+ <input
662
+ type="text"
663
+ [value]="shareLink"
664
+ readonly
665
+ class="mj-textbox"
666
+ style="flex: 1;">
667
+ <button mjButton variant="flat" (click)="onCopyLink()">
668
+ <i class="fas fa-copy"></i> Copy
669
+ </button>
670
+ </div>
671
+ }
672
+ </div>
673
+ }
620
674
  </div>
621
675
  <mj-dialog-actions>
622
676
  <button mjButton (click)="onClose()">Close</button>
623
677
  </mj-dialog-actions>
624
678
  </mj-dialog>
625
679
  }
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 "] }]
680
+ `, 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; color: var(--mj-text-primary); }\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: var(--mj-text-secondary); line-height: 1.4; }\n .owner-only-notice { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 6px; background: var(--mj-bg-surface-sunken); border: 1px solid var(--mj-border-default); color: var(--mj-text-secondary); font-size: 13px; }\n .permission-readonly-badge { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--mj-bg-surface-sunken); color: var(--mj-text-secondary); }\n\n .add-user-form { display: flex; gap: 8px; }\n\n .permission-list { border: 1px solid var(--mj-border-default); border-radius: 4px; max-height: 300px; overflow-y: auto; }\n .permission-item { padding: 12px; border-bottom: 1px solid var(--mj-border-subtle); 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: var(--mj-text-muted); }\n .user-details { display: flex; flex-direction: column; }\n .user-name { font-size: 14px; font-weight: 500; color: var(--mj-text-primary); }\n .user-email { font-size: 12px; color: var(--mj-text-secondary); }\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: var(--mj-text-muted); }\n .btn-remove:hover { background: color-mix(in srgb, var(--mj-status-error) 12%, transparent); color: var(--mj-status-error); }\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 "] }]
627
681
  }], () => [{ type: i1.DialogService }, { type: i2.ToastService }, { type: i0.ChangeDetectorRef }], { Conversation: [{
628
682
  type: Input
629
683
  }], conversation: [{
@@ -641,5 +695,5 @@ export class ShareModalComponent extends BaseAngularComponent {
641
695
  }], closed: [{
642
696
  type: Output
643
697
  }] }); })();
644
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ShareModalComponent, { className: "ShareModalComponent", filePath: "src/lib/components/share/share-modal.component.ts", lineNumber: 169 }); })();
698
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ShareModalComponent, { className: "ShareModalComponent", filePath: "src/lib/components/share/share-modal.component.ts", lineNumber: 184 }); })();
645
699
  //# sourceMappingURL=share-modal.component.js.map