ngx-json-render 0.7.0 → 0.7.2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-json-render",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "description": "Angular renderer for json-render — stream AI-generated JSON specs into real Angular components with signals.",
5
5
  "keywords": [
6
6
  "angular",
@@ -24,7 +24,7 @@
24
24
  "peerDependencies": {
25
25
  "@angular/common": ">=20.0.0",
26
26
  "@angular/core": ">=20.0.0",
27
- "@json-render/core": "^0.20.0",
27
+ "@json-render/core": ">=0.20.0 <0.22.0",
28
28
  "zod": "^4.0.0"
29
29
  },
30
30
  "dependencies": {
@@ -216,7 +216,7 @@ interface RenderSpecOptions {
216
216
  /** Custom validation functions. */
217
217
  validationFunctions?: Record<string, ValidationFunction>;
218
218
  /** Custom directives for `$`-prefixed values. */
219
- directives?: DirectiveDefinition[];
219
+ directives?: DirectiveDefinition<any>[];
220
220
  /** Render as if the spec were still streaming. */
221
221
  loading?: boolean;
222
222
  /** Extra TestBed providers, e.g. a `JR_CONFIRM_DIALOG` replacement. */
@@ -1,8 +1,6 @@
1
1
  import * as _json_render_core from '@json-render/core';
2
2
  import { ResolvedAction, ActionHandler, ActionBinding, SpecIssue, Spec, Catalog, InferCatalogActions, InferActionParams, StateModel, InferCatalogComponents, UIElement, StateStore, ValidationFunction, ComputedFunction, DirectiveDefinition, ActionConfirm, DirectiveRegistry, ValidationResult, ValidationConfig, JsonPatch, FlatElement } from '@json-render/core';
3
3
  export { ActionBinding, ActionHandler, JsonPatch, Spec, SpecIssue, StateModel, StateStore, UIElement, VisibilityCondition, autoFixSpec, createStateStore, formatSpecIssues, nestedToFlat, validateSpec } from '@json-render/core';
4
- import * as zod from 'zod';
5
- import * as zod_v4_core from 'zod/v4/core';
6
4
  import * as _angular_core from '@angular/core';
7
5
  import { Signal, Type, InjectionToken } from '@angular/core';
8
6
  import * as ngx_json_render from 'ngx-json-render';
@@ -520,7 +518,7 @@ declare class JsonRenderer {
520
518
  /** Named functions for `$computed` expressions in props. */
521
519
  readonly functions: _angular_core.InputSignal<Record<string, ComputedFunction> | undefined>;
522
520
  /** Custom directives for user-defined `$`-prefixed dynamic values. */
523
- readonly directives: _angular_core.InputSignal<DirectiveDefinition<zod.ZodType<unknown, unknown, zod_v4_core.$ZodTypeInternals<unknown, unknown>>>[] | undefined>;
521
+ readonly directives: _angular_core.InputSignal<DirectiveDefinition<any>[] | undefined>;
524
522
  /** Emits state changes in uncontrolled mode. */
525
523
  readonly stateChange: _angular_core.OutputEmitterRef<StateChange[]>;
526
524
  /** The state store of this renderer (also injectable in the subtree). */