diff --git a/cli/create-plasmo/package.json b/cli/create-plasmo/package.json index ebd2610ad..fe83ee237 100644 --- a/cli/create-plasmo/package.json +++ b/cli/create-plasmo/package.json @@ -1,6 +1,6 @@ { "name": "create-plasmo", - "version": "0.79.0", + "version": "0.80.0", "description": "Create Plasmo Framework Browser Extension", "main": "dist/index.js", "bin": "bin/index.mjs", diff --git a/cli/plasmo/package.json b/cli/plasmo/package.json index a3fe1a301..f9c65fa2a 100644 --- a/cli/plasmo/package.json +++ b/cli/plasmo/package.json @@ -1,6 +1,6 @@ { "name": "plasmo", - "version": "0.79.0", + "version": "0.80.0", "description": "The Plasmo Framework CLI", "publishConfig": { "types": "dist/type.d.ts" diff --git a/cli/plasmo/src/type.ts b/cli/plasmo/src/type.ts index ed33cbf0d..db7f8b0a7 100644 --- a/cli/plasmo/src/type.ts +++ b/cli/plasmo/src/type.ts @@ -61,7 +61,7 @@ export type PlasmoGetInlineAnchorList = Getter export type PlasmoMountShadowHost = ( props: { - observer: MutationObserver | null + mountState?: PlasmoCSUIMountState shadowHost: Element } & PlasmoCSUIProps ) => Async diff --git a/cli/plasmo/templates/static/common/csui.ts b/cli/plasmo/templates/static/common/csui.ts index 2191529a9..7b4c051a9 100644 --- a/cli/plasmo/templates/static/common/csui.ts +++ b/cli/plasmo/templates/static/common/csui.ts @@ -43,7 +43,7 @@ async function injectAnchor( await Mount.mountShadowHost({ shadowHost, anchor, - observer: mountState?.observer + mountState }) } else if (anchor.type === "inline") { anchor.element.insertAdjacentElement("afterend", shadowHost)