veryfront 0.0.88 → 0.0.89
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/esm/_dnt.shims.d.ts +14 -14
- package/esm/_dnt.shims.d.ts.map +1 -1
- package/esm/deno.js +1 -1
- package/esm/src/agent/react/use-agent.js +1 -1
- package/esm/src/agent/react/use-chat/use-chat.js +1 -1
- package/esm/src/agent/react/use-completion.js +1 -1
- package/esm/src/agent/react/use-streaming.js +1 -1
- package/esm/src/agent/react/use-voice-input.js +1 -1
- package/esm/src/cli/templates/manifest.d.ts +448 -448
- package/esm/src/cli/templates/manifest.js +480 -480
- package/esm/src/modules/component-registry/registry.d.ts +1 -1
- package/esm/src/modules/component-registry/registry.d.ts.map +1 -1
- package/esm/src/modules/react-loader/component-loader.d.ts +1 -1
- package/esm/src/modules/react-loader/component-loader.d.ts.map +1 -1
- package/esm/src/modules/react-loader/extract-component.d.ts +1 -1
- package/esm/src/modules/react-loader/extract-component.d.ts.map +1 -1
- package/esm/src/modules/react-loader/ssr-module-loader/loader.d.ts +1 -1
- package/esm/src/modules/react-loader/ssr-module-loader/loader.d.ts.map +1 -1
- package/esm/src/modules/react-loader/types.d.ts +1 -1
- package/esm/src/modules/react-loader/types.d.ts.map +1 -1
- package/esm/src/platform/compat/path-helper.d.ts +7 -7
- package/esm/src/platform/compat/path-helper.d.ts.map +1 -1
- package/esm/src/react/compat/hooks-adapter.d.ts +1 -1
- package/esm/src/react/compat/hooks-adapter.d.ts.map +1 -1
- package/esm/src/react/compat/hooks-adapter.js +1 -1
- package/esm/src/react/compat/ssr-adapter/response-builder.d.ts +1 -1
- package/esm/src/react/compat/ssr-adapter/response-builder.d.ts.map +1 -1
- package/esm/src/react/compat/ssr-adapter/server-loader.d.ts +5 -5
- package/esm/src/react/compat/ssr-adapter/server-loader.d.ts.map +1 -1
- package/esm/src/react/compat/ssr-adapter/server-loader.js +2 -2
- package/esm/src/react/compat/ssr-adapter/stream-renderer.d.ts +1 -1
- package/esm/src/react/compat/ssr-adapter/stream-renderer.d.ts.map +1 -1
- package/esm/src/react/compat/ssr-adapter/string-renderer.d.ts +1 -1
- package/esm/src/react/compat/ssr-adapter/string-renderer.d.ts.map +1 -1
- package/esm/src/react/compat/version-detector/feature-detector.js +1 -1
- package/esm/src/react/components/AppWrapper.d.ts +1 -1
- package/esm/src/react/components/AppWrapper.d.ts.map +1 -1
- package/esm/src/react/components/AppWrapper.js +1 -1
- package/esm/src/react/components/Head.d.ts +1 -1
- package/esm/src/react/components/Head.d.ts.map +1 -1
- package/esm/src/react/components/Head.js +1 -1
- package/esm/src/react/components/LayoutComponent.d.ts +1 -1
- package/esm/src/react/components/LayoutComponent.d.ts.map +1 -1
- package/esm/src/react/components/LayoutComponent.js +1 -1
- package/esm/src/react/components/Link.d.ts +1 -1
- package/esm/src/react/components/Link.d.ts.map +1 -1
- package/esm/src/react/components/Link.js +1 -1
- package/esm/src/react/components/MDXProvider.d.ts +1 -1
- package/esm/src/react/components/MDXProvider.d.ts.map +1 -1
- package/esm/src/react/components/MDXProvider.js +2 -2
- package/esm/src/react/components/ProviderComponent.d.ts +1 -1
- package/esm/src/react/components/ProviderComponent.d.ts.map +1 -1
- package/esm/src/react/components/ProviderComponent.js +1 -1
- package/esm/src/react/components/ai/agent-card.d.ts +1 -1
- package/esm/src/react/components/ai/agent-card.d.ts.map +1 -1
- package/esm/src/react/components/ai/agent-card.js +1 -1
- package/esm/src/react/components/ai/chat/components/animations.d.ts +1 -1
- package/esm/src/react/components/ai/chat/components/animations.d.ts.map +1 -1
- package/esm/src/react/components/ai/chat/components/animations.js +1 -1
- package/esm/src/react/components/ai/chat/components/empty-state.d.ts +1 -1
- package/esm/src/react/components/ai/chat/components/empty-state.d.ts.map +1 -1
- package/esm/src/react/components/ai/chat/components/empty-state.js +1 -1
- package/esm/src/react/components/ai/chat/components/message-actions.d.ts +1 -1
- package/esm/src/react/components/ai/chat/components/message-actions.d.ts.map +1 -1
- package/esm/src/react/components/ai/chat/components/message-actions.js +1 -1
- package/esm/src/react/components/ai/chat/components/reasoning.d.ts +1 -1
- package/esm/src/react/components/ai/chat/components/reasoning.d.ts.map +1 -1
- package/esm/src/react/components/ai/chat/components/reasoning.js +1 -1
- package/esm/src/react/components/ai/chat/components/tool-ui.d.ts +1 -1
- package/esm/src/react/components/ai/chat/components/tool-ui.d.ts.map +1 -1
- package/esm/src/react/components/ai/chat/components/tool-ui.js +1 -1
- package/esm/src/react/components/ai/chat/composition/api.d.ts +1 -1
- package/esm/src/react/components/ai/chat/composition/api.d.ts.map +1 -1
- package/esm/src/react/components/ai/chat/composition/api.js +1 -1
- package/esm/src/react/components/ai/chat/index.d.ts +1 -1
- package/esm/src/react/components/ai/chat/index.d.ts.map +1 -1
- package/esm/src/react/components/ai/chat/index.js +1 -1
- package/esm/src/react/components/ai/error-boundary.d.ts +1 -1
- package/esm/src/react/components/ai/error-boundary.d.ts.map +1 -1
- package/esm/src/react/components/ai/error-boundary.js +1 -1
- package/esm/src/react/components/ai/icons/index.d.ts +1 -1
- package/esm/src/react/components/ai/icons/index.d.ts.map +1 -1
- package/esm/src/react/components/ai/icons/index.js +1 -1
- package/esm/src/react/components/ai/markdown.d.ts +1 -1
- package/esm/src/react/components/ai/markdown.d.ts.map +1 -1
- package/esm/src/react/components/ai/markdown.js +1 -1
- package/esm/src/react/components/ai/message.d.ts +1 -1
- package/esm/src/react/components/ai/message.d.ts.map +1 -1
- package/esm/src/react/components/ai/message.js +1 -1
- package/esm/src/react/components/optimized-image/OptimizedBackgroundImage.d.ts +1 -1
- package/esm/src/react/components/optimized-image/OptimizedBackgroundImage.d.ts.map +1 -1
- package/esm/src/react/components/optimized-image/OptimizedBackgroundImage.js +1 -1
- package/esm/src/react/components/optimized-image/OptimizedImage.d.ts +1 -1
- package/esm/src/react/components/optimized-image/OptimizedImage.d.ts.map +1 -1
- package/esm/src/react/components/optimized-image/OptimizedImage.js +1 -1
- package/esm/src/react/components/optimized-image/SimpleOptimizedImage.d.ts +1 -1
- package/esm/src/react/components/optimized-image/SimpleOptimizedImage.d.ts.map +1 -1
- package/esm/src/react/components/optimized-image/utils.d.ts +1 -1
- package/esm/src/react/components/optimized-image/utils.d.ts.map +1 -1
- package/esm/src/react/components/optimized-image/utils.js +1 -1
- package/esm/src/react/context/index.d.ts +1 -1
- package/esm/src/react/context/index.d.ts.map +1 -1
- package/esm/src/react/context/index.js +1 -1
- package/esm/src/react/fonts/index.d.ts +1 -1
- package/esm/src/react/fonts/index.d.ts.map +1 -1
- package/esm/src/react/fonts/index.js +1 -1
- package/esm/src/react/primitives/agent-primitives.d.ts +1 -1
- package/esm/src/react/primitives/agent-primitives.d.ts.map +1 -1
- package/esm/src/react/primitives/agent-primitives.js +1 -1
- package/esm/src/react/primitives/chat-container.d.ts +1 -1
- package/esm/src/react/primitives/chat-container.d.ts.map +1 -1
- package/esm/src/react/primitives/chat-container.js +1 -1
- package/esm/src/react/primitives/input-box.d.ts +1 -1
- package/esm/src/react/primitives/input-box.d.ts.map +1 -1
- package/esm/src/react/primitives/input-box.js +1 -1
- package/esm/src/react/primitives/message-list.d.ts +1 -1
- package/esm/src/react/primitives/message-list.d.ts.map +1 -1
- package/esm/src/react/primitives/message-list.js +1 -1
- package/esm/src/react/primitives/tool-primitives.d.ts +1 -1
- package/esm/src/react/primitives/tool-primitives.d.ts.map +1 -1
- package/esm/src/react/primitives/tool-primitives.js +1 -1
- package/esm/src/react/router/index.d.ts +1 -1
- package/esm/src/react/router/index.d.ts.map +1 -1
- package/esm/src/react/router/index.js +1 -1
- package/esm/src/rendering/app-reserved.d.ts +1 -1
- package/esm/src/rendering/app-reserved.d.ts.map +1 -1
- package/esm/src/rendering/app-reserved.js +1 -1
- package/esm/src/rendering/client/router.js +1 -1
- package/esm/src/rendering/client/state-bridge.d.ts +1 -1
- package/esm/src/rendering/client/state-bridge.d.ts.map +1 -1
- package/esm/src/rendering/client/state-bridge.js +1 -1
- package/esm/src/rendering/component-handling.d.ts +1 -1
- package/esm/src/rendering/component-handling.d.ts.map +1 -1
- package/esm/src/rendering/element-validator/element-normalizer.d.ts +1 -1
- package/esm/src/rendering/element-validator/element-normalizer.d.ts.map +1 -1
- package/esm/src/rendering/element-validator/element-normalizer.js +1 -1
- package/esm/src/rendering/element-validator/primitive-checks.d.ts +1 -1
- package/esm/src/rendering/element-validator/primitive-checks.d.ts.map +1 -1
- package/esm/src/rendering/element-validator/primitive-checks.js +1 -1
- package/esm/src/rendering/element-validator/validator-core.d.ts +1 -1
- package/esm/src/rendering/element-validator/validator-core.d.ts.map +1 -1
- package/esm/src/rendering/layouts/layout-applicator.d.ts +1 -1
- package/esm/src/rendering/layouts/layout-applicator.d.ts.map +1 -1
- package/esm/src/rendering/layouts/utils/applicator.d.ts +1 -1
- package/esm/src/rendering/layouts/utils/applicator.d.ts.map +1 -1
- package/esm/src/rendering/layouts/utils/component-loader.d.ts +1 -1
- package/esm/src/rendering/layouts/utils/component-loader.d.ts.map +1 -1
- package/esm/src/rendering/layouts/utils/ensure-valid-child.d.ts +1 -1
- package/esm/src/rendering/layouts/utils/ensure-valid-child.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/layout.d.ts +1 -1
- package/esm/src/rendering/orchestrator/layout.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/ssr-orchestrator.d.ts +1 -1
- package/esm/src/rendering/orchestrator/ssr-orchestrator.d.ts.map +1 -1
- package/esm/src/rendering/page-renderer.d.ts +1 -1
- package/esm/src/rendering/page-renderer.d.ts.map +1 -1
- package/esm/src/rendering/page-rendering.d.ts +1 -1
- package/esm/src/rendering/page-rendering.d.ts.map +1 -1
- package/esm/src/rendering/rsc/server-renderer/component-detector.d.ts +1 -1
- package/esm/src/rendering/rsc/server-renderer/component-detector.d.ts.map +1 -1
- package/esm/src/rendering/rsc/server-renderer/rsc-renderer.d.ts +1 -1
- package/esm/src/rendering/rsc/server-renderer/rsc-renderer.d.ts.map +1 -1
- package/esm/src/rendering/rsc/server-renderer/tree-processor.d.ts +1 -1
- package/esm/src/rendering/rsc/server-renderer/tree-processor.d.ts.map +1 -1
- package/esm/src/rendering/rsc/server-renderer/tree-processor.js +1 -1
- package/esm/src/rendering/snippet-renderer.js +2 -2
- package/esm/src/rendering/ssr/component-registry.d.ts +1 -1
- package/esm/src/rendering/ssr/component-registry.d.ts.map +1 -1
- package/esm/src/rendering/ssr/component-registry.js +1 -1
- package/esm/src/rendering/ssr-globals/context.d.ts +6 -1
- package/esm/src/rendering/ssr-globals/context.d.ts.map +1 -1
- package/esm/src/rendering/ssr-renderer.d.ts +1 -1
- package/esm/src/rendering/ssr-renderer.d.ts.map +1 -1
- package/esm/src/rendering/utils/react-helpers.d.ts +1 -1
- package/esm/src/rendering/utils/react-helpers.d.ts.map +1 -1
- package/esm/src/rendering/utils/react-helpers.js +1 -1
- package/esm/src/server/handlers/request/ssr/error-page-fallback.js +1 -1
- package/esm/src/server/handlers/request/ssr/not-found-fallback.js +1 -1
- package/esm/src/transforms/mdx/index.d.ts +1 -1
- package/esm/src/transforms/mdx/index.d.ts.map +1 -1
- package/esm/src/transforms/mdx/index.js +1 -1
- package/esm/src/transforms/mdx/mdx-cache-adapter.js +1 -1
- package/esm/src/transforms/mdx/module-loader/types.d.ts +1 -1
- package/esm/src/transforms/mdx/module-loader/types.d.ts.map +1 -1
- package/esm/src/transforms/mdx/types.d.ts +2 -2
- package/esm/src/transforms/mdx/types.d.ts.map +1 -1
- package/esm/src/types/app.d.ts +1 -1
- package/esm/src/types/app.d.ts.map +1 -1
- package/esm/src/types/global-guards.d.ts +1 -1
- package/esm/src/types/global-guards.d.ts.map +1 -1
- package/esm/src/types/index.d.ts +1 -1
- package/esm/src/types/index.d.ts.map +1 -1
- package/esm/src/workflow/react/use-approval.js +1 -1
- package/esm/src/workflow/react/use-workflow-list.js +1 -1
- package/esm/src/workflow/react/use-workflow-start.js +1 -1
- package/esm/src/workflow/react/use-workflow.js +1 -1
- package/package.json +1 -2
- package/src/deno.js +1 -1
- package/src/src/agent/react/use-agent.ts +1 -1
- package/src/src/agent/react/use-chat/use-chat.ts +1 -1
- package/src/src/agent/react/use-completion.ts +1 -1
- package/src/src/agent/react/use-streaming.ts +1 -1
- package/src/src/agent/react/use-voice-input.ts +1 -1
- package/src/src/cli/templates/manifest.js +480 -480
- package/src/src/modules/component-registry/registry.ts +1 -1
- package/src/src/modules/react-loader/component-loader.ts +1 -1
- package/src/src/modules/react-loader/extract-component.ts +1 -1
- package/src/src/modules/react-loader/ssr-module-loader/loader.ts +1 -1
- package/src/src/modules/react-loader/types.ts +1 -1
- package/src/src/react/compat/hooks-adapter.ts +1 -1
- package/src/src/react/compat/ssr-adapter/response-builder.ts +1 -1
- package/src/src/react/compat/ssr-adapter/server-loader.ts +10 -10
- package/src/src/react/compat/ssr-adapter/stream-renderer.ts +1 -1
- package/src/src/react/compat/ssr-adapter/string-renderer.ts +1 -1
- package/src/src/react/compat/version-detector/feature-detector.ts +1 -1
- package/src/src/react/components/AppWrapper.tsx +1 -1
- package/src/src/react/components/Head.tsx +1 -1
- package/src/src/react/components/LayoutComponent.tsx +2 -2
- package/src/src/react/components/Link.tsx +1 -1
- package/src/src/react/components/MDXProvider.tsx +2 -2
- package/src/src/react/components/ProviderComponent.tsx +2 -2
- package/src/src/react/components/ai/agent-card.tsx +1 -1
- package/src/src/react/components/ai/chat/components/animations.tsx +1 -1
- package/src/src/react/components/ai/chat/components/empty-state.tsx +1 -1
- package/src/src/react/components/ai/chat/components/message-actions.tsx +1 -1
- package/src/src/react/components/ai/chat/components/reasoning.tsx +1 -1
- package/src/src/react/components/ai/chat/components/tool-ui.tsx +1 -1
- package/src/src/react/components/ai/chat/composition/api.tsx +1 -1
- package/src/src/react/components/ai/chat/index.tsx +1 -1
- package/src/src/react/components/ai/error-boundary.tsx +1 -1
- package/src/src/react/components/ai/icons/index.ts +1 -1
- package/src/src/react/components/ai/markdown.tsx +1 -1
- package/src/src/react/components/ai/message.tsx +1 -1
- package/src/src/react/components/optimized-image/OptimizedBackgroundImage.tsx +1 -1
- package/src/src/react/components/optimized-image/OptimizedImage.tsx +1 -1
- package/src/src/react/components/optimized-image/SimpleOptimizedImage.tsx +1 -1
- package/src/src/react/components/optimized-image/utils.tsx +1 -1
- package/src/src/react/context/index.ts +1 -1
- package/src/src/react/fonts/index.ts +1 -1
- package/src/src/react/primitives/agent-primitives.tsx +1 -1
- package/src/src/react/primitives/chat-container.tsx +1 -1
- package/src/src/react/primitives/input-box.tsx +1 -1
- package/src/src/react/primitives/message-list.tsx +1 -1
- package/src/src/react/primitives/tool-primitives.tsx +1 -1
- package/src/src/react/router/index.ts +1 -1
- package/src/src/rendering/app-reserved.ts +1 -1
- package/src/src/rendering/client/router.ts +2 -2
- package/src/src/rendering/client/state-bridge.ts +2 -2
- package/src/src/rendering/component-handling.ts +1 -1
- package/src/src/rendering/element-validator/element-inspector.ts +1 -1
- package/src/src/rendering/element-validator/element-normalizer.ts +1 -1
- package/src/src/rendering/element-validator/primitive-checks.ts +1 -1
- package/src/src/rendering/element-validator/validator-core.ts +1 -1
- package/src/src/rendering/layouts/layout-applicator.ts +1 -1
- package/src/src/rendering/layouts/utils/applicator.ts +1 -1
- package/src/src/rendering/layouts/utils/component-loader.ts +1 -1
- package/src/src/rendering/layouts/utils/ensure-valid-child.ts +1 -1
- package/src/src/rendering/orchestrator/layout.ts +1 -1
- package/src/src/rendering/orchestrator/ssr-orchestrator.ts +1 -1
- package/src/src/rendering/page-renderer.ts +1 -1
- package/src/src/rendering/page-rendering.ts +1 -1
- package/src/src/rendering/rsc/server-renderer/component-detector.ts +1 -1
- package/src/src/rendering/rsc/server-renderer/rsc-renderer.ts +1 -1
- package/src/src/rendering/rsc/server-renderer/tree-processor.ts +1 -1
- package/src/src/rendering/snippet-renderer.ts +2 -2
- package/src/src/rendering/ssr/component-registry.ts +1 -1
- package/src/src/rendering/ssr-renderer.ts +1 -1
- package/src/src/rendering/utils/react-helpers.ts +1 -1
- package/src/src/server/build-app-route-renderer.ts +2 -2
- package/src/src/server/handlers/request/rsc/handlers/render-handler.ts +1 -1
- package/src/src/server/handlers/request/ssr/error-page-fallback.ts +2 -2
- package/src/src/server/handlers/request/ssr/not-found-fallback.ts +1 -1
- package/src/src/transforms/mdx/esm-module-loader/loader.ts +1 -1
- package/src/src/transforms/mdx/index.ts +1 -1
- package/src/src/transforms/mdx/mdx-cache-adapter.ts +1 -1
- package/src/src/transforms/mdx/module-loader/types.ts +1 -1
- package/src/src/transforms/mdx/types.ts +2 -2
- package/src/src/types/app.ts +1 -1
- package/src/src/types/global-guards.ts +1 -1
- package/src/src/types/index.ts +1 -1
- package/src/src/workflow/react/use-approval.ts +1 -1
- package/src/src/workflow/react/use-workflow-list.ts +1 -1
- package/src/src/workflow/react/use-workflow-start.ts +1 -1
- package/src/src/workflow/react/use-workflow.ts +1 -1
- package/esm/deps/esm.sh/react-dom@19.1.1/client.d.ts +0 -2
- package/esm/deps/esm.sh/react-dom@19.1.1/client.d.ts.map +0 -1
- package/esm/deps/esm.sh/react-dom@19.1.1/client.js +0 -5
- package/esm/deps/esm.sh/react-dom@19.1.1/server.d.ts +0 -2
- package/esm/deps/esm.sh/react-dom@19.1.1/server.d.ts.map +0 -1
- package/esm/deps/esm.sh/react-dom@19.1.1/server.js +0 -5
- package/esm/deps/esm.sh/react@19.1.1/jsx-runtime.d.ts +0 -2
- package/esm/deps/esm.sh/react@19.1.1/jsx-runtime.d.ts.map +0 -1
- package/esm/deps/esm.sh/react@19.1.1/jsx-runtime.js +0 -3
- package/esm/deps/esm.sh/react@19.1.1.d.ts +0 -2
- package/esm/deps/esm.sh/react@19.1.1.d.ts.map +0 -1
- package/esm/deps/esm.sh/react@19.1.1.js +0 -3
- package/esm/deps/esm.sh/scheduler@^0.26.0.d.ts +0 -2
- package/esm/deps/esm.sh/scheduler@^0.26.0.d.ts.map +0 -1
- package/esm/deps/esm.sh/scheduler@^0.26.0.js +0 -3
- package/src/deps/esm.sh/@types/react-dom@19.1.11/X-ZGNzc3R5cGVAMy4yLjMKZXJlYWN0/client.d.ts +0 -105
- package/src/deps/esm.sh/@types/react-dom@19.1.11/X-ZGNzc3R5cGVAMy4yLjMKZXJlYWN0/server.d.ts +0 -162
- package/src/deps/esm.sh/@types/react@19.1.17/X-ZGNzc3R5cGVAMy4yLjM/global.d.ts +0 -165
- package/src/deps/esm.sh/@types/react@19.1.17/X-ZGNzc3R5cGVAMy4yLjM/index.d.ts +0 -4267
- package/src/deps/esm.sh/@types/react@19.1.17/X-ZGNzc3R5cGVAMy4yLjMKZXJlYWN0/global.d.ts +0 -165
- package/src/deps/esm.sh/@types/react@19.1.17/X-ZGNzc3R5cGVAMy4yLjMKZXJlYWN0/index.d.ts +0 -4267
- package/src/deps/esm.sh/@types/react@19.1.17/X-ZGNzc3R5cGVAMy4yLjMKZXJlYWN0/jsx-runtime.d.ts +0 -36
- package/src/deps/esm.sh/@types/scheduler@0.26.0/index.d.ts +0 -30
- package/src/deps/esm.sh/csstype@3.2.3/index.d.ts +0 -22569
- package/src/deps/esm.sh/react-dom@19.1.1/client.d.ts +0 -105
- package/src/deps/esm.sh/react-dom@19.1.1/client.js +0 -5
- package/src/deps/esm.sh/react-dom@19.1.1/server.d.ts +0 -162
- package/src/deps/esm.sh/react-dom@19.1.1/server.js +0 -5
- package/src/deps/esm.sh/react@19.1.1/jsx-runtime.d.ts +0 -36
- package/src/deps/esm.sh/react@19.1.1/jsx-runtime.js +0 -3
- package/src/deps/esm.sh/react@19.1.1.d.ts +0 -4267
- package/src/deps/esm.sh/react@19.1.1.js +0 -3
- package/src/deps/esm.sh/scheduler@^0.26.0.d.ts +0 -30
- package/src/deps/esm.sh/scheduler@^0.26.0.js +0 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { serverLogger as logger } from "../../utils/index.js";
|
|
2
2
|
import { basename, join } from "../../platform/compat/path/index.js";
|
|
3
3
|
import type { RuntimeAdapter } from "../../platform/adapters/base.js";
|
|
4
|
-
import type * as React from "
|
|
4
|
+
import type * as React from "react";
|
|
5
5
|
import { withSpan } from "../../observability/tracing/otlp-setup.js";
|
|
6
6
|
|
|
7
7
|
export interface ComponentExports {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { join } from "../../platform/compat/path/index.js";
|
|
2
|
-
import type * as React from "
|
|
2
|
+
import type * as React from "react";
|
|
3
3
|
import type { RuntimeAdapter } from "../../platform/adapters/base.js";
|
|
4
4
|
import { transformToESM } from "../../transforms/esm/index.js";
|
|
5
5
|
import type { TransformOptions } from "../../transforms/esm/types.js";
|
|
@@ -9,7 +9,7 @@ import * as dntShim from "../../../../_dnt.shims.js";
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
import { join } from "../../../platform/compat/path/index.js";
|
|
12
|
-
import type * as React from "
|
|
12
|
+
import type * as React from "react";
|
|
13
13
|
import { transformToESM } from "../../../transforms/esm/index.js";
|
|
14
14
|
import type { TransformOptions } from "../../../transforms/esm/types.js";
|
|
15
15
|
import { TRANSFORM_CACHE_VERSION } from "../../../transforms/esm/package-registry.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as dntShim from "../../../_dnt.shims.js";
|
|
2
2
|
import { rendererLogger as logger } from "../../utils/index.js";
|
|
3
|
-
import * as React from "
|
|
3
|
+
import * as React from "react";
|
|
4
4
|
import { getReactVersionInfo, hasFeature } from "./version-detector/index.js";
|
|
5
5
|
|
|
6
6
|
export interface FormStatus {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as dntShim from "../../../../_dnt.shims.js";
|
|
2
|
-
import * as React from "
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
import { getReactVersionInfo } from "../version-detector/index.js";
|
|
4
4
|
import { wrapInHTML } from "./html-wrapper.js";
|
|
5
5
|
import { renderToStreamAdapter } from "./stream-renderer.js";
|
|
@@ -2,16 +2,16 @@ import { getReactVersionInfo } from "../version-detector/index.js";
|
|
|
2
2
|
import { Singleflight } from "../../../utils/singleflight.js";
|
|
3
3
|
|
|
4
4
|
export interface ReactDOMServer {
|
|
5
|
-
renderToString: typeof import("
|
|
6
|
-
renderToStaticMarkup: typeof import("
|
|
7
|
-
renderToPipeableStream?: typeof import("
|
|
8
|
-
renderToReadableStream?: typeof import("
|
|
5
|
+
renderToString: typeof import("react-dom/server").renderToString;
|
|
6
|
+
renderToStaticMarkup: typeof import("react-dom/server").renderToStaticMarkup;
|
|
7
|
+
renderToPipeableStream?: typeof import("react-dom/server").renderToPipeableStream;
|
|
8
|
+
renderToReadableStream?: typeof import("react-dom/server").renderToReadableStream;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
let projectReactCache: typeof import("
|
|
11
|
+
let projectReactCache: typeof import("react") | null = null;
|
|
12
12
|
let reactDOMServerCache: ReactDOMServer | null = null;
|
|
13
13
|
|
|
14
|
-
const reactLoadFlight = new Singleflight<typeof import("
|
|
14
|
+
const reactLoadFlight = new Singleflight<typeof import("react")>();
|
|
15
15
|
const reactDOMServerLoadFlight = new Singleflight<ReactDOMServer>();
|
|
16
16
|
|
|
17
17
|
export function resetReactCache(): void {
|
|
@@ -19,14 +19,14 @@ export function resetReactCache(): void {
|
|
|
19
19
|
reactDOMServerCache = null;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
export function getProjectReact(): Promise<typeof import("
|
|
22
|
+
export function getProjectReact(): Promise<typeof import("react")> {
|
|
23
23
|
if (projectReactCache) return Promise.resolve(projectReactCache);
|
|
24
24
|
|
|
25
25
|
return reactLoadFlight.do("react", async () => {
|
|
26
26
|
if (projectReactCache) return projectReactCache;
|
|
27
27
|
|
|
28
|
-
const reactModule = await import("
|
|
29
|
-
projectReactCache = (reactModule.default ?? reactModule) as typeof import("
|
|
28
|
+
const reactModule = await import("react");
|
|
29
|
+
projectReactCache = (reactModule.default ?? reactModule) as typeof import("react");
|
|
30
30
|
return projectReactCache;
|
|
31
31
|
});
|
|
32
32
|
}
|
|
@@ -38,7 +38,7 @@ export function getReactDOMServer(): Promise<ReactDOMServer> {
|
|
|
38
38
|
if (reactDOMServerCache) return reactDOMServerCache;
|
|
39
39
|
|
|
40
40
|
const versionInfo = getReactVersionInfo();
|
|
41
|
-
const serverModule = await import("
|
|
41
|
+
const serverModule = await import("react-dom/server");
|
|
42
42
|
|
|
43
43
|
const react18Plus = versionInfo.isReact18 || versionInfo.isReact19;
|
|
44
44
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as dntShim from "../../../../_dnt.shims.js";
|
|
2
|
-
import * as React from "
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
import { rendererLogger as logger } from "../../../utils/index.js";
|
|
4
4
|
import { getReactVersionInfo, hasFeature } from "../version-detector/index.js";
|
|
5
5
|
import { getReactDOMServer } from "./server-loader.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { rendererLogger as logger } from "../../../utils/index.js";
|
|
3
3
|
import { withSpan } from "../../../observability/tracing/otlp-setup.js";
|
|
4
4
|
import { SpanNames } from "../../../observability/tracing/span-names.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { rendererLogger as logger } from "../../../utils/index.js";
|
|
2
2
|
import { readTextFile } from "../../../platform/compat/fs.js";
|
|
3
|
-
import * as React from "
|
|
3
|
+
import * as React from "react";
|
|
4
4
|
import type { ReactFeatures, ReactVersionInfo } from "./types.js";
|
|
5
5
|
import { isReact17, isReact18, isReact19, parseVersion } from "./version-parser.js";
|
|
6
6
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import type { MDXComponents, PageContext as TypedPageContext } from "../../types/index.js";
|
|
3
3
|
import type { MdxBundle } from "./LayoutComponent.js";
|
|
4
4
|
import { LayoutComponent } from "./LayoutComponent.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../_dnt.polyfills.js";
|
|
2
2
|
import "../../../_dnt.polyfills.js";
|
|
3
3
|
import * as dntShim from "../../../_dnt.shims.js";
|
|
4
|
-
import React, { useEffect, useRef } from "
|
|
4
|
+
import React, { useEffect, useRef } from "react";
|
|
5
5
|
import { collectHead } from "../head-collector.js";
|
|
6
6
|
|
|
7
7
|
function isServerEnvironment(): boolean {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type React from "
|
|
2
|
-
import { useMemo, useRef } from "
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import { useMemo, useRef } from "react";
|
|
3
3
|
import { mdxRenderer } from "../../transforms/mdx/index.js";
|
|
4
4
|
import type { MdxBundle, MDXComponents, PageContext as TypedPageContext } from "../../types/index.js";
|
|
5
5
|
import { rendererLogger as logger } from "../../utils/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from "
|
|
2
|
-
import { createContext, useContext } from "
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { createContext, useContext } from "react";
|
|
3
3
|
import type { MDXComponents } from "../../types/index.js";
|
|
4
4
|
|
|
5
5
|
const MDXContext = createContext<MDXComponents>({});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type * as React from "
|
|
2
|
-
import { useMemo, useRef } from "
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import { useMemo, useRef } from "react";
|
|
3
3
|
import { mdxRenderer } from "../../transforms/mdx/index.js";
|
|
4
4
|
import type { MDXComponents } from "../../types/index.js";
|
|
5
5
|
import type { MdxBundle } from "./LayoutComponent.js";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @module ai/react/components/chat/components/empty-state
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import * as React from "
|
|
6
|
+
import * as React from "react";
|
|
7
7
|
import { cn } from "../../theme.js";
|
|
8
8
|
import { ArrowDownIcon } from "../../icons/index.js";
|
|
9
9
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as dntShim from "../../../../../../_dnt.shims.js";
|
|
2
|
-
import * as React from "
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
import { cn } from "../../theme.js";
|
|
4
4
|
import { CheckIcon, CopyIcon } from "../../icons/index.js";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as dntShim from "../../../../../../_dnt.shims.js";
|
|
2
|
-
import * as React from "
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
import { cn } from "../../theme.js";
|
|
4
4
|
import { Markdown } from "../../markdown.js";
|
|
5
5
|
import { BrainIcon, ChevronDownIcon } from "../../icons/index.js";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @module ai/react/components/chat/composition/api
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import * as React from "
|
|
6
|
+
import * as React from "react";
|
|
7
7
|
import { InputBox, MessageList } from "../../../../primitives/index.js";
|
|
8
8
|
import { cn, defaultChatTheme } from "../../theme.js";
|
|
9
9
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { MessageContent, MessageItem, MessageRole } from "../../primitives/index.js";
|
|
3
3
|
import type { ToolUIPart, UIMessage, UIMessagePart } from "../../../agent/react/index.js";
|
|
4
4
|
import { type ChatTheme, cn, defaultChatTheme, mergeThemes } from "./theme.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type React from "
|
|
1
|
+
import type React from "react";
|
|
2
2
|
import type { OptimizedImageProps } from "./OptimizedImage.js";
|
|
3
3
|
import { RESPONSIVE_IMAGE_WIDTH_LG, RESPONSIVE_IMAGE_WIDTHS } from "../../../utils/index.js";
|
|
4
4
|
import { generateSrcSet, getOptimizedPath } from "./helpers.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import type { DynamicToolUIPart, ToolState, ToolUIPart } from "../../agent/react/index.js";
|
|
3
3
|
|
|
4
4
|
export interface ToolInvocationProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as dntShim from "../../../_dnt.shims.js";
|
|
2
2
|
import { rendererLogger as logger } from "../../utils/index.js";
|
|
3
|
-
import ReactDOM from "
|
|
4
|
-
import type { Root } from "
|
|
3
|
+
import ReactDOM from "react-dom/client";
|
|
4
|
+
import type { Root } from "react-dom/client";
|
|
5
5
|
import type { GlobalWithReactDOM } from "../../types/global-guards.js";
|
|
6
6
|
import {
|
|
7
7
|
extractPageDataFromScript,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as dntShim from "../../../_dnt.shims.js";
|
|
2
|
-
import * as React from "
|
|
3
|
-
import type { DependencyList, Dispatch, EffectCallback, SetStateAction } from "
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import type { DependencyList, Dispatch, EffectCallback, SetStateAction } from "react";
|
|
4
4
|
import { rendererLogger } from "../../utils/index.js";
|
|
5
5
|
|
|
6
6
|
export interface StateStore {
|
|
@@ -6,7 +6,7 @@ import * as dntShim from "../../_dnt.shims.js";
|
|
|
6
6
|
|
|
7
7
|
import { rendererLogger as logger } from "../utils/index.js";
|
|
8
8
|
import { ErrorCode, VeryfrontError } from "../errors/index.js";
|
|
9
|
-
import type * as BundledReact from "
|
|
9
|
+
import type * as BundledReact from "react";
|
|
10
10
|
import type { RuntimeAdapter } from "../platform/adapters/base.js";
|
|
11
11
|
import type { EntityInfo, PageBundle } from "../types/index.js";
|
|
12
12
|
import { createError, getErrorMessage, toError } from "../errors/veryfront-error.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { rendererLogger as logger } from "../../utils/index.js";
|
|
3
3
|
import type { InvalidObjectDetails } from "./types.js";
|
|
4
4
|
import { createError, toError } from "../../errors/veryfront-error.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { rendererLogger as logger } from "../../utils/index.js";
|
|
3
3
|
import { ensureError } from "../../errors/veryfront-error.js";
|
|
4
4
|
import { normalizeChild } from "../utils/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import type { ValidationOptions } from "./types.js";
|
|
3
3
|
import { deepInspectElement, type InspectionOptions } from "./element-inspector.js";
|
|
4
4
|
import { ensureValidReactElement, type NormalizationOptions } from "./element-normalizer.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { dirname, join } from "../../platform/compat/path-helper.js";
|
|
2
2
|
import { rendererLogger as logger } from "../../utils/index.js";
|
|
3
|
-
import * as BundledReact from "
|
|
3
|
+
import * as BundledReact from "react";
|
|
4
4
|
import type { RuntimeAdapter } from "../../platform/adapters/base.js";
|
|
5
5
|
import type { LayoutItem, MdxBundle, MDXComponents } from "../../types/index.js";
|
|
6
6
|
import type { EntityInfo } from "../../types/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { rendererLogger as logger } from "../../../utils/index.js";
|
|
2
|
-
import * as BundledReact from "
|
|
2
|
+
import * as BundledReact from "react";
|
|
3
3
|
import type { RuntimeAdapter } from "../../../platform/adapters/base.js";
|
|
4
4
|
import type { LayoutItem, MdxBundle, MDXComponents } from "../../../types/index.js";
|
|
5
5
|
import type { ImportMapConfig } from "../../../modules/import-map/types.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computeHash, rendererLogger as logger, TSX_LAYOUT_MAX_ENTRIES } from "../../../utils/index.js";
|
|
2
|
-
import * as BundledReact from "
|
|
2
|
+
import * as BundledReact from "react";
|
|
3
3
|
import type { RuntimeAdapter } from "../../../platform/adapters/base.js";
|
|
4
4
|
import type { LayoutItem, MdxBundle, MDXComponents, MDXModule } from "../../../types/index.js";
|
|
5
5
|
import type { ImportMapConfig } from "../../../modules/import-map/types.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import type { EntityInfo, LayoutItem, MdxBundle, MDXComponents } from "../../types/index.js";
|
|
3
3
|
import type { RuntimeAdapter } from "../../platform/adapters/base.js";
|
|
4
4
|
import type { VeryfrontConfig } from "../../config/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as dntShim from "../../../_dnt.shims.js";
|
|
2
2
|
import { rendererLogger as logger } from "../../utils/index.js";
|
|
3
|
-
import type * as React from "
|
|
3
|
+
import type * as React from "react";
|
|
4
4
|
import { createError, toError } from "../../errors/veryfront-error.js";
|
|
5
5
|
import { withSpan } from "../../observability/tracing/otlp-setup.js";
|
|
6
6
|
import { SpanNames } from "../../observability/tracing/span-names.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { rendererLogger as logger } from "../utils/index.js";
|
|
3
3
|
import { ErrorCode, VeryfrontError } from "../errors/index.js";
|
|
4
4
|
import { createDefaultMDXComponents } from "./utils/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { rendererLogger as logger } from "../utils/index.js";
|
|
2
2
|
import { ErrorCode, VeryfrontError } from "../errors/index.js";
|
|
3
|
-
import type * as BundledReact from "
|
|
3
|
+
import type * as BundledReact from "react";
|
|
4
4
|
import type { RuntimeAdapter } from "../platform/adapters/base.js";
|
|
5
5
|
import type { EntityInfo, MdxBundle, MDXComponents, MDXModule, PageBundle } from "../types/index.js";
|
|
6
6
|
import { mdxRenderer } from "../transforms/mdx/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type * as React from "
|
|
1
|
+
import type * as React from "react";
|
|
2
2
|
import { serverLogger as logger } from "../../../utils/index.js";
|
|
3
3
|
import { withSpan } from "../../../observability/tracing/otlp-setup.js";
|
|
4
4
|
import type { ClientComponentMeta, RSCPayload, RSCRendererOptions } from "../types.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { serverLogger as logger } from "../../../utils/index.js";
|
|
3
3
|
import { renderToStringAdapter } from "../../../react/index.js";
|
|
4
4
|
import type { ClientComponentMeta, RSCNode } from "../types.js";
|
|
@@ -247,8 +247,8 @@ export function renderSnippet(
|
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
const [{ renderToString }, React] = await Promise.all([
|
|
250
|
-
import("
|
|
251
|
-
import("
|
|
250
|
+
import("react-dom/server"),
|
|
251
|
+
import("react"),
|
|
252
252
|
]);
|
|
253
253
|
|
|
254
254
|
const element = React.createElement(MDXContent, {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import { dirname, join } from "../../platform/compat/path-helper.js";
|
|
7
7
|
import { DEFAULT_DASHBOARD_PORT, rendererLogger as logger } from "../../utils/index.js";
|
|
8
|
-
import * as React from "
|
|
8
|
+
import * as React from "react";
|
|
9
9
|
import type { RuntimeAdapter } from "../../platform/adapters/base.js";
|
|
10
10
|
import { VirtualModuleSystem } from "../virtual-module-system.js";
|
|
11
11
|
import { loadComponentFromSource } from "../../modules/react-loader/component-loader.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import { isCompiledBinary, rendererLogger as logger } from "../utils/index.js";
|
|
16
16
|
import { withSpan } from "../observability/tracing/otlp-setup.js";
|
|
17
17
|
import { SpanNames } from "../observability/tracing/span-names.js";
|
|
18
|
-
import type * as React from "
|
|
18
|
+
import type * as React from "react";
|
|
19
19
|
import { streamToString } from "./utils/index.js";
|
|
20
20
|
import { setupSSRGlobals } from "./ssr-globals.js";
|
|
21
21
|
|
|
@@ -9,7 +9,7 @@ import { getProjectReact, renderToStringAdapter } from "../react/index.js";
|
|
|
9
9
|
import { loadComponentFromSource } from "../modules/react-loader/index.js";
|
|
10
10
|
import { CompilationError } from "../errors/index.js";
|
|
11
11
|
|
|
12
|
-
type ReactComponentLike = import("
|
|
12
|
+
type ReactComponentLike = import("react").ComponentType<{ children?: import("react").ReactNode }>;
|
|
13
13
|
|
|
14
14
|
async function fileExists(adapter: RuntimeAdapter, filePath: string): Promise<boolean> {
|
|
15
15
|
try {
|
|
@@ -70,7 +70,7 @@ export async function renderAppRouteToHTML(args: {
|
|
|
70
70
|
throw new CompilationError("Invalid page component", { pageFile, type: typeof Page });
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
let element: import("
|
|
73
|
+
let element: import("react").ReactNode = React.createElement(Page as ReactComponentLike);
|
|
74
74
|
|
|
75
75
|
for (let i = layouts.length - 1; i >= 0; i--) {
|
|
76
76
|
const layoutPath = layouts[i];
|