Skip to content

Commit

Permalink
feat(csui): pass the whole mountState instead of just the observer (#674
Browse files Browse the repository at this point in the history
)
  • Loading branch information
louisgv authored Jul 11, 2023
1 parent 9e7a52d commit 44b723f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cli/create-plasmo/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion cli/plasmo/package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion cli/plasmo/src/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export type PlasmoGetInlineAnchorList = Getter<NodeList>

export type PlasmoMountShadowHost = (
props: {
observer: MutationObserver | null
mountState?: PlasmoCSUIMountState
shadowHost: Element
} & PlasmoCSUIProps
) => Async<void>
Expand Down
2 changes: 1 addition & 1 deletion cli/plasmo/templates/static/common/csui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async function injectAnchor<T>(
await Mount.mountShadowHost({
shadowHost,
anchor,
observer: mountState?.observer
mountState
})
} else if (anchor.type === "inline") {
anchor.element.insertAdjacentElement("afterend", shadowHost)
Expand Down

0 comments on commit 44b723f

Please sign in to comment.