@stll/workspace-ui 0.12.5 → 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.
- package/dist/field-value.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/types.d.ts +26 -0
- package/package.json +4 -5
package/dist/field-value.d.ts
CHANGED
|
@@ -68,5 +68,5 @@ type PendingSkeletonProps = {
|
|
|
68
68
|
};
|
|
69
69
|
export declare const PendingSkeleton: ({ contentType }: PendingSkeletonProps) => import("react").JSX.Element;
|
|
70
70
|
export declare const getSelectPropertyColor: (property: GenericProperty, option: string | null) => import("@stll/ui/option-color").ColorVariants | undefined;
|
|
71
|
-
export declare const getIntClassName: (variant: FieldValueVariant) => "
|
|
71
|
+
export declare const getIntClassName: (variant: FieldValueVariant) => "block max-w-full min-w-0 truncate text-start tabular-nums" | "block min-w-0 max-w-full truncate text-start text-sm tabular-nums" | "text-muted-foreground bg-muted/60 rounded px-1.5 py-0.5 text-xs leading-none tabular-nums";
|
|
72
72
|
//#endregion
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { WorkspaceViewSwitcher, WorkspaceViewSwitcherEditing, WorkspaceViewSwitcherItem, WorkspaceViewSwitcherProps, WorkspaceViewSwitcherReorder } from "./view-switcher.js";
|
|
1
2
|
import { CalculationFormatters, CalculationLabels, FormatCalculationParams, FormattedCalculation, formatCalculationResult } from "./calculation-format.js";
|
|
2
3
|
import { ApplyCalculationSelectionParams, CalculationSelection, applyCalculationSelection } from "./calculation-selection.js";
|
|
3
4
|
import { CalculationKindPicker, CalculationKindPickerProps, CalculationPicker, CalculationPickerProps, CalculationProperty, CalculationResult, CalculationSummary, CalculationSummaryProps, ColumnCalculation, UseCalculationParams, WorkspaceCalculationLabels, useCalculation } from "./calculations.js";
|
|
@@ -12,6 +13,5 @@ import { SortChips, SortChipsLabels, SortChipsProps, SortDescriptor, SortablePro
|
|
|
12
13
|
import { TableSkeletonRows } from "./table-skeleton-rows.js";
|
|
13
14
|
import { CreateWorkspaceKanbanSchemaParams, KANBAN_EMPTY_GROUP_VISIBILITIES, KANBAN_SAVED_VIEW_STATE_VERSION, KanbanBoardPresentation, KanbanEmptyGroupVisibility, KanbanPresentedBand, KanbanPresentedLane, KanbanSavedAxisState, KanbanSavedGroupAxisState, KanbanSavedGroupReference, KanbanSavedSubgroupState, KanbanSavedViewState, KanbanSavedViewStateV1, ResolveWorkspaceKanbanViewParams, ResolvedWorkspaceKanbanView, WorkspaceKanbanBuiltInGroupLabel, WorkspaceKanbanGroupingChoice, WorkspaceKanbanGroupingPickerLabels, WorkspaceKanbanGroupingPickerProps, WorkspaceKanbanProperty, createWorkspaceKanbanSchema, getWorkspaceKanbanGroupingChoices, normalizeKanbanSavedViewState, presentKanbanBoard, resolveWorkspaceKanbanView } from "./kanban-view.js";
|
|
14
15
|
import { WorkspaceKanbanGroupingPicker } from "./kanban-grouping-picker.js";
|
|
15
|
-
import { WorkspaceViewSwitcher, WorkspaceViewSwitcherEditing, WorkspaceViewSwitcherItem, WorkspaceViewSwitcherProps, WorkspaceViewSwitcherReorder } from "./view-switcher.js";
|
|
16
16
|
import { WorkspaceFrame, WorkspaceFrameEndRail, WorkspaceFrameInspector, WorkspaceFrameNavigation, WorkspaceFrameNavigationItem, WorkspaceFrameProps, WorkspaceFrameTopBar } from "./workspace-frame.js";
|
|
17
17
|
export { type ApplyCalculationSelectionParams, CONDITION_OPERATORS, type CalculationFormatters, CalculationKindPicker, type CalculationKindPickerProps, type CalculationLabels, CalculationPicker, type CalculationPickerProps, type CalculationProperty, type CalculationResult, type CalculationSelection, CalculationSummary, type CalculationSummaryProps, type ColorVariants, ColumnCalculation, ConditionBuilder, type ConditionBuilderLabels, type ConditionCapabilities, type ConditionOperator, type CreateWorkspaceKanbanSchemaParams, FIELD_CONTENT_TYPES, type FieldContent, type FieldOption, type FieldOptionChoice, FieldValue, type FieldValueType, type FormatCalculationParams, type FormattedCalculation, type FormulaCellRenderCtx, type GenericProperty, IntFieldValue, KANBAN_EMPTY_GROUP_VISIBILITIES, KANBAN_SAVED_VIEW_STATE_VERSION, type KanbanBoardPresentation, type KanbanEmptyGroupVisibility, type KanbanPresentedBand, type KanbanPresentedLane, type KanbanSavedAxisState, type KanbanSavedGroupAxisState, type KanbanSavedGroupReference, type KanbanSavedSubgroupState, type KanbanSavedViewState, type KanbanSavedViewStateV1, MoneyFieldValue, type OptionColor, PersonFieldValue, PropertyIcon, type PropertyIconType, type ResolveWorkspaceKanbanViewParams, type ResolvedWorkspaceKanbanView, SortChips, type SortChipsLabels, type SortChipsProps, type SortDescriptor, type SortableProperty, TableSkeletonRows, type UseCalculationParams, type ValueEditorKind, type ValueEditorRenderCtx, type WorkspaceCalculationLabels, type WorkspaceFieldContent, WorkspaceFrame, type WorkspaceFrameEndRail, type WorkspaceFrameInspector, type WorkspaceFrameNavigation, type WorkspaceFrameNavigationItem, type WorkspaceFrameProps, type WorkspaceFrameTopBar, type WorkspaceKanbanBuiltInGroupLabel, type WorkspaceKanbanGroupingChoice, WorkspaceKanbanGroupingPicker, type WorkspaceKanbanGroupingPickerLabels, type WorkspaceKanbanGroupingPickerProps, type WorkspaceKanbanProperty, WorkspaceViewSwitcher, type WorkspaceViewSwitcherEditing, type WorkspaceViewSwitcherItem, type WorkspaceViewSwitcherProps, type WorkspaceViewSwitcherReorder, appendChild, applyCalculationSelection, asGroup, buildLeaf, createWorkspaceKanbanSchema, emptyColor, fieldForNode, formatCalculationResult, getClipFieldValueLabel, getWorkspaceKanbanGroupingChoices, isConditionOperator, isMultiValue, leafFromField, leafOperand, leafOperator, leafValueList, leafValueString, normalizeKanbanSavedViewState, operandsEqual, operatorsFor, optionColors, presentKanbanBoard, removeChild, replaceChild, resolveOptionColor, resolveWorkspaceKanbanView, sortDirectionHint, useCalculation, valueEditorFor };
|
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.
|
|
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.
|
|
114
|
+
"@stll/calculations": "^0.1.3",
|
|
116
115
|
"@stll/conditions": "^0.4.0",
|
|
117
116
|
"@stll/money": "^0.3.1",
|
|
118
|
-
"@stll/ui": "^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.
|
|
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",
|