@nodaro/shared 3.54.0 → 3.54.1

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.
Files changed (55) hide show
  1. package/dist/{chunk-NEIWY6CC.cjs → chunk-6HUWQLF2.cjs} +6 -6
  2. package/dist/{chunk-NEIWY6CC.cjs.map → chunk-6HUWQLF2.cjs.map} +1 -1
  3. package/dist/{chunk-ND3IE3IB.cjs → chunk-G7IUQKRU.cjs} +17 -17
  4. package/dist/{chunk-ND3IE3IB.cjs.map → chunk-G7IUQKRU.cjs.map} +1 -1
  5. package/dist/{chunk-IB5B3EBD.js → chunk-JCNTNAZP.js} +13 -7
  6. package/dist/chunk-JCNTNAZP.js.map +1 -0
  7. package/dist/{chunk-6F6GGX2W.cjs → chunk-M7LU4NTI.cjs} +3 -2
  8. package/dist/chunk-M7LU4NTI.cjs.map +1 -0
  9. package/dist/{chunk-6UR5UE5G.js → chunk-MCIBQ5BF.js} +3 -3
  10. package/dist/{chunk-6UR5UE5G.js.map → chunk-MCIBQ5BF.js.map} +1 -1
  11. package/dist/{chunk-C4R7BTBQ.js → chunk-TADEEG5E.js} +3 -2
  12. package/dist/chunk-TADEEG5E.js.map +1 -0
  13. package/dist/{chunk-ADWIAQQS.js → chunk-UWMXMLMV.js} +3 -3
  14. package/dist/{chunk-ADWIAQQS.js.map → chunk-UWMXMLMV.js.map} +1 -1
  15. package/dist/{chunk-3GMTGX3D.cjs → chunk-WVACGZYV.cjs} +4 -4
  16. package/dist/{chunk-3GMTGX3D.cjs.map → chunk-WVACGZYV.cjs.map} +1 -1
  17. package/dist/{chunk-ANMCMSGR.cjs → chunk-YTXP4VHD.cjs} +13 -7
  18. package/dist/chunk-YTXP4VHD.cjs.map +1 -0
  19. package/dist/{chunk-NMX6HQC3.js → chunk-ZAK276QF.js} +3 -3
  20. package/dist/{chunk-NMX6HQC3.js.map → chunk-ZAK276QF.js.map} +1 -1
  21. package/dist/entries/apps.cjs +38 -38
  22. package/dist/entries/apps.js +3 -3
  23. package/dist/entries/i18n.cjs +11 -11
  24. package/dist/entries/i18n.d.cts +5 -4
  25. package/dist/entries/i18n.d.ts +5 -4
  26. package/dist/entries/i18n.js +1 -1
  27. package/dist/entries/nodes.cjs +199 -199
  28. package/dist/entries/nodes.js +3 -3
  29. package/dist/entries/video.cjs +24 -24
  30. package/dist/entries/video.d.cts +11 -10
  31. package/dist/entries/video.d.ts +11 -10
  32. package/dist/entries/video.js +1 -1
  33. package/dist/index.cjs +269 -269
  34. package/dist/index.js +5 -5
  35. package/package.json +1 -1
  36. package/src/__tests__/entry-matches-query.test.ts +34 -0
  37. package/src/__tests__/video-link-needs.test.ts +23 -4
  38. package/src/__tests__/video-link.test.ts +1 -1
  39. package/src/i18n/index.ts +6 -4
  40. package/src/i18n/style.ar.ts +1 -1
  41. package/src/i18n/style.de.ts +1 -1
  42. package/src/i18n/style.es.ts +1 -1
  43. package/src/i18n/style.fr.ts +1 -1
  44. package/src/i18n/style.he.ts +1 -1
  45. package/src/i18n/style.hi.ts +1 -1
  46. package/src/i18n/style.ja.ts +1 -1
  47. package/src/i18n/style.ko.ts +1 -1
  48. package/src/i18n/style.pt-BR.ts +1 -1
  49. package/src/i18n/style.ru.ts +1 -1
  50. package/src/i18n/style.zh-CN.ts +1 -1
  51. package/src/video-link.ts +35 -15
  52. package/dist/chunk-6F6GGX2W.cjs.map +0 -1
  53. package/dist/chunk-ANMCMSGR.cjs.map +0 -1
  54. package/dist/chunk-C4R7BTBQ.js.map +0 -1
  55. package/dist/chunk-IB5B3EBD.js.map +0 -1
@@ -1,48 +1,48 @@
1
1
  'use strict';
2
2
 
3
- var chunk6F6GGX2W_cjs = require('../chunk-6F6GGX2W.cjs');
3
+ var chunkM7LU4NTI_cjs = require('../chunk-M7LU4NTI.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "LANGUAGES", {
8
8
  enumerable: true,
9
- get: function () { return chunk6F6GGX2W_cjs.LANGUAGES; }
9
+ get: function () { return chunkM7LU4NTI_cjs.LANGUAGES; }
10
10
  });
11
11
  Object.defineProperty(exports, "NON_EN_LOCALE_IDS", {
12
12
  enumerable: true,
13
- get: function () { return chunk6F6GGX2W_cjs.NON_EN_LOCALE_IDS; }
13
+ get: function () { return chunkM7LU4NTI_cjs.NON_EN_LOCALE_IDS; }
14
14
  });
15
15
  Object.defineProperty(exports, "ensureLocaleCatalogLoaded", {
16
16
  enumerable: true,
17
- get: function () { return chunk6F6GGX2W_cjs.ensureLocaleCatalogLoaded; }
17
+ get: function () { return chunkM7LU4NTI_cjs.ensureLocaleCatalogLoaded; }
18
18
  });
19
19
  Object.defineProperty(exports, "entryMatchesQuery", {
20
20
  enumerable: true,
21
- get: function () { return chunk6F6GGX2W_cjs.entryMatchesQuery; }
21
+ get: function () { return chunkM7LU4NTI_cjs.entryMatchesQuery; }
22
22
  });
23
23
  Object.defineProperty(exports, "getLocaleDirection", {
24
24
  enumerable: true,
25
- get: function () { return chunk6F6GGX2W_cjs.getLocaleDirection; }
25
+ get: function () { return chunkM7LU4NTI_cjs.getLocaleDirection; }
26
26
  });
27
27
  Object.defineProperty(exports, "registerCatalogSidecars", {
28
28
  enumerable: true,
29
- get: function () { return chunk6F6GGX2W_cjs.registerCatalogSidecars; }
29
+ get: function () { return chunkM7LU4NTI_cjs.registerCatalogSidecars; }
30
30
  });
31
31
  Object.defineProperty(exports, "registerSidecarLoaders", {
32
32
  enumerable: true,
33
- get: function () { return chunk6F6GGX2W_cjs.registerSidecarLoaders; }
33
+ get: function () { return chunkM7LU4NTI_cjs.registerSidecarLoaders; }
34
34
  });
35
35
  Object.defineProperty(exports, "resetCatalogSidecars", {
36
36
  enumerable: true,
37
- get: function () { return chunk6F6GGX2W_cjs.resetCatalogSidecars; }
37
+ get: function () { return chunkM7LU4NTI_cjs.resetCatalogSidecars; }
38
38
  });
39
39
  Object.defineProperty(exports, "resolveDescription", {
40
40
  enumerable: true,
41
- get: function () { return chunk6F6GGX2W_cjs.resolveDescription; }
41
+ get: function () { return chunkM7LU4NTI_cjs.resolveDescription; }
42
42
  });
43
43
  Object.defineProperty(exports, "resolveLabel", {
44
44
  enumerable: true,
45
- get: function () { return chunk6F6GGX2W_cjs.resolveLabel; }
45
+ get: function () { return chunkM7LU4NTI_cjs.resolveLabel; }
46
46
  });
47
47
  //# sourceMappingURL=i18n.cjs.map
48
48
  //# sourceMappingURL=i18n.cjs.map
@@ -15,7 +15,7 @@ export { L as LANGUAGES, b as LocaleDirection, N as NON_EN_LOCALE_IDS, g as getL
15
15
  * ```
16
16
  *
17
17
  * For search filtering, use `entryMatchesQuery(entry, locale, query)` which
18
- * filters across BOTH the canonical English text AND the localized text.
18
+ * filters across the entry's id, the canonical English text AND the localized text.
19
19
  */
20
20
 
21
21
  declare function registerCatalogSidecars(catalog: string, sidecars: Partial<Record<LocaleId, LocaleCatalogMap>> | undefined): void;
@@ -44,9 +44,10 @@ declare function resolveLabel(catalog: I18nCatalogId, id: string, englishLabel:
44
44
  */
45
45
  declare function resolveDescription(catalog: I18nCatalogId, id: string, englishDescription: string, locale: LocaleId): string;
46
46
  /**
47
- * Search predicate: returns true if `query` matches either the canonical
48
- * English label/description or the localized label/description for the
49
- * current locale.
47
+ * Search predicate: returns true if `query` matches the entry's id, the
48
+ * canonical English label/description, or the localized label/description for
49
+ * the current locale. An id is a stable name no display text has to repeat, so
50
+ * an entry stays findable by it after its display name changes.
50
51
  *
51
52
  * Empty query always matches.
52
53
  */
@@ -15,7 +15,7 @@ export { L as LANGUAGES, b as LocaleDirection, N as NON_EN_LOCALE_IDS, g as getL
15
15
  * ```
16
16
  *
17
17
  * For search filtering, use `entryMatchesQuery(entry, locale, query)` which
18
- * filters across BOTH the canonical English text AND the localized text.
18
+ * filters across the entry's id, the canonical English text AND the localized text.
19
19
  */
20
20
 
21
21
  declare function registerCatalogSidecars(catalog: string, sidecars: Partial<Record<LocaleId, LocaleCatalogMap>> | undefined): void;
@@ -44,9 +44,10 @@ declare function resolveLabel(catalog: I18nCatalogId, id: string, englishLabel:
44
44
  */
45
45
  declare function resolveDescription(catalog: I18nCatalogId, id: string, englishDescription: string, locale: LocaleId): string;
46
46
  /**
47
- * Search predicate: returns true if `query` matches either the canonical
48
- * English label/description or the localized label/description for the
49
- * current locale.
47
+ * Search predicate: returns true if `query` matches the entry's id, the
48
+ * canonical English label/description, or the localized label/description for
49
+ * the current locale. An id is a stable name no display text has to repeat, so
50
+ * an entry stays findable by it after its display name changes.
50
51
  *
51
52
  * Empty query always matches.
52
53
  */
@@ -1,3 +1,3 @@
1
- export { LANGUAGES, NON_EN_LOCALE_IDS, ensureLocaleCatalogLoaded, entryMatchesQuery, getLocaleDirection, registerCatalogSidecars, registerSidecarLoaders, resetCatalogSidecars, resolveDescription, resolveLabel } from '../chunk-C4R7BTBQ.js';
1
+ export { LANGUAGES, NON_EN_LOCALE_IDS, ensureLocaleCatalogLoaded, entryMatchesQuery, getLocaleDirection, registerCatalogSidecars, registerSidecarLoaders, resetCatalogSidecars, resolveDescription, resolveLabel } from '../chunk-TADEEG5E.js';
2
2
  //# sourceMappingURL=i18n.js.map
3
3
  //# sourceMappingURL=i18n.js.map