@reeve-iot/workflow-mui 0.0.0-stage → 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.
Files changed (147) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +54 -2
  3. package/dist/canvas/BlockNode.d.ts +31 -0
  4. package/dist/canvas/BlockNode.d.ts.map +1 -0
  5. package/dist/canvas/BlockNode.js +212 -0
  6. package/dist/canvas/BlockNode.js.map +1 -0
  7. package/dist/canvas/Connection.d.ts +11 -0
  8. package/dist/canvas/Connection.d.ts.map +1 -0
  9. package/dist/canvas/Connection.js +23 -0
  10. package/dist/canvas/Connection.js.map +1 -0
  11. package/dist/canvas/WorkflowCanvas.d.ts +17 -0
  12. package/dist/canvas/WorkflowCanvas.d.ts.map +1 -0
  13. package/dist/canvas/WorkflowCanvas.js +259 -0
  14. package/dist/canvas/WorkflowCanvas.js.map +1 -0
  15. package/dist/canvas/analysedPortTerm.d.ts +7 -0
  16. package/dist/canvas/analysedPortTerm.d.ts.map +1 -0
  17. package/dist/canvas/analysedPortTerm.js +18 -0
  18. package/dist/canvas/analysedPortTerm.js.map +1 -0
  19. package/dist/canvas/geometry.d.ts +15 -0
  20. package/dist/canvas/geometry.d.ts.map +1 -0
  21. package/dist/canvas/geometry.js +17 -0
  22. package/dist/canvas/geometry.js.map +1 -0
  23. package/dist/canvas/graphTopology.d.ts +13 -0
  24. package/dist/canvas/graphTopology.d.ts.map +1 -0
  25. package/dist/canvas/graphTopology.js +33 -0
  26. package/dist/canvas/graphTopology.js.map +1 -0
  27. package/dist/canvas/highlights.d.ts +13 -0
  28. package/dist/canvas/highlights.d.ts.map +1 -0
  29. package/dist/canvas/highlights.js +2 -0
  30. package/dist/canvas/highlights.js.map +1 -0
  31. package/dist/canvas/nodePorts.d.ts +20 -0
  32. package/dist/canvas/nodePorts.d.ts.map +1 -0
  33. package/dist/canvas/nodePorts.js +29 -0
  34. package/dist/canvas/nodePorts.js.map +1 -0
  35. package/dist/canvas/portCustomization.d.ts +22 -0
  36. package/dist/canvas/portCustomization.d.ts.map +1 -0
  37. package/dist/canvas/portCustomization.js +7 -0
  38. package/dist/canvas/portCustomization.js.map +1 -0
  39. package/dist/canvas/portGeometry.d.ts +4 -0
  40. package/dist/canvas/portGeometry.d.ts.map +1 -0
  41. package/dist/canvas/portGeometry.js +4 -0
  42. package/dist/canvas/portGeometry.js.map +1 -0
  43. package/dist/canvas/portLabelLayout.d.ts +10 -0
  44. package/dist/canvas/portLabelLayout.d.ts.map +1 -0
  45. package/dist/canvas/portLabelLayout.js +48 -0
  46. package/dist/canvas/portLabelLayout.js.map +1 -0
  47. package/dist/canvas/unavailableBlock.d.ts +16 -0
  48. package/dist/canvas/unavailableBlock.d.ts.map +1 -0
  49. package/dist/canvas/unavailableBlock.js +10 -0
  50. package/dist/canvas/unavailableBlock.js.map +1 -0
  51. package/dist/config/ErrorHandlingSection.d.ts +13 -0
  52. package/dist/config/ErrorHandlingSection.d.ts.map +1 -0
  53. package/dist/config/ErrorHandlingSection.js +56 -0
  54. package/dist/config/ErrorHandlingSection.js.map +1 -0
  55. package/dist/config/NodeConfigPanel.d.ts +20 -0
  56. package/dist/config/NodeConfigPanel.d.ts.map +1 -0
  57. package/dist/config/NodeConfigPanel.js +247 -0
  58. package/dist/config/NodeConfigPanel.js.map +1 -0
  59. package/dist/config/PassthroughSection.d.ts +19 -0
  60. package/dist/config/PassthroughSection.d.ts.map +1 -0
  61. package/dist/config/PassthroughSection.js +38 -0
  62. package/dist/config/PassthroughSection.js.map +1 -0
  63. package/dist/config/ResiliencySection.d.ts +18 -0
  64. package/dist/config/ResiliencySection.d.ts.map +1 -0
  65. package/dist/config/ResiliencySection.js +157 -0
  66. package/dist/config/ResiliencySection.js.map +1 -0
  67. package/dist/config/TypeArgumentPicker.d.ts +7 -0
  68. package/dist/config/TypeArgumentPicker.d.ts.map +1 -0
  69. package/dist/config/TypeArgumentPicker.js +32 -0
  70. package/dist/config/TypeArgumentPicker.js.map +1 -0
  71. package/dist/config/nodeConfigCustomization.d.ts +101 -0
  72. package/dist/config/nodeConfigCustomization.d.ts.map +1 -0
  73. package/dist/config/nodeConfigCustomization.js +7 -0
  74. package/dist/config/nodeConfigCustomization.js.map +1 -0
  75. package/dist/index.d.ts +27 -0
  76. package/dist/index.d.ts.map +1 -0
  77. package/dist/index.js +27 -0
  78. package/dist/index.js.map +1 -0
  79. package/dist/mapping/MappingDialog.d.ts +11 -0
  80. package/dist/mapping/MappingDialog.d.ts.map +1 -0
  81. package/dist/mapping/MappingDialog.js +283 -0
  82. package/dist/mapping/MappingDialog.js.map +1 -0
  83. package/dist/mapping/mappingCustomization.d.ts +51 -0
  84. package/dist/mapping/mappingCustomization.d.ts.map +1 -0
  85. package/dist/mapping/mappingCustomization.js +9 -0
  86. package/dist/mapping/mappingCustomization.js.map +1 -0
  87. package/dist/mapping/wireSourceOutputs.d.ts +30 -0
  88. package/dist/mapping/wireSourceOutputs.d.ts.map +1 -0
  89. package/dist/mapping/wireSourceOutputs.js +68 -0
  90. package/dist/mapping/wireSourceOutputs.js.map +1 -0
  91. package/dist/nameDraft.d.ts +24 -0
  92. package/dist/nameDraft.d.ts.map +1 -0
  93. package/dist/nameDraft.js +20 -0
  94. package/dist/nameDraft.js.map +1 -0
  95. package/dist/navigation/SubCanvasBreadcrumb.d.ts +8 -0
  96. package/dist/navigation/SubCanvasBreadcrumb.d.ts.map +1 -0
  97. package/dist/navigation/SubCanvasBreadcrumb.js +31 -0
  98. package/dist/navigation/SubCanvasBreadcrumb.js.map +1 -0
  99. package/dist/palette/BlockPalette.d.ts +18 -0
  100. package/dist/palette/BlockPalette.d.ts.map +1 -0
  101. package/dist/palette/BlockPalette.js +56 -0
  102. package/dist/palette/BlockPalette.js.map +1 -0
  103. package/dist/ports/KeyValueRowsField.d.ts +35 -0
  104. package/dist/ports/KeyValueRowsField.d.ts.map +1 -0
  105. package/dist/ports/KeyValueRowsField.js +112 -0
  106. package/dist/ports/KeyValueRowsField.js.map +1 -0
  107. package/dist/ports/PortDeclarationTable.d.ts +19 -0
  108. package/dist/ports/PortDeclarationTable.d.ts.map +1 -0
  109. package/dist/ports/PortDeclarationTable.js +112 -0
  110. package/dist/ports/PortDeclarationTable.js.map +1 -0
  111. package/dist/ports/PortValueEditor.d.ts +70 -0
  112. package/dist/ports/PortValueEditor.d.ts.map +1 -0
  113. package/dist/ports/PortValueEditor.js +169 -0
  114. package/dist/ports/PortValueEditor.js.map +1 -0
  115. package/dist/ports/collectionComposer.d.ts +27 -0
  116. package/dist/ports/collectionComposer.d.ts.map +1 -0
  117. package/dist/ports/collectionComposer.js +38 -0
  118. package/dist/ports/collectionComposer.js.map +1 -0
  119. package/dist/ports/refusedLiteral.d.ts +10 -0
  120. package/dist/ports/refusedLiteral.d.ts.map +1 -0
  121. package/dist/ports/refusedLiteral.js +11 -0
  122. package/dist/ports/refusedLiteral.js.map +1 -0
  123. package/dist/ports/writeTerm.d.ts +6 -0
  124. package/dist/ports/writeTerm.d.ts.map +1 -0
  125. package/dist/ports/writeTerm.js +11 -0
  126. package/dist/ports/writeTerm.js.map +1 -0
  127. package/dist/settings/ConcurrencySection.d.ts +9 -0
  128. package/dist/settings/ConcurrencySection.d.ts.map +1 -0
  129. package/dist/settings/ConcurrencySection.js +32 -0
  130. package/dist/settings/ConcurrencySection.js.map +1 -0
  131. package/dist/settings/ParameterDeclarationDialog.d.ts +36 -0
  132. package/dist/settings/ParameterDeclarationDialog.d.ts.map +1 -0
  133. package/dist/settings/ParameterDeclarationDialog.js +82 -0
  134. package/dist/settings/ParameterDeclarationDialog.js.map +1 -0
  135. package/dist/settings/WorkflowExecutionSection.d.ts +15 -0
  136. package/dist/settings/WorkflowExecutionSection.d.ts.map +1 -0
  137. package/dist/settings/WorkflowExecutionSection.js +223 -0
  138. package/dist/settings/WorkflowExecutionSection.js.map +1 -0
  139. package/dist/theme/editorColors.d.ts +30 -0
  140. package/dist/theme/editorColors.d.ts.map +1 -0
  141. package/dist/theme/editorColors.js +31 -0
  142. package/dist/theme/editorColors.js.map +1 -0
  143. package/dist/validation/ValidationFindings.d.ts +28 -0
  144. package/dist/validation/ValidationFindings.d.ts.map +1 -0
  145. package/dist/validation/ValidationFindings.js +40 -0
  146. package/dist/validation/ValidationFindings.js.map +1 -0
  147. package/package.json +51 -4
@@ -0,0 +1,18 @@
1
+ export declare const DEFAULT_TIMEOUT_SECONDS = 30;
2
+ export declare const DEFAULT_RETRY_COUNT = 3;
3
+ export declare const DEFAULT_RETRY_BACKOFF_SECONDS = 1;
4
+ export interface ResiliencySectionProps {
5
+ configuration: Record<string, unknown>;
6
+ onChange: (fieldName: string, value: number | boolean) => void;
7
+ /** Whether this node holds a sub-canvas. The engine applies its block default to a leaf and nothing at all
8
+ * to a container, so the timeout box must not offer a container a default it will never get. */
9
+ isContainer?: boolean;
10
+ /** Removes fields rather than giving them values; a container with no timeout has no key, not a number.
11
+ * A set rather than one name: going back to the retry default takes three keys off in one write, and a
12
+ * host removing them one at a time would write each from the configuration it had before the first. */
13
+ onClear?: (fieldNames: readonly string[]) => void;
14
+ }
15
+ /** Per-node timeout and retry. What the engine does with an unset retry is not a fixed answer — it is the
16
+ * block's own IsIdempotent — so the box offers that as a state rather than guessing one of the two. */
17
+ export declare function ResiliencySection({ configuration, onChange, isContainer, onClear }: ResiliencySectionProps): import("react").JSX.Element;
18
+ //# sourceMappingURL=ResiliencySection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResiliencySection.d.ts","sourceRoot":"","sources":["../../src/config/ResiliencySection.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,uBAAuB,KAAK,CAAA;AACzC,eAAO,MAAM,mBAAmB,IAAI,CAAA;AACpC,eAAO,MAAM,6BAA6B,IAAM,CAAA;AAQhD,MAAM,WAAW,sBAAsB;IACrC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtC,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,KAAK,IAAI,CAAA;IAC9D;oGACgG;IAChG,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;2GAEuG;IACvG,OAAO,CAAC,EAAE,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,KAAK,IAAI,CAAA;CAClD;AAiKD;uGACuG;AACvG,wBAAgB,iBAAiB,CAAC,EAAE,aAAa,EAAE,QAAQ,EAAE,WAAmB,EAAE,OAAO,EAAE,EAAE,sBAAsB,+BAsElH"}
@@ -0,0 +1,157 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ import { Box, TextField, Typography } from '@mui/material';
4
+ export const DEFAULT_TIMEOUT_SECONDS = 30;
5
+ export const DEFAULT_RETRY_COUNT = 3;
6
+ export const DEFAULT_RETRY_BACKOFF_SECONDS = 1.0;
7
+ const WIDEST_ENGINE_INTEGER = 2147483647;
8
+ const LONGEST_ENGINE_WAIT_SECONDS = 86400;
9
+ const NUMBER_INPUT_TEXT = /^-?(\d+(\.\d+)?|\.\d+)(e[-+]?\d+)?$/i;
10
+ function refuse(value, bounds) {
11
+ if (Number.isNaN(value))
12
+ return { kind: 'refused', reason: 'Enter a number' };
13
+ if (!Number.isFinite(value) || (bounds.whole && value > WIDEST_ENGINE_INTEGER)) {
14
+ return { kind: 'refused', reason: 'Too large for the engine to read — the run fails at this block' };
15
+ }
16
+ if (bounds.whole && value < -WIDEST_ENGINE_INTEGER - 1) {
17
+ return { kind: 'refused', reason: 'Further below zero than the engine reads — the run fails at this block' };
18
+ }
19
+ if (bounds.whole && !Number.isInteger(value)) {
20
+ return { kind: 'refused', reason: 'Whole numbers only — with a fraction here the run fails at this block' };
21
+ }
22
+ if (bounds.wait !== undefined && value > LONGEST_ENGINE_WAIT_SECONDS) {
23
+ return {
24
+ kind: 'refused',
25
+ reason: `At most ${LONGEST_ENGINE_WAIT_SECONDS} seconds — one day, the longest single wait the engine `
26
+ + `can apply. ${bounds.wait}`,
27
+ };
28
+ }
29
+ if (value < bounds.min) {
30
+ return {
31
+ kind: 'clamped',
32
+ reason: `Must be at least ${bounds.min} — the engine runs anything lower as ${bounds.min}`,
33
+ typed: `Must be at least ${bounds.min} — the engine would run anything lower as ${bounds.min}`,
34
+ };
35
+ }
36
+ return null;
37
+ }
38
+ function typeName(value) {
39
+ if (typeof value === 'string')
40
+ return 'text';
41
+ if (typeof value === 'boolean')
42
+ return 'true/false';
43
+ if (Array.isArray(value))
44
+ return 'a list';
45
+ if (typeof value === 'object')
46
+ return 'an object';
47
+ return `a ${typeof value}`;
48
+ }
49
+ function storedVerdict(value, bounds) {
50
+ if (value === undefined || value === null)
51
+ return null;
52
+ if (typeof value !== 'number') {
53
+ return {
54
+ kind: 'refused',
55
+ reason: `Stored as ${typeName(value)}, not a number — the engine refuses the definition and the run `
56
+ + 'fails at this block',
57
+ };
58
+ }
59
+ return refuse(value, bounds);
60
+ }
61
+ function displayStored(value, fallback) {
62
+ if (value === undefined || value === null)
63
+ return fallback;
64
+ return typeof value === 'object' ? JSON.stringify(value) : String(value);
65
+ }
66
+ function CommittedNumberField({ label, display, stored = null, bounds, helperText, placeholder, onCommit, onCommitEmpty }) {
67
+ const [draft, setDraft] = useState(null);
68
+ const [refusal, setRefusal] = useState(null);
69
+ const commit = () => {
70
+ if (draft === null)
71
+ return;
72
+ const text = draft.trim();
73
+ if (text === '') {
74
+ setDraft(null);
75
+ setRefusal(null);
76
+ onCommitEmpty();
77
+ return;
78
+ }
79
+ const value = Number(text);
80
+ const verdict = refuse(value, bounds);
81
+ if (verdict !== null) {
82
+ setRefusal(verdict.typed ?? verdict.reason);
83
+ return;
84
+ }
85
+ setDraft(null);
86
+ setRefusal(null);
87
+ onCommit(value);
88
+ };
89
+ const showing = draft ?? display;
90
+ const parsable = display === '' || NUMBER_INPUT_TEXT.test(display);
91
+ return (_jsx(TextField, { fullWidth: true, size: "small", label: label, type: parsable ? 'number' : 'text', value: showing, placeholder: placeholder, error: refusal !== null || (draft === null && stored?.kind === 'refused'), slotProps: { htmlInput: { 'aria-label': label } }, onChange: (e) => { setDraft(e.target.value); setRefusal(null); }, onBlur: commit, onKeyDown: (e) => {
92
+ if (e.key === 'Enter') {
93
+ e.preventDefault();
94
+ commit();
95
+ }
96
+ else if (e.key === 'Escape') {
97
+ setDraft(null);
98
+ setRefusal(null);
99
+ }
100
+ }, helperText: refusal ?? (draft === null ? stored?.reason : null) ?? helperText }));
101
+ }
102
+ const RETRY_KEYS = ['retryEnabled', 'retryCount', 'retryBackoffSeconds'];
103
+ function readRetryChoice(configuration) {
104
+ const flag = configuration['retryEnabled'];
105
+ if (flag === true)
106
+ return 'on';
107
+ if (flag === false)
108
+ return 'off';
109
+ return flag === undefined || flag === null ? 'default' : 'unreadable';
110
+ }
111
+ const RETRY_HELP = {
112
+ default: 'The block’s own declaration decides, together with the host’s retry setting',
113
+ on: 'Retried on failure, a timeout included, as many times as the count below',
114
+ off: 'Never retried',
115
+ unreadable: 'This node stores a retry flag the engine cannot read; the run fails at this block',
116
+ };
117
+ const isSet = (value) => value !== undefined && value !== null;
118
+ const TIMEOUT_BOUNDS = {
119
+ min: 1,
120
+ whole: true,
121
+ wait: 'A longer one fails the run at this block, and a block that must run longer than a day carries no '
122
+ + 'timeout of its own.',
123
+ };
124
+ const COUNT_BOUNDS = { min: 0, whole: true };
125
+ function backoffBounds(retryChoice, configuration) {
126
+ const count = configuration['retryCount'];
127
+ const attempts = typeof count === 'number' ? count : isSet(count) ? 0 : DEFAULT_RETRY_COUNT;
128
+ return retryChoice === 'on' && attempts > 0
129
+ ? { min: 0, whole: false, wait: 'A longer delay fails the run at this block.' }
130
+ : { min: 0, whole: false };
131
+ }
132
+ /** Per-node timeout and retry. What the engine does with an unset retry is not a fixed answer — it is the
133
+ * block's own IsIdempotent — so the box offers that as a state rather than guessing one of the two. */
134
+ export function ResiliencySection({ configuration, onChange, isContainer = false, onClear }) {
135
+ const retryChoice = readRetryChoice(configuration);
136
+ const stored = configuration['timeoutSeconds'];
137
+ const backoff = backoffBounds(retryChoice, configuration);
138
+ return (_jsxs(Box, { children: [_jsx(Typography, { variant: "subtitle2", sx: { mb: 1 }, children: "Resiliency" }), _jsxs(Box, { sx: { display: 'flex', flexDirection: 'column', gap: 2 }, children: [_jsx(CommittedNumberField, { label: "Timeout (seconds)", display: displayStored(stored, ''), stored: storedVerdict(stored, TIMEOUT_BOUNDS), bounds: TIMEOUT_BOUNDS, onCommit: (value) => { onChange('timeoutSeconds', value); }, onCommitEmpty: () => {
139
+ if (onClear)
140
+ onClear(['timeoutSeconds']);
141
+ else
142
+ onChange('timeoutSeconds', DEFAULT_TIMEOUT_SECONDS);
143
+ }, placeholder: isContainer ? undefined : String(DEFAULT_TIMEOUT_SECONDS), helperText: isContainer
144
+ ? 'Empty means this block sets no deadline of its own'
145
+ : 'Empty leaves the engine’s own 30-second default in place' }), _jsxs(TextField, { select: true, fullWidth: true, size: "small", label: "Retry", value: retryChoice, slotProps: {
146
+ select: { native: true }, inputLabel: { shrink: true }, htmlInput: { 'aria-label': 'Retry' },
147
+ }, onChange: (e) => {
148
+ const next = e.target.value;
149
+ if (next === 'on')
150
+ onChange('retryEnabled', true);
151
+ else if (next === 'off')
152
+ onChange('retryEnabled', false);
153
+ else
154
+ onClear?.(RETRY_KEYS);
155
+ }, helperText: RETRY_HELP[retryChoice], children: [_jsx("option", { value: "default", disabled: onClear === undefined, children: "Default \u2014 the block decides" }), _jsx("option", { value: "on", children: "On" }), _jsx("option", { value: "off", children: "Off" }), retryChoice === 'unreadable' && (_jsx("option", { value: "unreadable", disabled: true, children: "Unreadable \u2014 the engine refuses this node" }))] }), (retryChoice === 'on' || isSet(configuration['retryCount'])) && (_jsx(CommittedNumberField, { label: "Retry Count", display: displayStored(configuration['retryCount'], String(DEFAULT_RETRY_COUNT)), stored: storedVerdict(configuration['retryCount'], COUNT_BOUNDS), bounds: COUNT_BOUNDS, onCommit: (value) => { onChange('retryCount', value); }, onCommitEmpty: () => { onChange('retryCount', DEFAULT_RETRY_COUNT); }, helperText: "Retry attempts after the first, where 0 means none. Max time is roughly count x timeout." })), (retryChoice === 'on' || isSet(configuration['retryBackoffSeconds'])) && (_jsx(CommittedNumberField, { label: "Backoff (seconds)", display: displayStored(configuration['retryBackoffSeconds'], String(DEFAULT_RETRY_BACKOFF_SECONDS)), stored: storedVerdict(configuration['retryBackoffSeconds'], backoff), bounds: backoff, onCommit: (value) => { onChange('retryBackoffSeconds', value); }, onCommitEmpty: () => { onChange('retryBackoffSeconds', DEFAULT_RETRY_BACKOFF_SECONDS); }, helperText: "Initial delay for exponential backoff" }))] })] }));
156
+ }
157
+ //# sourceMappingURL=ResiliencySection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResiliencySection.js","sourceRoot":"","sources":["../../src/config/ResiliencySection.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE1D,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,CAAA;AACzC,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAA;AACpC,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAAG,CAAA;AAEhD,MAAM,qBAAqB,GAAG,UAAU,CAAA;AAExC,MAAM,2BAA2B,GAAG,KAAK,CAAA;AAEzC,MAAM,iBAAiB,GAAG,sCAAsC,CAAA;AA0BhE,SAAS,MAAM,CAAC,KAAa,EAAE,MAAoB;IACjD,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC;QAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,gBAAgB,EAAE,CAAA;IAC7E,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,KAAK,GAAG,qBAAqB,CAAC,EA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,CAAC,qBAAqB,EAAE,6BAA6B,CAAC,CAAA,CAAC,CAAC,EACvF,UAAU,EAAC,uCAAuC,GAClD,CACH,IACG,IACF,CACP,CAAA;AACH,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { TypeArgumentPickerContext } from './nodeConfigCustomization.js';
2
+ /** One row per type parameter: the registered terms implementing its constraints, a collection or nullable level, and Clear,
3
+ * which removes the entry so the compiler infers it again. */
4
+ export declare function TypeArgumentPicker({ context }: {
5
+ context: TypeArgumentPickerContext;
6
+ }): import("react").JSX.Element;
7
+ //# sourceMappingURL=TypeArgumentPicker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypeArgumentPicker.d.ts","sourceRoot":"","sources":["../../src/config/TypeArgumentPicker.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAA;AAoD7E;8DAC8D;AAC9D,wBAAgB,kBAAkB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,yBAAyB,CAAA;CAAE,+BAOrF"}
@@ -0,0 +1,32 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useMemo } from 'react';
3
+ import { Box, Button, MenuItem, Select, Typography } from '@mui/material';
4
+ import { typeArgumentBases, usePortTypes, wrapTypeArgument } from '@reeve-iot/workflow-core';
5
+ import { typesWithCurrent } from '../ports/collectionComposer.js';
6
+ const INFERRED = ' inferred';
7
+ function ParameterRow({ parameter, context }) {
8
+ const portTypes = usePortTypes();
9
+ const constraints = useMemo(() => parameter.constraints ?? [], [parameter]);
10
+ const bases = useMemo(() => typeArgumentBases(portTypes, constraints), [portTypes, constraints]);
11
+ const stored = Object.hasOwn(context.typeArguments, parameter.name) ? context.typeArguments[parameter.name] : undefined;
12
+ const name = parameter.name;
13
+ const write = (term) => {
14
+ const next = { ...context.typeArguments };
15
+ if (term === undefined)
16
+ delete next[name];
17
+ else
18
+ next[name] = term;
19
+ context.onChange(next);
20
+ };
21
+ const collection = stored === undefined ? undefined : wrapTypeArgument(portTypes, stored, 'collection', constraints);
22
+ const nullable = stored === undefined ? undefined : wrapTypeArgument(portTypes, stored, 'nullable', constraints);
23
+ return (_jsxs(Box, { sx: { display: 'flex', gap: 1, alignItems: 'center', flexWrap: 'wrap', mb: 1 }, "data-testid": `type-argument-${name}`, children: [_jsx(Typography, { variant: "body2", sx: { minWidth: 40 }, children: name }), _jsxs(Select, { size: "small", variant: "standard", displayEmpty: true, value: stored ?? INFERRED, sx: { minWidth: 140 }, inputProps: { 'aria-label': `Type argument ${name}` }, onChange: (event) => { write(event.target.value === INFERRED ? undefined : event.target.value); }, children: [_jsx(MenuItem, { value: INFERRED, children: _jsx("em", { children: "Inferred" }) }), typesWithCurrent(bases, stored).map((term) => _jsx(MenuItem, { value: term, children: term }, term)), stored === '' && _jsx(MenuItem, { value: "", children: "(empty)" })] }), _jsx(Button, { size: "small", variant: "outlined", disabled: collection === undefined, "aria-label": `Type argument ${name} in a collection`, onClick: () => { if (collection !== undefined)
24
+ write(collection); }, children: "Collection" }), _jsx(Button, { size: "small", variant: "outlined", disabled: nullable === undefined, "aria-label": `Type argument ${name} nullable`, onClick: () => { if (nullable !== undefined)
25
+ write(nullable); }, children: "Nullable" }), _jsx(Button, { size: "small", disabled: stored === undefined, "aria-label": `Clear type argument ${name}`, onClick: () => { write(undefined); }, children: "Clear" }), constraints.length > 0 && _jsx(Typography, { variant: "caption", color: "text.secondary", children: constraints.join(', ') })] }));
26
+ }
27
+ /** One row per type parameter: the registered terms implementing its constraints, a collection or nullable level, and Clear,
28
+ * which removes the entry so the compiler infers it again. */
29
+ export function TypeArgumentPicker({ context }) {
30
+ return (_jsxs(Box, { sx: { mt: 2, mb: 2 }, children: [_jsx(Typography, { variant: "subtitle2", sx: { mb: 1 }, children: "Type Arguments" }), context.typeParameters.map((parameter) => _jsx(ParameterRow, { parameter: parameter, context: context }, parameter.name))] }));
31
+ }
32
+ //# sourceM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E,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,aACvB,KAAC,UAAU,IAAC,OAAO,EAAC,WAAW,EAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,+BAA6B,EACzE,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,KAAC,YAAY,IAAsB,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,IAAtD,SAAS,CAAC,IAAI,CAA4C,CAAC,IACrH,CACP,CAAA;AACH,CAAC"}
@@ -0,0 +1,101 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { BlockConfigField, BlockPort, BlockTypeDescriptor, BlockTypeParameter, PortTypeName, VariableMapping, WorkflowNode } from '@reeve-iot/workflow-core';
3
+ /** One entry of a node's configuration map. */
4
+ export type NodeConfigurationValue = WorkflowNode['configuration'][string];
5
+ /** What a host renderer is told about the configuration field it is being offered. */
6
+ export interface ConfigFieldContext {
7
+ node: WorkflowNode;
8
+ blockType: BlockTypeDescriptor;
9
+ field: BlockConfigField;
10
+ /** The value stored on the node, exactly. A field's declared default is a hint the engine never applies,
11
+ * so no default is folded in here and `field.defaultValue` is the only place to read one. */
12
+ value: unknown;
13
+ /** Type of the block input sharing this field's name, when there is one. Hosts key their own editors
14
+ * off this — a `Device` field wants a device picker, not a text box. */
15
+ portType: PortTypeName | undefined;
16
+ /** What an incoming wire binds this field to, already rendered for display, or undefined when nothing
17
+ * is wired. An edge mapping beats node configuration at run time, so a host that ignores this offers
18
+ * an editable field whose value the engine discards. */
19
+ edgeBinding: string | undefined;
20
+ /** Writes one field. */
21
+ onChange: (value: NodeConfigurationValue) => void;
22
+ /** Writes the whole configuration, for a picker that sets several fields at once. */
23
+ onConfigurationChange: (configuration: WorkflowNode['configuration']) => void;
24
+ }
25
+ /** An input of the selected node fed by a literal on an incoming wire's mapping, which the panel draws with a value editor. */
26
+ export interface WireLiteralContext {
27
+ node: WorkflowNode;
28
+ blockType: BlockTypeDescriptor;
29
+ input: BlockPort;
30
+ /** The wire whose mapping holds the literal. */
31
+ edgeId: string;
32
+ /** The literal as stored on the mapping, or undefined when the mapping holds none. */
33
+ value: unknown;
34
+ /** The term the literal is written in: the input's closed term, or its declared term while a type parameter is unbound. */
35
+ portType: PortTypeName;
36
+ /** Writes the literal on the wire's mapping through the store's `updateEdgeMappings`; undefined removes the value. */
37
+ onChange: (value: VariableMapping['literalValue'] | undefined) => void;
38
+ }
39
+ export interface NodeSectionContext {
40
+ node: WorkflowNode;
41
+ blockType: BlockTypeDescriptor;
42
+ onConfigurationChange: (configuration: WorkflowNode['configuration']) => void;
43
+ }
44
+ /** What a host's type-argument picker is told about a node whose block declares type parameters. */
45
+ export interface TypeArgumentPickerContext {
46
+ node: WorkflowNode;
47
+ blockType: BlockTypeDescriptor;
48
+ /** The parameters the block declares, each with the capability names a bound term must implement. */
49
+ typeParameters: readonly BlockTypeParameter[];
50
+ /** The node's `typeArguments` as stored: parameter name to term. Empty when it stores none. */
51
+ typeArguments: Readonly<Record<string, string>>;
52
+ /** Writes the node's whole `typeArguments` through the store's `setNodeTypeArguments`; null, or a record with no entry,
53
+ * removes the key. Whether a term fits its parameter is the server's to say. */
54
+ onChange: (typeArguments: Record<string, string> | null) => void;
55
+ }
56
+ /** A configuration value in Expression mode on a node whose wires offer `Json` outputs: where a host
57
+ * draws its path field or type assist beside an expression such as `${previous.parse.Value}`. */
58
+ export interface ConfigProjectionControlContext {
59
+ placement: 'configuration';
60
+ node: WorkflowNode;
61
+ blockType: BlockTypeDescriptor;
62
+ /** The configuration field holding the expression. */
63
+ fieldName: string;
64
+ /** The field's term: the input sharing its name, else the field's own type. */
65
+ targetType: PortTypeName;
66
+ /** The `Json` and `Json?` outputs of the nodes wired into this one, host-answered ones included, as the mapping
67
+ * dialog lists each wire's sources. */
68
+ jsonOutputs: readonly {
69
+ sourceNodeId: string;
70
+ name: string;
71
+ type: PortTypeName;
72
+ }[];
73
+ /** The expression as stored, without its expression prefix. */
74
+ expressionBody: string;
75
+ /** Replaces the expression body; the panel stores it as the field's value. */
76
+ onExpressionChange: (body: string) => void;
77
+ }
78
+ /** How a host reaches into the generated configuration form. Everything here is optional; without any of
79
+ * it the panel renders exactly what the block type's schema declares. */
80
+ export interface NodeConfigCustomization {
81
+ /** Called for each schema field before the panel renders it. Return a node to render that instead,
82
+ * `null` to render nothing (a field the host owns elsewhere), or undefined to fall through. */
83
+ renderConfigField?: (context: ConfigFieldContext) => ReactNode | null | undefined;
84
+ /** Called, while `NodeConfigPanel`'s `showWireLiterals` is on, for each input that an incoming wire feeds with a literal,
85
+ * a schema field of the same name included. Return a node to render that instead of the panel's value editor, `null` to
86
+ * render nothing (an input the host draws in its own section), or undefined to fall through. */
87
+ renderWireLiteral?: (context: WireLiteralContext) => ReactNode | null | undefined;
88
+ /** Rendered after the generated fields — where a host puts pickers spanning several fields, or its own
89
+ * per-block guidance. */
90
+ renderNodeSections?: (context: NodeSectionContext) => ReactNode;
91
+ /** Called for a node whose block declares type parameters, after the generated fields. Return the host's picker
92
+ * (it offers the terms the vocabulary registers for each parameter's constraints), or null for none. Without it the
93
+ * panel draws no picker; `TypeArgumentPicker` is the library's, for a host to return here. */
94
+ renderTypeArgumentPicker?: (context: TypeArgumentPickerContext) => ReactNode | null;
95
+ /** Called under a configuration field whose value is an expression, when the node's wires offer `Json` outputs.
96
+ * Return the host's projection control, or null for none. Without it the panel draws no control. */
97
+ renderProjectionControl?: (context: ConfigProjectionControlContext) => ReactNode | null;
98
+ }
99
+ export declare const NodeConfigCustomizationContext: import("react").Context<NodeConfigCustomization>;
100
+ export declare function useNodeConfigCustomization(): NodeConfigCustomization;
101
+ //# sourceMappingURL=nodeConfigCustomization.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nodeConfigCustomization.d.ts","sourceRoot":"","sources":["../../src/config/nodeConfigCustomization.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,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EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,SAAS,CAAA;IAC/D;;kGAE8F;IAC9F,wBAAwB,CAAC,EAAE,CAAC,OAAO,EAAE,yBAAyB,KAAK,SAAS,GAAG,IAAI,CAAA;IACnF;wGACoG;IACpG,uBAAuB,CAAC,EAAE,CAAC,OAAO,EAAE,8BAA8B,KAAK,SAAS,GAAG,IAAI,CAAA;CACxF;AAID,eAAO,MAAM,8BAA8B,kDAA+C,CAAA;AAE1F,wBAAgB,0BAA0B,IAAI,uBAAuB,CAEpE"}
@@ -0,0 +1,7 @@
1
+ import { createContext, useContext } from 'react';
2
+ const NONE = {};
3
+ export const NodeConfigCustomizationContext = createContext(NONE);
4
+ export function useNodeConfigCustomization() {
5
+ return useContext(NodeConfigCustomizationContext);
6
+ }
7
+ //# sourceMappingURL=nodeConfigCustomization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nodeConfigCustomization.js","sourceRoot":"","sources":["../../src/config/nodeConfigCustomization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAyGjD,MAAM,IAAI,GAA4B,EAAE,CAAA;AAExC,MAAM,CAAC,MAAM,8BAA8B,GAAG,aAAa,CAA0B,IAAI,CAAC,CAAA;AAE1F,MAAM,UAAU,0BAA0B;IACxC,OAAO,UAAU,CAAC,8BAA8B,CAAC,CAAA;AACnD,CAAC"}
@@ -0,0 +1,27 @@
1
+ export * from '@reeve-iot/workflow-core';
2
+ export * from './theme/editorColors.js';
3
+ export * from './canvas/geometry.js';
4
+ export * from './canvas/highlights.js';
5
+ export * from './canvas/portCustomization.js';
6
+ export * from './canvas/nodePorts.js';
7
+ export * from './canvas/Connection.js';
8
+ export * from './canvas/BlockNode.js';
9
+ export * from './canvas/unavailableBlock.js';
10
+ export * from './canvas/WorkflowCanvas.js';
11
+ export * from './config/nodeConfigCustomization.js';
12
+ export * from './config/NodeConfigPanel.js';
13
+ export * from './config/TypeArgumentPicker.js';
14
+ export * from './config/ResiliencySection.js';
15
+ export * from './config/ErrorHandlingSection.js';
16
+ export * from './config/PassthroughSection.js';
17
+ export * from './mapping/mappingCustomization.js';
18
+ export * from './mapping/MappingDialog.js';
19
+ export * from './navigation/SubCanvasBreadcrumb.js';
20
+ export * from './palette/BlockPalette.js';
21
+ export * from './ports/PortDeclarationTable.js';
22
+ export * from './ports/PortValueEditor.js';
23
+ export * from './settings/ConcurrencySection.js';
24
+ export * from './settings/ParameterDeclarationDialog.js';
25
+ export * from './settings/WorkflowExecutionSection.js';
26
+ export * from './validation/ValidationFindings.js';
27
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AAExC,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qCAAqC,CAAA;AACnD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,kCAAkC,CAAA;AAChD,cAAc,gCAAgC,CAAA;AAC9C,cAAc,mCAAmC,CAAA;AACjD,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qCAAqC,CAAA;AACnD,cAAc,2BAA2B,CAAA;AACzC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,kCAAkC,CAAA;AAChD,cAAc,0CAA0C,CAAA;AACxD,cAAc,wCAAwC,CAAA;AACtD,cAAc,oCAAoC,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,27 @@
1
+ export * from '@reeve-iot/workflow-core';
2
+ export * from './theme/editorColors.js';
3
+ export * from './canvas/geometry.js';
4
+ export * from './canvas/highlights.js';
5
+ export * from './canvas/portCustomization.js';
6
+ export * from './canvas/nodePorts.js';
7
+ export * from './canvas/Connection.js';
8
+ export * from './canvas/BlockNode.js';
9
+ export * from './canvas/unavailableBlock.js';
10
+ export * from './canvas/WorkflowCanvas.js';
11
+ export * from './config/nodeConfigCustomization.js';
12
+ export * from './config/NodeConfigPanel.js';
13
+ export * from './config/TypeArgumentPicker.js';
14
+ export * from './config/ResiliencySection.js';
15
+ export * from './config/ErrorHandlingSection.js';
16
+ export * from './config/PassthroughSection.js';
17
+ export * from './mapping/mappingCustomization.js';
18
+ export * from './mapping/MappingDialog.js';
19
+ export * from './navigation/SubCanvasBreadcrumb.js';
20
+ export * from './palette/BlockPalette.js';
21
+ export * from './ports/PortDeclarationTable.js';
22
+ export * from './ports/PortValueEditor.js';
23
+ export * from './settings/ConcurrencySection.js';
24
+ export * from './settings/ParameterDeclarationDialog.js';
25
+ export * from './settings/WorkflowExecutionSection.js';
26
+ export * from './validation/ValidationFindings.js';
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AAExC,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qCAAqC,CAAA;AACnD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,kCAAkC,CAAA;AAChD,cAAc,gCAAgC,CAAA;AAC9C,cAAc,mCAAmC,CAAA;AACjD,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qCAAqC,CAAA;AACnD,cAAc,2BAA2B,CAAA;AACzC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,kCAAkC,CAAA;AAChD,cAAc,0CAA0C,CAAA;AACxD,cAAc,wCAAwC,CAAA;AACtD,cAAc,oCAAoC,CAAA"}
@@ -0,0 +1,11 @@
1
+ export interface MappingDialogProps {
2
+ edgeId: string;
3
+ onClose: () => void;
4
+ entryNodeLabel?: string;
5
+ exitNodeLabel?: string;
6
+ }
7
+ /** Edits what one wire carries: which source output feeds each input of the target, or what literal does.
8
+ * The port lists come from the same customization seam the canvas uses, so the dialog cannot drift from
9
+ * what the node draws. */
10
+ export declare function MappingDialog({ edgeId, onClose, entryNodeLabel, exitNodeLabel }: MappingDialogProps): import("react").JSX.Element | null;
11
+ //# sourceMappingURL=MappingDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MappingDialog.d.ts","sourceRoot":"","sources":["../../src/mapping/MappingDialog.tsx"],"names":[],"mappings":"AAkFA,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED;;0BAE0B;AAC1B,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,cAAiC,EAAE,aAAiC,EAAE,EAAE,kBAAkB,sCA4b1I"}