@_tc/template-core 0.4.0 → 0.4.1
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/.skills/tc-component-usage-skills/reference/component-api.md +27 -0
- package/.skills/tc-generator/SKILL.md +1 -1
- package/.skills/tc-generator/reference/project-template/ssr/apps/hello/hello.entry.tsx +6 -1
- package/.skills/tc-generator/reference/runtime-extensions.md +10 -0
- package/AGENT_README.md +8 -2
- package/CHANGE.md +27 -0
- package/README.md +157 -8
- package/cjs/app/ai/agent/agent-scanner.service.js +1 -1
- package/cjs/app/ai/agent/agent.module.js +1 -1
- package/cjs/app/ai/ai-config.module.js +1 -1
- package/cjs/app/ai/ai-config.service.js +1 -1
- package/cjs/app/ai/ai.controller.js +1 -1
- package/cjs/app/ai/ai.module.js +1 -1
- package/cjs/app/ai/guardrail/guardrail.module.js +1 -1
- package/cjs/app/ai/guardrail/guardrail.service.js +1 -1
- package/cjs/app/ai/index.js +1 -0
- package/cjs/app/ai/mcp/internal/read-sse-response.js +2 -0
- package/cjs/app/ai/mcp/internal/stdio-process.js +1 -0
- package/cjs/app/ai/mcp/mcp-registry.service.js +2 -2
- package/cjs/app/ai/mcp/mcp.client.js +2 -3
- package/cjs/app/ai/mcp/mcp.loader.js +1 -1
- package/cjs/app/ai/mcp/mcp.module.js +1 -1
- package/cjs/app/ai/memory/checkpoint.service.js +1 -1
- package/cjs/app/ai/memory/memory.module.js +1 -1
- package/cjs/app/ai/memory/thread.service.js +1 -1
- package/cjs/app/ai/models/chat-sse.js +4 -0
- package/cjs/app/ai/models/chat.js +1 -0
- package/cjs/app/ai/models/http.js +1 -0
- package/cjs/app/ai/models/image.js +1 -0
- package/cjs/app/ai/models/video.js +1 -0
- package/cjs/app/ai/nest-service-provider.js +1 -0
- package/cjs/app/ai/rag/rag.module.js +1 -1
- package/cjs/app/ai/rag/retriever.service.js +1 -1
- package/cjs/app/ai/retention/conversation-retention.service.js +1 -1
- package/cjs/app/ai/runtime/ai-runtime-startup.validator.js +1 -1
- package/cjs/app/ai/runtime/ai-runtime.js +1 -0
- package/cjs/app/ai/runtime/internal/context-compaction.service.js +3 -3
- package/cjs/app/ai/runtime/internal/declaration-snapshot.js +1 -0
- package/cjs/app/ai/runtime/internal/owned-runtime-resources.js +1 -0
- package/cjs/app/ai/runtime/langchain/langchain-planner.service.js +1 -1
- package/cjs/app/ai/runtime/langgraph/langgraph-orchestrator.service.js +1 -1
- package/cjs/app/ai/runtime/runtime.module.js +1 -1
- package/cjs/app/ai/skill/skill-scanner.service.js +1 -1
- package/cjs/app/ai/skill/skill.module.js +1 -1
- package/cjs/app/ai/snapshot-data.js +1 -0
- package/cjs/app/ai/store/internal/create-vector-store.js +1 -0
- package/cjs/app/ai/store/store.module.js +1 -1
- package/cjs/app/ai/tool/builtin/index.js +1 -1
- package/cjs/app/ai/tool/builtin/invoke-agent.tool.js +1 -1
- package/cjs/app/ai/tool/builtin/retrieve.tool.js +1 -1
- package/cjs/app/ai/tool/executor.service.js +1 -1
- package/cjs/app/ai/tool/tool-registry.service.js +1 -1
- package/cjs/app/ai/tool/tool.module.js +1 -1
- package/cjs/app/ai/trace/trace.service.js +1 -1
- package/cjs/app/csr/controller.js +1 -1
- package/cjs/app/csr/types.js +0 -0
- package/cjs/app/html/browser-options.js +1 -1
- package/cjs/app/html/shell.js +31 -16
- package/cjs/app/http/api-signing.js +1 -0
- package/cjs/app/http/body-parser.middleware.js +1 -1
- package/cjs/app/http/csp-nonce.js +1 -0
- package/cjs/app/http/error-response.js +1 -1
- package/cjs/app/http/exception-filter.js +1 -1
- package/cjs/app/http/request-body-parser-policy.js +1 -0
- package/cjs/app/http/security.guard.js +1 -1
- package/cjs/app/project/controller.js +1 -1
- package/cjs/app/project/service.js +1 -1
- package/cjs/app/providers/foundation.js +1 -1
- package/cjs/app/ssr/artifacts.js +1 -1
- package/cjs/app/ssr/controller.js +1 -1
- package/cjs/app/ssr/html.js +17 -17
- package/cjs/app/ssr/stream.js +1 -1
- package/cjs/app/static-assets.middleware.js +1 -1
- package/cjs/app/template-core.module.js +1 -1
- package/cjs/app/view/entry.tpl +2 -2
- package/cjs/bundler/buildSSR.js +1 -1
- package/cjs/bundler/entryCollect.js +1 -1
- package/cjs/bundler/feSharedConfig.js +1 -1
- package/cjs/bundler/utils.js +3 -3
- package/cjs/config/config.default.js +1 -1
- package/cjs/packages/common/index.js +1 -1
- package/cjs/packages/core/bootstrap.js +1 -1
- package/cjs/packages/core/startup.js +1 -1
- package/esm/app/ai/agent/agent-scanner.service.js +33 -36
- package/esm/app/ai/agent/agent.module.js +9 -7
- package/esm/app/ai/ai-config.module.js +14 -7
- package/esm/app/ai/ai-config.service.js +24 -20
- package/esm/app/ai/ai.controller.js +41 -41
- package/esm/app/ai/ai.module.js +15 -15
- package/esm/app/ai/guardrail/guardrail.module.js +11 -9
- package/esm/app/ai/guardrail/guardrail.service.js +5 -10
- package/esm/app/ai/index.js +2 -0
- package/esm/app/ai/mcp/internal/read-sse-response.js +35 -0
- package/esm/app/ai/mcp/internal/stdio-process.js +59 -0
- package/esm/app/ai/mcp/mcp-registry.service.js +10 -15
- package/esm/app/ai/mcp/mcp.client.js +77 -78
- package/esm/app/ai/mcp/mcp.loader.js +64 -42
- package/esm/app/ai/mcp/mcp.module.js +62 -22
- package/esm/app/ai/memory/checkpoint.service.js +18 -28
- package/esm/app/ai/memory/memory.module.js +15 -12
- package/esm/app/ai/memory/thread.service.js +21 -26
- package/esm/app/ai/models/chat-sse.js +44 -0
- package/esm/app/ai/models/chat.js +60 -0
- package/esm/app/ai/models/http.js +52 -0
- package/esm/app/ai/models/image.js +37 -0
- package/esm/app/ai/models/video.js +32 -0
- package/esm/app/ai/nest-service-provider.js +10 -0
- package/esm/app/ai/rag/rag.module.js +24 -15
- package/esm/app/ai/rag/retriever.service.js +37 -54
- package/esm/app/ai/retention/conversation-retention.service.js +16 -34
- package/esm/app/ai/runtime/ai-runtime-startup.validator.js +2 -19
- package/esm/app/ai/runtime/ai-runtime.js +104 -0
- package/esm/app/ai/runtime/internal/context-compaction.service.js +139 -145
- package/esm/app/ai/runtime/internal/declaration-snapshot.js +32 -0
- package/esm/app/ai/runtime/internal/owned-runtime-resources.js +21 -0
- package/esm/app/ai/runtime/langchain/langchain-planner.service.js +43 -49
- package/esm/app/ai/runtime/langgraph/langgraph-orchestrator.service.js +273 -225
- package/esm/app/ai/runtime/runtime.module.js +56 -35
- package/esm/app/ai/skill/skill-scanner.service.js +11 -16
- package/esm/app/ai/skill/skill.module.js +11 -9
- package/esm/app/ai/snapshot-data.js +24 -0
- package/esm/app/ai/store/internal/create-vector-store.js +10 -0
- package/esm/app/ai/store/store.module.js +9 -13
- package/esm/app/ai/tool/builtin/index.js +16 -4
- package/esm/app/ai/tool/builtin/invoke-agent.tool.js +30 -34
- package/esm/app/ai/tool/builtin/retrieve.tool.js +9 -13
- package/esm/app/ai/tool/executor.service.js +22 -29
- package/esm/app/ai/tool/tool-registry.service.js +6 -16
- package/esm/app/ai/tool/tool.module.js +26 -12
- package/esm/app/ai/trace/trace.service.js +15 -28
- package/esm/app/csr/controller.js +114 -63
- package/esm/app/csr/types.js +0 -0
- package/esm/app/html/browser-options.js +2 -2
- package/esm/app/html/shell.js +173 -32
- package/esm/app/http/api-signing.js +13 -0
- package/esm/app/http/body-parser.middleware.js +47 -27
- package/esm/app/http/csp-nonce.js +13 -0
- package/esm/app/http/error-response.js +8 -5
- package/esm/app/http/exception-filter.js +4 -4
- package/esm/app/http/request-body-parser-policy.js +46 -0
- package/esm/app/http/security.guard.js +23 -21
- package/esm/app/project/controller.js +15 -15
- package/esm/app/project/service.js +3 -3
- package/esm/app/providers/foundation.js +5 -5
- package/esm/app/ssr/artifacts.js +25 -21
- package/esm/app/ssr/controller.js +148 -75
- package/esm/app/ssr/html.js +49 -44
- package/esm/app/ssr/stream.js +25 -24
- package/esm/app/static-assets.middleware.js +4 -4
- package/esm/app/template-core.module.js +57 -52
- package/esm/app/view/entry.tpl +2 -2
- package/esm/bundler/buildSSR.js +1 -1
- package/esm/bundler/entryCollect.js +9 -9
- package/esm/bundler/feSharedConfig.js +42 -42
- package/esm/bundler/utils.js +78 -90
- package/esm/config/config.default.js +4 -3
- package/esm/packages/common/index.js +6 -6
- package/esm/packages/core/bootstrap.js +5 -5
- package/esm/packages/core/startup.js +69 -46
- package/fe/frontend/src/common/request.js +5 -2
- package/fe/frontend/src/hooks/useRouterParams.d.ts +4 -2
- package/fe/packages/common/ssr/hydration.d.ts +9 -0
- package/fe/packages/react/core/Label/Label.d.ts +1 -0
- package/fe/packages/react/core/Label/Label.js +3 -1
- package/fe/packages/react/core/internal/i18n/default.d.ts +13 -0
- package/fe/packages/react/core/internal/i18n/default.js +16 -1
- package/fe/packages/react/core/internal/i18n/en-US.d.ts +13 -0
- package/fe/packages/react/core/internal/i18n/en-US.js +16 -1
- package/fe/packages/react/forms/DataTable/index.d.ts +2 -0
- package/fe/packages/react/forms/DataTable/index.js +43 -29
- package/fe/packages/react/forms/Form/FormItem.js +39 -12
- package/fe/packages/react/forms/MultiSelect/MultiSelect.d.ts +26 -0
- package/fe/packages/react/forms/MultiSelect/MultiSelect.js +218 -0
- package/fe/packages/react/forms/MultiSelect/index.d.ts +1 -0
- package/fe/packages/react/forms/MultiSelect/index.js +2 -0
- package/fe/packages/react/forms/Pagination/Pagination.d.ts +6 -1
- package/fe/packages/react/forms/Pagination/Pagination.js +13 -4
- package/fe/packages/react/forms/Select/Select.d.ts +11 -0
- package/fe/packages/react/forms/Select/Select.js +20 -7
- package/fe/packages/react/forms/index.d.ts +1 -0
- package/fe/packages/react/forms/index.js +3 -1
- package/fe/packages/react/i18n/getUiReactLocale.d.ts +26 -0
- package/fe/packages/react/index.js +2 -1
- package/fe/packages/react/overlays/Drawer/Drawer.d.ts +3 -2
- package/fe/packages/react/overlays/Drawer/Drawer.js +16 -2
- package/fe/packages/react/overlays/Dropdown/Dropdown.d.ts +12 -2
- package/fe/packages/react/overlays/Dropdown/Dropdown.js +27 -14
- package/fe/packages/react/overlays/Modal/Modal.d.ts +11 -3
- package/fe/packages/react/overlays/Modal/Modal.js +26 -2
- package/fe/packages/react/overlays/Modal/ModalManager.d.ts +13 -12
- package/fe/packages/react/overlays/Modal/ModalManager.js +15 -5
- package/fe/packages/react/overlays/Modal/index.d.ts +1 -0
- package/fe/packages/react/overlays/Overlay/Overlay.d.ts +6 -2
- package/fe/packages/react/overlays/Overlay/Overlay.js +31 -14
- package/fe/packages/react/overlays/Overlay/focusTypes.d.ts +8 -0
- package/fe/packages/react/overlays/Overlay/focusTypes.js +0 -0
- package/fe/packages/react/overlays/Overlay/index.d.ts +1 -0
- package/fe/packages/react/overlays/Overlay/overlayStack.d.ts +16 -0
- package/fe/packages/react/overlays/Overlay/overlayStack.js +290 -0
- package/fe/packages/react/overlays/Popup/Popup.d.ts +5 -4
- package/fe/packages/react/overlays/Popup/Popup.js +28 -11
- package/fe/packages/react/ui/components/index.js +2 -1
- package/fe/packages/react/ui/index.js +2 -1
- package/fe/ssr/components/StreamingRender/StreamingCache.d.ts +1 -0
- package/fe/ssr/components/StreamingRender/StreamingCache.js +5 -1
- package/fe/ssr/components/StreamingRender/StreamingRender.js +1 -1
- package/fe/ssr/components/StreamingRender/StreamingScript.d.ts +1 -0
- package/fe/ssr/components/StreamingRender/StreamingScript.js +9 -1
- package/fe/ssr/createSSREntry.d.ts +9 -3
- package/fe/ssr/createSSREntry.js +43 -19
- package/fe/ssr/index.d.ts +4 -1
- package/fe/ssr/index.js +2 -1
- package/fe/ssr/router.d.ts +76 -0
- package/fe/ssr/router.js +349 -0
- package/fe/ssr/types.d.ts +1 -1
- package/models/packages/common/ssr/hydration.d.ts +9 -0
- package/models/packages/react/core/Label/Label.d.ts +1 -0
- package/models/packages/react/core/internal/i18n/default.d.ts +13 -0
- package/models/packages/react/core/internal/i18n/en-US.d.ts +13 -0
- package/models/packages/react/forms/DataTable/index.d.ts +2 -0
- package/models/packages/react/forms/MultiSelect/MultiSelect.d.ts +26 -0
- package/models/packages/react/forms/MultiSelect/index.d.ts +1 -0
- package/models/packages/react/forms/Pagination/Pagination.d.ts +6 -1
- package/models/packages/react/forms/Select/Select.d.ts +11 -0
- package/models/packages/react/forms/index.d.ts +1 -0
- package/models/packages/react/i18n/getUiReactLocale.d.ts +26 -0
- package/models/packages/react/overlays/Drawer/Drawer.d.ts +3 -2
- package/models/packages/react/overlays/Dropdown/Dropdown.d.ts +12 -2
- package/models/packages/react/overlays/Modal/Modal.d.ts +11 -3
- package/models/packages/react/overlays/Modal/ModalManager.d.ts +13 -12
- package/models/packages/react/overlays/Modal/index.d.ts +1 -0
- package/models/packages/react/overlays/Overlay/Overlay.d.ts +6 -2
- package/models/packages/react/overlays/Overlay/focusTypes.d.ts +8 -0
- package/models/packages/react/overlays/Overlay/index.d.ts +1 -0
- package/models/packages/react/overlays/Overlay/overlayStack.d.ts +16 -0
- package/models/packages/react/overlays/Popup/Popup.d.ts +5 -4
- package/package.json +26 -1
- package/types/app/ai/agent/agent-scanner.service.d.ts +4 -4
- package/types/app/ai/ai-config.service.d.ts +7 -3
- package/types/app/ai/guardrail/guardrail.service.d.ts +2 -2
- package/types/app/ai/index.d.ts +9 -0
- package/types/app/ai/mcp/internal/load-mcp-config.d.ts +2 -2
- package/types/app/ai/mcp/internal/read-sse-response.d.ts +2 -0
- package/types/app/ai/mcp/internal/stdio-process.d.ts +5 -0
- package/types/app/ai/mcp/mcp-registry.service.d.ts +5 -3
- package/types/app/ai/mcp/mcp.client.d.ts +7 -4
- package/types/app/ai/mcp/mcp.loader.d.ts +11 -11
- package/types/app/ai/mcp/mcp.module.d.ts +5 -5
- package/types/app/ai/memory/thread.service.d.ts +3 -3
- package/types/app/ai/models/chat-sse.d.ts +5 -0
- package/types/app/ai/models/chat.d.ts +22 -0
- package/types/app/ai/models/http.d.ts +20 -0
- package/types/app/ai/models/image.d.ts +69 -0
- package/types/app/ai/models/video.d.ts +99 -0
- package/types/app/ai/nest-service-provider.d.ts +6 -0
- package/types/app/ai/retention/conversation-retention.service.d.ts +3 -4
- package/types/app/ai/runtime/ai-runtime-startup.validator.d.ts +2 -3
- package/types/app/ai/runtime/ai-runtime.d.ts +46 -0
- package/types/app/ai/runtime/internal/agent-run-context.d.ts +4 -0
- package/types/app/ai/runtime/internal/context-compaction.service.d.ts +2 -2
- package/types/app/ai/runtime/internal/declaration-snapshot.d.ts +8 -0
- package/types/app/ai/runtime/internal/owned-runtime-resources.d.ts +5 -0
- package/types/app/ai/runtime/langchain/langchain-planner.service.d.ts +1 -1
- package/types/app/ai/runtime/langgraph/langgraph-orchestrator.service.d.ts +33 -16
- package/types/app/ai/skill/skill-scanner.service.d.ts +3 -4
- package/types/app/ai/snapshot-data.d.ts +1 -0
- package/types/app/ai/store/internal/create-vector-store.d.ts +4 -0
- package/types/app/ai/tool/builtin/index.d.ts +1 -1
- package/types/app/ai/tool/builtin/invoke-agent.tool.d.ts +10 -3
- package/types/app/ai/tool/builtin/retrieve.tool.d.ts +4 -3
- package/types/app/ai/tool/executor.service.d.ts +3 -3
- package/types/app/ai/tool/tool-registry.service.d.ts +2 -7
- package/types/app/ai/tool/tool.interface.d.ts +1 -1
- package/types/app/ai/tool/tool.module.d.ts +8 -1
- package/types/app/ai/trace/trace.service.d.ts +4 -5
- package/types/app/csr/types.d.ts +10 -0
- package/types/app/html/browser-options.d.ts +1 -1
- package/types/app/html/shell.d.ts +37 -10
- package/types/app/http/api-signing.d.ts +16 -0
- package/types/app/http/body-parser.middleware.d.ts +6 -2
- package/types/app/http/csp-nonce.d.ts +3 -0
- package/types/app/http/error-response.d.ts +1 -0
- package/types/app/http/request-body-parser-policy.d.ts +8 -0
- package/types/app/http/security.guard.d.ts +1 -0
- package/types/app/ssr/artifacts.d.ts +6 -3
- package/types/app/ssr/html.d.ts +7 -0
- package/types/app/ssr/stream.d.ts +1 -1
- package/types/app/ssr/types.d.ts +56 -0
- package/types/bundler/buildSSR.d.ts +2 -1
- package/types/bundler/index.d.ts +1 -1
- package/types/bundler/state.d.ts +13 -0
- package/types/bundler/utils.d.ts +3 -14
- package/types/config/config.default.d.ts +9 -3
- package/types/index.d.ts +4 -1
- package/types/packages/common/ssr/hydration.d.ts +13 -0
- package/types/packages/core/index.d.ts +1 -1
- package/types/packages/core/startup.d.ts +41 -0
|
@@ -3,76 +3,81 @@ import "../packages/core/index.js";
|
|
|
3
3
|
import { AiModule as t } from "./ai/ai.module.js";
|
|
4
4
|
import { FrontendDevelopment as n } from "./frontend-development.js";
|
|
5
5
|
import { createCSRPageController as r } from "./csr/controller.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import
|
|
22
|
-
import w from "@
|
|
6
|
+
import { REQUEST_BODY_PARSER_POLICIES as i, compileRequestBodyParserPolicies as a } from "./http/request-body-parser-policy.js";
|
|
7
|
+
import { RequestBodyParserMiddleware as o } from "./http/body-parser.middleware.js";
|
|
8
|
+
import { ResponseCompressionMiddleware as s } from "./http/compression.middleware.js";
|
|
9
|
+
import { TemplateCoreSecurityGuard as c } from "./http/security.guard.js";
|
|
10
|
+
import { TemplateCoreExceptionFilter as l } from "./http/exception-filter.js";
|
|
11
|
+
import { TemplateCoreResponseInterceptor as u } from "./http/response.interceptor.js";
|
|
12
|
+
import { TC_PROJECT_SERVICE as d, TemplateCoreProjectService as f } from "./project/service.js";
|
|
13
|
+
import { createProjectController as p } from "./project/controller.js";
|
|
14
|
+
import { createCSRProviders as m } from "./providers/csr.js";
|
|
15
|
+
import { foundationProviderModuleOptions as h } from "./providers/foundation.js";
|
|
16
|
+
import { SSRArtifacts as g } from "./ssr/artifacts.js";
|
|
17
|
+
import { SSRRenderSessionRegistry as _ } from "./ssr/session.js";
|
|
18
|
+
import { createSSRPageController as v } from "./ssr/controller.js";
|
|
19
|
+
import { StaticAssetsMiddleware as y } from "./static-assets.middleware.js";
|
|
20
|
+
import { Global as b, Module as x } from "@nestjs/common";
|
|
21
|
+
import S from "@oxc-project/runtime/helpers/decorate";
|
|
22
|
+
import { APP_FILTER as C, APP_GUARD as w, APP_INTERCEPTOR as T } from "@nestjs/core";
|
|
23
|
+
import E from "@oxc-project/runtime/helpers/decorateMetadata";
|
|
23
24
|
//#region app/template-core.module.ts
|
|
24
|
-
var
|
|
25
|
-
static register(
|
|
26
|
-
let
|
|
25
|
+
var D, O, k = O = class {
|
|
26
|
+
static register(b, x) {
|
|
27
|
+
let S = h(b, m()), E = a(b.options.requestBodyParser);
|
|
27
28
|
return {
|
|
28
|
-
module:
|
|
29
|
+
module: O,
|
|
29
30
|
global: !0,
|
|
30
|
-
imports: [t.register(
|
|
31
|
+
imports: [t.register(b.options.apiPrefix)],
|
|
31
32
|
controllers: [
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
r(
|
|
33
|
+
p(b.options.apiPrefix),
|
|
34
|
+
v(b.options.ssrPageBasePath),
|
|
35
|
+
r(b.options.pageBasePath)
|
|
35
36
|
],
|
|
36
37
|
providers: [
|
|
37
|
-
...
|
|
38
|
-
|
|
38
|
+
...S.providers,
|
|
39
|
+
y,
|
|
39
40
|
{
|
|
40
41
|
provide: n,
|
|
41
|
-
useFactory: (e) => new n(e,
|
|
42
|
+
useFactory: (e) => new n(e, x),
|
|
42
43
|
inject: [e]
|
|
43
44
|
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
a,
|
|
47
|
-
i,
|
|
45
|
+
g,
|
|
46
|
+
_,
|
|
48
47
|
s,
|
|
48
|
+
{
|
|
49
|
+
provide: i,
|
|
50
|
+
useValue: E
|
|
51
|
+
},
|
|
49
52
|
o,
|
|
53
|
+
l,
|
|
54
|
+
c,
|
|
50
55
|
{
|
|
51
|
-
provide:
|
|
52
|
-
useFactory: (e) => new
|
|
56
|
+
provide: f,
|
|
57
|
+
useFactory: (e) => new f(e),
|
|
53
58
|
inject: [e]
|
|
54
59
|
},
|
|
55
60
|
{
|
|
56
|
-
provide:
|
|
57
|
-
useExisting:
|
|
61
|
+
provide: d,
|
|
62
|
+
useExisting: f
|
|
58
63
|
},
|
|
59
64
|
{
|
|
60
|
-
provide:
|
|
61
|
-
useClass:
|
|
65
|
+
provide: T,
|
|
66
|
+
useClass: u
|
|
62
67
|
},
|
|
63
68
|
{
|
|
64
|
-
provide:
|
|
65
|
-
useExisting:
|
|
69
|
+
provide: C,
|
|
70
|
+
useExisting: l
|
|
66
71
|
},
|
|
67
72
|
{
|
|
68
|
-
provide:
|
|
69
|
-
useExisting:
|
|
73
|
+
provide: w,
|
|
74
|
+
useExisting: c
|
|
70
75
|
}
|
|
71
76
|
],
|
|
72
77
|
exports: [
|
|
73
|
-
...
|
|
74
|
-
|
|
75
|
-
|
|
78
|
+
...S.exports,
|
|
79
|
+
d,
|
|
80
|
+
f
|
|
76
81
|
]
|
|
77
82
|
};
|
|
78
83
|
}
|
|
@@ -80,13 +85,13 @@ var T, E, D = E = class {
|
|
|
80
85
|
this.development = e;
|
|
81
86
|
}
|
|
82
87
|
configure(e) {
|
|
83
|
-
e.apply(
|
|
88
|
+
e.apply(s, y, this.development.middleware.bind(this.development), o).forRoutes("/");
|
|
84
89
|
}
|
|
85
90
|
};
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
],
|
|
91
|
+
k = O = S([
|
|
92
|
+
x({}),
|
|
93
|
+
b(),
|
|
94
|
+
E("design:paramtypes", [typeof (D = n !== void 0 && n) == "function" ? D : Object])
|
|
95
|
+
], k);
|
|
91
96
|
//#endregion
|
|
92
|
-
export {
|
|
97
|
+
export { k as TemplateCoreModule };
|
package/esm/app/view/entry.tpl
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
|
-
<html lang="
|
|
2
|
+
<html lang="{{ htmlLang }}" class="{{ htmlThemeClass }}" style="color-scheme: {{ htmlThemeColorScheme }}">
|
|
3
3
|
<head>
|
|
4
4
|
<!-- TC_SHARED_HEAD -->
|
|
5
5
|
<!-- TC_HEAD_SLOT -->
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
<!-- TC_RUNTIME_CONTEXT -->
|
|
9
9
|
|
|
10
|
-
<body>
|
|
10
|
+
<body{{ htmlBodyAttributes | safe }}>
|
|
11
11
|
<!-- TC_BODY_BEFORE_ROOT_SLOT -->
|
|
12
12
|
<div id="root"></div>
|
|
13
13
|
<!-- TC_BODY_AFTER_ROOT_SLOT -->
|
package/esm/bundler/buildSSR.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
1
|
+
import * as e from "glob";
|
|
2
|
+
import t from "path";
|
|
3
3
|
//#region bundler/entryCollect.ts
|
|
4
4
|
var n = [
|
|
5
5
|
"js",
|
|
@@ -9,11 +9,11 @@ var n = [
|
|
|
9
9
|
], r = (e) => e.replace(/\\/g, "/"), i = (e) => {
|
|
10
10
|
let t = r(e).split("/");
|
|
11
11
|
return t.some((e, n) => e === "ssr" && t[n + 1] === "apps");
|
|
12
|
-
}, a = (
|
|
13
|
-
function o(
|
|
14
|
-
return
|
|
15
|
-
let a = r(
|
|
16
|
-
return
|
|
12
|
+
}, a = (e) => t.basename(e).replace(/\.entry\.[^.]+$/, "");
|
|
13
|
+
function o(t, i) {
|
|
14
|
+
return t.flatMap((t) => {
|
|
15
|
+
let a = r(t), o = n.map((e) => `${a}/**/*.${e}`);
|
|
16
|
+
return e.sync(o, { nodir: !0 }).filter((e) => e.includes(".entry.")).filter((e) => !e.includes(".d.ts")).filter(i).sort();
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
function s(e) {
|
|
@@ -25,8 +25,8 @@ function c(e) {
|
|
|
25
25
|
function l(e) {
|
|
26
26
|
return e.reduce((e, t) => (e[a(t)] = t, e), {});
|
|
27
27
|
}
|
|
28
|
-
function u(
|
|
29
|
-
return
|
|
28
|
+
function u(e, n) {
|
|
29
|
+
return t.resolve(n?.baseDir ?? process.cwd(), e);
|
|
30
30
|
}
|
|
31
31
|
function d(e) {
|
|
32
32
|
let t = e?.ssrEntries;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { resolveRunPath as e } from "../ssrSharedData/outputPaths.js";
|
|
2
|
-
import t from "
|
|
3
|
-
import
|
|
2
|
+
import * as t from "glob";
|
|
3
|
+
import n from "path";
|
|
4
4
|
import { existsSync as r } from "fs";
|
|
5
5
|
import i from "@tailwindcss/vite";
|
|
6
6
|
import { createRequire as a } from "module";
|
|
7
7
|
import { fileURLToPath as o } from "url";
|
|
8
8
|
//#region bundler/feSharedConfig.ts
|
|
9
|
-
var s = typeof __filename == "string" ? __filename : o(import.meta.url), c =
|
|
9
|
+
var s = typeof __filename == "string" ? __filename : o(import.meta.url), c = n.dirname(s), l = a(s), u = [
|
|
10
10
|
"",
|
|
11
11
|
".ts",
|
|
12
12
|
".tsx",
|
|
@@ -14,14 +14,14 @@ var s = typeof __filename == "string" ? __filename : o(import.meta.url), c = t.d
|
|
|
14
14
|
".jsx"
|
|
15
15
|
];
|
|
16
16
|
function d() {
|
|
17
|
-
let e =
|
|
17
|
+
let e = n.resolve(c, "../"), i = n.resolve(e, "../"), a = n.resolve(e, "./ssr"), o = n.resolve(i, "./fe/ssr"), s = n.resolve(o, "./apps"), l = t.sync(n.resolve(s, "**/*.entry.*")).length > 0, u = l ? o : a, d = n.resolve(e, "./frontend"), f = n.resolve(i, "./fe/frontend"), p = n.resolve(e, "./packages/react"), m = n.resolve(i, "./fe/packages/react"), h = n.resolve(e, "./packages/react/core/hooks"), g = n.resolve(i, "./fe/packages/react/core/hooks"), _ = n.resolve(e, "./packages/common"), v = n.resolve(i, "./fe/packages/common");
|
|
18
18
|
return {
|
|
19
19
|
currentDir: c,
|
|
20
20
|
frameNodePath: e,
|
|
21
21
|
framePackagePath: i,
|
|
22
22
|
frameFEPath: r(f) ? f : d,
|
|
23
23
|
frameSSRPath: u,
|
|
24
|
-
frameSSRAppsPath:
|
|
24
|
+
frameSSRAppsPath: n.resolve(u, "./apps"),
|
|
25
25
|
frameReactUIPath: r(m) ? m : p,
|
|
26
26
|
frameReactHooksPath: r(g) ? g : h,
|
|
27
27
|
frameCommonPath: r(v) ? v : _,
|
|
@@ -29,7 +29,7 @@ function d() {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
function f(e) {
|
|
32
|
-
return
|
|
32
|
+
return n.dirname(l.resolve(`${e}/package.json`));
|
|
33
33
|
}
|
|
34
34
|
function p() {
|
|
35
35
|
return {
|
|
@@ -37,8 +37,8 @@ function p() {
|
|
|
37
37
|
"react-dom": f("react-dom")
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
function m(e,
|
|
41
|
-
return e.reduce((e, [i, a, o, s = "./defaultAlias"]) => (e[i] = u.map((e) =>
|
|
40
|
+
function m(e, t) {
|
|
41
|
+
return e.reduce((e, [i, a, o, s = "./defaultAlias"]) => (e[i] = u.map((e) => n.resolve(o, a + e)).find((e) => r(e)) ?? n.resolve(t.currentDir, s), e), {});
|
|
42
42
|
}
|
|
43
43
|
function h(e, t) {
|
|
44
44
|
return m([
|
|
@@ -76,54 +76,54 @@ function h(e, t) {
|
|
|
76
76
|
], t);
|
|
77
77
|
}
|
|
78
78
|
function g(e) {
|
|
79
|
-
let { runFEPath:
|
|
79
|
+
let { runFEPath: t, paths: r, includeSourceOnlyAliases: i = !1 } = e;
|
|
80
80
|
return {
|
|
81
81
|
...p(),
|
|
82
82
|
...i ? {
|
|
83
83
|
"@fe": r.frameFEPath,
|
|
84
|
-
"@":
|
|
84
|
+
"@": n.resolve(r.frameFEPath, "./src"),
|
|
85
85
|
"@ssr": r.frameSSRPath,
|
|
86
|
-
"@model":
|
|
87
|
-
typings:
|
|
86
|
+
"@model": n.resolve(r.frameNodePath, "./models/types"),
|
|
87
|
+
typings: n.resolve(r.frameNodePath, "./typings")
|
|
88
88
|
} : {},
|
|
89
89
|
"@tc/common": r.frameCommonPath,
|
|
90
|
-
"@tc/ui-react/core":
|
|
91
|
-
"@tc/ui-react/overlays":
|
|
92
|
-
"@tc/ui-react/forms":
|
|
93
|
-
"@tc/ui-react/i18n":
|
|
94
|
-
"@tc/ui-react/components":
|
|
90
|
+
"@tc/ui-react/core": n.resolve(r.frameReactUIPath, "./core"),
|
|
91
|
+
"@tc/ui-react/overlays": n.resolve(r.frameReactUIPath, "./overlays"),
|
|
92
|
+
"@tc/ui-react/forms": n.resolve(r.frameReactUIPath, "./forms"),
|
|
93
|
+
"@tc/ui-react/i18n": n.resolve(r.frameReactUIPath, "./i18n"),
|
|
94
|
+
"@tc/ui-react/components": n.resolve(r.frameReactUIPath, "./ui/components"),
|
|
95
95
|
"@tc/ui-react/hooks": r.frameReactHooksPath,
|
|
96
|
-
"@tc/ui-react/lib":
|
|
97
|
-
"@tc/ui-react/stores":
|
|
98
|
-
"@tc/ui-react/types":
|
|
99
|
-
"@tc/ui-react/ui":
|
|
100
|
-
"@tc/ui-react/styles.css":
|
|
101
|
-
"@tc/ui-react/index.css":
|
|
102
|
-
"@tc/ui-react/index":
|
|
103
|
-
"@tc/ui-react":
|
|
104
|
-
"@tc/schema-page-call-com/builtIn":
|
|
105
|
-
...h(
|
|
96
|
+
"@tc/ui-react/lib": n.resolve(r.frameReactUIPath, "./core/lib"),
|
|
97
|
+
"@tc/ui-react/stores": n.resolve(r.frameReactUIPath, "./core/stores"),
|
|
98
|
+
"@tc/ui-react/types": n.resolve(r.frameReactUIPath, "./core/types"),
|
|
99
|
+
"@tc/ui-react/ui": n.resolve(r.frameReactUIPath, "./ui"),
|
|
100
|
+
"@tc/ui-react/styles.css": n.resolve(r.frameReactUIPath, "./styles.css"),
|
|
101
|
+
"@tc/ui-react/index.css": n.resolve(r.frameReactUIPath, "./styles.css"),
|
|
102
|
+
"@tc/ui-react/index": n.resolve(r.frameReactUIPath, "./index"),
|
|
103
|
+
"@tc/ui-react": n.resolve(r.frameReactUIPath, "./index"),
|
|
104
|
+
"@tc/schema-page-call-com/builtIn": n.resolve(r.frameFEPath, "./src/defaultPages/SchemaPage/components/CallCom/builtIn"),
|
|
105
|
+
...h(t, r)
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
|
-
function _(
|
|
108
|
+
function _(t, r) {
|
|
109
109
|
let i = e(r);
|
|
110
110
|
return {
|
|
111
111
|
...g({
|
|
112
|
-
runFEPath:
|
|
113
|
-
paths:
|
|
112
|
+
runFEPath: n.resolve(i, "./frontend"),
|
|
113
|
+
paths: t
|
|
114
114
|
}),
|
|
115
|
-
"@fe":
|
|
116
|
-
"@":
|
|
117
|
-
"@ssr":
|
|
118
|
-
"@store":
|
|
119
|
-
"@model":
|
|
120
|
-
typings:
|
|
115
|
+
"@fe": t.frameFEPath,
|
|
116
|
+
"@": n.resolve(t.frameFEPath, "./src"),
|
|
117
|
+
"@ssr": t.frameSSRPath,
|
|
118
|
+
"@store": n.resolve(t.frameFEPath, "./src/stores"),
|
|
119
|
+
"@model": n.resolve(t.frameNodePath, "./models/types"),
|
|
120
|
+
typings: n.resolve(t.frameNodePath, "./typings")
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
|
-
function v(
|
|
123
|
+
function v(t, r) {
|
|
124
124
|
return g({
|
|
125
|
-
runFEPath:
|
|
126
|
-
paths:
|
|
125
|
+
runFEPath: n.resolve(e(r), "./frontend"),
|
|
126
|
+
paths: t,
|
|
127
127
|
includeSourceOnlyAliases: !0
|
|
128
128
|
});
|
|
129
129
|
}
|
|
@@ -135,8 +135,8 @@ var y = [
|
|
|
135
135
|
"react/jsx-runtime",
|
|
136
136
|
"react/jsx-dev-runtime"
|
|
137
137
|
];
|
|
138
|
-
function b(e,
|
|
139
|
-
let r =
|
|
138
|
+
function b(e, t) {
|
|
139
|
+
let r = n.basename(e.framePackagePath), i = n.basename(n.dirname(e.framePackagePath)), a = i.startsWith("@") ? `${i}/${r}` : r;
|
|
140
140
|
return [...new Set([
|
|
141
141
|
a,
|
|
142
142
|
`${a}/fe`,
|
|
@@ -145,7 +145,7 @@ function b(e, n) {
|
|
|
145
145
|
"tailwind-merge",
|
|
146
146
|
"@babel/runtime",
|
|
147
147
|
"async-validator",
|
|
148
|
-
...
|
|
148
|
+
...t ?? []
|
|
149
149
|
])];
|
|
150
150
|
}
|
|
151
151
|
function x() {
|