frontend-hamroun 1.2.84 → 1.2.88

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 (310) hide show
  1. package/dist/batch.d.ts +4 -0
  2. package/dist/batch.d.ts.map +1 -0
  3. package/dist/batch.js +22 -0
  4. package/dist/client-router.d.ts +61 -0
  5. package/dist/client-router.d.ts.map +1 -0
  6. package/dist/client-router.js +209 -0
  7. package/dist/component.d.ts +15 -0
  8. package/dist/component.d.ts.map +1 -0
  9. package/dist/component.js +84 -0
  10. package/dist/components/Counter.d.ts +1 -0
  11. package/dist/components/Counter.d.ts.map +1 -0
  12. package/dist/components/Counter.js +2 -0
  13. package/dist/context.d.ts +5 -0
  14. package/dist/context.d.ts.map +1 -0
  15. package/dist/context.js +23 -0
  16. package/dist/event-bus.d.ts +24 -0
  17. package/dist/event-bus.d.ts.map +1 -0
  18. package/dist/event-bus.js +74 -0
  19. package/dist/forms.d.ts +41 -0
  20. package/dist/forms.d.ts.map +1 -0
  21. package/dist/forms.js +147 -0
  22. package/dist/hooks.d.ts +12 -0
  23. package/dist/hooks.d.ts.map +1 -0
  24. package/dist/hooks.js +142 -0
  25. package/dist/index.cjs +1118 -1
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.client.d.ts +13 -0
  28. package/dist/index.client.d.ts.map +1 -0
  29. package/dist/index.client.js +12 -25
  30. package/dist/index.d.ts +65 -0
  31. package/dist/index.d.ts.map +1 -0
  32. package/dist/index.js +1040 -264
  33. package/dist/index.js.map +1 -1
  34. package/dist/jsx-dev-runtime.cjs +102 -0
  35. package/dist/jsx-dev-runtime.cjs.map +1 -0
  36. package/dist/jsx-dev-runtime.d.ts +3 -0
  37. package/dist/jsx-dev-runtime.d.ts.map +1 -0
  38. package/dist/jsx-dev-runtime.js +96 -0
  39. package/dist/jsx-dev-runtime.js.map +1 -0
  40. package/dist/jsx-runtime/jsx-runtime.d.ts +5 -0
  41. package/dist/jsx-runtime/jsx-runtime.d.ts.map +1 -0
  42. package/dist/jsx-runtime/jsx-runtime.js +40 -0
  43. package/dist/jsx-runtime.cjs +112 -1
  44. package/dist/jsx-runtime.cjs.map +1 -1
  45. package/dist/jsx-runtime.d.ts +18 -0
  46. package/dist/jsx-runtime.d.ts.map +1 -0
  47. package/dist/jsx-runtime.js +90 -79
  48. package/dist/jsx-runtime.js.map +1 -1
  49. package/dist/lifecycle-events.d.ts +109 -0
  50. package/dist/lifecycle-events.d.ts.map +1 -0
  51. package/dist/lifecycle-events.js +176 -0
  52. package/dist/renderComponent.d.ts +14 -0
  53. package/dist/renderComponent.d.ts.map +1 -0
  54. package/dist/renderComponent.js +29 -0
  55. package/dist/renderer.d.ts +4 -0
  56. package/dist/renderer.d.ts.map +1 -0
  57. package/dist/renderer.js +49 -0
  58. package/dist/router.d.ts +56 -0
  59. package/dist/router.d.ts.map +1 -0
  60. package/dist/router.js +165 -0
  61. package/dist/server-renderer.d.ts +2 -0
  62. package/dist/server-renderer.d.ts.map +1 -0
  63. package/dist/server-renderer.js +111 -5
  64. package/dist/server-types.d.ts +43 -0
  65. package/dist/server-types.d.ts.map +1 -0
  66. package/dist/server-types.js +5 -0
  67. package/dist/store.d.ts +42 -0
  68. package/dist/store.d.ts.map +1 -0
  69. package/dist/store.js +98 -0
  70. package/dist/types.d.ts +272 -0
  71. package/dist/types.d.ts.map +1 -0
  72. package/dist/types.js +2 -0
  73. package/dist/utils.d.ts +47 -0
  74. package/dist/utils.d.ts.map +1 -0
  75. package/dist/utils.js +143 -0
  76. package/dist/vdom.d.ts +9 -0
  77. package/dist/vdom.d.ts.map +1 -0
  78. package/dist/vdom.js +21 -0
  79. package/dist/wasm.d.ts +37 -0
  80. package/dist/wasm.d.ts.map +1 -0
  81. package/dist/wasm.js +158 -0
  82. package/package.json +54 -83
  83. package/templates/basic-app/build.d.ts +2 -0
  84. package/templates/basic-app/build.d.ts.map +1 -0
  85. package/templates/basic-app/dev.d.ts +2 -0
  86. package/templates/basic-app/dev.d.ts.map +1 -0
  87. package/templates/basic-app/esbuild.config.d.ts +2 -0
  88. package/templates/basic-app/esbuild.config.d.ts.map +1 -0
  89. package/templates/basic-app/postcss.config.d.ts +8 -0
  90. package/templates/basic-app/postcss.config.d.ts.map +1 -0
  91. package/templates/basic-app/server.d.ts +2 -0
  92. package/templates/basic-app/server.d.ts.map +1 -0
  93. package/templates/basic-app/src/App.d.ts +2 -0
  94. package/templates/basic-app/src/App.d.ts.map +1 -0
  95. package/templates/basic-app/src/App.js +148 -0
  96. package/templates/basic-app/src/client.d.ts +2 -0
  97. package/templates/basic-app/src/client.d.ts.map +1 -0
  98. package/templates/basic-app/src/client.js +6 -0
  99. package/templates/basic-app/src/components/Counter.d.ts +4 -0
  100. package/templates/basic-app/src/components/Counter.d.ts.map +1 -0
  101. package/templates/basic-app/src/components/Counter.js +9 -0
  102. package/templates/basic-app/src/jsx-shim.d.ts +8 -0
  103. package/templates/basic-app/src/jsx-shim.d.ts.map +1 -0
  104. package/templates/basic-app/src/main.d.ts +2 -0
  105. package/templates/basic-app/src/main.d.ts.map +1 -0
  106. package/templates/basic-app/src/main.js +57 -0
  107. package/templates/basic-app/src/server.d.ts +2 -0
  108. package/templates/basic-app/src/server.d.ts.map +1 -0
  109. package/templates/basic-app/tailwind.config.d.ts +9 -0
  110. package/templates/basic-app/tailwind.config.d.ts.map +1 -0
  111. package/templates/basic-app/vite.config.d.ts +3 -0
  112. package/templates/basic-app/vite.config.d.ts.map +1 -0
  113. package/templates/basic-app/vite.config.js +7 -0
  114. package/templates/complete-app/api/hello.d.ts +1 -0
  115. package/templates/complete-app/api/hello.d.ts.map +1 -0
  116. package/templates/complete-app/client.d.ts +2 -0
  117. package/templates/complete-app/client.d.ts.map +1 -0
  118. package/templates/complete-app/lib/frontend-hamroun.d.ts +18 -0
  119. package/templates/complete-app/lib/frontend-hamroun.d.ts.map +1 -0
  120. package/templates/complete-app/pages/about.d.ts +7 -0
  121. package/templates/complete-app/pages/about.d.ts.map +1 -0
  122. package/templates/complete-app/pages/index.d.ts +7 -0
  123. package/templates/complete-app/pages/index.d.ts.map +1 -0
  124. package/templates/complete-app/pages/wasm-demo.d.ts +7 -0
  125. package/templates/complete-app/pages/wasm-demo.d.ts.map +1 -0
  126. package/templates/complete-app/public/client.d.ts +17 -0
  127. package/templates/complete-app/public/client.d.ts.map +1 -0
  128. package/templates/complete-app/server.d.ts +2 -0
  129. package/templates/complete-app/server.d.ts.map +1 -0
  130. package/templates/complete-app/server.js +236 -218
  131. package/templates/complete-app/src/App.d.ts +2 -0
  132. package/templates/complete-app/src/App.d.ts.map +1 -0
  133. package/templates/complete-app/src/App.js +27 -0
  134. package/templates/complete-app/src/client.d.ts +2 -0
  135. package/templates/complete-app/src/client.d.ts.map +1 -0
  136. package/templates/complete-app/src/client.js +52 -0
  137. package/templates/complete-app/src/pages/index.d.ts +2 -0
  138. package/templates/complete-app/src/pages/index.d.ts.map +1 -0
  139. package/templates/complete-app/src/pages/index.js +19 -0
  140. package/templates/complete-app/src/server.d.ts +2 -0
  141. package/templates/complete-app/src/server.d.ts.map +1 -0
  142. package/templates/complete-app/src/server.js +192 -0
  143. package/templates/complete-app/vite.config.d.ts +3 -0
  144. package/templates/complete-app/vite.config.d.ts.map +1 -0
  145. package/templates/complete-app/vite.config.js +29 -57
  146. package/templates/fullstack-app/api/hello.d.ts +4 -0
  147. package/templates/fullstack-app/api/hello.d.ts.map +1 -0
  148. package/templates/fullstack-app/api/hello.js +14 -11
  149. package/templates/fullstack-app/api/users/[id].d.ts +5 -0
  150. package/templates/fullstack-app/api/users/[id].d.ts.map +1 -0
  151. package/templates/fullstack-app/api/users/[id].js +52 -0
  152. package/templates/fullstack-app/api/users/index.d.ts +4 -0
  153. package/templates/fullstack-app/api/users/index.d.ts.map +1 -0
  154. package/templates/fullstack-app/api/users/index.js +25 -0
  155. package/templates/fullstack-app/build/main.d.ts +211 -0
  156. package/templates/fullstack-app/build/main.d.ts.map +1 -0
  157. package/templates/fullstack-app/build.d.ts +2 -0
  158. package/templates/fullstack-app/build.d.ts.map +1 -0
  159. package/templates/fullstack-app/build.js +190 -0
  160. package/templates/fullstack-app/postcss.config.d.ts +5 -0
  161. package/templates/fullstack-app/postcss.config.d.ts.map +1 -0
  162. package/templates/fullstack-app/process-tailwind.d.ts +2 -0
  163. package/templates/fullstack-app/process-tailwind.d.ts.map +1 -0
  164. package/templates/fullstack-app/public/route-handler.d.ts +1 -0
  165. package/templates/fullstack-app/public/route-handler.d.ts.map +1 -0
  166. package/templates/fullstack-app/server.d.ts +2 -0
  167. package/templates/fullstack-app/server.d.ts.map +1 -0
  168. package/templates/fullstack-app/server.js +428 -266
  169. package/templates/fullstack-app/src/client.d.ts +2 -0
  170. package/templates/fullstack-app/src/client.d.ts.map +1 -0
  171. package/templates/fullstack-app/src/components/ClientHome.d.ts +1 -0
  172. package/templates/fullstack-app/src/components/ClientHome.d.ts.map +1 -0
  173. package/templates/fullstack-app/src/components/ClientHome.js +1 -0
  174. package/templates/fullstack-app/src/components/ErrorBoundary.d.ts +7 -0
  175. package/templates/fullstack-app/src/components/ErrorBoundary.d.ts.map +1 -0
  176. package/templates/fullstack-app/src/components/ErrorBoundary.js +12 -0
  177. package/templates/fullstack-app/src/components/Layout.d.ts +7 -0
  178. package/templates/fullstack-app/src/components/Layout.d.ts.map +1 -0
  179. package/templates/fullstack-app/src/components/Layout.js +4 -0
  180. package/templates/fullstack-app/src/components/StateDemo.d.ts +2 -0
  181. package/templates/fullstack-app/src/components/StateDemo.d.ts.map +1 -0
  182. package/templates/fullstack-app/src/components/StateDemo.js +86 -0
  183. package/templates/fullstack-app/src/components/UserList.d.ts +11 -0
  184. package/templates/fullstack-app/src/components/UserList.d.ts.map +1 -0
  185. package/templates/fullstack-app/src/components/UserList.js +7 -0
  186. package/templates/fullstack-app/src/config.d.ts +29 -0
  187. package/templates/fullstack-app/src/config.d.ts.map +1 -0
  188. package/templates/fullstack-app/src/config.js +36 -0
  189. package/templates/fullstack-app/src/data/api.d.ts +35 -0
  190. package/templates/fullstack-app/src/data/api.d.ts.map +1 -0
  191. package/templates/fullstack-app/src/data/api.js +173 -0
  192. package/templates/fullstack-app/src/main.d.ts +7 -0
  193. package/templates/fullstack-app/src/main.d.ts.map +1 -0
  194. package/templates/fullstack-app/src/main.js +130 -0
  195. package/templates/fullstack-app/src/middleware.d.ts +10 -0
  196. package/templates/fullstack-app/src/middleware.d.ts.map +1 -0
  197. package/templates/fullstack-app/src/middleware.js +14 -0
  198. package/templates/fullstack-app/src/pages/404.d.ts +4 -0
  199. package/templates/fullstack-app/src/pages/404.d.ts.map +1 -0
  200. package/templates/fullstack-app/src/pages/404.js +4 -0
  201. package/templates/fullstack-app/src/pages/[id].d.ts +1 -0
  202. package/templates/fullstack-app/src/pages/[id].d.ts.map +1 -0
  203. package/templates/fullstack-app/src/pages/[id].js +1 -0
  204. package/templates/fullstack-app/src/pages/_app.d.ts +6 -0
  205. package/templates/fullstack-app/src/pages/_app.d.ts.map +1 -0
  206. package/templates/fullstack-app/src/pages/_app.js +6 -0
  207. package/templates/fullstack-app/src/pages/_document.d.ts +7 -0
  208. package/templates/fullstack-app/src/pages/_document.d.ts.map +1 -0
  209. package/templates/fullstack-app/src/pages/_document.js +4 -0
  210. package/templates/fullstack-app/src/pages/_error.d.ts +4 -0
  211. package/templates/fullstack-app/src/pages/_error.d.ts.map +1 -0
  212. package/templates/fullstack-app/src/pages/_error.js +8 -0
  213. package/templates/fullstack-app/src/pages/about/index.d.ts +5 -0
  214. package/templates/fullstack-app/src/pages/about/index.d.ts.map +1 -0
  215. package/templates/fullstack-app/src/pages/about/index.js +6 -0
  216. package/templates/fullstack-app/src/pages/about.d.ts +10 -0
  217. package/templates/fullstack-app/src/pages/about.d.ts.map +1 -0
  218. package/templates/fullstack-app/src/pages/about.js +21 -0
  219. package/templates/fullstack-app/src/pages/api/users/[id].d.ts +6 -0
  220. package/templates/fullstack-app/src/pages/api/users/[id].d.ts.map +1 -0
  221. package/templates/fullstack-app/src/pages/api/users/[id].js +51 -0
  222. package/templates/fullstack-app/src/pages/api/users/index.d.ts +4 -0
  223. package/templates/fullstack-app/src/pages/api/users/index.d.ts.map +1 -0
  224. package/templates/fullstack-app/src/pages/api/users/index.js +33 -0
  225. package/templates/fullstack-app/src/pages/index.d.ts +21 -0
  226. package/templates/fullstack-app/src/pages/index.d.ts.map +1 -0
  227. package/templates/fullstack-app/src/pages/index.js +66 -0
  228. package/templates/fullstack-app/src/pages/users/[id].d.ts +38 -0
  229. package/templates/fullstack-app/src/pages/users/[id].d.ts.map +1 -0
  230. package/templates/fullstack-app/src/pages/users/[id].js +79 -0
  231. package/templates/fullstack-app/src/pages/users.d.ts +14 -0
  232. package/templates/fullstack-app/src/pages/users.d.ts.map +1 -0
  233. package/templates/fullstack-app/src/pages/users.js +14 -0
  234. package/templates/fullstack-app/src/pages/wasm-demo.d.ts +1 -0
  235. package/templates/fullstack-app/src/pages/wasm-demo.d.ts.map +1 -0
  236. package/templates/fullstack-app/src/pages/wasm-demo.js +2 -0
  237. package/templates/fullstack-app/src/router.d.ts +22 -0
  238. package/templates/fullstack-app/src/router.d.ts.map +1 -0
  239. package/templates/fullstack-app/src/router.js +210 -0
  240. package/templates/fullstack-app/tailwind.config.d.ts +3 -0
  241. package/templates/fullstack-app/tailwind.config.d.ts.map +1 -0
  242. package/templates/fullstack-app/vite.config.d.ts +3 -0
  243. package/templates/fullstack-app/vite.config.d.ts.map +1 -0
  244. package/templates/ssr-template/dist/client/assets/main-D-VH3xOb.d.ts +2 -0
  245. package/templates/ssr-template/dist/client/assets/main-D-VH3xOb.d.ts.map +1 -0
  246. package/templates/ssr-template/dist/client.d.ts +85 -0
  247. package/templates/ssr-template/dist/client.d.ts.map +1 -0
  248. package/templates/ssr-template/dist/server.d.ts +2 -0
  249. package/templates/ssr-template/dist/server.d.ts.map +1 -0
  250. package/templates/ssr-template/esbuild.config.d.ts +2 -0
  251. package/templates/ssr-template/esbuild.config.d.ts.map +1 -0
  252. package/templates/ssr-template/jsx-shim.d.ts +2 -0
  253. package/templates/ssr-template/jsx-shim.d.ts.map +1 -0
  254. package/templates/ssr-template/src/App.d.ts +2 -0
  255. package/templates/ssr-template/src/App.d.ts.map +1 -0
  256. package/templates/ssr-template/src/App.js +625 -0
  257. package/templates/ssr-template/src/client.d.ts +2 -0
  258. package/templates/ssr-template/src/client.d.ts.map +1 -0
  259. package/templates/ssr-template/src/client.js +3 -0
  260. package/templates/ssr-template/src/server.d.ts +2 -0
  261. package/templates/ssr-template/src/server.d.ts.map +1 -0
  262. package/templates/ssr-template/src/server.js +29 -0
  263. package/templates/ssr-template/vite.config.d.ts +3 -0
  264. package/templates/ssr-template/vite.config.d.ts.map +1 -0
  265. package/templates/ssr-template/vite.config.js +30 -0
  266. package/templates/wasm/build-wasm.d.ts +2 -0
  267. package/templates/wasm/build-wasm.d.ts.map +1 -0
  268. package/templates/wasm/dist/assets/index-BNqTDBdE.d.ts +30 -0
  269. package/templates/wasm/dist/assets/index-BNqTDBdE.d.ts.map +1 -0
  270. package/templates/wasm/dist/wasm_exec.d.ts +1 -0
  271. package/templates/wasm/dist/wasm_exec.d.ts.map +1 -0
  272. package/templates/wasm/esbuild.config.d.ts +2 -0
  273. package/templates/wasm/esbuild.config.d.ts.map +1 -0
  274. package/templates/wasm/go/wasm_exec.d.ts +1 -0
  275. package/templates/wasm/go/wasm_exec.d.ts.map +1 -0
  276. package/templates/wasm/jsx-shim.d.ts +5 -0
  277. package/templates/wasm/jsx-shim.d.ts.map +1 -0
  278. package/templates/wasm/public/wasm_exec.d.ts +1 -0
  279. package/templates/wasm/public/wasm_exec.d.ts.map +1 -0
  280. package/templates/wasm/src/App.d.ts +2 -0
  281. package/templates/wasm/src/App.d.ts.map +1 -0
  282. package/templates/wasm/src/App.js +381 -0
  283. package/templates/wasm/src/client.d.ts +2 -0
  284. package/templates/wasm/src/client.d.ts.map +1 -0
  285. package/templates/wasm/src/client.js +210 -0
  286. package/templates/wasm/src/index.d.ts +2 -0
  287. package/templates/wasm/src/index.d.ts.map +1 -0
  288. package/templates/wasm/src/index.js +20 -0
  289. package/templates/wasm/src/server.d.ts +2 -0
  290. package/templates/wasm/src/server.d.ts.map +1 -0
  291. package/templates/wasm/src/server.js +131 -0
  292. package/templates/wasm/vite.config.d.ts +3 -0
  293. package/templates/wasm/vite.config.d.ts.map +1 -0
  294. package/templates/wasm/vite.config.js +36 -0
  295. package/templates/wasm/wasm-loader.d.ts +6 -0
  296. package/templates/wasm/wasm-loader.d.ts.map +1 -0
  297. package/dist/index.client.cjs +0 -2
  298. package/dist/index.client.cjs.map +0 -1
  299. package/dist/index.client.js.map +0 -1
  300. package/dist/renderer-DaVfBeVi.cjs +0 -2
  301. package/dist/renderer-DaVfBeVi.cjs.map +0 -1
  302. package/dist/renderer-nfT7XSpo.js +0 -61
  303. package/dist/renderer-nfT7XSpo.js.map +0 -1
  304. package/dist/server-renderer-B5b0Q0ck.cjs +0 -2
  305. package/dist/server-renderer-B5b0Q0ck.cjs.map +0 -1
  306. package/dist/server-renderer-C4MB-jAp.js +0 -248
  307. package/dist/server-renderer-C4MB-jAp.js.map +0 -1
  308. package/dist/server-renderer.cjs +0 -2
  309. package/dist/server-renderer.cjs.map +0 -1
  310. package/dist/server-renderer.js.map +0 -1
@@ -0,0 +1,4 @@
1
+ export declare let isBatching: boolean;
2
+ export declare function batchUpdates(fn: Function): void;
3
+ export declare function getIsBatching(): boolean;
4
+ //# sourceMappingURL=batch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batch.d.ts","sourceRoot":"","sources":["../src/batch.ts"],"names":[],"mappings":"AAAA,eAAO,IAAI,UAAU,SAAQ,CAAC;AAG9B,wBAAgB,YAAY,CAAC,EAAE,EAAE,QAAQ,QAgBxC;AAED,wBAAgB,aAAa,YAE5B"}
package/dist/batch.js ADDED
@@ -0,0 +1,22 @@
1
+ export let isBatching = false;
2
+ const queue = [];
3
+ export function batchUpdates(fn) {
4
+ if (isBatching) {
5
+ queue.push(fn);
6
+ return;
7
+ }
8
+ isBatching = true;
9
+ try {
10
+ fn();
11
+ while (queue.length > 0) {
12
+ const nextFn = queue.shift();
13
+ nextFn?.();
14
+ }
15
+ }
16
+ finally {
17
+ isBatching = false;
18
+ }
19
+ }
20
+ export function getIsBatching() {
21
+ return isBatching;
22
+ }
@@ -0,0 +1,61 @@
1
+ export interface Route {
2
+ path: string;
3
+ component: any;
4
+ props?: Record<string, any>;
5
+ exact?: boolean;
6
+ }
7
+ export interface RouterState {
8
+ location: {
9
+ pathname: string;
10
+ search: string;
11
+ hash: string;
12
+ };
13
+ params: Record<string, string>;
14
+ navigate: (to: string, options?: NavigateOptions) => void;
15
+ match: (path: string) => boolean;
16
+ }
17
+ export interface NavigateOptions {
18
+ replace?: boolean;
19
+ state?: any;
20
+ }
21
+ export declare const RouterContext: import("./types.js").Context<RouterState>;
22
+ export declare function RouterProvider({ routes, children }: {
23
+ routes: Route[];
24
+ children: any;
25
+ }): any;
26
+ export declare function Route({ path, component: Component, props }: Route): any;
27
+ export declare function Switch({ children }: {
28
+ children: any;
29
+ }): any;
30
+ export declare function Link({ to, replace, state, className, activeClassName, children, ...rest }: {
31
+ to: string;
32
+ replace?: boolean;
33
+ state?: any;
34
+ className?: string;
35
+ activeClassName?: string;
36
+ children: any;
37
+ [key: string]: any;
38
+ }): any;
39
+ export declare function Redirect({ to, replace }: {
40
+ to: string;
41
+ replace?: boolean;
42
+ }): null;
43
+ export declare function useLocation(): {
44
+ pathname: string;
45
+ search: string;
46
+ hash: string;
47
+ };
48
+ export declare function useParams(): Record<string, string>;
49
+ export declare function useNavigate(): (to: string, options?: NavigateOptions) => void;
50
+ declare const _default: {
51
+ RouterProvider: typeof RouterProvider;
52
+ Route: typeof Route;
53
+ Switch: typeof Switch;
54
+ Link: typeof Link;
55
+ Redirect: typeof Redirect;
56
+ useLocation: typeof useLocation;
57
+ useParams: typeof useParams;
58
+ useNavigate: typeof useNavigate;
59
+ };
60
+ export default _default;
61
+ //# sourceMapp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AAc,EACd,eAAoB,EACpB,QAAQ,EACR,GAAG,IAAI,EACR,EAAE;IACD,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,GAAG,CAAC;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,GAAG,GAAG,CAuBN;AAGD,wBAAgB,QAAQ,CAAC,EAAE,EAAE,EAAE,OAAc,EAAE,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,QASjF;AAGD,wBAAgB,WAAW;cAzPb,MAAM;YACR,MAAM;UACR,MAAM;EA0Pf;AAED,wBAAgB,SAAS,2BAGxB;AAED,wBAAgB,WAAW,SA9PV,MAAM,YAAY,eAAe,KAAK,IAAI,CAiQ1D;;;;;;;;;;;AAED,wBASE"}
@@ -0,0 +1,209 @@
1
+ /**
2
+ * Client-side router for single-page applications
3
+ */
4
+ import { useState, useEffect } from './hooks.js';
5
+ import { createContext, useContext } from './context.js';
6
+ import { jsx } from './jsx-runtime.js';
7
+ // Create context for router
8
+ export const RouterContext = createContext({
9
+ location: {
10
+ pathname: '/',
11
+ search: '',
12
+ hash: ''
13
+ },
14
+ params: {},
15
+ navigate: () => { },
16
+ match: () => false
17
+ });
18
+ // Parse path pattern into regex
19
+ function parsePath(path) {
20
+ // Convert :param syntax to capture groups
21
+ const pattern = path
22
+ .replace(/\/+$/, '') // Remove trailing slashes
23
+ .replace(/^\/+/, '/') // Ensure leading slash
24
+ .replace(/\/:([^/]+)/g, '/([^/]+)');
25
+ // Get param names
26
+ const paramNames = [];
27
+ path.replace(/\/:([^/]+)/g, (_, paramName) => {
28
+ paramNames.push(paramName);
29
+ return '';
30
+ });
31
+ return { pattern, paramNames };
32
+ }
33
+ // Match a path against a pattern
34
+ function matchPath(pathname, route) {
35
+ const { path, exact = false } = route;
36
+ const { pattern, paramNames } = parsePath(path);
37
+ // Create regex with or without exact matching
38
+ const regex = new RegExp(`^${pattern}${exact ? '$' : ''}`);
39
+ const match = pathname.match(regex);
40
+ if (!match)
41
+ return null;
42
+ // Extract params
43
+ const params = {};
44
+ paramNames.forEach((name, index) => {
45
+ params[name] = match[index + 1];
46
+ });
47
+ return params;
48
+ }
49
+ // Router Provider component
50
+ export function RouterProvider({ routes, children }) {
51
+ // Get initial location from window if available
52
+ const getInitialLocation = () => {
53
+ if (typeof window === 'undefined') {
54
+ return { pathname: '/', search: '', hash: '' };
55
+ }
56
+ return {
57
+ pathname: window.location.pathname,
58
+ search: window.location.search,
59
+ hash: window.location.hash
60
+ };
61
+ };
62
+ // Fix: Call the function to get the initial value instead of passing the function itself
63
+ const [location, setLocation] = useState(getInitialLocation());
64
+ const [params, setParams] = useState({});
65
+ // Update params when location changes
66
+ useEffect(() => {
67
+ for (const route of routes) {
68
+ const matchedParams = matchPath(location.pathname, route);
69
+ if (matchedParams) {
70
+ setParams(matchedParams);
71
+ break;
72
+ }
73
+ }
74
+ }, [location, routes]);
75
+ // Listen for popstate events
76
+ useEffect(() => {
77
+ if (typeof window === 'undefined')
78
+ return;
79
+ const handlePopState = () => {
80
+ setLocation({
81
+ pathname: window.location.pathname,
82
+ search: window.location.search,
83
+ hash: window.location.hash
84
+ });
85
+ };
86
+ window.addEventListener('popstate', handlePopState);
87
+ return () => window.removeEventListener('popstate', handlePopState);
88
+ }, []);
89
+ // Navigation function
90
+ const navigate = (to, options = {}) => {
91
+ if (typeof window === 'undefined')
92
+ return;
93
+ const { replace = false, state = null } = options;
94
+ if (replace) {
95
+ window.history.replaceState(state, '', to);
96
+ }
97
+ else {
98
+ window.history.pushState(state, '', to);
99
+ }
100
+ // Update location
101
+ setLocation({
102
+ pathname: window.location.pathname,
103
+ search: window.location.search,
104
+ hash: window.location.hash
105
+ });
106
+ };
107
+ // Match function to test if a path matches the current location
108
+ const match = (path) => {
109
+ const { pattern } = parsePath(path);
110
+ const regex = new RegExp(`^${pattern}`);
111
+ return regex.test(location.pathname);
112
+ };
113
+ // Router context value
114
+ const routerValue = {
115
+ location: {
116
+ pathname: location.pathname,
117
+ search: location.search,
118
+ hash: location.hash
119
+ },
120
+ params,
121
+ navigate,
122
+ match
123
+ };
124
+ return jsx(RouterContext.Provider, { value: routerValue, children });
125
+ }
126
+ // Route component
127
+ export function Route({ path, component: Component, props = {} }) {
128
+ const context = useContext(RouterContext);
129
+ const params = context.params;
130
+ const locationPathname = context.location.pathname;
131
+ const routeToMatch = { path, component: Component };
132
+ const match = matchPath(locationPathname, routeToMatch);
133
+ if (!match)
134
+ return null;
135
+ return jsx(Component, { ...props, params });
136
+ }
137
+ // Switch component
138
+ export function Switch({ children }) {
139
+ const context = useContext(RouterContext);
140
+ const locationPathname = context.location.pathname;
141
+ // Find the first matching route
142
+ const child = Array.isArray(children)
143
+ ? children.find(child => {
144
+ if (!child || typeof child.type !== 'function' || !child.props.path)
145
+ return false;
146
+ const routeObj = {
147
+ path: child.props.path,
148
+ component: child.type,
149
+ exact: child.props.exact || false
150
+ };
151
+ return matchPath(locationPathname, routeObj);
152
+ })
153
+ : children;
154
+ return child || null;
155
+ }
156
+ // Link component
157
+ export function Link({ to, replace = false, state = null, className = '', activeClassName = '', children, ...rest }) {
158
+ const context = useContext(RouterContext);
159
+ const navigate = context.navigate;
160
+ const match = context.match;
161
+ const handleClick = (e) => {
162
+ e.preventDefault();
163
+ navigate(to, { replace, state });
164
+ };
165
+ const isActive = match(to);
166
+ const classes = [
167
+ className,
168
+ isActive ? activeClassName : ''
169
+ ].filter(Boolean).join(' ');
170
+ return jsx('a', {
171
+ href: to,
172
+ className: classes || undefined,
173
+ onClick: handleClick,
174
+ ...rest,
175
+ children
176
+ });
177
+ }
178
+ // Redirect component
179
+ export function Redirect({ to, replace = true }) {
180
+ const context = useContext(RouterContext);
181
+ const navigate = context.navigate;
182
+ useEffect(() => {
183
+ navigate(to, { replace });
184
+ }, [to]);
185
+ return null;
186
+ }
187
+ // Hooks
188
+ export function useLocation() {
189
+ const context = useContext(RouterContext);
190
+ return context.location;
191
+ }
192
+ export function useParams() {
193
+ const context = useContext(RouterContext);
194
+ return context.params;
195
+ }
196
+ export function useNavigate() {
197
+ const context = useContext(RouterContext);
198
+ return context.navigate;
199
+ }
200
+ export default {
201
+ RouterProvider,
202
+ Route,
203
+ Switch,
204
+ Link,
205
+ Redirect,
206
+ useLocation,
207
+ useParams,
208
+ useNavigate
209
+ };
@@ -0,0 +1,15 @@
1
+ export declare class Component {
2
+ state: any;
3
+ props: any;
4
+ element: HTMLElement | null;
5
+ private _mounted;
6
+ constructor(props?: any);
7
+ componentDidMount(): void;
8
+ setState(newState: any): Promise<void>;
9
+ private _replayEvents;
10
+ private _deepCloneWithEvents;
11
+ update(): Promise<HTMLElement | Text>;
12
+ private _updateElement;
13
+ render(): any;
14
+ }
15
+ //# sourceMappingURL=component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":"AAEA,qBAAa,SAAS;IACpB,KAAK,EAAE,GAAG,CAAM;IAChB,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,EAAE,WAAW,GAAG,IAAI,CAAQ;IACnC,OAAO,CAAC,QAAQ,CAAkB;gBAEtB,KAAK,GAAE,GAAQ;IAI3B,iBAAiB;IAIX,QAAQ,CAAC,QAAQ,EAAE,GAAG;IAgB5B,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,oBAAoB;IAsBtB,MAAM;YAcE,cAAc;IAkB5B,MAAM,IAAI,GAAG;CAGd"}
@@ -0,0 +1,84 @@
1
+ import { createElement } from './jsx-runtime.js';
2
+ export class Component {
3
+ constructor(props = {}) {
4
+ this.state = {};
5
+ this.element = null;
6
+ this._mounted = false;
7
+ this.props = props;
8
+ }
9
+ componentDidMount() {
10
+ // Hook for after component is mounted
11
+ }
12
+ async setState(newState) {
13
+ const prevState = { ...this.state };
14
+ this.state = { ...prevState, ...newState };
15
+ console.log(`${this.constructor.name} state updated:`, {
16
+ prev: prevState,
17
+ next: this.state
18
+ });
19
+ await Promise.resolve(); // Ensure state is updated before re-render
20
+ if (this._mounted) {
21
+ await this.update();
22
+ }
23
+ else {
24
+ await this.update();
25
+ }
26
+ }
27
+ _replayEvents(oldElement, newElement) {
28
+ const oldEvents = oldElement.__events || {};
29
+ Object.entries(oldEvents).forEach(([event, handler]) => {
30
+ newElement.addEventListener(event, handler);
31
+ });
32
+ newElement.__events = oldEvents;
33
+ }
34
+ _deepCloneWithEvents(node) {
35
+ const clone = node.cloneNode(false);
36
+ // Copy events from original element
37
+ const events = node.__events || {};
38
+ clone.__events = events;
39
+ Object.entries(events).forEach(([event, handler]) => {
40
+ clone.addEventListener(event, handler);
41
+ });
42
+ // Clone children
43
+ Array.from(node.childNodes).forEach(child => {
44
+ if (child instanceof HTMLElement) {
45
+ clone.appendChild(this._deepCloneWithEvents(child));
46
+ }
47
+ else {
48
+ clone.appendChild(child.cloneNode(true));
49
+ }
50
+ });
51
+ return clone;
52
+ }
53
+ async update() {
54
+ const vdom = this.render();
55
+ if (!vdom)
56
+ return document.createTextNode('');
57
+ const rendered = await createElement(vdom);
58
+ if (rendered instanceof HTMLElement) {
59
+ return this._updateElement(rendered);
60
+ }
61
+ const wrapper = document.createElement('div');
62
+ wrapper.appendChild(rendered);
63
+ return this._updateElement(wrapper);
64
+ }
65
+ async _updateElement(rendered) {
66
+ const newElement = this._deepCloneWithEvents(rendered);
67
+ newElement.__instance = this;
68
+ if (!this.element) {
69
+ this.element = newElement;
70
+ if (!this._mounted) {
71
+ this._mounted = true;
72
+ queueMicrotask(() => this.componentDidMount());
73
+ }
74
+ }
75
+ else if (this.element.parentNode) {
76
+ this.element.parentNode.replaceChild(newElement, this.element);
77
+ this.element = newElement;
78
+ }
79
+ return this.element;
80
+ }
81
+ render() {
82
+ throw new Error('Component must implement render() method');
83
+ }
84
+ }
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=Counter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Counter.d.ts","sourceRoot":"","sources":["../../src/components/Counter.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ // ...existing code...import { useState, useEffect } from '../index';
@@ -0,0 +1,5 @@
1
+ import type { Context } from './types.js';
2
+ export declare function createContext<T>(defaultValue: T): Context<T>;
3
+ export declare function useContext<T>(context: Context<T>): T;
4
+ export type { Context } from './types.js';
5
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAiB,MAAM,YAAY,CAAC;AAIzD,wBAAgB,aAAa,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAoB5D;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAIpD;AAGD,YAAY,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,23 @@
1
+ const contexts = new Map();
2
+ export function createContext(defaultValue) {
3
+ const contextId = Symbol('context');
4
+ const Provider = ({ value, children }) => {
5
+ contexts.set(contextId, value);
6
+ return children;
7
+ };
8
+ const Consumer = ({ children }) => {
9
+ const value = contexts.get(contextId) ?? defaultValue;
10
+ return children(value);
11
+ };
12
+ const context = {
13
+ Provider,
14
+ Consumer,
15
+ displayName: 'Context'
16
+ };
17
+ return context;
18
+ }
19
+ export function useContext(context) {
20
+ // In a real implementation, this would access the context value from the component tree
21
+ // For now, returning a default value to satisfy TypeScript
22
+ return {};
23
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Event bus for communication between components
3
+ */
4
+ export type EventHandler = (...args: any[]) => void;
5
+ export interface EventBus {
6
+ on(event: string, handler: EventHandler): () => void;
7
+ once(event: string, handler: EventHandler): () => void;
8
+ off(event: string, handler?: EventHandler): void;
9
+ emit(event: string, ...args: any[]): void;
10
+ clear(event?: string): void;
11
+ }
12
+ export declare function createEventBus(): EventBus;
13
+ declare const globalEventBus: EventBus;
14
+ export declare function useEvent(event: string, handler: EventHandler, options?: {
15
+ once?: boolean;
16
+ }): () => void;
17
+ export { globalEventBus as eventBus };
18
+ declare const _default: {
19
+ createEventBus: typeof createEventBus;
20
+ eventBus: EventBus;
21
+ useEvent: typeof useEvent;
22
+ };
23
+ export default _default;
24
+ //# sourceMappingURL=event-bus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-bus.d.ts","sourceRoot":"","sources":["../src/event-bus.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;AAEpD,MAAM,WAAW,QAAQ;IACvB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,MAAM,IAAI,CAAC;IACrD,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,MAAM,IAAI,CAAC;IACvD,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IACjD,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC1C,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,wBAAgB,cAAc,IAAI,QAAQ,CAyEzC;AAGD,QAAA,MAAM,cAAc,UAAmB,CAAC;AAGxC,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO,SAtF7C,IAAI,CA0FrD;AAED,OAAO,EAAE,cAAc,IAAI,QAAQ,EAAE,CAAC;;;;;;AAEtC,wBAIE"}
@@ -0,0 +1,74 @@
1
+ export function createEventBus() {
2
+ const events = new Map();
3
+ const onceHandlers = new WeakMap();
4
+ const on = (event, handler) => {
5
+ if (!events.has(event)) {
6
+ events.set(event, new Set());
7
+ }
8
+ events.get(event).add(handler);
9
+ // Return a function to remove this handler
10
+ return () => off(event, handler);
11
+ };
12
+ const once = (event, handler) => {
13
+ // Create a wrapper that will call the handler and remove itself
14
+ const onceWrapper = (...args) => {
15
+ off(event, onceWrapper);
16
+ handler(...args);
17
+ };
18
+ // Store the mapping between the original handler and the wrapper
19
+ onceHandlers.set(handler, onceWrapper);
20
+ // Register the wrapper
21
+ return on(event, onceWrapper);
22
+ };
23
+ const off = (event, handler) => {
24
+ // If no handler is provided, remove all handlers for the event
25
+ if (!handler) {
26
+ events.delete(event);
27
+ return;
28
+ }
29
+ // Check if it's a once handler wrapper
30
+ const wrappedHandler = onceHandlers.get(handler);
31
+ const handlerToRemove = wrappedHandler || handler;
32
+ if (events.has(event)) {
33
+ events.get(event).delete(handlerToRemove);
34
+ // Clean up empty event sets
35
+ if (events.get(event).size === 0) {
36
+ events.delete(event);
37
+ }
38
+ }
39
+ };
40
+ const emit = (event, ...args) => {
41
+ if (!events.has(event)) {
42
+ return;
43
+ }
44
+ // Create a copy of the handlers to avoid issues if handlers modify the set
45
+ const handlers = Array.from(events.get(event));
46
+ // Call each handler with the arguments
47
+ for (const handler of handlers) {
48
+ handler(...args);
49
+ }
50
+ };
51
+ const clear = (event) => {
52
+ if (event) {
53
+ events.delete(event);
54
+ }
55
+ else {
56
+ events.clear();
57
+ }
58
+ };
59
+ return { on, once, off, emit, clear };
60
+ }
61
+ // Create a global event bus instance
62
+ const globalEventBus = createEventBus();
63
+ // Hook to use the event bus in components
64
+ export function useEvent(event, handler, options = {}) {
65
+ return options.once
66
+ ? globalEventBus.once(event, handler)
67
+ : globalEventBus.on(event, handler);
68
+ }
69
+ export { globalEventBus as eventBus };
70
+ export default {
71
+ createEventBus,
72
+ eventBus: globalEventBus,
73
+ useEvent
74
+ };
@@ -0,0 +1,41 @@
1
+ export interface FormField {
2
+ value: any;
3
+ error?: string;
4
+ touched: boolean;
5
+ dirty: boolean;
6
+ }
7
+ export interface FormState {
8
+ fields: Record<string, FormField>;
9
+ isValid: boolean;
10
+ isDirty: boolean;
11
+ isSubmitting: boolean;
12
+ submitCount: number;
13
+ }
14
+ export interface FormOptions<T> {
15
+ initialValues: T;
16
+ validate?: (values: T) => Record<string, string>;
17
+ onSubmit?: (values: T, form: FormState) => void | Promise<void>;
18
+ }
19
+ export interface FormConfig<T> {
20
+ values: T;
21
+ errors: Record<string, string>;
22
+ touched: Record<string, boolean>;
23
+ dirty: Record<string, boolean>;
24
+ isValid: boolean;
25
+ isDirty: boolean;
26
+ isSubmitting: boolean;
27
+ submitCount: number;
28
+ handleChange: (e: any) => void;
29
+ handleBlur: (e: any) => void;
30
+ handleSubmit: (e: any) => void;
31
+ setFieldValue: (field: string, value: any) => void;
32
+ setFieldError: (field: string, error: string) => void;
33
+ setValues: (values: Partial<T>) => void;
34
+ resetForm: () => void;
35
+ }
36
+ export declare function useForm<T extends Record<string, any>>(options: FormOptions<T>): FormConfig<T>;
37
+ declare const _default: {
38
+ useForm: typeof useForm;
39
+ };
40
+ export default _default;
41
+ //# sourceMappingURL=forms.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forms.d.ts","sourceRoot":"","sources":["../src/forms.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,GAAG,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC,MAAM,EA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