@praxisui/editorial-forms 8.0.0-beta.7 → 8.0.0-beta.71

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/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@praxisui/editorial-forms",
3
- "version": "8.0.0-beta.7",
3
+ "version": "8.0.0-beta.71",
4
4
  "description": "Editorial form runtime for Praxis UI: journeys, presets, semantic blocks, and specialist hosting for editorial experiences.",
5
5
  "peerDependencies": {
6
- "@angular/common": "^20.0.0",
7
- "@angular/core": "^20.0.0",
8
- "@praxisui/core": "^8.0.0-beta.7"
6
+ "@angular/common": "^21.0.0",
7
+ "@angular/core": "^21.0.0",
8
+ "@praxisui/core": "^8.0.0-beta.71",
9
+ "@angular/material": "^21.0.0"
9
10
  },
10
11
  "dependencies": {
11
12
  "tslib": "^2.3.0"
@@ -33,14 +34,15 @@
33
34
  ],
34
35
  "sideEffects": false,
35
36
  "module": "fesm2022/praxisui-editorial-forms.mjs",
36
- "typings": "index.d.ts",
37
+ "typings": "types/praxisui-editorial-forms.d.ts",
37
38
  "exports": {
38
39
  "./package.json": {
39
40
  "default": "./package.json"
40
41
  },
41
42
  ".": {
42
- "types": "./index.d.ts",
43
+ "types": "./types/praxisui-editorial-forms.d.ts",
43
44
  "default": "./fesm2022/praxisui-editorial-forms.mjs"
44
45
  }
45
- }
46
+ },
47
+ "type": "module"
46
48
  }
@@ -1,18 +1,32 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { EnvironmentProviders, Type, InjectionToken } from '@angular/core';
2
+ import { EnvironmentProviders, Provider, InjectionToken, Type } from '@angular/core';
3
3
  import * as _praxisui_core from '@praxisui/core';
4
- import { EditorialProblemType, EditorialWizardPresentation, EditorialThemePreset, EditorialCompliancePreset, EditorialStepKind, EditorialIconSpec, EditorialStepVisualConfig, EditorialBlock, EditorialDataCollectionBlock, EditorialSolutionDefinition, EditorialTemplateInstance, PraxisTranslationParams, FormConfig, EditorialLayoutConfig, EditorialStepperConfig, EditorialOrientation, EditorialThemeTokens, EditorialBlockVisibilityRule, PraxisI18nDictionary, PraxisI18nConfig, EditorialIntroHeroBlock, EditorialHeroBlock, EditorialRichTextBlock, EditorialPolicyListBlock, EditorialTimelineStepsBlock, EditorialReviewSummaryBlock, EditorialReviewSectionsBlock, EditorialContextSummaryBlock, EditorialSelectionCardsBlock, EditorialInfoCardsBlock, EditorialSuccessPanelBlock, EditorialFaqAccordionBlock, EditorialPresentationalAction, EditorialReviewSectionField } from '@praxisui/core';
4
+ import { ComponentAuthoringManifest, EditorialSolutionDefinition, EditorialTemplateInstance, EditorialDataCollectionBlock, EditorialProblemType, EditorialWizardPresentation, EditorialThemePreset, EditorialCompliancePreset, EditorialStepKind, EditorialIconSpec, EditorialStepVisualConfig, EditorialBlock, PraxisTranslationParams, ComponentDocMeta, FormConfig, EditorialLayoutConfig, EditorialStepperConfig, EditorialOrientation, EditorialThemeTokens, EditorialBlockVisibilityRule, PraxisI18nDictionary, PraxisI18nConfig, EditorialIntroHeroBlock, EditorialHeroBlock, EditorialRichTextBlock, EditorialPolicyListBlock, EditorialTimelineStepsBlock, EditorialReviewSummaryBlock, EditorialReviewSectionsBlock, EditorialContextSummaryBlock, EditorialSelectionCardsBlock, EditorialInfoCardsBlock, EditorialSuccessPanelBlock, EditorialFaqAccordionBlock, EditorialPresentationalAction, EditorialReviewSectionField } from '@praxisui/core';
5
+ import * as _praxisui_editorial_forms from '@praxisui/editorial-forms';
5
6
 
6
7
  /**
7
8
  * Root provider entrypoint for the editorial runtime package.
8
9
  *
9
- * Intentionally minimal in v1:
10
- * - no global singleton graph yet
11
- * - no dependency on @praxisui/dynamic-form
12
- * - safe to consume from apps without pulling generic form authoring
10
+ * Registers the public DynamicWidgetLoader metadata for
11
+ * praxis-editorial-form-runtime in ComponentMetadataRegistry. This is the
12
+ * canonical setup hook for hosts that render editorial forms through dynamic
13
+ * composition; it does not introduce a separate global runtime singleton graph.
13
14
  */
14
15
  declare function providePraxisEditorialForms(): EnvironmentProviders;
15
16
 
17
+ declare const PRAXIS_EDITORIAL_FORMS_AUTHORING_MANIFEST: ComponentAuthoringManifest;
18
+
19
+ interface EditorialRuntimeInput {
20
+ solution: EditorialSolutionDefinition | null;
21
+ instance: EditorialTemplateInstance | null;
22
+ runtimeContext?: Record<string, unknown> | null;
23
+ }
24
+ interface EditorialRuntimeHostConfig {
25
+ emitOperationalEvents?: boolean;
26
+ forwardAdapterOperationalEvents?: boolean;
27
+ }
28
+ declare const DEFAULT_EDITORIAL_RUNTIME_HOST_CONFIG: Required<EditorialRuntimeHostConfig>;
29
+
16
30
  type EditorialRuntimeDiagnosticSeverity = 'info' | 'warning' | 'error';
17
31
  type EditorialRuntimeDiagnosticScopeKind = 'global' | 'journey' | 'step' | 'block';
18
32
  type EditorialRuntimeDiagnosticCode = 'solution-missing' | 'theme-preset-not-found' | 'compliance-preset-not-found' | 'compliance-preset-problem-type-mismatch' | 'presentation-config-unsupported' | 'context-required-missing' | 'compliance-context-required-missing' | 'compliance-evidence-missing' | 'compliance-acceptance-missing' | 'data-collection-config-missing' | 'data-collection-config-ambiguous' | 'data-collection-adapter-missing' | 'data-collection-invalid' | 'instance-journey-block-conflict' | 'journey-override-target-missing' | 'step-override-target-missing' | 'block-override-invalid' | 'block-override-conflict' | 'block-override-target-missing';
@@ -104,17 +118,6 @@ interface EditorialRuntimeSnapshot {
104
118
  diagnostics: EditorialRuntimeDiagnostics;
105
119
  }
106
120
 
107
- interface EditorialRuntimeInput {
108
- solution: EditorialSolutionDefinition | null;
109
- instance: EditorialTemplateInstance | null;
110
- runtimeContext?: Record<string, unknown> | null;
111
- }
112
- interface EditorialRuntimeHostConfig {
113
- emitOperationalEvents?: boolean;
114
- forwardAdapterOperationalEvents?: boolean;
115
- }
116
- declare const DEFAULT_EDITORIAL_RUNTIME_HOST_CONFIG: Required<EditorialRuntimeHostConfig>;
117
-
118
121
  type EditorialRuntimeFallbackMode = 'normal' | 'warning' | 'degraded' | 'blocked';
119
122
  interface EditorialRuntimeFallbackState {
120
123
  mode: EditorialRuntimeFallbackMode;
@@ -197,9 +200,9 @@ declare class EditorialFormRuntimeComponent {
197
200
  }>;
198
201
  protected readonly journeys: _angular_core.Signal<EditorialResolvedJourney[]>;
199
202
  protected readonly activeJourney: _angular_core.Signal<EditorialResolvedJourney | null>;
200
- protected readonly activeStep: _angular_core.Signal<EditorialResolvedStep | null>;
203
+ protected readonly activeStep: _angular_core.Signal<_praxisui_editorial_forms.EditorialResolvedStep | null>;
201
204
  protected readonly resolvedContext: _angular_core.Signal<Record<string, unknown>>;
202
- protected readonly runtimeDiagnostics: _angular_core.Signal<EditorialRuntimeDiagnostics>;
205
+ protected readonly runtimeDiagnostics: _angular_core.Signal<_praxisui_editorial_forms.EditorialRuntimeDiagnostics>;
203
206
  protected readonly fallbackState: _angular_core.Signal<EditorialRuntimeFallbackState>;
204
207
  protected readonly diagnosticItems: _angular_core.Signal<EditorialRuntimeDiagnostic[]>;
205
208
  protected readonly globalDiagnostics: _angular_core.Signal<EditorialRuntimeDiagnostic[]>;
@@ -257,6 +260,9 @@ declare class EditorialFormRuntimeComponent {
257
260
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<EditorialFormRuntimeComponent, "praxis-editorial-form-runtime", never, { "solution": { "alias": "solution"; "required": false; "isSignal": true; }; "instance": { "alias": "instance"; "required": false; "isSignal": true; }; "runtimeContext": { "alias": "runtimeContext"; "required": false; "isSignal": true; }; "hostConfig": { "alias": "hostConfig"; "required": false; "isSignal": true; }; }, { "snapshotChange": "snapshotChange"; "fallbackChange": "fallbackChange"; "operationalEvent": "operationalEvent"; }, never, never, true, never>;
258
261
  }
259
262
 
263
+ declare const EDITORIAL_FORM_RUNTIME_COMPONENT_METADATA: ComponentDocMeta;
264
+ declare function providePraxisEditorialFormRuntimeMetadata(): Provider;
265
+
260
266
  type EditorialDataBlockComponentInputs = Record<string, unknown>;
261
267
  interface EditorialDataBlockValueChangeEvent {
262
268
  formData: Record<string, unknown>;
@@ -351,7 +357,7 @@ declare class EditorialDataCollectionBlockOutletComponent {
351
357
  resolvedFormConfig: _praxisui_core.FormConfig | null;
352
358
  }>;
353
359
  private readonly resolution;
354
- protected readonly adapterResolution: _angular_core.Signal<EditorialDataBlockAdapterResolution>;
360
+ protected readonly adapterResolution: _angular_core.Signal<_praxisui_editorial_forms.EditorialDataBlockAdapterResolution>;
355
361
  protected readonly adapter: _angular_core.Signal<EditorialDataBlockAdapter | null>;
356
362
  protected readonly adapterComponent: _angular_core.Signal<Type<unknown> | null>;
357
363
  protected readonly loadingState: _angular_core.Signal<{
@@ -748,5 +754,5 @@ interface EditorialRuntimeHarnessCatalog {
748
754
  declare function createEditorialRuntimeHarnessCatalog(): EditorialRuntimeHarnessCatalog;
749
755
  declare function getHarnessDataEngineComponent(): Type<unknown>;
750
756
 
751
- export { DEFAULT_EDITORIAL_RUNTIME_HOST_CONFIG, EDITORIAL_DATA_BLOCK_ADAPTER, EditorialBlockRendererComponent, EditorialDataBlockAdapterRegistry, EditorialDataCollectionBlockOutletComponent, EditorialFormRuntimeComponent, EditorialIntroHeroBlockComponent, EditorialReviewSectionsBlockComponent, EditorialRuntimeState, EditorialSelectionCardsBlockComponent, EditorialStepperComponent, EditorialSuccessPanelBlockComponent, HarnessDataEngineComponent, PRAXIS_EDITORIAL_FORMS_EN_US, PRAXIS_EDITORIAL_FORMS_PT_BR, buildRuntimeCssVars, buildRuntimeLayoutCss, createEditorialDynamicFormAdapter, createEditorialRuntimeHarnessCatalog, createPraxisEditorialFormsI18nConfig, deriveRuntimeFallbackState, getHarnessDataEngineComponent, getStepDisplayState, getValueAtPath, getVisibleBlocks, isBlockVisible, matchesVisibilityRule, provideEditorialDataBlockAdapter, provideEditorialDynamicFormAdapter, providePraxisEditorialForms, providePraxisEditorialFormsI18n, resolveActiveJourney, resolveActiveStep, resolveDensity, resolveEditorialDataBlockAdapter, resolveEditorialDataBlockFormConfig, resolveEditorialDataBlockFormConfigDetails, resolveEditorialRuntimeSnapshot, resolveRuntimeOrientation, resolveShellVariant };
757
+ export { DEFAULT_EDITORIAL_RUNTIME_HOST_CONFIG, EDITORIAL_DATA_BLOCK_ADAPTER, EDITORIAL_FORM_RUNTIME_COMPONENT_METADATA, EditorialBlockRendererComponent, EditorialDataBlockAdapterRegistry, EditorialDataCollectionBlockOutletComponent, EditorialFormRuntimeComponent, EditorialIntroHeroBlockComponent, EditorialReviewSectionsBlockComponent, EditorialRuntimeState, EditorialSelectionCardsBlockComponent, EditorialStepperComponent, EditorialSuccessPanelBlockComponent, HarnessDataEngineComponent, PRAXIS_EDITORIAL_FORMS_AUTHORING_MANIFEST, PRAXIS_EDITORIAL_FORMS_EN_US, PRAXIS_EDITORIAL_FORMS_PT_BR, buildRuntimeCssVars, buildRuntimeLayoutCss, createEditorialDynamicFormAdapter, createEditorialRuntimeHarnessCatalog, createPraxisEditorialFormsI18nConfig, deriveRuntimeFallbackState, getHarnessDataEngineComponent, getStepDisplayState, getValueAtPath, getVisibleBlocks, isBlockVisible, matchesVisibilityRule, provideEditorialDataBlockAdapter, provideEditorialDynamicFormAdapter, providePraxisEditorialFormRuntimeMetadata, providePraxisEditorialForms, providePraxisEditorialFormsI18n, resolveActiveJourney, resolveActiveStep, resolveDensity, resolveEditorialDataBlockAdapter, resolveEditorialDataBlockFormConfig, resolveEditorialDataBlockFormConfigDetails, resolveEditorialRuntimeSnapshot, resolveRuntimeOrientation, resolveShellVariant };
752
758
  export type { DynamicFormCompatibleComponent, EditorialDataBlockAdapter, EditorialDataBlockAdapterResolution, EditorialDataBlockAdapterResolutionStatus, EditorialDataBlockComponentInputs, EditorialDataBlockContext, EditorialDataBlockResolution, EditorialDataBlockValueChangeEvent, EditorialDynamicFormAdapterOptions, EditorialResolvedBlock, EditorialResolvedBlockBase, EditorialResolvedBlockCompositionEntry, EditorialResolvedBlockCompositionOperation, EditorialResolvedBlockProvenance, EditorialResolvedBlockSourceKind, EditorialResolvedBlockSourceRef, EditorialResolvedDataCollectionBlock, EditorialResolvedDataCollectionState, EditorialResolvedJourney, EditorialResolvedStep, EditorialRuntimeDiagnostic, EditorialRuntimeDiagnosticCode, EditorialRuntimeDiagnosticScopeKind, EditorialRuntimeDiagnosticSeverity, EditorialRuntimeDiagnostics, EditorialRuntimeFallbackMode, EditorialRuntimeFallbackScope, EditorialRuntimeFallbackState, EditorialRuntimeFixture, EditorialRuntimeHarnessCatalog, EditorialRuntimeHostConfig, EditorialRuntimeInput, EditorialRuntimeOperationalEvent, EditorialRuntimeOperationalEventBase, EditorialRuntimeOperationalEventSeverity, EditorialRuntimeOperationalEventType, EditorialRuntimeSnapshot, PraxisEditorialFormsI18nOptions, ResolveEditorialRuntimeSnapshotInput };