@xwiki/cristal-electron-renderer 1.3.0 → 1.4.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/package.json +17 -17
- package/dist/AttachmentPreview-DNQ6Ebkw.css +0 -1
- package/dist/AttachmentPreview-DmcUO34d.js +0 -2
- package/dist/AttachmentPreview-DmcUO34d.js.map +0 -1
- package/dist/AuthServiceBanner-BArubXdu.css +0 -1
- package/dist/AuthServiceBanner-ChdElfqx.js +0 -2
- package/dist/AuthServiceBanner-ChdElfqx.js.map +0 -1
- package/dist/DeletePage-ttlY0HjN.js +0 -2
- package/dist/DeletePage-ttlY0HjN.js.map +0 -1
- package/dist/GitHubLoginMenu-Csiodp6I.js +0 -2
- package/dist/GitHubLoginMenu-Csiodp6I.js.map +0 -1
- package/dist/LoggedInMenu-DWOuONhZ.js +0 -2
- package/dist/LoggedInMenu-DWOuONhZ.js.map +0 -1
- package/dist/LoginMenu-Bwz_qtz_.js +0 -2
- package/dist/LoginMenu-Bwz_qtz_.js.map +0 -1
- package/dist/MovePage-B-6I8pRk.js +0 -2
- package/dist/MovePage-B-6I8pRk.js.map +0 -1
- package/dist/MovePage-BHS998Jm.css +0 -1
- package/dist/NextcloudLoginMenu-DGCgMCya.css +0 -1
- package/dist/NextcloudLoginMenu-DxWXKyFo.js +0 -2
- package/dist/NextcloudLoginMenu-DxWXKyFo.js.map +0 -1
- package/dist/RenamePage-Db1fLUHy.js +0 -2
- package/dist/RenamePage-Db1fLUHy.js.map +0 -1
- package/dist/SettingsConfigurations-B9GWI5mw.css +0 -1
- package/dist/SettingsConfigurations-DKf33rjI.js +0 -2
- package/dist/SettingsConfigurations-DKf33rjI.js.map +0 -1
- package/dist/c-config-menu-BGV5XXU8.css +0 -1
- package/dist/c-config-menu-CmcdRZXV.js +0 -2
- package/dist/c-config-menu-CmcdRZXV.js.map +0 -1
- package/dist/c-edit-blocknote-DwSRLR1x.js +0 -259
- package/dist/c-edit-blocknote-DwSRLR1x.js.map +0 -1
- package/dist/c-edit-blocknote-xpE8qhtQ.css +0 -1
- package/dist/chunk.24ZZSBUF-BmQPh48m.js +0 -89
- package/dist/chunk.24ZZSBUF-BmQPh48m.js.map +0 -1
- package/dist/chunk.36O46B5H-Cv2poSyf.js +0 -64
- package/dist/chunk.36O46B5H-Cv2poSyf.js.map +0 -1
- package/dist/chunk.3LWOA5DF-D8Va5Pmw.js +0 -77
- package/dist/chunk.3LWOA5DF-D8Va5Pmw.js.map +0 -1
- package/dist/chunk.3RPBFEDE-DI7eSlIl.js +0 -2
- package/dist/chunk.3RPBFEDE-DI7eSlIl.js.map +0 -1
- package/dist/chunk.4TUIT776-BvlNwMXD.js +0 -18
- package/dist/chunk.4TUIT776-BvlNwMXD.js.map +0 -1
- package/dist/chunk.6CTB5ZDJ-9Su7bEUQ.js +0 -2
- package/dist/chunk.6CTB5ZDJ-9Su7bEUQ.js.map +0 -1
- package/dist/chunk.7E4JTYWU-Ci99jpyG.js +0 -75
- package/dist/chunk.7E4JTYWU-Ci99jpyG.js.map +0 -1
- package/dist/chunk.AJ3ENQ5C-zot94vv9.js +0 -2
- package/dist/chunk.AJ3ENQ5C-zot94vv9.js.map +0 -1
- package/dist/chunk.B4BZKR24-B0iVuGLD.js +0 -2
- package/dist/chunk.B4BZKR24-B0iVuGLD.js.map +0 -1
- package/dist/chunk.D5YQDJ7X-_UyNui_V.js +0 -2
- package/dist/chunk.D5YQDJ7X-_UyNui_V.js.map +0 -1
- package/dist/chunk.DFHYNK3F-bS0lNIuO.js +0 -86
- package/dist/chunk.DFHYNK3F-bS0lNIuO.js.map +0 -1
- package/dist/chunk.GMYPQTFK-BT1AAYXJ.js +0 -2
- package/dist/chunk.GMYPQTFK-BT1AAYXJ.js.map +0 -1
- package/dist/chunk.J5ZM7LIC-n6gjp3-L.js +0 -244
- package/dist/chunk.J5ZM7LIC-n6gjp3-L.js.map +0 -1
- package/dist/chunk.JCXLDPQF-BOaK9AtU.js +0 -622
- package/dist/chunk.JCXLDPQF-BOaK9AtU.js.map +0 -1
- package/dist/chunk.JHOXTQXA-CWkZ1weQ.js +0 -24
- package/dist/chunk.JHOXTQXA-CWkZ1weQ.js.map +0 -1
- package/dist/chunk.JQBT7BOV-BKSO0Hfn.js +0 -3378
- package/dist/chunk.JQBT7BOV-BKSO0Hfn.js.map +0 -1
- package/dist/chunk.JXOKFADN-DpK3Q_uU.js +0 -785
- package/dist/chunk.JXOKFADN-DpK3Q_uU.js.map +0 -1
- package/dist/chunk.KPLQLAWP-DUYDfZ7-.js +0 -163
- package/dist/chunk.KPLQLAWP-DUYDfZ7-.js.map +0 -1
- package/dist/chunk.LD4M4QGE-cX1_6HT7.js +0 -2
- package/dist/chunk.LD4M4QGE-cX1_6HT7.js.map +0 -1
- package/dist/chunk.NYIIDP5N-AHr3eTN0.js +0 -2
- package/dist/chunk.NYIIDP5N-AHr3eTN0.js.map +0 -1
- package/dist/chunk.R45OWEVP-WMyXo-Fn.js +0 -181
- package/dist/chunk.R45OWEVP-WMyXo-Fn.js.map +0 -1
- package/dist/chunk.RWUUFNUL-BJhNq5wM.js +0 -2
- package/dist/chunk.RWUUFNUL-BJhNq5wM.js.map +0 -1
- package/dist/chunk.RY756JLP-BUknFjxa.js +0 -22
- package/dist/chunk.RY756JLP-BUknFjxa.js.map +0 -1
- package/dist/chunk.SI4ACBFK-BB831ml8.js +0 -58
- package/dist/chunk.SI4ACBFK-BB831ml8.js.map +0 -1
- package/dist/chunk.TRHSUYII-DFnBKJNh.js +0 -140
- package/dist/chunk.TRHSUYII-DFnBKJNh.js.map +0 -1
- package/dist/chunk.XA43ZQPC-maNlqVLX.js +0 -395
- package/dist/chunk.XA43ZQPC-maNlqVLX.js.map +0 -1
- package/dist/chunk.XSFJLY2D-ldEKWtxN.js +0 -178
- package/dist/chunk.XSFJLY2D-ldEKWtxN.js.map +0 -1
- package/dist/chunk.YHLNUJ7P-BGNuPG1R.js +0 -109
- package/dist/chunk.YHLNUJ7P-BGNuPG1R.js.map +0 -1
- package/dist/chunk.ZGGPD2XJ-DD1S3h7C.js +0 -2
- package/dist/chunk.ZGGPD2XJ-DD1S3h7C.js.map +0 -1
- package/dist/chunk.ZH2AND3P-CzagA8cz.js +0 -288
- package/dist/chunk.ZH2AND3P-CzagA8cz.js.map +0 -1
- package/dist/class-map-DmaCJs8c.js +0 -2
- package/dist/class-map-DmaCJs8c.js.map +0 -1
- package/dist/filesystem-internal-link-serializer-BOne-ZvI.js +0 -2
- package/dist/filesystem-internal-link-serializer-BOne-ZvI.js.map +0 -1
- package/dist/floating-ui.dom-1S43Ew4Q.js +0 -2
- package/dist/floating-ui.dom-1S43Ew4Q.js.map +0 -1
- package/dist/github-CGNzogjY.js +0 -3
- package/dist/github-CGNzogjY.js.map +0 -1
- package/dist/github-internal-link-serializer-BGkdMYJI.js +0 -2
- package/dist/github-internal-link-serializer-BGkdMYJI.js.map +0 -1
- package/dist/hocuspocus-provider.esm-DpwNtHpL.js +0 -2
- package/dist/hocuspocus-provider.esm-DpwNtHpL.js.map +0 -1
- package/dist/if-defined-O-hFrvt0.js +0 -2
- package/dist/if-defined-O-hFrvt0.js.map +0 -1
- package/dist/index-B7HOg_tC.js +0 -254
- package/dist/index-B7HOg_tC.js.map +0 -1
- package/dist/index-BgL5UHSB.css +0 -1
- package/dist/index-DTmXfR9q.js +0 -3
- package/dist/index-DTmXfR9q.js.map +0 -1
- package/dist/index-DWPjg9z3.js +0 -2
- package/dist/index-DWPjg9z3.js.map +0 -1
- package/dist/index.html +0 -13
- package/dist/live-z5w0O4st.js +0 -2
- package/dist/live-z5w0O4st.js.map +0 -1
- package/dist/module-RjUF93sV.js +0 -717
- package/dist/module-RjUF93sV.js.map +0 -1
- package/dist/native-48B9X9Wg.js +0 -2
- package/dist/native-48B9X9Wg.js.map +0 -1
- package/dist/nextcloud-CQ2JbCvQ.js +0 -31
- package/dist/nextcloud-CQ2JbCvQ.js.map +0 -1
- package/dist/nextcloud-internal-link-serializer-qLagTAdg.js +0 -7
- package/dist/nextcloud-internal-link-serializer-qLagTAdg.js.map +0 -1
- package/dist/offline-lGzDTw-r.js +0 -4
- package/dist/offline-lGzDTw-r.js.map +0 -1
- package/dist/query-x48B6FB_.js +0 -2
- package/dist/query-x48B6FB_.js.map +0 -1
- package/dist/shoelace-fOJMLOCp.js +0 -3
- package/dist/shoelace-fOJMLOCp.js.map +0 -1
- package/dist/static-Dm20cmTz.js +0 -3
- package/dist/static-Dm20cmTz.js.map +0 -1
- package/dist/staticBuild-BOgweg16.js +0 -2
- package/dist/staticBuild-BOgweg16.js.map +0 -1
- package/dist/translations-D5nOIu3x.js +0 -2
- package/dist/translations-D5nOIu3x.js.map +0 -1
- package/dist/translations-Ds9OkLNv.js +0 -2
- package/dist/translations-Ds9OkLNv.js.map +0 -1
- package/dist/vuetify-CJV1Jf0o.js +0 -21
- package/dist/vuetify-CJV1Jf0o.js.map +0 -1
- package/dist/vuetify-yTaAqVoQ.css +0 -1
- package/dist/worker-C267fLfn.js +0 -202
- package/dist/worker-C267fLfn.js.map +0 -1
- package/dist/x-alert-BhErtBtU.css +0 -1
- package/dist/x-alert-Bo-c4sd8.js +0 -2
- package/dist/x-alert-Bo-c4sd8.js.map +0 -1
- package/dist/x-alert-DfYpLdml.css +0 -1
- package/dist/x-alert-iPDEBtQL.js +0 -2
- package/dist/x-alert-iPDEBtQL.js.map +0 -1
- package/dist/x-avatar-2efH4gNX.css +0 -1
- package/dist/x-avatar-CBx0PT77.js +0 -2
- package/dist/x-avatar-CBx0PT77.js.map +0 -1
- package/dist/x-avatar-Do0uzcGf.js +0 -2
- package/dist/x-avatar-Do0uzcGf.js.map +0 -1
- package/dist/x-breadcrumb-BMSNlvvi.css +0 -1
- package/dist/x-breadcrumb-HTdiGdCL.js +0 -2
- package/dist/x-breadcrumb-HTdiGdCL.js.map +0 -1
- package/dist/x-breadcrumb-zrKcaFfC.js +0 -2
- package/dist/x-breadcrumb-zrKcaFfC.js.map +0 -1
- package/dist/x-btn-C6CLTqa7.js +0 -2
- package/dist/x-btn-C6CLTqa7.js.map +0 -1
- package/dist/x-btn-DPGq6Sd-.css +0 -1
- package/dist/x-btn-TXMfg-5G.js +0 -2
- package/dist/x-btn-TXMfg-5G.js.map +0 -1
- package/dist/x-btn.vue_vue_type_script_setup_true_lang-CARXp5Xp.js +0 -2
- package/dist/x-btn.vue_vue_type_script_setup_true_lang-CARXp5Xp.js.map +0 -1
- package/dist/x-card-CJQtO6wd.js +0 -2
- package/dist/x-card-CJQtO6wd.js.map +0 -1
- package/dist/x-card-DZkGTPkV.js +0 -2
- package/dist/x-card-DZkGTPkV.js.map +0 -1
- package/dist/x-checkbox-BoqoQxdA.css +0 -1
- package/dist/x-checkbox-COxu3htb.js +0 -2
- package/dist/x-checkbox-COxu3htb.js.map +0 -1
- package/dist/x-checkbox-DykPAWbI.js +0 -2
- package/dist/x-checkbox-DykPAWbI.js.map +0 -1
- package/dist/x-col-Cr4ppY2u.js +0 -2
- package/dist/x-col-Cr4ppY2u.js.map +0 -1
- package/dist/x-container-D1TcVPe4.js +0 -2
- package/dist/x-container-D1TcVPe4.js.map +0 -1
- package/dist/x-dialog-Bk9LE0HR.css +0 -1
- package/dist/x-dialog-DpDwSqtj.js +0 -2
- package/dist/x-dialog-DpDwSqtj.js.map +0 -1
- package/dist/x-dialog-VzzVz38L.css +0 -1
- package/dist/x-dialog-o95lWpug.js +0 -2
- package/dist/x-dialog-o95lWpug.js.map +0 -1
- package/dist/x-divider-BfvWE9xx.js +0 -2
- package/dist/x-divider-BfvWE9xx.js.map +0 -1
- package/dist/x-divider-CyQQBVg0.js +0 -2
- package/dist/x-divider-CyQQBVg0.js.map +0 -1
- package/dist/x-dropdown-BPYmh0ED.js +0 -2
- package/dist/x-dropdown-BPYmh0ED.js.map +0 -1
- package/dist/x-dropdown-C0eWLs8m.js +0 -2
- package/dist/x-dropdown-C0eWLs8m.js.map +0 -1
- package/dist/x-dropdown-CxWpPIwn.css +0 -1
- package/dist/x-dropdown-GNs7ILlc.css +0 -1
- package/dist/x-file-input-BSstA5LD.css +0 -1
- package/dist/x-file-input-C3zWnjnM.js +0 -2
- package/dist/x-file-input-C3zWnjnM.js.map +0 -1
- package/dist/x-file-input-I5f_Xur8.js +0 -2
- package/dist/x-file-input-I5f_Xur8.js.map +0 -1
- package/dist/x-form-CK24VrXN.css +0 -1
- package/dist/x-form-CUJhQDpC.js +0 -2
- package/dist/x-form-CUJhQDpC.js.map +0 -1
- package/dist/x-form-DGUS5Veh.css +0 -1
- package/dist/x-form-DvYxiGYI.js +0 -2
- package/dist/x-form-DvYxiGYI.js.map +0 -1
- package/dist/x-img-B3bwcipR.js +0 -2
- package/dist/x-img-B3bwcipR.js.map +0 -1
- package/dist/x-img-Bmlsvg1a.js +0 -2
- package/dist/x-img-Bmlsvg1a.js.map +0 -1
- package/dist/x-load-BlPeW_ej.css +0 -1
- package/dist/x-load-BsACA7Yh.css +0 -1
- package/dist/x-load-CBeg_T3j.js +0 -2
- package/dist/x-load-CBeg_T3j.js.map +0 -1
- package/dist/x-load-DP6QIpju.js +0 -2
- package/dist/x-load-DP6QIpju.js.map +0 -1
- package/dist/x-menu-BmuGyRjl.css +0 -1
- package/dist/x-menu-fzYlqJyV.js +0 -2
- package/dist/x-menu-fzYlqJyV.js.map +0 -1
- package/dist/x-menu-item-CTnQPDyU.js +0 -2
- package/dist/x-menu-item-CTnQPDyU.js.map +0 -1
- package/dist/x-menu-item-DLbqVWzS.js +0 -2
- package/dist/x-menu-item-DLbqVWzS.js.map +0 -1
- package/dist/x-menu-j6yX563A.js +0 -2
- package/dist/x-menu-j6yX563A.js.map +0 -1
- package/dist/x-menu-label-BLmtnk8J.js +0 -2
- package/dist/x-menu-label-BLmtnk8J.js.map +0 -1
- package/dist/x-menu-label-DXnUzNu1.js +0 -2
- package/dist/x-menu-label-DXnUzNu1.js.map +0 -1
- package/dist/x-menu-label-DhRAj-fk.css +0 -1
- package/dist/x-row-Cr4ppY2u.js +0 -2
- package/dist/x-row-Cr4ppY2u.js.map +0 -1
- package/dist/x-search-B99zXUrg.js +0 -2
- package/dist/x-search-B99zXUrg.js.map +0 -1
- package/dist/x-search-CVyiz17E.js +0 -2
- package/dist/x-search-CVyiz17E.js.map +0 -1
- package/dist/x-select-DpGG8AuD.js +0 -2
- package/dist/x-select-DpGG8AuD.js.map +0 -1
- package/dist/x-select-DrHr7Shp.js +0 -2
- package/dist/x-select-DrHr7Shp.js.map +0 -1
- package/dist/x-tab-c-e3rymA.js +0 -2
- package/dist/x-tab-c-e3rymA.js.map +0 -1
- package/dist/x-tab-grZhQqAi.js +0 -2
- package/dist/x-tab-grZhQqAi.js.map +0 -1
- package/dist/x-tab-group-BwvoSXDb.js +0 -2
- package/dist/x-tab-group-BwvoSXDb.js.map +0 -1
- package/dist/x-tab-group-DKKRxIP0.js +0 -2
- package/dist/x-tab-group-DKKRxIP0.js.map +0 -1
- package/dist/x-tab-panel-BkaSuvQL.js +0 -2
- package/dist/x-tab-panel-BkaSuvQL.js.map +0 -1
- package/dist/x-tab-panel-DIMNu54Y.js +0 -2
- package/dist/x-tab-panel-DIMNu54Y.js.map +0 -1
- package/dist/x-text-field-BdKCeID0.js +0 -2
- package/dist/x-text-field-BdKCeID0.js.map +0 -1
- package/dist/x-text-field-C8txfmgG.js +0 -2
- package/dist/x-text-field-C8txfmgG.js.map +0 -1
- package/dist/x-tree-Ct89gjKs.js +0 -2
- package/dist/x-tree-Ct89gjKs.js.map +0 -1
- package/dist/x-tree-D0WG-8EM.css +0 -1
- package/dist/x-tree-DZgepjwE.js +0 -2
- package/dist/x-tree-DZgepjwE.js.map +0 -1
- package/dist/x-tree-OLo4IKf9.css +0 -1
- package/dist/xwiki-OgNiU9fx.js +0 -4
- package/dist/xwiki-OgNiU9fx.js.map +0 -1
- package/dist/xwiki-internal-link-serializer-Cd8xorru-BvcqTQNz.js +0 -2
- package/dist/xwiki-internal-link-serializer-Cd8xorru-BvcqTQNz.js.map +0 -1
- package/dist/xwiki-logo-color-DZ9bdNW4.svg +0 -18
- package/dist/yjs-VtUl3AlT.js +0 -6
- package/dist/yjs-VtUl3AlT.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-menu-label-DXnUzNu1.js","sources":["../../../ds/shoelace/src/vue/x-menu-label.vue"],"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<script lang=\"ts\" setup>\nimport \"@shoelace-style/shoelace/dist/components/menu/menu\";\n</script>\n<template>\n <sl-menu-label>\n <slot />\n </sl-menu-label>\n</template>\n\n<style scoped>\nsl-menu-label::part(base) {\n padding-top: 0;\n padding-bottom: 0;\n}\n</style>\n"],"names":["_createBlock","_component_sl_menu_label","_renderSlot","_ctx"],"mappings":"4RAuBEA,EAEgBC,EAAA,KAAA,WADd,IAAQ,CAARC,EAAQC,EAAA,OAAA,UAAA,CAAA,EAAA,OAAA,EAAA,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
sl-menu-label[data-v-90093174]::part(base){padding-top:0;padding-bottom:0}
|
package/dist/x-row-Cr4ppY2u.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-row-Cr4ppY2u.js","sources":["../../../ds/shoelace/src/vue/x-row.vue"],"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<template>\n <div>\n <slot />\n </div>\n</template>\n"],"names":["_createElementBlock","_renderSlot","_ctx"],"mappings":"uGAoBEA,EAEM,MAAA,KAAA,CADJC,EAAQC,EAAA,OAAA,SAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./chunk.XA43ZQPC-maNlqVLX.js";import"./chunk.4TUIT776-BvlNwMXD.js";import"./chunk.SI4ACBFK-BB831ml8.js";import"./chunk.3RPBFEDE-DI7eSlIl.js";import"./chunk.6CTB5ZDJ-9Su7bEUQ.js";import"./chunk.YHLNUJ7P-BGNuPG1R.js";import"./chunk.ZGGPD2XJ-DD1S3h7C.js";import{l as p,a5 as o,ay as r,az as i,aA as m,n as a}from"./index-B7HOg_tC.js";import"./live-z5w0O4st.js";import"./class-map-DmaCJs8c.js";import"./chunk.NYIIDP5N-AHr3eTN0.js";import"./chunk.GMYPQTFK-BT1AAYXJ.js";import"./if-defined-O-hFrvt0.js";import"./query-x48B6FB_.js";const A=p({__name:"x-search",setup(n){return(s,c)=>{const t=o("sl-icon"),e=o("sl-input");return r(),i(e,{placeholder:"Search",size:"small",pill:""},{default:m(()=>[a(t,{slot:"prefix",name:"home"})]),_:1})}}});export{A as default};
|
|
2
|
-
//# sourceMappingURL=x-search-B99zXUrg.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-search-B99zXUrg.js","sources":["../../../ds/shoelace/src/vue/x-search.vue"],"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<script setup lang=\"ts\">\nimport \"@shoelace-style/shoelace/dist/components/input/input\";\nimport \"@shoelace-style/shoelace/dist/components/icon/icon\";\n</script>\n\n<template>\n <sl-input placeholder=\"Search\" size=\"small\" pill>\n <!--eslint-disable-next-line vue/no-deprecated-slot-attribute -->\n <sl-icon slot=\"prefix\" name=\"home\"></sl-icon>\n </sl-input>\n</template>\n\n<style scoped></style>\n"],"names":["_createBlock","_component_sl_input","_createVNode","_component_sl_icon"],"mappings":"wnBAyBEA,EAGWC,EAAA,CAHD,YAAY,SAAS,KAAK,QAAQ,KAAA,EAAA,aAE1C,IAA6C,CAA7CC,EAA6CC,EAAA,CAApC,KAAK,SAAS,KAAK,MAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{aH as o,a5 as n,ay as a,az as c}from"./index-B7HOg_tC.js";const t={};function r(s,i){const e=n("v-autocomplete");return a(),c(e,{density:"comfortable","menu-icon":"",placeholder:"Search","prepend-inner-icon":"mdi-magnify",variant:"solo","auto-select-first":"",rounded:""})}const m=o(t,[["render",r]]);export{m as default};
|
|
2
|
-
//# sourceMappingURL=x-search-CVyiz17E.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-search-CVyiz17E.js","sources":["../../../ds/vuetify/src/vue/x-search.vue"],"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<script setup lang=\"ts\"></script>\n\n<template>\n <v-autocomplete\n density=\"comfortable\"\n menu-icon=\"\"\n placeholder=\"Search\"\n prepend-inner-icon=\"mdi-magnify\"\n variant=\"solo\"\n auto-select-first\n rounded\n ></v-autocomplete>\n</template>\n\n<style scoped></style>\n"],"names":["_createBlock","_component_v_autocomplete"],"mappings":"mIAsBEA,EAQkBC,EAAA,CAPhB,QAAQ,cACR,YAAU,GACV,YAAY,SACZ,qBAAmB,cACnB,QAAQ,OACR,oBAAA,GACA,QAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{l as p,aQ as u,a5 as r,ay as a,az as i,aA as s,aB as d,F as c,aU as f,Z as v,V as x,a2 as b,aS as V}from"./index-B7HOg_tC.js";import"./chunk.JXOKFADN-DpK3Q_uU.js";import"./chunk.6CTB5ZDJ-9Su7bEUQ.js";import"./chunk.YHLNUJ7P-BGNuPG1R.js";import"./chunk.4TUIT776-BvlNwMXD.js";import"./chunk.SI4ACBFK-BB831ml8.js";import"./chunk.3RPBFEDE-DI7eSlIl.js";import"./chunk.7E4JTYWU-Ci99jpyG.js";import"./class-map-DmaCJs8c.js";import"./chunk.RWUUFNUL-BJhNq5wM.js";import"./floating-ui.dom-1S43Ew4Q.js";import"./query-x48B6FB_.js";import"./chunk.AJ3ENQ5C-zot94vv9.js";import"./chunk.B4BZKR24-B0iVuGLD.js";import"./chunk.NYIIDP5N-AHr3eTN0.js";import"./chunk.GMYPQTFK-BT1AAYXJ.js";import"./static-Dm20cmTz.js";import"./if-defined-O-hFrvt0.js";const T=p({__name:"x-select",props:V({label:{},items:{},help:{},required:{type:Boolean},modelValue:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const o=u(e,"modelValue");return(g,l)=>{const m=r("sl-option"),n=r("sl-select");return a(),i(n,{label:e.label,"help-text":e.help,required:e.required,value:o.value,clearable:!e.required,onSlChange:l[0]||(l[0]=t=>o.value=t.target.value),onSlHide:l[1]||(l[1]=b(()=>{},["stop"]))},{default:s(()=>[(a(!0),d(c,null,f(e.items,t=>(a(),i(m,{key:t,value:t},{default:s(()=>[v(x(t),1)]),_:2},1032,["value"]))),128))]),_:1},8,["label","help-text","required","value","clearable"])}}});export{T as default};
|
|
2
|
-
//# sourceMappingURL=x-select-DpGG8AuD.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-select-DpGG8AuD.js","sources":["../../../ds/shoelace/src/vue/form/x-select.vue"],"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<script lang=\"ts\" setup>\nimport \"@shoelace-style/shoelace/dist/components/option/option\";\nimport \"@shoelace-style/shoelace/dist/components/select/select\";\nimport type { SelectProps } from \"@xwiki/platform-dsapi\";\n\ndefineProps<SelectProps>();\n\nconst selected = defineModel<string>();\n</script>\n<template>\n <sl-select\n :label=\"label\"\n :help-text=\"help\"\n :required=\"required\"\n :value=\"selected\"\n :clearable=\"!required\"\n @sl-change=\"selected = $event.target.value\"\n @sl-hide.stop\n >\n <sl-option v-for=\"item in items\" :key=\"item\" :value=\"item\">{{\n item\n }}</sl-option>\n </sl-select>\n</template>\n"],"names":["selected","_useModel","__props","_createBlock","_component_sl_select","$event","_createElementBlock","_Fragment","_renderList","item","_component_sl_option"],"mappings":"g5BA0BA,MAAMA,EAAWC,EAAmBC,EAAA,YAAC,mEAGnCC,EAYYC,EAAA,CAXT,MAAOF,EAAA,MACP,YAAWA,EAAA,KACX,SAAUA,EAAA,SACV,MAAOF,EAAA,MACP,WAAYE,EAAA,SACZ,0BAAWF,EAAA,MAAWK,EAAO,OAAO,OACpC,uBAAD,IAAA,CAAA,EAAa,CAAA,MAAA,CAAA,EAAA,aAEF,IAAqB,QAAhCC,EAEcC,EAAA,KAAAC,EAFYN,EAAA,MAARO,QAAlBN,EAEcO,EAAA,CAFoB,IAAKD,EAAO,MAAOA,CAAA,aAAM,IAEzD,KADAA,CAAI,EAAA,CAAA,CAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{t as m}from"./translations-D5nOIu3x.js";import{l as n,aQ as d,aw as i,ay as c,az as f,u as p,aS as V,k as b}from"./index-B7HOg_tC.js";import{d as g}from"./vuetify-CJV1Jf0o.js";const q=n({__name:"x-select",props:V({label:{},items:{},help:{},required:{type:Boolean},modelValue:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,s=d(e,"modelValue"),{t:u}=i({messages:m}),r=b(()=>{const a=[];return t.required&&a.push(l=>l?!0:u("vuetify.select.input.mandatory")),a});return(a,l)=>(c(),f(p(g),{modelValue:s.value,"onUpdate:modelValue":l[0]||(l[0]=o=>s.value=o),label:e.label,messages:e.help,items:e.items,rules:r.value,clearable:!e.required},null,8,["modelValue","label","messages","items","rules","clearable"]))}});export{q as default};
|
|
2
|
-
//# sourceMappingURL=x-select-DrHr7Shp.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-select-DrHr7Shp.js","sources":["../../../ds/vuetify/src/vue/form/x-select.vue"],"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<script lang=\"ts\" setup>\nimport messages from \"../../translations\";\nimport { computed } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nimport { VSelect } from \"vuetify/components/VSelect\";\nimport type { SelectProps } from \"@xwiki/platform-dsapi\";\n\nconst props = defineProps<SelectProps>();\nconst selected = defineModel<string>();\n\nconst { t } = useI18n({\n messages,\n});\n\nconst rules = computed(() => {\n const rulesList = [];\n if (props.required) {\n rulesList.push((value: unknown) => {\n if (value) {\n return true;\n } else {\n return t(\"vuetify.select.input.mandatory\");\n }\n });\n }\n return rulesList;\n});\n</script>\n<template>\n <v-select\n v-model=\"selected\"\n :label=\"label\"\n :messages=\"help\"\n :items=\"items\"\n :rules=\"rules\"\n :clearable=\"!required\"\n ></v-select>\n</template>\n"],"names":["props","__props","selected","_useModel","t","useI18n","messages","rules","computed","rulesList","value","_createBlock","_unref","VSelect","$event"],"mappings":"sWA0BA,MAAMA,EAAQC,EACRC,EAAWC,EAAmBF,EAAA,YAAC,EAE/B,CAAE,EAAAG,CAAA,EAAMC,EAAQ,CAAA,SACpBC,CAAA,CACD,EAEKC,EAAQC,EAAS,IAAM,CAC3B,MAAMC,EAAY,CAAA,EAClB,OAAIT,EAAM,UACRS,EAAU,KAAMC,GACVA,EACK,GAEAN,EAAE,gCAAgC,CAE5C,EAEIK,CACT,CAAC,oBAGCE,EAOYC,EAAAC,CAAA,EAAA,YANDX,EAAA,2CAAAA,EAAQ,MAAAY,GAChB,MAAOb,EAAA,MACP,SAAUA,EAAA,KACV,MAAOA,EAAA,MACP,MAAOM,EAAA,MACP,WAAYN,EAAA,QAAA"}
|
package/dist/x-tab-c-e3rymA.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./chunk.DFHYNK3F-bS0lNIuO.js";import"./chunk.7E4JTYWU-Ci99jpyG.js";import"./chunk.6CTB5ZDJ-9Su7bEUQ.js";import"./chunk.YHLNUJ7P-BGNuPG1R.js";import"./chunk.4TUIT776-BvlNwMXD.js";import{l as e,a5 as r,ay as p,az as n,aA as s,aV as m}from"./index-B7HOg_tC.js";import"./chunk.GMYPQTFK-BT1AAYXJ.js";import"./class-map-DmaCJs8c.js";import"./query-x48B6FB_.js";import"./static-Dm20cmTz.js";import"./if-defined-O-hFrvt0.js";const v=e({__name:"x-tab",props:{tabId:{}},setup(t){return(o,i)=>{const a=r("sl-tab");return p(),n(a,{slot:"nav",panel:t.tabId},{default:s(()=>[m(o.$slots,"default")]),_:3},8,["panel"])}}});export{v as default};
|
|
2
|
-
//# sourceMappingURL=x-tab-c-e3rymA.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-tab-c-e3rymA.js","sources":["../../../ds/shoelace/src/vue/x-tab.vue"],"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<script setup lang=\"ts\">\nimport \"@shoelace-style/shoelace/dist/components/tab/tab\";\nimport type { TabProps } from \"@xwiki/platform-dsapi\";\n\ndefineProps<TabProps>();\n</script>\n\n<template>\n <sl-tab slot=\"nav\" :panel=\"tabId\"><slot></slot></sl-tab>\n</template>\n\n<style scoped></style>\n"],"names":["_createBlock","_component_sl_tab","__props","_renderSlot","_ctx"],"mappings":"ygBA2BEA,EAAwDC,EAAA,CAAhD,KAAK,MAAO,MAAOC,EAAA,KAAA,aAAO,IAAa,CAAbC,EAAaC,EAAA,OAAA,SAAA,CAAA"}
|
package/dist/x-tab-grZhQqAi.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{l as o,a5 as n,ay as s,az as r,aA as l,aV as c}from"./index-B7HOg_tC.js";const u=o({__name:"x-tab",props:{tabId:{}},setup(a){return(e,p)=>{const t=n("v-tab");return s(),r(t,{value:a.tabId},{default:l(()=>[c(e.$slots,"default")]),_:3},8,["value"])}}});export{u as default};
|
|
2
|
-
//# sourceMappingURL=x-tab-grZhQqAi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-tab-grZhQqAi.js","sources":["../../../ds/vuetify/src/vue/x-tab.vue"],"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<script setup lang=\"ts\">\nimport type { TabProps } from \"@xwiki/platform-dsapi\";\n\ndefineProps<TabProps>();\n</script>\n\n<template>\n <v-tab :value=\"tabId\"><slot></slot></v-tab>\n</template>\n\n<style scoped></style>\n"],"names":["_createBlock","_component_v_tab","__props","_renderSlot","_ctx"],"mappings":"gLA0BEA,EAA2CC,EAAA,CAAnC,MAAOC,EAAA,OAAK,WAAE,IAAa,CAAbC,EAAaC,EAAA,OAAA,SAAA,CAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./chunk.ZH2AND3P-CzagA8cz.js";import"./chunk.7E4JTYWU-Ci99jpyG.js";import"./chunk.6CTB5ZDJ-9Su7bEUQ.js";import"./chunk.YHLNUJ7P-BGNuPG1R.js";import"./chunk.4TUIT776-BvlNwMXD.js";import{l as p,a5 as s,ay as m,az as i,aA as l,aV as o}from"./index-B7HOg_tC.js";import"./chunk.GMYPQTFK-BT1AAYXJ.js";import"./chunk.RWUUFNUL-BJhNq5wM.js";import"./class-map-DmaCJs8c.js";import"./query-x48B6FB_.js";import"./static-Dm20cmTz.js";import"./if-defined-O-hFrvt0.js";const $=p({__name:"x-tab-group",emits:["tab-change"],setup(c,{emit:a}){const e=a;function r(t){e("tab-change",t.detail.name)}return(t,_)=>{const n=s("sl-tab-group");return m(),i(n,{onSlTabShow:r},{default:l(()=>[o(t.$slots,"tabs"),o(t.$slots,"panels")]),_:3})}}});export{$ as default};
|
|
2
|
-
//# sourceMappingURL=x-tab-group-BwvoSXDb.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-tab-group-BwvoSXDb.js","sources":["../../../ds/shoelace/src/vue/x-tab-group.vue"],"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<script setup lang=\"ts\">\nimport \"@shoelace-style/shoelace/dist/components/tab-group/tab-group\";\nconst emits = defineEmits([\"tab-change\"]);\n\nfunction change(event: CustomEvent<{ name: string }>) {\n emits(\"tab-change\", event.detail.name);\n}\n</script>\n\n<template>\n <sl-tab-group @sl-tab-show=\"change\">\n <slot name=\"tabs\"></slot>\n <slot name=\"panels\"></slot>\n </sl-tab-group>\n</template>\n\n<style scoped></style>\n"],"names":["emits","__emit","change","event","_createBlock","_component_sl_tab_group","_renderSlot","_ctx"],"mappings":"ohBAqBA,MAAMA,EAAQC,EAEd,SAASC,EAAOC,EAAsC,CACpDH,EAAM,aAAcG,EAAM,OAAO,IAAI,CACvC,oDAIEC,EAGeC,EAAA,CAHA,YAAaH,GAAM,WAChC,IAAyB,CAAzBI,EAAyBC,EAAA,OAAA,MAAA,EACzBD,EAA2BC,EAAA,OAAA,QAAA,CAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{l as f,a5 as o,ay as i,az as b,aA as n,n as l,aV as u,h as V}from"./index-B7HOg_tC.js";const x=f({__name:"x-tab-group",emits:["tab-change"],setup(g,{emit:d}){const a=V(),m=d;function r(e){typeof e=="string"&&m("tab-change",e)}return(e,t)=>{const _=o("v-tabs"),c=o("v-tabs-window"),p=o("v-card-text"),v=o("v-card");return i(),b(v,{class:"mx-auto"},{default:n(()=>[l(_,{modelValue:a.value,"onUpdate:modelValue":[t[0]||(t[0]=s=>a.value=s),r]},{default:n(()=>[u(e.$slots,"tabs")]),_:3},8,["modelValue"]),l(p,null,{default:n(()=>[l(c,{modelValue:a.value,"onUpdate:modelValue":t[1]||(t[1]=s=>a.value=s)},{default:n(()=>[u(e.$slots,"panels")]),_:3},8,["modelValue"])]),_:3})]),_:3})}}});export{x as default};
|
|
2
|
-
//# sourceMappingURL=x-tab-group-DKKRxIP0.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-tab-group-DKKRxIP0.js","sources":["../../../ds/vuetify/src/vue/x-tab-group.vue"],"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<script setup lang=\"ts\">\nimport { ref } from \"vue\";\nimport type { Ref } from \"vue\";\nconst tab: Ref<unknown> = ref();\n\nconst emits = defineEmits([\"tab-change\"]);\n\nfunction change(tabId: unknown) {\n if (typeof tabId == \"string\") {\n emits(\"tab-change\", tabId);\n }\n}\n</script>\n\n<template>\n <v-card class=\"mx-auto\">\n <v-tabs v-model=\"tab\" @update:model-value=\"change\">\n <slot name=\"tabs\"></slot>\n </v-tabs>\n <v-card-text>\n <v-tabs-window v-model=\"tab\">\n <slot name=\"panels\"></slot>\n </v-tabs-window>\n </v-card-text>\n </v-card>\n</template>\n\n<style scoped></style>\n"],"names":["tab","ref","emits","__emit","change","tabId","_createBlock","_component_v_card","_createVNode","_component_v_tabs","$event","_renderSlot","_ctx","_component_v_card_text","_component_v_tabs_window"],"mappings":"qKAsBA,MAAMA,EAAoBC,EAAA,EAEpBC,EAAQC,EAEd,SAASC,EAAOC,EAAgB,CAC1B,OAAOA,GAAS,UAClBH,EAAM,aAAcG,CAAK,CAE7B,oGAIEC,EASSC,EAAA,CATD,MAAM,WAAS,WACrB,IAES,CAFTC,EAESC,EAAA,YAFQT,EAAA,4CAAAA,EAAG,MAAAU,GAAuBN,CAAA,cACzC,IAAyB,CAAzBO,EAAyBC,EAAA,OAAA,MAAA,CAAA,0BAE3BJ,EAIcK,EAAA,KAAA,WAHZ,IAEgB,CAFhBL,EAEgBM,EAAA,YAFQd,EAAA,2CAAAA,EAAG,MAAAU,EAAA,aACzB,IAA2B,CAA3BC,EAA2BC,EAAA,OAAA,QAAA,CAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./chunk.RY756JLP-BUknFjxa.js";import"./chunk.4TUIT776-BvlNwMXD.js";import{l as o,a5 as n,ay as s,az as p,aA as r,aV as l}from"./index-B7HOg_tC.js";import"./chunk.GMYPQTFK-BT1AAYXJ.js";import"./class-map-DmaCJs8c.js";const u=o({__name:"x-tab-panel",props:{tabId:{}},setup(a){return(t,m)=>{const e=n("sl-tab-panel");return s(),p(e,{name:a.tabId},{default:r(()=>[l(t.$slots,"default")]),_:3},8,["name"])}}});export{u as default};
|
|
2
|
-
//# sourceMappingURL=x-tab-panel-BkaSuvQL.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-tab-panel-BkaSuvQL.js","sources":["../../../ds/shoelace/src/vue/x-tab-panel.vue"],"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<script setup lang=\"ts\">\nimport \"@shoelace-style/shoelace/dist/components/tab-panel/tab-panel\";\nimport type { TabPanelProps } from \"@xwiki/platform-dsapi\";\n\ndefineProps<TabPanelProps>();\n</script>\n\n<template>\n <sl-tab-panel :name=\"tabId\"><slot></slot></sl-tab-panel>\n</template>\n\n<style scoped></style>\n"],"names":["_createBlock","_component_sl_tab_panel","__props","_renderSlot","_ctx"],"mappings":"4UA2BEA,EAAwDC,EAAA,CAAzC,KAAMC,EAAA,OAAK,WAAE,IAAa,CAAbC,EAAaC,EAAA,OAAA,SAAA,CAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{l as o,a5 as n,ay as s,az as l,aA as r,aV as _}from"./index-B7HOg_tC.js";const d=o({__name:"x-tab-panel",props:{tabId:{}},setup(a){return(e,p)=>{const t=n("v-tabs-window-item");return s(),l(t,{value:a.tabId},{default:r(()=>[_(e.$slots,"default")]),_:3},8,["value"])}}});export{d as default};
|
|
2
|
-
//# sourceMappingURL=x-tab-panel-DIMNu54Y.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-tab-panel-DIMNu54Y.js","sources":["../../../ds/vuetify/src/vue/x-tab-panel.vue"],"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<script setup lang=\"ts\">\nimport type { TabPanelProps } from \"@xwiki/platform-dsapi\";\n\ndefineProps<TabPanelProps>();\n</script>\n\n<template>\n <v-tabs-window-item :value=\"tabId\"><slot></slot></v-tabs-window-item>\n</template>\n"],"names":["_createBlock","_component_v_tabs_window_item","__props","_renderSlot","_ctx"],"mappings":"mMA0BEA,EAAqEC,EAAA,CAAhD,MAAOC,EAAA,OAAK,WAAE,IAAa,CAAbC,EAAaC,EAAA,OAAA,SAAA,CAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./chunk.XA43ZQPC-maNlqVLX.js";import"./chunk.4TUIT776-BvlNwMXD.js";import"./chunk.SI4ACBFK-BB831ml8.js";import"./chunk.3RPBFEDE-DI7eSlIl.js";import"./chunk.6CTB5ZDJ-9Su7bEUQ.js";import"./chunk.YHLNUJ7P-BGNuPG1R.js";import{l as u,aQ as m,a5 as i,ay as l,az as s,aA as d,aB as p,aV as f,aE as c,aS as y}from"./index-B7HOg_tC.js";import"./live-z5w0O4st.js";import"./class-map-DmaCJs8c.js";import"./chunk.NYIIDP5N-AHr3eTN0.js";import"./chunk.GMYPQTFK-BT1AAYXJ.js";import"./if-defined-O-hFrvt0.js";import"./query-x48B6FB_.js";const v={key:0,slot:"prefix"},w=u({__name:"x-text-field",props:y({name:{},label:{},required:{type:Boolean},autofocus:{type:Boolean},modelValue:{},help:{},readonly:{type:Boolean},type:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=m(e,"modelValue");return(a,o)=>{const r=i("sl-input");return l(),s(r,{label:e.label,name:e.name,"help-text":e.help,required:e.required,"^autofocus":e.autofocus,value:t.value,readonly:e.readonly,type:e.type??"text",onInput:o[0]||(o[0]=n=>t.value=n.target.value)},{default:d(()=>[a.$slots.default?(l(),p("div",v,[f(a.$slots,"default")])):c("",!0)]),_:3},8,["label","name","help-text","required","^autofocus","value","readonly","type"])}}});export{w as default};
|
|
2
|
-
//# sourceMappingURL=x-text-field-BdKCeID0.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-text-field-BdKCeID0.js","sources":["../../../ds/shoelace/src/vue/form/x-text-field.vue"],"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<script setup lang=\"ts\">\nimport type { TextFieldProps } from \"@xwiki/platform-dsapi\";\nimport \"@shoelace-style/shoelace/dist/components/input/input\";\n\ndefineProps<TextFieldProps>();\n\nconst input = defineModel<string>();\n</script>\n\n<template>\n <sl-input\n :label=\"label\"\n :name=\"name\"\n :help-text=\"help\"\n :required=\"required\"\n :autofocus.attr=\"autofocus\"\n :value=\"input\"\n :readonly=\"readonly\"\n :type=\"type ?? 'text'\"\n @input=\"input = $event.target.value\"\n >\n <!-- @vue-expect-error the slot attribute is shoelace specific and is not know by the typechecker.\n Disabling it for now as I did not find an elegant solution to declare this property. -->\n <!--eslint-disable-next-line vue/no-deprecated-slot-attribute -->\n <div slot=\"prefix\" v-if=\"$slots.default\">\n <slot name=\"default\" />\n </div>\n </sl-input>\n</template>\n\n<style scoped></style>\n"],"names":["input","_useModel","__props","_createBlock","_component_sl_input","$event","$slots","_openBlock","_createElementBlock","_hoisted_1","_renderSlot","_ctx"],"mappings":"mxBAyBA,MAAMA,EAAQC,EAAmBC,EAAA,YAAC,iDAIhCC,EAiBWC,EAAA,CAhBR,MAAOF,EAAA,MACP,KAAMA,EAAA,KACN,YAAWA,EAAA,KACX,SAAUA,EAAA,SACV,aAAgBA,EAAA,UAChB,MAAOF,EAAA,MACP,SAAUE,EAAA,SACV,KAAMA,EAAA,MAAI,OACV,uBAAOF,EAAA,MAAQK,EAAO,OAAO,MAAA,aAK9B,IAEM,CAFmBC,EAAAA,OAAO,SAAhCC,IAAAC,EAEM,MAFNC,EAEM,CADJC,EAAuBC,EAAA,OAAA,SAAA,CAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{t as r}from"./translations-D5nOIu3x.js";import{l as d,aw as i,aQ as m,ay as f,az as y,aA as c,aV as p,u as V,aS as h,k as x}from"./index-B7HOg_tC.js";import{a as v}from"./vuetify-CJV1Jf0o.js";const M=d({__name:"x-text-field",props:h({name:{},label:{},required:{type:Boolean},autofocus:{type:Boolean},modelValue:{},help:{},readonly:{type:Boolean},type:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const{t:o}=i({messages:r}),u=e,l=m(e,"modelValue"),n=x(()=>{const t=[];return u.required&&t.push(a=>a?!0:o("vuetify.text.input.mandatory")),t});return(t,a)=>(f(),y(V(v),{modelValue:l.value,"onUpdate:modelValue":a[0]||(a[0]=s=>l.value=s),label:e.label,name:e.name,autofocus:e.autofocus,hint:e.help,"persistent-hint":e.help!==void 0,rules:n.value,readonly:e.readonly,type:e.type??"text"},{default:c(()=>[p(t.$slots,"default")]),_:3},8,["modelValue","label","name","autofocus","hint","persistent-hint","rules","readonly","type"]))}});export{M as default};
|
|
2
|
-
//# sourceMappingURL=x-text-field-C8txfmgG.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-text-field-C8txfmgG.js","sources":["../../../ds/vuetify/src/vue/form/x-text-field.vue"],"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<script setup lang=\"ts\">\nimport messages from \"../../translations\";\nimport { computed } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nimport { VTextField } from \"vuetify/components/VTextField\";\nimport type { TextFieldProps } from \"@xwiki/platform-dsapi\";\n\nconst { t } = useI18n({\n messages,\n});\nconst props = defineProps<TextFieldProps>();\nconst input = defineModel<string>();\n\nconst rules = computed(() => {\n const rulesList = [];\n if (props.required) {\n rulesList.push((value: unknown) => {\n if (value) {\n return true;\n } else {\n return t(\"vuetify.text.input.mandatory\");\n }\n });\n }\n return rulesList;\n});\n</script>\n\n<template>\n <v-text-field\n v-model=\"input\"\n :label=\"label\"\n :name=\"name\"\n :autofocus=\"autofocus\"\n :hint=\"help\"\n :persistent-hint=\"help !== undefined\"\n :rules=\"rules\"\n :readonly=\"readonly\"\n :type=\"type ?? 'text'\"\n >\n <template #default>\n <slot name=\"default\" />\n </template>\n </v-text-field>\n</template>\n\n<style scoped></style>\n"],"names":["t","useI18n","messages","props","__props","input","_useModel","rules","computed","rulesList","value","_createBlock","_unref","VTextField","$event","_renderSlot","_ctx"],"mappings":"kbA0BA,KAAM,CAAE,EAAAA,CAAA,EAAMC,EAAQ,CAAA,SACpBC,CAAA,CACD,EACKC,EAAQC,EACRC,EAAQC,EAAmBF,EAAA,YAAC,EAE5BG,EAAQC,EAAS,IAAM,CAC3B,MAAMC,EAAY,CAAA,EAClB,OAAIN,EAAM,UACRM,EAAU,KAAMC,GACVA,EACK,GAEAV,EAAE,8BAA8B,CAE1C,EAEIS,CACT,CAAC,oBAICE,EAceC,EAAAC,CAAA,EAAA,YAbJR,EAAA,2CAAAA,EAAK,MAAAS,GACb,MAAOV,EAAA,MACP,KAAMA,EAAA,KACN,UAAWA,EAAA,UACX,KAAMA,EAAA,KACN,kBAAiBA,EAAA,OAAS,OAC1B,MAAOG,EAAA,MACP,SAAUH,EAAA,SACV,KAAMA,EAAA,MAAI,MAAA,GAEA,UACT,IAAuB,CAAvBW,EAAuBC,EAAA,OAAA,SAAA,CAAA"}
|
package/dist/x-tree-Ct89gjKs.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{l as y,aQ as s,y as h,ay as i,az as C,aA as k,aB as u,a2 as m,V as v,u as w,aS as x,h as A,aH as z}from"./index-B7HOg_tC.js";import{e as B}from"./vuetify-CJV1Jf0o.js";const M=["href","onClick"],N=["href","onClick"],b=y({__name:"x-tree",props:x({rootNode:{},showRootNode:{type:Boolean},activated:{},opened:{},lazyLoadChildren:{type:Function},nodeClickAction:{type:Function}},{opened:{default:[],type:Array},openedModifiers:{},activated:{},activatedModifiers:{}}),emits:["update:opened","update:activated"],setup(a){const f=a,n=s(a,"opened"),o=s(a,"activated"),l=A([]);h(o,c,{immediate:!0});function c(){l.value=o.value?[o.value]:[]}function r(t){t.activatable&&(o.value=t.id)}async function p(t){await f.lazyLoadChildren(t)}return(t,d)=>(i(),C(w(B),{density:"compact",activated:l.value,items:a.showRootNode?[a.rootNode]:a.rootNode.children,"load-children":a.lazyLoadChildren?p:void 0,activatable:"","active-strategy":"independent","item-value":"id",opened:n.value,"onUpdate:opened":[d[0]||(d[0]=e=>n.value=e),d[1]||(d[1]=e=>n.value=e)],"onUpdate:activated":c},{title:k(({item:e})=>[a.nodeClickAction?(i(),u("a",{key:0,href:e.url,onClick:m(async()=>{r(e),await a.nodeClickAction(e)},["prevent"])},v(e.label),9,M)):(i(),u("a",{key:1,href:e.url,onClick:L=>r(e)},v(e.label),9,N))]),_:1},8,["activated","items","load-children","opened"]))}}),R=z(b,[["__scopeId","data-v-4e691a16"]]);export{R as default};
|
|
2
|
-
//# sourceMappingURL=x-tree-Ct89gjKs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-tree-Ct89gjKs.js","sources":["../../../ds/vuetify/src/vue/x-tree.vue"],"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<script setup lang=\"ts\" generic=\"T extends DisplayableTreeNode\">\nimport { ref, watch } from \"vue\";\nimport { VTreeview } from \"vuetify/components/VTreeview\";\nimport type { DisplayableTreeNode, TreeProps } from \"@xwiki/platform-dsapi\";\nimport type { Ref } from \"vue\";\n\nconst props = defineProps<TreeProps<T>>();\nconst opened = defineModel(\"opened\", { default: [], type: Array<string> });\nconst activated = defineModel<string | undefined>(\"activated\");\n\nconst activatedNodes: Ref<Array<string>> = ref([]);\n\nwatch(activated, resetActivated, { immediate: true });\n\nfunction resetActivated() {\n // Clicking on a node would activate it and this can't be disabled easily.\n // With this listener, we ensure that only the node we want stays active.\n activatedNodes.value = activated.value ? [activated.value] : [];\n}\n\nfunction updateActivated(newActivatedNode: DisplayableTreeNode) {\n if (newActivatedNode.activatable) {\n activated.value = newActivatedNode.id;\n }\n}\n\nasync function lazyLoadChildrenWrapper(node: unknown) {\n // We need this wrapper because our props are more specific than Vuetify's.\n await props.lazyLoadChildren!(node as T);\n}\n</script>\n\n<template>\n <v-treeview\n density=\"compact\"\n :activated=\"activatedNodes\"\n :items=\"showRootNode ? [rootNode] : rootNode.children\"\n :load-children=\"lazyLoadChildren ? lazyLoadChildrenWrapper : undefined\"\n activatable\n active-strategy=\"independent\"\n item-value=\"id\"\n v-model:opened=\"opened as string[]\"\n @update:opened=\"($event: string[]) => (opened = $event)\"\n @update:activated=\"resetActivated\"\n >\n <template #title=\"{ item }\">\n <a\n v-if=\"nodeClickAction\"\n :href=\"item.url\"\n @click.prevent=\"\n async () => {\n updateActivated(item);\n await nodeClickAction!(item as T);\n }\n \"\n >{{ item.label }}</a\n >\n <a v-else :href=\"item.url\" @click=\"updateActivated(item)\">{{\n item.label\n }}</a>\n </template>\n </v-treeview>\n</template>\n\n<style scoped>\n/* Remove the background color from the root div element. */\n.v-list {\n background: none;\n}\n:deep(a) {\n text-decoration: none;\n color: var(--cr-base-text-color);\n}\n/* Disable hover on items. */\n:deep(.v-list-item__overlay) {\n --v-hover-opacity: 0;\n}\n/* Disable hand cursor on items, since we disable the default click action. */\n:deep(.v-list-item--link) {\n cursor: default;\n}\n</style>\n"],"names":["props","__props","opened","_useModel","activated","activatedNodes","ref","watch","resetActivated","updateActivated","newActivatedNode","lazyLoadChildrenWrapper","node","_createBlock","_unref","VTreeview","$event","_withCtx","item","_createElementBlock","_withModifiers","_toDisplayString","_hoisted_1","_hoisted_2"],"mappings":"ygBAyBA,MAAMA,EAAQC,EACRC,EAASC,EAAWF,EAAC,QAA8C,EACnEG,EAAYD,IAAgC,WAAW,EAEvDE,EAAqCC,EAAI,EAAE,EAEjDC,EAAMH,EAAWI,EAAgB,CAAE,UAAW,GAAM,EAEpD,SAASA,GAAiB,CAGxBH,EAAe,MAAQD,EAAU,MAAQ,CAACA,EAAU,KAAK,EAAI,CAAA,CAC/D,CAEA,SAASK,EAAgBC,EAAuC,CAC1DA,EAAiB,cACnBN,EAAU,MAAQM,EAAiB,GAEvC,CAEA,eAAeC,EAAwBC,EAAe,CAEpD,MAAMZ,EAAM,iBAAkBY,CAAS,CACzC,mBAIEC,EA4BaC,EAAAC,CAAA,EAAA,CA3BX,QAAQ,UACP,UAAWV,EAAA,MACX,MAAOJ,EAAA,aAAY,CAAIA,UAAQ,EAAIA,EAAA,SAAS,SAC5C,gBAAeA,EAAA,iBAAmBU,EAA0B,OAC7D,YAAA,GACA,kBAAgB,cAChB,aAAW,KACH,OAAQT,EAAA,wCAAAA,EAAA,MAAMc,eACLA,GAAsBd,EAAA,MAASc,EAAA,EAC/C,qBAAkBR,CAAA,GAER,MAAKS,EACd,CAUC,CAXiB,KAAAC,KAAI,CAEdjB,EAAA,qBADRkB,EAUC,IAAA,OARE,KAAMD,EAAK,IACX,QAAKE,YAA+CX,EAAgBS,CAAI,EAAqB,MAAAjB,EAAA,gBAAiBiB,CAAI,iBAM/GG,EAAAH,EAAK,KAAK,EAAA,EAAAI,CAAA,QAEhBH,EAEM,IAAA,OAFK,KAAMD,EAAK,IAAM,QAAKF,GAAEP,EAAgBS,CAAI,CAAA,EACrDG,EAAAH,EAAK,KAAK,EAAA,EAAAK,CAAA,EAAA"}
|
package/dist/x-tree-D0WG-8EM.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.v-list[data-v-4e691a16]{background:none}[data-v-4e691a16] a{text-decoration:none;color:var(--cr-base-text-color)}[data-v-4e691a16] .v-list-item__overlay{--v-hover-opacity: 0}[data-v-4e691a16] .v-list-item--link{cursor:default}
|
package/dist/x-tree-DZgepjwE.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{l as h,aX as g,aQ as s,a5 as y,ay as a,az as v,a2 as p,aA as z,aB as u,V as k,aU as x,F as L,aS as A,aH as B}from"./index-B7HOg_tC.js";import"./chunk.J5ZM7LIC-n6gjp3-L.js";import"./chunk.XSFJLY2D-ldEKWtxN.js";import"./chunk.4TUIT776-BvlNwMXD.js";import"./chunk.SI4ACBFK-BB831ml8.js";import"./chunk.36O46B5H-Cv2poSyf.js";import"./chunk.3RPBFEDE-DI7eSlIl.js";import"./chunk.6CTB5ZDJ-9Su7bEUQ.js";import"./chunk.YHLNUJ7P-BGNuPG1R.js";import"./chunk.AJ3ENQ5C-zot94vv9.js";import"./chunk.GMYPQTFK-BT1AAYXJ.js";import"./class-map-DmaCJs8c.js";import"./live-z5w0O4st.js";import"./query-x48B6FB_.js";import"./chunk.NYIIDP5N-AHr3eTN0.js";import"./if-defined-O-hFrvt0.js";const N=["href"],S=["href"],U=h({__name:"x-tree-item",props:A({node:{},slot:{},lazyLoadChildren:{type:Function},nodeClickAction:{type:Function}},{opened:{default:[]},openedModifiers:{},activated:{},activatedModifiers:{}}),emits:["update:opened","update:activated"],setup(e){const i=g("current"),t=e,n=s(e,"opened"),d=s(e,"activated");function c(){t.node.activatable&&(d.value=t.node.id)}function r(){n.value?.includes(t.node.id)||(n.value=[t.node.id,...n.value])}function l(){if(n.value?.includes(t.node.id)){const C=n.value.indexOf(t.node.id);n.value.splice(C,1)}}async function M(){await t.lazyLoadChildren(t.node),t.node.children||(i.value.loading=!1,i.value.isLeaf=!0)}return(C,o)=>{const w=y("x-tree-item",!0),F=y("sl-tree-item");return a(),v(F,{ref_key:"current",ref:i,"data-id":e.node.id,selected:e.node.id===d.value,expanded:n.value.includes(e.node.id),lazy:e.lazyLoadChildren&&e.node.children?.length==0,onSlExpand:p(r,["stop"]),onSlCollapse:p(l,["stop"]),onSlLazyLoadOnce:o[3]||(o[3]=m=>e.lazyLoadChildren?M():void 0)},{default:z(()=>[e.nodeClickAction?(a(),u("a",{key:0,class:"undecorated",href:e.node.url,onClick:o[0]||(o[0]=p(async()=>{c(),await e.nodeClickAction(e.node)},["prevent"]))},k(e.node.label),9,N)):(a(),u("a",{key:1,class:"undecorated",href:e.node.url,onClick:c},k(e.node.label),9,S)),(a(!0),u(L,null,x(e.node.children,m=>(a(),v(w,{slot:"children",key:m.id,node:m,"lazy-load-children":e.lazyLoadChildren,"node-click-action":e.nodeClickAction,activated:d.value,"onUpdate:activated":o[1]||(o[1]=f=>d.value=f),opened:n.value,"onUpdate:opened":o[2]||(o[2]=f=>n.value=f)},null,8,["node","lazy-load-children","node-click-action","activated","opened"]))),128))]),_:1},8,["data-id","selected","expanded","lazy"])}}}),b=B(U,[["__scopeId","data-v-940282c7"]]),K=h({__name:"x-tree",props:A({rootNode:{},showRootNode:{type:Boolean},activated:{},opened:{},lazyLoadChildren:{type:Function},nodeClickAction:{type:Function}},{opened:{default:[]},openedModifiers:{},activated:{},activatedModifiers:{}}),emits:["update:opened","update:activated"],setup(e){const i=s(e,"opened"),t=s(e,"activated");return(n,d)=>{const c=y("sl-tree");return a(),v(c,null,{default:z(()=>[(a(!0),u(L,null,x(e.showRootNode?[e.rootNode]:e.rootNode.children,r=>(a(),v(b,{key:r.id,node:r,"lazy-load-children":e.lazyLoadChildren,"node-click-action":e.nodeClickAction,activated:t.value,"onUpdate:activated":d[0]||(d[0]=l=>t.value=l),opened:i.value,"onUpdate:opened":d[1]||(d[1]=l=>i.value=l)},null,8,["node","lazy-load-children","node-click-action","activated","opened"]))),128))]),_:1})}}});export{K as default};
|
|
2
|
-
//# sourceMappingURL=x-tree-DZgepjwE.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"x-tree-DZgepjwE.js","sources":["../../../ds/shoelace/src/vue/x-tree-item.vue","../../../ds/shoelace/src/vue/x-tree.vue"],"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<script setup lang=\"ts\" generic=\"T extends DisplayableTreeNode\">\nimport \"@shoelace-style/shoelace/dist/components/tree-item/tree-item\";\nimport { useTemplateRef } from \"vue\";\nimport type SlTreeItem from \"@shoelace-style/shoelace/dist/components/tree-item/tree-item.d.ts\";\nimport type { DisplayableTreeNode } from \"@xwiki/platform-dsapi\";\n\nconst current = useTemplateRef<SlTreeItem>(\"current\");\n\nconst props = defineProps<{\n node: T;\n slot?: string;\n lazyLoadChildren?: (node: T) => Promise<void>;\n nodeClickAction?: (node: T) => Promise<void>;\n}>();\nconst opened = defineModel<string[]>(\"opened\", { default: [] });\nconst activated = defineModel<string | undefined>(\"activated\");\n\nfunction updateActivated() {\n if (props.node.activatable) {\n activated.value = props.node.id;\n }\n}\n\nfunction onExpand() {\n if (!opened.value?.includes(props.node.id)) {\n opened.value = [props.node.id, ...opened.value];\n }\n}\n\nfunction onCollapse() {\n if (opened.value?.includes(props.node.id)) {\n const index = opened.value.indexOf(props.node.id);\n opened.value.splice(index, 1);\n }\n}\n\nasync function lazyLoadChildrenWrapper() {\n await props.lazyLoadChildren!(props.node);\n\n // If there were no children added, we need to manually disable the loading\n // state.\n if (!props.node.children) {\n current.value!.loading = false;\n current.value!.isLeaf = true;\n }\n}\n</script>\n\n<template>\n <sl-tree-item\n ref=\"current\"\n :data-id=\"node.id\"\n :selected=\"node.id === activated\"\n :expanded=\"opened.includes(node.id)\"\n :lazy=\"lazyLoadChildren && node.children?.length == 0\"\n @sl-expand.stop=\"onExpand\"\n @sl-collapse.stop=\"onCollapse\"\n @sl-lazy-load.once=\"\n lazyLoadChildren ? lazyLoadChildrenWrapper() : undefined\n \"\n >\n <a\n v-if=\"nodeClickAction\"\n class=\"undecorated\"\n :href=\"node.url\"\n @click.prevent=\"\n async () => {\n updateActivated();\n await nodeClickAction!(node);\n }\n \"\n >{{ node.label }}</a\n >\n <a v-else class=\"undecorated\" :href=\"node.url\" @click=\"updateActivated\">{{\n node.label\n }}</a>\n <!-- eslint-disable vue/no-deprecated-slot-attribute -->\n <x-tree-item\n slot=\"children\"\n v-for=\"item in node.children\"\n :key=\"item.id\"\n :node=\"item as T\"\n :lazy-load-children=\"lazyLoadChildren\"\n :node-click-action=\"nodeClickAction\"\n v-model:activated=\"activated\"\n v-model:opened=\"opened\"\n >\n </x-tree-item>\n <!-- eslint-enable vue/no-deprecated-slot-attribute -->\n </sl-tree-item>\n</template>\n\n<style scoped>\nsl-tree-item > a.undecorated {\n text-decoration: none;\n color: var(--cr-base-text-color);\n}\n/* Disable hand cursor on items, since we disable the default click action. */\nsl-tree-item::part(base) {\n cursor: default;\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<script setup lang=\"ts\" generic=\"T extends DisplayableTreeNode\">\nimport XTreeItem from \"./x-tree-item.vue\";\nimport \"@shoelace-style/shoelace/dist/components/tree/tree\";\nimport type { DisplayableTreeNode, TreeProps } from \"@xwiki/platform-dsapi\";\n\ndefineProps<TreeProps<T>>();\nconst opened = defineModel<string[]>(\"opened\", { default: [] });\nconst activated = defineModel<string | undefined>(\"activated\");\n</script>\n\n<template>\n <sl-tree>\n <x-tree-item\n v-for=\"item in showRootNode ? [rootNode] : rootNode.children\"\n :key=\"item.id\"\n :node=\"item as T\"\n :lazy-load-children=\"lazyLoadChildren\"\n :node-click-action=\"nodeClickAction\"\n v-model:activated=\"activated\"\n v-model:opened=\"opened\"\n >\n </x-tree-item>\n </sl-tree>\n</template>\n"],"names":["current","useTemplateRef","props","__props","opened","_useModel","activated","updateActivated","onExpand","onCollapse","index","lazyLoadChildrenWrapper","_createBlock","_component_sl_tree_item","_createElementBlock","_cache","_withModifiers","_toDisplayString","_hoisted_1","_hoisted_2","_openBlock","_Fragment","_renderList","item","_component_x_tree_item","$event","_component_sl_tree","XTreeItem"],"mappings":"+6BAyBA,MAAMA,EAAUC,EAA2B,SAAS,EAE9CC,EAAQC,EAMRC,EAASC,EAAqBF,EAAC,QAAyB,EACxDG,EAAYD,IAAgC,WAAW,EAE7D,SAASE,GAAkB,CACrBL,EAAM,KAAK,cACbI,EAAU,MAAQJ,EAAM,KAAK,GAEjC,CAEA,SAASM,GAAW,CACbJ,EAAO,OAAO,SAASF,EAAM,KAAK,EAAE,IACvCE,EAAO,MAAQ,CAACF,EAAM,KAAK,GAAI,GAAGE,EAAO,KAAK,EAElD,CAEA,SAASK,GAAa,CACpB,GAAIL,EAAO,OAAO,SAASF,EAAM,KAAK,EAAE,EAAG,CACzC,MAAMQ,EAAQN,EAAO,MAAM,QAAQF,EAAM,KAAK,EAAE,EAChDE,EAAO,MAAM,OAAOM,EAAO,CAAC,CAC9B,CACF,CAEA,eAAeC,GAA0B,CACvC,MAAMT,EAAM,iBAAkBA,EAAM,IAAI,EAInCA,EAAM,KAAK,WACdF,EAAQ,MAAO,QAAU,GACzBA,EAAQ,MAAO,OAAS,GAE5B,0EAIEY,EAwCeC,EAAA,SAvCT,UAAJ,IAAIb,EACH,UAASG,EAAA,KAAK,GACd,SAAUA,EAAA,KAAK,KAAOG,EAAA,MACtB,SAAUF,EAAA,MAAO,SAASD,EAAA,KAAK,EAAE,EACjC,KAAMA,EAAA,kBAAoBA,OAAK,UAAU,QAAM,EAC/C,aAAgBK,EAAQ,CAAA,MAAA,CAAA,EACxB,eAAkBC,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-color)}sl-tree-item[data-v-940282c7]::part(base){cursor:default}
|
package/dist/xwiki-OgNiU9fx.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./AuthServiceBanner-ChdElfqx.js","./index-B7HOg_tC.js","./index-BgL5UHSB.css","./AuthServiceBanner-BArubXdu.css","./xwiki-internal-link-serializer-Cd8xorru-BvcqTQNz.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{ar as I,af as j,ah as m,as as A,a9 as h,ad as p,aj as R,at as E,ak as x,ai as b,an as _,am as v,al as $,ap as q,au as H,a8 as X}from"./index-B7HOg_tC.js";function B(e,t){return I(e,t)}var F=Object.getOwnPropertyDescriptor,Q=(e,t,i,r)=>{for(var n=r>1?void 0:r?F(t,i):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(n=s(n)||n);return n},d=(e,t)=>(i,r)=>t(i,r,e);let S=class{constructor(e,t,i,r,n,a,s){this.logger=e,this.cristalApp=t,this.defaultHierarchyResolver=i,this.authenticationManagerProvider=r,this.storageProvider=n,this.urlParser=a,this.referenceSerializer=s,this.logger.setModule("storage.components.XWikiPageHierarchyResolver")}async getPageHierarchy(e,t=!0){let i=this.referenceSerializer.serialize(e);e.type==m.SPACE&&(i+=".WebHome");const r=A(this.cristalApp.getWikiConfig(),i);try{const n=await this.authenticationManagerProvider.get()?.getAuthorizationHeader(),a={Accept:"application/json"};n&&(a.Authorization=n);const l=await(await fetch(`${r}?prettyNames=true`,{headers:a})).json(),c=[];if(l.hierarchy.items.forEach(o=>{(o.type=="document"&&!new URL(o.url).pathname.endsWith("/")||o.type=="space")&&c.push({label:o.label,pageId:this.storageProvider.get().getPageFromViewURL(o.url),url:this.cristalApp.getRouter().resolve({name:"view",params:{page:this.referenceSerializer.serialize(this.urlParser.parse(o.url))}}).href})}),t){const o=l.hierarchy.items[0];c.unshift({label:o.label,pageId:this.storageProvider.get().getPageFromViewURL(o.url),url:this.cristalApp.getRouter().resolve({name:"view",params:{page:this.referenceSerializer.serialize(this.urlParser.parse(o.url))}}).href})}return c}catch(n){return this.logger.error(n),this.logger.debug(`Could not load hierarchy for page ${i}, falling back to default hierarchy resolver.`),this.defaultHierarchyResolver.getPageHierarchy(e)}}};S=Q([h(),d(0,p("Logger")),d(1,p("CristalApp")),d(2,p("PageHierarchyResolver")),d(3,p("AuthenticationManagerProvider")),d(4,p("StorageProvider")),d(5,p("RemoteURLParser")),d(5,R("XWiki")),d(6,p("ModelReferenceSerializer")),d(6,R("XWiki"))],S);let V=class{constructor(t){t.bind(j).to(S).inSingletonScope().whenNamed("XWiki")}};var K=Object.getOwnPropertyDescriptor,G=(e,t,i,r)=>{for(var n=r>1?void 0:r?K(t,i):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(n=s(n)||n);return n},w=(e,t)=>(i,r)=>t(i,r,e);let y=class{constructor(e,t,i,r){this.logger=e,this.cristalApp=t,this.authenticationManagerProvider=i,this.alertsService=r,this.logger.setModule("history.xwiki.XWikiPageRevisionManager")}async getRevisions(e,t,i){const r=e.document.getIdentifier();if(r==null)return this.alertsService.error(`Could not load page history for ${e.name}.`),[];const n=new URLSearchParams;t&&n.append("number",t.toString()),i&&n.append("start",i.toString());const a=A(this.cristalApp.getWikiConfig(),r)+"/history",s=new Map([["XWiki.superadmin",new Promise(l=>{l({name:"superadmin",profile:""})})]]);try{const l=await this.authenticationManagerProvider.get()?.getAuthorizationHeader(),c={Accept:"application/json"};l&&(c.Authorization=l);const u=await(await fetch(a,{headers:c})).json();return await Promise.all(u.historySummaries.map(async g=>(s.has(g.modifier)||s.set(g.modifier,this.getUserName(g.modifier)),{version:g.version,date:new Date(g.modified),user:await s.get(g.modifier),comment:g.comment,url:this.cristalApp.getRouter().resolve({name:"view",params:{page:r,revision:g.version}}).href})))}catch(l){return this.logger.error(l),this.alertsService.error(`Could not load page history for ${e.name}.`),[]}}async getUserName(e){const t=A(this.cristalApp.getWikiConfig(),e)+"/objects/XWiki.XWikiUsers/0";try{const i=await this.authenticationManagerProvider.get()?.getAuthorizationHeader(),r={Accept:"application/json"};i&&(r.Authorization=i);const a=await(await fetch(t,{headers:r})).json(),s=a.properties.filter(u=>u.name=="first_name").map(u=>u.value)??"",l=a.properties.filter(u=>u.name=="last_name").map(u=>u.value)??"",c=`${s} ${l}`.trim();let o;return c!=""?o=c:o=a.pageName,{name:o,username:a.pageName,profile:this.cristalApp.getRouter().resolve({name:"view",params:{page:e}}).href}}catch(i){return this.logger.error(i),this.logger.debug(`Could not load user details for page ${e}.`),{name:e,profile:""}}}};y=G([h(),w(0,p("Logger")),w(1,p("CristalApp")),w(2,p("AuthenticationManagerProvider")),w(3,p("AlertsService"))],y);let J=class{constructor(t){t.bind(E).to(y).inSingletonScope().whenNamed("XWiki")}};var Y=Object.getOwnPropertyDescriptor,Z=(e,t,i,r)=>{for(var n=r>1?void 0:r?Y(t,i):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(n=s(n)||n);return n},P=(e,t)=>(i,r)=>t(i,r,e);let k=class{constructor(e,t,i,r){this.cristalApp=e,this.remoteURLSerializerProvider=t,this.modelReferenceParserProvider=i,this.authenticationManagerProvider=r}async getLinks(e,t,i){return(await this.executeQuery(t,i,e)).map(this.mapToLink.bind(this)).filter(n=>n!==void 0).filter(this.filterLinks(t,i))}async executeQuery(e,t,i){const r=this.cristalApp.getWikiConfig().baseURL,a={query:this.initializeSolrQueryParameters(e,t).map(c=>`fq=${c}`).join(`
|
|
3
|
-
`),nb:"20",media:"json",input:`*${i}*`},s=new URLSearchParams(a).toString();return await(await fetch(`${r}/bin/get/XWiki/SuggestSolrService?${s}`,{headers:{...await this.getCredentials()}})).json()}initializeSolrQueryParameters(e,t){const i=["locale:*","wiki:xwiki"];return e&&(e==b.ATTACHMENT?i.push("type:ATTACHMENT"):i.push("type:PAGE")),t&&i.push(`mimetype:((${t}))`),i}filterLinks(e,t){return i=>{if(e==null)return!0;{const r=i.type==e;return r?t?r:!0:!1}}}mapToLink(e){const t=e.reference,i=e.type,r=this.remoteURLSerializerProvider.get()?.serialize(this.modelReferenceParserProvider.get()?.parse(t))??"";if(i=="ATTACHMENT")return{type:b.ATTACHMENT,id:e.id,url:r,reference:t,label:e.filename[0],hint:e.filename[0]};if(i=="DOCUMENT"){const n=e.title_;return{type:b.PAGE,id:e.id,url:r,reference:t,label:n,hint:n}}}async getCredentials(){const e=await this.authenticationManagerProvider.get()?.getAuthorizationHeader(),t={};return e&&(t.Authorization=e),t}};k=Z([h(),P(0,p("CristalApp")),P(1,p("RemoteURLSerializerProvider")),P(2,p("ModelReferenceParserProvider")),P(3,p("AuthenticationManagerProvider"))],k);let ee=class{constructor(t){t.bind(x).to(k).inSingletonScope().whenNamed("XWiki")}};var te=Object.getOwnPropertyDescriptor,re=(e,t,i,r)=>{for(var n=r>1?void 0:r?te(t,i):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(n=s(n)||n);return n};let C=class{createDocumentReference(e,t){const i=new _(t.wiki,...t.names,e);return new v("WebHome",i)}getTitle(e){switch(e.type){case m.WIKI:return e.name;case m.SPACE:return[...e.names].pop();case m.DOCUMENT:{const t=e.name;return t==="WebHome"&&e.space?this.getTitle(e.space):t}case m.ATTACHMENT:return e.name}return""}};C=re([h()],C);var ie=Object.getOwnPropertyDescriptor,ne=(e,t,i,r)=>{for(var n=r>1?void 0:r?ie(t,i):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(n=s(n)||n);return n},ae=(e,t)=>(i,r)=>t(i,r,e);let W=class{constructor(e){this.documentService=e}parse(e,t){if(/^https?:\/\//.test(e))throw new Error(`[${e}] is not a valid entity reference`);return this.innerParse(e,t?.type)}async parseAsync(e,t){return this.parse(e,t)}innerParse(e,t){const i=e.split(":"),r=i[i.length-1];if(r.includes("@")||i.includes("attach")||t==m.ATTACHMENT){const n=r.split("@");if(n.length==1){const a=this.getCurrentDocumentReference();return new $(n[0],a)}else{const a=this.parseDocumentReference(n[0]);return new $(n[1],a)}}else return this.parseDocumentReference(r)}parseDocumentReference(e){const t=e.split(".");if(B(t,["WebHome"])){const i=this.getCurrentDocumentReference();return new v(t[0],i.space)}else return new v(t[t.length-1],new _(void 0,...t.slice(0,t.length-1)))}getCurrentDocumentReference(){return this.documentService.getCurrentDocumentReference().value}};W=ne([h(),ae(0,p("DocumentService"))],W);var se=Object.getOwnPropertyDescriptor,oe=(e,t,i,r)=>{for(var n=r>1?void 0:r?se(t,i):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(n=s(n)||n);return n};let L=class{escapeSegment(e){return e.replace(/(\.|\\)/g,"\\$1")}serialize(e){if(!e)return;const t=e.type,{SPACE:i,ATTACHMENT:r,DOCUMENT:n,WIKI:a}=m;switch(t){case a:return e.name;case i:{const s=e,l=this.serialize(s.wiki),c=s.names.map(this.escapeSegment).join(".");return l===void 0?c:`${l}:${c}`}case n:{const s=e,l=this.serialize(s.space),c=this.escapeSegment(s.name);return l===void 0||l==""?c:`${l}.${c}`}case r:{const s=e,l=this.serialize(s.document),c=s.name;return`attach:${l}@${c}`}default:throw new Error(`Unknown reference type [${t}]`)}}};L=oe([h()],L);let ce=class{constructor(t){t.bind("ModelReferenceHandler").to(C).inSingletonScope().whenNamed("XWiki"),t.bind("ModelReferenceParser").to(W).inSingletonScope().whenNamed("XWiki"),t.bind("ModelReferenceSerializer").to(L).inSingletonScope().whenNamed("XWiki")}};var le=Object.getOwnPropertyDescriptor,pe=(e,t,i,r)=>{for(var n=r>1?void 0:r?le(t,i):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(n=s(n)||n);return n},ue=(e,t)=>(i,r)=>t(i,r,e);let M=class{constructor(e){this.cristalApp=e}parse(e){const t=this.cristalApp.getWikiConfig().baseURL;if(!e.startsWith(t))throw new Error(`[${e}] does not start with base url [${t}]`);const i=new URL(t),r=new URL(e);let a=decodeURI(r.pathname.replace(i.pathname,"")).split("/").map(c=>c.replace(/%2F/g,"/"));a[0]===""&&(a=a.slice(1)),a[a.length-1]===""&&(a[a.length-1]="WebHome");const[s,l]=a;if(s=="bin"&&(l=="view"||l=="create")){a=a.slice(2);const c=a[a.length-1],o=a.slice(0,a.length-1);return new v(c,new _(void 0,...o))}else if(s=="bin"&&l=="download"){a=a.slice(2);const c=a[a.length-1],o=a[a.length-2],u=a.slice(0,a.length-2);return new $(c,new v(o,new _(void 0,...u)))}else throw new Error(`Impossible to resolve [${e}] to an entity`)}};M=pe([h(),ue(0,p("CristalApp"))],M);var he=Object.getOwnPropertyDescriptor,me=(e,t,i,r)=>{for(var n=r>1?void 0:r?he(t,i):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(n=s(n)||n);return n},de=(e,t)=>(i,r)=>t(i,r,e);let z=class{constructor(e){this.cristalApp=e}serialize(e){if(e)switch(e.type){case m.WIKI:throw new Error("Not implemented");case m.SPACE:throw new Error("Not implemented");case m.DOCUMENT:return this.serializeDocument(e);case m.ATTACHMENT:return this.serializeAttachment(e)}}serializeAttachment(e){const t=this.cristalApp.getWikiConfig().baseURL,i=e,r=i.document,n=r.space?.names.map(encodeURI).join("/");return`${t}/bin/download/${n}/${encodeURI(r.name)}/${encodeURI(i.name)}`}serializeDocument(e){const t=this.cristalApp.getWikiConfig().baseURL,i=e,r=i.space?.names.map(encodeURI).join("/");return i.name=="WebHome"?`${t}/bin/view/${r}/`:`${t}/bin/view/${r}/${encodeURI(i.name)}`}};z=me([h(),de(0,p("CristalApp"))],z);let ge=class{constructor(t){t.bind("RemoteURLParser").to(M).inSingletonScope().whenNamed("XWiki"),t.bind("RemoteURLSerializer").to(z).inSingletonScope().whenNamed("XWiki")}};var fe=Object.getOwnPropertyDescriptor,ve=(e,t,i,r)=>{for(var n=r>1?void 0:r?fe(t,i):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(n=s(n)||n);return n},f=(e,t)=>(i,r)=>t(i,r,e);let U=class{constructor(e,t,i,r,n){this.logger=e,this.cristalApp=t,this.authenticationManagerProvider=i,this.urlParser=r,this.referenceSerializer=n,this.logger.setModule("navigation-tree-xwiki.components.XWikiNavigationTreeSource")}async getChildNodes(e){const t=e||"#",i=[];try{const r=await this.authenticationManagerProvider.get()?.getAuthorizationHeader(),n={Accept:"application/json"};r&&(n.Authorization=r),i.push(...await this.fetchNodes(t,n,0))}catch(r){this.logger.error(r),this.logger.debug("Could not load navigation tree.")}return i}getParentNodesId(e,t=!0,i){const r=i?[""]:[];if(e.space){let n="";for(const a of e.space.names)n+=a,r.push(`document:xwiki:${n}.WebHome`),n+=".";e.name!="WebHome"&&t&&r.push(`document:xwiki:${this.referenceSerializer.serialize(e)}`)}return r}async fetchNodes(e,t,i){const r=[],n=this.cristalApp.getWikiConfig().baseURL.replace(/\/[^/]*$/,""),a=100,s=new URL(`${this.cristalApp.getWikiConfig().baseURL}/bin/get`);s.search=new URLSearchParams([["id",e],["outputSyntax","plain"],["sheet","XWiki.DocumentTree"],["data","children"],["compact","true"],["offset",i.toString()],["limit",a.toString()],["showTranslations","false"],["showAttachments","false"]]).toString();const c=await(await fetch(s,{headers:t})).json();for(const o of c)if(o.id=="pagination:wiki:xwiki")r.push(...await this.fetchNodes(e,t,o.data.offset));else if(!["attachments","translations"].includes(o.data.type)&&o.a_attr){const u=this.urlParser.parse(`${n}${o.a_attr.href}`);r.push({id:o.id,label:o.text,location:u.space,url:this.cristalApp.getRouter().resolve({name:"view",params:{page:this.referenceSerializer.serialize(u)}}).href,has_children:o.children,is_terminal:!o.id.endsWith(".WebHome")})}return c.length>=a&&r.push(...await this.fetchNodes(e,t,i+a)),r}};U=ve([h(),f(0,p("Logger")),f(1,p("CristalApp")),f(2,p("AuthenticationManagerProvider")),f(3,p("RemoteURLParser")),f(3,R("XWiki")),f(4,p("ModelReferenceSerializer")),f(4,R("XWiki"))],U);let we=class{constructor(t){t.bind(q).to(U).inSingletonScope().whenNamed("XWiki")}};var Pe=Object.getOwnPropertyDescriptor,Re=(e,t,i,r)=>{for(var n=r>1?void 0:r?Pe(t,i):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(n=s(n)||n);return n};const _e={html:{type:"string"},metadata:{type:"string"}};let T=class{infos={id:"xwikiHtmlBlock",name:"XWiki HTML Block Content",description:"HTML rendering of an XWiki macro block content",params:_e,paramsDescription:{html:"Server-rendered HTML content",metadata:"Metadata used to generate the XWiki macro"},defaultParameters:!1,bodyType:"none"};renderAs="block";render({html:e}){return[{type:"rawHtml",html:e}]}};T=Re([h()],T);var be=Object.getOwnPropertyDescriptor,Ae=(e,t,i,r)=>{for(var n=r>1?void 0:r?be(t,i):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(n=s(n)||n);return n};const $e={html:{type:"string"},metadata:{type:"string"}};let N=class{infos={id:"xwikiInlineHtml",name:"XWiki HTML Inline Content",description:"HTML rendering of an XWiki macro inline content",params:$e,paramsDescription:{html:"Server-rendered HTML content",metadata:"Metadata used to generate the XWiki macro"},defaultParameters:!1,bodyType:"none"};renderAs="inline";render({html:e}){return[{type:"rawHtml",html:e}]}};N=Ae([h()],N);let Se=class{constructor(t){t.bind("Macro").to(H(T)),t.bind("Macro").to(H(N))}};var ye=Object.getOwnPropertyDescriptor,ke=(e,t,i,r)=>{for(var n=r>1?void 0:r?ye(t,i):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(n=s(n)||n);return n},O=(e,t)=>(i,r)=>t(i,r,e);let D=class{constructor(e,t){this.authenticationManager=e,this.cristal=t}id="main.banner.authServiceBanner";uixpName="main.banner";order=1e3;parameters={};async component(){return(await X(async()=>{const{default:e}=await import("./AuthServiceBanner-ChdElfqx.js");return{default:e}},__vite__mapDeps([0,1,2,3]),import.meta.url)).default}async enabled(){if(await this.authenticationManager.get()?.isAuthenticated()){const e=await fetch(`${this.cristal.getWikiConfig().baseURL}/rest/cristal/auth`);return e.ok&&await e.text()!="oidc-provider-bridge"}else return!1}};D=ke([h(),O(0,p("AuthenticationManagerProvider")),O(1,p("CristalApp"))],D);class Ce{constructor(t){t.bind("UIExtension").to(D).inSingletonScope()}}class We{constructor(t){Le(t)}}function Le(e){const t="XWiki";e.bind("Factory<InternalLinksSerializer>").toFactory(i=>async()=>{const r=(await X(async()=>{const{XWikiInternalLinkSerializer:n}=await import("./xwiki-internal-link-serializer-Cd8xorru-BvcqTQNz.js");return{XWikiInternalLinkSerializer:n}},__vite__mapDeps([4,1,2]),import.meta.url)).XWikiInternalLinkSerializer;return Me(e,t,r,i)}).whenNamed(t)}function Me(e,t,i,r){return e.isBound("InternalLinksSerializer",{name:t})||e.bind("InternalLinksSerializer").to(i).whenNamed(t),r.get("InternalLinksSerializer",{name:t})}function je(e){new ee(e),new V(e),new we(e),new J(e),new ge(e),new ce(e),new Se(e),new Ce(e),new We(e)}export{je as load};
|
|
4
|
-
//# sourceMappingURL=xwiki-OgNiU9fx.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"mappings":";iKA8BA,SAASA,EAAQC,EAAOC,EAAO,CAC7B,OAAOC,EAAYF,EAAOC,CAAK,CACjC,sKCaA,IAAME,EAAN,KAAkE,CAChE,YACqCC,EACIC,EAEtBC,EAEAC,EAEAC,EAGAC,EAGAC,EACjB,CAdmC,YAAAN,EACI,gBAAAC,EAEtB,8BAAAC,EAEA,mCAAAC,EAEA,qBAAAC,EAGA,eAAAC,EAGA,yBAAAC,EAEjB,KAAK,OAAO,UAAU,+CAA+C,CACvE,CAIA,MAAM,iBACJC,EACAC,EAA2B,GACQ,CACnC,IAAIC,EAAa,KAAK,oBAAoB,UAAUF,CAAI,EACpDA,EAAK,MAAQG,EAAW,QAC1BD,GAAc,YAGhB,MAAME,EAAaC,EACjB,KAAK,WAAW,gBAChBH,CAAA,EAGF,GAAI,CACF,MAAMI,EAAgB,MAAM,KAAK,8BAC9B,OACC,yBACEC,EAAsD,CAC1D,OAAQ,oBAGND,IACFC,EAAQ,cAAgBD,GAK1B,MAAME,EAAe,MAHJ,MAAM,MAAM,GAAGJ,CAAU,oBAAqB,CAC7D,QAAAG,CAAA,CACD,GACmC,OAC9BE,EAAsC,G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BAA2B,CACjJ,KAAMJ,CACV,CAAG,CACH,CCaO,SAASO,GAAKhH,EAAsB,CACzC,IAAIiH,GAA8BjH,CAAS,EAC3C,IAAIkH,EAAgClH,CAAS,EAC7C,IAAImH,GAAiCnH,CAAS,EAC9C,IAAIoH,EAA8BpH,CAAS,EAC3C,IAAIqH,GAAiCrH,CAAS,EAC9C,IAAIsH,GAAiCtH,CAAS,EAC9C,IAAIuH,GAAyBvH,CAAS,EACtC,IAAIwH,GAAqBxH,CAAS,EAClC,IAAIyH,GAAiCzH,CAAS,CAChD","names":["isEqual","value","other","baseIsEqual","XWikiPageHierarchyResolver","logger","cristalApp","defaultHierarchyResolver","authenticationManagerProvider","storageProvider","urlParser","referenceSerializer","page","includeHomePage","documentId","EntityType","restApiUrl","getRestSpacesApiUrl","authorization","headers","jsonResponse","hierarchy","hierarchyItem","wikiItem","error","__decorateClass","injectable","__decorateParam","ComponentInit$7","container","name","XWikiPageRevisionManager","alertsService","pageData","limit","offset","restApiSearchParams","usersCache","resolve","revision","userId","firstName","p","lastName","fullName","user","ComponentInit$6","PageRevisionManagerName","XWikiLinkSuggestService","remoteURLSerializerProvider","modelReferenceParserProvider","query","type","mimetype","it","baseURL","params","getParams","fqs","LinkType","link","expectedType","result","reference","xwikiURL","label","authorizationHeader","ComponentInit$5","XWikiModelReferenceHandler","space","newSpace","SpaceReference","DocumentReference","XWikiModelReferenceParser","documentService","options","splits","noWiki","strings","doc","AttachmentReference","segments","currentDocumentReference","XWikiModelReferenceSerializer","segment","SPACE","ATTACHMENT","DOCUMENT","WIKI","spaceReference","wiki","spaces","documentReference","attachmentReference","document","ComponentInit$4","XWikiRemoteURLParser","urlStr","baseURLstr","url","bin","action","pageName","attachmentName","XWikiRemoteURLSerializer","ComponentInit$3","XWikiNavigationTreeSource","id","currentId","navigationTree","includeTerminal","includeRootNode","currentParent","parent","nodes","baseXWikiURL","navigationTreeRequestUrl","treeNode","ComponentInit$2","NavigationTreeSourceName","macroParams","XWikiHtmlBlockMacro","html","XWikiInlineHtmlMacro","ComponentInit$1","eraseParamsTypeForMacroClass","AuthServiceBannerUIExtension","authenticationManager","cristal","__vitePreload","__vite_default__","response","ComponentInit","o","n","e","i","r","t","XWikiInternalLinkSerializer","a","load","XWikiLinkSuggestComponentInit","XWikiPageHierarchyComponentInit","XWikiNavigationTreeComponentInit","XWikiPageHistoryComponentInit","ModelRemoteURLXWikiComponentInit","ModelReferenceXWikiComponentInit","XWikiMacrosComponentInit","XWikiUIComponentInit","UniastMarkdownXWikiComponentInit"],"ignoreList":[0,18],"sources":["../../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js","../../../core/hierarchy/hierarchy-xwiki/src/components/componentsInit.ts","../../../core/history/history-xwiki/src/components/componentsInit.ts","../../../core/history/history-xwiki/src/index.ts","../../../core/link-suggest/link-suggest-xwiki/src/components/componentsInit.ts","../../../core/model/model-reference/model-reference-xwiki/src/xWikiModelReferenceHandler.ts","../../../core/model/model-reference/model-reference-xwiki/src/xWikiModelReferenceParser.ts","../../../core/model/model-reference/model-reference-xwiki/src/xWikiModelReferenceSerializer.ts","../../../core/model/model-reference/model-reference-xwiki/src/componentInit.ts","../../../core/model/model-remote-url/model-remote-url-xwiki/src/xWikiRemoteURLParser.ts","../../../core/model/model-remote-url/model-remote-url-xwiki/src/xWikiRemoteURLSerializer.ts","../../../core/model/model-remote-url/model-remote-url-xwiki/src/componentInit.ts","../../../core/navigation-tree/navigation-tree-xwiki/src/components/componentsInit.ts","../../../core/xwiki/xwiki-macros/src/macros/blockMacro.ts","../../../core/xwiki/xwiki-macros/src/macros/inlineMacro.ts","../../../core/xwiki/xwiki-macros/src/componentInit.ts","../../../core/xwiki/xwiki-ui/src/AuthServiceBannerUIExtension.ts","../../../core/xwiki/xwiki-ui/src/index.ts","../../../node_modules/.pnpm/@xwiki+platform-uniast-markdown-xwiki@18.3.0_inversify@8.1.0_reflect-metadata@0.2.2__re_076fa5e322d48ce0d3bd29332ad19123/node_modules/@xwiki/platform-uniast-markdown-xwiki/dist/index.es.js","../../../lib/src/default/xwiki.ts"],"sourcesContent":["import baseIsEqual from './_baseIsEqual.js';\n\n/**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\nfunction isEqual(value, other) {\n return baseIsEqual(value, other);\n}\n\nexport default isEqual;\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 { name } from \"@xwiki/cristal-hierarchy-api\";\nimport { getRestSpacesApiUrl } from \"@xwiki/cristal-xwiki-utils\";\nimport { EntityType } from \"@xwiki/platform-model-api\";\nimport { Container, inject, injectable, named } from \"inversify\";\nimport type {\n PageHierarchyItem,\n PageHierarchyResolver,\n} from \"@xwiki/cristal-hierarchy-api\";\nimport type { CristalApp, Logger } from \"@xwiki/platform-api\";\nimport type { AuthenticationManagerProvider } from \"@xwiki/platform-authentication-api\";\nimport type { StorageProvider } from \"@xwiki/platform-backend-api\";\nimport type {\n DocumentReference,\n SpaceReference,\n} from \"@xwiki/platform-model-api\";\nimport type { ModelReferenceSerializer } from \"@xwiki/platform-model-reference-api\";\nimport type { RemoteURLParser } from \"@xwiki/platform-model-remote-url-api\";\n\n/**\n * Implementation of PageHierarchyResolver for the XWiki backend.\n *\n * @since 0.9\n * @beta\n **/\n@injectable()\nclass XWikiPageHierarchyResolver implements PageHierarchyResolver {\n constructor(\n @inject(\"Logger\") private readonly logger: Logger,\n @inject(\"CristalApp\") private readonly cristalApp: CristalApp,\n @inject(\"PageHierarchyResolver\")\n private readonly defaultHierarchyResolver: PageHierarchyResolver,\n @inject(\"AuthenticationManagerProvider\")\n private readonly authenticationManagerProvider: AuthenticationManagerProvider,\n @inject(\"StorageProvider\")\n private readonly storageProvider: StorageProvider,\n @inject(\"RemoteURLParser\")\n @named(\"XWiki\")\n private readonly urlParser: RemoteURLParser,\n @inject(\"ModelReferenceSerializer\")\n @named(\"XWiki\")\n private readonly referenceSerializer: ModelReferenceSerializer,\n ) {\n this.logger.setModule(\"storage.components.XWikiPageHierarchyResolver\");\n }\n\n // TODO: reduce the number of statements in the following method and reactivate the disabled eslint rule.\n // eslint-disable-next-line max-statements\n async getPageHierarchy(\n page: DocumentReference | SpaceReference,\n includeHomePage: boolean = true,\n ): Promise<Array<PageHierarchyItem>> {\n let documentId = this.referenceSerializer.serialize(page)!;\n if (page.type == EntityType.SPACE) {\n documentId += \".WebHome\";\n }\n // TODO: support subwikis.\n const restApiUrl = getRestSpacesApiUrl(\n this.cristalApp.getWikiConfig(),\n documentId,\n );\n\n try {\n const authorization = await this.authenticationManagerProvider\n .get()\n ?.getAuthorizationHeader();\n const headers: { Accept: string; Authorization?: string } = {\n Accept: \"application/json\",\n };\n\n if (authorization) {\n headers.Authorization = authorization;\n }\n const response = await fetch(`${restApiUrl}?prettyNames=true`, {\n headers,\n });\n const jsonResponse = await response.json();\n const hierarchy: Array<PageHierarchyItem> = [];\n jsonResponse.hierarchy.items.forEach(\n (hierarchyItem: { label: string; url: string; type: string }) => {\n // Terminal pages and spaces only\n if (\n (hierarchyItem.type == \"document\" &&\n !new URL(hierarchyItem.url).pathname.endsWith(\"/\")) ||\n hierarchyItem.type == \"space\"\n ) {\n hierarchy.push({\n label: hierarchyItem.label,\n pageId: this.storageProvider\n .get()\n .getPageFromViewURL(hierarchyItem.url)!,\n url: this.cristalApp.getRouter().resolve({\n name: \"view\",\n params: {\n page: this.referenceSerializer.serialize(\n this.urlParser.parse(\n hierarchyItem.url,\n )! as DocumentReference,\n ),\n },\n }).href,\n });\n }\n },\n );\n if (includeHomePage) {\n const wikiItem = jsonResponse.hierarchy.items[0];\n hierarchy.unshift({\n label: wikiItem.label,\n pageId: this.storageProvider.get().getPageFromViewURL(wikiItem.url)!,\n url: this.cristalApp.getRouter().resolve({\n name: \"view\",\n params: {\n page: this.referenceSerializer.serialize(\n this.urlParser.parse(wikiItem.url)! as DocumentReference,\n ),\n },\n }).href,\n });\n }\n return hierarchy;\n } catch (error) {\n this.logger.error(error);\n this.logger.debug(\n `Could not load hierarchy for page ${documentId}, falling back to default hierarchy resolver.`,\n );\n return this.defaultHierarchyResolver.getPageHierarchy(page);\n }\n }\n}\n\n/**\n * @beta\n */\nexport class ComponentInit {\n constructor(container: Container) {\n container\n .bind<PageHierarchyResolver>(name)\n .to(XWikiPageHierarchyResolver)\n .inSingletonScope()\n .whenNamed(\"XWiki\");\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 { getRestSpacesApiUrl } from \"@xwiki/cristal-xwiki-utils\";\nimport { inject, injectable } from \"inversify\";\nimport type { AlertsService } from \"@xwiki/cristal-alerts-api\";\nimport type {\n PageRevision,\n PageRevisionManager,\n} from \"@xwiki/cristal-history-api\";\nimport type { CristalApp, Logger, PageData } from \"@xwiki/platform-api\";\nimport type {\n AuthenticationManagerProvider,\n UserDetails,\n} from \"@xwiki/platform-authentication-api\";\n\n/**\n * Implementation of PageRevisionManager for the XWiki backend.\n *\n * @since 0.12\n * @beta\n **/\n@injectable()\nclass XWikiPageRevisionManager implements PageRevisionManager {\n constructor(\n @inject(\"Logger\") private readonly logger: Logger,\n @inject(\"CristalApp\") private readonly cristalApp: CristalApp,\n @inject(\"AuthenticationManagerProvider\")\n private readonly authenticationManagerProvider: AuthenticationManagerProvider,\n @inject(\"AlertsService\")\n private readonly alertsService: AlertsService,\n ) {\n this.logger.setModule(\"history.xwiki.XWikiPageRevisionManager\");\n }\n\n // TODO: reduce the number of statements in the following method and reactivate the disabled eslint rule.\n // eslint-disable-next-line max-statements\n async getRevisions(\n pageData: PageData,\n limit?: number,\n offset?: number,\n ): Promise<Array<PageRevision>> {\n const documentId = pageData.document.getIdentifier();\n if (documentId == null) {\n this.alertsService.error(\n `Could not load page history for ${pageData.name}.`,\n );\n return [];\n }\n\n const restApiSearchParams = new URLSearchParams();\n if (limit) {\n restApiSearchParams.append(\"number\", limit.toString());\n }\n if (offset) {\n restApiSearchParams.append(\"start\", offset.toString());\n }\n const restApiUrl =\n getRestSpacesApiUrl(this.cristalApp.getWikiConfig(), documentId) +\n \"/history\";\n\n const usersCache: Map<string, Promise<UserDetails>> = new Map([\n [\n \"XWiki.superadmin\",\n new Promise<UserDetails>((resolve) => {\n resolve({ name: \"superadmin\", profile: \"\" });\n }),\n ],\n ]);\n\n try {\n const authorization = await this.authenticationManagerProvider\n .get()\n ?.getAuthorizationHeader();\n const headers: { Accept: string; Authorization?: string } = {\n Accept: \"application/json\",\n };\n\n if (authorization) {\n headers.Authorization = authorization;\n }\n const response = await fetch(restApiUrl, { headers });\n const jsonResponse = await response.json();\n const revisions: Array<PageRevision> = await Promise.all(\n jsonResponse.historySummaries.map(\n async (revision: {\n version: string;\n modified: string;\n modifier: string;\n comment: string;\n }) => {\n if (!usersCache.has(revision.modifier)) {\n usersCache.set(\n revision.modifier,\n this.getUserName(revision.modifier),\n );\n }\n return {\n version: revision.version,\n date: new Date(revision.modified),\n user: await usersCache.get(revision.modifier),\n comment: revision.comment,\n url: this.cristalApp.getRouter().resolve({\n name: \"view\",\n params: {\n page: documentId,\n revision: revision.version,\n },\n }).href,\n };\n },\n ),\n );\n return revisions;\n } catch (error) {\n this.logger.error(error);\n this.alertsService.error(\n `Could not load page history for ${pageData.name}.`,\n );\n return [];\n }\n }\n\n // TODO: reduce the number of statements in the following method and reactivate the disabled eslint rule.\n // eslint-disable-next-line max-statements\n private async getUserName(userId: string): Promise<UserDetails> {\n const restApiUrl =\n getRestSpacesApiUrl(this.cristalApp.getWikiConfig(), userId) +\n \"/objects/XWiki.XWikiUsers/0\";\n\n try {\n const authorization = await this.authenticationManagerProvider\n .get()\n ?.getAuthorizationHeader();\n const headers: { Accept: string; Authorization?: string } = {\n Accept: \"application/json\",\n };\n\n if (authorization) {\n headers.Authorization = authorization;\n }\n const response = await fetch(restApiUrl, { headers });\n const jsonResponse: {\n properties: { name: string; value: string }[];\n pageName: string;\n } = await response.json();\n\n const firstName =\n jsonResponse.properties\n .filter((p) => p.name == \"first_name\")\n .map((p) => p.value) ?? \"\";\n const lastName =\n jsonResponse.properties\n .filter((p) => p.name == \"last_name\")\n .map((p) => p.value) ?? \"\";\n const fullName = `${firstName} ${lastName}`.trim();\n let user: string;\n // If at least one of first or last name is not empty, the full name is not empty and the fullname is used.\n // Otherwise, we fallback to the user id.\n if (fullName != \"\") {\n user = fullName;\n } else {\n user = jsonResponse.pageName;\n }\n\n return {\n name: user,\n username: jsonResponse.pageName,\n profile: this.cristalApp.getRouter().resolve({\n name: \"view\",\n params: {\n page: userId,\n },\n }).href,\n };\n } catch (error) {\n this.logger.error(error);\n this.logger.debug(`Could not load user details for page ${userId}.`);\n return { name: userId, profile: \"\" };\n }\n }\n}\n\nexport { XWikiPageRevisionManager };\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 { XWikiPageRevisionManager } from \"./components/componentsInit\";\nimport { name as PageRevisionManagerName } from \"@xwiki/cristal-history-api\";\nimport type { PageRevisionManager } from \"@xwiki/cristal-history-api\";\nimport type { Container } from \"inversify\";\n\n/**\n * @beta\n */\nclass ComponentInit {\n constructor(container: Container) {\n container\n .bind<PageRevisionManager>(PageRevisionManagerName)\n .to(XWikiPageRevisionManager)\n .inSingletonScope()\n .whenNamed(\"XWiki\");\n }\n}\n\nexport { ComponentInit };\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 { LinkType, name } from \"@xwiki/platform-link-suggest-api\";\nimport { Container, inject, injectable } from \"inversify\";\nimport type { CristalApp } from \"@xwiki/platform-api\";\nimport type { AuthenticationManagerProvider } from \"@xwiki/platform-authentication-api\";\nimport type {\n Link,\n LinkSuggestService,\n} from \"@xwiki/platform-link-suggest-api\";\nimport type { ModelReferenceParserProvider } from \"@xwiki/platform-model-reference-api\";\nimport type { RemoteURLSerializerProvider } from \"@xwiki/platform-model-remote-url-api\";\n\n/**\n * Default implementation of the link suggestion service, for XWiki.\n * Currently limited to guests, and to XWiki instances that have explicitly\n * allowed CORS, see https://cristal.xwiki.org/xwiki/bin/view/Backends/XWiki/\n * @since 0.8\n * @beta\n */\n@injectable()\nclass XWikiLinkSuggestService implements LinkSuggestService {\n constructor(\n @inject(\"CristalApp\") private readonly cristalApp: CristalApp,\n @inject(\"RemoteURLSerializerProvider\")\n private readonly remoteURLSerializerProvider: RemoteURLSerializerProvider,\n @inject(\"ModelReferenceParserProvider\")\n private readonly modelReferenceParserProvider: ModelReferenceParserProvider,\n @inject(\"AuthenticationManagerProvider\")\n private authenticationManagerProvider: AuthenticationManagerProvider,\n ) {}\n\n async getLinks(\n query: string,\n type?: LinkType,\n mimetype?: string,\n ): Promise<Link[]> {\n const json = await this.executeQuery(type, mimetype, query);\n\n return json\n .map(this.mapToLink.bind(this))\n .filter((it: unknown) => it !== undefined)\n .filter(this.filterLinks(type, mimetype));\n }\n\n private async executeQuery(\n type: LinkType | undefined | LinkType.PAGE | LinkType.ATTACHMENT,\n mimetype: string | undefined,\n query: string,\n ) {\n const baseURL = this.cristalApp.getWikiConfig().baseURL;\n const fqs = this.initializeSolrQueryParameters(type, mimetype);\n const params: Record<string, string> = {\n query: fqs.map((it) => `fq=${it}`).join(\"\\n\"),\n nb: \"20\",\n media: \"json\",\n input: `*${query}*`,\n };\n\n const getParams = new URLSearchParams(params).toString();\n const response = await fetch(\n `${baseURL}/bin/get/XWiki/SuggestSolrService?${getParams}`,\n {\n headers: {\n ...(await this.getCredentials()),\n },\n },\n );\n\n return await response.json();\n }\n\n private initializeSolrQueryParameters(\n type: LinkType | LinkType.PAGE | LinkType.ATTACHMENT | undefined,\n mimetype: string | undefined,\n ) {\n const fqs = [\"locale:*\", \"wiki:xwiki\"];\n\n if (type) {\n if (type == LinkType.ATTACHMENT) {\n fqs.push(\"type:ATTACHMENT\");\n } else {\n fqs.push(\"type:PAGE\");\n }\n }\n\n if (mimetype) {\n fqs.push(`mimetype:((${mimetype}))`);\n }\n return fqs;\n }\n\n private filterLinks(\n type: LinkType | undefined | LinkType.PAGE | LinkType.ATTACHMENT,\n mimetype: string | undefined,\n ) {\n return (link: Link) => {\n if (type == undefined) {\n return true;\n } else {\n const expectedType = link.type == type;\n if (!expectedType) {\n return false;\n }\n if (mimetype) {\n // TODO...\n return expectedType;\n } else {\n return true;\n }\n }\n };\n }\n\n private mapToLink(result: {\n id: string;\n filename: string[];\n type: string;\n title_: string;\n name: string;\n reference: string;\n }) {\n const reference = result.reference;\n const type = result.type;\n const xwikiURL =\n this.remoteURLSerializerProvider\n .get()\n ?.serialize(\n this.modelReferenceParserProvider.get()?.parse(reference),\n ) ?? \"\";\n\n if (type == \"ATTACHMENT\") {\n return {\n type: LinkType.ATTACHMENT,\n id: result.id,\n url: xwikiURL,\n reference,\n label: result.filename[0],\n hint: result.filename[0],\n };\n } else if (type == \"DOCUMENT\") {\n const label = result.title_;\n return {\n type: LinkType.PAGE,\n id: result.id,\n url: xwikiURL,\n reference,\n label,\n hint: label,\n };\n }\n }\n\n private async getCredentials(): Promise<{ Authorization?: string }> {\n const authorizationHeader = await this.authenticationManagerProvider\n .get()\n ?.getAuthorizationHeader();\n const headers: { Authorization?: string } = {};\n if (authorizationHeader) {\n headers[\"Authorization\"] = authorizationHeader;\n }\n return headers;\n }\n}\n\n/**\n * @beta\n */\nexport class ComponentInit {\n constructor(container: Container) {\n container\n .bind<LinkSuggestService>(name)\n .to(XWikiLinkSuggestService)\n .inSingletonScope()\n .whenNamed(\"XWiki\");\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 {\n AttachmentReference,\n DocumentReference,\n EntityType,\n SpaceReference,\n} from \"@xwiki/platform-model-api\";\nimport { injectable } from \"inversify\";\nimport type { EntityReference, WikiReference } from \"@xwiki/platform-model-api\";\nimport type { ModelReferenceHandler } from \"@xwiki/platform-model-reference-api\";\n\n/**\n * Implementation of {@link ModelReferenceHandler} for the XWiki backend.\n *\n * @since 0.13\n * @beta\n */\n@injectable()\nexport class XWikiModelReferenceHandler implements ModelReferenceHandler {\n createDocumentReference(\n name: string,\n space: SpaceReference,\n ): DocumentReference {\n const newSpace = new SpaceReference(space.wiki, ...space.names, name);\n return new DocumentReference(\"WebHome\", newSpace);\n }\n\n getTitle(reference: EntityReference): string {\n switch (reference.type) {\n case EntityType.WIKI:\n return (reference as WikiReference).name;\n case EntityType.SPACE:\n return [...(reference as SpaceReference).names].pop()!;\n case EntityType.DOCUMENT: {\n const name = (reference as DocumentReference).name;\n if (name === \"WebHome\" && (reference as DocumentReference).space) {\n return this.getTitle((reference as DocumentReference).space!);\n } else {\n return name;\n }\n }\n case EntityType.ATTACHMENT:\n return (reference as AttachmentReference).name;\n }\n return \"\";\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 {\n AttachmentReference,\n DocumentReference,\n EntityType,\n SpaceReference,\n} from \"@xwiki/platform-model-api\";\nimport { inject, injectable } from \"inversify\";\nimport { isEqual } from \"lodash-es\";\nimport type { DocumentService } from \"@xwiki/platform-document-api\";\nimport type { EntityReference } from \"@xwiki/platform-model-api\";\nimport type {\n ModelReferenceParser,\n ModelReferenceParserOptions,\n} from \"@xwiki/platform-model-reference-api\";\n\n@injectable()\nexport class XWikiModelReferenceParser implements ModelReferenceParser {\n constructor(\n @inject(\"DocumentService\")\n private readonly documentService: DocumentService,\n ) {}\n\n parse(\n reference: string,\n options?: ModelReferenceParserOptions,\n ): EntityReference {\n if (/^https?:\\/\\//.test(reference)) {\n throw new Error(`[${reference}] is not a valid entity reference`);\n }\n return this.innerParse(reference, options?.type);\n }\n\n async parseAsync(\n reference: string,\n options?: ModelReferenceParserOptions,\n ): Promise<EntityReference> {\n return this.parse(reference, options);\n }\n\n private innerParse(reference: string, type: EntityType | undefined) {\n const splits = reference.split(\":\");\n const noWiki = splits[splits.length - 1];\n if (\n noWiki.includes(\"@\") ||\n splits.includes(\"attach\") ||\n type == EntityType.ATTACHMENT\n ) {\n const strings = noWiki.split(\"@\");\n if (strings.length == 1) {\n const doc = this.getCurrentDocumentReference();\n return new AttachmentReference(strings[0], doc);\n } else {\n const doc = this.parseDocumentReference(strings[0]);\n return new AttachmentReference(strings[1], doc);\n }\n } else {\n return this.parseDocumentReference(noWiki);\n }\n }\n\n private parseDocumentReference(noWiki: string) {\n const segments = noWiki.split(\".\");\n if (isEqual(segments, [\"WebHome\"])) {\n const currentDocumentReference = this.getCurrentDocumentReference();\n return new DocumentReference(segments[0], currentDocumentReference.space);\n } else {\n return new DocumentReference(\n segments[segments.length - 1],\n new SpaceReference(\n undefined,\n ...segments.slice(0, segments.length - 1),\n ),\n );\n }\n }\n\n private getCurrentDocumentReference() {\n return this.documentService.getCurrentDocumentReference().value!;\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 {\n AttachmentReference,\n DocumentReference,\n EntityType,\n SpaceReference,\n WikiReference,\n} from \"@xwiki/platform-model-api\";\nimport { injectable } from \"inversify\";\nimport type { EntityReference } from \"@xwiki/platform-model-api\";\nimport type { ModelReferenceSerializer } from \"@xwiki/platform-model-reference-api\";\n\n@injectable()\nexport class XWikiModelReferenceSerializer implements ModelReferenceSerializer {\n private escapeSegment(segment: string): string {\n // Dots in XWiki references separate segments, so when inside a segment\n // they need to be escaped with a '\\'. At the same time, using '\\' as an\n // escape character means it needs to be escaped as well.\n return segment.replace(/(\\.|\\\\)/g, \"\\\\$1\");\n }\n\n // TODO: reduce the number of statements in the following method and reactivate the disabled eslint rule.\n // eslint-disable-next-line max-statements\n serialize(reference?: EntityReference): string | undefined {\n if (!reference) {\n return undefined;\n }\n const type = reference.type;\n const { SPACE, ATTACHMENT, DOCUMENT, WIKI } = EntityType;\n switch (type) {\n case WIKI:\n return (reference as WikiReference).name;\n case SPACE: {\n const spaceReference = reference as SpaceReference;\n const wiki = this.serialize(spaceReference.wiki);\n const spaces = spaceReference.names.map(this.escapeSegment).join(\".\");\n if (wiki === undefined) {\n return spaces;\n } else {\n return `${wiki}:${spaces}`;\n }\n }\n case DOCUMENT: {\n const documentReference = reference as DocumentReference;\n const spaces = this.serialize(documentReference.space);\n const name = this.escapeSegment(documentReference.name);\n if (spaces === undefined || spaces == \"\") {\n return name;\n } else {\n return `${spaces}.${name}`;\n }\n }\n case ATTACHMENT: {\n const attachmentReference = reference as AttachmentReference;\n const document = this.serialize(attachmentReference.document);\n const name = attachmentReference.name;\n return `attach:${document}@${name}`;\n }\n default:\n throw new Error(`Unknown reference type [${type}]`);\n }\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 { XWikiModelReferenceHandler } from \"./xWikiModelReferenceHandler\";\nimport { XWikiModelReferenceParser } from \"./xWikiModelReferenceParser\";\nimport { XWikiModelReferenceSerializer } from \"./xWikiModelReferenceSerializer\";\nimport type {\n ModelReferenceHandler,\n ModelReferenceParser,\n ModelReferenceSerializer,\n} from \"@xwiki/platform-model-reference-api\";\nimport type { Container } from \"inversify\";\n\n/**\n * @beta\n */\nexport class ComponentInit {\n constructor(container: Container) {\n container\n .bind<ModelReferenceHandler>(\"ModelReferenceHandler\")\n .to(XWikiModelReferenceHandler)\n .inSingletonScope()\n .whenNamed(\"XWiki\");\n container\n .bind<ModelReferenceParser>(\"ModelReferenceParser\")\n .to(XWikiModelReferenceParser)\n .inSingletonScope()\n .whenNamed(\"XWiki\");\n container\n .bind<ModelReferenceSerializer>(\"ModelReferenceSerializer\")\n .to(XWikiModelReferenceSerializer)\n .inSingletonScope()\n .whenNamed(\"XWiki\");\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 {\n AttachmentReference,\n DocumentReference,\n SpaceReference,\n} from \"@xwiki/platform-model-api\";\nimport { inject, injectable } from \"inversify\";\nimport type { CristalApp } from \"@xwiki/platform-api\";\nimport type { EntityReference } from \"@xwiki/platform-model-api\";\nimport type { RemoteURLParser } from \"@xwiki/platform-model-remote-url-api\";\n\n@injectable()\nclass XWikiRemoteURLParser implements RemoteURLParser {\n constructor(@inject(\"CristalApp\") private readonly cristalApp: CristalApp) {}\n\n // TODO: reduce the number of statements in the following method and reactivate the disabled eslint rule.\n // eslint-disable-next-line max-statements\n parse(urlStr: string): EntityReference {\n const baseURLstr = this.cristalApp.getWikiConfig().baseURL;\n if (!urlStr.startsWith(baseURLstr)) {\n throw new Error(\n `[${urlStr}] does not start with base url [${baseURLstr}]`,\n );\n }\n const baseURL = new URL(baseURLstr);\n const url = new URL(urlStr);\n\n const endPath = decodeURI(url.pathname.replace(baseURL.pathname, \"\"));\n // Using decodeURI will not decode '/' characters inside a segment, so we\n // do it manually.\n let segments = endPath\n .split(\"/\")\n .map((segment) => segment.replace(/%2F/g, \"/\"));\n if (segments[0] === \"\") {\n segments = segments.slice(1);\n }\n if (segments[segments.length - 1] === \"\") {\n segments[segments.length - 1] = \"WebHome\";\n }\n const [bin, action] = segments;\n // TODO: the current approach is easy but does not work if some url rewriting is done in front of XWiki.\n if (bin == \"bin\" && (action == \"view\" || action == \"create\")) {\n segments = segments.slice(2);\n const pageName = segments[segments.length - 1];\n const spaces = segments.slice(0, segments.length - 1);\n return new DocumentReference(\n pageName,\n new SpaceReference(undefined, ...spaces),\n );\n } else if (bin == \"bin\" && action == \"download\") {\n segments = segments.slice(2);\n const attachmentName = segments[segments.length - 1];\n const pageName = segments[segments.length - 2];\n const spaces = segments.slice(0, segments.length - 2);\n return new AttachmentReference(\n attachmentName,\n new DocumentReference(\n pageName,\n new SpaceReference(undefined, ...spaces),\n ),\n );\n } else {\n throw new Error(`Impossible to resolve [${urlStr}] to an entity`);\n }\n }\n}\n\nexport { XWikiRemoteURLParser };\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 {\n AttachmentReference,\n DocumentReference,\n EntityType,\n} from \"@xwiki/platform-model-api\";\nimport { inject, injectable } from \"inversify\";\nimport type { CristalApp } from \"@xwiki/platform-api\";\nimport type { EntityReference } from \"@xwiki/platform-model-api\";\nimport type { RemoteURLSerializer } from \"@xwiki/platform-model-remote-url-api\";\n\n@injectable()\nclass XWikiRemoteURLSerializer implements RemoteURLSerializer {\n constructor(@inject(\"CristalApp\") private readonly cristalApp: CristalApp) {}\n\n serialize(reference?: EntityReference): string | undefined {\n if (!reference) {\n return undefined;\n }\n switch (reference.type) {\n case EntityType.WIKI:\n throw new Error(\"Not implemented\");\n case EntityType.SPACE:\n throw new Error(\"Not implemented\");\n case EntityType.DOCUMENT: {\n return this.serializeDocument(reference);\n }\n case EntityType.ATTACHMENT: {\n return this.serializeAttachment(reference);\n }\n }\n }\n\n private serializeAttachment(reference: EntityReference) {\n const baseURL = this.cristalApp.getWikiConfig().baseURL;\n const attachmentReference = reference as AttachmentReference;\n const documentReference = attachmentReference.document;\n const spaces = documentReference.space?.names.map(encodeURI).join(\"/\");\n return `${baseURL}/bin/download/${spaces}/${encodeURI(documentReference.name)}/${encodeURI(\n attachmentReference.name,\n )}`;\n }\n\n private serializeDocument(reference: EntityReference) {\n const baseURL = this.cristalApp.getWikiConfig().baseURL;\n const documentReference = reference as DocumentReference;\n const spaces = documentReference.space?.names.map(encodeURI).join(\"/\");\n if (documentReference.name == \"WebHome\") {\n return `${baseURL}/bin/view/${spaces}/`;\n } else {\n return `${baseURL}/bin/view/${spaces}/${encodeURI(documentReference.name)}`;\n }\n }\n}\n\nexport { XWikiRemoteURLSerializer };\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 { XWikiRemoteURLParser } from \"./xWikiRemoteURLParser\";\nimport { XWikiRemoteURLSerializer } from \"./xWikiRemoteURLSerializer\";\nimport { Container } from \"inversify\";\nimport type {\n RemoteURLParser,\n RemoteURLSerializer,\n} from \"@xwiki/platform-model-remote-url-api\";\n\n/**\n * @beta\n */\nexport class ComponentInit {\n constructor(container: Container) {\n container\n .bind<RemoteURLParser>(\"RemoteURLParser\")\n .to(XWikiRemoteURLParser)\n .inSingletonScope()\n .whenNamed(\"XWiki\");\n container\n .bind<RemoteURLSerializer>(\"RemoteURLSerializer\")\n .to(XWikiRemoteURLSerializer)\n .inSingletonScope()\n .whenNamed(\"XWiki\");\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 { name as NavigationTreeSourceName } from \"@xwiki/platform-navigation-tree-api\";\nimport { Container, inject, injectable, named } from \"inversify\";\nimport type { CristalApp, Logger } from \"@xwiki/platform-api\";\nimport type { AuthenticationManagerProvider } from \"@xwiki/platform-authentication-api\";\nimport type { DocumentReference } from \"@xwiki/platform-model-api\";\nimport type { ModelReferenceSerializer } from \"@xwiki/platform-model-reference-api\";\nimport type { RemoteURLParser } from \"@xwiki/platform-model-remote-url-api\";\nimport type {\n NavigationTreeNode,\n NavigationTreeSource,\n} from \"@xwiki/platform-navigation-tree-api\";\n\n/**\n * Implementation of NavigationTreeSource for the XWiki backend.\n *\n * @since 0.10\n * @beta\n **/\n@injectable()\nclass XWikiNavigationTreeSource implements NavigationTreeSource {\n constructor(\n @inject(\"Logger\") private readonly logger: Logger,\n @inject(\"CristalApp\") private readonly cristalApp: CristalApp,\n @inject(\"AuthenticationManagerProvider\")\n private authenticationManagerProvider: AuthenticationManagerProvider,\n @inject(\"RemoteURLParser\")\n @named(\"XWiki\")\n private readonly urlParser: RemoteURLParser,\n @inject(\"ModelReferenceSerializer\")\n @named(\"XWiki\")\n private readonly referenceSerializer: ModelReferenceSerializer,\n ) {\n this.logger.setModule(\n \"navigation-tree-xwiki.components.XWikiNavigationTreeSource\",\n );\n }\n\n // TODO: reduce the number of statements in the following method and reactivate the disabled eslint rule.\n // eslint-disable-next-line max-statements\n async getChildNodes(id?: string): Promise<Array<NavigationTreeNode>> {\n const currentId = id ? id : \"#\";\n const navigationTree: Array<NavigationTreeNode> = [];\n\n try {\n const authorization = await this.authenticationManagerProvider\n .get()\n ?.getAuthorizationHeader();\n const headers: { Accept: string; Authorization?: string } = {\n Accept: \"application/json\",\n };\n\n if (authorization) {\n headers.Authorization = authorization;\n }\n\n navigationTree.push(...(await this.fetchNodes(currentId, headers, 0)));\n } catch (error) {\n this.logger.error(error);\n this.logger.debug(\"Could not load navigation tree.\");\n }\n return navigationTree;\n }\n\n getParentNodesId(\n page: DocumentReference,\n includeTerminal: boolean = true,\n includeRootNode?: boolean,\n ): Array<string> {\n const result = includeRootNode ? [\"\"] : [];\n if (page.space) {\n let currentParent = \"\";\n for (const parent of page.space!.names) {\n currentParent += parent;\n // TODO: Support subwikis.\n result.push(`document:xwiki:${currentParent}.WebHome`);\n currentParent += \".\";\n }\n if (page.name != \"WebHome\" && includeTerminal) {\n result.push(\n `document:xwiki:${this.referenceSerializer.serialize(page)}`,\n );\n }\n }\n return result;\n }\n\n // TODO: reduce the number of statements in the following method and reactivate the disabled eslint rule.\n // eslint-disable-next-line max-statements\n private async fetchNodes(\n currentId: string,\n headers: { Accept: string; Authorization?: string },\n offset: number,\n ): Promise<Array<NavigationTreeNode>> {\n const nodes: Array<NavigationTreeNode> = [];\n const baseXWikiURL = this.cristalApp\n .getWikiConfig()\n .baseURL.replace(/\\/[^/]*$/, \"\");\n // The DocumentTree sheet sets a default limit of 15 items par page.\n // We use a greater one to reduce the number of requests to fetch them all.\n const limit = 100;\n\n const navigationTreeRequestUrl = new URL(\n `${this.cristalApp.getWikiConfig().baseURL}/bin/get`,\n );\n navigationTreeRequestUrl.search = new URLSearchParams([\n [\"id\", currentId],\n [\"outputSyntax\", \"plain\"],\n [\"sheet\", \"XWiki.DocumentTree\"],\n [\"data\", \"children\"],\n [\"compact\", \"true\"],\n [\"offset\", offset.toString()],\n [\"limit\", limit.toString()],\n [\"showTranslations\", \"false\"],\n [\"showAttachments\", \"false\"],\n ]).toString();\n\n const response = await fetch(navigationTreeRequestUrl, { headers });\n const jsonResponse: [\n {\n id: string;\n text: string;\n children: boolean;\n data: { type: string; offset: number };\n a_attr?: { href: string };\n },\n ] = await response.json();\n for (const treeNode of jsonResponse) {\n if (treeNode.id == \"pagination:wiki:xwiki\") {\n nodes.push(\n ...(await this.fetchNodes(currentId, headers, treeNode.data.offset)),\n );\n } else if (\n ![\"attachments\", \"translations\"].includes(treeNode.data.type) &&\n treeNode.a_attr\n ) {\n const documentReference = this.urlParser.parse(\n `${baseXWikiURL}${treeNode.a_attr.href}`,\n )! as DocumentReference;\n nodes.push({\n id: treeNode.id,\n label: treeNode.text,\n location: documentReference.space!,\n url: this.cristalApp.getRouter().resolve({\n name: \"view\",\n params: {\n page: this.referenceSerializer.serialize(documentReference),\n },\n }).href,\n has_children: treeNode.children,\n is_terminal: !treeNode.id.endsWith(\".WebHome\"),\n });\n }\n }\n\n // Handle paging if necessary.\n if (jsonResponse.length >= limit) {\n nodes.push(\n ...(await this.fetchNodes(currentId, headers, offset + limit)),\n );\n }\n\n return nodes;\n }\n}\n\n/**\n * @beta\n */\nexport class ComponentInit {\n constructor(container: Container) {\n container\n .bind<NavigationTreeSource>(NavigationTreeSourceName)\n .to(XWikiNavigationTreeSource)\n .inSingletonScope()\n .whenNamed(\"XWiki\");\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 { injectable } from \"inversify\";\nimport type {\n BlockMacro,\n GetConcreteMacroParametersType,\n MacroBlock,\n MacroInfos,\n} from \"@xwiki/platform-macros-api\";\n\nconst macroParams = {\n html: { type: \"string\" },\n metadata: { type: \"string\" },\n} as const;\n\ntype MacroParams = typeof macroParams;\n\n@injectable()\nexport class XWikiHtmlBlockMacro implements BlockMacro<MacroParams> {\n readonly infos: MacroInfos<MacroParams> = {\n id: \"xwikiHtmlBlock\",\n name: \"XWiki HTML Block Content\",\n description: \"HTML rendering of an XWiki macro block content\",\n params: macroParams,\n paramsDescription: {\n html: \"Server-rendered HTML content\",\n metadata: \"Metadata used to generate the XWiki macro\",\n },\n defaultParameters: false,\n bodyType: \"none\",\n };\n\n renderAs = \"block\" as const;\n\n render({ html }: GetConcreteMacroParametersType<MacroParams>): MacroBlock[] {\n return [{ type: \"rawHtml\", html }];\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 { injectable } from \"inversify\";\nimport type {\n GetConcreteMacroParametersType,\n InlineMacro,\n MacroInfos,\n MacroInlineContent,\n} from \"@xwiki/platform-macros-api\";\n\nconst macroParams = {\n html: { type: \"string\" },\n metadata: { type: \"string\" },\n} as const;\n\ntype MacroParams = typeof macroParams;\n\n@injectable()\nexport class XWikiInlineHtmlMacro implements InlineMacro<MacroParams> {\n readonly infos: MacroInfos<MacroParams> = {\n id: \"xwikiInlineHtml\",\n name: \"XWiki HTML Inline Content\",\n description: \"HTML rendering of an XWiki macro inline content\",\n params: macroParams,\n paramsDescription: {\n html: \"Server-rendered HTML content\",\n metadata: \"Metadata used to generate the XWiki macro\",\n },\n defaultParameters: false,\n bodyType: \"none\",\n };\n\n renderAs = \"inline\" as const;\n\n render({\n html,\n }: GetConcreteMacroParametersType<MacroParams>): MacroInlineContent[] {\n return [{ type: \"rawHtml\", html }];\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 { XWikiHtmlBlockMacro } from \"./macros/blockMacro\";\nimport { XWikiInlineHtmlMacro } from \"./macros/inlineMacro\";\nimport { eraseParamsTypeForMacroClass } from \"@xwiki/platform-macros-api\";\nimport type { MacroWithUnknownParamsType } from \"@xwiki/platform-macros-api\";\nimport type { Container } from \"inversify\";\n\n/**\n * @since 0.23\n * @beta\n */\nexport class ComponentInit {\n constructor(container: Container) {\n container\n .bind<MacroWithUnknownParamsType>(\"Macro\")\n .to(eraseParamsTypeForMacroClass(XWikiHtmlBlockMacro));\n\n container\n .bind<MacroWithUnknownParamsType>(\"Macro\")\n .to(eraseParamsTypeForMacroClass(XWikiInlineHtmlMacro));\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 { inject, injectable } from \"inversify\";\nimport type { UIExtension } from \"@xwiki/cristal-uiextension-api\";\nimport type { CristalApp } from \"@xwiki/platform-api\";\nimport type { AuthenticationManagerProvider } from \"@xwiki/platform-authentication-api\";\nimport type { Component } from \"vue\";\n\n/**\n * Banner to notify of improper XWiki instance configuration for Cristal auth.\n *\n * @since 0.24-rc-1\n * @beta\n */\n@injectable()\nexport class AuthServiceBannerUIExtension implements UIExtension {\n id = \"main.banner.authServiceBanner\";\n uixpName = \"main.banner\";\n order = 1000;\n parameters = {};\n\n constructor(\n @inject(\"AuthenticationManagerProvider\")\n private readonly authenticationManager: AuthenticationManagerProvider,\n @inject(\"CristalApp\") private readonly cristal: CristalApp,\n ) {}\n\n async component(): Promise<Component> {\n return (await import(\"./vue/AuthServiceBanner.vue\")).default;\n }\n\n async enabled(): Promise<boolean> {\n if (await this.authenticationManager.get()?.isAuthenticated()) {\n // We check that the current authantication service can be fetched,\n // and we display the banner if it is not \"oidc-provider-bridge\".\n const response = await fetch(\n `${this.cristal.getWikiConfig().baseURL}/rest/cristal/auth`,\n );\n return response.ok && (await response.text()) != \"oidc-provider-bridge\";\n } else {\n return false;\n }\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 { AuthServiceBannerUIExtension } from \"./AuthServiceBannerUIExtension\";\nimport { Container } from \"inversify\";\nimport type { UIExtension } from \"@xwiki/cristal-uiextension-api\";\n\n/**\n * @since 0.24-rc-1\n * @beta\n */\nexport class ComponentInit {\n constructor(container: Container) {\n container\n .bind<UIExtension>(\"UIExtension\")\n .to(AuthServiceBannerUIExtension)\n .inSingletonScope();\n }\n}\n","class o {\n constructor(n) {\n e(n);\n }\n}\nfunction e(i) {\n const n = \"XWiki\";\n i.bind(\n \"Factory<InternalLinksSerializer>\"\n ).toFactory((r) => async () => {\n const t = (await import(\"./xwiki-internal-link-serializer-Cd8xorru.js\")).XWikiInternalLinkSerializer;\n return a(i, n, t, r);\n }).whenNamed(n);\n}\nfunction a(i, n, r, t) {\n return i.isBound(\"InternalLinksSerializer\", { name: n }) || i.bind(\"InternalLinksSerializer\").to(r).whenNamed(n), t.get(\"InternalLinksSerializer\", {\n name: n\n });\n}\nexport {\n o as ComponentInit\n};\n//# sourceMappingURL=index.es.js.map\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 { ComponentInit as XWikiPageHierarchyComponentInit } from \"@xwiki/cristal-hierarchy-xwiki\";\nimport { ComponentInit as XWikiPageHistoryComponentInit } from \"@xwiki/cristal-history-xwiki\";\nimport { ComponentInit as XWikiLinkSuggestComponentInit } from \"@xwiki/cristal-link-suggest-xwiki\";\nimport { ComponentInit as ModelReferenceXWikiComponentInit } from \"@xwiki/cristal-model-reference-xwiki\";\nimport { ComponentInit as ModelRemoteURLXWikiComponentInit } from \"@xwiki/cristal-model-remote-url-xwiki\";\nimport { ComponentInit as XWikiNavigationTreeComponentInit } from \"@xwiki/cristal-navigation-tree-xwiki\";\nimport { ComponentInit as XWikiMacrosComponentInit } from \"@xwiki/cristal-xwiki-macros\";\nimport { ComponentInit as XWikiUIComponentInit } from \"@xwiki/cristal-xwiki-ui\";\nimport { ComponentInit as UniastMarkdownXWikiComponentInit } from \"@xwiki/platform-uniast-markdown-xwiki\";\nimport type { Container } from \"inversify\";\n\nexport function load(container: Container) {\n new XWikiLinkSuggestComponentInit(container);\n new XWikiPageHierarchyComponentInit(container);\n new XWikiNavigationTreeComponentInit(container);\n new XWikiPageHistoryComponentInit(container);\n new ModelRemoteURLXWikiComponentInit(container);\n new ModelReferenceXWikiComponentInit(container);\n new XWikiMacrosComponentInit(container);\n new XWikiUIComponentInit(container);\n new UniastMarkdownXWikiComponentInit(container);\n}\n"],"file":"xwiki-OgNiU9fx.js"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a9 as s}from"./index-B7HOg_tC.js";var c=(e,r,n,o)=>{for(var a=r,i=e.length-1,t;i>=0;i--)(t=e[i])&&(a=t(a)||a);return a};let l=class{async serialize(e,r,n){return`[[${await n.convertInlineContents(e)}|${r.rawReference}]]`}async serializeImage(e,r){return`![[${r??""}${r?"|":""}${e.rawReference}]]`}};l=c([s()],l);export{l as XWikiInternalLinkSerializer};
|
|
2
|
-
//# sourceMappingURL=xwiki-internal-link-serializer-Cd8xorru-BvcqTQNz.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xwiki-internal-link-serializer-Cd8xorru-BvcqTQNz.js","sources":["../../../node_modules/.pnpm/@xwiki+platform-uniast-markdown-xwiki@18.3.0_inversify@8.1.0_reflect-metadata@0.2.2__re_076fa5e322d48ce0d3bd29332ad19123/node_modules/@xwiki/platform-uniast-markdown-xwiki/dist/xwiki-internal-link-serializer-Cd8xorru.js"],"sourcesContent":["import { injectable as c } from \"inversify\";\nvar o = Object.getOwnPropertyDescriptor, v = (r, e, a, i) => {\n for (var n = i > 1 ? void 0 : i ? o(e, a) : e, t = r.length - 1, s; t >= 0; t--)\n (s = r[t]) && (n = s(n) || n);\n return n;\n};\nlet l = class {\n async serialize(r, e, a) {\n return `[[${await a.convertInlineContents(\n r\n )}|${e.rawReference}]]`;\n }\n async serializeImage(r, e) {\n return `![[${e ?? \"\"}${e ? \"|\" : \"\"}${r.rawReference}]]`;\n }\n};\nl = v([\n c()\n], l);\nexport {\n l as XWikiInternalLinkSerializer\n};\n//# sourceMappingURL=xwiki-internal-link-serializer-Cd8xorru.js.map\n"],"names":["v","r","e","a","i","n","t","s","c"],"mappings":"yCACG,IAAsCA,EAAI,CAACC,EAAGC,EAAGC,EAAGC,IAAM,CAC3D,QAASC,EAAmCH,EAAGI,EAAIL,EAAE,OAAS,EAAGM,EAAGD,GAAK,EAAGA,KACzEC,EAAIN,EAAEK,CAAC,KAAOD,EAAIE,EAAEF,CAAC,GAAKA,GAC7B,OAAOA,CACT,EACG,IAAC,EAAI,KAAM,CACZ,MAAM,UAAUJ,EAAGC,EAAGC,EAAG,CACvB,MAAO,KAAK,MAAMA,EAAE,sBAClBF,CACN,CAAK,IAAIC,EAAE,YAAY,IACrB,CACA,MAAM,eAAeD,EAAGC,EAAG,CACzB,MAAO,MAAMA,GAAK,EAAE,GAAGA,EAAI,IAAM,EAAE,GAAGD,EAAE,YAAY,IACtD,CACF,EACA,EAAID,EAAE,CACJQ,EAAC,CACH,EAAG,CAAC","x_google_ignoreList":[0]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<svg width="72" height="22" viewBox="0 0 72 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<g clip-path="url(#clip0_643_24486)">
|
|
3
|
-
<path d="M31.5832 2.77717C31.8169 2.11297 32.2545 1.91589 32.8959 1.91589C33.5374 1.91589 33.9749 2.11297 34.2076 2.77717L38.99 16.9278H39.0486L41.7605 2.92524C41.9067 2.21098 42.3731 1.91589 43.1597 1.91589C43.8897 1.91589 44.3273 2.35905 44.3273 2.90021C44.3212 3.27383 44.2721 3.64546 44.1811 4.00757L41.0316 18.3063C40.8566 19.0695 40.4777 19.7337 39.1949 19.7337C38.2034 19.7337 37.5908 19.5127 37.182 18.3063L32.9248 5.46007H32.8671L28.6098 18.3063C28.198 19.5127 27.5885 19.7337 26.597 19.7337C25.3142 19.7337 24.9353 19.0695 24.7603 18.3063L21.6108 4.00757C21.5198 3.64546 21.4707 3.27383 21.4646 2.90021C21.4646 2.35905 21.9022 1.91589 22.6311 1.91589C23.4187 1.91589 23.8851 2.21098 24.0313 2.92524L26.7432 16.9278H26.8009L31.5832 2.77717Z" fill="#F78D1E"/>
|
|
4
|
-
<path d="M49.3164 18.5753C49.3164 19.2885 48.8201 19.7316 48.0335 19.7316C47.2469 19.7316 46.7424 19.2906 46.7424 18.5753V3.07226C46.7424 2.35905 47.2387 1.91589 48.0263 1.91589C48.8139 1.91589 49.3164 2.35905 49.3164 3.07226V18.5753Z" fill="#F78D1E"/>
|
|
5
|
-
<path d="M55.2623 18.5753C55.2623 19.2885 54.766 19.7316 53.9784 19.7316C53.1908 19.7316 52.6956 19.2885 52.6956 18.5753V3.07226C52.6956 2.35905 53.1918 1.91589 53.9784 1.91589C54.765 1.91589 55.2623 2.35905 55.2623 3.07226V9.47137L64.1557 2.60513C64.6221 2.23601 65.0309 1.91589 65.5559 1.91589C66.1974 1.91589 66.6638 2.28501 66.6638 2.85433C66.6638 3.42365 66.43 3.61655 66.1387 3.83865L57.6241 10.3108L66.9222 17.8881C67.334 18.2082 67.4473 18.4543 67.4473 18.7734C67.4473 19.2947 66.8923 19.7337 66.1932 19.7337C65.8144 19.7337 65.4633 19.6847 64.9392 19.2666L55.2612 11.2429L55.2623 18.5753Z" fill="#F78D1E"/>
|
|
6
|
-
<path d="M72.0001 18.5753C72.0001 19.2885 71.5038 19.7316 70.7162 19.7316C69.9286 19.7316 69.4333 19.2885 69.4333 18.5753V3.07226C69.4333 2.35905 69.9296 1.91589 70.7162 1.91589C71.5028 1.91589 72.0001 2.35905 72.0001 3.07226V18.5753Z" fill="#F78D1E"/>
|
|
7
|
-
<path d="M3.71675 11.7038C3.90089 11.7035 4.07739 11.6292 4.2075 11.4973C4.33761 11.3653 4.41069 11.1865 4.41068 11C4.41069 10.8135 4.33761 10.6346 4.2075 10.5027C4.07739 10.3707 3.90089 10.2964 3.71675 10.2961H0.694961C0.510646 10.2961 0.33388 10.3703 0.203549 10.5023C0.0732189 10.6343 0 10.8133 0 11C0 11.1866 0.0732189 11.3657 0.203549 11.4977C0.33388 11.6296 0.510646 11.7038 0.694961 11.7038H3.71675Z" fill="#008FD4"/>
|
|
8
|
-
<path d="M9.22485 17.2834C9.22485 17.0968 9.29807 16.9177 9.4284 16.7857C9.55873 16.6537 9.7355 16.5796 9.91981 16.5796C10.1041 16.5796 10.2809 16.6537 10.4112 16.7857C10.5416 16.9177 10.6148 17.0968 10.6148 17.2834V20.3479C10.6148 20.5346 10.5416 20.7136 10.4112 20.8456C10.2809 20.9776 10.1041 21.0518 9.91981 21.0518C9.7355 21.0518 9.55873 20.9776 9.4284 20.8456C9.29807 20.7136 9.22485 20.5346 9.22485 20.3479V17.2834Z" fill="#ED1C24"/>
|
|
9
|
-
<path d="M9.22485 1.65628C9.22513 1.46979 9.29847 1.29104 9.42877 1.15927C9.55907 1.0275 9.73568 0.953491 9.91981 0.953491C10.104 0.953491 10.2806 1.0275 10.4109 1.15927C10.5412 1.29104 10.6145 1.46979 10.6148 1.65628V4.71663C10.6148 4.9033 10.5416 5.08232 10.4112 5.21431C10.2809 5.34631 10.1041 5.42046 9.91981 5.42046C9.7355 5.42046 9.55873 5.34631 9.4284 5.21431C9.29807 5.08232 9.22485 4.9033 9.22485 4.71663V1.65628Z" fill="#8CC63F"/>
|
|
10
|
-
<path d="M11.5683 10.9635L17.408 4.09103C17.5142 3.96601 17.5951 3.82103 17.646 3.66437C17.6969 3.5077 17.7168 3.34243 17.7046 3.17797C17.6924 3.01351 17.6483 2.8531 17.5749 2.70588C17.5015 2.55867 17.4002 2.42754 17.2768 2.31998C17.1533 2.21242 17.0102 2.13054 16.8555 2.07901C16.7008 2.02748 16.5376 2.00731 16.3752 2.01966C16.2128 2.03201 16.0544 2.07662 15.9091 2.15096C15.7637 2.2253 15.6342 2.32791 15.528 2.45293L9.93232 9.03451L4.3366 2.44876C4.12211 2.19627 3.81737 2.04042 3.48942 2.01549C3.16147 1.99056 2.83718 2.09859 2.58787 2.31581C2.33857 2.53304 2.18468 2.84166 2.16006 3.1738C2.13545 3.50593 2.24211 3.83437 2.4566 4.08685L8.29633 10.9635L2.4566 17.8319C2.35033 17.9569 2.26941 18.1019 2.21847 18.2586C2.16753 18.4152 2.14756 18.5806 2.1597 18.7451C2.17184 18.9096 2.21586 19.07 2.28924 19.2173C2.36261 19.3646 2.46392 19.4958 2.58736 19.6034C2.83666 19.8208 3.16101 19.9289 3.48906 19.9041C3.81711 19.8793 4.12198 19.7235 4.3366 19.471L9.93232 12.8852L15.528 19.471C15.7427 19.7235 16.0475 19.8793 16.3756 19.9041C16.7036 19.9289 17.028 19.8208 17.2773 19.6034C17.5266 19.3861 17.6804 19.0773 17.7049 18.7451C17.7295 18.4128 17.6227 18.0843 17.408 17.8319L11.5683 10.9635Z" fill="#626366"/>
|
|
11
|
-
<path d="M19.0647 11.7194C19.2488 11.7192 19.4253 11.6449 19.5554 11.5129C19.6855 11.3809 19.7586 11.2021 19.7586 11.0156C19.7586 10.8291 19.6855 10.6502 19.5554 10.5183C19.4253 10.3863 19.2488 10.312 19.0647 10.3118H16.0429C15.8585 10.3118 15.6818 10.3859 15.5514 10.5179C15.4211 10.6499 15.3479 10.8289 15.3479 11.0156C15.3479 11.2023 15.4211 11.3813 15.5514 11.5133C15.6818 11.6453 15.8585 11.7194 16.0429 11.7194H19.0647Z" fill="#F78D1E"/>
|
|
12
|
-
</g>
|
|
13
|
-
<defs>
|
|
14
|
-
<clipPath id="clip0_643_24486">
|
|
15
|
-
<rect width="72" height="20.093" fill="white" transform="translate(0 0.953491)"/>
|
|
16
|
-
</clipPath>
|
|
17
|
-
</defs>
|
|
18
|
-
</svg>
|