@cohesivesystems/presentation-react 0.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +55 -0
- package/dist/collection-chrome-slot-renderer-registry.d.ts +12 -0
- package/dist/collection-chrome-slot-renderer-registry.d.ts.map +1 -0
- package/dist/collection-chrome-slot-renderer-registry.js +12 -0
- package/dist/collection-chrome-slot-renderer-registry.js.map +1 -0
- package/dist/collection-selection-state-context.d.ts +6 -0
- package/dist/collection-selection-state-context.d.ts.map +1 -0
- package/dist/collection-selection-state-context.js +25 -0
- package/dist/collection-selection-state-context.js.map +1 -0
- package/dist/collection-selection-state.d.ts +3 -0
- package/dist/collection-selection-state.d.ts.map +1 -0
- package/dist/collection-selection-state.js +52 -0
- package/dist/collection-selection-state.js.map +1 -0
- package/dist/document-workspace-runtime.d.ts +262 -0
- package/dist/document-workspace-runtime.d.ts.map +1 -0
- package/dist/document-workspace-runtime.js +699 -0
- package/dist/document-workspace-runtime.js.map +1 -0
- package/dist/index.d.ts +51 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +51 -0
- package/dist/index.js.map +1 -0
- package/dist/input-form-endpoint-runtime.d.ts +140 -0
- package/dist/input-form-endpoint-runtime.d.ts.map +1 -0
- package/dist/input-form-endpoint-runtime.js +280 -0
- package/dist/input-form-endpoint-runtime.js.map +1 -0
- package/dist/local-flow-state-data-source-projection.d.ts +21 -0
- package/dist/local-flow-state-data-source-projection.d.ts.map +1 -0
- package/dist/local-flow-state-data-source-projection.js +65 -0
- package/dist/local-flow-state-data-source-projection.js.map +1 -0
- package/dist/navigation-runtime-context.d.ts +22 -0
- package/dist/navigation-runtime-context.d.ts.map +1 -0
- package/dist/navigation-runtime-context.js +23 -0
- package/dist/navigation-runtime-context.js.map +1 -0
- package/dist/navigation-shell-frame-renderer-registry.d.ts +20 -0
- package/dist/navigation-shell-frame-renderer-registry.d.ts.map +1 -0
- package/dist/navigation-shell-frame-renderer-registry.js +9 -0
- package/dist/navigation-shell-frame-renderer-registry.js.map +1 -0
- package/dist/navigation-shell-region-component-registry.d.ts +50 -0
- package/dist/navigation-shell-region-component-registry.d.ts.map +1 -0
- package/dist/navigation-shell-region-component-registry.js +44 -0
- package/dist/navigation-shell-region-component-registry.js.map +1 -0
- package/dist/navigation-shell-slot-renderer-registry.d.ts +22 -0
- package/dist/navigation-shell-slot-renderer-registry.d.ts.map +1 -0
- package/dist/navigation-shell-slot-renderer-registry.js +9 -0
- package/dist/navigation-shell-slot-renderer-registry.js.map +1 -0
- package/dist/page-host-projection.d.ts +127 -0
- package/dist/page-host-projection.d.ts.map +1 -0
- package/dist/page-host-projection.js +59 -0
- package/dist/page-host-projection.js.map +1 -0
- package/dist/page-host-renderer-registry.d.ts +72 -0
- package/dist/page-host-renderer-registry.d.ts.map +1 -0
- package/dist/page-host-renderer-registry.js +63 -0
- package/dist/page-host-renderer-registry.js.map +1 -0
- package/dist/presentation-action-group-runtime-options.d.ts +36 -0
- package/dist/presentation-action-group-runtime-options.d.ts.map +1 -0
- package/dist/presentation-action-group-runtime-options.js +50 -0
- package/dist/presentation-action-group-runtime-options.js.map +1 -0
- package/dist/presentation-action-runtime.d.ts +52 -0
- package/dist/presentation-action-runtime.d.ts.map +1 -0
- package/dist/presentation-action-runtime.js +78 -0
- package/dist/presentation-action-runtime.js.map +1 -0
- package/dist/presentation-data-source-binding-runtime.d.ts +3 -0
- package/dist/presentation-data-source-binding-runtime.d.ts.map +1 -0
- package/dist/presentation-data-source-binding-runtime.js +65 -0
- package/dist/presentation-data-source-binding-runtime.js.map +1 -0
- package/dist/presentation-data-source-binding.d.ts +12 -0
- package/dist/presentation-data-source-binding.d.ts.map +1 -0
- package/dist/presentation-data-source-binding.js +13 -0
- package/dist/presentation-data-source-binding.js.map +1 -0
- package/dist/presentation-flow-runtime.d.ts +139 -0
- package/dist/presentation-flow-runtime.d.ts.map +1 -0
- package/dist/presentation-flow-runtime.js +514 -0
- package/dist/presentation-flow-runtime.js.map +1 -0
- package/dist/presentation-module-context.d.ts +4 -0
- package/dist/presentation-module-context.d.ts.map +1 -0
- package/dist/presentation-module-context.js +6 -0
- package/dist/presentation-module-context.js.map +1 -0
- package/dist/presentation-module-provider.d.ts +7 -0
- package/dist/presentation-module-provider.d.ts.map +1 -0
- package/dist/presentation-module-provider.js +7 -0
- package/dist/presentation-module-provider.js.map +1 -0
- package/dist/presentation-projection-diagnostics-context.d.ts +8 -0
- package/dist/presentation-projection-diagnostics-context.d.ts.map +1 -0
- package/dist/presentation-projection-diagnostics-context.js +3 -0
- package/dist/presentation-projection-diagnostics-context.js.map +1 -0
- package/dist/presentation-projection-diagnostics-hooks.d.ts +4 -0
- package/dist/presentation-projection-diagnostics-hooks.d.ts.map +1 -0
- package/dist/presentation-projection-diagnostics-hooks.js +17 -0
- package/dist/presentation-projection-diagnostics-hooks.js.map +1 -0
- package/dist/presentation-projection-diagnostics-runtime.d.ts +12 -0
- package/dist/presentation-projection-diagnostics-runtime.d.ts.map +1 -0
- package/dist/presentation-projection-diagnostics-runtime.js +54 -0
- package/dist/presentation-projection-diagnostics-runtime.js.map +1 -0
- package/dist/presentation-projection-trace.d.ts +27 -0
- package/dist/presentation-projection-trace.d.ts.map +1 -0
- package/dist/presentation-projection-trace.js +54 -0
- package/dist/presentation-projection-trace.js.map +1 -0
- package/dist/presentation-query-form-runtime.d.ts +30 -0
- package/dist/presentation-query-form-runtime.d.ts.map +1 -0
- package/dist/presentation-query-form-runtime.js +75 -0
- package/dist/presentation-query-form-runtime.js.map +1 -0
- package/dist/presentation-query-form-state-adapter-registry.d.ts +4 -0
- package/dist/presentation-query-form-state-adapter-registry.d.ts.map +1 -0
- package/dist/presentation-query-form-state-adapter-registry.js +13 -0
- package/dist/presentation-query-form-state-adapter-registry.js.map +1 -0
- package/dist/presentation-query-form-state-context.d.ts +20 -0
- package/dist/presentation-query-form-state-context.d.ts.map +1 -0
- package/dist/presentation-query-form-state-context.js +20 -0
- package/dist/presentation-query-form-state-context.js.map +1 -0
- package/dist/presentation-query-form-state.d.ts +29 -0
- package/dist/presentation-query-form-state.d.ts.map +1 -0
- package/dist/presentation-query-form-state.js +99 -0
- package/dist/presentation-query-form-state.js.map +1 -0
- package/dist/presentation-renderer-registry.d.ts +109 -0
- package/dist/presentation-renderer-registry.d.ts.map +1 -0
- package/dist/presentation-renderer-registry.js +25 -0
- package/dist/presentation-renderer-registry.js.map +1 -0
- package/dist/presentation-standards-context.d.ts +4 -0
- package/dist/presentation-standards-context.d.ts.map +1 -0
- package/dist/presentation-standards-context.js +12 -0
- package/dist/presentation-standards-context.js.map +1 -0
- package/dist/presentation-standards-provider.d.ts +14 -0
- package/dist/presentation-standards-provider.d.ts.map +1 -0
- package/dist/presentation-standards-provider.js +16 -0
- package/dist/presentation-standards-provider.js.map +1 -0
- package/dist/projected-document-action-runtime-bindings.d.ts +20 -0
- package/dist/projected-document-action-runtime-bindings.d.ts.map +1 -0
- package/dist/projected-document-action-runtime-bindings.js +88 -0
- package/dist/projected-document-action-runtime-bindings.js.map +1 -0
- package/dist/projected-document-action-runtime.d.ts +76 -0
- package/dist/projected-document-action-runtime.d.ts.map +1 -0
- package/dist/projected-document-action-runtime.js +224 -0
- package/dist/projected-document-action-runtime.js.map +1 -0
- package/dist/projected-document-process-preview-action-runtime-bindings.d.ts +26 -0
- package/dist/projected-document-process-preview-action-runtime-bindings.d.ts.map +1 -0
- package/dist/projected-document-process-preview-action-runtime-bindings.js +106 -0
- package/dist/projected-document-process-preview-action-runtime-bindings.js.map +1 -0
- package/dist/projected-document-process-preview-action-runtime.d.ts +321 -0
- package/dist/projected-document-process-preview-action-runtime.d.ts.map +1 -0
- package/dist/projected-document-process-preview-action-runtime.js +729 -0
- package/dist/projected-document-process-preview-action-runtime.js.map +1 -0
- package/dist/projected-document-process-preview-capability-runtime.d.ts +47 -0
- package/dist/projected-document-process-preview-capability-runtime.d.ts.map +1 -0
- package/dist/projected-document-process-preview-capability-runtime.js +49 -0
- package/dist/projected-document-process-preview-capability-runtime.js.map +1 -0
- package/dist/projected-document-workspace-action-runtime.d.ts +87 -0
- package/dist/projected-document-workspace-action-runtime.d.ts.map +1 -0
- package/dist/projected-document-workspace-action-runtime.js +150 -0
- package/dist/projected-document-workspace-action-runtime.js.map +1 -0
- package/dist/projected-document-workspace-projection-renderer-diagnostics.d.ts +18 -0
- package/dist/projected-document-workspace-projection-renderer-diagnostics.d.ts.map +1 -0
- package/dist/projected-document-workspace-projection-renderer-diagnostics.js +207 -0
- package/dist/projected-document-workspace-projection-renderer-diagnostics.js.map +1 -0
- package/dist/projected-document-workspace-runtime-binding-diagnostics.d.ts +19 -0
- package/dist/projected-document-workspace-runtime-binding-diagnostics.d.ts.map +1 -0
- package/dist/projected-document-workspace-runtime-binding-diagnostics.js +124 -0
- package/dist/projected-document-workspace-runtime-binding-diagnostics.js.map +1 -0
- package/dist/projected-navigation-provider.d.ts +16 -0
- package/dist/projected-navigation-provider.d.ts.map +1 -0
- package/dist/projected-navigation-provider.js +51 -0
- package/dist/projected-navigation-provider.js.map +1 -0
- package/dist/projected-presentation-flow-host.d.ts +16 -0
- package/dist/projected-presentation-flow-host.d.ts.map +1 -0
- package/dist/projected-presentation-flow-host.js +14 -0
- package/dist/projected-presentation-flow-host.js.map +1 -0
- package/dist/projected-query-form-state-adapter.d.ts +12 -0
- package/dist/projected-query-form-state-adapter.d.ts.map +1 -0
- package/dist/projected-query-form-state-adapter.js +361 -0
- package/dist/projected-query-form-state-adapter.js.map +1 -0
- package/dist/react-router-binding.d.ts +133 -0
- package/dist/react-router-binding.d.ts.map +1 -0
- package/dist/react-router-binding.js +76 -0
- package/dist/react-router-binding.js.map +1 -0
- package/dist/react-router-path.d.ts +4 -0
- package/dist/react-router-path.d.ts.map +1 -0
- package/dist/react-router-path.js +11 -0
- package/dist/react-router-path.js.map +1 -0
- package/dist/scope-selection-context.d.ts +28 -0
- package/dist/scope-selection-context.d.ts.map +1 -0
- package/dist/scope-selection-context.js +13 -0
- package/dist/scope-selection-context.js.map +1 -0
- package/dist/scope-selection-provider.d.ts +33 -0
- package/dist/scope-selection-provider.d.ts.map +1 -0
- package/dist/scope-selection-provider.js +162 -0
- package/dist/scope-selection-provider.js.map +1 -0
- package/dist/scope-selection-request.d.ts +6 -0
- package/dist/scope-selection-request.d.ts.map +1 -0
- package/dist/scope-selection-request.js +12 -0
- package/dist/scope-selection-request.js.map +1 -0
- package/dist/standard-navigation-shell-frame-renderers.d.ts +15 -0
- package/dist/standard-navigation-shell-frame-renderers.d.ts.map +1 -0
- package/dist/standard-navigation-shell-frame-renderers.js +22 -0
- package/dist/standard-navigation-shell-frame-renderers.js.map +1 -0
- package/dist/standard-navigation-shell-slot-renderers.d.ts +59 -0
- package/dist/standard-navigation-shell-slot-renderers.d.ts.map +1 -0
- package/dist/standard-navigation-shell-slot-renderers.js +67 -0
- package/dist/standard-navigation-shell-slot-renderers.js.map +1 -0
- package/dist/view-chrome-slot-renderer-registry.d.ts +12 -0
- package/dist/view-chrome-slot-renderer-registry.d.ts.map +1 -0
- package/dist/view-chrome-slot-renderer-registry.js +12 -0
- package/dist/view-chrome-slot-renderer-registry.js.map +1 -0
- package/package.json +60 -0
- package/src/collection-chrome-slot-renderer-registry.ts +66 -0
- package/src/collection-selection-state-context.ts +51 -0
- package/src/collection-selection-state.tsx +101 -0
- package/src/document-workspace-runtime.tsx +1505 -0
- package/src/index.ts +50 -0
- package/src/input-form-endpoint-runtime.ts +632 -0
- package/src/local-flow-state-data-source-projection.ts +133 -0
- package/src/navigation-runtime-context.ts +40 -0
- package/src/navigation-shell-frame-renderer-registry.ts +54 -0
- package/src/navigation-shell-region-component-registry.tsx +127 -0
- package/src/navigation-shell-slot-renderer-registry.ts +88 -0
- package/src/page-host-projection.ts +356 -0
- package/src/page-host-renderer-registry.tsx +353 -0
- package/src/presentation-action-group-runtime-options.ts +121 -0
- package/src/presentation-action-runtime.ts +190 -0
- package/src/presentation-data-source-binding-runtime.ts +109 -0
- package/src/presentation-data-source-binding.tsx +24 -0
- package/src/presentation-flow-runtime.tsx +835 -0
- package/src/presentation-module-context.ts +10 -0
- package/src/presentation-module-provider.tsx +19 -0
- package/src/presentation-projection-diagnostics-context.ts +17 -0
- package/src/presentation-projection-diagnostics-hooks.ts +29 -0
- package/src/presentation-projection-diagnostics-runtime.tsx +95 -0
- package/src/presentation-projection-trace.ts +117 -0
- package/src/presentation-query-form-runtime.ts +148 -0
- package/src/presentation-query-form-state-adapter-registry.ts +25 -0
- package/src/presentation-query-form-state-context.ts +56 -0
- package/src/presentation-query-form-state.tsx +250 -0
- package/src/presentation-renderer-registry.ts +214 -0
- package/src/presentation-standards-context.ts +21 -0
- package/src/presentation-standards-provider.tsx +44 -0
- package/src/projected-document-action-runtime-bindings.ts +132 -0
- package/src/projected-document-action-runtime.ts +414 -0
- package/src/projected-document-process-preview-action-runtime-bindings.ts +231 -0
- package/src/projected-document-process-preview-action-runtime.ts +1725 -0
- package/src/projected-document-process-preview-capability-runtime.ts +216 -0
- package/src/projected-document-workspace-action-runtime.ts +402 -0
- package/src/projected-document-workspace-projection-renderer-diagnostics.ts +342 -0
- package/src/projected-document-workspace-runtime-binding-diagnostics.ts +208 -0
- package/src/projected-navigation-provider.tsx +104 -0
- package/src/projected-presentation-flow-host.tsx +46 -0
- package/src/projected-query-form-state-adapter.ts +578 -0
- package/src/react-router-binding.tsx +417 -0
- package/src/react-router-path.ts +16 -0
- package/src/scope-selection-context.ts +58 -0
- package/src/scope-selection-provider.tsx +324 -0
- package/src/scope-selection-request.ts +21 -0
- package/src/standard-navigation-shell-frame-renderers.tsx +106 -0
- package/src/standard-navigation-shell-slot-renderers.tsx +289 -0
- package/src/view-chrome-slot-renderer-registry.ts +66 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { createPresentationActionRuntimeBinding, } from '@cohesivesystems/presentation-core';
|
|
2
|
+
import { resolveActionPendingLabel, } from '@cohesivesystems/presentation-core';
|
|
3
|
+
import { actionSemanticsKinds, documentWorkspaceActionKinds, } from '@cohesivesystems/presentation-contracts';
|
|
4
|
+
/**
|
|
5
|
+
* Projects document process-preview runtime state into adapter-neutral action
|
|
6
|
+
* bindings. Product code can still provide presentation labels and additional
|
|
7
|
+
* blocking policy while the runtime owns the IR flow mechanics.
|
|
8
|
+
*/
|
|
9
|
+
export function projectDocumentProcessPreviewActionRuntimeBindings({ hasResource, isActionAvailable, isPreviewBlocked = false, pendingLabels, runtime, }) {
|
|
10
|
+
const previewPendingLabel = resolveActionPendingLabel({
|
|
11
|
+
action: runtime.actions.preview,
|
|
12
|
+
data: runtime.activePreview,
|
|
13
|
+
fallback: pendingLabels?.preview ?? 'Processing',
|
|
14
|
+
});
|
|
15
|
+
const isPreviewDisabled = isPreviewBlocked ||
|
|
16
|
+
runtime.actionEnablement.preview.isDisabled;
|
|
17
|
+
const previewDisabledReason = runtime.disabledReasons.preview ??
|
|
18
|
+
runtime.actionEnablement.preview.message ??
|
|
19
|
+
runtime.processTask.message ??
|
|
20
|
+
null;
|
|
21
|
+
const startDisabledReason = runtime.disabledReasons.start ??
|
|
22
|
+
runtime.actionEnablement.start.message ??
|
|
23
|
+
runtime.processTask.message ??
|
|
24
|
+
null;
|
|
25
|
+
return [
|
|
26
|
+
createPresentationActionRuntimeBinding({
|
|
27
|
+
documentWorkspaceKind: documentWorkspaceActionKinds.processPreview,
|
|
28
|
+
id: 'document-process-preview-flow',
|
|
29
|
+
semanticsKind: actionSemanticsKinds.documentWorkspace,
|
|
30
|
+
project: () => ({
|
|
31
|
+
disabledReason: previewDisabledReason
|
|
32
|
+
? previewDisabledReason
|
|
33
|
+
: undefined,
|
|
34
|
+
execute: () => runtime.requestPreview(),
|
|
35
|
+
isDisabled: !runtime.canExecuteAction ||
|
|
36
|
+
isPreviewDisabled ||
|
|
37
|
+
runtime.preview.isPending ||
|
|
38
|
+
runtime.start.isPending ||
|
|
39
|
+
runtime.processTask.isDisabled,
|
|
40
|
+
isHidden: !(runtime.hasAction && isActionAvailable && hasResource),
|
|
41
|
+
isPending: runtime.preview.isPending ||
|
|
42
|
+
runtime.start.isPending ||
|
|
43
|
+
Boolean(runtime.processTask.activeTask),
|
|
44
|
+
pendingLabel: previewPendingLabel,
|
|
45
|
+
}),
|
|
46
|
+
}),
|
|
47
|
+
createPresentationActionRuntimeBinding({
|
|
48
|
+
documentWorkspaceKind: documentWorkspaceActionKinds.processStart,
|
|
49
|
+
id: 'accept-document-process-preview',
|
|
50
|
+
semanticsKind: actionSemanticsKinds.documentWorkspace,
|
|
51
|
+
project: () => ({
|
|
52
|
+
disabledReason: startDisabledReason
|
|
53
|
+
? startDisabledReason
|
|
54
|
+
: undefined,
|
|
55
|
+
execute: runtime.acceptPreview,
|
|
56
|
+
isDisabled: !runtime.canAcceptPreview ||
|
|
57
|
+
runtime.start.isPending ||
|
|
58
|
+
runtime.actionEnablement.start.isDisabled ||
|
|
59
|
+
Boolean(runtime.processTask.activeTask),
|
|
60
|
+
isHidden: !runtime.activePreview,
|
|
61
|
+
isPending: runtime.start.isPending ||
|
|
62
|
+
Boolean(runtime.processTask.activeTask),
|
|
63
|
+
pendingLabel: resolveActionPendingLabel({
|
|
64
|
+
action: runtime.actions.start,
|
|
65
|
+
data: runtime.activePreview,
|
|
66
|
+
fallback: resolveStartPendingLabel(runtime, pendingLabels?.start),
|
|
67
|
+
}),
|
|
68
|
+
}),
|
|
69
|
+
}),
|
|
70
|
+
createPresentationActionRuntimeBinding({
|
|
71
|
+
documentWorkspaceKind: documentWorkspaceActionKinds.processCancel,
|
|
72
|
+
id: 'cancel-document-process-preview',
|
|
73
|
+
semanticsKind: actionSemanticsKinds.documentWorkspace,
|
|
74
|
+
project: () => ({
|
|
75
|
+
execute: runtime.activePreview ? runtime.cancelPreview : runtime.cancelPrompt,
|
|
76
|
+
isDisabled: runtime.start.isPending,
|
|
77
|
+
isHidden: !(runtime.isPromptOpen || runtime.activePreview),
|
|
78
|
+
}),
|
|
79
|
+
}),
|
|
80
|
+
];
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Projects a document process-preview runtime into action status sources used
|
|
84
|
+
* by document-profile action status notices.
|
|
85
|
+
*/
|
|
86
|
+
export function projectDocumentProcessPreviewActionStatusSources(runtime) {
|
|
87
|
+
return [
|
|
88
|
+
{
|
|
89
|
+
action: runtime.actions.preview,
|
|
90
|
+
error: runtime.preview.error,
|
|
91
|
+
isPending: runtime.preview.isPending,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
action: runtime.start.action,
|
|
95
|
+
error: runtime.start.error,
|
|
96
|
+
isPending: runtime.start.isPending,
|
|
97
|
+
},
|
|
98
|
+
];
|
|
99
|
+
}
|
|
100
|
+
function resolveStartPendingLabel(runtime, label) {
|
|
101
|
+
if (typeof label === 'function') {
|
|
102
|
+
return label(runtime);
|
|
103
|
+
}
|
|
104
|
+
return label;
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=projected-document-process-preview-action-runtime-bindings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projected-document-process-preview-action-runtime-bindings.js","sourceRoot":"","sources":["../src/projected-document-process-preview-action-runtime-bindings.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,sCAAsC,GACvC,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EACL,yBAAyB,GAC1B,MAAM,oCAAoC,CAAA;AAU3C,OAAO,EACL,oBAAoB,EACpB,4BAA4B,GAC7B,MAAM,yCAAyC,CAAA;AAiChD;;;;GAIG;AACH,MAAM,UAAU,kDAAkD,CAShE,EACA,WAAW,EACX,iBAAiB,EACjB,gBAAgB,GAAG,KAAK,EACxB,aAAa,EACb,OAAO,GAOR;IACC,MAAM,mBAAmB,GAAG,yBAAyB,CAAC;QACpD,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,OAAO;QAC/B,IAAI,EAAE,OAAO,CAAC,aAAa;QAC3B,QAAQ,EAAE,aAAa,EAAE,OAAO,IAAK,YAAuB;KAC7D,CAAC,CAAA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AAC;SACH,CAAC;KACH,CAAA;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,gDAAgD,CAM9D,OAKC;IAED,OAAO;QACL;YACE,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,OAAO;YAC/B,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK;YAC5B,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,SAAS;SACrC;QACD;YACE,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM;YAC5B,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,KAAK;YAC1B,SAAS,EAAE,OAAO,CAAC,KAAK,CAAC,SAAS;SACnC;KACF,CAAA;AACH,CAAC;AAED,SAAS,wBAAwB,CAO/B,OAKC,EACD,KAUa;IAEb,IAAI,OAAO,KAAK,KAAK,UAAU,EAAE,CAAC;QAChC,OAAQ,KAOI,CAAC,OAAO,CAAC,CAAA;IACvB,CAAC;IAED,OAAO,KAAK,CAAA;AACd,CAAC"}
|
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
import type { ProjectedDocumentResource, PresentationNavigationHrefFactory } from '@cohesivesystems/presentation-core';
|
|
2
|
+
import type { ActionDefinition, ActionPlacementDefinition, FlowDefinition, InputFormDefinition, PresentationModuleDefinition, ProcessTaskSelectorDefinition, ViewDefinition } from '@cohesivesystems/presentation-core';
|
|
3
|
+
import { type ProjectedDocumentActionEnablement, type ProjectedDocumentLocalActionEnablementContext } from '@cohesivesystems/presentation-core';
|
|
4
|
+
import type { PresentationActionEndpointExecutionRequest, PresentationActionEndpointExecutor, PresentationActionSuccessContext } from './presentation-action-runtime.js';
|
|
5
|
+
import { type PresentationFlowRuntimeRegistrySnapshot, type PresentationFlowRuntimeSnapshot } from './presentation-flow-runtime.js';
|
|
6
|
+
import type { PresentationProjectionDiagnostic, ProjectedInputFormActionContext, ProjectedInputFormRuntime } from '@cohesivesystems/presentation-core';
|
|
7
|
+
import { type ProjectedPromptDocumentPreviewData, type ProjectedPromptDocumentPreviewResource } from '@cohesivesystems/presentation-core';
|
|
8
|
+
import { type ProcessTask, type ProcessTaskSelector, type ProcessTaskStartRegistration } from '@cohesivesystems/presentation-core';
|
|
9
|
+
import { type ProjectedProcessTaskActionEnablement } from '@cohesivesystems/presentation-core';
|
|
10
|
+
/**
|
|
11
|
+
* Active preview data produced by a document-scoped process preview action.
|
|
12
|
+
*
|
|
13
|
+
* The state includes the preview endpoint request/response, the projected
|
|
14
|
+
* preview resource, formatted document text, caller-provided preview values,
|
|
15
|
+
* and the document `resourceKey` used to correlate the preview with the active
|
|
16
|
+
* workspace resource.
|
|
17
|
+
*
|
|
18
|
+
* @typeParam TPreviewResponse - Response returned by the preview endpoint.
|
|
19
|
+
* @typeParam TPreviewRequest - Request object submitted to the preview endpoint.
|
|
20
|
+
* @typeParam TPreviewValues - Additional values projected by the host runtime.
|
|
21
|
+
* @typeParam TPreviewResource - Resource shape rendered by the prompt preview.
|
|
22
|
+
*/
|
|
23
|
+
export type ProjectedDocumentProcessPreviewState<TPreviewResponse = unknown, TPreviewRequest extends object = object, TPreviewValues extends Readonly<Record<string, unknown>> = Readonly<Record<string, never>>, TPreviewResource extends ProjectedPromptDocumentPreviewResource = ProjectedPromptDocumentPreviewResource> = ProjectedPromptDocumentPreviewData<TPreviewResponse, TPreviewRequest, TPreviewResource, TPreviewValues & {
|
|
24
|
+
readonly resourceKey: string;
|
|
25
|
+
}>;
|
|
26
|
+
/**
|
|
27
|
+
* Success callback context for the action that starts a process after the user
|
|
28
|
+
* accepts a document preview.
|
|
29
|
+
*
|
|
30
|
+
* @typeParam TPreviewRequest - Request object submitted to the preview endpoint.
|
|
31
|
+
* @typeParam TPreviewResponse - Response returned by the preview endpoint.
|
|
32
|
+
* @typeParam TStartInput - Input sent to the start endpoint.
|
|
33
|
+
* @typeParam TStartResult - Result returned by the start endpoint.
|
|
34
|
+
* @typeParam TPreviewValues - Additional values projected by the host runtime.
|
|
35
|
+
* @typeParam TPreviewResource - Resource shape rendered by the prompt preview.
|
|
36
|
+
*/
|
|
37
|
+
export type ProjectedDocumentProcessStartSuccessContext<TPreviewRequest extends object, TPreviewResponse, TStartInput, TStartResult, TPreviewValues extends Readonly<Record<string, unknown>>, TPreviewResource extends ProjectedPromptDocumentPreviewResource> = PresentationActionSuccessContext<TStartInput, TStartResult> & {
|
|
38
|
+
readonly preview: ProjectedDocumentProcessPreviewState<TPreviewResponse, TPreviewRequest, TPreviewValues, TPreviewResource> | null;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Context used to register a started process task after the start endpoint
|
|
42
|
+
* succeeds.
|
|
43
|
+
*
|
|
44
|
+
* @typeParam TPreviewRequest - Request object submitted to the preview endpoint.
|
|
45
|
+
* @typeParam TPreviewResponse - Response returned by the preview endpoint.
|
|
46
|
+
* @typeParam TStartInput - Input sent to the start endpoint.
|
|
47
|
+
* @typeParam TStartResult - Result returned by the start endpoint.
|
|
48
|
+
* @typeParam TPreviewValues - Additional values projected by the host runtime.
|
|
49
|
+
* @typeParam TPreviewResource - Resource shape rendered by the prompt preview.
|
|
50
|
+
*/
|
|
51
|
+
export type ProjectedDocumentProcessTaskStartRegistrationContext<TPreviewRequest extends object, TPreviewResponse, TStartInput, TStartResult, TPreviewValues extends Readonly<Record<string, unknown>>, TPreviewResource extends ProjectedPromptDocumentPreviewResource> = ProjectedDocumentProcessStartSuccessContext<TPreviewRequest, TPreviewResponse, TStartInput, TStartResult, TPreviewValues, TPreviewResource> & {
|
|
52
|
+
readonly actionEnablement: ProjectedProcessTaskActionEnablement;
|
|
53
|
+
readonly selector: ProcessTaskSelectorDefinition | null;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Options for the document process-preview action runtime hook.
|
|
57
|
+
*
|
|
58
|
+
* @typeParam TPreviewRequest - Request object submitted to the preview endpoint.
|
|
59
|
+
* @typeParam TPreviewResponse - Response returned by the preview endpoint.
|
|
60
|
+
* @typeParam TStartInput - Input sent to the start endpoint.
|
|
61
|
+
* @typeParam TStartResult - Result returned by the start endpoint.
|
|
62
|
+
* @typeParam TPreviewValues - Additional values projected by the host runtime.
|
|
63
|
+
* @typeParam TResource - Document resource shape owned by the workspace.
|
|
64
|
+
* @typeParam TPreviewResource - Resource shape rendered by the prompt preview.
|
|
65
|
+
*/
|
|
66
|
+
export interface UseProjectedDocumentProcessPreviewActionRuntimeOptions<TPreviewRequest extends object, TPreviewResponse, TStartInput, TStartResult, TPreviewValues extends Readonly<Record<string, unknown>> = Readonly<Record<string, never>>, TResource extends ProjectedDocumentResource = ProjectedDocumentResource, TPreviewResource extends ProjectedPromptDocumentPreviewResource = ProjectedPromptDocumentPreviewResource> {
|
|
67
|
+
/** Optional process-preview action id override. */
|
|
68
|
+
readonly actionId?: string | null;
|
|
69
|
+
/** Action placements declared for the document workspace or active surface. */
|
|
70
|
+
readonly actionPlacements: readonly ActionPlacementDefinition[];
|
|
71
|
+
/** Creates flow data used when advancing from process start success. */
|
|
72
|
+
readonly createProcessFlowData?: (context: ProjectedDocumentProcessStartSuccessContext<TPreviewRequest, TPreviewResponse, TStartInput, TStartResult, TPreviewValues, TPreviewResource>) => Readonly<Record<string, unknown>>;
|
|
73
|
+
/** Creates the start endpoint input from the accepted preview. */
|
|
74
|
+
readonly createStartInput?: (preview: ProjectedDocumentProcessPreviewState<TPreviewResponse, TPreviewRequest, TPreviewValues, TPreviewResource>) => TStartInput;
|
|
75
|
+
/** Creates flow data dispatched when the user accepts the preview. */
|
|
76
|
+
readonly createStartFlowData?: (preview: ProjectedDocumentProcessPreviewState<TPreviewResponse, TPreviewRequest, TPreviewValues, TPreviewResource>) => Readonly<Record<string, unknown>>;
|
|
77
|
+
/** Creates a process task registration from a successful start action. */
|
|
78
|
+
readonly createProcessTaskStartRegistration?: (context: ProjectedDocumentProcessTaskStartRegistrationContext<TPreviewRequest, TPreviewResponse, TStartInput, TStartResult, TPreviewValues, TPreviewResource>) => ProcessTaskStartRegistration | null;
|
|
79
|
+
/** Data source id associated with the preview/start action bindings. */
|
|
80
|
+
readonly dataSourceId: string;
|
|
81
|
+
/** Query key factory used for action invalidation and process task links. */
|
|
82
|
+
readonly dataSourceQueryKey?: (dataSourceId: string) => readonly unknown[];
|
|
83
|
+
/** Default value or value factory for the prompt input form. */
|
|
84
|
+
readonly defaultValue?: TPreviewRequest | (() => TPreviewRequest);
|
|
85
|
+
/** Host endpoint executor used by both preview and start actions. */
|
|
86
|
+
readonly executeEndpoint: PresentationActionEndpointExecutor;
|
|
87
|
+
/** Finds an already-active process task matching a projected selector. */
|
|
88
|
+
readonly findActiveTask?: (selector: ProcessTaskSelector) => ProcessTask | null;
|
|
89
|
+
/** Optional flow id override for the process-preview flow. */
|
|
90
|
+
readonly flowId?: string | null;
|
|
91
|
+
/** Runtime registry that owns flow instances for prompt/process transitions. */
|
|
92
|
+
readonly flowRegistry: PresentationFlowRuntimeRegistrySnapshot;
|
|
93
|
+
/** Optional href factory used when projecting process task links. */
|
|
94
|
+
readonly createHref?: PresentationNavigationHrefFactory | null;
|
|
95
|
+
/** Optional state key for persisting prompt input form state. */
|
|
96
|
+
readonly inputStateKey?: string | null;
|
|
97
|
+
/** Whether the process-preview action is available for the current document. */
|
|
98
|
+
readonly isActionAvailable?: boolean;
|
|
99
|
+
/** Whether preview execution is temporarily blocked by the host. */
|
|
100
|
+
readonly isPreviewBlocked?: boolean;
|
|
101
|
+
/** Whether confirmed process start is temporarily blocked by the host. */
|
|
102
|
+
readonly isStartBlocked?: boolean;
|
|
103
|
+
/** Local document action enablement context for preview/start actions. */
|
|
104
|
+
readonly localActionEnablement?: ProjectedDocumentLocalActionEnablementContext | null;
|
|
105
|
+
/** Active presentation module containing actions, flows, forms, and views. */
|
|
106
|
+
readonly module: PresentationModuleDefinition | null;
|
|
107
|
+
/** Hook called after the process start action succeeds. */
|
|
108
|
+
readonly processStartResult?: (context: ProjectedDocumentProcessStartSuccessContext<TPreviewRequest, TPreviewResponse, TStartInput, TStartResult, TPreviewValues, TPreviewResource>) => void;
|
|
109
|
+
/** Projects the preview resource rendered in the prompt document preview. */
|
|
110
|
+
readonly projectPreviewResource?: (context: {
|
|
111
|
+
readonly request: TPreviewRequest;
|
|
112
|
+
readonly resource: TResource;
|
|
113
|
+
readonly resourceKey: string;
|
|
114
|
+
readonly response: TPreviewResponse;
|
|
115
|
+
}) => TPreviewResource | null | undefined;
|
|
116
|
+
/** Projects additional preview data available to preview templates. */
|
|
117
|
+
readonly projectPreviewValues?: (context: {
|
|
118
|
+
readonly request: TPreviewRequest;
|
|
119
|
+
readonly resource: TResource;
|
|
120
|
+
readonly resourceKey: string;
|
|
121
|
+
readonly response: TPreviewResponse;
|
|
122
|
+
}) => TPreviewValues;
|
|
123
|
+
/** Host context used to project process task selectors and enablement. */
|
|
124
|
+
readonly processTaskContext?: unknown;
|
|
125
|
+
/** Process task selector definitions declared for the preview action. */
|
|
126
|
+
readonly processTaskSelectors?: readonly ProcessTaskSelectorDefinition[];
|
|
127
|
+
/** Converts selector definitions into runtime process task selectors. */
|
|
128
|
+
readonly projectProcessTaskSelector?: (selector: ProcessTaskSelectorDefinition | null | undefined, context: unknown) => ProcessTaskSelector | null;
|
|
129
|
+
/** Prepares the preview endpoint request from prompt input form state. */
|
|
130
|
+
readonly preparePreviewRequest?: (context: ProjectedDocumentProcessPreviewRequestContext<TPreviewRequest, TResource>) => PresentationActionEndpointExecutionRequest;
|
|
131
|
+
/** Prepares the process start endpoint request from accepted preview input. */
|
|
132
|
+
readonly prepareStartRequest?: (context: ProjectedDocumentProcessStartRequestContext<TStartInput, TResource>) => PresentationActionEndpointExecutionRequest;
|
|
133
|
+
/** Current document resource, when loaded. */
|
|
134
|
+
readonly resource: TResource | undefined;
|
|
135
|
+
/** Stable document resource id from the active route or workspace. */
|
|
136
|
+
readonly resourceId: string;
|
|
137
|
+
/** Stable document resource key used to correlate flow instances and preview state. */
|
|
138
|
+
readonly resourceKey: string | null;
|
|
139
|
+
/** Registers a started process task with the host process task runtime. */
|
|
140
|
+
readonly registerProcessTaskStart?: (started: ProcessTaskStartRegistration) => void;
|
|
141
|
+
/** Message used when the preview action is unavailable. */
|
|
142
|
+
readonly unavailableMessage?: string;
|
|
143
|
+
/** Host validation hook run immediately before preview request projection. */
|
|
144
|
+
readonly validatePreviewRequest?: () => void;
|
|
145
|
+
/** Host validation hook run immediately before start request projection. */
|
|
146
|
+
readonly validateStartRequest?: () => void;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Request-preparation context for the preview endpoint.
|
|
150
|
+
*
|
|
151
|
+
* @typeParam TPreviewRequest - Request object submitted to the preview endpoint.
|
|
152
|
+
* @typeParam TResource - Document resource shape owned by the workspace.
|
|
153
|
+
*/
|
|
154
|
+
export interface ProjectedDocumentProcessPreviewRequestContext<TPreviewRequest extends object, TResource extends ProjectedDocumentResource> {
|
|
155
|
+
/** Preview action definition resolved from the presentation module. */
|
|
156
|
+
readonly action: ActionDefinition | null;
|
|
157
|
+
/** Input form action context captured from the projected form runtime. */
|
|
158
|
+
readonly actionContext: ProjectedInputFormActionContext<TPreviewRequest>;
|
|
159
|
+
/** Preview action id used for endpoint request projection. */
|
|
160
|
+
readonly actionId: string;
|
|
161
|
+
/** Data source id associated with the preview action binding. */
|
|
162
|
+
readonly dataSourceId: string;
|
|
163
|
+
/** Endpoint id selected by the active action target binding. */
|
|
164
|
+
readonly endpointId: string;
|
|
165
|
+
/** Input form definition rendered in the process preview prompt. */
|
|
166
|
+
readonly inputForm: InputFormDefinition;
|
|
167
|
+
/** Active presentation module used for endpoint request projection. */
|
|
168
|
+
readonly module: PresentationModuleDefinition | null;
|
|
169
|
+
/** Current document resource. */
|
|
170
|
+
readonly resource: TResource;
|
|
171
|
+
/** Stable document resource id from the active route or workspace. */
|
|
172
|
+
readonly resourceId: string;
|
|
173
|
+
/** Stable document resource key used to correlate preview state. */
|
|
174
|
+
readonly resourceKey: string;
|
|
175
|
+
/** Current prompt input form value. */
|
|
176
|
+
readonly value: TPreviewRequest;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Request-preparation context for the confirmed process start endpoint.
|
|
180
|
+
*
|
|
181
|
+
* @typeParam TStartInput - Input sent to the start endpoint.
|
|
182
|
+
* @typeParam TResource - Document resource shape owned by the workspace.
|
|
183
|
+
*/
|
|
184
|
+
export interface ProjectedDocumentProcessStartRequestContext<TStartInput, TResource extends ProjectedDocumentResource> {
|
|
185
|
+
/** Start action definition resolved from the prompt commit action. */
|
|
186
|
+
readonly action: ActionDefinition | null;
|
|
187
|
+
/** Start action id used for endpoint request projection. */
|
|
188
|
+
readonly actionId: string;
|
|
189
|
+
/** Data source id associated with the start action binding. */
|
|
190
|
+
readonly dataSourceId: string;
|
|
191
|
+
/** Endpoint id selected by the active action target binding. */
|
|
192
|
+
readonly endpointId: string;
|
|
193
|
+
/** Start endpoint input projected from the accepted preview. */
|
|
194
|
+
readonly input: TStartInput;
|
|
195
|
+
/** Active presentation module used for endpoint request projection. */
|
|
196
|
+
readonly module: PresentationModuleDefinition | null;
|
|
197
|
+
/** Current document resource. */
|
|
198
|
+
readonly resource: TResource;
|
|
199
|
+
/** Stable document resource id from the active route or workspace. */
|
|
200
|
+
readonly resourceId: string;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Runtime state and commands for a document process-preview action.
|
|
204
|
+
*
|
|
205
|
+
* @typeParam TPreviewRequest - Request object submitted to the preview endpoint.
|
|
206
|
+
* @typeParam TPreviewResponse - Response returned by the preview endpoint.
|
|
207
|
+
* @typeParam TPreviewValues - Additional values projected by the host runtime.
|
|
208
|
+
* @typeParam TPreviewResource - Resource shape rendered by the prompt preview.
|
|
209
|
+
*/
|
|
210
|
+
export interface ProjectedDocumentProcessPreviewActionRuntime<TPreviewRequest extends object, TPreviewResponse, TPreviewValues extends Readonly<Record<string, unknown>>, TPreviewResource extends ProjectedPromptDocumentPreviewResource> {
|
|
211
|
+
/** Resolved presentation actions participating in the preview prompt flow. */
|
|
212
|
+
readonly actions: {
|
|
213
|
+
/** Prompt dismiss action. */
|
|
214
|
+
readonly dismiss: ActionDefinition | null;
|
|
215
|
+
/** Action that requests the preview. */
|
|
216
|
+
readonly preview: ActionDefinition | null;
|
|
217
|
+
/** Prompt commit action that starts the process. */
|
|
218
|
+
readonly start: ActionDefinition | null;
|
|
219
|
+
};
|
|
220
|
+
/** Local enablement results for preview and start actions. */
|
|
221
|
+
readonly actionEnablement: {
|
|
222
|
+
/** Enablement result for the preview action. */
|
|
223
|
+
readonly preview: ProjectedDocumentActionEnablement;
|
|
224
|
+
/** Enablement result for the process start action. */
|
|
225
|
+
readonly start: ProjectedDocumentActionEnablement;
|
|
226
|
+
};
|
|
227
|
+
/** Stable action ids used for flow transitions and diagnostics. */
|
|
228
|
+
readonly actionIds: {
|
|
229
|
+
/** Dismiss action id or a diagnostic fallback id. */
|
|
230
|
+
readonly dismiss: string;
|
|
231
|
+
/** Preview action id or a diagnostic fallback id. */
|
|
232
|
+
readonly preview: string;
|
|
233
|
+
/** Start action id or a diagnostic fallback id. */
|
|
234
|
+
readonly start: string;
|
|
235
|
+
};
|
|
236
|
+
/** Accepts the active preview and invokes the process start action. */
|
|
237
|
+
readonly acceptPreview: () => void;
|
|
238
|
+
/** Preview data for the active resource key, or `null` when none is active. */
|
|
239
|
+
readonly activePreview: ProjectedDocumentProcessPreviewState<TPreviewResponse, TPreviewRequest, TPreviewValues, TPreviewResource> | null;
|
|
240
|
+
/** Whether the preview request action can currently execute. */
|
|
241
|
+
readonly canExecuteAction: boolean;
|
|
242
|
+
/** Whether the active preview can currently be accepted. */
|
|
243
|
+
readonly canAcceptPreview: boolean;
|
|
244
|
+
/** Cancels the active preview and clears preview state. */
|
|
245
|
+
readonly cancelPreview: () => void;
|
|
246
|
+
/** Cancels the prompt flow without accepting the preview. */
|
|
247
|
+
readonly cancelPrompt: () => void;
|
|
248
|
+
/** Action placements used for projection diagnostics in the prompt view. */
|
|
249
|
+
readonly diagnosticActionPlacements: readonly ActionPlacementDefinition[];
|
|
250
|
+
/** Projection diagnostics for missing action, flow, form, and endpoint pieces. */
|
|
251
|
+
readonly diagnostics: readonly PresentationProjectionDiagnostic[];
|
|
252
|
+
/** User-facing disabled reasons for preview and start commands. */
|
|
253
|
+
readonly disabledReasons: {
|
|
254
|
+
/** Reason preview execution is disabled, or `null` when enabled. */
|
|
255
|
+
readonly preview: string | null;
|
|
256
|
+
/** Reason process start is disabled, or `null` when enabled. */
|
|
257
|
+
readonly start: string | null;
|
|
258
|
+
};
|
|
259
|
+
/** Process-preview flow definition resolved from the action or override. */
|
|
260
|
+
readonly flow: FlowDefinition | null;
|
|
261
|
+
/** Process-preview flow id used by the runtime. */
|
|
262
|
+
readonly flowId: string;
|
|
263
|
+
/** Runtime snapshot for the active process-preview flow instance. */
|
|
264
|
+
readonly flowRuntime: PresentationFlowRuntimeSnapshot;
|
|
265
|
+
/** Whether a process-preview action was resolved. */
|
|
266
|
+
readonly hasAction: boolean;
|
|
267
|
+
/** Prompt input form definition and projected runtime adapter. */
|
|
268
|
+
readonly input: {
|
|
269
|
+
/** Input form definition used by the preview prompt. */
|
|
270
|
+
readonly form: InputFormDefinition | null;
|
|
271
|
+
/** Input form runtime adapter, or `null` when no form is projected. */
|
|
272
|
+
readonly runtime: ProjectedInputFormRuntime<TPreviewRequest> | null;
|
|
273
|
+
};
|
|
274
|
+
/** Whether the preview prompt surface is currently open for the active resource. */
|
|
275
|
+
readonly isPromptOpen: boolean;
|
|
276
|
+
/** Preview endpoint execution state. */
|
|
277
|
+
readonly preview: {
|
|
278
|
+
/** Preview endpoint id selected by action target bindings. */
|
|
279
|
+
readonly endpointId: string | null;
|
|
280
|
+
/** Last preview endpoint execution error. */
|
|
281
|
+
readonly error: unknown;
|
|
282
|
+
/** Whether the preview endpoint is currently executing. */
|
|
283
|
+
readonly isPending: boolean;
|
|
284
|
+
/** Resets preview form/runtime state. */
|
|
285
|
+
readonly reset: () => void;
|
|
286
|
+
/** Resets only the preview endpoint execution state. */
|
|
287
|
+
readonly resetExecution: () => void;
|
|
288
|
+
};
|
|
289
|
+
/** Process task selector and active-task enablement projection. */
|
|
290
|
+
readonly processTask: ProjectedProcessTaskActionEnablement;
|
|
291
|
+
/** Prompt view resolved for the process-preview flow. */
|
|
292
|
+
readonly promptView: ViewDefinition | null;
|
|
293
|
+
/** Starts preview request execution, optionally with an explicit form action context. */
|
|
294
|
+
readonly requestPreview: (actionContext?: ProjectedInputFormActionContext<TPreviewRequest>) => void;
|
|
295
|
+
/** Resets preview endpoint state, start action state, flow state, and active preview. */
|
|
296
|
+
readonly reset: () => void;
|
|
297
|
+
/** Process start endpoint execution state. */
|
|
298
|
+
readonly start: {
|
|
299
|
+
/** Start action definition resolved from the prompt commit action. */
|
|
300
|
+
readonly action: ActionDefinition | null;
|
|
301
|
+
/** Start endpoint id selected by action target bindings. */
|
|
302
|
+
readonly endpointId: string | null;
|
|
303
|
+
/** Last start endpoint execution error. */
|
|
304
|
+
readonly error: unknown;
|
|
305
|
+
/** Whether the start endpoint is currently executing. */
|
|
306
|
+
readonly isPending: boolean;
|
|
307
|
+
/** Resets the start endpoint execution state. */
|
|
308
|
+
readonly reset: () => void;
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Generic runtime for document-scoped process-preview flows declared in the
|
|
313
|
+
* presentation IR.
|
|
314
|
+
*
|
|
315
|
+
* It resolves the preview flow, projects the prompt input form, executes the
|
|
316
|
+
* preview endpoint, manages prompt preview state, and starts the confirmed
|
|
317
|
+
* process. Product code supplies domain validation and process-result
|
|
318
|
+
* interpretation.
|
|
319
|
+
*/
|
|
320
|
+
export declare function useProjectedDocumentProcessPreviewActionRuntime<TPreviewRequest extends object, TPreviewResponse, TStartInput, TStartResult, TPreviewValues extends Readonly<Record<string, unknown>> = Readonly<Record<string, never>>, TResource extends ProjectedDocumentResource = ProjectedDocumentResource, TPreviewResource extends ProjectedPromptDocumentPreviewResource = ProjectedPromptDocumentPreviewResource>({ actionId: runtimeActionId, actionPlacements, createProcessFlowData, createProcessTaskStartRegistration, createStartInput, createStartFlowData, dataSourceId, dataSourceQueryKey, defaultValue, executeEndpoint, findActiveTask, flowId: runtimeFlowId, flowRegistry, createHref, inputStateKey, isActionAvailable, isPreviewBlocked, isStartBlocked, localActionEnablement, module, processStartResult, processTaskContext, processTaskSelectors, projectPreviewResource, projectPreviewValues, projectProcessTaskSelector: projectTaskSelector, preparePreviewRequest, prepareStartRequest, resource, resourceId, resourceKey, registerProcessTaskStart, unavailableMessage, validatePreviewRequest, validateStartRequest, }: UseProjectedDocumentProcessPreviewActionRuntimeOptions<TPreviewRequest, TPreviewResponse, TStartInput, TStartResult, TPreviewValues, TResource, TPreviewResource>): ProjectedDocumentProcessPreviewActionRuntime<TPreviewRequest, TPreviewResponse, TPreviewValues, TPreviewResource>;
|
|
321
|
+
//# sourceMappingURL=projected-document-process-preview-action-runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projected-document-process-preview-action-runtime.d.ts","sourceRoot":"","sources":["../src/projected-document-process-preview-action-runtime.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,yBAAyB,EACzB,iCAAiC,EAClC,MAAM,oCAAoC,CAAA;AAE3C,OAAO,KAAK,EACV,gBAAgB,EAChB,yBAAyB,EACzB,cAAc,EACd,mBAAmB,EACnB,4BAA4B,EAE5B,6BAA6B,EAC7B,cAAc,EACf,MAAM,oCAAoC,CAAA;AAY3C,OAAO,EAEL,KAAK,iCAAiC,EACtC,KAAK,6CAA6C,EACnD,MAAM,oCAAoC,CAAA;AAC3C,OAAO,KAAK,EACV,0CAA0C,EAC1C,kCAAkC,EAClC,gCAAgC,EACjC,MAAM,+BAA+B,CAAA;AAItC,OAAO,EAML,KAAK,uCAAuC,EAC5C,KAAK,+BAA+B,EACrC,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EACV,gCAAgC,EAChC,+BAA+B,EAC/B,yBAAyB,EAC1B,MAAM,oCAAoC,CAAA;AAO3C,OAAO,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