@praxisui/rich-content 9.0.0-beta.8 → 9.0.0-beta.80
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 +6 -2
- package/ai/component-registry.json +6690 -0
- package/fesm2022/praxisui-rich-content.mjs +749 -22
- package/package.json +7 -3
- package/types/praxisui-rich-content.d.ts +29 -0
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/rich-content",
|
|
3
|
-
"version": "9.0.0-beta.
|
|
3
|
+
"version": "9.0.0-beta.80",
|
|
4
4
|
"description": "Rich content rendering and authoring primitives for Praxis UI surfaces, including semantic blocks and page-builder integration.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
|
7
7
|
"@angular/core": "^21.0.0",
|
|
8
|
-
"@praxisui/core": "^9.0.0-beta.
|
|
8
|
+
"@praxisui/core": "^9.0.0-beta.80",
|
|
9
9
|
"@angular/forms": "^21.0.0",
|
|
10
10
|
"rxjs": "~7.8.0"
|
|
11
11
|
},
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"keywords": [
|
|
18
18
|
"angular",
|
|
19
19
|
"praxisui",
|
|
20
|
+
"praxis",
|
|
20
21
|
"rich-content",
|
|
21
22
|
"semantic-blocks",
|
|
22
23
|
"page-builder",
|
|
@@ -32,7 +33,10 @@
|
|
|
32
33
|
".": {
|
|
33
34
|
"types": "./types/praxisui-rich-content.d.ts",
|
|
34
35
|
"default": "./fesm2022/praxisui-rich-content.mjs"
|
|
36
|
+
},
|
|
37
|
+
"./ai/component-registry.json": {
|
|
38
|
+
"default": "./ai/component-registry.json"
|
|
35
39
|
}
|
|
36
40
|
},
|
|
37
41
|
"type": "module"
|
|
38
|
-
}
|
|
42
|
+
}
|
|
@@ -59,6 +59,9 @@ declare class PraxisRichContent {
|
|
|
59
59
|
resolveProgressValue(node: Extract<RichPresenterNode, {
|
|
60
60
|
type: 'progress';
|
|
61
61
|
}>): number;
|
|
62
|
+
resolveProgressPercent(node: Extract<RichPresenterNode, {
|
|
63
|
+
type: 'progress';
|
|
64
|
+
}>): string;
|
|
62
65
|
resolveProgressLabel(node: Extract<RichPresenterNode, {
|
|
63
66
|
type: 'progress';
|
|
64
67
|
}>): string | null;
|
|
@@ -281,6 +284,9 @@ type DecisionPackageStringField = 'title' | 'titleExpr' | 'subtitle' | 'subtitle
|
|
|
281
284
|
type DecisionPackageEvidence = NonNullable<RichDecisionPackageNode['evidence']>[number];
|
|
282
285
|
type DecisionPackageEvidenceField = 'id' | 'label' | 'labelExpr' | 'source' | 'sourceExpr';
|
|
283
286
|
type RichContentEditorPanel = 'guided' | 'preview' | 'json';
|
|
287
|
+
declare const ADVANCED_JSON_ONLY_NODE_FIELDS: readonly ["bindings", "disabledWhen", "loadWhen", "classWhen", "styleWhen"];
|
|
288
|
+
type AdvancedJsonOnlyNodeField = (typeof ADVANCED_JSON_ONLY_NODE_FIELDS)[number];
|
|
289
|
+
type DocumentContextField = 'scopes' | 'aliases';
|
|
284
290
|
interface PraxisRichContentEditorInputs {
|
|
285
291
|
document?: RichContentDocument | null;
|
|
286
292
|
layout?: 'block' | 'inline';
|
|
@@ -302,6 +308,7 @@ declare class PraxisRichContentConfigEditor implements SettingsValueProvider, On
|
|
|
302
308
|
readonly editableNodeTypes: ("text" | "icon" | "image" | "link" | "badge" | "avatar" | "metric" | "progress" | "actionButton" | "compose" | "card" | "callout" | "ctaGroup" | "keyValueList" | "propertySheet" | "statGroup" | "tabs" | "emptyState" | "recordSummary" | "lookupResult" | "lookupCard" | "relatedRecord" | "actionCard" | "decisionPackage" | "formLauncher" | "collapsibleCard" | "disclosure" | "accordion" | "mediaBlock" | "timeline" | "preset")[];
|
|
303
309
|
readonly presenterNodeTypes: ("text" | "icon" | "image" | "link" | "badge" | "avatar" | "metric" | "progress" | "actionButton")[];
|
|
304
310
|
readonly cardContentNodeTypes: EditableCardContentNodeType[];
|
|
311
|
+
readonly advancedJsonOnlyNodeFields: readonly ["bindings", "disabledWhen", "loadWhen", "classWhen", "styleWhen"];
|
|
305
312
|
readonly presetOptions: _praxisui_rich_content.RichBlockPresetDefinition[];
|
|
306
313
|
documentJson: string;
|
|
307
314
|
layout: 'block' | 'inline';
|
|
@@ -316,8 +323,10 @@ declare class PraxisRichContentConfigEditor implements SettingsValueProvider, On
|
|
|
316
323
|
selectedNodeIndex: number;
|
|
317
324
|
activeEditorPanel: RichContentEditorPanel;
|
|
318
325
|
advancedRulesOpen: boolean;
|
|
326
|
+
advancedJsonFieldErrors: Record<string, string>;
|
|
319
327
|
private initialInputs;
|
|
320
328
|
private pendingRemoval;
|
|
329
|
+
private advancedJsonFieldDrafts;
|
|
321
330
|
ngOnChanges(changes: SimpleChanges): void;
|
|
322
331
|
ngOnInit(): void;
|
|
323
332
|
getSettingsValue(): PraxisRichContentEditorValue | null;
|
|
@@ -463,6 +472,26 @@ declare class PraxisRichContentConfigEditor implements SettingsValueProvider, On
|
|
|
463
472
|
getFirstStyleValue(node: RichBlockNode): string;
|
|
464
473
|
setFirstStyleName(index: number, propertyName: string): void;
|
|
465
474
|
setFirstStyleValue(index: number, propertyValue: string): void;
|
|
475
|
+
hasDocumentContext(): boolean;
|
|
476
|
+
getDocumentContextScopes(): string;
|
|
477
|
+
setDocumentContextScopes(value: string): void;
|
|
478
|
+
getDocumentContextAliasesValue(): string;
|
|
479
|
+
setDocumentContextAliases(value: string): void;
|
|
480
|
+
getDocumentContextFieldError(field: DocumentContextField): string;
|
|
481
|
+
getDocumentContextAliasesPlaceholder(): string;
|
|
482
|
+
getAdvancedJsonOnlyFields(node: RichBlockNode): string[];
|
|
483
|
+
getAdvancedJsonFieldValue(index: number, node: RichBlockNode, field: AdvancedJsonOnlyNodeField): string;
|
|
484
|
+
setAdvancedJsonField(index: number, field: AdvancedJsonOnlyNodeField, value: string): void;
|
|
485
|
+
getAdvancedJsonFieldError(index: number, field: AdvancedJsonOnlyNodeField): string;
|
|
486
|
+
getAdvancedJsonFieldPlaceholder(field: AdvancedJsonOnlyNodeField): string;
|
|
487
|
+
private getAdvancedJsonFieldKey;
|
|
488
|
+
private getDocumentContextFieldKey;
|
|
489
|
+
private updateDocumentContext;
|
|
490
|
+
private setAdvancedJsonFieldInvalid;
|
|
491
|
+
private clearAdvancedJsonFieldState;
|
|
492
|
+
private hasAdvancedJsonFieldErrors;
|
|
493
|
+
private isAdvancedJsonFieldShapeValid;
|
|
494
|
+
private getAdvancedJsonFieldShapeError;
|
|
466
495
|
requestTopLevelNodeRemoval(index: number): void;
|
|
467
496
|
confirmTopLevelNodeRemoval(index: number): void;
|
|
468
497
|
requestNestedRemoval(scope: string, index: number): void;
|