dsh-side-chat-plus 0.4.1 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/client.js CHANGED
@@ -21,13 +21,13 @@ window.__ModuleLoader__.load({
21
21
  }
22
22
  var AttachmentRail_module_css_default = {
23
23
  "thumbnail": "J5tleW_thumbnail",
24
- "arrowLeft": "J5tleW_arrowLeft",
24
+ "arrowRight": "J5tleW_arrowRight",
25
25
  "arrow": "J5tleW_arrow",
26
- "root": "J5tleW_root",
27
- "rail": "J5tleW_rail",
26
+ "arrowLeft": "J5tleW_arrowLeft",
28
27
  "remove": "J5tleW_remove",
29
- "arrowRight": "J5tleW_arrowRight",
30
- "item": "J5tleW_item"
28
+ "item": "J5tleW_item",
29
+ "root": "J5tleW_root",
30
+ "rail": "J5tleW_rail"
31
31
  };
32
32
  //#endregion
33
33
  //#region src/client/attachments/AttachmentRail.tsx
@@ -173,11 +173,11 @@ window.__ModuleLoader__.load({
173
173
  document.head.appendChild(tag);
174
174
  }
175
175
  var DropOverlay_module_css_default = {
176
+ "title": "_9H6qrq_title",
176
177
  "mask": "_9H6qrq_mask",
177
- "illustration": "_9H6qrq_illustration",
178
178
  "desc": "_9H6qrq_desc",
179
179
  "wrap": "_9H6qrq_wrap",
180
- "title": "_9H6qrq_title"
180
+ "illustration": "_9H6qrq_illustration"
181
181
  };
182
182
  //#endregion
183
183
  //#region src/client/attachments/DropOverlay.tsx
@@ -320,10 +320,10 @@ window.__ModuleLoader__.load({
320
320
  document.head.appendChild(tag);
321
321
  }
322
322
  var ImageLightbox_module_css_default = {
323
+ "close": "_5IyjUq_close",
323
324
  "backdrop": "_5IyjUq_backdrop",
324
325
  "mask": "_5IyjUq_mask",
325
- "image": "_5IyjUq_image",
326
- "close": "_5IyjUq_close"
326
+ "image": "_5IyjUq_image"
327
327
  };
328
328
  //#endregion
329
329
  //#region src/client/attachments/ImageLightbox.tsx
@@ -388,9 +388,9 @@ window.__ModuleLoader__.load({
388
388
  document.head.appendChild(tag);
389
389
  }
390
390
  var MessageImage_module_css_default = {
391
- "loading": "_1H6WSq_loading",
392
391
  "gallery": "_1H6WSq_gallery",
393
392
  "frame": "_1H6WSq_frame",
393
+ "loading": "_1H6WSq_loading",
394
394
  "error": "_1H6WSq_error"
395
395
  };
396
396
  //#endregion
@@ -760,101 +760,101 @@ window.__ModuleLoader__.load({
760
760
  document.head.appendChild(tag);
761
761
  }
762
762
  var client_module_css_default = {
763
- "messageUser": "yw4T5a_messageUser",
764
- "modelSelectTrigger": "yw4T5a_modelSelectTrigger",
765
- "panelEmpty": "yw4T5a_panelEmpty",
766
- "primary": "yw4T5a_primary",
767
- "questionToggle": "yw4T5a_questionToggle",
768
- "questionDetail": "yw4T5a_questionDetail",
769
- "modelOption": "yw4T5a_modelOption",
763
+ "panelTextarea": "yw4T5a_panelTextarea",
770
764
  "settingsSection": "yw4T5a_settingsSection",
771
- "settingsToggle": "yw4T5a_settingsToggle",
772
- "questionOptionLabel": "yw4T5a_questionOptionLabel",
765
+ "settingsRowDesc": "yw4T5a_settingsRowDesc",
766
+ "messageInsertButton": "yw4T5a_messageInsertButton",
767
+ "panelHeader": "yw4T5a_panelHeader",
768
+ "panelList": "yw4T5a_panelList",
769
+ "panelTitle": "yw4T5a_panelTitle",
770
+ "questionOptionDesc": "yw4T5a_questionOptionDesc",
771
+ "panelRunning": "yw4T5a_panelRunning",
772
+ "reasoningBody": "yw4T5a_reasoningBody",
773
+ "modelSelectMenu": "yw4T5a_modelSelectMenu",
773
774
  "modelDescription": "yw4T5a_modelDescription",
774
- "questionHeaderActions": "yw4T5a_questionHeaderActions",
775
- "panelRunningClock": "yw4T5a_panelRunningClock",
776
- "questionFab": "yw4T5a_questionFab",
777
- "questionOptionText": "yw4T5a_questionOptionText",
775
+ "settingsRowTitle": "yw4T5a_settingsRowTitle",
776
+ "panelAttachment": "yw4T5a_panelAttachment",
777
+ "settingsBringMode": "yw4T5a_settingsBringMode",
778
+ "panelAttachmentText": "yw4T5a_panelAttachmentText",
779
+ "questionItem": "yw4T5a_questionItem",
780
+ "questionBody": "yw4T5a_questionBody",
781
+ "selectionMenu": "yw4T5a_selectionMenu",
782
+ "panelHeaderActions": "yw4T5a_panelHeaderActions",
783
+ "panelListItemDot": "yw4T5a_panelListItemDot",
784
+ "questionHeaderText": "yw4T5a_questionHeaderText",
785
+ "panelListItemLabel": "yw4T5a_panelListItemLabel",
778
786
  "panelToolbar": "yw4T5a_panelToolbar",
779
- "panelListDeleteAll": "yw4T5a_panelListDeleteAll",
780
- "messageUserText": "yw4T5a_messageUserText",
781
- "reasoningSummary": "yw4T5a_reasoningSummary",
782
- "modelCheck": "yw4T5a_modelCheck",
787
+ "modelOptionCopy": "yw4T5a_modelOptionCopy",
788
+ "panel": "yw4T5a_panel",
789
+ "panelFooter": "yw4T5a_panelFooter",
790
+ "primary": "yw4T5a_primary",
791
+ "modelGroup": "yw4T5a_modelGroup",
792
+ "settingsToggle": "yw4T5a_settingsToggle",
793
+ "modelSelectLabel": "yw4T5a_modelSelectLabel",
794
+ "questionDetail": "yw4T5a_questionDetail",
795
+ "selectionButton": "yw4T5a_selectionButton",
783
796
  "panelEmbedded": "yw4T5a_panelEmbedded",
784
- "panelRunning": "yw4T5a_panelRunning",
785
- "settingsRowText": "yw4T5a_settingsRowText",
786
- "modelSelectEffort": "yw4T5a_modelSelectEffort",
787
- "modelGroupTitle": "yw4T5a_modelGroupTitle",
788
- "panelTranscript": "yw4T5a_panelTranscript",
797
+ "questionDeleteAll": "yw4T5a_questionDeleteAll",
798
+ "questionHeaderActions": "yw4T5a_questionHeaderActions",
799
+ "collapsedHandle": "yw4T5a_collapsedHandle",
789
800
  "questionItemCollapsed": "yw4T5a_questionItemCollapsed",
801
+ "panelError": "yw4T5a_panelError",
790
802
  "modelEmpty": "yw4T5a_modelEmpty",
791
- "settingsBringOptionActive": "yw4T5a_settingsBringOptionActive",
792
- "panelTextarea": "yw4T5a_panelTextarea",
793
- "modelOptionCopy": "yw4T5a_modelOptionCopy",
794
- "questionBringButton": "yw4T5a_questionBringButton",
795
- "collapsedHandle": "yw4T5a_collapsedHandle",
803
+ "panelTranscript": "yw4T5a_panelTranscript",
804
+ "panelEmpty": "yw4T5a_panelEmpty",
805
+ "panelConflictHidden": "yw4T5a_panelConflictHidden",
796
806
  "settingsBringOption": "yw4T5a_settingsBringOption",
797
- "panelListActions": "yw4T5a_panelListActions",
798
- "panelLookup": "yw4T5a_panelLookup",
799
- "panelListItemDot": "yw4T5a_panelListItemDot",
800
- "panelDispose": "yw4T5a_panelDispose",
801
- "reasoningBody": "yw4T5a_reasoningBody",
802
- "selectionButton": "yw4T5a_selectionButton",
803
- "panelAttachmentRemove": "yw4T5a_panelAttachmentRemove",
804
- "panelAttachmentRail": "yw4T5a_panelAttachmentRail",
805
- "panelRunningDot": "yw4T5a_panelRunningDot",
806
- "panelHeader": "yw4T5a_panelHeader",
807
- "questionOptionDesc": "yw4T5a_questionOptionDesc",
808
- "selectionMenu": "yw4T5a_selectionMenu",
809
- "questionItem": "yw4T5a_questionItem",
810
807
  "questionOption": "yw4T5a_questionOption",
811
- "chevronOpen": "yw4T5a_chevronOpen",
812
- "modelSelectMenu": "yw4T5a_modelSelectMenu",
813
- "modelCellLabel": "yw4T5a_modelCellLabel",
814
- "modelOptionSelected": "yw4T5a_modelOptionSelected",
808
+ "panelResize": "yw4T5a_panelResize",
809
+ "questionBlockActions": "yw4T5a_questionBlockActions",
815
810
  "panelListItemRemove": "yw4T5a_panelListItemRemove",
816
- "panelAttachment": "yw4T5a_panelAttachment",
817
- "panelListItem": "yw4T5a_panelListItem",
818
- "panelIconButton": "yw4T5a_panelIconButton",
819
- "settingsPromptInput": "yw4T5a_settingsPromptInput",
820
- "panelConflictHidden": "yw4T5a_panelConflictHidden",
821
- "modelName": "yw4T5a_modelName",
822
- "settingsRowDesc": "yw4T5a_settingsRowDesc",
823
- "questionDeleteAll": "yw4T5a_questionDeleteAll",
824
- "panelClose": "yw4T5a_panelClose",
825
- "modelSelect": "yw4T5a_modelSelect",
826
- "panelTitle": "yw4T5a_panelTitle",
811
+ "messageAssistant": "yw4T5a_messageAssistant",
812
+ "panelAttachmentRail": "yw4T5a_panelAttachmentRail",
813
+ "modelCellValue": "yw4T5a_modelCellValue",
827
814
  "questionHeader": "yw4T5a_questionHeader",
828
- "panelListItemRow": "yw4T5a_panelListItemRow",
829
- "panelList": "yw4T5a_panelList",
830
- "modelCellChevron": "yw4T5a_modelCellChevron",
831
- "settingsBringMode": "yw4T5a_settingsBringMode",
815
+ "questionOptionText": "yw4T5a_questionOptionText",
816
+ "panelIconButton": "yw4T5a_panelIconButton",
832
817
  "messageActions": "yw4T5a_messageActions",
833
- "panelFooter": "yw4T5a_panelFooter",
834
- "modelSelectLabel": "yw4T5a_modelSelectLabel",
818
+ "modelCheck": "yw4T5a_modelCheck",
819
+ "questionOptionLabel": "yw4T5a_questionOptionLabel",
820
+ "modelSelectEffort": "yw4T5a_modelSelectEffort",
821
+ "modelOption": "yw4T5a_modelOption",
822
+ "modelSelect": "yw4T5a_modelSelect",
823
+ "modelCellLabel": "yw4T5a_modelCellLabel",
824
+ "messageUser": "yw4T5a_messageUser",
825
+ "panelDispose": "yw4T5a_panelDispose",
826
+ "panelListItemActive": "yw4T5a_panelListItemActive",
827
+ "questionBringButton": "yw4T5a_questionBringButton",
828
+ "modelOptionSelected": "yw4T5a_modelOptionSelected",
829
+ "panelRunningDot": "yw4T5a_panelRunningDot",
835
830
  "questionDelete": "yw4T5a_questionDelete",
836
- "panel": "yw4T5a_panel",
837
- "questionBlock": "yw4T5a_questionBlock",
838
- "panelError": "yw4T5a_panelError",
831
+ "panelListItemRow": "yw4T5a_panelListItemRow",
832
+ "messageUserText": "yw4T5a_messageUserText",
839
833
  "modelGroups": "yw4T5a_modelGroups",
840
- "questionFabDot": "yw4T5a_questionFabDot",
841
- "messageInsertButton": "yw4T5a_messageInsertButton",
842
- "panelListItemLabel": "yw4T5a_panelListItemLabel",
843
- "modelCellValue": "yw4T5a_modelCellValue",
844
- "modelCell": "yw4T5a_modelCell",
845
- "questionBlockActions": "yw4T5a_questionBlockActions",
846
- "questionHeaderText": "yw4T5a_questionHeaderText",
847
- "questionBody": "yw4T5a_questionBody",
834
+ "panelListDeleteAll": "yw4T5a_panelListDeleteAll",
848
835
  "settingsRow": "yw4T5a_settingsRow",
849
- "panelHeaderActions": "yw4T5a_panelHeaderActions",
850
- "modelGroup": "yw4T5a_modelGroup",
836
+ "panelClose": "yw4T5a_panelClose",
837
+ "modelName": "yw4T5a_modelName",
838
+ "settingsRowText": "yw4T5a_settingsRowText",
839
+ "settingsBringOptionActive": "yw4T5a_settingsBringOptionActive",
851
840
  "panelComposer": "yw4T5a_panelComposer",
852
- "panelAttachmentText": "yw4T5a_panelAttachmentText",
853
- "settingsRowTitle": "yw4T5a_settingsRowTitle",
854
- "messageAssistant": "yw4T5a_messageAssistant",
855
- "panelResize": "yw4T5a_panelResize",
841
+ "panelLookup": "yw4T5a_panelLookup",
842
+ "questionBlock": "yw4T5a_questionBlock",
843
+ "modelCell": "yw4T5a_modelCell",
844
+ "questionFab": "yw4T5a_questionFab",
845
+ "panelListItem": "yw4T5a_panelListItem",
846
+ "questionToggle": "yw4T5a_questionToggle",
856
847
  "panelRunningPulse": "yw4T5a_panelRunningPulse",
857
- "panelListItemActive": "yw4T5a_panelListItemActive"
848
+ "chevronOpen": "yw4T5a_chevronOpen",
849
+ "panelListActions": "yw4T5a_panelListActions",
850
+ "modelCellChevron": "yw4T5a_modelCellChevron",
851
+ "panelAttachmentRemove": "yw4T5a_panelAttachmentRemove",
852
+ "modelSelectTrigger": "yw4T5a_modelSelectTrigger",
853
+ "panelRunningClock": "yw4T5a_panelRunningClock",
854
+ "settingsPromptInput": "yw4T5a_settingsPromptInput",
855
+ "modelGroupTitle": "yw4T5a_modelGroupTitle",
856
+ "reasoningSummary": "yw4T5a_reasoningSummary",
857
+ "questionFabDot": "yw4T5a_questionFabDot"
858
858
  };
859
859
  //#endregion
860
860
  //#region \0dsh-css:/home/runner/work/dsh-side-chat/dsh-side-chat/src/client/layout.css.mjs
@@ -916,6 +916,7 @@ window.__ModuleLoader__.load({
916
916
  let prefs = { ...SUBCHAT_PREFS_DEFAULTS };
917
917
  let mainQuestion = null;
918
918
  let dismissedQuestionIds = [];
919
+ let dockAvailable = true;
919
920
  const bySession = /* @__PURE__ */ new Map();
920
921
  const listeners = /* @__PURE__ */ new Set();
921
922
  let dockLaunch = null;
@@ -925,7 +926,8 @@ window.__ModuleLoader__.load({
925
926
  anchor,
926
927
  prefs,
927
928
  mainQuestion,
928
- dismissedQuestionIds
929
+ dismissedQuestionIds,
930
+ dockAvailable
929
931
  };
930
932
  const notify = () => {
931
933
  snapshot = {
@@ -934,7 +936,8 @@ window.__ModuleLoader__.load({
934
936
  anchor,
935
937
  prefs,
936
938
  mainQuestion,
937
- dismissedQuestionIds
939
+ dismissedQuestionIds,
940
+ dockAvailable
938
941
  };
939
942
  for (const fn of [...listeners]) fn();
940
943
  };
@@ -1001,6 +1004,11 @@ window.__ModuleLoader__.load({
1001
1004
  setDockLaunch(fn) {
1002
1005
  dockLaunch = fn;
1003
1006
  },
1007
+ setDockAvailable(available) {
1008
+ if (available === dockAvailable) return;
1009
+ dockAvailable = available;
1010
+ notify();
1011
+ },
1004
1012
  setActive(childId) {
1005
1013
  panel = {
1006
1014
  ...panel,
@@ -2652,7 +2660,7 @@ window.__ModuleLoader__.load({
2652
2660
  props.store.openPanel(snap.panel.parentSessionId);
2653
2661
  }
2654
2662
  }),
2655
- snap.prefs.panelHome === "floating" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SidechatPanel, {
2663
+ (snap.prefs.panelHome === "floating" || !snap.dockAvailable) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SidechatPanel, {
2656
2664
  store: props.store,
2657
2665
  t: props.t,
2658
2666
  formatDuration: props.formatDuration,
@@ -3133,9 +3141,11 @@ window.__ModuleLoader__.load({
3133
3141
  const sidebarRightTabs = ctx.get("sidebarRightTabs") ?? sidebarRight?.tabs;
3134
3142
  if (sidebarRight === void 0 || sidebarRightTabs === void 0) {
3135
3143
  phase = "unavailable";
3144
+ store.setDockAvailable(false);
3136
3145
  store.patch({ error: translate(activeLocale, "dock.unavailable") });
3137
3146
  return;
3138
3147
  }
3148
+ store.setDockAvailable(true);
3139
3149
  const dockT = (key) => translate(activeLocale, key);
3140
3150
  const disposeType = sidebarRightTabs.register({
3141
3151
  id: SIDEBAR_TAB_ID,