@declarion/react 0.6.8 → 0.6.10
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-lib/MonacoJson-DVjwsaBK.js +60 -0
- package/dist-lib/components/detail-layout/widgets/JsonDiffWidget.d.ts +2 -0
- package/dist-lib/components/detail-layout/widgets/MonacoJson.d.ts +9 -0
- package/dist-lib/components/detail-layout/widgets/WidgetHost.d.ts +9 -0
- package/dist-lib/components/detail-layout/widgets/builtins.d.ts +1 -0
- package/dist-lib/components/detail-layout/widgets/canonicalizeJson.d.ts +1 -0
- package/dist-lib/components/detail-layout/widgets/monacoBootstrap.d.ts +1 -0
- package/dist-lib/components/detail-layout/widgets/registry.d.ts +14 -0
- package/dist-lib/declarion-react.css +1 -1
- package/dist-lib/index.d.ts +1 -0
- package/dist-lib/index.js +397 -234
- package/dist-lib/types/schema.d.ts +6 -0
- package/package.json +3 -1
|
@@ -398,6 +398,11 @@ export interface ColumnConfig {
|
|
|
398
398
|
export interface TabsConfig {
|
|
399
399
|
items: LayoutNode[];
|
|
400
400
|
}
|
|
401
|
+
export interface WidgetNode {
|
|
402
|
+
type: string;
|
|
403
|
+
inputs?: Record<string, string>;
|
|
404
|
+
options?: Record<string, unknown>;
|
|
405
|
+
}
|
|
401
406
|
export interface LayoutField {
|
|
402
407
|
name: string;
|
|
403
408
|
actions?: Action[];
|
|
@@ -412,6 +417,7 @@ export interface LayoutNode {
|
|
|
412
417
|
properties?: true | string[];
|
|
413
418
|
statuses?: true | string[];
|
|
414
419
|
fields?: LayoutField[];
|
|
420
|
+
widget?: WidgetNode;
|
|
415
421
|
width?: SizeValue;
|
|
416
422
|
height?: SizeValue;
|
|
417
423
|
min_width?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@declarion/react",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.10",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "React SDK for Declarion, the schema-driven business apps platform.",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"@dnd-kit/core": "^6.3.1",
|
|
39
39
|
"@dnd-kit/sortable": "^10.0.0",
|
|
40
40
|
"@dnd-kit/utilities": "^3.2.2",
|
|
41
|
+
"@monaco-editor/react": "^4.7.0",
|
|
41
42
|
"@radix-ui/react-alert-dialog": "^1.1.16",
|
|
42
43
|
"@radix-ui/react-dialog": "^1.1.16",
|
|
43
44
|
"@radix-ui/react-dropdown-menu": "^2.1.17",
|
|
@@ -52,6 +53,7 @@
|
|
|
52
53
|
"clsx": "^2.1.1",
|
|
53
54
|
"date-fns": "^4.4.0",
|
|
54
55
|
"mdast-util-to-string": "^4.0.0",
|
|
56
|
+
"monaco-editor": "^0.55.1",
|
|
55
57
|
"react-markdown": "^10.1.0",
|
|
56
58
|
"react-router-dom": "^7.17.0",
|
|
57
59
|
"react-textarea-autosize": "^8.5.9",
|