veryfront 0.0.86 → 0.0.88
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/deno.d.ts +0 -1
- package/esm/deno.js +8 -9
- package/esm/deps/esm.sh/react-dom@19.1.1/client.d.ts +2 -0
- package/esm/deps/esm.sh/react-dom@19.1.1/client.d.ts.map +1 -0
- package/esm/deps/esm.sh/react-dom@19.1.1/client.js +5 -0
- package/esm/deps/esm.sh/react-dom@19.1.1/server.d.ts +2 -0
- package/esm/deps/esm.sh/react-dom@19.1.1/server.d.ts.map +1 -0
- package/esm/deps/esm.sh/react-dom@19.1.1/server.js +5 -0
- package/esm/deps/esm.sh/react@19.1.1/jsx-runtime.d.ts +2 -0
- package/esm/deps/esm.sh/react@19.1.1/jsx-runtime.d.ts.map +1 -0
- package/esm/deps/esm.sh/react@19.1.1/jsx-runtime.js +3 -0
- package/esm/deps/esm.sh/react@19.1.1.d.ts +2 -0
- package/esm/deps/esm.sh/react@19.1.1.d.ts.map +1 -0
- package/esm/deps/esm.sh/react@19.1.1.js +3 -0
- package/esm/deps/esm.sh/scheduler@^0.26.0.d.ts +2 -0
- package/esm/deps/esm.sh/scheduler@^0.26.0.d.ts.map +1 -0
- package/esm/deps/esm.sh/scheduler@^0.26.0.js +3 -0
- package/esm/proxy/main.d.ts +2 -0
- package/esm/proxy/main.d.ts.map +1 -0
- package/esm/proxy/main.js +400 -0
- 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/commands/init/config-generator.js +1 -1
- package/esm/src/cli/index/arg-parser.d.ts.map +1 -1
- package/esm/src/cli/index/arg-parser.js +1 -0
- package/esm/src/cli/index/command-router.d.ts.map +1 -1
- package/esm/src/cli/index/command-router.js +54 -39
- package/esm/src/cli/index/types.d.ts +4 -0
- package/esm/src/cli/index/types.d.ts.map +1 -1
- package/esm/src/cli/mcp/advanced-tools.d.ts +2 -2
- package/esm/src/config/loader.d.ts.map +1 -1
- package/esm/src/config/loader.js +5 -4
- package/esm/src/html/utils.js +2 -2
- 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/import-map/default-import-map.d.ts +1 -11
- package/esm/src/modules/import-map/default-import-map.d.ts.map +1 -1
- package/esm/src/modules/import-map/default-import-map.js +3 -20
- package/esm/src/modules/import-map/loader.d.ts.map +1 -1
- package/esm/src/modules/import-map/loader.js +7 -22
- package/esm/src/modules/import-map/resolver.d.ts.map +1 -1
- package/esm/src/modules/import-map/resolver.js +12 -8
- 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/component-loader.js +2 -0
- 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 +2 -7
- package/esm/src/modules/react-loader/ssr-module-loader/loader.d.ts.map +1 -1
- package/esm/src/modules/react-loader/ssr-module-loader/loader.js +40 -32
- package/esm/src/modules/react-loader/ssr-module-loader/types.d.ts +2 -0
- package/esm/src/modules/react-loader/ssr-module-loader/types.d.ts.map +1 -1
- package/esm/src/modules/react-loader/types.d.ts +3 -1
- package/esm/src/modules/react-loader/types.d.ts.map +1 -1
- package/esm/src/modules/react-loader/unified-loader.d.ts.map +1 -1
- package/esm/src/modules/react-loader/unified-loader.js +7 -4
- package/esm/src/modules/server/module-batch-handler.d.ts +2 -0
- package/esm/src/modules/server/module-batch-handler.d.ts.map +1 -1
- package/esm/src/modules/server/module-batch-handler.js +3 -1
- package/esm/src/modules/server/module-server.d.ts +2 -0
- package/esm/src/modules/server/module-server.d.ts.map +1 -1
- package/esm/src/modules/server/module-server.js +4 -2
- package/esm/src/modules/server/ssr-import-rewriter.d.ts.map +1 -1
- package/esm/src/modules/server/ssr-import-rewriter.js +9 -17
- 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/ssr-adapter/string-renderer.js +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 +7 -3
- 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 +2 -2
- 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 +5 -4
- 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 +8 -3
- 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 +3 -3
- 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 +4 -4
- 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 +2 -2
- 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 +4 -4
- package/esm/src/react/primitives/input-box.d.ts.map +1 -1
- package/esm/src/react/primitives/input-box.js +7 -3
- package/esm/src/react/primitives/message-list.d.ts +5 -5
- 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 +4 -4
- 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 +3 -1
- package/esm/src/rendering/component-handling.d.ts.map +1 -1
- package/esm/src/rendering/component-handling.js +4 -2
- 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/layout-applicator.js +2 -0
- 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/module-loader/index.d.ts +3 -0
- package/esm/src/rendering/orchestrator/module-loader/index.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/module-loader/index.js +74 -19
- package/esm/src/rendering/orchestrator/pipeline.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/pipeline.js +2 -0
- 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 +4 -2
- 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-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/esm/http-bundler.d.ts +15 -4
- package/esm/src/transforms/esm/http-bundler.d.ts.map +1 -1
- package/esm/src/transforms/esm/http-bundler.js +105 -12
- package/esm/src/transforms/esm/http-cache.d.ts.map +1 -1
- package/esm/src/transforms/esm/http-cache.js +26 -27
- package/esm/src/transforms/esm/import-rewriter.d.ts.map +1 -1
- package/esm/src/transforms/esm/import-rewriter.js +3 -3
- package/esm/src/transforms/esm/package-registry.d.ts +15 -13
- package/esm/src/transforms/esm/package-registry.d.ts.map +1 -1
- package/esm/src/transforms/esm/package-registry.js +45 -32
- package/esm/src/transforms/esm/react-imports.d.ts.map +1 -1
- package/esm/src/transforms/esm/react-imports.js +3 -7
- package/esm/src/transforms/esm/types.d.ts +2 -0
- package/esm/src/transforms/esm/types.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/cache/index.d.ts +14 -0
- package/esm/src/transforms/mdx/esm-module-loader/cache/index.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/cache/index.js +67 -0
- package/esm/src/transforms/mdx/esm-module-loader/loader.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/loader.js +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/index.d.ts +1 -0
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/index.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/index.js +1 -0
- package/esm/src/transforms/mdx/esm-module-loader/types.d.ts +4 -0
- package/esm/src/transforms/mdx/esm-module-loader/types.d.ts.map +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/transforms/pipeline/context.d.ts.map +1 -1
- package/esm/src/transforms/pipeline/context.js +7 -15
- package/esm/src/transforms/pipeline/stages/finalize.d.ts.map +1 -1
- package/esm/src/transforms/pipeline/stages/finalize.js +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/utils/constants/cdn.d.ts.map +1 -1
- package/esm/src/utils/constants/cdn.js +22 -11
- package/esm/src/utils/hash-utils.d.ts +2 -0
- package/esm/src/utils/hash-utils.d.ts.map +1 -1
- package/esm/src/utils/hash-utils.js +4 -0
- 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 +2 -1
- package/src/deno.js +8 -9
- package/src/deps/esm.sh/@types/react-dom@19.1.11/X-ZGNzc3R5cGVAMy4yLjMKZXJlYWN0/client.d.ts +105 -0
- package/src/deps/esm.sh/@types/react-dom@19.1.11/X-ZGNzc3R5cGVAMy4yLjMKZXJlYWN0/server.d.ts +162 -0
- package/src/deps/esm.sh/@types/react@19.1.17/X-ZGNzc3R5cGVAMy4yLjM/global.d.ts +165 -0
- package/src/deps/esm.sh/@types/react@19.1.17/X-ZGNzc3R5cGVAMy4yLjM/index.d.ts +4267 -0
- package/src/deps/esm.sh/@types/react@19.1.17/X-ZGNzc3R5cGVAMy4yLjMKZXJlYWN0/global.d.ts +165 -0
- package/src/deps/esm.sh/@types/react@19.1.17/X-ZGNzc3R5cGVAMy4yLjMKZXJlYWN0/index.d.ts +4267 -0
- package/src/deps/esm.sh/@types/react@19.1.17/X-ZGNzc3R5cGVAMy4yLjMKZXJlYWN0/jsx-runtime.d.ts +36 -0
- package/src/deps/esm.sh/@types/scheduler@0.26.0/index.d.ts +30 -0
- package/src/deps/esm.sh/csstype@3.2.3/index.d.ts +22569 -0
- package/src/deps/esm.sh/react-dom@19.1.1/client.d.ts +105 -0
- package/src/deps/esm.sh/react-dom@19.1.1/client.js +5 -0
- package/src/deps/esm.sh/react-dom@19.1.1/server.d.ts +162 -0
- package/src/deps/esm.sh/react-dom@19.1.1/server.js +5 -0
- package/src/deps/esm.sh/react@19.1.1/jsx-runtime.d.ts +36 -0
- package/src/deps/esm.sh/react@19.1.1/jsx-runtime.js +3 -0
- package/src/deps/esm.sh/react@19.1.1.d.ts +4267 -0
- package/src/deps/esm.sh/react@19.1.1.js +3 -0
- package/src/deps/esm.sh/scheduler@^0.26.0.d.ts +30 -0
- package/src/deps/esm.sh/scheduler@^0.26.0.js +3 -0
- package/src/proxy/main.ts +471 -0
- 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/commands/init/config-generator.ts +1 -1
- package/src/src/cli/index/arg-parser.ts +1 -0
- package/src/src/cli/index/command-router.ts +57 -40
- package/src/src/cli/index/types.ts +5 -0
- package/src/src/config/loader.ts +5 -4
- package/src/src/html/utils.ts +2 -2
- package/src/src/modules/component-registry/registry.ts +1 -1
- package/src/src/modules/import-map/default-import-map.ts +3 -25
- package/src/src/modules/import-map/loader.ts +7 -23
- package/src/src/modules/import-map/resolver.ts +13 -8
- package/src/src/modules/react-loader/component-loader.ts +3 -1
- package/src/src/modules/react-loader/extract-component.ts +1 -1
- package/src/src/modules/react-loader/ssr-module-loader/loader.ts +52 -38
- package/src/src/modules/react-loader/ssr-module-loader/types.ts +2 -0
- package/src/src/modules/react-loader/types.ts +3 -1
- package/src/src/modules/react-loader/unified-loader.ts +7 -4
- package/src/src/modules/server/module-batch-handler.ts +7 -0
- package/src/src/modules/server/module-server.ts +6 -1
- package/src/src/modules/server/ssr-import-rewriter.ts +9 -17
- 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 +2 -2
- package/src/src/react/compat/ssr-adapter/string-renderer.ts +3 -3
- 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 +7 -3
- 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 +5 -3
- 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 +7 -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 +5 -6
- 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/module-loader/index.ts +91 -20
- package/src/src/rendering/orchestrator/pipeline.ts +2 -0
- package/src/src/rendering/orchestrator/ssr-orchestrator.ts +2 -2
- 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 +14 -4
- 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/esm/http-bundler.ts +101 -11
- package/src/src/transforms/esm/http-cache.ts +27 -28
- package/src/src/transforms/esm/import-rewriter.ts +5 -3
- package/src/src/transforms/esm/package-registry.ts +46 -32
- package/src/src/transforms/esm/react-imports.ts +3 -7
- package/src/src/transforms/esm/types.ts +2 -0
- package/src/src/transforms/mdx/esm-module-loader/cache/index.ts +84 -0
- package/src/src/transforms/mdx/esm-module-loader/loader.ts +2 -1
- package/src/src/transforms/mdx/esm-module-loader/module-fetcher/index.ts +2 -1
- package/src/src/transforms/mdx/esm-module-loader/types.ts +4 -0
- 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/transforms/pipeline/context.ts +7 -18
- package/src/src/transforms/pipeline/stages/finalize.ts +6 -1
- package/src/src/transforms/plugins/babel-node-positions.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/utils/constants/cdn.ts +21 -12
- package/src/src/utils/hash-utils.ts +5 -0
- 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
|
@@ -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("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;
|
|
5
|
+
renderToString: typeof import("../../../../deps/esm.sh/react-dom@19.1.1/server.js").renderToString;
|
|
6
|
+
renderToStaticMarkup: typeof import("../../../../deps/esm.sh/react-dom@19.1.1/server.js").renderToStaticMarkup;
|
|
7
|
+
renderToPipeableStream?: typeof import("../../../../deps/esm.sh/react-dom@19.1.1/server.js").renderToPipeableStream;
|
|
8
|
+
renderToReadableStream?: typeof import("../../../../deps/esm.sh/react-dom@19.1.1/server.js").renderToReadableStream;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
let projectReactCache: typeof import("react") | null = null;
|
|
11
|
+
let projectReactCache: typeof import("../../../../deps/esm.sh/react@19.1.1.js") | null = null;
|
|
12
12
|
let reactDOMServerCache: ReactDOMServer | null = null;
|
|
13
13
|
|
|
14
|
-
const reactLoadFlight = new Singleflight<typeof import("react")>();
|
|
14
|
+
const reactLoadFlight = new Singleflight<typeof import("../../../../deps/esm.sh/react@19.1.1.js")>();
|
|
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("react")> {
|
|
22
|
+
export function getProjectReact(): Promise<typeof import("../../../../deps/esm.sh/react@19.1.1.js")> {
|
|
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("react");
|
|
29
|
-
projectReactCache = (reactModule.default ?? reactModule) as typeof import("react");
|
|
28
|
+
const reactModule = await import("../../../../deps/esm.sh/react@19.1.1.js");
|
|
29
|
+
projectReactCache = (reactModule.default ?? reactModule) as typeof import("../../../../deps/esm.sh/react@19.1.1.js");
|
|
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("react-dom/server");
|
|
41
|
+
const serverModule = await import("../../../../deps/esm.sh/react-dom@19.1.1/server.js");
|
|
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 "react";
|
|
2
|
+
import * as React from "../../../../deps/esm.sh/react@19.1.1.js";
|
|
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";
|
|
@@ -145,7 +145,7 @@ function renderToPipeableStreamImpl(
|
|
|
145
145
|
}, SSR_TIMEOUT_MS);
|
|
146
146
|
|
|
147
147
|
try {
|
|
148
|
-
const { pipe, abort } = server.renderToPipeableStream(element, {
|
|
148
|
+
const { pipe, abort } = server.renderToPipeableStream!(element, {
|
|
149
149
|
bootstrapScripts: options.bootstrapScripts,
|
|
150
150
|
bootstrapModules: options.bootstrapModules,
|
|
151
151
|
identifierPrefix: options.identifierPrefix,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React from "../../../../deps/esm.sh/react@19.1.1.js";
|
|
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";
|
|
@@ -31,7 +31,7 @@ export async function renderToStringAdapter(
|
|
|
31
31
|
const stream = await withSpan(
|
|
32
32
|
SpanNames.SSR_REACT_RENDER_TO_STREAM,
|
|
33
33
|
() =>
|
|
34
|
-
server.renderToReadableStream(element, {
|
|
34
|
+
server.renderToReadableStream!(element, {
|
|
35
35
|
onError: (error: unknown) => {
|
|
36
36
|
logger.error("SSR renderToReadableStream error", error);
|
|
37
37
|
options.onError?.(error as Error);
|
|
@@ -48,7 +48,7 @@ export async function renderToStringAdapter(
|
|
|
48
48
|
try {
|
|
49
49
|
return (await withSpan(
|
|
50
50
|
SpanNames.SSR_REACT_RENDER_TO_STRING,
|
|
51
|
-
() => server.renderToString(element),
|
|
51
|
+
() => Promise.resolve(server.renderToString(element)),
|
|
52
52
|
{ "ssr.method": "renderToString" },
|
|
53
53
|
)) as string;
|
|
54
54
|
} catch (error) {
|
|
@@ -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 "react";
|
|
3
|
+
import * as React from "../../../../deps/esm.sh/react@19.1.1.js";
|
|
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 "react";
|
|
1
|
+
import * as React from "../../../deps/esm.sh/react@19.1.1.js";
|
|
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 "react";
|
|
4
|
+
import React, { useEffect, useRef } from "../../../deps/esm.sh/react@19.1.1.js";
|
|
5
5
|
import { collectHead } from "../head-collector.js";
|
|
6
6
|
|
|
7
7
|
function isServerEnvironment(): boolean {
|
|
@@ -17,7 +17,9 @@ export function Head({ children }: { children: React.ReactNode }): React.ReactEl
|
|
|
17
17
|
React.Children.forEach(children, (child) => {
|
|
18
18
|
if (!React.isValidElement(child)) return;
|
|
19
19
|
|
|
20
|
-
const { type
|
|
20
|
+
const { type } = child;
|
|
21
|
+
// Cast props to Record for React 19 compatibility (props is unknown in R19 types)
|
|
22
|
+
const props = child.props as Record<string, unknown>;
|
|
21
23
|
if (typeof type !== "string" || type === "body") return;
|
|
22
24
|
|
|
23
25
|
if (type === "title") {
|
|
@@ -62,7 +64,9 @@ export function Head({ children }: { children: React.ReactNode }): React.ReactEl
|
|
|
62
64
|
React.Children.forEach(children, (child) => {
|
|
63
65
|
if (!React.isValidElement(child)) return;
|
|
64
66
|
|
|
65
|
-
const { type
|
|
67
|
+
const { type } = child;
|
|
68
|
+
// Cast props to Record for React 19 compatibility (props is unknown in R19 types)
|
|
69
|
+
const props = child.props as Record<string, unknown>;
|
|
66
70
|
if (typeof type !== "string" || type === "body") return;
|
|
67
71
|
|
|
68
72
|
if (type === "title") {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type React from "react";
|
|
2
|
-
import { useMemo, useRef } from "react";
|
|
1
|
+
import type React from "../../../deps/esm.sh/react@19.1.1.js";
|
|
2
|
+
import { useMemo, useRef } from "../../../deps/esm.sh/react@19.1.1.js";
|
|
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 "react";
|
|
2
|
-
import { createContext, useContext } from "react";
|
|
1
|
+
import React from "../../../deps/esm.sh/react@19.1.1.js";
|
|
2
|
+
import { createContext, useContext } from "../../../deps/esm.sh/react@19.1.1.js";
|
|
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 "react";
|
|
2
|
-
import { useMemo, useRef } from "react";
|
|
1
|
+
import type * as React from "../../../deps/esm.sh/react@19.1.1.js";
|
|
2
|
+
import { useMemo, useRef } from "../../../deps/esm.sh/react@19.1.1.js";
|
|
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 "react";
|
|
6
|
+
import * as React from "../../../../../../deps/esm.sh/react@19.1.1.js";
|
|
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 "react";
|
|
2
|
+
import * as React from "../../../../../../deps/esm.sh/react@19.1.1.js";
|
|
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 "react";
|
|
2
|
+
import * as React from "../../../../../../deps/esm.sh/react@19.1.1.js";
|
|
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 "react";
|
|
6
|
+
import * as React from "../../../../../../deps/esm.sh/react@19.1.1.js";
|
|
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 "react";
|
|
1
|
+
import * as React from "../../../../deps/esm.sh/react@19.1.1.js";
|
|
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 "react";
|
|
1
|
+
import type React from "../../../../deps/esm.sh/react@19.1.1.js";
|
|
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 "react";
|
|
1
|
+
import * as React from "../../../deps/esm.sh/react@19.1.1.js";
|
|
2
2
|
|
|
3
3
|
export interface InputBoxProps extends
|
|
4
4
|
Omit<
|
|
@@ -28,7 +28,8 @@ export const InputBox = React.forwardRef<
|
|
|
28
28
|
if (multiline) {
|
|
29
29
|
return (
|
|
30
30
|
<textarea
|
|
31
|
-
|
|
31
|
+
// deno-lint-ignore no-explicit-any
|
|
32
|
+
ref={ref as any}
|
|
32
33
|
className={className}
|
|
33
34
|
value={value}
|
|
34
35
|
onChange={onChange}
|
|
@@ -43,7 +44,8 @@ export const InputBox = React.forwardRef<
|
|
|
43
44
|
|
|
44
45
|
return (
|
|
45
46
|
<input
|
|
46
|
-
|
|
47
|
+
// deno-lint-ignore no-explicit-any
|
|
48
|
+
ref={ref as any}
|
|
47
49
|
type="text"
|
|
48
50
|
className={className}
|
|
49
51
|
value={value}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React from "../../../deps/esm.sh/react@19.1.1.js";
|
|
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 "react-dom/client";
|
|
4
|
-
import type { Root } from "react-dom/client";
|
|
3
|
+
import ReactDOM from "../../../deps/esm.sh/react-dom@19.1.1/client.js";
|
|
4
|
+
import type { Root } from "../../../deps/esm.sh/react-dom@19.1.1/client.js";
|
|
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 "react";
|
|
3
|
-
import type { DependencyList, Dispatch, EffectCallback, SetStateAction } from "react";
|
|
2
|
+
import * as React from "../../../deps/esm.sh/react@19.1.1.js";
|
|
3
|
+
import type { DependencyList, Dispatch, EffectCallback, SetStateAction } from "../../../deps/esm.sh/react@19.1.1.js";
|
|
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 "react";
|
|
9
|
+
import type * as BundledReact from "../../deps/esm.sh/react@19.1.1.js";
|
|
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";
|
|
@@ -40,6 +40,8 @@ export async function handleComponentPage(
|
|
|
40
40
|
studioEmbed?: boolean;
|
|
41
41
|
/** Content source ID for cache isolation (branch name or release ID) */
|
|
42
42
|
contentSourceId?: string;
|
|
43
|
+
/** React version for transforms (from project config) */
|
|
44
|
+
reactVersion?: string;
|
|
43
45
|
},
|
|
44
46
|
): Promise<ComponentPageResult> {
|
|
45
47
|
try {
|
|
@@ -59,6 +61,7 @@ export async function handleComponentPage(
|
|
|
59
61
|
adapter,
|
|
60
62
|
options?.moduleServerUrl,
|
|
61
63
|
options?.projectId,
|
|
64
|
+
options?.reactVersion,
|
|
62
65
|
)) ??
|
|
63
66
|
undefined;
|
|
64
67
|
|
|
@@ -74,6 +77,7 @@ export async function handleComponentPage(
|
|
|
74
77
|
moduleServerUrl: options?.moduleServerUrl,
|
|
75
78
|
ssr: true,
|
|
76
79
|
contentSourceId: options?.contentSourceId,
|
|
80
|
+
reactVersion: options?.reactVersion,
|
|
77
81
|
},
|
|
78
82
|
);
|
|
79
83
|
|
|
@@ -138,6 +142,7 @@ async function bundleComponentForClient(
|
|
|
138
142
|
adapter: RuntimeAdapter,
|
|
139
143
|
moduleServerUrl?: string,
|
|
140
144
|
projectId?: string,
|
|
145
|
+
reactVersion?: string,
|
|
141
146
|
): Promise<string | null> {
|
|
142
147
|
try {
|
|
143
148
|
const contentHash = await generateContentHash(source);
|
|
@@ -151,6 +156,7 @@ async function bundleComponentForClient(
|
|
|
151
156
|
dev: true,
|
|
152
157
|
jsxImportSource: "react",
|
|
153
158
|
moduleServerUrl,
|
|
159
|
+
reactVersion,
|
|
154
160
|
});
|
|
155
161
|
|
|
156
162
|
componentHydrationCache.set(cacheKey, transformed);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React from "../../../deps/esm.sh/react@19.1.1.js";
|
|
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 "react";
|
|
1
|
+
import * as React from "../../../deps/esm.sh/react@19.1.1.js";
|
|
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 "react";
|
|
1
|
+
import * as React from "../../../deps/esm.sh/react@19.1.1.js";
|
|
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 "react";
|
|
3
|
+
import * as BundledReact from "../../../deps/esm.sh/react@19.1.1.js";
|
|
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";
|
|
@@ -230,7 +230,8 @@ export class LayoutApplicator {
|
|
|
230
230
|
const appSource = await this.adapter.fs.readFile(appPath);
|
|
231
231
|
const isMdx = appPath.endsWith(".mdx") || appPath.endsWith(".md");
|
|
232
232
|
|
|
233
|
-
|
|
233
|
+
// deno-lint-ignore no-explicit-any
|
|
234
|
+
let App: any;
|
|
234
235
|
|
|
235
236
|
if (isMdx) {
|
|
236
237
|
App = await this.loadMdxAppComponent(appSource, appPath);
|
|
@@ -268,10 +269,8 @@ export class LayoutApplicator {
|
|
|
268
269
|
);
|
|
269
270
|
}
|
|
270
271
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
appPath: string,
|
|
274
|
-
): Promise<React.ComponentType<Record<string, unknown>> | null> {
|
|
272
|
+
// deno-lint-ignore no-explicit-any
|
|
273
|
+
private async loadMdxAppComponent(source: string, appPath: string): Promise<any> {
|
|
275
274
|
try {
|
|
276
275
|
const { compile } = await import("@mdx-js/mdx");
|
|
277
276
|
const { getRehypePlugins, getRemarkPlugins } = await import(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { rendererLogger as logger } from "../../../utils/index.js";
|
|
2
|
-
import * as BundledReact from "react";
|
|
2
|
+
import * as BundledReact from "../../../../deps/esm.sh/react@19.1.1.js";
|
|
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 "react";
|
|
2
|
+
import * as BundledReact from "../../../../deps/esm.sh/react@19.1.1.js";
|
|
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 "react";
|
|
1
|
+
import * as React from "../../../deps/esm.sh/react@19.1.1.js";
|
|
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";
|