Skip to content

Attach prompts, content items, and visual editor elements to AI Assistant Context#26512

Merged
AlexGaillard merged 63 commits intomainfrom
bry/ai-visual-editor-context
Feb 4, 2026
Merged

Attach prompts, content items, and visual editor elements to AI Assistant Context#26512
AlexGaillard merged 63 commits intomainfrom
bry/ai-visual-editor-context

Conversation

@bryantgillespie
Copy link
Member

@bryantgillespie bryantgillespie commented Jan 22, 2026

Scope

What's changed:

  • Add context system for the AI Assistant
  • Ability to attach content items, attach visual editor elements, and reuse MCP AI System Prompts within AI Assistant conversations
  • New AiContextCard component to display context attachment
  • Updated AI endpoint to support context
  • Support for new page context

Potential Risks / Drawbacks

TBD

Tested Scenarios

  • Tested in Chrome and Firefox

Review Notes / Questions

TBD

Checklist

  • Added or updated tests
  • Documentation PR created here

This pull request introduces a new AI Assistant Context system, allowing prompts, content items, and visual editor elements to be attached as context for AI interactions. The changes span API, backend models, prompt formatting, and frontend UI, making context-aware AI responses possible and improving the user experience in the visual editor and chat. The update also refines how item updates are handled in AI tools.

AI Assistant Context Attachments and Context-Aware Prompts:

  • Added new types (ContextAttachment, ChatContext, etc.) to represent prompts, items, and visual elements as context attachments in chat-request.ts. The chat request schema now accepts a context field.
  • Implemented formatContextForSystemPrompt utility to format these attachments and page context for inclusion in the AI system prompt, ensuring the AI receives structured, prioritized context.
  • Updated the AI chat handler and UI stream creation to accept and pass the context field, dynamically appending formatted context to the system prompt for each AI step. [1] [2] [3] [4]

Frontend Visual Improvements:

  • Added a new ai-context-card.vue component for displaying context attachments (items, prompts, visual elements) in the UI, with icons, display text, and removal support.

AI Tools and Prompt Documentation:

  • Updated the items AI tool to allow data to be either an object or array, supporting both single and batch updates, and clarified this in the prompt documentation. [1] [2] [3]

Changelog:

  • Added a changeset entry summarizing the new context attachment functionality for the AI Assistant.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for attaching additional context (prompts, content items, and visual editor selections) to AI Chat requests, and exposes new UI to stage/manage that context from the App and Visual Editor.

Changes:

  • Introduces “context attachments” plumbing end-to-end (App → API request schema → system-prompt formatting).
  • Adds UI for staging prompts/items/visual elements, plus AI sidebar integration in the visual editor and live preview split panel.
  • Refactors AI tooling state into a dedicated store and improves related typings/tests.

Reviewed changes

Copilot reviewed 46 out of 47 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
pnpm-lock.yaml Bumps webidl-conversions to 8.0.1.
packages/ai/src/types.ts Adds shared context attachment types for AI package consumers.
app/src/views/private/components/live-preview.vue Adds optional split-panel sidebar support + new slots/events for sidebar and notifications.
app/src/views/private/components/file-preview.vue Allows overriding preview src instead of always using asset URL.
app/src/views/private/components/file-lightbox.vue Passes through optional src to support non-asset image previews.
app/src/modules/visual/types/index.ts Extends visual editor message protocol for context add + element highlight + stronger types.
app/src/modules/visual/routes/visual-editor.vue Adds AI sidebar/drawer in visual editor, responsive behavior, and header button integration.
app/src/modules/visual/components/editing-layer.vue Adds support for staging visual elements into AI context and highlighting elements from AI UI.
app/src/modules/content/routes/item.vue Refreshes previews on non-read item tool calls and supports staging visual elements from popup.
app/src/lang/translations/en-US.yaml Adds new i18n keys for live preview + AI context menu/staging.
app/src/components/v-form/composables/use-ai-tools.ts Improves tool descriptions to clarify UI-only vs database mutations.
app/src/ai/types/prompts.ts Adds MCP prompt type used by prompt staging.
app/src/ai/types/index.ts Re-exports new AI app types.
app/src/ai/types/context.ts Defines pending context items + type guards for context UI/store.
app/src/ai/stores/use-ai.ts Adds context snapshotting + page context, integrates new tools/context stores, adds highlight/focus hooks.
app/src/ai/stores/use-ai.test.ts Updates tests for refactors/typing changes in AI store.
app/src/ai/stores/use-ai-tools.ts New store to manage system tools, local tools, and approval modes.
app/src/ai/stores/use-ai-tools.test.ts Adds tests for the new AI tools store.
app/src/ai/stores/use-ai-context.ts New store for pending context + snapshotting attachments (incl. fetching current visual element data).
app/src/ai/stores/use-ai-context.test.ts Adds tests for context store behaviors and snapshotting.
app/src/ai/composables/use-search-filter.ts Adds reusable search filtering composable for context menus.
app/src/ai/composables/use-prompts.ts Adds prompt fetching, template variable extraction, rendering, and conversion to chat messages.
app/src/ai/composables/use-prompts.test.ts Adds tests for prompt fetching/rendering/variable extraction.
app/src/ai/composables/use-context-staging.ts Adds staging logic for prompts/items/visual elements into pending context with notifications.
app/src/ai/composables/use-context-staging.test.ts Adds tests for context staging behavior.
app/src/ai/composables/define-tool.ts Moves local tool registration from AI store to tools store.
app/src/ai/composables/define-tool.test.ts Updates mocks/tests to reflect tools store usage.
app/src/ai/components/parts/ai-message-tool.vue Updates typing for tool message parts.
app/src/ai/components/parts/ai-message-file.vue Adds lightbox support for image attachments in AI messages.
app/src/ai/components/ai-settings-menu.vue Adds fallback icon handling for approval preview.
app/src/ai/components/ai-prompt-variables-modal.vue New modal to collect template variables when inserting prompts.
app/src/ai/components/ai-pending-context.vue New UI component to display/removal/hover-highlighting of pending context items.
app/src/ai/components/ai-message.vue Renders context attachments from user message metadata + hover highlight integration.
app/src/ai/components/ai-input.vue Adds context menu + pending context strip and focus hook wiring.
app/src/ai/components/ai-conversation.vue Minor layout updates for conversation container.
app/src/ai/components/ai-context-menu/list-view.vue New reusable list view wrapper for context menu sections.
app/src/ai/components/ai-context-menu/empty-state.vue New empty state list item for context menu lists.
app/src/ai/components/ai-context-menu/context-menu-item.vue New menu item component used across context menu lists.
app/src/ai/components/ai-context-menu.vue New context picker menu for staging prompts and items into AI context.
app/src/ai/components/ai-context-card.vue New pill/card UI for context items/attachments (pending + snapshotted).
api/src/ai/tools/items/prompt.md Updates items tool documentation examples for update payload shape.
api/src/ai/tools/items/index.ts Allows data to be object or array to support both keyed and batch updates.
api/src/ai/chat/utils/format-context.ts New formatter to append attachments/page context to the system prompt.
api/src/ai/chat/models/chat-request.ts Extends request schema with validated context + attachment types.
api/src/ai/chat/lib/create-ui-stream.ts Passes context into prompt assembly per step (via formatter).
api/src/ai/chat/controllers/chat.post.ts Wires context from request into UI stream creation.
.changeset/fresh-doodles-relax.md Adds changeset for minor bumps across ai/api/app packages.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@github-actions

This comment was marked as resolved.

@github-actions

This comment was marked as resolved.

@github-actions

This comment was marked as resolved.

bryantgillespie and others added 4 commits February 2, 2026 21:37
* refactor: replace useVisualEditorAi with useAiSidebar for clarity

* fix: add type annotation for ComputedRef in useAiSidebar function

* fix: add type annotations for sidebarSize and sidebarCollapsed emit events

* add comment

* remove comment (from html)

* changeset: add usage notice for visual editing library
@github-actions

This comment was marked as resolved.

@bryantgillespie
Copy link
Member Author

bryantgillespie commented Feb 4, 2026

Code Review

I found one issue that needs attention:

Context not included in initial AI system prompt File: api/src/ai/chat/lib/create-ui-stream.ts (lines 45-70)

The code computes fullSystemPrompt (which includes context) but uses baseSystemPrompt (without context) on line 52. The prepareStep callback returns fullSystemPrompt, but the comment on lines 61-62 reveals confusion about when context should be applied.

Fix: Change line 52 from system: baseSystemPrompt to system: fullSystemPrompt

This ensures context attachments are properly included from the first AI step.

Reference:

const baseSystemPrompt = systemPrompt || SYSTEM_PROMPT;
const contextBlock = context ? formatContextForSystemPrompt(context) : null;
const providerOptions = getProviderOptions(provider, model, aiSettings);
// Compute the full system prompt once to avoid re-computing on each step
const fullSystemPrompt = contextBlock ? baseSystemPrompt + contextBlock : baseSystemPrompt;
const stream = streamText({
system: baseSystemPrompt,
model: registry.languageModel(`${provider}:${model}`),
messages: await convertToModelMessages(messages),
stopWhen: [stepCountIs(10)],
providerOptions,
tools,
/**
* prepareStep is called before each AI step to prepare the system prompt.
* When context exists, we override the system prompt to include context attachments.
* This allows the initial system prompt to be simple while ensuring all steps
* (including tool continuation steps) receive the full context.
*/
prepareStep: () => {
if (contextBlock) {
return { system: fullSystemPrompt };
}
return {};
},

this can be ignored - due to the AI SDK we need to make sure we modify the system prompt in the onPrepareStep everytime so that it gets the updated context.

Copy link
Contributor

@formfcw formfcw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done @bryantgillespie ❤️

LGTM 🎉

Copy link
Member

@AlexGaillard AlexGaillard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

@AlexGaillard AlexGaillard merged commit 6a05cd7 into main Feb 4, 2026
72 checks passed
@AlexGaillard AlexGaillard deleted the bry/ai-visual-editor-context branch February 4, 2026 14:25
@github-actions github-actions bot added this to the Next Release milestone Feb 4, 2026
alexlebens pushed a commit to alexlebens/infrastructure that referenced this pull request Feb 5, 2026
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [directus/directus](https://github.com/directus/directus) | minor | `11.14.1` → `11.15.0` |

---

### Release Notes

<details>
<summary>directus/directus (directus/directus)</summary>

### [`v11.15.0`](https://github.com/directus/directus/releases/tag/v11.15.0)

[Compare Source](directus/directus@v11.14.1...v11.15.0)

##### ⚠️ Potential Breaking Changes

**Attached prompts, content items, and visual editor elements to AI Assistant Context ([#&#8203;26512](directus/directus#26512) by [@&#8203;bryantgillespie](https://github.com/bryantgillespie))**
To use this feature, update [@&#8203;directus/visual-editing](https://github.com/directus/visual-editing) to v1.2.0+ on your website.

##### ✨ New Features & Improvements

- **[@&#8203;directus/app](https://github.com/directus/app)**
  - Added deployment module for triggering deployments from Directus with Vercel as first supported provider ([#&#8203;26473](directus/directus#26473) by [@&#8203;gaetansenn](https://github.com/gaetansenn))
  - Added collaborative editing ([#&#8203;26172](directus/directus#26172) by [@&#8203;Nitwel](https://github.com/Nitwel))
  - Attached prompts, content items, and visual editor elements to AI Assistant Context ([#&#8203;26512](directus/directus#26512) by [@&#8203;bryantgillespie](https://github.com/bryantgillespie))
  - Added multi-provider AI support with Google and OpenAI-compatible providers. Extracted shared AI types into new `@directus/ai` package. ([#&#8203;26481](directus/directus#26481) by [@&#8203;bryantgillespie](https://github.com/bryantgillespie))
  - Added toggle to allow comparing revision to previous revision ([#&#8203;26480](directus/directus#26480) by [@&#8203;robluton](https://github.com/robluton))
  - Added relational field support on x-axis of bar chart ([#&#8203;26489](directus/directus#26489) by [@&#8203;JamesW1](https://github.com/JamesW1))
  - Added visual editing support to the live preview split pane, including display options menu, full-width mode with drag-to-expand, and quick access to the Visual Editor module. ([#&#8203;26463](directus/directus#26463) by [@&#8203;bryantgillespie](https://github.com/bryantgillespie))
  - Changed permission-blocked fields from disabled to non-editable appearance ([#&#8203;26572](directus/directus#26572) by [@&#8203;HZooly](https://github.com/HZooly))
- **[@&#8203;directus/api](https://github.com/directus/api)**
  - Added deployment module for triggering deployments from Directus with Vercel as first supported provider ([#&#8203;26473](directus/directus#26473) by [@&#8203;gaetansenn](https://github.com/gaetansenn))
  - Added collaborative editing ([#&#8203;26172](directus/directus#26172) by [@&#8203;Nitwel](https://github.com/Nitwel))
  - Attached prompts, content items, and visual editor elements to AI Assistant Context ([#&#8203;26512](directus/directus#26512) by [@&#8203;bryantgillespie](https://github.com/bryantgillespie))
  - Added multi-provider AI support with Google and OpenAI-compatible providers. Extracted shared AI types into new `@directus/ai` package. ([#&#8203;26481](directus/directus#26481) by [@&#8203;bryantgillespie](https://github.com/bryantgillespie))
- **[@&#8203;directus/sdk](https://github.com/directus/sdk)**
  - Fixed race condition and allow accessing the connected state ([#&#8203;26511](directus/directus#26511) by [@&#8203;Nitwel](https://github.com/Nitwel))
  - Added deployment module for triggering deployments from Directus with Vercel as first supported provider ([#&#8203;26473](directus/directus#26473) by [@&#8203;gaetansenn](https://github.com/gaetansenn))
- **[@&#8203;directus/system-data](https://github.com/directus/system-data)**
  - Added deployment module for triggering deployments from Directus with Vercel as first supported provider ([#&#8203;26473](directus/directus#26473) by [@&#8203;gaetansenn](https://github.com/gaetansenn))
- **[@&#8203;directus/types](https://github.com/directus/types)**
  - Added deployment module for triggering deployments from Directus with Vercel as first supported provider ([#&#8203;26473](directus/directus#26473) by [@&#8203;gaetansenn](https://github.com/gaetansenn))
  - Added collaborative editing ([#&#8203;26172](directus/directus#26172) by [@&#8203;Nitwel](https://github.com/Nitwel))
  - Added multi-provider AI support with Google and OpenAI-compatible providers. Extracted shared AI types into new `@directus/ai` package. ([#&#8203;26481](directus/directus#26481) by [@&#8203;bryantgillespie](https://github.com/bryantgillespie))
- **[@&#8203;directus/errors](https://github.com/directus/errors)**
  - Added deployment module for triggering deployments from Directus with Vercel as first supported provider ([#&#8203;26473](directus/directus#26473) by [@&#8203;gaetansenn](https://github.com/gaetansenn))
- **[@&#8203;directus/env](https://github.com/directus/env)**
  - Added deployment module for triggering deployments from Directus with Vercel as first supported provider ([#&#8203;26473](directus/directus#26473) by [@&#8203;gaetansenn](https://github.com/gaetansenn))
  - Added collaborative editing ([#&#8203;26172](directus/directus#26172) by [@&#8203;Nitwel](https://github.com/Nitwel))
- **[@&#8203;directus/utils](https://github.com/directus/utils)**
  - Added collaborative editing ([#&#8203;26172](directus/directus#26172) by [@&#8203;Nitwel](https://github.com/Nitwel))
- **[@&#8203;directus/ai](https://github.com/directus/ai)**
  - Attached prompts, content items, and visual editor elements to AI Assistant Context ([#&#8203;26512](directus/directus#26512) by [@&#8203;bryantgillespie](https://github.com/bryantgillespie))
  - Added multi-provider AI support with Google and OpenAI-compatible providers. Extracted shared AI types into new `@directus/ai` package. ([#&#8203;26481](directus/directus#26481) by [@&#8203;bryantgillespie](https://github.com/bryantgillespie))
- **[@&#8203;directus/memory](https://github.com/directus/memory)**
  - Added distributed locking ([#&#8203;26172](directus/directus#26172) by [@&#8203;Nitwel](https://github.com/Nitwel))

##### 🐛 Bug Fixes & Optimizations

- **[@&#8203;directus/app](https://github.com/directus/app)**
  - Replaced deprecated `ldapjs` with `ldapts` ([#&#8203;26363](directus/directus#26363) by [@&#8203;dstockton](https://github.com/dstockton))
  - Fixed an issue where the caret would jump to the end of the input in `v-template-input` when typing or updating content. ([#&#8203;26520](directus/directus#26520) by [@&#8203;mustafaazad03](https://github.com/mustafaazad03))
  - Fixed back button navigation on related items ([#&#8203;26553](directus/directus#26553) by [@&#8203;robluton](https://github.com/robluton))
  - Fixed table options menu clipping in markdown editor ([#&#8203;26487](directus/directus#26487) by [@&#8203;DamnItAzriel](https://github.com/DamnItAzriel))
  - Hide AI settings page when MCP and AI features are disabled through ENV ([#&#8203;26504](directus/directus#26504) by [@&#8203;bryantgillespie](https://github.com/bryantgillespie))
  - Updated dependency ([#&#8203;26518](directus/directus#26518) by [@&#8203;rijkvanzanten](https://github.com/rijkvanzanten))
  - Fixed inconsistent disabled state across interfaces ([#&#8203;26470](directus/directus#26470) by [@&#8203;formfcw](https://github.com/formfcw))
  - Fixed an issue where custom CSS classes applied to PrivateView were not rendered ([#&#8203;26523](directus/directus#26523) by [@&#8203;u12206050](https://github.com/u12206050))
  - Fixed WYSIWYG interface not rendering when field is named "tooltip" ([#&#8203;26581](directus/directus#26581) by [@&#8203;robluton](https://github.com/robluton))
  - Fixed issue preventing sidebar details from being fetched when navigating back ([#&#8203;26542](directus/directus#26542) by [@&#8203;robluton](https://github.com/robluton))
  - Fixed Vue warning by passing required prop to interfaces ([#&#8203;26506](directus/directus#26506) by [@&#8203;formfcw](https://github.com/formfcw))
  - Fixed hardcoded "Loading..." text in field tree by using translation key ([#&#8203;26526](directus/directus#26526) by [@&#8203;sinan-yildiz-marsus](https://github.com/sinan-yildiz-marsus))
  - Renamed AI Chat to AI Assistant ([#&#8203;26517](directus/directus#26517) by [@&#8203;bryantgillespie](https://github.com/bryantgillespie))
- **[@&#8203;directus/api](https://github.com/directus/api)**
  - Improved error message for system field updates that are not schema.is\_indexed ([#&#8203;26548](directus/directus#26548) by [@&#8203;JamesW1](https://github.com/JamesW1))
  - Replaced deprecated `ldapjs` with `ldapts` ([#&#8203;26363](directus/directus#26363) by [@&#8203;dstockton](https://github.com/dstockton))
  - Changed users.last\_access display mode to absolute ([#&#8203;26548](directus/directus#26548) by [@&#8203;JamesW1](https://github.com/JamesW1))
- **[@&#8203;directus/system-data](https://github.com/directus/system-data)**
  - Added collaborative editing ([#&#8203;26172](directus/directus#26172) by [@&#8203;Nitwel](https://github.com/Nitwel))
  - Added multi-provider AI support with Google and OpenAI-compatible providers. Extracted shared AI types into new `@directus/ai` package. ([#&#8203;26481](directus/directus#26481) by [@&#8203;bryantgillespie](https://github.com/bryantgillespie))
  - Changed users.last\_access display mode to absolute ([#&#8203;26548](directus/directus#26548) by [@&#8203;JamesW1](https://github.com/JamesW1))
  - Renamed AI Chat to AI Assistant ([#&#8203;26517](directus/directus#26517) by [@&#8203;bryantgillespie](https://github.com/bryantgillespie))
- **[@&#8203;directus/env](https://github.com/directus/env)**
  - Fixed LDAP DN properties casted as arrays ([#&#8203;26579](directus/directus#26579) by [@&#8203;ComfortablyCoding](https://github.com/ComfortablyCoding))
- **[@&#8203;directus/memory](https://github.com/directus/memory)**
  - Handled empty buffers to prevent errors during race conditions or disconnects ([#&#8203;26172](directus/directus#26172) by [@&#8203;Nitwel](https://github.com/Nitwel))

##### 📦 Published Versions

- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/storage-driver-s3@&#8203;12.1.1`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`
- `@directus/[email protected]`

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4zLjYiLCJ1cGRhdGVkSW5WZXIiOiI0My4zLjYiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImltYWdlIl19-->

Reviewed-on: https://gitea.alexlebens.dev/alexlebens/infrastructure/pulls/3752
Co-authored-by: Renovate Bot <[email protected]>
Co-committed-by: Renovate Bot <[email protected]>
AlexGaillard pushed a commit that referenced this pull request Feb 18, 2026
…tant Context (#26512)

* wip

* cleanup

* fix: Hide button when AI_ENABLED = false

* wip: add chat to visual editor module

* fix: menu tweaks

* cleanup more

* fix: only refresh if mutation

* merge menu components

* use new menu component

* cleanup more

* add changeset

* cleanup more

* add some tests

* fix: make resize handles visible again

* extract format context to separate util

* fix: items tool prompt causing issues

* fix visual editing notifications route

* refactor out visual elements tool in favor of context plus items tool

* refactor to use visual editor config to handle highligthing

* wip: context for prompts

* Update format-context.ts

Co-authored-by: Copilot <[email protected]>

* Update use-search-filter.ts

Co-authored-by: Copilot <[email protected]>

* Update ai-prompt-variables-modal.vue

Co-authored-by: Copilot <[email protected]>

* remove logging

* more fixes

* formatter

* add some lightweight xml prompt injection protection

* failed to add to context notification

* remove unneeded prop

* appease ai overlords again

* fix tests

* actually fix tests

* changeset past tense

* part of claude code review

* no proxy stores

* more of claudes fixes

* fix claudes composable

* more of claudes fixes

* fix focus

* restore staged context if send message throws

* simplify because nested field updates weren't working

* add v-textoverflow

* move display value to core responsiblity instead of being passed from ve package

* fix test

* show errors on submit

* fix escaping

* Update app/src/lang/translations/en-US.yaml

Co-authored-by: Florian C. Wachmann <[email protected]>

* Update app/src/ai/components/ai-context-menu.vue

Co-authored-by: Florian C. Wachmann <[email protected]>

* Update app/src/modules/content/routes/item.vue

Co-authored-by: Florian C. Wachmann <[email protected]>

* latest round of feedback

* change id to key to match conventions and fix tool calling issues

* make codebot happy

* change it to test

* fix test

* fix translation

* one more

* veai ← cleanup (#26577)

* refactor: replace useVisualEditorAi with useAiSidebar for clarity

* fix: add type annotation for ComputedRef in useAiSidebar function

* fix: add type annotations for sidebarSize and sidebarCollapsed emit events

* add comment

* remove comment (from html)

* changeset: add usage notice for visual editing library

---------

Co-authored-by: Copilot <[email protected]>
Co-authored-by: Florian C. Wachmann <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants