@ai-ecoverse/slicc-spectrum 1.5.0 → 1.6.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.
@@ -2,6 +2,7 @@ import { type TemplateResult } from 'lit';
2
2
  import type { SliccDock } from '../components/dock.js';
3
3
  import type { SliccModel } from '../model/types.js';
4
4
  import { ThemedElement } from './base.js';
5
+ import { Dips } from './dips.js';
5
6
  import { type DocumentKind, type ScreenClass, type Surface } from './panels.js';
6
7
  export declare class SliccApp extends ThemedElement {
7
8
  #private;
@@ -20,6 +21,7 @@ export declare class SliccApp extends ThemedElement {
20
21
  surfaces: readonly Surface[];
21
22
  storage: Storage | null;
22
23
  layoutKey: string;
24
+ readonly dips: Dips;
23
25
  constructor();
24
26
  static styles: import("lit").CSSResult[];
25
27
  get dock(): SliccDock;
@@ -3,6 +3,14 @@ import type { SliccModel } from '../model/types.js';
3
3
  import { ThemedElement } from './base.js';
4
4
  export declare class SliccChat extends ThemedElement {
5
5
  #private;
6
+ static properties: {
7
+ model: {
8
+ attribute: boolean;
9
+ };
10
+ agent: {};
11
+ };
12
+ agent: string;
13
+ constructor();
6
14
  static styles: import("lit").CSSResult[];
7
15
  protected subscribe(model: SliccModel): Array<() => void>;
8
16
  protected firstUpdated(): void;
@@ -1,4 +1,4 @@
1
- import { type TemplateResult } from 'lit';
1
+ import { type PropertyValues, type TemplateResult } from 'lit';
2
2
  import type { Attachment, SendMode, SliccModel } from '../model/types.js';
3
3
  import { ModelElement } from './base.js';
4
4
  export declare const limit: number;
@@ -47,13 +47,16 @@ export declare class SliccComposer extends ModelElement {
47
47
  dictating: {
48
48
  state: boolean;
49
49
  };
50
+ agent: {};
50
51
  };
51
52
  value: string;
52
53
  attachments: Attachment[];
53
54
  popup: Popup | null;
54
55
  dictating: boolean;
56
+ agent: string;
55
57
  constructor();
56
58
  static styles: import("lit").CSSResult[];
59
+ protected willUpdate(changed: PropertyValues<this>): void;
57
60
  protected subscribe(model: SliccModel): Array<() => void>;
58
61
  focus(): void;
59
62
  send(mode?: SendMode): void;
@@ -0,0 +1,13 @@
1
+ import { Emitter } from '../model/emitter.js';
2
+ export declare const dipType = "application/x-slicc-sprinkle";
3
+ export declare class Dips extends Emitter<{
4
+ change: readonly string[];
5
+ }> {
6
+ #private;
7
+ key: string;
8
+ load(storage: Storage | null): void;
9
+ list(): readonly string[];
10
+ has(id: string): boolean;
11
+ detach(id: string): void;
12
+ }
13
+ export declare function dipsOf(node: Node): Dips | null;
@@ -32,8 +32,19 @@ export declare function surface(id: string, items?: readonly Surface[]): Surface
32
32
  export declare function create(tag: string, model: SliccModel, params?: PanelParams): HTMLElement;
33
33
  export declare function placement(dock: SliccDock, side: Side, screen: ScreenClass): Placement;
34
34
  export declare function openSurface(dock: SliccDock, item: Surface, screen: ScreenClass): void;
35
+ export declare function chatId(agentId: string): string;
36
+ export declare function chatAgent(id: string | null | undefined): string | null;
37
+ export declare function chats(dock: SliccDock): string[];
38
+ export declare function openChat(dock: SliccDock, agent: {
39
+ id: string;
40
+ name: string;
41
+ }, screen: ScreenClass, focus?: boolean): string;
35
42
  export declare function openDocument(dock: SliccDock, kind: DocumentKind, path: string, screen: ScreenClass): string;
36
- export declare function defaultLayout(dock: SliccDock, screen: ScreenClass, items?: readonly Surface[]): void;
43
+ export declare function defaultLayout(dock: SliccDock, screen: ScreenClass, agent: {
44
+ id: string;
45
+ name: string;
46
+ } | null, items?: readonly Surface[]): void;
37
47
  export declare function closed(dock: SliccDock, items?: readonly Surface[]): Surface[];
38
48
  export declare function sprinkleSurface(sprinkle: Sprinkle): Surface;
39
- export declare function openSprinkle(dock: SliccDock, sprinkle: Sprinkle, screen: ScreenClass): string;
49
+ export declare function dropPlacement(panel: string | null, position: string): Placement | null;
50
+ export declare function openSprinkle(dock: SliccDock, sprinkle: Sprinkle, screen: ScreenClass, place?: Placement | null): string;
@@ -27,6 +27,7 @@ import '@spectrum-web-components/icons-workflow/icons/sp-icon-data.js';
27
27
  import '@spectrum-web-components/icons-workflow/icons/sp-icon-history.js';
28
28
  import '@spectrum-web-components/icons-workflow/icons/sp-icon-lightbulb.js';
29
29
  import '@spectrum-web-components/icons-workflow/icons/sp-icon-save-floppy.js';
30
+ import '@spectrum-web-components/icons-workflow/icons/sp-icon-open-in.js';
30
31
  import '@spectrum-web-components/icons-workflow/icons/sp-icon-globe-grid.js';
31
32
  import '@spectrum-web-components/icons-workflow/icons/sp-icon-code.js';
32
33
  import '@spectrum-web-components/icons-workflow/icons/sp-icon-folder.js';
@@ -6,12 +6,14 @@ export declare const theme: DockviewTheme;
6
6
  export declare class SliccDock extends HTMLElement {
7
7
  #private;
8
8
  factories: Record<string, PanelFactory>;
9
+ accepts: string[];
9
10
  get api(): DockviewApi;
10
11
  connectedCallback(): void;
11
12
  disconnectedCallback(): void;
12
13
  has(id: string): boolean;
13
14
  content(id: string): HTMLElement | undefined;
14
15
  open(options: AddPanelOptions): IDockviewPanel;
16
+ reveal(id: string): void;
15
17
  close(id: string): void;
16
18
  focusPanel(id: string): void;
17
19
  cycleGroup(delta: number): string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-spectrum",
3
- "version": "1.5.0",
3
+ "version": "1.6.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",
@@ -70,7 +70,7 @@
70
70
  }
71
71
  },
72
72
  "devDependencies": {
73
- "@ai-ecoverse/slicc-kernel": "1.8.2",
73
+ "@ai-ecoverse/slicc-kernel": "1.8.10",
74
74
  "@ai-ecoverse/slicc-shared-web": "1.4.1",
75
75
  "@ai-ecoverse/wasm-bash": "5.3.0-7",
76
76
  "@ai-ecoverse/wasm-coreutils": "9.7.0-3",