Skip to content

feat(cms): export Props for VTEX, blog, and website cms-props#79

Merged
guitavano merged 3 commits into
mainfrom
feat/cms-app-props
Jun 18, 2026
Merged

feat(cms): export Props for VTEX, blog, and website cms-props#79
guitavano merged 3 commits into
mainfrom
feat/cms-app-props

Conversation

@guitavano

@guitavano guitavano commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add vtex/props.ts with full VTEX CMS Props (secrets, sales channel, cached search terms)
  • Export Props from blog/mod.ts and default export for Deno-style bridges
  • Add website/cms-props.ts with WebsiteProps for site app schema generation

Enables Tanstack sites to use thin src/apps/deco/*.ts re-exports like lojabagaggio.

Test plan

  • bun run typecheck (vtex/blog modules)
  • bun test blog/__tests__/mod.test.ts
  • Re-export bridge resolves Props in generate-schema.ts scan

Made with Cursor


Summary by cubic

Expose CMS Props and default exports from blog/mod.ts, vtex/mod.ts, and website/mod.ts so TanStack sites can generate schemas via generate-schema.ts and use thin re-export bridges.

  • New Features

    • Blog: added Props (pageSlug), set state in configure, added default export.
    • VTEX: added Props (secrets, sales channel, cached search terms), re-exported Secret, added default export.
    • Website: added Props (caching, A/B testing, SEO, flavors), plus WebsiteProps and Secret aliases.
  • Refactors

    • Consolidated CMS Props into each app’s mod.ts (removed split files like vtex/props.ts and website/cms-props.ts) and minor lint cleanup (website/mod.ts imports, biome-ignore in vtex/mod.ts configure).

Written for commit de25f17. Summary will update on new commits.

Review in cubic

Add CMS Props interfaces to published app mods so Tanstack sites can use
thin re-export bridges (same pattern as lojabagaggio apps/deco/*.ts).

Co-authored-by: Cursor <cursoragent@cursor.com>
@guitavano guitavano requested a review from a team June 18, 2026 19:07
guitavano and others added 2 commits June 18, 2026 16:10
Move VTEX Props and website WebsiteProps into each app's mod.ts (deco-cx pattern). Remove vtex/props.ts and website/cms-props.ts split files.

Co-authored-by: Cursor <cursoragent@cursor.com>
…igure

Co-authored-by: Cursor <cursoragent@cursor.com>
@guitavano guitavano merged commit 1a4da19 into main Jun 18, 2026
2 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 5.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants