Skip to content

Commit

Permalink
chore: update sidekick schema with badge & content source support
Browse files Browse the repository at this point in the history
  • Loading branch information
mhaack committed Sep 19, 2024
1 parent 2b010a1 commit 2bf3cba
Showing 1 changed file with 45 additions and 2 deletions.
47 changes: 45 additions & 2 deletions tools/sidekick/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,41 @@
"passReferrer": {
"type": "boolean",
"description": "Append the referrer URL as a query param on new URL button click"
},
"isBadge": {
"type": "boolean",
"description": "Opens the URL in a palette instead of a new tab"
},
"badgeVariant": {
"type": "string",
"description": "The variant of the badge following the Adobe Spectrum badge variants",
"enum": [
"gray",
"red",
"orange",
"yellow",
"chartreuse",
"celery",
"green",
"seafoam",
"cyan",
"blue",
"indigo",
"purple",
"fuchsia",
"magenta"
],
"dependentRequired": [
"isBadge"
]
}
},
"required": [ "id" ],
"anyOf": [
{ "required": [ "url" ] },
{ "required": [ "event" ] },
{ "required": [ "isContainer" ] }
{ "required": [ "isContainer" ] },
{ "required": [ "isBadge" ] }
],
"additionalProperties": false
},
Expand Down Expand Up @@ -132,6 +160,20 @@
"description": "Sidekick configuration",
"type": "object",
"properties": {
"contentSourceType": {
"type": "string",
"description": "The type of the content source",
"examples": [
"onedrive",
"gdrive",
"markup"
]
},
"contentSourceUrl": {
"type": "string",
"format": "uri",
"description": "The URL of the content source"
},
"extends": {
"type": "string",
"description": "Extend another project's sidekick configuration",
Expand Down Expand Up @@ -175,7 +217,8 @@
"items": { "$ref": "#/$defs/plugin" }
},
"redirect": {
"type": "url",
"type": "string",
"format": "uri",
"description": "Loads the sidekick configuration from a different URL"
},
"specialViews": {
Expand Down

0 comments on commit 2bf3cba

Please sign in to comment.