From 493613e634d82048b51a5f9d8d03306a3745c9e3 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Fri, 24 Apr 2026 00:07:17 +0100 Subject: [PATCH] feat(base): add client formula type literals --- apps/client/package.json | 1 + apps/client/src/features/base/types/base.types.ts | 11 ++++++++++- pnpm-lock.yaml | 3 +++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/apps/client/package.json b/apps/client/package.json index 2874ddd8d..932b849cd 100644 --- a/apps/client/package.json +++ b/apps/client/package.json @@ -15,6 +15,7 @@ "@dnd-kit/modifiers": "^9.0.0", "@dnd-kit/sortable": "^10.0.0", "@dnd-kit/utilities": "^3.2.2", + "@docmost/base-formula": "workspace:*", "@docmost/editor-ext": "workspace:*", "@emoji-mart/data": "^1.2.1", "@emoji-mart/react": "^1.1.1", diff --git a/apps/client/src/features/base/types/base.types.ts b/apps/client/src/features/base/types/base.types.ts index 04647dc22..115a19028 100644 --- a/apps/client/src/features/base/types/base.types.ts +++ b/apps/client/src/features/base/types/base.types.ts @@ -13,7 +13,8 @@ export type BasePropertyType = | 'email' | 'createdAt' | 'lastEditedAt' - | 'lastEditedBy'; + | 'lastEditedBy' + | 'formula'; export type Choice = { id: string; @@ -310,3 +311,11 @@ export type BaseViewDraft = { // ISO timestamp written on each put; diagnostic only, not read by logic. updatedAt: string; }; + +export type { + FormulaTypeOptions, + FormulaResultType, + ErrorCell as FormulaErrorCell, + ErrorCode as FormulaErrorCode, +} from "@docmost/base-formula/client"; +export { isErrorCell as isFormulaErrorCell } from "@docmost/base-formula/client"; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c6b82b1a9..7143cb856 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -261,6 +261,9 @@ importers: '@dnd-kit/utilities': specifier: ^3.2.2 version: 3.2.2(react@18.3.1) + '@docmost/base-formula': + specifier: workspace:* + version: link:../../packages/base-formula '@docmost/editor-ext': specifier: workspace:* version: link:../../packages/editor-ext