@lvce-editor/test-worker 12.2.0 → 12.3.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
@@ -201,6 +201,12 @@ interface Editor {
201
201
  readonly rename: () => Promise<void>;
202
202
  readonly rename2: (newName: string) => Promise<void>;
203
203
  readonly selectAll: () => Promise<void>;
204
+ readonly selectAllLeft: () => Promise<void>;
205
+ readonly selectAllOccurrences: () => Promise<void>;
206
+ readonly selectAllRight: () => Promise<void>;
207
+ readonly selectDown: () => Promise<void>;
208
+ readonly selectUp: () => Promise<void>;
209
+ readonly selectionGrow: () => Promise<void>;
204
210
  readonly setCursor: (rowIndex: number, columnIndex: number) => Promise<void>;
205
211
  readonly setDeltaY: (deltaY: number) => Promise<void>;
206
212
  readonly setSelections: (selections: any) => Promise<void>;
@@ -1930,6 +1930,24 @@ const copyLineDown = async () => {
1930
1930
  const cursorDown = async () => {
1931
1931
  await invoke('Editor.cursorDown');
1932
1932
  };
1933
+ const selectDown$1 = async () => {
1934
+ await invoke('Editor.selectDown');
1935
+ };
1936
+ const selectAllLeft = async () => {
1937
+ await invoke('Editor.selectAllLeft');
1938
+ };
1939
+ const selectionGrow = async () => {
1940
+ await invoke('Editor.selectionGrow');
1941
+ };
1942
+ const selectAllRight = async () => {
1943
+ await invoke('Editor.selectAllRight');
1944
+ };
1945
+ const selectAllOccurrences = async () => {
1946
+ await invoke('Editor.selectAllOccurrences');
1947
+ };
1948
+ const selectUp$1 = async () => {
1949
+ await invoke('Editor.selectUp');
1950
+ };
1933
1951
  const cursorUp = async () => {
1934
1952
  await invoke('Editor.cursorUp');
1935
1953
  };
@@ -2173,6 +2191,12 @@ const Editor = {
2173
2191
  rename: rename$1,
2174
2192
  rename2,
2175
2193
  selectAll: selectAll$1,
2194
+ selectAllLeft,
2195
+ selectAllOccurrences,
2196
+ selectAllRight,
2197
+ selectDown: selectDown$1,
2198
+ selectUp: selectUp$1,
2199
+ selectionGrow,
2176
2200
  setCursor,
2177
2201
  setDeltaY,
2178
2202
  setSelections,
@@ -3864,10 +3888,28 @@ const Workspace = {
3864
3888
  setPath
3865
3889
  };
3866
3890
 
3891
+ const load = async url => {
3892
+ await invoke('Audio.load', url);
3893
+ };
3894
+ const play = async url => {
3895
+ await invoke('Audio.play', url);
3896
+ };
3897
+ const pause = async () => {
3898
+ await invoke('Audio.pause');
3899
+ };
3900
+
3901
+ const Audio = {
3902
+ __proto__: null,
3903
+ load,
3904
+ pause,
3905
+ play
3906
+ };
3907
+
3867
3908
  const createApi = (platform, assetDir) => {
3868
3909
  return {
3869
3910
  About,
3870
3911
  ActivityBar,
3912
+ Audio,
3871
3913
  BaseUrl: {
3872
3914
  getBaseUrl() {
3873
3915
  return assetDir;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "12.2.0",
3
+ "version": "12.3.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",