From 01e99b92f52af39b5e4e7af2805b1bf1e2cd1006 Mon Sep 17 00:00:00 2001 From: Polina Fedorenko Date: Tue, 6 Oct 2026 13:32:49 +0200 Subject: [PATCH] feat(cli): add the external surfaces category for the asset chooser --- .changeset/brave-owls-gather.md | 19 +++++++++++++++++++ packages/cli/src/utils/verifyManifest.ts | 5 +++++ 2 files changed, 24 insertions(+) create mode 100644 .changeset/brave-owls-gather.md 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(),