@ai-ecoverse/slicc-spectrum 1.65.1 → 1.65.2

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.
@@ -1,6 +1,6 @@
1
1
  import '@adobe/spectrum-wc/components/action-button/swc-action-button.js';
2
2
  import { type TemplateResult } from 'lit';
3
- import type { TerminalBackend } from '../backend.js';
3
+ import type { TerminalBackend, TerminalSession, TerminalSink, TerminalSize } from '../backend.js';
4
4
  import type { SliccDock } from '../components/dock.js';
5
5
  import type { SliccModel, TerminalPort } from '../model/types.js';
6
6
  import type { SliccTerminal } from '../slicc-terminal.js';
@@ -8,7 +8,14 @@ import { ThemedElement } from './base.js';
8
8
  import { type ScreenClass } from './panels.js';
9
9
  export declare function deepActive(root: Document | ShadowRoot): HTMLElement | null;
10
10
  export declare const scrollback: number;
11
- export declare function keep(port: TerminalPort, id: string): TerminalBackend;
11
+ declare class KeptSession implements TerminalBackend {
12
+ #private;
13
+ constructor(backend: () => TerminalBackend);
14
+ open(sink: TerminalSink, size: TerminalSize): Promise<TerminalSession>;
15
+ replay(write: (data: Uint8Array) => void): void;
16
+ dispose(): void;
17
+ }
18
+ export declare function keep(port: TerminalPort, id: string): KeptSession;
12
19
  export declare class SliccTerminalPanel extends ThemedElement {
13
20
  #private;
14
21
  static properties: {
@@ -34,3 +41,4 @@ export declare class TerminalPanels {
34
41
  show(dock: SliccDock, port: TerminalPort, screen: ScreenClass): void;
35
42
  create(dock: SliccDock, port: TerminalPort, screen: ScreenClass): void;
36
43
  }
44
+ export {};
@@ -15,6 +15,7 @@ export declare class SliccTerminal extends HTMLElement {
15
15
  resize(cols: number, rows: number): void;
16
16
  fit(): void;
17
17
  write(data: string | Uint8Array): void;
18
+ redraw(data: string | Uint8Array): void;
18
19
  send(data: string | Uint8Array): void;
19
20
  signal(name: TerminalSignal): void;
20
21
  focus(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-spectrum",
3
- "version": "1.65.1",
3
+ "version": "1.65.2",
4
4
  "description": "Web components for SLICC on Spectrum Web Components: the terminal, the app shell and its surfaces",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",