@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.
- package/dist/{chunk-NEIWY6CC.cjs → chunk-6HUWQLF2.cjs} +6 -6
- package/dist/{chunk-NEIWY6CC.cjs.map → chunk-6HUWQLF2.cjs.map} +1 -1
- package/dist/{chunk-ND3IE3IB.cjs → chunk-G7IUQKRU.cjs} +17 -17
- package/dist/{chunk-ND3IE3IB.cjs.map → chunk-G7IUQKRU.cjs.map} +1 -1
- package/dist/{chunk-IB5B3EBD.js → chunk-JCNTNAZP.js} +13 -7
- package/dist/chunk-JCNTNAZP.js.map +1 -0
- package/dist/{chunk-6F6GGX2W.cjs → chunk-M7LU4NTI.cjs} +3 -2
- package/dist/chunk-M7LU4NTI.cjs.map +1 -0
- package/dist/{chunk-6UR5UE5G.js → chunk-MCIBQ5BF.js} +3 -3
- package/dist/{chunk-6UR5UE5G.js.map → chunk-MCIBQ5BF.js.map} +1 -1
- package/dist/{chunk-C4R7BTBQ.js → chunk-TADEEG5E.js} +3 -2
- package/dist/chunk-TADEEG5E.js.map +1 -0
- package/dist/{chunk-ADWIAQQS.js → chunk-UWMXMLMV.js} +3 -3
- package/dist/{chunk-ADWIAQQS.js.map → chunk-UWMXMLMV.js.map} +1 -1
- package/dist/{chunk-3GMTGX3D.cjs → chunk-WVACGZYV.cjs} +4 -4
- package/dist/{chunk-3GMTGX3D.cjs.map → chunk-WVACGZYV.cjs.map} +1 -1
- package/dist/{chunk-ANMCMSGR.cjs → chunk-YTXP4VHD.cjs} +13 -7
- package/dist/chunk-YTXP4VHD.cjs.map +1 -0
- package/dist/{chunk-NMX6HQC3.js → chunk-ZAK276QF.js} +3 -3
- package/dist/{chunk-NMX6HQC3.js.map → chunk-ZAK276QF.js.map} +1 -1
- package/dist/entries/apps.cjs +38 -38
- package/dist/entries/apps.js +3 -3
- package/dist/entries/i18n.cjs +11 -11
- package/dist/entries/i18n.d.cts +5 -4
- package/dist/entries/i18n.d.ts +5 -4
- package/dist/entries/i18n.js +1 -1
- package/dist/entries/nodes.cjs +199 -199
- package/dist/entries/nodes.js +3 -3
- package/dist/entries/video.cjs +24 -24
- package/dist/entries/video.d.cts +11 -10
- package/dist/entries/video.d.ts +11 -10
- package/dist/entries/video.js +1 -1
- package/dist/index.cjs +269 -269
- package/dist/index.js +5 -5
- package/package.json +1 -1
- package/src/__tests__/entry-matches-query.test.ts +34 -0
- package/src/__tests__/video-link-needs.test.ts +23 -4
- package/src/__tests__/video-link.test.ts +1 -1
- package/src/i18n/index.ts +6 -4
- package/src/i18n/style.ar.ts +1 -1
- package/src/i18n/style.de.ts +1 -1
- package/src/i18n/style.es.ts +1 -1
- package/src/i18n/style.fr.ts +1 -1
- package/src/i18n/style.he.ts +1 -1
- package/src/i18n/style.hi.ts +1 -1
- package/src/i18n/style.ja.ts +1 -1
- package/src/i18n/style.ko.ts +1 -1
- package/src/i18n/style.pt-BR.ts +1 -1
- package/src/i18n/style.ru.ts +1 -1
- package/src/i18n/style.zh-CN.ts +1 -1
- package/src/video-link.ts +35 -15
- package/dist/chunk-6F6GGX2W.cjs.map +0 -1
- package/dist/chunk-ANMCMSGR.cjs.map +0 -1
- package/dist/chunk-C4R7BTBQ.js.map +0 -1
- package/dist/chunk-IB5B3EBD.js.map +0 -1
package/dist/entries/i18n.cjs
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
|
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
|
|
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
|
|
17
|
+
get: function () { return chunkM7LU4NTI_cjs.ensureLocaleCatalogLoaded; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "entryMatchesQuery", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkM7LU4NTI_cjs.entryMatchesQuery; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "getLocaleDirection", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkM7LU4NTI_cjs.getLocaleDirection; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "registerCatalogSidecars", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkM7LU4NTI_cjs.registerCatalogSidecars; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "registerSidecarLoaders", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkM7LU4NTI_cjs.registerSidecarLoaders; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "resetCatalogSidecars", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkM7LU4NTI_cjs.resetCatalogSidecars; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "resolveDescription", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkM7LU4NTI_cjs.resolveDescription; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "resolveLabel", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkM7LU4NTI_cjs.resolveLabel; }
|
|
46
46
|
});
|
|
47
47
|
//# sourceMappingURL=i18n.cjs.map
|
|
48
48
|
//# sourceMappingURL=i18n.cjs.map
|
package/dist/entries/i18n.d.cts
CHANGED
|
@@ -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
|
|
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
|
|
48
|
-
* English label/description or the localized label/description for
|
|
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
|
*/
|
package/dist/entries/i18n.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
48
|
-
* English label/description or the localized label/description for
|
|
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
|
*/
|
package/dist/entries/i18n.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { LANGUAGES, NON_EN_LOCALE_IDS, ensureLocaleCatalogLoaded, entryMatchesQuery, getLocaleDirection, registerCatalogSidecars, registerSidecarLoaders, resetCatalogSidecars, resolveDescription, resolveLabel } from '../chunk-
|
|
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
|