@eclipse-docks/extension-canvas 0.8.1 → 0.8.3

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.
@@ -0,0 +1,132 @@
1
+ ---
2
+ name: eclipse-docks-core
3
+ description: >-
4
+ Eclipse Docks core runtime from docks/core: workspace files, editors, commands,
5
+ contributions, dialogs, toasts, settings, and events. Use when a canvas or
6
+ extension needs to open files, register UI, run commands, or talk to the shell.
7
+ ---
8
+
9
+ # Eclipse Docks core (`docks/core`)
10
+
11
+ ```js
12
+ import {
13
+ workspaceService,
14
+ File,
15
+ editorRegistry,
16
+ commandRegistry,
17
+ registerAll,
18
+ contributionRegistry,
19
+ publish,
20
+ subscribe,
21
+ unsubscribe,
22
+ appSettings,
23
+ toastInfo,
24
+ toastError,
25
+ confirmDialog,
26
+ promptDialog,
27
+ filebrowserDialog,
28
+ } from "docks/core";
29
+ ```
30
+
31
+ Alias: `@eclipse-docks/core`. Subpaths map to the same bridges, e.g. `docks/core/parts`, `docks/core/widgets`, `docks/core/externals/lit`.
32
+
33
+ ## Workspace
34
+
35
+ ```js
36
+ const workspace = workspaceService.getWorkspaceSync() ?? await workspaceService.getWorkspace();
37
+ const resource = await workspace.getResource("folder/note.md");
38
+ if (resource instanceof File) {
39
+ const text = await resource.getContents();
40
+ await resource.saveContents(text);
41
+ }
42
+ ```
43
+
44
+ - Paths are workspace-relative (root-prefixed in the composite workspace).
45
+ - Create with `getResource(path, { create: true })` when the API allows.
46
+ - Canvases can also open a path via `this.canvasHost.openFile(path)` without importing core.
47
+
48
+ ## Editors
49
+
50
+ ```js
51
+ await editorRegistry.loadEditor(file); // default handler
52
+ await editorRegistry.loadEditor(file, "system.canvas-editor");
53
+ ```
54
+
55
+ `EditorInput` objects carry `title`, `key`, `data`, `component`, optional `state`. Prefer opening a `File` when one exists.
56
+
57
+ ## Commands
58
+
59
+ ```js
60
+ registerAll({
61
+ command: {
62
+ id: "demo.ping",
63
+ name: "Ping",
64
+ description: "Demo command",
65
+ parameters: [],
66
+ },
67
+ handler: {
68
+ execute: async () => "pong",
69
+ },
70
+ });
71
+
72
+ await commandRegistry.execute("demo.ping", {});
73
+ ```
74
+
75
+ Commands registered this way can surface as AI tools when the cognitive runtime refreshes command tools.
76
+
77
+ ## Contributions
78
+
79
+ ```js
80
+ import { SIDEBAR_MAIN, TOOLBAR_MAIN_RIGHT } from "docks/core";
81
+
82
+ contributionRegistry.registerContribution(SIDEBAR_MAIN, {
83
+ name: "demo.view",
84
+ label: "Demo",
85
+ icon: "star",
86
+ component: (id) => /* Lit html template for the view */ null,
87
+ });
88
+ ```
89
+
90
+ Common slots: sidebars, panel bottom, toolbars, settings. Canvas modules contributed by extensions use `system.canvases` (`SYSTEM_CANVASES` from `@eclipse-docks/extension-canvas/contribution`) with a `load()` that returns `{ default: CustomElementConstructor }`.
91
+
92
+ ## Dialogs & toasts
93
+
94
+ ```js
95
+ const ok = await confirmDialog("Replace file?");
96
+ const name = await promptDialog("Name?");
97
+ toastInfo("Saved");
98
+ toastError("Failed");
99
+ ```
100
+
101
+ `filebrowserDialog` for folder/file picks; `formDialog` for multi-field forms. Prefer these over ad-hoc `window.prompt` in shell-integrated code.
102
+
103
+ ## Settings & events
104
+
105
+ ```js
106
+ await appSettings.set("demo.flag", true);
107
+ const flag = await appSettings.get("demo.flag");
108
+
109
+ const id = subscribe("topic.name", (event) => { /* … */ });
110
+ publish("topic.name", { detail: 1 });
111
+ unsubscribe(id);
112
+ ```
113
+
114
+ ## Logging
115
+
116
+ ```js
117
+ import { createLogger } from "docks/core";
118
+ const log = createLogger("demo");
119
+ log.info("ready");
120
+ ```
121
+
122
+ ## Canvas notes
123
+
124
+ - Host persistence for a workspace `.canvas.js` is `canvasHost.getState` / `setState`, not `appSettings`, unless you intentionally share app-wide settings.
125
+ - Cross-origin loads follow the canvas skill: CORS plus `Access-Control-Allow-Origin`, or `Cross-Origin-Resource-Policy: cross-origin`. An iframe `srcdoc` does not opt out.
126
+ - Keep UI building blocks on `docks/lit` + `docks/webawesome`; use `docks/core` for shell integration.
127
+
128
+ ## Anti-patterns
129
+
130
+ - Bare filenames at the composite workspace root when a durable root prefix is required
131
+ - Assuming `canvasHost` APIs exist on arbitrary LitElements outside a canvas mount
132
+ - Re-implementing toast/dialog with `alert` when core helpers are available
@@ -0,0 +1,68 @@
1
+ ---
2
+ name: eclipse-docks-lit
3
+ description: >-
4
+ LitElement patterns for Eclipse Docks canvases and UI code via docks/lit.
5
+ Use when writing or fixing .canvas.js, Lit templates, reactive properties,
6
+ directives, or styles — pure JavaScript only (no TypeScript decorators).
7
+ ---
8
+
9
+ # Eclipse Docks Lit (`docks/lit`)
10
+
11
+ Import from `docks/lit` (same module as `@eclipse-docks/core/externals/lit`). In `.canvas.js` files use **pure JavaScript only** — no TypeScript, no decorators (`@property`, `@state`, `@customElement` are unavailable).
12
+
13
+ ## Essentials
14
+
15
+ ```js
16
+ import { LitElement, html, css, nothing } from "docks/lit";
17
+ ```
18
+
19
+ - Default-export a `LitElement` subclass for canvases. Do **not** call `customElements.define` in a canvas — the host registers the tag.
20
+ - Reactive fields: `static properties = { count: { state: true }, label: { type: String } }`.
21
+ - Initialize defaults in `constructor` after `super()`.
22
+ - Styles: `static styles = css\`:host { display: block; }\`;` (or an array of `css` results).
23
+ - Templates: `render() { return html\`...\`; }` — use `nothing` for empty branches.
24
+
25
+ ## Property options (common)
26
+
27
+ | Option | Meaning |
28
+ | --- | --- |
29
+ | `state: true` | Internal reactive state (not an attribute) |
30
+ | `type: String` / `Number` / `Boolean` / `Object` / `Array` | Attribute reflection helpers |
31
+ | `attribute: false` | Do not mirror to an attribute |
32
+ | `reflect: true` | Reflect property → attribute |
33
+
34
+ Assign **new** values for objects/arrays (`this.items = [...this.items, next]`), do not mutate in place if you need an update.
35
+
36
+ ## Directives
37
+
38
+ Named exports from `docks/lit` (also available as in Lit docs):
39
+
40
+ ```js
41
+ import { repeat, when, classMap, styleMap, ifDefined, live, ref, keyed } from "docks/lit";
42
+ ```
43
+
44
+ - `repeat(items, (i) => i.id, (i) => html\`...\`)` for keyed lists
45
+ - `when(cond, () => html\`...\`)` / `nothing` for conditionals
46
+ - `classMap({ active: isOn })`, `styleMap({ width: "1rem" })`
47
+ - `live(value)` when binding to form controls that can diverge from the property
48
+ - Prefer `.value=${x}` (property) over `value=${x}` (attribute) for form controls
49
+
50
+ ## Events in templates
51
+
52
+ ```js
53
+ html`<wa-button @click=${this.onSave}>Save</wa-button>`
54
+ html`<wa-input @wa-input=${(e) => { this.q = e.target.value; }}></wa-input>`
55
+ ```
56
+
57
+ Use arrow functions or bound methods so `this` stays the element.
58
+
59
+ ## Signals (optional)
60
+
61
+ `docks/lit` also re-exports `@lit-labs/signals` helpers: `signal`, `computed`, `watch`, `SignalWatcher`, `withWatch`. Prefer `static properties` for simple canvas state unless you already use signals.
62
+
63
+ ## Anti-patterns
64
+
65
+ - Decorators or `.ts` syntax in `.canvas.js`
66
+ - Mutating arrays/objects in place without reassignment
67
+ - Relying on `this` inside a non-arrow inline handler incorrectly
68
+ - Calling `customElements.define` from a workspace canvas module
@@ -0,0 +1,151 @@
1
+ ---
2
+ name: eclipse-docks-webawesome
3
+ description: >-
4
+ Web Awesome UI components in Eclipse Docks via docks/webawesome. Use when
5
+ building buttons, inputs, selects, checkboxes, dialogs, drawers, tabs, toasts,
6
+ forms, icons, or layout utilities (wa-stack, wa-cluster, wa-grid) in canvases
7
+ or Docks UI.
8
+ ---
9
+
10
+ # Eclipse Docks Web Awesome (`docks/webawesome`)
11
+
12
+ Side-effect import once — Docks already registers components, themes, and the `docks` icon library:
13
+
14
+ ```js
15
+ import "docks/webawesome";
16
+ ```
17
+
18
+ Do **not** import individual `@awesome.me/webawesome/dist/components/...` paths from a canvas; the bridge loads the set used by the app. Always use **closing tags** (`<wa-input></wa-input>`, never `<wa-input />`).
19
+
20
+ ## Official agent skills (direct URLs)
21
+
22
+ Docs overview: https://webawesome.com/docs/ai/agent-skills
23
+
24
+ When you need exact props/events/slots, layout, or theming beyond this cheat sheet, `fetch` these markdown URLs directly (do not scrape the HTML docs page):
25
+
26
+ **Component skill**
27
+
28
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome/SKILL.md
29
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome/references/choosing-components.md
30
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome/references/usage.md
31
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome/references/form-controls.md
32
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome/references/themes.md
33
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome/references/tokens/color.md
34
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome/references/utilities/layout.md
35
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome/references/utilities/color.md
36
+
37
+ **Common component APIs** (`wa-*` → same stem)
38
+
39
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome/references/components/button.md
40
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome/references/components/input.md
41
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome/references/components/textarea.md
42
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome/references/components/checkbox.md
43
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome/references/components/switch.md
44
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome/references/components/select.md
45
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome/references/components/option.md
46
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome/references/components/radio-group.md
47
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome/references/components/dialog.md
48
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome/references/components/drawer.md
49
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome/references/components/dropdown.md
50
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome/references/components/tab-group.md
51
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome/references/components/card.md
52
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome/references/components/callout.md
53
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome/references/components/icon.md
54
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome/references/components/toast.md
55
+
56
+ Other components: `https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome/references/components/<name>.md` (e.g. `number-input`, `slider`, `tooltip`).
57
+
58
+ **Design skill**
59
+
60
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome-design/SKILL.md
61
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome-design/references/getting-started.md
62
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome-design/references/layouts-page.md
63
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome-design/references/layouts-inpage.md
64
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome-design/references/composition.md
65
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome-design/references/patterns.md
66
+ - https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@3/dist/skills/webawesome-design/references/theming.md
67
+
68
+ Fetch only the URLs needed for the current task. Prefer these over inventing `wa-*` APIs.
69
+
70
+ ## Lit bindings
71
+
72
+ ```js
73
+ html`
74
+ <wa-input
75
+ label="Name"
76
+ .value=${this.name}
77
+ @wa-input=${(e) => { this.name = e.target.value; }}
78
+ ></wa-input>
79
+ <wa-button variant="brand" @click=${() => this.save()}>Save</wa-button>
80
+ `
81
+ ```
82
+
83
+ - Prefer property binding (`.value`, `.checked`) over attributes for controlled values.
84
+ - Listen to Web Awesome events (`wa-input`, `wa-change`, `wa-select`, …), not only native `input`/`change`, when the component documents `wa-*` events.
85
+ - Slots: `<wa-icon slot="start" name="plus"></wa-icon>` inside buttons/inputs.
86
+
87
+ ## Icons
88
+
89
+ ```html
90
+ <wa-icon name="gear"></wa-icon>
91
+ ```
92
+
93
+ Default library is Font Awesome names. Docks also registers library `docks` for app SVGs: `<wa-icon library="docks" name="…"></wa-icon>`.
94
+
95
+ ## Layout utilities
96
+
97
+ Use Web Awesome utility classes in templates/styles when useful: `wa-stack`, `wa-cluster`, `wa-grid`, `wa-flank`, `wa-split`, `wa-gap-s` / `wa-gap-m`, `wa-align-items-center`, etc.
98
+
99
+ ```js
100
+ html`<div class="wa-stack wa-gap-m">${/* children */}</div>`
101
+ ```
102
+
103
+ ## Component cheat sheet (common)
104
+
105
+ | Need | Component |
106
+ | --- | --- |
107
+ | Action | `wa-button`, `wa-button-group`, `wa-copy-button` |
108
+ | Text | `wa-input`, `wa-textarea`, `wa-number-input` |
109
+ | Choice | `wa-checkbox`, `wa-switch`, `wa-radio-group` + `wa-radio`, `wa-select` + `wa-option` |
110
+ | Overlay | `wa-dialog`, `wa-drawer`, `wa-popover`, `wa-tooltip`, `wa-dropdown` + `wa-dropdown-item` |
111
+ | Nav / structure | `wa-tab-group` + `wa-tab` + `wa-tab-panel`, `wa-breadcrumb`, `wa-divider` |
112
+ | Feedback | `wa-callout`, `wa-spinner`, `wa-progress-bar`, `wa-badge`, `wa-tag` |
113
+ | Content | `wa-card`, `wa-details`, `wa-accordion` + `wa-accordion-item`, `wa-markdown` |
114
+ | Toast host | `wa-toast` + `wa-toast-item` (prefer Docks `toastInfo` / `toastError` from `docks/core` when available) |
115
+
116
+ Pick **`wa-select`** for form values; pick **`wa-dropdown`** for action menus — do not confuse them.
117
+
118
+ ## Theming & color tokens
119
+
120
+ Components follow the loaded Web Awesome theme (Docks imports default theme CSS). Prefer `variant`, `appearance`, and `size` on components before custom CSS.
121
+
122
+ **Prefer Web Awesome color tokens over custom colors** (`#hex`, `rgb()`, named colors). Tokens track light/dark and palette changes; hardcoded colors do not.
123
+
124
+ Use semantic / theme tokens first:
125
+
126
+ - Surfaces & text: `var(--wa-color-surface-default)`, `var(--wa-color-surface-raised)`, `var(--wa-color-surface-border)`, `var(--wa-color-text-normal)`, `var(--wa-color-text-quiet)`, `var(--wa-color-text-link)`
127
+ - Variants: `var(--wa-color-brand-fill-loud)`, `var(--wa-color-success-fill-normal)`, `var(--wa-color-warning-on-loud)`, `var(--wa-color-danger-border-normal)`, …
128
+ - Utility classes when enough: `wa-color-brand`, `wa-bg-surface-raised`, etc. (see utilities/color.md)
129
+
130
+ Reserve raw palette tints (`--wa-color-blue-50`, …) for rare cases. For deeper theming, `fetch` `tokens/color.md` and `webawesome-design/references/theming.md`.
131
+
132
+ ```js
133
+ static styles = css`
134
+ :host {
135
+ display: block;
136
+ color: var(--wa-color-text-normal);
137
+ background: var(--wa-color-surface-default);
138
+ border: 1px solid var(--wa-color-surface-border);
139
+ }
140
+ .accent { color: var(--wa-color-brand-on-quiet); }
141
+ `;
142
+ ```
143
+
144
+ ## Anti-patterns
145
+
146
+ - Self-closing custom elements
147
+ - Per-component package imports inside `.canvas.js`
148
+ - Using `wa-dropdown` where a form `wa-select` is required
149
+ - Hardcoded colors in CSS/templates instead of `--wa-*` color tokens
150
+ - Hand-rolled `<button>`, `<input>`, or checkbox chrome, or a hardcoded color palette, when `wa-*` and `--wa-color-*` tokens cover it
151
+ - Loading a cross-origin image, style, or script as no-cors when the host omits CORP — request it as CORS (see canvas skill); keep `wa-*` on the host element. A widget stylesheet added to `document.head` does not apply inside the canvas shadow root — adopt it there (see canvas skill)
package/dist/help.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export declare const CANVAS_HELP = "A canvas is a workspace file ending in .canvas.js. Extend LitElement, not HTMLElement:\n\nimport { LitElement, html } from \"docks/lit\";\nimport \"docks/webawesome\";\nexport default class extends LitElement {\n render() { return html`<wa-button>Ready</wa-button>`; }\n}\n\nThe host defines the custom element. Do not call customElements.define. Set state with this.canvasHost.getState(key, fallback) and this.canvasHost.setState(key, value). Open a workspace file with this.canvasHost.openFile(path).\n\nImports are not filtered. docks/lit, docks/webawesome, and docks/core are the running app (Lit, Web Awesome, and @eclipse-docks/core). Relative imports are workspace files. Compiling inlines those files: JSON becomes its value, text and CSS become strings, and other binaries become data URLs.\n\nWrite the file with the workspace tools, then call canvas.open with its path. canvas.apply_source updates the open canvas and returns ready or the compile error. Extension canvases are registered with contributionRegistry.registerContribution(SYSTEM_CANVASES, contribution). Import SYSTEM_CANVASES and CanvasContribution from @eclipse-docks/extension-canvas/contribution. They are opened by name from canvas.open or the toolbar dropdown.";
2
- export declare const CANVAS_SKILL = "For a durable interactive view, write a workspace file ending in .canvas.js whose default export extends LitElement from \"docks/lit\". Do not extend HTMLElement. Call canvas.open, and call canvas.help for the module contract. Extension canvases registered on system.canvases open by name.";
3
- //# sourceMappingURL=help.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../src/help.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,8tCAY8Z,CAAC;AAEvb,eAAO,MAAM,YAAY,sSAAoS,CAAC"}
package/dist/help.js DELETED
@@ -1,19 +0,0 @@
1
- //#region src/help.ts
2
- var CANVAS_HELP = `A canvas is a workspace file ending in .canvas.js. Extend LitElement, not HTMLElement:
3
-
4
- import { LitElement, html } from "docks/lit";
5
- import "docks/webawesome";
6
- export default class extends LitElement {
7
- render() { return html\`<wa-button>Ready</wa-button>\`; }
8
- }
9
-
10
- The host defines the custom element. Do not call customElements.define. Set state with this.canvasHost.getState(key, fallback) and this.canvasHost.setState(key, value). Open a workspace file with this.canvasHost.openFile(path).
11
-
12
- Imports are not filtered. docks/lit, docks/webawesome, and docks/core are the running app (Lit, Web Awesome, and @eclipse-docks/core). Relative imports are workspace files. Compiling inlines those files: JSON becomes its value, text and CSS become strings, and other binaries become data URLs.
13
-
14
- Write the file with the workspace tools, then call canvas.open with its path. canvas.apply_source updates the open canvas and returns ready or the compile error. Extension canvases are registered with contributionRegistry.registerContribution(SYSTEM_CANVASES, contribution). Import SYSTEM_CANVASES and CanvasContribution from @eclipse-docks/extension-canvas/contribution. They are opened by name from canvas.open or the toolbar dropdown.`;
15
- var CANVAS_SKILL = `For a durable interactive view, write a workspace file ending in .canvas.js whose default export extends LitElement from "docks/lit". Do not extend HTMLElement. Call canvas.open, and call canvas.help for the module contract. Extension canvases registered on system.canvases open by name.`;
16
- //#endregion
17
- export { CANVAS_HELP, CANVAS_SKILL };
18
-
19
- //# sourceMappingURL=help.js.map
package/dist/help.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"help.js","names":[],"sources":["../src/help.ts"],"sourcesContent":["export const CANVAS_HELP = `A canvas is a workspace file ending in .canvas.js. Extend LitElement, not HTMLElement:\n\nimport { LitElement, html } from \"docks/lit\";\nimport \"docks/webawesome\";\nexport default class extends LitElement {\n render() { return html\\`<wa-button>Ready</wa-button>\\`; }\n}\n\nThe host defines the custom element. Do not call customElements.define. Set state with this.canvasHost.getState(key, fallback) and this.canvasHost.setState(key, value). Open a workspace file with this.canvasHost.openFile(path).\n\nImports are not filtered. docks/lit, docks/webawesome, and docks/core are the running app (Lit, Web Awesome, and @eclipse-docks/core). Relative imports are workspace files. Compiling inlines those files: JSON becomes its value, text and CSS become strings, and other binaries become data URLs.\n\nWrite the file with the workspace tools, then call canvas.open with its path. canvas.apply_source updates the open canvas and returns ready or the compile error. Extension canvases are registered with contributionRegistry.registerContribution(SYSTEM_CANVASES, contribution). Import SYSTEM_CANVASES and CanvasContribution from @eclipse-docks/extension-canvas/contribution. They are opened by name from canvas.open or the toolbar dropdown.`;\n\nexport const CANVAS_SKILL = `For a durable interactive view, write a workspace file ending in .canvas.js whose default export extends LitElement from \"docks/lit\". Do not extend HTMLElement. Call canvas.open, and call canvas.help for the module contract. Extension canvases registered on system.canvases open by name.`;\n"],"mappings":";AAAA,IAAa,cAAc;;;;;;;;;;;;;AAc3B,IAAa,eAAe"}