@lvce-editor/test-worker 14.5.0 → 14.7.0

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/dist/api.d.ts CHANGED
@@ -176,6 +176,10 @@ interface BaseUrl {
176
176
  }
177
177
 
178
178
  interface Chat {
179
+ readonly chatListFocusFirst: () => Promise<void>;
180
+ readonly chatListFocusLast: () => Promise<void>;
181
+ readonly chatListFocusNext: () => Promise<void>;
182
+ readonly chatListFocusPrevious: () => Promise<void>;
179
183
  readonly clearInput: () => Promise<void>;
180
184
  readonly closeGitBranchPicker: () => Promise<void>;
181
185
  readonly deleteSessionAtIndex: (index: number) => Promise<void>;
@@ -194,6 +198,7 @@ interface Chat {
194
198
  readonly handleClickSettings: () => Promise<void>;
195
199
  readonly handleContextMenuChatImageAttachment: (id: string, x: number, y: number) => Promise<void>;
196
200
  readonly handleDropFiles: (file: DroppedFileHandle) => Promise<void>;
201
+ readonly handleErrorComposerAttachmentPreviewOverlay: () => Promise<void>;
197
202
  readonly handleInput: (text: string) => Promise<void>;
198
203
  readonly handleInputCopy: () => Promise<void>;
199
204
  readonly handleInputCut: () => Promise<void>;
@@ -223,6 +228,7 @@ interface Chat {
223
228
  readonly setAuthEnabled: (enabled: boolean) => Promise<void>;
224
229
  readonly setBackendUrl: (url: string) => Promise<void>;
225
230
  readonly setNewChatModelPickerEnabled: (enabled: boolean) => Promise<void>;
231
+ readonly setNowForTest: (now: number) => Promise<void>;
226
232
  readonly setQuestionToolEnabled: (enabled: boolean) => Promise<void>;
227
233
  readonly setReasoningEffort: (effort: string) => Promise<void>;
228
234
  readonly setReasoningPickerEnabled: (enabled: boolean) => Promise<void>;
@@ -743,6 +749,7 @@ interface Search {
743
749
  readonly setLimit: (limit: number) => Promise<void>;
744
750
  readonly setReplaceValue: (value: string) => Promise<void>;
745
751
  readonly setValue: (value: string) => Promise<void>;
752
+ readonly show: () => Promise<void>;
746
753
  readonly toggleMatchCase: () => Promise<void>;
747
754
  readonly toggleMatchWholeWord: () => Promise<void>;
748
755
  readonly togglePreserveCase: () => Promise<void>;
@@ -1749,7 +1749,7 @@ const {
1749
1749
  expect
1750
1750
  } = Expect$1;
1751
1751
 
1752
- const show$7 = async () => {
1752
+ const show$8 = async () => {
1753
1753
  return invoke('About.showAbout');
1754
1754
  };
1755
1755
  const handleClickOk = async () => {
@@ -1774,7 +1774,7 @@ const About = {
1774
1774
  handleClickClose: handleClickClose$1,
1775
1775
  handleClickCopy,
1776
1776
  handleClickOk,
1777
- show: show$7
1777
+ show: show$8
1778
1778
  };
1779
1779
 
1780
1780
  const focus$2 = async () => {
@@ -1891,7 +1891,7 @@ const enterNewLine = async () => {
1891
1891
  const setScrollDownButtonEnabled = async enabled => {
1892
1892
  await invoke('Chat.setScrollDownButtonEnabled', enabled);
1893
1893
  };
1894
- const show$6 = async () => {
1894
+ const show$7 = async () => {
1895
1895
  await invoke('Layout.showSecondarySideBar');
1896
1896
  await invoke('Chat.reset');
1897
1897
  };
@@ -1907,6 +1907,9 @@ const handleDropFiles = async file => {
1907
1907
  const showComposerAttachmentPreviewOverlay = async attachmentId => {
1908
1908
  await execute$1('Chat.showComposerAttachmentPreviewOverlay', attachmentId);
1909
1909
  };
1910
+ const handleErrorComposerAttachmentPreviewOverlay = async () => {
1911
+ await execute$1('Chat.handleErrorComposerAttachmentPreviewOverlay');
1912
+ };
1910
1913
  const handleClickSessionDebug = async () => {
1911
1914
  await execute$1('Chat.handleClickSessionDebug');
1912
1915
  };
@@ -2015,6 +2018,21 @@ const mockOpenAiResponse = async options => {
2015
2018
  const handleInputFocus = async () => {
2016
2019
  return execute$1('Chat.handleInputFocus', 'chat-list');
2017
2020
  };
2021
+ const chatListFocusPrevious = async () => {
2022
+ return execute$1('Chat.chatListFocusPrevious');
2023
+ };
2024
+ const chatListFocusFirst = async () => {
2025
+ return execute$1('Chat.chatListFocusFirst');
2026
+ };
2027
+ const chatListFocusLast = async () => {
2028
+ return execute$1('Chat.chatListFocusLast');
2029
+ };
2030
+ const chatListFocusNext = async () => {
2031
+ return execute$1('Chat.chatListFocusNext');
2032
+ };
2033
+ const setNowForTest = async now => {
2034
+ await execute$1('Chat.setNowForTest', now);
2035
+ };
2018
2036
  const getAuthState = async () => {
2019
2037
  return invoke('Chat.getAuthState');
2020
2038
  };
@@ -2023,6 +2041,10 @@ const handleAgentModeChange = async newAgentMode => {
2023
2041
  };
2024
2042
 
2025
2043
  const Chat = {
2044
+ chatListFocusFirst,
2045
+ chatListFocusLast,
2046
+ chatListFocusNext,
2047
+ chatListFocusPrevious,
2026
2048
  clearInput: clearInput$1,
2027
2049
  closeGitBranchPicker,
2028
2050
  deleteSessionAtIndex,
@@ -2041,6 +2063,7 @@ const Chat = {
2041
2063
  handleClickSettings,
2042
2064
  handleContextMenuChatImageAttachment,
2043
2065
  handleDropFiles,
2066
+ handleErrorComposerAttachmentPreviewOverlay,
2044
2067
  handleInput: handleInput$8,
2045
2068
  handleInputCopy: handleInputCopy$1,
2046
2069
  handleInputCut: handleInputCut$1,
@@ -2070,13 +2093,14 @@ const Chat = {
2070
2093
  setAuthEnabled,
2071
2094
  setBackendUrl,
2072
2095
  setNewChatModelPickerEnabled,
2096
+ setNowForTest,
2073
2097
  setQuestionToolEnabled,
2074
2098
  setReasoningEffort,
2075
2099
  setReasoningPickerEnabled,
2076
2100
  setScrollDownButtonEnabled,
2077
2101
  setSearchEnabled,
2078
2102
  setStreamingEnabled,
2079
- show: show$6,
2103
+ show: show$7,
2080
2104
  showComposerAttachmentPreviewOverlay,
2081
2105
  useMockApi
2082
2106
  };
@@ -2915,7 +2939,7 @@ const EditorCompletion = {
2915
2939
  selectIndex: selectIndex$6
2916
2940
  };
2917
2941
 
2918
- const show$5 = async () => {
2942
+ const show$6 = async () => {
2919
2943
  await invoke('Editor.showHover2');
2920
2944
  };
2921
2945
  const close$1 = async () => {
@@ -2924,7 +2948,7 @@ const close$1 = async () => {
2924
2948
 
2925
2949
  const EditorHover = {
2926
2950
  close: close$1,
2927
- show: show$5
2951
+ show: show$6
2928
2952
  };
2929
2953
 
2930
2954
  const handleInput$6 = async value => {
@@ -3816,7 +3840,7 @@ const Panel = {
3816
3840
  openProblems
3817
3841
  };
3818
3842
 
3819
- const show$4 = async () => {
3843
+ const show$5 = async () => {
3820
3844
  await open$3('Output');
3821
3845
  await invoke('Panel.selectIndex', 1);
3822
3846
  };
@@ -3838,7 +3862,7 @@ const Output = {
3838
3862
  handleFilterInput: handleFilterInput$1,
3839
3863
  saveAs,
3840
3864
  selectChannel,
3841
- show: show$4
3865
+ show: show$5
3842
3866
  };
3843
3867
 
3844
3868
  const getIsFirefox = () => {
@@ -3918,7 +3942,7 @@ const Preview = {
3918
3942
  waitForMutation
3919
3943
  };
3920
3944
 
3921
- const show$3 = async () => {
3945
+ const show$4 = async () => {
3922
3946
  await invoke('Panel.selectIndex', 0);
3923
3947
  };
3924
3948
  const handleFilterInput = async text => {
@@ -3957,7 +3981,7 @@ const Problems = {
3957
3981
  handleClickAt: handleClickAt$1,
3958
3982
  handleFilterInput,
3959
3983
  handleIconThemeChange,
3960
- show: show$3,
3984
+ show: show$4,
3961
3985
  viewAsList,
3962
3986
  viewAsTable
3963
3987
  };
@@ -4062,7 +4086,7 @@ const References = {
4062
4086
  refresh
4063
4087
  };
4064
4088
 
4065
- const show$2 = async () => {
4089
+ const show$3 = async () => {
4066
4090
  await open$7('Run And Debug');
4067
4091
  };
4068
4092
  const handleClickSectionBreakPoints = async () => {
@@ -4103,9 +4127,12 @@ const RunAndDebug = {
4103
4127
  handleWatchValueChange,
4104
4128
  selectIndex: selectIndex$2,
4105
4129
  setPauseOnExceptions,
4106
- show: show$2
4130
+ show: show$3
4107
4131
  };
4108
4132
 
4133
+ const show$2 = async () => {
4134
+ await open$7('Search');
4135
+ };
4109
4136
  const setValue = async value => {
4110
4137
  await invoke('Search.handleInput', value, Script);
4111
4138
  };
@@ -4250,6 +4277,7 @@ const Search = {
4250
4277
  setLimit,
4251
4278
  setReplaceValue,
4252
4279
  setValue,
4280
+ show: show$2,
4253
4281
  toggleMatchCase,
4254
4282
  toggleMatchWholeWord,
4255
4283
  togglePreserveCase,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "14.5.0",
3
+ "version": "14.7.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",