akanjs 2.2.4-rc.4 → 2.2.4

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 (608) hide show
  1. package/base/base.test.ts +135 -0
  2. package/base/base.ts +1 -1
  3. package/base/baseEnv.test.ts +146 -0
  4. package/base/primitiveRegistry.test.ts +127 -0
  5. package/base/primitiveRegistry.ts +10 -6
  6. package/base/symbols.test.ts +29 -0
  7. package/base/types.ts +4 -1
  8. package/base/utils.test.ts +30 -0
  9. package/build.ts +318 -0
  10. package/capacitor.base.config.test.ts +83 -0
  11. package/capacitor.base.config.ts +1 -1
  12. package/client/capacitor.ts +1 -1
  13. package/client/client.auth-storage.test.ts +210 -0
  14. package/client/client.decorators.test.ts +74 -0
  15. package/client/client.device.test.ts +181 -0
  16. package/client/client.page.test.tsx +175 -0
  17. package/client/client.pure.test.ts +146 -0
  18. package/client/client.router.test.ts +290 -0
  19. package/client/cookie.ts +4 -2
  20. package/client/createFont.ts +2 -2
  21. package/client/csrTypes.ts +8 -2
  22. package/client/makePageProto.tsx +10 -4
  23. package/client/router.ts +8 -3
  24. package/client/translator.ts +12 -4
  25. package/common/Logger.test.ts +45 -0
  26. package/common/Logger.ts +4 -1
  27. package/common/formatAndValidation.test.ts +61 -0
  28. package/common/formatNumber.ts +5 -2
  29. package/common/hmrPhase.ts +1 -1
  30. package/common/httpClient.test.ts +91 -0
  31. package/common/isValidDate.ts +3 -0
  32. package/common/objectPath.test.ts +108 -0
  33. package/common/routeConvention.test.ts +132 -0
  34. package/common/runtimeConfig.test.ts +84 -0
  35. package/constant/constant.test.ts +374 -0
  36. package/constant/fieldInfo.ts +3 -3
  37. package/constant/purify.ts +2 -1
  38. package/constant/types.ts +4 -0
  39. package/constant/via.ts +12 -6
  40. package/dictionary/dictionary.test.ts +352 -0
  41. package/document/databaseRegistry.ts +8 -0
  42. package/document/document.test.ts +698 -0
  43. package/document/into.ts +1 -0
  44. package/fetch/client/fetchClient.ts +6 -1
  45. package/fetch/client/httpClient.ts +2 -1
  46. package/fetch/fetch.test.ts +838 -0
  47. package/fetch/fetchType/appliedReturn.type.ts +1 -0
  48. package/fetch/fetchType/endpointFetch.type.ts +3 -0
  49. package/fetch/fetchType/sliceFetch.type.ts +8 -0
  50. package/fetch/requestStorage.ts +10 -2
  51. package/package.json +24 -67
  52. package/server/akanApp.test.ts +130 -0
  53. package/server/akanApp.ts +5 -2
  54. package/server/akanLib.ts +1 -0
  55. package/server/akanServer.test.ts +157 -0
  56. package/server/akanServer.ts +4 -3
  57. package/server/artifact/builderRpc.ts +2 -2
  58. package/server/artifact/ipcTypes.ts +4 -0
  59. package/server/artifact/routeClientCache.test.ts +265 -0
  60. package/server/artifact/routeSeedIndex.test.ts +56 -0
  61. package/server/artifact/routesManifest.test.ts +64 -0
  62. package/server/decorators.ts +1 -1
  63. package/server/di/diLifecycle.contract.test.ts +168 -0
  64. package/server/di/diLifecycle.ts +6 -3
  65. package/server/hmr/clientScript.ts +20 -2
  66. package/server/hmr/devHmrController.ts +4 -0
  67. package/server/logging/rotatingLogWriter.test.ts +119 -0
  68. package/server/processMetrics.test.ts +24 -0
  69. package/server/processMetricsCollector.ts +1 -1
  70. package/server/proxy/webProxyRunner.test.ts +66 -0
  71. package/server/resolver/database.resolver.ts +2 -2
  72. package/server/resolver/resolver.contract.fixture.ts +1 -0
  73. package/server/resolver/resolver.contract.test.ts +594 -0
  74. package/server/resolver/signal.resolver.ts +10 -2
  75. package/server/robots.test.ts +16 -0
  76. package/server/routeTree.test.tsx +198 -0
  77. package/server/routing/apiRouter.test.ts +136 -0
  78. package/server/routing/apiRouter.ts +4 -2
  79. package/server/rscClient.tsx +7 -1
  80. package/server/rscWorkerHost.ts +33 -11
  81. package/server/sitemap.test.ts +61 -0
  82. package/server/ssrFromRscRenderer.tsx +35 -3
  83. package/server/systemPages.test.tsx +93 -0
  84. package/server/types/react-server-dom-webpack.d.ts +7 -1
  85. package/server/vendor/react-dom-client.ts +1 -1
  86. package/server/vendor/react-dom.ts +3 -2
  87. package/server/vendor/react-jsx-dev-runtime.ts +1 -1
  88. package/server/vendor/react-jsx-runtime.ts +1 -1
  89. package/server/vendor/react-refresh-runtime.ts +2 -2
  90. package/server/vendor/react-server-dom-webpack-client-browser.ts +1 -1
  91. package/server/vendor/react.ts +9 -2
  92. package/server/vendor/scheduler.ts +3 -2
  93. package/server/webRouter.test.ts +49 -0
  94. package/server/webRouter.ts +3 -2
  95. package/service/adapt.ts +5 -1
  96. package/service/predefinedAdaptor/cache.adaptor.ts +2 -1
  97. package/service/predefinedAdaptor/compress.adaptor.test.ts +184 -0
  98. package/service/predefinedAdaptor/database.adaptor.ts +20 -8
  99. package/service/predefinedAdaptor/solidCache.adaptor.test.ts +107 -0
  100. package/service/predefinedAdaptor/solidSqlite.test.ts +457 -0
  101. package/service/predefinedAdaptor/solidSqlite.ts +2 -1
  102. package/service/predefinedAdaptor/websocket.adaptor.ts +15 -3
  103. package/service/serve.ts +7 -3
  104. package/service/service.test.ts +732 -0
  105. package/signal/base.signal.ts +1 -0
  106. package/signal/endpointInfo.ts +7 -0
  107. package/signal/intercept.ts +2 -0
  108. package/signal/middleware.ts +2 -1
  109. package/signal/serverSignal.ts +15 -1
  110. package/signal/signal.test.ts +892 -0
  111. package/signal/signalContext.ts +1 -1
  112. package/signal/signalRegistry.ts +5 -0
  113. package/signal/sliceInfo.ts +3 -0
  114. package/signal/trace.ts +11 -0
  115. package/signal/types.ts +11 -2
  116. package/store/action.ts +5 -3
  117. package/store/stateBuilder.test.ts +168 -0
  118. package/store/stateBuilder.ts +2 -0
  119. package/store/stateInfo.ts +2 -1
  120. package/store/store.test.ts +427 -0
  121. package/store/types.ts +1 -1
  122. package/test/playwright.config.base.ts +28 -5
  123. package/test/playwright.pageAgent.ts +1 -1
  124. package/test/sampleOf.ts +1 -1
  125. package/test/testServer.ts +1 -1
  126. package/tsconfig.json +5 -0
  127. package/ui/BottomSheet.tsx +1 -1
  128. package/ui/Clipboard.tsx +1 -1
  129. package/ui/Constant/schemaDoc.test.ts +113 -0
  130. package/ui/CsrImage.tsx +14 -3
  131. package/ui/Data/ListContainer.tsx +1 -1
  132. package/ui/Data/Pagination.tsx +1 -1
  133. package/ui/Data/QueryMaker.tsx +339 -0
  134. package/ui/Data/index.ts +1 -0
  135. package/ui/DatePicker.tsx +95 -1
  136. package/ui/Dialog/Modal.tsx +1 -1
  137. package/ui/DraggableList.tsx +5 -5
  138. package/ui/Field.tsx +3 -2
  139. package/ui/Image.tsx +3 -2
  140. package/ui/InfiniteScroll.test.tsx +155 -0
  141. package/ui/InfiniteScroll.tsx +1 -0
  142. package/ui/Input.tsx +8 -1
  143. package/ui/Layout/BottomTab.tsx +2 -2
  144. package/ui/Link/SsrLink.tsx +2 -1
  145. package/ui/Load/Page.tsx +1 -1
  146. package/ui/Load/PageCSR.tsx +1 -0
  147. package/ui/Load/Units.tsx +2 -1
  148. package/ui/Load/View.tsx +2 -1
  149. package/ui/Menu.tsx +8 -5
  150. package/ui/Model/EditModal.tsx +5 -2
  151. package/ui/Popconfirm.tsx +4 -2
  152. package/ui/ScreenNavigator.tsx +3 -2
  153. package/ui/Signal/Message.tsx +3 -2
  154. package/ui/Signal/PubSub.tsx +2 -0
  155. package/ui/Signal/Response.tsx +1 -1
  156. package/ui/Signal/WebSocket.tsx +11 -2
  157. package/ui/System/Client.tsx +41 -7
  158. package/ui/System/Common.test.ts +37 -0
  159. package/ui/System/Gtag.tsx +5 -2
  160. package/ui/System/Messages.tsx +2 -2
  161. package/ui/System/Reconnect.tsx +6 -5
  162. package/ui/System/Root.tsx +1 -0
  163. package/ui/System/SSR.tsx +7 -1
  164. package/ui/ToggleSelect.tsx +8 -3
  165. package/ui/Unauthorized.tsx +1 -1
  166. package/webkit/bootCsr.test.tsx +153 -0
  167. package/webkit/bootCsr.tsx +6 -3
  168. package/webkit/lazy.tsx +8 -1
  169. package/webkit/native.test.tsx +341 -0
  170. package/webkit/useCamera.tsx +1 -0
  171. package/webkit/useCodepush.tsx +9 -4
  172. package/webkit/useContact.tsx +1 -0
  173. package/webkit/useCsrValues.ts +10 -6
  174. package/webkit/useDebounce.ts +2 -2
  175. package/webkit/usePurchase.tsx +9 -5
  176. package/webkit/usePushNoti.tsx +1 -0
  177. package/webkit/webkit.test.tsx +531 -0
  178. package/types/base/base.d.ts +0 -53
  179. package/types/base/baseEnv.d.ts +0 -68
  180. package/types/base/index.d.ts +0 -6
  181. package/types/base/primitiveRegistry.d.ts +0 -134
  182. package/types/base/symbols.d.ts +0 -11
  183. package/types/base/types.d.ts +0 -68
  184. package/types/base/utils.d.ts +0 -4
  185. package/types/base.d.ts +0 -1
  186. package/types/capacitor.base.config.d.ts +0 -3
  187. package/types/client/capacitor.d.ts +0 -233
  188. package/types/client/clientRuntime.d.ts +0 -63
  189. package/types/client/cookie.d.ts +0 -33
  190. package/types/client/createFont.d.ts +0 -6
  191. package/types/client/csrTypes.d.ts +0 -262
  192. package/types/client/decorators.d.ts +0 -7
  193. package/types/client/device.d.ts +0 -41
  194. package/types/client/fetch.d.ts +0 -1
  195. package/types/client/index.d.ts +0 -14
  196. package/types/client/locale.d.ts +0 -5
  197. package/types/client/makePageProto.d.ts +0 -17002
  198. package/types/client/router.d.ts +0 -66
  199. package/types/client/rscNavigation.d.ts +0 -19
  200. package/types/client/storage.d.ts +0 -5
  201. package/types/client/translator.d.ts +0 -18
  202. package/types/client/types.d.ts +0 -145
  203. package/types/client/useClient.d.ts +0 -1
  204. package/types/client.d.ts +0 -1
  205. package/types/common/Logger.d.ts +0 -41
  206. package/types/common/applyMixins.d.ts +0 -3
  207. package/types/common/capitalize.d.ts +0 -2
  208. package/types/common/deepObjectify.d.ts +0 -4
  209. package/types/common/fileUpload.d.ts +0 -28
  210. package/types/common/formatNumber.d.ts +0 -1
  211. package/types/common/formatPhone.d.ts +0 -2
  212. package/types/common/getAllPropertyDescriptors.d.ts +0 -5
  213. package/types/common/hmrPhase.d.ts +0 -6
  214. package/types/common/httpClient.d.ts +0 -20
  215. package/types/common/index.d.ts +0 -29
  216. package/types/common/isDayjs.d.ts +0 -2
  217. package/types/common/isEmail.d.ts +0 -2
  218. package/types/common/isPhoneNumber.d.ts +0 -2
  219. package/types/common/isQueryEqual.d.ts +0 -1
  220. package/types/common/isValidDate.d.ts +0 -2
  221. package/types/common/jwtDecode.d.ts +0 -2
  222. package/types/common/localeConfig.d.ts +0 -11
  223. package/types/common/lowerlize.d.ts +0 -2
  224. package/types/common/mergeVersion.d.ts +0 -10
  225. package/types/common/objectify.d.ts +0 -1
  226. package/types/common/pathGet.d.ts +0 -1
  227. package/types/common/pathSet.d.ts +0 -3
  228. package/types/common/randomPick.d.ts +0 -1
  229. package/types/common/randomPicks.d.ts +0 -1
  230. package/types/common/routeConvention.d.ts +0 -35
  231. package/types/common/sleep.d.ts +0 -2
  232. package/types/common/splitVersion.d.ts +0 -11
  233. package/types/common/subRoute.d.ts +0 -7
  234. package/types/common/types.d.ts +0 -14
  235. package/types/common.d.ts +0 -1
  236. package/types/constant/constantRegistry.d.ts +0 -89
  237. package/types/constant/crystalize.d.ts +0 -4
  238. package/types/constant/deserialize.d.ts +0 -7
  239. package/types/constant/fieldInfo.d.ts +0 -153
  240. package/types/constant/getDefault.d.ts +0 -3
  241. package/types/constant/immerify.d.ts +0 -2
  242. package/types/constant/index.d.ts +0 -10
  243. package/types/constant/purify.d.ts +0 -12
  244. package/types/constant/serialize.d.ts +0 -11
  245. package/types/constant/types.d.ts +0 -77
  246. package/types/constant/via.d.ts +0 -52
  247. package/types/constant.d.ts +0 -1
  248. package/types/dictionary/base.dictionary.d.ts +0 -1
  249. package/types/dictionary/dictInfo.d.ts +0 -206
  250. package/types/dictionary/dictionary.d.ts +0 -11
  251. package/types/dictionary/index.d.ts +0 -4
  252. package/types/dictionary/locale.d.ts +0 -128
  253. package/types/dictionary/trans.d.ts +0 -82
  254. package/types/dictionary.d.ts +0 -1
  255. package/types/document/by.d.ts +0 -20
  256. package/types/document/dataLoader.d.ts +0 -36
  257. package/types/document/database.d.ts +0 -96
  258. package/types/document/databaseRegistry.d.ts +0 -36
  259. package/types/document/documentQuery.d.ts +0 -105
  260. package/types/document/documentSchema.d.ts +0 -33
  261. package/types/document/filterMeta.d.ts +0 -84
  262. package/types/document/index.d.ts +0 -11
  263. package/types/document/into.d.ts +0 -65
  264. package/types/document/loaderInfo.d.ts +0 -35
  265. package/types/document/schema.d.ts +0 -5
  266. package/types/document/types.d.ts +0 -36
  267. package/types/document.d.ts +0 -1
  268. package/types/fetch/client/fetchClient.d.ts +0 -78
  269. package/types/fetch/client/httpClient.d.ts +0 -39
  270. package/types/fetch/client/index.d.ts +0 -3
  271. package/types/fetch/client/wsClient.d.ts +0 -37
  272. package/types/fetch/client.d.ts +0 -1
  273. package/types/fetch/fetchType/appliedReturn.type.d.ts +0 -67
  274. package/types/fetch/fetchType/buildFetch.type.d.ts +0 -11
  275. package/types/fetch/fetchType/clientSignal.type.d.ts +0 -16
  276. package/types/fetch/fetchType/endpointFetch.type.d.ts +0 -29
  277. package/types/fetch/fetchType/index.d.ts +0 -5
  278. package/types/fetch/fetchType/sliceFetch.type.d.ts +0 -76
  279. package/types/fetch/fetchType.d.ts +0 -1
  280. package/types/fetch/index.d.ts +0 -4
  281. package/types/fetch/requestStorage.d.ts +0 -29
  282. package/types/fetch/serializer/fetch.serializer.d.ts +0 -14
  283. package/types/fetch/serializer/index.d.ts +0 -1
  284. package/types/fetch/serializer.d.ts +0 -1
  285. package/types/fetch/types.d.ts +0 -19
  286. package/types/fetch.d.ts +0 -1
  287. package/types/index.d.ts +0 -213
  288. package/types/server/akanApp.d.ts +0 -17
  289. package/types/server/akanAppHeaders.d.ts +0 -1
  290. package/types/server/akanLib.d.ts +0 -33
  291. package/types/server/akanOption.d.ts +0 -15
  292. package/types/server/akanServer.d.ts +0 -47
  293. package/types/server/artifact/builderRpc.d.ts +0 -42
  294. package/types/server/artifact/index.d.ts +0 -6
  295. package/types/server/artifact/ipcTypes.d.ts +0 -73
  296. package/types/server/artifact/manifestTypes.d.ts +0 -16
  297. package/types/server/artifact/routeClientCache.d.ts +0 -45
  298. package/types/server/artifact/routeSeedIndexStore.d.ts +0 -43
  299. package/types/server/artifact/routesManifestStore.d.ts +0 -16
  300. package/types/server/artifact.d.ts +0 -1
  301. package/types/server/decorators.d.ts +0 -6
  302. package/types/server/di/diLifecycle.d.ts +0 -45
  303. package/types/server/di/index.d.ts +0 -4
  304. package/types/server/di/predefinedAdaptor.d.ts +0 -33
  305. package/types/server/di/resolveAdaptorHierarchy.d.ts +0 -21
  306. package/types/server/di/resolveHierarchy.d.ts +0 -11
  307. package/types/server/di/resolveServiceHierarchy.d.ts +0 -13
  308. package/types/server/di/utils.d.ts +0 -14
  309. package/types/server/di.d.ts +0 -1
  310. package/types/server/hmr/changeBatch.d.ts +0 -13
  311. package/types/server/hmr/clientScript.d.ts +0 -1
  312. package/types/server/hmr/devHmrController.d.ts +0 -24
  313. package/types/server/hmr/index.d.ts +0 -4
  314. package/types/server/hmr/wsHub.d.ts +0 -45
  315. package/types/server/hmr.d.ts +0 -1
  316. package/types/server/imageOptimizer.d.ts +0 -12
  317. package/types/server/imageOptimizerError.d.ts +0 -4
  318. package/types/server/index.d.ts +0 -14
  319. package/types/server/lifecycle/shutdownManager.d.ts +0 -13
  320. package/types/server/logging/rotatingLogWriter.d.ts +0 -20
  321. package/types/server/processMetricsCollector.d.ts +0 -10
  322. package/types/server/proxy/akanResponse.d.ts +0 -7
  323. package/types/server/proxy/bunRequestFields.d.ts +0 -1
  324. package/types/server/proxy/hostBasePathWebProxy.d.ts +0 -6
  325. package/types/server/proxy/index.d.ts +0 -6
  326. package/types/server/proxy/localeWebProxy.d.ts +0 -5
  327. package/types/server/proxy/types.d.ts +0 -37
  328. package/types/server/proxy/webProxyRunner.d.ts +0 -7
  329. package/types/server/proxy.d.ts +0 -1
  330. package/types/server/resolver/database.resolver.d.ts +0 -6
  331. package/types/server/resolver/index.d.ts +0 -3
  332. package/types/server/resolver/service.resolver.d.ts +0 -7
  333. package/types/server/resolver/signal.resolver.d.ts +0 -29
  334. package/types/server/resolver.d.ts +0 -1
  335. package/types/server/robots.d.ts +0 -1
  336. package/types/server/routeElementComposer.d.ts +0 -41
  337. package/types/server/routeTreeBuilder.d.ts +0 -28
  338. package/types/server/routing/apiRouter.d.ts +0 -61
  339. package/types/server/rscClient.d.ts +0 -15
  340. package/types/server/rscWorker.d.ts +0 -3
  341. package/types/server/rscWorkerHost.d.ts +0 -83
  342. package/types/server/sitemap.d.ts +0 -13
  343. package/types/server/ssrFromRscRenderer.d.ts +0 -6
  344. package/types/server/ssrTypes.d.ts +0 -47
  345. package/types/server/systemPages.d.ts +0 -27
  346. package/types/server/types/react-server-dom-webpack.d.ts +0 -91
  347. package/types/server/types.d.ts +0 -67
  348. package/types/server/vendor/akanjs-base.d.ts +0 -1
  349. package/types/server/vendor/akanjs-common.d.ts +0 -1
  350. package/types/server/vendor/akanjs-constant.d.ts +0 -1
  351. package/types/server/vendor/akanjs-store.d.ts +0 -1
  352. package/types/server/vendor/react-dom-client.d.ts +0 -3
  353. package/types/server/vendor/react-dom.d.ts +0 -3
  354. package/types/server/vendor/react-jsx-dev-runtime.d.ts +0 -3
  355. package/types/server/vendor/react-jsx-runtime.d.ts +0 -3
  356. package/types/server/vendor/react-refresh-runtime.d.ts +0 -3
  357. package/types/server/vendor/react-server-dom-webpack-client-browser.d.ts +0 -3
  358. package/types/server/vendor/react.d.ts +0 -11
  359. package/types/server/vendor/scheduler.d.ts +0 -3
  360. package/types/server/webRouter.d.ts +0 -44
  361. package/types/server.d.ts +0 -1
  362. package/types/service/adapt.d.ts +0 -15
  363. package/types/service/base.service.d.ts +0 -18
  364. package/types/service/index.d.ts +0 -10
  365. package/types/service/injectInfo.d.ts +0 -102
  366. package/types/service/ipcTypes.d.ts +0 -194
  367. package/types/service/predefinedAdaptor/cache.adaptor.d.ts +0 -46
  368. package/types/service/predefinedAdaptor/compress.adaptor.d.ts +0 -22
  369. package/types/service/predefinedAdaptor/database.adaptor.d.ts +0 -329
  370. package/types/service/predefinedAdaptor/index.d.ts +0 -13
  371. package/types/service/predefinedAdaptor/logging.adaptor.d.ts +0 -20
  372. package/types/service/predefinedAdaptor/queue.adaptor.d.ts +0 -22
  373. package/types/service/predefinedAdaptor/role.adaptor.d.ts +0 -17
  374. package/types/service/predefinedAdaptor/schedule.adaptor.d.ts +0 -60
  375. package/types/service/predefinedAdaptor/solidCache.adaptor.d.ts +0 -25
  376. package/types/service/predefinedAdaptor/solidPubsub.adaptor.d.ts +0 -20
  377. package/types/service/predefinedAdaptor/solidQueue.adaptor.d.ts +0 -19
  378. package/types/service/predefinedAdaptor/solidSqlite.d.ts +0 -24
  379. package/types/service/predefinedAdaptor/sqlitePath.d.ts +0 -9
  380. package/types/service/predefinedAdaptor/storage.adaptor.d.ts +0 -80
  381. package/types/service/predefinedAdaptor/websocket.adaptor.d.ts +0 -49
  382. package/types/service/predefinedAdaptor.d.ts +0 -1
  383. package/types/service/serve.d.ts +0 -31
  384. package/types/service/serviceModule.d.ts +0 -50
  385. package/types/service/serviceRegistry.d.ts +0 -9
  386. package/types/service/types.d.ts +0 -55
  387. package/types/service.d.ts +0 -1
  388. package/types/signal/base.signal.d.ts +0 -41
  389. package/types/signal/endpoint.d.ts +0 -28
  390. package/types/signal/endpointInfo.d.ts +0 -77
  391. package/types/signal/exception.d.ts +0 -54786
  392. package/types/signal/guard.d.ts +0 -10
  393. package/types/signal/guards.d.ts +0 -10
  394. package/types/signal/index.d.ts +0 -19
  395. package/types/signal/intercept.d.ts +0 -17
  396. package/types/signal/internal.d.ts +0 -18
  397. package/types/signal/internalArg.d.ts +0 -31
  398. package/types/signal/internalInfo.d.ts +0 -45
  399. package/types/signal/middleware.d.ts +0 -51
  400. package/types/signal/serializer/fetch.serializer.d.ts +0 -14
  401. package/types/signal/serializer/index.d.ts +0 -1
  402. package/types/signal/serializer.d.ts +0 -1
  403. package/types/signal/serverSignal.d.ts +0 -36
  404. package/types/signal/signalContext.d.ts +0 -96
  405. package/types/signal/signalRegistry.d.ts +0 -49
  406. package/types/signal/slice.d.ts +0 -42
  407. package/types/signal/sliceInfo.d.ts +0 -51
  408. package/types/signal/trace.d.ts +0 -97
  409. package/types/signal/types.d.ts +0 -142
  410. package/types/signal.d.ts +0 -1
  411. package/types/store/action.d.ts +0 -145
  412. package/types/store/baseSt.d.ts +0 -412
  413. package/types/store/hooks.d.ts +0 -1
  414. package/types/store/index.d.ts +0 -8
  415. package/types/store/rootStore.d.ts +0 -22
  416. package/types/store/state.d.ts +0 -91
  417. package/types/store/stateBuilder.d.ts +0 -141
  418. package/types/store/stateInfo.d.ts +0 -23
  419. package/types/store/store.d.ts +0 -36
  420. package/types/store/storeInstance.d.ts +0 -38
  421. package/types/store/storeRegistry.d.ts +0 -13
  422. package/types/store/types.d.ts +0 -42
  423. package/types/store/withSelector.d.ts +0 -42
  424. package/types/store.d.ts +0 -1
  425. package/types/test/index.d.ts +0 -4
  426. package/types/test/playwright.config.base.d.ts +0 -9
  427. package/types/test/playwright.pageAgent.d.ts +0 -12
  428. package/types/test/sample.d.ts +0 -15
  429. package/types/test/sampleOf.d.ts +0 -5
  430. package/types/test/signalTest.preload.d.ts +0 -1
  431. package/types/test/signalTestRuntime.d.ts +0 -29
  432. package/types/test/testServer.d.ts +0 -26
  433. package/types/test.d.ts +0 -1
  434. package/types/ui/BottomSheet.d.ts +0 -13
  435. package/types/ui/Button.d.ts +0 -11
  436. package/types/ui/ClientSide.d.ts +0 -8
  437. package/types/ui/Clipboard.d.ts +0 -7
  438. package/types/ui/Constant/Doc.d.ts +0 -29
  439. package/types/ui/Constant/Mermaid.d.ts +0 -8
  440. package/types/ui/Constant/index.d.ts +0 -6
  441. package/types/ui/Constant/schemaDoc.d.ts +0 -84
  442. package/types/ui/Constant.d.ts +0 -1
  443. package/types/ui/Copy.d.ts +0 -10
  444. package/types/ui/CsrImage.d.ts +0 -18
  445. package/types/ui/Data/CardList.d.ts +0 -36
  446. package/types/ui/Data/Dashboard.d.ts +0 -11
  447. package/types/ui/Data/Insight.d.ts +0 -9
  448. package/types/ui/Data/Item.d.ts +0 -75
  449. package/types/ui/Data/ListContainer.d.ts +0 -49
  450. package/types/ui/Data/Pagination.d.ts +0 -9
  451. package/types/ui/Data/QueryMaker.d.ts +0 -8
  452. package/types/ui/Data/TableList.d.ts +0 -26
  453. package/types/ui/Data/index.d.ts +0 -9
  454. package/types/ui/Data/index_.d.ts +0 -8
  455. package/types/ui/Data.d.ts +0 -1
  456. package/types/ui/DatePicker.d.ts +0 -36
  457. package/types/ui/Dialog/Action.d.ts +0 -5
  458. package/types/ui/Dialog/Close.d.ts +0 -6
  459. package/types/ui/Dialog/Content.d.ts +0 -6
  460. package/types/ui/Dialog/Modal.d.ts +0 -9
  461. package/types/ui/Dialog/Provider.d.ts +0 -11
  462. package/types/ui/Dialog/Title.d.ts +0 -5
  463. package/types/ui/Dialog/Trigger.d.ts +0 -6
  464. package/types/ui/Dialog/context.d.ts +0 -10
  465. package/types/ui/Dialog/index.d.ts +0 -9
  466. package/types/ui/Dialog.d.ts +0 -1
  467. package/types/ui/DragAction.d.ts +0 -24
  468. package/types/ui/DraggableList.d.ts +0 -31
  469. package/types/ui/Dropdown.d.ts +0 -14
  470. package/types/ui/Empty.d.ts +0 -12
  471. package/types/ui/Field.d.ts +0 -411
  472. package/types/ui/FontFace.d.ts +0 -6
  473. package/types/ui/Image.d.ts +0 -49
  474. package/types/ui/InfiniteScroll.d.ts +0 -10
  475. package/types/ui/Input.d.ts +0 -95
  476. package/types/ui/KeyboardAvoiding.d.ts +0 -8
  477. package/types/ui/Layout/BottomAction.d.ts +0 -6
  478. package/types/ui/Layout/BottomInset.d.ts +0 -7
  479. package/types/ui/Layout/BottomTab.d.ts +0 -14
  480. package/types/ui/Layout/Header.d.ts +0 -8
  481. package/types/ui/Layout/LeftSider.d.ts +0 -9
  482. package/types/ui/Layout/Navbar.d.ts +0 -11
  483. package/types/ui/Layout/RightSider.d.ts +0 -10
  484. package/types/ui/Layout/Sider.d.ts +0 -7
  485. package/types/ui/Layout/Template.d.ts +0 -7
  486. package/types/ui/Layout/TopLeftAction.d.ts +0 -6
  487. package/types/ui/Layout/Unit.d.ts +0 -9
  488. package/types/ui/Layout/View.d.ts +0 -8
  489. package/types/ui/Layout/Zone.d.ts +0 -6
  490. package/types/ui/Layout/index.d.ts +0 -14
  491. package/types/ui/Layout.d.ts +0 -1
  492. package/types/ui/Link/Back.d.ts +0 -7
  493. package/types/ui/Link/Close.d.ts +0 -7
  494. package/types/ui/Link/CsrLink.d.ts +0 -2
  495. package/types/ui/Link/Lang.d.ts +0 -8
  496. package/types/ui/Link/SsrLink.d.ts +0 -2
  497. package/types/ui/Link/index.d.ts +0 -10
  498. package/types/ui/Link/types.d.ts +0 -42
  499. package/types/ui/Link.d.ts +0 -1
  500. package/types/ui/Load/Edit.d.ts +0 -4
  501. package/types/ui/Load/Edit_Client.d.ts +0 -27
  502. package/types/ui/Load/Page.d.ts +0 -15
  503. package/types/ui/Load/PageCSR.d.ts +0 -3
  504. package/types/ui/Load/Pagination.d.ts +0 -8
  505. package/types/ui/Load/Units.d.ts +0 -30
  506. package/types/ui/Load/View.d.ts +0 -22
  507. package/types/ui/Load/index.d.ts +0 -8
  508. package/types/ui/Load/index_.d.ts +0 -3
  509. package/types/ui/Load.d.ts +0 -1
  510. package/types/ui/Loading/Area.d.ts +0 -1
  511. package/types/ui/Loading/Button.d.ts +0 -7
  512. package/types/ui/Loading/Input.d.ts +0 -7
  513. package/types/ui/Loading/ProgressBar.d.ts +0 -6
  514. package/types/ui/Loading/Skeleton.d.ts +0 -7
  515. package/types/ui/Loading/Spin.d.ts +0 -7
  516. package/types/ui/Loading/index.d.ts +0 -8
  517. package/types/ui/Loading.d.ts +0 -1
  518. package/types/ui/Menu.d.ts +0 -26
  519. package/types/ui/Modal.d.ts +0 -19
  520. package/types/ui/Model/AdminPanel.d.ts +0 -31
  521. package/types/ui/Model/Edit.d.ts +0 -16
  522. package/types/ui/Model/EditModal.d.ts +0 -52
  523. package/types/ui/Model/EditWrapper.d.ts +0 -13
  524. package/types/ui/Model/LoadInit.d.ts +0 -10
  525. package/types/ui/Model/New.d.ts +0 -16
  526. package/types/ui/Model/NewWrapper.d.ts +0 -13
  527. package/types/ui/Model/NewWrapper_Client.d.ts +0 -13
  528. package/types/ui/Model/Remove.d.ts +0 -13
  529. package/types/ui/Model/RemoveWrapper.d.ts +0 -12
  530. package/types/ui/Model/SureToRemove.d.ts +0 -11
  531. package/types/ui/Model/View.d.ts +0 -19
  532. package/types/ui/Model/ViewEditModal.d.ts +0 -12
  533. package/types/ui/Model/ViewModal.d.ts +0 -14
  534. package/types/ui/Model/ViewWrapper.d.ts +0 -12
  535. package/types/ui/Model/index.d.ts +0 -16
  536. package/types/ui/Model/index_.d.ts +0 -14
  537. package/types/ui/Model.d.ts +0 -1
  538. package/types/ui/More.d.ts +0 -12
  539. package/types/ui/ObjectId.d.ts +0 -5
  540. package/types/ui/Pagination.d.ts +0 -20
  541. package/types/ui/Popconfirm.d.ts +0 -28
  542. package/types/ui/Portal.d.ts +0 -6
  543. package/types/ui/Radio.d.ts +0 -19
  544. package/types/ui/RecentTime.d.ts +0 -12
  545. package/types/ui/Refresh.d.ts +0 -7
  546. package/types/ui/ScreenNavigator.d.ts +0 -18
  547. package/types/ui/Select.d.ts +0 -43
  548. package/types/ui/Signal/Arg.d.ts +0 -78
  549. package/types/ui/Signal/Doc.d.ts +0 -33
  550. package/types/ui/Signal/Listener.d.ts +0 -9
  551. package/types/ui/Signal/Message.d.ts +0 -23
  552. package/types/ui/Signal/Object.d.ts +0 -20
  553. package/types/ui/Signal/PubSub.d.ts +0 -24
  554. package/types/ui/Signal/Request.d.ts +0 -8
  555. package/types/ui/Signal/Response.d.ts +0 -14
  556. package/types/ui/Signal/RestApi.d.ts +0 -40
  557. package/types/ui/Signal/WebSocket.d.ts +0 -11
  558. package/types/ui/Signal/index.d.ts +0 -18
  559. package/types/ui/Signal/makeExample.d.ts +0 -4
  560. package/types/ui/Signal/style.d.ts +0 -15
  561. package/types/ui/Signal.d.ts +0 -1
  562. package/types/ui/System/CSR.d.ts +0 -32
  563. package/types/ui/System/Client.d.ts +0 -47
  564. package/types/ui/System/Common.d.ts +0 -47
  565. package/types/ui/System/DevModeToggle.d.ts +0 -1
  566. package/types/ui/System/Gtag.d.ts +0 -4
  567. package/types/ui/System/Messages.d.ts +0 -1
  568. package/types/ui/System/Reconnect.d.ts +0 -1
  569. package/types/ui/System/Root.d.ts +0 -6
  570. package/types/ui/System/SSR.d.ts +0 -24
  571. package/types/ui/System/SelectLanguage.d.ts +0 -5
  572. package/types/ui/System/ThemeToggle.d.ts +0 -4
  573. package/types/ui/System/index.d.ts +0 -12
  574. package/types/ui/System.d.ts +0 -1
  575. package/types/ui/Tab/Menu.d.ts +0 -12
  576. package/types/ui/Tab/Menus.d.ts +0 -6
  577. package/types/ui/Tab/Panel.d.ts +0 -8
  578. package/types/ui/Tab/Provider.d.ts +0 -10
  579. package/types/ui/Tab/context.d.ts +0 -9
  580. package/types/ui/Tab/index.d.ts +0 -7
  581. package/types/ui/Tab.d.ts +0 -1
  582. package/types/ui/Table.d.ts +0 -41
  583. package/types/ui/ToggleSelect.d.ts +0 -33
  584. package/types/ui/Unauthorized.d.ts +0 -9
  585. package/types/ui/animated.d.ts +0 -5
  586. package/types/ui/fontCss.d.ts +0 -11
  587. package/types/ui/index.d.ts +0 -44
  588. package/types/ui.d.ts +0 -1
  589. package/types/webkit/bootCsr.d.ts +0 -16
  590. package/types/webkit/createRobotPage.d.ts +0 -15
  591. package/types/webkit/createSitemapPage.d.ts +0 -4
  592. package/types/webkit/index.d.ts +0 -17
  593. package/types/webkit/lazy.d.ts +0 -11
  594. package/types/webkit/types.d.ts +0 -7
  595. package/types/webkit/useCamera.d.ts +0 -19
  596. package/types/webkit/useCodepush.d.ts +0 -16
  597. package/types/webkit/useContact.d.ts +0 -11
  598. package/types/webkit/useCsrValues.d.ts +0 -30
  599. package/types/webkit/useDebounce.d.ts +0 -2
  600. package/types/webkit/useFetch.d.ts +0 -18
  601. package/types/webkit/useGeoLocation.d.ts +0 -8
  602. package/types/webkit/useHistory.d.ts +0 -23
  603. package/types/webkit/useInterval.d.ts +0 -2
  604. package/types/webkit/useLocation.d.ts +0 -8
  605. package/types/webkit/usePurchase.d.ts +0 -19
  606. package/types/webkit/usePushNoti.d.ts +0 -7
  607. package/types/webkit/useThrottle.d.ts +0 -2
  608. package/types/webkit.d.ts +0 -1
@@ -1,66 +0,0 @@
1
- export interface RouteOptions {
2
- scrollToTop?: boolean;
3
- }
4
- export interface RouterInstance {
5
- push: (href: string, routeOptions?: RouteOptions) => void;
6
- replace: (href: string, routeOptions?: RouteOptions) => void;
7
- back: (routeOptions?: RouteOptions) => void;
8
- refresh: () => void;
9
- }
10
- interface RouterOptions {
11
- prefix?: string;
12
- lang?: string;
13
- }
14
- interface SsrServerRouterOption extends RouterOptions {
15
- type: "ssr";
16
- side: "server";
17
- }
18
- interface SsrClientRouterOption extends RouterOptions {
19
- type: "ssr";
20
- side: "client";
21
- router: RouterInstance;
22
- }
23
- interface CSRClientRouterOption extends RouterOptions {
24
- type: "csr";
25
- router: RouterInstance;
26
- }
27
- export type RedirectMethod = "replace" | "push";
28
- export declare class AkanRedirectError extends Error {
29
- readonly location: string;
30
- readonly method: RedirectMethod;
31
- readonly digest = "AKAN_REDIRECT";
32
- constructor(location: string, method?: RedirectMethod);
33
- }
34
- export declare class AkanNotFoundError extends Error {
35
- readonly digest = "AKAN_NOT_FOUND";
36
- constructor();
37
- }
38
- declare global {
39
- var __AKAN_ROUTER__: Router | undefined;
40
- }
41
- export declare const getPathInfo: (requestUrl: string, lang: string, prefix: string) => {
42
- path: string;
43
- pathname: string;
44
- hash: string;
45
- search: string;
46
- href: string;
47
- };
48
- declare class Router {
49
- #private;
50
- isInitialized: boolean;
51
- init(options: SsrClientRouterOption | SsrServerRouterOption | CSRClientRouterOption): void;
52
- push(href: string, routeOptions?: RouteOptions): never;
53
- replace(href: string, routeOptions?: RouteOptions): never;
54
- back(routeOptions?: RouteOptions): never;
55
- refresh(): never;
56
- redirect(href: string): never;
57
- notFound(): never;
58
- setLang(lang: string): never;
59
- getPath(pathname?: string): string;
60
- getFullPath(withLang?: boolean): string;
61
- getPrefix(): string;
62
- getPrefixedPath(path: string): string;
63
- }
64
- /** Akan navigation singleton that normalizes language/base-path prefixes before routing. */
65
- export declare const router: Router;
66
- export {};
@@ -1,19 +0,0 @@
1
- declare global {
2
- var __AKAN_RSC_CLEAR_CACHE__: (() => void) | undefined;
3
- var __AKAN_RSC_NAVIGATE__: ((href: string, options?: {
4
- replace?: boolean;
5
- scrollToTop?: boolean;
6
- }) => Promise<void>) | undefined;
7
- }
8
- export declare const clearRscNavigationCache: () => void;
9
- export declare const navigateRsc: (href: string, options?: {
10
- replace?: boolean;
11
- scrollToTop?: boolean;
12
- }) => Promise<void> | undefined;
13
- export declare const useRscNavigation: () => {
14
- clearCache: () => void;
15
- navigate: (href: string, options?: {
16
- replace?: boolean;
17
- scrollToTop?: boolean;
18
- }) => Promise<void> | undefined;
19
- };
@@ -1,5 +0,0 @@
1
- export declare const storage: {
2
- getItem: (key: string) => Promise<string | null | undefined>;
3
- setItem: (key: string, value: string) => Promise<void>;
4
- removeItem: (key: string) => Promise<void>;
5
- };
@@ -1,18 +0,0 @@
1
- export interface Dictionary {
2
- [key: string]: {
3
- [key: string]: unknown;
4
- };
5
- }
6
- export interface AllDictionary {
7
- [key: string]: Dictionary;
8
- }
9
- export declare class Translator {
10
- #private;
11
- static setActiveLocale(lang: string | undefined): void;
12
- static getActiveLocale(): string | undefined;
13
- constructor(dictionary: Record<string, Record<string, Record<string, unknown>>>);
14
- hasDictionary(lang: string): boolean;
15
- static seed(lang: string, dict: Dictionary | undefined): void;
16
- translate(lang: string, key: string, param?: Record<string, string | number>): string;
17
- getDictionary(lang: string): Promise<Dictionary>;
18
- }
@@ -1,145 +0,0 @@
1
- import type { BaseInsight } from "akanjs/constant";
2
- import type { FetchInitForm, SliceMeta } from "akanjs/fetch";
3
- import { type ClassValue } from "clsx";
4
- import type { ReactElement, ReactNode } from "react";
5
- /** Composes class names with the shared clsx implementation. */
6
- export declare const clsx: (...args: ClassValue[]) => string;
7
- export type ReactFontStyle = "normal" | "italic" | "oblique";
8
- export type ReactFontDisplay = "auto" | "block" | "swap" | "fallback" | "optional";
9
- export type ReactFontCategory = "monospace" | "sans-serif" | "serif" | "display";
10
- export type ReactFontSubset = "latin" | "latin-ext" | "ks-x-1001" | "auto" | (string & {});
11
- export interface ReactFontDeclaration {
12
- prop: string;
13
- value: string;
14
- }
15
- export interface ReactFontPath {
16
- src: string;
17
- weight: number | string;
18
- style?: ReactFontStyle;
19
- declarations?: ReactFontDeclaration[];
20
- }
21
- export interface ReactFontFace {
22
- font: ReactFont;
23
- path: ReactFontPath;
24
- src: string;
25
- weight: number | string;
26
- style: ReactFontStyle;
27
- optimizedSrc: string;
28
- }
29
- export declare const loadFonts: <T extends ReactFont[]>(fonts: T) => T;
30
- export declare const getFontVariableName: (font: ReactFont) => string;
31
- export declare const getFontFallbackName: (font: ReactFont) => string;
32
- export declare const isFontOptimizationEnabled: (font: ReactFont) => boolean;
33
- export declare const isFontPreloadEnabled: (font: ReactFont) => boolean;
34
- export declare const getFontStyles: (font: ReactFont) => ReactFontStyle[];
35
- export declare const getFontFaces: (font: ReactFont) => ReactFontFace[];
36
- export declare const getOptimizedFontSrc: (font: ReactFont, path: ReactFontPath) => string;
37
- /** Common props for list/zone components that render many model records. */
38
- export interface ModelsProps<M extends {
39
- id: string;
40
- }> {
41
- className?: string;
42
- slice?: SliceMeta;
43
- query?: Record<string, unknown>;
44
- init?: FetchInitForm<any, any>;
45
- onClickItem?: (model: M) => unknown;
46
- }
47
- /** Common props for unit/view components that render one named model record. */
48
- export type ModelProps<T extends string, L extends {
49
- id: string;
50
- }> = {
51
- [key in T]: L;
52
- } & {
53
- className?: string;
54
- slice?: SliceMeta;
55
- onClick?: (model: L) => unknown;
56
- actions?: DataAction[];
57
- columns?: DataColumn<L>[];
58
- href?: string;
59
- };
60
- export interface ModelDashboardProps<Summary> {
61
- className?: string;
62
- summary: Summary;
63
- queryMap?: Record<string, unknown>;
64
- columns?: (keyof Summary)[];
65
- hidePresents?: boolean;
66
- slice?: SliceMeta;
67
- }
68
- export interface ModelInsightProps<Insight = BaseInsight> {
69
- className?: string;
70
- insight: Insight;
71
- slice?: SliceMeta;
72
- }
73
- export interface ModelEditProps {
74
- slice?: SliceMeta;
75
- }
76
- export interface ModelViewProps {
77
- id?: string;
78
- slice?: SliceMeta;
79
- }
80
- export type DataAction = "edit" | "view" | "remove" | null | undefined | ReactElement;
81
- export interface DataTool {
82
- key: string;
83
- render: () => ReactNode;
84
- }
85
- export type DataColumn<L> = string | {
86
- key: keyof L;
87
- title?: string;
88
- value?: (value: any, model: L) => string | number | boolean | undefined | null | object;
89
- responsive?: boolean;
90
- render?: (value: any, model: L) => ReactNode;
91
- only?: "user" | "admin";
92
- };
93
- export interface DataMenuItem {
94
- key: string;
95
- icon: ReactNode;
96
- label?: string;
97
- render: () => ReactNode;
98
- }
99
- export interface DataMenu {
100
- [key: string]: DataMenuItem;
101
- }
102
- export interface UserMenuItem {
103
- title: string | ReactNode;
104
- icon?: ReactNode;
105
- path: string;
106
- query?: Record<string, unknown>;
107
- children?: UserMenuItem[];
108
- onClick?: () => void;
109
- }
110
- export interface MenuItem {
111
- icon?: ReactNode;
112
- title: string | ReactNode;
113
- href: string;
114
- hide?: "mobile" | "pc";
115
- children?: MenuItem[];
116
- onClick?: () => void;
117
- }
118
- export interface ReactFont {
119
- name: string;
120
- default?: boolean;
121
- paths: ReactFontPath[];
122
- styles?: ReactFontStyle[];
123
- display?: ReactFontDisplay;
124
- preload?: boolean;
125
- fallbacks?: string[];
126
- fallbackName?: string;
127
- subsets?: ReactFontSubset[];
128
- subsetText?: string;
129
- subsetFiles?: string[];
130
- subset?: false;
131
- category?: ReactFontCategory;
132
- variable?: string;
133
- className?: string;
134
- declarations?: ReactFontDeclaration[];
135
- adjustFontFallback?: boolean;
136
- optimize?: boolean;
137
- }
138
- /** Font declaration consumed by Akan layout modules and font optimization. */
139
- export type Font = ReactFont;
140
- export interface RootLayoutProps {
141
- children: ReactNode;
142
- params: {
143
- lang: "en" | "ko" | (string & {});
144
- };
145
- }
@@ -1 +0,0 @@
1
- export { Err, fetch, msg, sig, usePage } from "./clientRuntime.d.ts";
package/types/client.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from "./client/index.d.ts";
@@ -1,41 +0,0 @@
1
- declare const logLevels: readonly ["trace", "verbose", "debug", "log", "info", "warn", "error"];
2
- export type LogLevel = (typeof logLevels)[number];
3
- export interface LoggerSinkEntry {
4
- stream: "stdout" | "stderr";
5
- level?: LogLevel;
6
- message: string;
7
- plainMessage: string;
8
- }
9
- export type LoggerSink = (entry: LoggerSinkEntry) => void | Promise<void>;
10
- /** Log-level aware logger used by Akan runtime, CLI, and application services. */
11
- export declare class Logger {
12
- #private;
13
- static level: LogLevel;
14
- static fileLevel: LogLevel;
15
- static setLevel(level: LogLevel): void;
16
- static addSink(sink: LoggerSink): () => void;
17
- static removeSink(sink: LoggerSink): void;
18
- static setFileLevel(level: LogLevel): void;
19
- static isVerbose(): boolean;
20
- name?: string;
21
- constructor(name?: string);
22
- trace(msg: string, context?: string, name?: string): void;
23
- verbose(msg: string, context?: string, name?: string): void;
24
- debug(msg: string, context?: string, name?: string): void;
25
- log(msg: string, context?: string, name?: string): void;
26
- info(msg: string, context?: string, name?: string): void;
27
- warn(msg: string, context?: string, name?: string): void;
28
- error(msg: string, context?: string, name?: string): void;
29
- raw(msg: string, method?: "console" | "process"): void;
30
- rawLog(msg: string, method?: "console" | "process"): void;
31
- static trace(msg: string, context?: string, name?: string): void;
32
- static verbose(msg: string, context?: string, name?: string): void;
33
- static debug(msg: string, context?: string, name?: string): void;
34
- static log(msg: string, context?: string, name?: string): void;
35
- static info(msg: string, context?: string, name?: string): void;
36
- static warn(msg: string, context?: string, name?: string): void;
37
- static error(msg: string, context?: string, name?: string): void;
38
- static rawLog(msg?: string, method?: "console" | "process", outputStream?: "log" | "error"): void;
39
- static raw(msg?: string, method?: "console" | "process", outputStream?: "log" | "error"): void;
40
- }
41
- export {};
@@ -1,3 +0,0 @@
1
- type Cls<T = unknown> = new (...args: never[]) => T;
2
- export declare const applyMixins: (derivedCtor: Cls, constructors: (Cls | undefined)[], avoidKeys?: Set<string>) => Cls<unknown>;
3
- export {};
@@ -1,2 +0,0 @@
1
- /** Uppercases only the first character of a string. */
2
- export declare const capitalize: (str: string) => string;
@@ -1,4 +0,0 @@
1
- export declare const deepObjectify: <T = unknown>(obj: T | null | undefined, option?: {
2
- serializable?: boolean;
3
- convertDate?: "string" | "number";
4
- }) => T;
@@ -1,28 +0,0 @@
1
- interface FileUploadSerializedEndpoint {
2
- fileUpload?: boolean;
3
- }
4
- interface FileUploadSerializedSignal {
5
- prefix?: string;
6
- endpoint: Record<string, FileUploadSerializedEndpoint>;
7
- }
8
- /** Framework-owned file-upload contract shared by client-safe packages. */
9
- export declare const fileUploadContract: {
10
- readonly fields: {
11
- readonly files: "files";
12
- readonly metas: "metas";
13
- readonly type: "type";
14
- readonly parentId: "parentId";
15
- };
16
- readonly buildMetas: (fileList: FileList) => {
17
- lastModifiedAt: string;
18
- size: number;
19
- }[];
20
- };
21
- export interface FileUploadCapability {
22
- refName: string;
23
- endpointKey: string;
24
- prefix?: string;
25
- }
26
- /** Discovers the upload endpoint marked with `{ fileUpload: true }` from the serialized signal. */
27
- export declare const resolveFileUploadCapability: (serializedSignal: Record<string, FileUploadSerializedSignal>) => FileUploadCapability | null;
28
- export {};
@@ -1 +0,0 @@
1
- export declare const formatNumber: (numString: string) => string;
@@ -1,2 +0,0 @@
1
- /** Formats supported phone-number strings into dashed display form. */
2
- export declare const formatPhone: (value: string) => string;
@@ -1,5 +0,0 @@
1
- type Cls<T = unknown> = new (...args: never[]) => T;
2
- export declare const getAllPropertyDescriptors: (objRef: Cls) => {
3
- [key: string]: PropertyDescriptor;
4
- };
5
- export {};
@@ -1,6 +0,0 @@
1
- export type AkanHmrPhase = "refresh-import" | "react-refresh" | null;
2
- declare global {
3
- var __AKAN_HMR_PHASE__: AkanHmrPhase | undefined;
4
- }
5
- export declare function getAkanHmrPhase(): AkanHmrPhase;
6
- export declare function isAkanHmrApplying(): boolean;
@@ -1,20 +0,0 @@
1
- export interface HttpClientOptions {
2
- baseUrl?: string;
3
- headers?: HeadersInit;
4
- timeout?: number;
5
- }
6
- export interface HttpRequestOptions extends Omit<RequestInit, "body" | "headers" | "method"> {
7
- headers?: HeadersInit;
8
- timeout?: number;
9
- }
10
- export declare class HttpClient {
11
- #private;
12
- readonly baseUrl: string;
13
- readonly headers: Headers;
14
- readonly timeout: number | undefined;
15
- constructor(options?: string | HttpClientOptions);
16
- get<Returns>(url: string, options?: HttpRequestOptions): Promise<Returns>;
17
- post<Returns>(url: string, data?: unknown, options?: HttpRequestOptions): Promise<Returns>;
18
- put<Returns>(url: string, data?: unknown, options?: HttpRequestOptions): Promise<Returns>;
19
- delete<Returns>(url: string, options?: HttpRequestOptions): Promise<Returns>;
20
- }
@@ -1,29 +0,0 @@
1
- export { applyMixins } from "./applyMixins.d.ts";
2
- export { capitalize } from "./capitalize.d.ts";
3
- export { deepObjectify } from "./deepObjectify.d.ts";
4
- export { type FileUploadCapability, fileUploadContract, resolveFileUploadCapability, } from "./fileUpload.d.ts";
5
- export { formatNumber } from "./formatNumber.d.ts";
6
- export { formatPhone } from "./formatPhone.d.ts";
7
- export { getAllPropertyDescriptors } from "./getAllPropertyDescriptors.d.ts";
8
- export { type AkanHmrPhase, getAkanHmrPhase, isAkanHmrApplying } from "./hmrPhase.d.ts";
9
- export { HttpClient } from "./httpClient.d.ts";
10
- export { isDayjs } from "./isDayjs.d.ts";
11
- export { isEmail } from "./isEmail.d.ts";
12
- export { isPhoneNumber } from "./isPhoneNumber.d.ts";
13
- export { isQueryEqual } from "./isQueryEqual.d.ts";
14
- export { isValidDate } from "./isValidDate.d.ts";
15
- export { decodeJwtPayload } from "./jwtDecode.d.ts";
16
- export { Logger, type LoggerSink, type LoggerSinkEntry, type LogLevel } from "./Logger.d.ts";
17
- export { type AkanI18nConfig, type AkanI18nConfigInput, DEFAULT_AKAN_I18N, parseAkanI18nEnv, resolveAkanI18nConfig, } from "./localeConfig.d.ts";
18
- export { lowerlize } from "./lowerlize.d.ts";
19
- export { mergeVersion } from "./mergeVersion.d.ts";
20
- export { objectify } from "./objectify.d.ts";
21
- export { pathGet } from "./pathGet.d.ts";
22
- export { pathSet } from "./pathSet.d.ts";
23
- export { randomPick } from "./randomPick.d.ts";
24
- export { randomPicks } from "./randomPicks.d.ts";
25
- export { assertUniqueRoutePatterns, compareRouteSpecificity, isRouteSourceFile, isSpecialRouteLeaf, matchRoutePattern, normalizeRoutePattern, type ParsedRouteModuleKey, parseRouteModuleKey, type RouteModuleKind, routeSegmentToPatternPart, routeSegmentToTreePath, tryParseRouteModuleKey, type ValidatePageSourceFileOptions, type ValidateSubRoutePageKeyOptions, validatePageSourceFile, validateSubRoutePageKey, } from "./routeConvention.d.ts";
26
- export { sleep } from "./sleep.d.ts";
27
- export { splitVersion } from "./splitVersion.d.ts";
28
- export { getBasePathFromPathname, parseBasePaths } from "./subRoute.d.ts";
29
- export type * from "./types.d.ts";
@@ -1,2 +0,0 @@
1
- import dayjs from "dayjs";
2
- export declare const isDayjs: typeof dayjs.isDayjs;
@@ -1,2 +0,0 @@
1
- /** Returns true when the value matches the email format accepted by Akan forms. */
2
- export declare const isEmail: (email?: string | null) => boolean;
@@ -1,2 +0,0 @@
1
- /** Returns true when the value matches Akan's supported dashed phone-number format. */
2
- export declare const isPhoneNumber: (phone?: string | null) => boolean;
@@ -1 +0,0 @@
1
- export declare const isQueryEqual: (value1: unknown, value2: unknown) => boolean;
@@ -1,2 +0,0 @@
1
- import { type Dayjs } from "dayjs";
2
- export declare const isValidDate: (d: string | Date | Dayjs) => boolean;
@@ -1,2 +0,0 @@
1
- /** Decodes a JWT payload without validating its signature. */
2
- export declare function decodeJwtPayload<T = unknown>(jwt: string): T;
@@ -1,11 +0,0 @@
1
- export interface AkanI18nConfig {
2
- defaultLocale: string;
3
- locales: string[];
4
- }
5
- export interface AkanI18nConfigInput {
6
- defaultLocale?: string;
7
- locales?: readonly string[];
8
- }
9
- export declare const DEFAULT_AKAN_I18N: AkanI18nConfig;
10
- export declare function resolveAkanI18nConfig(input?: AkanI18nConfigInput): AkanI18nConfig;
11
- export declare function parseAkanI18nEnv(env?: Record<string, string | undefined>): AkanI18nConfig;
@@ -1,2 +0,0 @@
1
- /** Lowercases only the first character of a string. */
2
- export declare const lowerlize: (str: string) => string;
@@ -1,10 +0,0 @@
1
- /**
2
- *
3
- * semantic version 규격에 맞게 조합하는 함수
4
- * https://semver.org/
5
- * @param major 릴리즈(플랫폼(google,apple,etc...)에 올라가 있는) 버전
6
- * @param minor 릴리즈(플랫폼(google,apple,etc...)에 올라가 있는) 버전
7
- * @param patch 코드푸시 (Framework 자체 버전)
8
- * @returns `major.minor.patch` 형식으로 조합된 버전
9
- */
10
- export declare const mergeVersion: (major: number, minor: number, patch: number) => string;
@@ -1 +0,0 @@
1
- export declare const objectify: <T extends object>(obj: T, keys?: (keyof T)[]) => Partial<T>;
@@ -1 +0,0 @@
1
- export declare const pathGet: (path: string | (string | number)[], obj: unknown, separator?: string, fallback?: unknown) => unknown;
@@ -1,3 +0,0 @@
1
- type PathSegment = string | number;
2
- export declare const pathSet: <T>(obj: T, path: string | readonly PathSegment[], value: unknown) => T;
3
- export {};
@@ -1 +0,0 @@
1
- export declare const randomPick: <T = unknown>(arr: T[] | readonly T[]) => T;
@@ -1 +0,0 @@
1
- export declare const randomPicks: <T>(arr: T[] | readonly T[], count?: number, allowDuplicate?: boolean) => T[];
@@ -1,35 +0,0 @@
1
- export type RouteModuleKind = "page" | "layout";
2
- export interface ParsedRouteModuleKey {
3
- key: string;
4
- kind: RouteModuleKind;
5
- routeSegments: string[];
6
- moduleSegments: string[];
7
- sourceRouteSegments: string[];
8
- ext: string;
9
- leaf: string;
10
- pattern: string;
11
- isSpecialRoute: boolean;
12
- isInternalRootLayout: boolean;
13
- }
14
- export interface ValidateSubRoutePageKeyOptions {
15
- appName?: string;
16
- filePath?: string;
17
- }
18
- export interface ValidatePageSourceFileOptions {
19
- filePath?: string;
20
- }
21
- export declare function isRouteSourceFile(filePath: string): boolean;
22
- export declare function validatePageSourceFile(filePath: string, options?: ValidatePageSourceFileOptions): boolean;
23
- export declare function validateSubRoutePageKey(key: string, basePaths: Iterable<string>, options?: ValidateSubRoutePageKeyOptions): void;
24
- export declare function parseRouteModuleKey(key: string): ParsedRouteModuleKey;
25
- export declare function isSpecialRouteLeaf(leaf: string): boolean;
26
- export declare function tryParseRouteModuleKey(key: string): ParsedRouteModuleKey | null;
27
- export declare function normalizeRoutePattern(segments: string[]): string;
28
- export declare function routeSegmentToPatternPart(segment: string): string;
29
- export declare function routeSegmentToTreePath(segment: string): string;
30
- export declare function compareRouteSpecificity(a: string, b: string): number;
31
- export declare function matchRoutePattern(pattern: string, pathname: string): Record<string, string> | null;
32
- export declare function assertUniqueRoutePatterns(entries: {
33
- key: string;
34
- pattern: string;
35
- }[]): void;
@@ -1,2 +0,0 @@
1
- /** Resolves after the requested delay in milliseconds. */
2
- export declare const sleep: (ms: number) => Promise<unknown>;
@@ -1,11 +0,0 @@
1
- /**
2
- *
3
- * semantic version 규격에 맞게 major, minor, patch로 나누는 함수
4
- * https://semver.org/
5
- * @params version `major.minor.patch` 형식으로 조합된 버전
6
- */
7
- export declare const splitVersion: (version: string) => {
8
- major: string;
9
- minor: string;
10
- patch: string;
11
- };
@@ -1,7 +0,0 @@
1
- import type { AkanI18nConfig } from "./localeConfig.d.ts";
2
- export declare const parseBasePaths: (value: string | string[] | Set<string> | undefined | null) => string[];
3
- export declare const getBasePathFromPathname: (pathname: string, { basePaths, i18n, headerBasePath, }: {
4
- basePaths: Iterable<string>;
5
- i18n?: Pick<AkanI18nConfig, "locales" | "defaultLocale">;
6
- headerBasePath?: string | null;
7
- }) => string | null;
@@ -1,14 +0,0 @@
1
- export interface FetchPolicy<Returns = unknown> {
2
- cache?: boolean | number;
3
- crystalize?: boolean;
4
- origin?: string;
5
- onError?: (error: string) => void;
6
- token?: string;
7
- partial?: string[];
8
- timeout?: number;
9
- }
10
- export type SnakeCase<S extends string> = S extends `${infer T}_${infer U}` ? `${Lowercase<T>}_${SnakeCase<U>}` : S;
11
- export type SnakeCaseObj<T> = {
12
- [K in keyof T as SnakeCase<K & string>]: T[K] extends object ? SnakeCaseObj<T[K]> : T[K];
13
- };
14
- export type SnakeMsg<Msg> = SnakeCaseObj<Msg>;
package/types/common.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from "./common/index.d.ts";