@superblocksteam/vite-plugin-file-sync 2.0.162 → 2.0.163-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 (442) hide show
  1. package/dist/ai-service/agent/middleware.d.ts.map +1 -1
  2. package/dist/ai-service/agent/middleware.js +18 -7
  3. package/dist/ai-service/agent/middleware.js.map +1 -1
  4. package/dist/ai-service/agent/prompts/build-base-system-prompt.d.ts.map +1 -1
  5. package/dist/ai-service/agent/prompts/build-base-system-prompt.js +43 -29
  6. package/dist/ai-service/agent/prompts/build-base-system-prompt.js.map +1 -1
  7. package/dist/ai-service/agent/prompts/build-security-scan-prompt.d.ts.map +1 -1
  8. package/dist/ai-service/agent/prompts/build-security-scan-prompt.js +25 -0
  9. package/dist/ai-service/agent/prompts/build-security-scan-prompt.js.map +1 -1
  10. package/dist/ai-service/agent/subagents/coding/run-coding-subagent.d.ts.map +1 -1
  11. package/dist/ai-service/agent/subagents/coding/run-coding-subagent.js +15 -0
  12. package/dist/ai-service/agent/subagents/coding/run-coding-subagent.js.map +1 -1
  13. package/dist/ai-service/agent/tools/apis/test-api.d.ts.map +1 -1
  14. package/dist/ai-service/agent/tools/apis/test-api.js +4 -2
  15. package/dist/ai-service/agent/tools/apis/test-api.js.map +1 -1
  16. package/dist/ai-service/agent/tools/app-environment/switch-selected-environment.d.ts +18 -0
  17. package/dist/ai-service/agent/tools/app-environment/switch-selected-environment.d.ts.map +1 -0
  18. package/dist/ai-service/agent/tools/app-environment/switch-selected-environment.js +61 -0
  19. package/dist/ai-service/agent/tools/app-environment/switch-selected-environment.js.map +1 -0
  20. package/dist/ai-service/agent/tools/build-capture-screenshot.js +1 -1
  21. package/dist/ai-service/agent/tools/build-install-packages.d.ts.map +1 -1
  22. package/dist/ai-service/agent/tools/build-install-packages.js +21 -8
  23. package/dist/ai-service/agent/tools/build-install-packages.js.map +1 -1
  24. package/dist/ai-service/agent/tools/build-read-file.d.ts +87 -1
  25. package/dist/ai-service/agent/tools/build-read-file.d.ts.map +1 -1
  26. package/dist/ai-service/agent/tools/build-read-file.js +453 -82
  27. package/dist/ai-service/agent/tools/build-read-file.js.map +1 -1
  28. package/dist/ai-service/agent/tools/build-write-file.d.ts +1 -0
  29. package/dist/ai-service/agent/tools/build-write-file.d.ts.map +1 -1
  30. package/dist/ai-service/agent/tools/build-write-file.js +18 -2
  31. package/dist/ai-service/agent/tools/build-write-file.js.map +1 -1
  32. package/dist/ai-service/agent/tools/debug-cache.d.ts +11 -0
  33. package/dist/ai-service/agent/tools/debug-cache.d.ts.map +1 -1
  34. package/dist/ai-service/agent/tools/debug-cache.js +62 -14
  35. package/dist/ai-service/agent/tools/debug-cache.js.map +1 -1
  36. package/dist/ai-service/agent/tools/index.d.ts +2 -1
  37. package/dist/ai-service/agent/tools/index.d.ts.map +1 -1
  38. package/dist/ai-service/agent/tools/index.js +2 -1
  39. package/dist/ai-service/agent/tools/index.js.map +1 -1
  40. package/dist/ai-service/agent/tools/integrations/metadata.d.ts +1 -0
  41. package/dist/ai-service/agent/tools/integrations/metadata.d.ts.map +1 -1
  42. package/dist/ai-service/agent/tools/integrations/metadata.js +7 -2
  43. package/dist/ai-service/agent/tools/integrations/metadata.js.map +1 -1
  44. package/dist/ai-service/agent/tools/read-file-metrics.d.ts +30 -0
  45. package/dist/ai-service/agent/tools/read-file-metrics.d.ts.map +1 -0
  46. package/dist/ai-service/agent/tools/read-file-metrics.js +158 -0
  47. package/dist/ai-service/agent/tools/read-file-metrics.js.map +1 -0
  48. package/dist/ai-service/agent/tools/subagent-isolation.d.ts +27 -0
  49. package/dist/ai-service/agent/tools/subagent-isolation.d.ts.map +1 -0
  50. package/dist/ai-service/agent/tools/subagent-isolation.js +57 -0
  51. package/dist/ai-service/agent/tools/subagent-isolation.js.map +1 -0
  52. package/dist/ai-service/agent/tools.d.ts +4 -1
  53. package/dist/ai-service/agent/tools.d.ts.map +1 -1
  54. package/dist/ai-service/agent/tools.js +51 -5
  55. package/dist/ai-service/agent/tools.js.map +1 -1
  56. package/dist/ai-service/agent/tools2/tools/download-attachments.d.ts.map +1 -1
  57. package/dist/ai-service/agent/tools2/tools/download-attachments.js +1 -0
  58. package/dist/ai-service/agent/tools2/tools/download-attachments.js.map +1 -1
  59. package/dist/ai-service/agent/tools2/tools/start-test-run.d.ts.map +1 -1
  60. package/dist/ai-service/agent/tools2/tools/start-test-run.js +14 -0
  61. package/dist/ai-service/agent/tools2/tools/start-test-run.js.map +1 -1
  62. package/dist/ai-service/agent/utils.d.ts.map +1 -1
  63. package/dist/ai-service/agent/utils.js +2 -2
  64. package/dist/ai-service/agent/utils.js.map +1 -1
  65. package/dist/ai-service/app-interface/filesystem/draft-manager.d.ts +2 -1
  66. package/dist/ai-service/app-interface/filesystem/draft-manager.d.ts.map +1 -1
  67. package/dist/ai-service/app-interface/filesystem/draft-manager.js +3 -0
  68. package/dist/ai-service/app-interface/filesystem/draft-manager.js.map +1 -1
  69. package/dist/ai-service/app-interface/filesystem/handlers/skill-handler.d.ts +2 -1
  70. package/dist/ai-service/app-interface/filesystem/handlers/skill-handler.d.ts.map +1 -1
  71. package/dist/ai-service/app-interface/filesystem/handlers/skill-handler.js +13 -11
  72. package/dist/ai-service/app-interface/filesystem/handlers/skill-handler.js.map +1 -1
  73. package/dist/ai-service/app-interface/filesystem/virtual-file-system.d.ts.map +1 -1
  74. package/dist/ai-service/app-interface/filesystem/virtual-file-system.js +1 -1
  75. package/dist/ai-service/app-interface/filesystem/virtual-file-system.js.map +1 -1
  76. package/dist/ai-service/app-interface/shell.d.ts +18 -9
  77. package/dist/ai-service/app-interface/shell.d.ts.map +1 -1
  78. package/dist/ai-service/app-interface/shell.js +92 -112
  79. package/dist/ai-service/app-interface/shell.js.map +1 -1
  80. package/dist/ai-service/app-interface/typecheck-output-parser.d.ts +9 -0
  81. package/dist/ai-service/app-interface/typecheck-output-parser.d.ts.map +1 -0
  82. package/dist/ai-service/app-interface/typecheck-output-parser.js +21 -0
  83. package/dist/ai-service/app-interface/typecheck-output-parser.js.map +1 -0
  84. package/dist/ai-service/app-interface/vulnerability-gate.d.ts +5 -0
  85. package/dist/ai-service/app-interface/vulnerability-gate.d.ts.map +1 -1
  86. package/dist/ai-service/app-interface/vulnerability-gate.js +9 -2
  87. package/dist/ai-service/app-interface/vulnerability-gate.js.map +1 -1
  88. package/dist/ai-service/app-layout.d.ts +13 -0
  89. package/dist/ai-service/app-layout.d.ts.map +1 -0
  90. package/dist/ai-service/app-layout.js +25 -0
  91. package/dist/ai-service/app-layout.js.map +1 -0
  92. package/dist/ai-service/app-skills/manager.d.ts +2 -0
  93. package/dist/ai-service/app-skills/manager.d.ts.map +1 -1
  94. package/dist/ai-service/app-skills/manager.js +13 -6
  95. package/dist/ai-service/app-skills/manager.js.map +1 -1
  96. package/dist/ai-service/attachment-label-metrics.d.ts +5 -0
  97. package/dist/ai-service/attachment-label-metrics.d.ts.map +1 -0
  98. package/dist/ai-service/attachment-label-metrics.js +26 -0
  99. package/dist/ai-service/attachment-label-metrics.js.map +1 -0
  100. package/dist/ai-service/attachment-upload.d.ts.map +1 -1
  101. package/dist/ai-service/attachment-upload.js +6 -1
  102. package/dist/ai-service/attachment-upload.js.map +1 -1
  103. package/dist/ai-service/attachments/validate-prompt-attachments.d.ts +7 -0
  104. package/dist/ai-service/attachments/validate-prompt-attachments.d.ts.map +1 -0
  105. package/dist/ai-service/attachments/validate-prompt-attachments.js +96 -0
  106. package/dist/ai-service/attachments/validate-prompt-attachments.js.map +1 -0
  107. package/dist/ai-service/chat/chat-push-metrics.d.ts +17 -0
  108. package/dist/ai-service/chat/chat-push-metrics.d.ts.map +1 -1
  109. package/dist/ai-service/chat/chat-push-metrics.js +45 -0
  110. package/dist/ai-service/chat/chat-push-metrics.js.map +1 -1
  111. package/dist/ai-service/chat/chat-session-store.d.ts +51 -0
  112. package/dist/ai-service/chat/chat-session-store.d.ts.map +1 -1
  113. package/dist/ai-service/chat/chat-session-store.js +181 -4
  114. package/dist/ai-service/chat/chat-session-store.js.map +1 -1
  115. package/dist/ai-service/features.d.ts +32 -0
  116. package/dist/ai-service/features.d.ts.map +1 -1
  117. package/dist/ai-service/features.js +32 -0
  118. package/dist/ai-service/features.js.map +1 -1
  119. package/dist/ai-service/helper-system-ai-attributes.d.ts +1 -1
  120. package/dist/ai-service/helper-system-ai-attributes.d.ts.map +1 -1
  121. package/dist/ai-service/helper-system-ai-attributes.js.map +1 -1
  122. package/dist/ai-service/index.d.ts +19 -4
  123. package/dist/ai-service/index.d.ts.map +1 -1
  124. package/dist/ai-service/index.js +177 -23
  125. package/dist/ai-service/index.js.map +1 -1
  126. package/dist/ai-service/llm/client.d.ts +9 -0
  127. package/dist/ai-service/llm/client.d.ts.map +1 -1
  128. package/dist/ai-service/llm/client.js +13 -43
  129. package/dist/ai-service/llm/client.js.map +1 -1
  130. package/dist/ai-service/llm/context-v2/adapter.d.ts +2 -0
  131. package/dist/ai-service/llm/context-v2/adapter.d.ts.map +1 -1
  132. package/dist/ai-service/llm/context-v2/adapter.js +6 -0
  133. package/dist/ai-service/llm/context-v2/adapter.js.map +1 -1
  134. package/dist/ai-service/llm/context-v2/compaction/client-side.d.ts +3 -0
  135. package/dist/ai-service/llm/context-v2/compaction/client-side.d.ts.map +1 -1
  136. package/dist/ai-service/llm/context-v2/compaction/client-side.js +3 -0
  137. package/dist/ai-service/llm/context-v2/compaction/client-side.js.map +1 -1
  138. package/dist/ai-service/llm/context-v2/compaction/server-side.d.ts +8 -0
  139. package/dist/ai-service/llm/context-v2/compaction/server-side.d.ts.map +1 -1
  140. package/dist/ai-service/llm/context-v2/compaction/server-side.js +8 -0
  141. package/dist/ai-service/llm/context-v2/compaction/server-side.js.map +1 -1
  142. package/dist/ai-service/llm/context-v2/compactor.d.ts +2 -0
  143. package/dist/ai-service/llm/context-v2/compactor.d.ts.map +1 -1
  144. package/dist/ai-service/llm/context-v2/compactor.js +4 -1
  145. package/dist/ai-service/llm/context-v2/compactor.js.map +1 -1
  146. package/dist/ai-service/llm/context-v2/context-component-partition.d.ts +24 -0
  147. package/dist/ai-service/llm/context-v2/context-component-partition.d.ts.map +1 -0
  148. package/dist/ai-service/llm/context-v2/context-component-partition.js +222 -0
  149. package/dist/ai-service/llm/context-v2/context-component-partition.js.map +1 -0
  150. package/dist/ai-service/llm/context-v2/context-management.d.ts +7 -0
  151. package/dist/ai-service/llm/context-v2/context-management.d.ts.map +1 -1
  152. package/dist/ai-service/llm/context-v2/context-management.js +4 -0
  153. package/dist/ai-service/llm/context-v2/context-management.js.map +1 -1
  154. package/dist/ai-service/llm/context-v2/context-metrics.d.ts +9 -0
  155. package/dist/ai-service/llm/context-v2/context-metrics.d.ts.map +1 -1
  156. package/dist/ai-service/llm/context-v2/context-metrics.js +40 -2
  157. package/dist/ai-service/llm/context-v2/context-metrics.js.map +1 -1
  158. package/dist/ai-service/llm/context-v2/context.d.ts +116 -4
  159. package/dist/ai-service/llm/context-v2/context.d.ts.map +1 -1
  160. package/dist/ai-service/llm/context-v2/context.js +276 -64
  161. package/dist/ai-service/llm/context-v2/context.js.map +1 -1
  162. package/dist/ai-service/llm/context-v2/conversation-context.d.ts +18 -0
  163. package/dist/ai-service/llm/context-v2/conversation-context.d.ts.map +1 -1
  164. package/dist/ai-service/llm/context-v2/file-read-ledger.d.ts +218 -0
  165. package/dist/ai-service/llm/context-v2/file-read-ledger.d.ts.map +1 -0
  166. package/dist/ai-service/llm/context-v2/file-read-ledger.js +275 -0
  167. package/dist/ai-service/llm/context-v2/file-read-ledger.js.map +1 -0
  168. package/dist/ai-service/llm/context-v2/manager.d.ts.map +1 -1
  169. package/dist/ai-service/llm/context-v2/manager.js +1 -0
  170. package/dist/ai-service/llm/context-v2/manager.js.map +1 -1
  171. package/dist/ai-service/llm/context-v2/phase1-tool-summarizer.d.ts +8 -0
  172. package/dist/ai-service/llm/context-v2/phase1-tool-summarizer.d.ts.map +1 -1
  173. package/dist/ai-service/llm/context-v2/phase1-tool-summarizer.js +53 -4
  174. package/dist/ai-service/llm/context-v2/phase1-tool-summarizer.js.map +1 -1
  175. package/dist/ai-service/llm/context-v2/token-tracker.d.ts +2 -0
  176. package/dist/ai-service/llm/context-v2/token-tracker.d.ts.map +1 -1
  177. package/dist/ai-service/llm/context-v2/token-tracker.js +4 -0
  178. package/dist/ai-service/llm/context-v2/token-tracker.js.map +1 -1
  179. package/dist/ai-service/llm/context-v2/tool-schema-tokens.d.ts +22 -0
  180. package/dist/ai-service/llm/context-v2/tool-schema-tokens.d.ts.map +1 -0
  181. package/dist/ai-service/llm/context-v2/tool-schema-tokens.js +36 -0
  182. package/dist/ai-service/llm/context-v2/tool-schema-tokens.js.map +1 -0
  183. package/dist/ai-service/llm/context-v2/types.d.ts +8 -0
  184. package/dist/ai-service/llm/context-v2/types.d.ts.map +1 -1
  185. package/dist/ai-service/llm/context-v2/types.js +48 -0
  186. package/dist/ai-service/llm/context-v2/types.js.map +1 -1
  187. package/dist/ai-service/llm/error.d.ts +2 -0
  188. package/dist/ai-service/llm/error.d.ts.map +1 -1
  189. package/dist/ai-service/llm/error.js +1 -0
  190. package/dist/ai-service/llm/error.js.map +1 -1
  191. package/dist/ai-service/llm/retry-exhaustion-reason.d.ts +2 -0
  192. package/dist/ai-service/llm/retry-exhaustion-reason.d.ts.map +1 -0
  193. package/dist/ai-service/llm/retry-exhaustion-reason.js +2 -0
  194. package/dist/ai-service/llm/retry-exhaustion-reason.js.map +1 -0
  195. package/dist/ai-service/llm/stream/config.d.ts +1 -1
  196. package/dist/ai-service/llm/stream/config.d.ts.map +1 -1
  197. package/dist/ai-service/llm/stream/config.js.map +1 -1
  198. package/dist/ai-service/llm/stream/errors.d.ts +6 -7
  199. package/dist/ai-service/llm/stream/errors.d.ts.map +1 -1
  200. package/dist/ai-service/llm/stream/errors.js +7 -1
  201. package/dist/ai-service/llm/stream/errors.js.map +1 -1
  202. package/dist/ai-service/llm/stream/event-bus.d.ts +9 -1
  203. package/dist/ai-service/llm/stream/event-bus.d.ts.map +1 -1
  204. package/dist/ai-service/llm/stream/event-bus.js.map +1 -1
  205. package/dist/ai-service/llm/stream/idle-monitor.d.ts.map +1 -1
  206. package/dist/ai-service/llm/stream/idle-monitor.js.map +1 -1
  207. package/dist/ai-service/llm/stream/observers/context.d.ts.map +1 -1
  208. package/dist/ai-service/llm/stream/observers/context.js +13 -0
  209. package/dist/ai-service/llm/stream/observers/context.js.map +1 -1
  210. package/dist/ai-service/llm/stream/observers/llmobs.d.ts +14 -1
  211. package/dist/ai-service/llm/stream/observers/llmobs.d.ts.map +1 -1
  212. package/dist/ai-service/llm/stream/observers/llmobs.js +91 -7
  213. package/dist/ai-service/llm/stream/observers/llmobs.js.map +1 -1
  214. package/dist/ai-service/llm/stream/observers/logging.d.ts +3 -1
  215. package/dist/ai-service/llm/stream/observers/logging.d.ts.map +1 -1
  216. package/dist/ai-service/llm/stream/observers/logging.js +73 -52
  217. package/dist/ai-service/llm/stream/observers/logging.js.map +1 -1
  218. package/dist/ai-service/llm/stream/observers/retry-notification.d.ts.map +1 -1
  219. package/dist/ai-service/llm/stream/observers/retry-notification.js +16 -9
  220. package/dist/ai-service/llm/stream/observers/retry-notification.js.map +1 -1
  221. package/dist/ai-service/llm/stream/orchestrator.d.ts +5 -1
  222. package/dist/ai-service/llm/stream/orchestrator.d.ts.map +1 -1
  223. package/dist/ai-service/llm/stream/orchestrator.js +103 -12
  224. package/dist/ai-service/llm/stream/orchestrator.js.map +1 -1
  225. package/dist/ai-service/llm/stream/retry-engine.d.ts +3 -1
  226. package/dist/ai-service/llm/stream/retry-engine.d.ts.map +1 -1
  227. package/dist/ai-service/llm/stream/retry-engine.js +9 -0
  228. package/dist/ai-service/llm/stream/retry-engine.js.map +1 -1
  229. package/dist/ai-service/llm/stream/session.d.ts +8 -1
  230. package/dist/ai-service/llm/stream/session.d.ts.map +1 -1
  231. package/dist/ai-service/llm/stream/session.js +19 -0
  232. package/dist/ai-service/llm/stream/session.js.map +1 -1
  233. package/dist/ai-service/llm/stream/types.d.ts +13 -0
  234. package/dist/ai-service/llm/stream/types.d.ts.map +1 -1
  235. package/dist/ai-service/llm/stream/wait-state-tracker.d.ts +5 -14
  236. package/dist/ai-service/llm/stream/wait-state-tracker.d.ts.map +1 -1
  237. package/dist/ai-service/llm/stream/wait-state-tracker.js +25 -0
  238. package/dist/ai-service/llm/stream/wait-state-tracker.js.map +1 -1
  239. package/dist/ai-service/mcp/embedded-playwright-mcp-server.js +8 -8
  240. package/dist/ai-service/mcp/embedded-playwright-mcp-server.js.map +1 -1
  241. package/dist/ai-service/migration-llm-config.d.ts.map +1 -1
  242. package/dist/ai-service/migration-llm-config.js +2 -11
  243. package/dist/ai-service/migration-llm-config.js.map +1 -1
  244. package/dist/ai-service/policy-gate-remediation-usage.d.ts +2 -0
  245. package/dist/ai-service/policy-gate-remediation-usage.d.ts.map +1 -0
  246. package/dist/ai-service/policy-gate-remediation-usage.js +56 -0
  247. package/dist/ai-service/policy-gate-remediation-usage.js.map +1 -0
  248. package/dist/ai-service/prompts/summarize-destructive-migration.d.ts +12 -0
  249. package/dist/ai-service/prompts/summarize-destructive-migration.d.ts.map +1 -0
  250. package/dist/ai-service/prompts/summarize-destructive-migration.js +37 -0
  251. package/dist/ai-service/prompts/summarize-destructive-migration.js.map +1 -0
  252. package/dist/ai-service/recording/storage/session-recording-storage.js +2 -2
  253. package/dist/ai-service/recording/storage/session-recording-storage.js.map +1 -1
  254. package/dist/ai-service/security/secret-scanner-service.d.ts.map +1 -1
  255. package/dist/ai-service/security/secret-scanner-service.js +88 -23
  256. package/dist/ai-service/security/secret-scanner-service.js.map +1 -1
  257. package/dist/ai-service/skills/index.d.ts +0 -7
  258. package/dist/ai-service/skills/index.d.ts.map +1 -1
  259. package/dist/ai-service/skills/index.js +0 -9
  260. package/dist/ai-service/skills/index.js.map +1 -1
  261. package/dist/ai-service/skills/system/_registry.generated.d.ts.map +1 -1
  262. package/dist/ai-service/skills/system/_registry.generated.js +4 -0
  263. package/dist/ai-service/skills/system/_registry.generated.js.map +1 -1
  264. package/dist/ai-service/skills/system/resolve.d.ts +2 -0
  265. package/dist/ai-service/skills/system/resolve.d.ts.map +1 -0
  266. package/dist/ai-service/skills/system/resolve.js +32 -0
  267. package/dist/ai-service/skills/system/resolve.js.map +1 -0
  268. package/dist/ai-service/skills/system/superblocks-frontend/_variants/api-imports-legacy.generated.d.ts +2 -0
  269. package/dist/ai-service/skills/system/superblocks-frontend/_variants/api-imports-legacy.generated.d.ts.map +1 -0
  270. package/dist/ai-service/skills/system/superblocks-frontend/_variants/api-imports-legacy.generated.js +9 -0
  271. package/dist/ai-service/skills/system/superblocks-frontend/_variants/api-imports-legacy.generated.js.map +1 -0
  272. package/dist/ai-service/skills/system/superblocks-frontend/_variants/api-imports-sdk.generated.d.ts +2 -0
  273. package/dist/ai-service/skills/system/superblocks-frontend/_variants/api-imports-sdk.generated.d.ts.map +1 -0
  274. package/dist/ai-service/skills/system/superblocks-frontend/_variants/api-imports-sdk.generated.js +11 -0
  275. package/dist/ai-service/skills/system/superblocks-frontend/_variants/api-imports-sdk.generated.js.map +1 -0
  276. package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.d.ts +1 -1
  277. package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.d.ts.map +1 -1
  278. package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.js +16 -24
  279. package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.js.map +1 -1
  280. package/dist/ai-service/skills/system/third-party-migration/skill.generated.d.ts +1 -1
  281. package/dist/ai-service/skills/system/third-party-migration/skill.generated.d.ts.map +1 -1
  282. package/dist/ai-service/skills/system/third-party-migration/skill.generated.js +1 -1
  283. package/dist/ai-service/state-machine/clark-fsm.d.ts +11 -0
  284. package/dist/ai-service/state-machine/clark-fsm.d.ts.map +1 -1
  285. package/dist/ai-service/state-machine/clark-fsm.js +8 -1
  286. package/dist/ai-service/state-machine/clark-fsm.js.map +1 -1
  287. package/dist/ai-service/state-machine/handlers/agent-planning.d.ts.map +1 -1
  288. package/dist/ai-service/state-machine/handlers/agent-planning.js +21 -0
  289. package/dist/ai-service/state-machine/handlers/agent-planning.js.map +1 -1
  290. package/dist/ai-service/state-machine/handlers/llm-generating.d.ts.map +1 -1
  291. package/dist/ai-service/state-machine/handlers/llm-generating.js +32 -9
  292. package/dist/ai-service/state-machine/handlers/llm-generating.js.map +1 -1
  293. package/dist/ai-service/state-machine/handlers/runtime-reviewing.d.ts.map +1 -1
  294. package/dist/ai-service/state-machine/handlers/runtime-reviewing.js +21 -2
  295. package/dist/ai-service/state-machine/handlers/runtime-reviewing.js.map +1 -1
  296. package/dist/ai-service/state-machine/helpers/stable-peer.d.ts +11 -2
  297. package/dist/ai-service/state-machine/helpers/stable-peer.d.ts.map +1 -1
  298. package/dist/ai-service/state-machine/helpers/stable-peer.js +105 -18
  299. package/dist/ai-service/state-machine/helpers/stable-peer.js.map +1 -1
  300. package/dist/ai-service/state-machine/mocks.d.ts +3 -1
  301. package/dist/ai-service/state-machine/mocks.d.ts.map +1 -1
  302. package/dist/ai-service/state-machine/mocks.js +52 -13
  303. package/dist/ai-service/state-machine/mocks.js.map +1 -1
  304. package/dist/ai-service/tasks/peer-push.d.ts +3 -0
  305. package/dist/ai-service/tasks/peer-push.d.ts.map +1 -1
  306. package/dist/ai-service/tasks/peer-push.js +33 -0
  307. package/dist/ai-service/tasks/peer-push.js.map +1 -1
  308. package/dist/ai-service/util/call-peer.d.ts +2 -0
  309. package/dist/ai-service/util/call-peer.d.ts.map +1 -1
  310. package/dist/ai-service/util/call-peer.js +17 -4
  311. package/dist/ai-service/util/call-peer.js.map +1 -1
  312. package/dist/ai-service/util/line-ranges.d.ts +21 -0
  313. package/dist/ai-service/util/line-ranges.d.ts.map +1 -0
  314. package/dist/ai-service/util/line-ranges.js +36 -0
  315. package/dist/ai-service/util/line-ranges.js.map +1 -0
  316. package/dist/ai-service/util/peer-liveness.d.ts +1 -0
  317. package/dist/ai-service/util/peer-liveness.d.ts.map +1 -1
  318. package/dist/ai-service/util/peer-liveness.js +2 -0
  319. package/dist/ai-service/util/peer-liveness.js.map +1 -1
  320. package/dist/dev-server-ws-smoke-client.d.ts.map +1 -1
  321. package/dist/dev-server-ws-smoke-client.js +7 -0
  322. package/dist/dev-server-ws-smoke-client.js.map +1 -1
  323. package/dist/draft-interface.d.ts +8 -0
  324. package/dist/draft-interface.d.ts.map +1 -1
  325. package/dist/early-error-relay.d.ts +2 -0
  326. package/dist/early-error-relay.d.ts.map +1 -1
  327. package/dist/early-error-relay.js +7 -3
  328. package/dist/early-error-relay.js.map +1 -1
  329. package/dist/file-sync-vite-plugin.d.ts.map +1 -1
  330. package/dist/file-sync-vite-plugin.js +43 -15
  331. package/dist/file-sync-vite-plugin.js.map +1 -1
  332. package/dist/file-system-helpers.d.ts +2 -2
  333. package/dist/file-system-helpers.d.ts.map +1 -1
  334. package/dist/file-system-helpers.js +3 -3
  335. package/dist/file-system-helpers.js.map +1 -1
  336. package/dist/git-service/errors.d.ts +9 -0
  337. package/dist/git-service/errors.d.ts.map +1 -1
  338. package/dist/git-service/errors.js +15 -0
  339. package/dist/git-service/errors.js.map +1 -1
  340. package/dist/git-service/index.d.ts +2 -2
  341. package/dist/git-service/index.d.ts.map +1 -1
  342. package/dist/git-service/index.js +2 -2
  343. package/dist/git-service/index.js.map +1 -1
  344. package/dist/index.d.ts +1 -0
  345. package/dist/index.d.ts.map +1 -1
  346. package/dist/index.js +1 -0
  347. package/dist/index.js.map +1 -1
  348. package/dist/lock-service/activity-tracker.d.ts +5 -0
  349. package/dist/lock-service/activity-tracker.d.ts.map +1 -1
  350. package/dist/lock-service/activity-tracker.js +10 -0
  351. package/dist/lock-service/activity-tracker.js.map +1 -1
  352. package/dist/lock-service/index.d.ts +69 -4
  353. package/dist/lock-service/index.d.ts.map +1 -1
  354. package/dist/lock-service/index.js +139 -29
  355. package/dist/lock-service/index.js.map +1 -1
  356. package/dist/migration-templates/app-fullstack/client/components/ui/accordion.tsx +9 -65
  357. package/dist/migration-templates/app-fullstack/client/components/ui/area-chart.tsx +36 -156
  358. package/dist/migration-templates/app-fullstack/client/components/ui/aspect-ratio.tsx +1 -5
  359. package/dist/migration-templates/app-fullstack/client/components/ui/avatar.tsx +4 -18
  360. package/dist/migration-templates/app-fullstack/client/components/ui/badge.tsx +6 -29
  361. package/dist/migration-templates/app-fullstack/client/components/ui/bar-chart.tsx +41 -167
  362. package/dist/migration-templates/app-fullstack/client/components/ui/breadcrumb.tsx +1 -4
  363. package/dist/migration-templates/app-fullstack/client/components/ui/button.tsx +5 -64
  364. package/dist/migration-templates/app-fullstack/client/components/ui/calendar.tsx +6 -42
  365. package/dist/migration-templates/app-fullstack/client/components/ui/card.tsx +1 -4
  366. package/dist/migration-templates/app-fullstack/client/components/ui/checkbox.tsx +4 -29
  367. package/dist/migration-templates/app-fullstack/client/components/ui/date-range-picker.tsx +13 -154
  368. package/dist/migration-templates/app-fullstack/client/components/ui/dialog.tsx +7 -34
  369. package/dist/migration-templates/app-fullstack/client/components/ui/file-dropzone.tsx +12 -95
  370. package/dist/migration-templates/app-fullstack/client/components/ui/file-input.tsx +12 -73
  371. package/dist/migration-templates/app-fullstack/client/components/ui/hover-card.tsx +10 -66
  372. package/dist/migration-templates/app-fullstack/client/components/ui/icon.tsx +3 -16
  373. package/dist/migration-templates/app-fullstack/client/components/ui/image.tsx +4 -16
  374. package/dist/migration-templates/app-fullstack/client/components/ui/input.tsx +18 -159
  375. package/dist/migration-templates/app-fullstack/client/components/ui/label.tsx +1 -4
  376. package/dist/migration-templates/app-fullstack/client/components/ui/line-chart.tsx +32 -148
  377. package/dist/migration-templates/app-fullstack/client/components/ui/link.tsx +4 -24
  378. package/dist/migration-templates/app-fullstack/client/components/ui/navigation-menu.tsx +3 -24
  379. package/dist/migration-templates/app-fullstack/client/components/ui/pagination.tsx +4 -24
  380. package/dist/migration-templates/app-fullstack/client/components/ui/pie-chart.tsx +28 -142
  381. package/dist/migration-templates/app-fullstack/client/components/ui/popover.tsx +9 -61
  382. package/dist/migration-templates/app-fullstack/client/components/ui/progress.tsx +2 -11
  383. package/dist/migration-templates/app-fullstack/client/components/ui/radar-chart.tsx +37 -171
  384. package/dist/migration-templates/app-fullstack/client/components/ui/radial-chart.tsx +50 -202
  385. package/dist/migration-templates/app-fullstack/client/components/ui/select.tsx +5 -35
  386. package/dist/migration-templates/app-fullstack/client/components/ui/separator.tsx +1 -8
  387. package/dist/migration-templates/app-fullstack/client/components/ui/sheet.tsx +7 -40
  388. package/dist/migration-templates/app-fullstack/client/components/ui/sidebar.tsx +3 -35
  389. package/dist/migration-templates/app-fullstack/client/components/ui/slider.tsx +11 -95
  390. package/dist/migration-templates/app-fullstack/client/components/ui/switch.tsx +5 -32
  391. package/dist/migration-templates/app-fullstack/client/components/ui/textarea.tsx +13 -90
  392. package/dist/migration-templates/app-fullstack/client/components/ui/toggle-group.tsx +11 -75
  393. package/dist/migration-templates/app-fullstack/client/components/ui/toggle.tsx +8 -70
  394. package/dist/migration-templates/app-fullstack/client/components/ui/tooltip.tsx +9 -62
  395. package/dist/parsing/imports.d.ts +22 -0
  396. package/dist/parsing/imports.d.ts.map +1 -1
  397. package/dist/parsing/imports.js +71 -0
  398. package/dist/parsing/imports.js.map +1 -1
  399. package/dist/reconnect-guard-plugin.d.ts +53 -0
  400. package/dist/reconnect-guard-plugin.d.ts.map +1 -0
  401. package/dist/reconnect-guard-plugin.js +203 -0
  402. package/dist/reconnect-guard-plugin.js.map +1 -0
  403. package/dist/resolver.d.ts +2 -1
  404. package/dist/resolver.d.ts.map +1 -1
  405. package/dist/resolver.js +4 -6
  406. package/dist/resolver.js.map +1 -1
  407. package/dist/router-parser-metrics.d.ts +2 -1
  408. package/dist/router-parser-metrics.d.ts.map +1 -1
  409. package/dist/router-parser-metrics.js.map +1 -1
  410. package/dist/router-parser.d.ts +10 -1
  411. package/dist/router-parser.d.ts.map +1 -1
  412. package/dist/router-parser.js +306 -69
  413. package/dist/router-parser.js.map +1 -1
  414. package/dist/scan-scope-merge-metrics.d.ts +2 -0
  415. package/dist/scan-scope-merge-metrics.d.ts.map +1 -0
  416. package/dist/scan-scope-merge-metrics.js +18 -0
  417. package/dist/scan-scope-merge-metrics.js.map +1 -0
  418. package/dist/scan-scope-merge.d.ts +2 -2
  419. package/dist/scan-scope-merge.d.ts.map +1 -1
  420. package/dist/scan-scope-merge.js +64 -14
  421. package/dist/scan-scope-merge.js.map +1 -1
  422. package/dist/server-rpc/index.d.ts.map +1 -1
  423. package/dist/server-rpc/index.js +12 -2
  424. package/dist/server-rpc/index.js.map +1 -1
  425. package/dist/socket-manager.d.ts +1 -1
  426. package/dist/socket-manager.d.ts.map +1 -1
  427. package/dist/socket-manager.js +276 -15
  428. package/dist/socket-manager.js.map +1 -1
  429. package/dist/sync-service/download.js +2 -2
  430. package/dist/sync-service/download.js.map +1 -1
  431. package/dist/sync-service/index.d.ts +95 -22
  432. package/dist/sync-service/index.d.ts.map +1 -1
  433. package/dist/sync-service/index.js +402 -56
  434. package/dist/sync-service/index.js.map +1 -1
  435. package/dist/sync-service/page-reference-guard.d.ts +17 -0
  436. package/dist/sync-service/page-reference-guard.d.ts.map +1 -0
  437. package/dist/sync-service/page-reference-guard.js +170 -0
  438. package/dist/sync-service/page-reference-guard.js.map +1 -0
  439. package/dist/util.d.ts.map +1 -1
  440. package/dist/util.js +16 -2
  441. package/dist/util.js.map +1 -1
  442. package/package.json +15 -14
@@ -245,132 +245,42 @@ const AreaChart = ({ className, ...props }: ComponentProps) => {
245
245
 
246
246
  const properties = {
247
247
  general: Section.category(PropsCategory.Content).children({
248
- data: Prop.array<any>()
249
- .propertiesPanel({
250
- label: "Data",
251
- description: "Array of data objects for the area chart",
252
- controlType: "FUNCTION_CODE_EDITOR",
253
- isJSConvertible: false,
254
- })
255
- .docs({
256
- description:
257
- "Array of objects where each object represents a data point with X-axis and Y-axis values. Each object should contain the xAxisKey property and properties for each data series defined in categories. Example: [{month: 'January', desktop: 186, mobile: 80}, {month: 'February', desktop: 305, mobile: 200}]. Multiple Y-value properties create multiple area series.",
258
- }),
248
+ data: Prop.array<any>().docs({
249
+ description:
250
+ "Array of objects where each object represents a data point with X-axis and Y-axis values. Each object should contain the xAxisKey property and properties for each data series defined in categories. Example: [{month: 'January', desktop: 186, mobile: 80}, {month: 'February', desktop: 305, mobile: 200}]. Multiple Y-value properties create multiple area series.",
251
+ }),
259
252
 
260
- xAxisKey: Prop.string()
261
- .propertiesPanel({
262
- label: "X-axis data key",
263
- description: " name for X-axis values (categories)",
264
- placeholder: "month",
265
- controlType: "DROP_DOWN",
266
- options: function (this) {
267
- if (!this.data || !Array.isArray(this.data) || !this.data.length) {
268
- return [];
269
- }
270
- const keys = Object.keys(this.data[0]);
271
- return keys.map((key) => ({
272
- label: key,
273
- value: key,
274
- }));
275
- },
276
- })
277
- .docs({
278
- description:
279
- "The property name in your data objects that contains the X-axis values (categories, dates, or labels). This determines the horizontal positioning of data points. Should be consistent across all data objects.",
280
- }),
253
+ xAxisKey: Prop.string().docs({
254
+ description:
255
+ "The property name in your data objects that contains the X-axis values (categories, dates, or labels). This determines the horizontal positioning of data points. Should be consistent across all data objects.",
256
+ }),
281
257
 
282
- categories: Prop.array<string>()
283
- .propertiesPanel({
284
- label: "Categories",
285
- description:
286
- "Array of data keys to plot as area series (optional, auto-detects numeric properties if not provided)",
287
- controlType: "FUNCTION_CODE_EDITOR",
288
- isJSConvertible: false,
289
- })
290
- .docs({
291
- description:
292
- "Array of property names from your data objects to plot as separate area series. Example: ['desktop', 'mobile'] will create two area series. Each category should correspond to a numeric property in your data. If not provided, automatically detects all numeric properties (excluding xAxisKey) from the data.",
293
- }),
258
+ categories: Prop.array<string>().docs({
259
+ description:
260
+ "Array of property names from your data objects to plot as separate area series. Example: ['desktop', 'mobile'] will create two area series. Each category should correspond to a numeric property in your data. If not provided, automatically detects all numeric properties (excluding xAxisKey) from the data.",
261
+ }),
294
262
 
295
- seriesLabels: Prop.any<Record<string, string>>()
296
- .propertiesPanel({
297
- label: "Series labels",
298
- description:
299
- "Optional labels for series (optional, defaults to category names)",
300
- controlType: "FUNCTION_CODE_EDITOR",
301
- isJSConvertible: false,
302
- })
303
- .docs({
304
- description:
305
- "Optional object mapping category keys to display labels. Example: {desktop: 'Desktop Users', mobile: 'Mobile Users'}. If not provided, the category keys are used as labels.",
306
- }),
263
+ seriesLabels: Prop.any<Record<string, string>>().docs({
264
+ description:
265
+ "Optional object mapping category keys to display labels. Example: {desktop: 'Desktop Users', mobile: 'Mobile Users'}. If not provided, the category keys are used as labels.",
266
+ }),
307
267
 
308
- colors: Prop.array<string>()
309
- .propertiesPanel({
310
- label: "Colors",
311
- description: "Array of colors for series (optional)",
312
- controlType: "FUNCTION_CODE_EDITOR",
313
- isJSConvertible: false,
314
- })
315
- .docs({
316
- description:
317
- "Optional array of color values to use for series in order. Can be hex codes, rgb values, or CSS variables like 'var(--chart-1)'. Falls back to theme colors if not provided.",
318
- }),
268
+ colors: Prop.array<string>().docs({
269
+ description:
270
+ "Optional array of color values to use for series in order. Can be hex codes, rgb values, or CSS variables like 'var(--chart-1)'. Falls back to theme colors if not provided.",
271
+ }),
319
272
  }),
320
273
  appearance: Section.category(PropsCategory.Appearance).children({
321
- gridStyle: Prop.string<"solid" | "dashed" | "hidden">().propertiesPanel({
322
- label: "Grid style",
323
- description: "Style of the chart grid lines",
324
- controlType: "DROP_DOWN",
325
- options: [
326
- { label: "Solid", value: "solid" },
327
- { label: "Dashed", value: "dashed" },
328
- { label: "Hidden", value: "hidden" },
329
- ],
330
- }),
331
- showXAxis: Prop.boolean().propertiesPanel({
332
- label: "Show X-axis",
333
- description: "Display X-axis with labels",
334
- controlType: "SWITCH",
335
- }),
336
- showYAxis: Prop.boolean().propertiesPanel({
337
- label: "Show Y-axis",
338
- description: "Display Y-axis with labels",
339
- controlType: "SWITCH",
340
- }),
341
- showTooltip: Prop.boolean().propertiesPanel({
342
- label: "Show tooltip",
343
- description: "Display tooltip on hover",
344
- controlType: "SWITCH",
345
- }),
346
- showLegend: Prop.boolean().propertiesPanel({
347
- label: "Show legend",
348
- description: "Display chart legend",
349
- controlType: "SWITCH",
350
- }),
351
- fillOpacity: Prop.number().propertiesPanel({
352
- label: "Fill opacity",
353
- description: "Opacity of the area fill (0-1)",
354
- }),
355
- strokeWidth: Prop.number().propertiesPanel({
356
- label: "Stroke width",
357
- description: "Width of the area border line",
358
- }),
359
- useGradient: Prop.boolean().propertiesPanel({
360
- label: "Use gradient",
361
- description: "Use gradient fill for the area",
362
- controlType: "SWITCH",
363
- }),
364
- showDots: Prop.boolean().propertiesPanel({
365
- label: "Show dots",
366
- description: "Display dots on the area",
367
- controlType: "SWITCH",
368
- }),
369
- connectNulls: Prop.boolean().propertiesPanel({
370
- label: "Connect nulls",
371
- description: "Connect nulls with the previous non-null value",
372
- controlType: "SWITCH",
373
- }),
274
+ gridStyle: Prop.string<"solid" | "dashed" | "hidden">(),
275
+ showXAxis: Prop.boolean(),
276
+ showYAxis: Prop.boolean(),
277
+ showTooltip: Prop.boolean(),
278
+ showLegend: Prop.boolean(),
279
+ fillOpacity: Prop.number(),
280
+ strokeWidth: Prop.number(),
281
+ useGradient: Prop.boolean(),
282
+ showDots: Prop.boolean(),
283
+ connectNulls: Prop.boolean(),
374
284
  areaType: Prop.string<
375
285
  | "linear"
376
286
  | "bump"
@@ -380,46 +290,16 @@ const properties = {
380
290
  | "stepAfter"
381
291
  | "natural"
382
292
  | "monotone"
383
- >()
384
- .propertiesPanel({
385
- label: "Area type",
386
- description: "Type of area to display",
387
- controlType: "DROP_DOWN",
388
- options: [
389
- { label: "Linear", value: "linear" },
390
- { label: "Bump", value: "bump" },
391
- { label: "Step", value: "step" },
392
- { label: "Basis", value: "basis" },
393
- { label: "Step Before", value: "stepBefore" },
394
- { label: "Step After", value: "stepAfter" },
395
- { label: "Natural", value: "natural" },
396
- { label: "Monotone", value: "monotone" },
397
- ],
398
- })
399
- .docs({
400
- description:
401
- "Curve interpolation type for area paths. 'linear' creates straight lines, 'monotone' creates smooth curves that preserve monotonicity, 'natural' creates natural spline curves, 'step' creates step functions, 'basis' creates B-spline curves, 'bump' creates rounded bumps, 'stepBefore' steps before point, 'stepAfter' steps after point.",
402
- }),
293
+ >().docs({
294
+ description:
295
+ "Curve interpolation type for area paths. 'linear' creates straight lines, 'monotone' creates smooth curves that preserve monotonicity, 'natural' creates natural spline curves, 'step' creates step functions, 'basis' creates B-spline curves, 'bump' creates rounded bumps, 'stepBefore' steps before point, 'stepAfter' steps after point.",
296
+ }),
403
297
  }),
404
298
  interaction: Section.category(PropsCategory.Interaction).children({
405
- enableAnimation: Prop.boolean().propertiesPanel({
406
- label: "Enable animation",
407
- description: "Enable chart animations on load",
408
- controlType: "SWITCH",
409
- }),
299
+ enableAnimation: Prop.boolean(),
410
300
  }),
411
301
  events: Section.category(PropsCategory.EventHandlers).children({
412
- onDataClick: Prop.eventHandler().propertiesPanel({
413
- label: "onDataClick",
414
- description: "Triggered when an area is clicked",
415
- computedArgs: [
416
- {
417
- name: "data",
418
- type: "object",
419
- description: "The data point that was clicked",
420
- },
421
- ],
422
- }),
302
+ onDataClick: Prop.eventHandler(),
423
303
  }),
424
304
  };
425
305
 
@@ -23,11 +23,7 @@ type AspectRatioProps = React.ComponentPropsWithoutRef<typeof AspectRatio>;
23
23
  // Properties Definition
24
24
  const propertiesDefinition: PropertiesPanelDefinition<AspectRatioProps> = {
25
25
  general: Section.category(PropsCategory.Content).children({
26
- ratio: Prop.number().propertiesPanel({
27
- label: "Aspect ratio",
28
- description: "The desired width/height ratio (e.g., 1.777 for 16:9)",
29
- placeholder: "1.777",
30
- }),
26
+ ratio: Prop.number(),
31
27
  }),
32
28
  };
33
29
 
@@ -78,14 +78,8 @@ const avatarImagePropertiesDefinition: PropertiesPanelDefinition<
78
78
  React.ComponentPropsWithoutRef<typeof AvatarImage>
79
79
  > = {
80
80
  general: Section.category(PropsCategory.Content).children({
81
- src: Prop.string().propertiesPanel({
82
- label: "Image source",
83
- description: "URL of the avatar image",
84
- }),
85
- alt: Prop.string().propertiesPanel({
86
- label: "Alt text",
87
- description: "Alternative text for the avatar image",
88
- }),
81
+ src: Prop.string(),
82
+ alt: Prop.string(),
89
83
  }),
90
84
  };
91
85
 
@@ -94,18 +88,10 @@ const avatarFallbackPropertiesDefinition: PropertiesPanelDefinition<
94
88
  React.ComponentPropsWithoutRef<typeof AvatarFallback>
95
89
  > = {
96
90
  general: Section.category(PropsCategory.Content).children({
97
- children: Prop.jsx().propertiesPanel({
98
- label: "Fallback content",
99
- description:
100
- "Content to display when image fails to load (typically initials)",
101
- }),
91
+ children: Prop.jsx(),
102
92
  }),
103
93
  interaction: Section.category(PropsCategory.Interaction).children({
104
- delayMs: Prop.number().propertiesPanel({
105
- label: "Delay (ms)",
106
- description:
107
- "How long to wait before showing the fallback. This is useful to only show the fallback for those with slower connections.",
108
- }),
94
+ delayMs: Prop.number(),
109
95
  }),
110
96
  };
111
97
 
@@ -90,41 +90,18 @@ type BadgeVariant = NonNullable<BadgeVariantProps["variant"]>;
90
90
  // Properties Definition
91
91
  const propertiesDefinition: PropertiesPanelDefinition<BadgeProps> = {
92
92
  general: Section.category(PropsCategory.Content).children({
93
- children: Prop.jsx().propertiesPanel({
94
- label: "Children",
95
- description: "The content of the badge",
93
+ children: Prop.jsx(),
94
+ icon: Prop.any<JSX.Element | IconName>().docs({
95
+ description:
96
+ "The icon to display in the component. You can use the Lucide icon library to find the icon you want.",
96
97
  }),
97
- icon: Prop.any<JSX.Element | IconName>()
98
- .propertiesPanel({
99
- label: "Icon",
100
- visibility: "SHOW_NAME",
101
- defaultOnAdd: "info",
102
- controlType: "ICON_SELECTOR",
103
- })
104
- .docs({
105
- description:
106
- "The icon to display in the component. You can use the Lucide icon library to find the icon you want.",
107
- }),
108
98
  }),
109
99
  appearance: Section.category(PropsCategory.Appearance).children({
110
- variant: Prop.string<BadgeVariant>().propertiesPanel({
111
- label: "Variant",
112
- controlType: "DROP_DOWN",
113
- description: "The visual style of the badge",
114
- options: [
115
- { label: "Default", value: "default" },
116
- { label: "Secondary", value: "secondary" },
117
- { label: "Destructive", value: "destructive" },
118
- { label: "Outline", value: "outline" },
119
- ],
120
- }),
100
+ variant: Prop.string<BadgeVariant>(),
121
101
  }),
122
102
 
123
103
  events: Section.category(PropsCategory.EventHandlers).children({
124
- onClick: Prop.eventHandler().propertiesPanel({
125
- label: "onClick",
126
- description: "Triggered when the badge is clicked",
127
- }),
104
+ onClick: Prop.eventHandler(),
128
105
  }),
129
106
  };
130
107
 
@@ -198,186 +198,60 @@ const BarChart = ({ className, ...props }: ComponentProps) => {
198
198
 
199
199
  const properties = {
200
200
  general: Section.category(PropsCategory.Content).children({
201
- data: Prop.array<any>()
202
- .propertiesPanel({
203
- label: "Data",
204
- description: "Array of data objects for the bar chart",
205
- controlType: "FUNCTION_CODE_EDITOR",
206
- isJSConvertible: false,
207
- })
208
- .docs({
209
- description:
210
- "Array of objects where each object represents a category with X-axis value and Y-axis values for each data series. Each object should contain the xAxisKey property and properties for each bar series defined in categories. Example: [{month: 'January', desktop: 186, mobile: 80}, {month: 'February', desktop: 305, mobile: 200}]. Multiple Y-value properties create multiple bar series (grouped or stacked).",
211
- }),
201
+ data: Prop.array<any>().docs({
202
+ description:
203
+ "Array of objects where each object represents a category with X-axis value and Y-axis values for each data series. Each object should contain the xAxisKey property and properties for each bar series defined in categories. Example: [{month: 'January', desktop: 186, mobile: 80}, {month: 'February', desktop: 305, mobile: 200}]. Multiple Y-value properties create multiple bar series (grouped or stacked).",
204
+ }),
212
205
 
213
- xAxisKey: Prop.string()
214
- .propertiesPanel({
215
- label: "X-axis data key",
216
- description: " name for X-axis values (categories)",
217
- placeholder: "category",
218
- controlType: "DROP_DOWN",
219
- options: function (this) {
220
- if (!this.data || !Array.isArray(this.data) || !this.data.length) {
221
- return [];
222
- }
223
- return Object.keys(this.data[0]).map((key) => ({
224
- label: key,
225
- value: key,
226
- }));
227
- },
228
- })
229
- .docs({
230
- description:
231
- "The property name in your data objects that contains the X-axis values (categories, labels, or identifiers). This determines the horizontal grouping of bars and should be consistent across all data objects.",
232
- }),
206
+ xAxisKey: Prop.string().docs({
207
+ description:
208
+ "The property name in your data objects that contains the X-axis values (categories, labels, or identifiers). This determines the horizontal grouping of bars and should be consistent across all data objects.",
209
+ }),
233
210
 
234
- categories: Prop.array<string>()
235
- .propertiesPanel({
236
- label: "Categories",
237
- description:
238
- "Array of data keys to plot as bar series (optional, auto-detects numeric properties if not provided)",
239
- controlType: "FUNCTION_CODE_EDITOR",
240
- isJSConvertible: false,
241
- })
242
- .docs({
243
- description:
244
- "Array of property names from your data objects to plot as separate bar series. Example: ['desktop', 'mobile'] will create two bar series. Each category should correspond to a numeric property in your data. If not provided, automatically detects all numeric properties (excluding xAxisKey) from the data.",
245
- }),
211
+ categories: Prop.array<string>().docs({
212
+ description:
213
+ "Array of property names from your data objects to plot as separate bar series. Example: ['desktop', 'mobile'] will create two bar series. Each category should correspond to a numeric property in your data. If not provided, automatically detects all numeric properties (excluding xAxisKey) from the data.",
214
+ }),
246
215
 
247
- seriesLabels: Prop.any<Record<string, string>>()
248
- .propertiesPanel({
249
- label: "Series labels",
250
- description:
251
- "Optional labels for series (optional, defaults to category names)",
252
- controlType: "FUNCTION_CODE_EDITOR",
253
- isJSConvertible: false,
254
- })
255
- .docs({
256
- description:
257
- "Optional object mapping category keys to display labels. Example: {desktop: 'Desktop Users', mobile: 'Mobile Users'}. If not provided, the category keys are used as labels.",
258
- }),
216
+ seriesLabels: Prop.any<Record<string, string>>().docs({
217
+ description:
218
+ "Optional object mapping category keys to display labels. Example: {desktop: 'Desktop Users', mobile: 'Mobile Users'}. If not provided, the category keys are used as labels.",
219
+ }),
259
220
 
260
- colors: Prop.array<string>()
261
- .propertiesPanel({
262
- label: "Colors",
263
- description: "Array of colors for series (optional)",
264
- controlType: "FUNCTION_CODE_EDITOR",
265
- isJSConvertible: false,
266
- })
267
- .docs({
268
- description:
269
- "Optional array of color values to use for series in order. Can be hex codes, rgb values, or CSS variables like 'var(--chart-1)'. Falls back to theme colors if not provided.",
270
- }),
221
+ colors: Prop.array<string>().docs({
222
+ description:
223
+ "Optional array of color values to use for series in order. Can be hex codes, rgb values, or CSS variables like 'var(--chart-1)'. Falls back to theme colors if not provided.",
224
+ }),
271
225
 
272
- stackIds: Prop.any<Record<string, string>>()
273
- .propertiesPanel({
274
- label: "Stack IDs",
275
- description: "Optional stack IDs for grouping bars (optional)",
276
- controlType: "FUNCTION_CODE_EDITOR",
277
- isJSConvertible: false,
278
- })
279
- .docs({
280
- description:
281
- "Optional object mapping category keys to stack IDs. Bars with the same stack ID will be stacked together. Example: {desktop: 'stack1', mobile: 'stack1'} stacks desktop and mobile bars.",
282
- }),
226
+ stackIds: Prop.any<Record<string, string>>().docs({
227
+ description:
228
+ "Optional object mapping category keys to stack IDs. Bars with the same stack ID will be stacked together. Example: {desktop: 'stack1', mobile: 'stack1'} stacks desktop and mobile bars.",
229
+ }),
283
230
  }),
284
231
  appearance: Section.category(PropsCategory.Appearance).children({
285
- layout: Prop.string<"vertical" | "horizontal">()
286
- .propertiesPanel({
287
- label: "Layout",
288
- description: "Orientation of the bars",
289
- controlType: "DROP_DOWN",
290
- options: [
291
- { label: "Vertical", value: "vertical" },
292
- { label: "Horizontal", value: "horizontal" },
293
- ],
294
- })
295
- .docs({
296
- description:
297
- "Chart orientation. 'vertical' creates bars that extend upward from bottom (categories on X-axis, values on Y-axis). 'horizontal' creates bars that extend rightward from left (categories on Y-axis, values on X-axis). Layout affects axis configuration and bar positioning.",
298
- }),
299
-
300
- gridStyle: Prop.string<"solid" | "dashed" | "hidden">().propertiesPanel({
301
- label: "Grid style",
302
- description: "Style of the chart grid lines",
303
- controlType: "DROP_DOWN",
304
- options: [
305
- { label: "Solid", value: "solid" },
306
- { label: "Dashed", value: "dashed" },
307
- { label: "Hidden", value: "hidden" },
308
- ],
309
- }),
310
- showXAxis: Prop.boolean().propertiesPanel({
311
- label: "Show X-axis",
312
- description: "Display X-axis with labels",
313
- controlType: "SWITCH",
232
+ layout: Prop.string<"vertical" | "horizontal">().docs({
233
+ description:
234
+ "Chart orientation. 'vertical' creates bars that extend upward from bottom (categories on X-axis, values on Y-axis). 'horizontal' creates bars that extend rightward from left (categories on Y-axis, values on X-axis). Layout affects axis configuration and bar positioning.",
314
235
  }),
315
- showYAxis: Prop.boolean().propertiesPanel({
316
- label: "Show Y-axis",
317
- description: "Display Y-axis with labels",
318
- controlType: "SWITCH",
319
- }),
320
- showTooltip: Prop.boolean().propertiesPanel({
321
- label: "Show tooltip",
322
- description: "Display tooltip on hover",
323
- controlType: "SWITCH",
324
- }),
325
- showLegend: Prop.boolean().propertiesPanel({
326
- label: "Show legend",
327
- description: "Display chart legend",
328
- controlType: "SWITCH",
329
- }),
330
- barSize: Prop.number().propertiesPanel({
331
- label: "Bar size",
332
- description: "Width/height of the bars",
333
- visibility: "SHOW_NAME",
334
- defaultOnAdd: 40,
335
- }),
336
- barRadius: Prop.number().propertiesPanel({
337
- label: "Bar radius",
338
- description: "Border radius of the bars for rounded corners",
339
- visibility: "SHOW_NAME",
340
- defaultOnAdd: 0,
341
- }),
342
- showBarLabels: Prop.boolean().propertiesPanel({
343
- label: "Show bar labels",
344
- description: "Display value labels on bars",
345
- controlType: "SWITCH",
236
+
237
+ gridStyle: Prop.string<"solid" | "dashed" | "hidden">(),
238
+ showXAxis: Prop.boolean(),
239
+ showYAxis: Prop.boolean(),
240
+ showTooltip: Prop.boolean(),
241
+ showLegend: Prop.boolean(),
242
+ barSize: Prop.number(),
243
+ barRadius: Prop.number(),
244
+ showBarLabels: Prop.boolean(),
245
+ stackOffset: Prop.string<"none" | "expand">().docs({
246
+ description:
247
+ "Stacking behavior for bars with matching stackId. 'none' shows actual values with bars stacked to their natural heights. 'expand' normalizes all stacked bars to 100% height, showing relative proportions rather than absolute values. Only affects bars that share the same stackId.",
346
248
  }),
347
- stackOffset: Prop.string<"none" | "expand">()
348
- .propertiesPanel({
349
- label: "Stack offset",
350
- description: "Type of stacking for multiple series (expand = 100%)",
351
- controlType: "DROP_DOWN",
352
- options: [
353
- { label: "None", value: "none" },
354
- { label: "Expand (100%)", value: "expand" },
355
- ],
356
- })
357
- .docs({
358
- description:
359
- "Stacking behavior for bars with matching stackId. 'none' shows actual values with bars stacked to their natural heights. 'expand' normalizes all stacked bars to 100% height, showing relative proportions rather than absolute values. Only affects bars that share the same stackId.",
360
- }),
361
249
  }),
362
250
  interaction: Section.category(PropsCategory.Interaction).children({
363
- enableAnimation: Prop.boolean().propertiesPanel({
364
- label: "Enable animation",
365
- description: "Enable chart animations on load",
366
- controlType: "SWITCH",
367
- }),
251
+ enableAnimation: Prop.boolean(),
368
252
  }),
369
253
  events: Section.category(PropsCategory.EventHandlers).children({
370
- onDataClick: Prop.eventHandler().propertiesPanel({
371
- label: "onDataClick",
372
- description: "Triggered when a bar is clicked",
373
- computedArgs: [
374
- {
375
- name: "data",
376
- type: "object",
377
- description: "The data point that was clicked",
378
- },
379
- ],
380
- }),
254
+ onDataClick: Prop.eventHandler(),
381
255
  }),
382
256
  };
383
257
 
@@ -140,10 +140,7 @@ const Breadcrumb = ({
140
140
  // Properties Definition
141
141
  const propertiesDefinition: PropertiesPanelDefinition<BreadcrumbProps> = {
142
142
  general: Section.category(PropsCategory.Content).children({
143
- children: Prop.jsx().propertiesPanel({
144
- label: "Items",
145
- description: "The items to display",
146
- }),
143
+ children: Prop.jsx(),
147
144
  }),
148
145
  };
149
146
 
@@ -87,81 +87,22 @@ type ButtonVariantProps = VariantProps<typeof buttonVariants>;
87
87
  // Properties Definition
88
88
  const propertiesDefinition: PropertiesPanelDefinition<ButtonProps> = {
89
89
  general: Section.category(PropsCategory.Content).children({
90
- children: Prop.jsx().propertiesPanel({
91
- label: "Text",
92
- }),
90
+ children: Prop.jsx(),
93
91
  }),
94
92
 
95
93
  appearance: Section.category(PropsCategory.Appearance).children({
96
94
  variant: Prop.string<
97
95
  "default" | "destructive" | "outline" | "secondary" | "ghost" | "link"
98
- >().propertiesPanel({
99
- label: "Variant",
100
- controlType: "DROP_DOWN",
101
- options: [
102
- {
103
- label: "Default",
104
- value: "default",
105
- },
106
- {
107
- label: "Destructive",
108
- value: "destructive",
109
- },
110
- {
111
- label: "Outline",
112
- value: "outline",
113
- },
114
- {
115
- label: "Secondary",
116
- value: "secondary",
117
- },
118
- {
119
- label: "Ghost",
120
- value: "ghost",
121
- },
122
- {
123
- label: "Link",
124
- value: "link",
125
- },
126
- ],
127
- }),
128
- size: Prop.string<"default" | "sm" | "lg" | "icon">().propertiesPanel({
129
- label: "Size",
130
- controlType: "DROP_DOWN",
131
- options: [
132
- {
133
- label: "Default",
134
- value: "default",
135
- },
136
- {
137
- label: "Small",
138
- value: "sm",
139
- },
140
- {
141
- label: "Large",
142
- value: "lg",
143
- },
144
- {
145
- label: "Icon",
146
- value: "icon",
147
- },
148
- ],
149
- }),
96
+ >(),
97
+ size: Prop.string<"default" | "sm" | "lg" | "icon">(),
150
98
  }),
151
99
 
152
100
  interaction: Section.category(PropsCategory.Interaction).children({
153
- disabled: Prop.boolean().propertiesPanel({
154
- label: "Disabled",
155
- controlType: "SWITCH",
156
- description: "Whether the button is disabled",
157
- }),
101
+ disabled: Prop.boolean(),
158
102
  }),
159
103
 
160
104
  events: Section.category(PropsCategory.EventHandlers).children({
161
- onClick: Prop.eventHandler().propertiesPanel({
162
- label: "onClick",
163
- description: "Triggered when the button is clicked",
164
- }),
105
+ onClick: Prop.eventHandler(),
165
106
  }),
166
107
  };
167
108