@lotics/app-sdk 0.124.3 → 0.124.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lotics/app-sdk",
3
- "version": "0.124.3",
3
+ "version": "0.124.5",
4
4
  "description": "The SDK a Lotics custom-code app reads and writes through — typed hooks over the host bridge, cell readers, mount() and AppRouter",
5
5
  "type": "module",
6
6
  "exports": {
package/dist/members.d.ts DELETED
@@ -1,31 +0,0 @@
1
- /**
2
- * A member, in the one shape a `select_member` cell and the `useMembers`
3
- * roster both return. `email`, `image`, `groups`, `role` and `joined` reach
4
- * only an authenticated member of the org; a public visitor sees `id`, `name`
5
- * and `archived`. Absent is not empty: `image: null` is "no photo", a missing
6
- * `image` is "not told".
7
- */
8
- export interface ResolvedMember {
9
- id: string;
10
- /** `null` for an id outside the org (a removed member). */
11
- name: string | null;
12
- email?: string | null;
13
- /** Presigned; `null` without a photo. */
14
- image?: string | null;
15
- /** Group names — the platform's "department"; `[]` when in none. */
16
- groups?: string[];
17
- /**
18
- * The organization PERMISSION level, not a job title — "who is this person"
19
- * is `groups`. Raw: translate it yourself.
20
- */
21
- role?: "owner" | "admin" | "member";
22
- /** ISO timestamp of joining the organization. */
23
- joined?: string;
24
- /**
25
- * `true` for a member who has left; never `false`. The roster never returns
26
- * one, since a departed member cannot be assigned.
27
- */
28
- archived?: true;
29
- }
30
- /** `[]` for an empty or malformed cell; malformed entries are dropped. */
31
- export declare function readMembers(value: unknown): ResolvedMember[];
package/dist/select.d.ts DELETED
@@ -1,24 +0,0 @@
1
- /** The server resolves each `select` cell to `ResolvedOption[]` before the app sees it. */
2
- export interface ResolvedOption {
3
- key: string;
4
- /** The key, for an option deleted after the cell was written. */
5
- label: string;
6
- /**
7
- * A palette token (`"blue"`), from `useFieldOptions` only — a cell carries
8
- * key and label.
9
- */
10
- color?: string;
11
- /** A brand or icon mark, from `useFieldOptions` only. */
12
- mark?: {
13
- kind: "brand";
14
- name: string;
15
- } | {
16
- kind: "icon";
17
- name: string;
18
- };
19
- }
20
- /**
21
- * `[]` for an empty or malformed cell; a bare string (options unresolved
22
- * server-side) becomes `{ key, label: key }`; malformed entries are dropped.
23
- */
24
- export declare function readSelect(value: unknown): ResolvedOption[];