@ai-ecoverse/slicc-spectrum 1.20.0 → 1.22.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/{chunk-FVX3AKIL.js → chunk-7C2RFOQL.js} +2 -2
- package/dist/{chunk-HREBQ2GY.js → chunk-BALQPQXE.js} +22 -709
- package/dist/chunk-BALQPQXE.js.map +7 -0
- package/dist/chunk-LCUJINFQ.js +765 -0
- package/dist/chunk-LCUJINFQ.js.map +7 -0
- package/dist/{chunk-EBQYWRJ4.js → chunk-UGQPYZPJ.js} +3 -3
- package/dist/{chunk-3BBEUJX7.js → chunk-VGYK6PQ4.js} +3 -3
- package/dist/slicc-ui.js +53896 -51481
- package/dist/slicc-ui.js.map +4 -4
- package/dist/types/app/app.d.ts +9 -0
- package/dist/types/app/base.d.ts +3 -1
- package/dist/types/app/browser.d.ts +8 -5
- package/dist/types/app/panels.d.ts +7 -2
- package/dist/types/app/spectrum.d.ts +8 -0
- package/dist/types/app/terminals.d.ts +20 -9
- package/dist/types/app/tray.d.ts +1 -4
- package/package.json +2 -2
- package/dist/chunk-HREBQ2GY.js.map +0 -7
- package/dist/chunk-Y4Z7K443.js +0 -64
- package/dist/chunk-Y4Z7K443.js.map +0 -7
- /package/dist/{chunk-FVX3AKIL.js.map → chunk-7C2RFOQL.js.map} +0 -0
- /package/dist/{chunk-EBQYWRJ4.js.map → chunk-UGQPYZPJ.js.map} +0 -0
- /package/dist/{chunk-3BBEUJX7.js.map → chunk-VGYK6PQ4.js.map} +0 -0
package/dist/types/app/app.d.ts
CHANGED
|
@@ -4,6 +4,13 @@ import type { SliccModel } from '../model/types.js';
|
|
|
4
4
|
import { ThemedElement } from './base.js';
|
|
5
5
|
import { Dips } from './dips.js';
|
|
6
6
|
import { type DocumentKind, type ScreenClass, type Surface } from './panels.js';
|
|
7
|
+
import { TerminalPanels } from './terminals.js';
|
|
8
|
+
export declare function changeCount(count: number): string;
|
|
9
|
+
export declare const allAgents = "slicc:all-agents";
|
|
10
|
+
export declare const railPitch = 52;
|
|
11
|
+
export declare const phoneRail: string[];
|
|
12
|
+
export declare function railCapacity(width: number, count: number): number;
|
|
13
|
+
export declare function updatesVariant(status: string): 'negative' | 'info' | 'notice';
|
|
7
14
|
export declare class SliccApp extends ThemedElement {
|
|
8
15
|
#private;
|
|
9
16
|
static properties: {
|
|
@@ -22,6 +29,7 @@ export declare class SliccApp extends ThemedElement {
|
|
|
22
29
|
storage: Storage | null;
|
|
23
30
|
layoutKey: string;
|
|
24
31
|
readonly dips: Dips;
|
|
32
|
+
readonly terminalPanels: TerminalPanels;
|
|
25
33
|
constructor();
|
|
26
34
|
static styles: import("lit").CSSResult[];
|
|
27
35
|
get dock(): SliccDock;
|
|
@@ -38,6 +46,7 @@ export declare class SliccApp extends ThemedElement {
|
|
|
38
46
|
get storageKey(): string;
|
|
39
47
|
resetLayout(): void;
|
|
40
48
|
show(id: string): void;
|
|
49
|
+
newTerminal(): void;
|
|
41
50
|
open(kind: DocumentKind, path: string): void;
|
|
42
51
|
toggleColor(): void;
|
|
43
52
|
render(): TemplateResult;
|
package/dist/types/app/base.d.ts
CHANGED
|
@@ -30,6 +30,8 @@ export declare const statusVariant: {
|
|
|
30
30
|
readonly waiting: 'notice';
|
|
31
31
|
readonly error: 'negative';
|
|
32
32
|
};
|
|
33
|
+
export declare const statusLabel: Record<AgentStatus, string>;
|
|
33
34
|
export declare function percent(fill: number): string;
|
|
34
|
-
export declare function
|
|
35
|
+
export declare function meterVariant(value: number): 'informative' | 'notice' | 'negative';
|
|
36
|
+
export declare function statusLight(status: AgentStatus): TemplateResult;
|
|
35
37
|
export declare const shared: import("lit").CSSResult;
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
+
import '@adobe/spectrum-wc/components/badge/swc-badge.js';
|
|
2
|
+
import '@adobe/spectrum-wc/components/button/swc-button.js';
|
|
3
|
+
import '@adobe/spectrum-wc/components/close-button/swc-close-button.js';
|
|
4
|
+
import '@adobe/spectrum-wc/components/progress-circle/swc-progress-circle.js';
|
|
5
|
+
import '@adobe/spectrum-wc/components/status-light/swc-status-light.js';
|
|
1
6
|
import { type TemplateResult } from 'lit';
|
|
2
7
|
import type { SliccModel } from '../model/types.js';
|
|
3
8
|
import { ModelElement } from './base.js';
|
|
4
9
|
export declare function normalize(input: string): string;
|
|
10
|
+
export declare function host(url: string): string;
|
|
11
|
+
export declare const refresh = 10000;
|
|
5
12
|
export declare class SliccBrowser extends ModelElement {
|
|
6
13
|
#private;
|
|
7
14
|
static properties: {
|
|
8
15
|
model: {
|
|
9
16
|
attribute: boolean;
|
|
10
17
|
};
|
|
11
|
-
shot: {
|
|
12
|
-
state: boolean;
|
|
13
|
-
};
|
|
14
18
|
address: {
|
|
15
19
|
state: boolean;
|
|
16
20
|
};
|
|
17
21
|
};
|
|
18
|
-
shot: string;
|
|
19
22
|
address: string;
|
|
20
23
|
constructor();
|
|
21
|
-
static styles: import("lit").CSSResult
|
|
24
|
+
static styles: import("lit").CSSResult;
|
|
22
25
|
protected subscribe(model: SliccModel): Array<() => void>;
|
|
23
26
|
focus(): void;
|
|
24
27
|
render(): TemplateResult;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PanelParams, SliccDock } from '../components/dock.js';
|
|
2
|
-
import type { SliccModel, Sprinkle } from '../model/types.js';
|
|
2
|
+
import type { SliccModel, Sprinkle, TerminalInfo } from '../model/types.js';
|
|
3
3
|
export type Direction = 'left' | 'right' | 'above' | 'below' | 'within';
|
|
4
4
|
export type Side = 'left' | 'center' | 'right';
|
|
5
5
|
export type ScreenClass = 'phone' | 'tablet' | 'desktop';
|
|
@@ -40,10 +40,15 @@ export declare function openChat(dock: SliccDock, agent: {
|
|
|
40
40
|
name: string;
|
|
41
41
|
}, screen: ScreenClass, focus?: boolean, reveal?: boolean): string;
|
|
42
42
|
export declare function openDocument(dock: SliccDock, kind: DocumentKind, path: string, screen: ScreenClass): string;
|
|
43
|
+
export declare function terminalPanel(terminal: string): string;
|
|
44
|
+
export declare function terminalOf(id: string | null | undefined): string | null;
|
|
45
|
+
export declare function terminalPanels(dock: SliccDock): string[];
|
|
46
|
+
export declare function terminalTitle(info: TerminalInfo): string;
|
|
47
|
+
export declare function openTerminal(dock: SliccDock, info: TerminalInfo, screen: ScreenClass): string;
|
|
43
48
|
export declare function defaultLayout(dock: SliccDock, screen: ScreenClass, agent: {
|
|
44
49
|
id: string;
|
|
45
50
|
name: string;
|
|
46
|
-
} | null, items?: readonly Surface[]): void;
|
|
51
|
+
} | null, items?: readonly Surface[], terminals?: readonly TerminalInfo[]): void;
|
|
47
52
|
export declare function closed(dock: SliccDock, items?: readonly Surface[]): Surface[];
|
|
48
53
|
export declare function sprinkleSurface(sprinkle: Sprinkle): Surface;
|
|
49
54
|
export declare function dropPlacement(panel: string | null, position: string): Placement | null;
|
|
@@ -9,12 +9,19 @@ import '@spectrum-web-components/badge/sp-badge.js';
|
|
|
9
9
|
import '@spectrum-web-components/button/sp-button.js';
|
|
10
10
|
import '@spectrum-web-components/menu/sp-menu.js';
|
|
11
11
|
import '@spectrum-web-components/menu/sp-menu-divider.js';
|
|
12
|
+
import '@spectrum-web-components/menu/sp-menu-group.js';
|
|
12
13
|
import '@spectrum-web-components/menu/sp-menu-item.js';
|
|
13
14
|
import '@spectrum-web-components/picker/sp-picker.js';
|
|
14
15
|
import '@spectrum-web-components/progress-circle/sp-progress-circle.js';
|
|
15
16
|
import '@spectrum-web-components/search/sp-search.js';
|
|
16
17
|
import '@spectrum-web-components/switch/sp-switch.js';
|
|
17
18
|
import '@spectrum-web-components/textfield/sp-textfield.js';
|
|
19
|
+
import '@adobe/spectrum-wc/components/action-button/swc-action-button.js';
|
|
20
|
+
import '@adobe/spectrum-wc/components/badge/swc-badge.js';
|
|
21
|
+
import '@adobe/spectrum-wc/components/meter/swc-meter.js';
|
|
22
|
+
import '@adobe/spectrum-wc/components/popover/swc-popover.js';
|
|
23
|
+
import '@adobe/spectrum-wc/components/status-light/swc-status-light.js';
|
|
24
|
+
import '@adobe/spectrum-wc/components/tooltip/swc-tooltip.js';
|
|
18
25
|
import '@adobe/spectrum-wc-icons/swc-icon-chat.js';
|
|
19
26
|
import '@adobe/spectrum-wc-icons/swc-icon-add.js';
|
|
20
27
|
import '@adobe/spectrum-wc-icons/swc-icon-checkmark.js';
|
|
@@ -32,6 +39,7 @@ import '@adobe/spectrum-wc-icons/swc-icon-globe-grid.js';
|
|
|
32
39
|
import '@adobe/spectrum-wc-icons/swc-icon-code.js';
|
|
33
40
|
import '@adobe/spectrum-wc-icons/swc-icon-folder.js';
|
|
34
41
|
import '@adobe/spectrum-wc-icons/swc-icon-microphone.js';
|
|
42
|
+
import '@adobe/spectrum-wc-icons/swc-icon-more.js';
|
|
35
43
|
import '@adobe/spectrum-wc-icons/swc-icon-refresh.js';
|
|
36
44
|
import '@adobe/spectrum-wc-icons/swc-icon-revert.js';
|
|
37
45
|
import '@adobe/spectrum-wc-icons/swc-icon-send.js';
|
|
@@ -1,25 +1,36 @@
|
|
|
1
|
+
import '@adobe/spectrum-wc/components/action-button/swc-action-button.js';
|
|
1
2
|
import { type TemplateResult } from 'lit';
|
|
2
|
-
import type {
|
|
3
|
+
import type { TerminalBackend } from '../backend.js';
|
|
4
|
+
import type { SliccDock } from '../components/dock.js';
|
|
5
|
+
import type { SliccModel, TerminalPort } from '../model/types.js';
|
|
6
|
+
import type { SliccTerminal } from '../slicc-terminal.js';
|
|
3
7
|
import { ThemedElement } from './base.js';
|
|
8
|
+
import { type ScreenClass } from './panels.js';
|
|
4
9
|
export declare function deepActive(root: Document | ShadowRoot): HTMLElement | null;
|
|
5
|
-
export declare
|
|
10
|
+
export declare const scrollback: number;
|
|
11
|
+
export declare function keep(port: TerminalPort, id: string): TerminalBackend;
|
|
12
|
+
export declare class SliccTerminalPanel extends ThemedElement {
|
|
6
13
|
#private;
|
|
7
14
|
static properties: {
|
|
8
15
|
model: {
|
|
9
16
|
attribute: boolean;
|
|
10
17
|
};
|
|
11
|
-
|
|
12
|
-
state: boolean;
|
|
13
|
-
};
|
|
18
|
+
terminal: {};
|
|
14
19
|
};
|
|
15
|
-
|
|
20
|
+
terminal: string;
|
|
16
21
|
constructor();
|
|
17
22
|
static styles: import("lit").CSSResult[];
|
|
18
23
|
protected subscribe(model: SliccModel): Array<() => void>;
|
|
19
24
|
focus(): void;
|
|
20
|
-
|
|
21
|
-
add(): void;
|
|
22
|
-
close(id: string): void;
|
|
25
|
+
get screen(): SliccTerminal | null;
|
|
23
26
|
protected updated(): void;
|
|
24
27
|
render(): TemplateResult;
|
|
25
28
|
}
|
|
29
|
+
export declare class TerminalPanels {
|
|
30
|
+
#private;
|
|
31
|
+
attach(dock: SliccDock, port: () => TerminalPort | undefined, screen: () => ScreenClass): void;
|
|
32
|
+
activated(id: string | null): void;
|
|
33
|
+
sync(dock: SliccDock, port: TerminalPort, screen: ScreenClass): void;
|
|
34
|
+
show(dock: SliccDock, port: TerminalPort, screen: ScreenClass): void;
|
|
35
|
+
create(dock: SliccDock, port: TerminalPort, screen: ScreenClass): void;
|
|
36
|
+
}
|
package/dist/types/app/tray.d.ts
CHANGED
|
@@ -2,20 +2,17 @@ import { type TemplateResult } from 'lit';
|
|
|
2
2
|
import type { SliccModel, TrayConnection } from '../model/types.js';
|
|
3
3
|
import { ModelElement } from './base.js';
|
|
4
4
|
export declare const connectionVariant: Record<TrayConnection, string>;
|
|
5
|
+
export declare const connectionLabel: Record<TrayConnection, string>;
|
|
5
6
|
export declare class SliccTray extends ModelElement {
|
|
6
7
|
#private;
|
|
7
8
|
static properties: {
|
|
8
9
|
model: {
|
|
9
10
|
attribute: boolean;
|
|
10
11
|
};
|
|
11
|
-
open: {
|
|
12
|
-
state: boolean;
|
|
13
|
-
};
|
|
14
12
|
copied: {
|
|
15
13
|
state: boolean;
|
|
16
14
|
};
|
|
17
15
|
};
|
|
18
|
-
open: boolean;
|
|
19
16
|
copied: boolean;
|
|
20
17
|
constructor();
|
|
21
18
|
static styles: import("lit").CSSResult[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-spectrum",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.22.0",
|
|
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",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@adobe/spectrum-wc": "2.0.0-beta.4",
|
|
74
74
|
"@adobe/spectrum-wc-icons": "2.0.0-beta.4",
|
|
75
75
|
"@ai-ecoverse/slicc-kernel": "1.16.0",
|
|
76
|
-
"@ai-ecoverse/slicc-shared-web": "1.
|
|
76
|
+
"@ai-ecoverse/slicc-shared-web": "1.8.0",
|
|
77
77
|
"@ai-ecoverse/wasm-bash": "5.3.0-7",
|
|
78
78
|
"@ai-ecoverse/wasm-coreutils": "9.7.0-3",
|
|
79
79
|
"@biomejs/biome": "2.5.15",
|