refactor(ext-api): rename widgetCreated → created in WidgetExtensionOptions

Remove redundant "widget" prefix since we're already in widget context.

Addresses review discussion item #5 from design-review-12142.md

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Connor Byrne
2026-05-12 17:27:24 -07:00
parent e25e210933
commit bf272a784d

View File

@@ -130,7 +130,7 @@ export interface ExtensionOptions {
* name: 'my-org.color-picker',
* type: 'COLOR_PICKER',
*
* widgetCreated(widget, node) {
* created(widget, node) {
* return {
* render(container) { /* mount color picker DOM *\/ },
* destroy() { /* cleanup *\/ }
@@ -151,7 +151,7 @@ export interface WidgetExtensionOptions {
*
* @stability experimental
*/
widgetCreated?(
created?(
widget: WidgetHandle,
parentNode: NodeHandle | null
): { render(container: HTMLElement): void; destroy?(): void } | void