@stll/workspace-ui 0.12.6 → 0.12.7

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +26 -0
  2. package/package.json +4 -5
package/dist/types.d.ts CHANGED
@@ -1,6 +1,25 @@
1
1
  import { OptionColor, OptionColor as OptionColor$1 } from "@stll/ui/option-color";
2
2
  import { KanbanColumnBand } from "@stll/ui/kanban";
3
3
  //#region src/types.d.ts
4
+ /**
5
+ * Why a document could not be converted. Mirrors the API contract type; the
6
+ * web app asserts both declarations stay equal.
7
+ */
8
+ export type FileConversionRefusal = {
9
+ kind: "unsupported_encoding";
10
+ encoding: string;
11
+ } | {
12
+ kind: "unsupported_reference";
13
+ format: string;
14
+ element: string;
15
+ attribute: string;
16
+ } | {
17
+ kind: "unsupported_field";
18
+ fieldType: string;
19
+ } | {
20
+ kind: "legacy_format";
21
+ replacementExtension: ".xlsx" | ".pptx";
22
+ };
4
23
  export type FieldContent = {
5
24
  type: "error";
6
25
  version: 1;
@@ -32,6 +51,13 @@ export type FieldContent = {
32
51
  encrypted: boolean;
33
52
  sha256Hex: string;
34
53
  pdfFileId: string | null;
54
+ pdfDerivative?: {
55
+ status: "not-required" | "pending" | "ready";
56
+ } | {
57
+ status: "failed";
58
+ reason?: "enqueue" | "processing" | "too-large" | undefined;
59
+ conversionRefusal?: FileConversionRefusal | undefined;
60
+ } | undefined;
35
61
  } | {
36
62
  type: "date";
37
63
  version: 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stll/workspace-ui",
3
- "version": "0.12.6",
3
+ "version": "0.12.7",
4
4
  "description": "Reusable workspace presentation components and view helpers for Stella.",
5
5
  "keywords": [
6
6
  "calculations",
@@ -107,15 +107,14 @@
107
107
  "typecheck": "bun check --no-pretty --all --project=tsconfig.json",
108
108
  "lint": "cd ../.. && bun --bun oxlint -c oxlint.config.ts --report-unused-disable-directives-severity=error --type-aware --type-check packages/workspace-ui",
109
109
  "lint:fix": "cd ../.. && bun --bun oxlint -c oxlint.config.ts --type-aware --fix packages/workspace-ui",
110
- "format": "bun ../../scripts/run-oxfmt.ts .",
111
110
  "prepack": "bun run build",
112
111
  "test:property": "bun test --preload @stll/property-testing/preload $(grep -rlE 'fc\\.assert|assertProperty' src --include='*.test.ts')"
113
112
  },
114
113
  "dependencies": {
115
- "@stll/calculations": "^0.1.2",
114
+ "@stll/calculations": "^0.1.3",
116
115
  "@stll/conditions": "^0.4.0",
117
116
  "@stll/money": "^0.3.1",
118
- "@stll/ui": "^0.49.0",
117
+ "@stll/ui": "^0.50.0",
119
118
  "better-result": "3.0.1",
120
119
  "temporal-polyfill": "1.0.5",
121
120
  "use-intl": "4.14.9"
@@ -129,7 +128,7 @@
129
128
  "@tanstack/react-table": "9.2.6",
130
129
  "@types/react": "^19.3.0",
131
130
  "@types/react-dom": "^19.3.0",
132
- "bun-types": "1.4.3",
131
+ "bun-types": "1.4.4",
133
132
  "fast-check": "^4.10.2",
134
133
  "react": "^19.3.0",
135
134
  "react-dom": "^19.3.0",