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
package/ui/InfiniteScroll.tsx
CHANGED
package/ui/Input.tsx
CHANGED
|
@@ -66,7 +66,7 @@ export const Input = ({
|
|
|
66
66
|
: validateResult === false
|
|
67
67
|
? l("base.invalidValueError")
|
|
68
68
|
: validateResult;
|
|
69
|
-
|
|
69
|
+
|
|
70
70
|
const statusClass =
|
|
71
71
|
inputStyleType === "bordered"
|
|
72
72
|
? status === "error"
|
|
@@ -117,7 +117,6 @@ export const Input = ({
|
|
|
117
117
|
className={clsx(
|
|
118
118
|
`b-5 text-base-content outline-hidden duration-300 focus:border-primary focus:outline-hidden ${icon && ""}`,
|
|
119
119
|
inputType,
|
|
120
|
-
// statusClass,
|
|
121
120
|
inputClassName,
|
|
122
121
|
)}
|
|
123
122
|
/>
|
|
@@ -590,15 +589,9 @@ const Number = ({
|
|
|
590
589
|
value={formatValue}
|
|
591
590
|
onKeyDown={handleKeyDown}
|
|
592
591
|
onBlur={(e) => {
|
|
593
|
-
// if (rest.max !== undefined && parsedValue > parseFloat(rest.max as string)) {
|
|
594
|
-
// e.target.value = formatter ? formatter(String(rest.max)) : String(rest.max);
|
|
595
|
-
// } else if (rest.min !== undefined && parsedValue < parseFloat(rest.min as string)) {
|
|
596
|
-
// e.target.value = formatter ? formatter(String(rest.min)) : String(rest.min);
|
|
597
|
-
// }
|
|
598
592
|
if (firstFocus && value) setFirstFocus(false);
|
|
599
593
|
}}
|
|
600
594
|
onChange={(e) => {
|
|
601
|
-
//string만 허용
|
|
602
595
|
const parsedValue = parser ? parser(e.target.value) : e.target.value;
|
|
603
596
|
setFormatValue(formatter ? formatter(parsedValue) : e.target.value);
|
|
604
597
|
onChange(parser ? parseFloat(parsedValue) : parseFloat(e.target.value), e);
|
package/ui/Layout/BottomTab.tsx
CHANGED
|
@@ -21,7 +21,7 @@ export interface BottomTabProps {
|
|
|
21
21
|
|
|
22
22
|
export const BottomTab = ({ className, tabs, height = 64 }: BottomTabProps) => {
|
|
23
23
|
const { lang, path } = usePage();
|
|
24
|
-
|
|
24
|
+
|
|
25
25
|
const [isRendered, setIsRendered] = useState<boolean>(false);
|
|
26
26
|
const isActiveTab = (tabHref: string) => {
|
|
27
27
|
if (!isRendered) return false;
|
|
@@ -56,7 +56,7 @@ export const BottomTab = ({ className, tabs, height = 64 }: BottomTabProps) => {
|
|
|
56
56
|
<div className="indicator">
|
|
57
57
|
{isActiveTab(tab.href) ? (tab.activeIcon ?? tab.icon) : tab.icon}
|
|
58
58
|
{tab.notiCount && tab.notiCount > 0 ? (
|
|
59
|
-
|
|
59
|
+
|
|
60
60
|
<div className="indicator-item flex size-2 items-center justify-center rounded-full bg-secondary text-[10px] text-base-100">
|
|
61
61
|
{/* {tab.notiCount > 99 ? "99+" : tab.notiCount} */}
|
|
62
62
|
</div>
|
package/ui/Link/SsrLink.tsx
CHANGED
|
@@ -44,8 +44,7 @@ export default function SsrLink({
|
|
|
44
44
|
[activeClassName ?? ""]: activeExact ? currentPath === path : currentPath.startsWith(path),
|
|
45
45
|
})}
|
|
46
46
|
href={isExternal ? href : href.startsWith("#") ? href : requestHref}
|
|
47
|
-
|
|
48
|
-
// replace={replace}
|
|
47
|
+
|
|
49
48
|
{...props}
|
|
50
49
|
onClick={(event) => {
|
|
51
50
|
props.onClick?.(event);
|
package/ui/Load/Page.tsx
CHANGED
|
@@ -29,7 +29,7 @@ const Page: <Return>(props: PageProps<Return>) => ReactNode =
|
|
|
29
29
|
error instanceof Error ? error.message : typeof error === "string" ? error : "Unknown error";
|
|
30
30
|
if (message === "NEXT_REDIRECT") reject(error);
|
|
31
31
|
else {
|
|
32
|
-
|
|
32
|
+
|
|
33
33
|
console.error(error);
|
|
34
34
|
resolve(<div className="text-red-500">{message}</div>);
|
|
35
35
|
}
|
package/ui/Load/PageCSR.tsx
CHANGED
package/ui/Load/Units.tsx
CHANGED
|
@@ -158,10 +158,9 @@ function Render<RefName extends string, Light extends { id: string }>({
|
|
|
158
158
|
},
|
|
159
159
|
onPageSelect: (page: number) => {
|
|
160
160
|
void storeDo[namesOfSlice.setPageOfModel](page);
|
|
161
|
-
|
|
161
|
+
|
|
162
162
|
window.parent.postMessage({ type: "pathChange", page }, "*");
|
|
163
163
|
window.scrollTo({ top: 0, behavior: "instant" });
|
|
164
|
-
// }
|
|
165
164
|
},
|
|
166
165
|
reverse,
|
|
167
166
|
};
|
package/ui/Load/View.tsx
CHANGED
|
@@ -78,7 +78,6 @@ function Render<T extends string, Full extends { id: string }>({
|
|
|
78
78
|
) : renderModel ? (
|
|
79
79
|
<div className={clsx("w-full", className)}>{renderView(renderModel)}</div>
|
|
80
80
|
) : null;
|
|
81
|
-
// <>{loading}</>
|
|
82
81
|
}
|
|
83
82
|
|
|
84
83
|
export default function View<T extends string, Full extends { id: string }>({
|
|
@@ -88,7 +87,7 @@ export default function View<T extends string, Full extends { id: string }>({
|
|
|
88
87
|
loading,
|
|
89
88
|
renderView,
|
|
90
89
|
}: ViewProps<T, Full>) {
|
|
91
|
-
|
|
90
|
+
|
|
92
91
|
const props: ViewProps<T, Full> = {
|
|
93
92
|
className,
|
|
94
93
|
view,
|
package/ui/Menu.tsx
CHANGED
|
@@ -45,8 +45,8 @@ export const Menu = ({
|
|
|
45
45
|
onMouseOver,
|
|
46
46
|
onMouseLeave,
|
|
47
47
|
}: MenuProps) => {
|
|
48
|
-
const [expandedKey, setExpandedKey] = useState<string>();
|
|
49
|
-
const [currentKey, setCurrentKey] = useState<string | null>(defaultSelectedKeys?.[0] ?? null);
|
|
48
|
+
const [expandedKey, setExpandedKey] = useState<string>();
|
|
49
|
+
const [currentKey, setCurrentKey] = useState<string | null>(defaultSelectedKeys?.[0] ?? null);
|
|
50
50
|
const modeClassName = mode === "horizontal" ? "menu-horizontal flex-row " : "bg-base-200";
|
|
51
51
|
const menuRef = useRef<HTMLDivElement | null>(null);
|
|
52
52
|
const LiRefs = useRef<HTMLLIElement[]>([]);
|
|
@@ -64,7 +64,6 @@ export const Menu = ({
|
|
|
64
64
|
? "w-full h-full bg-red-500 btn btn-ghost px-2 m-0 hover:bg-primary/20 btn btn-ghost text-primary-focus font-normal"
|
|
65
65
|
: "w-full text-center duration-300 whitespace-nowrap btn btn-ghost text-primary-focus font-normal";
|
|
66
66
|
|
|
67
|
-
// const activeClassName = activeStyle === "active" ? "[&>div]:bg-primary/20 [&>div]:text-primary-focus" : "bordered";
|
|
68
67
|
const activeClassName =
|
|
69
68
|
activeStyle === "active"
|
|
70
69
|
? "bg-primary text-primary-focus"
|
|
@@ -74,7 +73,6 @@ export const Menu = ({
|
|
|
74
73
|
|
|
75
74
|
const [overflowMenuItems, setOverflowMenuItems] = useState<MenuItem[]>([]);
|
|
76
75
|
|
|
77
|
-
// 초기화. 각각 아이템의 너비를 구함
|
|
78
76
|
useLayoutEffect(() => {
|
|
79
77
|
if (mode !== "horizontal") return;
|
|
80
78
|
const menu = menuRef.current;
|
|
@@ -88,7 +86,6 @@ export const Menu = ({
|
|
|
88
86
|
checkOverflow();
|
|
89
87
|
}, []);
|
|
90
88
|
|
|
91
|
-
// 브라우저 너비가 줄어들면, overflowMenuItems에 추가
|
|
92
89
|
useEffect(() => {
|
|
93
90
|
checkOverflow();
|
|
94
91
|
}, [innerWidth]);
|
|
@@ -97,7 +94,7 @@ export const Menu = ({
|
|
|
97
94
|
if (mode !== "horizontal" || !itemWidthsRef.current.length) return;
|
|
98
95
|
const menu = menuRef.current;
|
|
99
96
|
if (!menu) return;
|
|
100
|
-
|
|
97
|
+
|
|
101
98
|
const totalWidth = menu.getBoundingClientRect().width;
|
|
102
99
|
const widths = itemWidthsRef.current;
|
|
103
100
|
const overflowItems: MenuItem[] = [];
|
|
@@ -222,7 +219,7 @@ interface OverflowMenuProps {
|
|
|
222
219
|
|
|
223
220
|
const OverflowMenu = ({ overflowItems, onClick }: OverflowMenuProps) => {
|
|
224
221
|
const [isOpen, setIsOpen] = useState(false);
|
|
225
|
-
const [expandedKey, setExpandedKey] = useState<string>();
|
|
222
|
+
const [expandedKey, setExpandedKey] = useState<string>();
|
|
226
223
|
const handleMouseEnter = () => {
|
|
227
224
|
setIsOpen(true);
|
|
228
225
|
};
|
|
@@ -260,7 +257,7 @@ const OverflowMenu = ({ overflowItems, onClick }: OverflowMenuProps) => {
|
|
|
260
257
|
}}
|
|
261
258
|
key={child.key}
|
|
262
259
|
className="btn btn-ghost flex items-center justify-center text-center font-normal text-primary-focus"
|
|
263
|
-
|
|
260
|
+
|
|
264
261
|
>
|
|
265
262
|
{child.label}
|
|
266
263
|
</div>
|
package/ui/Model/EditModal.tsx
CHANGED
|
@@ -80,7 +80,6 @@ const EditModel = <Full,>({
|
|
|
80
80
|
};
|
|
81
81
|
}, []);
|
|
82
82
|
|
|
83
|
-
// if (type === "empty") return null;
|
|
84
83
|
return <LoadingWrapper className={clsx("w-full", className)}>{children}</LoadingWrapper>;
|
|
85
84
|
};
|
|
86
85
|
|
|
@@ -181,19 +180,18 @@ export default function EditModal<Full extends { id: string }>({
|
|
|
181
180
|
[names.modelViewAt]: (modelEdit as any)[names.modelViewAt] as Date,
|
|
182
181
|
});
|
|
183
182
|
} else {
|
|
184
|
-
|
|
183
|
+
|
|
185
184
|
const crystal = new modelRef().set(modelEdit as Full) as unknown as Full;
|
|
186
185
|
void storeDo[names.newModel](crystal, { modal, setDefault: true, sliceName });
|
|
187
186
|
}
|
|
188
187
|
return () => {
|
|
189
|
-
// st.do[names.resetModel]();
|
|
190
188
|
};
|
|
191
189
|
}, [modelEdit]);
|
|
192
190
|
|
|
193
191
|
const handleCancel = useCallback(() => {
|
|
194
192
|
const modelForm = (st.get() as any)[names.modelForm] as Full;
|
|
195
193
|
const form = deepObjectify({ ...modelForm });
|
|
196
|
-
|
|
194
|
+
|
|
197
195
|
void storeDo[names.setModelModal](null);
|
|
198
196
|
if (typeof onCancel === "function") onCancel(form);
|
|
199
197
|
else if (onCancel === "back") router.back();
|
|
@@ -246,7 +244,6 @@ export default function EditModal<Full extends { id: string }>({
|
|
|
246
244
|
await handleSubmit({ onError });
|
|
247
245
|
}}
|
|
248
246
|
onSuccess={() => {
|
|
249
|
-
//
|
|
250
247
|
}}
|
|
251
248
|
>
|
|
252
249
|
{modelFormId ? <AiOutlineSave /> : <AiOutlinePlus />}
|
package/ui/Popconfirm.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useSpring } from "@react-spring/web";
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import { clsx, usePage } from "akanjs/client";
|
|
5
5
|
import { type ButtonHTMLAttributes, type ReactNode, useEffect, useState } from "react";
|
|
6
6
|
import { BiMessageRoundedError } from "react-icons/bi";
|
|
@@ -56,18 +56,16 @@ export const Popconfirm = ({
|
|
|
56
56
|
},
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
// popconfirm 위치 조정 (x 좌표가 음수인 경우)
|
|
60
59
|
useEffect(() => {
|
|
61
60
|
const popconfirm = document.querySelector(".popconfirm");
|
|
62
61
|
const popconfirmRect = popconfirm?.getBoundingClientRect();
|
|
63
62
|
const popconfirmDeco = document.querySelector(".popconfirm-deco");
|
|
64
63
|
|
|
65
|
-
// popconfirmRect.x 가 좌측 화면 밖으로 나가는 경우
|
|
66
64
|
if (popconfirmRect && popconfirmRect.x < 0) {
|
|
67
65
|
popconfirm?.classList.add("left-0", "right-auto");
|
|
68
66
|
popconfirmDeco?.classList.add("left-10", "left-auto");
|
|
69
67
|
}
|
|
70
|
-
|
|
68
|
+
|
|
71
69
|
if (popconfirmRect && popconfirmRect.x + popconfirmRect.width > window.innerWidth) {
|
|
72
70
|
popconfirm?.classList.add("left-auto", "right-0");
|
|
73
71
|
}
|
package/ui/ScreenNavigator.tsx
CHANGED
|
@@ -24,7 +24,7 @@ const ScreenNavigatorContext = createContext<ScreenNavigatorContextType>({
|
|
|
24
24
|
});
|
|
25
25
|
|
|
26
26
|
interface ScreenNavigatorProps {
|
|
27
|
-
|
|
27
|
+
|
|
28
28
|
children: React.ReactNode;
|
|
29
29
|
setMenu?: (menu: string) => void;
|
|
30
30
|
menus: string[];
|
|
@@ -33,7 +33,6 @@ interface ScreenNavigatorProps {
|
|
|
33
33
|
export const ScreenNavigator = ({
|
|
34
34
|
children,
|
|
35
35
|
setMenu = () => {
|
|
36
|
-
//
|
|
37
36
|
},
|
|
38
37
|
menus,
|
|
39
38
|
}: ScreenNavigatorProps) => {
|
|
@@ -51,7 +50,7 @@ export const ScreenNavigator = ({
|
|
|
51
50
|
const bind = useDrag(
|
|
52
51
|
({ first, last, offset: [x], velocity: [vx], direction: [dx], movement: [mx], cancel }) => {
|
|
53
52
|
if (!ref.current) return;
|
|
54
|
-
|
|
53
|
+
|
|
55
54
|
const deviceWidth = ref.current.clientWidth / 2;
|
|
56
55
|
if (x > 0 || x < -deviceWidth) return;
|
|
57
56
|
if (dx < 1) {
|
package/ui/Signal/Message.tsx
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { PrimitiveRegistry } from "akanjs/base";
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import { fetch, usePage } from "akanjs/client";
|
|
5
5
|
import { capitalize } from "akanjs/common";
|
|
6
6
|
import { type ConstantCls, ConstantRegistry } from "akanjs/constant";
|
|
7
7
|
import type { SerializedEndpoint } from "akanjs/signal";
|
|
8
|
-
|
|
9
|
-
// import { fetch, makeRequestExample, SerializedEndpoint } from "akanjs/signal";
|
|
8
|
+
|
|
10
9
|
import { useEffect, useMemo, useState } from "react";
|
|
11
10
|
import { AiOutlineDisconnect, AiOutlineFileWord, AiOutlineSend, AiOutlineSwap } from "react-icons/ai";
|
|
12
11
|
import { BiSolidNetworkChart } from "react-icons/bi";
|
package/ui/Signal/PubSub.tsx
CHANGED
|
@@ -86,8 +86,6 @@ interface PubSubInterfaceProps {
|
|
|
86
86
|
refName: string;
|
|
87
87
|
endpointKey: string;
|
|
88
88
|
endpoint: SerializedEndpoint;
|
|
89
|
-
// gqlArgMetas: ArgMeta[];
|
|
90
|
-
// uploadArgMetas: ArgMeta[];
|
|
91
89
|
}
|
|
92
90
|
const PubSubInterface = ({ refName, endpointKey, endpoint }: PubSubInterfaceProps) => {
|
|
93
91
|
const returnRef = ConstantRegistry.getModelRef(endpoint.returns.refName, endpoint.returns.modelType);
|
package/ui/Signal/Response.tsx
CHANGED
package/ui/Signal/WebSocket.tsx
CHANGED
|
@@ -14,21 +14,12 @@ interface WebSocketEndpointsProps {
|
|
|
14
14
|
}
|
|
15
15
|
const WebSocketEndpoints = ({ refName, fetch, openAll }: WebSocketEndpointsProps) => {
|
|
16
16
|
const signal = fetch.serializedSignal[refName];
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
const endpointEntries = Object.entries(signal.endpoint)
|
|
19
19
|
.sort(([keyA], [keyB]) => (keyA > keyB ? 1 : -1))
|
|
20
20
|
.filter(([key, endpoint]) => {
|
|
21
21
|
if (endpoint.type === "query" || endpoint.type === "mutation") return false;
|
|
22
|
-
|
|
23
|
-
// if ((endpoint.guards?.includes("User") || endpoint.guards?.includes("Every")) && tryRoles.includes("User"))
|
|
24
|
-
// return true;
|
|
25
|
-
// if ((endpoint.guards?.includes("Admin") || endpoint.guards?.includes("Every")) && tryRoles.includes("Admin"))
|
|
26
|
-
// return true;
|
|
27
|
-
// if (
|
|
28
|
-
// (endpoint.guards?.includes("SuperAdmin") || endpoint.guards?.includes("Every")) &&
|
|
29
|
-
// tryRoles.includes("SuperAdmin")
|
|
30
|
-
// )
|
|
31
|
-
// return true;
|
|
22
|
+
|
|
32
23
|
return false;
|
|
33
24
|
});
|
|
34
25
|
return (
|
package/ui/System/Client.tsx
CHANGED
|
@@ -54,16 +54,10 @@ export const ClientWrapper = ({
|
|
|
54
54
|
signals = [],
|
|
55
55
|
reconnect = true,
|
|
56
56
|
}: ClientWrapperProps) => {
|
|
57
|
-
|
|
58
|
-
// SSR provides the active-locale dictionary as a prop (serialized via the RSC Flight payload);
|
|
59
|
-
// this runs in both the SSR render process and the browser, so the first paint is translated
|
|
60
|
-
// without shipping every locale in the client JS bundle. CSR seeds via the build-time macro instead.
|
|
57
|
+
|
|
61
58
|
if (dictionary) {
|
|
62
59
|
Translator.seed(lang, dictionary);
|
|
63
|
-
|
|
64
|
-
// This keeps client lookups aligned with the seeded + server-rendered locale (no hydration
|
|
65
|
-
// mismatch) for base-path / cloud routing where the URL segment is not a reliable locale.
|
|
66
|
-
// Skipped on the server (typeof window === "undefined") where locale is request-scoped.
|
|
60
|
+
|
|
67
61
|
if (typeof window !== "undefined") Translator.setActiveLocale(lang);
|
|
68
62
|
}
|
|
69
63
|
useLayoutEffect(() => {
|
|
@@ -102,9 +96,9 @@ export const ClientPathWrapper = ({
|
|
|
102
96
|
}: ClientPathWrapperProps) => {
|
|
103
97
|
const href = location?.href ?? (typeof window !== "undefined" ? window.location.href : "");
|
|
104
98
|
const hash = location?.hash ?? (typeof window !== "undefined" ? window.location.hash : "");
|
|
105
|
-
const pathname = location?.pathname ?? "/";
|
|
106
|
-
const params = location?.params ?? {};
|
|
107
|
-
const searchParams = location?.searchParams ?? {};
|
|
99
|
+
const pathname = location?.pathname ?? "/";
|
|
100
|
+
const params = location?.params ?? {};
|
|
101
|
+
const searchParams = location?.searchParams ?? {};
|
|
108
102
|
const search = location?.search ?? (typeof window !== "undefined" ? window.location.search : "");
|
|
109
103
|
const lang = params.lang;
|
|
110
104
|
const firstPath = pathname.split("/")[2];
|
|
@@ -117,14 +111,8 @@ export const ClientPathWrapper = ({
|
|
|
117
111
|
renderLayouts: [],
|
|
118
112
|
};
|
|
119
113
|
|
|
120
|
-
// const { initialize, codepush, statManager } = useCodepush({ serverUrl: process.env.AKAN_PUBLIC_SERVER_URL ?? "" });
|
|
121
|
-
|
|
122
114
|
const [gestureEnabled, setGestureEnabled] = useState(true);
|
|
123
|
-
|
|
124
|
-
// void initialize();
|
|
125
|
-
// void codepush();
|
|
126
|
-
// void statManager();
|
|
127
|
-
// }, []);
|
|
115
|
+
|
|
128
116
|
return (
|
|
129
117
|
<pathContext.Provider
|
|
130
118
|
value={{
|
|
@@ -173,24 +161,10 @@ export const ClientBridge = ({ env, lang, theme, prefix, gaTrackingId }: ClientB
|
|
|
173
161
|
const searchParams = st.use.searchParams();
|
|
174
162
|
const language = (params.lang as string | undefined) ?? lang;
|
|
175
163
|
const path = `/${pathname.split("/").slice(2).join("/")}`;
|
|
176
|
-
|
|
164
|
+
|
|
177
165
|
useEffect(() => {
|
|
178
166
|
if (uiOperation !== "sleep") return;
|
|
179
|
-
// const initTheme = async () => {
|
|
180
|
-
// console.log("initTheme1", theme);
|
|
181
|
-
// if (theme) {
|
|
182
|
-
// setTheme(theme);
|
|
183
|
-
// return;
|
|
184
|
-
// }
|
|
185
|
-
// const localTheme = await storage.getItem("theme");
|
|
186
|
-
// console.log("localTheme2", localTheme);
|
|
187
|
-
// if (typeof localTheme === "string" && themes.includes(localTheme)) {
|
|
188
|
-
// console.log("setTheme3", localTheme);
|
|
189
|
-
// setTheme(localTheme);
|
|
190
|
-
// } else setTheme("system");
|
|
191
|
-
// };
|
|
192
167
|
|
|
193
|
-
// void initTheme();
|
|
194
168
|
setCookie("siteurl", window.location.origin);
|
|
195
169
|
dayjs.locale(language);
|
|
196
170
|
initAuth({ jwt: getBaseSearchParam(searchParams, "jwt") });
|
|
@@ -205,15 +179,7 @@ export const ClientBridge = ({ env, lang, theme, prefix, gaTrackingId }: ClientB
|
|
|
205
179
|
applyThemePolicy(theme ?? "system");
|
|
206
180
|
}, [theme]);
|
|
207
181
|
|
|
208
|
-
// useEffect(() => {
|
|
209
|
-
// if (storeTheme !== nextTheme) setTheme(storeTheme);
|
|
210
|
-
// }, [nextTheme]);
|
|
211
|
-
|
|
212
182
|
useEffect(() => {
|
|
213
|
-
//theme가 잇으면 theme부터
|
|
214
|
-
//theme가 있는데 nextTheme가 있으면
|
|
215
|
-
// if (nextTheme) setTheme(nextTheme);
|
|
216
|
-
// else if (theme) setTheme(theme);
|
|
217
183
|
}, []);
|
|
218
184
|
|
|
219
185
|
useEffect(() => {
|
package/ui/System/Gtag.tsx
CHANGED
|
@@ -10,12 +10,11 @@ declare const window: {
|
|
|
10
10
|
export const Gtag = ({ trackingId, debugMode = false }: { trackingId: string; debugMode?: boolean }) => {
|
|
11
11
|
const pathname = st.use.pathname();
|
|
12
12
|
const searchParams = st.use.searchParams();
|
|
13
|
-
|
|
13
|
+
|
|
14
14
|
const pageview = (url: string) => {
|
|
15
15
|
window.gtag?.("config", trackingId, { page_path: url });
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
// https://developers.google.com/analytics/devguides/collection/gtagjs/events
|
|
19
18
|
const event = ({
|
|
20
19
|
action,
|
|
21
20
|
category,
|
|
@@ -46,15 +45,13 @@ export const Gtag = ({ trackingId, debugMode = false }: { trackingId: string; de
|
|
|
46
45
|
} else urlSearchParams.set(key, value);
|
|
47
46
|
}
|
|
48
47
|
handleRouteChange(pathname + (urlSearchParams.size ? urlSearchParams.toString() : ""));
|
|
49
|
-
// const url = pathname + searchParams?.toString();
|
|
50
|
-
// handleRouteChange(url);
|
|
51
48
|
}, [pathname, searchParams]);
|
|
52
49
|
|
|
53
50
|
return (
|
|
54
51
|
<>
|
|
55
52
|
<script async src={`https://www.googletagmanager.com/gtag/js?id=${trackingId}`} />
|
|
56
53
|
<script
|
|
57
|
-
|
|
54
|
+
|
|
58
55
|
dangerouslySetInnerHTML={{
|
|
59
56
|
__html: `
|
|
60
57
|
window.dataLayer = window.dataLayer || [];
|
package/ui/System/Messages.tsx
CHANGED
|
@@ -15,7 +15,7 @@ type MessageType = "success" | "error" | "info" | "warning" | "loading";
|
|
|
15
15
|
interface MessageProps {
|
|
16
16
|
content: ReactNode;
|
|
17
17
|
type?: MessageType;
|
|
18
|
-
duration: number;
|
|
18
|
+
duration: number;
|
|
19
19
|
keyForMessage: string;
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -36,7 +36,7 @@ const Message = ({ content, type = "info" as MessageType, duration, keyForMessag
|
|
|
36
36
|
const [preBlind, setPreBlind] = useState(false);
|
|
37
37
|
useEffect(() => {
|
|
38
38
|
if (!content) return;
|
|
39
|
-
|
|
39
|
+
|
|
40
40
|
const existingTimeOut = timeOuts.find((item) => item.key === keyForMessage);
|
|
41
41
|
if (existingTimeOut) {
|
|
42
42
|
clearTimeout(existingTimeOut.timeoutId);
|
package/ui/System/Reconnect.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { clsx, fetch, usePage } from "akanjs/client";
|
|
3
3
|
import { useInterval } from "akanjs/webkit";
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
6
6
|
import { TbPlugConnected, TbPlugConnectedX } from "react-icons/tb";
|
|
7
7
|
|
|
@@ -22,7 +22,7 @@ export const Reconnect = () => {
|
|
|
22
22
|
}, []);
|
|
23
23
|
|
|
24
24
|
const handleDisconnect = async () => {
|
|
25
|
-
|
|
25
|
+
|
|
26
26
|
if (document.hidden) {
|
|
27
27
|
wasHiddenOnDisconnect.current = true;
|
|
28
28
|
return;
|
|
@@ -39,14 +39,14 @@ export const Reconnect = () => {
|
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
const handleVisibilityChange = useCallback(() => {
|
|
42
|
-
|
|
42
|
+
|
|
43
43
|
if (!document.hidden && wasHiddenOnDisconnect.current) {
|
|
44
|
-
|
|
44
|
+
|
|
45
45
|
if (fetch.ws.connected) {
|
|
46
46
|
wasHiddenOnDisconnect.current = false;
|
|
47
47
|
setConnectStatus("normal");
|
|
48
48
|
} else {
|
|
49
|
-
|
|
49
|
+
|
|
50
50
|
void handleDisconnect();
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -56,7 +56,6 @@ export const Reconnect = () => {
|
|
|
56
56
|
fetch.ws.on("connect", handleConnect);
|
|
57
57
|
fetch.ws.on("disconnect", () => handleDisconnect());
|
|
58
58
|
|
|
59
|
-
// Page Visibility API 이벤트 리스너 추가
|
|
60
59
|
document.addEventListener("visibilitychange", handleVisibilityChange);
|
|
61
60
|
|
|
62
61
|
setTimeout(() => {
|
package/ui/System/Root.tsx
CHANGED
package/ui/System/SSR.tsx
CHANGED
|
@@ -35,16 +35,10 @@ const SSRProvider = ({
|
|
|
35
35
|
}: SSRProviderProps) => {
|
|
36
36
|
setRequestTheme(theme);
|
|
37
37
|
|
|
38
|
-
// Resolve the active locale exactly like `l()` does (getPageInfo / request), not via `params.lang`,
|
|
39
|
-
// which is only populated when the matched route pattern contains `:lang` and can otherwise diverge.
|
|
40
38
|
const { lang: activeLocale } = usePage();
|
|
41
39
|
|
|
42
|
-
// Server (RSC worker) renders server components: seed every locale into the shared Translator. This is
|
|
43
|
-
// free on the server (it never reaches the browser bundle) and makes server-component translations
|
|
44
|
-
// resolve no matter how the locale is routed.
|
|
45
40
|
if (allDictionary) for (const [lng, dict] of Object.entries(allDictionary)) Translator.seed(lng, dict);
|
|
46
41
|
|
|
47
|
-
// Only the active locale is serialized to the client (Flight payload) to keep the browser bundle lean.
|
|
48
42
|
const activeDictionary = allDictionary?.[activeLocale] ?? dictionary;
|
|
49
43
|
|
|
50
44
|
return (
|
|
@@ -93,7 +87,7 @@ const ServerFontFace = ({ fonts }: { fonts: ReactFont[] }) => {
|
|
|
93
87
|
<link key={preload.href} rel="preload" href={preload.href} as="font" type={preload.type} crossOrigin="" />
|
|
94
88
|
))}
|
|
95
89
|
{css ? (
|
|
96
|
-
|
|
90
|
+
|
|
97
91
|
<style data-akan-fonts dangerouslySetInnerHTML={{ __html: css }} />
|
|
98
92
|
) : null}
|
|
99
93
|
</>
|
package/ui/ToggleSelect.tsx
CHANGED
|
@@ -22,8 +22,7 @@ export const ToggleSelect = <I extends string | number | boolean | null>({
|
|
|
22
22
|
}: ToggleSelectProps<I>) => {
|
|
23
23
|
const { l } = usePage();
|
|
24
24
|
const validateResult = value !== null ? validate(value) : false;
|
|
25
|
-
|
|
26
|
-
// !nullable && !value?.length ? "warning" : validateResult === true ? "success" : "error";
|
|
25
|
+
|
|
27
26
|
const invalidMessage =
|
|
28
27
|
value === null || (typeof value === "string" && !value.length) || validateResult === true
|
|
29
28
|
? null
|
|
@@ -55,10 +54,7 @@ export const ToggleSelect = <I extends string | number | boolean | null>({
|
|
|
55
54
|
className={clsx(
|
|
56
55
|
"btn btn-sm",
|
|
57
56
|
{ "bg-success/70 text-success-content": isSelected, "btn-disabled cursor-not-allowed": isDisabled },
|
|
58
|
-
|
|
59
|
-
// "btn-error": status === "error",
|
|
60
|
-
// "btn-warning": status === "warning",
|
|
61
|
-
// },
|
|
57
|
+
|
|
62
58
|
btnClassName,
|
|
63
59
|
)}
|
|
64
60
|
onClick={() => {
|
|
@@ -89,8 +85,7 @@ interface MultiProps {
|
|
|
89
85
|
const Multi = ({ className, btnClassName, items, nullable, validate, value, onChange, disabled }: MultiProps) => {
|
|
90
86
|
const { l } = usePage();
|
|
91
87
|
const validateResult = validate(value);
|
|
92
|
-
|
|
93
|
-
// !nullable && !value.length ? "warning" : validateResult === true ? "success" : "error";
|
|
88
|
+
|
|
94
89
|
const invalidMessage =
|
|
95
90
|
!value.length || validateResult === true
|
|
96
91
|
? null
|
package/ui/Unauthorized.tsx
CHANGED
package/webkit/bootCsr.tsx
CHANGED
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
parseRouteModuleKey,
|
|
25
25
|
routeSegmentToTreePath,
|
|
26
26
|
} from "akanjs/common";
|
|
27
|
-
import { createElement, memo, type ReactNode, useRef } from "react";
|
|
27
|
+
import { createElement, memo, type ReactNode, useRef } from "react";
|
|
28
28
|
import * as ReactDOM from "react-dom/client";
|
|
29
29
|
import { useCsrValues } from "./useCsrValues";
|
|
30
30
|
import { useFetch } from "./useFetch";
|
|
@@ -85,7 +85,6 @@ export const bootCsr = async (context: Record<string, CsrRouteModuleEntry>) => {
|
|
|
85
85
|
const pathname = mobileBasePath && window.location.pathname === "/" ? `/${mobileBasePath}` : window.location.pathname;
|
|
86
86
|
if (pathname === "/404") return;
|
|
87
87
|
|
|
88
|
-
// 1. Collect Device Information
|
|
89
88
|
const [device, jwt] = await Promise.all([Device.load({ supportLanguages: i18n.locales }), storage.getItem("jwt")]);
|
|
90
89
|
if (!window.__AKAN_MOBILE_TARGET__ && !pathname.startsWith(`/${device.lang}`))
|
|
91
90
|
window.location.replace(`/${device.lang}${pathname}${window.location.search}${window.location.hash}`);
|
|
@@ -93,7 +92,6 @@ export const bootCsr = async (context: Record<string, CsrRouteModuleEntry>) => {
|
|
|
93
92
|
if (jwt) initAuth({ jwt });
|
|
94
93
|
Logger.verbose(`Set default language: ${device.lang}`);
|
|
95
94
|
|
|
96
|
-
// 2. Create Route Map
|
|
97
95
|
const basePaths = process.env.AKAN_PUBLIC_BASE_PATHS ? parseBasePaths(process.env.AKAN_PUBLIC_BASE_PATHS) : null;
|
|
98
96
|
const currentBasePath = basePaths ? pathname.split("/")[2] : undefined;
|
|
99
97
|
if (currentBasePath && basePaths && !basePaths.includes(currentBasePath))
|
|
@@ -108,7 +106,7 @@ export const bootCsr = async (context: Record<string, CsrRouteModuleEntry>) => {
|
|
|
108
106
|
const parsed = parseRouteModuleKey(key);
|
|
109
107
|
if (basePaths) {
|
|
110
108
|
const pageBasePath = parsed.sourceRouteSegments.find((segment) => !/^\(.+\)$/.test(segment));
|
|
111
|
-
if (pageBasePath && otherBasePaths.includes(pageBasePath)) return;
|
|
109
|
+
if (pageBasePath && otherBasePaths.includes(pageBasePath)) return;
|
|
112
110
|
}
|
|
113
111
|
const entry = typeof value === "function" ? { loader: value } : value;
|
|
114
112
|
const pageContent = await entry.loader();
|
|
@@ -175,8 +173,7 @@ export const bootCsr = async (context: Record<string, CsrRouteModuleEntry>) => {
|
|
|
175
173
|
resolveError: layoutPage ? () => layoutPage.Error : undefined,
|
|
176
174
|
};
|
|
177
175
|
targetRouteMap.set(targetPath, {
|
|
178
|
-
|
|
179
|
-
// ErrorBoundary: pages[path]?.ErrorBoundary,
|
|
176
|
+
|
|
180
177
|
...(targetRouteMap.get(targetPath) ?? { path: targetPath, children: new Map<string, Route>() }),
|
|
181
178
|
...(parsed.kind === "layout"
|
|
182
179
|
? { renderLayout: routeRender }
|
package/webkit/lazy.tsx
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import type { ComponentType, ReactNode } from "react";
|
|
2
|
-
|
|
3
|
-
// (the build Bun resolves `react` to under `--conditions react-server`).
|
|
4
|
-
// Named-importing them here would crash RSC worker evaluation with
|
|
5
|
-
// "Export named 'useEffect' not found". They're only ever called on the
|
|
6
|
-
// browser anyway (the `ssr: false` gate below is the only path that calls
|
|
7
|
-
// them, and it short-circuits on the server), so we dereference them
|
|
8
|
-
// through a namespace import — the namespace itself is always importable,
|
|
9
|
-
// and the lookup only happens when the gated Wrapper actually renders.
|
|
2
|
+
|
|
10
3
|
import * as React from "react";
|
|
11
4
|
import { forwardRef, lazy as reactLazy } from "react";
|
|
12
5
|
|