From 27947f3cadb07c562ed5eddc994f0c533db7e7ce Mon Sep 17 00:00:00 2001 From: pikann22 Date: Mon, 20 Jul 2026 18:16:07 +0000 Subject: [PATCH] feat: add viewId to ViewExtensionProps for unique view instance identification --- src/extension-points.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/extension-points.ts b/src/extension-points.ts index c79e014..cb3830a 100644 --- a/src/extension-points.ts +++ b/src/extension-points.ts @@ -88,6 +88,12 @@ export interface ProjectSettingsTabProps extends BaseExtensionProps { export interface ViewExtensionProps extends BaseExtensionProps { /** The project for which the view is rendered. */ projectId: string; + /** The host's own view record ID for this specific view instance — stable + * across renames/reloads, unique per view even when multiple views of the + * same plugin/component are created in the same project. Use this to key + * any per-view persisted state instead of self-managing a separate + * list/switcher inside the plugin. */ + viewId: string; /** The view configuration stored for this registration. */ viewConfig?: Record; }