@pristy/pristy-libvue 1.18.0 → 1.19.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.
Files changed (40) hide show
  1. package/dist/pristy-libvue.css +1 -1
  2. package/dist/pristy-libvue.es.js +4859 -4502
  3. package/dist/pristy-libvue.es.js.map +1 -1
  4. package/dist/pristy-libvue.umd.js +11 -11
  5. package/dist/pristy-libvue.umd.js.map +1 -1
  6. package/dist/src/components/navigation/ContentGridView.vue.d.ts +6 -2
  7. package/dist/src/components/navigation/ContentGridView.vue.d.ts.map +1 -1
  8. package/dist/src/components/navigation/ContentListView.vue.d.ts +6 -2
  9. package/dist/src/components/navigation/ContentListView.vue.d.ts.map +1 -1
  10. package/dist/src/components/navigation/ContentTableView.vue.d.ts +6 -2
  11. package/dist/src/components/navigation/ContentTableView.vue.d.ts.map +1 -1
  12. package/dist/src/components/navigation/DynamicContentView.vue.d.ts +18 -6
  13. package/dist/src/components/navigation/DynamicContentView.vue.d.ts.map +1 -1
  14. package/dist/src/components/navigation/PreviewPanel.vue.d.ts +22 -2
  15. package/dist/src/components/navigation/PreviewPanel.vue.d.ts.map +1 -1
  16. package/dist/src/components/viewer/ImageViewer.vue.d.ts.map +1 -1
  17. package/dist/src/components/viewer/PDFComponent.vue.d.ts +9 -2
  18. package/dist/src/components/viewer/PDFComponent.vue.d.ts.map +1 -1
  19. package/dist/src/components/viewer/PdfSkeleton.vue.d.ts +12 -0
  20. package/dist/src/components/viewer/PdfSkeleton.vue.d.ts.map +1 -0
  21. package/dist/src/composables/useCollabEditor.d.ts.map +1 -1
  22. package/dist/src/i18n/index.d.ts +6 -0
  23. package/dist/src/i18n/index.d.ts.map +1 -1
  24. package/dist/src/i18n/primevue-locale.d.ts +117 -0
  25. package/dist/src/i18n/primevue-locale.d.ts.map +1 -0
  26. package/dist/src/index.d.ts +4 -1
  27. package/dist/src/index.d.ts.map +1 -1
  28. package/dist/src/services/AlfrescoFileService.d.ts +55 -8
  29. package/dist/src/services/AlfrescoFileService.d.ts.map +1 -1
  30. package/dist/src/services/MenuService.d.ts.map +1 -1
  31. package/dist/src/services/PdfConfigService.d.ts +21 -0
  32. package/dist/src/services/PdfConfigService.d.ts.map +1 -0
  33. package/dist/src/services/PeopleService.d.ts.map +1 -1
  34. package/dist/src/services/PreviewService.d.ts +36 -0
  35. package/dist/src/services/PreviewService.d.ts.map +1 -0
  36. package/dist/src/services/WorkspaceService.d.ts.map +1 -1
  37. package/dist/src/stores/config.d.ts +3 -0
  38. package/dist/src/stores/config.d.ts.map +1 -1
  39. package/dist/src/stores/user.d.ts.map +1 -1
  40. package/package.json +8 -8
@@ -0,0 +1,36 @@
1
+ declare const _default: PreviewService;
2
+ export default _default;
3
+ /**
4
+ * Service deciding whether a node can be previewed in the browser.
5
+ *
6
+ * Some file types are rendered natively (images, videos, PDF). Every other
7
+ * type relies on a server-side "pdf" rendition produced by Alfresco's
8
+ * transform service. Asking Alfresco to create that rendition for a type it
9
+ * cannot transform (archives, binaries, ...) generates noise in the logs and
10
+ * dead-end viewers.
11
+ *
12
+ * `listRenditions` (GET /nodes/{id}/renditions) returns only the renditions
13
+ * applicable to the node's source mimetype and does NOT trigger any transform,
14
+ * so it is a cheap, side-effect-free way to know up-front whether a "pdf"
15
+ * rendition is available. Results are cached per mimetype for the session and
16
+ * are reusable across apps (espaces, marches, media, ...).
17
+ */
18
+ declare class PreviewService {
19
+ previewableByMimeType: Map<any, any>;
20
+ /**
21
+ * Types rendered directly by the front-end, without a server-side rendition.
22
+ * @param {string} mimeType
23
+ * @returns {boolean}
24
+ */
25
+ isNativelyPreviewable(mimeType: string): boolean;
26
+ /**
27
+ * Tell whether the given node can be previewed (natively or through a "pdf"
28
+ * rendition). Never throws: on error it returns false so callers can fall
29
+ * back to a download-only view.
30
+ *
31
+ * @param {object} node a node with `id` and `content.mimeType`
32
+ * @returns {Promise<boolean>}
33
+ */
34
+ isPreviewable(node: object): Promise<boolean>;
35
+ }
36
+ //# sourceMappingURL=PreviewService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PreviewService.d.ts","sourceRoot":"","sources":["../../../src/services/PreviewService.js"],"names":[],"mappings":";;AAkBA;;;;;;;;;;;;;;GAcG;AACH;IAGI,qCAAsC;IAGxC;;;;OAIG;IACH,gCAHW,MAAM,GACJ,OAAO,CAWnB;IAED;;;;;;;OAOG;IACH,oBAHW,MAAM,GACJ,OAAO,CAAC,OAAO,CAAC,CA4B5B;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"WorkspaceService.d.ts","sourceRoot":"","sources":["../../../src/services/WorkspaceService.js"],"names":[],"mappings":";;;AAqBA;;GAEG;AACH;IAEI,kCAGE;IAEJ,8BAqBC;IAED,uDAoCC;IAED;;;;OAIG;IACH,uBAFa,OAAO,CAAC,IAAI,CAAC,CAmBzB;IAED,+CAkBC;IAED,kEAeC;IAED,6DAgBC;IAED,0CAkBC;IAED,iHAWC;IAED,iHAeC;IAED;;;OAGG;IACH,gCAcC;IAED,2GAgBC;IAED,4GAgBC;IAED,qHAeC;IAED,sHAeC;IAED,6DAUC;IAED,+DAUC;IAED,iGAgBC;IAED,6FAUC;IAED;;;;;OAKG;IACH,kBAJW,MAAM,aACN,MAAM,GACJ,OAAO,OAAO,CA2C1B;IAED;;;;;;;;;;;OAWG;IACH,mBAJW,MAAM,aACN,MAAM,GACJ,OAAO,OAAO,CA8C1B;IAED,iEAMC;IAED,mFAIC;CACF;qBAldoB,WAAW"}
1
+ {"version":3,"file":"WorkspaceService.d.ts","sourceRoot":"","sources":["../../../src/services/WorkspaceService.js"],"names":[],"mappings":";;;AAqBA;;GAEG;AACH;IAEI,kCAGE;IAEJ,8BAqBC;IAED,uDAoCC;IAED;;;;OAIG;IACH,uBAFa,OAAO,CAAC,IAAI,CAAC,CAmBzB;IAED,+CAkBC;IAED,kEAeC;IAED,6DAgBC;IAED,0CAkBC;IAED,iHAWC;IAED,iHAeC;IAED;;;OAGG;IACH,gCAcC;IAED,2GAgBC;IAED,4GAgBC;IAED,qHAeC;IAED,sHAeC;IAED,6DAUC;IAED,+DAUC;IAED,iGAgBC;IAED,6FAUC;IAED;;;;;OAKG;IACH,kBAJW,MAAM,aACN,MAAM,GACJ,OAAO,OAAO,CA8C1B;IAED;;;;;;;;;;;OAWG;IACH,mBAJW,MAAM,aACN,MAAM,GACJ,OAAO,OAAO,CAkD1B;IAED,iEAMC;IAED,mFAIC;CACF;qBAzdoB,WAAW"}
@@ -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;
@@ -87,6 +88,7 @@ export const useConfigStore: StoreDefinition<"ConfigStore", {
87
88
  }, {
88
89
  oidc: (state: {
89
90
  INSTANCE_NAME: string;
91
+ BASE_URL: string;
90
92
  APP_ROOT_TITLE: string;
91
93
  ALFRESCO_HOST: string;
92
94
  ESPACES_HOST: string;
@@ -172,6 +174,7 @@ export const useConfigStore: StoreDefinition<"ConfigStore", {
172
174
  MARCHES_DIRECTIONS_MAITRESSES: any[];
173
175
  } & PiniaCustomStateProperties<{
174
176
  INSTANCE_NAME: string;
177
+ BASE_URL: string;
175
178
  APP_ROOT_TITLE: string;
176
179
  ALFRESCO_HOST: string;
177
180
  ESPACES_HOST: string;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/stores/config.js"],"names":[],"mappings":";AAoBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgLI;;OAEG;;IAiBH;;;;;OAKG;0CADS,OAAO,CAAC,IAAI,CAAC;GA+B1B"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/stores/config.js"],"names":[],"mappings":";AAoBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoLI;;OAEG;;IAkBH;;;;;OAKG;0CADS,OAAO,CAAC,IAAI,CAAC;GAgC1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/stores/user.js"],"names":[],"mappings":";AAsCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiBI;;;OAGG;cADS,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAqC7C;;;OAGG;uBADS,OAAO,CAAC;QAAC,EAAE,EAAC,MAAM,CAAA;KAAC,CAAC;IA0BhC;;;;OAIG;2BADS,OAAO,CAAC,IAAI,CAAC;IA0BzB;;;;;OAKG;6BAFQ,GAAG,GACF,OAAO,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAC,CAAC;IASjC;;;OAGG;oBADS,OAAO,CAAC;QAAC,EAAE,EAAC,MAAM,CAAA;KAAC,GAAG,SAAS,CAAC;IAwC5C;;;OAGG;iBADS,OAAO,CAAC,MAAM,CAAC;IAyC3B;;;OAGG;;IAqBH;;;;;OAKG;gBAHQ,MAAM,YACN,MAAM,GACL,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IASnC;;;;;OAKG;gBAHQ,MAAM,KACN,MAAM,GACL,OAAO,CAAC,GAAG,CAAC;IAcxB;;;OAGG;oBADS,OAAO,CAAC,IAAI,CAAC;IAUzB;;;;OAIG;2BAFQ,MAAM,GACL,OAAO,CAAC,MAAM,CAAC;GAwB5B"}
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/stores/user.js"],"names":[],"mappings":";AAsCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiBI;;;OAGG;cADS,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAqC7C;;;OAGG;uBADS,OAAO,CAAC;QAAC,EAAE,EAAC,MAAM,CAAA;KAAC,CAAC;IA0BhC;;;;OAIG;2BADS,OAAO,CAAC,IAAI,CAAC;IA0BzB;;;;;OAKG;6BAFQ,GAAG,GACF,OAAO,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAC,CAAC;IASjC;;;OAGG;oBADS,OAAO,CAAC;QAAC,EAAE,EAAC,MAAM,CAAA;KAAC,GAAG,SAAS,CAAC;IAwC5C;;;OAGG;iBADS,OAAO,CAAC,MAAM,CAAC;IAyC3B;;;OAGG;;IAoBH;;;;;OAKG;gBAHQ,MAAM,YACN,MAAM,GACL,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IASnC;;;;;OAKG;gBAHQ,MAAM,KACN,MAAM,GACL,OAAO,CAAC,GAAG,CAAC;IAcxB;;;OAGG;oBADS,OAAO,CAAC,IAAI,CAAC;IAUzB;;;;OAIG;2BAFQ,MAAM,GACL,OAAO,CAAC,MAAM,CAAC;GAwB5B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pristy/pristy-libvue",
3
- "version": "1.18.0",
3
+ "version": "1.19.1",
4
4
  "description": "Core library used by all Pristy applications",
5
5
  "homepage": "https://pristy.fr/en/",
6
6
  "author": "JECI SARL",
@@ -51,13 +51,13 @@
51
51
  "@codemirror/legacy-modes": "^6.5.3",
52
52
  "@codemirror/lint": "^6.9.7",
53
53
  "@codemirror/merge": "^6.12.2",
54
- "@codemirror/search": "^6.7.0",
54
+ "@codemirror/search": "^6.7.1",
55
55
  "@codemirror/state": "^6.6.0",
56
56
  "@codemirror/theme-one-dark": "^6.1.3",
57
57
  "@codemirror/view": "^6.43.1",
58
58
  "codemirror": "6.0.2",
59
59
  "vue": "^3.5.22",
60
- "vue-i18n": "^11.4.5",
60
+ "vue-i18n": "^11.4.6",
61
61
  "vue-router": "^4.6.4"
62
62
  },
63
63
  "resolutions": {
@@ -67,13 +67,13 @@
67
67
  "minimatch@>=10.0.0 <10.2.3": "10.2.4"
68
68
  },
69
69
  "dependencies": {
70
- "@alfresco/js-api": "^9.4.1",
70
+ "@alfresco/js-api": "^9.5.0",
71
71
  "@codemirror/language-data": "^6.5.2",
72
72
  "@tato30/vue-pdf": "^1.11.5",
73
73
  "@vueuse/core": "^12.8.2",
74
74
  "async-retry": "^1.3.3",
75
- "axios": "^1.17.0",
76
- "dompurify": "^3.4.8",
75
+ "axios": "^1.18.0",
76
+ "dompurify": "^3.4.11",
77
77
  "email-validator": "^2.0.4",
78
78
  "highlight.js": "^11.11.1",
79
79
  "keycloak-js": "^26.2.4",
@@ -84,7 +84,7 @@
84
84
  "pinia": "^2.3.1",
85
85
  "primevue": "^3.53.1",
86
86
  "quick-lru": "^7.3.0",
87
- "sanitize-html": "^2.17.4",
87
+ "sanitize-html": "^2.17.5",
88
88
  "type-check": "^0.4.0",
89
89
  "vue-draggable-next": "^2.3.0"
90
90
  },
@@ -104,7 +104,7 @@
104
104
  "jsdom": "^27.4.0",
105
105
  "prettier": "^3.8.4",
106
106
  "rollup-plugin-visualizer": "^6.0.11",
107
- "sass": "^1.100.0",
107
+ "sass": "^1.101.0",
108
108
  "svgo": "^4.0.1",
109
109
  "vite": "^7.3.5",
110
110
  "vite-plugin-dts": "^4.5.4",