@praxisui/page-builder 9.0.2 → 9.0.3
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-07-
|
|
3
|
+
"generatedAt": "2026-07-28T00:59:00.108Z",
|
|
4
4
|
"packageName": "@praxisui/page-builder",
|
|
5
|
-
"packageVersion": "9.0.
|
|
5
|
+
"packageVersion": "9.0.3",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 1,
|
|
@@ -2800,7 +2800,7 @@ const PRAXIS_PAGE_BUILDER_EN_US = {
|
|
|
2800
2800
|
'praxis.pageBuilder.agentic.state.idle': 'Ready',
|
|
2801
2801
|
'praxis.pageBuilder.agentic.state.listening': 'Ready',
|
|
2802
2802
|
'praxis.pageBuilder.agentic.state.processing': 'Processing',
|
|
2803
|
-
'praxis.pageBuilder.agentic.state.clarification': '
|
|
2803
|
+
'praxis.pageBuilder.agentic.state.clarification': 'Decision required',
|
|
2804
2804
|
'praxis.pageBuilder.agentic.state.review': 'Review',
|
|
2805
2805
|
'praxis.pageBuilder.agentic.state.applying': 'Applying',
|
|
2806
2806
|
'praxis.pageBuilder.agentic.state.success': 'Done',
|
|
@@ -3425,7 +3425,7 @@ const PRAXIS_PAGE_BUILDER_PT_BR = {
|
|
|
3425
3425
|
'praxis.pageBuilder.agentic.state.idle': 'Pronto',
|
|
3426
3426
|
'praxis.pageBuilder.agentic.state.listening': 'Pronto',
|
|
3427
3427
|
'praxis.pageBuilder.agentic.state.processing': 'Processando',
|
|
3428
|
-
'praxis.pageBuilder.agentic.state.clarification': '
|
|
3428
|
+
'praxis.pageBuilder.agentic.state.clarification': 'Decisão necessária',
|
|
3429
3429
|
'praxis.pageBuilder.agentic.state.review': 'Revisão',
|
|
3430
3430
|
'praxis.pageBuilder.agentic.state.applying': 'Aplicando',
|
|
3431
3431
|
'praxis.pageBuilder.agentic.state.success': 'Concluído',
|
|
@@ -21031,7 +21031,7 @@ class DynamicPageBuilderComponent {
|
|
|
21031
21031
|
stateIdle: this.tx('agentic.state.idle', 'Pronto'),
|
|
21032
21032
|
stateListening: this.tx('agentic.state.listening', 'Pronto'),
|
|
21033
21033
|
stateProcessing: this.tx('agentic.state.processing', 'Processando'),
|
|
21034
|
-
stateClarification: this.tx('agentic.state.clarification', '
|
|
21034
|
+
stateClarification: this.tx('agentic.state.clarification', 'Decisão necessária'),
|
|
21035
21035
|
stateReview: this.tx('agentic.state.review', 'Revisão'),
|
|
21036
21036
|
stateApplying: this.tx('agentic.state.applying', 'Aplicando'),
|
|
21037
21037
|
stateSuccess: this.tx('agentic.state.success', 'Concluído'),
|
|
@@ -23969,20 +23969,38 @@ class DynamicPageBuilderComponent {
|
|
|
23969
23969
|
if (error?.name === 'TimeoutError') {
|
|
23970
23970
|
return this.tx('agentic.errors.streamTimeout', 'O assistente demorou para concluir este pedido. Tente de novo com um recorte menor ou revise o contexto ativo.');
|
|
23971
23971
|
}
|
|
23972
|
+
if (typeof error?.status === 'number' && error.status >= 500) {
|
|
23973
|
+
return this.tx('agentic.errors.status', 'Não consegui concluir este pedido. Revise a conexão e tente novamente.');
|
|
23974
|
+
}
|
|
23972
23975
|
if (typeof error?.error?.message === 'string' && error.error.message.trim()) {
|
|
23973
|
-
|
|
23976
|
+
const message = error.error.message.trim();
|
|
23977
|
+
if (!this.looksLikeHtmlErrorResponse(message)) {
|
|
23978
|
+
return message;
|
|
23979
|
+
}
|
|
23974
23980
|
}
|
|
23975
23981
|
if (typeof error?.error === 'string' && error.error.trim()) {
|
|
23976
|
-
|
|
23982
|
+
const message = error.error.trim();
|
|
23983
|
+
if (!this.looksLikeHtmlErrorResponse(message)) {
|
|
23984
|
+
return message;
|
|
23985
|
+
}
|
|
23977
23986
|
}
|
|
23978
23987
|
if (typeof error?.message === 'string' && error.message.trim()) {
|
|
23979
|
-
|
|
23988
|
+
const message = error.message.trim();
|
|
23989
|
+
if (!this.looksLikeHtmlErrorResponse(message)) {
|
|
23990
|
+
return message;
|
|
23991
|
+
}
|
|
23980
23992
|
}
|
|
23981
23993
|
if (typeof error?.status === 'number') {
|
|
23982
23994
|
return this.tx('agentic.errors.status', 'Não consegui concluir este pedido. Revise a conexão e tente novamente.');
|
|
23983
23995
|
}
|
|
23984
23996
|
return this.tx('agentic.errors.generic', 'Não consegui concluir este pedido.');
|
|
23985
23997
|
}
|
|
23998
|
+
looksLikeHtmlErrorResponse(value) {
|
|
23999
|
+
const normalized = value.trimStart().toLowerCase();
|
|
24000
|
+
return normalized.startsWith('<!doctype html')
|
|
24001
|
+
|| normalized.startsWith('<html')
|
|
24002
|
+
|| (normalized.includes('<head') && normalized.includes('<body'));
|
|
24003
|
+
}
|
|
23986
24004
|
cloneValue(value) {
|
|
23987
24005
|
if (value == null || typeof value !== 'object') {
|
|
23988
24006
|
return value;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/page-builder",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.3",
|
|
4
4
|
"description": "Page and widget builder utilities for Praxis UI (grid, dynamic widgets, editors).",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"@angular/forms": "^21.0.0",
|
|
9
9
|
"@angular/cdk": "^21.0.0",
|
|
10
10
|
"@angular/material": "^21.0.0",
|
|
11
|
-
"@praxisui/ai": "^9.0.
|
|
12
|
-
"@praxisui/core": "^9.0.
|
|
13
|
-
"@praxisui/settings-panel": "^9.0.
|
|
11
|
+
"@praxisui/ai": "^9.0.3",
|
|
12
|
+
"@praxisui/core": "^9.0.3",
|
|
13
|
+
"@praxisui/settings-panel": "^9.0.3",
|
|
14
14
|
"rxjs": "~7.8.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
@@ -2069,6 +2069,7 @@ declare class DynamicPageBuilderComponent implements OnChanges, OnDestroy {
|
|
|
2069
2069
|
private isAgenticTableContractError;
|
|
2070
2070
|
private appendAgenticMessage;
|
|
2071
2071
|
private describeAgenticError;
|
|
2072
|
+
private looksLikeHtmlErrorResponse;
|
|
2072
2073
|
private cloneValue;
|
|
2073
2074
|
tx(key: string, fallback: string): string;
|
|
2074
2075
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DynamicPageBuilderComponent, [null, { optional: true; }]>;
|