@lotics/app-sdk 0.133.2 → 0.133.4

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/index.js CHANGED
@@ -11681,6 +11681,7 @@ function readFiles(v) {
11681
11681
  const filename = f.filename;
11682
11682
  const mime = f.mime_type;
11683
11683
  const thumb = f.thumbnail_url;
11684
+ const placeholder = Reflect.get(f, "placeholder");
11684
11685
  const size2 = f.size;
11685
11686
  const created_at = f.created_at;
11686
11687
  const template = f.document_template_id;
@@ -11691,6 +11692,7 @@ function readFiles(v) {
11691
11692
  mime_type: typeof mime === "string" ? mime : "",
11692
11693
  url,
11693
11694
  thumbnail_url: typeof thumb === "string" ? thumb : void 0,
11695
+ ...typeof placeholder === "string" ? { placeholder } : {},
11694
11696
  size: typeof size2 === "number" ? size2 : void 0,
11695
11697
  created_at: typeof created_at === "string" ? created_at : void 0,
11696
11698
  document_template_id: typeof template === "string" ? template : void 0,
@@ -12,6 +12,8 @@ export interface AppFile {
12
12
  mime_type: string;
13
13
  url: string;
14
14
  thumbnail_url?: string;
15
+ /** An image's blurred preview (a base64 ThumbHash), drawn while `url` loads; absent where none was kept. */
16
+ placeholder?: string;
15
17
  /** Bytes; absent on older files — sort by the raw number, format at display. */
16
18
  size?: number | null;
17
19
  /** ISO upload timestamp. */
@@ -60,7 +62,7 @@ export interface ExportCall {
60
62
  * tab `sheet` — or a template the query declares under `templates`, by its name there.
61
63
  */
62
64
  export type ExportFile = { kind: "workbook"; language: ReportLanguage; sheet: string; columns: ReportColumn[]; } | { kind: "template"; template: string; };
63
- export type ExportNarrowing = { status?: string[] | undefined; filters?: Record<string, { kind: "ids"; ids: string[]; unset?: true | undefined; } | { kind: "members"; mine: boolean; ids: string[]; unset?: true | undefined; } | { kind: "dates"; from: string | null; to: string | null; unset?: true | undefined; } | { kind: "yes_no"; value: boolean; } | { kind: "number"; min: number | null; max: number | null; unit?: string | undefined; } | { kind: "bands"; bands: { min: number | null; max: number | null; }[]; } | null> | undefined; search?: string | undefined; overdue?: true | undefined; waiting?: boolean | undefined; tab?: string | undefined; period?: { from: string; to: string; } | undefined; window?: { from: string; to: string; } | undefined; sort?: { field: string; dir: "asc" | "desc"; } | undefined; group?: string | null | undefined; folder?: string | undefined; row?: string | undefined; per?: string | undefined; };
65
+ export type ExportNarrowing = { status?: string[] | undefined; filters?: Record<string, { kind: "ids"; ids: string[]; unset?: true | undefined; } | { kind: "members"; mine: boolean; ids: string[]; unset?: true | undefined; } | { kind: "dates"; from: string | null; to: string | null; unset?: true | undefined; } | { kind: "yes_no"; value: boolean; } | { kind: "number"; min: number | null; max: number | null; unit?: string | undefined; } | { kind: "any_check"; } | { kind: "bands"; bands: { min: number | null; max: number | null; }[]; } | null> | undefined; search?: string | undefined; overdue?: true | undefined; waiting?: boolean | undefined; tab?: string | undefined; period?: { from: string; to: string; } | undefined; window?: { from: string; to: string; } | undefined; sort?: { field: string; dir: "asc" | "desc"; } | undefined; group?: string | null | undefined; folder?: string | undefined; row?: string | undefined; per?: string | undefined; };
64
66
  /**
65
67
  * What an export states of its rows beside them: the page's title, one line per thing narrowing them, and the
66
68
  * figures over them as the screen drew them.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lotics/app-sdk",
3
- "version": "0.133.2",
3
+ "version": "0.133.4",
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": {