akanjs 2.2.4 → 2.2.6
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.
- package/CHANGELOG.md +9 -0
- package/base/base.ts +1 -1
- package/base/primitiveRegistry.ts +6 -10
- package/base/types.ts +1 -4
- package/capacitor.base.config.ts +1 -1
- package/client/capacitor.ts +1 -1
- package/client/cookie.ts +2 -4
- package/client/createFont.ts +2 -2
- package/client/csrTypes.ts +2 -8
- package/client/makePageProto.tsx +4 -10
- package/client/router.ts +3 -8
- package/client/translator.ts +4 -12
- package/common/Logger.ts +1 -4
- package/common/formatNumber.ts +2 -5
- package/common/hmrPhase.ts +1 -1
- package/common/isValidDate.ts +0 -3
- package/constant/fieldInfo.ts +3 -3
- package/constant/purify.ts +1 -2
- package/constant/types.ts +0 -4
- package/constant/via.ts +6 -12
- package/document/databaseRegistry.ts +0 -8
- package/document/into.ts +0 -1
- package/fetch/client/fetchClient.ts +1 -6
- package/fetch/client/httpClient.ts +1 -2
- package/fetch/fetchType/appliedReturn.type.ts +0 -1
- package/fetch/fetchType/endpointFetch.type.ts +0 -3
- package/fetch/fetchType/sliceFetch.type.ts +0 -8
- package/fetch/requestStorage.ts +2 -10
- package/package.json +67 -24
- package/server/akanApp.ts +2 -5
- package/server/akanLib.ts +0 -1
- package/server/akanServer.ts +3 -4
- package/server/artifact/builderRpc.ts +2 -2
- package/server/artifact/ipcTypes.ts +0 -4
- package/server/decorators.ts +1 -1
- package/server/di/diLifecycle.ts +3 -6
- package/server/hmr/clientScript.ts +2 -20
- package/server/hmr/devHmrController.ts +0 -4
- package/server/processMetricsCollector.ts +1 -1
- package/server/resolver/database.resolver.ts +2 -2
- package/server/resolver/resolver.contract.fixture.ts +0 -1
- package/server/resolver/signal.resolver.ts +2 -10
- package/server/routing/apiRouter.ts +2 -4
- package/server/rscClient.tsx +1 -7
- package/server/rscWorkerHost.ts +11 -33
- package/server/ssrFromRscRenderer.tsx +3 -35
- package/server/types/react-server-dom-webpack.d.ts +1 -7
- package/server/vendor/react-dom-client.ts +1 -1
- package/server/vendor/react-dom.ts +2 -3
- package/server/vendor/react-jsx-dev-runtime.ts +1 -1
- package/server/vendor/react-jsx-runtime.ts +1 -1
- package/server/vendor/react-refresh-runtime.ts +2 -2
- package/server/vendor/react-server-dom-webpack-client-browser.ts +1 -1
- package/server/vendor/react.ts +2 -9
- package/server/vendor/scheduler.ts +2 -3
- package/server/webRouter.ts +2 -3
- package/service/adapt.ts +1 -5
- package/service/predefinedAdaptor/cache.adaptor.ts +1 -2
- package/service/predefinedAdaptor/database.adaptor.ts +2 -2
- package/service/predefinedAdaptor/solidSqlite.ts +1 -2
- package/service/predefinedAdaptor/websocket.adaptor.ts +3 -15
- package/service/serve.ts +3 -7
- package/signal/base.signal.ts +0 -1
- package/signal/endpointInfo.ts +0 -7
- package/signal/intercept.ts +0 -2
- package/signal/middleware.ts +1 -2
- package/signal/serverSignal.ts +1 -15
- package/signal/signalContext.ts +1 -1
- package/signal/signalRegistry.ts +0 -5
- package/signal/sliceInfo.ts +0 -3
- package/signal/trace.ts +0 -11
- package/signal/types.ts +2 -11
- package/store/action.ts +3 -5
- package/store/stateBuilder.ts +0 -2
- package/store/stateInfo.ts +1 -2
- package/store/types.ts +1 -1
- package/test/playwright.config.base.ts +5 -28
- package/test/playwright.pageAgent.ts +1 -1
- package/test/sampleOf.ts +1 -1
- package/test/testServer.ts +1 -1
- package/types/base/base.d.ts +53 -0
- package/types/base/baseEnv.d.ts +68 -0
- package/types/base/index.d.ts +6 -0
- package/types/base/primitiveRegistry.d.ts +134 -0
- package/types/base/symbols.d.ts +11 -0
- package/types/base/types.d.ts +68 -0
- package/types/base/utils.d.ts +4 -0
- package/types/base.d.ts +1 -0
- package/types/capacitor.base.config.d.ts +3 -0
- package/types/client/capacitor.d.ts +233 -0
- package/types/client/clientRuntime.d.ts +63 -0
- package/types/client/cookie.d.ts +33 -0
- package/types/client/createFont.d.ts +6 -0
- package/types/client/csrTypes.d.ts +262 -0
- package/types/client/decorators.d.ts +7 -0
- package/types/client/device.d.ts +41 -0
- package/types/client/fetch.d.ts +1 -0
- package/types/client/index.d.ts +14 -0
- package/types/client/locale.d.ts +5 -0
- package/types/client/makePageProto.d.ts +17002 -0
- package/types/client/router.d.ts +66 -0
- package/types/client/rscNavigation.d.ts +19 -0
- package/types/client/storage.d.ts +5 -0
- package/types/client/translator.d.ts +18 -0
- package/types/client/types.d.ts +145 -0
- package/types/client/useClient.d.ts +1 -0
- package/types/client.d.ts +1 -0
- package/types/common/Logger.d.ts +41 -0
- package/types/common/applyMixins.d.ts +3 -0
- package/types/common/capitalize.d.ts +2 -0
- package/types/common/deepObjectify.d.ts +4 -0
- package/types/common/fileUpload.d.ts +28 -0
- package/types/common/formatNumber.d.ts +1 -0
- package/types/common/formatPhone.d.ts +2 -0
- package/types/common/getAllPropertyDescriptors.d.ts +5 -0
- package/types/common/hmrPhase.d.ts +6 -0
- package/types/common/httpClient.d.ts +20 -0
- package/types/common/index.d.ts +29 -0
- package/types/common/isDayjs.d.ts +2 -0
- package/types/common/isEmail.d.ts +2 -0
- package/types/common/isPhoneNumber.d.ts +2 -0
- package/types/common/isQueryEqual.d.ts +1 -0
- package/types/common/isValidDate.d.ts +2 -0
- package/types/common/jwtDecode.d.ts +2 -0
- package/types/common/localeConfig.d.ts +11 -0
- package/types/common/lowerlize.d.ts +2 -0
- package/types/common/mergeVersion.d.ts +10 -0
- package/types/common/objectify.d.ts +1 -0
- package/types/common/pathGet.d.ts +1 -0
- package/types/common/pathSet.d.ts +3 -0
- package/types/common/randomPick.d.ts +1 -0
- package/types/common/randomPicks.d.ts +1 -0
- package/types/common/routeConvention.d.ts +35 -0
- package/types/common/sleep.d.ts +2 -0
- package/types/common/splitVersion.d.ts +11 -0
- package/types/common/subRoute.d.ts +7 -0
- package/types/common/types.d.ts +14 -0
- package/types/common.d.ts +1 -0
- package/types/constant/constantRegistry.d.ts +89 -0
- package/types/constant/crystalize.d.ts +4 -0
- package/types/constant/deserialize.d.ts +7 -0
- package/types/constant/fieldInfo.d.ts +153 -0
- package/types/constant/getDefault.d.ts +3 -0
- package/types/constant/immerify.d.ts +2 -0
- package/types/constant/index.d.ts +10 -0
- package/types/constant/purify.d.ts +12 -0
- package/types/constant/serialize.d.ts +11 -0
- package/types/constant/types.d.ts +77 -0
- package/types/constant/via.d.ts +52 -0
- package/types/constant.d.ts +1 -0
- package/types/dictionary/base.dictionary.d.ts +1 -0
- package/types/dictionary/dictInfo.d.ts +206 -0
- package/types/dictionary/dictionary.d.ts +11 -0
- package/types/dictionary/index.d.ts +4 -0
- package/types/dictionary/locale.d.ts +128 -0
- package/types/dictionary/trans.d.ts +82 -0
- package/types/dictionary.d.ts +1 -0
- package/types/document/by.d.ts +20 -0
- package/types/document/dataLoader.d.ts +36 -0
- package/types/document/database.d.ts +96 -0
- package/types/document/databaseRegistry.d.ts +36 -0
- package/types/document/documentQuery.d.ts +105 -0
- package/types/document/documentSchema.d.ts +33 -0
- package/types/document/filterMeta.d.ts +84 -0
- package/types/document/index.d.ts +11 -0
- package/types/document/into.d.ts +65 -0
- package/types/document/loaderInfo.d.ts +35 -0
- package/types/document/schema.d.ts +5 -0
- package/types/document/types.d.ts +36 -0
- package/types/document.d.ts +1 -0
- package/types/fetch/client/fetchClient.d.ts +78 -0
- package/types/fetch/client/httpClient.d.ts +39 -0
- package/types/fetch/client/index.d.ts +3 -0
- package/types/fetch/client/wsClient.d.ts +37 -0
- package/types/fetch/client.d.ts +1 -0
- package/types/fetch/fetchType/appliedReturn.type.d.ts +67 -0
- package/types/fetch/fetchType/buildFetch.type.d.ts +11 -0
- package/types/fetch/fetchType/clientSignal.type.d.ts +16 -0
- package/types/fetch/fetchType/endpointFetch.type.d.ts +29 -0
- package/types/fetch/fetchType/index.d.ts +5 -0
- package/types/fetch/fetchType/sliceFetch.type.d.ts +76 -0
- package/types/fetch/fetchType.d.ts +1 -0
- package/types/fetch/index.d.ts +4 -0
- package/types/fetch/requestStorage.d.ts +29 -0
- package/types/fetch/serializer/fetch.serializer.d.ts +14 -0
- package/types/fetch/serializer/index.d.ts +1 -0
- package/types/fetch/serializer.d.ts +1 -0
- package/types/fetch/types.d.ts +19 -0
- package/types/fetch.d.ts +1 -0
- package/types/index.d.ts +213 -0
- package/types/server/akanApp.d.ts +17 -0
- package/types/server/akanAppHeaders.d.ts +1 -0
- package/types/server/akanLib.d.ts +33 -0
- package/types/server/akanOption.d.ts +15 -0
- package/types/server/akanServer.d.ts +47 -0
- package/types/server/artifact/builderRpc.d.ts +42 -0
- package/types/server/artifact/index.d.ts +6 -0
- package/types/server/artifact/ipcTypes.d.ts +73 -0
- package/types/server/artifact/manifestTypes.d.ts +16 -0
- package/types/server/artifact/routeClientCache.d.ts +45 -0
- package/types/server/artifact/routeSeedIndexStore.d.ts +43 -0
- package/types/server/artifact/routesManifestStore.d.ts +16 -0
- package/types/server/artifact.d.ts +1 -0
- package/types/server/decorators.d.ts +6 -0
- package/types/server/di/diLifecycle.d.ts +45 -0
- package/types/server/di/index.d.ts +4 -0
- package/types/server/di/predefinedAdaptor.d.ts +33 -0
- package/types/server/di/resolveAdaptorHierarchy.d.ts +21 -0
- package/types/server/di/resolveHierarchy.d.ts +11 -0
- package/types/server/di/resolveServiceHierarchy.d.ts +13 -0
- package/types/server/di/utils.d.ts +14 -0
- package/types/server/di.d.ts +1 -0
- package/types/server/hmr/changeBatch.d.ts +13 -0
- package/types/server/hmr/clientScript.d.ts +1 -0
- package/types/server/hmr/devHmrController.d.ts +24 -0
- package/types/server/hmr/index.d.ts +4 -0
- package/types/server/hmr/wsHub.d.ts +45 -0
- package/types/server/hmr.d.ts +1 -0
- package/types/server/imageOptimizer.d.ts +12 -0
- package/types/server/imageOptimizerError.d.ts +4 -0
- package/types/server/index.d.ts +14 -0
- package/types/server/lifecycle/shutdownManager.d.ts +13 -0
- package/types/server/logging/rotatingLogWriter.d.ts +20 -0
- package/types/server/processMetricsCollector.d.ts +10 -0
- package/types/server/proxy/akanResponse.d.ts +7 -0
- package/types/server/proxy/bunRequestFields.d.ts +1 -0
- package/types/server/proxy/hostBasePathWebProxy.d.ts +6 -0
- package/types/server/proxy/index.d.ts +6 -0
- package/types/server/proxy/localeWebProxy.d.ts +5 -0
- package/types/server/proxy/types.d.ts +37 -0
- package/types/server/proxy/webProxyRunner.d.ts +7 -0
- package/types/server/proxy.d.ts +1 -0
- package/types/server/resolver/database.resolver.d.ts +6 -0
- package/types/server/resolver/index.d.ts +3 -0
- package/types/server/resolver/service.resolver.d.ts +7 -0
- package/types/server/resolver/signal.resolver.d.ts +29 -0
- package/types/server/resolver.d.ts +1 -0
- package/types/server/robots.d.ts +1 -0
- package/types/server/routeElementComposer.d.ts +41 -0
- package/types/server/routeTreeBuilder.d.ts +28 -0
- package/types/server/routing/apiRouter.d.ts +61 -0
- package/types/server/rscClient.d.ts +15 -0
- package/types/server/rscWorker.d.ts +3 -0
- package/types/server/rscWorkerHost.d.ts +83 -0
- package/types/server/sitemap.d.ts +13 -0
- package/types/server/ssrFromRscRenderer.d.ts +6 -0
- package/types/server/ssrTypes.d.ts +47 -0
- package/types/server/systemPages.d.ts +27 -0
- package/types/server/types/react-server-dom-webpack.d.ts +91 -0
- package/types/server/types.d.ts +67 -0
- package/types/server/vendor/akanjs-base.d.ts +1 -0
- package/types/server/vendor/akanjs-common.d.ts +1 -0
- package/types/server/vendor/akanjs-constant.d.ts +1 -0
- package/types/server/vendor/akanjs-store.d.ts +1 -0
- package/types/server/vendor/react-dom-client.d.ts +3 -0
- package/types/server/vendor/react-dom.d.ts +3 -0
- package/types/server/vendor/react-jsx-dev-runtime.d.ts +3 -0
- package/types/server/vendor/react-jsx-runtime.d.ts +3 -0
- package/types/server/vendor/react-refresh-runtime.d.ts +3 -0
- package/types/server/vendor/react-server-dom-webpack-client-browser.d.ts +3 -0
- package/types/server/vendor/react.d.ts +11 -0
- package/types/server/vendor/scheduler.d.ts +3 -0
- package/types/server/webRouter.d.ts +44 -0
- package/types/server.d.ts +1 -0
- package/types/service/adapt.d.ts +15 -0
- package/types/service/base.service.d.ts +18 -0
- package/types/service/index.d.ts +10 -0
- package/types/service/injectInfo.d.ts +102 -0
- package/types/service/ipcTypes.d.ts +194 -0
- package/types/service/predefinedAdaptor/cache.adaptor.d.ts +46 -0
- package/types/service/predefinedAdaptor/compress.adaptor.d.ts +22 -0
- package/types/service/predefinedAdaptor/database.adaptor.d.ts +329 -0
- package/types/service/predefinedAdaptor/index.d.ts +13 -0
- package/types/service/predefinedAdaptor/logging.adaptor.d.ts +20 -0
- package/types/service/predefinedAdaptor/queue.adaptor.d.ts +22 -0
- package/types/service/predefinedAdaptor/role.adaptor.d.ts +17 -0
- package/types/service/predefinedAdaptor/schedule.adaptor.d.ts +60 -0
- package/types/service/predefinedAdaptor/solidCache.adaptor.d.ts +25 -0
- package/types/service/predefinedAdaptor/solidPubsub.adaptor.d.ts +20 -0
- package/types/service/predefinedAdaptor/solidQueue.adaptor.d.ts +19 -0
- package/types/service/predefinedAdaptor/solidSqlite.d.ts +24 -0
- package/types/service/predefinedAdaptor/sqlitePath.d.ts +9 -0
- package/types/service/predefinedAdaptor/storage.adaptor.d.ts +80 -0
- package/types/service/predefinedAdaptor/websocket.adaptor.d.ts +49 -0
- package/types/service/predefinedAdaptor.d.ts +1 -0
- package/types/service/serve.d.ts +31 -0
- package/types/service/serviceModule.d.ts +50 -0
- package/types/service/serviceRegistry.d.ts +9 -0
- package/types/service/types.d.ts +55 -0
- package/types/service.d.ts +1 -0
- package/types/signal/base.signal.d.ts +41 -0
- package/types/signal/endpoint.d.ts +28 -0
- package/types/signal/endpointInfo.d.ts +77 -0
- package/types/signal/exception.d.ts +54786 -0
- package/types/signal/guard.d.ts +10 -0
- package/types/signal/guards.d.ts +10 -0
- package/types/signal/index.d.ts +19 -0
- package/types/signal/intercept.d.ts +17 -0
- package/types/signal/internal.d.ts +18 -0
- package/types/signal/internalArg.d.ts +31 -0
- package/types/signal/internalInfo.d.ts +45 -0
- package/types/signal/middleware.d.ts +51 -0
- package/types/signal/serializer/fetch.serializer.d.ts +14 -0
- package/types/signal/serializer/index.d.ts +1 -0
- package/types/signal/serializer.d.ts +1 -0
- package/types/signal/serverSignal.d.ts +36 -0
- package/types/signal/signalContext.d.ts +96 -0
- package/types/signal/signalRegistry.d.ts +49 -0
- package/types/signal/slice.d.ts +42 -0
- package/types/signal/sliceInfo.d.ts +51 -0
- package/types/signal/trace.d.ts +97 -0
- package/types/signal/types.d.ts +142 -0
- package/types/signal.d.ts +1 -0
- package/types/store/action.d.ts +145 -0
- package/types/store/baseSt.d.ts +412 -0
- package/types/store/hooks.d.ts +1 -0
- package/types/store/index.d.ts +8 -0
- package/types/store/rootStore.d.ts +22 -0
- package/types/store/state.d.ts +91 -0
- package/types/store/stateBuilder.d.ts +141 -0
- package/types/store/stateInfo.d.ts +23 -0
- package/types/store/store.d.ts +36 -0
- package/types/store/storeInstance.d.ts +38 -0
- package/types/store/storeRegistry.d.ts +13 -0
- package/types/store/types.d.ts +42 -0
- package/types/store/withSelector.d.ts +42 -0
- package/types/store.d.ts +1 -0
- package/types/test/index.d.ts +4 -0
- package/types/test/playwright.config.base.d.ts +9 -0
- package/types/test/playwright.pageAgent.d.ts +12 -0
- package/types/test/sample.d.ts +15 -0
- package/types/test/sampleOf.d.ts +5 -0
- package/types/test/signalTest.preload.d.ts +1 -0
- package/types/test/signalTestRuntime.d.ts +29 -0
- package/types/test/testServer.d.ts +26 -0
- package/types/test.d.ts +1 -0
- package/types/ui/BottomSheet.d.ts +13 -0
- package/types/ui/Button.d.ts +11 -0
- package/types/ui/ClientSide.d.ts +8 -0
- package/types/ui/Clipboard.d.ts +7 -0
- package/types/ui/Constant/Doc.d.ts +29 -0
- package/types/ui/Constant/Mermaid.d.ts +8 -0
- package/types/ui/Constant/index.d.ts +6 -0
- package/types/ui/Constant/schemaDoc.d.ts +84 -0
- package/types/ui/Constant.d.ts +1 -0
- package/types/ui/Copy.d.ts +10 -0
- package/types/ui/CsrImage.d.ts +18 -0
- package/types/ui/Data/CardList.d.ts +36 -0
- package/types/ui/Data/Dashboard.d.ts +11 -0
- package/types/ui/Data/Insight.d.ts +9 -0
- package/types/ui/Data/Item.d.ts +75 -0
- package/types/ui/Data/ListContainer.d.ts +49 -0
- package/types/ui/Data/Pagination.d.ts +9 -0
- package/types/ui/Data/QueryMaker.d.ts +8 -0
- package/types/ui/Data/TableList.d.ts +26 -0
- package/types/ui/Data/index.d.ts +9 -0
- package/types/ui/Data/index_.d.ts +8 -0
- package/types/ui/Data.d.ts +1 -0
- package/types/ui/DatePicker.d.ts +36 -0
- package/types/ui/Dialog/Action.d.ts +5 -0
- package/types/ui/Dialog/Close.d.ts +6 -0
- package/types/ui/Dialog/Content.d.ts +6 -0
- package/types/ui/Dialog/Modal.d.ts +9 -0
- package/types/ui/Dialog/Provider.d.ts +11 -0
- package/types/ui/Dialog/Title.d.ts +5 -0
- package/types/ui/Dialog/Trigger.d.ts +6 -0
- package/types/ui/Dialog/context.d.ts +10 -0
- package/types/ui/Dialog/index.d.ts +9 -0
- package/types/ui/Dialog.d.ts +1 -0
- package/types/ui/DragAction.d.ts +24 -0
- package/types/ui/DraggableList.d.ts +31 -0
- package/types/ui/Dropdown.d.ts +14 -0
- package/types/ui/Empty.d.ts +12 -0
- package/types/ui/Field.d.ts +411 -0
- package/types/ui/FontFace.d.ts +6 -0
- package/types/ui/Image.d.ts +49 -0
- package/types/ui/InfiniteScroll.d.ts +10 -0
- package/types/ui/Input.d.ts +95 -0
- package/types/ui/KeyboardAvoiding.d.ts +8 -0
- package/types/ui/Layout/BottomAction.d.ts +6 -0
- package/types/ui/Layout/BottomInset.d.ts +7 -0
- package/types/ui/Layout/BottomTab.d.ts +14 -0
- package/types/ui/Layout/Header.d.ts +8 -0
- package/types/ui/Layout/LeftSider.d.ts +9 -0
- package/types/ui/Layout/Navbar.d.ts +11 -0
- package/types/ui/Layout/RightSider.d.ts +10 -0
- package/types/ui/Layout/Sider.d.ts +7 -0
- package/types/ui/Layout/Template.d.ts +7 -0
- package/types/ui/Layout/TopLeftAction.d.ts +6 -0
- package/types/ui/Layout/Unit.d.ts +9 -0
- package/types/ui/Layout/View.d.ts +8 -0
- package/types/ui/Layout/Zone.d.ts +6 -0
- package/types/ui/Layout/index.d.ts +14 -0
- package/types/ui/Layout.d.ts +1 -0
- package/types/ui/Link/Back.d.ts +7 -0
- package/types/ui/Link/Close.d.ts +7 -0
- package/types/ui/Link/CsrLink.d.ts +2 -0
- package/types/ui/Link/Lang.d.ts +8 -0
- package/types/ui/Link/SsrLink.d.ts +2 -0
- package/types/ui/Link/index.d.ts +10 -0
- package/types/ui/Link/types.d.ts +42 -0
- package/types/ui/Link.d.ts +1 -0
- package/types/ui/Load/Edit.d.ts +4 -0
- package/types/ui/Load/Edit_Client.d.ts +27 -0
- package/types/ui/Load/Page.d.ts +15 -0
- package/types/ui/Load/PageCSR.d.ts +3 -0
- package/types/ui/Load/Pagination.d.ts +8 -0
- package/types/ui/Load/Units.d.ts +30 -0
- package/types/ui/Load/View.d.ts +22 -0
- package/types/ui/Load/index.d.ts +8 -0
- package/types/ui/Load/index_.d.ts +3 -0
- package/types/ui/Load.d.ts +1 -0
- package/types/ui/Loading/Area.d.ts +1 -0
- package/types/ui/Loading/Button.d.ts +7 -0
- package/types/ui/Loading/Input.d.ts +7 -0
- package/types/ui/Loading/ProgressBar.d.ts +6 -0
- package/types/ui/Loading/Skeleton.d.ts +7 -0
- package/types/ui/Loading/Spin.d.ts +7 -0
- package/types/ui/Loading/index.d.ts +8 -0
- package/types/ui/Loading.d.ts +1 -0
- package/types/ui/Menu.d.ts +26 -0
- package/types/ui/Modal.d.ts +19 -0
- package/types/ui/Model/AdminPanel.d.ts +31 -0
- package/types/ui/Model/Edit.d.ts +16 -0
- package/types/ui/Model/EditModal.d.ts +52 -0
- package/types/ui/Model/EditWrapper.d.ts +13 -0
- package/types/ui/Model/LoadInit.d.ts +10 -0
- package/types/ui/Model/New.d.ts +16 -0
- package/types/ui/Model/NewWrapper.d.ts +13 -0
- package/types/ui/Model/NewWrapper_Client.d.ts +13 -0
- package/types/ui/Model/Remove.d.ts +13 -0
- package/types/ui/Model/RemoveWrapper.d.ts +12 -0
- package/types/ui/Model/SureToRemove.d.ts +11 -0
- package/types/ui/Model/View.d.ts +19 -0
- package/types/ui/Model/ViewEditModal.d.ts +12 -0
- package/types/ui/Model/ViewModal.d.ts +14 -0
- package/types/ui/Model/ViewWrapper.d.ts +12 -0
- package/types/ui/Model/index.d.ts +16 -0
- package/types/ui/Model/index_.d.ts +14 -0
- package/types/ui/Model.d.ts +1 -0
- package/types/ui/More.d.ts +12 -0
- package/types/ui/ObjectId.d.ts +5 -0
- package/types/ui/Pagination.d.ts +20 -0
- package/types/ui/Popconfirm.d.ts +28 -0
- package/types/ui/Portal.d.ts +6 -0
- package/types/ui/Radio.d.ts +19 -0
- package/types/ui/RecentTime.d.ts +12 -0
- package/types/ui/Refresh.d.ts +7 -0
- package/types/ui/ScreenNavigator.d.ts +18 -0
- package/types/ui/Select.d.ts +43 -0
- package/types/ui/Signal/Arg.d.ts +78 -0
- package/types/ui/Signal/Doc.d.ts +33 -0
- package/types/ui/Signal/Listener.d.ts +9 -0
- package/types/ui/Signal/Message.d.ts +23 -0
- package/types/ui/Signal/Object.d.ts +20 -0
- package/types/ui/Signal/PubSub.d.ts +24 -0
- package/types/ui/Signal/Request.d.ts +8 -0
- package/types/ui/Signal/Response.d.ts +14 -0
- package/types/ui/Signal/RestApi.d.ts +40 -0
- package/types/ui/Signal/WebSocket.d.ts +11 -0
- package/types/ui/Signal/index.d.ts +18 -0
- package/types/ui/Signal/makeExample.d.ts +4 -0
- package/types/ui/Signal/style.d.ts +15 -0
- package/types/ui/Signal.d.ts +1 -0
- package/types/ui/System/CSR.d.ts +32 -0
- package/types/ui/System/Client.d.ts +47 -0
- package/types/ui/System/Common.d.ts +47 -0
- package/types/ui/System/DevModeToggle.d.ts +1 -0
- package/types/ui/System/Gtag.d.ts +4 -0
- package/types/ui/System/Messages.d.ts +1 -0
- package/types/ui/System/Reconnect.d.ts +1 -0
- package/types/ui/System/Root.d.ts +6 -0
- package/types/ui/System/SSR.d.ts +24 -0
- package/types/ui/System/SelectLanguage.d.ts +5 -0
- package/types/ui/System/ThemeToggle.d.ts +4 -0
- package/types/ui/System/index.d.ts +12 -0
- package/types/ui/System.d.ts +1 -0
- package/types/ui/Tab/Menu.d.ts +12 -0
- package/types/ui/Tab/Menus.d.ts +6 -0
- package/types/ui/Tab/Panel.d.ts +8 -0
- package/types/ui/Tab/Provider.d.ts +10 -0
- package/types/ui/Tab/context.d.ts +9 -0
- package/types/ui/Tab/index.d.ts +7 -0
- package/types/ui/Tab.d.ts +1 -0
- package/types/ui/Table.d.ts +41 -0
- package/types/ui/ToggleSelect.d.ts +33 -0
- package/types/ui/Unauthorized.d.ts +9 -0
- package/types/ui/animated.d.ts +5 -0
- package/types/ui/fontCss.d.ts +11 -0
- package/types/ui/index.d.ts +44 -0
- package/types/ui.d.ts +1 -0
- package/types/webkit/bootCsr.d.ts +16 -0
- package/types/webkit/createRobotPage.d.ts +15 -0
- package/types/webkit/createSitemapPage.d.ts +4 -0
- package/types/webkit/index.d.ts +17 -0
- package/types/webkit/lazy.d.ts +11 -0
- package/types/webkit/types.d.ts +7 -0
- package/types/webkit/useCamera.d.ts +19 -0
- package/types/webkit/useCodepush.d.ts +16 -0
- package/types/webkit/useContact.d.ts +11 -0
- package/types/webkit/useCsrValues.d.ts +30 -0
- package/types/webkit/useDebounce.d.ts +2 -0
- package/types/webkit/useFetch.d.ts +18 -0
- package/types/webkit/useGeoLocation.d.ts +8 -0
- package/types/webkit/useHistory.d.ts +23 -0
- package/types/webkit/useInterval.d.ts +2 -0
- package/types/webkit/useLocation.d.ts +8 -0
- package/types/webkit/usePurchase.d.ts +19 -0
- package/types/webkit/usePushNoti.d.ts +7 -0
- package/types/webkit/useThrottle.d.ts +2 -0
- package/types/webkit.d.ts +1 -0
- package/ui/BottomSheet.tsx +1 -1
- package/ui/Clipboard.tsx +1 -1
- package/ui/CsrImage.tsx +3 -14
- package/ui/Data/ListContainer.tsx +1 -1
- package/ui/Data/Pagination.tsx +1 -1
- package/ui/Data/QueryMaker.tsx +0 -339
- package/ui/Data/index.ts +0 -1
- package/ui/DatePicker.tsx +1 -95
- package/ui/Dialog/Modal.tsx +1 -1
- package/ui/DraggableList.tsx +5 -5
- package/ui/Field.tsx +2 -3
- package/ui/Image.tsx +2 -3
- package/ui/InfiniteScroll.tsx +0 -1
- package/ui/Input.tsx +1 -8
- package/ui/Layout/BottomTab.tsx +2 -2
- package/ui/Link/SsrLink.tsx +1 -2
- package/ui/Load/Page.tsx +1 -1
- package/ui/Load/PageCSR.tsx +0 -1
- package/ui/Load/Units.tsx +1 -2
- package/ui/Load/View.tsx +1 -2
- package/ui/Menu.tsx +5 -8
- package/ui/Model/EditModal.tsx +2 -5
- package/ui/Popconfirm.tsx +2 -4
- package/ui/ScreenNavigator.tsx +2 -3
- package/ui/Signal/Message.tsx +2 -3
- package/ui/Signal/PubSub.tsx +0 -2
- package/ui/Signal/Response.tsx +1 -1
- package/ui/Signal/WebSocket.tsx +2 -11
- package/ui/System/Client.tsx +7 -41
- package/ui/System/Gtag.tsx +2 -5
- package/ui/System/Messages.tsx +2 -2
- package/ui/System/Reconnect.tsx +5 -6
- package/ui/System/Root.tsx +0 -1
- package/ui/System/SSR.tsx +1 -7
- package/ui/ToggleSelect.tsx +3 -8
- package/ui/Unauthorized.tsx +1 -1
- package/webkit/bootCsr.tsx +3 -6
- package/webkit/lazy.tsx +1 -8
- package/webkit/useCamera.tsx +0 -1
- package/webkit/useCodepush.tsx +4 -9
- package/webkit/useContact.tsx +0 -1
- package/webkit/useCsrValues.ts +6 -10
- package/webkit/useDebounce.ts +2 -2
- package/webkit/usePurchase.tsx +5 -9
- package/webkit/usePushNoti.tsx +0 -1
- package/base/base.test.ts +0 -135
- package/base/baseEnv.test.ts +0 -146
- package/base/primitiveRegistry.test.ts +0 -127
- package/base/symbols.test.ts +0 -29
- package/base/utils.test.ts +0 -30
- package/build.ts +0 -318
- package/capacitor.base.config.test.ts +0 -83
- package/client/client.auth-storage.test.ts +0 -210
- package/client/client.decorators.test.ts +0 -74
- package/client/client.device.test.ts +0 -181
- package/client/client.page.test.tsx +0 -175
- package/client/client.pure.test.ts +0 -146
- package/client/client.router.test.ts +0 -290
- package/common/Logger.test.ts +0 -45
- package/common/formatAndValidation.test.ts +0 -61
- package/common/httpClient.test.ts +0 -91
- package/common/objectPath.test.ts +0 -108
- package/common/routeConvention.test.ts +0 -132
- package/common/runtimeConfig.test.ts +0 -84
- package/constant/constant.test.ts +0 -374
- package/dictionary/dictionary.test.ts +0 -352
- package/document/document.test.ts +0 -698
- package/fetch/fetch.test.ts +0 -838
- package/server/akanApp.test.ts +0 -130
- package/server/akanServer.test.ts +0 -157
- package/server/artifact/routeClientCache.test.ts +0 -265
- package/server/artifact/routeSeedIndex.test.ts +0 -56
- package/server/artifact/routesManifest.test.ts +0 -64
- package/server/di/diLifecycle.contract.test.ts +0 -168
- package/server/logging/rotatingLogWriter.test.ts +0 -119
- package/server/processMetrics.test.ts +0 -24
- package/server/proxy/webProxyRunner.test.ts +0 -66
- package/server/resolver/resolver.contract.test.ts +0 -594
- package/server/robots.test.ts +0 -16
- package/server/routeTree.test.tsx +0 -198
- package/server/routing/apiRouter.test.ts +0 -136
- package/server/sitemap.test.ts +0 -61
- package/server/systemPages.test.tsx +0 -93
- package/server/webRouter.test.ts +0 -49
- package/service/predefinedAdaptor/compress.adaptor.test.ts +0 -184
- package/service/predefinedAdaptor/solidCache.adaptor.test.ts +0 -107
- package/service/predefinedAdaptor/solidSqlite.test.ts +0 -457
- package/service/service.test.ts +0 -732
- package/signal/signal.test.ts +0 -892
- package/store/stateBuilder.test.ts +0 -168
- package/store/store.test.ts +0 -427
- package/tsconfig.json +0 -5
- package/ui/Constant/schemaDoc.test.ts +0 -113
- package/ui/InfiniteScroll.test.tsx +0 -155
- package/ui/System/Common.test.ts +0 -37
- package/webkit/bootCsr.test.tsx +0 -153
- package/webkit/native.test.tsx +0 -341
- package/webkit/webkit.test.tsx +0 -531
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
export type CapacitorDeviceInfo = {
|
|
2
|
+
platform: string;
|
|
3
|
+
isVirtual: boolean;
|
|
4
|
+
osVersion: string;
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
};
|
|
7
|
+
export type CapacitorKeyboardInfo = {
|
|
8
|
+
keyboardHeight: number;
|
|
9
|
+
};
|
|
10
|
+
export type CapacitorPermissionState = "prompt" | "prompt-with-rationale" | "granted" | "denied" | string;
|
|
11
|
+
export type CapacitorAppModule = {
|
|
12
|
+
App: {
|
|
13
|
+
addListener: (eventName: string, listenerFunc: (...args: unknown[]) => void) => Promise<unknown> | unknown;
|
|
14
|
+
removeAllListeners: () => Promise<void> | void;
|
|
15
|
+
getInfo: () => Promise<{
|
|
16
|
+
id: string;
|
|
17
|
+
version: string;
|
|
18
|
+
build: string;
|
|
19
|
+
[key: string]: unknown;
|
|
20
|
+
}>;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export type CapacitorBrowserModule = {
|
|
24
|
+
Browser: {
|
|
25
|
+
open: (options: {
|
|
26
|
+
url: string;
|
|
27
|
+
presentationStyle?: string;
|
|
28
|
+
}) => Promise<void> | void;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export type CapacitorCameraModule = {
|
|
32
|
+
Camera: {
|
|
33
|
+
checkPermissions: () => Promise<{
|
|
34
|
+
camera: CapacitorPermissionState;
|
|
35
|
+
photos: CapacitorPermissionState;
|
|
36
|
+
}>;
|
|
37
|
+
requestPermissions: () => Promise<{
|
|
38
|
+
camera: CapacitorPermissionState;
|
|
39
|
+
photos: CapacitorPermissionState;
|
|
40
|
+
}>;
|
|
41
|
+
getPhoto: (options: Record<string, unknown>) => Promise<{
|
|
42
|
+
dataUrl?: string;
|
|
43
|
+
[key: string]: unknown;
|
|
44
|
+
}>;
|
|
45
|
+
pickImages: (options: Record<string, unknown>) => Promise<{
|
|
46
|
+
photos: unknown[];
|
|
47
|
+
[key: string]: unknown;
|
|
48
|
+
}>;
|
|
49
|
+
};
|
|
50
|
+
CameraResultType: {
|
|
51
|
+
DataUrl: string;
|
|
52
|
+
};
|
|
53
|
+
CameraSource: {
|
|
54
|
+
Prompt: string;
|
|
55
|
+
Camera: string;
|
|
56
|
+
Photos: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export type CapacitorContactsModule = {
|
|
60
|
+
Contacts: {
|
|
61
|
+
checkPermissions: () => Promise<{
|
|
62
|
+
contacts: CapacitorPermissionState;
|
|
63
|
+
}>;
|
|
64
|
+
requestPermissions: () => Promise<{
|
|
65
|
+
contacts: CapacitorPermissionState;
|
|
66
|
+
}>;
|
|
67
|
+
getContacts: (options: Record<string, unknown>) => Promise<{
|
|
68
|
+
contacts: unknown[];
|
|
69
|
+
}>;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
export type CapacitorCoreModule = {
|
|
73
|
+
CapacitorCookies: {
|
|
74
|
+
setCookie: (options: {
|
|
75
|
+
key: string;
|
|
76
|
+
value: string;
|
|
77
|
+
path?: string;
|
|
78
|
+
}) => Promise<void> | void;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
export type CapacitorDeviceModule = {
|
|
82
|
+
Device: {
|
|
83
|
+
getInfo: () => Promise<CapacitorDeviceInfo>;
|
|
84
|
+
getLanguageCode: () => Promise<{
|
|
85
|
+
value: string;
|
|
86
|
+
}>;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
export type CapacitorFcmModule = {
|
|
90
|
+
FCM: {
|
|
91
|
+
setAutoInit: (options: {
|
|
92
|
+
enabled: boolean;
|
|
93
|
+
}) => Promise<void> | void;
|
|
94
|
+
getToken: () => Promise<{
|
|
95
|
+
token: string;
|
|
96
|
+
}>;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
export type CapacitorGeolocationModule = {
|
|
100
|
+
Geolocation: {
|
|
101
|
+
requestPermissions: () => Promise<{
|
|
102
|
+
location: string;
|
|
103
|
+
coarseLocation: string;
|
|
104
|
+
[key: string]: string;
|
|
105
|
+
}>;
|
|
106
|
+
getCurrentPosition: () => Promise<unknown>;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
export type CapacitorHapticsModule = {
|
|
110
|
+
ImpactStyle: {
|
|
111
|
+
Light: string;
|
|
112
|
+
Medium: string;
|
|
113
|
+
Heavy: string;
|
|
114
|
+
};
|
|
115
|
+
Haptics: {
|
|
116
|
+
vibrate: (options: {
|
|
117
|
+
duration: number;
|
|
118
|
+
}) => Promise<void> | void;
|
|
119
|
+
impact: (options: {
|
|
120
|
+
style: string;
|
|
121
|
+
}) => Promise<void> | void;
|
|
122
|
+
selectionStart: () => Promise<void> | void;
|
|
123
|
+
selectionChanged: () => Promise<void> | void;
|
|
124
|
+
selectionEnd: () => Promise<void> | void;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
export type CapacitorKeyboardModule = {
|
|
128
|
+
Keyboard: {
|
|
129
|
+
show: () => Promise<void> | void;
|
|
130
|
+
hide: () => Promise<void> | void;
|
|
131
|
+
addListener: (eventName: string, listenerFunc: (info: CapacitorKeyboardInfo) => void) => Promise<unknown> | unknown;
|
|
132
|
+
removeAllListeners: () => Promise<void> | void;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
export type CapacitorPreferencesModule = {
|
|
136
|
+
Preferences: {
|
|
137
|
+
get: (options: {
|
|
138
|
+
key: string;
|
|
139
|
+
}) => Promise<{
|
|
140
|
+
value: string | null;
|
|
141
|
+
}>;
|
|
142
|
+
set: (options: {
|
|
143
|
+
key: string;
|
|
144
|
+
value: string;
|
|
145
|
+
}) => Promise<void> | void;
|
|
146
|
+
remove: (options: {
|
|
147
|
+
key: string;
|
|
148
|
+
}) => Promise<void> | void;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
export type CapacitorPushNotificationsModule = {
|
|
152
|
+
PushNotifications: {
|
|
153
|
+
requestPermissions: () => Promise<{
|
|
154
|
+
receive: "granted" | "denied" | string;
|
|
155
|
+
}>;
|
|
156
|
+
checkPermissions: () => Promise<{
|
|
157
|
+
receive: "granted" | "denied" | string;
|
|
158
|
+
}>;
|
|
159
|
+
register: () => Promise<void> | void;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
export type CapacitorSafeAreaModule = {
|
|
163
|
+
SafeArea: {
|
|
164
|
+
getSafeAreaInsets: () => Promise<{
|
|
165
|
+
insets: {
|
|
166
|
+
top: number;
|
|
167
|
+
bottom: number;
|
|
168
|
+
};
|
|
169
|
+
}>;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
export type CapacitorUpdaterModule = {
|
|
173
|
+
CapacitorUpdater: {
|
|
174
|
+
notifyAppReady: () => Promise<void> | void;
|
|
175
|
+
getPluginVersion: () => Promise<{
|
|
176
|
+
version: string;
|
|
177
|
+
}>;
|
|
178
|
+
getDeviceId: () => Promise<{
|
|
179
|
+
deviceId: string;
|
|
180
|
+
}>;
|
|
181
|
+
current: () => Promise<{
|
|
182
|
+
bundle: {
|
|
183
|
+
version: string;
|
|
184
|
+
};
|
|
185
|
+
native: string;
|
|
186
|
+
}>;
|
|
187
|
+
getBuiltinVersion: () => Promise<{
|
|
188
|
+
version: string;
|
|
189
|
+
}>;
|
|
190
|
+
download: (options: {
|
|
191
|
+
url: string;
|
|
192
|
+
version: string;
|
|
193
|
+
}) => Promise<unknown>;
|
|
194
|
+
set: (bundle: unknown) => Promise<void> | void;
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
type CapacitorModuleMap = {
|
|
198
|
+
app: CapacitorAppModule;
|
|
199
|
+
browser: CapacitorBrowserModule;
|
|
200
|
+
camera: CapacitorCameraModule;
|
|
201
|
+
contacts: CapacitorContactsModule;
|
|
202
|
+
core: CapacitorCoreModule;
|
|
203
|
+
device: CapacitorDeviceModule;
|
|
204
|
+
fcm: CapacitorFcmModule;
|
|
205
|
+
geolocation: CapacitorGeolocationModule;
|
|
206
|
+
haptics: CapacitorHapticsModule;
|
|
207
|
+
keyboard: CapacitorKeyboardModule;
|
|
208
|
+
preferences: CapacitorPreferencesModule;
|
|
209
|
+
pushNotifications: CapacitorPushNotificationsModule;
|
|
210
|
+
safeArea: CapacitorSafeAreaModule;
|
|
211
|
+
updater: CapacitorUpdaterModule;
|
|
212
|
+
};
|
|
213
|
+
type CapacitorImportCache = Partial<{
|
|
214
|
+
[K in keyof CapacitorModuleMap]: Promise<CapacitorModuleMap[keyof CapacitorModuleMap]>;
|
|
215
|
+
}>;
|
|
216
|
+
declare global {
|
|
217
|
+
var __AKAN_CAPACITOR_IMPORTS__: CapacitorImportCache | undefined;
|
|
218
|
+
}
|
|
219
|
+
export declare const loadCapacitorApp: () => Promise<CapacitorAppModule>;
|
|
220
|
+
export declare const loadCapacitorBrowser: () => Promise<CapacitorBrowserModule>;
|
|
221
|
+
export declare const loadCapacitorCamera: () => Promise<CapacitorCameraModule>;
|
|
222
|
+
export declare const loadCapacitorContacts: () => Promise<CapacitorContactsModule>;
|
|
223
|
+
export declare const loadCapacitorCore: () => Promise<CapacitorCoreModule>;
|
|
224
|
+
export declare const loadCapacitorDevice: () => Promise<CapacitorDeviceModule>;
|
|
225
|
+
export declare const loadCapacitorFcm: () => Promise<CapacitorFcmModule>;
|
|
226
|
+
export declare const loadCapacitorGeolocation: () => Promise<CapacitorGeolocationModule>;
|
|
227
|
+
export declare const loadCapacitorHaptics: () => Promise<CapacitorHapticsModule>;
|
|
228
|
+
export declare const loadCapacitorKeyboard: () => Promise<CapacitorKeyboardModule>;
|
|
229
|
+
export declare const loadCapacitorPreferences: () => Promise<CapacitorPreferencesModule>;
|
|
230
|
+
export declare const loadCapacitorPushNotifications: () => Promise<CapacitorPushNotificationsModule>;
|
|
231
|
+
export declare const loadCapacitorSafeArea: () => Promise<CapacitorSafeAreaModule>;
|
|
232
|
+
export declare const loadCapacitorUpdater: () => Promise<CapacitorUpdaterModule>;
|
|
233
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { SliceMeta } from "akanjs/fetch";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
import type { TransMessageOption } from "./makePageProto.d.ts";
|
|
4
|
+
type RuntimeTranslate = ((key: string, param?: Record<string, string | number>) => string) & {
|
|
5
|
+
_: (key: string, param?: Record<string, string | number>) => string;
|
|
6
|
+
rich: (key: string, param?: Record<string, string | number>) => ReactNode;
|
|
7
|
+
trans: <Returns extends ReactNode>(translation: Record<"en" | "ko" | (string & {}), Returns>) => Returns extends string ? string : Returns;
|
|
8
|
+
};
|
|
9
|
+
type RuntimePage = {
|
|
10
|
+
path: string;
|
|
11
|
+
l: RuntimeTranslate;
|
|
12
|
+
lang: string;
|
|
13
|
+
};
|
|
14
|
+
type RuntimeMsg = {
|
|
15
|
+
info: (key: string, option?: TransMessageOption) => void;
|
|
16
|
+
success: (key: string, option?: TransMessageOption) => void;
|
|
17
|
+
error: (key: string, option?: TransMessageOption) => void;
|
|
18
|
+
warning: (key: string, option?: TransMessageOption) => void;
|
|
19
|
+
loading: (key: string, option?: TransMessageOption) => void;
|
|
20
|
+
};
|
|
21
|
+
type RuntimeErr = {
|
|
22
|
+
new (key: string, data?: Record<string, unknown>, option?: Record<string, unknown>): Error;
|
|
23
|
+
BadRequest?: RuntimeErr;
|
|
24
|
+
Conflict?: RuntimeErr;
|
|
25
|
+
Forbidden?: RuntimeErr;
|
|
26
|
+
NotFound?: RuntimeErr;
|
|
27
|
+
Unauthorized?: RuntimeErr;
|
|
28
|
+
fromJSON?: (payload: Record<string, unknown>) => Error;
|
|
29
|
+
[key: string]: unknown;
|
|
30
|
+
};
|
|
31
|
+
type RuntimeWs = {
|
|
32
|
+
connected: boolean;
|
|
33
|
+
on: (event: string, handler: (...args: unknown[]) => void) => void;
|
|
34
|
+
off: (event: string, handler: (...args: unknown[]) => void) => void;
|
|
35
|
+
};
|
|
36
|
+
type RuntimeFetch = typeof globalThis.fetch & {
|
|
37
|
+
instance: unknown;
|
|
38
|
+
origin: string;
|
|
39
|
+
serializedSignal: Record<string, unknown>;
|
|
40
|
+
setJwt: (jwt: string | null) => void;
|
|
41
|
+
slice: Record<string, SliceMeta>;
|
|
42
|
+
ws: RuntimeWs;
|
|
43
|
+
[key: string]: unknown;
|
|
44
|
+
};
|
|
45
|
+
export interface ClientRuntime {
|
|
46
|
+
msg: RuntimeMsg;
|
|
47
|
+
Err: RuntimeErr;
|
|
48
|
+
usePage: () => RuntimePage;
|
|
49
|
+
fetch: RuntimeFetch;
|
|
50
|
+
sig: Record<PropertyKey, unknown>;
|
|
51
|
+
}
|
|
52
|
+
type RuntimeScope = "app" | "lib";
|
|
53
|
+
export declare const registerClientRuntime: <Runtime>(runtime: Runtime, { scope }?: {
|
|
54
|
+
scope?: RuntimeScope;
|
|
55
|
+
}) => Runtime;
|
|
56
|
+
export declare const getClientRuntime: () => ClientRuntime;
|
|
57
|
+
export declare const isClientRuntimeRegistered: () => boolean;
|
|
58
|
+
export declare const msg: RuntimeMsg;
|
|
59
|
+
export declare const Err: RuntimeErr;
|
|
60
|
+
export declare const usePage: ClientRuntime["usePage"];
|
|
61
|
+
export declare const fetch: RuntimeFetch;
|
|
62
|
+
export declare const sig: Record<PropertyKey, unknown>;
|
|
63
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { Account } from "akanjs/fetch";
|
|
2
|
+
interface CookieOptions {
|
|
3
|
+
path?: string;
|
|
4
|
+
sameSite?: "strict" | "lax" | "none";
|
|
5
|
+
secure?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const cookies: () => Map<string, {
|
|
8
|
+
name: string;
|
|
9
|
+
value: string;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const setCookie: (key: string, value: string, options?: CookieOptions) => void;
|
|
12
|
+
export declare const getCookie: (key: string) => string | undefined;
|
|
13
|
+
export declare const removeCookie: (key: string, options?: {
|
|
14
|
+
path: string;
|
|
15
|
+
}) => boolean | undefined;
|
|
16
|
+
export declare const headers: () => Map<string, string>;
|
|
17
|
+
export declare const getHeader: (key: string) => string | undefined;
|
|
18
|
+
/** Decodes the current JWT into account data when it belongs to this app/environment. */
|
|
19
|
+
export declare const getAccount: <AddData = unknown>() => Account<AddData>;
|
|
20
|
+
export interface GetOption {
|
|
21
|
+
unauthorize: string;
|
|
22
|
+
}
|
|
23
|
+
interface SetAuthOption {
|
|
24
|
+
jwt: string;
|
|
25
|
+
}
|
|
26
|
+
/** Sets the active auth token on fetch, cookie storage, and client storage. */
|
|
27
|
+
export declare const setAuth: ({ jwt }: SetAuthOption) => void;
|
|
28
|
+
interface InitAuthOption {
|
|
29
|
+
jwt?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare const initAuth: ({ jwt }?: InitAuthOption) => void;
|
|
32
|
+
export declare const resetAuth: () => void;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const createFont: (_data: unknown) => null;
|
|
2
|
+
export default createFont;
|
|
3
|
+
export declare const Nanum_Gothic_Coding: (_data: unknown) => null;
|
|
4
|
+
export declare const Noto_Sans_KR: (_data: unknown) => null;
|
|
5
|
+
export declare const Inter: (_data: unknown) => null;
|
|
6
|
+
export declare const Roboto: (_data: unknown) => null;
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import type { ReactDOMAttributes } from "@use-gesture/react/dist/declarations/src/types";
|
|
2
|
+
import type { PromiseOrObject } from "akanjs/base";
|
|
3
|
+
import { type ForwardRefExoticComponent, type ReactNode, type RefObject } from "react";
|
|
4
|
+
import type { AnimatedComponent, AnimatedProps, Interpolation, SpringValue } from "react-spring";
|
|
5
|
+
import type { RouterInstance } from "./router.d.ts";
|
|
6
|
+
import type { ReactFont } from "./types.d.ts";
|
|
7
|
+
export type TransitionType = "none" | "fade" | "bottomUp" | "stack" | "scaleOut";
|
|
8
|
+
/** Per-page CSR configuration for transition, safe-area, gesture, and cache behavior. */
|
|
9
|
+
export interface PageConfig {
|
|
10
|
+
transition?: TransitionType;
|
|
11
|
+
safeArea?: boolean | "top" | "bottom";
|
|
12
|
+
topInset?: boolean | number;
|
|
13
|
+
/**
|
|
14
|
+
* @default 48px
|
|
15
|
+
*/
|
|
16
|
+
bottomInset?: boolean | number;
|
|
17
|
+
gesture?: boolean;
|
|
18
|
+
cache?: boolean;
|
|
19
|
+
rscCache?: "public" | false;
|
|
20
|
+
rscCacheTtl?: number;
|
|
21
|
+
topSafeAreaColor?: string;
|
|
22
|
+
bottomSafeAreaColor?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface CsrState {
|
|
25
|
+
transition: TransitionType;
|
|
26
|
+
topSafeArea: number;
|
|
27
|
+
bottomSafeArea: number;
|
|
28
|
+
topInset: number;
|
|
29
|
+
bottomInset: number;
|
|
30
|
+
gesture: boolean;
|
|
31
|
+
cache: boolean;
|
|
32
|
+
topSafeAreaColor?: string;
|
|
33
|
+
bottomSafeAreaColor?: string;
|
|
34
|
+
}
|
|
35
|
+
export declare const DEFAULT_TOP_INSET = 48;
|
|
36
|
+
export declare const DEFAULT_BOTTOM_INSET = 60;
|
|
37
|
+
export interface PageProps {
|
|
38
|
+
params: {
|
|
39
|
+
[key: string]: string;
|
|
40
|
+
};
|
|
41
|
+
searchParams: {
|
|
42
|
+
[key: string]: string | string[];
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/** Props passed to Akan layout route modules. */
|
|
46
|
+
export interface LayoutProps extends PageProps {
|
|
47
|
+
children: ReactNode;
|
|
48
|
+
}
|
|
49
|
+
export interface PageLoadingProps {
|
|
50
|
+
params: {
|
|
51
|
+
[key: string]: string;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export interface LayoutLoadingProps extends PageLoadingProps {
|
|
55
|
+
children: ReactNode;
|
|
56
|
+
}
|
|
57
|
+
export interface LayoutNotFoundProps extends PageProps {
|
|
58
|
+
pathname: string;
|
|
59
|
+
}
|
|
60
|
+
export interface LayoutErrorProps extends LayoutNotFoundProps {
|
|
61
|
+
error?: unknown;
|
|
62
|
+
digest?: string;
|
|
63
|
+
}
|
|
64
|
+
export type Head = ReactNode;
|
|
65
|
+
export type GenerateHead = (props: PageProps) => PromiseOrObject<Head | null | undefined>;
|
|
66
|
+
export type ResolveHead = (props: PageProps) => PromiseOrObject<Head | null | undefined>;
|
|
67
|
+
export type HeadProps = PageProps;
|
|
68
|
+
export type PageRender = (props: PageProps) => PromiseOrObject<ReactNode>;
|
|
69
|
+
export type LayoutRender = (props: LayoutProps) => PromiseOrObject<ReactNode>;
|
|
70
|
+
export type PageLoadingRender = (props: PageLoadingProps) => PromiseOrObject<ReactNode>;
|
|
71
|
+
export type LayoutLoadingRender = (props: LayoutLoadingProps) => PromiseOrObject<ReactNode>;
|
|
72
|
+
export type LayoutNotFoundRender = (props: LayoutNotFoundProps) => PromiseOrObject<ReactNode>;
|
|
73
|
+
export type LayoutErrorRender = (props: LayoutErrorProps) => PromiseOrObject<ReactNode>;
|
|
74
|
+
export interface RouteRender {
|
|
75
|
+
render: LayoutRender | PageRender;
|
|
76
|
+
isAsync?: boolean;
|
|
77
|
+
Loading?: LayoutLoadingRender | PageLoadingRender;
|
|
78
|
+
NotFound?: LayoutNotFoundRender;
|
|
79
|
+
Error?: LayoutErrorRender;
|
|
80
|
+
resolveNotFound?: () => PromiseOrObject<LayoutNotFoundRender | undefined>;
|
|
81
|
+
resolveError?: () => PromiseOrObject<LayoutErrorRender | undefined>;
|
|
82
|
+
resolveHead?: ResolveHead;
|
|
83
|
+
getPageConfig?: () => PromiseOrObject<PageConfig | undefined>;
|
|
84
|
+
}
|
|
85
|
+
export interface WebAppManifestIcon {
|
|
86
|
+
src: string;
|
|
87
|
+
sizes?: string;
|
|
88
|
+
type?: string;
|
|
89
|
+
purpose?: string;
|
|
90
|
+
[key: string]: unknown;
|
|
91
|
+
}
|
|
92
|
+
export interface WebAppManifest {
|
|
93
|
+
name?: string;
|
|
94
|
+
shortName?: string;
|
|
95
|
+
startUrl?: string;
|
|
96
|
+
scope?: string;
|
|
97
|
+
display?: "fullscreen" | "standalone" | "minimal-ui" | "browser" | (string & {});
|
|
98
|
+
displayOverride?: string[];
|
|
99
|
+
orientation?: string;
|
|
100
|
+
themeColor?: string;
|
|
101
|
+
backgroundColor?: string;
|
|
102
|
+
description?: string;
|
|
103
|
+
lang?: string;
|
|
104
|
+
dir?: "ltr" | "rtl" | "auto";
|
|
105
|
+
icons?: WebAppManifestIcon[];
|
|
106
|
+
categories?: string[];
|
|
107
|
+
screenshots?: WebAppManifestIcon[];
|
|
108
|
+
[key: string]: unknown;
|
|
109
|
+
}
|
|
110
|
+
export interface PageModule {
|
|
111
|
+
default?: PageRender;
|
|
112
|
+
pageConfig?: PageConfig;
|
|
113
|
+
head?: Head;
|
|
114
|
+
generateHead?: GenerateHead;
|
|
115
|
+
Loading?: PageLoadingRender;
|
|
116
|
+
}
|
|
117
|
+
export interface LayoutModule {
|
|
118
|
+
default?: LayoutRender;
|
|
119
|
+
head?: Head;
|
|
120
|
+
generateHead?: GenerateHead;
|
|
121
|
+
fonts?: ReactFont[];
|
|
122
|
+
manifest?: WebAppManifest;
|
|
123
|
+
theme?: string;
|
|
124
|
+
reconnect?: boolean;
|
|
125
|
+
layoutStyle?: "mobile" | "web";
|
|
126
|
+
gaTrackingId?: string;
|
|
127
|
+
Loading?: LayoutLoadingRender;
|
|
128
|
+
NotFound?: LayoutNotFoundRender;
|
|
129
|
+
Error?: LayoutErrorRender;
|
|
130
|
+
}
|
|
131
|
+
export type RouteModule = PageModule | LayoutModule;
|
|
132
|
+
export interface Route {
|
|
133
|
+
PageConfig?: PageConfig;
|
|
134
|
+
path: string;
|
|
135
|
+
renderPage?: RouteRender;
|
|
136
|
+
renderLayout?: RouteRender;
|
|
137
|
+
pageIncludesOwnLayout?: boolean;
|
|
138
|
+
isSpecialRoute?: boolean;
|
|
139
|
+
loader?: () => any;
|
|
140
|
+
pageState?: PageState;
|
|
141
|
+
children: Map<string, Route>;
|
|
142
|
+
}
|
|
143
|
+
export type AnimatedDivProps = AnimatedComponent<"div"> extends ForwardRefExoticComponent<AnimatedProps<infer P>> ? P : never;
|
|
144
|
+
export type TransitionStyle = AnimatedDivProps["style"];
|
|
145
|
+
export interface SafeAreaTransition {
|
|
146
|
+
containerStyle: TransitionStyle;
|
|
147
|
+
}
|
|
148
|
+
export interface ContainerTransition {
|
|
149
|
+
containerStyle: TransitionStyle;
|
|
150
|
+
contentStyle: TransitionStyle;
|
|
151
|
+
prevContentStyle: TransitionStyle;
|
|
152
|
+
}
|
|
153
|
+
export interface PageTransition {
|
|
154
|
+
containerStyle: TransitionStyle;
|
|
155
|
+
contentStyle: TransitionStyle;
|
|
156
|
+
}
|
|
157
|
+
export interface CsrTransitionStyles {
|
|
158
|
+
topSafeArea: SafeAreaTransition | null;
|
|
159
|
+
page: PageTransition | null;
|
|
160
|
+
prevPage: PageTransition | null;
|
|
161
|
+
topInset: ContainerTransition | null;
|
|
162
|
+
bottomInset: ContainerTransition | null;
|
|
163
|
+
topLeftAction: ContainerTransition | null;
|
|
164
|
+
bottomSafeArea: SafeAreaTransition | null;
|
|
165
|
+
}
|
|
166
|
+
export type PageState = CsrState & {
|
|
167
|
+
topInset: number;
|
|
168
|
+
bottomInset: number;
|
|
169
|
+
};
|
|
170
|
+
export declare const defaultPageState: PageState;
|
|
171
|
+
export interface Location {
|
|
172
|
+
href: string;
|
|
173
|
+
pathname: string;
|
|
174
|
+
search: string;
|
|
175
|
+
params: {
|
|
176
|
+
[key: string]: string;
|
|
177
|
+
};
|
|
178
|
+
searchParams: {
|
|
179
|
+
[key: string]: string | string[];
|
|
180
|
+
};
|
|
181
|
+
pathRoute: PathRoute;
|
|
182
|
+
hash: string;
|
|
183
|
+
}
|
|
184
|
+
export interface LocationState {
|
|
185
|
+
location: Location;
|
|
186
|
+
prevLocation: Location | null;
|
|
187
|
+
}
|
|
188
|
+
export interface History {
|
|
189
|
+
type: "initial" | "forward" | "back";
|
|
190
|
+
locations: Location[];
|
|
191
|
+
scrollMap: Map<string, number>;
|
|
192
|
+
idxMap: Map<string, number>;
|
|
193
|
+
cachedLocationMap: Map<string, Location>;
|
|
194
|
+
idx: number;
|
|
195
|
+
}
|
|
196
|
+
export interface RouterProps {
|
|
197
|
+
push: (path: string) => void;
|
|
198
|
+
replace: (path: string) => void;
|
|
199
|
+
refresh: () => void;
|
|
200
|
+
back: () => void | Promise<void>;
|
|
201
|
+
}
|
|
202
|
+
export interface RouteState {
|
|
203
|
+
clientWidth: number;
|
|
204
|
+
clientHeight: number;
|
|
205
|
+
location: Location;
|
|
206
|
+
prevLocation: Location | null;
|
|
207
|
+
history: RefObject<History>;
|
|
208
|
+
topSafeAreaRef: RefObject<HTMLDivElement | null>;
|
|
209
|
+
bottomSafeAreaRef: RefObject<HTMLDivElement | null>;
|
|
210
|
+
prevPageContentRef: RefObject<HTMLDivElement | null>;
|
|
211
|
+
pageContentRef: RefObject<HTMLDivElement | null>;
|
|
212
|
+
frameRootRef: RefObject<HTMLDivElement | null>;
|
|
213
|
+
onBack: RefObject<{
|
|
214
|
+
[K in TransitionType]?: () => Promise<void>;
|
|
215
|
+
}>;
|
|
216
|
+
router: RouterInstance;
|
|
217
|
+
pathRoutes: PathRoute[];
|
|
218
|
+
}
|
|
219
|
+
export type UseCsrTransition = CsrTransitionStyles & {
|
|
220
|
+
pageBind: (...args: any[]) => ReactDOMAttributes;
|
|
221
|
+
pageClassName: string;
|
|
222
|
+
transDirection: "vertical" | "horizontal" | "none";
|
|
223
|
+
transUnitRange: number[];
|
|
224
|
+
transUnit: SpringValue<number>;
|
|
225
|
+
transPercent: Interpolation<number>;
|
|
226
|
+
transProgress: Interpolation<number>;
|
|
227
|
+
};
|
|
228
|
+
export type CsrContextType = RouteState & UseCsrTransition;
|
|
229
|
+
export declare const csrContext: import("react").Context<CsrContextType>;
|
|
230
|
+
export declare const useCsr: () => CsrContextType;
|
|
231
|
+
export interface PathContextType {
|
|
232
|
+
pageType: "current" | "prev" | "cached";
|
|
233
|
+
location: Location;
|
|
234
|
+
prefix?: string;
|
|
235
|
+
gestureEnabled: boolean;
|
|
236
|
+
setGestureEnabled: (enabled: boolean) => void;
|
|
237
|
+
}
|
|
238
|
+
export declare const pathContext: import("react").Context<PathContextType>;
|
|
239
|
+
export declare const usePathCtx: () => PathContextType;
|
|
240
|
+
export interface PathRoute {
|
|
241
|
+
path: string;
|
|
242
|
+
pathSegments: string[];
|
|
243
|
+
renderPage: RouteRender;
|
|
244
|
+
pageState: PageState;
|
|
245
|
+
renderRootLayouts: RouteRender[];
|
|
246
|
+
renderLayouts: RouteRender[];
|
|
247
|
+
resolveHead?: ResolveHead;
|
|
248
|
+
isSpecialRoute?: boolean;
|
|
249
|
+
}
|
|
250
|
+
export interface LayoutFallbackRoute {
|
|
251
|
+
path: string;
|
|
252
|
+
pathSegments: string[];
|
|
253
|
+
renderRootLayouts: RouteRender[];
|
|
254
|
+
renderLayouts: RouteRender[];
|
|
255
|
+
}
|
|
256
|
+
export interface RouteGuide {
|
|
257
|
+
pathSegment: string;
|
|
258
|
+
pathRoute?: PathRoute;
|
|
259
|
+
children: {
|
|
260
|
+
[key: string]: RouteGuide;
|
|
261
|
+
};
|
|
262
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface ToastProps {
|
|
2
|
+
root?: string;
|
|
3
|
+
duration?: number;
|
|
4
|
+
}
|
|
5
|
+
/** Decorates async actions with loading/success/error toast messages from `msg`. */
|
|
6
|
+
export declare const Toast: ({ root, duration }?: ToastProps) => (target: any, key: string, descriptor: PropertyDescriptor) => void;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { RefObject } from "react";
|
|
2
|
+
import type { CapacitorDeviceInfo, CapacitorHapticsModule, CapacitorKeyboardModule } from "./capacitor.d.ts";
|
|
3
|
+
type DeviceInfo = CapacitorDeviceInfo;
|
|
4
|
+
type Keyboard = CapacitorKeyboardModule["Keyboard"];
|
|
5
|
+
type Haptics = CapacitorHapticsModule["Haptics"];
|
|
6
|
+
type ImpactStyle = CapacitorHapticsModule["ImpactStyle"];
|
|
7
|
+
interface DeviceInitOption {
|
|
8
|
+
lang: string;
|
|
9
|
+
info: DeviceInfo;
|
|
10
|
+
topSafeArea: number;
|
|
11
|
+
bottomSafeArea: number;
|
|
12
|
+
keyboard: Keyboard;
|
|
13
|
+
haptics: Haptics;
|
|
14
|
+
impactStyle: ImpactStyle;
|
|
15
|
+
}
|
|
16
|
+
export declare const isMobileDevice: () => boolean;
|
|
17
|
+
/** Capacitor-aware device helper for platform info, safe areas, keyboard, haptics, and scroll state. */
|
|
18
|
+
export declare class Device {
|
|
19
|
+
#private;
|
|
20
|
+
static instance: Device | null;
|
|
21
|
+
static load({ lang, supportLanguages, }: {
|
|
22
|
+
lang?: string;
|
|
23
|
+
supportLanguages?: string[] | readonly string[];
|
|
24
|
+
}): Promise<Device>;
|
|
25
|
+
static getDevice(): Device;
|
|
26
|
+
info: DeviceInfo;
|
|
27
|
+
lang: string;
|
|
28
|
+
topSafeArea: number;
|
|
29
|
+
bottomSafeArea: number;
|
|
30
|
+
isMobile: boolean;
|
|
31
|
+
constructor({ lang, info, topSafeArea, bottomSafeArea, keyboard, haptics, impactStyle }: DeviceInitOption);
|
|
32
|
+
setPageContentRef(pageContentRef: RefObject<HTMLDivElement | null>): void;
|
|
33
|
+
showKeyboard(): Promise<void>;
|
|
34
|
+
hideKeyboard(): Promise<void>;
|
|
35
|
+
listenKeyboardChanged(onKeyboardChanged: (height: number) => void): void;
|
|
36
|
+
unlistenKeyboardChanged(): void;
|
|
37
|
+
vibrate(type?: "light" | "medium" | "heavy" | number): Promise<void>;
|
|
38
|
+
getScrollTop(): number;
|
|
39
|
+
setScrollTop(scrollTop: number): void;
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { fetch, sig } from "./clientRuntime.d.ts";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from "./clientRuntime.d.ts";
|
|
2
|
+
export * from "./cookie.d.ts";
|
|
3
|
+
export * from "./createFont.d.ts";
|
|
4
|
+
export * from "./csrTypes.d.ts";
|
|
5
|
+
export * from "./decorators.d.ts";
|
|
6
|
+
export * from "./device.d.ts";
|
|
7
|
+
export * from "./locale.d.ts";
|
|
8
|
+
export * from "./makePageProto.d.ts";
|
|
9
|
+
export * from "./router.d.ts";
|
|
10
|
+
export * from "./rscNavigation.d.ts";
|
|
11
|
+
export * from "./storage.d.ts";
|
|
12
|
+
export * from "./translator.d.ts";
|
|
13
|
+
export * from "./types.d.ts";
|
|
14
|
+
export * from "./useClient.d.ts";
|