diff --git a/.changeset/brave-owls-gather.md b/.changeset/brave-owls-gather.md new file mode 100644 index 000000000..d512677c3 --- /dev/null +++ b/.changeset/brave-owls-gather.md @@ -0,0 +1,19 @@ +--- +"@frontify/frontify-cli": minor +--- + +feat: add the `external` surfaces category with an `assetChooser` surface to the platform app manifest schema + +Its `title` is now validated like other surface titles (2 to 28 characters). + +```json +{ + "surfaces": { + "external": { + "assetChooser": { + "title": "My App" + } + } + } +} +``` diff --git a/packages/cli/src/utils/verifyManifest.ts b/packages/cli/src/utils/verifyManifest.ts index 62bd75c60..e8b8b6014 100644 --- a/packages/cli/src/utils/verifyManifest.ts +++ b/packages/cli/src/utils/verifyManifest.ts @@ -225,6 +225,11 @@ export const platformAppManifestSchemaV1 = object({ }).optional(), assetCreation: assetCreationShape, }).optional(), + external: object({ + assetChooser: object({ + title: string().min(2).max(28), + }).optional(), + }).optional(), }).optional(), metadata: object({ version: number().int(),