@eclipse-lyra/extension-media-viewer 0.7.18 → 0.7.19

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.
@@ -0,0 +1,12 @@
1
+ const EXT_MEDIAVIEWER_NAME = "Medien-Viewer";
2
+ const EXT_MEDIAVIEWER_DESC = "PDF-, Bild- und HTML-Dateien im Browser anzeigen";
3
+ const i18n_de = {
4
+ EXT_MEDIAVIEWER_NAME,
5
+ EXT_MEDIAVIEWER_DESC
6
+ };
7
+ export {
8
+ EXT_MEDIAVIEWER_DESC,
9
+ EXT_MEDIAVIEWER_NAME,
10
+ i18n_de as default
11
+ };
12
+ //# sourceMappingURL=i18n.de-Dg_5Bnbh.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.de-Dg_5Bnbh.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -0,0 +1,12 @@
1
+ const EXT_MEDIAVIEWER_NAME = "Media Viewer";
2
+ const EXT_MEDIAVIEWER_DESC = "View PDF, image, and HTML files in the browser";
3
+ const i18n_en = {
4
+ EXT_MEDIAVIEWER_NAME,
5
+ EXT_MEDIAVIEWER_DESC
6
+ };
7
+ export {
8
+ EXT_MEDIAVIEWER_DESC,
9
+ EXT_MEDIAVIEWER_NAME,
10
+ i18n_en as default
11
+ };
12
+ //# sourceMappingURL=i18n.en-CvZfcZjj.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.en-CvZfcZjj.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
package/dist/index.js CHANGED
@@ -1,19 +1,10 @@
1
- import { contributionRegistry, SYSTEM_LANGUAGE_BUNDLES, i18nLazy, extensionRegistry } from "@eclipse-lyra/core";
1
+ import { i18n, extensionRegistry } from "@eclipse-lyra/core";
2
2
  import pkg from "../package.json";
3
- const namespace = "extensions";
4
- const en = { "EXT_MEDIAVIEWER_NAME": "Media Viewer", "EXT_MEDIAVIEWER_DESC": "View PDF, image, and HTML files in the browser" };
5
- const de = { "EXT_MEDIAVIEWER_NAME": "Medien-Viewer", "EXT_MEDIAVIEWER_DESC": "PDF-, Bild- und HTML-Dateien im Browser anzeigen" };
6
- const bundle = {
7
- namespace,
8
- en,
9
- de
10
- };
11
- contributionRegistry.registerContribution(SYSTEM_LANGUAGE_BUNDLES, bundle);
12
- const t = i18nLazy("extensions");
3
+ const t = await i18n(/* @__PURE__ */ Object.assign({ "./i18n.de.json": () => import("./i18n.de-Dg_5Bnbh.js"), "./i18n.en.json": () => import("./i18n.en-CvZfcZjj.js") }), true);
13
4
  extensionRegistry.registerExtension({
14
5
  id: pkg.name,
15
- name: t("EXT_MEDIAVIEWER_NAME"),
16
- description: t("EXT_MEDIAVIEWER_DESC"),
6
+ name: t.EXT_MEDIAVIEWER_NAME,
7
+ description: t.EXT_MEDIAVIEWER_DESC,
17
8
  loader: () => import("./media-viewer-extension-eHDWy-74.js"),
18
9
  icon: "image"
19
10
  });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import { extensionRegistry, i18nLazy, contributionRegistry, SYSTEM_LANGUAGE_BUNDLES } from '@eclipse-lyra/core';\nimport bundle from './i18n.json';\nimport pkg from '../package.json';\n\ncontributionRegistry.registerContribution(SYSTEM_LANGUAGE_BUNDLES, bundle as any);\n\nconst t = i18nLazy('extensions');\n\nextensionRegistry.registerExtension({\n id: pkg.name,\n name: t('EXT_MEDIAVIEWER_NAME'),\n description: t('EXT_MEDIAVIEWER_DESC'),\n loader: () => import(\"./media-viewer-extension\"),\n icon: \"image\",\n \n \n});\n"],"names":[],"mappings":";;;;;;;;;;AAIA,qBAAqB,qBAAqB,yBAAyB,MAAa;AAEhF,MAAM,IAAI,SAAS,YAAY;AAE/B,kBAAkB,kBAAkB;AAAA,EAClC,IAAI,IAAI;AAAA,EACR,MAAM,EAAE,sBAAsB;AAAA,EAC9B,aAAa,EAAE,sBAAsB;AAAA,EACrC,QAAQ,MAAM,OAAO,sCAA0B;AAAA,EAC/C,MAAM;AAGR,CAAC;"}
1
+ {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import { extensionRegistry, i18n } from '@eclipse-lyra/core';\nimport pkg from '../package.json';\n\nconst t = await i18n(import.meta.glob('./i18n*.json'), true);\n\nextensionRegistry.registerExtension({\n id: pkg.name,\n name: t.EXT_MEDIAVIEWER_NAME,\n description: t.EXT_MEDIAVIEWER_DESC,\n loader: () => import(\"./media-viewer-extension\"),\n icon: \"image\",\n\n\n});\n"],"names":[],"mappings":";;AAGA,MAAM,IAAI,MAAM,KAAK,uBAAA,OAAA,EAAA,kBAAA,MAAA,OAAA,uBAAA,GAAA,kBAAA,MAAA,OAAA,uBAAA,EAAA,CAAA,GAAkC,IAAI;AAE3D,kBAAkB,kBAAkB;AAAA,EAClC,IAAI,IAAI;AAAA,EACR,MAAM,EAAE;AAAA,EACR,aAAa,EAAE;AAAA,EACf,QAAQ,MAAM,OAAO,sCAA0B;AAAA,EAC/C,MAAM;AAGR,CAAC;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eclipse-lyra/extension-media-viewer",
3
- "version": "0.7.18",
3
+ "version": "0.7.19",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "exports": {
@@ -1,13 +0,0 @@
1
- declare const _default: {
2
- "namespace": "extensions",
3
- "en": {
4
- "EXT_MEDIAVIEWER_NAME": "Media Viewer",
5
- "EXT_MEDIAVIEWER_DESC": "View PDF, image, and HTML files in the browser"
6
- },
7
- "de": {
8
- "EXT_MEDIAVIEWER_NAME": "Medien-Viewer",
9
- "EXT_MEDIAVIEWER_DESC": "PDF-, Bild- und HTML-Dateien im Browser anzeigen"
10
- }
11
- };
12
-
13
- export default _default;