@praxisui/visual-builder 8.0.0-beta.19 → 8.0.0-beta.20
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/fesm2022/praxisui-visual-builder.mjs +18 -9
- package/index.d.ts +2 -2
- package/package.json +7 -2
|
@@ -10852,7 +10852,7 @@ class RuleDefinitionComponent {
|
|
|
10852
10852
|
this.isInitializing = true;
|
|
10853
10853
|
this.lastEmittedConfig = '';
|
|
10854
10854
|
this.selectedStepIndex = 0;
|
|
10855
|
-
const config = this.ruleNode.config
|
|
10855
|
+
const config = (this.ruleNode.config ?? {});
|
|
10856
10856
|
this.selectedTargets = config.targets || [];
|
|
10857
10857
|
this.selectedTargetType = config.targetType || this.inferTargetType(this.selectedTargets);
|
|
10858
10858
|
this.propertyConfig = {
|
|
@@ -12778,7 +12778,7 @@ class RuleEditorComponent {
|
|
|
12778
12778
|
if (!this.selectedNode)
|
|
12779
12779
|
return;
|
|
12780
12780
|
const nextConfig = this.normalizeRuleConfig(config);
|
|
12781
|
-
const existingConfig = this.normalizeRuleConfig(this.selectedNode.config
|
|
12781
|
+
const existingConfig = this.normalizeRuleConfig((this.selectedNode.config ?? {}));
|
|
12782
12782
|
const nextLabel = this.buildPropertyRuleLabel(nextConfig);
|
|
12783
12783
|
const prevLabel = this.selectedNode.label || this.selectedNode.id;
|
|
12784
12784
|
const sameConfig = JSON.stringify(existingConfig || {}) === JSON.stringify(nextConfig || {});
|
|
@@ -14277,11 +14277,18 @@ class WebhookIntegrationService {
|
|
|
14277
14277
|
deliveredAt: new Date(),
|
|
14278
14278
|
response: {
|
|
14279
14279
|
statusCode: response.status,
|
|
14280
|
-
headers:
|
|
14280
|
+
headers: this.toHeaderRecord(response.headers),
|
|
14281
14281
|
body: responseBody
|
|
14282
14282
|
}
|
|
14283
14283
|
};
|
|
14284
14284
|
}
|
|
14285
|
+
toHeaderRecord(headers) {
|
|
14286
|
+
const values = {};
|
|
14287
|
+
headers.forEach((value, key) => {
|
|
14288
|
+
values[key] = value;
|
|
14289
|
+
});
|
|
14290
|
+
return values;
|
|
14291
|
+
}
|
|
14285
14292
|
updateDelivery(delivery) {
|
|
14286
14293
|
const index = this.deliveries.findIndex(d => d.id === delivery.id);
|
|
14287
14294
|
if (index >= 0) {
|
|
@@ -15643,15 +15650,16 @@ var ErrorSeverity;
|
|
|
15643
15650
|
* Base error class for all Visual Builder errors
|
|
15644
15651
|
*/
|
|
15645
15652
|
class VisualBuilderError extends Error {
|
|
15646
|
-
cause;
|
|
15647
15653
|
timestamp;
|
|
15648
15654
|
context;
|
|
15649
15655
|
constructor(message, context = {}, cause) {
|
|
15650
15656
|
super(message);
|
|
15651
|
-
this.cause = cause;
|
|
15652
15657
|
this.name = this.constructor.name;
|
|
15653
15658
|
this.timestamp = new Date();
|
|
15654
15659
|
this.context = context;
|
|
15660
|
+
if (cause) {
|
|
15661
|
+
this.cause = cause;
|
|
15662
|
+
}
|
|
15655
15663
|
// Maintain proper stack trace
|
|
15656
15664
|
if (Error.captureStackTrace) {
|
|
15657
15665
|
Error.captureStackTrace(this, this.constructor);
|
|
@@ -15661,6 +15669,7 @@ class VisualBuilderError extends Error {
|
|
|
15661
15669
|
* Get structured error information
|
|
15662
15670
|
*/
|
|
15663
15671
|
toJSON() {
|
|
15672
|
+
const cause = this.cause;
|
|
15664
15673
|
return {
|
|
15665
15674
|
code: this.code,
|
|
15666
15675
|
category: this.category,
|
|
@@ -15669,10 +15678,10 @@ class VisualBuilderError extends Error {
|
|
|
15669
15678
|
timestamp: this.timestamp.toISOString(),
|
|
15670
15679
|
context: this.context,
|
|
15671
15680
|
stack: this.stack,
|
|
15672
|
-
cause:
|
|
15673
|
-
name:
|
|
15674
|
-
message:
|
|
15675
|
-
stack:
|
|
15681
|
+
cause: cause ? {
|
|
15682
|
+
name: cause.name,
|
|
15683
|
+
message: cause.message,
|
|
15684
|
+
stack: cause.stack
|
|
15676
15685
|
} : undefined
|
|
15677
15686
|
};
|
|
15678
15687
|
}
|
package/index.d.ts
CHANGED
|
@@ -1603,6 +1603,7 @@ declare class WebhookIntegrationService {
|
|
|
1603
1603
|
private preparePayload;
|
|
1604
1604
|
private deliverWebhook;
|
|
1605
1605
|
private sendWebhookRequest;
|
|
1606
|
+
private toHeaderRecord;
|
|
1606
1607
|
private updateDelivery;
|
|
1607
1608
|
private processRetries;
|
|
1608
1609
|
private updateStats;
|
|
@@ -2016,13 +2017,12 @@ declare enum ErrorSeverity {
|
|
|
2016
2017
|
* Base error class for all Visual Builder errors
|
|
2017
2018
|
*/
|
|
2018
2019
|
declare abstract class VisualBuilderError extends Error {
|
|
2019
|
-
readonly cause?: Error | undefined;
|
|
2020
2020
|
abstract readonly code: string;
|
|
2021
2021
|
abstract readonly category: ErrorCategory;
|
|
2022
2022
|
abstract readonly severity: ErrorSeverity;
|
|
2023
2023
|
readonly timestamp: Date;
|
|
2024
2024
|
readonly context: Record<string, any>;
|
|
2025
|
-
constructor(message: string, context?: Record<string, any>, cause?: Error
|
|
2025
|
+
constructor(message: string, context?: Record<string, any>, cause?: Error);
|
|
2026
2026
|
/**
|
|
2027
2027
|
* Get structured error information
|
|
2028
2028
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/visual-builder",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.20",
|
|
4
4
|
"description": "Visual rule and expression builder for Praxis UI with JSON Logic authoring, validation and context variables.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^20.0.0",
|
|
@@ -8,7 +8,12 @@
|
|
|
8
8
|
"@angular/cdk": "^20.0.0",
|
|
9
9
|
"@angular/material": "^20.0.0",
|
|
10
10
|
"@angular/forms": "^20.0.0",
|
|
11
|
-
"@praxisui/settings-panel": "^8.0.0-beta.
|
|
11
|
+
"@praxisui/settings-panel": "^8.0.0-beta.20",
|
|
12
|
+
"@angular/platform-browser-dynamic": "^20.0.0",
|
|
13
|
+
"@praxisui/ai": "^8.0.0-beta.20",
|
|
14
|
+
"@praxisui/core": "^8.0.0-beta.20",
|
|
15
|
+
"@praxisui/metadata-editor": "^8.0.0-beta.20",
|
|
16
|
+
"rxjs": "~7.8.0"
|
|
12
17
|
},
|
|
13
18
|
"dependencies": {
|
|
14
19
|
"tslib": "^2.3.0",
|