@wildo-ai/saas-frontend-lib 1.1.15 → 1.1.16
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/dist/esm/components/flows-actors/approval.labels.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/approval.labels.js +3 -0
- package/dist/esm/components/flows-actors/approval.labels.js.map +1 -1
- package/dist/esm/components/flows-actors/task-detail.d.ts +12 -1
- package/dist/esm/components/flows-actors/task-detail.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/task-detail.js +2 -2
- package/dist/esm/components/flows-actors/task-detail.js.map +1 -1
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.d.ts +79 -0
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.d.ts.map +1 -0
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.js +271 -0
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.js.map +1 -0
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.labels.d.ts +3 -0
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.labels.d.ts.map +1 -0
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.labels.js +66 -0
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.labels.js.map +1 -0
- package/dist/esm/components/settings/SettingsHub.d.ts.map +1 -1
- package/dist/esm/components/settings/SettingsHub.js +6 -0
- package/dist/esm/components/settings/SettingsHub.js.map +1 -1
- package/dist/esm/components/views/composite-view/CompositeView.d.ts +6 -0
- package/dist/esm/components/views/composite-view/CompositeView.d.ts.map +1 -1
- package/dist/esm/components/views/composite-view/CompositeView.js +12 -2
- package/dist/esm/components/views/composite-view/CompositeView.js.map +1 -1
- package/dist/esm/components/views/flows-actors-view/ConversationLinkPage.d.ts +57 -0
- package/dist/esm/components/views/flows-actors-view/ConversationLinkPage.d.ts.map +1 -0
- package/dist/esm/components/views/flows-actors-view/ConversationLinkPage.js +136 -0
- package/dist/esm/components/views/flows-actors-view/ConversationLinkPage.js.map +1 -0
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts +20 -0
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts.map +1 -1
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js +139 -22
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js.map +1 -1
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.labels.d.ts.map +1 -1
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.labels.js +5 -0
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.labels.js.map +1 -1
- package/dist/esm/components/views/flows-actors-view/held-conversation-selection.d.ts +4 -0
- package/dist/esm/components/views/flows-actors-view/held-conversation-selection.d.ts.map +1 -1
- package/dist/esm/components/views/flows-actors-view/held-conversation-selection.js +19 -0
- package/dist/esm/components/views/flows-actors-view/held-conversation-selection.js.map +1 -1
- package/dist/esm/components/views/flows-actors-view/linked-conversation.context.d.ts +26 -0
- package/dist/esm/components/views/flows-actors-view/linked-conversation.context.d.ts.map +1 -0
- package/dist/esm/components/views/flows-actors-view/linked-conversation.context.js +3 -0
- package/dist/esm/components/views/flows-actors-view/linked-conversation.context.js.map +1 -0
- package/dist/esm/core/components-registry/assert-registry-completeness.frontend.helper.d.ts.map +1 -1
- package/dist/esm/core/components-registry/assert-registry-completeness.frontend.helper.js +1 -0
- package/dist/esm/core/components-registry/assert-registry-completeness.frontend.helper.js.map +1 -1
- package/dist/esm/core/config/composite-view.schemas.d.ts +19 -0
- package/dist/esm/core/config/composite-view.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/composite-view.schemas.js.map +1 -1
- package/dist/esm/core/config/engine-settings-destinations.d.ts.map +1 -1
- package/dist/esm/core/config/engine-settings-destinations.js +23 -0
- package/dist/esm/core/config/engine-settings-destinations.js.map +1 -1
- package/dist/esm/core/config/settings-hub-presentation.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/config/settings-hub-presentation.frontend.utils.js +3 -0
- package/dist/esm/core/config/settings-hub-presentation.frontend.utils.js.map +1 -1
- package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts +12 -0
- package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/settings-hub.frontend.schemas.js +12 -0
- package/dist/esm/core/config/settings-hub.frontend.schemas.js.map +1 -1
- package/dist/esm/core/events/events.frontend.schemas.d.ts +16 -0
- package/dist/esm/core/events/events.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts +10 -1
- package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts.map +1 -1
- package/dist/esm/core/flows-actors/FlowsActorsContext.js +12 -3
- package/dist/esm/core/flows-actors/FlowsActorsContext.js.map +1 -1
- package/dist/esm/core/flows-actors/conversation-history.model.d.ts +19 -1
- package/dist/esm/core/flows-actors/conversation-history.model.d.ts.map +1 -1
- package/dist/esm/core/flows-actors/conversation-history.model.js +45 -4
- package/dist/esm/core/flows-actors/conversation-history.model.js.map +1 -1
- package/dist/esm/core/navigation/NavigationContentAreas.d.ts +0 -5
- package/dist/esm/core/navigation/NavigationContentAreas.d.ts.map +1 -1
- package/dist/esm/core/navigation/NavigationContentAreas.js +27 -1
- package/dist/esm/core/navigation/NavigationContentAreas.js.map +1 -1
- package/dist/esm/core/navigation/navigation.schemas.d.ts +20 -0
- package/dist/esm/core/navigation/navigation.schemas.d.ts.map +1 -1
- package/dist/esm/core/navigation/navigation.schemas.js +4 -0
- package/dist/esm/core/navigation/navigation.schemas.js.map +1 -1
- package/dist/esm/core/navigation/useNavigationRouterSync.d.ts.map +1 -1
- package/dist/esm/core/navigation/useNavigationRouterSync.js +5 -1
- package/dist/esm/core/navigation/useNavigationRouterSync.js.map +1 -1
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts +20 -1
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js +25 -0
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js.map +1 -1
- package/dist/esm/core/resources/resources-repository.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/resources/resources-repository.frontend.service.js +2 -0
- package/dist/esm/core/resources/resources-repository.frontend.service.js.map +1 -1
- package/dist/esm/core/runtime/AppRouter.d.ts.map +1 -1
- package/dist/esm/core/runtime/AppRouter.js +2 -1
- package/dist/esm/core/runtime/AppRouter.js.map +1 -1
- package/dist/esm/core/runtime/routes.frontend.definitions.d.ts +6 -0
- package/dist/esm/core/runtime/routes.frontend.definitions.d.ts.map +1 -1
- package/dist/esm/core/runtime/routes.frontend.definitions.js +7 -1
- package/dist/esm/core/runtime/routes.frontend.definitions.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppRouter.d.ts","sourceRoot":"","sources":["../../../../src/core/runtime/AppRouter.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AppRouter.d.ts","sourceRoot":"","sources":["../../../../src/core/runtime/AppRouter.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,MAAM,OAAO,CAAC;AAitB1B,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAmT7B,CAAC"}
|
|
@@ -49,6 +49,7 @@ import { CommonRoutePaths } from './routes.frontend.definitions.js';
|
|
|
49
49
|
import { EnginePageRef } from '../../core/config/launcher-items.frontend.schemas.js';
|
|
50
50
|
import { FullCustomView } from '../../components/views/full-custom-view/FullCustomView.js';
|
|
51
51
|
import { FlowsActorsView } from '../../components/views/flows-actors-view/FlowsActorsView.js';
|
|
52
|
+
import { ConversationLinkPage } from '../../components/views/flows-actors-view/ConversationLinkPage.js';
|
|
52
53
|
import { ExecutionView } from '../../components/views/execution-view/ExecutionView.js';
|
|
53
54
|
import { CompositeView } from '../../components/views/composite-view/CompositeView.js';
|
|
54
55
|
import { FeatureRouteGuard } from '../../core/features/FeatureRouteGuard.js';
|
|
@@ -524,6 +525,6 @@ export const AppRouter = () => {
|
|
|
524
525
|
});
|
|
525
526
|
});
|
|
526
527
|
});
|
|
527
|
-
return (_jsxs(_Fragment, { children: [_jsx(NavigationRequestBridge, {}), _jsxs(Routes, { children: [_jsx(Route, { path: CommonRoutePaths.authCallback, element: _jsx(AuthPage_AuthCallback, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.reAuthenticationCallback, element: _jsx(AuthPage_ReAuthenticationCallback, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.magicLinkVerify, element: _jsx(AuthPage_MagicLinkVerify, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.mfaChallenge, element: _jsx(AuthPage_MfaChallenge, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.enrollmentRequired, element: _jsx(AuthPage_EnrollmentRequired, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.organizationOnboarding, element: _jsx(AuthPage_OrganizationOnboarding, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.oneOffSession, element: _jsx(AuthPage_OneOffSession, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.fileUploadGrant, element: _jsx(FilesPage_UploadGrant, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.authExchange, element: _jsx(AuthPage_AuthExchange, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), Object.entries(PUBLIC_GOVERNED_DOCUMENT_ROUTE_PATHS).map(([documentRef, path]) => (_jsx(Route, { path: path, element: _jsx(PublicGovernedDocumentRoute, { documentRef: documentRef }), errorElement: _jsx(RouterErrorBoundary, {}) }, documentRef))), _jsx(Route, { path: LEGAL_NOTICE_ROUTE_PATH, element: _jsx(PublicLayout_LegalNotice, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.login, element: _jsx(AuthPage_Main, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.register, element: _jsx(AuthPage_Register, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.passwordLost, element: _jsx(AuthPage_PasswordLost, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.oauthConsent, element: _jsx(AuthPage_OAuthConsent, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.chatIdentityLink, element: _jsx(AuthPage_ChatIdentityLink, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.oauthLoggedOut, element: _jsx(AuthPage_OAuthLoggedOut, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.oauthLogoutConfirm, element: _jsx(AuthPage_OAuthLogoutConfirm, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.invitation, element: _jsx(AuthPage_Invitation, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.confirmEmail, element: _jsx(AuthPage_ConfirmEmail, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsxs(Route, { element: _jsx(AppLayout_AuthenticatedRoute, {}), errorElement: _jsx(RouterErrorBoundary, {}), children: [_jsx(Route, { path: CommonRoutePaths.home, element: _jsx(EnginePageRouteWrapper, { pageRef: EnginePageRef.HOME, PageComponent: AppLayout_Home }), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.decisions, element: _jsx(EnginePageRouteWrapper, { pageRef: EnginePageRef.DECISIONS, PageComponent: AppLayout_DecisionInbox }), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.settings, element: _jsx(SettingsRouteWrapper, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.settingsSection, element: _jsx(SettingsRouteWrapper, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.settingsSectionSubTab, element: _jsx(SettingsRouteWrapper, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: "/composite/:viewRef", element: _jsx(CompositeRouteWrapper, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: "/custom/:viewRef", element: _jsx(ViewRouteWrapper, { ViewComponent: FullCustomView, contentType: NavigationContentType.FULL_CUSTOM_VIEW }), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: "/flows-actors/:viewRef", element: _jsx(ViewRouteWrapper, { ViewComponent: FlowsActorsView, contentType: NavigationContentType.FLOWS_ACTORS_VIEW }), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: "/execution/:viewRef", element: _jsx(ExecutionRouteWrapper, { viewProps: { navigationZone: NavigationZone.PRIMARY } }), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: "/chart/:viewRef", element: _jsx(React.Suspense, { fallback: _jsx("div", { style: { padding: '2rem', textAlign: 'center', color: 'var(--muted-foreground, #737373)' }, children: "Loading chart..." }), children: _jsx(ChartRouteWrapper, {}) }), errorElement: _jsx(RouterErrorBoundary, {}) }), resourceRouteElements] }), _jsx(Route, { path: "*", element: _jsx(RouterErrorBoundary, {}) })] })] }));
|
|
528
|
+
return (_jsxs(_Fragment, { children: [_jsx(NavigationRequestBridge, {}), _jsxs(Routes, { children: [_jsx(Route, { path: CommonRoutePaths.authCallback, element: _jsx(AuthPage_AuthCallback, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.reAuthenticationCallback, element: _jsx(AuthPage_ReAuthenticationCallback, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.magicLinkVerify, element: _jsx(AuthPage_MagicLinkVerify, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.mfaChallenge, element: _jsx(AuthPage_MfaChallenge, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.enrollmentRequired, element: _jsx(AuthPage_EnrollmentRequired, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.organizationOnboarding, element: _jsx(AuthPage_OrganizationOnboarding, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.oneOffSession, element: _jsx(AuthPage_OneOffSession, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.fileUploadGrant, element: _jsx(FilesPage_UploadGrant, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.authExchange, element: _jsx(AuthPage_AuthExchange, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), Object.entries(PUBLIC_GOVERNED_DOCUMENT_ROUTE_PATHS).map(([documentRef, path]) => (_jsx(Route, { path: path, element: _jsx(PublicGovernedDocumentRoute, { documentRef: documentRef }), errorElement: _jsx(RouterErrorBoundary, {}) }, documentRef))), _jsx(Route, { path: LEGAL_NOTICE_ROUTE_PATH, element: _jsx(PublicLayout_LegalNotice, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.login, element: _jsx(AuthPage_Main, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.register, element: _jsx(AuthPage_Register, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.passwordLost, element: _jsx(AuthPage_PasswordLost, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.oauthConsent, element: _jsx(AuthPage_OAuthConsent, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.chatIdentityLink, element: _jsx(AuthPage_ChatIdentityLink, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.oauthLoggedOut, element: _jsx(AuthPage_OAuthLoggedOut, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.oauthLogoutConfirm, element: _jsx(AuthPage_OAuthLogoutConfirm, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.invitation, element: _jsx(AuthPage_Invitation, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.confirmEmail, element: _jsx(AuthPage_ConfirmEmail, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsxs(Route, { element: _jsx(AppLayout_AuthenticatedRoute, {}), errorElement: _jsx(RouterErrorBoundary, {}), children: [_jsx(Route, { path: CommonRoutePaths.home, element: _jsx(EnginePageRouteWrapper, { pageRef: EnginePageRef.HOME, PageComponent: AppLayout_Home }), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.decisions, element: _jsx(EnginePageRouteWrapper, { pageRef: EnginePageRef.DECISIONS, PageComponent: AppLayout_DecisionInbox }), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.conversationLink, element: _jsx(ConversationLinkPage, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.settings, element: _jsx(SettingsRouteWrapper, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.settingsSection, element: _jsx(SettingsRouteWrapper, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: CommonRoutePaths.settingsSectionSubTab, element: _jsx(SettingsRouteWrapper, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: "/composite/:viewRef", element: _jsx(CompositeRouteWrapper, {}), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: "/custom/:viewRef", element: _jsx(ViewRouteWrapper, { ViewComponent: FullCustomView, contentType: NavigationContentType.FULL_CUSTOM_VIEW }), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: "/flows-actors/:viewRef", element: _jsx(ViewRouteWrapper, { ViewComponent: FlowsActorsView, contentType: NavigationContentType.FLOWS_ACTORS_VIEW }), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: "/execution/:viewRef", element: _jsx(ExecutionRouteWrapper, { viewProps: { navigationZone: NavigationZone.PRIMARY } }), errorElement: _jsx(RouterErrorBoundary, {}) }), _jsx(Route, { path: "/chart/:viewRef", element: _jsx(React.Suspense, { fallback: _jsx("div", { style: { padding: '2rem', textAlign: 'center', color: 'var(--muted-foreground, #737373)' }, children: "Loading chart..." }), children: _jsx(ChartRouteWrapper, {}) }), errorElement: _jsx(RouterErrorBoundary, {}) }), resourceRouteElements] }), _jsx(Route, { path: "*", element: _jsx(RouterErrorBoundary, {}) })] })] }));
|
|
528
529
|
};
|
|
529
530
|
//# sourceMappingURL=AppRouter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppRouter.js","sourceRoot":"","sources":["../../../../src/core/runtime/AppRouter.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,yCAAyC,EAEzC,oCAAoC,EACpC,uBAAuB,EACvB,sCAAsC,GACvC,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACt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AAC,QAAQ,EAAE,cAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,kCAAkC,EAAE,iCAAwB,YAC/I,KAAC,iBAAiB,KAAG,GACN,EAEnB,YAAY,EAAE,KAAC,mBAAmB,KAAG,GACrC,EAGD,qBAAqB,IAChB,EAGR,KAAC,KAAK,IACJ,IAAI,EAAC,GAAG,EACR,OAAO,EAAE,KAAC,mBAAmB,KAAG,GAChC,IACO,IACR,CACJ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import {\n CoreResourceOperation,\n NavigationZoneName,\n NavigationTransition,\n ResourcesConfigOperationsUrlsBuilderUtils,\n ResourceConfiguration_Operation_UrlParameterInfo,\n PUBLIC_GOVERNED_DOCUMENT_ROUTE_PATHS,\n LEGAL_NOTICE_ROUTE_PATH,\n readPublicGovernedDocumentReleaseQuery,\n} from '@wildo-ai/saas-models';\nimport type { AnyFrontendResourceConfiguration, FrontendResourceConfiguration_Operation } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport React from 'react';\nimport { Route, Routes, useLocation, useParams, useSearchParams } from 'react-router';\nimport { AppLayout_AuthenticatedRoute } from '~wildo-frontend-lib/components/app/AppLayout_AuthenticatedRoute';\nimport { AppLayout_Home } from '~wildo-frontend-lib/components/app/AppLayout_Home';\nimport { AppLayout_DecisionInbox } from '~wildo-frontend-lib/components/app/AppLayout_DecisionInbox';\nimport { ResourceLayout_Action } from '~wildo-frontend-lib/components/resources/ResourceLayout_Action';\nimport { ResourceLayout_Create } from '~wildo-frontend-lib/components/resources/ResourceLayout_Create';\nimport { ResourceLayout_List } from '~wildo-frontend-lib/components/resources/ResourceLayout_List';\nimport { ResourceLayout_Read } from '~wildo-frontend-lib/components/resources/ResourceLayout_Read';\nimport { ResourceLayout_Search } from '~wildo-frontend-lib/components/resources/ResourceLayout_Search';\nimport { ResourceLayout_Update } from '~wildo-frontend-lib/components/resources/ResourceLayout_Update';\n\n\nimport { AuthPage_AuthCallback } from '~wildo-frontend-lib/components/auth/pages/AuthPage_AuthCallback';\nimport { AuthPage_ReAuthenticationCallback } from '~wildo-frontend-lib/components/auth/pages/AuthPage_ReAuthenticationCallback';\nimport { AuthPage_MagicLinkVerify } from '~wildo-frontend-lib/components/auth/pages/AuthPage_MagicLinkVerify';\nimport { AuthPage_MfaChallenge } from '~wildo-frontend-lib/components/auth/pages/AuthPage_MfaChallenge';\nimport { AuthPage_EnrollmentRequired } from '~wildo-frontend-lib/components/auth/pages/AuthPage_EnrollmentRequired';\nimport { AuthPage_OrganizationOnboarding } from '~wildo-frontend-lib/components/auth/pages/AuthPage_OrganizationOnboarding';\nimport { AuthPage_Main } from '~wildo-frontend-lib/components/auth/pages/AuthPage_Main';\nimport { AuthPage_ConfirmEmail } from '~wildo-frontend-lib/components/auth/pages/AuthPage_ConfirmEmail';\nimport { AuthPage_Invitation } from '~wildo-frontend-lib/components/auth/pages/AuthPage_Invitation';\nimport { AuthPage_OneOffSession } from '~wildo-frontend-lib/components/auth/pages/AuthPage_OneOffSession';\nimport { FilesPage_UploadGrant } from '~wildo-frontend-lib/components/files/pages/FilesPage_UploadGrant';\nimport { AuthPage_AuthExchange } from '~wildo-frontend-lib/components/auth/pages/AuthPage_AuthExchange';\nimport { AuthPage_PasswordLost } from '~wildo-frontend-lib/components/auth/pages/AuthPage_PasswordLost';\nimport { AuthPage_OAuthConsent } from '~wildo-frontend-lib/components/auth/pages/AuthPage_OAuthConsent';\nimport { AuthPage_ChatIdentityLink } from '~wildo-frontend-lib/components/auth/pages/AuthPage_ChatIdentityLink';\nimport { AuthPage_OAuthLoggedOut } from '~wildo-frontend-lib/components/auth/pages/AuthPage_OAuthLoggedOut';\nimport { AuthPage_OAuthLogoutConfirm } from '~wildo-frontend-lib/components/auth/pages/AuthPage_OAuthLogoutConfirm';\nimport { AuthPage_Register } from '~wildo-frontend-lib/components/auth/pages/AuthPage_Register';\nimport { PublicLayout_Terms } from '~wildo-frontend-lib/components/app/PublicLayout_Terms';\nimport { PublicLayout_LegalNotice } from '~wildo-frontend-lib/components/app/PublicLayout_LegalNotice';\nimport { RouterErrorBoundary } from '~wildo-frontend-lib/core/errors/RouterErrorBoundary';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\nimport { NavigationContentType, NavigationSource, NavigationZone } from '~wildo-frontend-lib/core/navigation/navigation.schemas';\nimport { clickKeepsRestoredContentInPrimary } from '~wildo-frontend-lib/core/navigation/navigation-controller-internals';\nimport { NavigationRequestBridge } from '~wildo-frontend-lib/core/navigation/NavigationRequestBridge';\nimport { adjacentZoneUsableAtViewport } from '~wildo-frontend-lib/core/navigation/zone-collapse';\nimport { NavigationUtils } from '~wildo-frontend-lib/core/navigation/navigation.utils';\nimport { useTransactionAwareSyncRetry } from '~wildo-frontend-lib/core/navigation/useTransactionAwareSyncRetry';\nimport { useRouterSync, useViewRouterSync, useEnginePageRouterSync } from '~wildo-frontend-lib/core/navigation/useNavigationRouterSync';\nimport { frontendResourceUtils } from '~wildo-frontend-lib/core/resources/frontend-resource.utils';\nimport { resolveResourceOperationLayoutKind } from '~wildo-frontend-lib/core/resources/operation-semantics.frontend.utils';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { type FrontendResourceOperationContext, isOperationAddressable } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport { envLoader } from '~wildo-frontend-lib/core/runtime/env-variable-loader.frontend.service';\nimport { CommonRoutePaths } from './routes.frontend.definitions';\nimport { EnginePageRef } from '~wildo-frontend-lib/core/config/launcher-items.frontend.schemas';\nimport { FullCustomView } from '~wildo-frontend-lib/components/views/full-custom-view/FullCustomView';\nimport { FlowsActorsView } from '~wildo-frontend-lib/components/views/flows-actors-view/FlowsActorsView';\nimport { ExecutionView } from '~wildo-frontend-lib/components/views/execution-view/ExecutionView';\nimport { CompositeView } from '~wildo-frontend-lib/components/views/composite-view/CompositeView';\nimport { FeatureRouteGuard } from '~wildo-frontend-lib/core/features/FeatureRouteGuard';\nimport { useUI } from '~wildo-frontend-lib/core/ui/useUI';\nimport {\n extractCompositeRouteContextResourceIdentifiers,\n isStandaloneRoutableResolvedCompositeView,\n resolveCompositeViewDefinition,\n} from '~wildo-frontend-lib/core/config/composite-view.schemas';\nimport {\n buildResolvedInsertedChartDescriptor,\n extractChartRouteContextResourceIdentifiers,\n extractChartRouteUrlParamValues,\n isStandaloneRoutableInsertedChartView,\n type InsertedChartDeclaration,\n type ResolvedInsertedChartDescriptor,\n resolveInsertedChartView,\n} from '~wildo-frontend-lib/core/config/chart-view.frontend.schemas';\nimport {\n extractExecutionRouteContextResourceIdentifiers,\n isStandaloneRoutableExecutionView,\n resolveExecutionViewDefinition,\n} from '~wildo-frontend-lib/core/config/execution-view.schemas';\nimport {\n FrontendInsertedViewHostKind,\n FrontendInsertedViewKind,\n parseFrontendInsertedViewRef,\n type FrontendInsertedViewIdentity,\n} from '~wildo-frontend-lib/core/config/inserted-view.frontend.schemas';\nimport { useRouterLocationAheadOfCommit } from '~wildo-frontend-lib/core/navigation/useSynchronousBrowserLocation';\nimport type { RequiredFeaturesConfig } from '@wildo-ai/saas-models';\nimport { ViewNotFound } from '~wildo-frontend-lib/components/views/ViewNotFound';\nimport { useEventBus } from '~wildo-frontend-lib/core/events/useEventBus';\nimport { FrontendEvents } from '~wildo-frontend-lib/core/events/events.frontend.schemas';\nimport { useNavigationState } from '~wildo-frontend-lib/core/navigation/useNavigationState';\nimport { useAppScopeSafe } from '~wildo-frontend-lib/core/scope/useAppScope';\nimport { ScopeUtilsService } from '~wildo-frontend-lib/core/scope/scope.utils.frontend.service';\n\n// ChartView is lazy-loaded — apps that don't use charts never load ECharts\nconst ChartView = React.lazy(() => import('~wildo-frontend-lib/components/views/chart-view/ChartView'));\n\ninterface ResolvedChartRouteState {\n routeViewRef: string;\n viewDefinition: InsertedChartDeclaration;\n contextResourceIdentifiers?: Record<string, string>;\n urlParamValues?: Record<string, string>;\n runtimeDescriptor?: ResolvedInsertedChartDescriptor;\n requiredFeatures?: RequiredFeaturesConfig;\n}\n\nfunction resolveInsertedChartRouteState(params: {\n insertedIdentity: FrontendInsertedViewIdentity;\n contextResourceIdentifiers?: Record<string, string>;\n urlParamValues?: Record<string, string>;\n registry: ReturnType<typeof useResourceRegistry>['registry'];\n}): ResolvedChartRouteState | undefined {\n const { insertedIdentity, contextResourceIdentifiers, urlParamValues, registry } = params;\n if (\n insertedIdentity.hostKind !== FrontendInsertedViewHostKind.RESOURCE\n || insertedIdentity.viewKind !== FrontendInsertedViewKind.CHART_VIEW\n ) {\n return undefined;\n }\n\n const chartView = resolveInsertedChartView({\n viewRef: insertedIdentity.insertedViewRef,\n registry,\n })?.chartView;\n if (!chartView || !isStandaloneRoutableInsertedChartView(chartView)) {\n return undefined;\n }\n\n const normalizedContextResourceIdentifiers = contextResourceIdentifiers ?? {};\n\n return {\n routeViewRef: insertedIdentity.insertedViewRef,\n viewDefinition: chartView,\n contextResourceIdentifiers: normalizedContextResourceIdentifiers,\n urlParamValues,\n runtimeDescriptor: buildResolvedInsertedChartDescriptor({\n identity: insertedIdentity,\n chartView,\n contextResourceIdentifiers: normalizedContextResourceIdentifiers,\n }),\n requiredFeatures: chartView.chartDefinition.requiredFeatures,\n };\n}\n\nfunction resolveChartRouteState(params: {\n viewRef: string | undefined;\n registry: ReturnType<typeof useResourceRegistry>['registry'];\n contextResourceIdentifiers?: Record<string, string>;\n urlParamValues?: Record<string, string>;\n}): ResolvedChartRouteState | undefined {\n const { viewRef, registry, contextResourceIdentifiers, urlParamValues } = params;\n if (!viewRef) {\n return undefined;\n }\n\n const insertedIdentity = parseFrontendInsertedViewRef(viewRef);\n if (!insertedIdentity) {\n return undefined;\n }\n\n return resolveInsertedChartRouteState({\n insertedIdentity,\n contextResourceIdentifiers,\n urlParamValues,\n registry,\n });\n}\n\nfunction useChartViewRouterSync(resolvedChartRoute: ResolvedChartRouteState | undefined): void {\n const location = useLocation();\n const routerLocationAhead = useRouterLocationAheadOfCommit(location);\n const { emit } = useEventBus();\n const { getZoneState } = useNavigationState();\n const lastSyncedPath = React.useRef<string | null>(null);\n const currentUrl = `${location.pathname}${location.search}`;\n const {\n retryTick,\n scheduleRetry: scheduleTransactionRetry,\n clearRetry: clearTransactionRetry,\n } = useTransactionAwareSyncRetry(currentUrl);\n\n React.useEffect(() => {\n if (!resolvedChartRoute) {\n return;\n }\n\n if (NavigationUtils.isInTransaction()) {\n scheduleTransactionRetry();\n return;\n }\n\n clearTransactionRetry();\n\n // The router already left the URL this route committed with (a pending location transition); rebuilding\n // from it would restore the page the browser left. See `useRouterLocationAheadOfCommit`.\n if (routerLocationAhead) {\n return;\n }\n\n if (lastSyncedPath.current === currentUrl) {\n return;\n }\n\n // Per-zone, destination-based ownership — the same question `useViewRouterSync` asks. A chart\n // is a non-derivable primary, so a pane beside it is HOSTED and the URL is composed: PRIMARY is\n // asked about the host half only, and the stamp below carries the host half only.\n if (NavigationUtils.zoneOwnsBrowserUrl(NavigationZoneName.PRIMARY, currentUrl, getZoneState)) {\n lastSyncedPath.current = currentUrl;\n return;\n }\n\n emit(FrontendEvents.NAVIGATION_REPLACE, {\n zone: NavigationZoneName.PRIMARY,\n content: {\n contentType: NavigationContentType.CHART_VIEW,\n viewRef: resolvedChartRoute.routeViewRef,\n viewDefinition: resolvedChartRoute.viewDefinition,\n contextResourceIdentifiers: resolvedChartRoute.contextResourceIdentifiers,\n urlParamValues: resolvedChartRoute.urlParamValues,\n runtimeDescriptor: resolvedChartRoute.runtimeDescriptor,\n requiredFeatures: resolvedChartRoute.requiredFeatures,\n },\n urlPath: NavigationUtils.decomposeHostedPaneBrowserUrl(currentUrl).hostUrl,\n stackEntryId: NavigationUtils.generateStackEntryId(),\n initiator: { sourceZone: NavigationZoneName.PRIMARY },\n navigationSource: NavigationSource.URL_SYNC,\n transition: NavigationTransition.REPLACE,\n });\n\n lastSyncedPath.current = currentUrl;\n }, [emit, getZoneState, resolvedChartRoute, currentUrl, routerLocationAhead, retryTick, scheduleTransactionRetry, clearTransactionRetry]);\n}\n\n/**\n * Wrapper component that extracts URL parameters and creates resource context\n * This component bridges React Router params with our resource context system\n */\ninterface ResourcePageWrapperProps {\n resourceType: string;\n operation: FrontendResourceConfiguration_Operation;\n PageComponent: React.ComponentType<{\n resourceContext: FrontendResourceOperationContext;\n navigationZone: NavigationZoneName;\n navigationInitiator?: any;\n }>;\n /** Route path parameters with relationship field info for deterministic URL selection */\n routePathParameters: ResourceConfiguration_Operation_UrlParameterInfo[];\n}\n\n/**\n * Validate URL parameters - checks for unresolved or invalid parameters\n * Returns validation result with error details if invalid\n */\ninterface UrlParameterValidation {\n isValid: boolean;\n errorType?: 'unresolved' | 'missing' | 'invalid';\n invalidParams?: string[];\n message?: string;\n}\n\n/**\n * Core-operation keywords (\"create\", \"list\", \"search\", …) are never valid resource\n * ids. A direct hit like `/todos/create` has no page route — core CREATE is an\n * overlay (non-addressable) and adds no URL segment — so the sibling parameterized\n * route `/todos/:todoId` greedily captures `todoId=\"create\"`. That renders the read\n * surface (a composite) for a phantom resource, which render-loops and freezes the\n * tab (todos CREATE freeze, 2026-06-27). Treating an operation-keyword param value as\n * an invalid URL parameter routes it to the standard not-found surface instead (`RouterErrorBoundary`).\n */\nconst RESERVED_OPERATION_ID_SEGMENTS: ReadonlySet<string> = new Set(\n Object.values(CoreResourceOperation).map((op) => String(op).toLowerCase()),\n);\n\nfunction validateUrlParameters(\n urlParameters: Record<string, string>,\n resourceType: string\n): UrlParameterValidation {\n const invalidParams: string[] = [];\n const missingParams: string[] = [];\n const reservedKeywordParams: string[] = [];\n\n for (const [key, value] of Object.entries(urlParameters)) {\n // Check for unresolved route parameters (still have : prefix in URL)\n if (value && value.startsWith(':')) {\n invalidParams.push(`${key}=${value}`);\n }\n // Check for empty or undefined values\n else if (!value || value.trim() === '') {\n missingParams.push(key);\n }\n // Check for obviously invalid placeholder values\n else if (value === 'undefined' || value === 'null' || value === '[object Object]') {\n invalidParams.push(`${key}=${value}`);\n }\n // A param value that is a core-operation keyword is a mis-navigation, not a\n // resource id (e.g. `/todos/create` → todoId=\"create\"). Render not-found.\n else if (RESERVED_OPERATION_ID_SEGMENTS.has(value.toLowerCase())) {\n reservedKeywordParams.push(`${key}=${value}`);\n }\n }\n\n if (invalidParams.length > 0) {\n return {\n isValid: false,\n errorType: 'unresolved',\n invalidParams,\n message: `Unresolved route parameters for ${resourceType}: ${invalidParams.join(', ')}. The URL contains placeholder values instead of actual IDs.`\n };\n }\n\n if (reservedKeywordParams.length > 0) {\n return {\n isValid: false,\n errorType: 'invalid',\n invalidParams: reservedKeywordParams,\n message: `Route parameter for ${resourceType} is an operation keyword, not a resource id: ${reservedKeywordParams.join(', ')}. This URL does not address a resource.`\n };\n }\n\n if (missingParams.length > 0) {\n return {\n isValid: false,\n errorType: 'missing',\n invalidParams: missingParams,\n message: `Missing required parameters for ${resourceType}: ${missingParams.join(', ')}`\n };\n }\n\n return { isValid: true };\n}\n\n/**\n * Where an invalid URL parameter's diagnostic goes (#3066 review M4): the console, and nowhere a reader sees it. The\n * reader gets the application's own not-found page (`RouterErrorBoundary`, the surface the `*` route renders).\n */\nconst logger = LoggerFrontendService.getLogger();\n\n/**\n * ResourcePageWrapper bridges React Router with the navigation system.\n * It extracts URL parameters, creates resource context, and syncs with NavigationContext.\n *\n * Validates URL parameters: a URL whose parameters are invalid or unresolved renders the application's not-found page,\n * and the reason goes to the console log.\n */\nconst ResourcePageWrapper: React.FC<ResourcePageWrapperProps> = ({\n resourceType,\n operation,\n PageComponent,\n routePathParameters\n}) => {\n const { registry } = useResourceRegistry();\n const appScope = useAppScopeSafe();\n const { navigationLayout, currentBreakpoint } = useUI();\n // The measured content area, for the same collapse question the resolver and the renderer ask.\n const { contentAreaWidth } = useNavigationState();\n\n // Extract URL parameters from React Router\n const urlParameters = useParams<Record<string, string>>() as Record<string, string>;\n\n // Validate URL parameters before allowing router-sync to reconstruct\n // navigation state from them. Invalid/placeholder params should render the\n // error surface without repopulating resource navigation entries underneath.\n const validation = React.useMemo(\n () => validateUrlParameters(urlParameters, resourceType),\n [urlParameters, resourceType]\n );\n\n // Sync URL changes with navigation state\n // Pass routePathParameters so useRouterSync can build parentResourcesRequirements\n useRouterSync(\n validation.isValid ? resourceType : undefined,\n validation.isValid ? operation : undefined,\n routePathParameters\n );\n\n // The diagnostic goes to the console only: a reader is shown the not-found page, not a developer's sentence.\n React.useEffect(() => {\n if (!validation.isValid && validation.message) {\n logger.warn(`[AppRouter] ${validation.message}`, {\n resourceType,\n operation: String(operation.operationIdentifier),\n invalidParams: validation.invalidParams,\n errorType: validation.errorType,\n url: window.location.href,\n });\n }\n }, [validation.isValid, validation.message, validation.errorType, validation.invalidParams, resourceType, operation.operationIdentifier]);\n\n // Build parentResourcesRequirements from route path parameters. Above the not-found return below, with every other\n // hook: a hook after an early return changes the hook count when the same mounted route turns valid or invalid.\n const parentResourcesRequirements = React.useMemo(() =>\n frontendResourceUtils.buildParentResourcesRequirementsFromRouteParams(\n routePathParameters,\n resourceType,\n registry\n ),\n [routePathParameters, resourceType, registry]\n );\n\n // A URL that addresses no resource is a page that does not exist: the application's own not-found surface.\n if (!validation.isValid) {\n return <RouterErrorBoundary />;\n }\n\n // Convert URL parameters to resource identifiers map using the registry\n // Pass routePathParameters for accurate FK field mapping (e.g., assignedToUserId → USERS)\n const urlContextIdentifiers = frontendResourceUtils.extractResourceIdentifiersFromUrlParams(\n urlParameters,\n registry,\n routePathParameters\n );\n\n const targetPrimaryScope = registry.resourceConfigurations?.[resourceType]?.resourcePrimaryScope;\n const contextResourceIdentifiers = ScopeUtilsService.buildResourceOperationContextIdentifiers({\n currentUserId: appScope?.currentUserId,\n currentOrganizationId: appScope?.currentOrganizationId,\n currentApplicationId: appScope?.currentApplicationId,\n currentAnonymousUserId: appScope?.currentAnonymousUserId,\n primaryScope: targetPrimaryScope,\n liveAppScopeContextResourceIdentifiers: appScope?.buildContextResourceIdentifiers?.(),\n explicitContextResourceIdentifiers: urlContextIdentifiers,\n });\n\n // Create the frontend resource operation context with parentResourcesRequirements\n const resourceContext = frontendResourceUtils.createFrontendResourceOperationContextFromOperation({\n resourceType,\n operation,\n contextResourceIdentifiers,\n parentResourcesRequirements,\n });\n\n const resourceRelationshipDepth = NavigationUtils.calculateResourceRelationshipDepth(parentResourcesRequirements);\n /*\n * Same three inputs `useRouterSync` uses, and for the same reason: a routed page and the live\n * navigation stack must not disagree about which zone owns a flat detail. `prefersAdjacentZoneForDetail`\n * was missing here entirely, so this wrapper answered PRIMARY for every depth-0 resource even in a\n * layout that splits its detail out — the routed page's props then contradicted the stack that the\n * URL sync had just built beside it.\n */\n const prefersAdjacentZoneForDetail = resourceRelationshipDepth === 0\n && !!navigationLayout?.zones?.secondary\n && NavigationUtils.layoutSplitsOperationFromPrimary(navigationLayout, operation, currentBreakpoint);\n const depthPreferredNavigationZone = NavigationUtils.resolveResourceTargetZone(resourceRelationshipDepth, {\n hasSecondary: !!navigationLayout?.zones?.secondary,\n hasCompanion: !!navigationLayout?.zones?.companion,\n prefersAdjacentZoneForDetail,\n });\n /*\n * A nested record stays in its depth's pane only when a click from its parent's zone would open it there — the\n * same gate `useRouterSync` applies (#3764), so the page props and the restored stack name one zone.\n */\n const preferredNavigationZone = resourceRelationshipDepth >= 1\n && depthPreferredNavigationZone !== NavigationZoneName.PRIMARY\n && clickKeepsRestoredContentInPrimary({\n content: { contentType: NavigationContentType.RESOURCE_OPERATION, resourceContext },\n paneZone: depthPreferredNavigationZone,\n layout: navigationLayout,\n registry,\n viewport: currentBreakpoint,\n contentAreaWidth,\n })\n ? NavigationZoneName.PRIMARY\n : depthPreferredNavigationZone;\n /*\n * ─── The VIEWPORT decides here too, for the reason the comment below already gives ─────────────\n *\n * `resolveResourceTargetZone` takes no viewport, so every caller applies the collapse itself.\n * There are exactly two, and when the collapse was added to the URL-sync caller on 2026-09-25 this\n * one was left behind — in the pass whose whole subject was an invariant applied at some of its\n * sites. On a phone URL sync restores a depth-1 resource into PRIMARY while this wrapper still\n * handed the page `navigationZone: SECONDARY`, so every zone-keyed affordance in it answered for a\n * zone the content is not in. Precisely the disagreement the comment below warns about.\n */\n const navigationZone = adjacentZoneUsableAtViewport({\n zone: preferredNavigationZone,\n layout: navigationLayout,\n viewport: currentBreakpoint,\n contentAreaWidth,\n })\n ? preferredNavigationZone\n : NavigationZoneName.PRIMARY;\n\n // Routed resource pages must receive the same owning zone as URL-sync restore.\n // Otherwise the rendered page props can disagree with the live navigation stack\n // after refresh/deep-link reconstruction.\n const navigationInitiator = {\n sourceZone: navigationZone,\n };\n\n return (\n <PageComponent\n resourceContext={resourceContext}\n navigationZone={navigationZone}\n navigationInitiator={navigationInitiator}\n />\n );\n};\n\n/**\n * Helper hook to look up a view's requiredFeatures from UIContext by viewRef and content type.\n * Returns undefined if the view has no requiredFeatures or if the view is not found.\n */\nfunction useViewRequiredFeatures(\n viewRef: string | undefined,\n contentType: NavigationContentType\n): RequiredFeaturesConfig | undefined {\n const { compositeViews, fullCustomViews, flowsActorsViews } = useUI();\n const { registry } = useResourceRegistry();\n\n return React.useMemo(() => {\n if (!viewRef) return undefined;\n\n switch (contentType) {\n case NavigationContentType.COMPOSITE_VIEW: {\n return resolveCompositeViewDefinition({\n viewRef,\n compositeViews,\n registry,\n })?.requiredFeatures;\n }\n case NavigationContentType.CHART_VIEW: {\n const insertedChart = resolveInsertedChartView({ viewRef, registry });\n return insertedChart?.chartView.chartDefinition.requiredFeatures;\n }\n case NavigationContentType.FULL_CUSTOM_VIEW: {\n const view = fullCustomViews?.find(v => v.ref === viewRef);\n return view?.requiredFeatures;\n }\n case NavigationContentType.FLOWS_ACTORS_VIEW: {\n const view = flowsActorsViews?.find(v => v.ref === viewRef);\n return view?.requiredFeatures;\n }\n case NavigationContentType.EXECUTION_VIEW: {\n const view = resolveExecutionViewDefinition({\n viewRef,\n registry,\n });\n return view?.requiredFeatures;\n }\n default:\n return undefined;\n }\n }, [viewRef, contentType, compositeViews, fullCustomViews, flowsActorsViews, registry]);\n}\n\n/**\n * Wrapper that extracts viewRef from URL params, syncs navigation state, and renders a View.\n * View components handle resolution from UIContext and not-found rendering internally.\n *\n * useViewRouterSync ensures that on refresh / deep link, the navigation state is populated\n * with the correct view content (similar to useRouterSync for resource operations).\n *\n * Includes FeatureRouteGuard: looks up the view's `requiredFeatures` from UIContext\n * and gates access based on the feature availability policy.\n */\nconst ViewRouteWrapper: React.FC<{\n ViewComponent: React.ComponentType<any>;\n contentType: NavigationContentType;\n viewProps?: Record<string, unknown>;\n}> = ({ ViewComponent, contentType, viewProps }) => {\n const { viewRef } = useParams<{ viewRef: string }>();\n useViewRouterSync(viewRef, contentType);\n\n // Look up view's requiredFeatures from UIContext\n const viewRequiredFeatures = useViewRequiredFeatures(viewRef, contentType);\n return (\n <FeatureRouteGuard requiredFeatures={viewRequiredFeatures}>\n <ViewComponent viewRef={viewRef!} {...viewProps} />\n </FeatureRouteGuard>\n );\n};\n\nconst CompositeRouteWrapper: React.FC<{\n viewProps?: Record<string, unknown>;\n}> = ({ viewProps }) => {\n const { viewRef } = useParams<{ viewRef: string }>();\n const location = useLocation();\n const { compositeViews } = useUI();\n const { registry } = useResourceRegistry();\n const contextResourceIdentifiers = React.useMemo(\n () => extractCompositeRouteContextResourceIdentifiers(new URLSearchParams(location.search)),\n [location.search],\n );\n const compositeView = React.useMemo(() => resolveCompositeViewDefinition({\n viewRef,\n compositeViews,\n registry,\n }), [viewRef, compositeViews, registry]);\n const isRoutableCompositeView = !!viewRef && isStandaloneRoutableResolvedCompositeView(compositeView);\n\n useViewRouterSync(\n isRoutableCompositeView ? viewRef : undefined,\n NavigationContentType.COMPOSITE_VIEW,\n );\n\n const viewRequiredFeatures = useViewRequiredFeatures(\n isRoutableCompositeView ? viewRef : undefined,\n NavigationContentType.COMPOSITE_VIEW,\n );\n if (!isRoutableCompositeView) {\n return <ViewNotFound viewKind=\"composite\" viewRef={viewRef} />;\n }\n return (\n <FeatureRouteGuard requiredFeatures={viewRequiredFeatures}>\n <CompositeView\n viewRef={viewRef}\n contextResourceIdentifiers={contextResourceIdentifiers}\n {...viewProps}\n />\n </FeatureRouteGuard>\n );\n};\n\nconst ExecutionRouteWrapper: React.FC<{\n viewProps?: Record<string, unknown>;\n}> = ({ viewProps }) => {\n const { viewRef } = useParams<{ viewRef: string }>();\n const location = useLocation();\n const { registry } = useResourceRegistry();\n const executionView = React.useMemo(() => resolveExecutionViewDefinition({\n viewRef,\n registry,\n }), [viewRef, registry]);\n const contextResourceIdentifiers = React.useMemo(\n () => extractExecutionRouteContextResourceIdentifiers(new URLSearchParams(location.search)),\n [location.search],\n );\n const isRoutableExecutionView =\n !!viewRef\n && !!executionView\n && isStandaloneRoutableExecutionView(executionView);\n\n useViewRouterSync(\n isRoutableExecutionView ? viewRef : undefined,\n NavigationContentType.EXECUTION_VIEW,\n );\n\n const viewRequiredFeatures = useViewRequiredFeatures(\n isRoutableExecutionView ? viewRef : undefined,\n NavigationContentType.EXECUTION_VIEW,\n );\n\n if (!isRoutableExecutionView) {\n return <ViewNotFound viewKind=\"execution\" viewRef={viewRef} />;\n }\n return (\n <FeatureRouteGuard requiredFeatures={viewRequiredFeatures}>\n <ExecutionView\n viewRef={viewRef}\n contextResourceIdentifiers={contextResourceIdentifiers}\n {...viewProps}\n />\n </FeatureRouteGuard>\n );\n};\n\nconst ChartRouteWrapper: React.FC<{\n viewProps?: Record<string, unknown>;\n}> = ({ viewProps }) => {\n const { viewRef } = useParams<{ viewRef: string }>();\n const location = useLocation();\n const { registry } = useResourceRegistry();\n const contextResourceIdentifiers = React.useMemo(\n () => extractChartRouteContextResourceIdentifiers(new URLSearchParams(location.search)),\n [location.search],\n );\n const urlParamValues = React.useMemo(\n () => extractChartRouteUrlParamValues(new URLSearchParams(location.search)),\n [location.search],\n );\n const resolvedChartRoute = React.useMemo(() => resolveChartRouteState({\n viewRef,\n registry,\n contextResourceIdentifiers,\n urlParamValues,\n }), [viewRef, registry, contextResourceIdentifiers, urlParamValues]);\n\n useChartViewRouterSync(resolvedChartRoute);\n\n if (!resolvedChartRoute) {\n return <ViewNotFound viewKind=\"chart\" viewRef={viewRef} />;\n }\n\n return (\n <FeatureRouteGuard requiredFeatures={resolvedChartRoute.requiredFeatures}>\n <ChartView\n viewRef={resolvedChartRoute.routeViewRef}\n viewDefinition={resolvedChartRoute.viewDefinition}\n contextResourceIdentifiers={resolvedChartRoute.contextResourceIdentifiers}\n urlParamValues={resolvedChartRoute.urlParamValues}\n runtimeDescriptor={resolvedChartRoute.runtimeDescriptor}\n {...viewProps}\n />\n </FeatureRouteGuard>\n );\n};\n\nconst EnginePageRouteWrapper: React.FC<{\n pageRef: EnginePageRef;\n PageComponent: React.FC;\n}> = ({ pageRef, PageComponent }) => {\n useEnginePageRouterSync(pageRef);\n return <PageComponent />;\n};\n\n/**\n * Route element for the unified Settings Hub paths (`/settings`,\n * `/settings/:sectionRef`). The hub itself is an overlay reconciled from the URL\n * by `useSettingsHubOverlaySync` (mounted once in `NavigationContentAreas`), so\n * this element only renders the PRIMARY underlay shown on a cold deep-link\n * (`AppLayout_Home`). In-session, the persisted PRIMARY surface stays beneath the\n * hub, so this fallback is ignored.\n */\nconst SettingsRouteWrapper: React.FC = () => <AppLayout_Home />;\n\n/**\n * The route element of a public governed-document page: the release a link named, read from the query string, handed\n * to the page (#3187). The page stays free of the router; this is the one place the URL is read.\n */\nfunction PublicGovernedDocumentRoute({ documentRef }: { readonly documentRef: string }): React.JSX.Element {\n const [searchParams] = useSearchParams();\n const namedRelease = readPublicGovernedDocumentReleaseQuery(searchParams);\n return <PublicLayout_Terms documentRef={documentRef} {...(namedRelease ? { namedRelease } : {})} />;\n}\n\nexport const AppRouter: React.FC = () => {\n const { registry } = useResourceRegistry();\n const isDevelopment = envLoader.isDevelopment();\n\n // Build resource-based routes for authenticated area\n const resourceRouteElements: React.ReactElement[] = [];\n\n Object.values<AnyFrontendResourceConfiguration>(registry.resourceConfigurations).forEach(rc => {\n const operations = Array.isArray(rc.operations) ? rc.operations : [];\n operations.forEach(operation => {\n // Only add routes for operations that are addressable in the current frontend app\n if (!isOperationAddressable(operation.operationFrontendConfig)) return;\n const routePaths = ResourcesConfigOperationsUrlsBuilderUtils.buildOperationFrontendRoutePaths(rc, operation, registry.allResourceFieldIdentifiers);\n const layoutKind = resolveResourceOperationLayoutKind(operation);\n\n // Determine which ResourcePage component to use\n let PageComponent: React.ComponentType<{\n resourceContext: FrontendResourceOperationContext;\n }>;\n\n switch (layoutKind) {\n case 'create': PageComponent = ResourceLayout_Create; break;\n case 'list': PageComponent = ResourceLayout_List; break;\n case 'read': PageComponent = ResourceLayout_Read; break;\n case 'update': PageComponent = ResourceLayout_Update; break;\n case 'search': PageComponent = ResourceLayout_Search; break;\n default: PageComponent = ResourceLayout_Action; break;\n }\n\n // Create routes for all possible parent combinations\n routePaths.forEach((routePath, pathIndex) => {\n const element = (\n <FeatureRouteGuard operation={operation}>\n <ResourcePageWrapper\n resourceType={rc.resourceIdentifier}\n operation={operation}\n PageComponent={PageComponent}\n routePathParameters={routePath.parameters}\n />\n </FeatureRouteGuard>\n );\n\n const routeKey = `${rc.resourceIdentifier}-${String(operation.operationIdentifier)}-${pathIndex}`;\n resourceRouteElements.push(\n <Route key={routeKey} path={routePath.url} element={element} errorElement={<RouterErrorBoundary />} />\n );\n });\n });\n });\n\n return (\n <>\n <NavigationRequestBridge />\n <Routes>\n {/* ========================================\n PUBLIC ROUTES - No authentication required\n ======================================== */}\n\n {/* OAuth2 callback — shared across all app types */}\n <Route\n path={CommonRoutePaths.authCallback}\n element={<AuthPage_AuthCallback />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* Federated re-authentication landing, inside the step-up dialog's popup (#1441) */}\n <Route\n path={CommonRoutePaths.reAuthenticationCallback}\n element={<AuthPage_ReAuthenticationCallback />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* Magic link verification — shared across all app types */}\n <Route\n path={CommonRoutePaths.magicLinkVerify}\n element={<AuthPage_MagicLinkVerify />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* MFA challenge — shared across all app types, serves all first-factor methods */}\n <Route\n path={CommonRoutePaths.mfaChallenge}\n element={<AuthPage_MfaChallenge />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* MFA enrollment required — shown when MFA is mandated but user has no enrolled methods */}\n <Route\n path={CommonRoutePaths.enrollmentRequired}\n element={<AuthPage_EnrollmentRequired />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* Organization onboarding — an account parked at ONBOARDING_PENDING names the organization it owes (#1090) */}\n <Route\n path={CommonRoutePaths.organizationOnboarding}\n element={<AuthPage_OrganizationOnboarding />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* One-off session exchange — shared across all app types */}\n <Route\n path={CommonRoutePaths.oneOffSession}\n element={<AuthPage_OneOffSession />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* File-upload-grant drop page — public, the grant token in the URL is the only credential */}\n <Route\n path={CommonRoutePaths.fileUploadGrant}\n element={<FilesPage_UploadGrant />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* Cross-frontend handoff exchange landing — cross-app-jwt-propagation Step 5 */}\n <Route\n path={CommonRoutePaths.authExchange}\n element={<AuthPage_AuthExchange />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/*\n * Public governed-document pages. Issue #168.\n *\n * Both paths have been declared in `CommonRoutePaths` since the compliance vocabulary\n * landed, and NEITHER was mounted — `/privacy` and `/terms` answered the not-found route in\n * every application, while the component they name had no implementation at all.\n *\n * One component serves both: it takes the document ref as a prop and reads the application's\n * own `compliance.publicDocuments`, so an application adding a third public document adds a\n * route rather than a component. A document never released shows its latest draft, marked\n * as a draft. Otherwise it fails CLOSED — nothing in force renders an unavailable notice,\n * never a partial document.\n *\n * Whether an unapproved release may be shown is NOT decided here. It is the application's\n * approval gate, `compliance.governedDocumentApprovalGate`, which the page reads alongside\n * every acceptance surface so the page cannot be armed alone (#1565). It used to be a prop\n * this route declined to pass. Arming it is part of Gate 3's membership test (\"an application\n * may face a real user\") — see `.claude/rules/one-source-of-truth.md` D5.\n */}\n {/*\n * Mounted FROM the pairing rather than beside it. `PUBLIC_GOVERNED_DOCUMENT_ROUTE_PATHS` is\n * total over `PUBLIC_GOVERNED_DOCUMENT_REFS`, and the registration form reads the same map to\n * link a required document to the page that renders it — so the two readers cannot disagree,\n * and a third public document gets its route by joining the vocabulary.\n */}\n {Object.entries(PUBLIC_GOVERNED_DOCUMENT_ROUTE_PATHS).map(([documentRef, path]) => (\n <Route\n key={documentRef}\n path={path}\n element={<PublicGovernedDocumentRoute documentRef={documentRef} />}\n errorElement={<RouterErrorBoundary />}\n />\n ))}\n {/*\n * The legal notice (imprint), #2588. Mounted for every application, from the same atom the marketing website links\n * it from: the page itself says when the operator owes none, so a link followed in error lands on a statement\n * rather than a 404.\n */}\n <Route path={LEGAL_NOTICE_ROUTE_PATH} element={<PublicLayout_LegalNotice />} errorElement={<RouterErrorBoundary />} />\n\n {/* Public auth routes — always present; auth behavior is driven by AppConfiguration_Shared.auth */}\n <Route\n path={CommonRoutePaths.login}\n element={<AuthPage_Main />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.register}\n element={<AuthPage_Register />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.passwordLost}\n element={<AuthPage_PasswordLost />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.oauthConsent}\n element={<AuthPage_OAuthConsent />}\n errorElement={<RouterErrorBoundary />}\n />\n {/* Chat-link page (#2660): public, self-redirects to sign in; links a chat account on explicit confirmation. */}\n <Route\n path={CommonRoutePaths.chatIdentityLink}\n element={<AuthPage_ChatIdentityLink />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.oauthLoggedOut}\n element={<AuthPage_OAuthLoggedOut />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.oauthLogoutConfirm}\n element={<AuthPage_OAuthLogoutConfirm />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.invitation}\n element={<AuthPage_Invitation />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.confirmEmail}\n element={<AuthPage_ConfirmEmail />}\n errorElement={<RouterErrorBoundary />}\n />\n\n\n\n\n\n\n {/* ========================================\n AUTHENTICATED ROUTES - Wrapped with MainContainer\n Uses Layout Route pattern for consistent shell\n ======================================== */}\n <Route element={<AppLayout_AuthenticatedRoute />} errorElement={<RouterErrorBoundary />}>\n {/* Home route */}\n <Route\n path={CommonRoutePaths.home}\n element={<EnginePageRouteWrapper pageRef={EnginePageRef.HOME} PageComponent={AppLayout_Home} />}\n errorElement={<RouterErrorBoundary />}\n />\n {/* The engine's decision inbox (#2527): mounted for every application; its row is offered where a decision can wait. */}\n <Route\n path={CommonRoutePaths.decisions}\n element={<EnginePageRouteWrapper pageRef={EnginePageRef.DECISIONS} PageComponent={AppLayout_DecisionInbox} />}\n errorElement={<RouterErrorBoundary />}\n />\n {/* Unified Settings Hub — overlay reconstructed from URL. `/settings/security`\n now opens the hub at its Security section (the standalone security page is\n migrated into the hub as a panel). */}\n <Route\n path={CommonRoutePaths.settings}\n element={<SettingsRouteWrapper />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.settingsSection}\n element={<SettingsRouteWrapper />}\n errorElement={<RouterErrorBoundary />}\n />\n {/* `/settings/:sectionRef/:subTabRef` — the same wrapper: the hub is reconstructed from the\n URL by `useSettingsHubOverlaySync`, so this route exists to MATCH the deeper path rather\n than to render anything different. Without it the path fell through to the router's\n catch-all and the overlay was never reconciled. */}\n <Route\n path={CommonRoutePaths.settingsSectionSubTab}\n element={<SettingsRouteWrapper />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* View routes — View components resolve definitions from UIContext internally */}\n <Route\n path=\"/composite/:viewRef\"\n element={<CompositeRouteWrapper />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path=\"/custom/:viewRef\"\n element={<ViewRouteWrapper ViewComponent={FullCustomView} contentType={NavigationContentType.FULL_CUSTOM_VIEW} />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path=\"/flows-actors/:viewRef\"\n element={<ViewRouteWrapper ViewComponent={FlowsActorsView} contentType={NavigationContentType.FLOWS_ACTORS_VIEW} />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path=\"/execution/:viewRef\"\n element={\n <ExecutionRouteWrapper\n viewProps={{ navigationZone: NavigationZone.PRIMARY }}\n />\n }\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path=\"/chart/:viewRef\"\n element={\n <React.Suspense fallback={<div style={{ padding: '2rem', textAlign: 'center', color: 'var(--muted-foreground, #737373)' }}>Loading chart...</div>}>\n <ChartRouteWrapper />\n </React.Suspense>\n }\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* Resource routes - nested inside authenticated layout */}\n {resourceRouteElements}\n </Route>\n\n {/* Fallback - handled by RouterErrorBoundary */}\n <Route\n path=\"*\"\n element={<RouterErrorBoundary />}\n />\n </Routes>\n </>\n );\n};\n"]}
|
|
1
|
+
{"version":3,"file":"AppRouter.js","sourceRoot":"","sources":["../../../../src/core/runtime/AppRouter.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,yCAAyC,EAEzC,oCAAoC,EACpC,uBAAuB,EACvB,sCAAsC,GACvC,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,iEAAiE,CAAC;AAC/G,OAAO,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AACnF,OAAO,EAAE,uBAAuB,EAAE,MAAM,4DAA4D,CAAC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ACtB,OAAO,EACL,KAAC,KAAK,CAAC,QAAQ,IAAC,QAAQ,EAAE,cAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,kCAAkC,EAAE,iCAAwB,YAC/I,KAAC,iBAAiB,KAAG,GACN,EAEnB,YAAY,EAAE,KAAC,mBAAmB,KAAG,GACrC,EAGD,qBAAqB,IAChB,EAGR,KAAC,KAAK,IACJ,IAAI,EAAC,GAAG,EACR,OAAO,EAAE,KAAC,mBAAmB,KAAG,GAChC,IACO,IACR,CACJ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import {\n CoreResourceOperation,\n NavigationZoneName,\n NavigationTransition,\n ResourcesConfigOperationsUrlsBuilderUtils,\n ResourceConfiguration_Operation_UrlParameterInfo,\n PUBLIC_GOVERNED_DOCUMENT_ROUTE_PATHS,\n LEGAL_NOTICE_ROUTE_PATH,\n readPublicGovernedDocumentReleaseQuery,\n} from '@wildo-ai/saas-models';\nimport type { AnyFrontendResourceConfiguration, FrontendResourceConfiguration_Operation } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport React from 'react';\nimport { Route, Routes, useLocation, useParams, useSearchParams } from 'react-router';\nimport { AppLayout_AuthenticatedRoute } from '~wildo-frontend-lib/components/app/AppLayout_AuthenticatedRoute';\nimport { AppLayout_Home } from '~wildo-frontend-lib/components/app/AppLayout_Home';\nimport { AppLayout_DecisionInbox } from '~wildo-frontend-lib/components/app/AppLayout_DecisionInbox';\nimport { ResourceLayout_Action } from '~wildo-frontend-lib/components/resources/ResourceLayout_Action';\nimport { ResourceLayout_Create } from '~wildo-frontend-lib/components/resources/ResourceLayout_Create';\nimport { ResourceLayout_List } from '~wildo-frontend-lib/components/resources/ResourceLayout_List';\nimport { ResourceLayout_Read } from '~wildo-frontend-lib/components/resources/ResourceLayout_Read';\nimport { ResourceLayout_Search } from '~wildo-frontend-lib/components/resources/ResourceLayout_Search';\nimport { ResourceLayout_Update } from '~wildo-frontend-lib/components/resources/ResourceLayout_Update';\n\n\nimport { AuthPage_AuthCallback } from '~wildo-frontend-lib/components/auth/pages/AuthPage_AuthCallback';\nimport { AuthPage_ReAuthenticationCallback } from '~wildo-frontend-lib/components/auth/pages/AuthPage_ReAuthenticationCallback';\nimport { AuthPage_MagicLinkVerify } from '~wildo-frontend-lib/components/auth/pages/AuthPage_MagicLinkVerify';\nimport { AuthPage_MfaChallenge } from '~wildo-frontend-lib/components/auth/pages/AuthPage_MfaChallenge';\nimport { AuthPage_EnrollmentRequired } from '~wildo-frontend-lib/components/auth/pages/AuthPage_EnrollmentRequired';\nimport { AuthPage_OrganizationOnboarding } from '~wildo-frontend-lib/components/auth/pages/AuthPage_OrganizationOnboarding';\nimport { AuthPage_Main } from '~wildo-frontend-lib/components/auth/pages/AuthPage_Main';\nimport { AuthPage_ConfirmEmail } from '~wildo-frontend-lib/components/auth/pages/AuthPage_ConfirmEmail';\nimport { AuthPage_Invitation } from '~wildo-frontend-lib/components/auth/pages/AuthPage_Invitation';\nimport { AuthPage_OneOffSession } from '~wildo-frontend-lib/components/auth/pages/AuthPage_OneOffSession';\nimport { FilesPage_UploadGrant } from '~wildo-frontend-lib/components/files/pages/FilesPage_UploadGrant';\nimport { AuthPage_AuthExchange } from '~wildo-frontend-lib/components/auth/pages/AuthPage_AuthExchange';\nimport { AuthPage_PasswordLost } from '~wildo-frontend-lib/components/auth/pages/AuthPage_PasswordLost';\nimport { AuthPage_OAuthConsent } from '~wildo-frontend-lib/components/auth/pages/AuthPage_OAuthConsent';\nimport { AuthPage_ChatIdentityLink } from '~wildo-frontend-lib/components/auth/pages/AuthPage_ChatIdentityLink';\nimport { AuthPage_OAuthLoggedOut } from '~wildo-frontend-lib/components/auth/pages/AuthPage_OAuthLoggedOut';\nimport { AuthPage_OAuthLogoutConfirm } from '~wildo-frontend-lib/components/auth/pages/AuthPage_OAuthLogoutConfirm';\nimport { AuthPage_Register } from '~wildo-frontend-lib/components/auth/pages/AuthPage_Register';\nimport { PublicLayout_Terms } from '~wildo-frontend-lib/components/app/PublicLayout_Terms';\nimport { PublicLayout_LegalNotice } from '~wildo-frontend-lib/components/app/PublicLayout_LegalNotice';\nimport { RouterErrorBoundary } from '~wildo-frontend-lib/core/errors/RouterErrorBoundary';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\nimport { NavigationContentType, NavigationSource, NavigationZone } from '~wildo-frontend-lib/core/navigation/navigation.schemas';\nimport { clickKeepsRestoredContentInPrimary } from '~wildo-frontend-lib/core/navigation/navigation-controller-internals';\nimport { NavigationRequestBridge } from '~wildo-frontend-lib/core/navigation/NavigationRequestBridge';\nimport { adjacentZoneUsableAtViewport } from '~wildo-frontend-lib/core/navigation/zone-collapse';\nimport { NavigationUtils } from '~wildo-frontend-lib/core/navigation/navigation.utils';\nimport { useTransactionAwareSyncRetry } from '~wildo-frontend-lib/core/navigation/useTransactionAwareSyncRetry';\nimport { useRouterSync, useViewRouterSync, useEnginePageRouterSync } from '~wildo-frontend-lib/core/navigation/useNavigationRouterSync';\nimport { frontendResourceUtils } from '~wildo-frontend-lib/core/resources/frontend-resource.utils';\nimport { resolveResourceOperationLayoutKind } from '~wildo-frontend-lib/core/resources/operation-semantics.frontend.utils';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { type FrontendResourceOperationContext, isOperationAddressable } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport { envLoader } from '~wildo-frontend-lib/core/runtime/env-variable-loader.frontend.service';\nimport { CommonRoutePaths } from './routes.frontend.definitions';\nimport { EnginePageRef } from '~wildo-frontend-lib/core/config/launcher-items.frontend.schemas';\nimport { FullCustomView } from '~wildo-frontend-lib/components/views/full-custom-view/FullCustomView';\nimport { FlowsActorsView } from '~wildo-frontend-lib/components/views/flows-actors-view/FlowsActorsView';\nimport { ConversationLinkPage } from '~wildo-frontend-lib/components/views/flows-actors-view/ConversationLinkPage';\nimport { ExecutionView } from '~wildo-frontend-lib/components/views/execution-view/ExecutionView';\nimport { CompositeView } from '~wildo-frontend-lib/components/views/composite-view/CompositeView';\nimport { FeatureRouteGuard } from '~wildo-frontend-lib/core/features/FeatureRouteGuard';\nimport { useUI } from '~wildo-frontend-lib/core/ui/useUI';\nimport {\n extractCompositeRouteContextResourceIdentifiers,\n isStandaloneRoutableResolvedCompositeView,\n resolveCompositeViewDefinition,\n} from '~wildo-frontend-lib/core/config/composite-view.schemas';\nimport {\n buildResolvedInsertedChartDescriptor,\n extractChartRouteContextResourceIdentifiers,\n extractChartRouteUrlParamValues,\n isStandaloneRoutableInsertedChartView,\n type InsertedChartDeclaration,\n type ResolvedInsertedChartDescriptor,\n resolveInsertedChartView,\n} from '~wildo-frontend-lib/core/config/chart-view.frontend.schemas';\nimport {\n extractExecutionRouteContextResourceIdentifiers,\n isStandaloneRoutableExecutionView,\n resolveExecutionViewDefinition,\n} from '~wildo-frontend-lib/core/config/execution-view.schemas';\nimport {\n FrontendInsertedViewHostKind,\n FrontendInsertedViewKind,\n parseFrontendInsertedViewRef,\n type FrontendInsertedViewIdentity,\n} from '~wildo-frontend-lib/core/config/inserted-view.frontend.schemas';\nimport { useRouterLocationAheadOfCommit } from '~wildo-frontend-lib/core/navigation/useSynchronousBrowserLocation';\nimport type { RequiredFeaturesConfig } from '@wildo-ai/saas-models';\nimport { ViewNotFound } from '~wildo-frontend-lib/components/views/ViewNotFound';\nimport { useEventBus } from '~wildo-frontend-lib/core/events/useEventBus';\nimport { FrontendEvents } from '~wildo-frontend-lib/core/events/events.frontend.schemas';\nimport { useNavigationState } from '~wildo-frontend-lib/core/navigation/useNavigationState';\nimport { useAppScopeSafe } from '~wildo-frontend-lib/core/scope/useAppScope';\nimport { ScopeUtilsService } from '~wildo-frontend-lib/core/scope/scope.utils.frontend.service';\n\n// ChartView is lazy-loaded — apps that don't use charts never load ECharts\nconst ChartView = React.lazy(() => import('~wildo-frontend-lib/components/views/chart-view/ChartView'));\n\ninterface ResolvedChartRouteState {\n routeViewRef: string;\n viewDefinition: InsertedChartDeclaration;\n contextResourceIdentifiers?: Record<string, string>;\n urlParamValues?: Record<string, string>;\n runtimeDescriptor?: ResolvedInsertedChartDescriptor;\n requiredFeatures?: RequiredFeaturesConfig;\n}\n\nfunction resolveInsertedChartRouteState(params: {\n insertedIdentity: FrontendInsertedViewIdentity;\n contextResourceIdentifiers?: Record<string, string>;\n urlParamValues?: Record<string, string>;\n registry: ReturnType<typeof useResourceRegistry>['registry'];\n}): ResolvedChartRouteState | undefined {\n const { insertedIdentity, contextResourceIdentifiers, urlParamValues, registry } = params;\n if (\n insertedIdentity.hostKind !== FrontendInsertedViewHostKind.RESOURCE\n || insertedIdentity.viewKind !== FrontendInsertedViewKind.CHART_VIEW\n ) {\n return undefined;\n }\n\n const chartView = resolveInsertedChartView({\n viewRef: insertedIdentity.insertedViewRef,\n registry,\n })?.chartView;\n if (!chartView || !isStandaloneRoutableInsertedChartView(chartView)) {\n return undefined;\n }\n\n const normalizedContextResourceIdentifiers = contextResourceIdentifiers ?? {};\n\n return {\n routeViewRef: insertedIdentity.insertedViewRef,\n viewDefinition: chartView,\n contextResourceIdentifiers: normalizedContextResourceIdentifiers,\n urlParamValues,\n runtimeDescriptor: buildResolvedInsertedChartDescriptor({\n identity: insertedIdentity,\n chartView,\n contextResourceIdentifiers: normalizedContextResourceIdentifiers,\n }),\n requiredFeatures: chartView.chartDefinition.requiredFeatures,\n };\n}\n\nfunction resolveChartRouteState(params: {\n viewRef: string | undefined;\n registry: ReturnType<typeof useResourceRegistry>['registry'];\n contextResourceIdentifiers?: Record<string, string>;\n urlParamValues?: Record<string, string>;\n}): ResolvedChartRouteState | undefined {\n const { viewRef, registry, contextResourceIdentifiers, urlParamValues } = params;\n if (!viewRef) {\n return undefined;\n }\n\n const insertedIdentity = parseFrontendInsertedViewRef(viewRef);\n if (!insertedIdentity) {\n return undefined;\n }\n\n return resolveInsertedChartRouteState({\n insertedIdentity,\n contextResourceIdentifiers,\n urlParamValues,\n registry,\n });\n}\n\nfunction useChartViewRouterSync(resolvedChartRoute: ResolvedChartRouteState | undefined): void {\n const location = useLocation();\n const routerLocationAhead = useRouterLocationAheadOfCommit(location);\n const { emit } = useEventBus();\n const { getZoneState } = useNavigationState();\n const lastSyncedPath = React.useRef<string | null>(null);\n const currentUrl = `${location.pathname}${location.search}`;\n const {\n retryTick,\n scheduleRetry: scheduleTransactionRetry,\n clearRetry: clearTransactionRetry,\n } = useTransactionAwareSyncRetry(currentUrl);\n\n React.useEffect(() => {\n if (!resolvedChartRoute) {\n return;\n }\n\n if (NavigationUtils.isInTransaction()) {\n scheduleTransactionRetry();\n return;\n }\n\n clearTransactionRetry();\n\n // The router already left the URL this route committed with (a pending location transition); rebuilding\n // from it would restore the page the browser left. See `useRouterLocationAheadOfCommit`.\n if (routerLocationAhead) {\n return;\n }\n\n if (lastSyncedPath.current === currentUrl) {\n return;\n }\n\n // Per-zone, destination-based ownership — the same question `useViewRouterSync` asks. A chart\n // is a non-derivable primary, so a pane beside it is HOSTED and the URL is composed: PRIMARY is\n // asked about the host half only, and the stamp below carries the host half only.\n if (NavigationUtils.zoneOwnsBrowserUrl(NavigationZoneName.PRIMARY, currentUrl, getZoneState)) {\n lastSyncedPath.current = currentUrl;\n return;\n }\n\n emit(FrontendEvents.NAVIGATION_REPLACE, {\n zone: NavigationZoneName.PRIMARY,\n content: {\n contentType: NavigationContentType.CHART_VIEW,\n viewRef: resolvedChartRoute.routeViewRef,\n viewDefinition: resolvedChartRoute.viewDefinition,\n contextResourceIdentifiers: resolvedChartRoute.contextResourceIdentifiers,\n urlParamValues: resolvedChartRoute.urlParamValues,\n runtimeDescriptor: resolvedChartRoute.runtimeDescriptor,\n requiredFeatures: resolvedChartRoute.requiredFeatures,\n },\n urlPath: NavigationUtils.decomposeHostedPaneBrowserUrl(currentUrl).hostUrl,\n stackEntryId: NavigationUtils.generateStackEntryId(),\n initiator: { sourceZone: NavigationZoneName.PRIMARY },\n navigationSource: NavigationSource.URL_SYNC,\n transition: NavigationTransition.REPLACE,\n });\n\n lastSyncedPath.current = currentUrl;\n }, [emit, getZoneState, resolvedChartRoute, currentUrl, routerLocationAhead, retryTick, scheduleTransactionRetry, clearTransactionRetry]);\n}\n\n/**\n * Wrapper component that extracts URL parameters and creates resource context\n * This component bridges React Router params with our resource context system\n */\ninterface ResourcePageWrapperProps {\n resourceType: string;\n operation: FrontendResourceConfiguration_Operation;\n PageComponent: React.ComponentType<{\n resourceContext: FrontendResourceOperationContext;\n navigationZone: NavigationZoneName;\n navigationInitiator?: any;\n }>;\n /** Route path parameters with relationship field info for deterministic URL selection */\n routePathParameters: ResourceConfiguration_Operation_UrlParameterInfo[];\n}\n\n/**\n * Validate URL parameters - checks for unresolved or invalid parameters\n * Returns validation result with error details if invalid\n */\ninterface UrlParameterValidation {\n isValid: boolean;\n errorType?: 'unresolved' | 'missing' | 'invalid';\n invalidParams?: string[];\n message?: string;\n}\n\n/**\n * Core-operation keywords (\"create\", \"list\", \"search\", …) are never valid resource\n * ids. A direct hit like `/todos/create` has no page route — core CREATE is an\n * overlay (non-addressable) and adds no URL segment — so the sibling parameterized\n * route `/todos/:todoId` greedily captures `todoId=\"create\"`. That renders the read\n * surface (a composite) for a phantom resource, which render-loops and freezes the\n * tab (todos CREATE freeze, 2026-06-27). Treating an operation-keyword param value as\n * an invalid URL parameter routes it to the standard not-found surface instead (`RouterErrorBoundary`).\n */\nconst RESERVED_OPERATION_ID_SEGMENTS: ReadonlySet<string> = new Set(\n Object.values(CoreResourceOperation).map((op) => String(op).toLowerCase()),\n);\n\nfunction validateUrlParameters(\n urlParameters: Record<string, string>,\n resourceType: string\n): UrlParameterValidation {\n const invalidParams: string[] = [];\n const missingParams: string[] = [];\n const reservedKeywordParams: string[] = [];\n\n for (const [key, value] of Object.entries(urlParameters)) {\n // Check for unresolved route parameters (still have : prefix in URL)\n if (value && value.startsWith(':')) {\n invalidParams.push(`${key}=${value}`);\n }\n // Check for empty or undefined values\n else if (!value || value.trim() === '') {\n missingParams.push(key);\n }\n // Check for obviously invalid placeholder values\n else if (value === 'undefined' || value === 'null' || value === '[object Object]') {\n invalidParams.push(`${key}=${value}`);\n }\n // A param value that is a core-operation keyword is a mis-navigation, not a\n // resource id (e.g. `/todos/create` → todoId=\"create\"). Render not-found.\n else if (RESERVED_OPERATION_ID_SEGMENTS.has(value.toLowerCase())) {\n reservedKeywordParams.push(`${key}=${value}`);\n }\n }\n\n if (invalidParams.length > 0) {\n return {\n isValid: false,\n errorType: 'unresolved',\n invalidParams,\n message: `Unresolved route parameters for ${resourceType}: ${invalidParams.join(', ')}. The URL contains placeholder values instead of actual IDs.`\n };\n }\n\n if (reservedKeywordParams.length > 0) {\n return {\n isValid: false,\n errorType: 'invalid',\n invalidParams: reservedKeywordParams,\n message: `Route parameter for ${resourceType} is an operation keyword, not a resource id: ${reservedKeywordParams.join(', ')}. This URL does not address a resource.`\n };\n }\n\n if (missingParams.length > 0) {\n return {\n isValid: false,\n errorType: 'missing',\n invalidParams: missingParams,\n message: `Missing required parameters for ${resourceType}: ${missingParams.join(', ')}`\n };\n }\n\n return { isValid: true };\n}\n\n/**\n * Where an invalid URL parameter's diagnostic goes (#3066 review M4): the console, and nowhere a reader sees it. The\n * reader gets the application's own not-found page (`RouterErrorBoundary`, the surface the `*` route renders).\n */\nconst logger = LoggerFrontendService.getLogger();\n\n/**\n * ResourcePageWrapper bridges React Router with the navigation system.\n * It extracts URL parameters, creates resource context, and syncs with NavigationContext.\n *\n * Validates URL parameters: a URL whose parameters are invalid or unresolved renders the application's not-found page,\n * and the reason goes to the console log.\n */\nconst ResourcePageWrapper: React.FC<ResourcePageWrapperProps> = ({\n resourceType,\n operation,\n PageComponent,\n routePathParameters\n}) => {\n const { registry } = useResourceRegistry();\n const appScope = useAppScopeSafe();\n const { navigationLayout, currentBreakpoint } = useUI();\n // The measured content area, for the same collapse question the resolver and the renderer ask.\n const { contentAreaWidth } = useNavigationState();\n\n // Extract URL parameters from React Router\n const urlParameters = useParams<Record<string, string>>() as Record<string, string>;\n\n // Validate URL parameters before allowing router-sync to reconstruct\n // navigation state from them. Invalid/placeholder params should render the\n // error surface without repopulating resource navigation entries underneath.\n const validation = React.useMemo(\n () => validateUrlParameters(urlParameters, resourceType),\n [urlParameters, resourceType]\n );\n\n // Sync URL changes with navigation state\n // Pass routePathParameters so useRouterSync can build parentResourcesRequirements\n useRouterSync(\n validation.isValid ? resourceType : undefined,\n validation.isValid ? operation : undefined,\n routePathParameters\n );\n\n // The diagnostic goes to the console only: a reader is shown the not-found page, not a developer's sentence.\n React.useEffect(() => {\n if (!validation.isValid && validation.message) {\n logger.warn(`[AppRouter] ${validation.message}`, {\n resourceType,\n operation: String(operation.operationIdentifier),\n invalidParams: validation.invalidParams,\n errorType: validation.errorType,\n url: window.location.href,\n });\n }\n }, [validation.isValid, validation.message, validation.errorType, validation.invalidParams, resourceType, operation.operationIdentifier]);\n\n // Build parentResourcesRequirements from route path parameters. Above the not-found return below, with every other\n // hook: a hook after an early return changes the hook count when the same mounted route turns valid or invalid.\n const parentResourcesRequirements = React.useMemo(() =>\n frontendResourceUtils.buildParentResourcesRequirementsFromRouteParams(\n routePathParameters,\n resourceType,\n registry\n ),\n [routePathParameters, resourceType, registry]\n );\n\n // A URL that addresses no resource is a page that does not exist: the application's own not-found surface.\n if (!validation.isValid) {\n return <RouterErrorBoundary />;\n }\n\n // Convert URL parameters to resource identifiers map using the registry\n // Pass routePathParameters for accurate FK field mapping (e.g., assignedToUserId → USERS)\n const urlContextIdentifiers = frontendResourceUtils.extractResourceIdentifiersFromUrlParams(\n urlParameters,\n registry,\n routePathParameters\n );\n\n const targetPrimaryScope = registry.resourceConfigurations?.[resourceType]?.resourcePrimaryScope;\n const contextResourceIdentifiers = ScopeUtilsService.buildResourceOperationContextIdentifiers({\n currentUserId: appScope?.currentUserId,\n currentOrganizationId: appScope?.currentOrganizationId,\n currentApplicationId: appScope?.currentApplicationId,\n currentAnonymousUserId: appScope?.currentAnonymousUserId,\n primaryScope: targetPrimaryScope,\n liveAppScopeContextResourceIdentifiers: appScope?.buildContextResourceIdentifiers?.(),\n explicitContextResourceIdentifiers: urlContextIdentifiers,\n });\n\n // Create the frontend resource operation context with parentResourcesRequirements\n const resourceContext = frontendResourceUtils.createFrontendResourceOperationContextFromOperation({\n resourceType,\n operation,\n contextResourceIdentifiers,\n parentResourcesRequirements,\n });\n\n const resourceRelationshipDepth = NavigationUtils.calculateResourceRelationshipDepth(parentResourcesRequirements);\n /*\n * Same three inputs `useRouterSync` uses, and for the same reason: a routed page and the live\n * navigation stack must not disagree about which zone owns a flat detail. `prefersAdjacentZoneForDetail`\n * was missing here entirely, so this wrapper answered PRIMARY for every depth-0 resource even in a\n * layout that splits its detail out — the routed page's props then contradicted the stack that the\n * URL sync had just built beside it.\n */\n const prefersAdjacentZoneForDetail = resourceRelationshipDepth === 0\n && !!navigationLayout?.zones?.secondary\n && NavigationUtils.layoutSplitsOperationFromPrimary(navigationLayout, operation, currentBreakpoint);\n const depthPreferredNavigationZone = NavigationUtils.resolveResourceTargetZone(resourceRelationshipDepth, {\n hasSecondary: !!navigationLayout?.zones?.secondary,\n hasCompanion: !!navigationLayout?.zones?.companion,\n prefersAdjacentZoneForDetail,\n });\n /*\n * A nested record stays in its depth's pane only when a click from its parent's zone would open it there — the\n * same gate `useRouterSync` applies (#3764), so the page props and the restored stack name one zone.\n */\n const preferredNavigationZone = resourceRelationshipDepth >= 1\n && depthPreferredNavigationZone !== NavigationZoneName.PRIMARY\n && clickKeepsRestoredContentInPrimary({\n content: { contentType: NavigationContentType.RESOURCE_OPERATION, resourceContext },\n paneZone: depthPreferredNavigationZone,\n layout: navigationLayout,\n registry,\n viewport: currentBreakpoint,\n contentAreaWidth,\n })\n ? NavigationZoneName.PRIMARY\n : depthPreferredNavigationZone;\n /*\n * ─── The VIEWPORT decides here too, for the reason the comment below already gives ─────────────\n *\n * `resolveResourceTargetZone` takes no viewport, so every caller applies the collapse itself.\n * There are exactly two, and when the collapse was added to the URL-sync caller on 2026-09-25 this\n * one was left behind — in the pass whose whole subject was an invariant applied at some of its\n * sites. On a phone URL sync restores a depth-1 resource into PRIMARY while this wrapper still\n * handed the page `navigationZone: SECONDARY`, so every zone-keyed affordance in it answered for a\n * zone the content is not in. Precisely the disagreement the comment below warns about.\n */\n const navigationZone = adjacentZoneUsableAtViewport({\n zone: preferredNavigationZone,\n layout: navigationLayout,\n viewport: currentBreakpoint,\n contentAreaWidth,\n })\n ? preferredNavigationZone\n : NavigationZoneName.PRIMARY;\n\n // Routed resource pages must receive the same owning zone as URL-sync restore.\n // Otherwise the rendered page props can disagree with the live navigation stack\n // after refresh/deep-link reconstruction.\n const navigationInitiator = {\n sourceZone: navigationZone,\n };\n\n return (\n <PageComponent\n resourceContext={resourceContext}\n navigationZone={navigationZone}\n navigationInitiator={navigationInitiator}\n />\n );\n};\n\n/**\n * Helper hook to look up a view's requiredFeatures from UIContext by viewRef and content type.\n * Returns undefined if the view has no requiredFeatures or if the view is not found.\n */\nfunction useViewRequiredFeatures(\n viewRef: string | undefined,\n contentType: NavigationContentType\n): RequiredFeaturesConfig | undefined {\n const { compositeViews, fullCustomViews, flowsActorsViews } = useUI();\n const { registry } = useResourceRegistry();\n\n return React.useMemo(() => {\n if (!viewRef) return undefined;\n\n switch (contentType) {\n case NavigationContentType.COMPOSITE_VIEW: {\n return resolveCompositeViewDefinition({\n viewRef,\n compositeViews,\n registry,\n })?.requiredFeatures;\n }\n case NavigationContentType.CHART_VIEW: {\n const insertedChart = resolveInsertedChartView({ viewRef, registry });\n return insertedChart?.chartView.chartDefinition.requiredFeatures;\n }\n case NavigationContentType.FULL_CUSTOM_VIEW: {\n const view = fullCustomViews?.find(v => v.ref === viewRef);\n return view?.requiredFeatures;\n }\n case NavigationContentType.FLOWS_ACTORS_VIEW: {\n const view = flowsActorsViews?.find(v => v.ref === viewRef);\n return view?.requiredFeatures;\n }\n case NavigationContentType.EXECUTION_VIEW: {\n const view = resolveExecutionViewDefinition({\n viewRef,\n registry,\n });\n return view?.requiredFeatures;\n }\n default:\n return undefined;\n }\n }, [viewRef, contentType, compositeViews, fullCustomViews, flowsActorsViews, registry]);\n}\n\n/**\n * Wrapper that extracts viewRef from URL params, syncs navigation state, and renders a View.\n * View components handle resolution from UIContext and not-found rendering internally.\n *\n * useViewRouterSync ensures that on refresh / deep link, the navigation state is populated\n * with the correct view content (similar to useRouterSync for resource operations).\n *\n * Includes FeatureRouteGuard: looks up the view's `requiredFeatures` from UIContext\n * and gates access based on the feature availability policy.\n */\nconst ViewRouteWrapper: React.FC<{\n ViewComponent: React.ComponentType<any>;\n contentType: NavigationContentType;\n viewProps?: Record<string, unknown>;\n}> = ({ ViewComponent, contentType, viewProps }) => {\n const { viewRef } = useParams<{ viewRef: string }>();\n useViewRouterSync(viewRef, contentType);\n\n // Look up view's requiredFeatures from UIContext\n const viewRequiredFeatures = useViewRequiredFeatures(viewRef, contentType);\n return (\n <FeatureRouteGuard requiredFeatures={viewRequiredFeatures}>\n <ViewComponent viewRef={viewRef!} {...viewProps} />\n </FeatureRouteGuard>\n );\n};\n\nconst CompositeRouteWrapper: React.FC<{\n viewProps?: Record<string, unknown>;\n}> = ({ viewProps }) => {\n const { viewRef } = useParams<{ viewRef: string }>();\n const location = useLocation();\n const { compositeViews } = useUI();\n const { registry } = useResourceRegistry();\n const contextResourceIdentifiers = React.useMemo(\n () => extractCompositeRouteContextResourceIdentifiers(new URLSearchParams(location.search)),\n [location.search],\n );\n const compositeView = React.useMemo(() => resolveCompositeViewDefinition({\n viewRef,\n compositeViews,\n registry,\n }), [viewRef, compositeViews, registry]);\n const isRoutableCompositeView = !!viewRef && isStandaloneRoutableResolvedCompositeView(compositeView);\n\n useViewRouterSync(\n isRoutableCompositeView ? viewRef : undefined,\n NavigationContentType.COMPOSITE_VIEW,\n );\n\n const viewRequiredFeatures = useViewRequiredFeatures(\n isRoutableCompositeView ? viewRef : undefined,\n NavigationContentType.COMPOSITE_VIEW,\n );\n if (!isRoutableCompositeView) {\n return <ViewNotFound viewKind=\"composite\" viewRef={viewRef} />;\n }\n return (\n <FeatureRouteGuard requiredFeatures={viewRequiredFeatures}>\n <CompositeView\n viewRef={viewRef}\n contextResourceIdentifiers={contextResourceIdentifiers}\n {...viewProps}\n />\n </FeatureRouteGuard>\n );\n};\n\nconst ExecutionRouteWrapper: React.FC<{\n viewProps?: Record<string, unknown>;\n}> = ({ viewProps }) => {\n const { viewRef } = useParams<{ viewRef: string }>();\n const location = useLocation();\n const { registry } = useResourceRegistry();\n const executionView = React.useMemo(() => resolveExecutionViewDefinition({\n viewRef,\n registry,\n }), [viewRef, registry]);\n const contextResourceIdentifiers = React.useMemo(\n () => extractExecutionRouteContextResourceIdentifiers(new URLSearchParams(location.search)),\n [location.search],\n );\n const isRoutableExecutionView =\n !!viewRef\n && !!executionView\n && isStandaloneRoutableExecutionView(executionView);\n\n useViewRouterSync(\n isRoutableExecutionView ? viewRef : undefined,\n NavigationContentType.EXECUTION_VIEW,\n );\n\n const viewRequiredFeatures = useViewRequiredFeatures(\n isRoutableExecutionView ? viewRef : undefined,\n NavigationContentType.EXECUTION_VIEW,\n );\n\n if (!isRoutableExecutionView) {\n return <ViewNotFound viewKind=\"execution\" viewRef={viewRef} />;\n }\n return (\n <FeatureRouteGuard requiredFeatures={viewRequiredFeatures}>\n <ExecutionView\n viewRef={viewRef}\n contextResourceIdentifiers={contextResourceIdentifiers}\n {...viewProps}\n />\n </FeatureRouteGuard>\n );\n};\n\nconst ChartRouteWrapper: React.FC<{\n viewProps?: Record<string, unknown>;\n}> = ({ viewProps }) => {\n const { viewRef } = useParams<{ viewRef: string }>();\n const location = useLocation();\n const { registry } = useResourceRegistry();\n const contextResourceIdentifiers = React.useMemo(\n () => extractChartRouteContextResourceIdentifiers(new URLSearchParams(location.search)),\n [location.search],\n );\n const urlParamValues = React.useMemo(\n () => extractChartRouteUrlParamValues(new URLSearchParams(location.search)),\n [location.search],\n );\n const resolvedChartRoute = React.useMemo(() => resolveChartRouteState({\n viewRef,\n registry,\n contextResourceIdentifiers,\n urlParamValues,\n }), [viewRef, registry, contextResourceIdentifiers, urlParamValues]);\n\n useChartViewRouterSync(resolvedChartRoute);\n\n if (!resolvedChartRoute) {\n return <ViewNotFound viewKind=\"chart\" viewRef={viewRef} />;\n }\n\n return (\n <FeatureRouteGuard requiredFeatures={resolvedChartRoute.requiredFeatures}>\n <ChartView\n viewRef={resolvedChartRoute.routeViewRef}\n viewDefinition={resolvedChartRoute.viewDefinition}\n contextResourceIdentifiers={resolvedChartRoute.contextResourceIdentifiers}\n urlParamValues={resolvedChartRoute.urlParamValues}\n runtimeDescriptor={resolvedChartRoute.runtimeDescriptor}\n {...viewProps}\n />\n </FeatureRouteGuard>\n );\n};\n\nconst EnginePageRouteWrapper: React.FC<{\n pageRef: EnginePageRef;\n PageComponent: React.FC;\n}> = ({ pageRef, PageComponent }) => {\n useEnginePageRouterSync(pageRef);\n return <PageComponent />;\n};\n\n/**\n * Route element for the unified Settings Hub paths (`/settings`,\n * `/settings/:sectionRef`). The hub itself is an overlay reconciled from the URL\n * by `useSettingsHubOverlaySync` (mounted once in `NavigationContentAreas`), so\n * this element only renders the PRIMARY underlay shown on a cold deep-link\n * (`AppLayout_Home`). In-session, the persisted PRIMARY surface stays beneath the\n * hub, so this fallback is ignored.\n */\nconst SettingsRouteWrapper: React.FC = () => <AppLayout_Home />;\n\n/**\n * The route element of a public governed-document page: the release a link named, read from the query string, handed\n * to the page (#3187). The page stays free of the router; this is the one place the URL is read.\n */\nfunction PublicGovernedDocumentRoute({ documentRef }: { readonly documentRef: string }): React.JSX.Element {\n const [searchParams] = useSearchParams();\n const namedRelease = readPublicGovernedDocumentReleaseQuery(searchParams);\n return <PublicLayout_Terms documentRef={documentRef} {...(namedRelease ? { namedRelease } : {})} />;\n}\n\nexport const AppRouter: React.FC = () => {\n const { registry } = useResourceRegistry();\n const isDevelopment = envLoader.isDevelopment();\n\n // Build resource-based routes for authenticated area\n const resourceRouteElements: React.ReactElement[] = [];\n\n Object.values<AnyFrontendResourceConfiguration>(registry.resourceConfigurations).forEach(rc => {\n const operations = Array.isArray(rc.operations) ? rc.operations : [];\n operations.forEach(operation => {\n // Only add routes for operations that are addressable in the current frontend app\n if (!isOperationAddressable(operation.operationFrontendConfig)) return;\n const routePaths = ResourcesConfigOperationsUrlsBuilderUtils.buildOperationFrontendRoutePaths(rc, operation, registry.allResourceFieldIdentifiers);\n const layoutKind = resolveResourceOperationLayoutKind(operation);\n\n // Determine which ResourcePage component to use\n let PageComponent: React.ComponentType<{\n resourceContext: FrontendResourceOperationContext;\n }>;\n\n switch (layoutKind) {\n case 'create': PageComponent = ResourceLayout_Create; break;\n case 'list': PageComponent = ResourceLayout_List; break;\n case 'read': PageComponent = ResourceLayout_Read; break;\n case 'update': PageComponent = ResourceLayout_Update; break;\n case 'search': PageComponent = ResourceLayout_Search; break;\n default: PageComponent = ResourceLayout_Action; break;\n }\n\n // Create routes for all possible parent combinations\n routePaths.forEach((routePath, pathIndex) => {\n const element = (\n <FeatureRouteGuard operation={operation}>\n <ResourcePageWrapper\n resourceType={rc.resourceIdentifier}\n operation={operation}\n PageComponent={PageComponent}\n routePathParameters={routePath.parameters}\n />\n </FeatureRouteGuard>\n );\n\n const routeKey = `${rc.resourceIdentifier}-${String(operation.operationIdentifier)}-${pathIndex}`;\n resourceRouteElements.push(\n <Route key={routeKey} path={routePath.url} element={element} errorElement={<RouterErrorBoundary />} />\n );\n });\n });\n });\n\n return (\n <>\n <NavigationRequestBridge />\n <Routes>\n {/* ========================================\n PUBLIC ROUTES - No authentication required\n ======================================== */}\n\n {/* OAuth2 callback — shared across all app types */}\n <Route\n path={CommonRoutePaths.authCallback}\n element={<AuthPage_AuthCallback />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* Federated re-authentication landing, inside the step-up dialog's popup (#1441) */}\n <Route\n path={CommonRoutePaths.reAuthenticationCallback}\n element={<AuthPage_ReAuthenticationCallback />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* Magic link verification — shared across all app types */}\n <Route\n path={CommonRoutePaths.magicLinkVerify}\n element={<AuthPage_MagicLinkVerify />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* MFA challenge — shared across all app types, serves all first-factor methods */}\n <Route\n path={CommonRoutePaths.mfaChallenge}\n element={<AuthPage_MfaChallenge />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* MFA enrollment required — shown when MFA is mandated but user has no enrolled methods */}\n <Route\n path={CommonRoutePaths.enrollmentRequired}\n element={<AuthPage_EnrollmentRequired />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* Organization onboarding — an account parked at ONBOARDING_PENDING names the organization it owes (#1090) */}\n <Route\n path={CommonRoutePaths.organizationOnboarding}\n element={<AuthPage_OrganizationOnboarding />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* One-off session exchange — shared across all app types */}\n <Route\n path={CommonRoutePaths.oneOffSession}\n element={<AuthPage_OneOffSession />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* File-upload-grant drop page — public, the grant token in the URL is the only credential */}\n <Route\n path={CommonRoutePaths.fileUploadGrant}\n element={<FilesPage_UploadGrant />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* Cross-frontend handoff exchange landing — cross-app-jwt-propagation Step 5 */}\n <Route\n path={CommonRoutePaths.authExchange}\n element={<AuthPage_AuthExchange />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/*\n * Public governed-document pages. Issue #168.\n *\n * Both paths have been declared in `CommonRoutePaths` since the compliance vocabulary\n * landed, and NEITHER was mounted — `/privacy` and `/terms` answered the not-found route in\n * every application, while the component they name had no implementation at all.\n *\n * One component serves both: it takes the document ref as a prop and reads the application's\n * own `compliance.publicDocuments`, so an application adding a third public document adds a\n * route rather than a component. A document never released shows its latest draft, marked\n * as a draft. Otherwise it fails CLOSED — nothing in force renders an unavailable notice,\n * never a partial document.\n *\n * Whether an unapproved release may be shown is NOT decided here. It is the application's\n * approval gate, `compliance.governedDocumentApprovalGate`, which the page reads alongside\n * every acceptance surface so the page cannot be armed alone (#1565). It used to be a prop\n * this route declined to pass. Arming it is part of Gate 3's membership test (\"an application\n * may face a real user\") — see `.claude/rules/one-source-of-truth.md` D5.\n */}\n {/*\n * Mounted FROM the pairing rather than beside it. `PUBLIC_GOVERNED_DOCUMENT_ROUTE_PATHS` is\n * total over `PUBLIC_GOVERNED_DOCUMENT_REFS`, and the registration form reads the same map to\n * link a required document to the page that renders it — so the two readers cannot disagree,\n * and a third public document gets its route by joining the vocabulary.\n */}\n {Object.entries(PUBLIC_GOVERNED_DOCUMENT_ROUTE_PATHS).map(([documentRef, path]) => (\n <Route\n key={documentRef}\n path={path}\n element={<PublicGovernedDocumentRoute documentRef={documentRef} />}\n errorElement={<RouterErrorBoundary />}\n />\n ))}\n {/*\n * The legal notice (imprint), #2588. Mounted for every application, from the same atom the marketing website links\n * it from: the page itself says when the operator owes none, so a link followed in error lands on a statement\n * rather than a 404.\n */}\n <Route path={LEGAL_NOTICE_ROUTE_PATH} element={<PublicLayout_LegalNotice />} errorElement={<RouterErrorBoundary />} />\n\n {/* Public auth routes — always present; auth behavior is driven by AppConfiguration_Shared.auth */}\n <Route\n path={CommonRoutePaths.login}\n element={<AuthPage_Main />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.register}\n element={<AuthPage_Register />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.passwordLost}\n element={<AuthPage_PasswordLost />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.oauthConsent}\n element={<AuthPage_OAuthConsent />}\n errorElement={<RouterErrorBoundary />}\n />\n {/* Chat-link page (#2660): public, self-redirects to sign in; links a chat account on explicit confirmation. */}\n <Route\n path={CommonRoutePaths.chatIdentityLink}\n element={<AuthPage_ChatIdentityLink />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.oauthLoggedOut}\n element={<AuthPage_OAuthLoggedOut />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.oauthLogoutConfirm}\n element={<AuthPage_OAuthLogoutConfirm />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.invitation}\n element={<AuthPage_Invitation />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.confirmEmail}\n element={<AuthPage_ConfirmEmail />}\n errorElement={<RouterErrorBoundary />}\n />\n\n\n\n\n\n\n {/* ========================================\n AUTHENTICATED ROUTES - Wrapped with MainContainer\n Uses Layout Route pattern for consistent shell\n ======================================== */}\n <Route element={<AppLayout_AuthenticatedRoute />} errorElement={<RouterErrorBoundary />}>\n {/* Home route */}\n <Route\n path={CommonRoutePaths.home}\n element={<EnginePageRouteWrapper pageRef={EnginePageRef.HOME} PageComponent={AppLayout_Home} />}\n errorElement={<RouterErrorBoundary />}\n />\n {/* The engine's decision inbox (#2527): mounted for every application; its row is offered where a decision can wait. */}\n <Route\n path={CommonRoutePaths.decisions}\n element={<EnginePageRouteWrapper pageRef={EnginePageRef.DECISIONS} PageComponent={AppLayout_DecisionInbox} />}\n errorElement={<RouterErrorBoundary />}\n />\n {/* A link to one of the person's conversations (#4013): sends them on to the view that shows its system. */}\n <Route\n path={CommonRoutePaths.conversationLink}\n element={<ConversationLinkPage />}\n errorElement={<RouterErrorBoundary />}\n />\n {/* Unified Settings Hub — overlay reconstructed from URL. `/settings/security`\n now opens the hub at its Security section (the standalone security page is\n migrated into the hub as a panel). */}\n <Route\n path={CommonRoutePaths.settings}\n element={<SettingsRouteWrapper />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.settingsSection}\n element={<SettingsRouteWrapper />}\n errorElement={<RouterErrorBoundary />}\n />\n {/* `/settings/:sectionRef/:subTabRef` — the same wrapper: the hub is reconstructed from the\n URL by `useSettingsHubOverlaySync`, so this route exists to MATCH the deeper path rather\n than to render anything different. Without it the path fell through to the router's\n catch-all and the overlay was never reconciled. */}\n <Route\n path={CommonRoutePaths.settingsSectionSubTab}\n element={<SettingsRouteWrapper />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* View routes — View components resolve definitions from UIContext internally */}\n <Route\n path=\"/composite/:viewRef\"\n element={<CompositeRouteWrapper />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path=\"/custom/:viewRef\"\n element={<ViewRouteWrapper ViewComponent={FullCustomView} contentType={NavigationContentType.FULL_CUSTOM_VIEW} />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path=\"/flows-actors/:viewRef\"\n element={<ViewRouteWrapper ViewComponent={FlowsActorsView} contentType={NavigationContentType.FLOWS_ACTORS_VIEW} />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path=\"/execution/:viewRef\"\n element={\n <ExecutionRouteWrapper\n viewProps={{ navigationZone: NavigationZone.PRIMARY }}\n />\n }\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path=\"/chart/:viewRef\"\n element={\n <React.Suspense fallback={<div style={{ padding: '2rem', textAlign: 'center', color: 'var(--muted-foreground, #737373)' }}>Loading chart...</div>}>\n <ChartRouteWrapper />\n </React.Suspense>\n }\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* Resource routes - nested inside authenticated layout */}\n {resourceRouteElements}\n </Route>\n\n {/* Fallback - handled by RouterErrorBoundary */}\n <Route\n path=\"*\"\n element={<RouterErrorBoundary />}\n />\n </Routes>\n </>\n );\n};\n"]}
|
|
@@ -77,6 +77,12 @@ export declare const CommonRoutePaths: {
|
|
|
77
77
|
* on. Placed by the engine for an application whose agents can wait on a person's decision.
|
|
78
78
|
*/
|
|
79
79
|
readonly decisions: "/decisions";
|
|
80
|
+
/**
|
|
81
|
+
* The link to one of the signed-in person's conversations (#4013), which a notice or an email about the conversation
|
|
82
|
+
* opens: it sends the person on to the view the application shows that conversation's system in. Derived from the
|
|
83
|
+
* shared `CONVERSATION_LINK_PAGE_PATH`, so the link the backend writes and the route mounted here cannot disagree.
|
|
84
|
+
*/
|
|
85
|
+
readonly conversationLink: "/conversation";
|
|
80
86
|
/** Unified Settings Hub (overlay) — opened at its default section. `/settings/security` resolves here too (hub at its Security section). */
|
|
81
87
|
readonly settings: "/settings";
|
|
82
88
|
/** Unified Settings Hub (overlay) — opened at a specific section. URL-addressable for deep-link reconstruction. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.frontend.definitions.d.ts","sourceRoot":"","sources":["../../../../src/core/runtime/routes.frontend.definitions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"routes.frontend.definitions.d.ts","sourceRoot":"","sources":["../../../../src/core/runtime/routes.frontend.definitions.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,gBAAgB;IAC3B;;;;OAIG;;;;;;;IAOH;;;;;;OAMG;;IAEH,2FAA2F;;IAE3F;;;;;;;OAOG;;IAEH;;;;;;OAMG;;IAEH;;;;;;;OAOG;;IAEH;;;;OAIG;;IAEH;;;;;;;OAOG;;IAEH;;;;OAIG;;;;;IAKH,oMAAoM;;IAGpM;;;OAGG;;IAEH;;;;OAIG;;IAEH,4IAA4I;;IAE5I,mHAAmH;;IAEnH;;;;;;;;OAQG;;IAGH,wFAAwF;;IAGxF;;;;OAIG;;IAGH;;;;;;;;;;;;;;;;;;;;;;;OAuBG;;;;CAMK,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,gBAAgB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { APPLICATION_ENTRY_POINT_PATHS, APPLICATION_SETTINGS_PATH, ApplicationEntryPoint, CHAT_IDENTITY_LINK_PAGE_PATH, FILE_UPLOAD_GRANT_PAGE_PATH, HUMAN_DECISION_INBOX_PAGE_PATH, REAUTHENTICATION_CALLBACK_PAGE_PATH, PUBLIC_GOVERNED_DOCUMENT_REFS, PUBLIC_GOVERNED_DOCUMENT_ROUTE_PATHS, } from '@wildo-ai/saas-models';
|
|
1
|
+
import { APPLICATION_ENTRY_POINT_PATHS, APPLICATION_SETTINGS_PATH, ApplicationEntryPoint, CHAT_IDENTITY_LINK_PAGE_PATH, CONVERSATION_LINK_PAGE_PATH, FILE_UPLOAD_GRANT_PAGE_PATH, HUMAN_DECISION_INBOX_PAGE_PATH, REAUTHENTICATION_CALLBACK_PAGE_PATH, PUBLIC_GOVERNED_DOCUMENT_REFS, PUBLIC_GOVERNED_DOCUMENT_ROUTE_PATHS, } from '@wildo-ai/saas-models';
|
|
2
2
|
// Common route paths
|
|
3
3
|
export const CommonRoutePaths = {
|
|
4
4
|
/**
|
|
@@ -79,6 +79,12 @@ export const CommonRoutePaths = {
|
|
|
79
79
|
* on. Placed by the engine for an application whose agents can wait on a person's decision.
|
|
80
80
|
*/
|
|
81
81
|
decisions: HUMAN_DECISION_INBOX_PAGE_PATH,
|
|
82
|
+
/**
|
|
83
|
+
* The link to one of the signed-in person's conversations (#4013), which a notice or an email about the conversation
|
|
84
|
+
* opens: it sends the person on to the view the application shows that conversation's system in. Derived from the
|
|
85
|
+
* shared `CONVERSATION_LINK_PAGE_PATH`, so the link the backend writes and the route mounted here cannot disagree.
|
|
86
|
+
*/
|
|
87
|
+
conversationLink: CONVERSATION_LINK_PAGE_PATH,
|
|
82
88
|
/** Unified Settings Hub (overlay) — opened at its default section. `/settings/security` resolves here too (hub at its Security section). */
|
|
83
89
|
settings: APPLICATION_SETTINGS_PATH,
|
|
84
90
|
/** Unified Settings Hub (overlay) — opened at a specific section. URL-addressable for deep-link reconstruction. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.frontend.definitions.js","sourceRoot":"","sources":["../../../../src/core/runtime/routes.frontend.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,yBAAyB,EACzB,qBAAqB,EACrB,4BAA4B,EAC5B,2BAA2B,EAC3B,8BAA8B,EAC9B,mCAAmC,EACnC,6BAA6B,EAC7B,oCAA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;;;OAuBG;IACH,YAAY,EAAE,gBAAgB;IAE9B,qBAAqB;IACrB,OAAO,EAAE,YAAY;IACrB,eAAe,EAAE,qBAAqB;CAC9B,CAAC","sourcesContent":["import {\n APPLICATION_ENTRY_POINT_PATHS,\n APPLICATION_SETTINGS_PATH,\n ApplicationEntryPoint,\n CHAT_IDENTITY_LINK_PAGE_PATH,\n FILE_UPLOAD_GRANT_PAGE_PATH,\n HUMAN_DECISION_INBOX_PAGE_PATH,\n REAUTHENTICATION_CALLBACK_PAGE_PATH,\n PUBLIC_GOVERNED_DOCUMENT_REFS,\n PUBLIC_GOVERNED_DOCUMENT_ROUTE_PATHS,\n} from '@wildo-ai/saas-models';\n\n// Common route paths\nexport const CommonRoutePaths = {\n /**\n * The three public entry pages are DERIVED from `APPLICATION_ENTRY_POINT_PATHS`: the marketing website links to\n * them (\"Sign in\", \"Get started\") and cannot import this frontend module, so the paths live beside the\n * vocabulary both read.\n */\n home: APPLICATION_ENTRY_POINT_PATHS[ApplicationEntryPoint.HOME],\n login: APPLICATION_ENTRY_POINT_PATHS[ApplicationEntryPoint.SIGN_IN],\n register: APPLICATION_ENTRY_POINT_PATHS[ApplicationEntryPoint.SIGN_UP],\n passwordLost: '/password-lost',\n invitation: '/invitation',\n confirmEmail: '/confirm-email',\n /**\n * Public, exact-release privacy notice. Candidate or unverified bytes are never rendered here.\n *\n * Derived from `PUBLIC_GOVERNED_DOCUMENT_ROUTE_PATHS` rather than spelled here: the consent panel and\n * the marketing website link to the same page and cannot reach this frontend-only module, so the\n * pairing lives beside the document refs where all three readers can see it.\n */\n privacy: PUBLIC_GOVERNED_DOCUMENT_ROUTE_PATHS[PUBLIC_GOVERNED_DOCUMENT_REFS.PRIVACY_NOTICE],\n /** Public, exact-release service terms. Derived for the same reason as `privacy` above. */\n terms: PUBLIC_GOVERNED_DOCUMENT_ROUTE_PATHS[PUBLIC_GOVERNED_DOCUMENT_REFS.SERVICE_TERMS],\n /**\n * OIDC interactive-consent screen (S1). A third-party client that acts on the user's behalf\n * redirects the browser here with the OAuth authorize query (`client_id`, `redirect_uri`,\n * `response_type=code`, `code_challenge`, optional `scope`/`resource`/`state`/`nonce`). The page\n * calls `GET /oauth/authorize` (Bearer), renders the requesting client + scopes + agent resource,\n * and on approve/deny POSTs to `/oauth/authorize/decision` then navigates to the returned\n * `redirect_to`. Public route (self-redirects to login when unauthenticated).\n */\n oauthConsent: '/oauth/consent',\n /**\n * OIDC RP-Initiated Logout landing (revocation-C, §5). Where `GET /oauth/end-session` sends the browser\n * after terminating the End-User's OP session when the request carried NO valid `post_logout_redirect_uri`\n * — the OP displays a \"you have been signed out\" confirmation rather than redirecting back to the relying\n * party. A request WITH a registered `post_logout_redirect_uri` skips this and redirects straight to the RP\n * (with `state` echoed). Public route; the session is already terminated server-side before the browser lands.\n */\n oauthLoggedOut: '/oauth/logged-out',\n /**\n * OIDC RP-Initiated Logout §6 confirmation prompt (revocation-C). Where `GET /oauth/end-session` sends the\n * browser for a NON-trusted logout — anything except a trusted RP presenting a valid `id_token_hint` AND an\n * exact-match registered `post_logout_redirect_uri` (which is logged out directly, no prompt — the\n * Keycloak-style posture). Carries a single-use `?token=` naming the session; the page asks the End-User to\n * confirm, then POSTs the token to `POST /oauth/end-session/confirm` (which terminates the session) and lands\n * on `/oauth/logged-out`. Public route; token-driven (never gates on a Bearer).\n */\n oauthLogoutConfirm: '/oauth/logout-confirm',\n /**\n * Where a signed-in member confirms and completes the one-time link a chat bot (Slack, Microsoft Teams) gave them\n * (#2660). Derived from `CHAT_IDENTITY_LINK_PAGE_PATH`, so the URL the bot writes and the route mounted here cannot\n * disagree. Public route; the page sends a visitor who is not signed in to sign in first, link intact.\n */\n chatIdentityLink: CHAT_IDENTITY_LINK_PAGE_PATH,\n /**\n * Browser-only OAuth2 / SAML callback landing.\n *\n * Renders `AuthPage_AuthCallback`, which extracts `code` from the URL\n * search params and delegates to `handleAuthCodeExchange`. The framework\n * targets web stacks exclusively, so there is no native deep-link\n * variant for this path.\n */\n authCallback: '/auth/callback',\n /**\n * The page a federated re-authentication returns to, inside the step-up dialog's popup (#1441). Derived\n * from the shared `REAUTHENTICATION_CALLBACK_PAGE_PATH`, so the URL the backend redirects to and the\n * route mounted here cannot disagree.\n */\n reAuthenticationCallback: REAUTHENTICATION_CALLBACK_PAGE_PATH,\n magicLinkVerify: '/auth/magic-link/verify',\n mfaChallenge: '/auth/mfa',\n enrollmentRequired: '/auth/enrollment-required',\n /** The organization-name step for an account parked at onboarding (#1090). Carries no session id: the parked session mints, so it stays in the auth context and out of history and request logs. */\n organizationOnboarding: '/auth/organization-onboarding',\n\n /**\n * The engine's decision inbox (#2527, `EnginePageRef.DECISIONS`): every pending decision the signed-in person may act\n * on. Placed by the engine for an application whose agents can wait on a person's decision.\n */\n decisions: HUMAN_DECISION_INBOX_PAGE_PATH,\n /** Unified Settings Hub (overlay) — opened at its default section. `/settings/security` resolves here too (hub at its Security section). */\n settings: APPLICATION_SETTINGS_PATH,\n /** Unified Settings Hub (overlay) — opened at a specific section. URL-addressable for deep-link reconstruction. */\n settingsSection: `${APPLICATION_SETTINGS_PATH}/:sectionRef`,\n /**\n * Unified Settings Hub (overlay) — opened at a specific SUB-TAB of a section.\n *\n * Ten destinations render as sub-tabs and they carry twenty-one panels between them, none of\n * which was addressable before 2026-09-17: `SettingsSubTabs` held the active tab in local state\n * seeded from `subTabs[0]`, so every link to a sub-tabbed section landed on its first tab and\n * \"Single sign-on → Connections\" could not be sent to anybody. That contradicted the hub's own\n * stated contract, which is that the URL is its single source of truth.\n */\n settingsSectionSubTab: `${APPLICATION_SETTINGS_PATH}/:sectionRef/:subTabRef`,\n\n /** W7.3b: One-off session token exchange — public, uses EphemeralSessionTokenStorage */\n oneOffSession: '/one-off-session/:token',\n\n /**\n * Public drop page for a single-use file-upload grant (issue #312, D12). Derived from the shared\n * `FILE_UPLOAD_GRANT_PAGE_PATH` so the URL the backend writes into a grant's `uploadPageUrl` and the\n * route the frontend mounts cannot disagree.\n */\n fileUploadGrant: `${FILE_UPLOAD_GRANT_PAGE_PATH}/:token`,\n\n /**\n * Cross-frontend handoff exchange landing.\n *\n * The cross-frontend handoff issuer (`POST /auth/cross-frontend-handoff`)\n * composes a redirect URL of the shape\n * `<targetPublicUrl>/auth/exchange?code=<token>&return=<encodedReturnPath>`.\n * Every receiving frontend MUST mount a handler at this path. This entry\n * pins the path (and lets `Auth_OneOffSession` in\n * `mode='cross-frontend-handoff'` consume it via the shared `AppRouter`).\n *\n * Distinct from `authCallback` (`/auth/callback`) on purpose — the OAuth2\n * callback URL carries provider-specific query params (`state`, `error`,\n * `error_description`) that are irrelevant to a cross-frontend handoff,\n * and the two flows have distinct telemetry / breadcrumb semantics.\n * Distinct from `oneOffSession` (`/one-off-session/:token`) on purpose —\n * one-off sessions consume W7.3b ephemeral tokens via a different backend\n * endpoint (`/auth/one-off-session/exchange`); cross-frontend handoffs\n * consume AUTH_CODE_EXCHANGE tokens via `/auth/token/exchange`.\n *\n * The query-param form (`?code=` rather than `:token` in the path) matches\n * the docs-site `AuthExchangePage` already mounted at the same path on the\n * docs target — keeping the URL shape uniform across SaaS-app and\n * docs-site receivers means the handoff issuer composes ONE URL shape.\n */\n authExchange: '/auth/exchange',\n\n // Development routes\n devTest: '/_dev/test',\n devThemeGallery: '/_dev/theme-gallery',\n} as const;\n\nexport type CommonRouteKey = keyof typeof CommonRoutePaths;\n\n"]}
|
|
1
|
+
{"version":3,"file":"routes.frontend.definitions.js","sourceRoot":"","sources":["../../../../src/core/runtime/routes.frontend.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,yBAAyB,EACzB,qBAAqB,EACrB,4BAA4B,EAC5B,2BAA2B,EAC3B,2BAA2B,EAC3B,8BAA8B,EAC9B,mCAAmC,EACnC,6BAA6B,EAC7B,oCAAoC,GACrC,MAAM,uBAAuB,CAAC;AAE/B,qBAAqB;AACrB,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B;;;;OAIG;IACH,I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,EAAE,YAAY;IACrB,eAAe,EAAE,qBAAqB;CAC9B,CAAC","sourcesContent":["import {\n APPLICATION_ENTRY_POINT_PATHS,\n APPLICATION_SETTINGS_PATH,\n ApplicationEntryPoint,\n CHAT_IDENTITY_LINK_PAGE_PATH,\n CONVERSATION_LINK_PAGE_PATH,\n FILE_UPLOAD_GRANT_PAGE_PATH,\n HUMAN_DECISION_INBOX_PAGE_PATH,\n REAUTHENTICATION_CALLBACK_PAGE_PATH,\n PUBLIC_GOVERNED_DOCUMENT_REFS,\n PUBLIC_GOVERNED_DOCUMENT_ROUTE_PATHS,\n} from '@wildo-ai/saas-models';\n\n// Common route paths\nexport const CommonRoutePaths = {\n /**\n * The three public entry pages are DERIVED from `APPLICATION_ENTRY_POINT_PATHS`: the marketing website links to\n * them (\"Sign in\", \"Get started\") and cannot import this frontend module, so the paths live beside the\n * vocabulary both read.\n */\n home: APPLICATION_ENTRY_POINT_PATHS[ApplicationEntryPoint.HOME],\n login: APPLICATION_ENTRY_POINT_PATHS[ApplicationEntryPoint.SIGN_IN],\n register: APPLICATION_ENTRY_POINT_PATHS[ApplicationEntryPoint.SIGN_UP],\n passwordLost: '/password-lost',\n invitation: '/invitation',\n confirmEmail: '/confirm-email',\n /**\n * Public, exact-release privacy notice. Candidate or unverified bytes are never rendered here.\n *\n * Derived from `PUBLIC_GOVERNED_DOCUMENT_ROUTE_PATHS` rather than spelled here: the consent panel and\n * the marketing website link to the same page and cannot reach this frontend-only module, so the\n * pairing lives beside the document refs where all three readers can see it.\n */\n privacy: PUBLIC_GOVERNED_DOCUMENT_ROUTE_PATHS[PUBLIC_GOVERNED_DOCUMENT_REFS.PRIVACY_NOTICE],\n /** Public, exact-release service terms. Derived for the same reason as `privacy` above. */\n terms: PUBLIC_GOVERNED_DOCUMENT_ROUTE_PATHS[PUBLIC_GOVERNED_DOCUMENT_REFS.SERVICE_TERMS],\n /**\n * OIDC interactive-consent screen (S1). A third-party client that acts on the user's behalf\n * redirects the browser here with the OAuth authorize query (`client_id`, `redirect_uri`,\n * `response_type=code`, `code_challenge`, optional `scope`/`resource`/`state`/`nonce`). The page\n * calls `GET /oauth/authorize` (Bearer), renders the requesting client + scopes + agent resource,\n * and on approve/deny POSTs to `/oauth/authorize/decision` then navigates to the returned\n * `redirect_to`. Public route (self-redirects to login when unauthenticated).\n */\n oauthConsent: '/oauth/consent',\n /**\n * OIDC RP-Initiated Logout landing (revocation-C, §5). Where `GET /oauth/end-session` sends the browser\n * after terminating the End-User's OP session when the request carried NO valid `post_logout_redirect_uri`\n * — the OP displays a \"you have been signed out\" confirmation rather than redirecting back to the relying\n * party. A request WITH a registered `post_logout_redirect_uri` skips this and redirects straight to the RP\n * (with `state` echoed). Public route; the session is already terminated server-side before the browser lands.\n */\n oauthLoggedOut: '/oauth/logged-out',\n /**\n * OIDC RP-Initiated Logout §6 confirmation prompt (revocation-C). Where `GET /oauth/end-session` sends the\n * browser for a NON-trusted logout — anything except a trusted RP presenting a valid `id_token_hint` AND an\n * exact-match registered `post_logout_redirect_uri` (which is logged out directly, no prompt — the\n * Keycloak-style posture). Carries a single-use `?token=` naming the session; the page asks the End-User to\n * confirm, then POSTs the token to `POST /oauth/end-session/confirm` (which terminates the session) and lands\n * on `/oauth/logged-out`. Public route; token-driven (never gates on a Bearer).\n */\n oauthLogoutConfirm: '/oauth/logout-confirm',\n /**\n * Where a signed-in member confirms and completes the one-time link a chat bot (Slack, Microsoft Teams) gave them\n * (#2660). Derived from `CHAT_IDENTITY_LINK_PAGE_PATH`, so the URL the bot writes and the route mounted here cannot\n * disagree. Public route; the page sends a visitor who is not signed in to sign in first, link intact.\n */\n chatIdentityLink: CHAT_IDENTITY_LINK_PAGE_PATH,\n /**\n * Browser-only OAuth2 / SAML callback landing.\n *\n * Renders `AuthPage_AuthCallback`, which extracts `code` from the URL\n * search params and delegates to `handleAuthCodeExchange`. The framework\n * targets web stacks exclusively, so there is no native deep-link\n * variant for this path.\n */\n authCallback: '/auth/callback',\n /**\n * The page a federated re-authentication returns to, inside the step-up dialog's popup (#1441). Derived\n * from the shared `REAUTHENTICATION_CALLBACK_PAGE_PATH`, so the URL the backend redirects to and the\n * route mounted here cannot disagree.\n */\n reAuthenticationCallback: REAUTHENTICATION_CALLBACK_PAGE_PATH,\n magicLinkVerify: '/auth/magic-link/verify',\n mfaChallenge: '/auth/mfa',\n enrollmentRequired: '/auth/enrollment-required',\n /** The organization-name step for an account parked at onboarding (#1090). Carries no session id: the parked session mints, so it stays in the auth context and out of history and request logs. */\n organizationOnboarding: '/auth/organization-onboarding',\n\n /**\n * The engine's decision inbox (#2527, `EnginePageRef.DECISIONS`): every pending decision the signed-in person may act\n * on. Placed by the engine for an application whose agents can wait on a person's decision.\n */\n decisions: HUMAN_DECISION_INBOX_PAGE_PATH,\n /**\n * The link to one of the signed-in person's conversations (#4013), which a notice or an email about the conversation\n * opens: it sends the person on to the view the application shows that conversation's system in. Derived from the\n * shared `CONVERSATION_LINK_PAGE_PATH`, so the link the backend writes and the route mounted here cannot disagree.\n */\n conversationLink: CONVERSATION_LINK_PAGE_PATH,\n /** Unified Settings Hub (overlay) — opened at its default section. `/settings/security` resolves here too (hub at its Security section). */\n settings: APPLICATION_SETTINGS_PATH,\n /** Unified Settings Hub (overlay) — opened at a specific section. URL-addressable for deep-link reconstruction. */\n settingsSection: `${APPLICATION_SETTINGS_PATH}/:sectionRef`,\n /**\n * Unified Settings Hub (overlay) — opened at a specific SUB-TAB of a section.\n *\n * Ten destinations render as sub-tabs and they carry twenty-one panels between them, none of\n * which was addressable before 2026-09-17: `SettingsSubTabs` held the active tab in local state\n * seeded from `subTabs[0]`, so every link to a sub-tabbed section landed on its first tab and\n * \"Single sign-on → Connections\" could not be sent to anybody. That contradicted the hub's own\n * stated contract, which is that the URL is its single source of truth.\n */\n settingsSectionSubTab: `${APPLICATION_SETTINGS_PATH}/:sectionRef/:subTabRef`,\n\n /** W7.3b: One-off session token exchange — public, uses EphemeralSessionTokenStorage */\n oneOffSession: '/one-off-session/:token',\n\n /**\n * Public drop page for a single-use file-upload grant (issue #312, D12). Derived from the shared\n * `FILE_UPLOAD_GRANT_PAGE_PATH` so the URL the backend writes into a grant's `uploadPageUrl` and the\n * route the frontend mounts cannot disagree.\n */\n fileUploadGrant: `${FILE_UPLOAD_GRANT_PAGE_PATH}/:token`,\n\n /**\n * Cross-frontend handoff exchange landing.\n *\n * The cross-frontend handoff issuer (`POST /auth/cross-frontend-handoff`)\n * composes a redirect URL of the shape\n * `<targetPublicUrl>/auth/exchange?code=<token>&return=<encodedReturnPath>`.\n * Every receiving frontend MUST mount a handler at this path. This entry\n * pins the path (and lets `Auth_OneOffSession` in\n * `mode='cross-frontend-handoff'` consume it via the shared `AppRouter`).\n *\n * Distinct from `authCallback` (`/auth/callback`) on purpose — the OAuth2\n * callback URL carries provider-specific query params (`state`, `error`,\n * `error_description`) that are irrelevant to a cross-frontend handoff,\n * and the two flows have distinct telemetry / breadcrumb semantics.\n * Distinct from `oneOffSession` (`/one-off-session/:token`) on purpose —\n * one-off sessions consume W7.3b ephemeral tokens via a different backend\n * endpoint (`/auth/one-off-session/exchange`); cross-frontend handoffs\n * consume AUTH_CODE_EXCHANGE tokens via `/auth/token/exchange`.\n *\n * The query-param form (`?code=` rather than `:token` in the path) matches\n * the docs-site `AuthExchangePage` already mounted at the same path on the\n * docs target — keeping the URL shape uniform across SaaS-app and\n * docs-site receivers means the handoff issuer composes ONE URL shape.\n */\n authExchange: '/auth/exchange',\n\n // Development routes\n devTest: '/_dev/test',\n devThemeGallery: '/_dev/theme-gallery',\n} as const;\n\nexport type CommonRouteKey = keyof typeof CommonRoutePaths;\n\n"]}
|