@clusterenvision/ui-framework 1.0.0
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/LICENSE +21 -0
- package/README.md +295 -0
- package/dist/ai-assistant-Db002XYC.d.ts +92 -0
- package/dist/ai-assistant-EobSUV70.d.cts +92 -0
- package/dist/browser-DnHpnWwE.d.cts +354 -0
- package/dist/browser-Dx4oKf5e.d.ts +354 -0
- package/dist/browser-signals-07qodpYT.d.cts +66 -0
- package/dist/browser-signals-07qodpYT.d.ts +66 -0
- package/dist/browser-signals.cjs +32 -0
- package/dist/browser-signals.cjs.map +1 -0
- package/dist/browser-signals.d.cts +1 -0
- package/dist/browser-signals.d.ts +1 -0
- package/dist/browser-signals.js +3 -0
- package/dist/browser-signals.js.map +1 -0
- package/dist/browser.cjs +197 -0
- package/dist/browser.cjs.map +1 -0
- package/dist/browser.d.cts +13 -0
- package/dist/browser.d.ts +13 -0
- package/dist/browser.js +12 -0
- package/dist/browser.js.map +1 -0
- package/dist/chunk-22HQL2Y4.js +568 -0
- package/dist/chunk-22HQL2Y4.js.map +1 -0
- package/dist/chunk-3ZBRNFEE.js +1525 -0
- package/dist/chunk-3ZBRNFEE.js.map +1 -0
- package/dist/chunk-4HRORR2Q.js +1953 -0
- package/dist/chunk-4HRORR2Q.js.map +1 -0
- package/dist/chunk-4L3UXVL5.cjs +68 -0
- package/dist/chunk-4L3UXVL5.cjs.map +1 -0
- package/dist/chunk-6BYWFGQY.cjs +226 -0
- package/dist/chunk-6BYWFGQY.cjs.map +1 -0
- package/dist/chunk-7SCIB5HP.js +57 -0
- package/dist/chunk-7SCIB5HP.js.map +1 -0
- package/dist/chunk-BBAUALNU.js +888 -0
- package/dist/chunk-BBAUALNU.js.map +1 -0
- package/dist/chunk-CHLDE4JQ.js +715 -0
- package/dist/chunk-CHLDE4JQ.js.map +1 -0
- package/dist/chunk-CXTAUXLG.cjs +71 -0
- package/dist/chunk-CXTAUXLG.cjs.map +1 -0
- package/dist/chunk-D2USIT6V.js +121 -0
- package/dist/chunk-D2USIT6V.js.map +1 -0
- package/dist/chunk-D3H5CGVD.js +36 -0
- package/dist/chunk-D3H5CGVD.js.map +1 -0
- package/dist/chunk-DQBX75NJ.js +92 -0
- package/dist/chunk-DQBX75NJ.js.map +1 -0
- package/dist/chunk-DRPG2DFX.js +208 -0
- package/dist/chunk-DRPG2DFX.js.map +1 -0
- package/dist/chunk-EFOOXCY7.cjs +41 -0
- package/dist/chunk-EFOOXCY7.cjs.map +1 -0
- package/dist/chunk-FFCZSYC7.cjs +906 -0
- package/dist/chunk-FFCZSYC7.cjs.map +1 -0
- package/dist/chunk-FNXIYAET.cjs +1593 -0
- package/dist/chunk-FNXIYAET.cjs.map +1 -0
- package/dist/chunk-I6GNUM3P.cjs +63 -0
- package/dist/chunk-I6GNUM3P.cjs.map +1 -0
- package/dist/chunk-IHAMVLRY.js +129 -0
- package/dist/chunk-IHAMVLRY.js.map +1 -0
- package/dist/chunk-IRBUKIRF.cjs +133 -0
- package/dist/chunk-IRBUKIRF.cjs.map +1 -0
- package/dist/chunk-KPG5HAHK.cjs +97 -0
- package/dist/chunk-KPG5HAHK.cjs.map +1 -0
- package/dist/chunk-N7Q2ESLG.cjs +130 -0
- package/dist/chunk-N7Q2ESLG.cjs.map +1 -0
- package/dist/chunk-PFBEIFVS.js +180 -0
- package/dist/chunk-PFBEIFVS.js.map +1 -0
- package/dist/chunk-PVZVFICK.cjs +318 -0
- package/dist/chunk-PVZVFICK.cjs.map +1 -0
- package/dist/chunk-Q3KH6HMU.js +305 -0
- package/dist/chunk-Q3KH6HMU.js.map +1 -0
- package/dist/chunk-QPAAV32J.cjs +1985 -0
- package/dist/chunk-QPAAV32J.cjs.map +1 -0
- package/dist/chunk-R6XQUMWT.cjs +61 -0
- package/dist/chunk-R6XQUMWT.cjs.map +1 -0
- package/dist/chunk-SA5UD5B6.js +92 -0
- package/dist/chunk-SA5UD5B6.js.map +1 -0
- package/dist/chunk-SM35JOYD.cjs +211 -0
- package/dist/chunk-SM35JOYD.cjs.map +1 -0
- package/dist/chunk-SZQNIMYI.cjs +592 -0
- package/dist/chunk-SZQNIMYI.cjs.map +1 -0
- package/dist/chunk-T6T7QE4J.js +224 -0
- package/dist/chunk-T6T7QE4J.js.map +1 -0
- package/dist/chunk-TIF372DZ.js +65 -0
- package/dist/chunk-TIF372DZ.js.map +1 -0
- package/dist/chunk-V6JCOBGY.js +69 -0
- package/dist/chunk-V6JCOBGY.js.map +1 -0
- package/dist/chunk-VHUXNDW2.cjs +189 -0
- package/dist/chunk-VHUXNDW2.cjs.map +1 -0
- package/dist/chunk-W3LNNY3U.cjs +729 -0
- package/dist/chunk-W3LNNY3U.cjs.map +1 -0
- package/dist/chunk-ZUWSU4OA.js +61 -0
- package/dist/chunk-ZUWSU4OA.js.map +1 -0
- package/dist/chunk-ZWUA2LPB.cjs +103 -0
- package/dist/chunk-ZWUA2LPB.cjs.map +1 -0
- package/dist/cli/index.cjs +566 -0
- package/dist/cli/index.cjs.map +1 -0
- package/dist/cli/index.d.cts +1 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +558 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/compiler/index.cjs +80 -0
- package/dist/compiler/index.cjs.map +1 -0
- package/dist/compiler/index.d.cts +130 -0
- package/dist/compiler/index.d.ts +130 -0
- package/dist/compiler/index.js +3 -0
- package/dist/compiler/index.js.map +1 -0
- package/dist/component-BVzvepw9.d.cts +90 -0
- package/dist/component-wTxZ2BPD.d.ts +90 -0
- package/dist/index-CpxDa60m.d.cts +644 -0
- package/dist/index-CpxDa60m.d.ts +644 -0
- package/dist/index.cjs +1356 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +165 -0
- package/dist/index.d.ts +165 -0
- package/dist/index.js +772 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/dom.cjs +102 -0
- package/dist/lib/dom.cjs.map +1 -0
- package/dist/lib/dom.d.cts +373 -0
- package/dist/lib/dom.d.ts +373 -0
- package/dist/lib/dom.js +3 -0
- package/dist/lib/dom.js.map +1 -0
- package/dist/lib/icons.cjs +20 -0
- package/dist/lib/icons.cjs.map +1 -0
- package/dist/lib/icons.d.cts +64 -0
- package/dist/lib/icons.d.ts +64 -0
- package/dist/lib/icons.js +3 -0
- package/dist/lib/icons.js.map +1 -0
- package/dist/lib/index.cjs +247 -0
- package/dist/lib/index.cjs.map +1 -0
- package/dist/lib/index.d.cts +30 -0
- package/dist/lib/index.d.ts +30 -0
- package/dist/lib/index.js +92 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/theme.cjs +56 -0
- package/dist/lib/theme.cjs.map +1 -0
- package/dist/lib/theme.d.cts +27 -0
- package/dist/lib/theme.d.ts +27 -0
- package/dist/lib/theme.js +3 -0
- package/dist/lib/theme.js.map +1 -0
- package/dist/router-B9kms5XQ.d.ts +124 -0
- package/dist/router-YnpW_sIK.d.cts +124 -0
- package/dist/runtime/adapters/angular.cjs +48 -0
- package/dist/runtime/adapters/angular.cjs.map +1 -0
- package/dist/runtime/adapters/angular.d.cts +38 -0
- package/dist/runtime/adapters/angular.d.ts +38 -0
- package/dist/runtime/adapters/angular.js +46 -0
- package/dist/runtime/adapters/angular.js.map +1 -0
- package/dist/runtime/adapters/react.cjs +41 -0
- package/dist/runtime/adapters/react.cjs.map +1 -0
- package/dist/runtime/adapters/react.d.cts +26 -0
- package/dist/runtime/adapters/react.d.ts +26 -0
- package/dist/runtime/adapters/react.js +39 -0
- package/dist/runtime/adapters/react.js.map +1 -0
- package/dist/runtime/adapters/vue.cjs +44 -0
- package/dist/runtime/adapters/vue.cjs.map +1 -0
- package/dist/runtime/adapters/vue.d.cts +37 -0
- package/dist/runtime/adapters/vue.d.ts +37 -0
- package/dist/runtime/adapters/vue.js +42 -0
- package/dist/runtime/adapters/vue.js.map +1 -0
- package/dist/runtime/components/ai-assistant.cjs +18 -0
- package/dist/runtime/components/ai-assistant.cjs.map +1 -0
- package/dist/runtime/components/ai-assistant.d.cts +8 -0
- package/dist/runtime/components/ai-assistant.d.ts +8 -0
- package/dist/runtime/components/ai-assistant.js +9 -0
- package/dist/runtime/components/ai-assistant.js.map +1 -0
- package/dist/runtime/components/ai-summary-card.cjs +18 -0
- package/dist/runtime/components/ai-summary-card.cjs.map +1 -0
- package/dist/runtime/components/ai-summary-card.d.cts +19 -0
- package/dist/runtime/components/ai-summary-card.d.ts +19 -0
- package/dist/runtime/components/ai-summary-card.js +9 -0
- package/dist/runtime/components/ai-summary-card.js.map +1 -0
- package/dist/runtime/router.cjs +429 -0
- package/dist/runtime/router.cjs.map +1 -0
- package/dist/runtime/router.d.cts +2 -0
- package/dist/runtime/router.d.ts +2 -0
- package/dist/runtime/router.js +421 -0
- package/dist/runtime/router.js.map +1 -0
- package/dist/runtime/server.cjs +125 -0
- package/dist/runtime/server.cjs.map +1 -0
- package/dist/runtime/server.d.cts +27 -0
- package/dist/runtime/server.d.ts +27 -0
- package/dist/runtime/server.js +117 -0
- package/dist/runtime/server.js.map +1 -0
- package/dist/runtime/workflow/index.cjs +282 -0
- package/dist/runtime/workflow/index.cjs.map +1 -0
- package/dist/runtime/workflow/index.d.cts +1 -0
- package/dist/runtime/workflow/index.d.ts +1 -0
- package/dist/runtime/workflow/index.js +5 -0
- package/dist/runtime/workflow/index.js.map +1 -0
- package/dist/tracing-DGdvMCEl.d.cts +109 -0
- package/dist/tracing-DGdvMCEl.d.ts +109 -0
- package/dist/types-C4RXXKfk.d.cts +76 -0
- package/dist/types-C4RXXKfk.d.ts +76 -0
- package/package.json +166 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/runtime/router.js","../src/runtime/router-provider.js","../src/runtime/server.js","../src/runtime/ssr-app.js","../src/runtime/error-boundary-context.ts","../src/runtime/error-boundary.ts","../src/runtime/hydration-diagnostics.js"],"names":["flattenRoutes","signal","matchRoute","getRouteId","normalizePathname","options","captureRuntimeError","match","withRuntimeErrorBoundary","cac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,OAAO,UAAA,EAAY;AACxB,IAAA,MAAA,CAAO,WAAA,CAAY,OAAO,UAAU,CAAA;AAAA,EACtC;AACF","file":"index.cjs","sourcesContent":["import { captureRuntimeError, withRuntimeErrorBoundary } from './errors.js';\nimport { signal } from './signals.js';\nimport { cacheRouteDataResult, clearRouteDataResult } from './route-data-registry.js';\nimport { flattenRoutes, getRouteId, matchRoute, normalizePathname } from './router-utils.js';\nconst CONTINUE_NAVIGATION = { type: 'continue' };\nconst MAX_GUARD_REDIRECTS = 8;\nexport function allowNavigation() {\n return CONTINUE_NAVIGATION;\n}\nexport function redirectNavigation(to, options) {\n return { type: 'redirect', to, options };\n}\nexport function errorNavigation(error, info) {\n return { type: 'error', error, info: info ?? null };\n}\nexport function createRouter(input) {\n const options = normalizeRouterOptions(input);\n const flattened = flattenRoutes(options.routes);\n const notFoundRoute = normalizeFallbackRoute(options.notFoundRoute, 'not-found', '*');\n const errorRoute = normalizeFallbackRoute(options.errorRoute, 'error', '/__error');\n const initialPath = typeof window !== 'undefined' ? window.location.pathname : '/';\n const currentPath = signal(initialPath);\n const currentMatchSignal = signal(resolveMatch(initialPath));\n function resolveMatch(path) {\n for (const node of flattened) {\n const params = matchRoute(path, node.fullPath);\n if (params) {\n return instantiateMatch(node, params);\n }\n }\n if (notFoundRoute) {\n return createFallbackMatch(notFoundRoute, path, 'not-found');\n }\n return null;\n }\n function instantiateMatch(node, params) {\n const layouts = collectLayouts(node.branch, node.fullPath, params);\n const routeBoundary = createRouterBoundaryState('route', normalizeBoundaryConfig('route', node.route.boundary, {\n routeId: getRouteId(node.route),\n path: node.fullPath,\n params,\n }));\n return {\n route: node.route,\n params,\n fullPath: node.fullPath,\n layouts,\n boundary: routeBoundary,\n };\n }\n function collectLayouts(branch, fullPath, params) {\n const states = [];\n branch.forEach(route => {\n (route.layouts ?? []).forEach((layout, index) => {\n states.push(createRouterBoundaryState('layout', normalizeBoundaryConfig('layout', layout, {\n routeId: getRouteId(route),\n path: fullPath,\n layoutIndex: index,\n params,\n })));\n });\n });\n return states;\n }\n function createFallbackMatch(route, requestedPath, reason, error, errorMessage) {\n const normalizedPath = normalizePathname(requestedPath);\n const params = matchRoute(normalizedPath, route.path) ?? {};\n const statusCode = reason === 'not-found' ? 404 : 500;\n const boundaryConfig = {\n ...(route.boundary ?? {}),\n attributes: {\n ...(route.boundary?.attributes ?? {}),\n requestedPath: normalizedPath,\n statusCode,\n reason,\n errorMessage: errorMessage ?? error?.message,\n },\n };\n const layouts = collectLayouts([route], normalizedPath, params);\n const routeBoundary = createRouterBoundaryState('route', normalizeBoundaryConfig('route', boundaryConfig, {\n routeId: getRouteId(route),\n path: normalizedPath,\n params,\n }));\n return {\n route,\n params,\n fullPath: normalizedPath,\n layouts,\n boundary: routeBoundary,\n };\n }\n function match(path) {\n const resolved = resolveMatch(path ?? currentPath());\n if (path === undefined) {\n currentMatchSignal.set(resolved);\n }\n return resolved;\n }\n function navigate(path, options) {\n return runNavigation(path, options, 0);\n }\n function onPopState() {\n if (typeof window === 'undefined') {\n return;\n }\n const nextPath = window.location.pathname;\n runNavigation(nextPath, { replace: true }, 0);\n }\n const start = () => {\n if (typeof window === 'undefined') {\n return;\n }\n window.addEventListener('popstate', onPopState);\n };\n const dispose = () => {\n if (typeof window === 'undefined') {\n return;\n }\n window.removeEventListener('popstate', onPopState);\n };\n function runNavigation(path, options, depth) {\n const resolved = resolveMatch(path);\n if (!resolved) {\n applyHistory(path, options);\n currentPath.set(path);\n currentMatchSignal.set(null);\n return null;\n }\n const guardResult = runRouteGuards(resolved);\n if (guardResult.type === 'redirect') {\n if (depth >= MAX_GUARD_REDIRECTS) {\n throw new Error('Router redirect loop detected.');\n }\n const nextOptions = { ...options, ...guardResult.options, replace: true };\n return runNavigation(guardResult.to, nextOptions, depth + 1);\n }\n if (guardResult.type === 'error') {\n const info = guardResult.info ?? createGuardErrorInfo(resolved);\n const rawMessage = guardResult.error.message;\n if (errorRoute) {\n try {\n captureRuntimeError(guardResult.error, info);\n }\n catch {\n // Guard error is surfaced via fallback routes; avoid throwing.\n }\n const errorMatch = createFallbackMatch(errorRoute, path, 'error', guardResult.error, rawMessage);\n applyHistory(path, options);\n currentPath.set(path);\n currentMatchSignal.set(errorMatch);\n return errorMatch;\n }\n captureRuntimeError(guardResult.error, info);\n return currentMatchSignal();\n }\n applyHistory(path, options);\n currentPath.set(path);\n currentMatchSignal.set(resolved);\n return resolved;\n }\n function applyHistory(path, options) {\n if (typeof window === 'undefined') {\n return;\n }\n const historyState = (options?.state) ?? {};\n if (options?.replace) {\n window.history.replaceState(historyState, '', path);\n }\n else {\n window.history.pushState(historyState, '', path);\n }\n }\n function runRouteGuards(match) {\n const guards = match.route.guards ?? [];\n for (const guard of guards) {\n const result = guard({ match, params: match.params }) ?? CONTINUE_NAVIGATION;\n if (result.type !== 'continue') {\n return result;\n }\n }\n return CONTINUE_NAVIGATION;\n }\n function createGuardErrorInfo(match) {\n return {\n phase: 'navigation',\n componentName: match.boundary.definition.componentName,\n componentInstanceId: match.boundary.id,\n templateId: match.boundary.definition.templateId,\n attributes: {\n routeId: match.route.id ?? match.fullPath,\n fullPath: match.fullPath,\n },\n };\n }\n return {\n currentPath,\n currentMatch: currentMatchSignal,\n navigate,\n match,\n start,\n dispose,\n };\n}\nfunction normalizeRouterOptions(input) {\n if (Array.isArray(input)) {\n return { routes: input };\n }\n return input;\n}\nfunction normalizeFallbackRoute(route, fallbackId, fallbackPath) {\n if (!route) {\n return undefined;\n }\n return {\n ...route,\n id: route.id ?? fallbackId,\n path: route.path ?? fallbackPath,\n };\n}\nexport async function runRouteLoader(match, args) {\n const result = await executeRouteHandler('loader', match.route.loader, match, args);\n updateRouteDataCache(match, result);\n return result;\n}\nexport async function runRouteAction(match, args) {\n const result = await executeRouteHandler('action', match.route.action, match, args);\n updateRouteDataCache(match, result);\n return result;\n}\nexport async function prefetchRoute(match, options) {\n await Promise.resolve(match.route.component());\n if (options?.loadData) {\n await runRouteLoader(match, options.loaderArgs);\n }\n}\nfunction normalizeBoundaryConfig(kind, config, context) {\n const layoutSuffix = typeof context.layoutIndex === 'number' ? `:${String(context.layoutIndex)}` : '';\n const fallbackId = `${kind}:${context.routeId}${layoutSuffix}`;\n const componentName = config?.componentName ?? config?.name ?? context.routeId;\n const attributes = {\n ...(config?.attributes ?? {}),\n routeId: context.routeId,\n path: context.path,\n layoutIndex: context.layoutIndex,\n params: context.params ? { ...context.params } : undefined,\n };\n return {\n ...config,\n id: config?.id ?? fallbackId,\n name: config?.name ?? componentName,\n componentName,\n attributes,\n };\n}\nfunction createRouterBoundaryState(kind, definition) {\n const state = {\n id: definition.id,\n kind,\n definition,\n boundary: {\n id: definition.id,\n handle(error, info) {\n state.error = error;\n state.info = info;\n if (definition.onError) {\n try {\n const handled = definition.onError(error, info);\n if (handled === false) {\n return false;\n }\n }\n catch (hookError) {\n state.error = hookError instanceof Error ? hookError : new Error(String(hookError));\n state.info = info;\n }\n }\n return true;\n },\n },\n error: null,\n info: null,\n reset() {\n state.error = null;\n state.info = null;\n },\n };\n return state;\n}\nasync function executeRouteHandler(kind, handler, match, args) {\n const startedAt = Date.now();\n if (!handler) {\n return {\n handled: true,\n startedAt,\n endedAt: startedAt,\n durationMs: 0,\n };\n }\n const normalizedArgs = normalizeHandlerArgs(match, args);\n const boundaries = [...match.layouts, match.boundary];\n boundaries.forEach(boundary => {\n boundary.reset();\n });\n try {\n const data = await runWithBoundaries(boundaries, () => invokeRouteHandler(handler, kind, match, normalizedArgs));\n const boundaryError = firstErroredBoundary(boundaries);\n const endedAt = Date.now();\n if (boundaryError) {\n return {\n handled: true,\n error: boundaryError.error ?? undefined,\n info: boundaryError.info ?? null,\n startedAt,\n endedAt,\n durationMs: endedAt - startedAt,\n };\n }\n return {\n handled: true,\n data,\n info: null,\n startedAt,\n endedAt,\n durationMs: endedAt - startedAt,\n };\n }\n catch (error) {\n const normalized = error instanceof Error ? error : new Error(String(error));\n const endedAt = Date.now();\n return {\n handled: false,\n error: normalized,\n info: null,\n startedAt,\n endedAt,\n durationMs: endedAt - startedAt,\n };\n }\n}\nfunction normalizeHandlerArgs(match, args) {\n return {\n params: (args?.params) ?? match.params,\n request: args?.request,\n signal: args?.signal,\n context: args?.context,\n };\n}\nfunction runWithBoundaries(boundaries, run) {\n return boundaries.reduceRight((next, boundary) => {\n return () => withRuntimeErrorBoundary(boundary.boundary, next);\n }, run)();\n}\nfunction invokeRouteHandler(handler, kind, match, args) {\n const phase = kind === 'loader' ? 'loader' : 'action';\n const info = createHandlerErrorInfo(phase, match, args);\n try {\n const result = handler(args);\n if (isPromiseLike(result)) {\n return result.catch((error) => {\n const handled = captureRuntimeError(error, info);\n if (!handled) {\n throw error;\n }\n return undefined;\n });\n }\n return result;\n }\n catch (error) {\n const handled = captureRuntimeError(error, info);\n if (!handled) {\n throw error;\n }\n return undefined;\n }\n}\nfunction createHandlerErrorInfo(phase, match, args) {\n const attributes = {\n ...match.boundary.definition.attributes,\n params: args.params,\n requestMethod: args.request?.method,\n layoutStack: match.layouts.map(layout => layout.definition.id),\n };\n return {\n phase,\n componentName: match.boundary.definition.componentName,\n componentInstanceId: match.boundary.id,\n templateId: match.boundary.definition.templateId,\n attributes,\n };\n}\nfunction firstErroredBoundary(boundaries) {\n for (let i = boundaries.length - 1; i >= 0; i -= 1) {\n if (boundaries[i].error) {\n return boundaries[i];\n }\n }\n return undefined;\n}\nfunction isPromiseLike(value) {\n return Boolean(value) && typeof value === 'object' && 'then' in value;\n}\nfunction updateRouteDataCache(match, result) {\n if (result.handled) {\n cacheRouteDataResult(match, result);\n return;\n }\n clearRouteDataResult(match);\n}\n","import { renderComponent } from './component.js';\nexport function renderRouterApp(component, options) {\n return renderComponent(component, options);\n}\n","import http from 'node:http';\nimport { URL } from 'node:url';\nimport { promises as fs } from 'node:fs';\nexport function createHttpApp() {\n const middlewares = [];\n const runMiddlewares = async (ctx, index = 0) => {\n if (index >= middlewares.length) {\n return;\n }\n const next = () => {\n return runMiddlewares(ctx, index + 1);\n };\n await middlewares[index](ctx, next);\n };\n return {\n use(middleware) {\n middlewares.push(middleware);\n return this;\n },\n handle(req, res) {\n const host = req.headers.host ?? 'localhost';\n const url = new URL(req.url ?? '/', `http://${host}`);\n const ctx = { req, res, url, state: {} };\n runMiddlewares(ctx).catch((err) => {\n res.statusCode = 500;\n res.end(err instanceof Error ? err.message : 'Unknown error');\n });\n },\n listen(port) {\n const server = http.createServer((req, res) => this.handle(req, res));\n return new Promise(resolve => {\n server.listen(port, () => resolve(server));\n });\n },\n };\n}\nexport function json(handler) {\n return async (ctx, next) => {\n if (ctx.req.method === 'GET') {\n ctx.data = await handler(ctx);\n ctx.res.setHeader('Content-Type', 'application/json');\n ctx.res.end(JSON.stringify(ctx.data));\n return;\n }\n await next();\n };\n}\nexport function serveStatic(root) {\n return async (ctx, next) => {\n if (ctx.req.method !== 'GET') {\n await next();\n return;\n }\n const host = ctx.req.headers.host ?? 'localhost';\n const path = new URL(ctx.req.url ?? '/', `http://${host}`).pathname;\n const filePath = new URL(path === '/' ? '/index.html' : path, `file://${root}`);\n try {\n const data = await fs.readFile(filePath);\n ctx.res.end(data);\n }\n catch (error) {\n if (error.code === 'ENOENT') {\n await next();\n return;\n }\n throw error;\n }\n };\n}\n","const DEFAULT_TEMPLATE = '<!doctype html><html><head><!--ce-ui-head--><!--ce-ui-assets--></head><body><!--ce-ui-app--></body></html>';\nexport function renderAssetTags(manifest) {\n if (!manifest) {\n return '';\n }\n const styles = (manifest.styles ?? []).map(href => `<link rel=\"stylesheet\" href=\"${href}\">`).join('');\n const preloads = (manifest.preloads ?? [])\n .map(href => `<link rel=\"preload\" href=\"${href}\" as=\"script\">`)\n .join('');\n const scripts = (manifest.scripts ?? []).map(src => `<script type=\"module\" src=\"${src}\"></script>`).join('');\n const hydrate = (manifest.hydrate ?? [])\n .map(src => `<script type=\"module\" data-ce-hydrate src=\"${src}\"></script>`)\n .join('');\n return `${preloads}${styles}${scripts}${hydrate}`;\n}\nexport function renderHtmlDocument(options) {\n const template = options.template ?? DEFAULT_TEMPLATE;\n const head = options.head ?? '';\n const assets = renderAssetTags(options.manifest);\n const htmlAttrs = options.htmlAttributes ? ` ${options.htmlAttributes}` : '';\n const bodyAttrs = options.bodyAttributes ? ` ${options.bodyAttributes}` : '';\n return applyTemplate(template, {\n head,\n assets,\n body: options.body,\n htmlAttributes: htmlAttrs,\n bodyAttributes: bodyAttrs,\n });\n}\nfunction isAsyncIterable(value) {\n return Boolean(value) && typeof value === 'object' && Symbol.asyncIterator in value;\n}\nexport function createNodeSsrMiddleware(options) {\n return async (ctx, next) => {\n if (ctx.req.method !== 'GET') {\n await next();\n return;\n }\n const bodyResult = await options.render(ctx);\n ctx.res.statusCode = options.status ?? 200;\n ctx.res.setHeader('Content-Type', 'text/html; charset=utf-8');\n if (options.headers) {\n Object.entries(options.headers).forEach(([key, value]) => ctx.res.setHeader(key, value));\n }\n if (isAsyncIterable(bodyResult)) {\n const shell = renderHtmlShell({\n template: options.template,\n head: options.head,\n manifest: options.manifest,\n });\n ctx.res.write(shell.start);\n for await (const chunk of bodyResult) {\n ctx.res.write(chunk);\n }\n ctx.res.end(shell.end);\n return;\n }\n const html = renderHtmlDocument({\n template: options.template,\n head: options.head,\n body: bodyResult,\n manifest: options.manifest,\n });\n ctx.res.end(html);\n };\n}\nexport function createEdgeSsrHandler(options) {\n return async request => {\n const url = new URL(request.url);\n const bodyResult = await options.render({ request, url });\n const headers = new Headers(options.headers);\n if (!headers.has('Content-Type')) {\n headers.set('Content-Type', 'text/html; charset=utf-8');\n }\n if (isAsyncIterable(bodyResult)) {\n const shell = renderHtmlShell({\n template: options.template,\n head: options.head,\n manifest: options.manifest,\n });\n const encoder = new TextEncoder();\n const stream = new ReadableStream({\n async start(controller) {\n controller.enqueue(encoder.encode(shell.start));\n for await (const chunk of bodyResult) {\n controller.enqueue(encoder.encode(chunk));\n }\n controller.enqueue(encoder.encode(shell.end));\n controller.close();\n },\n });\n return new Response(stream, { status: options.status ?? 200, headers });\n }\n const html = renderHtmlDocument({\n template: options.template,\n head: options.head,\n body: bodyResult,\n manifest: options.manifest,\n });\n return new Response(html, { status: options.status ?? 200, headers });\n };\n}\nfunction renderHtmlShell(options) {\n const template = options.template ?? DEFAULT_TEMPLATE;\n const head = options.head ?? '';\n const assets = renderAssetTags(options.manifest);\n const resolved = applyTemplate(template, {\n head,\n assets,\n body: '<!--ce-ui-app-->',\n htmlAttributes: '',\n bodyAttributes: '',\n });\n const marker = '<!--ce-ui-app-->';\n const index = resolved.indexOf(marker);\n if (index === -1) {\n return { start: resolved, end: '' };\n }\n return {\n start: resolved.slice(0, index),\n end: resolved.slice(index + marker.length),\n };\n}\nfunction applyTemplate(template, payload) {\n if (template.includes('<html') || template.includes('<body')) {\n return template\n .replace('<html', `<html${payload.htmlAttributes}`)\n .replace('<body', `<body${payload.bodyAttributes}`)\n .replace('<!--ce-ui-head-->', payload.head)\n .replace('<!--ce-ui-assets-->', payload.assets)\n .replace('<!--ce-ui-app-->', payload.body);\n }\n return template\n .replace('<!--ce-ui-head-->', payload.head)\n .replace('<!--ce-ui-assets-->', payload.assets)\n .replace('<!--ce-ui-app-->', payload.body);\n}\n","import { signal, SignalAccessor } from './signals.js';\nimport { RuntimeErrorBoundary, RuntimeErrorInfo } from './errors.js';\n\nexport type ErrorBoundaryHandler = (error: Error, info: RuntimeErrorInfo) => boolean | undefined;\n\nexport interface ErrorBoundaryApi {\n readonly error: SignalAccessor<Error | null>;\n readonly info: SignalAccessor<RuntimeErrorInfo | null>;\n reset(): void;\n handleWith(handler: ErrorBoundaryHandler | null): void;\n}\n\nexport interface ComponentBoundaryController {\n boundary: RuntimeErrorBoundary;\n api: ErrorBoundaryApi;\n}\n\nlet currentBoundaryApi: ErrorBoundaryApi | null = null;\n\nexport function createComponentBoundaryController(options: {\n componentName?: string;\n componentInstanceId: string;\n}): ComponentBoundaryController {\n const errorSignal = signal<Error | null>(null);\n const infoSignal = signal<RuntimeErrorInfo | null>(null);\n let handler: ErrorBoundaryHandler | null = null;\n\n const api: ErrorBoundaryApi = {\n error: errorSignal,\n info: infoSignal,\n reset() {\n errorSignal.set(null);\n infoSignal.set(null);\n },\n handleWith(next) {\n handler = next ?? null;\n },\n };\n\n const boundary: RuntimeErrorBoundary = {\n id: options.componentInstanceId,\n handle(error, info) {\n errorSignal.set(error);\n infoSignal.set(info);\n if (!handler) {\n return false;\n }\n try {\n const handled = handler(error, info);\n if (handled !== false) {\n return true;\n }\n } catch (handlerError) {\n const normalized = handlerError instanceof Error ? handlerError : new Error(String(handlerError));\n errorSignal.set(normalized);\n infoSignal.set(info);\n }\n return false;\n },\n };\n\n return {\n boundary,\n api,\n } satisfies ComponentBoundaryController;\n}\n\nexport function withComponentBoundaryContext<T>(controller: ComponentBoundaryController, run: () => T): T {\n const previous = currentBoundaryApi;\n currentBoundaryApi = controller.api;\n try {\n return run();\n } finally {\n currentBoundaryApi = previous;\n }\n}\n\nexport function useErrorBoundary(handler?: ErrorBoundaryHandler): ErrorBoundaryApi {\n if (!currentBoundaryApi) {\n throw new Error('useErrorBoundary() can only be used while executing a component setup function.');\n }\n if (handler) {\n currentBoundaryApi.handleWith(handler);\n }\n return currentBoundaryApi;\n}\n","import { defineComponent } from './component.js';\nimport { RuntimeErrorInfo } from './errors.js';\nimport { useErrorBoundary } from './error-boundary-context.js';\n\nexport interface ErrorBoundaryProps extends Record<string, unknown> {\n onError?: (payload: { error: Error; info: RuntimeErrorInfo }) => void;\n}\n\nexport const ErrorBoundary = defineComponent<ErrorBoundaryProps>({\n name: 'ErrorBoundary',\n template: `\n <div ce:if=\"!hasError()\" class=\"ce-error-boundary__content\">\n <slot></slot>\n </div>\n <div ce:if=\"hasError()\" class=\"ce-error-boundary__fallback\">\n <slot name=\"fallback\">\n <section class=\"ce-error-boundary__panel\">\n <p class=\"ce-error-boundary__title\">Something went wrong.</p>\n <pre>{{ errorMessage() }}</pre>\n <button type=\"button\" on:click=\"reset\" class=\"ce-error-boundary__reset\">Try again</button>\n </section>\n </slot>\n </div>\n `,\n styles: [\n `.ce-error-boundary__fallback {\n display: block;\n }\n .ce-error-boundary__panel {\n border: 1px dashed var(--ce-border, #f87171);\n padding: 1rem;\n border-radius: 0.75rem;\n background: rgba(248, 113, 113, 0.08);\n color: inherit;\n }\n .ce-error-boundary__title {\n font-weight: 600;\n margin: 0 0 0.5rem;\n }\n .ce-error-boundary__panel pre {\n margin: 0 0 0.75rem;\n padding: 0.5rem;\n background: rgba(15, 23, 42, 0.65);\n border-radius: 0.5rem;\n font-size: 0.85rem;\n line-height: 1.4;\n white-space: pre-wrap;\n }\n .ce-error-boundary__reset {\n display: inline-flex;\n align-items: center;\n padding: 0.35rem 0.75rem;\n border-radius: 0.5rem;\n border: 0;\n cursor: pointer;\n background: var(--ce-primary, #2563eb);\n color: var(--ce-on-primary, #f8fafc);\n }`,\n ],\n setup({ props, emit }) {\n const boundary = useErrorBoundary((error, info) => {\n props.onError?.({ error, info });\n emit('error', { error, info });\n return true;\n });\n\n const hasError = () => Boolean(boundary.error());\n const errorMessage = () => boundary.error()?.message ?? 'Unknown error';\n const reset = () => {\n boundary.reset();\n };\n\n return {\n hasError,\n error: boundary.error,\n info: boundary.info,\n errorMessage,\n reset,\n };\n },\n});\n","import { emitRuntimeErrorReport } from './error-bus.js';\n\nconst inspectedTargets = new WeakSet();\n\nexport function ensureHydrationConsistency(target, context) {\n if (typeof document === 'undefined') {\n return;\n }\n if (inspectedTargets.has(target)) {\n return;\n }\n inspectedTargets.add(target);\n if (!hasServerDom(target)) {\n return;\n }\n const serverDom = snapshotDom(target);\n reportHydrationMismatch({\n templateId: context.templateId,\n componentName: context.componentName,\n componentInstanceId: context.componentInstanceId,\n reason: 'Detected existing server-rendered DOM before client render. Hydration support is not enabled yet.',\n receivedDom: serverDom,\n attributes: {\n serverDomLength: serverDom.length,\n },\n });\n clearNode(target);\n}\n\nexport function reportHydrationMismatch(details) {\n const error = new Error(`[hydration] ${details.reason}`);\n const info = {\n phase: 'hydration',\n componentName: details.componentName,\n componentInstanceId: details.componentInstanceId,\n templateId: details.templateId,\n attributes: {\n ...(details.attributes ?? {}),\n expectedDom: details.expectedDom,\n receivedDom: details.receivedDom,\n timestamp: Date.now(),\n },\n };\n emitRuntimeErrorReport({\n error,\n info,\n handled: true,\n });\n if (typeof console !== 'undefined') {\n console.warn('[ce-ui] hydration mismatch detected', {\n reason: details.reason,\n templateId: details.templateId,\n componentName: details.componentName,\n });\n }\n}\n\nexport function snapshotDom(node) {\n if (node instanceof Element) {\n return node.innerHTML;\n }\n if (node instanceof DocumentFragment) {\n const div = document.createElement('div');\n div.appendChild(node.cloneNode(true));\n return div.innerHTML;\n }\n return node.textContent ?? '';\n}\n\nfunction hasServerDom(target) {\n return 'childNodes' in target && target.childNodes.length > 0;\n}\n\nfunction clearNode(target) {\n while (target.firstChild) {\n target.removeChild(target.firstChild);\n }\n}\n"]}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { M as MountOptions, C as ComponentFactory, a as ComponentInstance, R as RenderScope, b as RenderTemplateOptions } from './component-BVzvepw9.cjs';
|
|
2
|
+
export { c as ComponentLifecycle, d as ComponentLifecycleContext, e as ComponentOptions, I as InjectionToken, f as Injector, P as Provider, g as RenderToStringOptions, S as SetupContext, h as createInjector, i as defineComponent, r as renderComponent } from './component-BVzvepw9.cjs';
|
|
3
|
+
import { W as WorkflowTraceSink, a as WorkflowLogger, b as WorkflowTraceEvent } from './index-CpxDa60m.cjs';
|
|
4
|
+
export { A as ActorClaimMapping, c as ActorContext, d as ActorMapper, e as ApprovalContext, f as ApprovalDecision, g as ApprovalGate, h as ApprovalResolver, i as AzureQueueClientLike, B as BackgroundRunner, j as BullMqDriver, C as ConsoleLogger, k as ConsoleWorkflowLogger, D as DATABASE_TASK, l as DELAY_TASK, m as DatabaseOperation, n as DatabaseOperationType, o as DatabaseProvider, p as DatabaseProviderContext, q as DatabaseRegistry, r as DatabaseTaskInput, s as DatabaseWorkflowStore, t as DatabaseWorkflowStoreOptions, u as DefaultApprovalResolver, v as DefaultBackgroundRunner, w as DelayTaskInput, x as DrizzleClientLike, F as FunctionalDatabaseProvider, H as HTTP_TASK, y as HttpTaskExecutor, z as HttpTaskInput, E as HttpTaskRequest, G as HttpTaskResponse, I as InMemoryDatabaseRegistry, J as InMemorySchedulerService, K as InMemoryWorkflowStore, L as LogContext, M as LogErrorPayload, N as LogEvent, O as LogLevel, P as Logger, Q as ManualOverrideApprovalResolver, R as MetricsConsoleEmitter, S as MongoCollectionLike, T as MongoWorkflowStore, U as MongoWorkflowStoreOptions, V as PolicyApprovalResolver, X as PolicyDecision, Y as PolicyEvaluationRequest, Z as PrismaClientLike, _ as QueueBackgroundRunner, $ as QueueBackgroundRunnerOptions, a0 as QueueDriver, a1 as QueueMessage, a2 as QueueMetricsEmitter, a3 as RestDatabaseAdapterOptions, a4 as RetryPolicy, a5 as RuleBasedPolicyEngine, a6 as SCHEDULE_TASK, a7 as ScheduleRequest, a8 as ScheduleTaskInput, a9 as SimplePolicyRule, aa as SqlDialect, ab as SqsClientLike, ac as SupabaseClientLike, ad as SupabaseQueryLike, ae as SystemTimeService, af as TaskInvocation, ag as TimeService, ah as TokenClaims, ai as VisualWorkflowEdge, aj as VisualWorkflowNode, ak as VisualWorkflowSchema, al as WorkflowAuthMiddleware, am as WorkflowBuilder, an as WorkflowDefinition, ao as WorkflowDefinitionSerializer, ap as WorkflowHistoryEntry, aq as WorkflowInstanceState, ar as WorkflowJSONDefinition, as as WorkflowPolicyEngine, at as WorkflowRunRequest, au as WorkflowRunResult, av as WorkflowRuntime, aw as WorkflowRuntimeOptions, ax as WorkflowScheduler, ay as WorkflowServices, az as WorkflowState, aA as WorkflowStatus, aB as WorkflowStepBuilder, aC as WorkflowStepDefinition, aD as WorkflowStore, aE as WorkflowTaskContext, aF as WorkflowTaskHandler, aG as WorkflowTaskResult, aH as WorkflowTraceEventType, aI as WorkflowTransitions, aJ as actorFromAuth0Claims, aK as actorFromAzureAdClaims, aL as actorFromCognitoClaims, aM as actorFromOidcClaims, aN as buildPolicyRequest, aO as createAzureQueueDriver, aP as createBullMqDriver, aQ as createDatabaseTaskHandler, aR as createDefaultTaskMap, aS as createDelayTaskHandler, aT as createDrizzleProvider, aU as createFetchHttpExecutor, aV as createHttpTaskHandler, aW as createMongoProvider, aX as createMySqlProvider, aY as createPostgresProvider, aZ as createPrismaProvider, a_ as createRestDatabaseProvider, a$ as createScheduleTaskHandler, b0 as createSqlDatabaseProvider, b1 as createSqliteProvider, b2 as createSqsDriver, b3 as createStartWorkflowMiddleware, b4 as createStepMiddleware, b5 as createSupabaseProvider, b6 as createWorkflow, b7 as databaseTask, b8 as delayTask, b9 as httpTask, ba as multiStepApprovalResolver, bb as registerDefaultDatabaseProviders, bc as requireActorRoles, bd as requireActorScopes, be as runAuthMiddleware, bf as scheduleTask, bg as task, bh as visualSchemaToWorkflow, bi as workflowFromJson, bj as workflowToVisualSchema } from './index-CpxDa60m.cjs';
|
|
5
|
+
import { S as SignalAccessor } from './browser-signals-07qodpYT.cjs';
|
|
6
|
+
export { D as Dispose, E as Effect, a as EffectOptions, b as EffectSnapshot, c as Signal, d as SignalSnapshot, e as SignalsInspectorSnapshot, f as batch, g as clearSignalsInspectorRegistry, h as computed, i as effect, j as getSignalsInspectorSnapshot, s as signal } from './browser-signals-07qodpYT.cjs';
|
|
7
|
+
export { C as ClassifiedError, D as DevtoolsDashboardOptions, a as DiagnosticsOptions, b as DiagnosticsSnapshot, F as FieldArrayControl, c as FieldControl, d as FieldValidationState, e as FormController, f as FormErrorLeaf, g as FormErrorMap, h as FormErrorValue, i as FormValidationResult, j as FormWizardController, k as FormWizardStep, H as HydrationDomDiff, l as HydrationDomPayload, m as HydrationMismatchSummary, n as HydrationReplayPanelOptions, o as HydrationReplaySession, O as OptimisticUpdateOptions, R as RegisterOptions, p as Resource, q as ResourceCache, r as ResourceContext, s as ResourceErrorType, t as ResourceFetcher, u as ResourceKey, v as ResourceOptions, w as ResourceState, x as ResourceStatus, y as RouteInspectorNode, z as RouterInspector, A as RouterInspectorPanelOptions, B as RouterInspectorSnapshot, E as RuntimeDiagnosticsStore, G as RuntimeErrorReport, I as RuntimeErrorReporter, S as SignalsGraph, J as SignalsGraphEdge, K as SignalsGraphNode, L as SignalsInspectorPanelOptions, M as SignalsInspectorStore, V as ValidationContext, N as ValidationMessage, P as Validator, Q as addRuntimeErrorReporter, T as buildHydrationDomDiff, U as buildHydrationSummary, W as buildRouteTree, X as buildSignalsGraph, Y as calculateRetryDelay, Z as classifyError, _ as clearRuntimeErrorReporters, $ as createDevtoolsDashboard, a0 as createFormController, a1 as createFormWizard, a2 as createHydrationReplayPanel, a3 as createHydrationReplaySession, a4 as createResource, a5 as createResourceCache, a6 as createRouterInspector, a7 as createRouterInspectorPanel, a8 as createRuntimeDiagnosticsStore, a9 as createSignalsInspector, aa as createSignalsInspectorPanel, ab as emitRuntimeErrorReport, ac as getHydrationDomPayload, ad as getHydrationReports, ae as getResourceCache, af as getRuntimeErrorReporters, ag as invalidateResource, ah as isResourceExpired, ai as isResourceStale, aj as normalizeResourceKey, ak as registerRuntimeErrorReporters } from './browser-DnHpnWwE.cjs';
|
|
8
|
+
import { R as Router, N as NavigateOptions, a as RouteMatch, b as RuntimeErrorInfo } from './router-YnpW_sIK.cjs';
|
|
9
|
+
export { c as RouteBoundaryConfig, d as RouteBoundaryConfigResolved, e as RouteComponentFactory, f as RouteDataHandler, g as RouteDefinition, h as RouteGuard, i as RouteGuardContext, j as RouteGuardResult, k as RouteHandlerArgs, l as RouteHandlerResult, m as RouteLayoutDefinition, n as RouterBoundaryKind, o as RouterBoundaryState, p as RouterOptions, q as RuntimeErrorBoundary, r as RuntimeErrorContext, s as RuntimeErrorPhase, t as captureRuntimeError, u as createRouter, v as popRuntimeErrorBoundary, w as pushRuntimeErrorBoundary, x as runRouteAction, y as runRouteLoader, z as withRuntimeErrorBoundary } from './router-YnpW_sIK.cjs';
|
|
10
|
+
export { A as AiAssistantPanel, a as AiAssistantPanelProps, b as AiCompletionProvider, c as AiCompletionRequest, d as AiCompletionResponse, e as AiMessage, f as AiRole, g as AiSession, h as AiSessionOptions, i as AiSessionSendOptions, j as AiSessionStatus, F as FetchLike, k as FetchLikeRequestInit, l as FetchLikeResponse, H as HttpAiProviderOptions, M as MockAiProviderOptions, m as createAiSession, n as createHttpAiProvider, o as createMockAiProvider } from './ai-assistant-EobSUV70.cjs';
|
|
11
|
+
import { RequestContext, Middleware } from './runtime/server.cjs';
|
|
12
|
+
export { HttpApp, createHttpApp, json, serveStatic } from './runtime/server.cjs';
|
|
13
|
+
import { C as CompiledTemplate } from './types-C4RXXKfk.cjs';
|
|
14
|
+
import { a as RuntimeTraceEvent, T as TraceExporter } from './tracing-DGdvMCEl.cjs';
|
|
15
|
+
export { J as JsonlTraceExporter, b as JsonlTraceExporterOptions, N as NoopRuntimeTraceSink, O as OtlpHttpTraceExporter, c as OtlpHttpTraceExporterOptions, d as RuntimeTraceEventType, e as RuntimeTraceExporterSink, R as RuntimeTraceSink, f as TraceEventPayload, g as TraceExportOptions, h as TraceRedactor, i as getCurrentRuntimeTraceSink, j as hasRuntimeTraceSink, n as nextRuntimeTraceId, r as recordRuntimeTrace, s as setRuntimeTraceSink, w as withRuntimeTraceSink } from './tracing-DGdvMCEl.cjs';
|
|
16
|
+
export { AngularAdapterOptions, AngularElementRef, AngularSimpleChange, AngularSimpleChanges, createAngularAdapter } from './runtime/adapters/angular.cjs';
|
|
17
|
+
export { ReactAdapterComponent, ReactAdapterOptions, ReactInterop, createReactAdapter } from './runtime/adapters/react.cjs';
|
|
18
|
+
export { VueAdapterComponent, VueAdapterOptions, VueInterop, createVueAdapter } from './runtime/adapters/vue.cjs';
|
|
19
|
+
export { AiSummaryCard, AiSummaryCardProps } from './runtime/components/ai-summary-card.cjs';
|
|
20
|
+
import * as node_fs from 'node:fs';
|
|
21
|
+
import './lib/theme.cjs';
|
|
22
|
+
import 'node:http';
|
|
23
|
+
import 'node:url';
|
|
24
|
+
|
|
25
|
+
interface RouterAppOptions<Props extends Record<string, unknown>> extends MountOptions<Props> {
|
|
26
|
+
router: Router;
|
|
27
|
+
}
|
|
28
|
+
declare function renderRouterApp<Props extends Record<string, unknown>>(component: ComponentFactory<Props>, options: RouterAppOptions<Props>): ComponentInstance<Props>;
|
|
29
|
+
|
|
30
|
+
declare function withRouterContext<T>(router: Router, run: () => T): T;
|
|
31
|
+
declare function useRouter(): Router;
|
|
32
|
+
declare function useNavigate(): (path: string, options?: NavigateOptions) => RouteMatch | null;
|
|
33
|
+
declare function useLocation(): SignalAccessor<string>;
|
|
34
|
+
declare function useRouteMatch(): SignalAccessor<RouteMatch | null>;
|
|
35
|
+
declare function useRouteParams(): SignalAccessor<Record<string, string>>;
|
|
36
|
+
declare function useRouteData<T = unknown>(): SignalAccessor<T | undefined>;
|
|
37
|
+
|
|
38
|
+
declare function renderTemplateToString(
|
|
39
|
+
compiled: CompiledTemplate,
|
|
40
|
+
scope: RenderScope,
|
|
41
|
+
options?: RenderTemplateOptions,
|
|
42
|
+
): string;
|
|
43
|
+
declare function renderTemplateToStream(
|
|
44
|
+
compiled: CompiledTemplate,
|
|
45
|
+
scope: RenderScope,
|
|
46
|
+
options?: RenderTemplateOptions,
|
|
47
|
+
): Promise<AsyncIterable<string>>;
|
|
48
|
+
|
|
49
|
+
interface AssetManifest {
|
|
50
|
+
scripts?: string[];
|
|
51
|
+
styles?: string[];
|
|
52
|
+
preloads?: string[];
|
|
53
|
+
hydrate?: string[];
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
interface SsrDocumentOptions {
|
|
57
|
+
template?: string;
|
|
58
|
+
head?: string;
|
|
59
|
+
body: string;
|
|
60
|
+
manifest?: AssetManifest;
|
|
61
|
+
htmlAttributes?: string;
|
|
62
|
+
bodyAttributes?: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
interface NodeSsrOptions {
|
|
66
|
+
render: (ctx: RequestContext) => string | Promise<string> | AsyncIterable<string>;
|
|
67
|
+
template?: string;
|
|
68
|
+
head?: string;
|
|
69
|
+
manifest?: AssetManifest;
|
|
70
|
+
status?: number;
|
|
71
|
+
headers?: Record<string, string>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
interface EdgeSsrContext {
|
|
75
|
+
request: Request;
|
|
76
|
+
url: URL;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
interface EdgeSsrOptions {
|
|
80
|
+
render: (ctx: EdgeSsrContext) => string | Promise<string> | AsyncIterable<string>;
|
|
81
|
+
template?: string;
|
|
82
|
+
head?: string;
|
|
83
|
+
manifest?: AssetManifest;
|
|
84
|
+
status?: number;
|
|
85
|
+
headers?: Record<string, string>;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
declare function renderAssetTags(manifest?: AssetManifest): string;
|
|
89
|
+
declare function renderHtmlDocument(options: SsrDocumentOptions): string;
|
|
90
|
+
declare function createNodeSsrMiddleware(options: NodeSsrOptions): Middleware;
|
|
91
|
+
declare function createEdgeSsrHandler(options: EdgeSsrOptions): (request: Request) => Promise<Response>;
|
|
92
|
+
|
|
93
|
+
interface RuntimeTimelineOptions {
|
|
94
|
+
processId?: number;
|
|
95
|
+
category?: string;
|
|
96
|
+
}
|
|
97
|
+
interface ChromeTraceEvent {
|
|
98
|
+
name: string;
|
|
99
|
+
cat: string;
|
|
100
|
+
ph: 'i';
|
|
101
|
+
s: 'p';
|
|
102
|
+
ts: number;
|
|
103
|
+
pid: number;
|
|
104
|
+
tid: number;
|
|
105
|
+
args: Record<string, unknown>;
|
|
106
|
+
}
|
|
107
|
+
interface RuntimeChromeTraceDocument {
|
|
108
|
+
traceEvents: ChromeTraceEvent[];
|
|
109
|
+
}
|
|
110
|
+
declare function buildRuntimeChromeTraceDocument(events: RuntimeTraceEvent[], options?: RuntimeTimelineOptions): RuntimeChromeTraceDocument;
|
|
111
|
+
|
|
112
|
+
declare class NoopWorkflowTraceSink implements WorkflowTraceSink {
|
|
113
|
+
record(_event: WorkflowTraceEvent): void;
|
|
114
|
+
}
|
|
115
|
+
declare class ConsoleWorkflowTraceSink implements WorkflowTraceSink {
|
|
116
|
+
private readonly logger;
|
|
117
|
+
constructor(logger?: WorkflowLogger);
|
|
118
|
+
record(event: WorkflowTraceEvent): void;
|
|
119
|
+
}
|
|
120
|
+
declare class RecordingWorkflowTraceSink implements WorkflowTraceSink {
|
|
121
|
+
private readonly events;
|
|
122
|
+
record(event: WorkflowTraceEvent): void;
|
|
123
|
+
getEvents(): WorkflowTraceEvent[];
|
|
124
|
+
toJSON(): WorkflowTraceEvent[];
|
|
125
|
+
clear(): void;
|
|
126
|
+
}
|
|
127
|
+
declare class FileWorkflowTraceSink implements WorkflowTraceSink {
|
|
128
|
+
private readonly exporter;
|
|
129
|
+
constructor(filePath: string, writer?: typeof node_fs.promises);
|
|
130
|
+
record(event: WorkflowTraceEvent): Promise<void>;
|
|
131
|
+
}
|
|
132
|
+
declare class WorkflowTraceExporterSink implements WorkflowTraceSink {
|
|
133
|
+
private readonly exporter;
|
|
134
|
+
constructor(exporter: TraceExporter);
|
|
135
|
+
record(event: WorkflowTraceEvent): Promise<void> | void;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
interface ErrorBoundaryProps extends Record<string, unknown> {
|
|
139
|
+
onError?: (payload: {
|
|
140
|
+
error: Error;
|
|
141
|
+
info: RuntimeErrorInfo;
|
|
142
|
+
}) => void;
|
|
143
|
+
}
|
|
144
|
+
declare const ErrorBoundary: ComponentFactory<ErrorBoundaryProps>;
|
|
145
|
+
|
|
146
|
+
interface HydrationMismatchDetails {
|
|
147
|
+
templateId: string;
|
|
148
|
+
componentName?: string;
|
|
149
|
+
componentInstanceId?: string;
|
|
150
|
+
reason: string;
|
|
151
|
+
expectedDom?: string;
|
|
152
|
+
receivedDom?: string;
|
|
153
|
+
attributes?: Record<string, unknown>;
|
|
154
|
+
}
|
|
155
|
+
interface HydrationDiagnosticsContext {
|
|
156
|
+
templateId: string;
|
|
157
|
+
componentName?: string;
|
|
158
|
+
componentInstanceId?: string;
|
|
159
|
+
}
|
|
160
|
+
declare function ensureHydrationConsistency(target: Node, context: HydrationDiagnosticsContext): void;
|
|
161
|
+
declare function reportHydrationMismatch(details: HydrationMismatchDetails): void;
|
|
162
|
+
declare function snapshotDom(node: Node): string;
|
|
163
|
+
type HydrationErrorInfo = RuntimeErrorInfo;
|
|
164
|
+
|
|
165
|
+
export { type AssetManifest, ComponentFactory, ComponentInstance, ConsoleWorkflowTraceSink, type EdgeSsrContext, type EdgeSsrOptions, ErrorBoundary, type ErrorBoundaryProps, FileWorkflowTraceSink, type HydrationDiagnosticsContext, type HydrationErrorInfo, type HydrationMismatchDetails, Middleware, MountOptions, NavigateOptions, type NodeSsrOptions, NoopWorkflowTraceSink, RecordingWorkflowTraceSink, RequestContext, RouteMatch, Router, type RouterAppOptions, type RuntimeChromeTraceDocument, RuntimeErrorInfo, type RuntimeTimelineOptions, RuntimeTraceEvent, SignalAccessor, type SsrDocumentOptions, TraceExporter, WorkflowLogger, WorkflowTraceEvent, WorkflowTraceExporterSink, WorkflowTraceSink, buildRuntimeChromeTraceDocument, createEdgeSsrHandler, createNodeSsrMiddleware, ensureHydrationConsistency, renderAssetTags, renderHtmlDocument, renderRouterApp, renderTemplateToStream, renderTemplateToString, reportHydrationMismatch, snapshotDom, useLocation, useNavigate, useRouteData, useRouteMatch, useRouteParams, useRouter, withRouterContext };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { M as MountOptions, C as ComponentFactory, a as ComponentInstance, R as RenderScope, b as RenderTemplateOptions } from './component-wTxZ2BPD.js';
|
|
2
|
+
export { c as ComponentLifecycle, d as ComponentLifecycleContext, e as ComponentOptions, I as InjectionToken, f as Injector, P as Provider, g as RenderToStringOptions, S as SetupContext, h as createInjector, i as defineComponent, r as renderComponent } from './component-wTxZ2BPD.js';
|
|
3
|
+
import { W as WorkflowTraceSink, a as WorkflowLogger, b as WorkflowTraceEvent } from './index-CpxDa60m.js';
|
|
4
|
+
export { A as ActorClaimMapping, c as ActorContext, d as ActorMapper, e as ApprovalContext, f as ApprovalDecision, g as ApprovalGate, h as ApprovalResolver, i as AzureQueueClientLike, B as BackgroundRunner, j as BullMqDriver, C as ConsoleLogger, k as ConsoleWorkflowLogger, D as DATABASE_TASK, l as DELAY_TASK, m as DatabaseOperation, n as DatabaseOperationType, o as DatabaseProvider, p as DatabaseProviderContext, q as DatabaseRegistry, r as DatabaseTaskInput, s as DatabaseWorkflowStore, t as DatabaseWorkflowStoreOptions, u as DefaultApprovalResolver, v as DefaultBackgroundRunner, w as DelayTaskInput, x as DrizzleClientLike, F as FunctionalDatabaseProvider, H as HTTP_TASK, y as HttpTaskExecutor, z as HttpTaskInput, E as HttpTaskRequest, G as HttpTaskResponse, I as InMemoryDatabaseRegistry, J as InMemorySchedulerService, K as InMemoryWorkflowStore, L as LogContext, M as LogErrorPayload, N as LogEvent, O as LogLevel, P as Logger, Q as ManualOverrideApprovalResolver, R as MetricsConsoleEmitter, S as MongoCollectionLike, T as MongoWorkflowStore, U as MongoWorkflowStoreOptions, V as PolicyApprovalResolver, X as PolicyDecision, Y as PolicyEvaluationRequest, Z as PrismaClientLike, _ as QueueBackgroundRunner, $ as QueueBackgroundRunnerOptions, a0 as QueueDriver, a1 as QueueMessage, a2 as QueueMetricsEmitter, a3 as RestDatabaseAdapterOptions, a4 as RetryPolicy, a5 as RuleBasedPolicyEngine, a6 as SCHEDULE_TASK, a7 as ScheduleRequest, a8 as ScheduleTaskInput, a9 as SimplePolicyRule, aa as SqlDialect, ab as SqsClientLike, ac as SupabaseClientLike, ad as SupabaseQueryLike, ae as SystemTimeService, af as TaskInvocation, ag as TimeService, ah as TokenClaims, ai as VisualWorkflowEdge, aj as VisualWorkflowNode, ak as VisualWorkflowSchema, al as WorkflowAuthMiddleware, am as WorkflowBuilder, an as WorkflowDefinition, ao as WorkflowDefinitionSerializer, ap as WorkflowHistoryEntry, aq as WorkflowInstanceState, ar as WorkflowJSONDefinition, as as WorkflowPolicyEngine, at as WorkflowRunRequest, au as WorkflowRunResult, av as WorkflowRuntime, aw as WorkflowRuntimeOptions, ax as WorkflowScheduler, ay as WorkflowServices, az as WorkflowState, aA as WorkflowStatus, aB as WorkflowStepBuilder, aC as WorkflowStepDefinition, aD as WorkflowStore, aE as WorkflowTaskContext, aF as WorkflowTaskHandler, aG as WorkflowTaskResult, aH as WorkflowTraceEventType, aI as WorkflowTransitions, aJ as actorFromAuth0Claims, aK as actorFromAzureAdClaims, aL as actorFromCognitoClaims, aM as actorFromOidcClaims, aN as buildPolicyRequest, aO as createAzureQueueDriver, aP as createBullMqDriver, aQ as createDatabaseTaskHandler, aR as createDefaultTaskMap, aS as createDelayTaskHandler, aT as createDrizzleProvider, aU as createFetchHttpExecutor, aV as createHttpTaskHandler, aW as createMongoProvider, aX as createMySqlProvider, aY as createPostgresProvider, aZ as createPrismaProvider, a_ as createRestDatabaseProvider, a$ as createScheduleTaskHandler, b0 as createSqlDatabaseProvider, b1 as createSqliteProvider, b2 as createSqsDriver, b3 as createStartWorkflowMiddleware, b4 as createStepMiddleware, b5 as createSupabaseProvider, b6 as createWorkflow, b7 as databaseTask, b8 as delayTask, b9 as httpTask, ba as multiStepApprovalResolver, bb as registerDefaultDatabaseProviders, bc as requireActorRoles, bd as requireActorScopes, be as runAuthMiddleware, bf as scheduleTask, bg as task, bh as visualSchemaToWorkflow, bi as workflowFromJson, bj as workflowToVisualSchema } from './index-CpxDa60m.js';
|
|
5
|
+
import { S as SignalAccessor } from './browser-signals-07qodpYT.js';
|
|
6
|
+
export { D as Dispose, E as Effect, a as EffectOptions, b as EffectSnapshot, c as Signal, d as SignalSnapshot, e as SignalsInspectorSnapshot, f as batch, g as clearSignalsInspectorRegistry, h as computed, i as effect, j as getSignalsInspectorSnapshot, s as signal } from './browser-signals-07qodpYT.js';
|
|
7
|
+
export { C as ClassifiedError, D as DevtoolsDashboardOptions, a as DiagnosticsOptions, b as DiagnosticsSnapshot, F as FieldArrayControl, c as FieldControl, d as FieldValidationState, e as FormController, f as FormErrorLeaf, g as FormErrorMap, h as FormErrorValue, i as FormValidationResult, j as FormWizardController, k as FormWizardStep, H as HydrationDomDiff, l as HydrationDomPayload, m as HydrationMismatchSummary, n as HydrationReplayPanelOptions, o as HydrationReplaySession, O as OptimisticUpdateOptions, R as RegisterOptions, p as Resource, q as ResourceCache, r as ResourceContext, s as ResourceErrorType, t as ResourceFetcher, u as ResourceKey, v as ResourceOptions, w as ResourceState, x as ResourceStatus, y as RouteInspectorNode, z as RouterInspector, A as RouterInspectorPanelOptions, B as RouterInspectorSnapshot, E as RuntimeDiagnosticsStore, G as RuntimeErrorReport, I as RuntimeErrorReporter, S as SignalsGraph, J as SignalsGraphEdge, K as SignalsGraphNode, L as SignalsInspectorPanelOptions, M as SignalsInspectorStore, V as ValidationContext, N as ValidationMessage, P as Validator, Q as addRuntimeErrorReporter, T as buildHydrationDomDiff, U as buildHydrationSummary, W as buildRouteTree, X as buildSignalsGraph, Y as calculateRetryDelay, Z as classifyError, _ as clearRuntimeErrorReporters, $ as createDevtoolsDashboard, a0 as createFormController, a1 as createFormWizard, a2 as createHydrationReplayPanel, a3 as createHydrationReplaySession, a4 as createResource, a5 as createResourceCache, a6 as createRouterInspector, a7 as createRouterInspectorPanel, a8 as createRuntimeDiagnosticsStore, a9 as createSignalsInspector, aa as createSignalsInspectorPanel, ab as emitRuntimeErrorReport, ac as getHydrationDomPayload, ad as getHydrationReports, ae as getResourceCache, af as getRuntimeErrorReporters, ag as invalidateResource, ah as isResourceExpired, ai as isResourceStale, aj as normalizeResourceKey, ak as registerRuntimeErrorReporters } from './browser-Dx4oKf5e.js';
|
|
8
|
+
import { R as Router, N as NavigateOptions, a as RouteMatch, b as RuntimeErrorInfo } from './router-B9kms5XQ.js';
|
|
9
|
+
export { c as RouteBoundaryConfig, d as RouteBoundaryConfigResolved, e as RouteComponentFactory, f as RouteDataHandler, g as RouteDefinition, h as RouteGuard, i as RouteGuardContext, j as RouteGuardResult, k as RouteHandlerArgs, l as RouteHandlerResult, m as RouteLayoutDefinition, n as RouterBoundaryKind, o as RouterBoundaryState, p as RouterOptions, q as RuntimeErrorBoundary, r as RuntimeErrorContext, s as RuntimeErrorPhase, t as captureRuntimeError, u as createRouter, v as popRuntimeErrorBoundary, w as pushRuntimeErrorBoundary, x as runRouteAction, y as runRouteLoader, z as withRuntimeErrorBoundary } from './router-B9kms5XQ.js';
|
|
10
|
+
export { A as AiAssistantPanel, a as AiAssistantPanelProps, b as AiCompletionProvider, c as AiCompletionRequest, d as AiCompletionResponse, e as AiMessage, f as AiRole, g as AiSession, h as AiSessionOptions, i as AiSessionSendOptions, j as AiSessionStatus, F as FetchLike, k as FetchLikeRequestInit, l as FetchLikeResponse, H as HttpAiProviderOptions, M as MockAiProviderOptions, m as createAiSession, n as createHttpAiProvider, o as createMockAiProvider } from './ai-assistant-Db002XYC.js';
|
|
11
|
+
import { RequestContext, Middleware } from './runtime/server.js';
|
|
12
|
+
export { HttpApp, createHttpApp, json, serveStatic } from './runtime/server.js';
|
|
13
|
+
import { C as CompiledTemplate } from './types-C4RXXKfk.js';
|
|
14
|
+
import { a as RuntimeTraceEvent, T as TraceExporter } from './tracing-DGdvMCEl.js';
|
|
15
|
+
export { J as JsonlTraceExporter, b as JsonlTraceExporterOptions, N as NoopRuntimeTraceSink, O as OtlpHttpTraceExporter, c as OtlpHttpTraceExporterOptions, d as RuntimeTraceEventType, e as RuntimeTraceExporterSink, R as RuntimeTraceSink, f as TraceEventPayload, g as TraceExportOptions, h as TraceRedactor, i as getCurrentRuntimeTraceSink, j as hasRuntimeTraceSink, n as nextRuntimeTraceId, r as recordRuntimeTrace, s as setRuntimeTraceSink, w as withRuntimeTraceSink } from './tracing-DGdvMCEl.js';
|
|
16
|
+
export { AngularAdapterOptions, AngularElementRef, AngularSimpleChange, AngularSimpleChanges, createAngularAdapter } from './runtime/adapters/angular.js';
|
|
17
|
+
export { ReactAdapterComponent, ReactAdapterOptions, ReactInterop, createReactAdapter } from './runtime/adapters/react.js';
|
|
18
|
+
export { VueAdapterComponent, VueAdapterOptions, VueInterop, createVueAdapter } from './runtime/adapters/vue.js';
|
|
19
|
+
export { AiSummaryCard, AiSummaryCardProps } from './runtime/components/ai-summary-card.js';
|
|
20
|
+
import * as node_fs from 'node:fs';
|
|
21
|
+
import './lib/theme.js';
|
|
22
|
+
import 'node:http';
|
|
23
|
+
import 'node:url';
|
|
24
|
+
|
|
25
|
+
interface RouterAppOptions<Props extends Record<string, unknown>> extends MountOptions<Props> {
|
|
26
|
+
router: Router;
|
|
27
|
+
}
|
|
28
|
+
declare function renderRouterApp<Props extends Record<string, unknown>>(component: ComponentFactory<Props>, options: RouterAppOptions<Props>): ComponentInstance<Props>;
|
|
29
|
+
|
|
30
|
+
declare function withRouterContext<T>(router: Router, run: () => T): T;
|
|
31
|
+
declare function useRouter(): Router;
|
|
32
|
+
declare function useNavigate(): (path: string, options?: NavigateOptions) => RouteMatch | null;
|
|
33
|
+
declare function useLocation(): SignalAccessor<string>;
|
|
34
|
+
declare function useRouteMatch(): SignalAccessor<RouteMatch | null>;
|
|
35
|
+
declare function useRouteParams(): SignalAccessor<Record<string, string>>;
|
|
36
|
+
declare function useRouteData<T = unknown>(): SignalAccessor<T | undefined>;
|
|
37
|
+
|
|
38
|
+
declare function renderTemplateToString(
|
|
39
|
+
compiled: CompiledTemplate,
|
|
40
|
+
scope: RenderScope,
|
|
41
|
+
options?: RenderTemplateOptions,
|
|
42
|
+
): string;
|
|
43
|
+
declare function renderTemplateToStream(
|
|
44
|
+
compiled: CompiledTemplate,
|
|
45
|
+
scope: RenderScope,
|
|
46
|
+
options?: RenderTemplateOptions,
|
|
47
|
+
): Promise<AsyncIterable<string>>;
|
|
48
|
+
|
|
49
|
+
interface AssetManifest {
|
|
50
|
+
scripts?: string[];
|
|
51
|
+
styles?: string[];
|
|
52
|
+
preloads?: string[];
|
|
53
|
+
hydrate?: string[];
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
interface SsrDocumentOptions {
|
|
57
|
+
template?: string;
|
|
58
|
+
head?: string;
|
|
59
|
+
body: string;
|
|
60
|
+
manifest?: AssetManifest;
|
|
61
|
+
htmlAttributes?: string;
|
|
62
|
+
bodyAttributes?: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
interface NodeSsrOptions {
|
|
66
|
+
render: (ctx: RequestContext) => string | Promise<string> | AsyncIterable<string>;
|
|
67
|
+
template?: string;
|
|
68
|
+
head?: string;
|
|
69
|
+
manifest?: AssetManifest;
|
|
70
|
+
status?: number;
|
|
71
|
+
headers?: Record<string, string>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
interface EdgeSsrContext {
|
|
75
|
+
request: Request;
|
|
76
|
+
url: URL;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
interface EdgeSsrOptions {
|
|
80
|
+
render: (ctx: EdgeSsrContext) => string | Promise<string> | AsyncIterable<string>;
|
|
81
|
+
template?: string;
|
|
82
|
+
head?: string;
|
|
83
|
+
manifest?: AssetManifest;
|
|
84
|
+
status?: number;
|
|
85
|
+
headers?: Record<string, string>;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
declare function renderAssetTags(manifest?: AssetManifest): string;
|
|
89
|
+
declare function renderHtmlDocument(options: SsrDocumentOptions): string;
|
|
90
|
+
declare function createNodeSsrMiddleware(options: NodeSsrOptions): Middleware;
|
|
91
|
+
declare function createEdgeSsrHandler(options: EdgeSsrOptions): (request: Request) => Promise<Response>;
|
|
92
|
+
|
|
93
|
+
interface RuntimeTimelineOptions {
|
|
94
|
+
processId?: number;
|
|
95
|
+
category?: string;
|
|
96
|
+
}
|
|
97
|
+
interface ChromeTraceEvent {
|
|
98
|
+
name: string;
|
|
99
|
+
cat: string;
|
|
100
|
+
ph: 'i';
|
|
101
|
+
s: 'p';
|
|
102
|
+
ts: number;
|
|
103
|
+
pid: number;
|
|
104
|
+
tid: number;
|
|
105
|
+
args: Record<string, unknown>;
|
|
106
|
+
}
|
|
107
|
+
interface RuntimeChromeTraceDocument {
|
|
108
|
+
traceEvents: ChromeTraceEvent[];
|
|
109
|
+
}
|
|
110
|
+
declare function buildRuntimeChromeTraceDocument(events: RuntimeTraceEvent[], options?: RuntimeTimelineOptions): RuntimeChromeTraceDocument;
|
|
111
|
+
|
|
112
|
+
declare class NoopWorkflowTraceSink implements WorkflowTraceSink {
|
|
113
|
+
record(_event: WorkflowTraceEvent): void;
|
|
114
|
+
}
|
|
115
|
+
declare class ConsoleWorkflowTraceSink implements WorkflowTraceSink {
|
|
116
|
+
private readonly logger;
|
|
117
|
+
constructor(logger?: WorkflowLogger);
|
|
118
|
+
record(event: WorkflowTraceEvent): void;
|
|
119
|
+
}
|
|
120
|
+
declare class RecordingWorkflowTraceSink implements WorkflowTraceSink {
|
|
121
|
+
private readonly events;
|
|
122
|
+
record(event: WorkflowTraceEvent): void;
|
|
123
|
+
getEvents(): WorkflowTraceEvent[];
|
|
124
|
+
toJSON(): WorkflowTraceEvent[];
|
|
125
|
+
clear(): void;
|
|
126
|
+
}
|
|
127
|
+
declare class FileWorkflowTraceSink implements WorkflowTraceSink {
|
|
128
|
+
private readonly exporter;
|
|
129
|
+
constructor(filePath: string, writer?: typeof node_fs.promises);
|
|
130
|
+
record(event: WorkflowTraceEvent): Promise<void>;
|
|
131
|
+
}
|
|
132
|
+
declare class WorkflowTraceExporterSink implements WorkflowTraceSink {
|
|
133
|
+
private readonly exporter;
|
|
134
|
+
constructor(exporter: TraceExporter);
|
|
135
|
+
record(event: WorkflowTraceEvent): Promise<void> | void;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
interface ErrorBoundaryProps extends Record<string, unknown> {
|
|
139
|
+
onError?: (payload: {
|
|
140
|
+
error: Error;
|
|
141
|
+
info: RuntimeErrorInfo;
|
|
142
|
+
}) => void;
|
|
143
|
+
}
|
|
144
|
+
declare const ErrorBoundary: ComponentFactory<ErrorBoundaryProps>;
|
|
145
|
+
|
|
146
|
+
interface HydrationMismatchDetails {
|
|
147
|
+
templateId: string;
|
|
148
|
+
componentName?: string;
|
|
149
|
+
componentInstanceId?: string;
|
|
150
|
+
reason: string;
|
|
151
|
+
expectedDom?: string;
|
|
152
|
+
receivedDom?: string;
|
|
153
|
+
attributes?: Record<string, unknown>;
|
|
154
|
+
}
|
|
155
|
+
interface HydrationDiagnosticsContext {
|
|
156
|
+
templateId: string;
|
|
157
|
+
componentName?: string;
|
|
158
|
+
componentInstanceId?: string;
|
|
159
|
+
}
|
|
160
|
+
declare function ensureHydrationConsistency(target: Node, context: HydrationDiagnosticsContext): void;
|
|
161
|
+
declare function reportHydrationMismatch(details: HydrationMismatchDetails): void;
|
|
162
|
+
declare function snapshotDom(node: Node): string;
|
|
163
|
+
type HydrationErrorInfo = RuntimeErrorInfo;
|
|
164
|
+
|
|
165
|
+
export { type AssetManifest, ComponentFactory, ComponentInstance, ConsoleWorkflowTraceSink, type EdgeSsrContext, type EdgeSsrOptions, ErrorBoundary, type ErrorBoundaryProps, FileWorkflowTraceSink, type HydrationDiagnosticsContext, type HydrationErrorInfo, type HydrationMismatchDetails, Middleware, MountOptions, NavigateOptions, type NodeSsrOptions, NoopWorkflowTraceSink, RecordingWorkflowTraceSink, RequestContext, RouteMatch, Router, type RouterAppOptions, type RuntimeChromeTraceDocument, RuntimeErrorInfo, type RuntimeTimelineOptions, RuntimeTraceEvent, SignalAccessor, type SsrDocumentOptions, TraceExporter, WorkflowLogger, WorkflowTraceEvent, WorkflowTraceExporterSink, WorkflowTraceSink, buildRuntimeChromeTraceDocument, createEdgeSsrHandler, createNodeSsrMiddleware, ensureHydrationConsistency, renderAssetTags, renderHtmlDocument, renderRouterApp, renderTemplateToStream, renderTemplateToString, reportHydrationMismatch, snapshotDom, useLocation, useNavigate, useRouteData, useRouteMatch, useRouteParams, useRouter, withRouterContext };
|