akanjs 3.0.2 → 3.1.0-rc.0
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 +26 -0
- package/base/baseEnv.ts +0 -4
- package/base/primitiveRegistry.ts +2 -2
- package/client/cookie.ts +5 -1
- package/client/csrLocation.ts +122 -0
- package/client/csrTypes.ts +32 -4
- package/client/device.ts +2 -1
- package/client/frameConfig.ts +78 -7
- package/client/index.ts +3 -0
- package/client/makePageProto.tsx +3 -2
- package/client/native/external-view.ts +1 -0
- package/client/route/RootLayoutDefinition.ts +7 -1
- package/client/route/RouteHead.ts +108 -0
- package/client/route/index.ts +1 -0
- package/client/router.ts +36 -23
- package/client/rscNavigation.ts +8 -2
- package/client/viewportMeta.ts +60 -0
- package/client/webManifest.ts +18 -0
- package/common/Logger.ts +7 -2
- package/common/PipelineNames.ts +31 -0
- package/common/PipelinePattern.ts +70 -0
- package/common/PipelinePlanSchema.ts +490 -0
- package/common/backoff.ts +14 -0
- package/common/index.ts +39 -0
- package/common/pipelinePlan.ts +259 -0
- package/common/routeConvention.ts +1 -0
- package/common/types.ts +17 -0
- package/constant/constantRegistry.ts +26 -6
- package/dictionary/base.dictionary.ts +8 -0
- package/dictionary/trans.ts +9 -1
- package/document/into.ts +5 -0
- package/fetch/client/fetchClient.ts +135 -31
- package/fetch/client/httpClient.ts +45 -0
- package/fetch/client/wsClient.ts +125 -16
- package/fetch/fetchType/buildFetch.type.ts +1 -0
- package/index.ts +243 -10
- package/package.json +1 -5
- package/server/akanApp.ts +5 -2
- package/server/akanServer.ts +44 -8
- package/server/artifact/builderRpc.ts +8 -3
- package/server/artifact/ipcTypes.ts +5 -2
- package/server/di/diLifecycle.ts +39 -3
- package/server/di/utils.ts +28 -1
- package/server/ed25519Key.ts +48 -0
- package/server/index.ts +1 -0
- package/server/machine/index.ts +2 -0
- package/server/machine/machineAccount.ts +27 -0
- package/server/machine/machineToken.ts +151 -0
- package/server/mcp/McpApps.ts +256 -0
- package/server/mcp/McpDispatcher.ts +31 -7
- package/server/mcp/McpRouter.ts +209 -46
- package/server/ops/opsToken.ts +3 -10
- package/server/resolver/database.resolver.ts +3 -0
- package/server/resolver/signal.resolver.ts +40 -3
- package/server/routeElementComposer.tsx +78 -2
- package/server/routeState.ts +6 -0
- package/server/routeTreeBuilder.ts +26 -9
- package/server/routing/apiRouter.ts +6 -3
- package/server/routing/roomReplay.ts +88 -0
- package/server/rscClient.tsx +53 -8
- package/server/rscWorker.tsx +141 -27
- package/server/rscWorkerHost.ts +18 -5
- package/server/sitemap.ts +14 -0
- package/server/ssrFromRscRenderer.tsx +12 -6
- package/server/ssrTypes.ts +3 -1
- package/server/systemPageDocument.tsx +38 -30
- package/server/types.tsx +2 -0
- package/server/webRouter.ts +74 -5
- package/service/injectInfo.ts +9 -1
- package/service/ipcTypes.ts +2 -1
- package/service/predefinedAdaptor/database.adaptor.ts +1 -146
- package/service/predefinedAdaptor/queue.adaptor.ts +44 -6
- package/service/predefinedAdaptor/queueBackoff.ts +12 -0
- package/service/predefinedAdaptor/solidQueue.adaptor.ts +17 -13
- package/service/predefinedAdaptor/sql/SqlDocumentStore.ts +44 -2
- package/service/predefinedAdaptor/sql/dialect/postgres.ts +3 -0
- package/service/predefinedAdaptor/sql/dialect/sqlite.ts +5 -2
- package/service/predefinedAdaptor/sql/search/fts5.ts +1 -1
- package/service/predefinedAdaptor/sql/types.ts +8 -6
- package/service/predefinedAdaptor/sql/values.ts +0 -23
- package/service/serve.ts +5 -1
- package/signal/agent.signal.ts +1 -1
- package/signal/base.signal.ts +2 -2
- package/signal/endpointIdempotency.ts +53 -0
- package/signal/internalArg.ts +14 -0
- package/signal/mcp/McpDocument.ts +38 -1
- package/signal/mcp/mcpProtocol.ts +18 -0
- package/signal/signalContext.ts +58 -30
- package/signal/signalRegistry.ts +14 -4
- package/signal/types.ts +18 -3
- package/store/agent/StoreSurfaceSource.ts +1 -1
- package/store/agentic/StToolBuilder.ts +3 -0
- package/test/conformance.ts +9 -33
- package/types/base/baseEnv.d.ts +0 -4
- package/types/base/primitiveRegistry.d.ts +1 -1
- package/types/client/csrLocation.d.ts +32 -0
- package/types/client/csrTypes.d.ts +40 -4
- package/types/client/frameConfig.d.ts +14 -2
- package/types/client/index.d.ts +3 -0
- package/types/client/native/external-view.d.ts +1 -0
- package/types/client/route/RootLayoutDefinition.d.ts +2 -1
- package/types/client/route/RouteHead.d.ts +13 -0
- package/types/client/route/index.d.ts +1 -0
- package/types/client/router.d.ts +6 -0
- package/types/client/rscNavigation.d.ts +4 -0
- package/types/client/viewportMeta.d.ts +18 -0
- package/types/client/webManifest.d.ts +4 -0
- package/types/common/PipelineNames.d.ts +6 -0
- package/types/common/PipelinePattern.d.ts +14 -0
- package/types/common/PipelinePlanSchema.d.ts +9 -0
- package/types/common/backoff.d.ts +10 -0
- package/types/common/index.d.ts +5 -0
- package/types/common/pipelinePlan.d.ts +224 -0
- package/types/common/types.d.ts +16 -0
- package/types/constant/constantRegistry.d.ts +5 -2
- package/types/dictionary/base.dictionary.d.ts +1 -1
- package/types/dictionary/dictionary.d.ts +8 -8
- package/types/document/into.d.ts +9 -0
- package/types/fetch/client/fetchClient.d.ts +31 -4
- package/types/fetch/client/httpClient.d.ts +8 -0
- package/types/fetch/client/wsClient.d.ts +26 -2
- package/types/fetch/fetchType/buildFetch.type.d.ts +1 -0
- package/types/index.d.ts +230 -9
- package/types/server/akanServer.d.ts +16 -1
- package/types/server/artifact/builderRpc.d.ts +7 -2
- package/types/server/artifact/ipcTypes.d.ts +5 -1
- package/types/server/di/utils.d.ts +1 -0
- package/types/server/ed25519Key.d.ts +13 -0
- package/types/server/index.d.ts +1 -0
- package/types/server/machine/index.d.ts +2 -0
- package/types/server/machine/machineAccount.d.ts +5 -0
- package/types/server/machine/machineToken.d.ts +29 -0
- package/types/server/machine.d.ts +1 -0
- package/types/server/mcp/McpApps.d.ts +50 -0
- package/types/server/mcp/McpDispatcher.d.ts +4 -1
- package/types/server/mcp/McpRouter.d.ts +4 -0
- package/types/server/resolver/signal.resolver.d.ts +2 -1
- package/types/server/routeElementComposer.d.ts +24 -4
- package/types/server/routeState.d.ts +4 -1
- package/types/server/routing/roomReplay.d.ts +24 -0
- package/types/server/rscWorkerHost.d.ts +5 -2
- package/types/server/sitemap.d.ts +2 -0
- package/types/server/ssrFromRscRenderer.d.ts +3 -3
- package/types/server/ssrTypes.d.ts +4 -1
- package/types/server/systemPageDocument.d.ts +2 -0
- package/types/server/types.d.ts +4 -1
- package/types/server/webRouter.d.ts +3 -1
- package/types/service/ipcTypes.d.ts +2 -0
- package/types/service/predefinedAdaptor/database.adaptor.d.ts +1 -24
- package/types/service/predefinedAdaptor/queue.adaptor.d.ts +10 -3
- package/types/service/predefinedAdaptor/queueBackoff.d.ts +4 -0
- package/types/service/predefinedAdaptor/solidQueue.adaptor.d.ts +3 -3
- package/types/service/predefinedAdaptor/sql/SqlDocumentStore.d.ts +6 -1
- package/types/service/predefinedAdaptor/sql/dialect/postgres.d.ts +1 -0
- package/types/service/predefinedAdaptor/sql/dialect/sqlite.d.ts +1 -0
- package/types/service/predefinedAdaptor/sql/search/fts5.d.ts +1 -1
- package/types/service/predefinedAdaptor/sql/types.d.ts +9 -5
- package/types/service/predefinedAdaptor/sql/values.d.ts +0 -3
- package/types/service/serve.d.ts +3 -0
- package/types/signal/endpointIdempotency.d.ts +7 -0
- package/types/signal/internalArg.d.ts +10 -0
- package/types/signal/mcp/McpDocument.d.ts +8 -0
- package/types/signal/mcp/mcpProtocol.d.ts +17 -0
- package/types/signal/signalContext.d.ts +5 -3
- package/types/signal/signalRegistry.d.ts +4 -4
- package/types/signal/types.d.ts +21 -1
- package/types/store/agentic/StToolBuilder.d.ts +2 -0
- package/types/test/conformance.d.ts +7 -10
- package/types/ui/Agent/Chat.d.ts +5 -1
- package/types/ui/Agent/EmbedApproval.d.ts +1 -0
- package/types/ui/Agent/index.d.ts +3 -0
- package/types/ui/Agent/useKeyboardFrame.d.ts +2 -0
- package/types/ui/Agent/useScreenActions.d.ts +18 -0
- package/types/ui/BottomSheet.d.ts +1 -0
- package/types/ui/Constant/Doc.d.ts +11 -17
- package/types/ui/Constant/index.d.ts +7 -2
- package/types/ui/Constant/schemaDoc.d.ts +11 -0
- package/types/ui/Dialog/Modal.d.ts +6 -1
- package/types/ui/Dialog/index.d.ts +1 -1
- package/types/ui/Dialog/modalSurface.d.ts +12 -0
- package/types/ui/Layout/BottomTab.d.ts +11 -2
- package/types/ui/Layout/FrameSlotFallback.d.ts +9 -0
- package/types/ui/Layout/Navbar.d.ts +4 -1
- package/types/ui/Layout/TopInset.d.ts +1 -1
- package/types/ui/Layout/index.d.ts +3 -3
- package/types/ui/Link/Action.d.ts +5 -1
- package/types/ui/Link/Anchor.d.ts +5 -3
- package/types/ui/Link/activePath.d.ts +13 -0
- package/types/ui/Link/index.d.ts +1 -1
- package/types/ui/Modal.d.ts +6 -1
- package/types/ui/Model/EditModal.d.ts +6 -1
- package/types/ui/Model/New.d.ts +6 -1
- package/types/ui/Model/ViewEditModal.d.ts +6 -1
- package/types/ui/Model/ViewModal.d.ts +6 -1
- package/types/ui/Model/newFormOrigin.d.ts +7 -0
- package/types/ui/Portal.d.ts +3 -1
- package/types/ui/Reference/origin.d.ts +12 -0
- package/types/ui/Signal/Doc.d.ts +23 -18
- package/types/ui/Signal/Listener.d.ts +2 -6
- package/types/ui/Signal/Object.d.ts +6 -10
- package/types/ui/Signal/Response.d.ts +3 -6
- package/types/ui/Signal/RestApi.d.ts +11 -15
- package/types/ui/Signal/WebSocket.d.ts +11 -21
- package/types/ui/Signal/endpointEntries.d.ts +8 -0
- package/types/ui/Signal/index.d.ts +35 -12
- package/types/ui/Signal/signalText.d.ts +178 -0
- package/types/ui/System/CSR.d.ts +2 -2
- package/types/ui/System/Client.d.ts +4 -3
- package/types/ui/System/Common.d.ts +27 -6
- package/types/ui/System/SSR.d.ts +6 -6
- package/types/ui/Tooltip.d.ts +4 -2
- package/types/ui/index.d.ts +2 -1
- package/types/ui/overlayLayer.d.ts +6 -0
- package/types/ui/overlayPosition.d.ts +17 -0
- package/types/vendor/@akanjs/native/packages/cli/src/api.d.ts +14 -3
- package/types/vendor/@akanjs/native/packages/cli/src/commands/update.d.ts +1 -1
- package/types/vendor/@akanjs/native/packages/cli/src/config.d.ts +30 -5
- package/types/vendor/@akanjs/native/packages/cli/src/lib/compat.d.ts +8 -0
- package/types/vendor/@akanjs/native/packages/cli/src/lib/desktop-server.d.ts +5 -0
- package/types/vendor/@akanjs/native/packages/cli/src/lib/distribution.d.ts +22 -0
- package/types/vendor/@akanjs/native/packages/cli/src/lib/project.d.ts +4 -0
- package/types/vendor/@akanjs/native/packages/cli/src/lib/publish.d.ts +16 -10
- package/types/vendor/@akanjs/native/packages/cli/src/lib/updates.d.ts +51 -7
- package/types/vendor/@akanjs/native/packages/cli/src/lib/vectors.d.ts +1 -1
- package/types/vendor/@akanjs/native/packages/cli/src/platforms/windows-installer.d.ts +7 -0
- package/types/vendor/@akanjs/native/packages/cli/src/platforms/windows.d.ts +5 -0
- package/types/vendor/@akanjs/native/packages/core/src/kernel.d.ts +36 -0
- package/types/vendor/@akanjs/native/packages/desktop/src/plugin.d.ts +2 -0
- package/types/vendor/@akanjs/native/packages/desktop/src/server.d.ts +11 -0
- package/types/vendor/@akanjs/native/plugins/external-view/src/desktop.d.ts +17 -0
- package/types/vendor/@akanjs/native/plugins/external-view/src/index.d.ts +132 -0
- package/types/vendor/@akanjs/native/plugins/external-view/src.d.ts +1 -0
- package/types/vendor/@akanjs/native/plugins/updates/src/index.d.ts +8 -0
- package/types/vendor/@akanjs/native/plugins/window/src/desktop.d.ts +4 -1
- package/types/vendor/@akanjs/native/plugins/window/src/index.d.ts +49 -0
- package/types/vendor/use-agentic/types.d.ts +2 -0
- package/types/webkit/CsrStack.d.ts +1 -1
- package/types/webkit/McpAppAgent.d.ts +14 -0
- package/types/webkit/McpAppApprovals.d.ts +8 -0
- package/types/webkit/McpAppBridge.d.ts +101 -0
- package/types/webkit/McpAppView.d.ts +21 -0
- package/types/webkit/index.d.ts +1 -0
- package/types/webkit/useLocation.d.ts +1 -1
- package/types/webkit/useVisualViewportFrame.d.ts +13 -0
- package/ui/Agent/Chat.tsx +29 -10
- package/ui/Agent/Composer.tsx +2 -1
- package/ui/Agent/EmbedApproval.tsx +17 -0
- package/ui/Agent/RichInput.tsx +1 -1
- package/ui/Agent/index.ts +2 -0
- package/ui/Agent/useKeyboardFrame.ts +10 -0
- package/ui/Agent/useScreenActions.ts +45 -0
- package/ui/BottomSheet.tsx +82 -53
- package/ui/Constant/Doc.tsx +113 -60
- package/ui/Constant/index.ts +2 -2
- package/ui/Constant/schemaDoc.ts +86 -26
- package/ui/Dialog/LegacyModal.tsx +53 -52
- package/ui/Dialog/Modal.tsx +93 -49
- package/ui/Dialog/modalSurface.ts +61 -0
- package/ui/DragAction.tsx +1 -1
- package/ui/DraggableList.tsx +1 -1
- package/ui/Dropdown.tsx +4 -6
- package/ui/KeyboardAvoiding.tsx +1 -1
- package/ui/Layout/BottomInset.tsx +20 -14
- package/ui/Layout/BottomTab.tsx +42 -16
- package/ui/Layout/FrameSlotFallback.tsx +59 -0
- package/ui/Layout/Navbar.tsx +37 -11
- package/ui/Layout/Sider.tsx +1 -1
- package/ui/Layout/TopInset.tsx +15 -14
- package/ui/Link/Action.tsx +15 -5
- package/ui/Link/Anchor.tsx +25 -13
- package/ui/Link/activePath.ts +25 -0
- package/ui/Link/index.tsx +1 -1
- package/ui/Load/Pagination.tsx +1 -1
- package/ui/Load/Units.tsx +1 -1
- package/ui/Loading/ProgressBar.tsx +1 -1
- package/ui/Modal.tsx +9 -0
- package/ui/Model/EditModal.tsx +16 -1
- package/ui/Model/New.tsx +25 -2
- package/ui/Model/NewWrapper_Client.tsx +2 -0
- package/ui/Model/ViewEditModal.tsx +9 -0
- package/ui/Model/ViewModal.tsx +16 -1
- package/ui/Model/newFormOrigin.ts +45 -0
- package/ui/Popconfirm.tsx +5 -7
- package/ui/Portal.tsx +4 -7
- package/ui/Reference/origin.ts +31 -0
- package/ui/ScreenNavigator.tsx +1 -1
- package/ui/Select.tsx +2 -7
- package/ui/Signal/Arg.tsx +2 -2
- package/ui/Signal/Doc.tsx +125 -63
- package/ui/Signal/Endpoint.tsx +11 -10
- package/ui/Signal/Listener.tsx +7 -10
- package/ui/Signal/Object.tsx +7 -14
- package/ui/Signal/Response.tsx +24 -24
- package/ui/Signal/RestApi.tsx +63 -52
- package/ui/Signal/WebSocket.tsx +65 -72
- package/ui/Signal/endpointEntries.ts +25 -0
- package/ui/Signal/index.ts +23 -6
- package/ui/Signal/signalText.ts +59 -0
- package/ui/System/CSR.tsx +34 -8
- package/ui/System/Client.tsx +36 -5
- package/ui/System/Common.tsx +76 -32
- package/ui/System/SSR.tsx +73 -31
- package/ui/Toast.tsx +1 -1
- package/ui/Tooltip.tsx +84 -30
- package/ui/index.ts +11 -1
- package/ui/overlayLayer.ts +25 -2
- package/ui/overlayPosition.ts +90 -0
- package/ui/recipe/inputRecipe.ts +8 -1
- package/ui/styles.css +152 -0
- package/vendor/@akanjs/native/native/android/src/com/akanjs/runtime/AkanNativeActivity.kt +22 -2
- package/vendor/@akanjs/native/native/android/src/com/akanjs/runtime/AkanNativeKernel.kt +37 -0
- package/vendor/@akanjs/native/native/android/src/com/akanjs/runtime/AkanNativeUpdateReports.kt +169 -0
- package/vendor/@akanjs/native/native/android/src/com/akanjs/runtime/AkanNativeUpdates.kt +110 -38
- package/vendor/@akanjs/native/native/android/src/com/akanjs/runtime/AkanNativeVectors.kt +20 -0
- package/vendor/@akanjs/native/native/desktop/Cargo.lock +16 -16
- package/vendor/@akanjs/native/native/desktop/src/external.rs +651 -0
- package/vendor/@akanjs/native/native/desktop/src/json.rs +23 -0
- package/vendor/@akanjs/native/native/desktop/src/lib.rs +228 -5
- package/vendor/@akanjs/native/native/ios/Sources/AkanNativeApp.swift +2 -1
- package/vendor/@akanjs/native/native/ios/Sources/AkanNativeKernel.swift +47 -1
- package/vendor/@akanjs/native/native/ios/Sources/AkanNativeUpdateReports.swift +145 -0
- package/vendor/@akanjs/native/native/ios/Sources/AkanNativeUpdates.swift +112 -43
- package/vendor/@akanjs/native/native/ios/Sources/AkanNativeVectors.swift +18 -0
- package/vendor/@akanjs/native/native/ios/Sources/AkanNativeViewController.swift +24 -2
- package/vendor/@akanjs/native/packages/cli/src/api.ts +22 -6
- package/vendor/@akanjs/native/packages/cli/src/commands/build.ts +24 -8
- package/vendor/@akanjs/native/packages/cli/src/commands/update.ts +11 -9
- package/vendor/@akanjs/native/packages/cli/src/config.ts +35 -7
- package/vendor/@akanjs/native/packages/cli/src/lib/compat.ts +2 -0
- package/vendor/@akanjs/native/packages/cli/src/lib/configkeys.ts +6 -4
- package/vendor/@akanjs/native/packages/cli/src/lib/desktop-server.ts +11 -1
- package/vendor/@akanjs/native/packages/cli/src/lib/distribution.ts +73 -0
- package/vendor/@akanjs/native/packages/cli/src/lib/project.ts +15 -3
- package/vendor/@akanjs/native/packages/cli/src/lib/publish.ts +70 -23
- package/vendor/@akanjs/native/packages/cli/src/lib/updates.ts +159 -23
- package/vendor/@akanjs/native/packages/cli/src/lib/vectors.ts +2 -0
- package/vendor/@akanjs/native/packages/cli/src/platforms/android.ts +9 -4
- package/vendor/@akanjs/native/packages/cli/src/platforms/desktop-update.ts +1 -1
- package/vendor/@akanjs/native/packages/cli/src/platforms/desktop.ts +4 -2
- package/vendor/@akanjs/native/packages/cli/src/platforms/ios.ts +9 -4
- package/vendor/@akanjs/native/packages/cli/src/platforms/windows-installer.ts +25 -11
- package/vendor/@akanjs/native/packages/cli/src/platforms/windows.ts +14 -3
- package/vendor/@akanjs/native/packages/core/src/kernel.ts +49 -0
- package/vendor/@akanjs/native/packages/core/vectors/updates.json +31 -0
- package/vendor/@akanjs/native/packages/desktop/src/main.ts +3 -0
- package/vendor/@akanjs/native/packages/desktop/src/plugin.ts +2 -0
- package/vendor/@akanjs/native/packages/desktop/src/server.ts +70 -6
- package/vendor/@akanjs/native/plugins/external-view/native-plugin.json +23 -0
- package/vendor/@akanjs/native/plugins/external-view/src/desktop.ts +321 -0
- package/vendor/@akanjs/native/plugins/external-view/src/index.ts +106 -0
- package/vendor/@akanjs/native/plugins/updates/android/UpdatesPlugin.kt +133 -41
- package/vendor/@akanjs/native/plugins/updates/ios/UpdatesPlugin.swift +101 -36
- package/vendor/@akanjs/native/plugins/updates/native-plugin.json +4 -2
- package/vendor/@akanjs/native/plugins/updates/src/desktop.ts +15 -1
- package/vendor/@akanjs/native/plugins/updates/src/index.ts +7 -1
- package/vendor/@akanjs/native/plugins/window/native-plugin.json +4 -0
- package/vendor/@akanjs/native/plugins/window/src/desktop.ts +68 -1
- package/vendor/@akanjs/native/plugins/window/src/index.ts +47 -0
- package/vendor/use-agentic/ToolRunner.ts +8 -1
- package/vendor/use-agentic/types.ts +2 -0
- package/webkit/CsrRouteTable.ts +1 -0
- package/webkit/CsrStack.ts +9 -2
- package/webkit/McpAppAgent.ts +138 -0
- package/webkit/McpAppApprovals.ts +56 -0
- package/webkit/McpAppBridge.ts +291 -0
- package/webkit/McpAppView.ts +258 -0
- package/webkit/bootCsr.tsx +54 -5
- package/webkit/index.ts +1 -0
- package/webkit/useCsrValues.ts +16 -10
- package/webkit/useFrameRuntime.ts +10 -1
- package/webkit/useLocation.ts +4 -3
- package/webkit/useVisualViewportFrame.tsx +52 -0
- package/service/predefinedAdaptor/sql/driver/libsql.ts +0 -45
- package/types/service/predefinedAdaptor/sql/driver/libsql.d.ts +0 -20
- package/types/ui/Agent/useKeyboardInset.d.ts +0 -1
- package/types/ui/ServerPortal.d.ts +0 -15
- package/ui/Agent/useKeyboardInset.ts +0 -19
- package/ui/ServerPortal.tsx +0 -49
package/types/ui/Portal.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { type ReactNode } from "react";
|
|
|
2
2
|
interface PortalProps {
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
id: string;
|
|
5
|
+
/** Drawn in place until the target is found: on the server, and in the first client render that hydrates it. */
|
|
6
|
+
fallback?: ReactNode;
|
|
5
7
|
}
|
|
6
|
-
export declare const Portal: ({ children, id }: PortalProps) => import("react").ReactPortal | null;
|
|
8
|
+
export declare const Portal: ({ children, id, fallback }: PortalProps) => string | number | bigint | boolean | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null;
|
|
7
9
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const ownerOf: (origin: string[] | undefined) => string | undefined;
|
|
2
|
+
/**
|
|
3
|
+
* Owners in dependency order, the app first, from origin chains listed in registration order. A lib's modules
|
|
4
|
+
* register before those of whatever builds on it, so the order in which each owner first registers a module of its
|
|
5
|
+
* own, reversed, puts dependents ahead of dependencies; an owner that only extends others' modules comes first.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ownerOrderOf: (origins: (string[] | undefined)[]) => string[];
|
|
8
|
+
export declare const originText: (origin: string[]) => {
|
|
9
|
+
en: string;
|
|
10
|
+
ko: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const groupByOwner: <Item>(items: Item[], originOf: (item: Item) => string[] | undefined, order: string[]) => [string, Item[]][];
|
package/types/ui/Signal/Doc.d.ts
CHANGED
|
@@ -1,31 +1,36 @@
|
|
|
1
1
|
import { type FetchProxy } from "akanjs/fetch";
|
|
2
2
|
import { type ReactNode } from "react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var AuthModal: ({ children }: DocAuthModalProps) => import("react").JSX.Element;
|
|
7
|
-
var DocSignals: ({ fetch }: DocSignalsProps) => import("react").JSX.Element;
|
|
8
|
-
var DocSignal: ({ refName, fetch }: DocSignalProps) => import("react").JSX.Element;
|
|
9
|
-
var Zone: ({ refName, fetch, openAll }: ZoneProps) => import("react").JSX.Element;
|
|
10
|
-
}
|
|
11
|
-
export default Doc;
|
|
12
|
-
interface DocSettingProps {
|
|
13
|
-
fetch: FetchProxy;
|
|
3
|
+
import { type SignalScope } from "./endpointEntries.d.ts";
|
|
4
|
+
export interface DocSettingProps {
|
|
5
|
+
fetch?: FetchProxy;
|
|
14
6
|
search?: string;
|
|
15
7
|
onSearch?: (search: string) => void;
|
|
16
8
|
}
|
|
17
|
-
|
|
9
|
+
export declare const DocSetting: ({ fetch, search, onSearch }: DocSettingProps) => import("react").JSX.Element;
|
|
10
|
+
export interface DocAuthModalProps {
|
|
18
11
|
children: ReactNode;
|
|
19
12
|
}
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
export declare const DocAuthModal: ({ children }: DocAuthModalProps) => import("react").JSX.Element;
|
|
14
|
+
export interface DocSignalsProps extends SignalScope {
|
|
15
|
+
fetch?: FetchProxy;
|
|
22
16
|
}
|
|
23
|
-
|
|
17
|
+
export declare const DocSignals: ({ fetch, include, exclude, libs }: DocSignalsProps) => import("react").JSX.Element;
|
|
18
|
+
export interface DocSignalProps {
|
|
24
19
|
refName: string;
|
|
25
|
-
fetch
|
|
20
|
+
fetch?: FetchProxy;
|
|
26
21
|
}
|
|
27
|
-
|
|
22
|
+
export declare const DocSignal: ({ refName, fetch }: DocSignalProps) => import("react").JSX.Element;
|
|
23
|
+
export interface ZoneProps {
|
|
28
24
|
refName: string;
|
|
29
|
-
fetch
|
|
25
|
+
fetch?: FetchProxy;
|
|
26
|
+
openAll?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare const Zone: ({ refName, fetch, openAll }: ZoneProps) => import("react").JSX.Element;
|
|
29
|
+
export interface ExplorerProps extends SignalScope {
|
|
30
|
+
className?: string;
|
|
31
|
+
fetch?: FetchProxy;
|
|
32
|
+
defaultRefName?: string;
|
|
30
33
|
openAll?: boolean;
|
|
34
|
+
groupBy?: "lib";
|
|
31
35
|
}
|
|
36
|
+
export declare const Explorer: ({ className, fetch, include, exclude, libs, defaultRefName, openAll, groupBy, }: ExplorerProps) => import("react").JSX.Element;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
declare namespace Listener {
|
|
3
|
-
var Result: ({ status, data }: ListenerResultProps) => import("react").JSX.Element;
|
|
4
|
-
}
|
|
5
|
-
export default Listener;
|
|
6
|
-
interface ListenerResultProps {
|
|
1
|
+
export interface ListenerResultProps {
|
|
7
2
|
status: "ready" | "loading" | "error" | "listening";
|
|
8
3
|
data: unknown;
|
|
9
4
|
}
|
|
5
|
+
export declare const ListenerResult: ({ status, data }: ListenerResultProps) => import("react").JSX.Element;
|
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
import { type Cls } from "akanjs/base";
|
|
2
2
|
import { type ConstantCls } from "akanjs/constant";
|
|
3
|
-
|
|
4
|
-
declare namespace Object {
|
|
5
|
-
var Type: ({ objRef, arrDepth, nullable }: ObjectTypeProps) => import("react").JSX.Element;
|
|
6
|
-
var Detail: ({ className, objRef }: ObjectDetailProps) => import("react").JSX.Element;
|
|
7
|
-
var Schema: ({ objRef }: ObjectSchemaProps) => import("react").JSX.Element;
|
|
8
|
-
}
|
|
9
|
-
export default Object;
|
|
10
|
-
interface ObjectTypeProps {
|
|
3
|
+
export interface ObjectTypeProps {
|
|
11
4
|
objRef: Cls;
|
|
12
5
|
arrDepth: number;
|
|
13
6
|
nullable?: boolean;
|
|
14
7
|
}
|
|
15
|
-
|
|
8
|
+
export declare const ObjectType: ({ objRef, arrDepth, nullable }: ObjectTypeProps) => import("react").JSX.Element;
|
|
9
|
+
export interface ObjectDetailProps {
|
|
16
10
|
className?: string;
|
|
17
11
|
objRef: ConstantCls;
|
|
18
12
|
}
|
|
19
|
-
|
|
13
|
+
export declare const ObjectDetail: ({ className, objRef }: ObjectDetailProps) => import("react").JSX.Element;
|
|
14
|
+
export interface ObjectSchemaProps {
|
|
20
15
|
objRef: Cls;
|
|
21
16
|
}
|
|
17
|
+
export declare const ObjectSchema: ({ objRef }: ObjectSchemaProps) => import("react").JSX.Element;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import type { SerializedEndpoint } from "akanjs/signal";
|
|
2
|
-
declare function Response(): import("react").JSX.Element;
|
|
3
|
-
declare namespace Response {
|
|
4
|
-
var Example: ({ endpoint }: ResponseExampleProps) => import("react").JSX.Element;
|
|
5
|
-
var Result: ({ status, data }: ResponseResultProps) => import("react").JSX.Element;
|
|
6
|
-
}
|
|
7
|
-
export default Response;
|
|
8
2
|
interface ResponseExampleProps {
|
|
9
3
|
endpoint: SerializedEndpoint;
|
|
10
4
|
}
|
|
5
|
+
export declare const ResponseExample: ({ endpoint }: ResponseExampleProps) => import("react").JSX.Element;
|
|
11
6
|
interface ResponseResultProps {
|
|
12
7
|
status: "idle" | "loading" | "success" | "error";
|
|
13
8
|
data: unknown;
|
|
14
9
|
}
|
|
10
|
+
export declare const ResponseResult: ({ status, data }: ResponseResultProps) => import("react").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,41 +1,37 @@
|
|
|
1
1
|
import { type FetchProxy } from "akanjs/fetch";
|
|
2
2
|
import type { SerializedEndpoint } from "akanjs/signal";
|
|
3
|
-
|
|
4
|
-
declare namespace RestApi {
|
|
5
|
-
var Endpoints: ({ refName, fetch, prefix, endpoints, openAll, httpUri, search }: RestApiEndpointsProps) => import("react").JSX.Element;
|
|
6
|
-
var Endpoint: ({ refName, fetch, signalPrefix, endpointKey, endpoint, open, httpUri, }: RestApiEndpointProps) => import("react").JSX.Element;
|
|
7
|
-
var Interface: ({ refName, endpointKey, endpoint }: RestApiInterfaceProps) => import("react").JSX.Element;
|
|
8
|
-
var Try: ({ signalPrefix, refName, endpointKey, endpoint, fetch, httpUri }: RestApiTryProps) => import("react").JSX.Element;
|
|
9
|
-
}
|
|
10
|
-
export default RestApi;
|
|
11
|
-
interface RestApiEndpointsProps {
|
|
3
|
+
export interface RestApiEndpointsProps {
|
|
12
4
|
refName: string;
|
|
13
|
-
fetch
|
|
5
|
+
fetch?: FetchProxy;
|
|
14
6
|
prefix?: string;
|
|
15
7
|
endpoints?: string[];
|
|
16
8
|
openAll?: boolean;
|
|
17
9
|
httpUri?: string;
|
|
18
10
|
search?: string;
|
|
19
11
|
}
|
|
20
|
-
|
|
12
|
+
export declare const RestApiEndpoints: ({ refName, fetch, prefix, endpoints, openAll, httpUri, search, }: RestApiEndpointsProps) => import("react").JSX.Element;
|
|
13
|
+
export interface RestApiEndpointProps {
|
|
21
14
|
refName: string;
|
|
22
|
-
fetch
|
|
15
|
+
fetch?: FetchProxy;
|
|
23
16
|
signalPrefix?: string;
|
|
24
17
|
endpointKey: string;
|
|
25
18
|
endpoint: SerializedEndpoint;
|
|
26
19
|
open?: boolean;
|
|
27
20
|
httpUri?: string;
|
|
28
21
|
}
|
|
29
|
-
|
|
22
|
+
export declare const RestApiEndpoint: ({ refName, fetch, signalPrefix, endpointKey, endpoint, open, httpUri, }: RestApiEndpointProps) => import("react").JSX.Element;
|
|
23
|
+
export interface RestApiInterfaceProps {
|
|
30
24
|
refName: string;
|
|
31
25
|
endpointKey: string;
|
|
32
26
|
endpoint: SerializedEndpoint;
|
|
33
27
|
}
|
|
34
|
-
|
|
28
|
+
export declare const RestApiInterface: ({ refName, endpointKey, endpoint }: RestApiInterfaceProps) => import("react").JSX.Element;
|
|
29
|
+
export interface RestApiTryProps {
|
|
35
30
|
signalPrefix?: string;
|
|
36
31
|
refName: string;
|
|
37
32
|
endpointKey: string;
|
|
38
33
|
endpoint: SerializedEndpoint;
|
|
39
|
-
fetch
|
|
34
|
+
fetch?: FetchProxy;
|
|
40
35
|
httpUri?: string;
|
|
41
36
|
}
|
|
37
|
+
export declare const RestApiTry: ({ signalPrefix, refName, endpointKey, endpoint, fetch, httpUri, }: RestApiTryProps) => import("react").JSX.Element;
|
|
@@ -1,35 +1,25 @@
|
|
|
1
1
|
import type { FetchProxy } from "akanjs/fetch";
|
|
2
2
|
import type { SerializedEndpoint } from "akanjs/signal";
|
|
3
3
|
import { type WsEndpointProps } from "./Endpoint.d.ts";
|
|
4
|
-
|
|
5
|
-
declare namespace WebSocket {
|
|
6
|
-
var Endpoints: ({ refName, fetch, openAll, search }: WebSocketEndpointsProps) => import("react").JSX.Element;
|
|
7
|
-
}
|
|
8
|
-
export default WebSocket;
|
|
9
|
-
export declare function Message(): import("react").JSX.Element;
|
|
10
|
-
export declare namespace Message {
|
|
11
|
-
var Endpoint: ({ refName, endpointKey, endpoint, open }: WsEndpointProps) => import("react").JSX.Element;
|
|
12
|
-
var Interface: ({ refName, endpointKey, endpoint }: WsInterfaceProps) => import("react").JSX.Element;
|
|
13
|
-
var Try: ({ endpointKey, endpoint }: MessageTryProps) => import("react").JSX.Element;
|
|
14
|
-
}
|
|
15
|
-
export declare function PubSub(): import("react").JSX.Element;
|
|
16
|
-
export declare namespace PubSub {
|
|
17
|
-
var Endpoint: ({ refName, endpointKey, endpoint, open }: WsEndpointProps) => import("react").JSX.Element;
|
|
18
|
-
var Interface: ({ refName, endpointKey, endpoint }: WsInterfaceProps) => import("react").JSX.Element;
|
|
19
|
-
var Try: ({ refName, endpointKey, endpoint }: WsInterfaceProps) => import("react").JSX.Element;
|
|
20
|
-
}
|
|
21
|
-
interface WebSocketEndpointsProps {
|
|
4
|
+
export interface WebSocketEndpointsProps {
|
|
22
5
|
refName: string;
|
|
23
|
-
fetch
|
|
6
|
+
fetch?: FetchProxy;
|
|
24
7
|
openAll?: boolean;
|
|
25
8
|
search?: string;
|
|
26
9
|
}
|
|
27
|
-
|
|
10
|
+
export declare const WebSocketEndpoints: ({ refName, fetch: docFetch, openAll, search, }: WebSocketEndpointsProps) => import("react").JSX.Element;
|
|
11
|
+
export declare const MessageEndpoint: ({ refName, endpointKey, endpoint, open }: WsEndpointProps) => import("react").JSX.Element;
|
|
12
|
+
export interface WsInterfaceProps {
|
|
28
13
|
refName: string;
|
|
29
14
|
endpointKey: string;
|
|
30
15
|
endpoint: SerializedEndpoint;
|
|
31
16
|
}
|
|
32
|
-
|
|
17
|
+
export declare const MessageInterface: ({ refName, endpointKey, endpoint }: WsInterfaceProps) => import("react").JSX.Element;
|
|
18
|
+
export interface MessageTryProps {
|
|
33
19
|
endpointKey: string;
|
|
34
20
|
endpoint: SerializedEndpoint;
|
|
35
21
|
}
|
|
22
|
+
export declare const MessageTry: ({ endpointKey, endpoint }: MessageTryProps) => import("react").JSX.Element;
|
|
23
|
+
export declare const PubSubEndpoint: ({ refName, endpointKey, endpoint, open }: WsEndpointProps) => import("react").JSX.Element;
|
|
24
|
+
export declare const PubSubInterface: ({ refName, endpointKey, endpoint }: WsInterfaceProps) => import("react").JSX.Element;
|
|
25
|
+
export declare const PubSubTry: ({ endpointKey, endpoint }: WsInterfaceProps) => import("react").JSX.Element;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { type FetchProxy } from "akanjs/fetch";
|
|
2
2
|
import type { SerializedEndpoint } from "akanjs/signal";
|
|
3
|
+
export declare const runtimeFetch: FetchProxy;
|
|
4
|
+
export interface SignalScope {
|
|
5
|
+
include?: string[];
|
|
6
|
+
exclude?: string[];
|
|
7
|
+
libs?: string[];
|
|
8
|
+
}
|
|
9
|
+
export declare const signalRefNamesOf: (fetch: FetchProxy, { include, exclude, libs }?: SignalScope) => string[];
|
|
10
|
+
export declare const signalOwnerOrderOf: (fetch: FetchProxy) => string[];
|
|
3
11
|
export interface EndpointEntry {
|
|
4
12
|
key: string;
|
|
5
13
|
endpoint: SerializedEndpoint;
|
|
@@ -1,16 +1,39 @@
|
|
|
1
1
|
import Arg from "./Arg.d.ts";
|
|
2
|
-
import Doc from "./Doc.d.ts";
|
|
3
|
-
import Listener from "./Listener.d.ts";
|
|
4
|
-
import Object from "./Object.d.ts";
|
|
5
|
-
import RestApi from "./RestApi.d.ts";
|
|
6
|
-
import WebSocket, { Message, PubSub } from "./WebSocket.d.ts";
|
|
7
2
|
export declare const Signal: {
|
|
8
|
-
Doc:
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
Doc: {
|
|
4
|
+
Zone: ({ refName, fetch, openAll }: import("./Doc.d.ts").ZoneProps) => import("react").JSX.Element;
|
|
5
|
+
Explorer: ({ className, fetch, include, exclude, libs, defaultRefName, openAll, groupBy, }: import("./Doc.d.ts").ExplorerProps) => import("react").JSX.Element;
|
|
6
|
+
Setting: ({ fetch, search, onSearch }: import("./Doc.d.ts").DocSettingProps) => import("react").JSX.Element;
|
|
7
|
+
AuthModal: ({ children }: import("./Doc.d.ts").DocAuthModalProps) => import("react").JSX.Element;
|
|
8
|
+
DocSignals: ({ fetch, include, exclude, libs }: import("./Doc.d.ts").DocSignalsProps) => import("react").JSX.Element;
|
|
9
|
+
DocSignal: ({ refName, fetch }: import("./Doc.d.ts").DocSignalProps) => import("react").JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
Object: {
|
|
12
|
+
Type: ({ objRef, arrDepth, nullable }: import("./Object.d.ts").ObjectTypeProps) => import("react").JSX.Element;
|
|
13
|
+
Detail: ({ className, objRef }: import("./Object.d.ts").ObjectDetailProps) => import("react").JSX.Element;
|
|
14
|
+
Schema: ({ objRef }: import("./Object.d.ts").ObjectSchemaProps) => import("react").JSX.Element;
|
|
15
|
+
};
|
|
16
|
+
RestApi: {
|
|
17
|
+
Endpoints: ({ refName, fetch, prefix, endpoints, openAll, httpUri, search, }: import("./RestApi.d.ts").RestApiEndpointsProps) => import("react").JSX.Element;
|
|
18
|
+
Endpoint: ({ refName, fetch, signalPrefix, endpointKey, endpoint, open, httpUri, }: import("./RestApi.d.ts").RestApiEndpointProps) => import("react").JSX.Element;
|
|
19
|
+
Interface: ({ refName, endpointKey, endpoint }: import("./RestApi.d.ts").RestApiInterfaceProps) => import("react").JSX.Element;
|
|
20
|
+
Try: ({ signalPrefix, refName, endpointKey, endpoint, fetch, httpUri, }: import("./RestApi.d.ts").RestApiTryProps) => import("react").JSX.Element;
|
|
21
|
+
};
|
|
11
22
|
Arg: typeof Arg;
|
|
12
|
-
Listener:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
23
|
+
Listener: {
|
|
24
|
+
Result: ({ status, data }: import("./Listener.d.ts").ListenerResultProps) => import("react").JSX.Element;
|
|
25
|
+
};
|
|
26
|
+
WebSocket: {
|
|
27
|
+
Endpoints: ({ refName, fetch: docFetch, openAll, search, }: import("./WebSocket.d.ts").WebSocketEndpointsProps) => import("react").JSX.Element;
|
|
28
|
+
};
|
|
29
|
+
PubSub: {
|
|
30
|
+
Endpoint: ({ refName, endpointKey, endpoint, open }: import("./Endpoint.d.ts").WsEndpointProps) => import("react").JSX.Element;
|
|
31
|
+
Interface: ({ refName, endpointKey, endpoint }: import("./WebSocket.d.ts").WsInterfaceProps) => import("react").JSX.Element;
|
|
32
|
+
Try: ({ endpointKey, endpoint }: import("./WebSocket.d.ts").WsInterfaceProps) => import("react").JSX.Element;
|
|
33
|
+
};
|
|
34
|
+
Message: {
|
|
35
|
+
Endpoint: ({ refName, endpointKey, endpoint, open }: import("./Endpoint.d.ts").WsEndpointProps) => import("react").JSX.Element;
|
|
36
|
+
Interface: ({ refName, endpointKey, endpoint }: import("./WebSocket.d.ts").WsInterfaceProps) => import("react").JSX.Element;
|
|
37
|
+
Try: ({ endpointKey, endpoint }: import("./WebSocket.d.ts").MessageTryProps) => import("react").JSX.Element;
|
|
38
|
+
};
|
|
16
39
|
};
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
export declare const signalText: {
|
|
2
|
+
readonly signal: {
|
|
3
|
+
readonly en: "Signal";
|
|
4
|
+
readonly ko: "시그널";
|
|
5
|
+
};
|
|
6
|
+
readonly endpoints: {
|
|
7
|
+
readonly en: "Endpoints";
|
|
8
|
+
readonly ko: "엔드포인트";
|
|
9
|
+
};
|
|
10
|
+
readonly restApi: {
|
|
11
|
+
readonly en: "REST API";
|
|
12
|
+
readonly ko: "REST API";
|
|
13
|
+
};
|
|
14
|
+
readonly webSocket: {
|
|
15
|
+
readonly en: "Web Socket";
|
|
16
|
+
readonly ko: "웹소켓";
|
|
17
|
+
};
|
|
18
|
+
readonly mcpTools: {
|
|
19
|
+
readonly en: "MCP Tools";
|
|
20
|
+
readonly ko: "MCP 도구";
|
|
21
|
+
};
|
|
22
|
+
readonly baseUrl: {
|
|
23
|
+
readonly en: "Base URL";
|
|
24
|
+
readonly ko: "기본 URL";
|
|
25
|
+
};
|
|
26
|
+
readonly guards: {
|
|
27
|
+
readonly en: "Guards";
|
|
28
|
+
readonly ko: "가드";
|
|
29
|
+
};
|
|
30
|
+
readonly allGuards: {
|
|
31
|
+
readonly en: "All guards";
|
|
32
|
+
readonly ko: "모든 가드";
|
|
33
|
+
};
|
|
34
|
+
readonly auth: {
|
|
35
|
+
readonly en: "Auth";
|
|
36
|
+
readonly ko: "인증";
|
|
37
|
+
};
|
|
38
|
+
readonly authorized: {
|
|
39
|
+
readonly en: "Authorized";
|
|
40
|
+
readonly ko: "인증됨";
|
|
41
|
+
};
|
|
42
|
+
readonly anonymous: {
|
|
43
|
+
readonly en: "Anonymous";
|
|
44
|
+
readonly ko: "익명";
|
|
45
|
+
};
|
|
46
|
+
readonly searchEndpoints: {
|
|
47
|
+
readonly en: "Search endpoints";
|
|
48
|
+
readonly ko: "엔드포인트 검색";
|
|
49
|
+
};
|
|
50
|
+
readonly setJwtTitle: {
|
|
51
|
+
readonly en: "Set JWT for Authorization";
|
|
52
|
+
readonly ko: "인증용 JWT 설정";
|
|
53
|
+
};
|
|
54
|
+
readonly setAuthorization: {
|
|
55
|
+
readonly en: "Set Authorization";
|
|
56
|
+
readonly ko: "인증 설정";
|
|
57
|
+
};
|
|
58
|
+
readonly bearerToken: {
|
|
59
|
+
readonly en: "Bearer token";
|
|
60
|
+
readonly ko: "Bearer 토큰";
|
|
61
|
+
};
|
|
62
|
+
readonly accountDecoded: {
|
|
63
|
+
readonly en: "Account decoded";
|
|
64
|
+
readonly ko: "디코딩된 계정";
|
|
65
|
+
};
|
|
66
|
+
readonly reference: {
|
|
67
|
+
readonly en: "Reference";
|
|
68
|
+
readonly ko: "명세";
|
|
69
|
+
};
|
|
70
|
+
readonly tryIt: {
|
|
71
|
+
readonly en: "Try it";
|
|
72
|
+
readonly ko: "실행해 보기";
|
|
73
|
+
};
|
|
74
|
+
readonly formData: {
|
|
75
|
+
readonly en: "Form data";
|
|
76
|
+
readonly ko: "폼 데이터";
|
|
77
|
+
};
|
|
78
|
+
readonly pathParameters: {
|
|
79
|
+
readonly en: "Path parameters";
|
|
80
|
+
readonly ko: "경로 파라미터";
|
|
81
|
+
};
|
|
82
|
+
readonly query: {
|
|
83
|
+
readonly en: "Query";
|
|
84
|
+
readonly ko: "쿼리";
|
|
85
|
+
};
|
|
86
|
+
readonly body: {
|
|
87
|
+
readonly en: "Body";
|
|
88
|
+
readonly ko: "본문";
|
|
89
|
+
};
|
|
90
|
+
readonly variables: {
|
|
91
|
+
readonly en: "Variables";
|
|
92
|
+
readonly ko: "변수";
|
|
93
|
+
};
|
|
94
|
+
readonly returns: {
|
|
95
|
+
readonly en: "Returns";
|
|
96
|
+
readonly ko: "반환";
|
|
97
|
+
};
|
|
98
|
+
readonly publishes: {
|
|
99
|
+
readonly en: "Publishes";
|
|
100
|
+
readonly ko: "발행";
|
|
101
|
+
};
|
|
102
|
+
readonly example: {
|
|
103
|
+
readonly en: "Example";
|
|
104
|
+
readonly ko: "예시";
|
|
105
|
+
};
|
|
106
|
+
readonly response: {
|
|
107
|
+
readonly en: "Response";
|
|
108
|
+
readonly ko: "응답";
|
|
109
|
+
};
|
|
110
|
+
readonly responsePlaceholder: {
|
|
111
|
+
readonly en: "Send the request to see the response.";
|
|
112
|
+
readonly ko: "요청을 보내면 응답이 여기에 표시됩니다.";
|
|
113
|
+
};
|
|
114
|
+
readonly stream: {
|
|
115
|
+
readonly en: "Stream";
|
|
116
|
+
readonly ko: "스트림";
|
|
117
|
+
};
|
|
118
|
+
readonly nothingReceived: {
|
|
119
|
+
readonly en: "Nothing received yet.";
|
|
120
|
+
readonly ko: "아직 받은 메시지가 없습니다.";
|
|
121
|
+
};
|
|
122
|
+
readonly sendRequest: {
|
|
123
|
+
readonly en: "Send Request";
|
|
124
|
+
readonly ko: "요청 보내기";
|
|
125
|
+
};
|
|
126
|
+
readonly listen: {
|
|
127
|
+
readonly en: "Listen";
|
|
128
|
+
readonly ko: "수신";
|
|
129
|
+
};
|
|
130
|
+
readonly send: {
|
|
131
|
+
readonly en: "Send";
|
|
132
|
+
readonly ko: "보내기";
|
|
133
|
+
};
|
|
134
|
+
readonly stop: {
|
|
135
|
+
readonly en: "Stop";
|
|
136
|
+
readonly ko: "중지";
|
|
137
|
+
};
|
|
138
|
+
readonly subscribe: {
|
|
139
|
+
readonly en: "Subscribe";
|
|
140
|
+
readonly ko: "구독";
|
|
141
|
+
};
|
|
142
|
+
readonly unsubscribe: {
|
|
143
|
+
readonly en: "Unsubscribe";
|
|
144
|
+
readonly ko: "구독 해제";
|
|
145
|
+
};
|
|
146
|
+
readonly noGuardMatch: {
|
|
147
|
+
readonly en: "No endpoint is gated by the selected guards.";
|
|
148
|
+
readonly ko: "선택한 가드가 걸린 엔드포인트가 없습니다.";
|
|
149
|
+
};
|
|
150
|
+
readonly noWsGuardMatch: {
|
|
151
|
+
readonly en: "No websocket endpoint is gated by the selected guards.";
|
|
152
|
+
readonly ko: "선택한 가드가 걸린 웹소켓 엔드포인트가 없습니다.";
|
|
153
|
+
};
|
|
154
|
+
readonly noWsEndpoint: {
|
|
155
|
+
readonly en: "This signal declares no websocket endpoint.";
|
|
156
|
+
readonly ko: "이 시그널에는 웹소켓 엔드포인트가 없습니다.";
|
|
157
|
+
};
|
|
158
|
+
readonly noSignal: {
|
|
159
|
+
readonly en: "No signal is registered.";
|
|
160
|
+
readonly ko: "등록된 시그널이 없습니다.";
|
|
161
|
+
};
|
|
162
|
+
readonly unknownOrigin: {
|
|
163
|
+
readonly en: "Unknown library";
|
|
164
|
+
readonly ko: "출처 미상";
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
export declare const guardCountText: (count: number) => {
|
|
168
|
+
en: string;
|
|
169
|
+
ko: string;
|
|
170
|
+
};
|
|
171
|
+
export declare const noSignalText: (refName: string) => {
|
|
172
|
+
en: string;
|
|
173
|
+
ko: string;
|
|
174
|
+
};
|
|
175
|
+
export declare const noSearchMatchText: (search: string) => {
|
|
176
|
+
en: string;
|
|
177
|
+
ko: string;
|
|
178
|
+
};
|
package/types/ui/System/CSR.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const CSR: {
|
|
|
5
5
|
({ children }: {
|
|
6
6
|
children: ReactNode;
|
|
7
7
|
}): import("react").JSX.Element;
|
|
8
|
-
Provider: ({ className, appName, params, head, manifest, env, theme, prefix, children, fonts, layoutStyle, reconnect, wsConnect, of, }: CSRProviderProps) => import("react").JSX.Element;
|
|
8
|
+
Provider: ({ className, appName, params, head, manifest, env, theme, viewport, prefix, children, fonts, layoutStyle, reconnect, wsConnect, of, }: CSRProviderProps) => import("react").JSX.Element;
|
|
9
9
|
Wrapper: ({ children, lang, head, manifest, fonts, appName, className, prefix, layoutStyle, }: CSRWrapperProps) => import("react").JSX.Element;
|
|
10
10
|
Inner: () => import("react").JSX.Element;
|
|
11
11
|
Bridge: ({ lang, prefix }: CSRBridgeProps) => null;
|
|
@@ -13,7 +13,7 @@ export declare const CSR: {
|
|
|
13
13
|
export type CSRProviderProps = ProviderProps & {
|
|
14
14
|
fonts: ReactFont[];
|
|
15
15
|
};
|
|
16
|
-
declare const CSRProvider: ({ className, appName, params, head, manifest, env, theme, prefix, children, fonts, layoutStyle, reconnect, wsConnect, of, }: CSRProviderProps) => import("react").JSX.Element;
|
|
16
|
+
declare const CSRProvider: ({ className, appName, params, head, manifest, env, theme, viewport, prefix, children, fonts, layoutStyle, reconnect, wsConnect, of, }: CSRProviderProps) => import("react").JSX.Element;
|
|
17
17
|
interface CSRWrapperProps {
|
|
18
18
|
className?: string;
|
|
19
19
|
appName: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type CsrPageType, type Location, type PageActivity, type PageState, type TransitionStyle } from "akanjs/client";
|
|
1
|
+
import { type CsrPageType, type Location, type PageActivity, type PageState, type RouteViewport, type TransitionStyle } from "akanjs/client";
|
|
2
2
|
import type { AkanTheme } from "akanjs/fetch";
|
|
3
3
|
import type { SerializedSignal } from "akanjs/signal";
|
|
4
4
|
import { type HTMLAttributes, type ReactNode, type RefObject } from "react";
|
|
5
5
|
export declare const Client: {
|
|
6
6
|
(): import("react").JSX.Element;
|
|
7
7
|
Wrapper: ({ children, theme, lang, path, dictionary, signals, reconnect, }: ClientWrapperProps) => import("react").JSX.Element;
|
|
8
|
-
Bridge: ({ env, lang, theme, prefix, wsConnect }: ClientBridgeProps) => null;
|
|
8
|
+
Bridge: ({ env, lang, theme, viewport, prefix, wsConnect }: ClientBridgeProps) => null;
|
|
9
9
|
Inner: () => import("react").JSX.Element;
|
|
10
10
|
SsrBridge: ({ lang, prefix, initialPageState }: ClientSsrBridgeProps) => null;
|
|
11
11
|
};
|
|
@@ -44,10 +44,11 @@ interface ClientBridgeProps {
|
|
|
44
44
|
env?: object;
|
|
45
45
|
lang?: string;
|
|
46
46
|
theme?: AkanTheme;
|
|
47
|
+
viewport?: RouteViewport;
|
|
47
48
|
prefix?: string;
|
|
48
49
|
wsConnect?: boolean;
|
|
49
50
|
}
|
|
50
|
-
export declare const ClientBridge: ({ env, lang, theme, prefix, wsConnect }: ClientBridgeProps) => null;
|
|
51
|
+
export declare const ClientBridge: ({ env, lang, theme, viewport, prefix, wsConnect }: ClientBridgeProps) => null;
|
|
51
52
|
export declare const ClientInner: () => import("react").JSX.Element;
|
|
52
53
|
interface ClientSsrBridgeProps {
|
|
53
54
|
lang: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "dayjs/locale/ko";
|
|
2
|
-
import type
|
|
2
|
+
import { type InsetBreakpoint, type PageState, type RootLayoutProps, type RouteViewport, toManifestJson, type WebAppManifest } from "akanjs/client";
|
|
3
3
|
import type { AkanTheme } from "akanjs/fetch";
|
|
4
4
|
import type { CSSProperties, ReactNode } from "react";
|
|
5
5
|
export interface ProviderProps {
|
|
@@ -12,6 +12,7 @@ export interface ProviderProps {
|
|
|
12
12
|
/** App-specific public client config (`env/env.client.ts`) merged over the framework's own `getEnv()`. */
|
|
13
13
|
env?: object;
|
|
14
14
|
theme?: AkanTheme;
|
|
15
|
+
viewport?: RouteViewport;
|
|
15
16
|
prefix?: string;
|
|
16
17
|
children: ReactNode | ReactNode[];
|
|
17
18
|
layoutStyle?: "mobile" | "web";
|
|
@@ -27,11 +28,31 @@ export interface ProviderProps {
|
|
|
27
28
|
of: (props: unknown) => ReactNode | null;
|
|
28
29
|
}
|
|
29
30
|
export declare const Common: () => null;
|
|
30
|
-
export
|
|
31
|
+
export { toManifestJson };
|
|
32
|
+
/** An SSR document links the URL its server answers, where `start_url`, `scope` and icons resolve; a CSR bundle,
|
|
33
|
+
* which no server serves in a native shell, carries the manifest inline. */
|
|
34
|
+
export declare function ManifestLink({ manifest, basePath }: {
|
|
31
35
|
manifest?: WebAppManifest;
|
|
36
|
+
basePath?: string | null;
|
|
32
37
|
}): import("react").JSX.Element | null;
|
|
33
38
|
export declare function createManifestDataUrl(manifest: WebAppManifest): string;
|
|
34
|
-
export
|
|
35
|
-
export type
|
|
36
|
-
|
|
37
|
-
|
|
39
|
+
export type AkanFrameCssVarName = "--akan-top-safe-area" | "--akan-bottom-safe-area" | "--akan-top-inset" | "--akan-bottom-inset" | "--akan-page-padding-top" | "--akan-page-padding-bottom" | "--akan-content-height" | `--akan-${"top" | "bottom"}-inset-visibility` | `--akan-${"top" | "bottom"}-inset-${InsetBreakpoint}` | `--akan-${"top" | "bottom"}-inset-visibility-${InsetBreakpoint}`;
|
|
40
|
+
export type AkanFrameCssVars = CSSProperties & {
|
|
41
|
+
[name in AkanFrameCssVarName]?: string;
|
|
42
|
+
};
|
|
43
|
+
/** Whether a frame's insets are left to the stylesheet's media rules, which key on `data-akan-frame-responsive`. */
|
|
44
|
+
export declare const isResponsiveFrame: (pageState: PageState, { cssResolved }: {
|
|
45
|
+
cssResolved: boolean;
|
|
46
|
+
}) => boolean;
|
|
47
|
+
/**
|
|
48
|
+
* `cssResolved` is the SSR document, whose width and safe area only CSS knows: insets per breakpoint and the web's
|
|
49
|
+
* `env()` safe area. A CSR frame lays pages out from the same numbers in script, so it gets those numbers.
|
|
50
|
+
*/
|
|
51
|
+
export declare function getFrameCssVars(pageState: PageState, { cssResolved }: {
|
|
52
|
+
cssResolved: boolean;
|
|
53
|
+
}): AkanFrameCssVars;
|
|
54
|
+
/** Copies the current page's frame onto `<html>`, so a layer portalled to `<body>` (the agent launcher) can read it. */
|
|
55
|
+
export declare class FrameRootVars {
|
|
56
|
+
#private;
|
|
57
|
+
static mirror(vars: AkanFrameCssVars, responsive: boolean): void;
|
|
58
|
+
}
|
package/types/ui/System/SSR.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { type PageState, type ReactFont
|
|
1
|
+
import { type PageState, type ReactFont } from "akanjs/client";
|
|
2
|
+
import * as React from "react";
|
|
2
3
|
import { type ReactNode } from "react";
|
|
3
4
|
import { type ProviderProps } from "./Common.d.ts";
|
|
4
5
|
export declare const SSR: {
|
|
5
|
-
():
|
|
6
|
-
Provider: ({ className, appName, params, head,
|
|
7
|
-
Wrapper: ({ children, head,
|
|
6
|
+
(): React.JSX.Element;
|
|
7
|
+
Provider: ({ className, appName, params, head, env, children, theme, viewport, prefix, fonts, layoutStyle, reconnect, wsConnect, dictionary, allDictionary, of, }: SSRProviderProps) => React.JSX.Element;
|
|
8
|
+
Wrapper: ({ children, head, fonts, className, lang, path, prefix, layoutStyle, pageState, }: SSRWrapperProps) => React.JSX.Element;
|
|
8
9
|
};
|
|
9
10
|
export type SSRProviderProps = ProviderProps & {
|
|
10
11
|
fonts?: ReactFont[];
|
|
11
12
|
};
|
|
12
|
-
declare const SSRProvider: ({ className, appName, params, head,
|
|
13
|
+
declare const SSRProvider: ({ className, appName, params, head, env, children, theme, viewport, prefix, fonts, layoutStyle, reconnect, wsConnect, dictionary, allDictionary, of, }: SSRProviderProps) => React.JSX.Element;
|
|
13
14
|
interface SSRWrapperProps {
|
|
14
15
|
className?: string;
|
|
15
16
|
appName: string;
|
|
16
17
|
lang: "en" | "ko" | (string & {});
|
|
17
18
|
path: string;
|
|
18
19
|
head?: ReactNode;
|
|
19
|
-
manifest?: WebAppManifest;
|
|
20
20
|
fonts?: ReactFont[];
|
|
21
21
|
children: ReactNode;
|
|
22
22
|
prefix?: string;
|
package/types/ui/Tooltip.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type OverlaySide } from "./overlayPosition.d.ts";
|
|
2
3
|
export interface TooltipProps {
|
|
3
4
|
/** Empty renders the trigger alone. */
|
|
4
5
|
content?: ReactNode;
|
|
5
6
|
children: ReactNode;
|
|
6
|
-
side
|
|
7
|
+
/** The preferred side; the bubble flips to the opposite one when that has more room. */
|
|
8
|
+
side?: OverlaySide;
|
|
7
9
|
className?: string;
|
|
8
10
|
variant?: "default" | "primary" | "info";
|
|
9
11
|
}
|
package/types/ui/index.d.ts
CHANGED
|
@@ -30,12 +30,13 @@ export { BottomSheet, type BottomSheetRef } from "./BottomSheet.d.ts";
|
|
|
30
30
|
export { Button } from "./Button.d.ts";
|
|
31
31
|
export { ClientSide } from "./ClientSide.d.ts";
|
|
32
32
|
export { Clipboard } from "./Clipboard.d.ts";
|
|
33
|
-
export { Constant } from "./Constant.d.ts";
|
|
33
|
+
export { Constant, type ConstantSchemaDoc, type ConstantSchemaOptions, type DatabaseSchema, type EnumSchema, getConstantSchemaDoc, type RelationSchema, type ScalarSchema, } from "./Constant.d.ts";
|
|
34
34
|
export { Copy } from "./Copy.d.ts";
|
|
35
35
|
export { CsrImage } from "./CsrImage.d.ts";
|
|
36
36
|
export { Data } from "./Data.d.ts";
|
|
37
37
|
export { DatePicker } from "./DatePicker.d.ts";
|
|
38
38
|
export { Dialog } from "./Dialog.d.ts";
|
|
39
|
+
export type { ModalPlacement, ModalPresentation } from "./Dialog/modalSurface.d.ts";
|
|
39
40
|
export { DragAction } from "./DragAction.d.ts";
|
|
40
41
|
export { DraggableList } from "./DraggableList.d.ts";
|
|
41
42
|
export { DROPDOWN_KEEP_OPEN_ATTR, Dropdown } from "./Dropdown.d.ts";
|