@camstack/types 1.2.559 → 1.2.560
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/CHANGELOG.md +6 -0
- package/dist/i18n/translation.d.ts +3 -2
- package/dist/index.js +7 -2
- package/dist/index.mjs +7 -2
- package/dist/interfaces/config-ui.d.ts +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.560] - 2026-11-13
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Settings info fields can carry a translated content key (contentKey), so a hint shows in the operator's language
|
|
15
|
+
|
|
10
16
|
## [1.2.559] - 2026-11-13
|
|
11
17
|
|
|
12
18
|
### Changed
|
|
@@ -30,8 +30,9 @@ export declare function splitTranslationRef(ref: string): {
|
|
|
30
30
|
/** `(namespace, key) -> text in the request language`, or `undefined` when absent. */
|
|
31
31
|
export type CatalogLookup = (ns: string, key: string) => string | undefined;
|
|
32
32
|
/**
|
|
33
|
-
* Returns `value` with every `labelKey` / `descriptionKey` / `titleKey`
|
|
34
|
-
* the catalog can resolve replaced into `label` /
|
|
33
|
+
* Returns `value` with every `labelKey` / `descriptionKey` / `titleKey` /
|
|
34
|
+
* `contentKey` that the catalog can resolve replaced into `label` /
|
|
35
|
+
* `description` / `title` / `content`.
|
|
35
36
|
* Pure: the input is never mutated; a subtree with nothing to change is
|
|
36
37
|
* returned as the SAME object. A key the catalog does not hold keeps the
|
|
37
38
|
* English text that sits next to it.
|
package/dist/index.js
CHANGED
|
@@ -133488,11 +133488,16 @@ var KEYED_TEXTS = [
|
|
|
133488
133488
|
{
|
|
133489
133489
|
keyField: "titleKey",
|
|
133490
133490
|
textField: "title"
|
|
133491
|
+
},
|
|
133492
|
+
{
|
|
133493
|
+
keyField: "contentKey",
|
|
133494
|
+
textField: "content"
|
|
133491
133495
|
}
|
|
133492
133496
|
];
|
|
133493
133497
|
/**
|
|
133494
|
-
* Returns `value` with every `labelKey` / `descriptionKey` / `titleKey`
|
|
133495
|
-
* the catalog can resolve replaced into `label` /
|
|
133498
|
+
* Returns `value` with every `labelKey` / `descriptionKey` / `titleKey` /
|
|
133499
|
+
* `contentKey` that the catalog can resolve replaced into `label` /
|
|
133500
|
+
* `description` / `title` / `content`.
|
|
133496
133501
|
* Pure: the input is never mutated; a subtree with nothing to change is
|
|
133497
133502
|
* returned as the SAME object. A key the catalog does not hold keeps the
|
|
133498
133503
|
* English text that sits next to it.
|
package/dist/index.mjs
CHANGED
|
@@ -133487,11 +133487,16 @@ var KEYED_TEXTS = [
|
|
|
133487
133487
|
{
|
|
133488
133488
|
keyField: "titleKey",
|
|
133489
133489
|
textField: "title"
|
|
133490
|
+
},
|
|
133491
|
+
{
|
|
133492
|
+
keyField: "contentKey",
|
|
133493
|
+
textField: "content"
|
|
133490
133494
|
}
|
|
133491
133495
|
];
|
|
133492
133496
|
/**
|
|
133493
|
-
* Returns `value` with every `labelKey` / `descriptionKey` / `titleKey`
|
|
133494
|
-
* the catalog can resolve replaced into `label` /
|
|
133497
|
+
* Returns `value` with every `labelKey` / `descriptionKey` / `titleKey` /
|
|
133498
|
+
* `contentKey` that the catalog can resolve replaced into `label` /
|
|
133499
|
+
* `description` / `title` / `content`.
|
|
133495
133500
|
* Pure: the input is never mutated; a subtree with nothing to change is
|
|
133496
133501
|
* returned as the SAME object. A key the catalog does not hold keeps the
|
|
133497
133502
|
* English text that sits next to it.
|
|
@@ -728,6 +728,8 @@ export interface ConfigInfoField {
|
|
|
728
728
|
/** `"<namespace>:<key>"` of the translated `label` (D863). */
|
|
729
729
|
labelKey?: string;
|
|
730
730
|
content: string;
|
|
731
|
+
/** `"<namespace>:<key>"` of the translated `content` (D863). */
|
|
732
|
+
contentKey?: string;
|
|
731
733
|
variant?: 'info' | 'warning' | 'success' | 'danger';
|
|
732
734
|
/**
|
|
733
735
|
* Rendering mode for `content`. Default `'text'` keeps the legacy
|