@devframes/json-render 0.9.0-beta.3 → 0.9.0-beta.7
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
CHANGED
|
@@ -172,6 +172,7 @@ declare const SelectPropsSchema: z.ZodObject<{
|
|
|
172
172
|
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
173
173
|
disabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
174
174
|
searchable: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
175
|
+
native: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
175
176
|
}, z.core.$strip>;
|
|
176
177
|
/**
|
|
177
178
|
* Map of base-catalog component name → Zod prop schema. The keys are the
|
|
@@ -349,6 +350,7 @@ declare const basePropSchemas: {
|
|
|
349
350
|
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
350
351
|
disabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
351
352
|
searchable: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
353
|
+
native: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodIntersection<z.ZodObject<{}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
352
354
|
}, z.core.$strip>;
|
|
353
355
|
};
|
|
354
356
|
/** Canonical base-catalog component name. */
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-CJ8aJJLZ.mjs";
|
|
2
2
|
import { defineCatalog, defineSchema } from "@json-render/core";
|
|
3
3
|
//#region src/catalog.ts
|
|
4
4
|
/**
|
|
@@ -42,7 +42,7 @@ const componentDescriptions = {
|
|
|
42
42
|
Tree: "Recursive object/array viewer with expandable nodes.",
|
|
43
43
|
Tabs: "Tabbed container; each child renders under the positionally-matching tab.",
|
|
44
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."
|
|
45
|
+
Select: "Single-select dropdown bound to a state value, with optional search or a native `<select>` fallback."
|
|
46
46
|
};
|
|
47
47
|
/**
|
|
48
48
|
* The Devframes base catalog (catalog v1): the seventeen canonical components
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as basePropSchemas, t as JSON_RENDER_INDEX_KEY } from "../view-index-
|
|
1
|
+
import { b as basePropSchemas, t as JSON_RENDER_INDEX_KEY } from "../view-index-CJ8aJJLZ.mjs";
|
|
2
2
|
import { createSharedState } from "devframe/utils/shared-state";
|
|
3
3
|
import { colors } from "devframe/utils/colors";
|
|
4
4
|
import { defineDiagnostics } from "nostics";
|
|
@@ -182,7 +182,8 @@ const SelectPropsSchema = z.object({
|
|
|
182
182
|
placeholder: str.optional(),
|
|
183
183
|
label: str.optional(),
|
|
184
184
|
disabled: bool.optional(),
|
|
185
|
-
searchable: bool.optional()
|
|
185
|
+
searchable: bool.optional(),
|
|
186
|
+
native: bool.optional()
|
|
186
187
|
});
|
|
187
188
|
/**
|
|
188
189
|
* Map of base-catalog component name → Zod prop schema. The keys are the
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devframes/json-render",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.9.0-beta.
|
|
4
|
+
"version": "0.9.0-beta.7",
|
|
5
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",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@devframes/hub": "0.9.0-beta.
|
|
34
|
-
"devframe": "0.9.0-beta.
|
|
33
|
+
"@devframes/hub": "0.9.0-beta.7",
|
|
34
|
+
"devframe": "0.9.0-beta.7"
|
|
35
35
|
},
|
|
36
36
|
"peerDependenciesMeta": {
|
|
37
37
|
"@devframes/hub": {
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/node": "^26.2.0",
|
|
48
48
|
"tsdown": "^0.22.14",
|
|
49
|
-
"@devframes/hub": "0.9.0-beta.
|
|
50
|
-
"devframe": "0.9.0-beta.
|
|
49
|
+
"@devframes/hub": "0.9.0-beta.7",
|
|
50
|
+
"devframe": "0.9.0-beta.7"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"build": "tsdown",
|