@dpuse/dpuse-shared 0.3.671 → 0.3.672

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.
@@ -384,7 +384,10 @@ var O = (e) => /* @__PURE__ */ D(e.map((e) => /* @__PURE__ */ y(e))), k = /* @__
384
384
  }), A = /* @__PURE__ */ S({
385
385
  en: /* @__PURE__ */ C(/* @__PURE__ */ T()),
386
386
  es: /* @__PURE__ */ C(/* @__PURE__ */ T())
387
- }), j = O([
387
+ }), j = /* @__PURE__ */ S({
388
+ en: /* @__PURE__ */ C(/* @__PURE__ */ _(/* @__PURE__ */ T())),
389
+ es: /* @__PURE__ */ C(/* @__PURE__ */ _(/* @__PURE__ */ T()))
390
+ }), M = O([
388
391
  "app",
389
392
  "connector",
390
393
  "connectorConnection",
@@ -408,12 +411,12 @@ var O = (e) => /* @__PURE__ */ D(e.map((e) => /* @__PURE__ */ y(e))), k = /* @__
408
411
  "presenter",
409
412
  "presenterPresentation",
410
413
  "tool"
411
- ]), M = O([
414
+ ]), N = O([
412
415
  "amber",
413
416
  "green",
414
417
  "red",
415
418
  "other"
416
- ]), N = O([
419
+ ]), P = O([
417
420
  "alpha",
418
421
  "beta",
419
422
  "generalAvailability",
@@ -423,32 +426,32 @@ var O = (e) => /* @__PURE__ */ D(e.map((e) => /* @__PURE__ */ y(e))), k = /* @__
423
426
  "releaseCandidate",
424
427
  "unavailable",
425
428
  "underReview"
426
- ]), P = /* @__PURE__ */ S({
427
- color: M,
429
+ ]), F = /* @__PURE__ */ S({
430
+ color: N,
428
431
  label: /* @__PURE__ */ T()
429
- }), F = /* @__PURE__ */ S({
432
+ }), I = /* @__PURE__ */ S({
430
433
  id: /* @__PURE__ */ T(),
431
434
  label: A,
432
- description: A,
435
+ description: j,
433
436
  icon: /* @__PURE__ */ b(/* @__PURE__ */ T()),
434
437
  iconDark: /* @__PURE__ */ b(/* @__PURE__ */ T()),
435
438
  iconNeutral: /* @__PURE__ */ b(/* @__PURE__ */ T()),
436
439
  order: /* @__PURE__ */ x(),
437
440
  path: /* @__PURE__ */ T()
438
- }), I = {
441
+ }), L = {
439
442
  id: /* @__PURE__ */ T(),
440
443
  label: A,
441
- description: A,
444
+ description: j,
442
445
  firstCreatedAt: /* @__PURE__ */ b(/* @__PURE__ */ x()),
443
446
  icon: /* @__PURE__ */ b(/* @__PURE__ */ T()),
444
447
  iconDark: /* @__PURE__ */ b(/* @__PURE__ */ T()),
445
448
  iconNeutral: /* @__PURE__ */ b(/* @__PURE__ */ T()),
446
449
  lastUpdatedAt: /* @__PURE__ */ b(/* @__PURE__ */ x()),
447
- status: /* @__PURE__ */ b(P),
448
- statusId: /* @__PURE__ */ b(N)
449
- }, L = /* @__PURE__ */ S({
450
- ...I,
451
- typeId: j
450
+ status: /* @__PURE__ */ b(F),
451
+ statusId: /* @__PURE__ */ b(P)
452
+ }, R = /* @__PURE__ */ S({
453
+ ...L,
454
+ typeId: M
452
455
  });
453
456
  //#endregion
454
- export { O as a, y as c, S as d, C as f, k as i, b as l, T as m, L as n, _ as o, w as p, F as r, v as s, I as t, x as u };
457
+ export { O as a, y as c, S as d, C as f, k as i, b as l, T as m, R as n, _ as o, w as p, I as r, v as s, L as t, x as u };
@@ -1,5 +1,5 @@
1
1
  import "./dpuse-shared-locale.es.js";
2
- import { n as e } from "./componentConfig.schema-CkdR7msf.js";
2
+ import { n as e } from "./componentConfig.schema-DTtYL9IP.js";
3
3
  //#region src/component/index.ts
4
4
  var t = [
5
5
  {
@@ -1,6 +1,6 @@
1
1
  import { createLabelMap as e, resolveLabel as t } from "./dpuse-shared-locale.es.js";
2
- import { a as n, c as r, d as i, f as a, i as o, l as s, m as c, o as l, p as u, s as d, u as f } from "./componentConfig.schema-CkdR7msf.js";
3
- import { t as p } from "./moduleConfig.schema-CE_hg8Nj.js";
2
+ import { a as n, c as r, d as i, f as a, i as o, l as s, m as c, o as l, p as u, s as d, u as f } from "./componentConfig.schema-DTtYL9IP.js";
3
+ import { t as p } from "./moduleConfig.schema-CMPetJQa.js";
4
4
  //#region src/component/module/connector/connectorConfig.schema.ts
5
5
  var m = n([
6
6
  "application",
@@ -84,10 +84,10 @@ var m = n([
84
84
  let i = b.find((e) => e.id === n);
85
85
  return i ? {
86
86
  label: t(e(i.label), r) ?? i.id,
87
- description: ""
87
+ description: []
88
88
  } : {
89
89
  label: n,
90
- description: ""
90
+ description: []
91
91
  };
92
92
  };
93
93
  //#endregion
@@ -1,5 +1,5 @@
1
- import { a as e, c as t, d as n, o as r, r as i, t as a, u as o } from "./componentConfig.schema-CkdR7msf.js";
2
- import { t as s } from "./moduleConfig.schema-CE_hg8Nj.js";
1
+ import { a as e, c as t, d as n, o as r, r as i, t as a, u as o } from "./componentConfig.schema-DTtYL9IP.js";
2
+ import { t as s } from "./moduleConfig.schema-CMPetJQa.js";
3
3
  //#region src/component/module/context/contextConfig.schema.ts
4
4
  var c = n({
5
5
  ...a,
@@ -1,5 +1,5 @@
1
- import { a as e, c as t, d as n, o as r, r as i } from "./componentConfig.schema-CkdR7msf.js";
2
- import { t as a } from "./moduleConfig.schema-CE_hg8Nj.js";
1
+ import { a as e, c as t, d as n, o as r, r as i } from "./componentConfig.schema-DTtYL9IP.js";
2
+ import { t as a } from "./moduleConfig.schema-CMPetJQa.js";
3
3
  //#region src/component/module/presenter/presenterConfig.schema.ts
4
4
  var o = e([
5
5
  "list",
@@ -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] ?? e.id,
18
+ description: e.description[t] ?? [],
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] ?? e.id,
26
+ description: e.description[t] ?? [],
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;
@@ -1,4 +1,4 @@
1
- import { a as e, d as t, m as n, t as r } from "./componentConfig.schema-CkdR7msf.js";
1
+ import { a as e, d as t, m as n, t as r } from "./componentConfig.schema-DTtYL9IP.js";
2
2
  //#region src/component/module/moduleConfig.schema.ts
3
3
  var i = e([
4
4
  "app",
@@ -12,8 +12,8 @@ export declare const componentReferenceSchema: import('valibot').ObjectSchema<{
12
12
  readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
13
13
  }, undefined>;
14
14
  readonly description: import('valibot').ObjectSchema<{
15
- readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
16
- readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
15
+ readonly en: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
16
+ readonly es: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
17
17
  }, undefined>;
18
18
  readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
19
19
  readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
@@ -28,8 +28,8 @@ export declare const componentConfigCoreFields: {
28
28
  readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
29
29
  }, undefined>;
30
30
  description: import('valibot').ObjectSchema<{
31
- readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
32
- readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
31
+ readonly en: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
32
+ readonly es: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
33
33
  }, undefined>;
34
34
  firstCreatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
35
35
  icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
@@ -50,8 +50,8 @@ export declare const componentConfigSchema: import('valibot').ObjectSchema<{
50
50
  readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
51
51
  }, undefined>;
52
52
  readonly description: import('valibot').ObjectSchema<{
53
- readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
54
- readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
53
+ readonly en: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
54
+ readonly es: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
55
55
  }, undefined>;
56
56
  readonly firstCreatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
57
57
  readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
@@ -43,8 +43,8 @@ export declare const connectorConfigSchema: import('valibot').ObjectSchema<{
43
43
  readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
44
44
  }, undefined>;
45
45
  readonly description: import('valibot').ObjectSchema<{
46
- readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
47
- readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
46
+ readonly en: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
47
+ readonly es: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
48
48
  }, undefined>;
49
49
  readonly firstCreatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
50
50
  readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
@@ -10,8 +10,8 @@ export declare const contextConfigSchema: import('valibot').ObjectSchema<{
10
10
  readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
11
11
  }, undefined>;
12
12
  readonly description: import('valibot').ObjectSchema<{
13
- readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
14
- readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
13
+ readonly en: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
14
+ readonly es: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
15
15
  }, undefined>;
16
16
  readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
17
17
  readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
@@ -26,8 +26,8 @@ export declare const contextConfigSchema: import('valibot').ObjectSchema<{
26
26
  readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
27
27
  }, undefined>;
28
28
  readonly description: import('valibot').ObjectSchema<{
29
- readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
30
- readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
29
+ readonly en: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
30
+ readonly es: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
31
31
  }, undefined>;
32
32
  readonly firstCreatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
33
33
  readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
@@ -48,8 +48,8 @@ export declare const contextConfigSchema: import('valibot').ObjectSchema<{
48
48
  readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
49
49
  }, undefined>;
50
50
  readonly description: import('valibot').ObjectSchema<{
51
- readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
52
- readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
51
+ readonly en: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
52
+ readonly es: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
53
53
  }, undefined>;
54
54
  readonly firstCreatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
55
55
  readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
@@ -7,8 +7,8 @@ export declare const moduleConfigCoreFields: {
7
7
  readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
8
8
  }, undefined>;
9
9
  description: import('valibot').ObjectSchema<{
10
- readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
11
- readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
10
+ readonly en: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
11
+ readonly es: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
12
12
  }, undefined>;
13
13
  firstCreatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
14
14
  icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
@@ -30,8 +30,8 @@ export declare const moduleConfigSchema: import('valibot').ObjectSchema<{
30
30
  readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
31
31
  }, undefined>;
32
32
  readonly description: import('valibot').ObjectSchema<{
33
- readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
34
- readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
33
+ readonly en: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
34
+ readonly es: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
35
35
  }, undefined>;
36
36
  readonly firstCreatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
37
37
  readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
@@ -8,8 +8,8 @@ export declare const presenterConfigSchema: import('valibot').ObjectSchema<{
8
8
  readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
9
9
  }, undefined>;
10
10
  readonly description: import('valibot').ObjectSchema<{
11
- readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
12
- readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
11
+ readonly en: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
12
+ readonly es: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
13
13
  }, undefined>;
14
14
  readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
15
15
  readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
@@ -25,8 +25,8 @@ export declare const presenterConfigSchema: import('valibot').ObjectSchema<{
25
25
  readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
26
26
  }, undefined>;
27
27
  readonly description: import('valibot').ObjectSchema<{
28
- readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
29
- readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
28
+ readonly en: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
29
+ readonly es: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
30
30
  }, undefined>;
31
31
  readonly firstCreatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
32
32
  readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
@@ -1,16 +1,17 @@
1
1
  export type FlagId = 'es' | 'gb';
2
2
  export type LocaleId = 'en' | 'es';
3
3
  export type LocaleLabel = Partial<Record<LocaleId, string>>;
4
+ export type LocaleDescription = Partial<Record<LocaleId, string[]>>;
4
5
  export type LocaleLabelMap = ReadonlyMap<string, string>;
5
6
  export type LocalisedConfig<T> = Omit<T, 'label' | 'description' | 'verb'> & {
6
7
  label: string;
7
- description: string;
8
+ description: string[];
8
9
  verb?: string | undefined;
9
10
  };
10
11
  interface UnlocalisedConfig {
11
12
  id: string;
12
13
  label: LocaleLabel;
13
- description: LocaleLabel;
14
+ description: LocaleDescription;
14
15
  verb?: LocaleLabel | undefined;
15
16
  }
16
17
  export declare const DEFAULT_LOCALE_ID: LocaleId;
@@ -6,3 +6,7 @@ export declare const partialLocaleLabelSchema: import('valibot').ObjectSchema<{
6
6
  readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
7
7
  readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
8
8
  }, undefined>;
9
+ export declare const partialLocaleDescriptionSchema: import('valibot').ObjectSchema<{
10
+ readonly en: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
11
+ readonly es: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
12
+ }, undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-shared",
3
- "version": "0.3.671",
3
+ "version": "0.3.672",
4
4
  "description": "Common constants, types and utilities used across all DPUse projects.",
5
5
  "license": "MIT",
6
6
  "author": "Jonathan Terrell <terrell.jm@gmail.com>",