@blit-sh/react 0.17.1 → 0.18.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/BlitTerminal.d.ts +4 -3
- package/dist/BlitTerminal.d.ts.map +1 -1
- package/dist/BlitTerminal.js +77 -1298
- package/dist/BlitTerminal.js.map +1 -1
- package/package.json +15 -17
package/dist/BlitTerminal.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Ref } from "react";
|
|
2
|
-
import type { Terminal } from "@blit-sh/browser";
|
|
3
2
|
import type { ConnectionStatus } from "@blit-sh/core";
|
|
3
|
+
import type { Terminal } from "@blit-sh/browser";
|
|
4
4
|
import type { BlitTerminalProps } from "./types";
|
|
5
5
|
export interface BlitTerminalHandle {
|
|
6
6
|
/** The underlying WASM Terminal instance, if initialised. */
|
|
@@ -16,8 +16,9 @@ export interface BlitTerminalHandle {
|
|
|
16
16
|
/**
|
|
17
17
|
* BlitTerminal renders a blit terminal inside a WebGL canvas.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
19
|
+
* This is a thin wrapper over `BlitTerminalSurface` from `@blit-sh/core`.
|
|
20
|
+
* It renders a container `<div>`, attaches the surface to it on mount,
|
|
21
|
+
* and forwards prop changes to the surface's setters.
|
|
21
22
|
*/
|
|
22
23
|
export declare function BlitTerminal({ ref, ...props }: BlitTerminalProps & {
|
|
23
24
|
ref?: Ref<BlitTerminalHandle>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlitTerminal.d.ts","sourceRoot":"","sources":["../src/BlitTerminal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BlitTerminal.d.ts","sourceRoot":"","sources":["../src/BlitTerminal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AASjD,MAAM,WAAW,kBAAkB;IACjC,6DAA6D;IAC7D,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,MAAM,EAAE,gBAAgB,CAAC;IACzB,wEAAwE;IACxE,KAAK,IAAI,IAAI,CAAC;CACf;AAMD;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,EAC3B,GAAG,EACH,GAAG,KAAK,EACT,EAAE,iBAAiB,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,kBAAkB,CAAC,CAAA;CAAE,2CA8IvD"}
|