kviewer 0.2.3 → 0.2.4

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kviewer",
3
3
  "configKey": "kviewer",
4
- "version": "0.2.3",
4
+ "version": "0.2.4",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -37,7 +37,17 @@ const module$1 = defineNuxtModule({
37
37
  "konva",
38
38
  "pdf-lib",
39
39
  "pdfjs-dist/legacy/build/pdf.mjs",
40
- "pdfjs-dist/web/pdf_viewer.mjs"
40
+ "pdfjs-dist/web/pdf_viewer.mjs",
41
+ // unicode-font.ts registers @pdf-lib/fontkit for Unicode font
42
+ // embedding. Its ESM build does `import pako from 'pako'`, but pako 1.x
43
+ // is CJS with no `default` export — so unless fontkit is pre-bundled
44
+ // (where esbuild applies CJS interop and synthesizes the default), the
45
+ // browser receives the raw pako index.js and throws "does not provide
46
+ // an export named 'default'". The `kviewer >` prefix anchors resolution
47
+ // through this module, so it works even when pnpm leaves fontkit
48
+ // un-hoisted in the consumer (a bare '@pdf-lib/fontkit' entry would not
49
+ // resolve from the consumer root and Vite would silently skip it).
50
+ "kviewer > @pdf-lib/fontkit"
41
51
  );
42
52
  });
43
53
  nuxt.options.runtimeConfig.public.kviewer = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kviewer",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Kabema PDF Editor",
5
5
  "repository": "kabema/kviewer",
6
6
  "license": "MIT",