@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.
@@ -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">, entity: Pick<Entity, "detail_screen"> | undefined, allScreens: Record<string, {
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.74",
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
  },