@dudousxd/nestjs-catalog-react 0.32.0 → 0.33.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/dist/WorkflowCanvas.js +18 -2
- package/package.json +2 -2
package/dist/WorkflowCanvas.js
CHANGED
|
@@ -3192,11 +3192,27 @@ function refusalFacts(forName) {
|
|
|
3192
3192
|
const codes = new Set(forName.map((ref) => callableWorkflowBlock(ref)?.code));
|
|
3193
3193
|
const facts = [];
|
|
3194
3194
|
if (codes.has('no-version'))
|
|
3195
|
-
facts.push(
|
|
3195
|
+
facts.push(noVersionFact(forName));
|
|
3196
3196
|
if (codes.has('ambiguous-group'))
|
|
3197
3197
|
facts.push('claimed by two groups — ambiguous');
|
|
3198
3198
|
return facts;
|
|
3199
3199
|
}
|
|
3200
|
+
/**
|
|
3201
|
+
* Which flavour of "no version" this is, in the few words a row has.
|
|
3202
|
+
*
|
|
3203
|
+
* `'observed'` means nothing described the workflow at all — it is on the list
|
|
3204
|
+
* because a live queue of that name exists, which is what a call would be routed
|
|
3205
|
+
* on and the whole of what is known. That is a weaker thing than a worker which
|
|
3206
|
+
* published a description and left the version out, and the row says which,
|
|
3207
|
+
* because they call for different reading: the first is "there is a queue here",
|
|
3208
|
+
* the second is "there is a worker here that did not say".
|
|
3209
|
+
*/
|
|
3210
|
+
function noVersionFact(refs) {
|
|
3211
|
+
const described = refs.some((ref) => ref.evidence !== 'observed');
|
|
3212
|
+
return described
|
|
3213
|
+
? 'no version announced — cannot be pinned'
|
|
3214
|
+
: 'live queue only, nothing declared — cannot be pinned';
|
|
3215
|
+
}
|
|
3200
3216
|
/**
|
|
3201
3217
|
* The versions announced for one name, one row each.
|
|
3202
3218
|
*
|
|
@@ -3215,7 +3231,7 @@ function callableVersionOption(ref) {
|
|
|
3215
3231
|
const block = callableWorkflowBlock(ref);
|
|
3216
3232
|
const facts = [];
|
|
3217
3233
|
if (block?.code === 'no-version')
|
|
3218
|
-
facts.push(
|
|
3234
|
+
facts.push(noVersionFact([ref]));
|
|
3219
3235
|
if (block?.code === 'ambiguous-group')
|
|
3220
3236
|
facts.push(`two groups (${groupsOf(ref).join(', ')}) — ambiguous`);
|
|
3221
3237
|
if (ref.group)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dudousxd/nestjs-catalog-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
4
4
|
"description": "Ready-made React screens for @dudousxd/nestjs-catalog — a model manager and a generic object explorer you can drop into your own app shell.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Davide Carvalho",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"tailwind-merge": "3.4.1",
|
|
111
111
|
"tiptap-markdown": "0.9.0",
|
|
112
112
|
"typescript": "5.9.3",
|
|
113
|
-
"@dudousxd/nestjs-catalog": "0.
|
|
113
|
+
"@dudousxd/nestjs-catalog": "0.30.0"
|
|
114
114
|
},
|
|
115
115
|
"dependencies": {
|
|
116
116
|
"clsx": "2.1.1",
|