@praxisui/manual-form 9.0.0-beta.20 → 9.0.0-beta.22
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-06-
|
|
3
|
+
"generatedAt": "2026-06-26T01:13:35.730Z",
|
|
4
4
|
"packageName": "@praxisui/manual-form",
|
|
5
|
-
"packageVersion": "9.0.0-beta.
|
|
5
|
+
"packageVersion": "9.0.0-beta.22",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 1,
|
|
@@ -5,7 +5,7 @@ import { BehaviorSubject, firstValueFrom, debounceTime, fromEvent, of } from 'rx
|
|
|
5
5
|
import { take } from 'rxjs/operators';
|
|
6
6
|
import { ActivatedRoute } from '@angular/router';
|
|
7
7
|
import { isPlatformBrowser } from '@angular/common';
|
|
8
|
-
import { BaseAiAdapter, shouldRoutePromptToGovernedDecision, AiBackendApiService, PraxisAssistantSessionRegistryService, PraxisAssistantTurnOrchestratorService, createPraxisAssistantViewportLayout, PraxisAiAssistantShellComponent } from '@praxisui/ai';
|
|
8
|
+
import { BaseAiAdapter, withAuthoringScopePolicy, shouldRoutePromptToGovernedDecision, AiBackendApiService, PraxisAssistantSessionRegistryService, PraxisAssistantTurnOrchestratorService, createPraxisAssistantViewportLayout, PraxisAiAssistantShellComponent } from '@praxisui/ai';
|
|
9
9
|
import * as i1 from '@angular/forms';
|
|
10
10
|
import { FormGroupDirective, FormGroup, FormControl, Validators, ReactiveFormsModule, FormControlName, ControlContainer, FormsModule } from '@angular/forms';
|
|
11
11
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
@@ -586,13 +586,15 @@ function generateRulePropertyCapabilities(targetType, properties) {
|
|
|
586
586
|
properties.forEach((prop) => {
|
|
587
587
|
const valueKind = prop.type === 'object'
|
|
588
588
|
? 'object'
|
|
589
|
-
: prop.type === '
|
|
590
|
-
? '
|
|
591
|
-
: prop.type === '
|
|
592
|
-
? '
|
|
593
|
-
: prop.type === '
|
|
594
|
-
? '
|
|
595
|
-
: '
|
|
589
|
+
: prop.type === 'array'
|
|
590
|
+
? 'array'
|
|
591
|
+
: prop.type === 'enum'
|
|
592
|
+
? 'enum'
|
|
593
|
+
: prop.type === 'boolean'
|
|
594
|
+
? 'boolean'
|
|
595
|
+
: prop.type === 'number'
|
|
596
|
+
? 'number'
|
|
597
|
+
: 'string';
|
|
596
598
|
const capability = {
|
|
597
599
|
path: `formRules[].effect.properties.${prop.name}`,
|
|
598
600
|
category: 'rules',
|
|
@@ -605,7 +607,7 @@ function generateRulePropertyCapabilities(targetType, properties) {
|
|
|
605
607
|
: prop.type === 'enum'
|
|
606
608
|
? (prop.enumValues?.[0]?.value || 'valor')
|
|
607
609
|
: 'valor',
|
|
608
|
-
safetyNotes: prop.type === 'object' ? 'O objeto deve seguir o schema esperado pelo componente alvo.' : undefined,
|
|
610
|
+
safetyNotes: prop.type === 'object' ? 'O objeto deve seguir o schema esperado pelo componente alvo.' : prop.type === 'array' ? 'A lista deve seguir o schema esperado pelo componente alvo.' : undefined,
|
|
609
611
|
};
|
|
610
612
|
if (prop.enumValues) {
|
|
611
613
|
capability.allowedValues = prop.enumValues.map((ev) => ev.value);
|
|
@@ -619,13 +621,15 @@ function generateRulePropertyWhenFalseCapabilities(targetType, properties) {
|
|
|
619
621
|
properties.forEach((prop) => {
|
|
620
622
|
const valueKind = prop.type === 'object'
|
|
621
623
|
? 'object'
|
|
622
|
-
: prop.type === '
|
|
623
|
-
? '
|
|
624
|
-
: prop.type === '
|
|
625
|
-
? '
|
|
626
|
-
: prop.type === '
|
|
627
|
-
? '
|
|
628
|
-
: '
|
|
624
|
+
: prop.type === 'array'
|
|
625
|
+
? 'array'
|
|
626
|
+
: prop.type === 'enum'
|
|
627
|
+
? 'enum'
|
|
628
|
+
: prop.type === 'boolean'
|
|
629
|
+
? 'boolean'
|
|
630
|
+
: prop.type === 'number'
|
|
631
|
+
? 'number'
|
|
632
|
+
: 'string';
|
|
629
633
|
const capability = {
|
|
630
634
|
path: `formRules[].effect.propertiesWhenFalse.${prop.name}`,
|
|
631
635
|
category: 'rules',
|
|
@@ -638,7 +642,7 @@ function generateRulePropertyWhenFalseCapabilities(targetType, properties) {
|
|
|
638
642
|
: prop.type === 'enum'
|
|
639
643
|
? (prop.enumValues?.[0]?.value || 'valor')
|
|
640
644
|
: 'valor',
|
|
641
|
-
safetyNotes: prop.type === 'object' ? 'O objeto deve seguir o schema esperado pelo componente alvo.' : undefined,
|
|
645
|
+
safetyNotes: prop.type === 'object' ? 'O objeto deve seguir o schema esperado pelo componente alvo.' : prop.type === 'array' ? 'A lista deve seguir o schema esperado pelo componente alvo.' : undefined,
|
|
642
646
|
};
|
|
643
647
|
if (prop.enumValues) {
|
|
644
648
|
capability.allowedValues = prop.enumValues.map((ev) => ev.value);
|
|
@@ -1251,7 +1255,7 @@ class ManualFormAgenticAuthoringTurnFlow {
|
|
|
1251
1255
|
if (this.shouldRouteToGovernedDecision(prompt, contextHints)) {
|
|
1252
1256
|
return this.toGovernedDecisionHandoff(prompt, request);
|
|
1253
1257
|
}
|
|
1254
|
-
const response = await firstValueFrom(this.aiApi.getPatch({
|
|
1258
|
+
const response = await firstValueFrom(this.aiApi.getPatch(withAuthoringScopePolicy({
|
|
1255
1259
|
componentId,
|
|
1256
1260
|
componentType,
|
|
1257
1261
|
userPrompt: prompt,
|
|
@@ -1268,7 +1272,11 @@ class ManualFormAgenticAuthoringTurnFlow {
|
|
|
1268
1272
|
...(runtimeState ? { runtimeState } : {}),
|
|
1269
1273
|
...(schemaFields?.length ? { schemaFields } : {}),
|
|
1270
1274
|
...(contextHints ? { contextHints } : {}),
|
|
1271
|
-
}
|
|
1275
|
+
}, {
|
|
1276
|
+
componentId,
|
|
1277
|
+
componentType,
|
|
1278
|
+
componentLabel: this.adapter.componentName || 'formulario',
|
|
1279
|
+
})));
|
|
1272
1280
|
return this.toTurnResult(this.compileAdapterResponse(response), request);
|
|
1273
1281
|
}
|
|
1274
1282
|
async apply(_request) {
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/manual-form",
|
|
3
|
-
"version": "9.0.0-beta.
|
|
3
|
+
"version": "9.0.0-beta.22",
|
|
4
4
|
"description": "Manual form toolkit for Praxis UI: container, instance factory and editor bridge for @praxisui/* fields.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
|
7
7
|
"@angular/core": "^21.0.0",
|
|
8
|
-
"@praxisui/core": "^9.0.0-beta.
|
|
9
|
-
"@praxisui/dynamic-fields": "^9.0.0-beta.
|
|
10
|
-
"@praxisui/settings-panel": "^9.0.0-beta.
|
|
11
|
-
"@praxisui/metadata-editor": "^9.0.0-beta.
|
|
8
|
+
"@praxisui/core": "^9.0.0-beta.22",
|
|
9
|
+
"@praxisui/dynamic-fields": "^9.0.0-beta.22",
|
|
10
|
+
"@praxisui/settings-panel": "^9.0.0-beta.22",
|
|
11
|
+
"@praxisui/metadata-editor": "^9.0.0-beta.22",
|
|
12
12
|
"@angular/cdk": "^21.0.0",
|
|
13
13
|
"@angular/forms": "^21.0.0",
|
|
14
14
|
"@angular/material": "^21.0.0",
|
|
15
15
|
"@angular/router": "^21.0.0",
|
|
16
|
-
"@praxisui/ai": "^9.0.0-beta.
|
|
16
|
+
"@praxisui/ai": "^9.0.0-beta.22",
|
|
17
17
|
"rxjs": "~7.8.0"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|