@json-render/solid 0.17.0 → 0.19.0
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/dist/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +242 -163
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +227 -148
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as solid_js from 'solid-js';
|
|
2
2
|
import { ParentProps, Accessor, JSX, Component } from 'solid-js';
|
|
3
|
-
import { StateStore, StateModel, VisibilityCondition, VisibilityContext, ActionHandler, ResolvedAction, ActionBinding, ActionConfirm, ValidationFunction, ValidationResult, ValidationConfig, Catalog, InferCatalogComponents, InferComponentProps, InferCatalogActions, InferActionParams, UIElement, SchemaDefinition, Spec, ComputedFunction, FlatElement } from '@json-render/core';
|
|
3
|
+
import { StateStore, StateModel, VisibilityCondition, VisibilityContext, ActionHandler, ResolvedAction, ActionBinding, ActionConfirm, ValidationFunction, ValidationResult, ValidationConfig, Catalog, InferCatalogComponents, InferComponentProps, InferCatalogActions, InferActionParams, UIElement, SchemaDefinition, Spec, ComputedFunction, DirectiveDefinition, FlatElement } from '@json-render/core';
|
|
4
4
|
export { Spec, StateModel, StateStore, createStateStore } from '@json-render/core';
|
|
5
5
|
export { ElementTreeSchema, ElementTreeSpec, SolidSchema, SolidSpec, elementTreeSchema, schema } from './schema.mjs';
|
|
6
6
|
|
|
@@ -278,6 +278,8 @@ interface JSONUIProviderProps {
|
|
|
278
278
|
validationFunctions?: Record<string, (value: unknown, args?: Record<string, unknown>) => boolean>;
|
|
279
279
|
/** Named functions for `$computed` expressions in props */
|
|
280
280
|
functions?: Record<string, ComputedFunction>;
|
|
281
|
+
/** Custom directives for user-defined `$`-prefixed dynamic values */
|
|
282
|
+
directives?: DirectiveDefinition[];
|
|
281
283
|
/** Callback when state changes (uncontrolled mode) */
|
|
282
284
|
onStateChange?: (changes: Array<{
|
|
283
285
|
path: string;
|
|
@@ -366,6 +368,8 @@ interface CreateRendererProps {
|
|
|
366
368
|
}>) => void;
|
|
367
369
|
/** Named functions for `$computed` expressions in props */
|
|
368
370
|
functions?: Record<string, ComputedFunction>;
|
|
371
|
+
/** Custom directives for user-defined `$`-prefixed dynamic values */
|
|
372
|
+
directives?: DirectiveDefinition[];
|
|
369
373
|
/** Whether the spec is currently loading/streaming */
|
|
370
374
|
loading?: boolean;
|
|
371
375
|
/** Fallback component for unknown types */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as solid_js from 'solid-js';
|
|
2
2
|
import { ParentProps, Accessor, JSX, Component } from 'solid-js';
|
|
3
|
-
import { StateStore, StateModel, VisibilityCondition, VisibilityContext, ActionHandler, ResolvedAction, ActionBinding, ActionConfirm, ValidationFunction, ValidationResult, ValidationConfig, Catalog, InferCatalogComponents, InferComponentProps, InferCatalogActions, InferActionParams, UIElement, SchemaDefinition, Spec, ComputedFunction, FlatElement } from '@json-render/core';
|
|
3
|
+
import { StateStore, StateModel, VisibilityCondition, VisibilityContext, ActionHandler, ResolvedAction, ActionBinding, ActionConfirm, ValidationFunction, ValidationResult, ValidationConfig, Catalog, InferCatalogComponents, InferComponentProps, InferCatalogActions, InferActionParams, UIElement, SchemaDefinition, Spec, ComputedFunction, DirectiveDefinition, FlatElement } from '@json-render/core';
|
|
4
4
|
export { Spec, StateModel, StateStore, createStateStore } from '@json-render/core';
|
|
5
5
|
export { ElementTreeSchema, ElementTreeSpec, SolidSchema, SolidSpec, elementTreeSchema, schema } from './schema.js';
|
|
6
6
|
|
|
@@ -278,6 +278,8 @@ interface JSONUIProviderProps {
|
|
|
278
278
|
validationFunctions?: Record<string, (value: unknown, args?: Record<string, unknown>) => boolean>;
|
|
279
279
|
/** Named functions for `$computed` expressions in props */
|
|
280
280
|
functions?: Record<string, ComputedFunction>;
|
|
281
|
+
/** Custom directives for user-defined `$`-prefixed dynamic values */
|
|
282
|
+
directives?: DirectiveDefinition[];
|
|
281
283
|
/** Callback when state changes (uncontrolled mode) */
|
|
282
284
|
onStateChange?: (changes: Array<{
|
|
283
285
|
path: string;
|
|
@@ -366,6 +368,8 @@ interface CreateRendererProps {
|
|
|
366
368
|
}>) => void;
|
|
367
369
|
/** Named functions for `$computed` expressions in props */
|
|
368
370
|
functions?: Record<string, ComputedFunction>;
|
|
371
|
+
/** Custom directives for user-defined `$`-prefixed dynamic values */
|
|
372
|
+
directives?: DirectiveDefinition[];
|
|
369
373
|
/** Whether the spec is currently loading/streaming */
|
|
370
374
|
loading?: boolean;
|
|
371
375
|
/** Fallback component for unknown types */
|