diff --git a/changelog.md b/changelog.md index 75e9c07..34b5e56 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,12 @@ # Changelog +## 2025-12-11 - 2.2.3 - fix(contentinvoice) +Use shared translation.TranslationKey type in DeContentInvoice.translateKey and remove local import + +- Replaced local TranslationKey import with plugins.shared.translation.TranslationKey to ensure type consistency +- Updated DeContentInvoice.translateKey parameter type to reference the shared translation type +- Removed an unused type import from ts_web/elements/contentinvoice.ts + ## 2025-12-11 - 2.2.0 - feat(viewer) Add pagination metadata and thumbnail offset rendering for viewer thumbnails diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 1086882..9da3e9b 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@design.estate/dees-document', - version: '2.2.0', + version: '2.2.3', description: 'A sophisticated framework for dynamically generating and rendering business documents like invoices with modern web technologies, featuring PDF creation, templating, and automation.' } diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index 1086882..9da3e9b 100644 --- a/ts_web/00_commitinfo_data.ts +++ b/ts_web/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@design.estate/dees-document', - version: '2.2.0', + version: '2.2.3', description: 'A sophisticated framework for dynamically generating and rendering business documents like invoices with modern web technologies, featuring PDF creation, templating, and automation.' } diff --git a/ts_web/elements/contentinvoice.ts b/ts_web/elements/contentinvoice.ts index 684749b..6040d3d 100644 --- a/ts_web/elements/contentinvoice.ts +++ b/ts_web/elements/contentinvoice.ts @@ -15,7 +15,6 @@ import { import * as plugins from "../plugins.js"; import { dedocumentSharedStyle } from "../style.js"; -import type { TranslationKey } from "../../ts_shared/translation.js"; declare global { interface HTMLElementTagNameMap { @@ -303,7 +302,7 @@ export class DeContentInvoice extends DeesElement { } } - public translateKey(key: TranslationKey): string { + public translateKey(key: plugins.shared.translation.TranslationKey): string { return plugins.shared.translation.translate( this.documentSettings.languageCode, key