Skip to content

Commit

Permalink
Add Side Panel page to the html files list (#717)
Browse files Browse the repository at this point in the history
* Add Side Panel page to the html files list

* Manifest schema update to include side panel options

* minor typo fix

* Revert PNPM lock to default

* Revert "Revert PNPM lock to default"

This reverts commit a34c7b7.

* Remove pnpm lock file changes
  • Loading branch information
somaka committed Jun 18, 2023
1 parent edc5e5f commit 322b9d1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite-plugin/src/node/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export function htmlFiles(manifest: ManifestV3): string[] {
manifest.options_page,
manifest.options_ui?.page,
manifest.sandbox?.pages,
manifest.side_panel?.default_path
]
.flat()
.filter(isString)
Expand Down
5 changes: 5 additions & 0 deletions packages/vite-plugin/src/node/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,11 @@ export interface ManifestV3 {
content_security_policy?: string | undefined
}
| undefined
side_panel?:
| {
default_path?: string | undefined
}
| undefined
short_name?: string | undefined
spellcheck?:
| {
Expand Down
12 changes: 12 additions & 0 deletions schema/manifest-v3.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"scripting",
"search",
"sessions",
"sidePanel",
"signedInDevices",
"storage",
"system.cpu",
Expand Down Expand Up @@ -681,6 +682,17 @@
"maxLength": 12,
"type": "string"
},
"side_panel": {
"description": "The Side Panel API allows extensions to display their own UI in the side panel, enabling persistent experiences that complement the user's browsing journey.",
"properties": {
"default_path": {
"description": "The path to your site panel page, relative to your extension's root.",
"type": "string"
}
},
"required": ["default_path"],
"type": "object"
},
"signature": {},
"spellcheck": {},
"storage": {},
Expand Down

0 comments on commit 322b9d1

Please sign in to comment.