@blastlauncher/runtime 1.0.1 → 3.0.0-alpha.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/README.md +5 -0
- package/dist/api/action-panel.d.ts +134 -0
- package/dist/api/action-panel.js +36 -0
- package/dist/api/action.d.ts +386 -0
- package/dist/api/action.js +260 -0
- package/dist/api/ai-browser.d.ts +423 -0
- package/dist/api/ai-browser.js +113 -0
- package/dist/api/ai-decide.d.ts +41 -0
- package/dist/api/ai-decide.js +62 -0
- package/dist/api/applications.d.ts +13 -0
- package/dist/api/applications.js +48 -0
- package/dist/api/cache.d.ts +27 -0
- package/dist/api/cache.js +126 -0
- package/dist/api/capability.d.ts +14 -0
- package/dist/api/capability.js +30 -0
- package/dist/api/clipboard.d.ts +57 -0
- package/dist/api/clipboard.js +83 -0
- package/dist/api/detail.d.ts +33 -0
- package/dist/api/detail.js +11 -0
- package/dist/api/diagnostics.d.ts +16 -0
- package/dist/api/diagnostics.js +26 -0
- package/dist/api/dropdown.d.ts +17 -0
- package/dist/api/dropdown.js +48 -0
- package/dist/api/enums.generated.d.ts +750 -0
- package/dist/api/enums.generated.js +719 -0
- package/dist/api/environment.d.ts +44 -0
- package/dist/api/environment.js +61 -0
- package/dist/api/feedback.d.ts +94 -0
- package/dist/api/feedback.js +228 -0
- package/dist/api/form.d.ts +162 -0
- package/dist/api/form.js +345 -0
- package/dist/api/grid.d.ts +293 -0
- package/dist/api/grid.js +36 -0
- package/dist/api/implemented.d.ts +53 -0
- package/dist/api/implemented.js +43 -0
- package/dist/api/index.d.ts +612 -0
- package/dist/api/index.js +82 -0
- package/dist/api/keyboard.d.ts +182 -0
- package/dist/api/keyboard.js +107 -0
- package/dist/api/launch.d.ts +40 -0
- package/dist/api/launch.js +27 -0
- package/dist/api/legacy.d.ts +9 -0
- package/dist/api/legacy.js +25 -0
- package/dist/api/list.d.ts +291 -0
- package/dist/api/list.js +28 -0
- package/dist/api/menu-bar.d.ts +54 -0
- package/dist/api/menu-bar.js +30 -0
- package/dist/api/metadata.d.ts +62 -0
- package/dist/api/metadata.js +33 -0
- package/dist/api/navigation.d.ts +36 -0
- package/dist/api/navigation.js +99 -0
- package/dist/api/oauth.d.ts +84 -0
- package/dist/api/oauth.js +125 -0
- package/dist/api/open.d.ts +18 -0
- package/dist/api/open.js +36 -0
- package/dist/api/preferences.d.ts +43 -0
- package/dist/api/preferences.js +41 -0
- package/dist/api/selection.d.ts +10 -0
- package/dist/api/selection.js +31 -0
- package/dist/api/slot.d.ts +7 -0
- package/dist/api/slot.js +11 -0
- package/dist/api/storage.d.ts +24 -0
- package/dist/api/storage.js +45 -0
- package/dist/api/types.d.ts +46 -0
- package/dist/api/types.js +5 -0
- package/dist/api/unsupported.d.ts +18 -0
- package/dist/api/unsupported.generated.d.ts +1255 -0
- package/dist/api/unsupported.generated.js +56 -0
- package/dist/api/unsupported.js +65 -0
- package/dist/api/window-management.d.ts +97 -0
- package/dist/api/window-management.js +164 -0
- package/dist/api/window.d.ts +16 -0
- package/dist/api/window.js +32 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +339 -0
- package/dist/provider.d.ts +8 -0
- package/dist/provider.js +107 -0
- package/dist/reconciler/index.d.ts +9 -0
- package/dist/reconciler/index.js +186 -0
- package/dist/reconciler/serialize.d.ts +3 -0
- package/dist/reconciler/serialize.js +53 -0
- package/dist/reconciler/types.d.ts +8 -0
- package/dist/reconciler/types.js +1 -0
- package/package.json +32 -23
- package/.eslintrc.js +0 -6
- package/CHANGELOG.md +0 -10
- package/dist/App.d.ts +0 -5
- package/dist/App.js +0 -10
- package/dist/components/CommandList/index.d.ts +0 -1
- package/dist/components/CommandList/index.js +0 -20
- package/dist/components/CommandList/utils.d.ts +0 -1
- package/dist/components/CommandList/utils.js +0 -24
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -11
- package/dist/utils/connectDevtools.d.ts +0 -1
- package/dist/utils/connectDevtools.js +0 -11
- package/dist/utils/run.d.ts +0 -4
- package/dist/utils/run.js +0 -12
- package/dist/utils/window.d.ts +0 -0
- package/dist/utils/window.js +0 -2
- package/src/@types/raycast.d.ts +0 -4
- package/src/@types/react-devtools-core.d.ts +0 -19
- package/src/App.tsx +0 -18
- package/src/components/CommandList/index.tsx +0 -27
- package/src/components/CommandList/utils.ts +0 -26
- package/src/index.ts +0 -13
- package/src/utils/connectDevtools.ts +0 -8
- package/src/utils/run.ts +0 -7
- package/src/utils/window.js +0 -1
- package/tsconfig.json +0 -10
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { isValidElement } from "react";
|
|
2
|
+
import { UnsupportedApiError, unsupportedPath } from "../api/unsupported.js";
|
|
3
|
+
export function serializeProps(type, props, handlers, warn) {
|
|
4
|
+
const ancestors = new Set();
|
|
5
|
+
function visit(value, path) {
|
|
6
|
+
if (value === undefined)
|
|
7
|
+
return undefined;
|
|
8
|
+
if (value === null || typeof value === "string" || typeof value === "boolean")
|
|
9
|
+
return value;
|
|
10
|
+
if (typeof value === "number" && Number.isFinite(value))
|
|
11
|
+
return value;
|
|
12
|
+
// `List.Item.Accessory` carries `Date` labels (also nested in
|
|
13
|
+
// `{ value, color }` forms); clients get the ISO string instead.
|
|
14
|
+
if (value instanceof Date)
|
|
15
|
+
return value.toISOString();
|
|
16
|
+
// An unimplemented API value (e.g. `Icon.Star` before Icon exists) must fail
|
|
17
|
+
// loudly, not be mistaken for a callback and rendered as a handler.
|
|
18
|
+
const stubPath = unsupportedPath(value);
|
|
19
|
+
if (stubPath)
|
|
20
|
+
throw new UnsupportedApiError(stubPath);
|
|
21
|
+
if (typeof value === "function") {
|
|
22
|
+
let name = path;
|
|
23
|
+
while (handlers.has(name))
|
|
24
|
+
name += ":handler";
|
|
25
|
+
handlers.set(name, value);
|
|
26
|
+
return { $handler: name };
|
|
27
|
+
}
|
|
28
|
+
if (typeof value === "object" &&
|
|
29
|
+
!isValidElement(value) &&
|
|
30
|
+
(Array.isArray(value) ||
|
|
31
|
+
Object.getPrototypeOf(value) === Object.prototype ||
|
|
32
|
+
Object.getPrototypeOf(value) === null) &&
|
|
33
|
+
!ancestors.has(value)) {
|
|
34
|
+
ancestors.add(value);
|
|
35
|
+
const result = Array.isArray(value)
|
|
36
|
+
? Array.from(value, (item, index) => visit(item, `${path}[${index}]`) ?? null)
|
|
37
|
+
: Object.fromEntries(Object.entries(value).flatMap(([key, item]) => {
|
|
38
|
+
const next = visit(item, `${path}.${key}`);
|
|
39
|
+
return next === undefined ? [] : [[key, next]];
|
|
40
|
+
}));
|
|
41
|
+
ancestors.delete(value);
|
|
42
|
+
return result;
|
|
43
|
+
}
|
|
44
|
+
warn(`Dropped non-serializable prop ${type}.${path}`);
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
return Object.fromEntries(Object.entries(props).flatMap(([key, value]) => {
|
|
48
|
+
if (key === "children" || key === "key")
|
|
49
|
+
return [];
|
|
50
|
+
const next = visit(value, key);
|
|
51
|
+
return next === undefined ? [] : [[key, next]];
|
|
52
|
+
}));
|
|
53
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SceneMessage } from "@blastlauncher/protocol";
|
|
2
|
+
export type { JsonValue, SceneNode } from "@blastlauncher/protocol";
|
|
3
|
+
export type SceneSnapshot = Omit<SceneMessage, "type">;
|
|
4
|
+
export interface SceneRootOptions {
|
|
5
|
+
publish(snapshot: SceneSnapshot): void;
|
|
6
|
+
onWarning?(message: string): void;
|
|
7
|
+
onError?(error: unknown): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,28 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blastlauncher/runtime",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"exports": {
|
|
5
|
+
"./api": {
|
|
6
|
+
"types": "./dist/api/index.d.ts",
|
|
7
|
+
"import": "./dist/api/index.js",
|
|
8
|
+
"default": "./dist/api/index.js"
|
|
9
|
+
},
|
|
10
|
+
"./reconciler": {
|
|
11
|
+
"types": "./dist/reconciler/index.d.ts",
|
|
12
|
+
"import": "./dist/reconciler/index.js",
|
|
13
|
+
"default": "./dist/reconciler/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./main": {
|
|
16
|
+
"types": "./dist/main.d.ts",
|
|
17
|
+
"import": "./dist/main.js",
|
|
18
|
+
"default": "./dist/main.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
5
21
|
"dependencies": {
|
|
6
|
-
"@
|
|
7
|
-
"
|
|
8
|
-
"react": "
|
|
9
|
-
"react-devtools-core": "^4.27.1",
|
|
10
|
-
"websocket": "^1.0.34",
|
|
11
|
-
"@blastlauncher/api": "1.0.1",
|
|
12
|
-
"@blastlauncher/renderer": "1.0.1"
|
|
22
|
+
"@blastlauncher/protocol": "3.0.0-alpha.0",
|
|
23
|
+
"react": "19.3.1",
|
|
24
|
+
"react-reconciler": "0.34.0"
|
|
13
25
|
},
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
"rimraf": "^4.1.1",
|
|
19
|
-
"rpc-websockets": "^7.5.0"
|
|
26
|
+
"version": "3.0.0-alpha.0",
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">=24.20.0"
|
|
20
30
|
},
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
31
|
+
"files": [
|
|
32
|
+
"dist",
|
|
33
|
+
"schema",
|
|
34
|
+
"LICENSE",
|
|
35
|
+
"README.md"
|
|
36
|
+
]
|
|
37
|
+
}
|
package/.eslintrc.js
DELETED
package/CHANGELOG.md
DELETED
package/dist/App.d.ts
DELETED
package/dist/App.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.App = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const api_1 = require("@blastlauncher/api");
|
|
6
|
-
const CommandList_1 = require("./components/CommandList");
|
|
7
|
-
const App = ({ server }) => {
|
|
8
|
-
return ((0, jsx_runtime_1.jsx)(api_1.WsServerProvider, { server: server, children: (0, jsx_runtime_1.jsx)(api_1.NavigationProvider, { children: (0, jsx_runtime_1.jsx)(CommandList_1.CommandList, {}) }) }));
|
|
9
|
-
};
|
|
10
|
-
exports.App = App;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const CommandList: () => JSX.Element;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CommandList = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const api_1 = require("@raycast/api");
|
|
9
|
-
const os_1 = __importDefault(require("os"));
|
|
10
|
-
const path_1 = __importDefault(require("path"));
|
|
11
|
-
const utils_1 = require("./utils");
|
|
12
|
-
// TODO: gather all available commands from modules
|
|
13
|
-
// Install with the following command
|
|
14
|
-
// npm install --prefix ~/.blast/extensions @BlastLauncher/todo-list@0.0.2
|
|
15
|
-
const pkg = path_1.default.join(os_1.default.homedir(), ".blast/extensions/node_modules/@BlastLauncher/todo-list/index.js");
|
|
16
|
-
const TODOCommand = (0, utils_1.evalCommandModule)(pkg);
|
|
17
|
-
const CommandList = () => {
|
|
18
|
-
return ((0, jsx_runtime_1.jsx)(api_1.List, { isLoading: false, searchBarPlaceholder: "Search for apps and commands...", children: (0, jsx_runtime_1.jsx)(api_1.List.Item, { title: "Test item", actions: (0, jsx_runtime_1.jsx)(api_1.ActionPanel, { children: (0, jsx_runtime_1.jsx)(api_1.Action.Push, { title: "Open Command", target: (0, jsx_runtime_1.jsx)(TODOCommand, {}) }) }) }) }));
|
|
19
|
-
};
|
|
20
|
-
exports.CommandList = CommandList;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function evalCommandModule(pkg: string): any;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.evalCommandModule = void 0;
|
|
7
|
-
const fs_1 = __importDefault(require("fs"));
|
|
8
|
-
const eval_1 = __importDefault(require("eval"));
|
|
9
|
-
const react_1 = __importDefault(require("react"));
|
|
10
|
-
function evalCommandModule(pkg) {
|
|
11
|
-
const jsCode = fs_1.default.readFileSync(pkg, "utf8");
|
|
12
|
-
const mod = (0, eval_1.default)(jsCode, pkg, {
|
|
13
|
-
require,
|
|
14
|
-
_jsx: react_1.default.createElement,
|
|
15
|
-
_jsxFragment: react_1.default.Fragment,
|
|
16
|
-
}, true);
|
|
17
|
-
// If we use rollup for bundling, we can use the following:
|
|
18
|
-
// return mod;
|
|
19
|
-
// https://github.com/rollup/rollup/issues/3284
|
|
20
|
-
//
|
|
21
|
-
// Stay mod.default for compatibility with official raycast build, might be changed in the future
|
|
22
|
-
return mod.default;
|
|
23
|
-
}
|
|
24
|
-
exports.evalCommandModule = evalCommandModule;
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./utils/window";
|
package/dist/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
require("./utils/window");
|
|
4
|
-
const renderer_1 = require("@blastlauncher/renderer");
|
|
5
|
-
const App_1 = require("./App");
|
|
6
|
-
const connectDevtools_1 = require("./utils/connectDevtools");
|
|
7
|
-
const run_1 = require("./utils/run");
|
|
8
|
-
(0, connectDevtools_1.connect)();
|
|
9
|
-
(0, run_1.run)(App_1.App, {
|
|
10
|
-
server: (0, renderer_1.runServer)(),
|
|
11
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function connect(): void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.connect = void 0;
|
|
4
|
-
const react_devtools_core_1 = require("react-devtools-core");
|
|
5
|
-
const websocket_1 = require("websocket");
|
|
6
|
-
function connect() {
|
|
7
|
-
(0, react_devtools_core_1.connectToDevTools)({
|
|
8
|
-
websocket: new websocket_1.w3cwebsocket("ws://localhost:8097"),
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
exports.connect = connect;
|
package/dist/utils/run.d.ts
DELETED
package/dist/utils/run.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.run = void 0;
|
|
7
|
-
const renderer_1 = require("@blastlauncher/renderer");
|
|
8
|
-
const react_1 = __importDefault(require("react"));
|
|
9
|
-
function run(App, props) {
|
|
10
|
-
(0, renderer_1.render)(react_1.default.createElement(App, props), props.server);
|
|
11
|
-
}
|
|
12
|
-
exports.run = run;
|
package/dist/utils/window.d.ts
DELETED
|
File without changes
|
package/dist/utils/window.js
DELETED
package/src/@types/raycast.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
declare module "react-devtools-core" {
|
|
2
|
-
import { w3cwebsocket as W3CWebSocket } from "websocket";
|
|
3
|
-
type ResolveNativeStyle = any;
|
|
4
|
-
type DevToolsSettingsManager = any;
|
|
5
|
-
|
|
6
|
-
interface ConnectOptions {
|
|
7
|
-
host?: string;
|
|
8
|
-
nativeStyleEditorValidAttributes?: ReadonlyArray<string>;
|
|
9
|
-
port?: number;
|
|
10
|
-
useHttps?: boolean;
|
|
11
|
-
resolveRNStyle?: ResolveNativeStyle;
|
|
12
|
-
retryConnectionDelay?: number;
|
|
13
|
-
isAppActive?: () => boolean;
|
|
14
|
-
websocket?: WebSocket | W3CWebSocket | null;
|
|
15
|
-
devToolsSettingsManager?: DevToolsSettingsManager | null;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export function connectToDevTools(options?: ConnectOptions): void;
|
|
19
|
-
}
|
package/src/App.tsx
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { NavigationProvider, WsServerProvider } from "@blastlauncher/api";
|
|
2
|
-
import type { Server } from "rpc-websockets";
|
|
3
|
-
|
|
4
|
-
import { CommandList } from "./components/CommandList";
|
|
5
|
-
|
|
6
|
-
export type AppProps = {
|
|
7
|
-
server: Server;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export const App = ({ server }: AppProps) => {
|
|
11
|
-
return (
|
|
12
|
-
<WsServerProvider server={server}>
|
|
13
|
-
<NavigationProvider>
|
|
14
|
-
<CommandList />
|
|
15
|
-
</NavigationProvider>
|
|
16
|
-
</WsServerProvider>
|
|
17
|
-
);
|
|
18
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ActionPanel, List, Action } from "@raycast/api";
|
|
2
|
-
import os from "os";
|
|
3
|
-
import path from "path";
|
|
4
|
-
|
|
5
|
-
import { evalCommandModule } from "./utils";
|
|
6
|
-
|
|
7
|
-
// TODO: gather all available commands from modules
|
|
8
|
-
// Install with the following command
|
|
9
|
-
// npm install --prefix ~/.blast/extensions @BlastLauncher/todo-list@0.0.2
|
|
10
|
-
const pkg = path.join(os.homedir(), ".blast/extensions/node_modules/@BlastLauncher/todo-list/index.js");
|
|
11
|
-
|
|
12
|
-
const TODOCommand = evalCommandModule(pkg);
|
|
13
|
-
|
|
14
|
-
export const CommandList = () => {
|
|
15
|
-
return (
|
|
16
|
-
<List isLoading={false} searchBarPlaceholder="Search for apps and commands...">
|
|
17
|
-
<List.Item
|
|
18
|
-
title="Test item"
|
|
19
|
-
actions={
|
|
20
|
-
<ActionPanel>
|
|
21
|
-
<Action.Push title="Open Command" target={<TODOCommand />} />
|
|
22
|
-
</ActionPanel>
|
|
23
|
-
}
|
|
24
|
-
/>
|
|
25
|
-
</List>
|
|
26
|
-
);
|
|
27
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import fs from "fs";
|
|
2
|
-
|
|
3
|
-
import _eval from "eval";
|
|
4
|
-
import React from "react";
|
|
5
|
-
|
|
6
|
-
export function evalCommandModule(pkg: string) {
|
|
7
|
-
const jsCode = fs.readFileSync(pkg, "utf8");
|
|
8
|
-
|
|
9
|
-
const mod: any = _eval(
|
|
10
|
-
jsCode,
|
|
11
|
-
pkg,
|
|
12
|
-
{
|
|
13
|
-
require,
|
|
14
|
-
_jsx: React.createElement,
|
|
15
|
-
_jsxFragment: React.Fragment,
|
|
16
|
-
},
|
|
17
|
-
true
|
|
18
|
-
);
|
|
19
|
-
|
|
20
|
-
// If we use rollup for bundling, we can use the following:
|
|
21
|
-
// return mod;
|
|
22
|
-
// https://github.com/rollup/rollup/issues/3284
|
|
23
|
-
//
|
|
24
|
-
// Stay mod.default for compatibility with official raycast build, might be changed in the future
|
|
25
|
-
return mod.default;
|
|
26
|
-
}
|
package/src/index.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import "./utils/window";
|
|
2
|
-
|
|
3
|
-
import { runServer } from "@blastlauncher/renderer";
|
|
4
|
-
|
|
5
|
-
import { App } from "./App";
|
|
6
|
-
import { connect } from "./utils/connectDevtools";
|
|
7
|
-
import { run } from "./utils/run";
|
|
8
|
-
|
|
9
|
-
connect();
|
|
10
|
-
|
|
11
|
-
run(App, {
|
|
12
|
-
server: runServer(),
|
|
13
|
-
});
|
package/src/utils/run.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { render } from "@blastlauncher/renderer";
|
|
2
|
-
import React, { Attributes } from "react";
|
|
3
|
-
import type { Server } from "rpc-websockets";
|
|
4
|
-
|
|
5
|
-
export function run(App: (...args: any) => JSX.Element, props: { server: Server }) {
|
|
6
|
-
render(React.createElement(App, props as Attributes), props.server);
|
|
7
|
-
}
|
package/src/utils/window.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
global.window = globalThis;
|