@alchymia/canvas 1.0.0 → 1.0.1
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/README.md +4 -0
- package/dist/drawer.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,6 +10,10 @@ Import the Vue 2 drawer from `@alchymia/canvas/vue2`. The existing Butla entry p
|
|
|
10
10
|
|
|
11
11
|
Import `mountCanvas` from `@alchymia/canvas/browser`. Pass a DOM element, drawer props, the authorised Canvas API adapter and the original drawer event handlers. The package runs Vue 2 inside the editor frame and loads the same shared styles as Butla. The host can use Vue 3.
|
|
12
12
|
|
|
13
|
+
Set `host.$auth.user.config.ai.name` to the active workspace's assistant name. The toolbar, task menus and linked documents read this same value. Personal Butla uses the signed-in user's assistant name and defaults to Butla.
|
|
14
|
+
|
|
15
|
+
When a workspace task opens Ask, the `workspace-ask` event includes its `canvasId`, `taskId` and draft `prompt`. For linked work, `canvasId` identifies the linked document.
|
|
16
|
+
|
|
13
17
|
Await `ready` before using the editor. Await `flushForNavigation()` before changing records or leaving the route. A false result keeps the editor open for recovery. Call `destroy()` when the host unmounts.
|
|
14
18
|
|
|
15
19
|
## Building a release
|