@internetarchive/collection-browser 4.8.1-webdev-9227.1 → 4.8.1-webdev-9227.3

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 (52) hide show
  1. package/dist/src/collection-browser.js +8 -5
  2. package/dist/src/collection-browser.js.map +1 -1
  3. package/dist/src/collection-facets/facet-row-template.d.ts +1 -1
  4. package/dist/src/collection-facets/facet-row-template.js +14 -7
  5. package/dist/src/collection-facets/facet-row-template.js.map +1 -1
  6. package/dist/src/collection-facets/facet-row.js +3 -1
  7. package/dist/src/collection-facets/facet-row.js.map +1 -1
  8. package/dist/src/collection-facets/more-facets-content.js +3 -3
  9. package/dist/src/collection-facets/more-facets-content.js.map +1 -1
  10. package/dist/src/collection-facets/smart-facets/heuristics/wikidata/wikidata-entity-map.js +13 -4
  11. package/dist/src/collection-facets/smart-facets/heuristics/wikidata/wikidata-entity-map.js.map +1 -1
  12. package/dist/src/collection-facets/smart-facets/smart-facet-bar.js +6 -2
  13. package/dist/src/collection-facets/smart-facets/smart-facet-bar.js.map +1 -1
  14. package/dist/src/collection-facets.js +3 -3
  15. package/dist/src/collection-facets.js.map +1 -1
  16. package/dist/src/locales/es.d.ts +113 -7
  17. package/dist/src/locales/es.js +113 -7
  18. package/dist/src/locales/es.js.map +1 -1
  19. package/dist/src/manage/manage-bar.js +10 -10
  20. package/dist/src/manage/manage-bar.js.map +1 -1
  21. package/dist/src/mediatype/mediatype-config.js +55 -18
  22. package/dist/src/mediatype/mediatype-config.js.map +1 -1
  23. package/dist/src/models.js +114 -38
  24. package/dist/src/models.js.map +1 -1
  25. package/dist/src/sort-filter-bar/alpha-bar-tooltip.js +8 -2
  26. package/dist/src/sort-filter-bar/alpha-bar-tooltip.js.map +1 -1
  27. package/dist/src/sort-filter-bar/alpha-bar.js +7 -2
  28. package/dist/src/sort-filter-bar/alpha-bar.js.map +1 -1
  29. package/dist/src/sort-filter-bar/sort-filter-bar.js +6 -6
  30. package/dist/src/sort-filter-bar/sort-filter-bar.js.map +1 -1
  31. package/dist/src/tiles/grid/collection-tile.js +10 -5
  32. package/dist/src/tiles/grid/collection-tile.js.map +1 -1
  33. package/dist/src/tiles/grid/item-tile.js +6 -6
  34. package/dist/src/tiles/grid/item-tile.js.map +1 -1
  35. package/dist/src/tiles/grid/tile-stats.js +3 -1
  36. package/dist/src/tiles/grid/tile-stats.js.map +1 -1
  37. package/dist/src/tiles/list/tile-list.js +12 -3
  38. package/dist/src/tiles/list/tile-list.js.map +1 -1
  39. package/dist/src/tiles/tile-dispatcher.js +1 -1
  40. package/dist/src/tiles/tile-dispatcher.js.map +1 -1
  41. package/dist/src/tiles/tile-mediatype-icon.js +3 -1
  42. package/dist/src/tiles/tile-mediatype-icon.js.map +1 -1
  43. package/dist/src/utils/format-count.d.ts +3 -1
  44. package/dist/src/utils/format-count.js +19 -59
  45. package/dist/src/utils/format-count.js.map +1 -1
  46. package/dist/src/utils/format-unit-size.d.ts +1 -1
  47. package/dist/src/utils/format-unit-size.js +21 -18
  48. package/dist/src/utils/format-unit-size.js.map +1 -1
  49. package/dist/src/utils/get-locale.d.ts +14 -0
  50. package/dist/src/utils/get-locale.js +18 -0
  51. package/dist/src/utils/get-locale.js.map +1 -0
  52. package/package.json +1 -1
@@ -0,0 +1,18 @@
1
+ import { msg } from '@lit/localize';
2
+ /**
3
+ * Returns the locale code currently active in the host app.
4
+ *
5
+ * This package never sets up `@lit/localize` itself (the host app owns that,
6
+ * once), so `@lit/localize`'s own `getLocale()` isn't available here — it's
7
+ * only returned from the host's one setup call. `msg()` always reflects the
8
+ * host app's current locale, read fresh on every call, with no dependency on
9
+ * when this package happened to load relative to the host setting its
10
+ * locale. This probes a string whose only translation is the ISO code of
11
+ * the locale it was translated into, and reads the locale off whichever
12
+ * string comes back: the untranslated source for the source locale, or the
13
+ * code itself once a target locale's translation is in place.
14
+ */
15
+ export function getLocale() {
16
+ return msg('en');
17
+ }
18
+ //# sourceMappingURL=get-locale.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-locale.js","sourceRoot":"","sources":["../../../src/utils/get-locale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAEpC;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,SAAS;IACvB,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC;AACnB,CAAC","sourcesContent":["import { msg } from '@lit/localize';\n\n/**\n * Returns the locale code currently active in the host app.\n *\n * This package never sets up `@lit/localize` itself (the host app owns that,\n * once), so `@lit/localize`'s own `getLocale()` isn't available here — it's\n * only returned from the host's one setup call. `msg()` always reflects the\n * host app's current locale, read fresh on every call, with no dependency on\n * when this package happened to load relative to the host setting its\n * locale. This probes a string whose only translation is the ISO code of\n * the locale it was translated into, and reads the locale off whichever\n * string comes back: the untranslated source for the source locale, or the\n * code itself once a target locale's translation is in place.\n */\nexport function getLocale(): string {\n return msg('en');\n}\n"]}
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/internetarchive/iaux-collection-browser.git"
9
9
  },
10
- "version": "4.8.1-webdev-9227.1",
10
+ "version": "4.8.1-webdev-9227.3",
11
11
  "main": "dist/index.js",
12
12
  "module": "dist/index.js",
13
13
  "files": [