@ziex/cli 0.1.0-dev.865 → 0.1.0-test.1
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 +10 -29
- package/README.md +0 -195
- package/app.d.ts +0 -112
- package/aws-lambda/index.d.ts +0 -96
- package/aws-lambda/index.js +0 -126
- package/build.zig +0 -5
- package/build.zig.zon +0 -7
- package/cloudflare/app.d.ts +0 -2
- package/cloudflare/do.d.ts +0 -48
- package/cloudflare/index.d.ts +0 -4
- package/cloudflare/index.js +0 -1707
- package/cloudflare/kv.d.ts +0 -2
- package/cloudflare/worker.d.ts +0 -3
- package/index.d.ts +0 -2
- package/index.js +0 -739
- package/kv.d.ts +0 -27
- package/react/dom.d.ts +0 -21
- package/react/index.d.ts +0 -2
- package/react/index.js +0 -144
- package/react/types.d.ts +0 -190
- package/runtime.d.ts +0 -70
- package/vercel/index.d.ts +0 -26
- package/vercel/index.js +0 -18
- package/wasi.d.ts +0 -61
- package/wasm/core.d.ts +0 -78
- package/wasm/dom.d.ts +0 -4
- package/wasm/index.d.ts +0 -46
- package/wasm/index.js +0 -895
- package/wasm/init.d.ts +0 -1
- package/wasm/init.js +0 -873
- package/wasm/types.d.ts +0 -1
- package/wasm/wasi.d.ts +0 -28
- package/zx.d.ts +0 -1
package/wasm/index.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
export { CallbackType, jsz, storeValueGetRef, textDecoder, textEncoder, getMemoryView, readString, writeBytes, ZxBridgeCore, } from "./core";
|
|
2
|
-
export type { CallbackTypeValue } from "./core";
|
|
3
|
-
import { ZxBridgeCore } from "./core";
|
|
4
|
-
/**
|
|
5
|
-
* Browser ZX Bridge — extends ZxBridgeCore with DOM, WebSocket, and form-action support.
|
|
6
|
-
* Import this from environments that have access to browser globals.
|
|
7
|
-
* For edge runtimes, import ZxBridgeCore from ./core instead.
|
|
8
|
-
*/
|
|
9
|
-
export declare class ZxBridge extends ZxBridgeCore {
|
|
10
|
-
#private;
|
|
11
|
-
constructor(exports: WebAssembly.Exports);
|
|
12
|
-
/** Submit a form action with bound-state round-trip. */
|
|
13
|
-
submitFormActionAsync(form: HTMLFormElement, statesJson: string, fetchId: bigint): void;
|
|
14
|
-
/**
|
|
15
|
-
* Create and connect a WebSocket.
|
|
16
|
-
* Calls __zx_ws_onopen, __zx_ws_onmessage, __zx_ws_onerror, __zx_ws_onclose.
|
|
17
|
-
*/
|
|
18
|
-
wsConnect(wsId: bigint, urlPtr: number, urlLen: number, protocolsPtr: number, protocolsLen: number): void;
|
|
19
|
-
/** Send data over WebSocket */
|
|
20
|
-
wsSend(wsId: bigint, dataPtr: number, dataLen: number, isBinary: number): void;
|
|
21
|
-
/** Close WebSocket connection */
|
|
22
|
-
wsClose(wsId: bigint, code: number, reasonPtr: number, reasonLen: number): void;
|
|
23
|
-
/** Handle a DOM event (called by event delegation) */
|
|
24
|
-
eventbridge(velementId: bigint, eventTypeId: number, event: Event): void;
|
|
25
|
-
/** Create the full browser import object for WASM instantiation (includes DOM + WebSocket). */
|
|
26
|
-
static createImportObject(bridgeRef: {
|
|
27
|
-
current: ZxBridge | null;
|
|
28
|
-
}): WebAssembly.Imports;
|
|
29
|
-
}
|
|
30
|
-
/** Initialize event delegation */
|
|
31
|
-
export declare function initEventDelegation(bridge: ZxBridge, rootSelector?: string): void;
|
|
32
|
-
export type InitOptions = {
|
|
33
|
-
url?: string;
|
|
34
|
-
eventDelegationRoot?: string;
|
|
35
|
-
importObject?: WebAssembly.Imports;
|
|
36
|
-
};
|
|
37
|
-
/** Initialize WASM with the ZX Bridge */
|
|
38
|
-
export declare function init(options?: InitOptions): Promise<{
|
|
39
|
-
source: WebAssembly.WebAssemblyInstantiatedSource;
|
|
40
|
-
bridge: ZxBridge;
|
|
41
|
-
}>;
|
|
42
|
-
declare global {
|
|
43
|
-
interface HTMLElement {
|
|
44
|
-
__zx_ref?: number;
|
|
45
|
-
}
|
|
46
|
-
}
|