@devframes/json-render 0.8.2 → 0.9.0-beta.1
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/hub.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { i as JsonRenderViewRef, n as JsonRenderView } from "./types-CC2-FD2H.mjs";
|
|
2
|
+
import { DockRenderer, DockRendererMountOptions } from "@devframes/hub/client";
|
|
2
3
|
import { DevframeDockEntryBase } from "@devframes/hub/types";
|
|
3
4
|
//#region src/hub.d.ts
|
|
4
5
|
/**
|
|
@@ -17,6 +18,23 @@ declare module '@devframes/hub/types' {
|
|
|
17
18
|
'json-render': DevframeJsonRenderDockEntry;
|
|
18
19
|
}
|
|
19
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* The mount options a hub viewer hands a json-render dock renderer — the
|
|
23
|
+
* hub's `DockRendererMountOptions` narrowed to the `'json-render'` entry.
|
|
24
|
+
* This protocol package owns the renderer contract so every frontend —
|
|
25
|
+
* `@devframes/json-render-ui`, a community renderer, a host page's own —
|
|
26
|
+
* implements one shared shape instead of re-declaring it.
|
|
27
|
+
*/
|
|
28
|
+
type JsonRenderDockMountOptions = DockRendererMountOptions<DevframeJsonRenderDockEntry>;
|
|
29
|
+
/**
|
|
30
|
+
* The renderer contract for `'json-render'` docks: a hub `DockRenderer`
|
|
31
|
+
* narrowed to {@link DevframeJsonRenderDockEntry}. Implement it to replace
|
|
32
|
+
* the reference frontend — register the implementation locally
|
|
33
|
+
* (`createDevframeClientHost({ renderers })`) or ship it as a prebuilt
|
|
34
|
+
* module registered through the hub's renderer manifest
|
|
35
|
+
* (`initHub({ renderers })`).
|
|
36
|
+
*/
|
|
37
|
+
type JsonRenderDockRenderer = DockRenderer<DevframeJsonRenderDockEntry>;
|
|
20
38
|
/**
|
|
21
39
|
* Build a `json-render` dock entry from a {@link JsonRenderView} and the dock
|
|
22
40
|
* metadata (id, title, icon, …). Projects the view down to its serializable
|
|
@@ -24,4 +42,4 @@ declare module '@devframes/hub/types' {
|
|
|
24
42
|
*/
|
|
25
43
|
declare function toJsonRenderDockEntry(view: JsonRenderView, meta: Omit<DevframeJsonRenderDockEntry, 'type' | 'view'>): DevframeJsonRenderDockEntry;
|
|
26
44
|
//#endregion
|
|
27
|
-
export { DevframeJsonRenderDockEntry, toJsonRenderDockEntry };
|
|
45
|
+
export { DevframeJsonRenderDockEntry, JsonRenderDockMountOptions, JsonRenderDockRenderer, toJsonRenderDockEntry };
|
package/dist/index.d.mts
CHANGED
|
@@ -133,9 +133,50 @@ declare const TreePropsSchema: z.ZodObject<{
|
|
|
133
133
|
data: z.ZodOptional<z.ZodUnknown>;
|
|
134
134
|
defaultExpanded: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
135
135
|
}, z.core.$strip>;
|
|
136
|
+
declare const TabsPropsSchema: z.ZodObject<{
|
|
137
|
+
tabs: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
138
|
+
value: z.ZodString;
|
|
139
|
+
label: z.ZodString;
|
|
140
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
141
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
142
|
+
badgeVariant: z.ZodOptional<z.ZodEnum<{
|
|
143
|
+
success: "success";
|
|
144
|
+
default: "default";
|
|
145
|
+
warning: "warning";
|
|
146
|
+
danger: "danger";
|
|
147
|
+
info: "info";
|
|
148
|
+
}>>;
|
|
149
|
+
}, z.core.$loose>>, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
150
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
151
|
+
defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
152
|
+
orientation: z.ZodOptional<z.ZodEnum<{
|
|
153
|
+
horizontal: "horizontal";
|
|
154
|
+
vertical: "vertical";
|
|
155
|
+
}>>;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
declare const LinkPropsSchema: z.ZodObject<{
|
|
158
|
+
href: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
159
|
+
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
160
|
+
icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
161
|
+
external: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
162
|
+
}, z.core.$strip>;
|
|
163
|
+
declare const SelectPropsSchema: z.ZodObject<{
|
|
164
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
165
|
+
options: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
166
|
+
value: z.ZodString;
|
|
167
|
+
label: z.ZodOptional<z.ZodString>;
|
|
168
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
169
|
+
description: z.ZodOptional<z.ZodString>;
|
|
170
|
+
}, z.core.$loose>]>>, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
171
|
+
placeholder: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
172
|
+
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
173
|
+
disabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
174
|
+
searchable: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
175
|
+
}, z.core.$strip>;
|
|
136
176
|
/**
|
|
137
177
|
* Map of base-catalog component name → Zod prop schema. The keys are the
|
|
138
|
-
* canonical component set (catalog v1
|
|
178
|
+
* canonical component set (catalog v1: the original fourteen plus the
|
|
179
|
+
* additive Tabs/Link/Select).
|
|
139
180
|
*/
|
|
140
181
|
declare const basePropSchemas: {
|
|
141
182
|
readonly Stack: z.ZodObject<{
|
|
@@ -269,6 +310,46 @@ declare const basePropSchemas: {
|
|
|
269
310
|
data: z.ZodOptional<z.ZodUnknown>;
|
|
270
311
|
defaultExpanded: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
271
312
|
}, z.core.$strip>;
|
|
313
|
+
readonly Tabs: z.ZodObject<{
|
|
314
|
+
tabs: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
315
|
+
value: z.ZodString;
|
|
316
|
+
label: z.ZodString;
|
|
317
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
318
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
319
|
+
badgeVariant: z.ZodOptional<z.ZodEnum<{
|
|
320
|
+
success: "success";
|
|
321
|
+
default: "default";
|
|
322
|
+
warning: "warning";
|
|
323
|
+
danger: "danger";
|
|
324
|
+
info: "info";
|
|
325
|
+
}>>;
|
|
326
|
+
}, z.core.$loose>>, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
327
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
328
|
+
defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
329
|
+
orientation: z.ZodOptional<z.ZodEnum<{
|
|
330
|
+
horizontal: "horizontal";
|
|
331
|
+
vertical: "vertical";
|
|
332
|
+
}>>;
|
|
333
|
+
}, z.core.$strip>;
|
|
334
|
+
readonly Link: z.ZodObject<{
|
|
335
|
+
href: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
336
|
+
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
337
|
+
icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
338
|
+
external: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
339
|
+
}, z.core.$strip>;
|
|
340
|
+
readonly Select: z.ZodObject<{
|
|
341
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
342
|
+
options: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
343
|
+
value: z.ZodString;
|
|
344
|
+
label: z.ZodOptional<z.ZodString>;
|
|
345
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
346
|
+
description: z.ZodOptional<z.ZodString>;
|
|
347
|
+
}, z.core.$loose>]>>, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
348
|
+
placeholder: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
349
|
+
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
350
|
+
disabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
351
|
+
searchable: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
352
|
+
}, z.core.$strip>;
|
|
272
353
|
};
|
|
273
354
|
/** Canonical base-catalog component name. */
|
|
274
355
|
type BaseComponentName = keyof typeof basePropSchemas;
|
|
@@ -303,7 +384,7 @@ declare const baseSchema: import("@json-render/core").Schema<{
|
|
|
303
384
|
}>;
|
|
304
385
|
}>;
|
|
305
386
|
/**
|
|
306
|
-
* The Devframes base catalog (catalog v1): the
|
|
387
|
+
* The Devframes base catalog (catalog v1): the seventeen canonical components
|
|
307
388
|
* with their Devframes-authored Zod prop schemas and descriptions, and an
|
|
308
389
|
* empty action set (actions are dispatched dynamically via the bridge, they
|
|
309
390
|
* are not declared here). Reference frontend libraries implement this set.
|
|
@@ -364,4 +445,4 @@ interface JsonRenderIndexEntry {
|
|
|
364
445
|
/** The shape of the view-index shared state: entries keyed by `stateKey`. */
|
|
365
446
|
type JsonRenderIndex = Record<string, JsonRenderIndexEntry>;
|
|
366
447
|
//#endregion
|
|
367
|
-
export { BadgePropsSchema, type BaseComponentName, ButtonPropsSchema, CardPropsSchema, type Catalog, CodeBlockPropsSchema, DataTablePropsSchema, type DevframeJsonRenderSpec, DividerPropsSchema, IconPropsSchema, type InferComponentProps, JSON_RENDER_INDEX_KEY, type JsonRenderIndex, type JsonRenderIndexEntry, type JsonRenderView, type JsonRenderViewInlineRef, type JsonRenderViewRef, type JsonRenderViewStateRef, KeyValueTablePropsSchema, ProgressPropsSchema, type Spec, StackPropsSchema, type StateModel, type StateStore, SwitchPropsSchema, TextInputPropsSchema, TextPropsSchema, TreePropsSchema, type UIElement, baseCatalog, baseComponentNames, basePropSchemas, baseSchema };
|
|
448
|
+
export { BadgePropsSchema, type BaseComponentName, ButtonPropsSchema, CardPropsSchema, type Catalog, CodeBlockPropsSchema, DataTablePropsSchema, type DevframeJsonRenderSpec, DividerPropsSchema, IconPropsSchema, type InferComponentProps, JSON_RENDER_INDEX_KEY, type JsonRenderIndex, type JsonRenderIndexEntry, type JsonRenderView, type JsonRenderViewInlineRef, type JsonRenderViewRef, type JsonRenderViewStateRef, KeyValueTablePropsSchema, LinkPropsSchema, ProgressPropsSchema, SelectPropsSchema, type Spec, StackPropsSchema, type StateModel, type StateStore, SwitchPropsSchema, TabsPropsSchema, TextInputPropsSchema, TextPropsSchema, TreePropsSchema, type UIElement, baseCatalog, baseComponentNames, basePropSchemas, baseSchema };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as TextPropsSchema, a as CodeBlockPropsSchema, b as basePropSchemas, c as IconPropsSchema, d as ProgressPropsSchema, f as SelectPropsSchema, g as TextInputPropsSchema, h as TabsPropsSchema, i as CardPropsSchema, l as KeyValueTablePropsSchema, m as SwitchPropsSchema, n as BadgePropsSchema, o as DataTablePropsSchema, p as StackPropsSchema, r as ButtonPropsSchema, s as DividerPropsSchema, t as JSON_RENDER_INDEX_KEY, u as LinkPropsSchema, v as TreePropsSchema, y as baseComponentNames } from "./view-index-CUg7TaB4.mjs";
|
|
2
2
|
import { defineCatalog, defineSchema } from "@json-render/core";
|
|
3
3
|
//#region src/catalog.ts
|
|
4
4
|
/**
|
|
@@ -39,10 +39,13 @@ const componentDescriptions = {
|
|
|
39
39
|
DataTable: "Tabular data with columns, rows and optional scroll height.",
|
|
40
40
|
CodeBlock: "Preformatted code block with a filename and language label.",
|
|
41
41
|
Progress: "Determinate progress bar.",
|
|
42
|
-
Tree: "Recursive object/array viewer with expandable nodes."
|
|
42
|
+
Tree: "Recursive object/array viewer with expandable nodes.",
|
|
43
|
+
Tabs: "Tabbed container; each child renders under the positionally-matching tab.",
|
|
44
|
+
Link: "Hyperlink to a safe-scheme URL with an optional icon.",
|
|
45
|
+
Select: "Single-select dropdown bound to a state value, with optional search."
|
|
43
46
|
};
|
|
44
47
|
/**
|
|
45
|
-
* The Devframes base catalog (catalog v1): the
|
|
48
|
+
* The Devframes base catalog (catalog v1): the seventeen canonical components
|
|
46
49
|
* with their Devframes-authored Zod prop schemas and descriptions, and an
|
|
47
50
|
* empty action set (actions are dispatched dynamically via the bridge, they
|
|
48
51
|
* are not declared here). Reference frontend libraries implement this set.
|
|
@@ -55,4 +58,4 @@ const baseCatalog = defineCatalog(baseSchema, {
|
|
|
55
58
|
actions: {}
|
|
56
59
|
});
|
|
57
60
|
//#endregion
|
|
58
|
-
export { BadgePropsSchema, ButtonPropsSchema, CardPropsSchema, CodeBlockPropsSchema, DataTablePropsSchema, DividerPropsSchema, IconPropsSchema, JSON_RENDER_INDEX_KEY, KeyValueTablePropsSchema, ProgressPropsSchema, StackPropsSchema, SwitchPropsSchema, TextInputPropsSchema, TextPropsSchema, TreePropsSchema, baseCatalog, baseComponentNames, basePropSchemas, baseSchema };
|
|
61
|
+
export { BadgePropsSchema, ButtonPropsSchema, CardPropsSchema, CodeBlockPropsSchema, DataTablePropsSchema, DividerPropsSchema, IconPropsSchema, JSON_RENDER_INDEX_KEY, KeyValueTablePropsSchema, LinkPropsSchema, ProgressPropsSchema, SelectPropsSchema, StackPropsSchema, SwitchPropsSchema, TabsPropsSchema, TextInputPropsSchema, TextPropsSchema, TreePropsSchema, baseCatalog, baseComponentNames, basePropSchemas, baseSchema };
|
package/dist/node/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as JsonRenderView, t as DevframeJsonRenderSpec } from "../types-CC2-FD2H.mjs";
|
|
2
2
|
import { Diagnostic } from "nostics";
|
|
3
|
-
import { DevframeNodeContext, DevframeScopedNodeContext } from "devframe
|
|
3
|
+
import { DevframeNodeContext, DevframeScopedNodeContext } from "devframe";
|
|
4
4
|
//#region src/node/create-view.d.ts
|
|
5
5
|
/** Options for {@link createJsonRenderView}. */
|
|
6
6
|
interface CreateJsonRenderViewOptions {
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as basePropSchemas, t as JSON_RENDER_INDEX_KEY } from "../view-index-CUg7TaB4.mjs";
|
|
2
2
|
import { createSharedState } from "devframe/utils/shared-state";
|
|
3
3
|
import { colors } from "devframe/utils/colors";
|
|
4
4
|
import { defineDiagnostics } from "nostics";
|
|
@@ -147,9 +147,47 @@ const TreePropsSchema = z.object({
|
|
|
147
147
|
data: z.unknown().optional(),
|
|
148
148
|
defaultExpanded: bool.optional()
|
|
149
149
|
});
|
|
150
|
+
const TabsPropsSchema = z.object({
|
|
151
|
+
tabs: scalar(z.array(z.looseObject({
|
|
152
|
+
value: z.string(),
|
|
153
|
+
label: z.string(),
|
|
154
|
+
icon: z.string().optional(),
|
|
155
|
+
badge: z.string().optional(),
|
|
156
|
+
badgeVariant: z.enum([
|
|
157
|
+
"default",
|
|
158
|
+
"info",
|
|
159
|
+
"success",
|
|
160
|
+
"warning",
|
|
161
|
+
"danger"
|
|
162
|
+
]).optional()
|
|
163
|
+
}))).optional(),
|
|
164
|
+
value: str.optional(),
|
|
165
|
+
defaultValue: str.optional(),
|
|
166
|
+
orientation: z.enum(["horizontal", "vertical"]).optional()
|
|
167
|
+
});
|
|
168
|
+
const LinkPropsSchema = z.object({
|
|
169
|
+
href: str.optional(),
|
|
170
|
+
label: str.optional(),
|
|
171
|
+
icon: str.optional(),
|
|
172
|
+
external: bool.optional()
|
|
173
|
+
});
|
|
174
|
+
const SelectPropsSchema = z.object({
|
|
175
|
+
value: str.optional(),
|
|
176
|
+
options: scalar(z.array(z.union([z.string(), z.looseObject({
|
|
177
|
+
value: z.string(),
|
|
178
|
+
label: z.string().optional(),
|
|
179
|
+
icon: z.string().optional(),
|
|
180
|
+
description: z.string().optional()
|
|
181
|
+
})]))).optional(),
|
|
182
|
+
placeholder: str.optional(),
|
|
183
|
+
label: str.optional(),
|
|
184
|
+
disabled: bool.optional(),
|
|
185
|
+
searchable: bool.optional()
|
|
186
|
+
});
|
|
150
187
|
/**
|
|
151
188
|
* Map of base-catalog component name → Zod prop schema. The keys are the
|
|
152
|
-
* canonical component set (catalog v1
|
|
189
|
+
* canonical component set (catalog v1: the original fourteen plus the
|
|
190
|
+
* additive Tabs/Link/Select).
|
|
153
191
|
*/
|
|
154
192
|
const basePropSchemas = {
|
|
155
193
|
Stack: StackPropsSchema,
|
|
@@ -165,7 +203,10 @@ const basePropSchemas = {
|
|
|
165
203
|
DataTable: DataTablePropsSchema,
|
|
166
204
|
CodeBlock: CodeBlockPropsSchema,
|
|
167
205
|
Progress: ProgressPropsSchema,
|
|
168
|
-
Tree: TreePropsSchema
|
|
206
|
+
Tree: TreePropsSchema,
|
|
207
|
+
Tabs: TabsPropsSchema,
|
|
208
|
+
Link: LinkPropsSchema,
|
|
209
|
+
Select: SelectPropsSchema
|
|
169
210
|
};
|
|
170
211
|
/** The ordered list of base-catalog component names (catalog v1). */
|
|
171
212
|
const baseComponentNames = Object.keys(basePropSchemas);
|
|
@@ -183,4 +224,4 @@ const baseComponentNames = Object.keys(basePropSchemas);
|
|
|
183
224
|
*/
|
|
184
225
|
const JSON_RENDER_INDEX_KEY = "devframe:json-render:index";
|
|
185
226
|
//#endregion
|
|
186
|
-
export {
|
|
227
|
+
export { TextPropsSchema as _, CodeBlockPropsSchema as a, basePropSchemas as b, IconPropsSchema as c, ProgressPropsSchema as d, SelectPropsSchema as f, TextInputPropsSchema as g, TabsPropsSchema as h, CardPropsSchema as i, KeyValueTablePropsSchema as l, SwitchPropsSchema as m, BadgePropsSchema as n, DataTablePropsSchema as o, StackPropsSchema as p, ButtonPropsSchema as r, DividerPropsSchema as s, JSON_RENDER_INDEX_KEY as t, LinkPropsSchema as u, TreePropsSchema as v, baseComponentNames as y };
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devframes/json-render",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"description": "
|
|
4
|
+
"version": "0.9.0-beta.1",
|
|
5
|
+
"description": "Protocol layer for describing devframe views as JSON that any renderer can display.",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"homepage": "https://github.com/devframes/devframe#readme",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@devframes/hub": "0.
|
|
34
|
-
"devframe": "0.
|
|
33
|
+
"@devframes/hub": "0.9.0-beta.1",
|
|
34
|
+
"devframe": "0.9.0-beta.1"
|
|
35
35
|
},
|
|
36
36
|
"peerDependenciesMeta": {
|
|
37
37
|
"@devframes/hub": {
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"zod": "^4.4.3"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@types/node": "^26.
|
|
47
|
+
"@types/node": "^26.2.0",
|
|
48
48
|
"tsdown": "^0.22.14",
|
|
49
|
-
"@devframes/hub": "0.
|
|
50
|
-
"devframe": "0.
|
|
49
|
+
"@devframes/hub": "0.9.0-beta.1",
|
|
50
|
+
"devframe": "0.9.0-beta.1"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"build": "tsdown",
|