astro-tractstack 2.0.0-rc.0

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 (427) hide show
  1. package/LICENSE +110 -0
  2. package/README.md +56 -0
  3. package/astro.d.ts +64 -0
  4. package/bin/create-tractstack.js +483 -0
  5. package/dist/config.js +80 -0
  6. package/dist/index.js +2129 -0
  7. package/package.json +89 -0
  8. package/templates/artpacks/kCz/captainBreakfast_1080px.webp +0 -0
  9. package/templates/artpacks/kCz/captainBreakfast_1920px.webp +0 -0
  10. package/templates/artpacks/kCz/captainBreakfast_600px.webp +0 -0
  11. package/templates/artpacks/kCz/cleanDrips_1080px.webp +0 -0
  12. package/templates/artpacks/kCz/cleanDrips_1920px.webp +0 -0
  13. package/templates/artpacks/kCz/cleanDrips_600px.webp +0 -0
  14. package/templates/artpacks/kCz/crispwaves_1080px.webp +0 -0
  15. package/templates/artpacks/kCz/crispwaves_1920px.webp +0 -0
  16. package/templates/artpacks/kCz/crispwaves_600px.webp +0 -0
  17. package/templates/artpacks/kCz/dragonSkin_1080px.webp +0 -0
  18. package/templates/artpacks/kCz/dragonSkin_1920px.webp +0 -0
  19. package/templates/artpacks/kCz/dragonSkin_600px.webp +0 -0
  20. package/templates/artpacks/kCz/dragon_1080px.webp +0 -0
  21. package/templates/artpacks/kCz/dragon_1920px.webp +0 -0
  22. package/templates/artpacks/kCz/dragon_600px.webp +0 -0
  23. package/templates/artpacks/kCz/nightcity_1080px.webp +0 -0
  24. package/templates/artpacks/kCz/nightcity_1920px.webp +0 -0
  25. package/templates/artpacks/kCz/nightcity_600px.webp +0 -0
  26. package/templates/artpacks/kCz/pattern1_1080px.webp +0 -0
  27. package/templates/artpacks/kCz/pattern1_1920px.webp +0 -0
  28. package/templates/artpacks/kCz/pattern1_600px.webp +0 -0
  29. package/templates/artpacks/kCz/pattern2_1080px.webp +0 -0
  30. package/templates/artpacks/kCz/pattern2_1920px.webp +0 -0
  31. package/templates/artpacks/kCz/pattern2_600px.webp +0 -0
  32. package/templates/artpacks/kCz/skindrips_1080px.webp +0 -0
  33. package/templates/artpacks/kCz/skindrips_1920px.webp +0 -0
  34. package/templates/artpacks/kCz/skindrips_600px.webp +0 -0
  35. package/templates/artpacks/kCz/slimetime_1080px.webp +0 -0
  36. package/templates/artpacks/kCz/slimetime_1920px.webp +0 -0
  37. package/templates/artpacks/kCz/slimetime_600px.webp +0 -0
  38. package/templates/artpacks/kCz/snake_1080px.webp +0 -0
  39. package/templates/artpacks/kCz/snake_1920px.webp +0 -0
  40. package/templates/artpacks/kCz/snake_600px.webp +0 -0
  41. package/templates/artpacks/kCz/toxicshock_1080px.webp +0 -0
  42. package/templates/artpacks/kCz/toxicshock_1920px.webp +0 -0
  43. package/templates/artpacks/kCz/toxicshock_600px.webp +0 -0
  44. package/templates/artpacks/kCz/tractstack_1080px.webp +0 -0
  45. package/templates/artpacks/kCz/tractstack_1920px.webp +0 -0
  46. package/templates/artpacks/kCz/tractstack_600px.webp +0 -0
  47. package/templates/artpacks/kCz/tripdrips_1080px.webp +0 -0
  48. package/templates/artpacks/kCz/tripdrips_1920px.webp +0 -0
  49. package/templates/artpacks/kCz/tripdrips_600px.webp +0 -0
  50. package/templates/artpacks/kCz/wavedrips_1080px.webp +0 -0
  51. package/templates/artpacks/kCz/wavedrips_1920px.webp +0 -0
  52. package/templates/artpacks/kCz/wavedrips_600px.webp +0 -0
  53. package/templates/artpacks/t8k/beach_1080px.webp +0 -0
  54. package/templates/artpacks/t8k/beach_1920px.webp +0 -0
  55. package/templates/artpacks/t8k/beach_600px.webp +0 -0
  56. package/templates/artpacks/t8k/blast_1080px.webp +0 -0
  57. package/templates/artpacks/t8k/blast_1920px.webp +0 -0
  58. package/templates/artpacks/t8k/blast_600px.webp +0 -0
  59. package/templates/artpacks/t8k/bokeh_1080px.webp +0 -0
  60. package/templates/artpacks/t8k/bokeh_1920px.webp +0 -0
  61. package/templates/artpacks/t8k/bokeh_600px.webp +0 -0
  62. package/templates/artpacks/t8k/cartoon_1080px.webp +0 -0
  63. package/templates/artpacks/t8k/cartoon_1920px.webp +0 -0
  64. package/templates/artpacks/t8k/cartoon_600px.webp +0 -0
  65. package/templates/artpacks/t8k/darkeggshell_1080px.webp +0 -0
  66. package/templates/artpacks/t8k/darkeggshell_1920px.webp +0 -0
  67. package/templates/artpacks/t8k/darkeggshell_600px.webp +0 -0
  68. package/templates/artpacks/t8k/explosion_1080px.webp +0 -0
  69. package/templates/artpacks/t8k/explosion_1920px.webp +0 -0
  70. package/templates/artpacks/t8k/explosion_600px.webp +0 -0
  71. package/templates/artpacks/t8k/floral_1080px.webp +0 -0
  72. package/templates/artpacks/t8k/floral_1920px.webp +0 -0
  73. package/templates/artpacks/t8k/floral_600px.webp +0 -0
  74. package/templates/artpacks/t8k/flower_1080px.webp +0 -0
  75. package/templates/artpacks/t8k/flower_1920px.webp +0 -0
  76. package/templates/artpacks/t8k/flower_600px.webp +0 -0
  77. package/templates/artpacks/t8k/foliage_1080px.webp +0 -0
  78. package/templates/artpacks/t8k/foliage_1920px.webp +0 -0
  79. package/templates/artpacks/t8k/foliage_600px.webp +0 -0
  80. package/templates/artpacks/t8k/mist_1080px.webp +0 -0
  81. package/templates/artpacks/t8k/mist_1920px.webp +0 -0
  82. package/templates/artpacks/t8k/mist_600px.webp +0 -0
  83. package/templates/artpacks/t8k/portal_1080px.webp +0 -0
  84. package/templates/artpacks/t8k/portal_1920px.webp +0 -0
  85. package/templates/artpacks/t8k/portal_600px.webp +0 -0
  86. package/templates/artpacks/t8k/storytime_1080px.webp +0 -0
  87. package/templates/artpacks/t8k/storytime_1920px.webp +0 -0
  88. package/templates/artpacks/t8k/storytime_600px.webp +0 -0
  89. package/templates/artpacks/t8k/tacky_1080px.webp +0 -0
  90. package/templates/artpacks/t8k/tacky_1920px.webp +0 -0
  91. package/templates/artpacks/t8k/tacky_600px.webp +0 -0
  92. package/templates/artpacks/t8k/wallpaper_1080px.webp +0 -0
  93. package/templates/artpacks/t8k/wallpaper_1920px.webp +0 -0
  94. package/templates/artpacks/t8k/wallpaper_600px.webp +0 -0
  95. package/templates/brand/favicon.ico +0 -0
  96. package/templates/brand/logo.svg +19 -0
  97. package/templates/brand/static.jpg +0 -0
  98. package/templates/brand/wordmark.svg +4 -0
  99. package/templates/css/custom.css +51 -0
  100. package/templates/css/frontend.css +3519 -0
  101. package/templates/css/storykeep.css +92872 -0
  102. package/templates/custom/minimal/CodeHook.astro +53 -0
  103. package/templates/custom/minimal/CustomRoutes.astro +46 -0
  104. package/templates/custom/with-examples/CodeHook.astro +49 -0
  105. package/templates/custom/with-examples/CustomHero.astro +13 -0
  106. package/templates/custom/with-examples/CustomRoutes.astro +39 -0
  107. package/templates/custom/with-examples/pages/Collections.astro +110 -0
  108. package/templates/env.example +8 -0
  109. package/templates/fonts/Inter-Black.woff2 +0 -0
  110. package/templates/fonts/Inter-Bold.woff2 +0 -0
  111. package/templates/fonts/Inter-Regular.woff2 +0 -0
  112. package/templates/icons/h2.svg +1 -0
  113. package/templates/icons/h3.svg +1 -0
  114. package/templates/icons/h4.svg +1 -0
  115. package/templates/icons/h5.svg +1 -0
  116. package/templates/icons/image.svg +7 -0
  117. package/templates/icons/text.svg +6 -0
  118. package/templates/socials/codepen.svg +1 -0
  119. package/templates/socials/discord.svg +1 -0
  120. package/templates/socials/facebook.svg +1 -0
  121. package/templates/socials/github.svg +1 -0
  122. package/templates/socials/instagram.svg +1 -0
  123. package/templates/socials/linkedin.svg +1 -0
  124. package/templates/socials/mail.svg +1 -0
  125. package/templates/socials/rumble.svg +1 -0
  126. package/templates/socials/tiktok.svg +1 -0
  127. package/templates/socials/twitch.svg +1 -0
  128. package/templates/socials/twitter.svg +1 -0
  129. package/templates/socials/x.svg +1 -0
  130. package/templates/socials/youtube.svg +1 -0
  131. package/templates/src/client/analytics-events.ts +213 -0
  132. package/templates/src/client/belief-events.ts +205 -0
  133. package/templates/src/client/sse.ts +667 -0
  134. package/templates/src/components/Footer.astro +246 -0
  135. package/templates/src/components/Fragment.astro +70 -0
  136. package/templates/src/components/Header.astro +458 -0
  137. package/templates/src/components/Menu.tsx +196 -0
  138. package/templates/src/components/codehooks/BunnyVideoSetup.tsx +692 -0
  139. package/templates/src/components/codehooks/BunnyVideoWrapper.astro +78 -0
  140. package/templates/src/components/codehooks/EpinetDurationSelector.tsx +1020 -0
  141. package/templates/src/components/codehooks/EpinetTableView.tsx +594 -0
  142. package/templates/src/components/codehooks/EpinetWrapper.tsx +424 -0
  143. package/templates/src/components/codehooks/FeaturedContent.astro +273 -0
  144. package/templates/src/components/codehooks/FeaturedContentSetup.tsx +738 -0
  145. package/templates/src/components/codehooks/ListContent.astro +460 -0
  146. package/templates/src/components/codehooks/ListContentSetup.tsx +649 -0
  147. package/templates/src/components/codehooks/SankeyDiagram.tsx +359 -0
  148. package/templates/src/components/compositor/Compositor.tsx +144 -0
  149. package/templates/src/components/compositor/Node.tsx +415 -0
  150. package/templates/src/components/compositor/NodeWithGuid.tsx +25 -0
  151. package/templates/src/components/compositor/PanelVisibilityWrapper.tsx +87 -0
  152. package/templates/src/components/compositor/elements/Belief.tsx +148 -0
  153. package/templates/src/components/compositor/elements/BgImage.tsx +118 -0
  154. package/templates/src/components/compositor/elements/BgVisualBreak.tsx +102 -0
  155. package/templates/src/components/compositor/elements/BunnyVideo.tsx +63 -0
  156. package/templates/src/components/compositor/elements/IdentifyAs.tsx +66 -0
  157. package/templates/src/components/compositor/elements/PlayButton.tsx +19 -0
  158. package/templates/src/components/compositor/elements/SignUp.tsx +179 -0
  159. package/templates/src/components/compositor/elements/Svg.tsx +33 -0
  160. package/templates/src/components/compositor/elements/ToggleBelief.tsx +36 -0
  161. package/templates/src/components/compositor/elements/YouTubeWrapper.tsx +33 -0
  162. package/templates/src/components/compositor/nodes/BgPaneWrapper.tsx +35 -0
  163. package/templates/src/components/compositor/nodes/GhostInsertBlock.tsx +189 -0
  164. package/templates/src/components/compositor/nodes/Markdown.tsx +179 -0
  165. package/templates/src/components/compositor/nodes/Pane.tsx +277 -0
  166. package/templates/src/components/compositor/nodes/Pane_eraser.tsx +69 -0
  167. package/templates/src/components/compositor/nodes/Pane_layout.tsx +77 -0
  168. package/templates/src/components/compositor/nodes/RenderChildren.tsx +19 -0
  169. package/templates/src/components/compositor/nodes/StoryFragment.tsx +35 -0
  170. package/templates/src/components/compositor/nodes/TagElement.tsx +14 -0
  171. package/templates/src/components/compositor/nodes/Widget.tsx +115 -0
  172. package/templates/src/components/compositor/nodes/tagElements/NodeA.tsx +4 -0
  173. package/templates/src/components/compositor/nodes/tagElements/NodeA_eraser.tsx +26 -0
  174. package/templates/src/components/compositor/nodes/tagElements/NodeAnchorComponent.tsx +248 -0
  175. package/templates/src/components/compositor/nodes/tagElements/NodeBasicTag.tsx +684 -0
  176. package/templates/src/components/compositor/nodes/tagElements/NodeBasicTag_eraser.tsx +62 -0
  177. package/templates/src/components/compositor/nodes/tagElements/NodeBasicTag_insert.tsx +120 -0
  178. package/templates/src/components/compositor/nodes/tagElements/NodeBasicTag_settings.tsx +62 -0
  179. package/templates/src/components/compositor/nodes/tagElements/NodeButton.tsx +5 -0
  180. package/templates/src/components/compositor/nodes/tagElements/NodeButton_eraser.tsx +26 -0
  181. package/templates/src/components/compositor/nodes/tagElements/NodeImg.tsx +28 -0
  182. package/templates/src/components/compositor/nodes/tagElements/NodeText.tsx +18 -0
  183. package/templates/src/components/compositor/nodes/tagElements/TabIndicator.tsx +51 -0
  184. package/templates/src/components/compositor/preview/FeaturedContentPreview.tsx +128 -0
  185. package/templates/src/components/compositor/preview/ListContentPreview.tsx +213 -0
  186. package/templates/src/components/compositor/preview/OgImagePreview.tsx +223 -0
  187. package/templates/src/components/compositor/preview/PaneSnapshotGenerator.tsx +199 -0
  188. package/templates/src/components/compositor/preview/PanesPreviewGenerator.tsx +123 -0
  189. package/templates/src/components/compositor/preview/VisualBreakPreview.tsx +154 -0
  190. package/templates/src/components/edit/Header.tsx +181 -0
  191. package/templates/src/components/edit/PanelSwitch.tsx +446 -0
  192. package/templates/src/components/edit/SettingsPanel.tsx +70 -0
  193. package/templates/src/components/edit/ToolBar.tsx +101 -0
  194. package/templates/src/components/edit/ToolMode.tsx +121 -0
  195. package/templates/src/components/edit/context/ContextPaneConfig.tsx +91 -0
  196. package/templates/src/components/edit/context/ContextPaneConfig_slug.tsx +174 -0
  197. package/templates/src/components/edit/context/ContextPaneConfig_title.tsx +186 -0
  198. package/templates/src/components/edit/pane/AddPanePanel.tsx +136 -0
  199. package/templates/src/components/edit/pane/AddPanePanel_break.tsx +470 -0
  200. package/templates/src/components/edit/pane/AddPanePanel_codehook.tsx +264 -0
  201. package/templates/src/components/edit/pane/AddPanePanel_new.tsx +623 -0
  202. package/templates/src/components/edit/pane/AddPanePanel_newAICopy.tsx +107 -0
  203. package/templates/src/components/edit/pane/AddPanePanel_newAICopy_modal.tsx +217 -0
  204. package/templates/src/components/edit/pane/AddPanePanel_newCopyMode.tsx +109 -0
  205. package/templates/src/components/edit/pane/AddPanePanel_newCustomCopy.tsx +39 -0
  206. package/templates/src/components/edit/pane/AddPanePanel_reuse.tsx +445 -0
  207. package/templates/src/components/edit/pane/ConfigPanePanel.tsx +245 -0
  208. package/templates/src/components/edit/pane/PageGen.tsx +485 -0
  209. package/templates/src/components/edit/pane/PageGenSelector.tsx +238 -0
  210. package/templates/src/components/edit/pane/PageGenSpecial.tsx +362 -0
  211. package/templates/src/components/edit/pane/PageGen_preview.tsx +495 -0
  212. package/templates/src/components/edit/pane/PanePanel_impression.tsx +258 -0
  213. package/templates/src/components/edit/pane/PanePanel_path.tsx +268 -0
  214. package/templates/src/components/edit/pane/PanePanel_slug.tsx +219 -0
  215. package/templates/src/components/edit/pane/PanePanel_title.tsx +142 -0
  216. package/templates/src/components/edit/panels/StyleBreakPanel.tsx +182 -0
  217. package/templates/src/components/edit/panels/StyleCodeHookPanel.tsx +439 -0
  218. package/templates/src/components/edit/panels/StyleElementPanel.tsx +177 -0
  219. package/templates/src/components/edit/panels/StyleElementPanel_add.tsx +349 -0
  220. package/templates/src/components/edit/panels/StyleElementPanel_remove.tsx +159 -0
  221. package/templates/src/components/edit/panels/StyleElementPanel_update.tsx +320 -0
  222. package/templates/src/components/edit/panels/StyleImagePanel.tsx +460 -0
  223. package/templates/src/components/edit/panels/StyleImagePanel_add.tsx +296 -0
  224. package/templates/src/components/edit/panels/StyleImagePanel_remove.tsx +153 -0
  225. package/templates/src/components/edit/panels/StyleImagePanel_update.tsx +312 -0
  226. package/templates/src/components/edit/panels/StyleLiElementPanel.tsx +273 -0
  227. package/templates/src/components/edit/panels/StyleLiElementPanel_add.tsx +301 -0
  228. package/templates/src/components/edit/panels/StyleLiElementPanel_remove.tsx +132 -0
  229. package/templates/src/components/edit/panels/StyleLiElementPanel_update.tsx +313 -0
  230. package/templates/src/components/edit/panels/StyleLinkPanel.tsx +346 -0
  231. package/templates/src/components/edit/panels/StyleLinkPanel_add.tsx +265 -0
  232. package/templates/src/components/edit/panels/StyleLinkPanel_config.tsx +240 -0
  233. package/templates/src/components/edit/panels/StyleLinkPanel_remove.tsx +94 -0
  234. package/templates/src/components/edit/panels/StyleLinkPanel_update.tsx +110 -0
  235. package/templates/src/components/edit/panels/StyleParentPanel.tsx +263 -0
  236. package/templates/src/components/edit/panels/StyleParentPanel_add.tsx +275 -0
  237. package/templates/src/components/edit/panels/StyleParentPanel_deleteLayer.tsx +112 -0
  238. package/templates/src/components/edit/panels/StyleParentPanel_remove.tsx +87 -0
  239. package/templates/src/components/edit/panels/StyleParentPanel_update.tsx +141 -0
  240. package/templates/src/components/edit/panels/StyleWidgetPanel.tsx +428 -0
  241. package/templates/src/components/edit/panels/StyleWidgetPanel_add.tsx +292 -0
  242. package/templates/src/components/edit/panels/StyleWidgetPanel_config.tsx +190 -0
  243. package/templates/src/components/edit/panels/StyleWidgetPanel_remove.tsx +152 -0
  244. package/templates/src/components/edit/panels/StyleWidgetPanel_update.tsx +308 -0
  245. package/templates/src/components/edit/state/SaveModal.tsx +811 -0
  246. package/templates/src/components/edit/state/StylesMemory.tsx +310 -0
  247. package/templates/src/components/edit/storyfragment/StoryFragmentConfigPanel.tsx +289 -0
  248. package/templates/src/components/edit/storyfragment/StoryFragmentPanel_menu.tsx +320 -0
  249. package/templates/src/components/edit/storyfragment/StoryFragmentPanel_og.tsx +888 -0
  250. package/templates/src/components/edit/storyfragment/StoryFragmentPanel_slug.tsx +269 -0
  251. package/templates/src/components/edit/storyfragment/StoryFragmentPanel_title.tsx +190 -0
  252. package/templates/src/components/edit/widgets/BeliefWidget.tsx +183 -0
  253. package/templates/src/components/edit/widgets/BunnyWidget.tsx +134 -0
  254. package/templates/src/components/edit/widgets/IdentifyAsWidget.tsx +193 -0
  255. package/templates/src/components/edit/widgets/SignupWidget.tsx +177 -0
  256. package/templates/src/components/edit/widgets/ToggleWidget.tsx +152 -0
  257. package/templates/src/components/edit/widgets/YouTubeWidget.tsx +65 -0
  258. package/templates/src/components/fields/ActionBuilderTimeSelector.tsx +353 -0
  259. package/templates/src/components/fields/ArtpackImage.tsx +480 -0
  260. package/templates/src/components/fields/BackgroundImage.tsx +530 -0
  261. package/templates/src/components/fields/BackgroundImageWrapper.tsx +192 -0
  262. package/templates/src/components/fields/BooleanParam.tsx +67 -0
  263. package/templates/src/components/fields/BunnyMomentSelector.tsx +56 -0
  264. package/templates/src/components/fields/ColorPickerCombo.tsx +284 -0
  265. package/templates/src/components/fields/ImageUpload.tsx +405 -0
  266. package/templates/src/components/fields/MultiParam.tsx +75 -0
  267. package/templates/src/components/fields/PaneBreakCollectionSelector.tsx +97 -0
  268. package/templates/src/components/fields/PaneBreakShapeSelector.tsx +134 -0
  269. package/templates/src/components/fields/SelectedTailwindClass.tsx +44 -0
  270. package/templates/src/components/fields/SingleParam.tsx +73 -0
  271. package/templates/src/components/fields/ViewportComboBox.tsx +252 -0
  272. package/templates/src/components/form/ActionBuilderField.tsx +282 -0
  273. package/templates/src/components/form/ActionBuilderSlugSelector.tsx +182 -0
  274. package/templates/src/components/form/BooleanToggle.tsx +94 -0
  275. package/templates/src/components/form/ColorPicker.tsx +153 -0
  276. package/templates/src/components/form/DateTimeInput.tsx +638 -0
  277. package/templates/src/components/form/EnumSelect.tsx +88 -0
  278. package/templates/src/components/form/FileUpload.tsx +465 -0
  279. package/templates/src/components/form/MagicPathBuilder.tsx +546 -0
  280. package/templates/src/components/form/NumberInput.tsx +101 -0
  281. package/templates/src/components/form/ParagraphArrayInput.tsx +207 -0
  282. package/templates/src/components/form/StringArrayInput.tsx +163 -0
  283. package/templates/src/components/form/StringInput.tsx +88 -0
  284. package/templates/src/components/form/UnsavedChangesBar.tsx +295 -0
  285. package/templates/src/components/form/advanced/APIConfigSection.tsx +69 -0
  286. package/templates/src/components/form/advanced/AuthConfigSection.tsx +97 -0
  287. package/templates/src/components/form/brand/BrandAssetsSection.tsx +93 -0
  288. package/templates/src/components/form/brand/BrandColorsSection.tsx +201 -0
  289. package/templates/src/components/form/brand/SEOSection.tsx +101 -0
  290. package/templates/src/components/form/brand/SiteConfigSection.tsx +61 -0
  291. package/templates/src/components/form/brand/SocialLinksSection.tsx +393 -0
  292. package/templates/src/components/profile/ProfileConsent.tsx +65 -0
  293. package/templates/src/components/profile/ProfileCreate.tsx +462 -0
  294. package/templates/src/components/profile/ProfileEdit.tsx +409 -0
  295. package/templates/src/components/profile/ProfileSwitch.tsx +255 -0
  296. package/templates/src/components/profile/ProfileUnlock.tsx +221 -0
  297. package/templates/src/components/storykeep/Dashboard.tsx +160 -0
  298. package/templates/src/components/storykeep/Dashboard_Activity.tsx +56 -0
  299. package/templates/src/components/storykeep/Dashboard_Advanced.tsx +165 -0
  300. package/templates/src/components/storykeep/Dashboard_Analytics.tsx +451 -0
  301. package/templates/src/components/storykeep/Dashboard_Branding.tsx +95 -0
  302. package/templates/src/components/storykeep/Dashboard_Content.tsx +191 -0
  303. package/templates/src/components/storykeep/controls/UsageCell.tsx +71 -0
  304. package/templates/src/components/storykeep/controls/content/BeliefForm.tsx +378 -0
  305. package/templates/src/components/storykeep/controls/content/BeliefTable.tsx +329 -0
  306. package/templates/src/components/storykeep/controls/content/ContentBrowser.tsx +385 -0
  307. package/templates/src/components/storykeep/controls/content/ContentSummary.tsx +149 -0
  308. package/templates/src/components/storykeep/controls/content/KnownResourceForm.tsx +397 -0
  309. package/templates/src/components/storykeep/controls/content/KnownResourceTable.tsx +260 -0
  310. package/templates/src/components/storykeep/controls/content/ManageContent.tsx +439 -0
  311. package/templates/src/components/storykeep/controls/content/MenuForm.tsx +239 -0
  312. package/templates/src/components/storykeep/controls/content/MenuTable.tsx +332 -0
  313. package/templates/src/components/storykeep/controls/content/ResourceBulkIngest.tsx +724 -0
  314. package/templates/src/components/storykeep/controls/content/ResourceForm.tsx +355 -0
  315. package/templates/src/components/storykeep/controls/content/ResourceTable.tsx +222 -0
  316. package/templates/src/components/storykeep/controls/content/StoryFragmentTable.tsx +482 -0
  317. package/templates/src/components/storykeep/state/BrandingWrapper.tsx +42 -0
  318. package/templates/src/components/storykeep/state/FetchAnalytics.tsx +350 -0
  319. package/templates/src/components/storykeep/widgets/ResponsiveLine.tsx +319 -0
  320. package/templates/src/components/storykeep/widgets/Wizard.tsx +278 -0
  321. package/templates/src/components/tenant/RegistrationForm.tsx +447 -0
  322. package/templates/src/components/widgets/BunnyVideoHero.astro +775 -0
  323. package/templates/src/components/widgets/Impression.tsx +102 -0
  324. package/templates/src/components/widgets/ImpressionWrapper.tsx +214 -0
  325. package/templates/src/constants/beliefs.ts +61 -0
  326. package/templates/src/constants/brandThemes.ts +133 -0
  327. package/templates/src/constants/prompts.json +55 -0
  328. package/templates/src/constants/shapes.ts +556 -0
  329. package/templates/src/constants/stopWords.ts +116 -0
  330. package/templates/src/constants/tailwindColors.json +344 -0
  331. package/templates/src/constants.ts +274 -0
  332. package/templates/src/hooks/useFormState.ts +203 -0
  333. package/templates/src/layouts/Layout.astro +290 -0
  334. package/templates/src/lib/session.ts +126 -0
  335. package/templates/src/lib/storyData.ts +56 -0
  336. package/templates/src/middleware.ts +52 -0
  337. package/templates/src/pages/404.astro +54 -0
  338. package/templates/src/pages/[...slug]/edit.astro +216 -0
  339. package/templates/src/pages/[...slug].astro +148 -0
  340. package/templates/src/pages/api/auth/decode.ts +101 -0
  341. package/templates/src/pages/api/auth/login.ts +122 -0
  342. package/templates/src/pages/api/auth/logout.ts +37 -0
  343. package/templates/src/pages/api/auth/profile.ts +76 -0
  344. package/templates/src/pages/api/orphan-analysis.ts +106 -0
  345. package/templates/src/pages/api/tailwind.ts +116 -0
  346. package/templates/src/pages/collections/[param1].astro +65 -0
  347. package/templates/src/pages/context/[...contextSlug]/edit.astro +207 -0
  348. package/templates/src/pages/context/[...contextSlug].astro +161 -0
  349. package/templates/src/pages/llms.txt.ts +122 -0
  350. package/templates/src/pages/maint.astro +183 -0
  351. package/templates/src/pages/media/[...slug].astro +67 -0
  352. package/templates/src/pages/robots.txt.ts +36 -0
  353. package/templates/src/pages/sandbox/activate.astro +258 -0
  354. package/templates/src/pages/sandbox/register.astro +44 -0
  355. package/templates/src/pages/sandbox/success.astro +179 -0
  356. package/templates/src/pages/sitemap.xml.ts +119 -0
  357. package/templates/src/pages/storykeep/advanced.astro +69 -0
  358. package/templates/src/pages/storykeep/branding.astro +57 -0
  359. package/templates/src/pages/storykeep/content.astro +71 -0
  360. package/templates/src/pages/storykeep/init.astro +36 -0
  361. package/templates/src/pages/storykeep/login.astro +266 -0
  362. package/templates/src/pages/storykeep/logout.astro +84 -0
  363. package/templates/src/pages/storykeep/profile.astro +98 -0
  364. package/templates/src/pages/storykeep.astro +81 -0
  365. package/templates/src/stores/analytics.ts +171 -0
  366. package/templates/src/stores/backend.ts +16 -0
  367. package/templates/src/stores/navigation.ts +149 -0
  368. package/templates/src/stores/nodes.ts +2390 -0
  369. package/templates/src/stores/nodesHistory.ts +85 -0
  370. package/templates/src/stores/notificationSystem.ts +41 -0
  371. package/templates/src/stores/orphanAnalysis.ts +409 -0
  372. package/templates/src/stores/storykeep.ts +247 -0
  373. package/templates/src/types/astro.ts +86 -0
  374. package/templates/src/types/compositorTypes.ts +456 -0
  375. package/templates/src/types/formTypes.ts +281 -0
  376. package/templates/src/types/multiTenant.ts +77 -0
  377. package/templates/src/types/nodeProps.ts +66 -0
  378. package/templates/src/types/tractstack.ts +445 -0
  379. package/templates/src/utils/aai/getTitleSlug.ts +72 -0
  380. package/templates/src/utils/actions/actionButton.ts +101 -0
  381. package/templates/src/utils/actions/lispLexer.ts +57 -0
  382. package/templates/src/utils/actions/preParse_Action.ts +85 -0
  383. package/templates/src/utils/actions/preParse_Bunny.ts +50 -0
  384. package/templates/src/utils/actions/preParse_Clicked.ts +87 -0
  385. package/templates/src/utils/actions/preParse_Impression.ts +71 -0
  386. package/templates/src/utils/api/advancedConfig.ts +66 -0
  387. package/templates/src/utils/api/advancedHelpers.ts +134 -0
  388. package/templates/src/utils/api/beliefConfig.ts +87 -0
  389. package/templates/src/utils/api/beliefHelpers.ts +196 -0
  390. package/templates/src/utils/api/brandConfig.ts +126 -0
  391. package/templates/src/utils/api/brandHelpers.ts +155 -0
  392. package/templates/src/utils/api/fileHelpers.ts +306 -0
  393. package/templates/src/utils/api/menuConfig.ts +57 -0
  394. package/templates/src/utils/api/menuHelpers.ts +156 -0
  395. package/templates/src/utils/api/resourceConfig.ts +158 -0
  396. package/templates/src/utils/api/resourceHelpers.ts +72 -0
  397. package/templates/src/utils/api/tenantConfig.ts +97 -0
  398. package/templates/src/utils/api/tenantHelpers.ts +172 -0
  399. package/templates/src/utils/api.ts +183 -0
  400. package/templates/src/utils/auth.ts +150 -0
  401. package/templates/src/utils/backend.ts +243 -0
  402. package/templates/src/utils/compositor/TemplateMarkdowns.ts +118 -0
  403. package/templates/src/utils/compositor/TemplateNodes.ts +138 -0
  404. package/templates/src/utils/compositor/TemplatePanes.ts +100 -0
  405. package/templates/src/utils/compositor/allowInsert.ts +100 -0
  406. package/templates/src/utils/compositor/domHelpers.ts +37 -0
  407. package/templates/src/utils/compositor/handleClickEvent.ts +131 -0
  408. package/templates/src/utils/compositor/nodesHelper.ts +491 -0
  409. package/templates/src/utils/compositor/nodesMarkdownGenerator.ts +292 -0
  410. package/templates/src/utils/compositor/processMarkdown.ts +431 -0
  411. package/templates/src/utils/compositor/reduceNodesClassNames.ts +192 -0
  412. package/templates/src/utils/compositor/tailwindClasses.ts +1795 -0
  413. package/templates/src/utils/compositor/tailwindColors.ts +227 -0
  414. package/templates/src/utils/compositor/templateMarkdownStyles.ts +1265 -0
  415. package/templates/src/utils/compositor/typeGuards.ts +193 -0
  416. package/templates/src/utils/etl/extractor.ts +119 -0
  417. package/templates/src/utils/etl/index.ts +88 -0
  418. package/templates/src/utils/etl/loader.ts +36 -0
  419. package/templates/src/utils/etl/transformer.ts +286 -0
  420. package/templates/src/utils/helpers.ts +435 -0
  421. package/templates/src/utils/layout.ts +209 -0
  422. package/templates/src/utils/profileStorage.ts +306 -0
  423. package/templates/src/utils/useInterval.ts +27 -0
  424. package/templates/tailwind.config.cjs +169 -0
  425. package/utils/create-resolver.ts +10 -0
  426. package/utils/inject-files.ts +2140 -0
  427. package/utils/validate-config.ts +43 -0
@@ -0,0 +1,53 @@
1
+ ---
2
+ // CodeHook Dispatcher - Minimal Version
3
+ // Framework components are always available, custom components are commented for guidance
4
+
5
+ import FeaturedContent from '@/components/codehooks/FeaturedContent.astro';
6
+ import ListContent from '@/components/codehooks/ListContent.astro';
7
+ import BunnyVideoWrapper from '@/components/codehooks/BunnyVideoWrapper.astro';
8
+ import EpinetWrapper from '@/components/codehooks/EpinetWrapper';
9
+ import type { FullContentMapItem } from '@/types/tractstack';
10
+ // import CustomHero from './CustomHero.astro'; // Uncomment to add custom components
11
+
12
+ export interface Props {
13
+ target: string;
14
+ fullContentMap: FullContentMapItem[];
15
+ options?: {
16
+ params?: {
17
+ options?: string;
18
+ };
19
+ };
20
+ }
21
+
22
+ const { target, options, fullContentMap } = Astro.props;
23
+
24
+ export const components = {
25
+ 'featured-content': true,
26
+ 'list-content': true,
27
+ 'bunny-video': true,
28
+ epinet: true,
29
+ // "custom-hero": true, // Uncomment when you create CustomHero.astro
30
+ };
31
+ ---
32
+
33
+ {
34
+ target === 'list-content' ? (
35
+ <ListContent options={options} contentMap={fullContentMap} />
36
+ ) : target === 'featured-content' ? (
37
+ <FeaturedContent options={options} contentMap={fullContentMap} />
38
+ ) : target === 'bunny-video' ? (
39
+ <BunnyVideoWrapper options={options} />
40
+ ) : target === 'epinet' ? (
41
+ <EpinetWrapper fullContentMap={fullContentMap} client:only="react" /> /*
42
+ : target === "custom-hero" ? (
43
+ <CustomHero />
44
+ ) */
45
+ ) : (
46
+ <div class="rounded-lg bg-gray-50 p-8 text-center">
47
+ <p class="text-gray-600">CodeHook target "{target}" not found</p>
48
+ <p class="mt-2 text-sm text-gray-500">
49
+ Available: list-content, featured-content, bunny-video, epinet
50
+ </p>
51
+ </div>
52
+ )
53
+ }
@@ -0,0 +1,46 @@
1
+ ---
2
+ // V2 Custom Routes - Minimal Version
3
+ // This is a stub - implement your custom routes here
4
+
5
+ export interface Props {
6
+ route: string;
7
+ slug: string;
8
+ resources: any[];
9
+ variation?: string;
10
+ }
11
+
12
+ const { route, slug, resources } = Astro.props;
13
+
14
+ // Define available routes here
15
+ export const routes = {
16
+ // collections: true, // Uncomment to enable collections route
17
+ };
18
+
19
+ // Example implementation for collections:
20
+ // const payload = resources; // V2 resources are already filtered by backend
21
+ ---
22
+
23
+ {
24
+ (
25
+ /*
26
+ Uncomment and customize routes as needed:
27
+
28
+ route === "collections" ? (
29
+ <Collections route={route} slug={slug} resources={payload} />
30
+ ) :
31
+ */
32
+ <div class="rounded-lg bg-gray-50 p-8 text-center">
33
+ <p class="text-gray-600">Custom route "{route}" not implemented</p>
34
+ <p class="mt-2 text-sm text-gray-500">
35
+ Edit <code>src/custom/CustomRoutes.astro</code> to add your custom
36
+ routes
37
+ </p>
38
+ <div class="mt-4 rounded border bg-white p-4 text-left text-xs">
39
+ <p class="mb-2 font-bold">Route Data:</p>
40
+ <p>Route: {route}</p>
41
+ <p>Slug: {slug}</p>
42
+ <p>Resources: {resources.length} items</p>
43
+ </div>
44
+ </div>
45
+ )
46
+ }
@@ -0,0 +1,49 @@
1
+ ---
2
+ // V2 CodeHook Dispatcher - With Examples
3
+ // Framework components and custom examples are available
4
+
5
+ import CustomHero from './CustomHero.astro';
6
+ import FeaturedContent from '@/components/codehooks/FeaturedContent.astro';
7
+ import ListContent from '@/components/codehooks/ListContent.astro';
8
+ import BunnyVideoWrapper from '@/components/codehooks/BunnyVideoWrapper.astro';
9
+ import EpinetWrapper from '@/components/codehooks/EpinetWrapper';
10
+ import type { FullContentMapItem } from '@/types/tractstack';
11
+
12
+ export interface Props {
13
+ target: string;
14
+ fullContentMap: FullContentMapItem[];
15
+ options?: {
16
+ params?: {
17
+ options?: string;
18
+ };
19
+ };
20
+ }
21
+
22
+ const { target, options, fullContentMap } = Astro.props;
23
+
24
+ export const components = {
25
+ 'custom-hero': true,
26
+ 'featured-content': true,
27
+ 'list-content': true,
28
+ 'bunny-video': true,
29
+ epinet: true,
30
+ };
31
+ ---
32
+
33
+ {
34
+ target === 'list-content' ? (
35
+ <ListContent options={options} contentMap={fullContentMap} />
36
+ ) : target === 'featured-content' ? (
37
+ <FeaturedContent options={options} contentMap={fullContentMap} />
38
+ ) : target === 'bunny-video' ? (
39
+ <BunnyVideoWrapper options={options} />
40
+ ) : target === 'custom-hero' ? (
41
+ <CustomHero />
42
+ ) : target === 'epinet' ? (
43
+ <EpinetWrapper fullContentMap={fullContentMap} client:only="react" />
44
+ ) : (
45
+ <div class="rounded-lg bg-gray-50 p-8 text-center">
46
+ <p class="text-gray-600">CodeHook target "{target}" not found</p>
47
+ </div>
48
+ )
49
+ }
@@ -0,0 +1,13 @@
1
+ ---
2
+ // Custom Hero Component Example
3
+ ---
4
+
5
+ <div class="flex h-80 items-center justify-center bg-yellow-300">
6
+ <div class="text-center">
7
+ <h1 class="mb-4 text-4xl font-bold text-gray-900">Custom Hero Component</h1>
8
+ <p class="text-lg text-gray-700">This is an example CodeHook component</p>
9
+ <p class="mt-2 text-sm text-gray-600">
10
+ Edit this in src/custom/CustomHero.astro
11
+ </p>
12
+ </div>
13
+ </div>
@@ -0,0 +1,39 @@
1
+ ---
2
+ // V2 Custom Routes - With Examples
3
+ // Full Collections implementation included
4
+
5
+ import Collections from './pages/Collections.astro';
6
+
7
+ export interface Props {
8
+ route: string;
9
+ slug: string;
10
+ resources: any[];
11
+ variation?: string;
12
+ }
13
+
14
+ const { route, slug, resources } = Astro.props;
15
+
16
+ export const routes = {
17
+ collections: true,
18
+ };
19
+
20
+ // V2: Resources are already filtered by backend, no client-side extraction needed
21
+ const payload = resources;
22
+ ---
23
+
24
+ {
25
+ route === 'collections' ? (
26
+ <Collections route={route} slug={slug} resources={payload} />
27
+ ) : (
28
+ <div class="rounded-lg bg-gray-50 p-8 text-center">
29
+ <p class="text-gray-600">Custom route "{route}" not found</p>
30
+ <p class="mt-2 text-sm text-gray-500">Available routes: collections</p>
31
+ <div class="mt-4 rounded border bg-white p-4 text-left text-xs">
32
+ <p class="mb-2 font-bold">Route Data:</p>
33
+ <p>Route: {route}</p>
34
+ <p>Slug: {slug}</p>
35
+ <p>Resources: {resources.length} items</p>
36
+ </div>
37
+ </div>
38
+ )
39
+ }
@@ -0,0 +1,110 @@
1
+ ---
2
+ import Layout from '@/layouts/Layout.astro';
3
+ //import type { MenuNode } from '@/types/tractstack';
4
+
5
+ export interface Props {
6
+ route: string;
7
+ slug: string;
8
+ variation?: string;
9
+ resources: any[];
10
+ }
11
+
12
+ const { route, slug, resources } = Astro.props;
13
+
14
+ // uncomment if you add a menu id
15
+ //
16
+ //let menuPayload: MenuNode | null = null;
17
+ //const hardcodedMenuId = '';
18
+ //const goBackend = import.meta.env.PUBLIC_GO_BACKEND || 'http://localhost:8080';
19
+ //try {
20
+ // const menuResponse = await fetch(`${goBackend}/api/v1/nodes/menus/${hardcodedMenuId}`);
21
+ // if (menuResponse.ok) {
22
+ // menuPayload = await menuResponse.json();
23
+ // }
24
+ //} catch (error) {
25
+ // console.error('Error fetching menu:', error);
26
+ //}
27
+
28
+ const targetSlug = `${route}-${slug}`;
29
+ const categoryResources = resources || [];
30
+ const activeResource = categoryResources.find(
31
+ (resource: any) => resource.slug === targetSlug
32
+ );
33
+
34
+ const pageTitle = `${route}=${slug}`;
35
+ ---
36
+
37
+ <Layout title={pageTitle}>
38
+ <div class="border-b bg-gray-100 p-4">
39
+ <h1 class="text-2xl font-bold">{pageTitle}</h1>
40
+ <p class="text-sm text-gray-600">
41
+ Collections page - slug: {slug}
42
+ </p>
43
+ </div>
44
+
45
+ <main id="main-content" class="min-h-screen w-full">
46
+ <div class="bg-white p-8">
47
+ {
48
+ slug ? (
49
+ <div class="mx-auto max-w-4xl">
50
+ <h2 class="mb-4 text-xl font-bold">
51
+ Collection: {route}={slug}
52
+ </h2>
53
+
54
+ {activeResource ? (
55
+ <div class="mb-6 rounded-lg bg-blue-50 p-6">
56
+ <h3 class="mb-2 text-lg font-bold text-blue-900">
57
+ {activeResource.title}
58
+ </h3>
59
+ <p class="mb-2 text-blue-800">{activeResource.oneliner}</p>
60
+ <div class="text-sm text-blue-600">
61
+ <p>ID: {activeResource.id}</p>
62
+ <p>Slug: {activeResource.slug}</p>
63
+ <p>Category: {activeResource.categorySlug || 'none'}</p>
64
+ </div>
65
+ </div>
66
+ ) : (
67
+ <div class="mb-6 rounded-lg bg-yellow-50 p-6">
68
+ <p class="text-yellow-800">
69
+ No active resource found for slug: {targetSlug}
70
+ </p>
71
+ </div>
72
+ )}
73
+
74
+ <div class="rounded-lg bg-gray-50 p-6">
75
+ <h3 class="mb-4 text-lg font-bold">
76
+ All Resources in Category ({categoryResources.length})
77
+ </h3>
78
+ {categoryResources.length > 0 ? (
79
+ <div class="grid gap-4 md:grid-cols-2">
80
+ {categoryResources.map((resource: any) => (
81
+ <div class="rounded border bg-white p-4">
82
+ <h4 class="font-bold text-gray-900">{resource.title}</h4>
83
+ <p class="mt-1 text-sm text-gray-600">
84
+ {resource.oneliner}
85
+ </p>
86
+ <div class="mt-2 text-xs text-gray-500">
87
+ <p>Slug: {resource.slug}</p>
88
+ {resource.categorySlug && (
89
+ <p>Category: {resource.categorySlug}</p>
90
+ )}
91
+ </div>
92
+ </div>
93
+ ))}
94
+ </div>
95
+ ) : (
96
+ <p class="text-gray-500">
97
+ No resources found in this category.
98
+ </p>
99
+ )}
100
+ </div>
101
+ </div>
102
+ ) : null
103
+ }
104
+ </div>
105
+ </main>
106
+
107
+ <div class="border-t bg-gray-100 p-4">
108
+ <p class="text-sm text-gray-600">Collections footer</p>
109
+ </div>
110
+ </Layout>
@@ -0,0 +1,8 @@
1
+ # For host project using TractStack integration --->
2
+ ## these are added via npx create-tractstack
3
+
4
+ # REQUIRED
5
+ PUBLIC_GO_BACKEND=http://localhost:8080
6
+ PUBLIC_TENANTID=default
7
+ # OPTIONAL: Multi-Tenant Configuration
8
+ PUBLIC_ENABLE_MULTI_TENANT=false
Binary file
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" image-rendering="optimizeQuality" fill-rule="evenodd" clip-rule="evenodd" viewBox="0 0 512 275.824"><path fill-rule="nonzero" d="M150.843 275.824v-95.243H86.198v95.243H0V6.464h86.198v95.249h64.645V6.464h86.193v269.36h-86.193zM303.84 77.901l-11.204-61.526C328.838 5.462 364.897 0 400.809 0c14.365 0 26.362.433 35.988 1.293 9.625.86 19.607 3.019 29.95 6.464 10.344 3.447 18.534 8.191 24.566 14.223C505.107 35.769 512 56.888 512 85.333c0 28.444-8.043 49.42-24.133 62.925-16.09 13.499-49.996 29.014-101.713 46.545v12.064h121.539v68.957H286.599v-53.87c0-16.09 3.019-31.463 9.051-46.117 8.928-19.913 38.757-40.061 58.4-49.131 21.751-10.038 43.705-19.806 65.292-30.165V70.576c-39.24-4.372-76.974-1.792-115.502 7.325z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" image-rendering="optimizeQuality" fill-rule="evenodd" clip-rule="evenodd" viewBox="0 0 512 280.87"><path fill-rule="nonzero" d="M150.086 274.438v-94.765H85.765v94.765H0V6.432h85.765v94.77h64.321V6.432h85.76v268.006h-85.76zM419.809 103.45V70.221c-35.124-5.87-78.74-.379-113.205 6.858l-11.153-60.786C330.332 5.434 364.062 0 396.653 0c28.013 0 48.312 1.717 60.887 5.145 12.581 3.429 21.869 7.577 27.876 12.434 13.148 11.153 19.727 28.018 19.727 50.601 0 28.59-11.866 49.173-35.594 61.749v2.147C497.85 143.795 512 165.092 512 195.966c0 15.154-2.355 28.089-7.075 38.806-4.715 10.721-10.646 19.012-17.792 24.872-7.151 5.86-16.582 10.504-28.306 13.938-17.438 4.857-41.951 7.288-73.539 7.288s-63.247-3.717-94.982-11.147l12.008-68.074c40.497 9.805 76.198 12.565 117.495 7.288v-32.804l-73.757-7.288v-56.82l73.757-8.575z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" image-rendering="optimizeQuality" fill-rule="evenodd" clip-rule="evenodd" viewBox="0 0 512 262.508"><path fill-rule="nonzero" d="M147.007 262.508v-92.82H84.006v92.82H0V0h84.006v92.826h63.001V0h84.001v262.508h-84.001zm253.688 0v-42.002H271.334v-52.5L336.012 0h148.689v148.267H512v72.239h-27.299v42.002h-84.006zm-6.826-199.506l-40.003 85.265h52.078V63.002h-12.075z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" image-rendering="optimizeQuality" fill-rule="evenodd" clip-rule="evenodd" viewBox="0 0 512 273.292"><path fill-rule="nonzero" d="M149.459 266.887v-94.369H85.406v94.369H0V0h85.406v94.374h64.053V0h85.401v266.887h-85.401zm137.501-4.696l11.958-70.457c27.043 6.546 50.743 9.819 71.098 9.819 20.356 0 37.08-.852 50.173-2.562v-24.017c-29.545-3.152-80.863-3.576-103.977-18.898-12.659-8.392-19.004-23.417-19.004-45.049 0-3.131 1.422-40.14 4.272-111.027h194.29l-6.405 73.448-101.202-5.976v29.782C450.546 104.642 512 102.514 512 177.642c0 17.935-2.42 33.09-7.262 45.477-4.837 12.382-10.602 21.778-17.294 28.183-6.688 6.406-16.155 11.313-28.395 14.732-12.241 3.415-22.988 5.478-32.243 6.188-9.25.712-21.561 1.07-36.934 1.07-37.009 0-71.315-3.702-102.912-11.101z"/></svg>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
3
+ viewBox="0 0 122.88 122.151" width="512" height="273.292" preserveAspectRatio="xMidYMid meet">
4
+ <g>
5
+ <path d="M8.676,0h105.529c2.405,0,4.557,0.984,6.124,2.552c1.567,1.567,2.551,3.754,2.551,6.124v104.8 c0,2.405-0.983,4.557-2.551,6.124c-1.568,1.567-3.755,2.552-6.124,2.552H8.676c-2.406,0-4.557-0.984-6.124-2.553 C0.984,118.032,0,115.845,0,113.476V8.675C0,6.27,0.984,4.119,2.552,2.552C4.12,0.984,6.307,0,8.676,0L8.676,0z M9.097,88.323 l35.411-33.9c1.421-1.313,3.645-1.167,4.921,0.255c0.037,0.036,0.037,0.073,0.073,0.073l31.459,37.218l4.812-29.6 c0.328-1.896,2.114-3.208,4.01-2.879c0.729,0.109,1.385,0.474,1.895,0.948l22.07,23.184V10.773c0-0.474-0.183-0.875-0.511-1.166 c-0.291-0.292-0.729-0.511-1.166-0.511H10.737c-0.474,0-0.875,0.182-1.166,0.511c-0.292,0.291-0.511,0.729-0.511,1.166v77.55H9.097 L9.097,88.323z M90.526,19.866c3.464,0,6.635,1.422,8.895,3.682c2.297,2.296,3.682,5.431,3.682,8.895 c0,3.463-1.421,6.634-3.682,8.894c-2.296,2.297-5.431,3.682-8.895,3.682c-3.462,0-6.634-1.421-8.894-3.682 c-2.297-2.296-3.682-5.431-3.682-8.894c0-3.463,1.421-6.634,3.682-8.895C83.929,21.251,87.064,19.866,90.526,19.866L90.526,19.866z"/>
6
+ </g>
7
+ </svg>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
3
+ viewBox="0 0 100.16 122.88" width="512" height="273.292" preserveAspectRatio="xMidYMid meet">
4
+ <style type="text/css">.st0{fill-rule:evenodd;clip-rule:evenodd;}</style>
5
+ <path class="st0" d="M89.06,18.28v101c0,1.98-1.64,3.6-3.66,3.6H74.43c-2.01,0-3.66-1.62-3.66-3.6v-101H58.24v100.99 c0,1.98-1.64,3.6-3.66,3.6H43.62c-2.01,0-3.66-1.62-3.66-3.6V79l-0.39,0C17.72,79,0,61.28,0,39.44C0,14.12,20.45,0,43.75,0H96.5 c2.01,0,3.66,1.64,3.66,3.66v10.97c0,2.01-1.65,3.66-3.66,3.66H89.06L89.06,18.28z"/>
6
+ </svg>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg enable-background="new 0 0 128 128" id="Social_Icons" version="1.1" viewBox="0 0 128 128" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="_x36__stroke"><g id="Codepen"><rect clip-rule="evenodd" fill="none" fill-rule="evenodd" height="128" width="128"/><path clip-rule="evenodd" d="M117,73.204L103.24,64L117,54.796V73.204z M69.5,112.22V86.568L93.348,70.62l19.248,12.872L69.5,112.22z M64,77.012L44.548,64L64,50.988L83.456,64L64,77.012z M58.5,112.22 L15.404,83.492L34.656,70.62L58.5,86.568V112.22z M11,54.796L24.764,64L11,73.204V54.796z M58.5,15.78v25.652L34.656,57.384 L15.404,44.508L58.5,15.78z M69.5,15.78l43.096,28.728L93.348,57.384L69.5,41.432V15.78z M127.952,43.784 c-0.012-0.084-0.032-0.16-0.044-0.24c-0.028-0.156-0.056-0.312-0.096-0.46c-0.024-0.092-0.06-0.18-0.088-0.268 c-0.044-0.136-0.088-0.268-0.14-0.4c-0.036-0.092-0.08-0.184-0.124-0.268c-0.056-0.128-0.116-0.248-0.188-0.364 c-0.048-0.088-0.104-0.172-0.156-0.256c-0.072-0.116-0.148-0.228-0.232-0.336c-0.06-0.08-0.124-0.16-0.188-0.236 c-0.088-0.104-0.18-0.204-0.276-0.3c-0.072-0.072-0.14-0.148-0.216-0.212c-0.104-0.092-0.208-0.18-0.312-0.264 c-0.084-0.064-0.164-0.128-0.248-0.188c-0.032-0.02-0.06-0.048-0.092-0.068l-58.5-39c-1.848-1.232-4.252-1.232-6.104,0l-58.496,39 c-0.032,0.02-0.06,0.048-0.092,0.068c-0.088,0.06-0.168,0.124-0.248,0.188C2.004,40.264,1.9,40.352,1.8,40.444 c-0.076,0.064-0.148,0.14-0.22,0.212c-0.096,0.096-0.188,0.196-0.272,0.3c-0.068,0.076-0.132,0.156-0.192,0.236 c-0.08,0.108-0.156,0.22-0.228,0.336c-0.056,0.084-0.108,0.168-0.16,0.256C0.66,41.9,0.6,42.02,0.54,42.148 c-0.04,0.084-0.084,0.176-0.12,0.268c-0.056,0.132-0.1,0.264-0.144,0.4c-0.028,0.088-0.06,0.176-0.084,0.268 c-0.04,0.148-0.068,0.304-0.096,0.46c-0.016,0.08-0.036,0.156-0.044,0.24C0.02,44.016,0,44.256,0,44.5v39 c0,0.24,0.02,0.48,0.052,0.72c0.008,0.076,0.028,0.156,0.044,0.236c0.028,0.156,0.056,0.308,0.096,0.46 c0.024,0.092,0.056,0.18,0.084,0.268c0.044,0.132,0.088,0.268,0.144,0.404c0.036,0.088,0.08,0.176,0.12,0.264 c0.06,0.124,0.12,0.244,0.188,0.368c0.052,0.084,0.104,0.168,0.16,0.252c0.072,0.116,0.148,0.224,0.228,0.332 c0.06,0.084,0.124,0.164,0.192,0.24c0.084,0.1,0.176,0.204,0.272,0.296c0.072,0.076,0.144,0.148,0.22,0.216 c0.1,0.092,0.204,0.18,0.312,0.264c0.08,0.064,0.16,0.128,0.248,0.188c0.032,0.02,0.06,0.048,0.092,0.068l58.496,39 C61.872,127.692,62.936,128,64,128s2.128-0.308,3.052-0.924l58.5-39c0.032-0.02,0.06-0.048,0.092-0.068 c0.084-0.06,0.164-0.124,0.248-0.188c0.104-0.084,0.208-0.172,0.312-0.264c0.076-0.068,0.144-0.14,0.216-0.216 c0.096-0.092,0.188-0.196,0.276-0.296c0.064-0.076,0.128-0.156,0.188-0.24c0.084-0.108,0.16-0.216,0.232-0.332 c0.052-0.084,0.108-0.168,0.156-0.252c0.072-0.124,0.132-0.244,0.188-0.368c0.044-0.088,0.088-0.176,0.124-0.264 c0.052-0.136,0.096-0.272,0.14-0.404c0.028-0.088,0.064-0.176,0.088-0.268c0.04-0.152,0.068-0.304,0.096-0.46 c0.012-0.08,0.032-0.16,0.044-0.236c0.032-0.24,0.048-0.48,0.048-0.72v-39C128,44.256,127.984,44.016,127.952,43.784z" fill="#0B0B0A" fill-rule="evenodd" id="Codepen_1_"/></g></g></svg>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" ?><svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><defs><style>.cls-1{fill:none;}</style></defs><title/><g id="Discord"><path class="cls-1" d="M22.26,14.39l-.19.22a9.16,9.16,0,0,1,3.42,1.74A11.22,11.22,0,0,0,21.36,15a11.59,11.59,0,0,0-2.77,0l-.24,0a10.36,10.36,0,0,0-3.11.86c-.51.24-.81.4-.81.4A9.27,9.27,0,0,1,18,14.56l-.14-.17a6.77,6.77,0,0,0-3.85,1.44,18.34,18.34,0,0,0-2,8,5,5,0,0,0,4.19,2.08l.91-1.14a4.27,4.27,0,0,1-2.4-1.62s.14.1.39.24l.05,0,.13.07a7.31,7.31,0,0,0,1,.46,11.3,11.3,0,0,0,2,.59,9.61,9.61,0,0,0,3.56,0,8.85,8.85,0,0,0,2-.59,7.92,7.92,0,0,0,1.58-.81A4.32,4.32,0,0,1,23,24.8c.41.52.9,1.11.9,1.11a5,5,0,0,0,4.2-2.08,18.41,18.41,0,0,0-2-8A6.81,6.81,0,0,0,22.26,14.39Zm-4.74,8.16A1.53,1.53,0,1,1,18.92,21,1.47,1.47,0,0,1,17.52,22.55Zm5,0a1.53,1.53,0,0,1,0-3,1.53,1.53,0,0,1,0,3Z"/><path d="M29.19,8H10.81A2.82,2.82,0,0,0,8,10.83V29.17A2.82,2.82,0,0,0,10.81,32H26.36l-.72-2.54,1.75,1.83,1.66,1.53L32,35.43V10.83A2.82,2.82,0,0,0,29.19,8Zm-5.3,17.91s-.49-.59-.9-1.11a4.32,4.32,0,0,0,2.48-1.63,7.92,7.92,0,0,1-1.58.81,8.85,8.85,0,0,1-2,.59,9.61,9.61,0,0,1-3.56,0,11.3,11.3,0,0,1-2-.59,7.31,7.31,0,0,1-1-.46l-.13-.07-.05,0c-.25-.14-.39-.24-.39-.24a4.27,4.27,0,0,0,2.4,1.62l-.91,1.14a5,5,0,0,1-4.19-2.08,18.34,18.34,0,0,1,2-8,6.77,6.77,0,0,1,3.85-1.44l.14.17a9.27,9.27,0,0,0-3.61,1.79s.3-.16.81-.4a10.36,10.36,0,0,1,3.11-.86l.24,0a11.59,11.59,0,0,1,2.77,0,11.22,11.22,0,0,1,4.13,1.31,9.16,9.16,0,0,0-3.42-1.74l.19-.22a6.81,6.81,0,0,1,3.86,1.44,18.41,18.41,0,0,1,2,8A5,5,0,0,1,23.89,25.91Z"/><ellipse cx="22.52" cy="21.03" rx="1.4" ry="1.52"/><path d="M17.52,19.51A1.53,1.53,0,1,0,18.92,21,1.46,1.46,0,0,0,17.52,19.51Z"/></g></svg>
@@ -0,0 +1 @@
1
+ <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Facebook</title><path d="M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z"/></svg>
@@ -0,0 +1 @@
1
+ <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>GitHub</title><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg>
@@ -0,0 +1 @@
1
+ <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Instagram</title><path d="M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077"/></svg>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg enable-background="new 0 0 56.693 56.693" height="56.693px" id="Layer_1" version="1.1" viewBox="0 0 56.693 56.693" width="56.693px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M30.071,27.101v-0.077c-0.016,0.026-0.033,0.052-0.05,0.077H30.071z"/><path d="M49.265,4.667H7.145c-2.016,0-3.651,1.596-3.651,3.563v42.613c0,1.966,1.635,3.562,3.651,3.562h42.12 c2.019,0,3.654-1.597,3.654-3.562V8.23C52.919,6.262,51.283,4.667,49.265,4.667z M18.475,46.304h-7.465V23.845h7.465V46.304z M14.743,20.777h-0.05c-2.504,0-4.124-1.725-4.124-3.88c0-2.203,1.67-3.88,4.223-3.88c2.554,0,4.125,1.677,4.175,3.88 C18.967,19.052,17.345,20.777,14.743,20.777z M45.394,46.304h-7.465V34.286c0-3.018-1.08-5.078-3.781-5.078 c-2.062,0-3.29,1.389-3.831,2.731c-0.197,0.479-0.245,1.149-0.245,1.821v12.543h-7.465c0,0,0.098-20.354,0-22.459h7.465v3.179 c0.992-1.53,2.766-3.709,6.729-3.709c4.911,0,8.594,3.211,8.594,10.11V46.304z"/></g></svg>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" ?><svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><title/><g data-name="mail email e-mail letter" id="mail_email_e-mail_letter"><path d="M28,13a1,1,0,0,0-1,1v8a1,1,0,0,1-1,1H6a1,1,0,0,1-1-1V14a1,1,0,0,0-2,0v8a3,3,0,0,0,.88,2.12A3,3,0,0,0,6,25H26a3,3,0,0,0,2.12-.88A3,3,0,0,0,29,22V14A1,1,0,0,0,28,13Z"/><path d="M15.4,18.8a1,1,0,0,0,1.2,0L28.41,9.94a1,1,0,0,0,.3-1.23,3.06,3.06,0,0,0-.59-.83A3,3,0,0,0,26,7H6a3,3,0,0,0-2.12.88,3.06,3.06,0,0,0-.59.83,1,1,0,0,0,.3,1.23ZM6,9H26a.9.9,0,0,1,.28,0L16,16.75,5.72,9A.9.9,0,0,1,6,9Z"/></g></svg>
@@ -0,0 +1 @@
1
+ <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Rumble</title><path d="M14.4528 13.5458c.8064-.6542.9297-1.8381.2756-2.6445a1.8802 1.8802 0 0 0-.2756-.2756 21.2127 21.2127 0 0 0-4.3121-2.776c-1.066-.51-2.256.2-2.4261 1.414a23.5226 23.5226 0 0 0-.14 5.5021c.116 1.23 1.292 1.964 2.372 1.492a19.6285 19.6285 0 0 0 4.5062-2.704v-.008zm6.9322-5.4002c2.0335 2.228 2.0396 5.637.014 7.8723A26.1487 26.1487 0 0 1 8.2946 23.846c-2.6848.6713-5.4168-.914-6.1662-3.5781-1.524-5.2002-1.3-11.0803.17-16.3045.772-2.744 3.3521-4.4661 6.0102-3.832 4.9242 1.174 9.5443 4.196 13.0764 8.0121v.002z"/></svg>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" ?><svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><title/><g data-name="Layer 15" id="Layer_15"><path d="M24,3H8A5,5,0,0,0,3,8V24a5,5,0,0,0,5,5H24a5,5,0,0,0,5-5V8A5,5,0,0,0,24,3Zm3,21a3,3,0,0,1-3,3H8a3,3,0,0,1-3-3V8A3,3,0,0,1,8,5H24a3,3,0,0,1,3,3Z"/><path d="M22,12a3,3,0,0,1-3-3,1,1,0,0,0-2,0V19a3,3,0,1,1-3-3,1,1,0,0,0,0-2,5,5,0,1,0,5,5V13a4.92,4.92,0,0,0,3,1,1,1,0,0,0,0-2Z"/></g></svg>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" ?><svg data-name="Layer 1" id="Layer_1" viewBox="0 0 128 128" xmlns="http://www.w3.org/2000/svg"><defs><style>.cls-1{fill:#062b31;}</style></defs><title/><path class="cls-1" d="M116.32,10.5H19L11.48,29.74V106.2H37.13v14.3H52.31l14.1-14.3H87.68S115.87,78,116.32,78,116.32,10.5,116.32,10.5ZM106.8,72.91,90.86,89.24s-26.43-.51-26.94,0L49.73,103.38V89.24H28.35V20.39H106.8Z"/><rect class="cls-1" height="28.94" width="9.73" x="54.27" y="39.01"/><rect class="cls-1" height="28.94" width="9.73" x="80.4" y="39.01"/></svg>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg height="100%" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;" version="1.1" viewBox="0 0 512 512" width="100%" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:serif="http://www.serif.com/" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M161.014,464.013c193.208,0 298.885,-160.071 298.885,-298.885c0,-4.546 0,-9.072 -0.307,-13.578c20.558,-14.871 38.305,-33.282 52.408,-54.374c-19.171,8.495 -39.51,14.065 -60.334,16.527c21.924,-13.124 38.343,-33.782 46.182,-58.102c-20.619,12.235 -43.18,20.859 -66.703,25.498c-19.862,-21.121 -47.602,-33.112 -76.593,-33.112c-57.682,0 -105.145,47.464 -105.145,105.144c0,8.002 0.914,15.979 2.722,23.773c-84.418,-4.231 -163.18,-44.161 -216.494,-109.752c-27.724,47.726 -13.379,109.576 32.522,140.226c-16.715,-0.495 -33.071,-5.005 -47.677,-13.148l0,1.331c0.014,49.814 35.447,93.111 84.275,102.974c-15.464,4.217 -31.693,4.833 -47.431,1.802c13.727,42.685 53.311,72.108 98.14,72.95c-37.19,29.227 -83.157,45.103 -130.458,45.056c-8.358,-0.016 -16.708,-0.522 -25.006,-1.516c48.034,30.825 103.94,47.18 161.014,47.104" style="fill-rule:nonzero;"/></svg>
@@ -0,0 +1 @@
1
+ <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>X</title><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg height="100%" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;" version="1.1" viewBox="0 0 512 512" width="100%" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:serif="http://www.serif.com/" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M501.303,132.765c-5.887,-22.03 -23.235,-39.377 -45.265,-45.265c-39.932,-10.7 -200.038,-10.7 -200.038,-10.7c0,0 -160.107,0 -200.039,10.7c-22.026,5.888 -39.377,23.235 -45.264,45.265c-10.697,39.928 -10.697,123.238 -10.697,123.238c0,0 0,83.308 10.697,123.232c5.887,22.03 23.238,39.382 45.264,45.269c39.932,10.696 200.039,10.696 200.039,10.696c0,0 160.106,0 200.038,-10.696c22.03,-5.887 39.378,-23.239 45.265,-45.269c10.696,-39.924 10.696,-123.232 10.696,-123.232c0,0 0,-83.31 -10.696,-123.238Zm-296.506,200.039l0,-153.603l133.019,76.802l-133.019,76.801Z" style="fill-rule:nonzero;"/></svg>
@@ -0,0 +1,213 @@
1
+ import { VERBOSE } from './sse';
2
+ import { THRESHOLD_GLOSSED, THRESHOLD_READ } from '@/constants';
3
+
4
+ interface AnalyticsEvent {
5
+ contentId: string;
6
+ contentType: 'Pane' | 'StoryFragment';
7
+ eventVerb: string;
8
+ duration?: number;
9
+ }
10
+
11
+ const paneViewTimes = new Map<string, number>();
12
+ let hasTrackedEntered =
13
+ localStorage.getItem('tractstack_entered_tracked') === 'true';
14
+ let currentStoryfragmentId: string | null = null;
15
+ let isPageInitialized = false;
16
+ let globalObserver: IntersectionObserver | null = null;
17
+
18
+ function waitForSessionReady(): Promise<void> {
19
+ return new Promise((resolve) => {
20
+ if (window.TRACTSTACK_CONFIG?.session?.isReady) {
21
+ resolve();
22
+ } else {
23
+ window.addEventListener('tractstack:session-ready', () => resolve(), {
24
+ once: true,
25
+ });
26
+ }
27
+ });
28
+ }
29
+
30
+ export async function initAnalyticsTracking(storyfragmentId?: string) {
31
+ if (isPageInitialized) return;
32
+ isPageInitialized = true;
33
+
34
+ if (VERBOSE)
35
+ console.log('📊 ANALYTICS: Initializing tracking for page view.');
36
+ currentStoryfragmentId = storyfragmentId || null;
37
+ initPaneVisibilityTracking();
38
+ await waitForSessionReady();
39
+ trackEnteredEvent();
40
+ trackPageViewedEvent();
41
+ }
42
+
43
+ function trackEnteredEvent() {
44
+ if (!hasTrackedEntered && currentStoryfragmentId) {
45
+ sendAnalyticsEvent({
46
+ contentId: currentStoryfragmentId,
47
+ contentType: 'StoryFragment',
48
+ eventVerb: 'ENTERED',
49
+ });
50
+ hasTrackedEntered = true;
51
+ localStorage.setItem('tractstack_entered_tracked', 'true');
52
+ }
53
+ }
54
+
55
+ function trackPageViewedEvent() {
56
+ if (currentStoryfragmentId) {
57
+ // This event is now PURELY for analytics. It no longer triggers
58
+ // a synchronization workaround on the backend.
59
+ sendAnalyticsEvent({
60
+ contentId: currentStoryfragmentId,
61
+ contentType: 'StoryFragment',
62
+ eventVerb: 'PAGEVIEWED',
63
+ });
64
+ }
65
+ }
66
+
67
+ function initPaneVisibilityTracking() {
68
+ if (globalObserver) {
69
+ globalObserver.disconnect();
70
+ }
71
+ globalObserver = new IntersectionObserver(
72
+ (entries) => {
73
+ entries.forEach((entry) => {
74
+ const paneId = getPaneIdFromElement(entry.target as HTMLElement);
75
+ if (!paneId) return;
76
+ if (entry.isIntersecting) {
77
+ if (!paneViewTimes.has(paneId)) {
78
+ paneViewTimes.set(paneId, Date.now());
79
+ }
80
+ } else {
81
+ const startTime = paneViewTimes.get(paneId);
82
+ if (startTime) {
83
+ const duration = Date.now() - startTime;
84
+ paneViewTimes.delete(paneId);
85
+ let eventVerb: string | null = null;
86
+ if (duration >= THRESHOLD_READ) eventVerb = 'READ';
87
+ else if (duration >= THRESHOLD_GLOSSED) eventVerb = 'GLOSSED';
88
+ if (eventVerb) {
89
+ sendAnalyticsEvent({
90
+ contentId: paneId,
91
+ contentType: 'Pane',
92
+ eventVerb,
93
+ duration,
94
+ });
95
+ }
96
+ }
97
+ }
98
+ });
99
+ },
100
+ { threshold: 0.1, rootMargin: '0px' }
101
+ );
102
+ observeAllPanes();
103
+ }
104
+
105
+ function observeAllPanes() {
106
+ if (!globalObserver) return;
107
+ const panes = document.querySelectorAll('[data-pane-id]');
108
+ panes.forEach((pane) => globalObserver!.observe(pane));
109
+ }
110
+
111
+ function setupLifecycleListeners() {
112
+ if (window.ANALYTICS_INITIALIZED) return;
113
+ window.ANALYTICS_INITIALIZED = true;
114
+
115
+ if (VERBOSE)
116
+ console.log(
117
+ '📊 ANALYTICS: Setting up lifecycle listeners for the first time.'
118
+ );
119
+
120
+ window.addEventListener('beforeunload', () => {
121
+ flushPendingPaneEvents();
122
+ });
123
+
124
+ document.addEventListener('astro:page-load', () => {
125
+ isPageInitialized = false;
126
+ flushPendingPaneEvents();
127
+ if (window.TRACTSTACK_CONFIG?.storyfragmentId) {
128
+ initAnalyticsTracking(window.TRACTSTACK_CONFIG.storyfragmentId);
129
+ }
130
+ });
131
+
132
+ if (document.readyState === 'complete') {
133
+ if (window.TRACTSTACK_CONFIG?.storyfragmentId) {
134
+ initAnalyticsTracking(window.TRACTSTACK_CONFIG.storyfragmentId);
135
+ }
136
+ } else {
137
+ document.addEventListener(
138
+ 'DOMContentLoaded',
139
+ () => {
140
+ if (window.TRACTSTACK_CONFIG?.storyfragmentId) {
141
+ initAnalyticsTracking(window.TRACTSTACK_CONFIG.storyfragmentId);
142
+ }
143
+ },
144
+ { once: true }
145
+ );
146
+ }
147
+ }
148
+
149
+ function flushPendingPaneEvents() {
150
+ if (paneViewTimes.size === 0) return;
151
+ const flushTime = Date.now();
152
+ paneViewTimes.forEach((startTime, paneId) => {
153
+ const duration = flushTime - startTime;
154
+ let eventVerb: string | null = null;
155
+ if (duration >= THRESHOLD_READ) eventVerb = 'READ';
156
+ else if (duration >= THRESHOLD_GLOSSED) eventVerb = 'GLOSSED';
157
+ if (eventVerb) {
158
+ sendAnalyticsEvent({
159
+ contentId: paneId,
160
+ contentType: 'Pane',
161
+ eventVerb,
162
+ duration,
163
+ });
164
+ }
165
+ });
166
+ paneViewTimes.clear();
167
+ }
168
+
169
+ async function sendAnalyticsEvent(event: AnalyticsEvent): Promise<void> {
170
+ try {
171
+ const config = window.TRACTSTACK_CONFIG;
172
+ if (!config || !config.sessionId) return; // Use server-provided session ID
173
+
174
+ const sessionId = config.sessionId;
175
+ const formData: { [key: string]: string } = {
176
+ beliefId: event.contentId,
177
+ beliefType: event.contentType,
178
+ beliefValue: event.eventVerb,
179
+ paneId: '',
180
+ };
181
+
182
+ if (event.duration !== undefined) {
183
+ formData.duration = event.duration.toString();
184
+ }
185
+
186
+ await fetch(`${config.backendUrl}/api/v1/state`, {
187
+ method: 'POST',
188
+ headers: {
189
+ 'Content-Type': 'application/x-www-form-urlencoded',
190
+ 'X-Tenant-ID': config.tenantId,
191
+ 'X-TractStack-Session-ID': sessionId,
192
+ 'X-StoryFragment-ID': config.storyfragmentId,
193
+ },
194
+ body: new URLSearchParams(formData),
195
+ });
196
+ } catch (error) {
197
+ console.error('❌ API ERROR: Analytics event failed', error, event);
198
+ }
199
+ }
200
+
201
+ function getPaneIdFromElement(element: HTMLElement): string | null {
202
+ return element.getAttribute('data-pane-id');
203
+ }
204
+
205
+ (window as any).initAnalyticsTracking = initAnalyticsTracking;
206
+
207
+ setupLifecycleListeners();
208
+
209
+ if (VERBOSE) {
210
+ console.log(
211
+ '📊 ANALYTICS: Analytics events module loaded and is persistent.'
212
+ );
213
+ }