@praxisui/visual-builder 8.0.0-beta.20 → 8.0.0-beta.21
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/README.md +26 -1
- package/fesm2022/praxisui-visual-builder.mjs +3380 -2983
- package/index.d.ts +51 -10
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -74,6 +74,31 @@ export class EmbeddedRuleEditor {
|
|
|
74
74
|
}
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
+
### Condition-Only Editor
|
|
78
|
+
|
|
79
|
+
Use condition mode when a host owns the action/effect contract and only needs a visual JSON Logic expression.
|
|
80
|
+
|
|
81
|
+
```typescript
|
|
82
|
+
import { PraxisVisualBuilder } from '@praxisui/visual-builder';
|
|
83
|
+
|
|
84
|
+
@Component({
|
|
85
|
+
template: `
|
|
86
|
+
<praxis-visual-builder
|
|
87
|
+
mode="condition"
|
|
88
|
+
[config]="builderConfig"
|
|
89
|
+
[initialCondition]="condition"
|
|
90
|
+
(conditionChanged)="condition = $event">
|
|
91
|
+
</praxis-visual-builder>
|
|
92
|
+
`,
|
|
93
|
+
})
|
|
94
|
+
export class ConditionEditorHost {
|
|
95
|
+
builderConfig = {
|
|
96
|
+
fieldSchemas: {},
|
|
97
|
+
};
|
|
98
|
+
condition = null;
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
77
102
|
## Canonical Authoring Services
|
|
78
103
|
|
|
79
104
|
Use the canonical public services:
|
|
@@ -89,7 +114,7 @@ Main exports available from `@praxisui/visual-builder`:
|
|
|
89
114
|
- Agentic authoring: `PRAXIS_VISUAL_BUILDER_AUTHORING_MANIFEST`
|
|
90
115
|
- Components: `RuleEditorComponent`, `RuleCanvasComponent`, `RuleNodeComponent`, `FieldConditionEditorComponent`, `ConditionalValidatorEditorComponent`, `CollectionValidatorEditorComponent`, `MetadataEditorComponent`, `JsonViewerComponent`, `ExportDialogComponent`, `VisualRuleBuilderComponent`, `TemplateGalleryComponent`, `TemplateEditorDialogComponent`, `TemplatePreviewDialogComponent`, `RuleListComponent`, `ContextVariableManagerComponent`
|
|
91
116
|
- Services: `RuleBuilderService`, `ExportIntegrationService`, `WebhookIntegrationService`, `RuleTemplateService`, `RuleValidationService`, `RuleNodeRegistryService`, `ContextManagementService`, `FieldSchemaService`
|
|
92
|
-
- Models/Types: `FieldSchema`, `RuleBuilderConfig`, `ArrayFieldSchema`, `ContextScope`, `ContextEntry`, `ContextValue`
|
|
117
|
+
- Models/Types: `FieldSchema`, `RuleBuilderConfig`, `VisualBuilderMode`, `ArrayFieldSchema`, `ContextScope`, `ContextEntry`, `ContextValue`
|
|
93
118
|
|
|
94
119
|
## Agentic Authoring Contract
|
|
95
120
|
|