eddev 2.0.0-beta.2 → 2.0.0-beta.200

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 (522) hide show
  1. package/css/editor-styles.css +4 -0
  2. package/dist/app/entry/HydrationOverlay.d.ts +2 -0
  3. package/dist/app/entry/HydrationOverlay.d.ts.map +1 -0
  4. package/dist/app/entry/HydrationOverlay.js +2 -0
  5. package/dist/app/entry/MetaTags.d.ts +8 -0
  6. package/dist/app/entry/MetaTags.d.ts.map +1 -0
  7. package/dist/app/entry/MetaTags.js +30 -0
  8. package/dist/app/entry/boot-admin.d.ts +2 -0
  9. package/dist/app/entry/boot-admin.d.ts.map +1 -0
  10. package/dist/app/entry/boot-admin.js +12 -0
  11. package/dist/app/entry/hydration-script.d.ts +2 -0
  12. package/dist/app/entry/hydration-script.d.ts.map +1 -0
  13. package/dist/app/entry/hydration-script.js +18 -0
  14. package/dist/app/entry/spa-root.d.ts +2 -0
  15. package/dist/app/entry/spa-root.d.ts.map +1 -0
  16. package/dist/app/entry/spa-root.js +7 -0
  17. package/dist/app/entry/ssr-root-client.d.ts +7 -0
  18. package/dist/app/entry/ssr-root-client.d.ts.map +1 -0
  19. package/dist/app/entry/ssr-root-client.js +21 -0
  20. package/dist/app/entry/ssr-root.d.ts +11 -0
  21. package/dist/app/entry/ssr-root.d.ts.map +1 -0
  22. package/dist/app/entry/ssr-root.js +22 -0
  23. package/dist/app/lib/admin/defineField.d.ts +1 -0
  24. package/dist/app/lib/admin/defineField.d.ts.map +1 -0
  25. package/dist/app/lib/admin/defineWidget.d.ts +1 -0
  26. package/dist/app/lib/admin/defineWidget.d.ts.map +1 -0
  27. package/dist/app/lib/admin/index.d.ts +3 -2
  28. package/dist/app/lib/admin/index.d.ts.map +1 -0
  29. package/dist/app/lib/admin/index.js +2 -2
  30. package/dist/app/lib/admin/installFieldTypes.d.ts +1 -0
  31. package/dist/app/lib/admin/installFieldTypes.d.ts.map +1 -0
  32. package/dist/app/lib/admin/installFieldTypes.js +3 -1
  33. package/dist/app/lib/admin/runWidgets.d.ts +1 -0
  34. package/dist/app/lib/admin/runWidgets.d.ts.map +1 -0
  35. package/dist/app/lib/admin/runWidgets.js +8 -3
  36. package/dist/app/lib/blocks/ContentBlocks.d.ts +7 -4
  37. package/dist/app/lib/blocks/ContentBlocks.d.ts.map +1 -0
  38. package/dist/app/lib/blocks/ContentBlocks.js +19 -6
  39. package/dist/app/lib/blocks/EditableText.d.ts +31 -6
  40. package/dist/app/lib/blocks/EditableText.d.ts.map +1 -0
  41. package/dist/app/lib/blocks/EditableText.js +36 -7
  42. package/dist/app/lib/blocks/InnerBlocks.d.ts +23 -8
  43. package/dist/app/lib/blocks/InnerBlocks.d.ts.map +1 -0
  44. package/dist/app/lib/blocks/InnerBlocks.js +76 -28
  45. package/dist/app/lib/blocks/SlotBlocks.d.ts +8 -0
  46. package/dist/app/lib/blocks/SlotBlocks.d.ts.map +1 -0
  47. package/dist/app/lib/blocks/SlotBlocks.js +46 -0
  48. package/dist/app/lib/blocks/block-utils.d.ts +3 -2
  49. package/dist/app/lib/blocks/block-utils.d.ts.map +1 -0
  50. package/dist/app/lib/blocks/block-utils.js +4 -2
  51. package/dist/app/lib/blocks/builtin-blocks.d.ts +2 -0
  52. package/dist/app/lib/blocks/builtin-blocks.d.ts.map +1 -0
  53. package/dist/app/lib/blocks/builtin-blocks.js +55 -0
  54. package/dist/app/lib/blocks/defineBlock.d.ts +4 -0
  55. package/dist/app/lib/blocks/defineBlock.d.ts.map +1 -0
  56. package/dist/app/lib/blocks/defineBlock.js +9 -0
  57. package/dist/app/lib/blocks/editor/EditorHighlights.d.ts +8 -0
  58. package/dist/app/lib/blocks/editor/EditorHighlights.d.ts.map +1 -0
  59. package/dist/app/lib/blocks/editor/EditorHighlights.js +164 -0
  60. package/dist/app/lib/blocks/editor/EditorSupport.d.ts +1 -0
  61. package/dist/app/lib/blocks/editor/EditorSupport.d.ts.map +1 -0
  62. package/dist/app/lib/blocks/editor/EditorSupport.js +19 -12
  63. package/dist/app/lib/blocks/editor/ErrorBoundaryEditor.d.ts +1 -0
  64. package/dist/app/lib/blocks/editor/ErrorBoundaryEditor.d.ts.map +1 -0
  65. package/dist/app/lib/blocks/editor/block-templates.d.ts +8 -1
  66. package/dist/app/lib/blocks/editor/block-templates.d.ts.map +1 -0
  67. package/dist/app/lib/blocks/editor/block-templates.js +71 -2
  68. package/dist/app/lib/blocks/editor/blocks-by-tag.d.ts +1 -0
  69. package/dist/app/lib/blocks/editor/blocks-by-tag.d.ts.map +1 -0
  70. package/dist/app/lib/blocks/editor/controls.d.ts +1 -0
  71. package/dist/app/lib/blocks/editor/controls.d.ts.map +1 -0
  72. package/dist/app/lib/blocks/editor/create-block.d.ts +10 -0
  73. package/dist/app/lib/blocks/editor/create-block.d.ts.map +1 -0
  74. package/dist/app/lib/blocks/editor/create-block.js +13 -0
  75. package/dist/app/lib/blocks/editor/editor-config.d.ts +78 -9
  76. package/dist/app/lib/blocks/editor/editor-config.d.ts.map +1 -0
  77. package/dist/app/lib/blocks/editor/editor-config.js +29 -62
  78. package/dist/app/lib/blocks/editor/installGutenbergHooks.d.ts +4 -0
  79. package/dist/app/lib/blocks/editor/installGutenbergHooks.d.ts.map +1 -0
  80. package/dist/app/lib/blocks/editor/installGutenbergHooks.js +130 -25
  81. package/dist/app/lib/blocks/editor/root-blocks.d.ts +7 -0
  82. package/dist/app/lib/blocks/editor/root-blocks.d.ts.map +1 -0
  83. package/dist/app/lib/blocks/editor/root-blocks.js +30 -0
  84. package/dist/app/lib/blocks/editor/usePostEditor.d.ts +13 -2
  85. package/dist/app/lib/blocks/editor/usePostEditor.d.ts.map +1 -0
  86. package/dist/app/lib/blocks/editor/usePostEditor.js +28 -13
  87. package/dist/app/lib/blocks/index.d.ts +12 -9
  88. package/dist/app/lib/blocks/index.d.ts.map +1 -0
  89. package/dist/app/lib/blocks/index.js +11 -9
  90. package/dist/app/lib/blocks/inline-editing.d.ts +11 -1
  91. package/dist/app/lib/blocks/inline-editing.d.ts.map +1 -0
  92. package/dist/app/lib/blocks/inline-editing.js +15 -5
  93. package/dist/app/lib/devtools/components/BreakpointIndicator.d.ts +1 -0
  94. package/dist/app/lib/devtools/components/BreakpointIndicator.d.ts.map +1 -0
  95. package/dist/app/lib/devtools/components/BreakpointIndicator.js +7 -5
  96. package/dist/app/lib/devtools/components/DevUI.d.ts +1 -0
  97. package/dist/app/lib/devtools/components/DevUI.d.ts.map +1 -0
  98. package/dist/app/lib/devtools/components/DevUI.js +4 -3
  99. package/dist/app/lib/devtools/components/GridIndicator.d.ts +2 -0
  100. package/dist/app/lib/devtools/components/GridIndicator.d.ts.map +1 -0
  101. package/dist/app/lib/devtools/components/GridIndicator.js +29 -0
  102. package/dist/app/lib/devtools/dev-tools-store.d.ts +10 -0
  103. package/dist/app/lib/devtools/dev-tools-store.d.ts.map +1 -0
  104. package/dist/app/lib/devtools/dev-tools-store.js +8 -0
  105. package/dist/app/lib/devtools/hooks/usePersistState.d.ts +2 -1
  106. package/dist/app/lib/devtools/hooks/usePersistState.d.ts.map +1 -0
  107. package/dist/app/lib/devtools/hooks/usePersistState.js +11 -2
  108. package/dist/app/lib/devtools/hooks/useTailwind.d.ts +2311 -1267
  109. package/dist/app/lib/devtools/hooks/useTailwind.d.ts.map +1 -0
  110. package/dist/app/lib/devtools/hooks/useTailwind.js +6 -3
  111. package/dist/app/lib/devtools/index.d.ts +2 -0
  112. package/dist/app/lib/devtools/index.d.ts.map +1 -0
  113. package/dist/app/lib/devtools/index.js +1 -1
  114. package/dist/app/lib/devtools/loader.d.ts +1 -0
  115. package/dist/app/lib/devtools/loader.d.ts.map +1 -0
  116. package/dist/app/lib/devtools/loader.js +8 -7
  117. package/dist/app/lib/devtools/tailwind.config.d.ts +1 -0
  118. package/dist/app/lib/devtools/tailwind.config.d.ts.map +1 -0
  119. package/dist/app/lib/devtools/useQueryDebug.d.ts +8 -1
  120. package/dist/app/lib/devtools/useQueryDebug.d.ts.map +1 -0
  121. package/dist/app/lib/devtools/useQueryDebug.js +5 -8
  122. package/dist/app/lib/dynamic/dynamic.d.ts +2 -1
  123. package/dist/app/lib/dynamic/dynamic.d.ts.map +1 -0
  124. package/dist/app/lib/dynamic/dynamic.js +5 -1
  125. package/dist/app/lib/dynamic/index.d.ts +2 -1
  126. package/dist/app/lib/dynamic/index.d.ts.map +1 -0
  127. package/dist/app/lib/dynamic/index.js +1 -1
  128. package/dist/app/lib/hooks/index.d.ts +5 -5
  129. package/dist/app/lib/hooks/index.d.ts.map +1 -0
  130. package/dist/app/lib/hooks/index.js +4 -5
  131. package/dist/app/lib/hooks/{queryUtils.d.ts → query-hooks.d.ts} +46 -4
  132. package/dist/app/lib/hooks/query-hooks.d.ts.map +1 -0
  133. package/dist/app/lib/hooks/{queryUtils.js → query-hooks.js} +99 -40
  134. package/dist/app/lib/hooks/useAppData.d.ts +1 -0
  135. package/dist/app/lib/hooks/useAppData.d.ts.map +1 -0
  136. package/dist/app/lib/hooks/useAppData.js +12 -1
  137. package/dist/app/lib/hooks/useRPC.d.ts +1 -4
  138. package/dist/app/lib/hooks/useRPC.d.ts.map +1 -0
  139. package/dist/app/lib/hooks/useRPC.js +0 -8
  140. package/dist/app/lib/integrations/gravityforms/index.d.ts +3 -0
  141. package/dist/app/lib/integrations/gravityforms/index.d.ts.map +1 -0
  142. package/dist/app/lib/integrations/gravityforms/index.js +2 -0
  143. package/dist/app/lib/integrations/gravityforms/types.d.ts +145 -0
  144. package/dist/app/lib/integrations/gravityforms/types.d.ts.map +1 -0
  145. package/dist/app/lib/integrations/gravityforms/types.js +1 -0
  146. package/dist/app/lib/integrations/gravityforms/useGravityForm.d.ts +31 -0
  147. package/dist/app/lib/integrations/gravityforms/useGravityForm.d.ts.map +1 -0
  148. package/dist/app/lib/integrations/gravityforms/useGravityForm.js +295 -0
  149. package/dist/app/lib/internal/finalize-rpc.d.ts +18 -0
  150. package/dist/app/lib/internal/finalize-rpc.d.ts.map +1 -0
  151. package/dist/app/lib/internal/finalize-rpc.js +3 -0
  152. package/dist/app/lib/internal/index.d.ts +6 -4
  153. package/dist/app/lib/internal/index.d.ts.map +1 -0
  154. package/dist/app/lib/internal/index.js +5 -4
  155. package/dist/app/lib/internal/internal-store.d.ts +1 -2
  156. package/dist/app/lib/internal/internal-store.d.ts.map +1 -0
  157. package/dist/app/lib/internal/internal-store.js +1 -3
  158. package/dist/app/lib/internal/read-admin-manifest.d.ts +2 -1
  159. package/dist/app/lib/internal/read-admin-manifest.d.ts.map +1 -0
  160. package/dist/app/lib/internal/read-block-manifest.d.ts +1 -0
  161. package/dist/app/lib/internal/read-block-manifest.d.ts.map +1 -0
  162. package/dist/app/lib/internal/read-view-manifest.d.ts +1 -0
  163. package/dist/app/lib/internal/read-view-manifest.d.ts.map +1 -0
  164. package/dist/app/lib/legacy-stitches/createStitches.d.ts +22 -21
  165. package/dist/app/lib/legacy-stitches/createStitches.d.ts.map +1 -0
  166. package/dist/app/lib/legacy-stitches/createStitches.js +1 -1
  167. package/dist/app/lib/legacy-stitches/index.d.ts +2 -1
  168. package/dist/app/lib/legacy-stitches/index.d.ts.map +1 -0
  169. package/dist/app/lib/legacy-stitches/index.js +1 -1
  170. package/dist/app/lib/routing/components/BackButton.d.ts +50 -0
  171. package/dist/app/lib/routing/components/BackButton.d.ts.map +1 -0
  172. package/dist/app/lib/routing/components/BackButton.js +47 -0
  173. package/dist/app/lib/routing/components/BrowserRouter.d.ts +10 -1
  174. package/dist/app/lib/routing/components/BrowserRouter.d.ts.map +1 -0
  175. package/dist/app/lib/routing/components/BrowserRouter.js +138 -23
  176. package/dist/app/lib/routing/components/ClientOnly.d.ts +1 -0
  177. package/dist/app/lib/routing/components/ClientOnly.d.ts.map +1 -0
  178. package/dist/app/lib/routing/components/ClientOnly.js +2 -2
  179. package/dist/app/lib/routing/components/Link.d.ts +19 -2
  180. package/dist/app/lib/routing/components/Link.d.ts.map +1 -0
  181. package/dist/app/lib/routing/components/Link.js +47 -27
  182. package/dist/app/lib/routing/components/NativeLinkHandler.d.ts +10 -0
  183. package/dist/app/lib/routing/components/NativeLinkHandler.d.ts.map +1 -0
  184. package/dist/app/lib/routing/components/NativeLinkHandler.js +23 -0
  185. package/dist/app/lib/routing/components/RouteRenderer.d.ts +2 -1
  186. package/dist/app/lib/routing/components/RouteRenderer.d.ts.map +1 -0
  187. package/dist/app/lib/routing/components/RouteRenderer.js +20 -6
  188. package/dist/app/lib/routing/components/SSRRouter.d.ts +5 -2
  189. package/dist/app/lib/routing/components/SSRRouter.d.ts.map +1 -0
  190. package/dist/app/lib/routing/components/SSRRouter.js +7 -6
  191. package/dist/app/lib/routing/components/ScrollRestoration.d.ts +1 -0
  192. package/dist/app/lib/routing/components/ScrollRestoration.d.ts.map +1 -0
  193. package/dist/app/lib/routing/components/ScrollRestoration.js +5 -2
  194. package/dist/app/lib/routing/context.d.ts +9 -5
  195. package/dist/app/lib/routing/context.d.ts.map +1 -0
  196. package/dist/app/lib/routing/context.js +13 -96
  197. package/dist/app/lib/routing/hooks/useIsSSR.d.ts +1 -0
  198. package/dist/app/lib/routing/hooks/useIsSSR.d.ts.map +1 -0
  199. package/dist/app/lib/routing/hooks/useRestorableState.d.ts +3 -1
  200. package/dist/app/lib/routing/hooks/useRestorableState.d.ts.map +1 -0
  201. package/dist/app/lib/routing/hooks/useRestorableState.js +2 -1
  202. package/dist/app/lib/routing/hooks/useRoute.d.ts +17 -1
  203. package/dist/app/lib/routing/hooks/useRoute.d.ts.map +1 -0
  204. package/dist/app/lib/routing/hooks/useRoute.js +22 -1
  205. package/dist/app/lib/routing/hooks/useRouteMeta.d.ts +6 -0
  206. package/dist/app/lib/routing/hooks/useRouteMeta.d.ts.map +1 -0
  207. package/dist/app/lib/routing/hooks/useRouteMeta.js +9 -0
  208. package/dist/app/lib/routing/hooks/useRouteTransition.d.ts +2 -1
  209. package/dist/app/lib/routing/hooks/useRouteTransition.d.ts.map +1 -0
  210. package/dist/app/lib/routing/hooks/useRouteTransition.js +1 -1
  211. package/dist/app/lib/routing/hooks/useRouter.d.ts +2 -1
  212. package/dist/app/lib/routing/hooks/useRouter.d.ts.map +1 -0
  213. package/dist/app/lib/routing/hooks/useRouter.js +1 -1
  214. package/dist/app/lib/routing/hooks/useRouterEvents.d.ts +2 -1
  215. package/dist/app/lib/routing/hooks/useRouterEvents.d.ts.map +1 -0
  216. package/dist/app/lib/routing/hooks/useRouterEvents.js +1 -1
  217. package/dist/app/lib/routing/hooks/useRouterState.d.ts +2 -1
  218. package/dist/app/lib/routing/hooks/useRouterState.d.ts.map +1 -0
  219. package/dist/app/lib/routing/hooks/useRouterState.js +1 -1
  220. package/dist/app/lib/routing/hooks/useSearchParams.d.ts +78 -6
  221. package/dist/app/lib/routing/hooks/useSearchParams.d.ts.map +1 -0
  222. package/dist/app/lib/routing/hooks/useSearchParams.js +77 -17
  223. package/dist/app/lib/routing/index.d.ts +16 -13
  224. package/dist/app/lib/routing/index.d.ts.map +1 -0
  225. package/dist/app/lib/routing/index.js +15 -13
  226. package/dist/app/lib/routing/loader.d.ts +3 -2
  227. package/dist/app/lib/routing/loader.d.ts.map +1 -0
  228. package/dist/app/lib/routing/loader.js +26 -15
  229. package/dist/app/lib/routing/types.d.ts +62 -14
  230. package/dist/app/lib/routing/types.d.ts.map +1 -0
  231. package/dist/app/lib/routing/utils.d.ts +7 -2
  232. package/dist/app/lib/routing/utils.d.ts.map +1 -0
  233. package/dist/app/lib/routing/utils.js +41 -4
  234. package/dist/app/lib/{hooks → runtime}/apiConfig.d.ts +11 -2
  235. package/dist/app/lib/runtime/apiConfig.d.ts.map +1 -0
  236. package/dist/app/lib/runtime/apiConfig.js +6 -0
  237. package/dist/app/lib/runtime/errorHandling.d.ts +40 -0
  238. package/dist/app/lib/runtime/errorHandling.d.ts.map +1 -0
  239. package/dist/app/lib/runtime/errorHandling.js +6 -0
  240. package/dist/app/lib/runtime/index.d.ts +3 -0
  241. package/dist/app/lib/runtime/index.d.ts.map +1 -0
  242. package/dist/app/lib/runtime/index.js +2 -0
  243. package/dist/app/lib/views/defineView.d.ts +2 -1
  244. package/dist/app/lib/views/defineView.d.ts.map +1 -0
  245. package/dist/app/lib/views/index.d.ts +2 -1
  246. package/dist/app/lib/views/index.d.ts.map +1 -0
  247. package/dist/app/lib/views/index.js +1 -1
  248. package/dist/app/server/index.d.ts +6 -0
  249. package/dist/app/server/index.d.ts.map +1 -0
  250. package/dist/app/server/index.js +5 -0
  251. package/dist/app/server/proxy-wp-admin.d.ts +3 -0
  252. package/dist/app/server/proxy-wp-admin.d.ts.map +1 -0
  253. package/dist/app/server/proxy-wp-admin.js +138 -0
  254. package/dist/app/server/render-ai-page.d.ts +13 -0
  255. package/dist/app/server/render-ai-page.d.ts.map +1 -0
  256. package/dist/app/server/render-ai-page.js +100 -0
  257. package/dist/app/server/render-ssr-page.d.ts +31 -0
  258. package/dist/app/server/render-ssr-page.d.ts.map +1 -0
  259. package/dist/app/server/render-ssr-page.js +237 -0
  260. package/dist/app/server/rpc.d.ts +52 -0
  261. package/dist/app/server/rpc.d.ts.map +1 -0
  262. package/dist/app/server/rpc.js +18 -0
  263. package/dist/app/server/server-context.d.ts +75 -0
  264. package/dist/app/server/server-context.d.ts.map +1 -0
  265. package/dist/app/server/server-context.js +417 -0
  266. package/dist/app/server/server-custom-config.d.ts +3 -0
  267. package/dist/app/server/server-custom-config.d.ts.map +1 -0
  268. package/dist/app/server/server-custom-config.js +1 -0
  269. package/dist/app/server/utils/content-security.d.ts +26 -0
  270. package/dist/app/server/utils/content-security.d.ts.map +1 -0
  271. package/dist/app/server/utils/content-security.js +124 -0
  272. package/dist/app/server/utils/headers.d.ts +2 -0
  273. package/dist/app/server/utils/headers.d.ts.map +1 -0
  274. package/dist/app/server/utils/headers.js +17 -0
  275. package/dist/app/server/utils/replace-host.d.ts +7 -4
  276. package/dist/app/server/utils/replace-host.d.ts.map +1 -0
  277. package/dist/app/server/utils/replace-host.js +66 -11
  278. package/dist/app/server/utils/swr-cache.d.ts +5 -0
  279. package/dist/app/server/utils/swr-cache.d.ts.map +1 -0
  280. package/dist/app/server/utils/swr-cache.js +31 -0
  281. package/dist/app/utils/APIProvider.d.ts +3 -0
  282. package/dist/app/utils/APIProvider.d.ts.map +1 -0
  283. package/dist/app/utils/APIProvider.js +5 -0
  284. package/dist/app/utils/BlockErrorBoundary.d.ts +20 -0
  285. package/dist/app/utils/BlockErrorBoundary.d.ts.map +1 -0
  286. package/dist/app/utils/BlockErrorBoundary.js +38 -0
  287. package/dist/app/utils/ErrorMessage.d.ts +6 -0
  288. package/dist/app/utils/ErrorMessage.d.ts.map +1 -0
  289. package/dist/app/utils/ErrorMessage.js +14 -0
  290. package/dist/app/utils/RouteErrorBoundary.d.ts +20 -0
  291. package/dist/app/utils/RouteErrorBoundary.d.ts.map +1 -0
  292. package/dist/app/utils/RouteErrorBoundary.js +41 -0
  293. package/dist/app/utils/asset-capture.d.ts +3 -0
  294. package/dist/app/utils/asset-capture.d.ts.map +1 -0
  295. package/dist/app/utils/asset-capture.js +5 -0
  296. package/dist/app/utils/hydration-debugger.d.ts +14 -0
  297. package/dist/app/utils/hydration-debugger.d.ts.map +1 -0
  298. package/dist/app/utils/hydration-debugger.js +11 -0
  299. package/dist/app/utils/query-client.d.ts +3 -0
  300. package/dist/app/utils/query-client.d.ts.map +1 -0
  301. package/dist/app/utils/query-client.js +5 -1
  302. package/dist/app/utils/query-monitor.d.ts +27 -0
  303. package/dist/app/utils/query-monitor.d.ts.map +1 -0
  304. package/dist/app/utils/query-monitor.js +7 -0
  305. package/dist/app/utils/trpc-client.d.ts +3 -0
  306. package/dist/app/utils/trpc-client.d.ts.map +1 -0
  307. package/dist/app/utils/trpc-client.js +39 -0
  308. package/dist/app/utils/wp.d.ts +11 -10
  309. package/dist/app/utils/wp.d.ts.map +1 -0
  310. package/dist/node/cli/cli-mode.d.ts +1 -0
  311. package/dist/node/cli/cli-mode.d.ts.map +1 -0
  312. package/dist/node/cli/cli-worker.d.ts +2 -1
  313. package/dist/node/cli/cli-worker.d.ts.map +1 -0
  314. package/dist/node/cli/cli-worker.js +12 -3
  315. package/dist/node/cli/cli.d.ts +1 -0
  316. package/dist/node/cli/cli.d.ts.map +1 -0
  317. package/dist/node/cli/cli.js +195 -11
  318. package/dist/node/cli/display/CLIApp.d.ts +2 -1
  319. package/dist/node/cli/display/CLIApp.d.ts.map +1 -0
  320. package/dist/node/cli/display/CLIApp.js +4 -7
  321. package/dist/node/cli/display/boot-cli-app.d.ts +1 -0
  322. package/dist/node/cli/display/boot-cli-app.d.ts.map +1 -0
  323. package/dist/node/cli/display/boot-cli-app.js +1 -1
  324. package/dist/node/cli/display/components/Fullscreen.d.ts +1 -0
  325. package/dist/node/cli/display/components/Fullscreen.d.ts.map +1 -0
  326. package/dist/node/cli/display/components/LogEntries.d.ts +2 -1
  327. package/dist/node/cli/display/components/LogEntries.d.ts.map +1 -0
  328. package/dist/node/cli/display/components/MenuItem.d.ts +1 -0
  329. package/dist/node/cli/display/components/MenuItem.d.ts.map +1 -0
  330. package/dist/node/cli/display/components/TextInput.d.ts +1 -0
  331. package/dist/node/cli/display/components/TextInput.d.ts.map +1 -0
  332. package/dist/node/cli/display/hooks/useManifest.d.ts +1 -0
  333. package/dist/node/cli/display/hooks/useManifest.d.ts.map +1 -0
  334. package/dist/node/cli/display/hooks/useStatefulLog.d.ts +2 -1
  335. package/dist/node/cli/display/hooks/useStatefulLog.d.ts.map +1 -0
  336. package/dist/node/cli/display/tools/BlockList.d.ts +1 -0
  337. package/dist/node/cli/display/tools/BlockList.d.ts.map +1 -0
  338. package/dist/node/cli/display/tools/CreateBlock.d.ts +2 -1
  339. package/dist/node/cli/display/tools/CreateBlock.d.ts.map +1 -0
  340. package/dist/node/cli/display/tools/cli-tool-list.d.ts +1 -0
  341. package/dist/node/cli/display/tools/cli-tool-list.d.ts.map +1 -0
  342. package/dist/node/cli/display/tools/cli-tools.d.ts +2 -11
  343. package/dist/node/cli/display/tools/cli-tools.d.ts.map +1 -0
  344. package/dist/node/cli/display/tools/cli-tools.js +9 -9
  345. package/dist/node/cli/display/util/colors.d.ts +3 -2
  346. package/dist/node/cli/display/util/colors.d.ts.map +1 -0
  347. package/dist/node/cli/version.d.ts +2 -1
  348. package/dist/node/cli/version.d.ts.map +1 -0
  349. package/dist/node/cli/version.js +1 -1
  350. package/dist/node/compiler/build-vinxi.d.ts +9 -0
  351. package/dist/node/compiler/build-vinxi.d.ts.map +1 -0
  352. package/dist/node/compiler/build-vinxi.js +38 -0
  353. package/dist/node/compiler/bundler.admin.d.ts +3 -2
  354. package/dist/node/compiler/bundler.admin.d.ts.map +1 -0
  355. package/dist/node/compiler/bundler.admin.js +4 -4
  356. package/dist/node/compiler/bundler.frontend.d.ts +3 -1
  357. package/dist/node/compiler/bundler.frontend.d.ts.map +1 -0
  358. package/dist/node/compiler/bundler.frontend.js +29 -15
  359. package/dist/node/compiler/dev-server.d.ts +19 -0
  360. package/dist/node/compiler/dev-server.d.ts.map +1 -0
  361. package/dist/node/compiler/dev-server.js +113 -0
  362. package/dist/node/compiler/get-vite-config.d.ts +30 -0
  363. package/dist/node/compiler/get-vite-config.d.ts.map +1 -0
  364. package/dist/node/compiler/get-vite-config.js +332 -0
  365. package/dist/node/compiler/vinxi-app.d.ts +23 -0
  366. package/dist/node/compiler/vinxi-app.d.ts.map +1 -0
  367. package/dist/node/compiler/vinxi-app.js +230 -0
  368. package/dist/node/compiler/vinxi-codegen.d.ts +13 -0
  369. package/dist/node/compiler/vinxi-codegen.d.ts.map +1 -0
  370. package/dist/node/compiler/vinxi-codegen.js +731 -0
  371. package/dist/node/graphql/graphql-codegen.d.ts +13 -2
  372. package/dist/node/graphql/graphql-codegen.d.ts.map +1 -0
  373. package/dist/node/graphql/graphql-codegen.js +242 -40
  374. package/dist/node/graphql/graphql-schema-loader.d.ts +3 -1
  375. package/dist/node/graphql/graphql-schema-loader.d.ts.map +1 -0
  376. package/dist/node/graphql/graphql-schema-loader.js +5 -19
  377. package/dist/node/graphql/plugins/gql-plugin-files.d.ts +3 -1
  378. package/dist/node/graphql/plugins/gql-plugin-files.d.ts.map +1 -0
  379. package/dist/node/graphql/plugins/gql-plugin-files.js +3 -2
  380. package/dist/node/graphql/plugins/gql-plugin-no-duplicates.d.ts +1 -0
  381. package/dist/node/graphql/plugins/gql-plugin-no-duplicates.d.ts.map +1 -0
  382. package/dist/node/graphql/plugins/gql-plugin-queries.d.ts +1 -0
  383. package/dist/node/graphql/plugins/gql-plugin-queries.d.ts.map +1 -0
  384. package/dist/node/graphql/plugins/gql-plugin-queries.js +2 -2
  385. package/dist/node/graphql/query-files-loader.d.ts +4 -0
  386. package/dist/node/graphql/query-files-loader.d.ts.map +1 -0
  387. package/dist/node/graphql/query-files-loader.js +5 -0
  388. package/dist/node/graphql/wp-info-query.d.ts +1 -0
  389. package/dist/node/graphql/wp-info-query.d.ts.map +1 -0
  390. package/dist/node/project/config.d.ts +207 -73
  391. package/dist/node/project/config.d.ts.map +1 -0
  392. package/dist/node/project/config.js +95 -21
  393. package/dist/node/project/eddev-build-file.d.ts +1 -0
  394. package/dist/node/project/eddev-build-file.d.ts.map +1 -0
  395. package/dist/node/project/eddev-build-file.js +4 -2
  396. package/dist/node/project/env.d.ts +6 -1
  397. package/dist/node/project/env.d.ts.map +1 -0
  398. package/dist/node/project/env.js +2 -1
  399. package/dist/node/project/favicons.d.ts +1 -0
  400. package/dist/node/project/favicons.d.ts.map +1 -0
  401. package/dist/node/project/manifest/block-manifest.d.ts +1 -0
  402. package/dist/node/project/manifest/block-manifest.d.ts.map +1 -0
  403. package/dist/node/project/manifest/block-manifest.js +8 -4
  404. package/dist/node/project/manifest/field-manifest.d.ts +1 -0
  405. package/dist/node/project/manifest/field-manifest.d.ts.map +1 -0
  406. package/dist/node/project/manifest/manifest.d.ts +3 -1
  407. package/dist/node/project/manifest/manifest.d.ts.map +1 -0
  408. package/dist/node/project/manifest/manifest.js +15 -11
  409. package/dist/node/project/manifest/routes-manifest.d.ts +21 -0
  410. package/dist/node/project/manifest/routes-manifest.d.ts.map +1 -0
  411. package/dist/node/project/manifest/routes-manifest.js +74 -0
  412. package/dist/node/project/manifest/view-manifest.d.ts +1 -0
  413. package/dist/node/project/manifest/view-manifest.d.ts.map +1 -0
  414. package/dist/node/project/manifest/view-manifest.js +2 -2
  415. package/dist/node/project/manifest/widget-manifest.d.ts +1 -0
  416. package/dist/node/project/manifest/widget-manifest.d.ts.map +1 -0
  417. package/dist/node/project/project.d.ts +15 -2
  418. package/dist/node/project/project.d.ts.map +1 -0
  419. package/dist/node/project/project.js +73 -21
  420. package/dist/node/project/wp-info.d.ts +3 -0
  421. package/dist/node/project/wp-info.d.ts.map +1 -0
  422. package/dist/node/project/wp-info.js +13 -3
  423. package/dist/node/storybook/index.d.ts +3 -0
  424. package/dist/node/storybook/index.d.ts.map +1 -0
  425. package/dist/node/storybook/index.js +13 -0
  426. package/dist/node/types/block-type.d.ts +57 -25
  427. package/dist/node/types/block-type.d.ts.map +1 -0
  428. package/dist/node/types/block-type.js +4 -1
  429. package/dist/node/types/view-type.d.ts +8 -7
  430. package/dist/node/types/view-type.d.ts.map +1 -0
  431. package/dist/node/types/view-type.js +3 -4
  432. package/dist/node/utils/fetch-wp.d.ts +2 -0
  433. package/dist/node/utils/fetch-wp.d.ts.map +1 -0
  434. package/dist/node/utils/fetch-wp.js +28 -0
  435. package/dist/node/utils/{formatZodError.d.ts → format-zod-error.d.ts} +1 -0
  436. package/dist/node/utils/format-zod-error.d.ts.map +1 -0
  437. package/dist/node/utils/fs-codegen.d.ts +44 -0
  438. package/dist/node/utils/fs-codegen.d.ts.map +1 -0
  439. package/dist/node/utils/fs-codegen.js +105 -0
  440. package/dist/node/utils/fs.d.ts +5 -0
  441. package/dist/node/utils/fs.d.ts.map +1 -0
  442. package/dist/node/utils/fs.js +2 -0
  443. package/dist/node/utils/{getRepoInfo.d.ts → get-repo-info.d.ts} +1 -0
  444. package/dist/node/utils/get-repo-info.d.ts.map +1 -0
  445. package/dist/node/utils/helpers.d.ts +1 -0
  446. package/dist/node/utils/helpers.d.ts.map +1 -0
  447. package/dist/node/utils/{highlightCode.d.ts → highlight-code.d.ts} +1 -0
  448. package/dist/node/utils/highlight-code.d.ts.map +1 -0
  449. package/dist/node/utils/{isDeploying.d.ts → is-deploying.d.ts} +1 -0
  450. package/dist/node/utils/is-deploying.d.ts.map +1 -0
  451. package/dist/node/utils/{isDeploying.js → is-deploying.js} +1 -1
  452. package/dist/node/utils/report-builder.d.ts +7 -6
  453. package/dist/node/utils/report-builder.d.ts.map +1 -0
  454. package/dist/node/utils/self-signed-cert.d.ts +9 -0
  455. package/dist/node/utils/self-signed-cert.d.ts.map +1 -0
  456. package/dist/node/utils/{selfSignedCert.js → self-signed-cert.js} +29 -5
  457. package/dist/node/utils/{statefulLog.d.ts → stateful-log.d.ts} +1 -0
  458. package/dist/node/utils/stateful-log.d.ts.map +1 -0
  459. package/dist/node/utils/{statefulLog.js → stateful-log.js} +3 -1
  460. package/dist/node/utils/{export-extractor.d.ts → ts-export-extractor.d.ts} +1 -0
  461. package/dist/node/utils/ts-export-extractor.d.ts.map +1 -0
  462. package/dist/node/utils/watch-file-tree.d.ts +26 -0
  463. package/dist/node/utils/watch-file-tree.d.ts.map +1 -0
  464. package/dist/node/utils/{watchFileTree.js → watch-file-tree.js} +12 -5
  465. package/package.json +62 -47
  466. package/tsconfig.app.json +8 -3
  467. package/tsconfig.node.json +1 -0
  468. package/types.app.d.ts +4 -2
  469. package/types.app.internal.d.ts +2 -2
  470. package/types.meta.d.ts +449 -136
  471. package/types.node.d.ts +3 -3
  472. package/dist/app/entry/Root.d.ts +0 -1
  473. package/dist/app/entry/Root.js +0 -9
  474. package/dist/app/entry/main.admin.d.ts +0 -3
  475. package/dist/app/entry/main.admin.js +0 -10
  476. package/dist/app/entry/main.frontend.spa.d.ts +0 -3
  477. package/dist/app/entry/main.frontend.spa.js +0 -13
  478. package/dist/app/entry/main.frontend.ssr.d.ts +0 -21
  479. package/dist/app/entry/main.frontend.ssr.js +0 -79
  480. package/dist/app/entry/main.serverless.dev.d.ts +0 -4
  481. package/dist/app/entry/main.serverless.dev.js +0 -21
  482. package/dist/app/lib/blocks/ErrorBoundaryFrontend.d.ts +0 -15
  483. package/dist/app/lib/blocks/ErrorBoundaryFrontend.js +0 -35
  484. package/dist/app/lib/hooks/apiConfig.js +0 -4
  485. package/dist/app/lib/hooks/usePageLoad.d.ts +0 -6
  486. package/dist/app/lib/hooks/usePageLoad.js +0 -5
  487. package/dist/app/server/create-api-builtin-hono.d.ts +0 -8
  488. package/dist/app/server/create-api-builtin-hono.js +0 -80
  489. package/dist/app/server/create-ssr-hono.d.ts +0 -18
  490. package/dist/app/server/create-ssr-hono.js +0 -104
  491. package/dist/app/server/utils/index.html.d.ts +0 -2
  492. package/dist/app/server/utils/index.html.js +0 -14
  493. package/dist/node/compiler/index.html.d.ts +0 -2
  494. package/dist/node/compiler/index.html.js +0 -15
  495. package/dist/node/compiler/serverless.dev.d.ts +0 -16
  496. package/dist/node/compiler/serverless.dev.js +0 -215
  497. package/dist/node/compiler/vite/get-vite-config.d.ts +0 -13
  498. package/dist/node/compiler/vite/get-vite-config.js +0 -315
  499. package/dist/node/compiler/vite/plugin-admin.d.ts +0 -4
  500. package/dist/node/compiler/vite/plugin-admin.js +0 -67
  501. package/dist/node/compiler/vite/plugin-blocks.d.ts +0 -4
  502. package/dist/node/compiler/vite/plugin-blocks.js +0 -73
  503. package/dist/node/compiler/vite/plugin-entry.d.ts +0 -6
  504. package/dist/node/compiler/vite/plugin-entry.js +0 -16
  505. package/dist/node/compiler/vite/plugin-resolved-tailwind.d.ts +0 -4
  506. package/dist/node/compiler/vite/plugin-resolved-tailwind.js +0 -29
  507. package/dist/node/compiler/vite/plugin-theme.d.ts +0 -4
  508. package/dist/node/compiler/vite/plugin-theme.js +0 -40
  509. package/dist/node/compiler/vite/plugin-views.d.ts +0 -4
  510. package/dist/node/compiler/vite/plugin-views.js +0 -51
  511. package/dist/node/utils/console.d.ts +0 -21
  512. package/dist/node/utils/console.js +0 -28
  513. package/dist/node/utils/selfSignedCert.d.ts +0 -4
  514. package/dist/node/utils/unsafe-fetch.d.ts +0 -2
  515. package/dist/node/utils/unsafe-fetch.js +0 -19
  516. package/dist/node/utils/watchFileTree.d.ts +0 -11
  517. package/tsup.config.ts +0 -40
  518. package/types.manifests.d.ts +0 -22
  519. /package/dist/node/utils/{formatZodError.js → format-zod-error.js} +0 -0
  520. /package/dist/node/utils/{getRepoInfo.js → get-repo-info.js} +0 -0
  521. /package/dist/node/utils/{highlightCode.js → highlight-code.js} +0 -0
  522. /package/dist/node/utils/{export-extractor.js → ts-export-extractor.js} +0 -0
@@ -1,13 +1,13 @@
1
- import type * as BlockEditor from "@wordpress/block-editor";
2
- import type * as Blocks from "@wordpress/blocks";
3
- import type * as Hooks from "@wordpress/hooks";
4
- import type * as Element from "@wordpress/element";
5
- import type * as Components from "@wordpress/components";
6
- import type * as Data from "@wordpress/data";
7
- import type * as CoreData from "@wordpress/core-data";
8
- import type * as Editor from "@wordpress/editor";
9
- import type * as Compose from "@wordpress/compose";
10
- import type * as RichText from "@wordpress/rich-text";
1
+ import * as BlockEditor from "@wordpress/block-editor";
2
+ import * as Blocks from "@wordpress/blocks";
3
+ import * as Hooks from "@wordpress/hooks";
4
+ import * as Element from "@wordpress/element";
5
+ import * as Components from "@wordpress/components";
6
+ import * as Data from "@wordpress/data";
7
+ import * as CoreData from "@wordpress/core-data";
8
+ import * as Editor from "@wordpress/editor";
9
+ import * as Compose from "@wordpress/compose";
10
+ import * as RichText from "@wordpress/rich-text";
11
11
  type WordPressGlobal = {
12
12
  blockEditor: typeof BlockEditor;
13
13
  blocks: typeof Blocks;
@@ -24,3 +24,4 @@ declare global {
24
24
  const wp: WordPressGlobal;
25
25
  }
26
26
  export {};
27
+ //# sourceMappingURL=wp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wp.d.ts","sourceRoot":"","sources":["../../../src/app/utils/wp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,yBAAyB,CAAA;AACtD,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAA;AAC3C,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAA;AACzC,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAA;AAC7C,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAA;AACnD,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAA;AACvC,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAA;AAChD,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAA;AAC3C,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAA;AAC7C,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAA;AAEhD,KAAK,eAAe,GAAG;IACrB,WAAW,EAAE,OAAO,WAAW,CAAA;IAC/B,MAAM,EAAE,OAAO,MAAM,CAAA;IACrB,KAAK,EAAE,OAAO,KAAK,CAAA;IACnB,OAAO,EAAE,OAAO,OAAO,CAAA;IACvB,IAAI,EAAE,OAAO,IAAI,CAAA;IACjB,UAAU,EAAE,OAAO,UAAU,CAAA;IAC7B,OAAO,EAAE,OAAO,OAAO,CAAA;IACvB,QAAQ,EAAE,OAAO,QAAQ,CAAA;IACzB,MAAM,EAAE,OAAO,MAAM,CAAA;IACrB,QAAQ,EAAE,OAAO,QAAQ,CAAA;CAC1B,CAAA;AAED,OAAO,CAAC,MAAM,CAAC;IACb,MAAM,EAAE,EAAE,eAAe,CAAA;CAC1B"}
@@ -8,3 +8,4 @@ export declare const cliMode: {
8
8
  rootDir: string;
9
9
  };
10
10
  export declare function configureCliMode(options: typeof cliMode): void;
11
+ //# sourceMappingURL=cli-mode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-mode.d.ts","sourceRoot":"","sources":["../../../src/node/cli/cli-mode.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;CAQnB,CAAA;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,OAAO,QAEvD"}
@@ -1,5 +1,5 @@
1
1
  import { Worker } from "node:worker_threads";
2
- import { StatefulLog } from "../utils/statefulLog.js";
2
+ import { StatefulLog } from "../utils/stateful-log.js";
3
3
  type WorkerMode = "admin" | "frontend" | "graphql" | "serverless";
4
4
  export declare class CLIWorker {
5
5
  worker: Worker;
@@ -11,3 +11,4 @@ export declare class CLIWorker {
11
11
  shutdown(): Promise<void>;
12
12
  }
13
13
  export {};
14
+ //# sourceMappingURL=cli-worker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-worker.d.ts","sourceRoot":"","sources":["../../../src/node/cli/cli-worker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAwC,MAAM,qBAAqB,CAAA;AAKlF,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAGtD,KAAK,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,YAAY,CAAA;AAEjE,qBAAa,SAAS;IACpB,MAAM,EAAE,MAAM,CAAA;gBACF,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;QAAE,GAAG,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;QAAC,IAAI,EAAE,UAAU,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE;IAkC3F,QAAQ;CAGf"}
@@ -46,6 +46,8 @@ export class CLIWorker {
46
46
  }
47
47
  if (!isMainThread) {
48
48
  const mode = workerData.mode;
49
+ /** Ignore self-signed certificate errors in dev mode */
50
+ // process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = "0"
49
51
  configureCliMode({
50
52
  interactive: true,
51
53
  readonly: false,
@@ -88,20 +90,27 @@ if (!isMainThread) {
88
90
  });
89
91
  }
90
92
  if (mode === "admin") {
91
- new AdminBundler(project, {
93
+ const bundler = new AdminBundler(project, {
92
94
  mode: "development",
95
+ watch: true,
93
96
  });
97
+ bundler.start();
94
98
  pipeLog(adminLog);
95
99
  }
96
100
  else if (mode === "frontend") {
97
- new FrontendBundler(project, {
101
+ const bundler = new FrontendBundler(project, {
98
102
  mode: "development",
99
103
  watch: true,
100
104
  });
105
+ bundler.start();
101
106
  pipeLog(frontendLog);
102
107
  }
103
108
  else if (mode === "graphql") {
104
- const codegen = new GraphQLGenerator(project);
109
+ const codegen = new GraphQLGenerator(project, {
110
+ generate: true,
111
+ optimize: true,
112
+ watch: true,
113
+ });
105
114
  codegen.start();
106
115
  pipeLog(graphqlLog);
107
116
  }
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../src/node/cli/cli.ts"],"names":[],"mappings":""}
@@ -4,8 +4,9 @@ import { setDefaultResultOrder } from "dns";
4
4
  import { config as importDotEnv } from "dotenv";
5
5
  import { AdminBundler, adminLog } from "../compiler/bundler.admin.js";
6
6
  import { FrontendBundler, frontendLog } from "../compiler/bundler.frontend.js";
7
- import { ServerlessDevServer, serverlessLog } from "../compiler/serverless.dev.js";
8
- import { graphqlLog } from "../graphql/graphql-codegen.js";
7
+ import { DevServer, serverlessLog } from "../compiler/dev-server.js";
8
+ import { createVinxiCodegen } from "../compiler/vinxi-codegen.js";
9
+ import { GraphQLGenerator, graphqlLog } from "../graphql/graphql-codegen.js";
9
10
  import { BuildInfoWriter } from "../project/eddev-build-file.js";
10
11
  import { Project, projectLog } from "../project/project.js";
11
12
  import { describeBlockManifest } from "../types/block-type.js";
@@ -14,6 +15,14 @@ import { configureCliMode } from "./cli-mode.js";
14
15
  import { CLIWorker } from "./cli-worker.js";
15
16
  import { bootCLIUI } from "./display/boot-cli-app.js";
16
17
  import { VERSION } from "./version.js";
18
+ import { buildVinxi } from "../compiler/build-vinxi.js";
19
+ import { createConsole } from "../utils/stateful-log.js";
20
+ import { join, relative } from "path";
21
+ import { ensureSelfSignedCert } from "../utils/self-signed-cert.js";
22
+ import { parseURL } from "ufo";
23
+ import { corePlugins } from "../compiler/get-vite-config.js";
24
+ import { build } from "vite";
25
+ import rollupVisualizer from "rollup-plugin-visualizer";
17
26
  importDotEnv();
18
27
  const program = new Command()
19
28
  .version(VERSION)
@@ -24,13 +33,25 @@ const init = (verbose) => {
24
33
  };
25
34
  program
26
35
  .command("dev")
27
- .description("Build in dev mode")
28
- .option("-s, --serverless", 'Build in "serverless" mode', false)
29
- .option("-m, --mode <mode>", 'Defaults to all modes, but use "frontend", "admin" or "graphql" to run in just one mode', undefined)
36
+ .description("Run in dev mode")
37
+ .option("-m, --mode <mode>", "Comma separated list of modes, or a single mode.", "frontend,admin,graphql,serverless")
38
+ .option("--fast", "Shorthand for --mode graphql,serverless", false)
30
39
  .option("--verbose", "Show extra debugging info", false)
31
40
  .action(async (options) => {
32
- process.env.NODE_ENV = "development";
41
+ console.error = (...args) => { };
42
+ console.log = (...args) => { };
43
+ console.info = (...args) => { };
44
+ console.warn = (...args) => { };
45
+ // if (typeof args[0] === "string" && args[0].includes("NODE_TLS_REJECT_UNAUTHORIZED")) return
46
+ // serverlessLog.error(...args)
47
+ // }
48
+ process.env["NODE_ENV"] = "development";
49
+ /** Ignore self-signed certificate errors in dev mode */
50
+ // process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = "0"
33
51
  serverlessLog.info(chalk.yellowBright(`⚡️ ED. Stack v${VERSION}`));
52
+ if (options.fast) {
53
+ options.mode = "graphql,serverless";
54
+ }
34
55
  const tasks = {
35
56
  admin: !options.mode || options.mode.includes("admin"),
36
57
  frontend: !options.mode || options.mode.includes("frontend"),
@@ -63,9 +84,24 @@ program
63
84
  rootDir: process.cwd(),
64
85
  reportPluginCompatibility: true,
65
86
  });
87
+ // const result = await project.verifyOriginAccess()
88
+ // if (!result.success) {
89
+ // projectLog.fail(result.message)
90
+ // process.exit(1)
91
+ // return
92
+ // }
66
93
  const infoWriter = new BuildInfoWriter(project);
67
94
  infoWriter.watch();
68
95
  infoWriter.write();
96
+ if (tasks.admin || tasks.frontend) {
97
+ const spaStaging = createVinxiCodegen({
98
+ mode: "development",
99
+ project,
100
+ serverless: false,
101
+ endpoint: "",
102
+ });
103
+ spaStaging.runAndWatch();
104
+ }
69
105
  // Boot up admin in a worker
70
106
  if (tasks.admin) {
71
107
  new CLIWorker({
@@ -88,15 +124,31 @@ program
88
124
  serverlessLog.log(...args);
89
125
  };
90
126
  console.error = (...args) => {
127
+ // We ignore SSL errors in dev mode.
128
+ if (typeof args[0] === "string" && args[0].includes("NODE_TLS_REJECT_UNAUTHORIZED"))
129
+ return;
130
+ if (typeof args[0] === "string" && args[0].includes("useLayoutEffect does nothing"))
131
+ return;
91
132
  serverlessLog.error(...args);
92
133
  };
93
134
  console.warn = (...args) => {
135
+ if (typeof args[0] === "string") {
136
+ if (args[0].includes("Could not auto-determine entry point from rollupOptions"))
137
+ return;
138
+ }
94
139
  serverlessLog.warn(...args);
95
140
  };
96
141
  console.info = (...args) => {
97
142
  serverlessLog.info(...args);
98
143
  };
99
- new ServerlessDevServer(project, {
144
+ const serverlessStaging = createVinxiCodegen({
145
+ mode: "development",
146
+ project,
147
+ serverless: true,
148
+ endpoint: "",
149
+ });
150
+ await serverlessStaging.runAndWatch();
151
+ new DevServer(project, {
100
152
  mode: "development",
101
153
  });
102
154
  }
@@ -115,6 +167,9 @@ program
115
167
  .option("-s, --serverless", 'Build in "serverless" mode', false)
116
168
  .option("--verbose", "Show extra debugging info", false)
117
169
  .action(async (options) => {
170
+ process.env["NODE_ENV"] = "production";
171
+ /** Ignore self-signed certificate errors in dev mode */
172
+ // process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = "0"
118
173
  init(options.verbose);
119
174
  configureCliMode({
120
175
  interactive: false,
@@ -125,17 +180,146 @@ program
125
180
  watch: false,
126
181
  rootDir: process.cwd(),
127
182
  });
183
+ const console = createConsole("build");
128
184
  // Load the project info
129
185
  const project = await Project.create({
130
186
  rootDir: process.cwd(),
131
187
  });
132
- // Load the compiler
133
- new AdminBundler(project, {
134
- mode: "development",
188
+ const buildServerless = options.serverless || process.env.VERCEL;
189
+ if (buildServerless) {
190
+ // Verify that the we have access to the origin
191
+ const result = await project.verifyOriginAccess();
192
+ if (!result.success) {
193
+ console.error(result.message);
194
+ process.exit(1);
195
+ return;
196
+ }
197
+ await buildVinxi({
198
+ project,
199
+ console,
200
+ });
201
+ }
202
+ else {
203
+ const infoWriter = new BuildInfoWriter(project);
204
+ // Generate bootstrap files
205
+ const codegen = createVinxiCodegen({
206
+ mode: "production",
207
+ project: project,
208
+ serverless: false,
209
+ });
210
+ await codegen.run();
211
+ console.info("Building for SPA WordPress (Frontend and Admin)");
212
+ // Load the compiler
213
+ const admin = new AdminBundler(project, {
214
+ mode: "production",
215
+ });
216
+ const frontend = new FrontendBundler(project, {
217
+ mode: "production",
218
+ });
219
+ const graphql = new GraphQLGenerator(project, {
220
+ optimize: true,
221
+ });
222
+ await Promise.all([infoWriter.write(), admin.start(), frontend.start(), graphql.start()]);
223
+ console.log("Done building SPA WordPress");
224
+ }
225
+ });
226
+ program
227
+ .command("analyze")
228
+ .description("Generate a bundle size analysis")
229
+ .action(async (options) => {
230
+ process.env["NODE_ENV"] = "production";
231
+ /** Ignore self-signed certificate errors in dev mode */
232
+ // process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = "0"
233
+ init(options.verbose);
234
+ configureCliMode({
235
+ interactive: false,
236
+ readonly: false,
237
+ exitOnValidationError: true,
238
+ detailed: true,
239
+ verbose: false,
240
+ watch: false,
241
+ rootDir: process.cwd(),
242
+ });
243
+ const console = createConsole("build");
244
+ // Load the project info
245
+ const project = await Project.create({
246
+ rootDir: process.cwd(),
135
247
  });
136
- new FrontendBundler(project, {
248
+ // Generate bootstrap files
249
+ const codegen = createVinxiCodegen({
137
250
  mode: "production",
251
+ project: project,
252
+ serverless: false,
253
+ });
254
+ await codegen.run();
255
+ const outDir = relative(project.rootDir, "./dist/frontend-analysis/");
256
+ // @ts-ignore
257
+ const visualizer = rollupVisualizer.default;
258
+ await build({
259
+ plugins: [
260
+ ...corePlugins({
261
+ rootDir: project.rootDir,
262
+ console: console,
263
+ mode: "production",
264
+ publicUrl: project.publicUrl,
265
+ serverless: true,
266
+ target: "frontend",
267
+ client: true,
268
+ }),
269
+ visualizer({
270
+ emitFile: true,
271
+ filename: "stats.html",
272
+ template: "sunburst",
273
+ }),
274
+ ],
275
+ build: {
276
+ manifest: true,
277
+ sourcemap: true,
278
+ minify: true,
279
+ modulePreload: false,
280
+ outDir: outDir,
281
+ lib: undefined,
282
+ rollupOptions: {
283
+ input: "./.eddev/prod/entry.client.tsx",
284
+ },
285
+ },
286
+ });
287
+ console.log("Done building SPA WordPress");
288
+ });
289
+ program
290
+ .command("preview")
291
+ .description("Run a local production build, which was previously built with `eddev build --serverless`")
292
+ .option("--host", "Hostname to serve the application", "")
293
+ .option("--port", "Port to serve the application", "8080")
294
+ .action(async (options) => {
295
+ const project = await Project.create({
296
+ rootDir: process.cwd(),
297
+ });
298
+ const parsedSiteURL = parseURL(project.origin);
299
+ const defaultHostname = parsedSiteURL.host?.endsWith(".local") ? parsedSiteURL.host : "127.0.0.1";
300
+ process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = "0";
301
+ process.env["NODE_ENV"] = "production";
302
+ process.env["HOST"] = options.host;
303
+ process.env["PORT"] = options.port;
304
+ if (!options.host) {
305
+ process.env["HOST"] = defaultHostname;
306
+ const keys = await ensureSelfSignedCert(defaultHostname, process.cwd());
307
+ process.env["NITRO_SSL_CERT"] = keys.cert;
308
+ process.env["NITRO_SSL_KEY"] = keys.key;
309
+ }
310
+ init(options.verbose);
311
+ configureCliMode({
312
+ interactive: true,
313
+ readonly: false,
314
+ exitOnValidationError: true,
315
+ detailed: true,
316
+ verbose: options.verbose,
317
+ watch: false,
318
+ rootDir: process.cwd(),
138
319
  });
320
+ const entry = ".output/server/index.mjs";
321
+ console.info("Looking for production serverless build in: " + entry + "...");
322
+ await import(join(process.cwd(), ".output/server/index.mjs"));
139
323
  });
140
324
  program
141
325
  .command("info")
@@ -2,7 +2,7 @@ import type { graphqlLog } from "../../graphql/graphql-codegen.js";
2
2
  import type { Project, projectLog } from "../../project/project.js";
3
3
  import type { adminLog } from "../../compiler/bundler.admin.js";
4
4
  import type { frontendLog } from "../../compiler/bundler.frontend.js";
5
- import { serverlessLog } from "../../compiler/serverless.dev.js";
5
+ import { serverlessLog } from "../../compiler/dev-server.js";
6
6
  export type CLIDisplayProps = {
7
7
  getProject: () => Project;
8
8
  logs: {
@@ -14,3 +14,4 @@ export type CLIDisplayProps = {
14
14
  };
15
15
  };
16
16
  export declare function CLIApp(props: CLIDisplayProps): import("react/jsx-runtime").JSX.Element;
17
+ //# sourceMappingURL=CLIApp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CLIApp.d.ts","sourceRoot":"","sources":["../../../../src/node/cli/display/CLIApp.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAA;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAA;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAA;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAQ5D,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,EAAE,MAAM,OAAO,CAAA;IACzB,IAAI,EAAE;QACJ,OAAO,CAAC,EAAE,OAAO,UAAU,CAAA;QAC3B,OAAO,CAAC,EAAE,OAAO,UAAU,CAAA;QAC3B,cAAc,CAAC,EAAE,OAAO,WAAW,CAAA;QACnC,UAAU,CAAC,EAAE,OAAO,aAAa,CAAA;QACjC,WAAW,CAAC,EAAE,OAAO,QAAQ,CAAA;KAC9B,CAAA;CACF,CAAA;AAOD,wBAAgB,MAAM,CAAC,KAAK,EAAE,eAAe,2CAmG5C"}
@@ -5,7 +5,7 @@ import { VERSION } from "../version.js";
5
5
  import { LogEntries, LogItem } from "./components/LogEntries.js";
6
6
  import { useStatefulLogs } from "./hooks/useStatefulLog.js";
7
7
  import { statusColor, statusIcon } from "./util/colors.js";
8
- import { serverlessLog } from "../../compiler/serverless.dev.js";
8
+ import { serverlessLog } from "../../compiler/dev-server.js";
9
9
  import { useEffect, useState } from "react";
10
10
  import TextInput from "./components/TextInput.js";
11
11
  import { findTools } from "./tools/cli-tools.js";
@@ -37,7 +37,7 @@ export function CLIApp(props) {
37
37
  process.stdout.write("\u001b[3J\u001b[1J");
38
38
  console.clear();
39
39
  props.logs.serverless?.resetLog();
40
- redraw();
40
+ setImmediate(redraw);
41
41
  }
42
42
  else if (input === "q") {
43
43
  process.exit(0);
@@ -83,17 +83,14 @@ function MainMenu(props) {
83
83
  else if (key.return) {
84
84
  const match = matches[focusIndex];
85
85
  if (match) {
86
- props.onSelect(match.tool.id);
86
+ // props.onSelect(match.tool.id)
87
87
  }
88
88
  }
89
89
  });
90
90
  return (_jsx(Panel, { label: "Main Menu", icon: "\u25C8", color: "yellow", info: "[ESC] to close", children: _jsxs(Box, { width: "100%", flexDirection: "column", paddingX: 1, paddingY: 0, children: [_jsxs(Box, { gap: 1, flexDirection: "row", children: [_jsx(Text, { color: "whiteBright", children: "What would you like to do?" }), _jsx(Text, { color: "gray", children: "[ESC] to close" })] }), _jsxs(Box, { paddingBottom: 1, children: [_jsx(Text, { color: "white", children: "> " }), _jsx(TextInput, { value: search, onChange: (value) => {
91
91
  setSearch(value);
92
92
  setFocusIndex(0);
93
- }, showCursor: true, focus: true, placeholder: "Search..." })] }), matches.length === 0 ? _jsx(Text, { color: "redBright", children: "😓 No results" }) : null, matches.map((item, index) => {
94
- const focused = focusIndex === index;
95
- return (_jsxs(Box, { children: [_jsx(Box, { width: 3, children: _jsx(Text, { children: focused ? "👉" : "" }) }), _jsxs(Box, { children: [_jsx(Text, { color: focused ? "yellow" : "white", children: item.tool.name }), _jsx(Text, { children: String(item.score) })] })] }, item.tool.id));
96
- })] }) }));
93
+ }, showCursor: true, focus: true, placeholder: "Search..." })] }), matches.length === 0 ? _jsx(Text, { color: "redBright", children: "😓 No results" }) : null] }) }));
97
94
  }
98
95
  function MiniLog({ log, border }) {
99
96
  const color = statusColor(log.status);
@@ -1,2 +1,3 @@
1
1
  import { CLIDisplayProps } from "./CLIApp.js";
2
2
  export declare function bootCLIUI(props: CLIDisplayProps): void;
3
+ //# sourceMappingURL=boot-cli-app.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boot-cli-app.d.ts","sourceRoot":"","sources":["../../../../src/node/cli/display/boot-cli-app.tsx"],"names":[],"mappings":"AACA,OAAO,EAAU,eAAe,EAAE,MAAM,aAAa,CAAA;AAErD,wBAAgB,SAAS,CAAC,KAAK,EAAE,eAAe,QAM/C"}
@@ -5,6 +5,6 @@ export function bootCLIUI(props) {
5
5
  console.clear();
6
6
  render(_jsx(CLIApp, { ...props }), {
7
7
  exitOnCtrlC: true,
8
- patchConsole: true,
8
+ patchConsole: false,
9
9
  });
10
10
  }
@@ -2,3 +2,4 @@ import { PropsWithChildren } from "react";
2
2
  type Props = PropsWithChildren<{}>;
3
3
  export declare function Fullscreen(props: Props): import("react/jsx-runtime").JSX.Element;
4
4
  export {};
5
+ //# sourceMappingURL=Fullscreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Fullscreen.d.ts","sourceRoot":"","sources":["../../../../../src/node/cli/display/components/Fullscreen.tsx"],"names":[],"mappings":"AACA,OAAO,EAAM,iBAAiB,EAAuB,MAAM,OAAO,CAAA;AAElE,KAAK,KAAK,GAAG,iBAAiB,CAAC,EAAE,CAAC,CAAA;AAElC,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,2CA2BtC"}
@@ -1,4 +1,4 @@
1
- import type { LogEntry, LogGroup, LogGroupOrEntry } from "../../../utils/statefulLog.js";
1
+ import type { LogEntry, LogGroup, LogGroupOrEntry } from "../../../utils/stateful-log.js";
2
2
  export declare function LogEntries(props: {
3
3
  entries: LogGroupOrEntry[];
4
4
  }): import("react/jsx-runtime").JSX.Element;
@@ -11,3 +11,4 @@ export declare function LogGroup(props: {
11
11
  export declare function LogEntry(props: {
12
12
  entry: LogEntry;
13
13
  }): import("react/jsx-runtime").JSX.Element;
14
+ //# sourceMappingURL=LogEntries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LogEntries.d.ts","sourceRoot":"","sources":["../../../../../src/node/cli/display/components/LogEntries.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAMzF,wBAAgB,UAAU,CAAC,KAAK,EAAE;IAAE,OAAO,EAAE,eAAe,EAAE,CAAA;CAAE,2CAY/D;AAED,wBAAgB,OAAO,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,eAAe,CAAA;CAAE,2CAM1D;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE;IAAE,KAAK,EAAE,QAAQ,CAAA;CAAE,2CAoBlD;AAyCD,wBAAgB,QAAQ,CAAC,KAAK,EAAE;IAAE,KAAK,EAAE,QAAQ,CAAA;CAAE,2CAyClD"}
@@ -4,3 +4,4 @@ type Props = {
4
4
  };
5
5
  export declare function MenuItem(props: Props): import("react/jsx-runtime").JSX.Element;
6
6
  export {};
7
+ //# sourceMappingURL=MenuItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../../../src/node/cli/display/components/MenuItem.tsx"],"names":[],"mappings":"AAEA,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,KAAK,2CAmBpC"}
@@ -42,3 +42,4 @@ type UncontrolledProps = {
42
42
  readonly initialValue?: string;
43
43
  } & Omit<Props, "value" | "onChange">;
44
44
  export declare function UncontrolledTextInput({ initialValue, ...props }: UncontrolledProps): import("react/jsx-runtime").JSX.Element;
45
+ //# sourceMappingURL=TextInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../../src/node/cli/display/components/TextInput.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,KAAK,GAAG;IAClB;;OAEG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAE7B;;;OAGG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;IAExB;;OAEG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IAEtB;;OAEG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;IAE7B;;OAEG;IACH,QAAQ,CAAC,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAEtC;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IAEtB;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAE1C;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAC5C,CAAA;AAED,iBAAS,SAAS,CAAC,EACjB,KAAK,EAAE,aAAa,EACpB,WAAgB,EAChB,KAAY,EACZ,IAAI,EACJ,mBAA2B,EAC3B,UAAiB,EACjB,QAAQ,EACR,QAAQ,GACT,EAAE,KAAK,2CAuHP;AAED,eAAe,SAAS,CAAA;AAExB,KAAK,iBAAiB,GAAG;IACvB;;OAEG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAC/B,GAAG,IAAI,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU,CAAC,CAAA;AAErC,wBAAgB,qBAAqB,CAAC,EAAE,YAAiB,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CAIvF"}
@@ -1,2 +1,3 @@
1
1
  import { ManifestGenerator } from "../../../project/manifest/manifest.js";
2
2
  export declare function useManifest<T>(manifest: ManifestGenerator<any, T>): T | null;
3
+ //# sourceMappingURL=useManifest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useManifest.d.ts","sourceRoot":"","sources":["../../../../../src/node/cli/display/hooks/useManifest.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAA;AAEzE,wBAAgB,WAAW,CAAC,CAAC,EAAE,QAAQ,EAAE,iBAAiB,CAAC,GAAG,EAAE,CAAC,CAAC,YAQjE"}
@@ -1,4 +1,4 @@
1
- import { StatefulLog } from "../../../utils/statefulLog.js";
1
+ import { StatefulLog } from "../../../utils/stateful-log.js";
2
2
  export type LogInfo<T extends StatefulLog<any> | undefined> = {
3
3
  label: string;
4
4
  value: Exclude<T, undefined>["state"];
@@ -9,3 +9,4 @@ export type LogInfo<T extends StatefulLog<any> | undefined> = {
9
9
  export declare function useStatefulLogs<T extends {
10
10
  [K in keyof T]: StatefulLog<any> | undefined;
11
11
  }>(logs: T): { [K in keyof T]: LogInfo<T[K]>; };
12
+ //# sourceMappingURL=useStatefulLog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStatefulLog.d.ts","sourceRoot":"","sources":["../../../../../src/node/cli/display/hooks/useStatefulLog.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAa5D,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,GAAG,CAAC,GAAG,SAAS,IAAI;IAC5D,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,OAAO,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,OAAO,CAAC,CAAA;IACrC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAA;IACvC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,OAAO,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,SAAS,CAAC,CAAA;CAC1C,CAAA;AAED,wBAAgB,eAAe,CAAC,CAAC,SAAS;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,WAAW,CAAC,GAAG,CAAC,GAAG,SAAS;CAAE,EAAE,IAAI,EAAE,CAAC,GAiD/E,GACf,CAAC,IAAI,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAC9B,CACF"}
@@ -1,2 +1,3 @@
1
1
  import { ToolProps } from "./cli-tools.js";
2
2
  export declare function BlockList(props: ToolProps): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=BlockList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockList.d.ts","sourceRoot":"","sources":["../../../../../src/node/cli/display/tools/BlockList.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAI1C,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,2CAKzC"}
@@ -1,2 +1,3 @@
1
- import { ToolProps } from "./cli-tools";
1
+ import { ToolProps } from "./cli-tools.js";
2
2
  export declare function CreateBlock(props: ToolProps): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=CreateBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateBlock.d.ts","sourceRoot":"","sources":["../../../../../src/node/cli/display/tools/CreateBlock.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAI1C,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,2CAQ3C"}
@@ -1,2 +1,3 @@
1
1
  import { ToolInfo } from "./cli-tools.js";
2
2
  export declare const TOOLS: Record<string, Omit<ToolInfo, "id">>;
3
+ //# sourceMappingURL=cli-tool-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-tool-list.d.ts","sourceRoot":"","sources":["../../../../../src/node/cli/display/tools/cli-tool-list.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAGzC,eAAO,MAAM,KAAK,EAsBb,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAA"}
@@ -12,15 +12,6 @@ export type ToolInfo = {
12
12
  keywords?: string[];
13
13
  component: FunctionComponent<ToolProps>;
14
14
  };
15
- export declare function findTools(term: string): {
16
- tool: {
17
- id: string;
18
- type: ToolType;
19
- keywords?: string[] | undefined;
20
- name: string;
21
- component: FunctionComponent<ToolProps>;
22
- };
23
- score: number;
24
- matches: import("@nozbe/microfuzz").FuzzyMatches;
25
- }[];
15
+ export declare function findTools(term: string): ToolInfo[];
26
16
  export {};
17
+ //# sourceMappingURL=cli-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-tools.d.ts","sourceRoot":"","sources":["../../../../../src/node/cli/display/tools/cli-tools.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAGrD,KAAK,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,WAAW,GAAG,QAAQ,GAAG,IAAI,CAAA;AAC5E,MAAM,MAAM,SAAS,GAAG;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,IAAI,CAAA;CAAE,CAAA;AAE/D,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,QAAQ,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAA;CACxC,CAAA;AAWD,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GACvB,QAAQ,EAAE,CAKxB"}
@@ -1,15 +1,15 @@
1
- import microfuzz from "@nozbe/microfuzz";
2
1
  import { TOOLS } from "./cli-tool-list.js";
3
2
  const toolList = Object.entries(TOOLS).map(([key, value]) => ({ ...value, id: key }));
4
3
  // https://github.com/Nozbe/microfuzz/issues/1
5
4
  // @ts-ignore
6
- const fuzzy = (typeof microfuzz === "function" ? microfuzz : microfuzz.default);
7
- const fuzzyIndex = fuzzy(toolList, {
8
- getText: (tool) => [tool.name, ...(tool.keywords ? tool.keywords : [])],
9
- });
5
+ // const fuzzy = (typeof microfuzz === "function" ? microfuzz : microfuzz.default) as typeof microfuzz
6
+ // const fuzzyIndex = fuzzy(toolList, {
7
+ // getText: (tool) => [tool.name, ...(tool.keywords ? tool.keywords : [])],
8
+ // })
10
9
  export function findTools(term) {
11
- if (!term) {
12
- return toolList.map((tool) => ({ tool, score: 1, matches: [] }));
13
- }
14
- return fuzzyIndex(term).map((result) => ({ tool: result.item, score: result.score, matches: result.matches }));
10
+ return [];
11
+ // if (!term) {
12
+ // return toolList.map((tool) => ({ tool, score: 1, matches: [] }))
13
+ // }
14
+ // return fuzzyIndex(term).map((result) => ({ tool: result.item, score: result.score, matches: result.matches }))
15
15
  }
@@ -1,4 +1,5 @@
1
- import { LogStatus } from "../../../utils/statefulLog.js";
2
- export declare function statusColor(status: LogStatus): "greenBright" | "redBright" | "blueBright" | "whiteBright" | "#FF890C" | "#0C86FF" | "grayBright";
1
+ import { LogStatus } from "../../../utils/stateful-log.js";
2
+ export declare function statusColor(status: LogStatus): "greenBright" | "redBright" | "#FF890C" | "blueBright" | "#0C86FF" | "grayBright" | "whiteBright";
3
3
  export declare function statusIcon(status: LogStatus): "✖" | "✔" | "⚠" | "ℹ" | "⚙" | "v" | "?" | "➜";
4
4
  export declare function statusLabel(status: LogStatus): "Error" | "Warning" | "Info" | "Working" | "Fail" | "Success" | "Verbose" | "Help" | "Log";
5
+ //# sourceMappingURL=colors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../../src/node/cli/display/util/colors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAEvE,wBAAgB,WAAW,CAAC,MAAM,EAAE,SAAS,qGAoB5C;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,SAAS,iDAoB3C;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,SAAS,8FAoB5C"}
@@ -1 +1,2 @@
1
- export declare const VERSION = "2.0.0-beta.2";
1
+ export declare const VERSION = "2.0.0-beta.200";
2
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/node/cli/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,mBAAmB,CAAA"}