@wildo-ai/saas-frontend-lib 1.1.12 → 1.1.14
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/data-display/DisplayValueDispatcher.d.ts.map +1 -1
- package/dist/esm/components/data-display/DisplayValueDispatcher.js +17 -1
- package/dist/esm/components/data-display/DisplayValueDispatcher.js.map +1 -1
- package/dist/esm/components/data-display/approval-seal.d.ts +97 -0
- package/dist/esm/components/data-display/approval-seal.d.ts.map +1 -0
- package/dist/esm/components/data-display/approval-seal.js +208 -0
- package/dist/esm/components/data-display/approval-seal.js.map +1 -0
- package/dist/esm/components/data-display/external-data-provenance/external-data-provenance.frontend.d.ts.map +1 -1
- package/dist/esm/components/data-display/external-data-provenance/external-data-provenance.frontend.js +5 -2
- package/dist/esm/components/data-display/external-data-provenance/external-data-provenance.frontend.js.map +1 -1
- package/dist/esm/components/data-display/formatters/display-field-file.d.ts.map +1 -1
- package/dist/esm/components/data-display/formatters/display-field-file.js +16 -2
- package/dist/esm/components/data-display/formatters/display-field-file.js.map +1 -1
- package/dist/esm/components/flows-actors/approval.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/approval.js +48 -18
- package/dist/esm/components/flows-actors/approval.js.map +1 -1
- package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts.map +1 -1
- package/dist/esm/components/form/automated/ResourceAutomatedForm.js +20 -1
- package/dist/esm/components/form/automated/ResourceAutomatedForm.js.map +1 -1
- package/dist/esm/components/form/chromes/FormFieldChrome.js +1 -1
- package/dist/esm/components/form/chromes/FormFieldChrome.js.map +1 -1
- package/dist/esm/components/form/chromes/field-control-aria.d.ts +8 -1
- package/dist/esm/components/form/chromes/field-control-aria.d.ts.map +1 -1
- package/dist/esm/components/form/chromes/field-control-aria.js +19 -2
- package/dist/esm/components/form/chromes/field-control-aria.js.map +1 -1
- package/dist/esm/components/form/validation-errors/validate-field-url.frontend.d.ts +5 -0
- package/dist/esm/components/form/validation-errors/validate-field-url.frontend.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/validate-field-url.frontend.js +6 -2
- package/dist/esm/components/form/validation-errors/validate-field-url.frontend.js.map +1 -1
- package/dist/esm/components/resources/ResourceCollectionBody_Table.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceCollectionBody_Table.js +8 -1
- package/dist/esm/components/resources/ResourceCollectionBody_Table.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_DangerZone.js +2 -2
- package/dist/esm/components/resources/ResourceLayout_DangerZone.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_RecordSharing.js +2 -2
- package/dist/esm/components/resources/ResourceLayout_RecordSharing.js.map +1 -1
- package/dist/esm/components/resources/ResourceListItemRenderer.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceListItemRenderer.js +6 -1
- package/dist/esm/components/resources/ResourceListItemRenderer.js.map +1 -1
- package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.d.ts.map +1 -1
- package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.js +5 -1
- package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.js.map +1 -1
- package/dist/esm/components/resources/skeleton/DisplayLayout.js +2 -2
- package/dist/esm/components/resources/skeleton/DisplayLayout.js.map +1 -1
- package/dist/esm/components/resources-fields/_presets/resource-reference/ResourceFieldDisplayPreset_ResourceReference_Default.d.ts.map +1 -1
- package/dist/esm/components/resources-fields/_presets/resource-reference/ResourceFieldDisplayPreset_ResourceReference_Default.js +71 -16
- package/dist/esm/components/resources-fields/_presets/resource-reference/ResourceFieldDisplayPreset_ResourceReference_Default.js.map +1 -1
- package/dist/esm/components/sections/surface.d.ts +12 -0
- package/dist/esm/components/sections/surface.d.ts.map +1 -1
- package/dist/esm/components/sections/surface.js +14 -0
- package/dist/esm/components/sections/surface.js.map +1 -1
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts +27 -24
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts.map +1 -1
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.js +27 -33
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.js.map +1 -1
- package/dist/esm/components/views/chart-dashboard/ChartDashboardLayoutEditor.d.ts +37 -0
- package/dist/esm/components/views/chart-dashboard/ChartDashboardLayoutEditor.d.ts.map +1 -0
- package/dist/esm/components/views/chart-dashboard/ChartDashboardLayoutEditor.js +100 -0
- package/dist/esm/components/views/chart-dashboard/ChartDashboardLayoutEditor.js.map +1 -0
- package/dist/esm/components/views/chart-dashboard/ChartDashboardLayoutEditor.labels.d.ts +3 -0
- package/dist/esm/components/views/chart-dashboard/ChartDashboardLayoutEditor.labels.d.ts.map +1 -0
- package/dist/esm/components/views/chart-dashboard/ChartDashboardLayoutEditor.labels.js +34 -0
- package/dist/esm/components/views/chart-dashboard/ChartDashboardLayoutEditor.labels.js.map +1 -0
- package/dist/esm/components/views/chart-dashboard/chart-dashboard-layout.utils.d.ts +47 -0
- package/dist/esm/components/views/chart-dashboard/chart-dashboard-layout.utils.d.ts.map +1 -0
- package/dist/esm/components/views/chart-dashboard/chart-dashboard-layout.utils.js +94 -0
- package/dist/esm/components/views/chart-dashboard/chart-dashboard-layout.utils.js.map +1 -0
- package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts +39 -0
- package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts.map +1 -0
- package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.js +155 -0
- package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.js.map +1 -0
- package/dist/esm/core/app-shell/shell-motion/shell-motion-origins.d.ts.map +1 -1
- package/dist/esm/core/app-shell/shell-motion/shell-motion-origins.js +3 -2
- package/dist/esm/core/app-shell/shell-motion/shell-motion-origins.js.map +1 -1
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.d.ts +15 -0
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.d.ts.map +1 -1
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js +29 -0
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js.map +1 -1
- package/dist/esm/core/app-shell/shell-motion/use-shell-motion.d.ts.map +1 -1
- package/dist/esm/core/app-shell/shell-motion/use-shell-motion.js +2 -2
- package/dist/esm/core/app-shell/shell-motion/use-shell-motion.js.map +1 -1
- package/dist/esm/core/branding/useBrandPresentation.d.ts.map +1 -1
- package/dist/esm/core/branding/useBrandPresentation.js +17 -6
- package/dist/esm/core/branding/useBrandPresentation.js.map +1 -1
- 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 +2 -0
- package/dist/esm/core/components-registry/assert-registry-completeness.frontend.helper.js.map +1 -1
- package/dist/esm/core/execution/useExecutionResourceOperationContextBuilder.d.ts.map +1 -1
- package/dist/esm/core/execution/useExecutionResourceOperationContextBuilder.js +11 -1
- package/dist/esm/core/execution/useExecutionResourceOperationContextBuilder.js.map +1 -1
- package/dist/esm/core/i18n/I18nContext.d.ts.map +1 -1
- package/dist/esm/core/i18n/I18nContext.js +8 -2
- package/dist/esm/core/i18n/I18nContext.js.map +1 -1
- package/dist/esm/core/i18n/component-label-resolution.utils.d.ts.map +1 -1
- package/dist/esm/core/i18n/component-label-resolution.utils.js +6 -1
- package/dist/esm/core/i18n/component-label-resolution.utils.js.map +1 -1
- package/dist/esm/core/monitoring/analytics/AnalyticsContext.d.ts +0 -15
- package/dist/esm/core/monitoring/analytics/AnalyticsContext.d.ts.map +1 -1
- package/dist/esm/core/monitoring/analytics/AnalyticsContext.js +71 -6
- package/dist/esm/core/monitoring/analytics/AnalyticsContext.js.map +1 -1
- package/dist/esm/core/monitoring/analytics/AnalyticsEventBridge.d.ts.map +1 -1
- package/dist/esm/core/monitoring/analytics/AnalyticsEventBridge.js +12 -3
- package/dist/esm/core/monitoring/analytics/AnalyticsEventBridge.js.map +1 -1
- package/dist/esm/core/navigation/NavigationContext.d.ts.map +1 -1
- package/dist/esm/core/navigation/NavigationContext.js +60 -17
- package/dist/esm/core/navigation/NavigationContext.js.map +1 -1
- package/dist/esm/core/navigation/launcher-resolution.d.ts +29 -0
- package/dist/esm/core/navigation/launcher-resolution.d.ts.map +1 -1
- package/dist/esm/core/navigation/launcher-resolution.js +31 -0
- package/dist/esm/core/navigation/launcher-resolution.js.map +1 -1
- package/dist/esm/core/navigation/navigation-controller-internals.d.ts +48 -0
- package/dist/esm/core/navigation/navigation-controller-internals.d.ts.map +1 -1
- package/dist/esm/core/navigation/navigation-controller-internals.js +56 -3
- package/dist/esm/core/navigation/navigation-controller-internals.js.map +1 -1
- package/dist/esm/core/navigation/useNavigationRouterSync.d.ts.map +1 -1
- package/dist/esm/core/navigation/useNavigationRouterSync.js +30 -2
- package/dist/esm/core/navigation/useNavigationRouterSync.js.map +1 -1
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts +34 -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 +41 -0
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js.map +1 -1
- package/dist/esm/core/resources/route-parent-relocation.frontend.utils.d.ts +44 -0
- package/dist/esm/core/resources/route-parent-relocation.frontend.utils.d.ts.map +1 -0
- package/dist/esm/core/resources/route-parent-relocation.frontend.utils.js +63 -0
- package/dist/esm/core/resources/route-parent-relocation.frontend.utils.js.map +1 -0
- package/dist/esm/core/resources/useOperationDirectExecution.d.ts.map +1 -1
- package/dist/esm/core/resources/useOperationDirectExecution.js +45 -6
- package/dist/esm/core/resources/useOperationDirectExecution.js.map +1 -1
- package/dist/esm/core/runtime/AppRouter.d.ts.map +1 -1
- package/dist/esm/core/runtime/AppRouter.js +18 -1
- package/dist/esm/core/runtime/AppRouter.js.map +1 -1
- package/dist/esm/core/security/UserOrgsContext.d.ts.map +1 -1
- package/dist/esm/core/security/UserOrgsContext.js +61 -8
- package/dist/esm/core/security/UserOrgsContext.js.map +1 -1
- package/dist/esm/core/ui/inner-control-activation.utils.d.ts +16 -0
- package/dist/esm/core/ui/inner-control-activation.utils.d.ts.map +1 -0
- package/dist/esm/core/ui/inner-control-activation.utils.js +44 -0
- package/dist/esm/core/ui/inner-control-activation.utils.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-shell-motion.js","sourceRoot":"","sources":["../../../../../src/core/app-shell/shell-motion/use-shell-motion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAC;AAErF,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAElE,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;AAEpF,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,2BAA2B,EAC3B,sBAAsB,EACtB,mBAAmB,EACnB,wBAAwB,EACxB,aAAa,EACb,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,gBAAgB,GAGjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,+BAA+B,EAAE,yBAAyB,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AACpI,OAAO,EAAE,gBAAgB,EAAE,aAAa,EA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C,IAAI,CAAC,CAAC,CAAC;QAC9E,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,CAAC;YAAE,OAAO;QACpD,6GAA6G;QAC7G,IAAI,GAAG,KAAK,gBAAgB,CAAC,QAAQ,IAAI,IAAI,CAAC,WAAW,KAAK,gBAAgB,CAAC,oBAAoB,IAAI,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC;YAC7H,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,6BAA6B,CAAC,CAAC;YAC3D,IAAI,IAAI;gBAAE,KAAK,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QACrF,CAAC;QACD,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;YACtB,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;YAC/B,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;QAC3D,CAAC;IACH,CAAC,CAAC,CAAC;IACH,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;AACnC,CAAC;AACD,sEAAsE","sourcesContent":["import { useEffect, useLayoutEffect, useRef, useState, type RefObject } from 'react';\n\nimport { ShellRegion } from '@wildo-ai/presets-components-models';\n\nimport { NAVIGATION_STRUCTURAL_ZONES } from '../../navigation/navigation.schemas';\nimport { installNavigationCommitWrapper } from '../../navigation/navigation-commit';\nimport type { NavigationContextType } from '../../navigation/NavigationContext';\nimport {\n isShellSidePane,\n SHELL_GHOST_ATTRIBUTE,\n SHELL_GHOST_LAYER_ATTRIBUTE,\n SHELL_OBJECT_ATTRIBUTE,\n SHELL_PANE_SELECTOR,\n shellPaneSelectorForZone,\n shellPaneZone,\n shellRegionSelector,\n ShellGhostKind,\n ShellGhostLayer,\n ShellGhostPose,\n ShellDialogArrival,\n ShellMotionDip,\n ShellPaneArrival,\n ShellPaneResize,\n ShellPlaceChange,\n type ShellMotionAxis,\n type ShellStageRect,\n} from './shell-motion-vocabulary';\nimport { installShellLayoutStylesheet } from './shell-layout-stylesheet';\nimport { createShellViewTransitionCommit, SHELL_VIEW_TRANSITION_CSS, shellViewTransitionsAvailable } from './shell-view-transition';\nimport { cascadeShellRows, flyShellProxy, growShellPane, SHELL_PRESS_ORIGIN_MAX_AGE_MS, slideShellPaneHome, useShellDialogArrival, useShellPressOrigin } from './shell-motion-origins';\n\n/** Every object a layout moves: its own region wrappers, and the navigation panes. */\nconst SHELL_MOTION_OBJECTS = `[${SHELL_OBJECT_ATTRIBUTE}], ${SHELL_PANE_SELECTOR}`;\n\n/**\n * The last laid-out box of every object, kept so a pane that has just been REMOVED or HIDDEN can still be drawn where\n * it was (its ghost leaves from there). A zero-size reading never replaces a real one: a hidden pane measures as\n * nothing, and its last visible box is the one that matters.\n */\nexport const shellStageRects = new WeakMap<Element, ShellStageRect>();\n\n/** An element's layout offset inside `root`, walking the offset-parent chain (transforms are not part of it). */\nexport function offsetWithin(element: HTMLElement, root: HTMLElement): { left: number; top: number } {\n let left = 0;\n let top = 0;\n let node: HTMLElement | null = element;\n while (node && node !== root) {\n left += node.offsetLeft;\n top += node.offsetTop;\n const parent = node.offsetParent as HTMLElement | null;\n if (!parent || (!root.contains(parent) && parent !== root)) break;\n node = parent;\n }\n return { left, top };\n}\n\n/**\n * Measures every object in the stage — the layout's region wrappers and the navigation panes — whenever anything can\n * have moved one: the stage or any object resizing (a sidebar collapsing MOVES the content column without resizing the\n * stage), the DOM changing, the window resizing. Each box lands in {@link shellStageRects}, and `onObject` lets a\n * layout derive something per object from it (the focal plane writes each object's vanishing-point origin).\n *\n * Offsets come from `offsetLeft`/`offsetTop`, which ignore transforms, so an object that is moved right now still\n * reports where it is laid out.\n */\nexport function useShellStageMeasurement(\n rootRef: RefObject<HTMLElement | null>,\n onObject?: (element: HTMLElement, offset: { left: number; top: number }, stage: HTMLElement) => void,\n): void {\n const onObjectRef = useRef(onObject);\n onObjectRef.current = onObject;\n useLayoutEffect(() => {\n const root = rootRef.current;\n if (!root) return undefined;\n let frame = 0;\n // Absent in some environments (a test DOM): the window resize and the mutations below still re-measure.\n const resize = typeof ResizeObserver === 'undefined' ? null : new ResizeObserver(() => schedule());\n const observed = new Set<HTMLElement>();\n const measure = (): void => {\n frame = 0;\n const objects = new Set(root.querySelectorAll<HTMLElement>(SHELL_MOTION_OBJECTS));\n for (const element of objects) if (!observed.has(element)) { resize?.observe(element); observed.add(element); }\n for (const element of observed) if (!objects.has(element)) { resize?.unobserve(element); observed.delete(element); }\n for (const element of objects) {\n const offset = offsetWithin(element, root);\n onObjectRef.current?.(element, offset, root);\n if (element.offsetWidth > 0 && element.offsetHeight > 0) shellStageRects.set(element, { ...offset, width: element.offsetWidth, height: element.offsetHeight });\n }\n };\n const schedule = (): void => {\n if (!frame) frame = requestAnimationFrame(measure);\n };\n measure();\n resize?.observe(root);\n const mutations = new MutationObserver(schedule);\n mutations.observe(root, { childList: true, subtree: true });\n window.addEventListener('resize', schedule);\n return () => {\n cancelAnimationFrame(frame);\n resize?.disconnect();\n mutations.disconnect();\n window.removeEventListener('resize', schedule);\n };\n }, [rootRef]);\n}\n\n/**\n * Which pane is in front: the one last pressed in or focused, or the one that last opened or changed place\n * (`bringForward`). Kept by the layout rather than read from the navigation state's `focusedZone` alone, because that\n * follows only interaction: opening a record beside a list leaves the LIST focused, and a layout brings the new pane\n * forward. The engine's focus state is never written.\n */\nexport function useShellFrontPane(rootRef: RefObject<HTMLElement | null>, focusedZone: string): { zone: string; bringForward: (zone: string) => void } {\n const [zone, setZone] = useState<string>(focusedZone);\n useEffect(() => setZone(focusedZone), [focusedZone]);\n useEffect(() => {\n const root = rootRef.current;\n if (!root) return undefined;\n const fromEvent = (event: Event): void => {\n const target = event.target instanceof Element ? event.target : null;\n const pane = target?.closest(`${shellRegionSelector(ShellRegion.CONTENT)} :is([data-content-area], [data-panel-id^=\"nav-\"])`);\n const name = pane ? shellPaneZone(pane) : undefined;\n if (name) setZone(name);\n };\n root.addEventListener('pointerdown', fromEvent, true);\n root.addEventListener('focusin', fromEvent, true);\n return () => {\n root.removeEventListener('pointerdown', fromEvent, true);\n root.removeEventListener('focusin', fromEvent, true);\n };\n }, [rootRef]);\n return { zone, bringForward: setZone };\n}\n\n/** The part of the navigation state place detection reads. */\nexport type ShellPlaceNavigation = Pick<NavigationContextType, 'state' | 'getTopEntry'>;\n\nconst STRUCTURAL_ZONES: ReadonlySet<string> = new Set(NAVIGATION_STRUCTURAL_ZONES);\n\n/**\n * Reports each structural zone that APPEARS (it held nothing and now holds a place) or CHANGES place (it now shows\n * another URL path). A place is the top entry's URL path — not its id, which is minted again on every push, and not\n * its query string, which carries view state on the same content (a section tab, a list mode). The overlay zone is a\n * dialog, not a pane, and is never reported. Nothing is reported on the first render.\n */\nexport function useShellPlaceChanges(navigation: ShellPlaceNavigation, onPlace: (zone: string, how: ShellPlaceChange) => void): void {\n const zones = Object.keys(navigation.state.zones).filter((zone) => STRUCTURAL_ZONES.has(zone));\n const places = zones.map((zone) => {\n const top = navigation.getTopEntry(zone as Parameters<ShellPlaceNavigation['getTopEntry']>[0]);\n return top ? (top.urlPath?.split(/[?#]/)[0] ?? top.id) : '';\n });\n const signature = zones.map((zone, index) => `${zone}:${places[index]}`).join('|');\n const previous = useRef<Map<string, string> | null>(null);\n const onPlaceRef = useRef(onPlace);\n onPlaceRef.current = onPlace;\n useEffect(() => {\n const current = new Map(zones.map((zone, index) => [zone, places[index] ?? '']));\n const before = previous.current;\n previous.current = current;\n if (!before) return;\n for (const [zone, place] of current) {\n const was = before.get(zone) ?? '';\n if (place === '' || was === place) continue;\n onPlaceRef.current(zone, was === '' ? ShellPlaceChange.APPEARED : ShellPlaceChange.CHANGED);\n }\n // `signature` is the whole dependency: the zones and places are derived from the same render.\n }, [signature]);\n}\n\n/**\n * Makes an element a picture: no ids, no focus, invisible to assistive technology, and none of the markers a query for\n * the REAL pane would find (a document-level lookup of a pane must never return its image). Embedded frames and media\n * are dropped rather than loaded a second time.\n */\nexport function makeShellPicture(element: HTMLElement): void {\n element.setAttribute('aria-hidden', 'true');\n element.setAttribute('inert', '');\n for (const node of [element, ...element.querySelectorAll<HTMLElement>('*')]) {\n for (const attribute of ['id', 'data-content-area', 'data-panel-id', 'data-zone-hidden', 'data-zone-emphasized', 'data-component-area', SHELL_OBJECT_ATTRIBUTE]) node.removeAttribute(attribute);\n }\n for (const media of element.querySelectorAll('iframe, video, audio')) media.remove();\n}\n\nfunction applyStyles(element: HTMLElement, styles: Readonly<Record<string, string>>): void {\n for (const [property, value] of Object.entries(styles)) element.style.setProperty(property, value);\n}\n\n/** Two frames: the first lets the ghost render at its start pose, the second changes it, so the transition plays. */\nfunction afterPaint(run: () => void): void {\n requestAnimationFrame(() => requestAnimationFrame(run));\n}\n\n/**\n * What a stylesheet cannot do alone, because the engine unmounts or hides a pane at once:\n *\n * - **Discard.** A side pane dismissed by its close control is removed from the DOM immediately. The removed node,\n * no longer React's, is re-parented into the FRONT ghost layer at the box it last had, and goes to the axis's\n * `DISCARDED` pose as it fades.\n * - **Expand.** An emphasized pane takes the width and the engine HIDES the others (`data-zone-hidden`). When the axis\n * draws one (`drawsHiddenPanePicture`), a still, inert image of each hidden pane is left in the BACK ghost layer at\n * the axis's `BEHIND` pose. It is a picture, never a\n * control: returning to side by side is the pane's own restore control. The image returns to `REST` and fades when\n * the emphasis ends.\n * - **Swap.** `dip(zone)` plays the axis's `PANE_SWAP` dip on a pane whose content changed in place.\n *\n * Needs {@link useShellStageMeasurement} running on the same stage (the boxes ghosts leave from), and the two ghost\n * layers (`[data-shell-ghost-layer=\"back\"]` and `\"front\"`) inside it. An axis with `durationMs: 0` plays nothing: no\n * discard ghost and no dip. The picture behind an expanded pane is still drawn — a still picture is not motion — at\n * its pose at once, and removed at once.\n */\nexport function useShellPaneMotion(rootRef: RefObject<HTMLElement | null>, axis: ShellMotionAxis): { dip: (zone: string) => void } {\n useLayoutEffect(() => {\n const root = rootRef.current;\n if (!root) return undefined;\n const back = root.querySelector<HTMLElement>(`[${SHELL_GHOST_LAYER_ATTRIBUTE}=\"${ShellGhostLayer.BACK}\"]`);\n const front = root.querySelector<HTMLElement>(`[${SHELL_GHOST_LAYER_ATTRIBUTE}=\"${ShellGhostLayer.FRONT}\"]`);\n if (!back || !front) return undefined;\n const behind = new Map<Element, HTMLElement>();\n const duration = axis.durationMs;\n\n const createGhost = (kind: ShellGhostKind, rect: ShellStageRect): HTMLElement => {\n const ghost = document.createElement('div');\n ghost.setAttribute(SHELL_GHOST_ATTRIBUTE, kind);\n ghost.setAttribute('aria-hidden', 'true');\n Object.assign(ghost.style, { position: 'absolute', left: `${rect.left}px`, top: `${rect.top}px`, width: `${rect.width}px`, height: `${rect.height}px` });\n applyStyles(ghost, axis.ghostPose(ShellGhostPose.REST, { rect, stage: root }));\n return ghost;\n };\n\n const discard = (node: HTMLElement): void => {\n const rect = shellStageRects.get(node);\n // Moved rather than removed (taken out and put back in one batch): it is still on screen, not discarded.\n if (!rect || duration === 0 || node.isConnected) return;\n const ghost = createGhost(ShellGhostKind.DISCARDED, rect);\n makeShellPicture(node);\n ghost.appendChild(node);\n front.appendChild(ghost);\n afterPaint(() => {\n applyStyles(ghost, axis.ghostPose(ShellGhostPose.DISCARDED, { rect, stage: root }));\n ghost.style.opacity = '0';\n });\n setTimeout(() => ghost.remove(), duration + 60);\n };\n\n const syncBehind = (): void => {\n const emphasized = root.querySelector('[data-zone-emphasized]');\n // Only for an axis that draws one (`drawsHiddenPanePicture`). Drawn under reduced motion too: a still picture is\n // not motion. Only its travel and fade are skipped.\n const hidden = emphasized && axis.drawsHiddenPanePicture\n ? [...root.querySelectorAll<HTMLElement>(SHELL_PANE_SELECTOR)].filter((pane) => pane.hasAttribute('data-zone-hidden'))\n : [];\n for (const [pane, ghost] of behind) {\n if (hidden.includes(pane as HTMLElement)) continue;\n behind.delete(pane);\n if (duration === 0) { ghost.remove(); continue; }\n const rect = shellStageRects.get(pane);\n if (rect) applyStyles(ghost, axis.ghostPose(ShellGhostPose.REST, { rect, stage: root }));\n ghost.style.opacity = '0';\n setTimeout(() => ghost.remove(), duration);\n }\n for (const pane of hidden) {\n if (behind.has(pane)) continue;\n const rect = shellStageRects.get(pane);\n if (!rect) continue;\n const ghost = createGhost(ShellGhostKind.BEHIND, rect);\n const copy = pane.cloneNode(true) as HTMLElement;\n makeShellPicture(copy);\n copy.classList.remove('hidden');\n copy.style.width = '100%';\n copy.style.height = '100%';\n ghost.appendChild(copy);\n behind.set(pane, ghost);\n if (duration === 0) {\n // Still: placed straight at its pose, with no transition to play.\n applyStyles(ghost, axis.ghostPose(ShellGhostPose.BEHIND, { rect, stage: root }));\n back.appendChild(ghost);\n continue;\n }\n ghost.style.opacity = '0';\n back.appendChild(ghost);\n afterPaint(() => {\n applyStyles(ghost, axis.ghostPose(ShellGhostPose.BEHIND, { rect, stage: root }));\n ghost.style.opacity = '1';\n });\n }\n };\n\n /** The pane object an emphasis marker belongs to: the zone itself, or the resizable panel holding it. */\n const paneOf = (element: Element): HTMLElement | null =>\n (element.matches(SHELL_PANE_SELECTOR) ? element : element.closest('[data-panel-id^=\"nav-\"]')) as HTMLElement | null;\n\n const observer = new MutationObserver((records) => {\n for (const record of records) {\n // An emphasis given or taken: the pane grows to its new width, or slides home (`ShellPaneResize.GROW`). The\n // stage's last measurement still holds the box it had: measurement waits for the next frame.\n if (record.type === 'attributes' && record.attributeName === 'data-zone-emphasized' && axis.paneResize === ShellPaneResize.GROW) {\n const pane = record.target instanceof Element ? paneOf(record.target) : null;\n const before = pane ? shellStageRects.get(pane) : undefined;\n if (pane && before) {\n if ((record.target as Element).hasAttribute('data-zone-emphasized')) growShellPane(pane, before, root, axis);\n else slideShellPaneHome(pane, before, root, axis);\n }\n continue;\n }\n if (record.type !== 'childList') continue;\n for (const node of record.removedNodes) {\n // A detached node matches no selector that names its ancestors, so a pane is recognised by the box the\n // stage last measured for it: only objects have one. Only a SIDE pane is ever dismissed — the primary pane\n // leaves only when the content remounts (a breakpoint flip), which is not a discard.\n if (node instanceof HTMLElement && shellStageRects.has(node) && isShellSidePane(node)) discard(node);\n }\n }\n syncBehind();\n });\n const content = root.querySelector(shellRegionSelector(ShellRegion.CONTENT)) ?? root;\n observer.observe(content, { childList: true, subtree: true, attributes: true, attributeFilter: ['data-zone-hidden', 'data-zone-emphasized'] });\n syncBehind();\n return () => {\n observer.disconnect();\n for (const ghost of behind.values()) ghost.remove();\n };\n }, [rootRef, axis]);\n\n const dipRef = useRef<(zone: string) => void>(() => undefined);\n useEffect(() => {\n dipRef.current = (zone: string): void => {\n const root = rootRef.current;\n if (!root || axis.durationMs === 0) return;\n const pane = root.querySelector<HTMLElement>(shellPaneSelectorForZone(zone));\n if (!pane || typeof pane.animate !== 'function') return;\n pane.animate([axis.dipPeak(ShellMotionDip.PANE_SWAP, { stage: root })], { duration: axis.durationMs, easing: axis.easing });\n };\n }, [rootRef, axis]);\n return { dip: (zone) => dipRef.current(zone) };\n}\n\n/** A column's width must change by more than this to count as a fold, not a drag tremor. */\nconst COLUMN_RESIZE_THRESHOLD_PX = 24;\n\n/**\n * A side column (the sidebar folding to its rail or unfolding, a utility panel) plays the axis's `COLUMN_RESIZE` dip\n * while the panes re-arrange. The width animates over many frames, so the dip plays once per settled change larger\n * than a few pixels, and at most once per motion. It runs on the layout's OWN wrapper (`[data-shell-object]`).\n */\nexport function useShellColumnMotion(rootRef: RefObject<HTMLElement | null>, axis: ShellMotionAxis): void {\n useEffect(() => {\n const root = rootRef.current;\n if (!root || axis.durationMs === 0 || typeof ResizeObserver === 'undefined') return undefined;\n const columns = [...root.querySelectorAll<HTMLElement>(`[${SHELL_OBJECT_ATTRIBUTE}]`)].filter((wrapper) =>\n wrapper.querySelector(`:scope > ${shellRegionSelector(ShellRegion.SIDEBAR)}, :scope > ${shellRegionSelector(ShellRegion.UTILITY_PANEL)}`));\n const settled = new Map<HTMLElement, number>();\n const lastDip = new Map<HTMLElement, number>();\n const observer = new ResizeObserver((entries) => {\n for (const entry of entries) {\n const wrapper = entry.target as HTMLElement;\n const width = wrapper.offsetWidth;\n const previous = settled.get(wrapper);\n if (previous === undefined || width === 0) { settled.set(wrapper, width); continue; }\n if (Math.abs(width - previous) <= COLUMN_RESIZE_THRESHOLD_PX) continue;\n settled.set(wrapper, width);\n const now = performance.now();\n if (now - (lastDip.get(wrapper) ?? 0) < axis.durationMs) continue;\n lastDip.set(wrapper, now);\n wrapper.animate([axis.dipPeak(ShellMotionDip.COLUMN_RESIZE, { stage: root })], { duration: axis.durationMs, easing: axis.easing });\n }\n });\n for (const column of columns) observer.observe(column);\n return () => observer.disconnect();\n }, [rootRef, axis]);\n}\n\n/** @wildo_source:part:start saas.frontend.app-shell.use-shell-motion facet:layer:frontend facet:family:app-shell facet:audience:app-developer */\n/** What an animated layout's stage passes to {@link useShellMotion}. */\nexport interface ShellMotionOptions {\n /** Which way things move, and for how long. Memoize it: the building blocks re-arm when it changes. */\n axis: ShellMotionAxis;\n /** The navigation state (`useNavigationState()`): its focused zone, its zones' places. */\n navigation: ShellPlaceNavigation & Pick<NavigationContextType, 'focusedZone'>;\n /** Called per object on every measurement, with its offset in the stage (a depth layout derives its origin here). */\n onObjectMeasured?: (element: HTMLElement, offset: { left: number; top: number }, stage: HTMLElement) => void;\n}\n\n/**\n * Every motion building block an animated layout composes, on one stage: the measurement, the front pane, place\n * changes (a pane that opens or changes place comes forward, and a change in place dips), the discard and behind\n * ghosts, the column dip — and, as the axis chooses, a side pane or a dialog growing out of what was pressed, an\n * emphasized pane growing to its width, and rows cascading in (a side pane's arrival as a browser view transition when\n * the axis asks, `paneArrivalByViewTransition`). Returns the zone in front, which the layout exposes (as an attribute) for its stylesheet\n * to recede the others.\n *\n * The stage (`rootRef`) must contain the layout's region wrappers marked `data-shell-object`, the content outlet, and\n * the two ghost layers (`data-shell-ghost-layer=\"back\"` under the regions, `\"front\"` above them).\n */\nexport function useShellMotion(rootRef: RefObject<HTMLElement | null>, { axis, navigation, onObjectMeasured }: ShellMotionOptions): { frontZone: string } {\n useShellStageMeasurement(rootRef, onObjectMeasured);\n const { dip } = useShellPaneMotion(rootRef, axis);\n const front = useShellFrontPane(rootRef, navigation.focusedZone);\n useShellColumnMotion(rootRef, axis);\n const origin = useShellPressOrigin(axis.paneArrival === ShellPaneArrival.FROM_PRESSED_ELEMENT || axis.dialogArrival === ShellDialogArrival.FROM_PRESSED_ELEMENT);\n useShellDialogArrival(rootRef, axis, origin);\n // A side pane's arrival carried out as a browser view transition, where the axis asks and the browser can: the\n // navigation's commit runs inside it. It consumes the press, so the proxy below finds nothing to fly from.\n useEffect(() => {\n if (axis.paneArrival !== ShellPaneArrival.FROM_PRESSED_ELEMENT || !axis.paneArrivalByViewTransition || axis.durationMs === 0) return undefined;\n if (!shellViewTransitionsAvailable()) return undefined;\n const releaseStylesheet = installShellLayoutStylesheet('shell-view-transition', SHELL_VIEW_TRANSITION_CSS);\n const uninstall = installNavigationCommitWrapper(createShellViewTransitionCommit({ stage: () => rootRef.current, origin, axis }));\n return () => {\n uninstall();\n releaseStylesheet();\n };\n }, [rootRef, origin, axis]);\n // One cascade per zone: two panes changing place together must not cancel each other's.\n const cascades = useRef(new Map<string, () => void>());\n useEffect(() => () => { for (const stop of cascades.current.values()) stop(); cascades.current.clear(); }, []);\n useShellPlaceChanges(navigation, (zone, how) => {\n if (how === ShellPlaceChange.CHANGED) dip(zone);\n front.bringForward(zone);\n const root = rootRef.current;\n const pane = root?.querySelector<HTMLElement>(shellPaneSelectorForZone(zone));\n if (!root || !pane || axis.durationMs === 0) return;\n // A side pane that opened grows out of the row pressed to open it (`ShellPaneArrival.FROM_PRESSED_ELEMENT`).\n if (how === ShellPlaceChange.APPEARED && axis.paneArrival === ShellPaneArrival.FROM_PRESSED_ELEMENT && isShellSidePane(pane)) {\n const from = origin.takeRow(SHELL_PRESS_ORIGIN_MAX_AGE_MS);\n if (from) void flyShellProxy(root, from, pane.getBoundingClientRect(), axis, pane);\n }\n if (axis.cascadesRows) {\n cascades.current.get(zone)?.();\n cascades.current.set(zone, cascadeShellRows(pane, axis));\n }\n });\n return { frontZone: front.zone };\n}\n/** @wildo_source:part:end saas.frontend.app-shell.use-shell-motion */\n"]}
|
|
1
|
+
{"version":3,"file":"use-shell-motion.js","sourceRoot":"","sources":["../../../../../src/core/app-shell/shell-motion/use-shell-motion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAC;AAErF,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAElE,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;AAEpF,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,2BAA2B,EAC3B,sBAAsB,EACtB,iCAAiC,EACjC,mBAAmB,EACnB,wBAAwB,EACxB,aAAa,EACb,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,gBAAgB,GAGjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,+BAA+B,EAAE,yBAAyB,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AACpI,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,aAAa,EAAE,6BAA6B,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAEvL,sFAAsF;AACtF,MAAM,oBAAoB,GAAG,IAAI,sBAAsB,MAAM,mBAAmB,EAAE,CAAC;AAEnF;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GA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CAAC,6BAA6B,CAAC,CAAC;YAC3D,IAAI,IAAI;gBAAE,KAAK,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QACrF,CAAC;QACD,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;YACtB,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;YAC/B,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;QAC3D,CAAC;IACH,CAAC,CAAC,CAAC;IACH,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;AACnC,CAAC;AACD,sEAAsE","sourcesContent":["import { useEffect, useLayoutEffect, useRef, useState, type RefObject } from 'react';\n\nimport { ShellRegion } from '@wildo-ai/presets-components-models';\n\nimport { NAVIGATION_STRUCTURAL_ZONES } from '../../navigation/navigation.schemas';\nimport { installNavigationCommitWrapper } from '../../navigation/navigation-commit';\nimport type { NavigationContextType } from '../../navigation/NavigationContext';\nimport {\n isShellSidePane,\n SHELL_GHOST_ATTRIBUTE,\n SHELL_GHOST_LAYER_ATTRIBUTE,\n SHELL_OBJECT_ATTRIBUTE,\n SHELL_PICTURE_STRIPPED_ATTRIBUTES,\n SHELL_PANE_SELECTOR,\n shellPaneSelectorForZone,\n shellPaneZone,\n shellRegionSelector,\n ShellGhostKind,\n ShellGhostLayer,\n ShellGhostPose,\n ShellDialogArrival,\n ShellMotionDip,\n ShellPaneArrival,\n ShellPaneResize,\n ShellPlaceChange,\n type ShellMotionAxis,\n type ShellStageRect,\n} from './shell-motion-vocabulary';\nimport { installShellLayoutStylesheet } from './shell-layout-stylesheet';\nimport { createShellViewTransitionCommit, SHELL_VIEW_TRANSITION_CSS, shellViewTransitionsAvailable } from './shell-view-transition';\nimport { cascadeShellRows, flyShellProxy, growShellPane, SHELL_PRESS_ORIGIN_MAX_AGE_MS, slideShellPaneHome, useShellDialogArrival, useShellPressOrigin } from './shell-motion-origins';\n\n/** Every object a layout moves: its own region wrappers, and the navigation panes. */\nconst SHELL_MOTION_OBJECTS = `[${SHELL_OBJECT_ATTRIBUTE}], ${SHELL_PANE_SELECTOR}`;\n\n/**\n * The last laid-out box of every object, kept so a pane that has just been REMOVED or HIDDEN can still be drawn where\n * it was (its ghost leaves from there). A zero-size reading never replaces a real one: a hidden pane measures as\n * nothing, and its last visible box is the one that matters.\n */\nexport const shellStageRects = new WeakMap<Element, ShellStageRect>();\n\n/** An element's layout offset inside `root`, walking the offset-parent chain (transforms are not part of it). */\nexport function offsetWithin(element: HTMLElement, root: HTMLElement): { left: number; top: number } {\n let left = 0;\n let top = 0;\n let node: HTMLElement | null = element;\n while (node && node !== root) {\n left += node.offsetLeft;\n top += node.offsetTop;\n const parent = node.offsetParent as HTMLElement | null;\n if (!parent || (!root.contains(parent) && parent !== root)) break;\n node = parent;\n }\n return { left, top };\n}\n\n/**\n * Measures every object in the stage — the layout's region wrappers and the navigation panes — whenever anything can\n * have moved one: the stage or any object resizing (a sidebar collapsing MOVES the content column without resizing the\n * stage), the DOM changing, the window resizing. Each box lands in {@link shellStageRects}, and `onObject` lets a\n * layout derive something per object from it (the focal plane writes each object's vanishing-point origin).\n *\n * Offsets come from `offsetLeft`/`offsetTop`, which ignore transforms, so an object that is moved right now still\n * reports where it is laid out.\n */\nexport function useShellStageMeasurement(\n rootRef: RefObject<HTMLElement | null>,\n onObject?: (element: HTMLElement, offset: { left: number; top: number }, stage: HTMLElement) => void,\n): void {\n const onObjectRef = useRef(onObject);\n onObjectRef.current = onObject;\n useLayoutEffect(() => {\n const root = rootRef.current;\n if (!root) return undefined;\n let frame = 0;\n // Absent in some environments (a test DOM): the window resize and the mutations below still re-measure.\n const resize = typeof ResizeObserver === 'undefined' ? null : new ResizeObserver(() => schedule());\n const observed = new Set<HTMLElement>();\n const measure = (): void => {\n frame = 0;\n const objects = new Set(root.querySelectorAll<HTMLElement>(SHELL_MOTION_OBJECTS));\n for (const element of objects) if (!observed.has(element)) { resize?.observe(element); observed.add(element); }\n for (const element of observed) if (!objects.has(element)) { resize?.unobserve(element); observed.delete(element); }\n for (const element of objects) {\n const offset = offsetWithin(element, root);\n onObjectRef.current?.(element, offset, root);\n if (element.offsetWidth > 0 && element.offsetHeight > 0) shellStageRects.set(element, { ...offset, width: element.offsetWidth, height: element.offsetHeight });\n }\n };\n const schedule = (): void => {\n if (!frame) frame = requestAnimationFrame(measure);\n };\n measure();\n resize?.observe(root);\n const mutations = new MutationObserver(schedule);\n mutations.observe(root, { childList: true, subtree: true });\n window.addEventListener('resize', schedule);\n return () => {\n cancelAnimationFrame(frame);\n resize?.disconnect();\n mutations.disconnect();\n window.removeEventListener('resize', schedule);\n };\n }, [rootRef]);\n}\n\n/**\n * Which pane is in front: the one last pressed in or focused, or the one that last opened or changed place\n * (`bringForward`). Kept by the layout rather than read from the navigation state's `focusedZone` alone, because that\n * follows only interaction: opening a record beside a list leaves the LIST focused, and a layout brings the new pane\n * forward. The engine's focus state is never written.\n */\nexport function useShellFrontPane(rootRef: RefObject<HTMLElement | null>, focusedZone: string): { zone: string; bringForward: (zone: string) => void } {\n const [zone, setZone] = useState<string>(focusedZone);\n useEffect(() => setZone(focusedZone), [focusedZone]);\n useEffect(() => {\n const root = rootRef.current;\n if (!root) return undefined;\n const fromEvent = (event: Event): void => {\n const target = event.target instanceof Element ? event.target : null;\n const pane = target?.closest(`${shellRegionSelector(ShellRegion.CONTENT)} :is([data-content-area], [data-panel-id^=\"nav-\"])`);\n const name = pane ? shellPaneZone(pane) : undefined;\n if (name) setZone(name);\n };\n root.addEventListener('pointerdown', fromEvent, true);\n root.addEventListener('focusin', fromEvent, true);\n return () => {\n root.removeEventListener('pointerdown', fromEvent, true);\n root.removeEventListener('focusin', fromEvent, true);\n };\n }, [rootRef]);\n return { zone, bringForward: setZone };\n}\n\n/** The part of the navigation state place detection reads. */\nexport type ShellPlaceNavigation = Pick<NavigationContextType, 'state' | 'getTopEntry'>;\n\nconst STRUCTURAL_ZONES: ReadonlySet<string> = new Set(NAVIGATION_STRUCTURAL_ZONES);\n\n/**\n * Reports each structural zone that APPEARS (it held nothing and now holds a place) or CHANGES place (it now shows\n * another URL path). A place is the top entry's URL path — not its id, which is minted again on every push, and not\n * its query string, which carries view state on the same content (a section tab, a list mode). The overlay zone is a\n * dialog, not a pane, and is never reported. Nothing is reported on the first render.\n */\nexport function useShellPlaceChanges(navigation: ShellPlaceNavigation, onPlace: (zone: string, how: ShellPlaceChange) => void): void {\n const zones = Object.keys(navigation.state.zones).filter((zone) => STRUCTURAL_ZONES.has(zone));\n const places = zones.map((zone) => {\n const top = navigation.getTopEntry(zone as Parameters<ShellPlaceNavigation['getTopEntry']>[0]);\n return top ? (top.urlPath?.split(/[?#]/)[0] ?? top.id) : '';\n });\n const signature = zones.map((zone, index) => `${zone}:${places[index]}`).join('|');\n const previous = useRef<Map<string, string> | null>(null);\n const onPlaceRef = useRef(onPlace);\n onPlaceRef.current = onPlace;\n useEffect(() => {\n const current = new Map(zones.map((zone, index) => [zone, places[index] ?? '']));\n const before = previous.current;\n previous.current = current;\n if (!before) return;\n for (const [zone, place] of current) {\n const was = before.get(zone) ?? '';\n if (place === '' || was === place) continue;\n onPlaceRef.current(zone, was === '' ? ShellPlaceChange.APPEARED : ShellPlaceChange.CHANGED);\n }\n // `signature` is the whole dependency: the zones and places are derived from the same render.\n }, [signature]);\n}\n\n/**\n * Makes an element a picture: no ids, no focus, invisible to assistive technology, and none of the markers a query for\n * the REAL pane would find (a document-level lookup of a pane must never return its image). Embedded frames and media\n * are dropped rather than loaded a second time.\n */\nexport function makeShellPicture(element: HTMLElement): void {\n element.setAttribute('aria-hidden', 'true');\n element.setAttribute('inert', '');\n for (const node of [element, ...element.querySelectorAll<HTMLElement>('*')]) {\n for (const attribute of SHELL_PICTURE_STRIPPED_ATTRIBUTES) node.removeAttribute(attribute);\n }\n for (const media of element.querySelectorAll('iframe, video, audio')) media.remove();\n}\n\nfunction applyStyles(element: HTMLElement, styles: Readonly<Record<string, string>>): void {\n for (const [property, value] of Object.entries(styles)) element.style.setProperty(property, value);\n}\n\n/** Two frames: the first lets the ghost render at its start pose, the second changes it, so the transition plays. */\nfunction afterPaint(run: () => void): void {\n requestAnimationFrame(() => requestAnimationFrame(run));\n}\n\n/**\n * What a stylesheet cannot do alone, because the engine unmounts or hides a pane at once:\n *\n * - **Discard.** A side pane dismissed by its close control is removed from the DOM immediately. The removed node,\n * no longer React's, is re-parented into the FRONT ghost layer at the box it last had, and goes to the axis's\n * `DISCARDED` pose as it fades.\n * - **Expand.** An emphasized pane takes the width and the engine HIDES the others (`data-zone-hidden`). When the axis\n * draws one (`drawsHiddenPanePicture`), a still, inert image of each hidden pane is left in the BACK ghost layer at\n * the axis's `BEHIND` pose. It is a picture, never a\n * control: returning to side by side is the pane's own restore control. The image returns to `REST` and fades when\n * the emphasis ends.\n * - **Swap.** `dip(zone)` plays the axis's `PANE_SWAP` dip on a pane whose content changed in place.\n *\n * Needs {@link useShellStageMeasurement} running on the same stage (the boxes ghosts leave from), and the two ghost\n * layers (`[data-shell-ghost-layer=\"back\"]` and `\"front\"`) inside it. An axis with `durationMs: 0` plays nothing: no\n * discard ghost and no dip. The picture behind an expanded pane is still drawn — a still picture is not motion — at\n * its pose at once, and removed at once.\n */\nexport function useShellPaneMotion(rootRef: RefObject<HTMLElement | null>, axis: ShellMotionAxis): { dip: (zone: string) => void } {\n useLayoutEffect(() => {\n const root = rootRef.current;\n if (!root) return undefined;\n const back = root.querySelector<HTMLElement>(`[${SHELL_GHOST_LAYER_ATTRIBUTE}=\"${ShellGhostLayer.BACK}\"]`);\n const front = root.querySelector<HTMLElement>(`[${SHELL_GHOST_LAYER_ATTRIBUTE}=\"${ShellGhostLayer.FRONT}\"]`);\n if (!back || !front) return undefined;\n const behind = new Map<Element, HTMLElement>();\n const duration = axis.durationMs;\n\n const createGhost = (kind: ShellGhostKind, rect: ShellStageRect): HTMLElement => {\n const ghost = document.createElement('div');\n ghost.setAttribute(SHELL_GHOST_ATTRIBUTE, kind);\n ghost.setAttribute('aria-hidden', 'true');\n Object.assign(ghost.style, { position: 'absolute', left: `${rect.left}px`, top: `${rect.top}px`, width: `${rect.width}px`, height: `${rect.height}px` });\n applyStyles(ghost, axis.ghostPose(ShellGhostPose.REST, { rect, stage: root }));\n return ghost;\n };\n\n const discard = (node: HTMLElement): void => {\n const rect = shellStageRects.get(node);\n // Moved rather than removed (taken out and put back in one batch): it is still on screen, not discarded.\n if (!rect || duration === 0 || node.isConnected) return;\n const ghost = createGhost(ShellGhostKind.DISCARDED, rect);\n makeShellPicture(node);\n ghost.appendChild(node);\n front.appendChild(ghost);\n afterPaint(() => {\n applyStyles(ghost, axis.ghostPose(ShellGhostPose.DISCARDED, { rect, stage: root }));\n ghost.style.opacity = '0';\n });\n setTimeout(() => ghost.remove(), duration + 60);\n };\n\n const syncBehind = (): void => {\n const emphasized = root.querySelector('[data-zone-emphasized]');\n // Only for an axis that draws one (`drawsHiddenPanePicture`). Drawn under reduced motion too: a still picture is\n // not motion. Only its travel and fade are skipped.\n const hidden = emphasized && axis.drawsHiddenPanePicture\n ? [...root.querySelectorAll<HTMLElement>(SHELL_PANE_SELECTOR)].filter((pane) => pane.hasAttribute('data-zone-hidden'))\n : [];\n for (const [pane, ghost] of behind) {\n if (hidden.includes(pane as HTMLElement)) continue;\n behind.delete(pane);\n if (duration === 0) { ghost.remove(); continue; }\n const rect = shellStageRects.get(pane);\n if (rect) applyStyles(ghost, axis.ghostPose(ShellGhostPose.REST, { rect, stage: root }));\n ghost.style.opacity = '0';\n setTimeout(() => ghost.remove(), duration);\n }\n for (const pane of hidden) {\n if (behind.has(pane)) continue;\n const rect = shellStageRects.get(pane);\n if (!rect) continue;\n const ghost = createGhost(ShellGhostKind.BEHIND, rect);\n const copy = pane.cloneNode(true) as HTMLElement;\n makeShellPicture(copy);\n copy.classList.remove('hidden');\n copy.style.width = '100%';\n copy.style.height = '100%';\n ghost.appendChild(copy);\n behind.set(pane, ghost);\n if (duration === 0) {\n // Still: placed straight at its pose, with no transition to play.\n applyStyles(ghost, axis.ghostPose(ShellGhostPose.BEHIND, { rect, stage: root }));\n back.appendChild(ghost);\n continue;\n }\n ghost.style.opacity = '0';\n back.appendChild(ghost);\n afterPaint(() => {\n applyStyles(ghost, axis.ghostPose(ShellGhostPose.BEHIND, { rect, stage: root }));\n ghost.style.opacity = '1';\n });\n }\n };\n\n /** The pane object an emphasis marker belongs to: the zone itself, or the resizable panel holding it. */\n const paneOf = (element: Element): HTMLElement | null =>\n (element.matches(SHELL_PANE_SELECTOR) ? element : element.closest('[data-panel-id^=\"nav-\"]')) as HTMLElement | null;\n\n const observer = new MutationObserver((records) => {\n for (const record of records) {\n // An emphasis given or taken: the pane grows to its new width, or slides home (`ShellPaneResize.GROW`). The\n // stage's last measurement still holds the box it had: measurement waits for the next frame.\n if (record.type === 'attributes' && record.attributeName === 'data-zone-emphasized' && axis.paneResize === ShellPaneResize.GROW) {\n const pane = record.target instanceof Element ? paneOf(record.target) : null;\n const before = pane ? shellStageRects.get(pane) : undefined;\n if (pane && before) {\n if ((record.target as Element).hasAttribute('data-zone-emphasized')) growShellPane(pane, before, root, axis);\n else slideShellPaneHome(pane, before, root, axis);\n }\n continue;\n }\n if (record.type !== 'childList') continue;\n for (const node of record.removedNodes) {\n // A detached node matches no selector that names its ancestors, so a pane is recognised by the box the\n // stage last measured for it: only objects have one. Only a SIDE pane is ever dismissed — the primary pane\n // leaves only when the content remounts (a breakpoint flip), which is not a discard.\n if (node instanceof HTMLElement && shellStageRects.has(node) && isShellSidePane(node)) discard(node);\n }\n }\n syncBehind();\n });\n const content = root.querySelector(shellRegionSelector(ShellRegion.CONTENT)) ?? root;\n observer.observe(content, { childList: true, subtree: true, attributes: true, attributeFilter: ['data-zone-hidden', 'data-zone-emphasized'] });\n syncBehind();\n return () => {\n observer.disconnect();\n for (const ghost of behind.values()) ghost.remove();\n };\n }, [rootRef, axis]);\n\n const dipRef = useRef<(zone: string) => void>(() => undefined);\n useEffect(() => {\n dipRef.current = (zone: string): void => {\n const root = rootRef.current;\n if (!root || axis.durationMs === 0) return;\n const pane = root.querySelector<HTMLElement>(shellPaneSelectorForZone(zone));\n if (!pane || typeof pane.animate !== 'function') return;\n pane.animate([axis.dipPeak(ShellMotionDip.PANE_SWAP, { stage: root })], { duration: axis.durationMs, easing: axis.easing });\n };\n }, [rootRef, axis]);\n return { dip: (zone) => dipRef.current(zone) };\n}\n\n/** A column's width must change by more than this to count as a fold, not a drag tremor. */\nconst COLUMN_RESIZE_THRESHOLD_PX = 24;\n\n/**\n * A side column (the sidebar folding to its rail or unfolding, a utility panel) plays the axis's `COLUMN_RESIZE` dip\n * while the panes re-arrange. The width animates over many frames, so the dip plays once per settled change larger\n * than a few pixels, and at most once per motion. It runs on the layout's OWN wrapper (`[data-shell-object]`).\n */\nexport function useShellColumnMotion(rootRef: RefObject<HTMLElement | null>, axis: ShellMotionAxis): void {\n useEffect(() => {\n const root = rootRef.current;\n if (!root || axis.durationMs === 0 || typeof ResizeObserver === 'undefined') return undefined;\n const columns = [...root.querySelectorAll<HTMLElement>(`[${SHELL_OBJECT_ATTRIBUTE}]`)].filter((wrapper) =>\n wrapper.querySelector(`:scope > ${shellRegionSelector(ShellRegion.SIDEBAR)}, :scope > ${shellRegionSelector(ShellRegion.UTILITY_PANEL)}`));\n const settled = new Map<HTMLElement, number>();\n const lastDip = new Map<HTMLElement, number>();\n const observer = new ResizeObserver((entries) => {\n for (const entry of entries) {\n const wrapper = entry.target as HTMLElement;\n const width = wrapper.offsetWidth;\n const previous = settled.get(wrapper);\n if (previous === undefined || width === 0) { settled.set(wrapper, width); continue; }\n if (Math.abs(width - previous) <= COLUMN_RESIZE_THRESHOLD_PX) continue;\n settled.set(wrapper, width);\n const now = performance.now();\n if (now - (lastDip.get(wrapper) ?? 0) < axis.durationMs) continue;\n lastDip.set(wrapper, now);\n wrapper.animate([axis.dipPeak(ShellMotionDip.COLUMN_RESIZE, { stage: root })], { duration: axis.durationMs, easing: axis.easing });\n }\n });\n for (const column of columns) observer.observe(column);\n return () => observer.disconnect();\n }, [rootRef, axis]);\n}\n\n/** @wildo_source:part:start saas.frontend.app-shell.use-shell-motion facet:layer:frontend facet:family:app-shell facet:audience:app-developer */\n/** What an animated layout's stage passes to {@link useShellMotion}. */\nexport interface ShellMotionOptions {\n /** Which way things move, and for how long. Memoize it: the building blocks re-arm when it changes. */\n axis: ShellMotionAxis;\n /** The navigation state (`useNavigationState()`): its focused zone, its zones' places. */\n navigation: ShellPlaceNavigation & Pick<NavigationContextType, 'focusedZone'>;\n /** Called per object on every measurement, with its offset in the stage (a depth layout derives its origin here). */\n onObjectMeasured?: (element: HTMLElement, offset: { left: number; top: number }, stage: HTMLElement) => void;\n}\n\n/**\n * Every motion building block an animated layout composes, on one stage: the measurement, the front pane, place\n * changes (a pane that opens or changes place comes forward, and a change in place dips), the discard and behind\n * ghosts, the column dip — and, as the axis chooses, a side pane or a dialog growing out of what was pressed, an\n * emphasized pane growing to its width, and rows cascading in (a side pane's arrival as a browser view transition when\n * the axis asks, `paneArrivalByViewTransition`). Returns the zone in front, which the layout exposes (as an attribute) for its stylesheet\n * to recede the others.\n *\n * The stage (`rootRef`) must contain the layout's region wrappers marked `data-shell-object`, the content outlet, and\n * the two ghost layers (`data-shell-ghost-layer=\"back\"` under the regions, `\"front\"` above them).\n */\nexport function useShellMotion(rootRef: RefObject<HTMLElement | null>, { axis, navigation, onObjectMeasured }: ShellMotionOptions): { frontZone: string } {\n useShellStageMeasurement(rootRef, onObjectMeasured);\n const { dip } = useShellPaneMotion(rootRef, axis);\n const front = useShellFrontPane(rootRef, navigation.focusedZone);\n useShellColumnMotion(rootRef, axis);\n const origin = useShellPressOrigin(axis.paneArrival === ShellPaneArrival.FROM_PRESSED_ELEMENT || axis.dialogArrival === ShellDialogArrival.FROM_PRESSED_ELEMENT);\n useShellDialogArrival(rootRef, axis, origin);\n // A side pane's arrival carried out as a browser view transition, where the axis asks and the browser can: the\n // navigation's commit runs inside it. It consumes the press, so the proxy below finds nothing to fly from.\n useEffect(() => {\n if (axis.paneArrival !== ShellPaneArrival.FROM_PRESSED_ELEMENT || !axis.paneArrivalByViewTransition || axis.durationMs === 0) return undefined;\n if (!shellViewTransitionsAvailable()) return undefined;\n const releaseStylesheet = installShellLayoutStylesheet('shell-view-transition', SHELL_VIEW_TRANSITION_CSS);\n const uninstall = installNavigationCommitWrapper(createShellViewTransitionCommit({ stage: () => rootRef.current, origin, axis }));\n return () => {\n uninstall();\n releaseStylesheet();\n };\n }, [rootRef, origin, axis]);\n // One cascade per zone: two panes changing place together must not cancel each other's.\n const cascades = useRef(new Map<string, () => void>());\n useEffect(() => () => { for (const stop of cascades.current.values()) stop(); cascades.current.clear(); }, []);\n useShellPlaceChanges(navigation, (zone, how) => {\n if (how === ShellPlaceChange.CHANGED) dip(zone);\n front.bringForward(zone);\n const root = rootRef.current;\n const pane = root?.querySelector<HTMLElement>(shellPaneSelectorForZone(zone));\n if (!root || !pane || axis.durationMs === 0) return;\n // A side pane that opened grows out of the row pressed to open it (`ShellPaneArrival.FROM_PRESSED_ELEMENT`).\n if (how === ShellPlaceChange.APPEARED && axis.paneArrival === ShellPaneArrival.FROM_PRESSED_ELEMENT && isShellSidePane(pane)) {\n const from = origin.takeRow(SHELL_PRESS_ORIGIN_MAX_AGE_MS);\n if (from) void flyShellProxy(root, from, pane.getBoundingClientRect(), axis, pane);\n }\n if (axis.cascadesRows) {\n cascades.current.get(zone)?.();\n cascades.current.set(zone, cascadeShellRows(pane, axis));\n }\n });\n return { frontZone: front.zone };\n}\n/** @wildo_source:part:end saas.frontend.app-shell.use-shell-motion */\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBrandPresentation.d.ts","sourceRoot":"","sources":["../../../../src/core/branding/useBrandPresentation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD;;;;;;GAMG;AACH,MAAM,WAAW,iBAAiB;IAChC,8FAA8F;IAC9F,IAAI,EAAE,MAAM,CAAC;IACb,kEAAkE;IAClE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;;;OAMG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB,+FAA+F;IAC/F,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,aAAa,GAAG,SAAS,GAAG,iBAAiB,
|
|
1
|
+
{"version":3,"file":"useBrandPresentation.d.ts","sourceRoot":"","sources":["../../../../src/core/branding/useBrandPresentation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD;;;;;;GAMG;AACH,MAAM,WAAW,iBAAiB;IAChC,8FAA8F;IAC9F,IAAI,EAAE,MAAM,CAAC;IACb,kEAAkE;IAClE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;;;OAMG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB,+FAA+F;IAC/F,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,aAAa,GAAG,SAAS,GAAG,iBAAiB,CAoC3F"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useCallback,
|
|
1
|
+
import { useCallback, useState } from 'react';
|
|
2
2
|
import { BrandAssetComposition } from '@wildo-ai/saas-models';
|
|
3
3
|
/**
|
|
4
4
|
* Turns a resolved {@link BrandIdentity} into the presentation decisions a surface needs.
|
|
@@ -19,12 +19,23 @@ export function useBrandPresentation(identity) {
|
|
|
19
19
|
const logoUrl = identity?.logoUrl;
|
|
20
20
|
const name = identity?.name ?? '';
|
|
21
21
|
/*
|
|
22
|
-
*
|
|
23
|
-
* and a latch left set from the previous
|
|
22
|
+
* The failure latch records WHICH URL failed, and is cleared during render the moment the URL
|
|
23
|
+
* changes. A light/dark switch resolves a DIFFERENT asset, and a latch left set from the previous
|
|
24
|
+
* one would suppress a mark that loads perfectly.
|
|
25
|
+
*
|
|
26
|
+
* It used to be a boolean reset by `useEffect(..., [logoUrl])`. That reset ran AFTER the commit
|
|
27
|
+
* that drew the new `<img>`, so an `error` event arriving between the commit and the passive
|
|
28
|
+
* effect was overwritten by the late reset and the broken image stayed (#3784: reproduced on a
|
|
29
|
+
* loaded CPU, about 1 render in 200, which is how a QA runner met it). Keying the latch on the URL
|
|
30
|
+
* removes that window: an error is about the URL its `<img>` was rendered with, an error from a
|
|
31
|
+
* superseded `<img>` names a URL that no longer matches, and the reset happens in the same render
|
|
32
|
+
* that changes the URL rather than one effect later.
|
|
24
33
|
*/
|
|
25
|
-
const [
|
|
26
|
-
|
|
27
|
-
|
|
34
|
+
const [failedUrl, setFailedUrl] = useState(undefined);
|
|
35
|
+
if (failedUrl !== undefined && failedUrl !== logoUrl)
|
|
36
|
+
setFailedUrl(undefined);
|
|
37
|
+
const markFailed = failedUrl !== undefined && failedUrl === logoUrl;
|
|
38
|
+
const onMarkError = useCallback(() => setFailedUrl(logoUrl), [logoUrl]);
|
|
28
39
|
const hasMark = Boolean(logoUrl) && !markFailed;
|
|
29
40
|
const markCarriesName = hasMark && identity?.logoComposition !== undefined && identity.logoComposition !== BrandAssetComposition.SYMBOL;
|
|
30
41
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBrandPresentation.js","sourceRoot":"","sources":["../../../../src/core/branding/useBrandPresentation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"useBrandPresentation.js","sourceRoot":"","sources":["../../../../src/core/branding/useBrandPresentation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AA4C9D;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,oBAAoB,CAAC,QAAmC;IACtE,MAAM,OAAO,GAAG,QAAQ,EAAE,OAAO,CAAC;IAClC,MAAM,IAAI,GAAG,QAAQ,EAAE,IAAI,IAAI,EAAE,CAAC;IAElC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAqB,SAAS,CAAC,CAAC;IAC1E,IAAI,SAAS,KAAK,SAAS,IAAI,SAAS,KAAK,OAAO;QAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IAC9E,MAAM,UAAU,GAAG,SAAS,KAAK,SAAS,IAAI,SAAS,KAAK,OAAO,CAAC;IAEpE,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAExE,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC;IAChD,MAAM,eAAe,GACnB,OAAO,IAAI,QAAQ,EAAE,eAAe,KAAK,SAAS,IAAI,QAAQ,CAAC,eAAe,KAAK,qBAAqB,CAAC,MAAM,CAAC;IAElH,OAAO;QACL,IAAI;QACJ,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS;QACtC,OAAO;QACP,eAAe;QACf,aAAa,EAAE,OAAO,IAAI,QAAQ,EAAE,0BAA0B,KAAK,IAAI;QACvE,OAAO,EAAE,CAAC,OAAO,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;QACtC,WAAW;KACZ,CAAC;AACJ,CAAC","sourcesContent":["import { useCallback, useState } from 'react';\n\nimport { BrandAssetComposition } from '@wildo-ai/saas-models';\n\nimport type { BrandIdentity } from './useBrandIdentity';\n\n/**\n * A brand identity, reduced to the decisions every surface that RENDERS one must take.\n *\n * {@link BrandIdentity} answers \"what did the brand resolve to\". This answers \"what may I therefore\n * draw\", which is a different question with four traps in it — and each trap is a visible defect\n * rather than a crash, so nothing fails loudly when a surface gets one wrong.\n */\nexport interface BrandPresentation {\n /** The application (or shell) name. May be empty only if the identity itself carries none. */\n name: string;\n /** The mark's URL — present only when {@link hasMark} is true. */\n logoUrl?: string;\n /**\n * A mark resolved AND has not failed to load. Distinct from `logoUrl !== undefined`: a URL that\n * 404s is a resolved mark that must not be drawn.\n */\n hasMark: boolean;\n /**\n * The resolved mark CONTAINS the name — a `WORDMARK` or `LOCKUP`, which the resolver's last\n * fallback rung can return for an application that generated no `SYMBOL`.\n *\n * Surfaces must not print the name beside such a mark: it would appear twice. They must also give\n * it intrinsic width rather than a square slot, or it letterboxes.\n */\n markCarriesName: boolean;\n /**\n * Draw the mark LIGHT: it is the single-colour mark on a dark UI (`BrandIdentity.markIsSingleColourOnDarkUi`). A\n * surface renders it as a light silhouette (e.g. `brightness-0 invert`) rather than as the dark asset it is.\n */\n drawMarkLight: boolean;\n /** Nothing identifiable at all — no usable mark and no name. Render no identity affordance. */\n isEmpty: boolean;\n /**\n * Wire to the `<img>`'s `onError`. A brand asset URL comes from configuration and can point at a\n * file that is not there; without this the surface renders a browser broken-image glyph where the\n * product identity should be.\n */\n onMarkError: () => void;\n}\n\n/**\n * Turns a resolved {@link BrandIdentity} into the presentation decisions a surface needs.\n *\n * ## Why this is shared rather than re-derived\n *\n * The sidebar's `BRAND_HEADER` worked these out first, and every one of them is a rule about the\n * DATA rather than about a sidebar: a wordmark contains the name; a failed load must degrade to the\n * no-mark presentation instead of a broken image; the failure latch must reset when the URL changes\n * or a light/dark switch leaves the surface permanently markless; an identity with neither mark nor\n * name must render nothing rather than an empty click target.\n *\n * A second surface presenting a brand needs the same four answers, so they live here once. What is\n * NOT here is anything about layout — a rail collapses, a login page does not — because that is the\n * part that genuinely differs per surface.\n */\nexport function useBrandPresentation(identity: BrandIdentity | undefined): BrandPresentation {\n const logoUrl = identity?.logoUrl;\n const name = identity?.name ?? '';\n\n /*\n * The failure latch records WHICH URL failed, and is cleared during render the moment the URL\n * changes. A light/dark switch resolves a DIFFERENT asset, and a latch left set from the previous\n * one would suppress a mark that loads perfectly.\n *\n * It used to be a boolean reset by `useEffect(..., [logoUrl])`. That reset ran AFTER the commit\n * that drew the new `<img>`, so an `error` event arriving between the commit and the passive\n * effect was overwritten by the late reset and the broken image stayed (#3784: reproduced on a\n * loaded CPU, about 1 render in 200, which is how a QA runner met it). Keying the latch on the URL\n * removes that window: an error is about the URL its `<img>` was rendered with, an error from a\n * superseded `<img>` names a URL that no longer matches, and the reset happens in the same render\n * that changes the URL rather than one effect later.\n */\n const [failedUrl, setFailedUrl] = useState<string | undefined>(undefined);\n if (failedUrl !== undefined && failedUrl !== logoUrl) setFailedUrl(undefined);\n const markFailed = failedUrl !== undefined && failedUrl === logoUrl;\n\n const onMarkError = useCallback(() => setFailedUrl(logoUrl), [logoUrl]);\n\n const hasMark = Boolean(logoUrl) && !markFailed;\n const markCarriesName =\n hasMark && identity?.logoComposition !== undefined && identity.logoComposition !== BrandAssetComposition.SYMBOL;\n\n return {\n name,\n logoUrl: hasMark ? logoUrl : undefined,\n hasMark,\n markCarriesName,\n drawMarkLight: hasMark && identity?.markIsSingleColourOnDarkUi === true,\n isEmpty: !hasMark && name.length === 0,\n onMarkError,\n };\n}\n"]}
|
package/dist/esm/core/components-registry/assert-registry-completeness.frontend.helper.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assert-registry-completeness.frontend.helper.d.ts","sourceRoot":"","sources":["../../../../src/core/components-registry/assert-registry-completeness.frontend.helper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"assert-registry-completeness.frontend.helper.d.ts","sourceRoot":"","sources":["../../../../src/core/components-registry/assert-registry-completeness.frontend.helper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAuI5E,MAAM,WAAW,0BAA0B;IACzC,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,qBAAqB,EAAE,CAAC;CAClC;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,IAAI,0BAA0B,CAoBxE;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,CAAC,EAAE;IACnD;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,GAAG,0BAA0B,CAyB7B"}
|
|
@@ -93,6 +93,8 @@ const KNOWN_NON_REGISTERED_COMPONENT_TYPES = new Set([
|
|
|
93
93
|
FrontendComponentType.HIGH_LEVEL_VIEWS_FLOWS_ACTORS,
|
|
94
94
|
FrontendComponentType.HIGH_LEVEL_VIEWS_EXECUTION,
|
|
95
95
|
FrontendComponentType.HIGH_LEVEL_VIEWS_NOT_FOUND,
|
|
96
|
+
// The chart dashboard's layout editor (#2299) is opened by `ChartDashboard` itself, never resolved by the registry.
|
|
97
|
+
FrontendComponentType.HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR,
|
|
96
98
|
// (b) framework-internal — H-8: app-owned shell slots. The enum entry is
|
|
97
99
|
// kept so that (1) host apps can register their own preset implementation
|
|
98
100
|
// for the slot if/when they need it, and (2) i18n labels remain
|
package/dist/esm/core/components-registry/assert-registry-completeness.frontend.helper.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assert-registry-completeness.frontend.helper.js","sourceRoot":"","sources":["../../../../src/core/components-registry/assert-registry-completeness.frontend.helper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6DAA6D,CAAC;AAEpG,MAAM,MAAM,GAA0B,qBAAqB,CAAC,SAAS,EAAE,CAAC;AAExE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,oCAAoC,GAAuC,IAAI,GAAG,CAAC;IACvF,+EAA+E;IAC/E,gFAAgF;IAChF,qBAAqB,CAAC,mCAAmC;IACzD,qEAAqE;IACrE,qBAAqB,CAAC,2BAA2B;IAEjD,sHAAsH;IACtH,qBAAqB,CAAC,sBAAsB;IAC5C,qBAAqB,CAAC,2BAA2B;IACjD,qBAAqB,CAAC,2BAA2B;IACjD,qBAAqB,CAAC,kBAAkB;IACxC,qBAAqB,CAAC,2BAA2B;IACjD,qBAAqB,CAAC,wBAAwB;IAC9C,qBAAqB,CAAC,wBAAwB;IAC9C,iHAAiH;IACjH,qBAAqB,CAAC,4BAA4B;IAClD,wHAAwH;IACxH,qBAAqB,CAAC,yBAAyB;IAC/C,qBAAqB,CAAC,qBAAqB;IAC3C,qBAAqB,CAAC,qBAAqB;IAC3C,qBAAqB,CAAC,6BAA6B;IACnD,qBAAqB,CAAC,6BAA6B;IACnD,qBAAqB,CAAC,yBAAyB;IAE/C;;;;;;;;;;;;;OAaG;IACH,qBAAqB,CAAC,kBAAkB;IACxC,qBAAqB,CAAC,uBAAuB;IAC7C,qBAAqB,CAAC,aAAa;IACnC,qBAA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8F;QAC9F,8EAA8E,CAAC;IAEjF,MAAM,KAAK,GAAG,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,GAAG,EAAE,QAAQ,KAAK,aAAa,CAAC;IACxF,IAAI,OAAO,EAAE,MAAM,IAAI,KAAK,EAAE,CAAC;QAC7B,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,8CAA8C,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;IAClG,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["/**\n * Tier-1 Registration Completeness Check\n *\n * Validates that every `FrontendComponentType` value that should have a\n * registered preset (Tier-1 — DI/registry-resolved) actually has one.\n *\n * Tier-2 / framework-internal / dispatcher / i18n-bundle-only slots are\n * explicitly deny-listed below. Any new addition to the enum that does\n * NOT belong on that list MUST be registered, otherwise this check fails.\n */\n\nimport { FrontendComponentType } from '@wildo-ai/presets-components-models';\nimport { ComponentRegistryService } from './component-registry.frontend.service';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\n\nconst logger: LoggerFrontendService = LoggerFrontendService.getLogger();\n\n/**\n * Enum entries that intentionally have NO registered preset.\n *\n * Each entry MUST have a one-line justification explaining why it is not\n * registered. Categories:\n *\n * (a) i18n-bundle-only — exists for `useI18n({ component })` lookup\n * but is rendered via direct composition, not via `resolve()`.\n * (b) framework-internal — the framework ships the implementation, so no\n * preset is registered and this check must not demand one. It does NOT\n * mean unswappable: a slot in this category may still consult the\n * registry first and fall back to its built-in (see the guidance\n * renderers below). Read each entry's own justification.\n * (c) deprecated — superseded by another slot, kept only for migration.\n * (d) dispatcher — meta-slot that resolves to one of several concrete\n * slots at render time (HIGH_LEVEL_VIEWS_COMPOSITE etc.).\n * (e) orphan — historical leftover, kept on the enum for back-compat\n * of i18n keys but no longer wired to any wrapper.\n */\nconst KNOWN_NON_REGISTERED_COMPONENT_TYPES: ReadonlySet<FrontendComponentType> = new Set([\n // (a) i18n-bundle-only — ContentSectionContainer uses direct composition. (The\n // SECTION / GROUP / LEGEND slots are now registered ContentSection primitives.)\n FrontendComponentType.LOW_LEVEL_CONTENT_SECTION_CONTAINER,\n // (a) i18n-bundle-only — used by OverlayContainer direct composition\n FrontendComponentType.LOW_LEVEL_OVERLAY_CONTAINER,\n\n // (b) framework-internal — Flows-Actors orchestration shells (engine/saas-frontend-lib/src/components/flows-actors/*)\n FrontendComponentType.LOW_LEVEL_AI_FLOW_NODE,\n FrontendComponentType.LOW_LEVEL_AI_FLOW_EXECUTION,\n FrontendComponentType.LOW_LEVEL_AI_SYSTEM_CATALOG,\n FrontendComponentType.LOW_LEVEL_AI_ACTOR,\n FrontendComponentType.LOW_LEVEL_AI_EXECUTION_PLAN,\n FrontendComponentType.LOW_LEVEL_AI_TASK_DETAIL,\n FrontendComponentType.LOW_LEVEL_AI_TASK_MEMORY,\n // One run's consumption (#2528): drawn in place by `FlowsActors_ExecutionUsage`, the flows-actors shells' shape.\n FrontendComponentType.LOW_LEVEL_AI_EXECUTION_USAGE,\n // A graph drawn read-only from a GraphView (#2529): composed in place by its hosts, behind the flows-actors graph door.\n FrontendComponentType.LOW_LEVEL_AI_GRAPH_VIEWER,\n FrontendComponentType.LOW_LEVEL_AI_APPROVAL,\n FrontendComponentType.LOW_LEVEL_AI_DECISION,\n FrontendComponentType.LOW_LEVEL_AI_EXECUTION_STREAM,\n FrontendComponentType.LOW_LEVEL_AI_ARTIFACT_BROWSER,\n FrontendComponentType.LOW_LEVEL_AI_AGENT_CONFIG,\n\n /**\n * (b) framework-internal — Guidance renderers\n * (`engine/saas-frontend-lib/src/core/guidance/renderers/*`).\n *\n * Deny-listed because the ENGINE registers no preset for them: `GuidanceRenderer` ships working\n * built-in implementations and falls back to them. That is why they belong here and why the\n * check must not demand a registration.\n *\n * They are NOT unswappable, and this entry used to say they were. `GuidanceRenderer` resolves\n * each element type through `GUIDANCE_ELEMENT_COMPONENT_TYPE` against this registry BEFORE its\n * built-in map, so an application that registers a preset under `CorePresetNames.DEFAULT` for any\n * of these types replaces that renderer — which is what the frontend-component specifications for\n * these slots have always advertised.\n */\n FrontendComponentType.GUIDANCE_CHECKLIST,\n FrontendComponentType.GUIDANCE_CHECKLIST_ITEM,\n FrontendComponentType.GUIDANCE_TOUR,\n FrontendComponentType.GUIDANCE_TOOLTIP,\n FrontendComponentType.GUIDANCE_MODAL,\n FrontendComponentType.GUIDANCE_BANNER,\n FrontendComponentType.GUIDANCE_ANNOUNCEMENT,\n FrontendComponentType.GUIDANCE_BADGE,\n FrontendComponentType.GUIDANCE_CARD,\n FrontendComponentType.GUIDANCE_SURVEY,\n FrontendComponentType.GUIDANCE_ONBOARDING_VIEW,\n\n // (b) framework-internal — Progression renderers (engine/saas-frontend-lib/src/components/progression/*)\n FrontendComponentType.PROGRESSION_MILESTONE_TRACKER,\n FrontendComponentType.PROGRESSION_ACHIEVEMENT_BADGE,\n\n // (b) framework-internal — Lifecycle renderers (composed directly in app shells)\n FrontendComponentType.LIFECYCLE_HOME_ACTIVATION_PROGRESS,\n FrontendComponentType.LIFECYCLE_HOME_WELCOME_BACK,\n FrontendComponentType.LIFECYCLE_HOME_DASHBOARD,\n\n // (d) dispatcher — meta-slots that resolve to a concrete view at render time\n FrontendComponentType.HIGH_LEVEL_VIEWS_COMPOSITE,\n FrontendComponentType.HIGH_LEVEL_VIEWS_CHART,\n FrontendComponentType.HIGH_LEVEL_VIEWS_FULL_CUSTOM,\n FrontendComponentType.HIGH_LEVEL_VIEWS_FLOWS_ACTORS,\n FrontendComponentType.HIGH_LEVEL_VIEWS_EXECUTION,\n FrontendComponentType.HIGH_LEVEL_VIEWS_NOT_FOUND,\n\n // (b) framework-internal — H-8: app-owned shell slots. The enum entry is\n // kept so that (1) host apps can register their own preset implementation\n // for the slot if/when they need it, and (2) i18n labels remain\n // addressable. The framework itself does not ship a default preset because\n // the layout shape is intentionally app-owned (test harness page, security\n // settings page).\n FrontendComponentType.APP_LAYOUTS_TEST_COMPONENT,\n FrontendComponentType.APP_LAYOUTS_SECURITY_SETTINGS,\n // The Settings Hub + its bespoke panels are composed by the navigation\n // runtime (NavigationContentRenderer → SettingsHub) and the hub's own panel\n // resolver, NOT the ComponentRegistry. Their enum entries exist for i18n\n // label addressability + spec coverage; the framework ships no default preset.\n FrontendComponentType.APP_LAYOUTS_SETTINGS_HUB,\n FrontendComponentType.APP_LAYOUTS_APPEARANCE_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_INVITATIONS_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_BILLING_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_AUTONOMOUS_AGENTS_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_MODEL_COST_BREAKDOWN_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_REPRESENTATIVE_ACTIVITY_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_AGENT_WORK_EVALUATION_EXPORT_SETTINGS,\n\n // (a) i18n-bundle-only — SurfaceErrorBoundary is rendered directly by `Surface` when the surface\n // policy asks for a boundary, never resolved through the registry. The enum entry exists so the\n // fallback's words are addressable labels.\n FrontendComponentType.APP_LAYOUTS_SURFACE_ERROR_BOUNDARY,\n\n // (e) orphan — H-5: FK editing AND display both flow through the\n // dedicated RESOURCES_FIELDS_RESOURCE_REFERENCE preset (registered by\n // category EDIT/DISPLAY in register-framework-layouts.ts) so there is no\n // separate FORM_FIELD / DISPLAY_FIELD wrapper to register. The enum\n // entries are kept on the schema for consumers that key i18n labels off\n // them; renaming has cross-package blast radius (presets, generated\n // specs, locale bundles), so we treat them as documented orphans rather\n // than removing them.\n FrontendComponentType.LOW_LEVEL_FORM_FIELD_FOREIGN_KEY,\n FrontendComponentType.LOW_LEVEL_DISPLAY_FIELD_FOREIGN_KEY,\n]);\n\nexport interface RegistryCompletenessReport {\n totalEnumValues: number;\n registeredCount: number;\n denyListedCount: number;\n missing: FrontendComponentType[];\n}\n\n/**\n * Compute (without throwing) the set of enum entries that should be\n * registered but are not. Useful for tests and for the boot-time check.\n */\nexport function computeRegistryCompleteness(): RegistryCompletenessReport {\n const allValues = Object.values(FrontendComponentType) as FrontendComponentType[];\n const missing: FrontendComponentType[] = [];\n let registeredCount = 0;\n\n for (const type of allValues) {\n if (KNOWN_NON_REGISTERED_COMPONENT_TYPES.has(type)) continue;\n if (ComponentRegistryService.hasComponentType(type)) {\n registeredCount += 1;\n } else {\n missing.push(type);\n }\n }\n\n return {\n totalEnumValues: allValues.length,\n registeredCount,\n denyListedCount: KNOWN_NON_REGISTERED_COMPONENT_TYPES.size,\n missing,\n };\n}\n\n/**\n * Boot-time guard.\n *\n * Call this once after every `registerDefaultPresets()` /\n * `registerFrameworkLayouts()` invocation completes during app startup.\n *\n * Behaviour:\n * - In `development`: throws a hard error listing all missing entries.\n * The developer must either register the missing component or add\n * its enum value to `KNOWN_NON_REGISTERED_COMPONENT_TYPES` with a\n * justification.\n * - In `production`: logs a warning and returns. Avoids breaking a\n * deployed app over a registration omission, but surfaces it loudly\n * in monitoring.\n *\n * @returns the same report `computeRegistryCompleteness()` returned.\n */\nexport function assertRegistryCompleteness(options?: {\n /**\n * When true, throw even outside `development`. Useful for CI / unit\n * tests that want a strict gate regardless of NODE_ENV.\n */\n strict?: boolean;\n}): RegistryCompletenessReport {\n const report = computeRegistryCompleteness();\n\n if (report.missing.length === 0) {\n return report;\n }\n\n const message =\n `[ComponentRegistry] Tier-1 completeness check failed: ${report.missing.length} ` +\n `FrontendComponentType value(s) have no registered preset.\\n\\n` +\n `Missing entries:\\n${report.missing.map(t => ` - ${t}`).join('\\n')}\\n\\n` +\n `For each missing entry you must EITHER:\\n` +\n ` (1) register a default preset in registerDefaultPresets() / registerFrameworkLayouts(); OR\\n` +\n ` (2) add the enum value to KNOWN_NON_REGISTERED_COMPONENT_TYPES in ` +\n `assert-registry-completeness.frontend.helper.ts with a one-line justification ` +\n `(Tier-1 slots resolve through the registry; Tier-2, framework-internal and i18n-bundle-only ` +\n `slots are rendered directly and are the only ones that belong in that list).`;\n\n const isDev = typeof process !== 'undefined' && process.env?.NODE_ENV === 'development';\n if (options?.strict || isDev) {\n throw new Error(message);\n }\n\n logger.warn('component-registry.completeness-check.failed', { message, missing: report.missing });\n return report;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"assert-registry-completeness.frontend.helper.js","sourceRoot":"","sources":["../../../../src/core/components-registry/assert-registry-completeness.frontend.helper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6DAA6D,CAAC;AAEpG,MAAM,MAAM,GAA0B,qBAAqB,CAAC,SAAS,EAAE,CAAC;AAExE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,oCAAoC,GAAuC,IAAI,GAAG,CAAC;IACvF,+EAA+E;IAC/E,gFAAgF;IAChF,qBAAqB,CAAC,mCAAmC;IACzD,qEAAqE;IACrE,qBAAqB,CAAC,2BAA2B;IAEjD,sHAAsH;IACtH,qBAAqB,CAAC,sBAAsB;IAC5C,qBAAqB,CAAC,2BAA2B;IACjD,qBAAqB,CAAC,2BAA2B;IACjD,qBAAqB,CAAC,kBAAkB;IACxC,qBAAqB,CAAC,2BAA2B;IACjD,qBAAqB,CAAC,wBAAwB;IAC9C,qBAAqB,CAAC,wBAAwB;IAC9C,iHAAiH;IACjH,qBAAqB,CAAC,4BAA4B;IAClD,wHAAwH;IACxH,qBAAqB,CAAC,yBAAyB;IAC/C,qBAAqB,CAAC,qBAAqB;IAC3C,qBAAqB,CAAC,qBAAqB;I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M,CAAC,OAAO,CAAC,MAAM,GAAG;QACjF,+DAA+D;QAC/D,qBAAqB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM;QACzE,2CAA2C;QAC3C,gGAAgG;QAChG,sEAAsE;QACtE,gFAAgF;QAChF,8FAA8F;QAC9F,8EAA8E,CAAC;IAEjF,MAAM,KAAK,GAAG,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,GAAG,EAAE,QAAQ,KAAK,aAAa,CAAC;IACxF,IAAI,OAAO,EAAE,MAAM,IAAI,KAAK,EAAE,CAAC;QAC7B,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,8CAA8C,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;IAClG,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["/**\n * Tier-1 Registration Completeness Check\n *\n * Validates that every `FrontendComponentType` value that should have a\n * registered preset (Tier-1 — DI/registry-resolved) actually has one.\n *\n * Tier-2 / framework-internal / dispatcher / i18n-bundle-only slots are\n * explicitly deny-listed below. Any new addition to the enum that does\n * NOT belong on that list MUST be registered, otherwise this check fails.\n */\n\nimport { FrontendComponentType } from '@wildo-ai/presets-components-models';\nimport { ComponentRegistryService } from './component-registry.frontend.service';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\n\nconst logger: LoggerFrontendService = LoggerFrontendService.getLogger();\n\n/**\n * Enum entries that intentionally have NO registered preset.\n *\n * Each entry MUST have a one-line justification explaining why it is not\n * registered. Categories:\n *\n * (a) i18n-bundle-only — exists for `useI18n({ component })` lookup\n * but is rendered via direct composition, not via `resolve()`.\n * (b) framework-internal — the framework ships the implementation, so no\n * preset is registered and this check must not demand one. It does NOT\n * mean unswappable: a slot in this category may still consult the\n * registry first and fall back to its built-in (see the guidance\n * renderers below). Read each entry's own justification.\n * (c) deprecated — superseded by another slot, kept only for migration.\n * (d) dispatcher — meta-slot that resolves to one of several concrete\n * slots at render time (HIGH_LEVEL_VIEWS_COMPOSITE etc.).\n * (e) orphan — historical leftover, kept on the enum for back-compat\n * of i18n keys but no longer wired to any wrapper.\n */\nconst KNOWN_NON_REGISTERED_COMPONENT_TYPES: ReadonlySet<FrontendComponentType> = new Set([\n // (a) i18n-bundle-only — ContentSectionContainer uses direct composition. (The\n // SECTION / GROUP / LEGEND slots are now registered ContentSection primitives.)\n FrontendComponentType.LOW_LEVEL_CONTENT_SECTION_CONTAINER,\n // (a) i18n-bundle-only — used by OverlayContainer direct composition\n FrontendComponentType.LOW_LEVEL_OVERLAY_CONTAINER,\n\n // (b) framework-internal — Flows-Actors orchestration shells (engine/saas-frontend-lib/src/components/flows-actors/*)\n FrontendComponentType.LOW_LEVEL_AI_FLOW_NODE,\n FrontendComponentType.LOW_LEVEL_AI_FLOW_EXECUTION,\n FrontendComponentType.LOW_LEVEL_AI_SYSTEM_CATALOG,\n FrontendComponentType.LOW_LEVEL_AI_ACTOR,\n FrontendComponentType.LOW_LEVEL_AI_EXECUTION_PLAN,\n FrontendComponentType.LOW_LEVEL_AI_TASK_DETAIL,\n FrontendComponentType.LOW_LEVEL_AI_TASK_MEMORY,\n // One run's consumption (#2528): drawn in place by `FlowsActors_ExecutionUsage`, the flows-actors shells' shape.\n FrontendComponentType.LOW_LEVEL_AI_EXECUTION_USAGE,\n // A graph drawn read-only from a GraphView (#2529): composed in place by its hosts, behind the flows-actors graph door.\n FrontendComponentType.LOW_LEVEL_AI_GRAPH_VIEWER,\n FrontendComponentType.LOW_LEVEL_AI_APPROVAL,\n FrontendComponentType.LOW_LEVEL_AI_DECISION,\n FrontendComponentType.LOW_LEVEL_AI_EXECUTION_STREAM,\n FrontendComponentType.LOW_LEVEL_AI_ARTIFACT_BROWSER,\n FrontendComponentType.LOW_LEVEL_AI_AGENT_CONFIG,\n\n /**\n * (b) framework-internal — Guidance renderers\n * (`engine/saas-frontend-lib/src/core/guidance/renderers/*`).\n *\n * Deny-listed because the ENGINE registers no preset for them: `GuidanceRenderer` ships working\n * built-in implementations and falls back to them. That is why they belong here and why the\n * check must not demand a registration.\n *\n * They are NOT unswappable, and this entry used to say they were. `GuidanceRenderer` resolves\n * each element type through `GUIDANCE_ELEMENT_COMPONENT_TYPE` against this registry BEFORE its\n * built-in map, so an application that registers a preset under `CorePresetNames.DEFAULT` for any\n * of these types replaces that renderer — which is what the frontend-component specifications for\n * these slots have always advertised.\n */\n FrontendComponentType.GUIDANCE_CHECKLIST,\n FrontendComponentType.GUIDANCE_CHECKLIST_ITEM,\n FrontendComponentType.GUIDANCE_TOUR,\n FrontendComponentType.GUIDANCE_TOOLTIP,\n FrontendComponentType.GUIDANCE_MODAL,\n FrontendComponentType.GUIDANCE_BANNER,\n FrontendComponentType.GUIDANCE_ANNOUNCEMENT,\n FrontendComponentType.GUIDANCE_BADGE,\n FrontendComponentType.GUIDANCE_CARD,\n FrontendComponentType.GUIDANCE_SURVEY,\n FrontendComponentType.GUIDANCE_ONBOARDING_VIEW,\n\n // (b) framework-internal — Progression renderers (engine/saas-frontend-lib/src/components/progression/*)\n FrontendComponentType.PROGRESSION_MILESTONE_TRACKER,\n FrontendComponentType.PROGRESSION_ACHIEVEMENT_BADGE,\n\n // (b) framework-internal — Lifecycle renderers (composed directly in app shells)\n FrontendComponentType.LIFECYCLE_HOME_ACTIVATION_PROGRESS,\n FrontendComponentType.LIFECYCLE_HOME_WELCOME_BACK,\n FrontendComponentType.LIFECYCLE_HOME_DASHBOARD,\n\n // (d) dispatcher — meta-slots that resolve to a concrete view at render time\n FrontendComponentType.HIGH_LEVEL_VIEWS_COMPOSITE,\n FrontendComponentType.HIGH_LEVEL_VIEWS_CHART,\n FrontendComponentType.HIGH_LEVEL_VIEWS_FULL_CUSTOM,\n FrontendComponentType.HIGH_LEVEL_VIEWS_FLOWS_ACTORS,\n FrontendComponentType.HIGH_LEVEL_VIEWS_EXECUTION,\n FrontendComponentType.HIGH_LEVEL_VIEWS_NOT_FOUND,\n // The chart dashboard's layout editor (#2299) is opened by `ChartDashboard` itself, never resolved by the registry.\n FrontendComponentType.HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR,\n\n // (b) framework-internal — H-8: app-owned shell slots. The enum entry is\n // kept so that (1) host apps can register their own preset implementation\n // for the slot if/when they need it, and (2) i18n labels remain\n // addressable. The framework itself does not ship a default preset because\n // the layout shape is intentionally app-owned (test harness page, security\n // settings page).\n FrontendComponentType.APP_LAYOUTS_TEST_COMPONENT,\n FrontendComponentType.APP_LAYOUTS_SECURITY_SETTINGS,\n // The Settings Hub + its bespoke panels are composed by the navigation\n // runtime (NavigationContentRenderer → SettingsHub) and the hub's own panel\n // resolver, NOT the ComponentRegistry. Their enum entries exist for i18n\n // label addressability + spec coverage; the framework ships no default preset.\n FrontendComponentType.APP_LAYOUTS_SETTINGS_HUB,\n FrontendComponentType.APP_LAYOUTS_APPEARANCE_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_INVITATIONS_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_BILLING_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_AUTONOMOUS_AGENTS_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_MODEL_COST_BREAKDOWN_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_REPRESENTATIVE_ACTIVITY_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_AGENT_WORK_EVALUATION_EXPORT_SETTINGS,\n\n // (a) i18n-bundle-only — SurfaceErrorBoundary is rendered directly by `Surface` when the surface\n // policy asks for a boundary, never resolved through the registry. The enum entry exists so the\n // fallback's words are addressable labels.\n FrontendComponentType.APP_LAYOUTS_SURFACE_ERROR_BOUNDARY,\n\n // (e) orphan — H-5: FK editing AND display both flow through the\n // dedicated RESOURCES_FIELDS_RESOURCE_REFERENCE preset (registered by\n // category EDIT/DISPLAY in register-framework-layouts.ts) so there is no\n // separate FORM_FIELD / DISPLAY_FIELD wrapper to register. The enum\n // entries are kept on the schema for consumers that key i18n labels off\n // them; renaming has cross-package blast radius (presets, generated\n // specs, locale bundles), so we treat them as documented orphans rather\n // than removing them.\n FrontendComponentType.LOW_LEVEL_FORM_FIELD_FOREIGN_KEY,\n FrontendComponentType.LOW_LEVEL_DISPLAY_FIELD_FOREIGN_KEY,\n]);\n\nexport interface RegistryCompletenessReport {\n totalEnumValues: number;\n registeredCount: number;\n denyListedCount: number;\n missing: FrontendComponentType[];\n}\n\n/**\n * Compute (without throwing) the set of enum entries that should be\n * registered but are not. Useful for tests and for the boot-time check.\n */\nexport function computeRegistryCompleteness(): RegistryCompletenessReport {\n const allValues = Object.values(FrontendComponentType) as FrontendComponentType[];\n const missing: FrontendComponentType[] = [];\n let registeredCount = 0;\n\n for (const type of allValues) {\n if (KNOWN_NON_REGISTERED_COMPONENT_TYPES.has(type)) continue;\n if (ComponentRegistryService.hasComponentType(type)) {\n registeredCount += 1;\n } else {\n missing.push(type);\n }\n }\n\n return {\n totalEnumValues: allValues.length,\n registeredCount,\n denyListedCount: KNOWN_NON_REGISTERED_COMPONENT_TYPES.size,\n missing,\n };\n}\n\n/**\n * Boot-time guard.\n *\n * Call this once after every `registerDefaultPresets()` /\n * `registerFrameworkLayouts()` invocation completes during app startup.\n *\n * Behaviour:\n * - In `development`: throws a hard error listing all missing entries.\n * The developer must either register the missing component or add\n * its enum value to `KNOWN_NON_REGISTERED_COMPONENT_TYPES` with a\n * justification.\n * - In `production`: logs a warning and returns. Avoids breaking a\n * deployed app over a registration omission, but surfaces it loudly\n * in monitoring.\n *\n * @returns the same report `computeRegistryCompleteness()` returned.\n */\nexport function assertRegistryCompleteness(options?: {\n /**\n * When true, throw even outside `development`. Useful for CI / unit\n * tests that want a strict gate regardless of NODE_ENV.\n */\n strict?: boolean;\n}): RegistryCompletenessReport {\n const report = computeRegistryCompleteness();\n\n if (report.missing.length === 0) {\n return report;\n }\n\n const message =\n `[ComponentRegistry] Tier-1 completeness check failed: ${report.missing.length} ` +\n `FrontendComponentType value(s) have no registered preset.\\n\\n` +\n `Missing entries:\\n${report.missing.map(t => ` - ${t}`).join('\\n')}\\n\\n` +\n `For each missing entry you must EITHER:\\n` +\n ` (1) register a default preset in registerDefaultPresets() / registerFrameworkLayouts(); OR\\n` +\n ` (2) add the enum value to KNOWN_NON_REGISTERED_COMPONENT_TYPES in ` +\n `assert-registry-completeness.frontend.helper.ts with a one-line justification ` +\n `(Tier-1 slots resolve through the registry; Tier-2, framework-internal and i18n-bundle-only ` +\n `slots are rendered directly and are the only ones that belong in that list).`;\n\n const isDev = typeof process !== 'undefined' && process.env?.NODE_ENV === 'development';\n if (options?.strict || isDev) {\n throw new Error(message);\n }\n\n logger.warn('component-registry.completeness-check.failed', { message, missing: report.missing });\n return report;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useExecutionResourceOperationContextBuilder.d.ts","sourceRoot":"","sources":["../../../../src/core/execution/useExecutionResourceOperationContextBuilder.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,qBAAqB,EACrB,4BAA4B,EAC5B,KAAK,YAAY,EAClB,MAAM,uBAAuB,CAAC;AAsB/B,OAAO,KAAK,EAGV,gCAAgC,EAEjC,MAAM,+DAA+D,CAAC;AAIvE,KAAK,wCAAwC,GACzC;IACE,mBAAmB,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,4BAA4B,CAAC;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,GACD;IACE,aAAa,EAAE,qBAAqB,CAAC;IACrC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEN,MAAM,MAAM,gCAAgC,GAAG,wCAAwC,GAAG;IACxF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,0BAA0B,CAAC,EAAE,gCAAgC,CAAC,4BAA4B,CAAC,CAAC;IAC5F,0BAA0B,CAAC,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAC1D,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC7C,CAAC;AAEF,MAAM,WAAW,6CAA6C;IAC5D,6BAA6B,EAAE,CAC7B,MAAM,EAAE,gCAAgC,KACrC,gCAAgC,CAAC;CACvC;
|
|
1
|
+
{"version":3,"file":"useExecutionResourceOperationContextBuilder.d.ts","sourceRoot":"","sources":["../../../../src/core/execution/useExecutionResourceOperationContextBuilder.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,qBAAqB,EACrB,4BAA4B,EAC5B,KAAK,YAAY,EAClB,MAAM,uBAAuB,CAAC;AAsB/B,OAAO,KAAK,EAGV,gCAAgC,EAEjC,MAAM,+DAA+D,CAAC;AAIvE,KAAK,wCAAwC,GACzC;IACE,mBAAmB,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,4BAA4B,CAAC;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,GACD;IACE,aAAa,EAAE,qBAAqB,CAAC;IACrC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEN,MAAM,MAAM,gCAAgC,GAAG,wCAAwC,GAAG;IACxF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,0BAA0B,CAAC,EAAE,gCAAgC,CAAC,4BAA4B,CAAC,CAAC;IAC5F,0BAA0B,CAAC,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAC1D,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC7C,CAAC;AAEF,MAAM,WAAW,6CAA6C;IAC5D,6BAA6B,EAAE,CAC7B,MAAM,EAAE,gCAAgC,KACrC,gCAAgC,CAAC;CACvC;AA0ND,wBAAgB,2CAA2C,IAAI,6CAA6C,CA8H3G"}
|
|
@@ -102,7 +102,17 @@ function resolveOperationForTarget(resourceConfig, resourceType, target, registr
|
|
|
102
102
|
registry,
|
|
103
103
|
hasResourceId: frontendResourceUtils.getResourceId(contextResourceIdentifiers[resourceType]) !== '',
|
|
104
104
|
allowBulk: target.allowBulk,
|
|
105
|
-
|
|
105
|
+
/*
|
|
106
|
+
* The RUNTIME addressability check (does the current context carry the ids the operation's route needs?) is what a
|
|
107
|
+
* READ/UPDATE/DELETE must pass to be called at all. Whether the operation also has a routable PAGE is a different
|
|
108
|
+
* question, asked only when the target says so through `requireAddressable`: an execution action EXECUTES or EMBEDS
|
|
109
|
+
* the operation as often as it navigates to it, and an operation surfaced `EMBEDDED` (a dialog, an inline action) is
|
|
110
|
+
* fully callable. Requiring a page here refused every such operation, so the to-do list flow view's inspector, whose
|
|
111
|
+
* DELETE on to-dos, tasks and lists is `EMBEDDED`, offered no Delete at all (#3859). The explicit-operation branch
|
|
112
|
+
* above never asked for a page either. A page-routable variant is still preferred among several candidates
|
|
113
|
+
* (`pickPreferredOperationForCoreSemantic`).
|
|
114
|
+
*/
|
|
115
|
+
requireFrontendAddressable: target.requireAddressable === true,
|
|
106
116
|
contextResourceIdentifiers,
|
|
107
117
|
contextualParameters,
|
|
108
118
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useExecutionResourceOperationContextBuilder.js","sourceRoot":"","sources":["../../../../src/core/execution/useExecutionResourceOperationContextBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,GAGtB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,4CAA4C,EAC5C,qCAAqC,GACtC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,GACxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,4DAA4D,CAAC;AACpE,OAAO,EACL,qCAAqC,EACrC,0CAA0C,GAC3C,MAAM,uEAAuE,CAAC;AAC/E,OAAO,EACL,+CAA+C,EAC/C,mDAAmD,GACpD,MAAM,2EAA2E,CAAC;AAOnF,OAAO,EAAE,mBAAmB,EAAE,MAAM,wDAAwD,CAAC;AAC7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,2EAA2E,CAAC;AA+BlH,SAAS,2CAA2C,CAClD,OAAe,EACf,OAAiC;IAEjC,OAAO,qBAAqB,CAAC,uBAAuB,CAClD,2BAA2B,CAAC,aAAa,EACzC;QACE,OAAO;QACP,SAAS,EAAE,6CAA6C;QACxD,GAAG,OAAO;KACX,CACF,CAAC;AACJ,CAAC;AAED,SAAS,sBAAsB,CAC7B,MAAgD;IAEhD,OAAO,qBAAqB,IAAI,MAAM,CAAC;AACzC,CAAC;AAED,SAAS,iCAAiC,CACxC,cAAgD,EAChD,YAAoB,EACpB,MAA0F;IAE1F,MAAM,kBAAkB,GAAG,CAAC,cAAc,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,EAAE;QAChF,IAAI,MAAM,CAAC,SAAS,CAAC,m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ACvB,0BAA0B,CAAC,YAAY,CAAC,GAAG,2BAA2B,CAAC;gBACrE,YAAY,EAAE,0BAA0B,CAAC,YAAY,CAAC;gBACtD,UAAU,EAAE,kBAAkB;aAC/B,CAAC,CAAC;QACL,CAAC;QAED,MAAM,oBAAoB,GAAG,qBAAqB,CAAC,yBAAyB,CAC1E,0BAA0B,EAC1B,QAAQ,CACT,CAAC;QACF,MAAM,SAAS,GAAG,yBAAyB,CACzC,cAAc,EACd,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,0BAA0B,EAC1B,oBAAoB,CACrB,CAAC;QAEF,MAAM,2BAA2B,GAAG,qBAAqB,CAAC,gCAAgC,CACxF,YAA4B,EAC5B,0BAA0B,EAC1B,QAAQ,EACR,MAAM,CAAC,0BAA0B,CAClC,CAAC;QAEF,OAAO,qBAAqB,CAAC,mDAAmD,CAAC;YAC/E,YAAY,EAAE,YAA4B;YAC1C,SAAS;YACT,0BAA0B;YAC1B,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;YAC3C,2BAA2B;SAC5B,CAAC,CAAC;IACL,CAAC,EAAE;QACD,gBAAgB,CAAC,0BAA0B;QAC3C,gBAAgB,CAAC,cAAc;QAC/B,QAAQ;KACT,CAAC,CAAC;IAEH,OAAO;QACL,6BAA6B;KAC9B,CAAC;AACJ,CAAC","sourcesContent":["import { useCallback, useContext } from 'react';\n\nimport {\n ErrorCustomMessageReference,\n CoreResourceOperation,\n ResourceOperationVariantType,\n type ResourceType,\n} from '@wildo-ai/saas-models';\n\nimport {\n buildExecutionParticipationContextIdentifier,\n getExecutionParticipationResourceType,\n} from './execution-participation.utils';\nimport {\n assertExecutionRuntimeContext,\n ExecutionRuntimeContext,\n} from './ExecutionRuntimeContext';\nimport {\n frontendResourceUtils,\n FrontendResourceUtils,\n} from '~wildo-frontend-lib/core/resources/frontend-resource.utils';\nimport {\n pickPreferredOperationForCoreSemantic,\n resolveEffectiveCoreOperationFromOperation,\n} from '~wildo-frontend-lib/core/resources/operation-semantics.frontend.utils';\nimport {\n isFrontendOperationAddressableForCurrentContext,\n pickPreferredOperationForCoreSemanticAddressability,\n} from '~wildo-frontend-lib/core/resources/resource-addressability.frontend.utils';\nimport type {\n AnyFrontendResourceConfiguration,\n FrontendResourceConfiguration_Operation,\n FrontendResourceOperationContext,\n FrontendResourcesRegistry,\n} from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { scopeReferencedRecord } from '~wildo-frontend-lib/core/resources/referenced-record-scope.frontend.utils';\n\ntype ExecutionResourceOperationTargetSelector =\n | {\n operationIdentifier: string;\n variantType?: ResourceOperationVariantType;\n variantKey?: string;\n isOperationDefault?: boolean;\n isBulkOperation?: boolean;\n }\n | {\n operationLike: CoreResourceOperation;\n requireAddressable?: boolean;\n allowBulk?: boolean;\n };\n\nexport type ExecutionResourceOperationTarget = ExecutionResourceOperationTargetSelector & {\n resourceType?: string;\n resourceId?: string;\n participationRef?: string;\n contextResourceIdentifiers?: FrontendResourceOperationContext['contextResourceIdentifiers'];\n relationshipFieldOverrides?: Record<ResourceType, string>;\n additionalContext?: Record<string, unknown>;\n};\n\nexport interface ExecutionResourceOperationContextBuilderValue {\n buildResourceOperationContext: (\n target: ExecutionResourceOperationTarget,\n ) => FrontendResourceOperationContext;\n}\n\nfunction buildExecutionResourceOperationBuilderError(\n message: string,\n context?: Record<string, unknown>,\n): Error {\n return FrontendResourceUtils.buildConfigurationError(\n ErrorCustomMessageReference.CONFIGURATION,\n {\n message,\n component: 'useExecutionResourceOperationContextBuilder',\n ...context,\n },\n );\n}\n\nfunction hasOperationIdentifier(\n target: ExecutionResourceOperationTargetSelector,\n): target is Extract<ExecutionResourceOperationTargetSelector, { operationIdentifier: string }> {\n return 'operationIdentifier' in target;\n}\n\nfunction resolveExplicitOperationForTarget(\n resourceConfig: AnyFrontendResourceConfiguration,\n resourceType: string,\n target: Extract<ExecutionResourceOperationTargetSelector, { operationIdentifier: string }>,\n): FrontendResourceConfiguration_Operation {\n const matchingOperations = (resourceConfig.operations ?? []).filter((candidate) => {\n if (String(candidate.operationIdentifier) !== target.operationIdentifier) {\n return false;\n }\n if (target.variantType !== undefined && candidate.variantType !== target.variantType) {\n return false;\n }\n if (target.variantKey !== undefined && candidate.variantKey !== target.variantKey) {\n return false;\n }\n if (target.isOperationDefault !== undefined && candidate.isOperationDefault !== target.isOperationDefault) {\n return false;\n }\n if (target.isBulkOperation !== undefined && candidate.isBulkOperation !== target.isBulkOperation) {\n return false;\n }\n return true;\n });\n\n if (matchingOperations.length === 1) {\n return matchingOperations[0]!;\n }\n\n const defaultNonBulkOperations = matchingOperations.filter(\n (candidate) => candidate.isOperationDefault === true && candidate.isBulkOperation !== true,\n );\n if (\n target.variantKey === undefined\n && target.variantType === undefined\n && target.isOperationDefault === undefined\n && target.isBulkOperation === undefined\n && defaultNonBulkOperations.length === 1\n ) {\n return defaultNonBulkOperations[0]!;\n }\n\n throw buildExecutionResourceOperationBuilderError(\n matchingOperations.length === 0\n ? `Execution resource-operation builder cannot resolve operation \"${target.operationIdentifier}\" on resource \"${resourceType}\".`\n : `Execution resource-operation builder found ambiguous operation \"${target.operationIdentifier}\" on resource \"${resourceType}\".`,\n {\n resourceType,\n operationIdentifier: target.operationIdentifier,\n variantType: target.variantType,\n variantKey: target.variantKey,\n isOperationDefault: target.isOperationDefault,\n isBulkOperation: target.isBulkOperation,\n candidates: matchingOperations.map((candidate) => ({\n variantType: candidate.variantType,\n variantKey: candidate.variantKey,\n isOperationDefault: candidate.isOperationDefault,\n isBulkOperation: candidate.isBulkOperation,\n })),\n },\n );\n}\n\nfunction resolveOperationForTarget(\n resourceConfig: AnyFrontendResourceConfiguration | undefined,\n resourceType: string,\n target: ExecutionResourceOperationTargetSelector,\n registry: FrontendResourcesRegistry,\n contextResourceIdentifiers: FrontendResourceOperationContext['contextResourceIdentifiers'],\n contextualParameters: Record<string, string | number>,\n): FrontendResourceConfiguration_Operation {\n if (!resourceConfig) {\n throw buildExecutionResourceOperationBuilderError(\n `Execution resource-operation builder cannot resolve resource \"${resourceType}\" from the registry.`,\n { resourceType },\n );\n }\n\n if (hasOperationIdentifier(target)) {\n const operation = resolveExplicitOperationForTarget(resourceConfig, resourceType, target);\n\n const effectiveCoreOperation = resolveEffectiveCoreOperationFromOperation(operation);\n const requiresRuntimeAddressability = effectiveCoreOperation === CoreResourceOperation.READ\n || effectiveCoreOperation === CoreResourceOperation.UPDATE\n || effectiveCoreOperation === CoreResourceOperation.DELETE;\n if (\n requiresRuntimeAddressability\n && operation.isBulkOperation !== true\n && !isFrontendOperationAddressableForCurrentContext({\n resourceConfig,\n operation,\n registry,\n hasResourceId: frontendResourceUtils.getResourceId(contextResourceIdentifiers[resourceType]) !== '',\n contextResourceIdentifiers,\n contextualParameters,\n })\n ) {\n throw buildExecutionResourceOperationBuilderError(\n `Execution resource-operation builder resolved operation \"${target.operationIdentifier}\" on resource \"${resourceType}\", but the current context cannot address it.`,\n {\n resourceType,\n operationIdentifier: target.operationIdentifier,\n },\n );\n }\n\n return operation;\n }\n\n const requiresRuntimeAddressability = target.operationLike === CoreResourceOperation.READ\n || target.operationLike === CoreResourceOperation.UPDATE\n || target.operationLike === CoreResourceOperation.DELETE;\n const semanticOperation = target.requireAddressable || requiresRuntimeAddressability\n ? pickPreferredOperationForCoreSemanticAddressability({\n resourceConfig,\n operations: resourceConfig.operations ?? [],\n coreOperation: target.operationLike,\n registry,\n hasResourceId: frontendResourceUtils.getResourceId(contextResourceIdentifiers[resourceType]) !== '',\n allowBulk: target.allowBulk,\n requireFrontendAddressable: true,\n contextResourceIdentifiers,\n contextualParameters,\n })\n : pickPreferredOperationForCoreSemantic(\n resourceConfig.operations ?? [],\n target.operationLike,\n {\n requireAddressable: target.requireAddressable,\n allowBulk: target.allowBulk,\n },\n );\n\n if (!semanticOperation) {\n throw buildExecutionResourceOperationBuilderError(\n `Execution resource-operation builder cannot resolve a preferred ${String(target.operationLike)}-like operation on resource \"${resourceType}\".`,\n {\n resourceType,\n operationLike: target.operationLike,\n requireAddressable: target.requireAddressable,\n allowBulk: target.allowBulk,\n },\n );\n }\n\n return semanticOperation;\n}\n\nfunction overrideResourceContextSlot(params: {\n currentValue: FrontendResourceOperationContext['contextResourceIdentifiers'][string] | undefined;\n resourceId: string;\n}): FrontendResourceOperationContext['contextResourceIdentifiers'][string] {\n const fieldIdentifier = params.currentValue\n ? frontendResourceUtils.getFieldIdentifier(params.currentValue)\n : undefined;\n\n if (fieldIdentifier) {\n return {\n fieldIdentifier,\n resourceId: params.resourceId,\n };\n }\n\n return params.resourceId;\n}\n\nfunction getAdditionalContextCurrentObject(\n additionalContext?: Record<string, unknown>,\n): Record<string, unknown> | undefined {\n const currentObject = additionalContext?.currentObject ?? additionalContext?.resource;\n return currentObject && typeof currentObject === 'object' && !Array.isArray(currentObject)\n ? currentObject as Record<string, unknown>\n : undefined;\n}\n\nfunction resolveAdditionalContextResourceId(params: {\n additionalContext?: Record<string, unknown>;\n resourceConfig: AnyFrontendResourceConfiguration | undefined;\n}): string | undefined {\n const currentObject = getAdditionalContextCurrentObject(params.additionalContext);\n const candidate = currentObject?._id\n ?? (params.resourceConfig?.resourceFieldIdentifier\n ? currentObject?.[params.resourceConfig.resourceFieldIdentifier]\n : undefined);\n return typeof candidate === 'string' && candidate.length > 0 ? candidate : undefined;\n}\n\nexport function useExecutionResourceOperationContextBuilder(): ExecutionResourceOperationContextBuilderValue {\n const { registry } = useResourceRegistry();\n const executionRuntime = assertExecutionRuntimeContext(useContext(ExecutionRuntimeContext));\n\n const buildResourceOperationContext = useCallback<ExecutionResourceOperationContextBuilderValue['buildResourceOperationContext']>((target) => {\n const participation = target.participationRef\n ? executionRuntime.participations[target.participationRef]\n : undefined;\n\n if (target.participationRef && !participation) {\n throw buildExecutionResourceOperationBuilderError(\n `Execution resource-operation builder cannot resolve participation \"${target.participationRef}\".`,\n {\n participationRef: target.participationRef,\n },\n );\n }\n\n const resourceType = target.resourceType ?? (\n participation\n ? getExecutionParticipationResourceType(participation)\n : undefined\n );\n\n if (!resourceType) {\n throw buildExecutionResourceOperationBuilderError(\n 'Execution resource-operation builder requires either `resourceType` or `participationRef`.',\n {\n target,\n },\n );\n }\n\n let contextResourceIdentifiers: FrontendResourceOperationContext['contextResourceIdentifiers'] = {\n ...(executionRuntime.contextResourceIdentifiers ?? {}),\n ...(target.contextResourceIdentifiers ?? {}),\n };\n\n if (participation) {\n const participationContextIdentifier = buildExecutionParticipationContextIdentifier({\n participation,\n registry,\n });\n if (!participationContextIdentifier && !target.resourceId) {\n throw buildExecutionResourceOperationBuilderError(\n `Execution resource-operation builder cannot derive a concrete resource identifier from participation \"${target.participationRef}\".`,\n {\n participationRef: target.participationRef,\n resourceType,\n },\n );\n }\n if (participationContextIdentifier) {\n contextResourceIdentifiers[resourceType] = participationContextIdentifier;\n }\n }\n\n const resourceConfig = registry.resourceConfigurations[resourceType];\n const additionalContextResourceId = resolveAdditionalContextResourceId({\n additionalContext: target.additionalContext,\n resourceConfig,\n });\n const resolvedResourceId = target.resourceId ?? additionalContextResourceId;\n if (resolvedResourceId && !participation) {\n /*\n * A record opened by an id the target names itself is reached in ITS scope, not the execution's (#2746, the\n * #2741 rule the composite and embed builders apply). The runtime context is the execution view's, and the view\n * merges the viewer's working scope into it (a list selected in a quick-switcher): carried over, that list became\n * a parent of this record's chain and the record was read under it, and refused when it belongs to another. The\n * runtime's own record keeps the whole context; identifiers the target passes itself are its own statement. A\n * PARTICIPATION is left as it was: its id is bound from that same runtime context, which is what identifies it.\n */\n const runtimeIdentifiers = executionRuntime.contextResourceIdentifiers ?? {};\n const scopedRuntimeIdentifiers = scopeReferencedRecord({\n hostIdentifiers: runtimeIdentifiers,\n hostContextualParameters: {},\n hostRecord: { resourceType, id: frontendResourceUtils.getResourceId(runtimeIdentifiers[resourceType]) },\n targetResourceType: resourceType,\n targetId: resolvedResourceId,\n registry,\n }).identifiers;\n contextResourceIdentifiers = { ...scopedRuntimeIdentifiers, ...(target.contextResourceIdentifiers ?? {}) };\n }\n if (resolvedResourceId) {\n contextResourceIdentifiers[resourceType] = overrideResourceContextSlot({\n currentValue: contextResourceIdentifiers[resourceType],\n resourceId: resolvedResourceId,\n });\n }\n\n const contextualParameters = FrontendResourceUtils.buildContextualParameters(\n contextResourceIdentifiers,\n registry,\n );\n const operation = resolveOperationForTarget(\n resourceConfig,\n resourceType,\n target,\n registry,\n contextResourceIdentifiers,\n contextualParameters,\n );\n\n const parentResourcesRequirements = frontendResourceUtils.buildParentResourcesRequirements(\n resourceType as ResourceType,\n contextResourceIdentifiers,\n registry,\n target.relationshipFieldOverrides,\n );\n\n return frontendResourceUtils.createFrontendResourceOperationContextFromOperation({\n resourceType: resourceType as ResourceType,\n operation,\n contextResourceIdentifiers,\n additionalContext: target.additionalContext,\n parentResourcesRequirements,\n });\n }, [\n executionRuntime.contextResourceIdentifiers,\n executionRuntime.participations,\n registry,\n ]);\n\n return {\n buildResourceOperationContext,\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"useExecutionResourceOperationContextBuilder.js","sourceRoot":"","sources":["../../../../src/core/execution/useExecutionResourceOperationContextBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,GAGtB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,4CAA4C,EAC5C,qCAAqC,GACtC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,GACxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,4DAA4D,CAAC;AACpE,OAAO,EACL,qCAAqC,EACrC,0CAA0C,GAC3C,MAAM,uEAAuE,CAAC;AAC/E,OAAO,EACL,+CAA+C,EAC/C,mDAAmD,GACpD,MAAM,2EAA2E,CAAC;AAOnF,OAAO,EAAE,mBAAmB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M,CAAC,iBAAiB;YAC3C,2BAA2B;SAC5B,CAAC,CAAC;IACL,CAAC,EAAE;QACD,gBAAgB,CAAC,0BAA0B;QAC3C,gBAAgB,CAAC,cAAc;QAC/B,QAAQ;KACT,CAAC,CAAC;IAEH,OAAO;QACL,6BAA6B;KAC9B,CAAC;AACJ,CAAC","sourcesContent":["import { useCallback, useContext } from 'react';\n\nimport {\n ErrorCustomMessageReference,\n CoreResourceOperation,\n ResourceOperationVariantType,\n type ResourceType,\n} from '@wildo-ai/saas-models';\n\nimport {\n buildExecutionParticipationContextIdentifier,\n getExecutionParticipationResourceType,\n} from './execution-participation.utils';\nimport {\n assertExecutionRuntimeContext,\n ExecutionRuntimeContext,\n} from './ExecutionRuntimeContext';\nimport {\n frontendResourceUtils,\n FrontendResourceUtils,\n} from '~wildo-frontend-lib/core/resources/frontend-resource.utils';\nimport {\n pickPreferredOperationForCoreSemantic,\n resolveEffectiveCoreOperationFromOperation,\n} from '~wildo-frontend-lib/core/resources/operation-semantics.frontend.utils';\nimport {\n isFrontendOperationAddressableForCurrentContext,\n pickPreferredOperationForCoreSemanticAddressability,\n} from '~wildo-frontend-lib/core/resources/resource-addressability.frontend.utils';\nimport type {\n AnyFrontendResourceConfiguration,\n FrontendResourceConfiguration_Operation,\n FrontendResourceOperationContext,\n FrontendResourcesRegistry,\n} from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { scopeReferencedRecord } from '~wildo-frontend-lib/core/resources/referenced-record-scope.frontend.utils';\n\ntype ExecutionResourceOperationTargetSelector =\n | {\n operationIdentifier: string;\n variantType?: ResourceOperationVariantType;\n variantKey?: string;\n isOperationDefault?: boolean;\n isBulkOperation?: boolean;\n }\n | {\n operationLike: CoreResourceOperation;\n requireAddressable?: boolean;\n allowBulk?: boolean;\n };\n\nexport type ExecutionResourceOperationTarget = ExecutionResourceOperationTargetSelector & {\n resourceType?: string;\n resourceId?: string;\n participationRef?: string;\n contextResourceIdentifiers?: FrontendResourceOperationContext['contextResourceIdentifiers'];\n relationshipFieldOverrides?: Record<ResourceType, string>;\n additionalContext?: Record<string, unknown>;\n};\n\nexport interface ExecutionResourceOperationContextBuilderValue {\n buildResourceOperationContext: (\n target: ExecutionResourceOperationTarget,\n ) => FrontendResourceOperationContext;\n}\n\nfunction buildExecutionResourceOperationBuilderError(\n message: string,\n context?: Record<string, unknown>,\n): Error {\n return FrontendResourceUtils.buildConfigurationError(\n ErrorCustomMessageReference.CONFIGURATION,\n {\n message,\n component: 'useExecutionResourceOperationContextBuilder',\n ...context,\n },\n );\n}\n\nfunction hasOperationIdentifier(\n target: ExecutionResourceOperationTargetSelector,\n): target is Extract<ExecutionResourceOperationTargetSelector, { operationIdentifier: string }> {\n return 'operationIdentifier' in target;\n}\n\nfunction resolveExplicitOperationForTarget(\n resourceConfig: AnyFrontendResourceConfiguration,\n resourceType: string,\n target: Extract<ExecutionResourceOperationTargetSelector, { operationIdentifier: string }>,\n): FrontendResourceConfiguration_Operation {\n const matchingOperations = (resourceConfig.operations ?? []).filter((candidate) => {\n if (String(candidate.operationIdentifier) !== target.operationIdentifier) {\n return false;\n }\n if (target.variantType !== undefined && candidate.variantType !== target.variantType) {\n return false;\n }\n if (target.variantKey !== undefined && candidate.variantKey !== target.variantKey) {\n return false;\n }\n if (target.isOperationDefault !== undefined && candidate.isOperationDefault !== target.isOperationDefault) {\n return false;\n }\n if (target.isBulkOperation !== undefined && candidate.isBulkOperation !== target.isBulkOperation) {\n return false;\n }\n return true;\n });\n\n if (matchingOperations.length === 1) {\n return matchingOperations[0]!;\n }\n\n const defaultNonBulkOperations = matchingOperations.filter(\n (candidate) => candidate.isOperationDefault === true && candidate.isBulkOperation !== true,\n );\n if (\n target.variantKey === undefined\n && target.variantType === undefined\n && target.isOperationDefault === undefined\n && target.isBulkOperation === undefined\n && defaultNonBulkOperations.length === 1\n ) {\n return defaultNonBulkOperations[0]!;\n }\n\n throw buildExecutionResourceOperationBuilderError(\n matchingOperations.length === 0\n ? `Execution resource-operation builder cannot resolve operation \"${target.operationIdentifier}\" on resource \"${resourceType}\".`\n : `Execution resource-operation builder found ambiguous operation \"${target.operationIdentifier}\" on resource \"${resourceType}\".`,\n {\n resourceType,\n operationIdentifier: target.operationIdentifier,\n variantType: target.variantType,\n variantKey: target.variantKey,\n isOperationDefault: target.isOperationDefault,\n isBulkOperation: target.isBulkOperation,\n candidates: matchingOperations.map((candidate) => ({\n variantType: candidate.variantType,\n variantKey: candidate.variantKey,\n isOperationDefault: candidate.isOperationDefault,\n isBulkOperation: candidate.isBulkOperation,\n })),\n },\n );\n}\n\nfunction resolveOperationForTarget(\n resourceConfig: AnyFrontendResourceConfiguration | undefined,\n resourceType: string,\n target: ExecutionResourceOperationTargetSelector,\n registry: FrontendResourcesRegistry,\n contextResourceIdentifiers: FrontendResourceOperationContext['contextResourceIdentifiers'],\n contextualParameters: Record<string, string | number>,\n): FrontendResourceConfiguration_Operation {\n if (!resourceConfig) {\n throw buildExecutionResourceOperationBuilderError(\n `Execution resource-operation builder cannot resolve resource \"${resourceType}\" from the registry.`,\n { resourceType },\n );\n }\n\n if (hasOperationIdentifier(target)) {\n const operation = resolveExplicitOperationForTarget(resourceConfig, resourceType, target);\n\n const effectiveCoreOperation = resolveEffectiveCoreOperationFromOperation(operation);\n const requiresRuntimeAddressability = effectiveCoreOperation === CoreResourceOperation.READ\n || effectiveCoreOperation === CoreResourceOperation.UPDATE\n || effectiveCoreOperation === CoreResourceOperation.DELETE;\n if (\n requiresRuntimeAddressability\n && operation.isBulkOperation !== true\n && !isFrontendOperationAddressableForCurrentContext({\n resourceConfig,\n operation,\n registry,\n hasResourceId: frontendResourceUtils.getResourceId(contextResourceIdentifiers[resourceType]) !== '',\n contextResourceIdentifiers,\n contextualParameters,\n })\n ) {\n throw buildExecutionResourceOperationBuilderError(\n `Execution resource-operation builder resolved operation \"${target.operationIdentifier}\" on resource \"${resourceType}\", but the current context cannot address it.`,\n {\n resourceType,\n operationIdentifier: target.operationIdentifier,\n },\n );\n }\n\n return operation;\n }\n\n const requiresRuntimeAddressability = target.operationLike === CoreResourceOperation.READ\n || target.operationLike === CoreResourceOperation.UPDATE\n || target.operationLike === CoreResourceOperation.DELETE;\n const semanticOperation = target.requireAddressable || requiresRuntimeAddressability\n ? pickPreferredOperationForCoreSemanticAddressability({\n resourceConfig,\n operations: resourceConfig.operations ?? [],\n coreOperation: target.operationLike,\n registry,\n hasResourceId: frontendResourceUtils.getResourceId(contextResourceIdentifiers[resourceType]) !== '',\n allowBulk: target.allowBulk,\n /*\n * The RUNTIME addressability check (does the current context carry the ids the operation's route needs?) is what a\n * READ/UPDATE/DELETE must pass to be called at all. Whether the operation also has a routable PAGE is a different\n * question, asked only when the target says so through `requireAddressable`: an execution action EXECUTES or EMBEDS\n * the operation as often as it navigates to it, and an operation surfaced `EMBEDDED` (a dialog, an inline action) is\n * fully callable. Requiring a page here refused every such operation, so the to-do list flow view's inspector, whose\n * DELETE on to-dos, tasks and lists is `EMBEDDED`, offered no Delete at all (#3859). The explicit-operation branch\n * above never asked for a page either. A page-routable variant is still preferred among several candidates\n * (`pickPreferredOperationForCoreSemantic`).\n */\n requireFrontendAddressable: target.requireAddressable === true,\n contextResourceIdentifiers,\n contextualParameters,\n })\n : pickPreferredOperationForCoreSemantic(\n resourceConfig.operations ?? [],\n target.operationLike,\n {\n requireAddressable: target.requireAddressable,\n allowBulk: target.allowBulk,\n },\n );\n\n if (!semanticOperation) {\n throw buildExecutionResourceOperationBuilderError(\n `Execution resource-operation builder cannot resolve a preferred ${String(target.operationLike)}-like operation on resource \"${resourceType}\".`,\n {\n resourceType,\n operationLike: target.operationLike,\n requireAddressable: target.requireAddressable,\n allowBulk: target.allowBulk,\n },\n );\n }\n\n return semanticOperation;\n}\n\nfunction overrideResourceContextSlot(params: {\n currentValue: FrontendResourceOperationContext['contextResourceIdentifiers'][string] | undefined;\n resourceId: string;\n}): FrontendResourceOperationContext['contextResourceIdentifiers'][string] {\n const fieldIdentifier = params.currentValue\n ? frontendResourceUtils.getFieldIdentifier(params.currentValue)\n : undefined;\n\n if (fieldIdentifier) {\n return {\n fieldIdentifier,\n resourceId: params.resourceId,\n };\n }\n\n return params.resourceId;\n}\n\nfunction getAdditionalContextCurrentObject(\n additionalContext?: Record<string, unknown>,\n): Record<string, unknown> | undefined {\n const currentObject = additionalContext?.currentObject ?? additionalContext?.resource;\n return currentObject && typeof currentObject === 'object' && !Array.isArray(currentObject)\n ? currentObject as Record<string, unknown>\n : undefined;\n}\n\nfunction resolveAdditionalContextResourceId(params: {\n additionalContext?: Record<string, unknown>;\n resourceConfig: AnyFrontendResourceConfiguration | undefined;\n}): string | undefined {\n const currentObject = getAdditionalContextCurrentObject(params.additionalContext);\n const candidate = currentObject?._id\n ?? (params.resourceConfig?.resourceFieldIdentifier\n ? currentObject?.[params.resourceConfig.resourceFieldIdentifier]\n : undefined);\n return typeof candidate === 'string' && candidate.length > 0 ? candidate : undefined;\n}\n\nexport function useExecutionResourceOperationContextBuilder(): ExecutionResourceOperationContextBuilderValue {\n const { registry } = useResourceRegistry();\n const executionRuntime = assertExecutionRuntimeContext(useContext(ExecutionRuntimeContext));\n\n const buildResourceOperationContext = useCallback<ExecutionResourceOperationContextBuilderValue['buildResourceOperationContext']>((target) => {\n const participation = target.participationRef\n ? executionRuntime.participations[target.participationRef]\n : undefined;\n\n if (target.participationRef && !participation) {\n throw buildExecutionResourceOperationBuilderError(\n `Execution resource-operation builder cannot resolve participation \"${target.participationRef}\".`,\n {\n participationRef: target.participationRef,\n },\n );\n }\n\n const resourceType = target.resourceType ?? (\n participation\n ? getExecutionParticipationResourceType(participation)\n : undefined\n );\n\n if (!resourceType) {\n throw buildExecutionResourceOperationBuilderError(\n 'Execution resource-operation builder requires either `resourceType` or `participationRef`.',\n {\n target,\n },\n );\n }\n\n let contextResourceIdentifiers: FrontendResourceOperationContext['contextResourceIdentifiers'] = {\n ...(executionRuntime.contextResourceIdentifiers ?? {}),\n ...(target.contextResourceIdentifiers ?? {}),\n };\n\n if (participation) {\n const participationContextIdentifier = buildExecutionParticipationContextIdentifier({\n participation,\n registry,\n });\n if (!participationContextIdentifier && !target.resourceId) {\n throw buildExecutionResourceOperationBuilderError(\n `Execution resource-operation builder cannot derive a concrete resource identifier from participation \"${target.participationRef}\".`,\n {\n participationRef: target.participationRef,\n resourceType,\n },\n );\n }\n if (participationContextIdentifier) {\n contextResourceIdentifiers[resourceType] = participationContextIdentifier;\n }\n }\n\n const resourceConfig = registry.resourceConfigurations[resourceType];\n const additionalContextResourceId = resolveAdditionalContextResourceId({\n additionalContext: target.additionalContext,\n resourceConfig,\n });\n const resolvedResourceId = target.resourceId ?? additionalContextResourceId;\n if (resolvedResourceId && !participation) {\n /*\n * A record opened by an id the target names itself is reached in ITS scope, not the execution's (#2746, the\n * #2741 rule the composite and embed builders apply). The runtime context is the execution view's, and the view\n * merges the viewer's working scope into it (a list selected in a quick-switcher): carried over, that list became\n * a parent of this record's chain and the record was read under it, and refused when it belongs to another. The\n * runtime's own record keeps the whole context; identifiers the target passes itself are its own statement. A\n * PARTICIPATION is left as it was: its id is bound from that same runtime context, which is what identifies it.\n */\n const runtimeIdentifiers = executionRuntime.contextResourceIdentifiers ?? {};\n const scopedRuntimeIdentifiers = scopeReferencedRecord({\n hostIdentifiers: runtimeIdentifiers,\n hostContextualParameters: {},\n hostRecord: { resourceType, id: frontendResourceUtils.getResourceId(runtimeIdentifiers[resourceType]) },\n targetResourceType: resourceType,\n targetId: resolvedResourceId,\n registry,\n }).identifiers;\n contextResourceIdentifiers = { ...scopedRuntimeIdentifiers, ...(target.contextResourceIdentifiers ?? {}) };\n }\n if (resolvedResourceId) {\n contextResourceIdentifiers[resourceType] = overrideResourceContextSlot({\n currentValue: contextResourceIdentifiers[resourceType],\n resourceId: resolvedResourceId,\n });\n }\n\n const contextualParameters = FrontendResourceUtils.buildContextualParameters(\n contextResourceIdentifiers,\n registry,\n );\n const operation = resolveOperationForTarget(\n resourceConfig,\n resourceType,\n target,\n registry,\n contextResourceIdentifiers,\n contextualParameters,\n );\n\n const parentResourcesRequirements = frontendResourceUtils.buildParentResourcesRequirements(\n resourceType as ResourceType,\n contextResourceIdentifiers,\n registry,\n target.relationshipFieldOverrides,\n );\n\n return frontendResourceUtils.createFrontendResourceOperationContextFromOperation({\n resourceType: resourceType as ResourceType,\n operation,\n contextResourceIdentifiers,\n additionalContext: target.additionalContext,\n parentResourcesRequirements,\n });\n }, [\n executionRuntime.contextResourceIdentifiers,\n executionRuntime.participations,\n registry,\n ]);\n\n return {\n buildResourceOperationContext,\n };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"I18nContext.d.ts","sourceRoot":"","sources":["../../../../src/core/i18n/I18nContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA2B,SAAS,EAAuD,MAAM,OAAO,CAAC;AAEvH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEhE,OAAO,EACW,qBAAqB,EAAE,iBAAiB,EACxD,cAAc,EAA0B,aAAa,EACrD,KAAK,wBAAwB,EAA2B,KAAK,gBAAgB,EAE7E,yBAAyB,EAEzB,KAAK,yBAAyB,EAC/B,MAAM,qCAAqC,CAAC;AAU7C,OAAO,EAGL,uBAAuB,EACvB,eAAe,EACf,KAAK,mBAAmB,EAEqB,KAAK,2BAA2B,EAAE,KAAK,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC1I,OAAO,EAA+B,sBAAsB,EAA6B,MAAM,iDAAiD,CAAC;AAGjJ,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,WAAW,WAAW;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,WAAW,CAAC;CACrC;AAED,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,MAAM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PRIMARY label — the `title` of a section, a wizard step, a view, a composite view, an operation;
|
|
556
|
+
* A PRIMARY label — the `title` of a resource's header, a section, a wizard step, a view, a composite view, an operation;
|
|
557
557
|
* the `label` of a filter preset — is one the labelling pipeline plans for every declared ref, so a
|
|
558
558
|
* miss is a GAP and renders as its key path: visible, greppable, and naming exactly what to author.
|
|
559
559
|
* SUPPLEMENTARY text (`description`) answers `''`, so a heading that is fine does not grow a key
|
|
@@ -882,7 +882,13 @@ export const I18nProvider = ({ children }) => {
|
|
|
882
882
|
// ------------------------------
|
|
883
883
|
const tResourceHeader = (resource, key, params) => {
|
|
884
884
|
const base = `${LabellingTypes.RESOURCES}.${resource}.header.${key}`;
|
|
885
|
-
|
|
885
|
+
// A resource's header is a label FAMILY like an operation's (#3791): its `title` is planned for every resource and
|
|
886
|
+
// a miss is a gap, its `description` is supplementary. It is also the family most often read for ANOTHER resource
|
|
887
|
+
// than the surface declared — a record's related sections are headed by each CHILD's title while the surface
|
|
888
|
+
// requested only the host's words — so the child's bundle arrives after the first render (`t` asks for it), and
|
|
889
|
+
// the headings read `resources.userGuidanceState.header.title` until it lands. Through `answerFamilyLabel` the
|
|
890
|
+
// loading window says nothing, and only a settled miss shows the key.
|
|
891
|
+
return answerFamilyLabel(t(base, params), base, key === 'description');
|
|
886
892
|
};
|
|
887
893
|
const tResourceEmptyState = (resource, key, params) => {
|
|
888
894
|
const base = `${LabellingTypes.RESOURCES}.${resource}.emptyState.${key}`;
|