@dpuse/dpuse-shared 0.3.769 → 0.3.772
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/README.md
CHANGED
|
@@ -147,7 +147,7 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
|
|
|
147
147
|
| dist/dpuse-shared-componentModuleConnector.es.js | 3.7 kB · brotli 1.2 kB |
|
|
148
148
|
| dist/dpuse-shared-utilities.es.js | 3.6 kB · brotli 1.1 kB |
|
|
149
149
|
| dist/dpuse-shared-errors.es.js | 3.5 kB · brotli 1.1 kB |
|
|
150
|
-
| dist/dpuse-shared-locale.es.js |
|
|
150
|
+
| dist/dpuse-shared-locale.es.js | 1.0 kB · brotli 393 B |
|
|
151
151
|
| dist/dpuse-shared-component.es.js | 830 B · brotli 359 B |
|
|
152
152
|
| dist/dpuse-shared-componentDataView.es.js | 722 B · brotli 310 B |
|
|
153
153
|
| dist/dpuse-shared-componentModulePresenter.es.js | 411 B · brotli 226 B |
|
|
@@ -15,7 +15,7 @@ function r(e, t) {
|
|
|
15
15
|
return {
|
|
16
16
|
...e,
|
|
17
17
|
label: e.label[t] ?? e.id,
|
|
18
|
-
description: e.description[t],
|
|
18
|
+
description: e.description[t] ?? e.description.en,
|
|
19
19
|
verb: e.verb?.[t] ?? void 0
|
|
20
20
|
};
|
|
21
21
|
}
|
|
@@ -23,7 +23,7 @@ function i(e, t, n = !1) {
|
|
|
23
23
|
let r = e.map((e) => ({
|
|
24
24
|
...e,
|
|
25
25
|
label: e.label[t] ?? e.id,
|
|
26
|
-
description: e.description[t],
|
|
26
|
+
description: e.description[t] ?? e.description.en,
|
|
27
27
|
verb: e.verb?.[t] ?? void 0
|
|
28
28
|
}));
|
|
29
29
|
return n ? r.toSorted((e, t) => e.label.localeCompare(t.label) || e.id.localeCompare(t.id)) : r;
|
|
@@ -32,7 +32,7 @@ function a(e, t) {
|
|
|
32
32
|
return {
|
|
33
33
|
...e,
|
|
34
34
|
label: e.label[t] ?? e.id,
|
|
35
|
-
description: e.description[t]
|
|
35
|
+
description: e.description[t] ?? e.description.en
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
function o(e, t, n = "en") {
|
|
@@ -3,7 +3,6 @@ import { LocalisedReference } from '../../../locale';
|
|
|
3
3
|
import { Component, ComponentReferenceConfig } from '../..';
|
|
4
4
|
import { presenterActionNameSchema, presenterConfigSchema } from './presenterConfig.schema';
|
|
5
5
|
export { presenterConfigSchema } from './presenterConfig.schema';
|
|
6
|
-
export type SanitizeHTML = (html: string) => TrustedHTML | string;
|
|
7
6
|
export interface PresenterInterface extends Component {
|
|
8
7
|
readonly config: PresenterConfig;
|
|
9
8
|
list(): ComponentReferenceConfig[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dpuse/dpuse-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.772",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Common constants, types and utilities used across all DPUse projects.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -147,17 +147,16 @@
|
|
|
147
147
|
"test": "node -e \"import('@dpuse/dpuse-development').then(m => m.testProject())\""
|
|
148
148
|
},
|
|
149
149
|
"devDependencies": {
|
|
150
|
-
"@dpuse/dpuse-development": "^0.3.
|
|
150
|
+
"@dpuse/dpuse-development": "^0.3.703",
|
|
151
151
|
"@dpuse/eslint-config-dpuse": "^1.0.113",
|
|
152
|
-
"@types/node": "^26.
|
|
153
|
-
"
|
|
154
|
-
"eslint": "^10.8.0",
|
|
152
|
+
"@types/node": "^26.2.0",
|
|
153
|
+
"eslint": "^10.8.1",
|
|
155
154
|
"file-type": "^22.0.1",
|
|
156
155
|
"prettier": "^3.9.6",
|
|
157
156
|
"sonda": "^0.14.0",
|
|
158
157
|
"typescript": "^6.0.3",
|
|
159
158
|
"valibot": "^1.4.2",
|
|
160
|
-
"vite": "^8.2.
|
|
159
|
+
"vite": "^8.2.1",
|
|
161
160
|
"vite-plugin-dts": "^5.0.3",
|
|
162
161
|
"vitest": "^4.1.10"
|
|
163
162
|
}
|