kofi-stack-template-generator 2.1.37 → 2.1.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (323) hide show
  1. package/.turbo/turbo-build.log +6 -6
  2. package/dist/index.js +8057 -440
  3. package/package.json +1 -1
  4. package/src/templates.generated.ts +248 -94
  5. package/templates/integrations/posthog/src/components/providers/posthog-provider.tsx.hbs +4 -1
  6. package/templates/marketing/payload/package.json.hbs +41 -26
  7. package/templates/marketing/payload/src/Footer/Component.client.tsx +288 -0
  8. package/templates/marketing/payload/src/Footer/Component.tsx +11 -0
  9. package/templates/marketing/payload/src/Footer/RowLabel.tsx +15 -0
  10. package/templates/marketing/payload/src/Footer/config.ts +178 -0
  11. package/templates/marketing/payload/src/Footer/hooks/{revalidateFooter.ts.hbs → revalidateFooter.ts} +5 -5
  12. package/templates/marketing/payload/src/Header/Component.client.tsx +94 -0
  13. package/templates/marketing/payload/src/Header/Component.tsx +10 -0
  14. package/templates/marketing/payload/src/Header/MegaMenu/index.tsx +197 -0
  15. package/templates/marketing/payload/src/Header/MobileMenu/HamburgerIcon.tsx +48 -0
  16. package/templates/marketing/payload/src/Header/MobileMenu/index.tsx +299 -0
  17. package/templates/marketing/payload/src/Header/Nav/index.tsx +76 -0
  18. package/templates/marketing/payload/src/Header/RowLabel.tsx +21 -0
  19. package/templates/marketing/payload/src/Header/config.ts +208 -0
  20. package/templates/marketing/payload/src/Header/hooks/{revalidateHeader.ts.hbs → revalidateHeader.ts} +5 -5
  21. package/templates/marketing/payload/src/access/{authenticated.ts.hbs → authenticated.ts} +1 -1
  22. package/templates/marketing/payload/src/access/{authenticatedOrPublished.ts.hbs → authenticatedOrPublished.ts} +8 -8
  23. package/templates/marketing/payload/src/app/(docs)/docs/[[...slug]]/page.tsx +117 -0
  24. package/templates/marketing/payload/src/app/(docs)/docs/layout.tsx +39 -0
  25. package/templates/marketing/payload/src/app/(docs)/layout.tsx +44 -0
  26. package/templates/marketing/payload/src/app/(frontend)/(sitemaps)/pages-sitemap.xml/route.ts +68 -0
  27. package/templates/marketing/payload/src/app/(frontend)/(sitemaps)/posts-sitemap.xml/route.ts +55 -0
  28. package/templates/marketing/payload/src/app/(frontend)/[slug]/page.client.tsx +15 -0
  29. package/templates/marketing/payload/src/app/(frontend)/[slug]/page.tsx +114 -0
  30. package/templates/marketing/payload/src/app/(frontend)/api/docs-search/route.ts +67 -0
  31. package/templates/marketing/payload/src/app/(frontend)/api/newsletter/route.ts +260 -0
  32. package/templates/marketing/payload/src/app/(frontend)/api/pricing/route.ts +266 -0
  33. package/templates/marketing/payload/src/app/(frontend)/globals.css +1019 -0
  34. package/templates/marketing/payload/src/app/(frontend)/layout.tsx +114 -0
  35. package/templates/marketing/payload/src/app/(frontend)/next/exit-preview/route.ts +7 -0
  36. package/templates/marketing/payload/src/app/(frontend)/next/preview/route.ts +56 -0
  37. package/templates/marketing/payload/src/app/(frontend)/next/seed/route.ts +31 -0
  38. package/templates/marketing/payload/src/app/(frontend)/not-found.tsx +17 -0
  39. package/templates/marketing/payload/src/app/(frontend)/page.tsx +5 -0
  40. package/templates/marketing/payload/src/app/(frontend)/posts/BlogPageClient.tsx +190 -0
  41. package/templates/marketing/payload/src/app/(frontend)/posts/[slug]/BlogPostContent.tsx +67 -0
  42. package/templates/marketing/payload/src/app/(frontend)/posts/[slug]/page.client.tsx +15 -0
  43. package/templates/marketing/payload/src/app/(frontend)/posts/[slug]/page.tsx +118 -0
  44. package/templates/marketing/payload/src/app/(frontend)/posts/page/[pageNumber]/page.client.tsx +15 -0
  45. package/templates/marketing/payload/src/app/(frontend)/posts/page/[pageNumber]/page.tsx +87 -0
  46. package/templates/marketing/payload/src/app/(frontend)/posts/page.tsx +49 -0
  47. package/templates/marketing/payload/src/app/(frontend)/search/page.client.tsx +15 -0
  48. package/templates/marketing/payload/src/app/(frontend)/search/page.tsx +87 -0
  49. package/templates/marketing/payload/src/app/(payload)/admin/[[...segments]]/not-found.tsx +24 -0
  50. package/templates/marketing/payload/src/app/(payload)/admin/[[...segments]]/page.tsx +24 -0
  51. package/templates/marketing/payload/src/app/(payload)/admin/importMap.js +83 -0
  52. package/templates/marketing/payload/src/app/(payload)/api/[...slug]/{route.ts.hbs → route.ts} +13 -9
  53. package/templates/marketing/payload/src/app/(payload)/api/graphql/{route.ts.hbs → route.ts} +2 -2
  54. package/templates/marketing/payload/src/app/(payload)/api/graphql-playground/{route.ts.hbs → route.ts} +3 -3
  55. package/templates/marketing/payload/src/app/(payload)/custom.scss +0 -0
  56. package/templates/marketing/payload/src/app/(payload)/layout.tsx +31 -0
  57. package/templates/marketing/payload/src/blocks/ArchiveBlock/Component.tsx +65 -0
  58. package/templates/marketing/payload/src/blocks/ArchiveBlock/config.ts +120 -0
  59. package/templates/marketing/payload/src/blocks/Banner/Component.tsx +26 -0
  60. package/templates/marketing/payload/src/blocks/Banner/config.ts +67 -0
  61. package/templates/marketing/payload/src/blocks/BentoFeatures/Component.tsx +243 -0
  62. package/templates/marketing/payload/src/blocks/BentoFeatures/config.ts +147 -0
  63. package/templates/marketing/payload/src/blocks/CallToAction/Component.tsx +31 -0
  64. package/templates/marketing/payload/src/blocks/CallToAction/config.ts +68 -0
  65. package/templates/marketing/payload/src/blocks/Code/Component.client.tsx +33 -0
  66. package/templates/marketing/payload/src/blocks/Code/Component.tsx +21 -0
  67. package/templates/marketing/payload/src/blocks/Code/CopyButton.tsx +33 -0
  68. package/templates/marketing/payload/src/blocks/Code/config.ts +33 -0
  69. package/templates/marketing/payload/src/blocks/Content/Component.tsx +41 -0
  70. package/templates/marketing/payload/src/blocks/Content/config.ts +105 -0
  71. package/templates/marketing/payload/src/blocks/FAQAccordion/Component.tsx +90 -0
  72. package/templates/marketing/payload/src/blocks/FAQAccordion/config.ts +75 -0
  73. package/templates/marketing/payload/src/blocks/FeatureGrid/Component.tsx +124 -0
  74. package/templates/marketing/payload/src/blocks/FeatureGrid/config.ts +120 -0
  75. package/templates/marketing/payload/src/blocks/FeatureShowcase/Component.tsx +107 -0
  76. package/templates/marketing/payload/src/blocks/FeatureShowcase/config.ts +111 -0
  77. package/templates/marketing/payload/src/blocks/FinalCTA/Component.tsx +117 -0
  78. package/templates/marketing/payload/src/blocks/FinalCTA/config.ts +50 -0
  79. package/templates/marketing/payload/src/blocks/Form/Checkbox/index.tsx +45 -0
  80. package/templates/marketing/payload/src/blocks/Form/Component.tsx +170 -0
  81. package/templates/marketing/payload/src/blocks/Form/Country/index.tsx +65 -0
  82. package/templates/marketing/payload/src/blocks/Form/Country/options.ts +982 -0
  83. package/templates/marketing/payload/src/blocks/Form/Email/index.tsx +38 -0
  84. package/templates/marketing/payload/src/blocks/Form/Error/index.tsx +13 -0
  85. package/templates/marketing/payload/src/blocks/Form/Message/index.tsx +13 -0
  86. package/templates/marketing/payload/src/blocks/Form/Number/index.tsx +36 -0
  87. package/templates/marketing/payload/src/blocks/Form/Select/index.tsx +63 -0
  88. package/templates/marketing/payload/src/blocks/Form/State/index.tsx +64 -0
  89. package/templates/marketing/payload/src/blocks/Form/State/options.ts +52 -0
  90. package/templates/marketing/payload/src/blocks/Form/Text/index.tsx +32 -0
  91. package/templates/marketing/payload/src/blocks/Form/Textarea/index.tsx +40 -0
  92. package/templates/marketing/payload/src/blocks/Form/Width/index.tsx +13 -0
  93. package/templates/marketing/payload/src/blocks/Form/config.ts +77 -0
  94. package/templates/marketing/payload/src/blocks/Form/fields.tsx +21 -0
  95. package/templates/marketing/payload/src/blocks/HowItWorks/Component.tsx +59 -0
  96. package/templates/marketing/payload/src/blocks/HowItWorks/config.ts +88 -0
  97. package/templates/marketing/payload/src/blocks/IndustryTabs/Component.tsx +132 -0
  98. package/templates/marketing/payload/src/blocks/IndustryTabs/config.ts +77 -0
  99. package/templates/marketing/payload/src/blocks/LogoBanner/Component.tsx +95 -0
  100. package/templates/marketing/payload/src/blocks/LogoBanner/config.ts +48 -0
  101. package/templates/marketing/payload/src/blocks/MediaBlock/Component.tsx +67 -0
  102. package/templates/marketing/payload/src/blocks/MediaBlock/config.ts +14 -0
  103. package/templates/marketing/payload/src/blocks/Personas/Component.tsx +69 -0
  104. package/templates/marketing/payload/src/blocks/Personas/config.ts +96 -0
  105. package/templates/marketing/payload/src/blocks/PricingTable/ComparisonTable.tsx +250 -0
  106. package/templates/marketing/payload/src/blocks/PricingTable/Component.tsx +443 -0
  107. package/templates/marketing/payload/src/blocks/PricingTable/config.ts +142 -0
  108. package/templates/marketing/payload/src/blocks/ProofBanner/Component.tsx +65 -0
  109. package/templates/marketing/payload/src/blocks/ProofBanner/config.ts +42 -0
  110. package/templates/marketing/payload/src/blocks/RelatedPosts/Component.tsx +32 -0
  111. package/templates/marketing/payload/src/blocks/RenderBlocks.tsx +92 -0
  112. package/templates/marketing/payload/src/blocks/TestimonialsGrid/Component.tsx +107 -0
  113. package/templates/marketing/payload/src/blocks/TestimonialsGrid/config.ts +76 -0
  114. package/templates/marketing/payload/src/blocks/TrustColumns/Component.tsx +83 -0
  115. package/templates/marketing/payload/src/blocks/TrustColumns/config.ts +70 -0
  116. package/templates/marketing/payload/src/collections/Categories.ts +28 -0
  117. package/templates/marketing/payload/src/collections/FAQs/index.ts +100 -0
  118. package/templates/marketing/payload/src/collections/Media.ts +160 -0
  119. package/templates/marketing/payload/src/collections/Pages/hooks/revalidatePage.ts +43 -0
  120. package/templates/marketing/payload/src/collections/Pages/index.ts +168 -0
  121. package/templates/marketing/payload/src/collections/Posts/hooks/populateAuthors.ts +41 -0
  122. package/templates/marketing/payload/src/collections/Posts/hooks/revalidatePost.ts +44 -0
  123. package/templates/marketing/payload/src/collections/Posts/index.ts +259 -0
  124. package/templates/marketing/payload/src/collections/Users/index.ts +26 -0
  125. package/templates/marketing/payload/src/components/AdminBar/index.scss +7 -0
  126. package/templates/marketing/payload/src/components/AdminBar/index.tsx +89 -0
  127. package/templates/marketing/payload/src/components/Analytics/CTATracker.tsx +33 -0
  128. package/templates/marketing/payload/src/components/Analytics/FeatureSectionTracker.tsx +47 -0
  129. package/templates/marketing/payload/src/components/Analytics/PricingViewTracker.tsx +46 -0
  130. package/templates/marketing/payload/src/components/Analytics/index.tsx +3 -0
  131. package/templates/marketing/payload/src/components/BeforeDashboard/SeedButton/index.tsx +89 -0
  132. package/templates/marketing/payload/src/components/BeforeDashboard/index.tsx +69 -0
  133. package/templates/marketing/payload/src/components/BeforeLogin/index.tsx +14 -0
  134. package/templates/marketing/payload/src/components/BlogCTA/index.tsx +77 -0
  135. package/templates/marketing/payload/src/components/Card/index.tsx +85 -0
  136. package/templates/marketing/payload/src/components/CollectionArchive/index.tsx +32 -0
  137. package/templates/marketing/payload/src/components/JsonLd/index.tsx +138 -0
  138. package/templates/marketing/payload/src/components/Link/index.tsx +66 -0
  139. package/templates/marketing/payload/src/components/LivePreviewListener/index.tsx +10 -0
  140. package/templates/marketing/payload/src/components/Logo/Logo.tsx +46 -0
  141. package/templates/marketing/payload/src/components/Media/ImageMedia/index.tsx +80 -0
  142. package/templates/marketing/payload/src/components/Media/VideoMedia/index.tsx +47 -0
  143. package/templates/marketing/payload/src/components/Media/index.tsx +26 -0
  144. package/templates/marketing/payload/src/components/Media/types.ts +22 -0
  145. package/templates/marketing/payload/src/components/PageRange/index.tsx +57 -0
  146. package/templates/marketing/payload/src/components/Pagination/index.tsx +101 -0
  147. package/templates/marketing/payload/src/components/PayloadRedirects/index.tsx +48 -0
  148. package/templates/marketing/payload/src/components/RichText/index.tsx +152 -0
  149. package/templates/marketing/payload/src/components/TableOfContents/index.tsx +128 -0
  150. package/templates/marketing/payload/src/components/ui/accordion.tsx +64 -0
  151. package/templates/marketing/payload/src/components/ui/button.tsx +52 -0
  152. package/templates/marketing/payload/src/components/ui/card.tsx +48 -0
  153. package/templates/marketing/payload/src/components/ui/checkbox.tsx +27 -0
  154. package/templates/marketing/payload/src/components/ui/input.tsx +22 -0
  155. package/templates/marketing/payload/src/components/ui/label.tsx +19 -0
  156. package/templates/marketing/payload/src/components/ui/pagination.tsx +92 -0
  157. package/templates/marketing/payload/src/components/ui/select.tsx +144 -0
  158. package/templates/marketing/payload/src/components/ui/textarea.tsx +21 -0
  159. package/templates/marketing/payload/src/endpoints/seed/contact-form.ts +111 -0
  160. package/templates/marketing/payload/src/endpoints/seed/contact-page.ts +56 -0
  161. package/templates/marketing/payload/src/endpoints/seed/directoryhub/about.ts +281 -0
  162. package/templates/marketing/payload/src/endpoints/seed/directoryhub/faqs.ts +224 -0
  163. package/templates/marketing/payload/src/endpoints/seed/directoryhub/features/automation.ts +229 -0
  164. package/templates/marketing/payload/src/endpoints/seed/directoryhub/features/custom-fields.ts +229 -0
  165. package/templates/marketing/payload/src/endpoints/seed/directoryhub/features/dashboard.ts +228 -0
  166. package/templates/marketing/payload/src/endpoints/seed/directoryhub/features/index.ts +6 -0
  167. package/templates/marketing/payload/src/endpoints/seed/directoryhub/features/monetization.ts +230 -0
  168. package/templates/marketing/payload/src/endpoints/seed/directoryhub/features/seo.ts +229 -0
  169. package/templates/marketing/payload/src/endpoints/seed/directoryhub/features/templates.ts +218 -0
  170. package/templates/marketing/payload/src/endpoints/seed/directoryhub/home.ts +555 -0
  171. package/templates/marketing/payload/src/endpoints/seed/directoryhub/index.ts +767 -0
  172. package/templates/marketing/payload/src/endpoints/seed/directoryhub/posts.ts +623 -0
  173. package/templates/marketing/payload/src/endpoints/seed/directoryhub/pricing.ts +251 -0
  174. package/templates/marketing/payload/src/endpoints/seed/directoryhub/privacy.ts +457 -0
  175. package/templates/marketing/payload/src/endpoints/seed/directoryhub/richtext-helper.ts +88 -0
  176. package/templates/marketing/payload/src/endpoints/seed/directoryhub/terms.ts +478 -0
  177. package/templates/marketing/payload/src/endpoints/seed/directoryhub/use-cases/b2b-vendor-hubs.ts +229 -0
  178. package/templates/marketing/payload/src/endpoints/seed/directoryhub/use-cases/communities.ts +230 -0
  179. package/templates/marketing/payload/src/endpoints/seed/directoryhub/use-cases/index.ts +4 -0
  180. package/templates/marketing/payload/src/endpoints/seed/directoryhub/use-cases/local-services.ts +230 -0
  181. package/templates/marketing/payload/src/endpoints/seed/directoryhub/use-cases/marketplaces.ts +230 -0
  182. package/templates/marketing/payload/src/endpoints/seed/home-static.ts +691 -0
  183. package/templates/marketing/payload/src/endpoints/seed/home.ts +675 -0
  184. package/templates/marketing/payload/src/endpoints/seed/image-1.ts +67 -0
  185. package/templates/marketing/payload/src/endpoints/seed/image-2.ts +67 -0
  186. package/templates/marketing/payload/src/endpoints/seed/image-3.ts +67 -0
  187. package/templates/marketing/payload/src/endpoints/seed/image-hero-1.ts +5 -0
  188. package/templates/marketing/payload/src/endpoints/seed/image-hero1.webp +0 -0
  189. package/templates/marketing/payload/src/endpoints/seed/image-post1.webp +0 -0
  190. package/templates/marketing/payload/src/endpoints/seed/image-post2.webp +0 -0
  191. package/templates/marketing/payload/src/endpoints/seed/image-post3.webp +0 -0
  192. package/templates/marketing/payload/src/endpoints/seed/index.ts +335 -0
  193. package/templates/marketing/payload/src/endpoints/seed/post-1.ts +315 -0
  194. package/templates/marketing/payload/src/endpoints/seed/post-2.ts +232 -0
  195. package/templates/marketing/payload/src/endpoints/seed/post-3.ts +268 -0
  196. package/templates/marketing/payload/src/fields/defaultLexical.ts +73 -0
  197. package/templates/marketing/payload/src/fields/link.ts +139 -0
  198. package/templates/marketing/payload/src/fields/linkGroup.ts +28 -0
  199. package/templates/marketing/payload/src/heros/HighImpact/index.tsx +56 -0
  200. package/templates/marketing/payload/src/heros/LowImpact/index.tsx +48 -0
  201. package/templates/marketing/payload/src/heros/MediumImpact/index.tsx +50 -0
  202. package/templates/marketing/payload/src/heros/PostHero/index.tsx +73 -0
  203. package/templates/marketing/payload/src/heros/ProductShowcase/AnimatedMockup.tsx +241 -0
  204. package/templates/marketing/payload/src/heros/ProductShowcase/index.tsx +108 -0
  205. package/templates/marketing/payload/src/heros/{RenderHero.tsx.hbs → RenderHero.tsx} +9 -9
  206. package/templates/marketing/payload/src/heros/config.ts +121 -0
  207. package/templates/marketing/payload/src/hooks/populatePublishedAt.ts +15 -0
  208. package/templates/marketing/payload/src/hooks/{revalidateRedirects.ts.hbs → revalidateRedirects.ts} +3 -3
  209. package/templates/marketing/payload/src/lib/convex.ts +13 -0
  210. package/templates/marketing/payload/src/lib/docs-source.ts +138 -0
  211. package/templates/marketing/payload/src/lib/mdx.tsx +191 -0
  212. package/templates/marketing/payload/src/payload.config.ts.hbs +95 -145
  213. package/templates/marketing/payload/src/plugins/index.ts +107 -0
  214. package/templates/marketing/payload/src/providers/HeaderTheme/index.tsx +34 -0
  215. package/templates/marketing/payload/src/providers/PostHogProvider.tsx +33 -0
  216. package/templates/marketing/payload/src/providers/Theme/InitTheme/{index.tsx.hbs → index.tsx} +11 -10
  217. package/templates/marketing/payload/src/providers/Theme/ThemeSelector/index.tsx +133 -0
  218. package/templates/marketing/payload/src/providers/Theme/ThemeSelector/types.ts +7 -0
  219. package/templates/marketing/payload/src/providers/Theme/index.tsx +60 -0
  220. package/templates/marketing/payload/src/providers/Theme/shared.ts +17 -0
  221. package/templates/marketing/payload/src/providers/Theme/{types.ts.hbs → types.ts} +3 -3
  222. package/templates/marketing/payload/src/providers/index.tsx +17 -0
  223. package/templates/marketing/payload/src/search/Component.tsx +42 -0
  224. package/templates/marketing/payload/src/search/beforeSync.ts +56 -0
  225. package/templates/marketing/payload/src/search/fieldOverrides.ts +61 -0
  226. package/templates/marketing/payload/src/utilities/deepMerge.ts +35 -0
  227. package/templates/marketing/payload/src/utilities/extractHeadings.ts +78 -0
  228. package/templates/marketing/payload/src/utilities/formatAuthors.ts +24 -0
  229. package/templates/marketing/payload/src/utilities/formatDateTime.ts +20 -0
  230. package/templates/marketing/payload/src/utilities/generateMeta.ts +93 -0
  231. package/templates/marketing/payload/src/utilities/generatePreviewPath.ts +33 -0
  232. package/templates/marketing/payload/src/utilities/getDocument.ts +32 -0
  233. package/templates/marketing/payload/src/utilities/getGlobals.ts +26 -0
  234. package/templates/marketing/payload/src/utilities/getMeUser.ts +43 -0
  235. package/templates/marketing/payload/src/utilities/getMediaUrl.ts +24 -0
  236. package/templates/marketing/payload/src/utilities/getRedirects.ts +26 -0
  237. package/templates/marketing/payload/src/utilities/getURL.ts +26 -0
  238. package/templates/marketing/payload/src/utilities/mergeOpenGraph.ts +26 -0
  239. package/templates/marketing/payload/src/utilities/toKebabCase.ts +5 -0
  240. package/templates/marketing/payload/src/utilities/ui.ts +12 -0
  241. package/templates/marketing/payload/src/utilities/useClickableCard.ts +108 -0
  242. package/templates/marketing/payload/src/utilities/useDebounce.ts +17 -0
  243. package/templates/packages/ui/src/components/button.tsx.hbs +53 -0
  244. package/templates/packages/ui/src/components/card.tsx.hbs +76 -0
  245. package/templates/packages/ui/src/components/separator.tsx.hbs +26 -0
  246. package/templates/marketing/payload/src/Footer/config.ts.hbs +0 -178
  247. package/templates/marketing/payload/src/Footer/index.ts.hbs +0 -1
  248. package/templates/marketing/payload/src/Header/RowLabel.tsx.hbs +0 -21
  249. package/templates/marketing/payload/src/Header/config.ts.hbs +0 -208
  250. package/templates/marketing/payload/src/Header/index.ts.hbs +0 -1
  251. package/templates/marketing/payload/src/access/index.ts.hbs +0 -3
  252. package/templates/marketing/payload/src/app/(frontend)/layout.tsx.hbs +0 -19
  253. package/templates/marketing/payload/src/app/(frontend)/next/seed/route.ts.hbs +0 -31
  254. package/templates/marketing/payload/src/app/(frontend)/page.tsx.hbs +0 -83
  255. package/templates/marketing/payload/src/app/(payload)/admin/[[...segments]]/not-found.tsx.hbs +0 -24
  256. package/templates/marketing/payload/src/app/(payload)/admin/[[...segments]]/page.tsx.hbs +0 -24
  257. package/templates/marketing/payload/src/app/(payload)/admin/importMap.js.hbs +0 -1
  258. package/templates/marketing/payload/src/app/(payload)/custom.scss.hbs +0 -1
  259. package/templates/marketing/payload/src/app/(payload)/layout.tsx.hbs +0 -31
  260. package/templates/marketing/payload/src/app/globals.css.hbs +0 -83
  261. package/templates/marketing/payload/src/app/layout.tsx.hbs +0 -10
  262. package/templates/marketing/payload/src/blocks/Benefits.ts.hbs +0 -34
  263. package/templates/marketing/payload/src/blocks/CTA.ts.hbs +0 -39
  264. package/templates/marketing/payload/src/blocks/Content.ts.hbs +0 -9
  265. package/templates/marketing/payload/src/blocks/FAQ.ts.hbs +0 -18
  266. package/templates/marketing/payload/src/blocks/Features.ts.hbs +0 -34
  267. package/templates/marketing/payload/src/blocks/Hero.ts.hbs +0 -40
  268. package/templates/marketing/payload/src/blocks/LogoBanner.ts.hbs +0 -17
  269. package/templates/marketing/payload/src/blocks/Pricing.ts.hbs +0 -37
  270. package/templates/marketing/payload/src/blocks/Testimonials.ts.hbs +0 -21
  271. package/templates/marketing/payload/src/blocks/index.ts.hbs +0 -9
  272. package/templates/marketing/payload/src/collections/Categories/index.ts.hbs +0 -28
  273. package/templates/marketing/payload/src/collections/FAQs/index.ts.hbs +0 -100
  274. package/templates/marketing/payload/src/collections/Media.ts.hbs +0 -164
  275. package/templates/marketing/payload/src/collections/Pages/hooks/revalidatePage.ts.hbs +0 -43
  276. package/templates/marketing/payload/src/collections/Pages/index.ts.hbs +0 -142
  277. package/templates/marketing/payload/src/collections/Posts/hooks/populateAuthors.ts.hbs +0 -41
  278. package/templates/marketing/payload/src/collections/Posts/hooks/revalidatePost.ts.hbs +0 -44
  279. package/templates/marketing/payload/src/collections/Posts/index.ts.hbs +0 -244
  280. package/templates/marketing/payload/src/collections/Users/index.ts.hbs +0 -26
  281. package/templates/marketing/payload/src/collections/index.ts.hbs +0 -6
  282. package/templates/marketing/payload/src/components/BeforeDashboard/SeedButton/index.tsx.hbs +0 -89
  283. package/templates/marketing/payload/src/components/BeforeDashboard/index.tsx.hbs +0 -69
  284. package/templates/marketing/payload/src/components/BeforeLogin/index.tsx.hbs +0 -14
  285. package/templates/marketing/payload/src/components/Link/index.tsx.hbs +0 -79
  286. package/templates/marketing/payload/src/components/Media/index.tsx.hbs +0 -67
  287. package/templates/marketing/payload/src/components/RichText/index.tsx.hbs +0 -44
  288. package/templates/marketing/payload/src/endpoints/seed/home.ts.hbs +0 -76
  289. package/templates/marketing/payload/src/endpoints/seed/image-1.ts.hbs +0 -5
  290. package/templates/marketing/payload/src/endpoints/seed/image-2.ts.hbs +0 -5
  291. package/templates/marketing/payload/src/endpoints/seed/image-hero.ts.hbs +0 -5
  292. package/templates/marketing/payload/src/endpoints/seed/index.ts.hbs +0 -235
  293. package/templates/marketing/payload/src/endpoints/seed/post-1.ts.hbs +0 -252
  294. package/templates/marketing/payload/src/fields/defaultLexical.ts.hbs +0 -73
  295. package/templates/marketing/payload/src/fields/link.ts.hbs +0 -139
  296. package/templates/marketing/payload/src/fields/linkGroup.ts.hbs +0 -28
  297. package/templates/marketing/payload/src/globals/index.ts.hbs +0 -2
  298. package/templates/marketing/payload/src/heros/HighImpact/index.tsx.hbs +0 -53
  299. package/templates/marketing/payload/src/heros/LowImpact/index.tsx.hbs +0 -48
  300. package/templates/marketing/payload/src/heros/MediumImpact/index.tsx.hbs +0 -46
  301. package/templates/marketing/payload/src/heros/PostHero/index.tsx.hbs +0 -68
  302. package/templates/marketing/payload/src/heros/ProductShowcase/index.tsx.hbs +0 -88
  303. package/templates/marketing/payload/src/heros/config.ts.hbs +0 -112
  304. package/templates/marketing/payload/src/heros/index.ts.hbs +0 -7
  305. package/templates/marketing/payload/src/hooks/index.ts.hbs +0 -2
  306. package/templates/marketing/payload/src/hooks/populatePublishedAt.ts.hbs +0 -15
  307. package/templates/marketing/payload/src/providers/HeaderTheme/index.tsx.hbs +0 -34
  308. package/templates/marketing/payload/src/providers/Theme/index.tsx.hbs +0 -60
  309. package/templates/marketing/payload/src/providers/Theme/shared.ts.hbs +0 -17
  310. package/templates/marketing/payload/src/providers/index.tsx.hbs +0 -18
  311. package/templates/marketing/payload/src/utilities/deepMerge.ts.hbs +0 -35
  312. package/templates/marketing/payload/src/utilities/formatAuthors.ts.hbs +0 -24
  313. package/templates/marketing/payload/src/utilities/formatDateTime.ts.hbs +0 -13
  314. package/templates/marketing/payload/src/utilities/generateMeta.ts.hbs +0 -87
  315. package/templates/marketing/payload/src/utilities/generatePreviewPath.ts.hbs +0 -33
  316. package/templates/marketing/payload/src/utilities/getURL.ts.hbs +0 -26
  317. package/templates/marketing/payload/src/utilities/index.ts.hbs +0 -8
  318. package/templates/marketing/payload/src/utilities/mergeOpenGraph.ts.hbs +0 -26
  319. /package/templates/marketing/payload/src/access/{anyone.ts.hbs → anyone.ts} +0 -0
  320. /package/templates/marketing/payload/src/components/BeforeDashboard/SeedButton/{index.scss.hbs → index.scss} +0 -0
  321. /package/templates/marketing/payload/src/components/BeforeDashboard/{index.scss.hbs → index.scss} +0 -0
  322. /package/templates/marketing/payload/src/fields/{index.ts.hbs → index.ts} +0 -0
  323. /package/templates/marketing/payload/src/utilities/{canUseDOM.ts.hbs → canUseDOM.ts} +0 -0
@@ -1,14 +0,0 @@
1
- import type React from "react"
2
-
3
- const BeforeLogin: React.FC = () => {
4
- return (
5
- <div>
6
- <p>
7
- <b>Welcome to your dashboard!</b>
8
- {" This is where site admins will log in to manage your website."}
9
- </p>
10
- </div>
11
- )
12
- }
13
-
14
- export default BeforeLogin
@@ -1,79 +0,0 @@
1
- import { cn } from "@/lib/utils"
2
- import Link from "next/link"
3
- import type React from "react"
4
-
5
- import type { Page, Post } from "@/payload-types"
6
-
7
- type CMSLinkType = {
8
- appearance?: "inline" | "default" | "outline" | "link"
9
- children?: React.ReactNode
10
- className?: string
11
- label?: string | null
12
- newTab?: boolean | null
13
- reference?: {
14
- relationTo: "pages" | "posts"
15
- value: Page | Post | string | number
16
- } | null
17
- size?: "default" | "sm" | "lg" | null
18
- type?: "custom" | "reference" | null
19
- url?: string | null
20
- }
21
-
22
- export const CMSLink: React.FC<CMSLinkType> = (props) => {
23
- const {
24
- type,
25
- appearance = "inline",
26
- children,
27
- className,
28
- label,
29
- newTab,
30
- reference,
31
- size = "default",
32
- url,
33
- } = props
34
-
35
- const href =
36
- type === "reference" && typeof reference?.value === "object" && reference.value.slug
37
- ? `${reference?.relationTo !== "pages" ? `/${reference?.relationTo}` : ""}/${
38
- reference.value.slug
39
- }`
40
- : url
41
-
42
- if (!href) return null
43
-
44
- const newTabProps = newTab ? { rel: "noopener noreferrer", target: "_blank" } : {}
45
-
46
- // Size classes
47
- const sizeClasses = {
48
- default: "px-4 py-2",
49
- sm: "px-3 py-1 text-sm",
50
- lg: "px-6 py-3 text-lg",
51
- }
52
-
53
- // Appearance classes
54
- const appearanceClasses = {
55
- inline: "",
56
- default: cn(
57
- "inline-flex items-center justify-center rounded-md font-medium transition-colors",
58
- "bg-primary text-primary-foreground hover:bg-primary/90",
59
- sizeClasses[size || "default"]
60
- ),
61
- outline: cn(
62
- "inline-flex items-center justify-center rounded-md font-medium transition-colors",
63
- "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
64
- sizeClasses[size || "default"]
65
- ),
66
- link: "underline-offset-4 hover:underline",
67
- }
68
-
69
- return (
70
- <Link
71
- className={cn(appearanceClasses[appearance], className)}
72
- href={href || url || ""}
73
- {...newTabProps}
74
- >
75
- {label && label}
76
- {children && children}
77
- </Link>
78
- )
79
- }
@@ -1,67 +0,0 @@
1
- "use client"
2
-
3
- import { cn } from "@/lib/utils"
4
- import Image from "next/image"
5
- import type React from "react"
6
-
7
- import type { Media as MediaType } from "@/payload-types"
8
-
9
- export interface MediaProps {
10
- resource?: MediaType | string | number | null
11
- alt?: string
12
- className?: string
13
- imgClassName?: string
14
- fill?: boolean
15
- priority?: boolean
16
- size?: string
17
- }
18
-
19
- export const Media: React.FC<MediaProps> = ({
20
- resource,
21
- alt: altFromProps,
22
- className,
23
- imgClassName,
24
- fill = false,
25
- priority = false,
26
- size,
27
- }) => {
28
- // If resource is not an object or is null/undefined, return null
29
- if (!resource || typeof resource !== "object") {
30
- return null
31
- }
32
-
33
- const { url, alt: altFromResource, width, height } = resource
34
-
35
- const alt = altFromProps ?? altFromResource ?? ""
36
-
37
- if (!url) return null
38
-
39
- // Handle fill mode
40
- if (fill) {
41
- return (
42
- <div className={cn("relative", className)}>
43
- <Image
44
- src={url}
45
- alt={alt}
46
- fill
47
- className={cn("object-cover", imgClassName)}
48
- priority={priority}
49
- sizes={size || "100vw"}
50
- />
51
- </div>
52
- )
53
- }
54
-
55
- // Handle normal mode with width/height
56
- return (
57
- <Image
58
- src={url}
59
- alt={alt}
60
- width={width || 800}
61
- height={height || 600}
62
- className={cn(className, imgClassName)}
63
- priority={priority}
64
- sizes={size}
65
- />
66
- )
67
- }
@@ -1,44 +0,0 @@
1
- import type { DefaultTypedEditorState } from "@payloadcms/richtext-lexical"
2
- import {
3
- RichText as ConvertRichText,
4
- type JSXConvertersFunction,
5
- LinkJSXConverter,
6
- } from "@payloadcms/richtext-lexical/react"
7
- import { cn } from "@/lib/utils"
8
- import type React from "react"
9
-
10
- const jsxConverters: JSXConvertersFunction = ({ defaultConverters }) => ({
11
- ...defaultConverters,
12
- ...LinkJSXConverter({ internalDocToHref: ({ linkNode }) => {
13
- const { value, relationTo } = linkNode.fields.doc || {}
14
- if (typeof value !== "object" || !value) return "/"
15
- const slug = value.slug
16
- return relationTo === "posts" ? `/posts/${slug}` : `/${slug}`
17
- }}),
18
- })
19
-
20
- type Props = {
21
- data: DefaultTypedEditorState
22
- enableGutter?: boolean
23
- enableProse?: boolean
24
- } & React.HTMLAttributes<HTMLDivElement>
25
-
26
- export default function RichText(props: Props) {
27
- const { className, enableProse = true, enableGutter = true, ...rest } = props
28
- return (
29
- <ConvertRichText
30
- converters={jsxConverters}
31
- className={cn(
32
- "payload-richtext",
33
- {
34
- container: enableGutter,
35
- "prose prose-lg dark:prose-invert prose-headings:font-bold prose-headings:tracking-tight prose-a:text-primary prose-a:no-underline hover:prose-a:underline prose-blockquote:border-l-primary prose-blockquote:not-italic prose-li:marker:text-muted-foreground":
36
- enableProse,
37
- },
38
- !enableGutter && "max-w-none",
39
- className,
40
- )}
41
- {...rest}
42
- />
43
- )
44
- }
@@ -1,76 +0,0 @@
1
- import type { Media } from "@/payload-types"
2
- import type { RequiredDataFromCollectionSlug } from "payload"
3
-
4
- type HomeArgs = {
5
- heroImage: Media
6
- }
7
-
8
- export const home: (args: HomeArgs) => RequiredDataFromCollectionSlug<"pages"> = ({
9
- heroImage,
10
- }) => {
11
- return {
12
- slug: "home",
13
- _status: "published",
14
- title: "Home",
15
- layout: [
16
- {
17
- blockType: "hero",
18
- heading: "Welcome to {{projectName}}",
19
- subheading: "Build something amazing with Payload CMS and Next.js",
20
- primaryCta: {
21
- label: "Get Started",
22
- url: "/posts",
23
- },
24
- secondaryCta: {
25
- label: "Learn More",
26
- url: "/contact",
27
- },
28
- },
29
- {
30
- blockType: "features",
31
- heading: "Core Features",
32
- subheading: "Everything you need to build modern websites",
33
- features: [
34
- {
35
- icon: "layout",
36
- title: "Page Builder",
37
- description: "Create beautiful pages with our flexible block-based editor.",
38
- },
39
- {
40
- icon: "zap",
41
- title: "Lightning Fast",
42
- description: "Optimized for performance with Next.js and React Server Components.",
43
- },
44
- {
45
- icon: "shield",
46
- title: "Secure by Default",
47
- description: "Built-in authentication and role-based access control.",
48
- },
49
- {
50
- icon: "database",
51
- title: "Flexible Database",
52
- description: "Works with MongoDB, PostgreSQL, and other databases.",
53
- },
54
- ],
55
- },
56
- {
57
- blockType: "cta",
58
- heading: "Ready to get started?",
59
- subheading: "Start building your next project today.",
60
- primaryCta: {
61
- label: "View Posts",
62
- url: "/posts",
63
- },
64
- secondaryCta: {
65
- label: "Contact Us",
66
- url: "/contact",
67
- },
68
- },
69
- ],
70
- meta: {
71
- description: "Welcome to {{projectName}} - Built with Payload CMS and Next.js",
72
- image: heroImage.id,
73
- title: "{{projectName}}",
74
- },
75
- }
76
- }
@@ -1,5 +0,0 @@
1
- import type { Media } from "@/payload-types"
2
-
3
- export const image1: Omit<Media, "createdAt" | "id" | "updatedAt"> = {
4
- alt: "Curving abstract shapes with an orange and blue gradient",
5
- }
@@ -1,5 +0,0 @@
1
- import type { Media } from "@/payload-types"
2
-
3
- export const image2: Omit<Media, "createdAt" | "id" | "updatedAt"> = {
4
- alt: "Stylized 3D rendering of a dark, abstract cosmic landscape",
5
- }
@@ -1,5 +0,0 @@
1
- import type { Media } from "@/payload-types"
2
-
3
- export const imageHero: Omit<Media, "createdAt" | "id" | "updatedAt"> = {
4
- alt: "Abstract hero image with gradient",
5
- }
@@ -1,235 +0,0 @@
1
- import type { CollectionSlug, File, Payload, PayloadRequest } from "payload"
2
-
3
- import { home } from "./home"
4
- import { image1 } from "./image-1"
5
- import { image2 } from "./image-2"
6
- import { imageHero } from "./image-hero"
7
- import { post1 } from "./post-1"
8
-
9
- const collections: CollectionSlug[] = [
10
- "categories",
11
- "media",
12
- "pages",
13
- "posts",
14
- ]
15
-
16
- const categories = ["Technology", "News", "Finance", "Design", "Software", "Engineering"]
17
-
18
- // Next.js revalidation errors are normal when seeding the database without a server running
19
- // i.e. running `yarn seed` locally instead of using the admin UI within an active app
20
- // The app is not running to revalidate the pages and so the API routes are not available
21
- // These error messages can be ignored: `Error hitting revalidate route for...`
22
- export const seed = async ({
23
- payload,
24
- req,
25
- }: {
26
- payload: Payload
27
- req: PayloadRequest
28
- }): Promise<void> => {
29
- payload.logger.info("Seeding database...")
30
-
31
- // we need to clear the media directory before seeding
32
- // as well as the collections and globals
33
- // this is because while `yarn seed` drops the database
34
- // the custom `/api/seed` endpoint does not
35
- payload.logger.info(`— Clearing collections and globals...`)
36
-
37
- // clear the database - header
38
- await payload.updateGlobal({
39
- slug: "header",
40
- data: {
41
- navItems: [],
42
- },
43
- depth: 0,
44
- context: {
45
- disableRevalidate: true,
46
- },
47
- })
48
-
49
- // clear the database - footer
50
- await payload.updateGlobal({
51
- slug: "footer",
52
- data: {
53
- columns: [],
54
- socialLinks: {},
55
- newsletter: { enabled: false },
56
- copyrightText: "",
57
- bottomLinks: [],
58
- },
59
- depth: 0,
60
- context: {
61
- disableRevalidate: true,
62
- },
63
- })
64
-
65
- await Promise.all(
66
- collections.map((collection) => payload.db.deleteMany({ collection, req, where: {} })),
67
- )
68
-
69
- await Promise.all(
70
- collections
71
- .filter((collection) => Boolean(payload.collections[collection].config.versions))
72
- .map((collection) => payload.db.deleteVersions({ collection, req, where: {} })),
73
- )
74
-
75
- payload.logger.info(`— Seeding demo author and user...`)
76
-
77
- await payload.delete({
78
- collection: "users",
79
- depth: 0,
80
- where: {
81
- email: {
82
- equals: "demo-author@example.com",
83
- },
84
- },
85
- })
86
-
87
- payload.logger.info(`— Seeding media...`)
88
-
89
- const [image1Buffer, image2Buffer, heroBuffer] = await Promise.all([
90
- fetchFileByURL(
91
- "https://raw.githubusercontent.com/payloadcms/payload/refs/heads/main/templates/website/src/endpoints/seed/image-post1.webp",
92
- ),
93
- fetchFileByURL(
94
- "https://raw.githubusercontent.com/payloadcms/payload/refs/heads/main/templates/website/src/endpoints/seed/image-post2.webp",
95
- ),
96
- fetchFileByURL(
97
- "https://raw.githubusercontent.com/payloadcms/payload/refs/heads/main/templates/website/src/endpoints/seed/image-hero1.webp",
98
- ),
99
- ])
100
-
101
- const [demoAuthor, image1Doc, image2Doc, imageHeroDoc] = await Promise.all([
102
- payload.create({
103
- collection: "users",
104
- data: {
105
- name: "Demo Author",
106
- email: "demo-author@example.com",
107
- password: "password",
108
- },
109
- }),
110
- payload.create({
111
- collection: "media",
112
- data: image1,
113
- file: image1Buffer,
114
- }),
115
- payload.create({
116
- collection: "media",
117
- data: image2,
118
- file: image2Buffer,
119
- }),
120
- payload.create({
121
- collection: "media",
122
- data: imageHero,
123
- file: heroBuffer,
124
- }),
125
- ...categories.map((category) =>
126
- payload.create({
127
- collection: "categories",
128
- data: {
129
- title: category,
130
- },
131
- }),
132
- ),
133
- ])
134
-
135
- payload.logger.info(`— Seeding posts...`)
136
-
137
- const post1Doc = await payload.create({
138
- collection: "posts",
139
- depth: 0,
140
- context: {
141
- disableRevalidate: true,
142
- },
143
- data: post1({ heroImage: image1Doc, author: demoAuthor }),
144
- })
145
-
146
- payload.logger.info(`— Seeding pages...`)
147
-
148
- await payload.create({
149
- collection: "pages",
150
- depth: 0,
151
- data: home({ heroImage: imageHeroDoc }),
152
- })
153
-
154
- payload.logger.info(`— Seeding globals...`)
155
-
156
- await Promise.all([
157
- payload.updateGlobal({
158
- slug: "header",
159
- data: {
160
- navItems: [
161
- {
162
- type: "link",
163
- label: "Posts",
164
- link: {
165
- type: "custom",
166
- url: "/posts",
167
- },
168
- },
169
- ],
170
- },
171
- }),
172
- payload.updateGlobal({
173
- slug: "footer",
174
- data: {
175
- columns: [
176
- {
177
- title: "Resources",
178
- links: [
179
- {
180
- link: {
181
- type: "custom",
182
- label: "Admin",
183
- url: "/admin",
184
- },
185
- },
186
- {
187
- link: {
188
- type: "custom",
189
- label: "Payload Docs",
190
- newTab: true,
191
- url: "https://payloadcms.com/docs",
192
- },
193
- },
194
- ],
195
- },
196
- ],
197
- socialLinks: {
198
- github: "https://github.com/payloadcms/payload",
199
- twitter: "https://x.com/payloadcms",
200
- },
201
- newsletter: {
202
- enabled: true,
203
- title: "Newsletter",
204
- description: "Stay up to date with the latest updates.",
205
- buttonText: "Subscribe",
206
- placeholder: "Enter your email",
207
- },
208
- copyrightText: "{{projectName}}",
209
- bottomLinks: [],
210
- },
211
- }),
212
- ])
213
-
214
- payload.logger.info("Seeded database successfully!")
215
- }
216
-
217
- async function fetchFileByURL(url: string): Promise<File> {
218
- const res = await fetch(url, {
219
- credentials: "include",
220
- method: "GET",
221
- })
222
-
223
- if (!res.ok) {
224
- throw new Error(`Failed to fetch file from ${url}, status: ${res.status}`)
225
- }
226
-
227
- const data = await res.arrayBuffer()
228
-
229
- return {
230
- name: url.split("/").pop() || `file-${Date.now()}`,
231
- data: Buffer.from(data),
232
- mimetype: `image/${url.split(".").pop()}`,
233
- size: data.byteLength,
234
- }
235
- }