@lvce-editor/test-worker 14.2.0 → 14.4.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
@@ -74,6 +74,13 @@ export interface UpdateConfig {
74
74
  readonly state: number;
75
75
  }
76
76
 
77
+ export interface Dimensions {
78
+ readonly height: number;
79
+ readonly width: number;
80
+ readonly x: number;
81
+ readonly y: number;
82
+ }
83
+
77
84
  export interface DroppedFileHandle {
78
85
  readonly file: File;
79
86
  readonly id: number;
@@ -155,9 +162,12 @@ interface ActivityBar {
155
162
  readonly handleClick: (index: number) => Promise<void>;
156
163
  readonly handleClickSettings: (x: number, y: number) => Promise<void>;
157
164
  readonly handleContextMenu: () => Promise<void>;
165
+ readonly handleSideBarHidden: () => Promise<void>;
166
+ readonly resize: (dimensions: Dimensions) => Promise<void>;
158
167
  readonly selectCurrent: () => Promise<void>;
159
168
  readonly setAccountEnabled: (enabled: boolean) => Promise<void>;
160
169
  readonly setUpdateState: (config: UpdateConfig) => Promise<void>;
170
+ readonly setUserLoginState: (loginState: string) => Promise<void>;
161
171
  readonly toggleActivityBarItem: (id: string) => Promise<void>;
162
172
  }
163
173
 
@@ -600,6 +610,8 @@ interface Main {
600
610
  readonly focusLast: () => Promise<void>;
601
611
  readonly focusNext: () => Promise<void>;
602
612
  readonly focusPrevious: () => Promise<void>;
613
+ readonly handleClickAction: (action: string, rawGroupId: string) => Promise<void>;
614
+ readonly handleClickCloseTab: (rawGroupIndex: string, rawIndex: string) => Promise<void>;
603
615
  readonly handleClickTogglePreview: () => Promise<void>;
604
616
  readonly handleModifiedStatusChange: (uri: string, newStatus: boolean) => Promise<void>;
605
617
  readonly handleTabContextMenu: (button: number, x: number, y: number) => Promise<void>;
@@ -1783,6 +1783,12 @@ const focus$2 = async () => {
1783
1783
  const toggleActivityBarItem = async id => {
1784
1784
  await invoke('ActivityBar.toggleActivityBarItem', id);
1785
1785
  };
1786
+
1787
+ // export type LoginState = 'logging in' | 'logging out'
1788
+
1789
+ const setUserLoginState = async loginState => {
1790
+ await invoke('ActivityBar.setUserLoginState', loginState);
1791
+ };
1786
1792
  const focusFirst$7 = async () => {
1787
1793
  await invoke('ActivityBar.focusFirst');
1788
1794
  };
@@ -1801,11 +1807,14 @@ const focusPrevious$7 = async () => {
1801
1807
  const handleClick$4 = async index => {
1802
1808
  await invoke('ActivityBar.handleClick', index);
1803
1809
  };
1810
+ const handleSideBarHidden = async () => {
1811
+ await invoke('ActivityBar.handleSideBarHidden');
1812
+ };
1804
1813
  const handleContextMenu$5 = async () => {
1805
1814
  await invoke('ActivityBar.handleContextMenu');
1806
1815
  };
1807
1816
  const setUpdateState = async config => {
1808
- await invoke('ActivityBar.setUpdateState', config);
1817
+ await invoke('ActivityBar.handleUpdateStateChange', config);
1809
1818
  };
1810
1819
  const selectCurrent = async () => {
1811
1820
  await invoke('ActivityBar.selectCurrent');
@@ -1813,6 +1822,9 @@ const selectCurrent = async () => {
1813
1822
  const handleClickSettings$1 = async (x, y) => {
1814
1823
  await invoke('ActivityBar.handleClickSettings', x, y);
1815
1824
  };
1825
+ const resize = async dimensions => {
1826
+ await invoke('ActivityBar.resize', dimensions);
1827
+ };
1816
1828
 
1817
1829
  const ActivityBar = {
1818
1830
  focus: focus$2,
@@ -1823,9 +1835,12 @@ const ActivityBar = {
1823
1835
  handleClick: handleClick$4,
1824
1836
  handleClickSettings: handleClickSettings$1,
1825
1837
  handleContextMenu: handleContextMenu$5,
1838
+ handleSideBarHidden,
1839
+ resize,
1826
1840
  selectCurrent,
1827
1841
  setAccountEnabled,
1828
1842
  setUpdateState,
1843
+ setUserLoginState,
1829
1844
  toggleActivityBarItem
1830
1845
  };
1831
1846
 
@@ -2312,6 +2327,9 @@ const openKeyBindings = async () => {
2312
2327
  const handleClickTogglePreview = async () => {
2313
2328
  await invoke('Main.handleClickTogglePreview');
2314
2329
  };
2330
+ const handleClickAction = async (action, rawGroupId) => {
2331
+ await invoke('Main.handleClickAction', action, rawGroupId);
2332
+ };
2315
2333
  const closeAllEditors = async () => {
2316
2334
  await invoke('Main.closeAllEditors');
2317
2335
  };
@@ -2348,6 +2366,9 @@ const focusNext$7 = async () => {
2348
2366
  const focusPrevious$6 = async () => {
2349
2367
  await invoke('Main.focusPrevious');
2350
2368
  };
2369
+ const handleClickCloseTab = async (rawGroupIndex, rawIndex) => {
2370
+ await invoke('Main.handleClickCloseTab', rawGroupIndex, rawIndex);
2371
+ };
2351
2372
  const focusLast$5 = async () => {
2352
2373
  await invoke('Main.focusLast');
2353
2374
  };
@@ -2373,6 +2394,8 @@ const Main = {
2373
2394
  focusLast: focusLast$5,
2374
2395
  focusNext: focusNext$7,
2375
2396
  focusPrevious: focusPrevious$6,
2397
+ handleClickAction,
2398
+ handleClickCloseTab,
2376
2399
  handleClickTogglePreview,
2377
2400
  handleModifiedStatusChange,
2378
2401
  handleTabContextMenu,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "14.2.0",
3
+ "version": "14.4.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",