@praxisui/rich-content 9.0.46 → 9.0.47

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 CHANGED
@@ -75,6 +75,11 @@ export const appConfig: ApplicationConfig = {
75
75
 
76
76
  Use widget id `praxis-rich-content` and pass the document through `definition.inputs.document`.
77
77
 
78
+ The component-owned metadata publishes the existing runtime `context` input as
79
+ the public `view-context` semantic port. Dynamic Page plans should target that
80
+ port with a transform whose output is explicitly `view-context`; the context
81
+ then resolves bindings and Json Logic without mutating the authored document.
82
+
78
83
  ## Document Contract
79
84
 
80
85
  `RichContentDocument` must use:
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "generatedAt": "2026-08-30T19:35:50.928Z",
3
+ "generatedAt": "2026-08-30T21:38:22.309Z",
4
4
  "packageName": "@praxisui/rich-content",
5
- "packageVersion": "9.0.46",
5
+ "packageVersion": "9.0.47",
6
6
  "sourceRegistry": "praxis-component-registry-ingestion",
7
7
  "sourceRegistryVersion": "1.0.0",
8
8
  "componentCount": 1,
@@ -95,6 +95,30 @@
95
95
  "minCols": 2,
96
96
  "minRows": 1
97
97
  },
98
+ "ports": [
99
+ {
100
+ "id": "context",
101
+ "label": "View Context",
102
+ "direction": "input",
103
+ "semanticKind": "view-context",
104
+ "description": "Governed runtime context used to resolve Json Logic, expressions and bindings without mutating the authored document.",
105
+ "schema": {
106
+ "id": "JsonLogicDataRecord",
107
+ "kind": "ts-type",
108
+ "ref": "JsonLogicDataRecord"
109
+ },
110
+ "compatibility": {
111
+ "acceptsSemanticKinds": [
112
+ "view-context"
113
+ ],
114
+ "schemaMode": "structural"
115
+ },
116
+ "exposure": {
117
+ "public": true,
118
+ "group": "data"
119
+ }
120
+ }
121
+ ],
98
122
  "configEditor": {
99
123
  "component": "[ref:PraxisRichContentConfigEditor]",
100
124
  "title": "Configurar rich content"
@@ -20082,6 +20082,25 @@ const RICH_CONTENT_INSERTION_PRESETS = [
20082
20082
  },
20083
20083
  },
20084
20084
  ];
20085
+ const PRAXIS_RICH_CONTENT_PORTS = [
20086
+ {
20087
+ id: 'context',
20088
+ label: 'View Context',
20089
+ direction: 'input',
20090
+ semanticKind: 'view-context',
20091
+ description: 'Governed runtime context used to resolve Json Logic, expressions and bindings without mutating the authored document.',
20092
+ schema: {
20093
+ id: 'JsonLogicDataRecord',
20094
+ kind: 'ts-type',
20095
+ ref: 'JsonLogicDataRecord',
20096
+ },
20097
+ compatibility: {
20098
+ acceptsSemanticKinds: ['view-context'],
20099
+ schemaMode: 'structural',
20100
+ },
20101
+ exposure: { public: true, group: 'data' },
20102
+ },
20103
+ ];
20085
20104
  const PRAXIS_RICH_CONTENT_COMPONENT_METADATA = {
20086
20105
  id: 'praxis-rich-content',
20087
20106
  selector: 'praxis-rich-content',
@@ -20130,6 +20149,7 @@ const PRAXIS_RICH_CONTENT_COMPONENT_METADATA = {
20130
20149
  },
20131
20150
  ],
20132
20151
  outputs: [],
20152
+ ports: PRAXIS_RICH_CONTENT_PORTS,
20133
20153
  tags: ['widget', 'rich-content', 'editorial', 'presentation', 'cards', 'timeline'],
20134
20154
  insertionPresets: RICH_CONTENT_INSERTION_PRESETS,
20135
20155
  lib: '@praxisui/rich-content',
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@praxisui/rich-content",
3
- "version": "9.0.46",
3
+ "version": "9.0.47",
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.46",
8
+ "@praxisui/core": "^9.0.47",
9
9
  "@angular/forms": "^21.0.0",
10
10
  "rxjs": "~7.8.0"
11
11
  },