@declarion/react 0.1.74 → 0.1.76
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/api/batch.d.ts +22 -0
- package/dist-lib/components/fields/cells/factories/markdownToPlainText.d.ts +16 -0
- package/dist-lib/components/fields/cells/registry.d.ts +3 -2
- package/dist-lib/components/file-widgets/helpers.d.ts +1 -0
- package/dist-lib/components/primitives/HoverCard.d.ts +15 -0
- package/dist-lib/components/primitives/index.d.ts +2 -0
- package/dist-lib/declarion-react.css +1 -1
- package/dist-lib/index.d.ts +2 -0
- package/dist-lib/index.js +2947 -2664
- package/dist-lib/index.js.map +1 -1
- package/dist-lib/types/api.d.ts +7 -0
- package/dist-lib/types/schema.d.ts +1 -1
- package/package.json +4 -1
package/dist-lib/types/api.d.ts
CHANGED
|
@@ -39,6 +39,13 @@ export interface Tenant {
|
|
|
39
39
|
name: string;
|
|
40
40
|
role: string;
|
|
41
41
|
env?: TenantEnv;
|
|
42
|
+
/**
|
|
43
|
+
* Whether the caller has a `tenant_users` row for this tenant. Always
|
|
44
|
+
* true for non-superadmins. For superadmins, `auth.list_tenants` also
|
|
45
|
+
* returns non-membership tenants reachable via cross-tenant authority;
|
|
46
|
+
* the switcher splits them into a separate "All tenants" section.
|
|
47
|
+
*/
|
|
48
|
+
is_member?: boolean;
|
|
42
49
|
}
|
|
43
50
|
export interface AuthUser {
|
|
44
51
|
id: string;
|
|
@@ -274,7 +274,7 @@ export declare function pkValuePartsToId(values: string[]): string;
|
|
|
274
274
|
export declare function pkValuesToId(pkValues: PkValues): string;
|
|
275
275
|
export declare function pkValuesToDetailId(entity: Entity, pkValues: PkValues): string;
|
|
276
276
|
export declare function pkValuesFromId(id: string, expectedCount: number): string[] | null;
|
|
277
|
-
export declare function resolveDetailRoute(list: Pick<Screen, "detail_screen"
|
|
277
|
+
export declare function resolveDetailRoute(list: Pick<Screen, "detail_screen"> | undefined, entity: Pick<Entity, "detail_screen"> | undefined, allScreens: Record<string, {
|
|
278
278
|
route?: string;
|
|
279
279
|
}> | undefined): string | null;
|
|
280
280
|
export declare function buildDetailHrefFromId(list: Pick<Screen, "detail_screen">, id: string, entity: Pick<Entity, "detail_screen"> | undefined, allScreens: Record<string, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@declarion/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.76",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "React SDK for Declarion, the schema-driven business apps platform.",
|
|
@@ -51,14 +51,17 @@
|
|
|
51
51
|
"class-variance-authority": "^0.7.0",
|
|
52
52
|
"clsx": "^2.1.0",
|
|
53
53
|
"date-fns": "^4.1.0",
|
|
54
|
+
"mdast-util-to-string": "^4.0.0",
|
|
54
55
|
"react-markdown": "^10.1.0",
|
|
55
56
|
"react-router-dom": "^7.14.2",
|
|
56
57
|
"react-textarea-autosize": "^8.5.9",
|
|
57
58
|
"recharts": "^3.8.1",
|
|
58
59
|
"remark-breaks": "^4.0.0",
|
|
59
60
|
"remark-gfm": "^4.0.1",
|
|
61
|
+
"remark-parse": "^11.0.0",
|
|
60
62
|
"sonner": "^2.0.7",
|
|
61
63
|
"tailwind-merge": "^3.5.0",
|
|
64
|
+
"unified": "^11.0.5",
|
|
62
65
|
"vanilla-jsoneditor": "^3.11.0",
|
|
63
66
|
"zustand": "^5.0.0"
|
|
64
67
|
},
|