@casual-simulation/aux-runtime 3.5.3 → 3.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@casual-simulation/aux-runtime",
3
- "version": "3.5.3",
3
+ "version": "3.6.0",
4
4
  "description": "Runtime for AUX projects",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -32,8 +32,8 @@
32
32
  "access": "public"
33
33
  },
34
34
  "dependencies": {
35
- "@casual-simulation/aux-common": "^3.5.3",
36
- "@casual-simulation/aux-records": "^3.5.3",
35
+ "@casual-simulation/aux-common": "^3.6.0",
36
+ "@casual-simulation/aux-records": "^3.6.0",
37
37
  "@casual-simulation/crypto": "^3.5.0",
38
38
  "@casual-simulation/engine262": "0.0.1-4de2170374e22761996e46eb1362f4496ee57f8f",
39
39
  "@casual-simulation/error-stack-parser": "^2.0.7",
@@ -81,5 +81,5 @@
81
81
  "**/*.d.ts",
82
82
  "**/*.def"
83
83
  ],
84
- "gitHead": "eedee336f85664e1a8cd182cc77273d5a7cc6b32"
84
+ "gitHead": "11d0f0e7b39bb282dc8f483e3ed809dc5a1d9495"
85
85
  }
@@ -2154,6 +2154,7 @@ export declare function createDefaultLibrary(context: AuxGlobalContext): {
2154
2154
  showJoinCode: (inst?: string, dimension?: string) => ShowJoinCodeAction;
2155
2155
  requestFullscreenMode: () => RequestFullscreenAction;
2156
2156
  exitFullscreenMode: () => ExitFullscreenAction;
2157
+ hideLoadingScreen: () => Promise<void>;
2157
2158
  showHtml: (html: string) => ShowHtmlAction;
2158
2159
  hideHtml: () => HideHtmlAction;
2159
2160
  setClipboard: (text: string) => SetClipboardAction;
@@ -335,6 +335,7 @@ export function createDefaultLibrary(context) {
335
335
  showJoinCode,
336
336
  requestFullscreenMode,
337
337
  exitFullscreenMode,
338
+ hideLoadingScreen,
338
339
  showHtml,
339
340
  hideHtml,
340
341
  setClipboard,
@@ -2317,6 +2318,26 @@ export function createDefaultLibrary(context) {
2317
2318
  function exitFullscreenMode() {
2318
2319
  return addAction(exitFullscreen());
2319
2320
  }
2321
+ /**
2322
+ * Hides the loading screen.
2323
+ *
2324
+ * Returns a promise that resolves when the loading screen has been hidden.
2325
+ *
2326
+ * @example Hide the loading screen.
2327
+ * await os.hideLoadingScreen();
2328
+ *
2329
+ * @dochash actions/os/portals
2330
+ * @docname os.hideLoadingScreen
2331
+ * @docgroup 11-loading
2332
+ */
2333
+ function hideLoadingScreen() {
2334
+ const task = context.createTask();
2335
+ const action = {
2336
+ type: 'hide_loading_screen',
2337
+ taskId: task.taskId,
2338
+ };
2339
+ return addAsyncAction(task, action);
2340
+ }
2320
2341
  /**
2321
2342
  * Shows some HTML to the player in a popup modal. This can be useful for loading a separate webpage or providing some formatted text.
2322
2343
  *