@lotics/app-sdk 0.100.0 → 0.100.1

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.
@@ -386,7 +386,7 @@ export interface FieldOptions {
386
386
  /** The source field's display name — e.g. a picker/section label. */
387
387
  label: string;
388
388
  /**
389
- * Every option of the field — `{ key, label, color }`. Includes options not
389
+ * Every option of the field — `{ key, label, color, mark? }`. Includes options not
390
390
  * present in any current row, so a freshly-added option appears in a picker
391
391
  * without an app change, and a removed one drops out.
392
392
  */
@@ -22,6 +22,20 @@ export interface ResolvedOption {
22
22
  * degrades a missing/unknown token to a neutral badge.
23
23
  */
24
24
  color?: string;
25
+ /**
26
+ * The option's own mark, where its field gives one to every option — the
27
+ * channel it IS (`brand`, a `BrandMark` name) or a glyph (`icon`, a kit icon
28
+ * name). Populated by `useFieldOptions` like `color`, absent on a cell. Pass
29
+ * the option to `@lotics/ui`'s `Status`, which draws it in the dot's place and
30
+ * degrades a name its build does not draw to the dot.
31
+ */
32
+ mark?: {
33
+ kind: "brand";
34
+ name: string;
35
+ } | {
36
+ kind: "icon";
37
+ name: string;
38
+ };
25
39
  }
26
40
  /**
27
41
  * Parse a `useQuery` cell value into `ResolvedOption[]`. Returns `[]` for
@@ -77,7 +77,7 @@ rendering with no options; and every key is optional, so the read is through `?.
77
77
  | Property | Meaning |
78
78
  | --- | --- |
79
79
  | `label` | The source field's display name — a ready picker/section label |
80
- | `options` | Every option of the field — `{ key, label, color }` — in field-config order, **including options not present in any current row** |
80
+ | `options` | Every option of the field — `{ key, label, color, mark? }` (the option's own brand or glyph, where the field marks every option) — in field-config order, **including options not present in any current row** |
81
81
  | `byKey(key)` | Resolve one option by key; `undefined` for an unknown key (option removed after the cell was written) |
82
82
 
83
83
  - `color` is a named palette token (e.g. `"blue"`, `"emerald"`). Pass the option straight to
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lotics/app-sdk",
3
- "version": "0.100.0",
3
+ "version": "0.100.1",
4
4
  "description": "Runtime SDK for Lotics custom-code apps \u2014 typed hooks, postMessage bridge, mount entry point",
5
5
  "type": "module",
6
6
  "exports": {