@object-ui/components 11.2.0 → 11.3.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/CHANGELOG.md +53 -0
- package/dist/context/gridFieldAuthoring.d.ts +33 -0
- package/dist/custom/mobile-dialog-content.d.ts +7 -0
- package/dist/index.css +32 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3130 -2812
- package/dist/index.umd.cjs +5 -5
- package/dist/renderers/basic/html-elements.d.ts +23 -0
- package/dist/renderers/layout/react-page.d.ts +33 -0
- package/package.json +17 -16
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ObjectUI
|
|
3
|
+
* Copyright (c) 2024-present ObjectStack Inc.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*
|
|
8
|
+
* Safe native HTML element passthrough renderers (ADR: kind:'html').
|
|
9
|
+
*
|
|
10
|
+
* A `kind:'html'` page is authored as a constrained JSX/Tailwind string that is
|
|
11
|
+
* PARSED (never executed) into the SDUI tree. For that tier to live up to its
|
|
12
|
+
* name, the everyday HTML tags an author reaches for — headings, paragraphs,
|
|
13
|
+
* lists, links, images, emphasis — must each resolve to a renderer (otherwise
|
|
14
|
+
* the parser flags them `unknown-component`). div / span / table / code / label
|
|
15
|
+
* and the semantic sectioning tags are registered elsewhere; this module fills
|
|
16
|
+
* in the rest of the safe flow/inline set.
|
|
17
|
+
*
|
|
18
|
+
* Safety: these render real DOM, but the html tier never executes JS, so props
|
|
19
|
+
* are static literals from the parser. As defense-in-depth the passthrough
|
|
20
|
+
* still strips event handlers (`on*`) and `dangerouslySetInnerHTML`, and
|
|
21
|
+
* neutralizes `javascript:`/`data:` URLs on `<a href>`.
|
|
22
|
+
*/
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ObjectUI
|
|
3
|
+
* Copyright (c) 2024-present ObjectStack Inc.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*
|
|
8
|
+
* `kind:'react'` page renderer — the TRUSTED execution tier.
|
|
9
|
+
*
|
|
10
|
+
* Unlike `kind:'html'` (constrained JSX parsed, never executed), a react page's
|
|
11
|
+
* `source` is real JavaScript/JSX: hooks, event handlers, `.map`, arbitrary
|
|
12
|
+
* expressions. It is transpiled (Sucrase) and evaluated directly in the main
|
|
13
|
+
* React tree by `@object-ui/react-runtime` — NO sandbox. The platform trusts
|
|
14
|
+
* its (reviewed, draft-gated) page authors, so the host capability
|
|
15
|
+
* `CAP_REACT_PAGES` defaults ON; a deployment that does not trust its authors
|
|
16
|
+
* turns it OFF server-side (the runtime injects the disable global when
|
|
17
|
+
* `OS_PAGE_REACT=off`). The transpiler is lazy-loaded — fetched in a
|
|
18
|
+
* separate chunk only when a react page actually renders with the capability on.
|
|
19
|
+
*
|
|
20
|
+
* Scope injected into the source:
|
|
21
|
+
* - `React` — so authors can call hooks.
|
|
22
|
+
* - the PUBLIC data blocks — `<ObjectTable>`, `<ObjectForm>`, charts, metrics…
|
|
23
|
+
* each as a prop-driven wrapper that renders via SchemaRenderer. Layout is
|
|
24
|
+
* left to plain HTML + Tailwind (React's strength); only the data blocks
|
|
25
|
+
* that can't be expressed in HTML are injected.
|
|
26
|
+
* - `Block` — escape hatch: `<Block type="object-table" .../>`.
|
|
27
|
+
* - `useAdapter` — live data hook: query/create/update objects.
|
|
28
|
+
* - `data` / `variables` — page data + local variables, for convenience.
|
|
29
|
+
*/
|
|
30
|
+
import * as React from 'react';
|
|
31
|
+
export declare const ReactKindPage: React.FC<{
|
|
32
|
+
schema: any;
|
|
33
|
+
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@object-ui/components",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Standard UI component library for Object UI, built with Shadcn UI + Tailwind CSS",
|
|
@@ -59,21 +59,22 @@
|
|
|
59
59
|
"date-fns": "^4.4.0",
|
|
60
60
|
"embla-carousel-react": "^8.6.0",
|
|
61
61
|
"input-otp": "^1.4.2",
|
|
62
|
-
"lucide-react": "^1.
|
|
62
|
+
"lucide-react": "^1.22.0",
|
|
63
63
|
"next-themes": "^0.4.6",
|
|
64
64
|
"react-day-picker": "^10.0.1",
|
|
65
65
|
"react-hook-form": "^7.80.0",
|
|
66
|
-
"react-resizable-panels": "^4.
|
|
67
|
-
"recharts": "3.
|
|
66
|
+
"react-resizable-panels": "^4.12.0",
|
|
67
|
+
"recharts": "3.9.0",
|
|
68
68
|
"sonner": "^2.0.7",
|
|
69
69
|
"tailwind-merge": "^3.6.0",
|
|
70
70
|
"tailwindcss-animate": "^1.0.7",
|
|
71
71
|
"vaul": "^1.1.2",
|
|
72
|
-
"@object-ui/core": "11.
|
|
73
|
-
"@object-ui/
|
|
74
|
-
"@object-ui/
|
|
75
|
-
"@object-ui/react": "11.
|
|
76
|
-
"@object-ui/
|
|
72
|
+
"@object-ui/core": "11.3.0",
|
|
73
|
+
"@object-ui/i18n": "11.3.0",
|
|
74
|
+
"@object-ui/react": "11.3.0",
|
|
75
|
+
"@object-ui/react-runtime": "11.3.0",
|
|
76
|
+
"@object-ui/sdui-parser": "11.3.0",
|
|
77
|
+
"@object-ui/types": "11.3.0"
|
|
77
78
|
},
|
|
78
79
|
"peerDependencies": {
|
|
79
80
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -84,14 +85,14 @@
|
|
|
84
85
|
"@tailwindcss/postcss": "^4.3.1",
|
|
85
86
|
"@types/react": "19.2.17",
|
|
86
87
|
"@types/react-dom": "19.2.3",
|
|
87
|
-
"@vitejs/plugin-react": "^6.0.
|
|
88
|
-
"autoprefixer": "^10.5.
|
|
89
|
-
"postcss": "^8.5.
|
|
90
|
-
"shadcn": "^4.
|
|
91
|
-
"tailwindcss": "^4.3.
|
|
88
|
+
"@vitejs/plugin-react": "^6.0.3",
|
|
89
|
+
"autoprefixer": "^10.5.2",
|
|
90
|
+
"postcss": "^8.5.16",
|
|
91
|
+
"shadcn": "^4.12.0",
|
|
92
|
+
"tailwindcss": "^4.3.2",
|
|
92
93
|
"typescript": "^6.0.3",
|
|
93
|
-
"vite": "^8.0
|
|
94
|
-
"vite-plugin-dts": "^5.0.
|
|
94
|
+
"vite": "^8.1.0",
|
|
95
|
+
"vite-plugin-dts": "^5.0.3"
|
|
95
96
|
},
|
|
96
97
|
"keywords": [
|
|
97
98
|
"objectui",
|