@pristy/pristy-libvue 2.13.1 → 2.13.2

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 (30) hide show
  1. package/dist/{ActivityHistory-B2Q_KPgq.js → ActivityHistory-DvppoMFI.js} +2 -2
  2. package/dist/{ActivityHistory-B2Q_KPgq.js.map → ActivityHistory-DvppoMFI.js.map} +1 -1
  3. package/dist/{BookmarksComponent-CH6C610k.js → BookmarksComponent-COJIz8pJ.js} +2 -2
  4. package/dist/{BookmarksComponent-CH6C610k.js.map → BookmarksComponent-COJIz8pJ.js.map} +1 -1
  5. package/dist/{ChartWrapper-9_OMNfve.js → ChartWrapper-B6QtsDH6.js} +2 -2
  6. package/dist/{ChartWrapper-9_OMNfve.js.map → ChartWrapper-B6QtsDH6.js.map} +1 -1
  7. package/dist/{DisplayFileInDashboardComponent-DAGf93p1.js → DisplayFileInDashboardComponent-C5dT_d9i.js} +26 -26
  8. package/dist/{DisplayFileInDashboardComponent-DAGf93p1.js.map → DisplayFileInDashboardComponent-C5dT_d9i.js.map} +1 -1
  9. package/dist/{ExternalApps-CDgcn-xT.js → ExternalApps-CQgG8EfU.js} +2 -2
  10. package/dist/{ExternalApps-CDgcn-xT.js.map → ExternalApps-CQgG8EfU.js.map} +1 -1
  11. package/dist/{FavoriteList-_o1b_3M6.js → FavoriteList-BECa1X8o.js} +2 -2
  12. package/dist/{FavoriteList-_o1b_3M6.js.map → FavoriteList-BECa1X8o.js.map} +1 -1
  13. package/dist/{MarkdownComponent-HDsmEstP.js → MarkdownComponent-DqnmdXvf.js} +2 -2
  14. package/dist/{MarkdownComponent-HDsmEstP.js.map → MarkdownComponent-DqnmdXvf.js.map} +1 -1
  15. package/dist/{SearchInput-BRyM-u9n.js → SearchInput-rneHxKQw.js} +2 -2
  16. package/dist/{SearchInput-BRyM-u9n.js.map → SearchInput-rneHxKQw.js.map} +1 -1
  17. package/dist/{UnknownBlockType-DHYCEVc8.js → UnknownBlockType-cgvJbQlW.js} +2 -2
  18. package/dist/{UnknownBlockType-DHYCEVc8.js.map → UnknownBlockType-cgvJbQlW.js.map} +1 -1
  19. package/dist/{index-DjfgA8_z.js → index-Yfi6wfKI.js} +3156 -3140
  20. package/dist/index-Yfi6wfKI.js.map +1 -0
  21. package/dist/pristy-libvue.css +1 -1
  22. package/dist/pristy-libvue.es.js +22 -22
  23. package/dist/pristy-libvue.umd.js +22 -22
  24. package/dist/pristy-libvue.umd.js.map +1 -1
  25. package/dist/src/services/PdfConfigService.d.ts +32 -0
  26. package/dist/src/services/PdfConfigService.d.ts.map +1 -0
  27. package/dist/src/stores/config.d.ts +3 -0
  28. package/dist/src/stores/config.d.ts.map +1 -1
  29. package/package.json +1 -1
  30. package/dist/index-DjfgA8_z.js.map +0 -1
@@ -0,0 +1,32 @@
1
+ import { Ref, ComputedRef } from 'vue';
2
+ /**
3
+ * Build the parameters passed to pdf.js getDocument (via usePDF).
4
+ *
5
+ * Since pdf.js 5.x, JPEG2000 (and JBIG2 / ICC color) images are decoded by
6
+ * WASM modules (openjpeg.wasm, qcms_bg.wasm) that pdf.js fetches at runtime
7
+ * from `wasmUrl`. When wasmUrl is left undefined it defaults to null, so the
8
+ * worker tries to fetch "nullopenjpeg.wasm", fails, and JPEG2000 images are
9
+ * not rendered (the rest of the page still renders). We therefore point
10
+ * wasmUrl at "<BASE_URL>pdfjs/wasm/", where vite-plugin-static-copy serves the
11
+ * pdfjs-dist/wasm/* files in the consuming app.
12
+ *
13
+ * BASE_URL is the consuming app's Vite base (e.g. "/media/"). It is read from
14
+ * the ConfigStore at runtime because this library is consumed as a pre-built
15
+ * bundle, so import.meta.env.BASE_URL would be frozen to the library's own
16
+ * base instead of the app's.
17
+ *
18
+ * @param {string|object} src - A PDF URL or a DocumentInitParameters object.
19
+ * @returns {object} DocumentInitParameters including wasmUrl.
20
+ */
21
+ export function buildPdfSource(src: string | object): object;
22
+ /**
23
+ * Reactive variant of buildPdfSource for callsites that pass a ref to usePDF
24
+ * (so pdf.js reloads when the URL changes). Returns a computed that yields the
25
+ * enriched parameters when the source has a value, or null otherwise so that
26
+ * usePDF skips loading.
27
+ *
28
+ * @param {import('vue').Ref<string|object|null>} srcRef - Reactive PDF source.
29
+ * @returns {import('vue').ComputedRef<object|null>}
30
+ */
31
+ export function buildPdfSourceRef(srcRef: Ref<string | object | null>): ComputedRef<object | null>;
32
+ //# sourceMappingURL=PdfConfigService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PdfConfigService.d.ts","sourceRoot":"","sources":["../../../src/services/PdfConfigService.js"],"names":[],"mappings":";AAmBA;;;;;;;;;;;;;;;;;;GAkBG;AACH,oCAHW,MAAM,GAAC,MAAM,GACX,MAAM,CAQlB;AAED;;;;;;;;GAQG;AACH,0CAHW,OAAO,KAAK,EAAE,GAAG,CAAC,MAAM,GAAC,MAAM,GAAC,IAAI,CAAC,GACnC,OAAO,KAAK,EAAE,WAAW,CAAC,MAAM,GAAC,IAAI,CAAC,CAOlD"}
@@ -1,6 +1,7 @@
1
1
  import { StoreDefinition, PiniaCustomStateProperties } from 'pinia';
2
2
  export const useConfigStore: StoreDefinition<"ConfigStore", {
3
3
  INSTANCE_NAME: string;
4
+ BASE_URL: string;
4
5
  APP_ROOT_TITLE: string;
5
6
  ALFRESCO_HOST: string;
6
7
  ESPACES_HOST: string;
@@ -97,6 +98,7 @@ export const useConfigStore: StoreDefinition<"ConfigStore", {
97
98
  }, {
98
99
  oidc: (state: {
99
100
  INSTANCE_NAME: string;
101
+ BASE_URL: string;
100
102
  APP_ROOT_TITLE: string;
101
103
  ALFRESCO_HOST: string;
102
104
  ESPACES_HOST: string;
@@ -192,6 +194,7 @@ export const useConfigStore: StoreDefinition<"ConfigStore", {
192
194
  LIST_PROCEDURES: any[];
193
195
  } & PiniaCustomStateProperties<{
194
196
  INSTANCE_NAME: string;
197
+ BASE_URL: string;
195
198
  APP_ROOT_TITLE: string;
196
199
  ALFRESCO_HOST: string;
197
200
  ESPACES_HOST: string;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/stores/config.js"],"names":[],"mappings":";AAoBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0LI;;OAEG;;IAiBH;;;;;OAKG;0CADS,OAAO,CAAC,IAAI,CAAC;GAgC1B"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/stores/config.js"],"names":[],"mappings":";AAoBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8LI;;OAEG;;IAkBH;;;;;OAKG;0CADS,OAAO,CAAC,IAAI,CAAC;GAiC1B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pristy/pristy-libvue",
3
- "version": "2.13.1",
3
+ "version": "2.13.2",
4
4
  "description": "Core library used by all Pristy applications",
5
5
  "homepage": "https://pristy.fr/en/",
6
6
  "author": "JECI SARL",