@superblocksteam/vite-plugin-file-sync 2.0.114 → 2.0.115-next.1

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 (355) hide show
  1. package/dist/ai-service/agent/middleware.d.ts.map +1 -1
  2. package/dist/ai-service/agent/middleware.js +19 -0
  3. package/dist/ai-service/agent/middleware.js.map +1 -1
  4. package/dist/ai-service/agent/prompts/api-prompts.d.ts.map +1 -1
  5. package/dist/ai-service/agent/prompts/api-prompts.js +13 -17
  6. package/dist/ai-service/agent/prompts/api-prompts.js.map +1 -1
  7. package/dist/ai-service/agent/prompts/build-base-system-prompt.d.ts.map +1 -1
  8. package/dist/ai-service/agent/prompts/build-base-system-prompt.js +22 -3
  9. package/dist/ai-service/agent/prompts/build-base-system-prompt.js.map +1 -1
  10. package/dist/ai-service/agent/subagents/coding/prompt-builder.d.ts +16 -0
  11. package/dist/ai-service/agent/subagents/coding/prompt-builder.d.ts.map +1 -0
  12. package/dist/ai-service/agent/subagents/coding/prompt-builder.js +30 -0
  13. package/dist/ai-service/agent/subagents/coding/prompt-builder.js.map +1 -0
  14. package/dist/ai-service/agent/subagents/coding/run-coding-subagent.d.ts +29 -0
  15. package/dist/ai-service/agent/subagents/coding/run-coding-subagent.d.ts.map +1 -0
  16. package/dist/ai-service/agent/subagents/coding/run-coding-subagent.js +108 -0
  17. package/dist/ai-service/agent/subagents/coding/run-coding-subagent.js.map +1 -0
  18. package/dist/ai-service/agent/subagents/types.d.ts +9 -1
  19. package/dist/ai-service/agent/subagents/types.d.ts.map +1 -1
  20. package/dist/ai-service/agent/subagents/types.js +8 -0
  21. package/dist/ai-service/agent/subagents/types.js.map +1 -1
  22. package/dist/ai-service/agent/tool-message-utils.d.ts.map +1 -1
  23. package/dist/ai-service/agent/tool-message-utils.js +5 -0
  24. package/dist/ai-service/agent/tool-message-utils.js.map +1 -1
  25. package/dist/ai-service/agent/tools/apis/api-validation-orchestrator.d.ts.map +1 -1
  26. package/dist/ai-service/agent/tools/apis/api-validation-orchestrator.js +2 -1
  27. package/dist/ai-service/agent/tools/apis/api-validation-orchestrator.js.map +1 -1
  28. package/dist/ai-service/agent/tools/apis/get-sdk-api-docs.d.ts +6 -0
  29. package/dist/ai-service/agent/tools/apis/get-sdk-api-docs.d.ts.map +1 -0
  30. package/dist/ai-service/agent/tools/apis/get-sdk-api-docs.js +138 -0
  31. package/dist/ai-service/agent/tools/apis/get-sdk-api-docs.js.map +1 -0
  32. package/dist/ai-service/agent/tools/build-finalize.d.ts.map +1 -1
  33. package/dist/ai-service/agent/tools/build-finalize.js +39 -15
  34. package/dist/ai-service/agent/tools/build-finalize.js.map +1 -1
  35. package/dist/ai-service/agent/tools/build-manage-checklist.d.ts +6 -3
  36. package/dist/ai-service/agent/tools/build-manage-checklist.d.ts.map +1 -1
  37. package/dist/ai-service/agent/tools/build-manage-checklist.js +116 -49
  38. package/dist/ai-service/agent/tools/build-manage-checklist.js.map +1 -1
  39. package/dist/ai-service/agent/tools/index.d.ts +2 -0
  40. package/dist/ai-service/agent/tools/index.d.ts.map +1 -1
  41. package/dist/ai-service/agent/tools/index.js +2 -0
  42. package/dist/ai-service/agent/tools/index.js.map +1 -1
  43. package/dist/ai-service/agent/tools/integrations/execute-request.d.ts +3 -0
  44. package/dist/ai-service/agent/tools/integrations/execute-request.d.ts.map +1 -1
  45. package/dist/ai-service/agent/tools/integrations/execute-request.js +330 -204
  46. package/dist/ai-service/agent/tools/integrations/execute-request.js.map +1 -1
  47. package/dist/ai-service/agent/tools.d.ts.map +1 -1
  48. package/dist/ai-service/agent/tools.js +40 -2
  49. package/dist/ai-service/agent/tools.js.map +1 -1
  50. package/dist/ai-service/agent/tools2/access-control.d.ts +1 -1
  51. package/dist/ai-service/agent/tools2/access-control.d.ts.map +1 -1
  52. package/dist/ai-service/agent/tools2/access-control.js +15 -4
  53. package/dist/ai-service/agent/tools2/access-control.js.map +1 -1
  54. package/dist/ai-service/agent/tools2/registry.d.ts +3 -0
  55. package/dist/ai-service/agent/tools2/registry.d.ts.map +1 -1
  56. package/dist/ai-service/agent/tools2/registry.js +50 -8
  57. package/dist/ai-service/agent/tools2/registry.js.map +1 -1
  58. package/dist/ai-service/agent/tools2/tools/ask-multi-choice.d.ts.map +1 -1
  59. package/dist/ai-service/agent/tools2/tools/ask-multi-choice.js +3 -2
  60. package/dist/ai-service/agent/tools2/tools/ask-multi-choice.js.map +1 -1
  61. package/dist/ai-service/agent/tools2/tools/ask-searchable-dropdown.d.ts.map +1 -1
  62. package/dist/ai-service/agent/tools2/tools/ask-searchable-dropdown.js +2 -1
  63. package/dist/ai-service/agent/tools2/tools/ask-searchable-dropdown.js.map +1 -1
  64. package/dist/ai-service/agent/tools2/tools/deploy-service.d.ts +16 -0
  65. package/dist/ai-service/agent/tools2/tools/deploy-service.d.ts.map +1 -0
  66. package/dist/ai-service/agent/tools2/tools/deploy-service.js +135 -0
  67. package/dist/ai-service/agent/tools2/tools/deploy-service.js.map +1 -0
  68. package/dist/ai-service/agent/tools2/tools/download-attachments.d.ts +33 -0
  69. package/dist/ai-service/agent/tools2/tools/download-attachments.d.ts.map +1 -0
  70. package/dist/ai-service/agent/tools2/tools/download-attachments.js +308 -0
  71. package/dist/ai-service/agent/tools2/tools/download-attachments.js.map +1 -0
  72. package/dist/ai-service/agent/tools2/tools/exit-plan-mode.d.ts.map +1 -1
  73. package/dist/ai-service/agent/tools2/tools/exit-plan-mode.js +8 -4
  74. package/dist/ai-service/agent/tools2/tools/exit-plan-mode.js.map +1 -1
  75. package/dist/ai-service/agent/tools2/tools/git.d.ts +57 -1
  76. package/dist/ai-service/agent/tools2/tools/git.d.ts.map +1 -1
  77. package/dist/ai-service/agent/tools2/tools/git.js +275 -8
  78. package/dist/ai-service/agent/tools2/tools/git.js.map +1 -1
  79. package/dist/ai-service/agent/tools2/tools/index.d.ts +2 -1
  80. package/dist/ai-service/agent/tools2/tools/index.d.ts.map +1 -1
  81. package/dist/ai-service/agent/tools2/tools/index.js +2 -1
  82. package/dist/ai-service/agent/tools2/tools/index.js.map +1 -1
  83. package/dist/ai-service/agent/tools2/tools/list-attachments.d.ts +4 -1
  84. package/dist/ai-service/agent/tools2/tools/list-attachments.d.ts.map +1 -1
  85. package/dist/ai-service/agent/tools2/tools/list-attachments.js +20 -4
  86. package/dist/ai-service/agent/tools2/tools/list-attachments.js.map +1 -1
  87. package/dist/ai-service/agent/tools2/tools/spawn-coding-subagents.d.ts +28 -0
  88. package/dist/ai-service/agent/tools2/tools/spawn-coding-subagents.d.ts.map +1 -0
  89. package/dist/ai-service/agent/tools2/tools/spawn-coding-subagents.js +152 -0
  90. package/dist/ai-service/agent/tools2/tools/spawn-coding-subagents.js.map +1 -0
  91. package/dist/ai-service/agent/tools2/types.d.ts +1 -18
  92. package/dist/ai-service/agent/tools2/types.d.ts.map +1 -1
  93. package/dist/ai-service/agent/tools2/types.js.map +1 -1
  94. package/dist/ai-service/agent/utils.d.ts.map +1 -1
  95. package/dist/ai-service/agent/utils.js +22 -5
  96. package/dist/ai-service/agent/utils.js.map +1 -1
  97. package/dist/ai-service/app-interface/file-system-interface.d.ts +0 -4
  98. package/dist/ai-service/app-interface/file-system-interface.d.ts.map +1 -1
  99. package/dist/ai-service/app-interface/file-system-interface.js +0 -21
  100. package/dist/ai-service/app-interface/file-system-interface.js.map +1 -1
  101. package/dist/ai-service/app-interface/filesystem/virtual-file-system.d.ts +11 -1
  102. package/dist/ai-service/app-interface/filesystem/virtual-file-system.d.ts.map +1 -1
  103. package/dist/ai-service/app-interface/filesystem/virtual-file-system.js +29 -7
  104. package/dist/ai-service/app-interface/filesystem/virtual-file-system.js.map +1 -1
  105. package/dist/ai-service/app-interface/shell.d.ts +6 -0
  106. package/dist/ai-service/app-interface/shell.d.ts.map +1 -1
  107. package/dist/ai-service/app-interface/shell.js +8 -0
  108. package/dist/ai-service/app-interface/shell.js.map +1 -1
  109. package/dist/ai-service/app-skills/helpers.d.ts.map +1 -1
  110. package/dist/ai-service/app-skills/helpers.js +4 -2
  111. package/dist/ai-service/app-skills/helpers.js.map +1 -1
  112. package/dist/ai-service/attachments/store.d.ts +18 -2
  113. package/dist/ai-service/attachments/store.d.ts.map +1 -1
  114. package/dist/ai-service/attachments/store.js +102 -9
  115. package/dist/ai-service/attachments/store.js.map +1 -1
  116. package/dist/ai-service/attachments/uploaded-content-part.d.ts +5 -2
  117. package/dist/ai-service/attachments/uploaded-content-part.d.ts.map +1 -1
  118. package/dist/ai-service/attachments/uploaded-content-part.js +32 -0
  119. package/dist/ai-service/attachments/uploaded-content-part.js.map +1 -1
  120. package/dist/ai-service/chat/chat-session-store.d.ts +2 -2
  121. package/dist/ai-service/chat/chat-session-store.d.ts.map +1 -1
  122. package/dist/ai-service/chat/chat-session-store.js +45 -243
  123. package/dist/ai-service/chat/chat-session-store.js.map +1 -1
  124. package/dist/ai-service/chat/utils.d.ts +6 -0
  125. package/dist/ai-service/chat/utils.d.ts.map +1 -1
  126. package/dist/ai-service/chat/utils.js +47 -0
  127. package/dist/ai-service/chat/utils.js.map +1 -1
  128. package/dist/ai-service/features.d.ts +4 -0
  129. package/dist/ai-service/features.d.ts.map +1 -1
  130. package/dist/ai-service/features.js +4 -0
  131. package/dist/ai-service/features.js.map +1 -1
  132. package/dist/ai-service/index.d.ts +36 -11
  133. package/dist/ai-service/index.d.ts.map +1 -1
  134. package/dist/ai-service/index.js +228 -68
  135. package/dist/ai-service/index.js.map +1 -1
  136. package/dist/ai-service/judge/tools/playwright-action.d.ts +1 -1
  137. package/dist/ai-service/llm/client.d.ts.map +1 -1
  138. package/dist/ai-service/llm/client.js +4 -2
  139. package/dist/ai-service/llm/client.js.map +1 -1
  140. package/dist/ai-service/llm/stream/observers/retry-notification.d.ts.map +1 -1
  141. package/dist/ai-service/llm/stream/observers/retry-notification.js +4 -2
  142. package/dist/ai-service/llm/stream/observers/retry-notification.js.map +1 -1
  143. package/dist/ai-service/prompt-builder-service/classifiers/prompt-interpret-task.d.ts.map +1 -1
  144. package/dist/ai-service/prompt-builder-service/classifiers/prompt-interpret-task.js +1 -16
  145. package/dist/ai-service/prompt-builder-service/classifiers/prompt-interpret-task.js.map +1 -1
  146. package/dist/ai-service/prompt-builder-service/types.d.ts +2 -13
  147. package/dist/ai-service/prompt-builder-service/types.d.ts.map +1 -1
  148. package/dist/ai-service/prompt-builder-service/types.js.map +1 -1
  149. package/dist/ai-service/skills/system/_registry.generated.d.ts.map +1 -1
  150. package/dist/ai-service/skills/system/_registry.generated.js +6 -0
  151. package/dist/ai-service/skills/system/_registry.generated.js.map +1 -1
  152. package/dist/ai-service/skills/system/superblocks-migration/references/focused-debug.generated.d.ts +2 -0
  153. package/dist/ai-service/skills/system/superblocks-migration/references/focused-debug.generated.d.ts.map +1 -0
  154. package/dist/ai-service/skills/system/superblocks-migration/references/focused-debug.generated.js +58 -0
  155. package/dist/ai-service/skills/system/superblocks-migration/references/focused-debug.generated.js.map +1 -0
  156. package/dist/ai-service/skills/system/superblocks-migration/references/yaml-block-mapping.generated.d.ts +2 -0
  157. package/dist/ai-service/skills/system/superblocks-migration/references/yaml-block-mapping.generated.d.ts.map +1 -0
  158. package/dist/ai-service/skills/system/superblocks-migration/references/yaml-block-mapping.generated.js +107 -0
  159. package/dist/ai-service/skills/system/superblocks-migration/references/yaml-block-mapping.generated.js.map +1 -0
  160. package/dist/ai-service/skills/system/superblocks-migration/skill.generated.d.ts +2 -0
  161. package/dist/ai-service/skills/system/superblocks-migration/skill.generated.d.ts.map +1 -0
  162. package/dist/ai-service/skills/system/superblocks-migration/skill.generated.js +137 -0
  163. package/dist/ai-service/skills/system/superblocks-migration/skill.generated.js.map +1 -0
  164. package/dist/ai-service/state-machine/clark-fsm.d.ts +26 -13
  165. package/dist/ai-service/state-machine/clark-fsm.d.ts.map +1 -1
  166. package/dist/ai-service/state-machine/clark-fsm.js +12 -7
  167. package/dist/ai-service/state-machine/clark-fsm.js.map +1 -1
  168. package/dist/ai-service/state-machine/handlers/agent-planning.d.ts.map +1 -1
  169. package/dist/ai-service/state-machine/handlers/agent-planning.js +51 -27
  170. package/dist/ai-service/state-machine/handlers/agent-planning.js.map +1 -1
  171. package/dist/ai-service/state-machine/handlers/awaiting-user.d.ts.map +1 -1
  172. package/dist/ai-service/state-machine/handlers/awaiting-user.js +15 -6
  173. package/dist/ai-service/state-machine/handlers/awaiting-user.js.map +1 -1
  174. package/dist/ai-service/state-machine/handlers/idle.d.ts.map +1 -1
  175. package/dist/ai-service/state-machine/handlers/idle.js +4 -2
  176. package/dist/ai-service/state-machine/handlers/idle.js.map +1 -1
  177. package/dist/ai-service/state-machine/handlers/llm-generating.d.ts.map +1 -1
  178. package/dist/ai-service/state-machine/handlers/llm-generating.js +48 -15
  179. package/dist/ai-service/state-machine/handlers/llm-generating.js.map +1 -1
  180. package/dist/ai-service/state-machine/handlers/post-processing.d.ts +1 -1
  181. package/dist/ai-service/state-machine/handlers/post-processing.d.ts.map +1 -1
  182. package/dist/ai-service/state-machine/handlers/post-processing.js +23 -151
  183. package/dist/ai-service/state-machine/handlers/post-processing.js.map +1 -1
  184. package/dist/ai-service/state-machine/handlers/runtime-reviewing.d.ts.map +1 -1
  185. package/dist/ai-service/state-machine/handlers/runtime-reviewing.js +16 -8
  186. package/dist/ai-service/state-machine/handlers/runtime-reviewing.js.map +1 -1
  187. package/dist/ai-service/state-machine/helpers/change-info.d.ts.map +1 -1
  188. package/dist/ai-service/state-machine/helpers/change-info.js +2 -15
  189. package/dist/ai-service/state-machine/helpers/change-info.js.map +1 -1
  190. package/dist/ai-service/state-machine/helpers/peer.d.ts +3 -3
  191. package/dist/ai-service/state-machine/helpers/peer.d.ts.map +1 -1
  192. package/dist/ai-service/state-machine/helpers/peer.js +9 -23
  193. package/dist/ai-service/state-machine/helpers/peer.js.map +1 -1
  194. package/dist/ai-service/state-machine/helpers/stable-peer.d.ts +52 -0
  195. package/dist/ai-service/state-machine/helpers/stable-peer.d.ts.map +1 -0
  196. package/dist/ai-service/state-machine/helpers/stable-peer.js +141 -0
  197. package/dist/ai-service/state-machine/helpers/stable-peer.js.map +1 -0
  198. package/dist/ai-service/state-machine/mocks.d.ts.map +1 -1
  199. package/dist/ai-service/state-machine/mocks.js +0 -17
  200. package/dist/ai-service/state-machine/mocks.js.map +1 -1
  201. package/dist/ai-service/types.d.ts +2 -21
  202. package/dist/ai-service/types.d.ts.map +1 -1
  203. package/dist/ai-service/types.js.map +1 -1
  204. package/dist/ai-service/util/archive-extractors.d.ts +52 -0
  205. package/dist/ai-service/util/archive-extractors.d.ts.map +1 -0
  206. package/dist/ai-service/util/archive-extractors.js +278 -0
  207. package/dist/ai-service/util/archive-extractors.js.map +1 -0
  208. package/dist/codegen.d.ts +1 -22
  209. package/dist/codegen.d.ts.map +1 -1
  210. package/dist/codegen.js +1 -117
  211. package/dist/codegen.js.map +1 -1
  212. package/dist/components-manager.d.ts +0 -6
  213. package/dist/components-manager.d.ts.map +1 -1
  214. package/dist/components-manager.js +0 -27
  215. package/dist/components-manager.js.map +1 -1
  216. package/dist/file-sync-vite-plugin.d.ts.map +1 -1
  217. package/dist/file-sync-vite-plugin.js +47 -94
  218. package/dist/file-sync-vite-plugin.js.map +1 -1
  219. package/dist/file-system-manager.d.ts +2 -15
  220. package/dist/file-system-manager.d.ts.map +1 -1
  221. package/dist/file-system-manager.js +16 -128
  222. package/dist/file-system-manager.js.map +1 -1
  223. package/dist/git-service/live-branch.d.ts.map +1 -1
  224. package/dist/git-service/live-branch.js +15 -1
  225. package/dist/git-service/live-branch.js.map +1 -1
  226. package/dist/lock-service/index.d.ts.map +1 -1
  227. package/dist/lock-service/index.js +8 -5
  228. package/dist/lock-service/index.js.map +1 -1
  229. package/dist/migration/get-fullstack-template-dir.d.ts +37 -0
  230. package/dist/migration/get-fullstack-template-dir.d.ts.map +1 -0
  231. package/dist/migration/get-fullstack-template-dir.js +99 -0
  232. package/dist/migration/get-fullstack-template-dir.js.map +1 -0
  233. package/dist/migration/migration-checklist.d.ts +60 -0
  234. package/dist/migration/migration-checklist.d.ts.map +1 -0
  235. package/dist/migration/migration-checklist.js +230 -0
  236. package/dist/migration/migration-checklist.js.map +1 -0
  237. package/dist/migration/migration-routes.d.ts +23 -0
  238. package/dist/migration/migration-routes.d.ts.map +1 -0
  239. package/dist/migration/migration-routes.js +533 -0
  240. package/dist/migration/migration-routes.js.map +1 -0
  241. package/dist/migration/restructure.d.ts +76 -0
  242. package/dist/migration/restructure.d.ts.map +1 -0
  243. package/dist/migration/restructure.js +446 -0
  244. package/dist/migration/restructure.js.map +1 -0
  245. package/dist/migration/translation-prompt.d.ts +22 -0
  246. package/dist/migration/translation-prompt.d.ts.map +1 -0
  247. package/dist/migration/translation-prompt.js +27 -0
  248. package/dist/migration/translation-prompt.js.map +1 -0
  249. package/dist/migration-templates/app-fullstack/client/App.tsx +17 -0
  250. package/dist/migration-templates/app-fullstack/client/components/common/sonner.tsx +20 -0
  251. package/dist/migration-templates/app-fullstack/client/components/hooks/use-active-page.ts +73 -0
  252. package/dist/migration-templates/app-fullstack/client/components/hooks/use-mobile.ts +21 -0
  253. package/dist/migration-templates/app-fullstack/client/components/ui/accordion.tsx +197 -0
  254. package/dist/migration-templates/app-fullstack/client/components/ui/area-chart.tsx +432 -0
  255. package/dist/migration-templates/app-fullstack/client/components/ui/aspect-ratio.tsx +45 -0
  256. package/dist/migration-templates/app-fullstack/client/components/ui/avatar.tsx +117 -0
  257. package/dist/migration-templates/app-fullstack/client/components/ui/badge.tsx +143 -0
  258. package/dist/migration-templates/app-fullstack/client/components/ui/bar-chart.tsx +390 -0
  259. package/dist/migration-templates/app-fullstack/client/components/ui/breadcrumb.tsx +259 -0
  260. package/dist/migration-templates/app-fullstack/client/components/ui/button.tsx +182 -0
  261. package/dist/migration-templates/app-fullstack/client/components/ui/calendar.tsx +300 -0
  262. package/dist/migration-templates/app-fullstack/client/components/ui/card.tsx +129 -0
  263. package/dist/migration-templates/app-fullstack/client/components/ui/chart.tsx +403 -0
  264. package/dist/migration-templates/app-fullstack/client/components/ui/chat.tsx +2303 -0
  265. package/dist/migration-templates/app-fullstack/client/components/ui/checkbox.tsx +97 -0
  266. package/dist/migration-templates/app-fullstack/client/components/ui/code-block-content.tsx +66 -0
  267. package/dist/migration-templates/app-fullstack/client/components/ui/date-range-picker.tsx +396 -0
  268. package/dist/migration-templates/app-fullstack/client/components/ui/dialog.tsx +223 -0
  269. package/dist/migration-templates/app-fullstack/client/components/ui/dropdown-menu.tsx +284 -0
  270. package/dist/migration-templates/app-fullstack/client/components/ui/file-dropzone.tsx +395 -0
  271. package/dist/migration-templates/app-fullstack/client/components/ui/file-input.tsx +166 -0
  272. package/dist/migration-templates/app-fullstack/client/components/ui/hover-card.tsx +162 -0
  273. package/dist/migration-templates/app-fullstack/client/components/ui/icon.tsx +133 -0
  274. package/dist/migration-templates/app-fullstack/client/components/ui/image.tsx +68 -0
  275. package/dist/migration-templates/app-fullstack/client/components/ui/input.tsx +219 -0
  276. package/dist/migration-templates/app-fullstack/client/components/ui/label.tsx +55 -0
  277. package/dist/migration-templates/app-fullstack/client/components/ui/line-chart.tsx +380 -0
  278. package/dist/migration-templates/app-fullstack/client/components/ui/link.tsx +139 -0
  279. package/dist/migration-templates/app-fullstack/client/components/ui/navigation-menu.tsx +345 -0
  280. package/dist/migration-templates/app-fullstack/client/components/ui/pagination.tsx +192 -0
  281. package/dist/migration-templates/app-fullstack/client/components/ui/pie-chart.tsx +295 -0
  282. package/dist/migration-templates/app-fullstack/client/components/ui/popover.tsx +162 -0
  283. package/dist/migration-templates/app-fullstack/client/components/ui/progress.tsx +69 -0
  284. package/dist/migration-templates/app-fullstack/client/components/ui/radar-chart.tsx +386 -0
  285. package/dist/migration-templates/app-fullstack/client/components/ui/radial-chart.tsx +402 -0
  286. package/dist/migration-templates/app-fullstack/client/components/ui/scroll-area.tsx +86 -0
  287. package/dist/migration-templates/app-fullstack/client/components/ui/select.tsx +229 -0
  288. package/dist/migration-templates/app-fullstack/client/components/ui/separator.tsx +62 -0
  289. package/dist/migration-templates/app-fullstack/client/components/ui/sheet.tsx +234 -0
  290. package/dist/migration-templates/app-fullstack/client/components/ui/sidebar.tsx +974 -0
  291. package/dist/migration-templates/app-fullstack/client/components/ui/skeleton.tsx +13 -0
  292. package/dist/migration-templates/app-fullstack/client/components/ui/slider.tsx +198 -0
  293. package/dist/migration-templates/app-fullstack/client/components/ui/switch.tsx +95 -0
  294. package/dist/migration-templates/app-fullstack/client/components/ui/table.tsx +145 -0
  295. package/dist/migration-templates/app-fullstack/client/components/ui/tabs.tsx +87 -0
  296. package/dist/migration-templates/app-fullstack/client/components/ui/textarea.tsx +148 -0
  297. package/dist/migration-templates/app-fullstack/client/components/ui/toggle-group.tsx +225 -0
  298. package/dist/migration-templates/app-fullstack/client/components/ui/toggle.tsx +150 -0
  299. package/dist/migration-templates/app-fullstack/client/components/ui/tooltip.tsx +175 -0
  300. package/dist/migration-templates/app-fullstack/client/hooks/useApi.ts +25 -0
  301. package/dist/migration-templates/app-fullstack/client/hooks/useApiData.ts +10 -0
  302. package/dist/migration-templates/app-fullstack/client/index.css +131 -0
  303. package/dist/migration-templates/app-fullstack/client/lib/executeApi.ts +9 -0
  304. package/dist/migration-templates/app-fullstack/client/lib/utils.ts +6 -0
  305. package/dist/migration-templates/app-fullstack/client/pages/Page1/index.tsx +3 -0
  306. package/dist/migration-templates/app-fullstack/client/root.tsx +17 -0
  307. package/dist/migration-templates/app-fullstack/client/router.tsx +48 -0
  308. package/dist/migration-templates/app-fullstack/client/types/node.d.ts +9 -0
  309. package/dist/migration-templates/app-fullstack/components.json +21 -0
  310. package/dist/migration-templates/app-fullstack/eslint.config.js +108 -0
  311. package/dist/migration-templates/app-fullstack/package.json +89 -0
  312. package/dist/migration-templates/app-fullstack/server/.gitkeep +0 -0
  313. package/dist/migration-templates/app-fullstack/server/apis/index.ts +22 -0
  314. package/dist/migration-templates/app-fullstack/server/index.ts +2 -0
  315. package/dist/migration-templates/app-fullstack/tsconfig.client.json +27 -0
  316. package/dist/migration-templates/app-fullstack/tsconfig.eslint.json +8 -0
  317. package/dist/migration-templates/app-fullstack/tsconfig.json +25 -0
  318. package/dist/migration-templates/app-fullstack/tsconfig.server.json +13 -0
  319. package/dist/migration-templates/app-fullstack/vite.config.ts +17 -0
  320. package/dist/parsing/imports.d.ts +0 -16
  321. package/dist/parsing/imports.d.ts.map +1 -1
  322. package/dist/parsing/imports.js +0 -68
  323. package/dist/parsing/imports.js.map +1 -1
  324. package/dist/parsing/jsx.d.ts +0 -2
  325. package/dist/parsing/jsx.d.ts.map +1 -1
  326. package/dist/parsing/jsx.js +0 -62
  327. package/dist/parsing/jsx.js.map +1 -1
  328. package/dist/socket-manager.d.ts.map +1 -1
  329. package/dist/socket-manager.js +109 -32
  330. package/dist/socket-manager.js.map +1 -1
  331. package/dist/source-tracker.d.ts +7 -85
  332. package/dist/source-tracker.d.ts.map +1 -1
  333. package/dist/source-tracker.js +19 -695
  334. package/dist/source-tracker.js.map +1 -1
  335. package/dist/sync-service/index.d.ts +79 -2
  336. package/dist/sync-service/index.d.ts.map +1 -1
  337. package/dist/sync-service/index.js +139 -10
  338. package/dist/sync-service/index.js.map +1 -1
  339. package/package.json +11 -9
  340. package/dist/ai-service/artifacts/bolt.d.ts +0 -8
  341. package/dist/ai-service/artifacts/bolt.d.ts.map +0 -1
  342. package/dist/ai-service/artifacts/bolt.js +0 -92
  343. package/dist/ai-service/artifacts/bolt.js.map +0 -1
  344. package/dist/ai-service/result-buffer/bolt.d.ts +0 -18
  345. package/dist/ai-service/result-buffer/bolt.d.ts.map +0 -1
  346. package/dist/ai-service/result-buffer/bolt.js +0 -100
  347. package/dist/ai-service/result-buffer/bolt.js.map +0 -1
  348. package/dist/ai-service/result-buffer/shared.d.ts +0 -17
  349. package/dist/ai-service/result-buffer/shared.d.ts.map +0 -1
  350. package/dist/ai-service/result-buffer/shared.js +0 -7
  351. package/dist/ai-service/result-buffer/shared.js.map +0 -1
  352. package/dist/inject-no-select.d.ts +0 -15
  353. package/dist/inject-no-select.d.ts.map +0 -1
  354. package/dist/inject-no-select.js +0 -175
  355. package/dist/inject-no-select.js.map +0 -1
@@ -0,0 +1,345 @@
1
+ import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
2
+ import { ChevronDownIcon } from "lucide-react";
3
+ import { type IconName } from "lucide-react/dynamic";
4
+ import * as React from "react";
5
+ import { useNavigate } from "react-router";
6
+
7
+ import { registerComponent } from "@superblocksteam/library";
8
+ import {
9
+ Prop,
10
+ Section,
11
+ PropsCategory,
12
+ type PropertiesPanelDefinition,
13
+ type EditorConfig,
14
+ } from "@superblocksteam/library";
15
+
16
+ import { useActivePage } from "@/components/hooks/use-active-page";
17
+ import { Icon } from "@/components/ui/icon";
18
+ import { cn } from "@/lib/utils";
19
+
20
+ // Types
21
+ interface MenuItem {
22
+ label: string;
23
+ href?: string;
24
+ content?: {
25
+ title: string;
26
+ description?: string;
27
+ href: string;
28
+ icon?: IconName;
29
+ }[];
30
+ }
31
+
32
+ // Constants
33
+ const TRIGGER_CLASSES =
34
+ "group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1";
35
+
36
+ // Primitive Components
37
+ function NavigationMenuRoot({
38
+ className,
39
+ children,
40
+ viewport = true,
41
+ ...props
42
+ }: React.ComponentProps<typeof NavigationMenuPrimitive.Root> & {
43
+ viewport?: boolean;
44
+ }) {
45
+ return (
46
+ <NavigationMenuPrimitive.Root
47
+ data-slot="navigation-menu"
48
+ data-viewport={viewport}
49
+ className={cn(
50
+ "group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
51
+ className,
52
+ )}
53
+ {...props}
54
+ >
55
+ {children}
56
+ {viewport && <NavigationMenuViewport />}
57
+ </NavigationMenuPrimitive.Root>
58
+ );
59
+ }
60
+
61
+ function NavigationMenuList({
62
+ className,
63
+ ...props
64
+ }: React.ComponentProps<typeof NavigationMenuPrimitive.List>) {
65
+ return (
66
+ <NavigationMenuPrimitive.List
67
+ data-slot="navigation-menu-list"
68
+ className={cn(
69
+ "group flex flex-1 list-none items-center justify-center gap-1",
70
+ className,
71
+ )}
72
+ {...props}
73
+ />
74
+ );
75
+ }
76
+
77
+ function NavigationMenuItem({
78
+ className,
79
+ ...props
80
+ }: React.ComponentProps<typeof NavigationMenuPrimitive.Item>) {
81
+ return (
82
+ <NavigationMenuPrimitive.Item
83
+ data-slot="navigation-menu-item"
84
+ className={cn("relative", className)}
85
+ {...props}
86
+ />
87
+ );
88
+ }
89
+
90
+ function NavigationMenuTrigger({
91
+ className,
92
+ children,
93
+ ...props
94
+ }: Omit<
95
+ React.ComponentProps<typeof NavigationMenuPrimitive.Trigger>,
96
+ "asChild"
97
+ >) {
98
+ return (
99
+ <NavigationMenuPrimitive.Trigger
100
+ data-slot="navigation-menu-trigger"
101
+ className={cn(TRIGGER_CLASSES, className)}
102
+ {...props}
103
+ >
104
+ {children}{" "}
105
+ <ChevronDownIcon
106
+ className="relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180"
107
+ aria-hidden="true"
108
+ />
109
+ </NavigationMenuPrimitive.Trigger>
110
+ );
111
+ }
112
+
113
+ function NavigationMenuContent({
114
+ className,
115
+ ...props
116
+ }: React.ComponentProps<typeof NavigationMenuPrimitive.Content>) {
117
+ return (
118
+ <NavigationMenuPrimitive.Content
119
+ data-slot="navigation-menu-content"
120
+ className={cn(
121
+ "data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto",
122
+ "group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
123
+ className,
124
+ )}
125
+ {...props}
126
+ />
127
+ );
128
+ }
129
+
130
+ function NavigationMenuViewport({
131
+ className,
132
+ ...props
133
+ }: React.ComponentProps<typeof NavigationMenuPrimitive.Viewport>) {
134
+ return (
135
+ <div
136
+ className={cn(
137
+ "absolute top-full left-0 isolate z-50 flex justify-center",
138
+ )}
139
+ >
140
+ <NavigationMenuPrimitive.Viewport
141
+ data-slot="navigation-menu-viewport"
142
+ className={cn(
143
+ "origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",
144
+ className,
145
+ )}
146
+ {...props}
147
+ />
148
+ </div>
149
+ );
150
+ }
151
+
152
+ function NavigationMenuLink({
153
+ className,
154
+ ...props
155
+ }: React.ComponentProps<typeof NavigationMenuPrimitive.Link>) {
156
+ return (
157
+ <NavigationMenuPrimitive.Link
158
+ data-slot="navigation-menu-link"
159
+ className={cn(
160
+ "data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",
161
+ className,
162
+ )}
163
+ {...props}
164
+ />
165
+ );
166
+ }
167
+
168
+ function NavigationMenuIndicator({
169
+ className,
170
+ ...props
171
+ }: React.ComponentProps<typeof NavigationMenuPrimitive.Indicator>) {
172
+ return (
173
+ <NavigationMenuPrimitive.Indicator
174
+ data-slot="navigation-menu-indicator"
175
+ className={cn(
176
+ "data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",
177
+ className,
178
+ )}
179
+ {...props}
180
+ >
181
+ <div className="bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" />
182
+ </NavigationMenuPrimitive.Indicator>
183
+ );
184
+ }
185
+
186
+ // Main Component
187
+ type NavigationMenuProps = React.ComponentPropsWithoutRef<
188
+ typeof NavigationMenuRoot
189
+ > & {
190
+ menuItems?: MenuItem[];
191
+ disabled?: boolean;
192
+ onItemClick?: (href?: string) => void;
193
+ };
194
+
195
+ const NavigationMenu = ({
196
+ menuItems,
197
+ disabled,
198
+ onItemClick,
199
+ children: _children,
200
+ ...props
201
+ }: NavigationMenuProps) => {
202
+ const { isPageActive } = useActivePage();
203
+ const navigate = useNavigate();
204
+ const handleItemClick = React.useCallback(
205
+ (item: MenuItem, href?: string) => {
206
+ const targetHref = href || item.href;
207
+ void onItemClick?.(targetHref);
208
+ if (targetHref) {
209
+ navigate(targetHref);
210
+ }
211
+ },
212
+ [onItemClick, navigate],
213
+ );
214
+ const normalizedMenuItems: MenuItem[] = React.useMemo(() => {
215
+ if (!Array.isArray(menuItems)) return [];
216
+ return menuItems.map((item: any) => ({
217
+ label: item?.label?.toString() ?? "",
218
+ href: item?.href?.toString(),
219
+ icon: item?.icon?.toString(),
220
+ content: Array.isArray(item?.content)
221
+ ? item.content.map((contentItem: any) => ({
222
+ title: contentItem?.title?.toString() ?? "",
223
+ description: contentItem?.description?.toString() ?? "",
224
+ href: contentItem?.href?.toString() ?? "",
225
+ icon: contentItem?.icon?.toString() ?? "",
226
+ }))
227
+ : undefined,
228
+ }));
229
+ }, [menuItems]);
230
+ return (
231
+ <NavigationMenuRoot {...props}>
232
+ <NavigationMenuList>
233
+ {normalizedMenuItems.map((item, index) => (
234
+ <NavigationMenuItem key={`${item.label}-${index}`}>
235
+ {item.content && item.content.length > 0 ? (
236
+ <>
237
+ <NavigationMenuTrigger
238
+ className={cn(
239
+ item.href &&
240
+ isPageActive(item.href) &&
241
+ "bg-accent text-accent-foreground",
242
+ )}
243
+ disabled={disabled}
244
+ >
245
+ {item.label}
246
+ </NavigationMenuTrigger>
247
+ <NavigationMenuContent>
248
+ <div className="grid w-[400px] gap-3 p-4 md:w-[500px] md:grid-cols-2 lg:w-[600px]">
249
+ {item.content.map((contentItem, contentIndex) => (
250
+ <NavigationMenuLink
251
+ key={`${contentItem.title}-${contentIndex}`}
252
+ className="cursor-pointer"
253
+ onClick={() => handleItemClick(item, contentItem.href)}
254
+ >
255
+ <div className="flex items-center gap-2">
256
+ {contentItem.icon && <Icon icon={contentItem.icon} />}
257
+ {contentItem.title}
258
+ </div>
259
+ <p className="line-clamp-2 text-sm leading-snug text-muted-foreground">
260
+ {contentItem.description}
261
+ </p>
262
+ </NavigationMenuLink>
263
+ ))}
264
+ </div>
265
+ </NavigationMenuContent>
266
+ </>
267
+ ) : (
268
+ <NavigationMenuLink
269
+ onClick={() => handleItemClick(item)}
270
+ className={cn(
271
+ TRIGGER_CLASSES,
272
+ "cursor-pointer",
273
+ item.href &&
274
+ isPageActive(item.href) &&
275
+ "bg-accent text-accent-foreground",
276
+ disabled && "pointer-events-none opacity-50",
277
+ )}
278
+ >
279
+ {item.label}
280
+ </NavigationMenuLink>
281
+ )}
282
+ </NavigationMenuItem>
283
+ ))}
284
+ </NavigationMenuList>
285
+ </NavigationMenuRoot>
286
+ );
287
+ };
288
+
289
+ // Properties Definition
290
+ const propertiesDefinition: PropertiesPanelDefinition<NavigationMenuProps> = {
291
+ general: Section.category(PropsCategory.Content).children({
292
+ menuItems: Prop.array<MenuItem>()
293
+
294
+ .propertiesPanel({
295
+ label: "Menu items",
296
+ controlType: "FUNCTION_CODE_EDITOR",
297
+ description:
298
+ "Array of menu items. Items with 'content' array become dropdowns.",
299
+ }),
300
+ }),
301
+ interaction: Section.category(PropsCategory.Interaction).children({
302
+ disabled: Prop.boolean().propertiesPanel({
303
+ label: "Disabled",
304
+ controlType: "SWITCH",
305
+ description: "Whether the navigation menu is disabled",
306
+ }),
307
+ }),
308
+
309
+ events: Section.category(PropsCategory.EventHandlers).children({
310
+ onItemClick: Prop.eventHandler().propertiesPanel({
311
+ label: "onItemClick",
312
+ description: "Triggered when a menu item is clicked",
313
+ computedArgs: [
314
+ {
315
+ name: "href",
316
+ type: "string",
317
+ description: "The clicked item's href",
318
+ },
319
+ ],
320
+ }),
321
+ }),
322
+ };
323
+
324
+ // Editor Configuration
325
+ const editorConfig: EditorConfig = {
326
+ icon: "menu",
327
+ description: "A collection of links for navigating websites",
328
+ };
329
+
330
+ // Registration
331
+ registerComponent(NavigationMenu, propertiesDefinition).editorConfig(
332
+ editorConfig,
333
+ );
334
+
335
+ export {
336
+ NavigationMenu,
337
+ NavigationMenuRoot,
338
+ NavigationMenuList,
339
+ NavigationMenuItem,
340
+ NavigationMenuContent,
341
+ NavigationMenuTrigger,
342
+ NavigationMenuLink,
343
+ NavigationMenuIndicator,
344
+ NavigationMenuViewport,
345
+ };
@@ -0,0 +1,192 @@
1
+ import {
2
+ ChevronLeftIcon,
3
+ ChevronRightIcon,
4
+ MoreHorizontalIcon,
5
+ } from "lucide-react";
6
+ import * as React from "react";
7
+
8
+ import { registerComponent } from "@superblocksteam/library";
9
+ import {
10
+ Prop,
11
+ Section,
12
+ PropsCategory,
13
+ type PropertiesPanelDefinition,
14
+ type EditorConfig,
15
+ } from "@superblocksteam/library";
16
+
17
+ import { buttonVariants, type Button } from "@/components/ui/button";
18
+ import { cn } from "@/lib/utils";
19
+
20
+ function Pagination({ className, ...props }: React.ComponentProps<"nav">) {
21
+ return (
22
+ <nav
23
+ role="navigation"
24
+ aria-label="pagination"
25
+ data-slot="pagination"
26
+ className={cn("mx-auto flex w-full justify-center", className)}
27
+ {...props}
28
+ />
29
+ );
30
+ }
31
+
32
+ function PaginationContent({
33
+ className,
34
+ ...props
35
+ }: React.ComponentProps<"ul">) {
36
+ return (
37
+ <ul
38
+ data-slot="pagination-content"
39
+ className={cn("flex flex-row items-center gap-1", className)}
40
+ {...props}
41
+ />
42
+ );
43
+ }
44
+
45
+ function PaginationItem({ ...props }: React.ComponentProps<"li">) {
46
+ return <li data-slot="pagination-item" {...props} />;
47
+ }
48
+
49
+ type PaginationLinkProps = {
50
+ isActive?: boolean;
51
+ disabled?: boolean;
52
+ } & Pick<React.ComponentProps<typeof Button>, "size"> &
53
+ React.ComponentProps<"a">;
54
+
55
+ function PaginationLink({
56
+ className,
57
+ isActive,
58
+ size = "icon",
59
+ ...props
60
+ }: PaginationLinkProps) {
61
+ return (
62
+ <a
63
+ aria-current={isActive ? "page" : undefined}
64
+ data-slot="pagination-link"
65
+ data-active={isActive}
66
+ className={cn(
67
+ buttonVariants({
68
+ variant: isActive ? "outline" : "ghost",
69
+ size,
70
+ }),
71
+ className,
72
+ )}
73
+ {...props}
74
+ />
75
+ );
76
+ }
77
+
78
+ function PaginationPrevious({
79
+ className,
80
+ ...props
81
+ }: React.ComponentProps<typeof PaginationLink>) {
82
+ return (
83
+ <PaginationLink
84
+ aria-label="Go to previous page"
85
+ size="default"
86
+ className={cn("gap-1 px-2.5 sm:pl-2.5", className)}
87
+ {...props}
88
+ >
89
+ <ChevronLeftIcon />
90
+ <span className="hidden sm:block">Previous</span>
91
+ </PaginationLink>
92
+ );
93
+ }
94
+
95
+ function PaginationNext({
96
+ className,
97
+ ...props
98
+ }: React.ComponentProps<typeof PaginationLink>) {
99
+ return (
100
+ <PaginationLink
101
+ aria-label="Go to next page"
102
+ size="default"
103
+ className={cn("gap-1 px-2.5 sm:pr-2.5", className)}
104
+ {...props}
105
+ >
106
+ <span className="hidden sm:block">Next</span>
107
+ <ChevronRightIcon />
108
+ </PaginationLink>
109
+ );
110
+ }
111
+
112
+ function PaginationEllipsis({
113
+ className,
114
+ ...props
115
+ }: React.ComponentProps<"span">) {
116
+ return (
117
+ <span
118
+ aria-hidden
119
+ data-slot="pagination-ellipsis"
120
+ className={cn("flex size-9 items-center justify-center", className)}
121
+ {...props}
122
+ >
123
+ <MoreHorizontalIcon className="size-4" />
124
+ <span className="sr-only">More pages</span>
125
+ </span>
126
+ );
127
+ }
128
+
129
+ // Properties Definition
130
+ const paginationLinkPropertiesDefinition: PropertiesPanelDefinition<PaginationLinkProps> =
131
+ {
132
+ general: Section.category(PropsCategory.Content).children({
133
+ isActive: Prop.boolean().propertiesPanel({
134
+ label: "Is active",
135
+ description: "Whether the link is active",
136
+ controlType: "SWITCH",
137
+ }),
138
+ }),
139
+ appearance: Section.category(PropsCategory.Appearance).children({
140
+ size: Prop.string<"sm" | "default" | "lg">().propertiesPanel({
141
+ label: "Size",
142
+ controlType: "DROP_DOWN",
143
+ options: [
144
+ { label: "Small", value: "sm" },
145
+ { label: "Default", value: "default" },
146
+ { label: "Large", value: "lg" },
147
+ ],
148
+ description: "Size variant of the pagination link",
149
+ }),
150
+ }),
151
+ interaction: Section.category(PropsCategory.Interaction).children({
152
+ disabled: Prop.boolean().propertiesPanel({
153
+ label: "Disabled",
154
+ description: "Whether the link is disabled",
155
+ controlType: "SWITCH",
156
+ }),
157
+ }),
158
+ events: Section.category(PropsCategory.EventHandlers).children({
159
+ onClick: Prop.eventHandler().propertiesPanel({
160
+ label: "onClick",
161
+ description: "Triggered when the link is clicked",
162
+ }),
163
+ }),
164
+ };
165
+
166
+ // Editor Configuration
167
+ const editorConfig: EditorConfig = {
168
+ icon: "custom",
169
+ isDraggable: true,
170
+ description:
171
+ "Pagination component with page navigation, next and previous links for navigating through large datasets.",
172
+ };
173
+
174
+ // Registration
175
+ registerComponent(Pagination).editorConfig(editorConfig);
176
+
177
+ registerComponent(PaginationLink, paginationLinkPropertiesDefinition);
178
+ registerComponent(PaginationNext, paginationLinkPropertiesDefinition);
179
+ registerComponent(PaginationPrevious, paginationLinkPropertiesDefinition);
180
+ registerComponent(PaginationEllipsis);
181
+ registerComponent(PaginationItem);
182
+ registerComponent(PaginationContent);
183
+
184
+ export {
185
+ Pagination,
186
+ PaginationContent,
187
+ PaginationLink,
188
+ PaginationItem,
189
+ PaginationPrevious,
190
+ PaginationNext,
191
+ PaginationEllipsis,
192
+ };