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
@@ -0,0 +1,88 @@
1
+ // Helper function to create simple paragraph rich text
2
+ export const createParagraph = (text: string) => ({
3
+ root: {
4
+ type: "root",
5
+ children: [
6
+ {
7
+ type: "paragraph",
8
+ children: [
9
+ {
10
+ type: "text",
11
+ detail: 0,
12
+ format: 0,
13
+ mode: "normal",
14
+ style: "",
15
+ text,
16
+ version: 1,
17
+ },
18
+ ],
19
+ direction: "ltr" as const,
20
+ format: "" as const,
21
+ indent: 0,
22
+ textFormat: 0,
23
+ version: 1,
24
+ },
25
+ ],
26
+ direction: "ltr" as const,
27
+ format: "" as const,
28
+ indent: 0,
29
+ version: 1,
30
+ },
31
+ })
32
+
33
+ // Helper to create rich text with multiple elements (headings, paragraphs)
34
+ type RichTextElement =
35
+ | { type: "heading"; tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6"; text: string }
36
+ | { type: "paragraph"; text: string }
37
+
38
+ export const createRichText = (elements: RichTextElement[]) => ({
39
+ root: {
40
+ type: "root",
41
+ children: elements.map((el) => {
42
+ if (el.type === "heading") {
43
+ return {
44
+ type: "heading",
45
+ tag: el.tag,
46
+ children: [
47
+ {
48
+ type: "text",
49
+ detail: 0,
50
+ format: 0,
51
+ mode: "normal",
52
+ style: "",
53
+ text: el.text,
54
+ version: 1,
55
+ },
56
+ ],
57
+ direction: "ltr" as const,
58
+ format: "" as const,
59
+ indent: 0,
60
+ version: 1,
61
+ }
62
+ }
63
+ return {
64
+ type: "paragraph",
65
+ children: [
66
+ {
67
+ type: "text",
68
+ detail: 0,
69
+ format: 0,
70
+ mode: "normal",
71
+ style: "",
72
+ text: el.text,
73
+ version: 1,
74
+ },
75
+ ],
76
+ direction: "ltr" as const,
77
+ format: "" as const,
78
+ indent: 0,
79
+ textFormat: 0,
80
+ version: 1,
81
+ }
82
+ }),
83
+ direction: "ltr" as const,
84
+ format: "" as const,
85
+ indent: 0,
86
+ version: 1,
87
+ },
88
+ })
@@ -0,0 +1,478 @@
1
+ import type { Page } from "@/payload-types"
2
+
3
+ export const directoryHubTerms = (): Partial<Page> => {
4
+ return {
5
+ slug: "terms",
6
+ _status: "published",
7
+ hero: {
8
+ type: "lowImpact",
9
+ richText: {
10
+ root: {
11
+ type: "root",
12
+ children: [
13
+ {
14
+ type: "heading",
15
+ children: [
16
+ {
17
+ type: "text",
18
+ detail: 0,
19
+ format: 0,
20
+ mode: "normal",
21
+ style: "",
22
+ text: "Terms of Service",
23
+ version: 1,
24
+ },
25
+ ],
26
+ direction: "ltr" as const,
27
+ format: "" as const,
28
+ indent: 0,
29
+ tag: "h1",
30
+ version: 1,
31
+ },
32
+ {
33
+ type: "paragraph",
34
+ children: [
35
+ {
36
+ type: "text",
37
+ detail: 0,
38
+ format: 0,
39
+ mode: "normal",
40
+ style: "",
41
+ text: "Last updated: December 2024",
42
+ version: 1,
43
+ },
44
+ ],
45
+ direction: "ltr" as const,
46
+ format: "" as const,
47
+ indent: 0,
48
+ textFormat: 0,
49
+ version: 1,
50
+ },
51
+ ],
52
+ direction: "ltr" as const,
53
+ format: "" as const,
54
+ indent: 0,
55
+ version: 1,
56
+ },
57
+ },
58
+ links: [],
59
+ },
60
+ layout: [
61
+ {
62
+ blockType: "content",
63
+ columns: [
64
+ {
65
+ size: "full",
66
+ richText: {
67
+ root: {
68
+ type: "root",
69
+ children: [
70
+ // Agreement to Terms
71
+ {
72
+ type: "heading",
73
+ children: [
74
+ {
75
+ type: "text",
76
+ detail: 0,
77
+ format: 0,
78
+ mode: "normal",
79
+ style: "",
80
+ text: "1. Agreement to Terms",
81
+ version: 1,
82
+ },
83
+ ],
84
+ direction: "ltr" as const,
85
+ format: "" as const,
86
+ indent: 0,
87
+ tag: "h2",
88
+ version: 1,
89
+ },
90
+ {
91
+ type: "paragraph",
92
+ children: [
93
+ {
94
+ type: "text",
95
+ detail: 0,
96
+ format: 0,
97
+ mode: "normal",
98
+ style: "",
99
+ text: "By accessing or using DirectoryHub, you agree to be bound by these Terms of Service. If you disagree with any part of these terms, you may not access our service.",
100
+ version: 1,
101
+ },
102
+ ],
103
+ direction: "ltr" as const,
104
+ format: "" as const,
105
+ indent: 0,
106
+ textFormat: 0,
107
+ version: 1,
108
+ },
109
+ // Description of Service
110
+ {
111
+ type: "heading",
112
+ children: [
113
+ {
114
+ type: "text",
115
+ detail: 0,
116
+ format: 0,
117
+ mode: "normal",
118
+ style: "",
119
+ text: "2. Description of Service",
120
+ version: 1,
121
+ },
122
+ ],
123
+ direction: "ltr" as const,
124
+ format: "" as const,
125
+ indent: 0,
126
+ tag: "h2",
127
+ version: 1,
128
+ },
129
+ {
130
+ type: "paragraph",
131
+ children: [
132
+ {
133
+ type: "text",
134
+ detail: 0,
135
+ format: 0,
136
+ mode: "normal",
137
+ style: "",
138
+ text: "DirectoryHub is a no-code platform that enables users to create, manage, and monetize directory websites. Our service includes website hosting, payment processing integration, SEO tools, and various features to help you build successful directory businesses.",
139
+ version: 1,
140
+ },
141
+ ],
142
+ direction: "ltr" as const,
143
+ format: "" as const,
144
+ indent: 0,
145
+ textFormat: 0,
146
+ version: 1,
147
+ },
148
+ // User Accounts
149
+ {
150
+ type: "heading",
151
+ children: [
152
+ {
153
+ type: "text",
154
+ detail: 0,
155
+ format: 0,
156
+ mode: "normal",
157
+ style: "",
158
+ text: "3. User Accounts",
159
+ version: 1,
160
+ },
161
+ ],
162
+ direction: "ltr" as const,
163
+ format: "" as const,
164
+ indent: 0,
165
+ tag: "h2",
166
+ version: 1,
167
+ },
168
+ {
169
+ type: "paragraph",
170
+ children: [
171
+ {
172
+ type: "text",
173
+ detail: 0,
174
+ format: 0,
175
+ mode: "normal",
176
+ style: "",
177
+ text: "When you create an account with us, you must provide accurate and complete information. You are responsible for safeguarding your password and for all activities that occur under your account. You must notify us immediately upon becoming aware of any breach of security or unauthorized use of your account.",
178
+ version: 1,
179
+ },
180
+ ],
181
+ direction: "ltr" as const,
182
+ format: "" as const,
183
+ indent: 0,
184
+ textFormat: 0,
185
+ version: 1,
186
+ },
187
+ // Acceptable Use
188
+ {
189
+ type: "heading",
190
+ children: [
191
+ {
192
+ type: "text",
193
+ detail: 0,
194
+ format: 0,
195
+ mode: "normal",
196
+ style: "",
197
+ text: "4. Acceptable Use",
198
+ version: 1,
199
+ },
200
+ ],
201
+ direction: "ltr" as const,
202
+ format: "" as const,
203
+ indent: 0,
204
+ tag: "h2",
205
+ version: 1,
206
+ },
207
+ {
208
+ type: "paragraph",
209
+ children: [
210
+ {
211
+ type: "text",
212
+ detail: 0,
213
+ format: 0,
214
+ mode: "normal",
215
+ style: "",
216
+ text: "You agree not to use our service to: violate any laws or regulations, infringe upon intellectual property rights, distribute malware or harmful code, engage in spam or phishing, harass or abuse others, or attempt to gain unauthorized access to our systems.",
217
+ version: 1,
218
+ },
219
+ ],
220
+ direction: "ltr" as const,
221
+ format: "" as const,
222
+ indent: 0,
223
+ textFormat: 0,
224
+ version: 1,
225
+ },
226
+ // Intellectual Property
227
+ {
228
+ type: "heading",
229
+ children: [
230
+ {
231
+ type: "text",
232
+ detail: 0,
233
+ format: 0,
234
+ mode: "normal",
235
+ style: "",
236
+ text: "5. Intellectual Property",
237
+ version: 1,
238
+ },
239
+ ],
240
+ direction: "ltr" as const,
241
+ format: "" as const,
242
+ indent: 0,
243
+ tag: "h2",
244
+ version: 1,
245
+ },
246
+ {
247
+ type: "paragraph",
248
+ children: [
249
+ {
250
+ type: "text",
251
+ detail: 0,
252
+ format: 0,
253
+ mode: "normal",
254
+ style: "",
255
+ text: "The service and its original content, features, and functionality are and will remain the exclusive property of DirectoryHub. Our service is protected by copyright, trademark, and other laws. You retain ownership of any content you create using our platform.",
256
+ version: 1,
257
+ },
258
+ ],
259
+ direction: "ltr" as const,
260
+ format: "" as const,
261
+ indent: 0,
262
+ textFormat: 0,
263
+ version: 1,
264
+ },
265
+ // Payment Terms
266
+ {
267
+ type: "heading",
268
+ children: [
269
+ {
270
+ type: "text",
271
+ detail: 0,
272
+ format: 0,
273
+ mode: "normal",
274
+ style: "",
275
+ text: "6. Payment Terms",
276
+ version: 1,
277
+ },
278
+ ],
279
+ direction: "ltr" as const,
280
+ format: "" as const,
281
+ indent: 0,
282
+ tag: "h2",
283
+ version: 1,
284
+ },
285
+ {
286
+ type: "paragraph",
287
+ children: [
288
+ {
289
+ type: "text",
290
+ detail: 0,
291
+ format: 0,
292
+ mode: "normal",
293
+ style: "",
294
+ text: "Certain features of our service may require payment. You agree to provide accurate billing information and authorize us to charge your payment method for all applicable fees. Subscriptions automatically renew unless cancelled before the renewal date.",
295
+ version: 1,
296
+ },
297
+ ],
298
+ direction: "ltr" as const,
299
+ format: "" as const,
300
+ indent: 0,
301
+ textFormat: 0,
302
+ version: 1,
303
+ },
304
+ // Limitation of Liability
305
+ {
306
+ type: "heading",
307
+ children: [
308
+ {
309
+ type: "text",
310
+ detail: 0,
311
+ format: 0,
312
+ mode: "normal",
313
+ style: "",
314
+ text: "7. Limitation of Liability",
315
+ version: 1,
316
+ },
317
+ ],
318
+ direction: "ltr" as const,
319
+ format: "" as const,
320
+ indent: 0,
321
+ tag: "h2",
322
+ version: 1,
323
+ },
324
+ {
325
+ type: "paragraph",
326
+ children: [
327
+ {
328
+ type: "text",
329
+ detail: 0,
330
+ format: 0,
331
+ mode: "normal",
332
+ style: "",
333
+ text: "In no event shall DirectoryHub, its directors, employees, partners, agents, suppliers, or affiliates be liable for any indirect, incidental, special, consequential, or punitive damages, including without limitation, loss of profits, data, use, goodwill, or other intangible losses.",
334
+ version: 1,
335
+ },
336
+ ],
337
+ direction: "ltr" as const,
338
+ format: "" as const,
339
+ indent: 0,
340
+ textFormat: 0,
341
+ version: 1,
342
+ },
343
+ // Termination
344
+ {
345
+ type: "heading",
346
+ children: [
347
+ {
348
+ type: "text",
349
+ detail: 0,
350
+ format: 0,
351
+ mode: "normal",
352
+ style: "",
353
+ text: "8. Termination",
354
+ version: 1,
355
+ },
356
+ ],
357
+ direction: "ltr" as const,
358
+ format: "" as const,
359
+ indent: 0,
360
+ tag: "h2",
361
+ version: 1,
362
+ },
363
+ {
364
+ type: "paragraph",
365
+ children: [
366
+ {
367
+ type: "text",
368
+ detail: 0,
369
+ format: 0,
370
+ mode: "normal",
371
+ style: "",
372
+ text: "We may terminate or suspend your account immediately, without prior notice or liability, for any reason, including breach of these Terms. Upon termination, your right to use the service will cease immediately. You may terminate your account at any time by contacting us.",
373
+ version: 1,
374
+ },
375
+ ],
376
+ direction: "ltr" as const,
377
+ format: "" as const,
378
+ indent: 0,
379
+ textFormat: 0,
380
+ version: 1,
381
+ },
382
+ // Changes to Terms
383
+ {
384
+ type: "heading",
385
+ children: [
386
+ {
387
+ type: "text",
388
+ detail: 0,
389
+ format: 0,
390
+ mode: "normal",
391
+ style: "",
392
+ text: "9. Changes to Terms",
393
+ version: 1,
394
+ },
395
+ ],
396
+ direction: "ltr" as const,
397
+ format: "" as const,
398
+ indent: 0,
399
+ tag: "h2",
400
+ version: 1,
401
+ },
402
+ {
403
+ type: "paragraph",
404
+ children: [
405
+ {
406
+ type: "text",
407
+ detail: 0,
408
+ format: 0,
409
+ mode: "normal",
410
+ style: "",
411
+ text: "We reserve the right to modify or replace these Terms at any time. If a revision is material, we will provide at least 30 days notice prior to any new terms taking effect. What constitutes a material change will be determined at our sole discretion.",
412
+ version: 1,
413
+ },
414
+ ],
415
+ direction: "ltr" as const,
416
+ format: "" as const,
417
+ indent: 0,
418
+ textFormat: 0,
419
+ version: 1,
420
+ },
421
+ // Contact Us
422
+ {
423
+ type: "heading",
424
+ children: [
425
+ {
426
+ type: "text",
427
+ detail: 0,
428
+ format: 0,
429
+ mode: "normal",
430
+ style: "",
431
+ text: "10. Contact Us",
432
+ version: 1,
433
+ },
434
+ ],
435
+ direction: "ltr" as const,
436
+ format: "" as const,
437
+ indent: 0,
438
+ tag: "h2",
439
+ version: 1,
440
+ },
441
+ {
442
+ type: "paragraph",
443
+ children: [
444
+ {
445
+ type: "text",
446
+ detail: 0,
447
+ format: 0,
448
+ mode: "normal",
449
+ style: "",
450
+ text: "If you have any questions about these Terms, please contact us at legal@directoryhub.com.",
451
+ version: 1,
452
+ },
453
+ ],
454
+ direction: "ltr" as const,
455
+ format: "" as const,
456
+ indent: 0,
457
+ textFormat: 0,
458
+ version: 1,
459
+ },
460
+ ],
461
+ direction: "ltr" as const,
462
+ format: "" as const,
463
+ indent: 0,
464
+ version: 1,
465
+ },
466
+ },
467
+ },
468
+ ],
469
+ },
470
+ ],
471
+ meta: {
472
+ description:
473
+ "Read DirectoryHub's Terms of Service to understand the rules and guidelines for using our directory building platform.",
474
+ title: "Terms of Service",
475
+ },
476
+ title: "Terms of Service",
477
+ }
478
+ }