@superblocksteam/vite-plugin-file-sync 2.0.162 → 2.0.163-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (420) 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 +176 -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/server-side.d.ts +8 -0
  135. package/dist/ai-service/llm/context-v2/compaction/server-side.d.ts.map +1 -1
  136. package/dist/ai-service/llm/context-v2/compaction/server-side.js +8 -0
  137. package/dist/ai-service/llm/context-v2/compaction/server-side.js.map +1 -1
  138. package/dist/ai-service/llm/context-v2/context-component-partition.d.ts +24 -0
  139. package/dist/ai-service/llm/context-v2/context-component-partition.d.ts.map +1 -0
  140. package/dist/ai-service/llm/context-v2/context-component-partition.js +222 -0
  141. package/dist/ai-service/llm/context-v2/context-component-partition.js.map +1 -0
  142. package/dist/ai-service/llm/context-v2/context-metrics.d.ts +9 -0
  143. package/dist/ai-service/llm/context-v2/context-metrics.d.ts.map +1 -1
  144. package/dist/ai-service/llm/context-v2/context-metrics.js +40 -2
  145. package/dist/ai-service/llm/context-v2/context-metrics.js.map +1 -1
  146. package/dist/ai-service/llm/context-v2/context.d.ts +116 -4
  147. package/dist/ai-service/llm/context-v2/context.d.ts.map +1 -1
  148. package/dist/ai-service/llm/context-v2/context.js +276 -64
  149. package/dist/ai-service/llm/context-v2/context.js.map +1 -1
  150. package/dist/ai-service/llm/context-v2/conversation-context.d.ts +18 -0
  151. package/dist/ai-service/llm/context-v2/conversation-context.d.ts.map +1 -1
  152. package/dist/ai-service/llm/context-v2/file-read-ledger.d.ts +218 -0
  153. package/dist/ai-service/llm/context-v2/file-read-ledger.d.ts.map +1 -0
  154. package/dist/ai-service/llm/context-v2/file-read-ledger.js +275 -0
  155. package/dist/ai-service/llm/context-v2/file-read-ledger.js.map +1 -0
  156. package/dist/ai-service/llm/context-v2/phase1-tool-summarizer.d.ts.map +1 -1
  157. package/dist/ai-service/llm/context-v2/phase1-tool-summarizer.js +5 -2
  158. package/dist/ai-service/llm/context-v2/phase1-tool-summarizer.js.map +1 -1
  159. package/dist/ai-service/llm/context-v2/token-tracker.d.ts +2 -0
  160. package/dist/ai-service/llm/context-v2/token-tracker.d.ts.map +1 -1
  161. package/dist/ai-service/llm/context-v2/token-tracker.js +4 -0
  162. package/dist/ai-service/llm/context-v2/token-tracker.js.map +1 -1
  163. package/dist/ai-service/llm/context-v2/tool-schema-tokens.d.ts +22 -0
  164. package/dist/ai-service/llm/context-v2/tool-schema-tokens.d.ts.map +1 -0
  165. package/dist/ai-service/llm/context-v2/tool-schema-tokens.js +36 -0
  166. package/dist/ai-service/llm/context-v2/tool-schema-tokens.js.map +1 -0
  167. package/dist/ai-service/llm/context-v2/types.d.ts +8 -0
  168. package/dist/ai-service/llm/context-v2/types.d.ts.map +1 -1
  169. package/dist/ai-service/llm/context-v2/types.js +48 -0
  170. package/dist/ai-service/llm/context-v2/types.js.map +1 -1
  171. package/dist/ai-service/llm/error.d.ts +2 -0
  172. package/dist/ai-service/llm/error.d.ts.map +1 -1
  173. package/dist/ai-service/llm/error.js +1 -0
  174. package/dist/ai-service/llm/error.js.map +1 -1
  175. package/dist/ai-service/llm/retry-exhaustion-reason.d.ts +2 -0
  176. package/dist/ai-service/llm/retry-exhaustion-reason.d.ts.map +1 -0
  177. package/dist/ai-service/llm/retry-exhaustion-reason.js +2 -0
  178. package/dist/ai-service/llm/retry-exhaustion-reason.js.map +1 -0
  179. package/dist/ai-service/llm/stream/errors.d.ts +6 -7
  180. package/dist/ai-service/llm/stream/errors.d.ts.map +1 -1
  181. package/dist/ai-service/llm/stream/errors.js +7 -1
  182. package/dist/ai-service/llm/stream/errors.js.map +1 -1
  183. package/dist/ai-service/llm/stream/event-bus.d.ts +9 -1
  184. package/dist/ai-service/llm/stream/event-bus.d.ts.map +1 -1
  185. package/dist/ai-service/llm/stream/event-bus.js.map +1 -1
  186. package/dist/ai-service/llm/stream/idle-monitor.d.ts.map +1 -1
  187. package/dist/ai-service/llm/stream/idle-monitor.js.map +1 -1
  188. package/dist/ai-service/llm/stream/observers/context.d.ts.map +1 -1
  189. package/dist/ai-service/llm/stream/observers/context.js +13 -0
  190. package/dist/ai-service/llm/stream/observers/context.js.map +1 -1
  191. package/dist/ai-service/llm/stream/observers/llmobs.d.ts +14 -1
  192. package/dist/ai-service/llm/stream/observers/llmobs.d.ts.map +1 -1
  193. package/dist/ai-service/llm/stream/observers/llmobs.js +91 -7
  194. package/dist/ai-service/llm/stream/observers/llmobs.js.map +1 -1
  195. package/dist/ai-service/llm/stream/observers/logging.d.ts +3 -1
  196. package/dist/ai-service/llm/stream/observers/logging.d.ts.map +1 -1
  197. package/dist/ai-service/llm/stream/observers/logging.js +73 -52
  198. package/dist/ai-service/llm/stream/observers/logging.js.map +1 -1
  199. package/dist/ai-service/llm/stream/observers/retry-notification.d.ts.map +1 -1
  200. package/dist/ai-service/llm/stream/observers/retry-notification.js +16 -9
  201. package/dist/ai-service/llm/stream/observers/retry-notification.js.map +1 -1
  202. package/dist/ai-service/llm/stream/orchestrator.d.ts +5 -1
  203. package/dist/ai-service/llm/stream/orchestrator.d.ts.map +1 -1
  204. package/dist/ai-service/llm/stream/orchestrator.js +103 -12
  205. package/dist/ai-service/llm/stream/orchestrator.js.map +1 -1
  206. package/dist/ai-service/llm/stream/retry-engine.d.ts +3 -1
  207. package/dist/ai-service/llm/stream/retry-engine.d.ts.map +1 -1
  208. package/dist/ai-service/llm/stream/retry-engine.js +9 -0
  209. package/dist/ai-service/llm/stream/retry-engine.js.map +1 -1
  210. package/dist/ai-service/llm/stream/session.d.ts +8 -1
  211. package/dist/ai-service/llm/stream/session.d.ts.map +1 -1
  212. package/dist/ai-service/llm/stream/session.js +19 -0
  213. package/dist/ai-service/llm/stream/session.js.map +1 -1
  214. package/dist/ai-service/llm/stream/types.d.ts +13 -0
  215. package/dist/ai-service/llm/stream/types.d.ts.map +1 -1
  216. package/dist/ai-service/llm/stream/wait-state-tracker.d.ts +5 -14
  217. package/dist/ai-service/llm/stream/wait-state-tracker.d.ts.map +1 -1
  218. package/dist/ai-service/llm/stream/wait-state-tracker.js +25 -0
  219. package/dist/ai-service/llm/stream/wait-state-tracker.js.map +1 -1
  220. package/dist/ai-service/mcp/embedded-playwright-mcp-server.js +8 -8
  221. package/dist/ai-service/mcp/embedded-playwright-mcp-server.js.map +1 -1
  222. package/dist/ai-service/policy-gate-remediation-usage.d.ts +2 -0
  223. package/dist/ai-service/policy-gate-remediation-usage.d.ts.map +1 -0
  224. package/dist/ai-service/policy-gate-remediation-usage.js +56 -0
  225. package/dist/ai-service/policy-gate-remediation-usage.js.map +1 -0
  226. package/dist/ai-service/prompts/summarize-destructive-migration.d.ts +12 -0
  227. package/dist/ai-service/prompts/summarize-destructive-migration.d.ts.map +1 -0
  228. package/dist/ai-service/prompts/summarize-destructive-migration.js +37 -0
  229. package/dist/ai-service/prompts/summarize-destructive-migration.js.map +1 -0
  230. package/dist/ai-service/recording/storage/session-recording-storage.js +2 -2
  231. package/dist/ai-service/recording/storage/session-recording-storage.js.map +1 -1
  232. package/dist/ai-service/security/secret-scanner-service.d.ts.map +1 -1
  233. package/dist/ai-service/security/secret-scanner-service.js +88 -23
  234. package/dist/ai-service/security/secret-scanner-service.js.map +1 -1
  235. package/dist/ai-service/skills/index.d.ts +0 -7
  236. package/dist/ai-service/skills/index.d.ts.map +1 -1
  237. package/dist/ai-service/skills/index.js +0 -9
  238. package/dist/ai-service/skills/index.js.map +1 -1
  239. package/dist/ai-service/skills/system/_registry.generated.d.ts.map +1 -1
  240. package/dist/ai-service/skills/system/_registry.generated.js +4 -0
  241. package/dist/ai-service/skills/system/_registry.generated.js.map +1 -1
  242. package/dist/ai-service/skills/system/resolve.d.ts +2 -0
  243. package/dist/ai-service/skills/system/resolve.d.ts.map +1 -0
  244. package/dist/ai-service/skills/system/resolve.js +32 -0
  245. package/dist/ai-service/skills/system/resolve.js.map +1 -0
  246. package/dist/ai-service/skills/system/superblocks-frontend/_variants/api-imports-legacy.generated.d.ts +2 -0
  247. package/dist/ai-service/skills/system/superblocks-frontend/_variants/api-imports-legacy.generated.d.ts.map +1 -0
  248. package/dist/ai-service/skills/system/superblocks-frontend/_variants/api-imports-legacy.generated.js +9 -0
  249. package/dist/ai-service/skills/system/superblocks-frontend/_variants/api-imports-legacy.generated.js.map +1 -0
  250. package/dist/ai-service/skills/system/superblocks-frontend/_variants/api-imports-sdk.generated.d.ts +2 -0
  251. package/dist/ai-service/skills/system/superblocks-frontend/_variants/api-imports-sdk.generated.d.ts.map +1 -0
  252. package/dist/ai-service/skills/system/superblocks-frontend/_variants/api-imports-sdk.generated.js +11 -0
  253. package/dist/ai-service/skills/system/superblocks-frontend/_variants/api-imports-sdk.generated.js.map +1 -0
  254. package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.d.ts +1 -1
  255. package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.d.ts.map +1 -1
  256. package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.js +16 -24
  257. package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.js.map +1 -1
  258. package/dist/ai-service/skills/system/third-party-migration/skill.generated.d.ts +1 -1
  259. package/dist/ai-service/skills/system/third-party-migration/skill.generated.d.ts.map +1 -1
  260. package/dist/ai-service/skills/system/third-party-migration/skill.generated.js +1 -1
  261. package/dist/ai-service/state-machine/clark-fsm.d.ts +11 -0
  262. package/dist/ai-service/state-machine/clark-fsm.d.ts.map +1 -1
  263. package/dist/ai-service/state-machine/clark-fsm.js +7 -1
  264. package/dist/ai-service/state-machine/clark-fsm.js.map +1 -1
  265. package/dist/ai-service/state-machine/handlers/agent-planning.d.ts.map +1 -1
  266. package/dist/ai-service/state-machine/handlers/agent-planning.js +21 -0
  267. package/dist/ai-service/state-machine/handlers/agent-planning.js.map +1 -1
  268. package/dist/ai-service/state-machine/handlers/llm-generating.d.ts.map +1 -1
  269. package/dist/ai-service/state-machine/handlers/llm-generating.js +32 -9
  270. package/dist/ai-service/state-machine/handlers/llm-generating.js.map +1 -1
  271. package/dist/ai-service/state-machine/handlers/runtime-reviewing.d.ts.map +1 -1
  272. package/dist/ai-service/state-machine/handlers/runtime-reviewing.js +21 -2
  273. package/dist/ai-service/state-machine/handlers/runtime-reviewing.js.map +1 -1
  274. package/dist/ai-service/state-machine/helpers/stable-peer.d.ts +11 -2
  275. package/dist/ai-service/state-machine/helpers/stable-peer.d.ts.map +1 -1
  276. package/dist/ai-service/state-machine/helpers/stable-peer.js +105 -18
  277. package/dist/ai-service/state-machine/helpers/stable-peer.js.map +1 -1
  278. package/dist/ai-service/state-machine/mocks.d.ts +3 -1
  279. package/dist/ai-service/state-machine/mocks.d.ts.map +1 -1
  280. package/dist/ai-service/state-machine/mocks.js +52 -13
  281. package/dist/ai-service/state-machine/mocks.js.map +1 -1
  282. package/dist/ai-service/tasks/peer-push.d.ts +3 -0
  283. package/dist/ai-service/tasks/peer-push.d.ts.map +1 -1
  284. package/dist/ai-service/tasks/peer-push.js +33 -0
  285. package/dist/ai-service/tasks/peer-push.js.map +1 -1
  286. package/dist/ai-service/util/call-peer.d.ts +2 -0
  287. package/dist/ai-service/util/call-peer.d.ts.map +1 -1
  288. package/dist/ai-service/util/call-peer.js +17 -4
  289. package/dist/ai-service/util/call-peer.js.map +1 -1
  290. package/dist/ai-service/util/line-ranges.d.ts +21 -0
  291. package/dist/ai-service/util/line-ranges.d.ts.map +1 -0
  292. package/dist/ai-service/util/line-ranges.js +36 -0
  293. package/dist/ai-service/util/line-ranges.js.map +1 -0
  294. package/dist/ai-service/util/peer-liveness.d.ts +1 -0
  295. package/dist/ai-service/util/peer-liveness.d.ts.map +1 -1
  296. package/dist/ai-service/util/peer-liveness.js +2 -0
  297. package/dist/ai-service/util/peer-liveness.js.map +1 -1
  298. package/dist/dev-server-ws-smoke-client.d.ts.map +1 -1
  299. package/dist/dev-server-ws-smoke-client.js +7 -0
  300. package/dist/dev-server-ws-smoke-client.js.map +1 -1
  301. package/dist/draft-interface.d.ts +8 -0
  302. package/dist/draft-interface.d.ts.map +1 -1
  303. package/dist/early-error-relay.d.ts +2 -0
  304. package/dist/early-error-relay.d.ts.map +1 -1
  305. package/dist/early-error-relay.js +7 -3
  306. package/dist/early-error-relay.js.map +1 -1
  307. package/dist/file-sync-vite-plugin.d.ts.map +1 -1
  308. package/dist/file-sync-vite-plugin.js +43 -15
  309. package/dist/file-sync-vite-plugin.js.map +1 -1
  310. package/dist/file-system-helpers.d.ts +2 -2
  311. package/dist/file-system-helpers.d.ts.map +1 -1
  312. package/dist/file-system-helpers.js +3 -3
  313. package/dist/file-system-helpers.js.map +1 -1
  314. package/dist/git-service/errors.d.ts +9 -0
  315. package/dist/git-service/errors.d.ts.map +1 -1
  316. package/dist/git-service/errors.js +15 -0
  317. package/dist/git-service/errors.js.map +1 -1
  318. package/dist/git-service/index.d.ts +2 -2
  319. package/dist/git-service/index.d.ts.map +1 -1
  320. package/dist/git-service/index.js +2 -2
  321. package/dist/git-service/index.js.map +1 -1
  322. package/dist/index.d.ts +1 -0
  323. package/dist/index.d.ts.map +1 -1
  324. package/dist/index.js +1 -0
  325. package/dist/index.js.map +1 -1
  326. package/dist/lock-service/activity-tracker.d.ts +5 -0
  327. package/dist/lock-service/activity-tracker.d.ts.map +1 -1
  328. package/dist/lock-service/activity-tracker.js +10 -0
  329. package/dist/lock-service/activity-tracker.js.map +1 -1
  330. package/dist/lock-service/index.d.ts +69 -4
  331. package/dist/lock-service/index.d.ts.map +1 -1
  332. package/dist/lock-service/index.js +139 -29
  333. package/dist/lock-service/index.js.map +1 -1
  334. package/dist/migration-templates/app-fullstack/client/components/ui/accordion.tsx +9 -65
  335. package/dist/migration-templates/app-fullstack/client/components/ui/area-chart.tsx +36 -156
  336. package/dist/migration-templates/app-fullstack/client/components/ui/aspect-ratio.tsx +1 -5
  337. package/dist/migration-templates/app-fullstack/client/components/ui/avatar.tsx +4 -18
  338. package/dist/migration-templates/app-fullstack/client/components/ui/badge.tsx +6 -29
  339. package/dist/migration-templates/app-fullstack/client/components/ui/bar-chart.tsx +41 -167
  340. package/dist/migration-templates/app-fullstack/client/components/ui/breadcrumb.tsx +1 -4
  341. package/dist/migration-templates/app-fullstack/client/components/ui/button.tsx +5 -64
  342. package/dist/migration-templates/app-fullstack/client/components/ui/calendar.tsx +6 -42
  343. package/dist/migration-templates/app-fullstack/client/components/ui/card.tsx +1 -4
  344. package/dist/migration-templates/app-fullstack/client/components/ui/checkbox.tsx +4 -29
  345. package/dist/migration-templates/app-fullstack/client/components/ui/date-range-picker.tsx +13 -154
  346. package/dist/migration-templates/app-fullstack/client/components/ui/dialog.tsx +7 -34
  347. package/dist/migration-templates/app-fullstack/client/components/ui/file-dropzone.tsx +12 -95
  348. package/dist/migration-templates/app-fullstack/client/components/ui/file-input.tsx +12 -73
  349. package/dist/migration-templates/app-fullstack/client/components/ui/hover-card.tsx +10 -66
  350. package/dist/migration-templates/app-fullstack/client/components/ui/icon.tsx +3 -16
  351. package/dist/migration-templates/app-fullstack/client/components/ui/image.tsx +4 -16
  352. package/dist/migration-templates/app-fullstack/client/components/ui/input.tsx +18 -159
  353. package/dist/migration-templates/app-fullstack/client/components/ui/label.tsx +1 -4
  354. package/dist/migration-templates/app-fullstack/client/components/ui/line-chart.tsx +32 -148
  355. package/dist/migration-templates/app-fullstack/client/components/ui/link.tsx +4 -24
  356. package/dist/migration-templates/app-fullstack/client/components/ui/navigation-menu.tsx +3 -24
  357. package/dist/migration-templates/app-fullstack/client/components/ui/pagination.tsx +4 -24
  358. package/dist/migration-templates/app-fullstack/client/components/ui/pie-chart.tsx +28 -142
  359. package/dist/migration-templates/app-fullstack/client/components/ui/popover.tsx +9 -61
  360. package/dist/migration-templates/app-fullstack/client/components/ui/progress.tsx +2 -11
  361. package/dist/migration-templates/app-fullstack/client/components/ui/radar-chart.tsx +37 -171
  362. package/dist/migration-templates/app-fullstack/client/components/ui/radial-chart.tsx +50 -202
  363. package/dist/migration-templates/app-fullstack/client/components/ui/select.tsx +5 -35
  364. package/dist/migration-templates/app-fullstack/client/components/ui/separator.tsx +1 -8
  365. package/dist/migration-templates/app-fullstack/client/components/ui/sheet.tsx +7 -40
  366. package/dist/migration-templates/app-fullstack/client/components/ui/sidebar.tsx +3 -35
  367. package/dist/migration-templates/app-fullstack/client/components/ui/slider.tsx +11 -95
  368. package/dist/migration-templates/app-fullstack/client/components/ui/switch.tsx +5 -32
  369. package/dist/migration-templates/app-fullstack/client/components/ui/textarea.tsx +13 -90
  370. package/dist/migration-templates/app-fullstack/client/components/ui/toggle-group.tsx +11 -75
  371. package/dist/migration-templates/app-fullstack/client/components/ui/toggle.tsx +8 -70
  372. package/dist/migration-templates/app-fullstack/client/components/ui/tooltip.tsx +9 -62
  373. package/dist/parsing/imports.d.ts +22 -0
  374. package/dist/parsing/imports.d.ts.map +1 -1
  375. package/dist/parsing/imports.js +71 -0
  376. package/dist/parsing/imports.js.map +1 -1
  377. package/dist/reconnect-guard-plugin.d.ts +53 -0
  378. package/dist/reconnect-guard-plugin.d.ts.map +1 -0
  379. package/dist/reconnect-guard-plugin.js +203 -0
  380. package/dist/reconnect-guard-plugin.js.map +1 -0
  381. package/dist/resolver.d.ts +2 -1
  382. package/dist/resolver.d.ts.map +1 -1
  383. package/dist/resolver.js +4 -6
  384. package/dist/resolver.js.map +1 -1
  385. package/dist/router-parser-metrics.d.ts +2 -1
  386. package/dist/router-parser-metrics.d.ts.map +1 -1
  387. package/dist/router-parser-metrics.js.map +1 -1
  388. package/dist/router-parser.d.ts +10 -1
  389. package/dist/router-parser.d.ts.map +1 -1
  390. package/dist/router-parser.js +306 -69
  391. package/dist/router-parser.js.map +1 -1
  392. package/dist/scan-scope-merge-metrics.d.ts +2 -0
  393. package/dist/scan-scope-merge-metrics.d.ts.map +1 -0
  394. package/dist/scan-scope-merge-metrics.js +18 -0
  395. package/dist/scan-scope-merge-metrics.js.map +1 -0
  396. package/dist/scan-scope-merge.d.ts +2 -2
  397. package/dist/scan-scope-merge.d.ts.map +1 -1
  398. package/dist/scan-scope-merge.js +64 -14
  399. package/dist/scan-scope-merge.js.map +1 -1
  400. package/dist/server-rpc/index.d.ts.map +1 -1
  401. package/dist/server-rpc/index.js +12 -2
  402. package/dist/server-rpc/index.js.map +1 -1
  403. package/dist/socket-manager.d.ts +1 -1
  404. package/dist/socket-manager.d.ts.map +1 -1
  405. package/dist/socket-manager.js +276 -15
  406. package/dist/socket-manager.js.map +1 -1
  407. package/dist/sync-service/download.js +2 -2
  408. package/dist/sync-service/download.js.map +1 -1
  409. package/dist/sync-service/index.d.ts +95 -22
  410. package/dist/sync-service/index.d.ts.map +1 -1
  411. package/dist/sync-service/index.js +402 -56
  412. package/dist/sync-service/index.js.map +1 -1
  413. package/dist/sync-service/page-reference-guard.d.ts +17 -0
  414. package/dist/sync-service/page-reference-guard.d.ts.map +1 -0
  415. package/dist/sync-service/page-reference-guard.js +170 -0
  416. package/dist/sync-service/page-reference-guard.js.map +1 -0
  417. package/dist/util.d.ts.map +1 -1
  418. package/dist/util.js +16 -2
  419. package/dist/util.js.map +1 -1
  420. package/package.json +15 -14
@@ -183,219 +183,67 @@ const RadialBarChart = ({ className, ...props }: ComponentProps) => {
183
183
 
184
184
  registerComponent(RadialBarChart, {
185
185
  general: Section.category(PropsCategory.Content).children({
186
- data: Prop.array<any>()
187
- .propertiesPanel({
188
- label: "Data",
189
- description: "Array of data objects for the radial chart",
190
- controlType: "FUNCTION_CODE_EDITOR",
191
- isJSConvertible: false,
192
- })
193
- .docs({
194
- description:
195
- "Array of objects for circular bar visualization. For single radial charts, typically contains one object with category name and value. For stacked radial charts, contains multiple objects representing concentric bars. Example: [{browser: 'Chrome', visitors: 275, color: '#4285F4'}, {browser: 'Safari', visitors: 200}]. Values are often percentages or progress indicators displayed as arc lengths.",
196
- }),
197
- valueKey: Prop.string()
198
- .propertiesPanel({
199
- label: "Value data key",
200
- description: " name for the values to display",
201
- placeholder: "value",
202
- controlType: "DROP_DOWN",
203
- options: function (this) {
204
- if (!this.data || !Array.isArray(this.data) || !this.data.length) {
205
- return [];
206
- }
207
- return Object.keys(this.data[0]).map((key) => ({
208
- label: key,
209
- value: key,
210
- }));
211
- },
212
- })
213
- .docs({
214
- description:
215
- "The property name in your data objects that contains the numeric values determining arc lengths. Values typically represent percentages (0-100), progress (0-1), or absolute numbers that will be proportionally rendered as circular arcs from startAngle to calculated end positions.",
216
- }),
217
- nameKey: Prop.string()
218
- .propertiesPanel({
219
- label: "Name data key",
220
- description: " name for category names/identifiers",
221
- placeholder: "name",
222
- controlType: "DROP_DOWN",
223
- options: function (this) {
224
- if (!this.data || !Array.isArray(this.data) || !this.data.length) {
225
- return [];
226
- }
227
- return Object.keys(this.data[0]).map((key) => ({
228
- label: key,
229
- value: key,
230
- }));
231
- },
232
- })
233
- .docs({
234
- description:
235
- "The property name in your data objects that contains unique identifiers for each bar. Used to generate consistent colors and match data across renders.",
236
- }),
237
- labelKey: Prop.string()
238
- .propertiesPanel({
239
- label: "Label data key",
240
- description: " name for display labels (optional, defaults to nameKey)",
241
- placeholder: "label",
242
- controlType: "DROP_DOWN",
243
- options: function (this) {
244
- if (!this.data || !Array.isArray(this.data) || !this.data.length) {
245
- return [];
246
- }
247
- return Object.keys(this.data[0]).map((key) => ({
248
- label: key,
249
- value: key,
250
- }));
251
- },
252
- })
253
- .docs({
254
- description:
255
- "Optional property name for human-readable labels shown in tooltips and legends. If not specified, the nameKey value is used as the label.",
256
- }),
257
- colorKey: Prop.string()
258
- .propertiesPanel({
259
- label: "Color data key",
260
- description: " name for bar colors (optional)",
261
- placeholder: "color",
262
- controlType: "DROP_DOWN",
263
- options: function (this) {
264
- if (!this.data || !Array.isArray(this.data) || !this.data.length) {
265
- return [];
266
- }
267
- return Object.keys(this.data[0]).map((key) => ({
268
- label: key,
269
- value: key,
270
- }));
271
- },
272
- })
273
- .docs({
274
- description:
275
- "Optional property name in your data objects that contains color values (hex, rgb, or CSS variable). If not specified, colors are auto-assigned from the theme.",
276
- }),
277
- colors: Prop.array<string>()
278
- .propertiesPanel({
279
- label: "Colors",
280
- description: "Array of colors to use for bars (optional)",
281
- controlType: "FUNCTION_CODE_EDITOR",
282
- isJSConvertible: false,
283
- })
284
- .docs({
285
- description:
286
- "Optional array of color values to use for bars in order. Can be hex codes, rgb values, or CSS variables like 'var(--chart-1)'. Falls back to theme colors if not provided.",
287
- }),
186
+ data: Prop.array<any>().docs({
187
+ description:
188
+ "Array of objects for circular bar visualization. For single radial charts, typically contains one object with category name and value. For stacked radial charts, contains multiple objects representing concentric bars. Example: [{browser: 'Chrome', visitors: 275, color: '#4285F4'}, {browser: 'Safari', visitors: 200}]. Values are often percentages or progress indicators displayed as arc lengths.",
189
+ }),
190
+ valueKey: Prop.string().docs({
191
+ description:
192
+ "The property name in your data objects that contains the numeric values determining arc lengths. Values typically represent percentages (0-100), progress (0-1), or absolute numbers that will be proportionally rendered as circular arcs from startAngle to calculated end positions.",
193
+ }),
194
+ nameKey: Prop.string().docs({
195
+ description:
196
+ "The property name in your data objects that contains unique identifiers for each bar. Used to generate consistent colors and match data across renders.",
197
+ }),
198
+ labelKey: Prop.string().docs({
199
+ description:
200
+ "Optional property name for human-readable labels shown in tooltips and legends. If not specified, the nameKey value is used as the label.",
201
+ }),
202
+ colorKey: Prop.string().docs({
203
+ description:
204
+ "Optional property name in your data objects that contains color values (hex, rgb, or CSS variable). If not specified, colors are auto-assigned from the theme.",
205
+ }),
206
+ colors: Prop.array<string>().docs({
207
+ description:
208
+ "Optional array of color values to use for bars in order. Can be hex codes, rgb values, or CSS variables like 'var(--chart-1)'. Falls back to theme colors if not provided.",
209
+ }),
288
210
  }),
289
211
  appearance: Section.category(PropsCategory.Appearance).children({
290
- chartType: Prop.string<"single" | "stacked">()
291
- .propertiesPanel({
292
- label: "Chart type",
293
- description: "Type of radial chart to display",
294
- controlType: "DROP_DOWN",
295
- options: [
296
- { label: "Single", value: "single" },
297
- { label: "Stacked", value: "stacked" },
298
- ],
299
- })
300
- .docs({
301
- description:
302
- "Visual layout of the radial chart. 'single' displays one circular bar (ideal for progress indicators, gauges, or single metrics). 'stacked' displays multiple concentric circular bars (ideal for comparing multiple categories or showing layered data). Single charts often show one data point, while stacked charts display multiple data points as concentric arcs.",
303
- }),
304
- startAngle: Prop.number()
305
- .propertiesPanel({
306
- label: "Start angle",
307
- description: "Starting angle of the radial chart in degrees",
308
- })
309
- .docs({
310
- description:
311
- "Starting position of the radial bars in degrees. 0° = 3 o'clock (right), 90° = 12 o'clock (top), 180° = 9 o'clock (left), 270° = 6 o'clock (bottom). Common values: 90° for top-start, 180° for left-start. Determines where the arc begins drawing. For a single radial chart showing percentage, use start and end angles to control the arc range to show a percentage of the total.",
312
- }),
313
- endAngle: Prop.number()
314
- .propertiesPanel({
315
- label: "End angle",
316
- description: "Ending angle of the radial chart in degrees",
317
- })
318
- .docs({
319
- description:
320
- "Ending position of the radial bars in degrees, defining the full arc sweep. Negative values create clockwise motion. Common combinations: startAngle 90° + endAngle -270° = full circle clockwise from top. startAngle 180° + endAngle 0° = semicircle left to right. The difference determines the total arc range for 100% values.",
321
- }),
322
- innerRadius: Prop.number()
323
- .propertiesPanel({
324
- label: "Inner radius",
325
- description: "Inner radius of the radial chart",
326
- })
327
- .docs({
328
- description:
329
- "Size of the hollow center area in pixels or percentage. Creates the donut-like appearance. Larger values create bigger center areas (useful for center labels). Smaller values create thicker bars. For stacked charts, determines the starting radius of the innermost bar.",
330
- }),
331
- cornerRadius: Prop.number().propertiesPanel({
332
- label: "Corner radius",
333
- description: "Radius of rounded corners on bars",
212
+ chartType: Prop.string<"single" | "stacked">().docs({
213
+ description:
214
+ "Visual layout of the radial chart. 'single' displays one circular bar (ideal for progress indicators, gauges, or single metrics). 'stacked' displays multiple concentric circular bars (ideal for comparing multiple categories or showing layered data). Single charts often show one data point, while stacked charts display multiple data points as concentric arcs.",
215
+ }),
216
+ startAngle: Prop.number().docs({
217
+ description:
218
+ "Starting position of the radial bars in degrees. 0° = 3 o'clock (right), 90° = 12 o'clock (top), 180° = 9 o'clock (left), 270° = 6 o'clock (bottom). Common values: 90° for top-start, 180° for left-start. Determines where the arc begins drawing. For a single radial chart showing percentage, use start and end angles to control the arc range to show a percentage of the total.",
334
219
  }),
335
- showTooltip: Prop.boolean().propertiesPanel({
336
- label: "Show tooltip",
337
- description: "Display tooltip on hover",
338
- controlType: "SWITCH",
220
+ endAngle: Prop.number().docs({
221
+ description:
222
+ "Ending position of the radial bars in degrees, defining the full arc sweep. Negative values create clockwise motion. Common combinations: startAngle 90° + endAngle -270° = full circle clockwise from top. startAngle 180° + endAngle 0° = semicircle left to right. The difference determines the total arc range for 100% values.",
339
223
  }),
340
- showLegend: Prop.boolean().propertiesPanel({
341
- label: "Show legend",
342
- description: "Display chart legend",
343
- controlType: "SWITCH",
224
+ innerRadius: Prop.number().docs({
225
+ description:
226
+ "Size of the hollow center area in pixels or percentage. Creates the donut-like appearance. Larger values create bigger center areas (useful for center labels). Smaller values create thicker bars. For stacked charts, determines the starting radius of the innermost bar.",
344
227
  }),
345
- showBarLabels: Prop.boolean().propertiesPanel({
346
- label: "Show bar labels",
347
- description: "Display labels on the bars",
348
- controlType: "SWITCH",
228
+ cornerRadius: Prop.number(),
229
+ showTooltip: Prop.boolean(),
230
+ showLegend: Prop.boolean(),
231
+ showBarLabels: Prop.boolean(),
232
+ showCenterLabel: Prop.boolean(),
233
+ labelText: Prop.string().docs({
234
+ description:
235
+ "Custom text for center label. If empty, automatically displays calculated total (sum for stacked, first value for single). Useful for custom metrics, percentages with % symbols, or descriptive text. Displayed with large, bold styling.",
349
236
  }),
350
- showCenterLabel: Prop.boolean().propertiesPanel({
351
- label: "Show center label",
352
- description: "Display label in the center of the chart",
353
- controlType: "SWITCH",
237
+ labelSubtext: Prop.string().docs({
238
+ description:
239
+ "Secondary text displayed below the main center label with smaller, muted styling. Typically used for units, descriptions, or context like 'completion', 'users', 'progress', etc. Positioned below the main label for hierarchical information display.",
354
240
  }),
355
- labelText: Prop.string()
356
- .propertiesPanel({
357
- label: "Label text",
358
- description: "Custom text to display in center (leave empty for auto)",
359
- isVisible: function (this: any) {
360
- return this.showCenterLabel;
361
- },
362
- })
363
- .docs({
364
- description:
365
- "Custom text for center label. If empty, automatically displays calculated total (sum for stacked, first value for single). Useful for custom metrics, percentages with % symbols, or descriptive text. Displayed with large, bold styling.",
366
- }),
367
- labelSubtext: Prop.string()
368
- .propertiesPanel({
369
- label: "Label subtext",
370
- description: "Subtext to display below main label",
371
- isVisible: function (this: any) {
372
- return this.showCenterLabel;
373
- },
374
- })
375
- .docs({
376
- description:
377
- "Secondary text displayed below the main center label with smaller, muted styling. Typically used for units, descriptions, or context like 'completion', 'users', 'progress', etc. Positioned below the main label for hierarchical information display.",
378
- }),
379
241
  }),
380
242
  interaction: Section.category(PropsCategory.Interaction).children({
381
- enableAnimation: Prop.boolean().propertiesPanel({
382
- label: "Enable animation",
383
- description: "Enable chart animations on load",
384
- controlType: "SWITCH",
385
- }),
243
+ enableAnimation: Prop.boolean(),
386
244
  }),
387
245
  events: Section.category(PropsCategory.EventHandlers).children({
388
- onDataClick: Prop.eventHandler().propertiesPanel({
389
- label: "onDataClick",
390
- description: "Triggered when a radial segment is clicked",
391
- computedArgs: [
392
- {
393
- name: "data",
394
- type: "object",
395
- description: "The data point that was clicked",
396
- },
397
- ],
398
- }),
246
+ onDataClick: Prop.eventHandler(),
399
247
  }),
400
248
  }).editorConfig({ icon: "chart" });
401
249
 
@@ -160,47 +160,17 @@ type SelectProps = React.ComponentPropsWithoutRef<typeof Select>;
160
160
  // Properties Definition
161
161
  const propertiesDefinition: PropertiesPanelDefinition<SelectProps> = {
162
162
  general: Section.category(PropsCategory.Content).children({
163
- value: Prop.string().propertiesPanel({
164
- label: "Value",
165
- description:
166
- "The controlled value of the select. Should be used in conjunction with `onValueChange`",
167
- }),
168
- defaultValue: Prop.string().propertiesPanel({
169
- label: "Default value",
170
- description: "The default selected value",
171
- }),
163
+ value: Prop.string(),
164
+ defaultValue: Prop.string(),
172
165
  }),
173
166
 
174
167
  interaction: Section.category(PropsCategory.Interaction).children({
175
- disabled: Prop.boolean().propertiesPanel({
176
- label: "Disabled",
177
- description: "Whether the select is disabled",
178
- }),
168
+ disabled: Prop.boolean(),
179
169
  }),
180
170
 
181
171
  events: Section.category(PropsCategory.EventHandlers).children({
182
- onValueChange: Prop.eventHandler().propertiesPanel({
183
- label: "onValueChange",
184
- description: "Triggered when the selected value changes",
185
- computedArgs: [
186
- {
187
- name: "value",
188
- type: "string",
189
- description: "The selected value",
190
- },
191
- ],
192
- }),
193
- onOpenChange: Prop.eventHandler().propertiesPanel({
194
- label: "onOpenChange",
195
- description: "Triggered when the dropdown opens or closes",
196
- computedArgs: [
197
- {
198
- name: "open",
199
- type: "boolean",
200
- description: "Whether the dropdown is open",
201
- },
202
- ],
203
- }),
172
+ onValueChange: Prop.eventHandler(),
173
+ onOpenChange: Prop.eventHandler(),
204
174
  }),
205
175
  };
206
176
 
@@ -39,14 +39,7 @@ const propertiesDefinition: PropertiesPanelDefinition<
39
39
  React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>
40
40
  > = {
41
41
  appearance: Section.category(PropsCategory.Appearance).children({
42
- orientation: Prop.string<"horizontal" | "vertical">().propertiesPanel({
43
- label: "Orientation",
44
- controlType: "DROP_DOWN",
45
- options: [
46
- { label: "Horizontal", value: "horizontal" },
47
- { label: "Vertical", value: "vertical" },
48
- ],
49
- }),
42
+ orientation: Prop.string<"horizontal" | "vertical">(),
50
43
  }),
51
44
  };
52
45
 
@@ -150,42 +150,19 @@ const propertiesDefinition: PropertiesPanelDefinition<
150
150
  React.ComponentPropsWithoutRef<typeof Sheet>
151
151
  > = {
152
152
  general: Section.category(PropsCategory.Content).children({
153
- open: Prop.boolean().propertiesPanel({
154
- label: "Open",
155
- controlType: "SWITCH",
156
- description: "Whether the component is currently open and visible",
157
- isRemovable: true,
158
- visibility: "SHOW_NAME",
159
- }),
153
+ open: Prop.boolean(),
160
154
  children: Prop.jsx(),
161
155
  }),
162
156
  interaction: Section.category(PropsCategory.Interaction).children({
163
- defaultOpen: Prop.boolean().propertiesPanel({
164
- label: "Default is open",
165
- description: "Whether the component is open by default",
157
+ defaultOpen: Prop.boolean(),
158
+ modal: Prop.boolean().docs({
159
+ description:
160
+ "When true, interaction with outside elements will be disabled",
166
161
  }),
167
- modal: Prop.boolean()
168
- .propertiesPanel({
169
- label: "Modal",
170
- description: "Prevent clicking outside from closing the dialog",
171
- })
172
- .docs({
173
- description:
174
- "When true, interaction with outside elements will be disabled",
175
- }),
176
162
  }),
177
163
 
178
164
  events: Section.category(PropsCategory.EventHandlers).children({
179
- onOpenChange: Prop.eventHandler().propertiesPanel({
180
- label: "onOpenChange",
181
- computedArgs: [
182
- {
183
- name: "open",
184
- type: "boolean",
185
- description: "Whether the sheet is open",
186
- },
187
- ],
188
- }),
165
+ onOpenChange: Prop.eventHandler(),
189
166
  }),
190
167
  };
191
168
 
@@ -211,17 +188,7 @@ const sheetContentPropertiesDefinition: PropertiesPanelDefinition<
211
188
  children: Prop.jsx(),
212
189
  }),
213
190
  appearance: Section.category(PropsCategory.Appearance).children({
214
- side: Prop.string<"top" | "right" | "bottom" | "left">().propertiesPanel({
215
- label: "Side",
216
- controlType: "DROP_DOWN",
217
- description: "Which side of the screen the sheet appears from",
218
- options: [
219
- { label: "Right", value: "right" },
220
- { label: "Left", value: "left" },
221
- { label: "Top", value: "top" },
222
- { label: "Bottom", value: "bottom" },
223
- ],
224
- }),
191
+ side: Prop.string<"top" | "right" | "bottom" | "left">(),
225
192
  }),
226
193
  };
227
194
 
@@ -888,41 +888,9 @@ function SidebarMenuSubButton({
888
888
  // Properties Definition
889
889
  const propertiesDefinition: PropertiesPanelDefinition<SidebarProps> = {
890
890
  general: Section.category(PropsCategory.Content).children({
891
- side: Prop.string<"left" | "right">()
892
-
893
- .propertiesPanel({
894
- label: "Side",
895
- controlType: "RADIO_BUTTON_GROUP",
896
- description: "Which side the sidebar appears on",
897
- options: [
898
- { label: "Left", value: "left" },
899
- { label: "Right", value: "right" },
900
- ],
901
- }),
902
- variant: Prop.string<"sidebar" | "floating" | "inset">()
903
-
904
- .propertiesPanel({
905
- label: "Variant",
906
- controlType: "DROP_DOWN",
907
- description: "Visual style of the sidebar",
908
- options: [
909
- { label: "Sidebar", value: "sidebar" },
910
- { label: "Floating", value: "floating" },
911
- { label: "Inset", value: "inset" },
912
- ],
913
- }),
914
- collapsible: Prop.string<"none" | "icon" | "offcanvas">()
915
-
916
- .propertiesPanel({
917
- label: "Collapsible behavior",
918
- controlType: "DROP_DOWN",
919
- description: "How the sidebar behaves when collapsed",
920
- options: [
921
- { label: "Off-canvas", value: "offcanvas" },
922
- { label: "Icon only", value: "icon" },
923
- { label: "None", value: "none" },
924
- ],
925
- }),
891
+ side: Prop.string<"left" | "right">(),
892
+ variant: Prop.string<"sidebar" | "floating" | "inset">(),
893
+ collapsible: Prop.string<"none" | "icon" | "offcanvas">(),
926
894
  children: Prop.jsx(),
927
895
  }),
928
896
  };
@@ -82,107 +82,23 @@ const propertiesDefinition: PropertiesPanelDefinition<
82
82
  React.ComponentProps<typeof SliderPrimitive.Root>
83
83
  > = {
84
84
  general: Section.category(PropsCategory.Content).children({
85
- value: Prop.array<number>().propertiesPanel({
86
- label: "Value",
87
- controlType: "INPUT_TEXT",
88
- description: "The controlled value of the slider",
89
- isRemovable: true,
90
- visibility: "SHOW_NAME",
91
- }),
92
- defaultValue: Prop.array<number>().propertiesPanel({
93
- label: "Default value",
94
- description:
95
- "The default selected option value. Changes to the default selection update the component state",
96
- placeholder: "Enter default option value",
97
- }),
98
- min: Prop.number().propertiesPanel({
99
- label: "Min value",
100
- description: "The minimum value of the slider",
101
- placeholder: "Enter min value",
102
- defaultOnAdd: 0,
103
- visibility: "SHOW_NAME",
104
- isRemovable: true,
105
- }),
106
- max: Prop.number().propertiesPanel({
107
- label: "Max value",
108
- description: "The maximum value of the slider",
109
- placeholder: "Enter max value",
110
- defaultOnAdd: 100,
111
- visibility: "SHOW_NAME",
112
- isRemovable: true,
113
- }),
114
- step: Prop.number().propertiesPanel({
115
- label: "Step value",
116
- description: "The step value of the slider",
117
- placeholder: "Enter step value",
118
- defaultOnAdd: 1,
119
- visibility: "SHOW_NAME",
120
- isRemovable: true,
121
- }),
122
- minStepsBetweenThumbs: Prop.number().propertiesPanel({
123
- label: "Min steps between thumbs",
124
- description: "The minimum number of steps between multiple thumbs",
125
- placeholder: "Enter minimum steps",
126
- defaultOnAdd: 0,
127
- visibility: "SHOW_NAME",
128
- isRemovable: true,
129
- }),
85
+ value: Prop.array<number>(),
86
+ defaultValue: Prop.array<number>(),
87
+ min: Prop.number(),
88
+ max: Prop.number(),
89
+ step: Prop.number(),
90
+ minStepsBetweenThumbs: Prop.number(),
130
91
  }),
131
92
  appearance: Section.category(PropsCategory.Appearance).children({
132
- orientation: Prop.string<"horizontal" | "vertical">()
133
-
134
- .propertiesPanel({
135
- label: "Orientation",
136
- description: "The orientation of the slider",
137
- controlType: "RADIO_BUTTON_GROUP",
138
- options: [
139
- { value: "horizontal", label: "Horizontal" },
140
- { value: "vertical", label: "Vertical" },
141
- ],
142
- visibility: "SHOW_NAME",
143
- isRemovable: true,
144
- defaultOnAdd: "horizontal",
145
- }),
146
- inverted: Prop.boolean().propertiesPanel({
147
- label: "Inverted",
148
- description: "Whether the slider is inverted (reverse direction)",
149
- controlType: "SWITCH",
150
- visibility: "SHOW_NAME",
151
- isRemovable: true,
152
- defaultOnAdd: false,
153
- }),
93
+ orientation: Prop.string<"horizontal" | "vertical">(),
94
+ inverted: Prop.boolean(),
154
95
  }),
155
96
  interaction: Section.category(PropsCategory.Interaction).children({
156
- disabled: Prop.boolean().propertiesPanel({
157
- label: "Disabled",
158
- description: "Disables user interaction with this component",
159
- controlType: "SWITCH",
160
- }),
97
+ disabled: Prop.boolean(),
161
98
  }),
162
99
  events: Section.category(PropsCategory.EventHandlers).children({
163
- onValueChange: Prop.eventHandler().propertiesPanel({
164
- label: "onValueChange",
165
- description: "Event handler called when the value changes",
166
- computedArgs: [
167
- {
168
- name: "value",
169
- type: "array",
170
- description: "The new value",
171
- },
172
- ],
173
- }),
174
- onValueCommit: Prop.eventHandler().propertiesPanel({
175
- label: "onValueCommit",
176
- description:
177
- "Event handler called when the value changes at the end of an interaction. Useful when you only need to capture a final value e.g. to update a backend service",
178
- computedArgs: [
179
- {
180
- name: "value",
181
- type: "array",
182
- description: "The new value",
183
- },
184
- ],
185
- }),
100
+ onValueChange: Prop.eventHandler(),
101
+ onValueCommit: Prop.eventHandler(),
186
102
  }),
187
103
  };
188
104
 
@@ -40,45 +40,18 @@ const propertiesDefinition: PropertiesPanelDefinition<
40
40
  React.ComponentProps<typeof SwitchPrimitives.Root>
41
41
  > = {
42
42
  general: Section.category(PropsCategory.Content).children({
43
- checked: Prop.boolean().propertiesPanel({
44
- label: "Checked",
45
- controlType: "SWITCH",
46
- description:
47
- "The controlled state of the switch. Must be used in conjunction with `onCheckedChange`",
48
- isRemovable: true,
49
- visibility: "SHOW_NAME",
43
+ checked: Prop.boolean(),
44
+ defaultChecked: Prop.boolean().docs({
45
+ description: "Use when you do not need to control its pressed state",
50
46
  }),
51
- defaultChecked: Prop.boolean()
52
- .propertiesPanel({
53
- label: "Default checked",
54
- controlType: "SWITCH",
55
- description: "Whether the switch is checked by default",
56
- })
57
- .docs({
58
- description: "Use when you do not need to control its pressed state",
59
- }),
60
47
  }),
61
48
 
62
49
  interaction: Section.category(PropsCategory.Interaction).children({
63
- disabled: Prop.boolean().propertiesPanel({
64
- label: "Disabled",
65
- controlType: "SWITCH",
66
- description: "Whether the switch is disabled",
67
- }),
50
+ disabled: Prop.boolean(),
68
51
  }),
69
52
 
70
53
  events: Section.category(PropsCategory.EventHandlers).children({
71
- onCheckedChange: Prop.eventHandler().propertiesPanel({
72
- label: "onChange",
73
- description: "Triggered when the switch checked state changes",
74
- computedArgs: [
75
- {
76
- name: "checked",
77
- type: "boolean",
78
- description: "Whether the switch is checked",
79
- },
80
- ],
81
- }),
54
+ onCheckedChange: Prop.eventHandler(),
82
55
  }),
83
56
  };
84
57