@xwiki/cristal-history-ui 0.24.0 → 0.25.0

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/index.es.js CHANGED
@@ -1,7 +1,7 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode("p[data-v-4c710495]{font-size:var(--cr-font-size-medium)}table[data-v-4c710495]{border-collapse:collapse}table tr[data-v-4c710495]:hover{background-color:var(--cr-color-neutral-200)}table td[data-v-4c710495]{vertical-align:top;padding:var(--cr-spacing-small)}table td[data-v-4c710495]:first-child{border-radius:var(--cr-border-radius-medium) 0 0 var(--cr-border-radius-medium)}table td[data-v-4c710495]:last-child{border-radius:0 var(--cr-border-radius-medium) var(--cr-border-radius-medium) 0}table .history-revision-cell[data-v-4c710495]{text-align:center}table .history-revision[data-v-4c710495]{background-color:var(--cr-color-neutral-300);border-radius:var(--cr-border-radius-pill);padding:var(--cr-spacing-2x-small);font-size:var(--cr-font-size-x-small)}")),document.head.appendChild(r)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
- import { defineComponent as f, inject as T, ref as m, onMounted as C, resolveComponent as P, createElementBlock as c, openBlock as l, Fragment as p, createElementVNode as u, createCommentVNode as k, toDisplayString as d, unref as y, renderList as R, createVNode as g, createTextVNode as S, withCtx as _ } from "vue";
3
- import { name as j } from "@xwiki/cristal-document-api";
4
- import { User as E } from "@xwiki/cristal-user-ui";
1
+ (function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode("p[data-v-2d247591]{font-size:var(--cr-font-size-medium)}table[data-v-2d247591]{border-collapse:collapse}table tr[data-v-2d247591]:hover{background-color:var(--cr-color-neutral-200)}table td[data-v-2d247591]{vertical-align:top;padding:var(--cr-spacing-small)}table td[data-v-2d247591]:first-child{border-radius:var(--cr-border-radius-medium) 0 0 var(--cr-border-radius-medium)}table td[data-v-2d247591]:last-child{border-radius:0 var(--cr-border-radius-medium) var(--cr-border-radius-medium) 0}table .history-revision-cell[data-v-2d247591]{text-align:center}table .history-revision[data-v-2d247591]{background-color:var(--cr-color-neutral-300);border-radius:var(--cr-border-radius-pill);padding:var(--cr-spacing-2x-small);font-size:var(--cr-font-size-x-small)}")),document.head.appendChild(r)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
+ import { defineComponent as f, inject as T, ref as m, onMounted as C, resolveComponent as P, createElementBlock as l, openBlock as c, Fragment as p, createElementVNode as u, createCommentVNode as k, toDisplayString as d, unref as y, renderList as R, createVNode as g, createTextVNode as S, withCtx as _ } from "vue";
3
+ import { User as j } from "@xwiki/cristal-user-ui";
4
+ import { name as E } from "@xwiki/platform-document-api";
5
5
  import { useI18n as H } from "vue-i18n";
6
6
  import { AbstractExtraTab as M } from "@xwiki/cristal-extra-tabs-api";
7
7
  import { injectable as w, inject as D } from "inversify";
@@ -23,16 +23,16 @@ const L = {
23
23
  setup(e) {
24
24
  const { t } = H({
25
25
  messages: b
26
- }), r = T("cristal"), s = r.getContainer().get(j).getCurrentDocument(), n = m([]), a = m(!0);
26
+ }), r = T("cristal"), s = r.getContainer().get(E).getCurrentDocument(), n = m([]), a = m(!0);
27
27
  return C(async () => {
28
28
  s.value && (n.value = await r.getContainer().get("PageRevisionManagerProvider").get().getRevisions(s.value)), a.value = !1;
29
29
  }), (K, h) => {
30
30
  const x = P("i18n-t");
31
- return l(), c(p, null, [
32
- a.value ? (l(), c("p", O, d(y(t)("history.extraTabs.loading")), 1)) : (l(), c("p", V, d(y(t)("history.extraTabs.header", { nRevisions: n.value.length })), 1)),
31
+ return c(), l(p, null, [
32
+ a.value ? (c(), l("p", O, d(y(t)("history.extraTabs.loading")), 1)) : (c(), l("p", V, d(y(t)("history.extraTabs.header", { nRevisions: n.value.length })), 1)),
33
33
  h[1] || (h[1] = u("br", null, null, -1)),
34
- a.value ? k("", !0) : (l(), c("table", I, [
35
- (l(!0), c(p, null, R(n.value, (i) => (l(), c("tr", {
34
+ a.value ? k("", !0) : (c(), l("table", I, [
35
+ (c(!0), l(p, null, R(n.value, (i) => (c(), l("tr", {
36
36
  key: i.version
37
37
  }, [
38
38
  u("td", B, [
@@ -52,7 +52,7 @@ const L = {
52
52
  })), 9, A)
53
53
  ]),
54
54
  user: _(() => [
55
- g(y(E), {
55
+ g(y(j), {
56
56
  user: i.user
57
57
  }, null, 8, ["user"])
58
58
  ]),
@@ -71,7 +71,7 @@ const L = {
71
71
  for (const [o, s] of t)
72
72
  r[o] = s;
73
73
  return r;
74
- }, $ = /* @__PURE__ */ U(F, [["__scopeId", "data-v-4c710495"]]);
74
+ }, $ = /* @__PURE__ */ U(F, [["__scopeId", "data-v-2d247591"]]);
75
75
  var z = Object.getOwnPropertyDescriptor, G = (e, t, r, o) => {
76
76
  for (var s = o > 1 ? void 0 : o ? z(t, r) : t, n = e.length - 1, a; n >= 0; n--)
77
77
  (a = e[n]) && (s = a(s) || s);
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":["../src/translations.ts","../src/vue/HistoryTab.vue","../src/HistoryExtraTab.ts","../src/index.ts"],"sourcesContent":["/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport en from \"../langs/translation-en.json\";\nimport fr from \"../langs/translation-fr.json\";\n\nconst translations: Record<string, Record<string, string>> = {\n en,\n fr,\n};\nexport default translations;\n","<!--\n See the LICENSE file distributed with this work for additional\n information regarding copyright ownership.\n\n This is free software; you can redistribute it and/or modify it\n under the terms of the GNU Lesser General Public License as\n published by the Free Software Foundation; either version 2.1 of\n the License, or (at your option) any later version.\n\n This software is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this software; if not, write to the Free\n Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script setup lang=\"ts\">\nimport messages from \"../translations\";\nimport { name as documentServiceName } from \"@xwiki/cristal-document-api\";\nimport { User } from \"@xwiki/cristal-user-ui\";\nimport { inject, onMounted, ref } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nimport type { CristalApp, PageData } from \"@xwiki/cristal-api\";\nimport type { DocumentService } from \"@xwiki/cristal-document-api\";\nimport type {\n PageRevision,\n PageRevisionManagerProvider,\n} from \"@xwiki/cristal-history-api\";\nimport type { Ref } from \"vue\";\n\nconst { t } = useI18n({\n messages,\n});\nconst cristal: CristalApp = inject<CristalApp>(\"cristal\")!;\nconst documentService = cristal\n .getContainer()\n .get<DocumentService>(documentServiceName);\nconst currentPage: Ref<PageData | undefined> =\n documentService.getCurrentDocument();\nconst revisions: Ref<Array<PageRevision>> = ref([]);\nconst isLoading: Ref<boolean> = ref(true);\n\nonMounted(async () => {\n if (currentPage.value) {\n revisions.value = await cristal\n .getContainer()\n .get<PageRevisionManagerProvider>(\"PageRevisionManagerProvider\")\n .get()\n .getRevisions(currentPage.value);\n }\n isLoading.value = false;\n});\n</script>\n\n<template>\n <p v-if=\"isLoading\">{{ t(\"history.extraTabs.loading\") }}</p>\n <p v-else>\n {{ t(\"history.extraTabs.header\", { nRevisions: revisions.length }) }}\n </p>\n <br />\n <table v-if=\"!isLoading\">\n <tr v-for=\"revision of revisions\" :key=\"revision.version\">\n <td class=\"history-revision-cell\">\n <span class=\"history-revision\">{{ revision.version }}</span>\n </td>\n <td>\n <i18n-t keypath=\"history.extraTabs.entry\" tag=\"span\">\n <template #date>\n <a :href=\"revision.url\">{{\n revision.date.toLocaleString(undefined, {\n dateStyle: \"short\",\n timeStyle: \"short\",\n })\n }}</a>\n </template>\n <template #user>\n <user :user=\"revision.user\" />\n </template>\n </i18n-t>\n <br />\n {{ revision.comment }}\n </td>\n </tr>\n </table>\n</template>\n\n<style scoped>\np {\n font-size: var(--cr-font-size-medium);\n}\ntable {\n border-collapse: collapse;\n}\ntable tr:hover {\n background-color: var(--cr-color-neutral-200);\n}\ntable td {\n vertical-align: top;\n padding: var(--cr-spacing-small);\n}\ntable td:first-child {\n border-radius: var(--cr-border-radius-medium) 0 0\n var(--cr-border-radius-medium);\n}\ntable td:last-child {\n border-radius: 0 var(--cr-border-radius-medium) var(--cr-border-radius-medium)\n 0;\n}\ntable .history-revision-cell {\n text-align: center;\n}\ntable .history-revision {\n background-color: var(--cr-color-neutral-300);\n border-radius: var(--cr-border-radius-pill);\n padding: var(--cr-spacing-2x-small);\n font-size: var(--cr-font-size-x-small);\n}\n</style>\n","/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport messages from \"./translations\";\nimport HistoryTab from \"./vue/HistoryTab.vue\";\nimport { AbstractExtraTab } from \"@xwiki/cristal-extra-tabs-api\";\nimport { inject, injectable } from \"inversify\";\nimport type { PageRevisionManagerProvider } from \"@xwiki/cristal-history-api\";\nimport type { Component } from \"vue\";\n\n@injectable()\nexport class HistoryExtraTab extends AbstractExtraTab {\n title: string;\n\n constructor(\n @inject(\"PageRevisionManagerProvider\")\n private readonly pageRevisionManagerProvider: PageRevisionManagerProvider,\n ) {\n super(messages);\n this.title = this.t(\"history.extraTabs.title\");\n }\n\n order = 3000;\n id = \"history\";\n\n async panel(): Promise<Component> {\n return HistoryTab;\n }\n\n override async enabled(): Promise<boolean> {\n return this.pageRevisionManagerProvider.has();\n }\n}\n","/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport { HistoryExtraTab } from \"./HistoryExtraTab\";\nimport type { ExtraTab } from \"@xwiki/cristal-extra-tabs-api\";\nimport type { Container } from \"inversify\";\n\n/**\n * @beta\n */\nexport class ComponentInit {\n constructor(container: Container) {\n container.bind<ExtraTab>(\"ExtraTab\").to(HistoryExtraTab).inSingletonScope();\n }\n}\n"],"names":["translations","en","fr","useI18n","messages","cristal","inject","currentPage","documentServiceName","revisions","ref","isLoading","onMounted","_openBlock","_createElementBlock","_unref","_hoisted_2","_toDisplayString","_createElementVNode","_hoisted_3","_Fragment","_renderList","revision","_hoisted_4","_hoisted_5","_createVNode","_component_i18n_t","User","HistoryExtraTab","AbstractExtraTab","pageR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R,EAKM,KAAA;AAAA,oBALF,MAAMI,EAAS;AAAA,kBAAA,GACjBL,EAAAK,EAAS,KAAK,eAAe,QAAS;AAAA;;;;gBAM/B,QACT,MAA8B;AAAA,kBAA9BG,EAA8BV,EAAAY,CAAA,GAAA;AAAA,oBAAvB,MAAML,EAAS;AAAA,kBAAA;;;;8BAG1BJ,EAAM,MAAA,MAAA,MAAA,EAAA;AAAA,gBAAA,MACND,EAAGK,EAAS,OAAO,GAAA,CAAA;AAAA,YAAA;;;;;;;;;;;;;;;;;ACvDpB,IAAMM,IAAN,cAA8BC,EAAiB;AAAA,EAGpD,YAEmBC,GACjB;AACA,UAAM1B,CAAQ,GAFG,KAAA,8BAAA0B,GAGjB,KAAK,QAAQ,KAAK,EAAE,yBAAyB;AAAA,EAC/C;AAAA,EARA;AAAA,EAUA,QAAQ;AAAA,EACR,KAAK;AAAA,EAEL,MAAM,QAA4B;AAChC,WAAOC;AAAA,EACT;AAAA,EAEA,MAAe,UAA4B;AACzC,WAAO,KAAK,4BAA4B,IAAA;AAAA,EAC1C;AACF;AArBaH,IAANI,EAAA;AAAA,EADNC,EAAA;AAAA,EAKIC,OAAO,6BAA6B,CAAA;AAAA,GAJ5BN,CAAA;ACDN,MAAMO,GAAc;AAAA,EACzB,YAAYC,GAAsB;AAChC,IAAAA,EAAU,KAAe,UAAU,EAAE,GAAGR,CAAe,EAAE,iBAAA;AAAA,EAC3D;AACF;"}
1
+ {"version":3,"file":"index.es.js","sources":["../src/translations.ts","../src/vue/HistoryTab.vue","../src/HistoryExtraTab.ts","../src/index.ts"],"sourcesContent":["/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport en from \"../langs/translation-en.json\";\nimport fr from \"../langs/translation-fr.json\";\n\nconst translations: Record<string, Record<string, string>> = {\n en,\n fr,\n};\nexport default translations;\n","<!--\n See the LICENSE file distributed with this work for additional\n information regarding copyright ownership.\n\n This is free software; you can redistribute it and/or modify it\n under the terms of the GNU Lesser General Public License as\n published by the Free Software Foundation; either version 2.1 of\n the License, or (at your option) any later version.\n\n This software is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this software; if not, write to the Free\n Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script setup lang=\"ts\">\nimport messages from \"../translations\";\nimport { User } from \"@xwiki/cristal-user-ui\";\nimport { name as documentServiceName } from \"@xwiki/platform-document-api\";\nimport { inject, onMounted, ref } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nimport type {\n PageRevision,\n PageRevisionManagerProvider,\n} from \"@xwiki/cristal-history-api\";\nimport type { CristalApp, PageData } from \"@xwiki/platform-api\";\nimport type { DocumentService } from \"@xwiki/platform-document-api\";\nimport type { Ref } from \"vue\";\n\nconst { t } = useI18n({\n messages,\n});\nconst cristal: CristalApp = inject<CristalApp>(\"cristal\")!;\nconst documentService = cristal\n .getContainer()\n .get<DocumentService>(documentServiceName);\nconst currentPage: Ref<PageData | undefined> =\n documentService.getCurrentDocument();\nconst revisions: Ref<Array<PageRevision>> = ref([]);\nconst isLoading: Ref<boolean> = ref(true);\n\nonMounted(async () => {\n if (currentPage.value) {\n revisions.value = await cristal\n .getContainer()\n .get<PageRevisionManagerProvider>(\"PageRevisionManagerProvider\")\n .get()\n .getRevisions(currentPage.value);\n }\n isLoading.value = false;\n});\n</script>\n\n<template>\n <p v-if=\"isLoading\">{{ t(\"history.extraTabs.loading\") }}</p>\n <p v-else>\n {{ t(\"history.extraTabs.header\", { nRevisions: revisions.length }) }}\n </p>\n <br />\n <table v-if=\"!isLoading\">\n <tr v-for=\"revision of revisions\" :key=\"revision.version\">\n <td class=\"history-revision-cell\">\n <span class=\"history-revision\">{{ revision.version }}</span>\n </td>\n <td>\n <i18n-t keypath=\"history.extraTabs.entry\" tag=\"span\">\n <template #date>\n <a :href=\"revision.url\">{{\n revision.date.toLocaleString(undefined, {\n dateStyle: \"short\",\n timeStyle: \"short\",\n })\n }}</a>\n </template>\n <template #user>\n <user :user=\"revision.user\" />\n </template>\n </i18n-t>\n <br />\n {{ revision.comment }}\n </td>\n </tr>\n </table>\n</template>\n\n<style scoped>\np {\n font-size: var(--cr-font-size-medium);\n}\ntable {\n border-collapse: collapse;\n}\ntable tr:hover {\n background-color: var(--cr-color-neutral-200);\n}\ntable td {\n vertical-align: top;\n padding: var(--cr-spacing-small);\n}\ntable td:first-child {\n border-radius: var(--cr-border-radius-medium) 0 0\n var(--cr-border-radius-medium);\n}\ntable td:last-child {\n border-radius: 0 var(--cr-border-radius-medium) var(--cr-border-radius-medium)\n 0;\n}\ntable .history-revision-cell {\n text-align: center;\n}\ntable .history-revision {\n background-color: var(--cr-color-neutral-300);\n border-radius: var(--cr-border-radius-pill);\n padding: var(--cr-spacing-2x-small);\n font-size: var(--cr-font-size-x-small);\n}\n</style>\n","/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport messages from \"./translations\";\nimport HistoryTab from \"./vue/HistoryTab.vue\";\nimport { AbstractExtraTab } from \"@xwiki/cristal-extra-tabs-api\";\nimport { inject, injectable } from \"inversify\";\nimport type { PageRevisionManagerProvider } from \"@xwiki/cristal-history-api\";\nimport type { Component } from \"vue\";\n\n@injectable()\nexport class HistoryExtraTab extends AbstractExtraTab {\n title: string;\n\n constructor(\n @inject(\"PageRevisionManagerProvider\")\n private readonly pageRevisionManagerProvider: PageRevisionManagerProvider,\n ) {\n super(messages);\n this.title = this.t(\"history.extraTabs.title\");\n }\n\n order = 3000;\n id = \"history\";\n\n async panel(): Promise<Component> {\n return HistoryTab;\n }\n\n override async enabled(): Promise<boolean> {\n return this.pageRevisionManagerProvider.has();\n }\n}\n","/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport { HistoryExtraTab } from \"./HistoryExtraTab\";\nimport type { ExtraTab } from \"@xwiki/cristal-extra-tabs-api\";\nimport type { Container } from \"inversify\";\n\n/**\n * @beta\n */\nexport class ComponentInit {\n constructor(container: Container) {\n container.bind<ExtraTab>(\"ExtraTab\").to(HistoryExtraTab).inSingletonScope();\n }\n}\n"],"names":["translations","en","fr","useI18n","messages","cristal","inject","currentPage","documentServiceName","revisions","ref","isLoading","onMounted","_openBlock","_createElementBlock","_unref","_hoisted_2","_toDisplayString","_createElementVNode","_hoisted_3","_Fragment","_renderList","revision","_hoisted_4","_hoisted_5","_createVNode","_component_i18n_t","User","HistoryExtraTab","AbstractExtraTab","pageRevisionManagerProvider","HistoryTab","__decorateClass","injectable","__decorateParam","ComponentInit","container"],"mappings":";;;;;;;;;;;;;;;;GAuBMA,IAAuD;AAAA,EAC3D,IAAAC;AAAA,EACA,IAAAC;AACF;;;ACOA,UAAM,EAAE,EAAA,IAAMC,EAAQ;AAAA,MAAA,UACpBC;AAAAA,IAAA,CACD,GACKC,IAAsBC,EAAmB,SAAS,GAIlDC,IAHkBF,EACrB,aAAA,EACA,IAAqBG,CAAmB,EAEzB,mBAAA,GACZC,IAAsCC,EAAI,EAAE,GAC5CC,IAA0BD,EAAI,EAAI;AAExC,WAAAE,EAAU,YAAY;AACpB,MAAIL,EAAY,UACdE,EAAU,QAAQ,MAAMJ,EACrB,aAAA,EACA,IAAiC,6BAA6B,EAC9D,IAAA,EACA,aAAaE,EAAY,KAAK,IAEnCI,EAAU,QAAQ;AAAA,IACpB,CAAC;;;QAIUA,EAAA,SAATE,EAAA,GAAAC,EAA4D,UAArCC,EAAA,CAAA,EAAC,2BAAA,CAAA,GAAA,CAAA,MACxBF,EAAA,GAAAC,EAEI,KAAAE,GAAAC,EADCF,EAAA,CAAA,EAAC,4BAAA,EAAA,YAA2CN,EAAA,MAAU,OAAA,CAAM,CAAA,GAAA,CAAA;AAAA,wBAEjES,EAAM,MAAA,MAAA,MAAA,EAAA;AAAA,QACQP,EAAA,0BAAdG,EAuBQ,SAAAK,GAAA;AAAA,kBAtBNL,EAqBKM,GAAA,MAAAC,EArBkBZ,EAAA,OAAS,CAArBa,YAAXR,EAqBK,MAAA;AAAA,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"u"){var r=document.createElement("style");r.appendChild(document.createTextNode("p[data-v-4c710495]{font-size:var(--cr-font-size-medium)}table[data-v-4c710495]{border-collapse:collapse}table tr[data-v-4c710495]:hover{background-color:var(--cr-color-neutral-200)}table td[data-v-4c710495]{vertical-align:top;padding:var(--cr-spacing-small)}table td[data-v-4c710495]:first-child{border-radius:var(--cr-border-radius-medium) 0 0 var(--cr-border-radius-medium)}table td[data-v-4c710495]:last-child{border-radius:0 var(--cr-border-radius-medium) var(--cr-border-radius-medium) 0}table .history-revision-cell[data-v-4c710495]{text-align:center}table .history-revision[data-v-4c710495]{background-color:var(--cr-color-neutral-300);border-radius:var(--cr-border-radius-pill);padding:var(--cr-spacing-2x-small);font-size:var(--cr-font-size-x-small)}")),document.head.appendChild(r)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
- (function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@xwiki/cristal-document-api"),require("@xwiki/cristal-user-ui"),require("vue-i18n"),require("@xwiki/cristal-extra-tabs-api"),require("inversify")):typeof define=="function"&&define.amd?define(["exports","vue","@xwiki/cristal-document-api","@xwiki/cristal-user-ui","vue-i18n","@xwiki/cristal-extra-tabs-api","inversify"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t["cristal_history-ui"]={},t.Vue,t.cristalDocumentApi,t.cristalUserUi,t.vueI18n,t.cristalExtraTabsApi,t.inversify))})(this,(function(t,e,h,b,g,_,u){"use strict";var m=document.createElement("style");m.textContent=`p[data-v-4c710495]{font-size:var(--cr-font-size-medium)}table[data-v-4c710495]{border-collapse:collapse}table tr[data-v-4c710495]:hover{background-color:var(--cr-color-neutral-200)}table td[data-v-4c710495]{vertical-align:top;padding:var(--cr-spacing-small)}table td[data-v-4c710495]:first-child{border-radius:var(--cr-border-radius-medium) 0 0 var(--cr-border-radius-medium)}table td[data-v-4c710495]:last-child{border-radius:0 var(--cr-border-radius-medium) var(--cr-border-radius-medium) 0}table .history-revision-cell[data-v-4c710495]{text-align:center}table .history-revision[data-v-4c710495]{background-color:var(--cr-color-neutral-300);border-radius:var(--cr-border-radius-pill);padding:var(--cr-spacing-2x-small);font-size:var(--cr-font-size-x-small)}
3
- /*$vite$:1*/`,document.head.appendChild(m);const y={en:{"history.extraTabs.title":"History","history.extraTabs.loading":"Loading...","history.extraTabs.header":"This page has {nRevisions} versions stored.","history.extraTabs.entry":"{date} by {user}"},fr:{"history.extraTabs.title":"Historique","history.extraTabs.loading":"Chargement en cours ...","history.extraTabs.header":"Ce document a {nRevisions} versions stockées.","history.extraTabs.entry":"{date} par {user}"}},f={key:0},x={key:1},v={key:2},k={class:"history-revision-cell"},T={class:"history-revision"},E=["href"],C=((r,a)=>{const i=r.__vccOpts||r;for(const[s,n]of a)i[s]=n;return i})(e.defineComponent({__name:"HistoryTab",setup(r){const{t:a}=g.useI18n({messages:y}),i=e.inject("cristal"),n=i.getContainer().get(h.name).getCurrentDocument(),o=e.ref([]),c=e.ref(!0);return e.onMounted(async()=>{n.value&&(o.value=await i.getContainer().get("PageRevisionManagerProvider").get().getRevisions(n.value)),c.value=!1}),(j,d)=>{const V=e.resolveComponent("i18n-t");return e.openBlock(),e.createElementBlock(e.Fragment,null,[c.value?(e.openBlock(),e.createElementBlock("p",f,e.toDisplayString(e.unref(a)("history.extraTabs.loading")),1)):(e.openBlock(),e.createElementBlock("p",x,e.toDisplayString(e.unref(a)("history.extraTabs.header",{nRevisions:o.value.length})),1)),d[1]||(d[1]=e.createElementVNode("br",null,null,-1)),c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("table",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,l=>(e.openBlock(),e.createElementBlock("tr",{key:l.version},[e.createElementVNode("td",k,[e.createElementVNode("span",T,e.toDisplayString(l.version),1)]),e.createElementVNode("td",null,[e.createVNode(V,{keypath:"history.extraTabs.entry",tag:"span"},{date:e.withCtx(()=>[e.createElementVNode("a",{href:l.url},e.toDisplayString(l.date.toLocaleString(void 0,{dateStyle:"short",timeStyle:"short"})),9,E)]),user:e.withCtx(()=>[e.createVNode(e.unref(b.User),{user:l.user},null,8,["user"])]),_:2},1024),d[0]||(d[0]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(" "+e.toDisplayString(l.comment),1)])]))),128))]))],64)}}}),[["__scopeId","data-v-4c710495"]]);var S=Object.getOwnPropertyDescriptor,B=(r,a,i,s)=>{for(var n=s>1?void 0:s?S(a,i):a,o=r.length-1,c;o>=0;o--)(c=r[o])&&(n=c(n)||n);return n},w=(r,a)=>(i,s)=>a(i,s,r);let p=class extends _.AbstractExtraTab{constructor(r){super(y),this.pageRevisionManagerProvider=r,this.title=this.t("history.extraTabs.title")}title;order=3e3;id="history";async panel(){return C}async enabled(){return this.pageRevisionManagerProvider.has()}};p=B([u.injectable(),w(0,u.inject("PageRevisionManagerProvider"))],p);class P{constructor(a){a.bind("ExtraTab").to(p).inSingletonScope()}}t.ComponentInit=P,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode("p[data-v-2d247591]{font-size:var(--cr-font-size-medium)}table[data-v-2d247591]{border-collapse:collapse}table tr[data-v-2d247591]:hover{background-color:var(--cr-color-neutral-200)}table td[data-v-2d247591]{vertical-align:top;padding:var(--cr-spacing-small)}table td[data-v-2d247591]:first-child{border-radius:var(--cr-border-radius-medium) 0 0 var(--cr-border-radius-medium)}table td[data-v-2d247591]:last-child{border-radius:0 var(--cr-border-radius-medium) var(--cr-border-radius-medium) 0}table .history-revision-cell[data-v-2d247591]{text-align:center}table .history-revision[data-v-2d247591]{background-color:var(--cr-color-neutral-300);border-radius:var(--cr-border-radius-pill);padding:var(--cr-spacing-2x-small);font-size:var(--cr-font-size-x-small)}")),document.head.appendChild(r)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
+ (function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@xwiki/cristal-user-ui"),require("@xwiki/platform-document-api"),require("vue-i18n"),require("@xwiki/cristal-extra-tabs-api"),require("inversify")):typeof define=="function"&&define.amd?define(["exports","vue","@xwiki/cristal-user-ui","@xwiki/platform-document-api","vue-i18n","@xwiki/cristal-extra-tabs-api","inversify"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t["cristal_history-ui"]={},t.Vue,t.cristalUserUi,t.platformDocumentApi,t.vueI18n,t.cristalExtraTabsApi,t.inversify))})(this,(function(t,e,h,b,g,_,m){"use strict";var u=document.createElement("style");u.textContent=`p[data-v-2d247591]{font-size:var(--cr-font-size-medium)}table[data-v-2d247591]{border-collapse:collapse}table tr[data-v-2d247591]:hover{background-color:var(--cr-color-neutral-200)}table td[data-v-2d247591]{vertical-align:top;padding:var(--cr-spacing-small)}table td[data-v-2d247591]:first-child{border-radius:var(--cr-border-radius-medium) 0 0 var(--cr-border-radius-medium)}table td[data-v-2d247591]:last-child{border-radius:0 var(--cr-border-radius-medium) var(--cr-border-radius-medium) 0}table .history-revision-cell[data-v-2d247591]{text-align:center}table .history-revision[data-v-2d247591]{background-color:var(--cr-color-neutral-300);border-radius:var(--cr-border-radius-pill);padding:var(--cr-spacing-2x-small);font-size:var(--cr-font-size-x-small)}
3
+ /*$vite$:1*/`,document.head.appendChild(u);const y={en:{"history.extraTabs.title":"History","history.extraTabs.loading":"Loading...","history.extraTabs.header":"This page has {nRevisions} versions stored.","history.extraTabs.entry":"{date} by {user}"},fr:{"history.extraTabs.title":"Historique","history.extraTabs.loading":"Chargement en cours ...","history.extraTabs.header":"Ce document a {nRevisions} versions stockées.","history.extraTabs.entry":"{date} par {user}"}},f={key:0},x={key:1},v={key:2},k={class:"history-revision-cell"},T={class:"history-revision"},E=["href"],C=((r,a)=>{const n=r.__vccOpts||r;for(const[o,i]of a)n[o]=i;return n})(e.defineComponent({__name:"HistoryTab",setup(r){const{t:a}=g.useI18n({messages:y}),n=e.inject("cristal"),i=n.getContainer().get(b.name).getCurrentDocument(),s=e.ref([]),c=e.ref(!0);return e.onMounted(async()=>{i.value&&(s.value=await n.getContainer().get("PageRevisionManagerProvider").get().getRevisions(i.value)),c.value=!1}),(j,d)=>{const V=e.resolveComponent("i18n-t");return e.openBlock(),e.createElementBlock(e.Fragment,null,[c.value?(e.openBlock(),e.createElementBlock("p",f,e.toDisplayString(e.unref(a)("history.extraTabs.loading")),1)):(e.openBlock(),e.createElementBlock("p",x,e.toDisplayString(e.unref(a)("history.extraTabs.header",{nRevisions:s.value.length})),1)),d[1]||(d[1]=e.createElementVNode("br",null,null,-1)),c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("table",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,l=>(e.openBlock(),e.createElementBlock("tr",{key:l.version},[e.createElementVNode("td",k,[e.createElementVNode("span",T,e.toDisplayString(l.version),1)]),e.createElementVNode("td",null,[e.createVNode(V,{keypath:"history.extraTabs.entry",tag:"span"},{date:e.withCtx(()=>[e.createElementVNode("a",{href:l.url},e.toDisplayString(l.date.toLocaleString(void 0,{dateStyle:"short",timeStyle:"short"})),9,E)]),user:e.withCtx(()=>[e.createVNode(e.unref(h.User),{user:l.user},null,8,["user"])]),_:2},1024),d[0]||(d[0]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(" "+e.toDisplayString(l.comment),1)])]))),128))]))],64)}}}),[["__scopeId","data-v-2d247591"]]);var S=Object.getOwnPropertyDescriptor,B=(r,a,n,o)=>{for(var i=o>1?void 0:o?S(a,n):a,s=r.length-1,c;s>=0;s--)(c=r[s])&&(i=c(i)||i);return i},w=(r,a)=>(n,o)=>a(n,o,r);let p=class extends _.AbstractExtraTab{constructor(r){super(y),this.pageRevisionManagerProvider=r,this.title=this.t("history.extraTabs.title")}title;order=3e3;id="history";async panel(){return C}async enabled(){return this.pageRevisionManagerProvider.has()}};p=B([m.injectable(),w(0,m.inject("PageRevisionManagerProvider"))],p);class P{constructor(a){a.bind("ExtraTab").to(p).inSingletonScope()}}t.ComponentInit=P,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}));
4
4
  //# sourceMappingURL=index.umd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.umd.js","sources":["../src/translations.ts","../src/vue/HistoryTab.vue","../src/HistoryExtraTab.ts","../src/index.ts"],"sourcesContent":["/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport en from \"../langs/translation-en.json\";\nimport fr from \"../langs/translation-fr.json\";\n\nconst translations: Record<string, Record<string, string>> = {\n en,\n fr,\n};\nexport default translations;\n","<!--\n See the LICENSE file distributed with this work for additional\n information regarding copyright ownership.\n\n This is free software; you can redistribute it and/or modify it\n under the terms of the GNU Lesser General Public License as\n published by the Free Software Foundation; either version 2.1 of\n the License, or (at your option) any later version.\n\n This software is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this software; if not, write to the Free\n Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script setup lang=\"ts\">\nimport messages from \"../translations\";\nimport { name as documentServiceName } from \"@xwiki/cristal-document-api\";\nimport { User } from \"@xwiki/cristal-user-ui\";\nimport { inject, onMounted, ref } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nimport type { CristalApp, PageData } from \"@xwiki/cristal-api\";\nimport type { DocumentService } from \"@xwiki/cristal-document-api\";\nimport type {\n PageRevision,\n PageRevisionManagerProvider,\n} from \"@xwiki/cristal-history-api\";\nimport type { Ref } from \"vue\";\n\nconst { t } = useI18n({\n messages,\n});\nconst cristal: CristalApp = inject<CristalApp>(\"cristal\")!;\nconst documentService = cristal\n .getContainer()\n .get<DocumentService>(documentServiceName);\nconst currentPage: Ref<PageData | undefined> =\n documentService.getCurrentDocument();\nconst revisions: Ref<Array<PageRevision>> = ref([]);\nconst isLoading: Ref<boolean> = ref(true);\n\nonMounted(async () => {\n if (currentPage.value) {\n revisions.value = await cristal\n .getContainer()\n .get<PageRevisionManagerProvider>(\"PageRevisionManagerProvider\")\n .get()\n .getRevisions(currentPage.value);\n }\n isLoading.value = false;\n});\n</script>\n\n<template>\n <p v-if=\"isLoading\">{{ t(\"history.extraTabs.loading\") }}</p>\n <p v-else>\n {{ t(\"history.extraTabs.header\", { nRevisions: revisions.length }) }}\n </p>\n <br />\n <table v-if=\"!isLoading\">\n <tr v-for=\"revision of revisions\" :key=\"revision.version\">\n <td class=\"history-revision-cell\">\n <span class=\"history-revision\">{{ revision.version }}</span>\n </td>\n <td>\n <i18n-t keypath=\"history.extraTabs.entry\" tag=\"span\">\n <template #date>\n <a :href=\"revision.url\">{{\n revision.date.toLocaleString(undefined, {\n dateStyle: \"short\",\n timeStyle: \"short\",\n })\n }}</a>\n </template>\n <template #user>\n <user :user=\"revision.user\" />\n </template>\n </i18n-t>\n <br />\n {{ revision.comment }}\n </td>\n </tr>\n </table>\n</template>\n\n<style scoped>\np {\n font-size: var(--cr-font-size-medium);\n}\ntable {\n border-collapse: collapse;\n}\ntable tr:hover {\n background-color: var(--cr-color-neutral-200);\n}\ntable td {\n vertical-align: top;\n padding: var(--cr-spacing-small);\n}\ntable td:first-child {\n border-radius: var(--cr-border-radius-medium) 0 0\n var(--cr-border-radius-medium);\n}\ntable td:last-child {\n border-radius: 0 var(--cr-border-radius-medium) var(--cr-border-radius-medium)\n 0;\n}\ntable .history-revision-cell {\n text-align: center;\n}\ntable .history-revision {\n background-color: var(--cr-color-neutral-300);\n border-radius: var(--cr-border-radius-pill);\n padding: var(--cr-spacing-2x-small);\n font-size: var(--cr-font-size-x-small);\n}\n</style>\n","/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport messages from \"./translations\";\nimport HistoryTab from \"./vue/HistoryTab.vue\";\nimport { AbstractExtraTab } from \"@xwiki/cristal-extra-tabs-api\";\nimport { inject, injectable } from \"inversify\";\nimport type { PageRevisionManagerProvider } from \"@xwiki/cristal-history-api\";\nimport type { Component } from \"vue\";\n\n@injectable()\nexport class HistoryExtraTab extends AbstractExtraTab {\n title: string;\n\n constructor(\n @inject(\"PageRevisionManagerProvider\")\n private readonly pageRevisionManagerProvider: PageRevisionManagerProvider,\n ) {\n super(messages);\n this.title = this.t(\"history.extraTabs.title\");\n }\n\n order = 3000;\n id = \"history\";\n\n async panel(): Promise<Component> {\n return HistoryTab;\n }\n\n override async enabled(): Promise<boolean> {\n return this.pageRevisionManagerProvider.has();\n }\n}\n","/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport { HistoryExtraTab } from \"./HistoryExtraTab\";\nimport type { ExtraTab } from \"@xwiki/cristal-extra-tabs-api\";\nimport type { Container } from \"inversify\";\n\n/**\n * @beta\n */\nexport class ComponentInit {\n constructor(container: Container) {\n container.bind<ExtraTab>(\"ExtraTab\").to(HistoryExtraTab).inSingletonScope();\n }\n}\n"],"names":["translations","t","useI18n","messages","cristal","inject","currentPage","documentServiceName","revisions","ref","isLoading","onMounted","_openBlock","_createElementBlock","_unref","_hoisted_2","_toDisplayString","_createElementVNode","_hoisted_3","_Fragment","_renderList","revision","_hoisted_4","_hoisted_5","_createVNode","_component_i18n_t","User","HistoryExtraTab","AbstractExtraTab","pageRevisionManagerProvider","HistoryTab","__decorateClass","injectable","__decorateParam","ComponentInit","container"],"mappings":";2CAuBA,MAAMA,EAAuD,CAC3D,wMACA,0NACF,iOCOA,KAAM,CAAE,EAAAC,CAAA,EAAMC,UAAQ,CAAA,SACpBC,CAAA,CACD,EACKC,EAAsBC,EAAAA,OAAmB,SAAS,EAIlDC,EAHkBF,EACrB,aAAA,EACA,IAAqBG,EAAAA,IAAmB,EAEzB,mBAAA,EACZC,EAAsCC,EAAAA,IAAI,EAAE,EAC5CC,EAA0BD,EAAAA,IAAI,EAAI,EAExCE,OAAAA,EAAAA,UAAU,SAAY,CAChBL,EAAY,QACdE,EAAU,MAAQ,MAAMJ,EACrB,aAAA,EACA,IAAiC,6BAA6B,EAC9D,IAAA,EACA,aAAaE,EAAY,KAAK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MAUA,MAAQ,IACR,GAAK,UAEL,MAAM,OAA4B,CAChC,OAAOC,CACT,CAEA,MAAe,SAA4B,CACzC,OAAO,KAAK,4BAA4B,IAAA,CAC1C,CACF,EArBaH,EAANI,EAAA,CADNC,aAAA,EAKIC,aAAO,6BAA6B,CAAA,CAAA,EAJ5BN,CAAA,ECDN,MAAMO,CAAc,CACzB,YAAYC,EAAsB,CAChCA,EAAU,KAAe,UAAU,EAAE,GAAGR,CAAe,EAAE,iBAAA,CAC3D,CACF"}
1
+ {"version":3,"file":"index.umd.js","sources":["../src/translations.ts","../src/vue/HistoryTab.vue","../src/HistoryExtraTab.ts","../src/index.ts"],"sourcesContent":["/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport en from \"../langs/translation-en.json\";\nimport fr from \"../langs/translation-fr.json\";\n\nconst translations: Record<string, Record<string, string>> = {\n en,\n fr,\n};\nexport default translations;\n","<!--\n See the LICENSE file distributed with this work for additional\n information regarding copyright ownership.\n\n This is free software; you can redistribute it and/or modify it\n under the terms of the GNU Lesser General Public License as\n published by the Free Software Foundation; either version 2.1 of\n the License, or (at your option) any later version.\n\n This software is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this software; if not, write to the Free\n Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script setup lang=\"ts\">\nimport messages from \"../translations\";\nimport { User } from \"@xwiki/cristal-user-ui\";\nimport { name as documentServiceName } from \"@xwiki/platform-document-api\";\nimport { inject, onMounted, ref } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nimport type {\n PageRevision,\n PageRevisionManagerProvider,\n} from \"@xwiki/cristal-history-api\";\nimport type { CristalApp, PageData } from \"@xwiki/platform-api\";\nimport type { DocumentService } from \"@xwiki/platform-document-api\";\nimport type { Ref } from \"vue\";\n\nconst { t } = useI18n({\n messages,\n});\nconst cristal: CristalApp = inject<CristalApp>(\"cristal\")!;\nconst documentService = cristal\n .getContainer()\n .get<DocumentService>(documentServiceName);\nconst currentPage: Ref<PageData | undefined> =\n documentService.getCurrentDocument();\nconst revisions: Ref<Array<PageRevision>> = ref([]);\nconst isLoading: Ref<boolean> = ref(true);\n\nonMounted(async () => {\n if (currentPage.value) {\n revisions.value = await cristal\n .getContainer()\n .get<PageRevisionManagerProvider>(\"PageRevisionManagerProvider\")\n .get()\n .getRevisions(currentPage.value);\n }\n isLoading.value = false;\n});\n</script>\n\n<template>\n <p v-if=\"isLoading\">{{ t(\"history.extraTabs.loading\") }}</p>\n <p v-else>\n {{ t(\"history.extraTabs.header\", { nRevisions: revisions.length }) }}\n </p>\n <br />\n <table v-if=\"!isLoading\">\n <tr v-for=\"revision of revisions\" :key=\"revision.version\">\n <td class=\"history-revision-cell\">\n <span class=\"history-revision\">{{ revision.version }}</span>\n </td>\n <td>\n <i18n-t keypath=\"history.extraTabs.entry\" tag=\"span\">\n <template #date>\n <a :href=\"revision.url\">{{\n revision.date.toLocaleString(undefined, {\n dateStyle: \"short\",\n timeStyle: \"short\",\n })\n }}</a>\n </template>\n <template #user>\n <user :user=\"revision.user\" />\n </template>\n </i18n-t>\n <br />\n {{ revision.comment }}\n </td>\n </tr>\n </table>\n</template>\n\n<style scoped>\np {\n font-size: var(--cr-font-size-medium);\n}\ntable {\n border-collapse: collapse;\n}\ntable tr:hover {\n background-color: var(--cr-color-neutral-200);\n}\ntable td {\n vertical-align: top;\n padding: var(--cr-spacing-small);\n}\ntable td:first-child {\n border-radius: var(--cr-border-radius-medium) 0 0\n var(--cr-border-radius-medium);\n}\ntable td:last-child {\n border-radius: 0 var(--cr-border-radius-medium) var(--cr-border-radius-medium)\n 0;\n}\ntable .history-revision-cell {\n text-align: center;\n}\ntable .history-revision {\n background-color: var(--cr-color-neutral-300);\n border-radius: var(--cr-border-radius-pill);\n padding: var(--cr-spacing-2x-small);\n font-size: var(--cr-font-size-x-small);\n}\n</style>\n","/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport messages from \"./translations\";\nimport HistoryTab from \"./vue/HistoryTab.vue\";\nimport { AbstractExtraTab } from \"@xwiki/cristal-extra-tabs-api\";\nimport { inject, injectable } from \"inversify\";\nimport type { PageRevisionManagerProvider } from \"@xwiki/cristal-history-api\";\nimport type { Component } from \"vue\";\n\n@injectable()\nexport class HistoryExtraTab extends AbstractExtraTab {\n title: string;\n\n constructor(\n @inject(\"PageRevisionManagerProvider\")\n private readonly pageRevisionManagerProvider: PageRevisionManagerProvider,\n ) {\n super(messages);\n this.title = this.t(\"history.extraTabs.title\");\n }\n\n order = 3000;\n id = \"history\";\n\n async panel(): Promise<Component> {\n return HistoryTab;\n }\n\n override async enabled(): Promise<boolean> {\n return this.pageRevisionManagerProvider.has();\n }\n}\n","/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport { HistoryExtraTab } from \"./HistoryExtraTab\";\nimport type { ExtraTab } from \"@xwiki/cristal-extra-tabs-api\";\nimport type { Container } from \"inversify\";\n\n/**\n * @beta\n */\nexport class ComponentInit {\n constructor(container: Container) {\n container.bind<ExtraTab>(\"ExtraTab\").to(HistoryExtraTab).inSingletonScope();\n }\n}\n"],"names":["translations","t","useI18n","messages","cristal","inject","currentPage","documentServiceName","revisions","ref","isLoading","onMounted","_openBlock","_createElementBlock","_unref","_hoisted_2","_toDisplayString","_createElementVNode","_hoisted_3","_Fragment","_renderList","revision","_hoisted_4","_hoisted_5","_createVNode","_component_i18n_t","User","HistoryExtraTab","AbstractExtraTab","pageRevisionManagerProvider","HistoryTab","__decorateClass","injectable","__decorateParam","ComponentInit","container"],"mappings":";2CAuBA,MAAMA,EAAuD,CAC3D,wMACA,0NACF,iOCOA,KAAM,CAAE,EAAAC,CAAA,EAAMC,UAAQ,CAAA,SACpBC,CAAA,CACD,EACKC,EAAsBC,EAAAA,OAAmB,SAAS,EAIlDC,EAHkBF,EACrB,aAAA,EACA,IAAqBG,EAAAA,IAAmB,EAEzB,mBAAA,EACZC,EAAs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gBAAGK,EAAS,OAAO,EAAA,CAAA,CAAA,iOCvDpB,IAAMM,EAAN,cAA8BC,EAAAA,gBAAiB,CAGpD,YAEmBC,EACjB,CACA,MAAM1B,CAAQ,EAFG,KAAA,4BAAA0B,EAGjB,KAAK,MAAQ,KAAK,EAAE,yBAAyB,CAC/C,CARA,MAUA,MAAQ,IACR,GAAK,UAEL,MAAM,OAA4B,CAChC,OAAOC,CACT,CAEA,MAAe,SAA4B,CACzC,OAAO,KAAK,4BAA4B,IAAA,CAC1C,CACF,EArBaH,EAANI,EAAA,CADNC,aAAA,EAKIC,aAAO,6BAA6B,CAAA,CAAA,EAJ5BN,CAAA,ECDN,MAAMO,CAAc,CACzB,YAAYC,EAAsB,CAChCA,EAAU,KAAe,UAAU,EAAE,GAAGR,CAAe,EAAE,iBAAA,CAC3D,CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xwiki/cristal-history-ui",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "license": "LGPL 2.1",
5
5
  "author": "XWiki Org Community <contact@xwiki.org>",
6
6
  "homepage": "https://cristal.xwiki.org/",
@@ -28,12 +28,12 @@
28
28
  "main": "./dist/index.es.js",
29
29
  "types": "./dist/index.d.ts",
30
30
  "dependencies": {
31
- "vue-i18n": "11.1.12",
32
- "@xwiki/cristal-api": "0.24.0",
33
- "@xwiki/cristal-document-api": "0.24.0",
34
- "@xwiki/cristal-extra-tabs-api": "0.24.0",
35
- "@xwiki/cristal-history-api": "0.24.0",
36
- "@xwiki/cristal-user-ui": "0.24.0"
31
+ "@xwiki/platform-api": "18.0.0-1766398944",
32
+ "@xwiki/platform-document-api": "18.0.0-1766398944",
33
+ "vue-i18n": "11.2.2",
34
+ "@xwiki/cristal-extra-tabs-api": "0.25.0",
35
+ "@xwiki/cristal-user-ui": "0.25.0",
36
+ "@xwiki/cristal-history-api": "0.25.0"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "inversify": "7.x",
@@ -42,15 +42,15 @@
42
42
  "vue-router": "4.x"
43
43
  },
44
44
  "devDependencies": {
45
- "inversify": "7.10.4",
45
+ "@xwiki/platform-dsapi": "18.0.0-1766398944",
46
+ "inversify": "7.10.6",
46
47
  "reflect-metadata": "0.2.2",
47
48
  "typescript": "5.9.3",
48
- "vite": "7.1.12",
49
- "vue": "3.5.22",
49
+ "vite": "7.2.7",
50
+ "vue": "3.5.25",
50
51
  "vue-router": "4.6.3",
51
- "vue-tsc": "3.1.3",
52
- "@xwiki/cristal-dsapi": "0.24.0",
53
- "@xwiki/cristal-dev-config": "0.24.0"
52
+ "vue-tsc": "3.1.8",
53
+ "@xwiki/cristal-dev-config": "0.25.0"
54
54
  },
55
55
  "scripts": {
56
56
  "api-extractor:local": "api-extractor run --local",
@@ -19,16 +19,16 @@
19
19
  -->
20
20
  <script setup lang="ts">
21
21
  import messages from "../translations";
22
- import { name as documentServiceName } from "@xwiki/cristal-document-api";
23
22
  import { User } from "@xwiki/cristal-user-ui";
23
+ import { name as documentServiceName } from "@xwiki/platform-document-api";
24
24
  import { inject, onMounted, ref } from "vue";
25
25
  import { useI18n } from "vue-i18n";
26
- import type { CristalApp, PageData } from "@xwiki/cristal-api";
27
- import type { DocumentService } from "@xwiki/cristal-document-api";
28
26
  import type {
29
27
  PageRevision,
30
28
  PageRevisionManagerProvider,
31
29
  } from "@xwiki/cristal-history-api";
30
+ import type { CristalApp, PageData } from "@xwiki/platform-api";
31
+ import type { DocumentService } from "@xwiki/platform-document-api";
32
32
  import type { Ref } from "vue";
33
33
 
34
34
  const { t } = useI18n({
package/CHANGELOG.md DELETED
@@ -1,198 +0,0 @@
1
- # @xwiki/cristal-history-ui
2
-
3
- ## 0.23.0
4
-
5
- ### Minor Changes
6
-
7
- - Cristal 0.23 Release
8
-
9
- ### Patch Changes
10
-
11
- - Updated dependencies
12
- - @xwiki/cristal-api@0.23.0
13
- - @xwiki/cristal-document-api@0.23.0
14
- - @xwiki/cristal-extra-tabs-api@0.23.0
15
- - @xwiki/cristal-history-api@0.23.0
16
- - @xwiki/cristal-user-ui@0.23.0
17
-
18
- ## 0.22.0
19
-
20
- ### Minor Changes
21
-
22
- - Cristal 0.22 Release
23
-
24
- ### Patch Changes
25
-
26
- - Updated dependencies
27
- - @xwiki/cristal-api@0.22.0
28
- - @xwiki/cristal-document-api@0.22.0
29
- - @xwiki/cristal-extra-tabs-api@0.22.0
30
- - @xwiki/cristal-history-api@0.22.0
31
- - @xwiki/cristal-user-ui@0.22.0
32
-
33
- ## 0.21.0
34
-
35
- ### Minor Changes
36
-
37
- - Cristal 0.21 Release
38
-
39
- ### Patch Changes
40
-
41
- - Updated dependencies
42
- - @xwiki/cristal-api@0.21.0
43
- - @xwiki/cristal-document-api@0.21.0
44
- - @xwiki/cristal-extra-tabs-api@0.21.0
45
- - @xwiki/cristal-history-api@0.21.0
46
- - @xwiki/cristal-user-ui@0.21.0
47
-
48
- ## 0.20.0
49
-
50
- ### Minor Changes
51
-
52
- - Cristal 0.20 Release
53
-
54
- ### Patch Changes
55
-
56
- - Updated dependencies
57
- - @xwiki/cristal-api@0.20.0
58
- - @xwiki/cristal-document-api@0.20.0
59
- - @xwiki/cristal-extra-tabs-api@0.20.0
60
- - @xwiki/cristal-history-api@0.20.0
61
- - @xwiki/cristal-user-ui@0.20.0
62
-
63
- ## 0.20.0-rc.0
64
-
65
- ### Minor Changes
66
-
67
- - Cristal 0.20-rc-1 Release
68
-
69
- ### Patch Changes
70
-
71
- - Updated dependencies
72
- - @xwiki/cristal-api@0.20.0-rc.0
73
- - @xwiki/cristal-document-api@0.20.0-rc.0
74
- - @xwiki/cristal-extra-tabs-api@0.20.0-rc.0
75
- - @xwiki/cristal-history-api@0.20.0-rc.0
76
- - @xwiki/cristal-user-ui@0.20.0-rc.0
77
-
78
- ## 0.19.0
79
-
80
- ### Minor Changes
81
-
82
- - 3eea53e: Cristal 0.19 Release
83
-
84
- ### Patch Changes
85
-
86
- - Updated dependencies [3eea53e]
87
- - @xwiki/cristal-api@0.19.0
88
- - @xwiki/cristal-document-api@0.19.0
89
- - @xwiki/cristal-extra-tabs-api@0.19.0
90
- - @xwiki/cristal-history-api@0.19.0
91
- - @xwiki/cristal-user-ui@0.19.0
92
-
93
- ## 0.18.0
94
-
95
- ### Minor Changes
96
-
97
- - Cristal 0.18 Release
98
-
99
- ### Patch Changes
100
-
101
- - Updated dependencies
102
- - @xwiki/cristal-api@0.18.0
103
- - @xwiki/cristal-document-api@0.18.0
104
- - @xwiki/cristal-extra-tabs-api@0.18.0
105
- - @xwiki/cristal-history-api@0.18.0
106
- - @xwiki/cristal-user-ui@0.18.0
107
-
108
- ## 0.17.0
109
-
110
- ### Minor Changes
111
-
112
- - Cristal 0.17 Release
113
-
114
- ### Patch Changes
115
-
116
- - Updated dependencies
117
- - @xwiki/cristal-api@0.17.0
118
- - @xwiki/cristal-document-api@0.17.0
119
- - @xwiki/cristal-extra-tabs-api@0.17.0
120
- - @xwiki/cristal-history-api@0.17.0
121
- - @xwiki/cristal-user-ui@0.17.0
122
-
123
- ## 0.16.0
124
-
125
- ### Minor Changes
126
-
127
- - Cristal 0.16 Release
128
-
129
- ### Patch Changes
130
-
131
- - Updated dependencies
132
- - @xwiki/cristal-api@0.16.0
133
- - @xwiki/cristal-document-api@0.16.0
134
- - @xwiki/cristal-extra-tabs-api@0.16.0
135
- - @xwiki/cristal-history-api@0.16.0
136
- - @xwiki/cristal-user-ui@0.16.0
137
-
138
- ## 0.15.0
139
-
140
- ### Minor Changes
141
-
142
- - Cristal 0.15 Release
143
-
144
- ### Patch Changes
145
-
146
- - Updated dependencies
147
- - @xwiki/cristal-api@0.15.0
148
- - @xwiki/cristal-document-api@0.15.0
149
- - @xwiki/cristal-extra-tabs-api@0.15.0
150
- - @xwiki/cristal-history-api@0.15.0
151
- - @xwiki/cristal-user-ui@0.15.0
152
-
153
- ## 0.14.0
154
-
155
- ### Minor Changes
156
-
157
- - 3e5f853: Cristal 0.14 Release
158
-
159
- ### Patch Changes
160
-
161
- - Updated dependencies [3e5f853]
162
- - @xwiki/cristal-api@0.14.0
163
- - @xwiki/cristal-document-api@0.14.0
164
- - @xwiki/cristal-extra-tabs-api@0.14.0
165
- - @xwiki/cristal-history-api@0.14.0
166
- - @xwiki/cristal-user-ui@0.14.0
167
-
168
- ## 0.13.0
169
-
170
- ### Minor Changes
171
-
172
- - 06a5d1b: Cristal 0.13 Release
173
-
174
- ### Patch Changes
175
-
176
- - Updated dependencies [06a5d1b]
177
- - @xwiki/cristal-api@0.13.0
178
- - @xwiki/cristal-document-api@0.13.0
179
- - @xwiki/cristal-extra-tabs-api@0.13.0
180
- - @xwiki/cristal-history-api@0.13.0
181
- - @xwiki/cristal-user-ui@0.13.0
182
- - @xwiki/cristal-dsapi@0.13.0
183
-
184
- ## 0.12.0
185
-
186
- ### Minor Changes
187
-
188
- - 681a9b7: Cristal 0.12 Release
189
-
190
- ### Patch Changes
191
-
192
- - Updated dependencies [681a9b7]
193
- - @xwiki/cristal-api@0.12.0
194
- - @xwiki/cristal-document-api@0.12.0
195
- - @xwiki/cristal-extra-tabs-api@0.12.0
196
- - @xwiki/cristal-history-api@0.12.0
197
- - @xwiki/cristal-user-ui@0.12.0
198
- - @xwiki/cristal-dsapi@0.12.0