From ed138a84f1ecda66abf0036e8bb9428dd01420e2 Mon Sep 17 00:00:00 2001 From: nextcloud-command Date: Tue, 29 Oct 2024 15:20:04 +0000 Subject: [PATCH] chore(assets): recompile assets Signed-off-by: nextcloud-command --- js/text-editors.mjs | 2 +- js/text-editors.mjs.map | 2 +- js/vendor.LICENSE.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/text-editors.mjs b/js/text-editors.mjs index 1ff45a4c884..66974af36f7 100644 --- a/js/text-editors.mjs +++ b/js/text-editors.mjs @@ -1,3 +1,3 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('text', '', 'js/MarkdownContentEditor-DfD8svei.chunk.mjs'),window.OC.filePath('text', '', 'js/Wrapper-DMTv7Gk5.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-DaLNuXGQ.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-pKoV7cTo.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-BqiiIIgu.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-ChK0-hvc.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-SoWZqoso.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-B6WZzrWi.chunk.css'),window.OC.filePath('text', '', 'js/index-GC0jKWMY.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-DMTabKmO.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/index-DkzhscpN.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer--tuJJ_aO.chunk.css'),window.OC.filePath('text', '', 'js/index-qvrmZkdT.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-DDtlCUKJ.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-B4T8Bva5.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-CQ6iBklL-DXMPP5W0.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-B_Ckz91D.chunk.css'),window.OC.filePath('text', '', 'css/Wrapper-B_yljjF_.chunk.css'),window.OC.filePath('text', '', 'css/MarkdownContentEditor-lQsXX8SY.chunk.css'),window.OC.filePath('text', '', 'js/Editor-C9A5LH_Y.chunk.mjs'),window.OC.filePath('text', '', 'css/Editor-DDgOIH0H.chunk.css')])))=>i.map(i=>d[i]); /*! third party licenses: js/vendor.LICENSE.txt */ -var C=o=>{throw TypeError(o)};var f=(o,t,e)=>t.has(o)||C("Cannot "+e);var n=(o,t,e)=>(f(o,t,"read from private field"),e?e.call(o):t.get(o)),y=(o,t,e)=>t.has(o)?C("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(o):t.set(o,e),v=(o,t,e,i)=>(f(o,t,"write to private field"),i?i.call(o,e):t.set(o,e),e),d=(o,t,e)=>(f(o,t,"access private method"),e);import{_ as T,s as R}from"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import{V as m}from"./vue.runtime.esm-DaLNuXGQ.chunk.mjs";import{s as U}from"./index-qvrmZkdT.chunk.mjs";import{A as B,E as D,H as N,a as Q,b as F}from"./MediaHandler.provider-DDtlCUKJ.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./index-GC0jKWMY.chunk.mjs";import"./logger-B4T8Bva5.chunk.mjs";import"./index-DkzhscpN.chunk.mjs";const j="1.1";m.prototype.t=window.t,m.prototype.n=window.n,m.prototype.OCA=window.OCA,window.OCA.Text={...window.OCA.Text};var r,h,s,u,_;class q{constructor(t,e){y(this,s);y(this,r);y(this,h);return v(this,r,t),v(this,h,e),d(this,s,_).call(this),this}onCreate(t=()=>{}){return n(this,r).$on("create:content",e=>{t(e)}),this}onLoaded(t=()=>{}){return n(this,r).$on("ready",()=>{t()}),this}onUpdate(t=()=>{}){return n(this,r).$on("update:content",e=>{t(e)}),this}onOutlineToggle(t=()=>{}){return n(this,r).$on("outline-toggled",e=>{t(e)}),this}onSearch(t=()=>{}){return R("text:editor:search-results",t),this}render(t){t.innerHTML="";const e=document.createElement("div");return t.appendChild(e),n(this,r).$mount(e),this}destroy(){n(this,r).$destroy(),n(this,r).$el.innerHTML=""}setContent(t){var e,i;return n(this,r).$set(n(this,h),"content",t),(i=(e=d(this,s,u).call(this))==null?void 0:e.setContent)==null||i.call(e,t),this}setSearchQuery(t,e){var i;((i=d(this,s,u).call(this))==null?void 0:i.$editor).commands.setSearchQuery(t,e)}searchNext(){var t;((t=d(this,s,u).call(this))==null?void 0:t.$editor).commands.nextMatch()}searchPrevious(){var t;((t=d(this,s,u).call(this))==null?void 0:t.$editor).commands.previousMatch()}async save(){var t,e;return(e=(t=d(this,s,u).call(this)).save)==null?void 0:e.call(t)}setShowOutline(t){return n(this,r).$set(n(this,h),"showOutlineOutside",t),this}setReadOnly(t){return n(this,r).$set(n(this,h),"readOnly",t),this}insertAtCursor(t){d(this,s,u).call(this).$editor.chain().insertContent(t).focus().run()}focus(){d(this,s,u).call(this).$editor.commands.focus()}}r=new WeakMap,h=new WeakMap,s=new WeakSet,u=function(){return n(this,r).$children[0]},_=function(){var t;window!=null&&window._oc_debug&&(this.vm=n(this,r),window.OCA.Text._debug=[...(t=window.OCA.Text._debug)!=null?t:[],this])};window.OCA.Text.apiVersion=j,window.OCA.Text.createEditor=async function({el:o,fileId:t=void 0,useSession:e=!0,filePath:i=void 0,shareToken:$=null,content:g="",readOnly:x=!1,autofocus:A=!0,readonlyBar:c={component:null,props:null},onCreate:S=({markdown:w})=>{},onLoaded:b=()=>{},onUpdate:I=({markdown:w})=>{},onOutlineToggle:L=w=>{},onFileInsert:E=void 0,onMentionSearch:M=void 0,onMentionInsert:k=void 0,onSearch:P=void 0}){const{default:w}=await T(async()=>{const{default:a}=await import("./MarkdownContentEditor-DfD8svei.chunk.mjs");return{default:a}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]),import.meta.url),{default:V}=await T(async()=>{const{default:a}=await import("./Editor-C9A5LH_Y.chunk.mjs").then(p=>p.b);return{default:a}},__vite__mapDeps([20,9,6,2,10,16,5,7,3,4,8,11,12,13,14,15,17,1,18,21]),import.meta.url),l=m.observable({showOutlineOutside:!1,readOnly:x,content:g}),O=t&&e,H=new m({provide(){return{[B]:E,[D]:!!O,[N]:O?!0:M,[Q]:O?!0:k,[F]:{resolve(a,p){return[{type:"image",url:a}]}}}},data(){return l},render:a=>{const p=c!=null&&c.component?{readonlyBar:()=>a(c.component,{props:c.props})}:{};return O?a(V,{props:{fileId:t,relativePath:i,shareToken:$,mime:"text/markdown",active:!0,autofocus:A,showOutlineOutside:l.showOutlineOutside},scopedSlots:p}):a(w,{props:{fileId:t,content:l.content,relativePath:i,shareToken:$,readOnly:l.readOnly,showOutlineOutside:l.showOutlineOutside},scopedSlots:p})},store:U});return new q(H,l).onCreate(S).onLoaded(b).onUpdate(I).onOutlineToggle(L).onSearch(P).render(o)}; +var C=o=>{throw TypeError(o)};var v=(o,t,e)=>t.has(o)||C("Cannot "+e);var n=(o,t,e)=>(v(o,t,"read from private field"),e?e.call(o):t.get(o)),y=(o,t,e)=>t.has(o)?C("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(o):t.set(o,e),f=(o,t,e,i)=>(v(o,t,"write to private field"),i?i.call(o,e):t.set(o,e),e),d=(o,t,e)=>(v(o,t,"access private method"),e);import{_ as T,s as V}from"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import{V as m}from"./vue.runtime.esm-DaLNuXGQ.chunk.mjs";import{s as H}from"./index-qvrmZkdT.chunk.mjs";import{A as U,E as D,H as N,a as Q,b as F}from"./MediaHandler.provider-DDtlCUKJ.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./index-GC0jKWMY.chunk.mjs";import"./logger-B4T8Bva5.chunk.mjs";import"./index-DkzhscpN.chunk.mjs";const j="1.2";m.prototype.t=window.t,m.prototype.n=window.n,m.prototype.OCA=window.OCA,window.OCA.Text={...window.OCA.Text};var r,h,s,u,_;class q{constructor(t,e){y(this,s);y(this,r);y(this,h);return f(this,r,t),f(this,h,e),d(this,s,_).call(this),this}onCreate(t=()=>{}){return n(this,r).$on("create:content",e=>{t(e)}),this}onLoaded(t=()=>{}){return n(this,r).$on("ready",()=>{t()}),this}onUpdate(t=()=>{}){return n(this,r).$on("update:content",e=>{t(e)}),this}onOutlineToggle(t=()=>{}){return n(this,r).$on("outline-toggled",e=>{t(e)}),this}onSearch(t=()=>{}){return V("text:editor:search-results",t),this}render(t){t.innerHTML="";const e=document.createElement("div");return t.appendChild(e),n(this,r).$mount(e),this}destroy(){n(this,r).$destroy(),n(this,r).$el.innerHTML=""}setContent(t){var e,i;return n(this,r).$set(n(this,h),"content",t),(i=(e=d(this,s,u).call(this))==null?void 0:e.setContent)==null||i.call(e,t),this}setSearchQuery(t,e){var i;((i=d(this,s,u).call(this))==null?void 0:i.$editor).commands.setSearchQuery(t,e)}searchNext(){var t;((t=d(this,s,u).call(this))==null?void 0:t.$editor).commands.nextMatch()}searchPrevious(){var t;((t=d(this,s,u).call(this))==null?void 0:t.$editor).commands.previousMatch()}async save(){var t,e;return(e=(t=d(this,s,u).call(this)).save)==null?void 0:e.call(t)}setShowOutline(t){return n(this,r).$set(n(this,h),"showOutlineOutside",t),this}setReadOnly(t){return n(this,r).$set(n(this,h),"readOnly",t),this}updateReadonlyBarProps(t){return n(this,r).$set(n(this,h),"readonlyBarProps",t),this}insertAtCursor(t){d(this,s,u).call(this).$editor.chain().insertContent(t).focus().run()}focus(){d(this,s,u).call(this).$editor.commands.focus()}}r=new WeakMap,h=new WeakMap,s=new WeakSet,u=function(){return n(this,r).$children[0]},_=function(){var t;window!=null&&window._oc_debug&&(this.vm=n(this,r),window.OCA.Text._debug=[...(t=window.OCA.Text._debug)!=null?t:[],this])};window.OCA.Text.apiVersion=j,window.OCA.Text.createEditor=async function({el:o,fileId:t=void 0,useSession:e=!0,filePath:i=void 0,shareToken:$=null,content:g="",readOnly:x=!1,autofocus:A=!0,readonlyBar:c={component:null,props:null},onCreate:P=({markdown:w})=>{},onLoaded:S=()=>{},onUpdate:b=({markdown:w})=>{},onOutlineToggle:I=w=>{},onFileInsert:E=void 0,onMentionSearch:L=void 0,onMentionInsert:M=void 0,onSearch:k=void 0}){const{default:w}=await T(async()=>{const{default:a}=await import("./MarkdownContentEditor-DfD8svei.chunk.mjs");return{default:a}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]),import.meta.url),{default:B}=await T(async()=>{const{default:a}=await import("./Editor-C9A5LH_Y.chunk.mjs").then(p=>p.b);return{default:a}},__vite__mapDeps([20,9,6,2,10,16,5,7,3,4,8,11,12,13,14,15,17,1,18,21]),import.meta.url),l=m.observable({showOutlineOutside:!1,readonlyBarProps:c.props,readOnly:x,content:g}),O=t&&e,R=new m({provide(){return{[U]:E,[D]:!!O,[N]:O?!0:L,[Q]:O?!0:M,[F]:{resolve(a,p){return[{type:"image",url:a}]}}}},data(){return l},render:a=>{const p=c!=null&&c.component?{readonlyBar:()=>a(c.component,{props:l.readonlyBarProps})}:{};return O?a(B,{props:{fileId:t,relativePath:i,shareToken:$,mime:"text/markdown",active:!0,autofocus:A,showOutlineOutside:l.showOutlineOutside},scopedSlots:p}):a(w,{props:{fileId:t,content:l.content,relativePath:i,shareToken:$,readOnly:l.readOnly,showOutlineOutside:l.showOutlineOutside},scopedSlots:p})},store:H});return new q(R,l).onCreate(P).onLoaded(S).onUpdate(b).onOutlineToggle(I).onSearch(k).render(o)}; diff --git a/js/text-editors.mjs.map b/js/text-editors.mjs.map index 67923bc832a..eb1c7b23a27 100644 --- a/js/text-editors.mjs.map +++ b/js/text-editors.mjs.map @@ -1 +1 @@ -{"version":3,"mappings":";;uxBAaA,MAAMA,EAAa,MAEnBC,EAAI,UAAU,EAAI,OAAO,EACzBA,EAAI,UAAU,EAAI,OAAO,EACzBA,EAAI,UAAU,I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,KAAM,gBACN,OAAQ,GACR,UAAAE,EACA,mBAAoB9B,EAAK,kBACzB,EACD,YAAAqD,CACL,CAAK,EACCD,EAAEX,EAAuB,CAC1B,MAAO,CACN,OAAAhB,EACA,QAASzB,EAAK,QACd,aAAc2B,EACd,WAAAC,EACA,SAAU5B,EAAK,SACf,mBAAoBA,EAAK,kBACzB,EACD,YAAAqD,CACL,CAAK,CACF,EACD,MAAAC,CACF,CAAE,EACD,OAAO,IAAIxD,EAAgBC,EAAIC,CAAI,EACjC,SAASgC,CAAQ,EACjB,SAASE,CAAQ,EACjB,SAASC,CAAQ,EACjB,gBAAgBC,CAAe,EAC/B,SAASI,CAAQ,EACjB,OAAOvB,CAAE,CACZ","names":["apiVersion","Vue","TextEditorEmbed","vm","data","__privateAdd","_I_instances","#vm","#data","__privateSet","__privateMethod","#registerDebug","onCreateCallback","__privateGet","content","onLoadedCallback","onUpdateCallback","onOutlineToggleCallback","visible","onSearchCallback","subscribe","el","element","_b","_a","#getEditorComponent","query","matchAll","value","fileId","useSession","filePath","shareToken","readOnly","autofocus","readonlyBar","onCreate","markdown","onLoaded","onUpdate","onOutlineToggle","onFileInsert","onMentionSearch","onMentionInsert","onSearch","MarkdownContentEditor","Editor","__vitePreload","sessionEditor","ACTION_ATTACHMENT_PROMPT","EDITOR_UPLOAD","HOOK_MENTION_SEARCH","HOOK_MENTION_INSERT","ATTACHMENT_RESOLVER","src","preferRaw","h","scopedSlots","store"],"ignoreList":[],"sources":["../src/editor.js"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport Vue from 'vue'\nimport store from './store/index.js'\nimport { subscribe } from '@nextcloud/event-bus'\nimport { EDITOR_UPLOAD, HOOK_MENTION_SEARCH, HOOK_MENTION_INSERT, ATTACHMENT_RESOLVER } from './components/Editor.provider.js'\nimport { ACTION_ATTACHMENT_PROMPT } from './components/Editor/MediaHandler.provider.js'\n// eslint-disable-next-line import/no-unresolved, n/no-missing-import\nimport 'vite/modulepreload-polyfill'\n\nconst apiVersion = '1.1'\n\nVue.prototype.t = window.t\nVue.prototype.n = window.n\nVue.prototype.OCA = window.OCA\n\nwindow.OCA.Text = {\n\t...window.OCA.Text,\n}\n\nclass TextEditorEmbed {\n\n\t#vm\n\t#data\n\tconstructor(vm, data) {\n\t\tthis.#vm = vm\n\t\tthis.#data = data\n\t\tthis.#registerDebug()\n\t\treturn this\n\t}\n\n\t#getEditorComponent() {\n\t\treturn this.#vm.$children[0]\n\t}\n\n\tonCreate(onCreateCallback = () => {}) {\n\t\tthis.#vm.$on('create:content', (content) => {\n\t\t\tonCreateCallback(content)\n\t\t})\n\t\treturn this\n\t}\n\n\tonLoaded(onLoadedCallback = () => {}) {\n\t\tthis.#vm.$on('ready', () => {\n\t\t\tonLoadedCallback()\n\t\t})\n\t\treturn this\n\t}\n\n\tonUpdate(onUpdateCallback = () => {}) {\n\t\tthis.#vm.$on('update:content', (content) => {\n\t\t\tonUpdateCallback(content)\n\t\t})\n\t\treturn this\n\t}\n\n\tonOutlineToggle(onOutlineToggleCallback = () => {}) {\n\t\tthis.#vm.$on('outline-toggled', (visible) => {\n\t\t\tonOutlineToggleCallback(visible)\n\t\t})\n\t\treturn this\n\t}\n\n\tonSearch(onSearchCallback = () => {}) {\n\t subscribe('text:editor:search-results', onSearchCallback)\n\t return this\n\t}\n\n\trender(el) {\n\t\tel.innerHTML = ''\n\t\tconst element = document.createElement('div')\n\t\tel.appendChild(element)\n\t\tthis.#vm.$mount(element)\n\t\treturn this\n\t}\n\n\tdestroy() {\n\t\tthis.#vm.$destroy()\n\t\tthis.#vm.$el.innerHTML = ''\n\t}\n\n\tsetContent(content) {\n\t\t// Update reactive prop for MarkdownContentEditor\n\t\tthis.#vm.$set(this.#data, 'content', content)\n\t\t// Call setContent for file based Editor\n\t\tthis.#getEditorComponent()?.setContent?.(content)\n\t\treturn this\n\t}\n\n\tsetSearchQuery(query, matchAll) {\n\t\tconst editor = this.#getEditorComponent()?.$editor\n\t\teditor.commands.setSearchQuery(query, matchAll)\n\t}\n\n\tsearchNext() {\n\t\tconst editor = this.#getEditorComponent()?.$editor\n\t\teditor.commands.nextMatch()\n\t}\n\n\tsearchPrevious() {\n\t\tconst editor = this.#getEditorComponent()?.$editor\n\t\teditor.commands.previousMatch()\n\t}\n\n\tasync save() {\n\t\treturn this.#getEditorComponent().save?.()\n\t}\n\n\tsetShowOutline(value) {\n\t\tthis.#vm.$set(this.#data, 'showOutlineOutside', value)\n\t\treturn this\n\t}\n\n\tsetReadOnly(value) {\n\t\tthis.#vm.$set(this.#data, 'readOnly', value)\n\t\treturn this\n\t}\n\n\tinsertAtCursor(content) {\n\t\tthis.#getEditorComponent().$editor.chain().insertContent(content).focus().run()\n\t}\n\n\tfocus() {\n\t\tthis.#getEditorComponent().$editor.commands.focus()\n\t}\n\n\t#registerDebug() {\n\t\tif (window?._oc_debug) {\n\t\t\tthis.vm = this.#vm\n\t\t\twindow.OCA.Text._debug = [\n\t\t\t\t...(window.OCA.Text._debug ?? []),\n\t\t\t\tthis,\n\t\t\t]\n\t\t}\n\t}\n\n}\n\nwindow.OCA.Text.apiVersion = apiVersion\nwindow.OCA.Text.createEditor = async function({\n\t// Element to render the editor to\n\tel,\n\n\t// Session editor with file mode is enabled by setting the fileId and useSession.\n\t// Otherwise, content needs to be provided.\n\tfileId = undefined,\n\tuseSession = true,\n\tfilePath = undefined,\n\tshareToken = null,\n\n\tcontent = '',\n\n\treadOnly = false,\n\tautofocus = true,\n\treadonlyBar = {\n\t\tcomponent: null,\n\t\tprops: null,\n\t},\n\n\tonCreate = ({ markdown }) => {},\n\tonLoaded = () => {},\n\tonUpdate = ({ markdown }) => {},\n\tonOutlineToggle = (visible) => {},\n\tonFileInsert = undefined,\n\tonMentionSearch = undefined,\n\tonMentionInsert = undefined,\n\tonSearch = undefined,\n}) {\n\tconst { default: MarkdownContentEditor } = await import(/* webpackChunkName: \"editor\" */'./components/Editor/MarkdownContentEditor.vue')\n\tconst { default: Editor } = await import(/* webpackChunkName: \"editor\" */'./components/Editor.vue')\n\n\tconst data = Vue.observable({\n\t\tshowOutlineOutside: false,\n\t\treadOnly,\n\t\tcontent,\n\t})\n\n\tconst sessionEditor = fileId && useSession\n\n\tconst vm = new Vue({\n\t\tprovide() {\n\t\t\treturn {\n\t\t\t\t[ACTION_ATTACHMENT_PROMPT]: onFileInsert,\n\t\t\t\t[EDITOR_UPLOAD]: !!sessionEditor,\n\t\t\t\t[HOOK_MENTION_SEARCH]: sessionEditor ? true : onMentionSearch,\n\t\t\t\t[HOOK_MENTION_INSERT]: sessionEditor ? true : onMentionInsert,\n\t\t\t\t[ATTACHMENT_RESOLVER]: {\n\t\t\t\t\tresolve(src, preferRaw) {\n\t\t\t\t\t\treturn [{\n\t\t\t\t\t\t\ttype: 'image',\n\t\t\t\t\t\t\turl: src,\n\t\t\t\t\t\t}]\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}\n\t\t},\n\t\tdata() {\n\t\t\treturn data\n\t\t},\n\t\trender: h => {\n\t\t\tconst scopedSlots = readonlyBar?.component\n\t\t\t\t? {\n\t\t\t\t\treadonlyBar: () => {\n\t\t\t\t\t\treturn h(readonlyBar.component, {\n\t\t\t\t\t\t\tprops: readonlyBar.props,\n\t\t\t\t\t\t})\n\t\t\t\t\t},\n\t\t\t\t}\n\t\t\t\t: {}\n\n\t\t\treturn sessionEditor\n\t\t\t\t? h(Editor, {\n\t\t\t\t\tprops: {\n\t\t\t\t\t\tfileId,\n\t\t\t\t\t\trelativePath: filePath,\n\t\t\t\t\t\tshareToken,\n\t\t\t\t\t\tmime: 'text/markdown',\n\t\t\t\t\t\tactive: true,\n\t\t\t\t\t\tautofocus,\n\t\t\t\t\t\tshowOutlineOutside: data.showOutlineOutside,\n\t\t\t\t\t},\n\t\t\t\t\tscopedSlots,\n\t\t\t\t})\n\t\t\t\t: h(MarkdownContentEditor, {\n\t\t\t\t\tprops: {\n\t\t\t\t\t\tfileId,\n\t\t\t\t\t\tcontent: data.content,\n\t\t\t\t\t\trelativePath: filePath,\n\t\t\t\t\t\tshareToken,\n\t\t\t\t\t\treadOnly: data.readOnly,\n\t\t\t\t\t\tshowOutlineOutside: data.showOutlineOutside,\n\t\t\t\t\t},\n\t\t\t\t\tscopedSlots,\n\t\t\t\t})\n\t\t},\n\t\tstore,\n\t})\n\treturn new TextEditorEmbed(vm, data)\n\t\t.onCreate(onCreate)\n\t\t.onLoaded(onLoaded)\n\t\t.onUpdate(onUpdate)\n\t\t.onOutlineToggle(onOutlineToggle)\n\t\t.onSearch(onSearch)\n\t\t.render(el)\n}\n"],"file":"js/text-editors.mjs"} \ No newline at end of file +{"version":3,"mappings":";;uxBAaA,MAAMA,EAAa,MAEnBC,EAAI,UAAU,EAAI,OAAO,EACzBA,EAAI,UAAU,EAAI,OAAO,EACzBA,EAAI,UAAU,IAAM,OAAO,IAE3B,OAAO,IAAI,KAAO,CACjB,GAAG,OAAO,IAAI,IACf,gBAEA,MAAMC,CAAgB,CAIrB,YAAYC,EAAIC,EAAM,CAJvBC,EAAA,KAAAC,GAECC,UACAC,UAEC,OAAKD,SAAMJ,GACXM,EAAA,KAAKD,EAAQJ,GACbM,EAAA,KAAKC,KAAL,WACO,IACP,CAMD,SAASC,EAAmB,IAAM,GAAI,CACrC,cAAKL,GAAI,IAAI,iBAAmBM,GAAY,CAC3CD,EAAiBC,CAAO,CAC3B,CAAG,EACM,IACP,CAED,SAASC,EAAmB,IAAM,GAAI,CACrC,cAAKP,GAAI,IAAI,QAAS,IAAM,CAC3BO,EAAkB,CACrB,CAAG,EACM,IACP,CAED,SAASC,EAAmB,IAAM,GAAI,CACrC,OAAKR,UAAI,IAAI,iBAAmBM,GAAY,CAC3CE,EAAiBF,CAAO,CAC3B,CAAG,EACM,IACP,CAED,gBAAgBG,EAA0B,IAAM,GAAI,CACnD,OAAKT,UAAI,IAAI,kBAAoBU,GAAY,CAC5CD,EAAwBC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A,QAAApB,CACF,CAAE,EAEKmC,EAAgBnB,GAAUC,EAE1B3B,EAAK,IAAIF,EAAI,CAClB,SAAU,CACT,MAAO,CACN,CAACgD,CAAwB,EAAGR,EAC5B,CAACS,CAAa,EAAG,CAAC,CAACF,EACnB,CAACG,CAAmB,EAAGH,EAAgB,GAAON,EAC9C,CAACU,CAAmB,EAAGJ,EAAgB,GAAOL,EAC9C,CAACU,CAAmB,EAAG,CACtB,QAAQC,EAAKC,EAAW,CACvB,MAAO,CAAC,CACP,KAAM,QACN,IAAKD,CACZ,CAAO,CACD,CACD,CACD,CACD,EACD,MAAO,CACN,OAAOlD,CACP,EACD,OAAQoD,GAAK,CACZ,MAAMC,EAActB,WAAa,UAC9B,CACD,YAAa,IACLqB,EAAErB,EAAY,UAAW,CAC/B,MAAO/B,EAAK,gBACnB,CAAO,CAEF,EACC,CAAE,EAEL,OAAO4C,EACJQ,EAAEV,EAAQ,CACX,MAAO,CACN,OAAAjB,EACA,aAAcE,EACd,WAAAC,EACA,KAAM,gBACN,OAAQ,GACR,UAAAE,EACA,mBAAoB9B,EAAK,kBACzB,EACD,YAAAqD,CACL,CAAK,EACCD,EAAEX,EAAuB,CAC1B,MAAO,CACN,OAAAhB,EACA,QAASzB,EAAK,QACd,aAAc2B,EACd,WAAAC,EACA,SAAU5B,EAAK,SACf,mBAAoBA,EAAK,kBACzB,EACD,YAAAqD,CACL,CAAK,CACF,EACD,MAAAC,CACF,CAAE,EACD,OAAO,IAAIxD,EAAgBC,EAAIC,CAAI,EACjC,SAASgC,CAAQ,EACjB,SAASE,CAAQ,EACjB,SAASC,CAAQ,EACjB,gBAAgBC,CAAe,EAC/B,SAASI,CAAQ,EACjB,OAAOxB,CAAE,CACZ","names":["apiVersion","Vue","TextEditorEmbed","vm","data","__privateAdd","_V_instances","#vm","#data","__privateSet","__privateMethod","#registerDebug","onCreateCallback","content","onLoadedCallback","onUpdateCallback","onOutlineToggleCallback","visible","onSearchCallback","subscribe","el","element","__privateGet","_b","_a","#getEditorComponent","query","matchAll","value","fileId","useSession","filePath","shareToken","readOnly","autofocus","readonlyBar","onCreate","markdown","onLoaded","onUpdate","onOutlineToggle","onFileInsert","onMentionSearch","onMentionInsert","onSearch","MarkdownContentEditor","Editor","__vitePreload","sessionEditor","ACTION_ATTACHMENT_PROMPT","EDITOR_UPLOAD","HOOK_MENTION_SEARCH","HOOK_MENTION_INSERT","ATTACHMENT_RESOLVER","src","preferRaw","h","scopedSlots","store"],"ignoreList":[],"sources":["../src/editor.js"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport Vue from 'vue'\nimport store from './store/index.js'\nimport { subscribe } from '@nextcloud/event-bus'\nimport { EDITOR_UPLOAD, HOOK_MENTION_SEARCH, HOOK_MENTION_INSERT, ATTACHMENT_RESOLVER } from './components/Editor.provider.js'\nimport { ACTION_ATTACHMENT_PROMPT } from './components/Editor/MediaHandler.provider.js'\n// eslint-disable-next-line import/no-unresolved, n/no-missing-import\nimport 'vite/modulepreload-polyfill'\n\nconst apiVersion = '1.2'\n\nVue.prototype.t = window.t\nVue.prototype.n = window.n\nVue.prototype.OCA = window.OCA\n\nwindow.OCA.Text = {\n\t...window.OCA.Text,\n}\n\nclass TextEditorEmbed {\n\n\t#vm\n\t#data\n\tconstructor(vm, data) {\n\t\tthis.#vm = vm\n\t\tthis.#data = data\n\t\tthis.#registerDebug()\n\t\treturn this\n\t}\n\n\t#getEditorComponent() {\n\t\treturn this.#vm.$children[0]\n\t}\n\n\tonCreate(onCreateCallback = () => {}) {\n\t\tthis.#vm.$on('create:content', (content) => {\n\t\t\tonCreateCallback(content)\n\t\t})\n\t\treturn this\n\t}\n\n\tonLoaded(onLoadedCallback = () => {}) {\n\t\tthis.#vm.$on('ready', () => {\n\t\t\tonLoadedCallback()\n\t\t})\n\t\treturn this\n\t}\n\n\tonUpdate(onUpdateCallback = () => {}) {\n\t\tthis.#vm.$on('update:content', (content) => {\n\t\t\tonUpdateCallback(content)\n\t\t})\n\t\treturn this\n\t}\n\n\tonOutlineToggle(onOutlineToggleCallback = () => {}) {\n\t\tthis.#vm.$on('outline-toggled', (visible) => {\n\t\t\tonOutlineToggleCallback(visible)\n\t\t})\n\t\treturn this\n\t}\n\n\tonSearch(onSearchCallback = () => {}) {\n\t subscribe('text:editor:search-results', onSearchCallback)\n\t return this\n\t}\n\n\trender(el) {\n\t\tel.innerHTML = ''\n\t\tconst element = document.createElement('div')\n\t\tel.appendChild(element)\n\t\tthis.#vm.$mount(element)\n\t\treturn this\n\t}\n\n\tdestroy() {\n\t\tthis.#vm.$destroy()\n\t\tthis.#vm.$el.innerHTML = ''\n\t}\n\n\tsetContent(content) {\n\t\t// Update reactive prop for MarkdownContentEditor\n\t\tthis.#vm.$set(this.#data, 'content', content)\n\t\t// Call setContent for file based Editor\n\t\tthis.#getEditorComponent()?.setContent?.(content)\n\t\treturn this\n\t}\n\n\tsetSearchQuery(query, matchAll) {\n\t\tconst editor = this.#getEditorComponent()?.$editor\n\t\teditor.commands.setSearchQuery(query, matchAll)\n\t}\n\n\tsearchNext() {\n\t\tconst editor = this.#getEditorComponent()?.$editor\n\t\teditor.commands.nextMatch()\n\t}\n\n\tsearchPrevious() {\n\t\tconst editor = this.#getEditorComponent()?.$editor\n\t\teditor.commands.previousMatch()\n\t}\n\n\tasync save() {\n\t\treturn this.#getEditorComponent().save?.()\n\t}\n\n\tsetShowOutline(value) {\n\t\tthis.#vm.$set(this.#data, 'showOutlineOutside', value)\n\t\treturn this\n\t}\n\n\tsetReadOnly(value) {\n\t\tthis.#vm.$set(this.#data, 'readOnly', value)\n\t\treturn this\n\t}\n\n\tupdateReadonlyBarProps(value) {\n\t\tthis.#vm.$set(this.#data, 'readonlyBarProps', value)\n\t\treturn this\n\t}\n\n\tinsertAtCursor(content) {\n\t\tthis.#getEditorComponent().$editor.chain().insertContent(content).focus().run()\n\t}\n\n\tfocus() {\n\t\tthis.#getEditorComponent().$editor.commands.focus()\n\t}\n\n\t#registerDebug() {\n\t\tif (window?._oc_debug) {\n\t\t\tthis.vm = this.#vm\n\t\t\twindow.OCA.Text._debug = [\n\t\t\t\t...(window.OCA.Text._debug ?? []),\n\t\t\t\tthis,\n\t\t\t]\n\t\t}\n\t}\n\n}\n\nwindow.OCA.Text.apiVersion = apiVersion\nwindow.OCA.Text.createEditor = async function({\n\t// Element to render the editor to\n\tel,\n\n\t// Session editor with file mode is enabled by setting the fileId and useSession.\n\t// Otherwise, content needs to be provided.\n\tfileId = undefined,\n\tuseSession = true,\n\tfilePath = undefined,\n\tshareToken = null,\n\n\tcontent = '',\n\n\treadOnly = false,\n\tautofocus = true,\n\treadonlyBar = {\n\t\tcomponent: null,\n\t\tprops: null,\n\t},\n\n\tonCreate = ({ markdown }) => {},\n\tonLoaded = () => {},\n\tonUpdate = ({ markdown }) => {},\n\tonOutlineToggle = (visible) => {},\n\tonFileInsert = undefined,\n\tonMentionSearch = undefined,\n\tonMentionInsert = undefined,\n\tonSearch = undefined,\n}) {\n\tconst { default: MarkdownContentEditor } = await import(/* webpackChunkName: \"editor\" */'./components/Editor/MarkdownContentEditor.vue')\n\tconst { default: Editor } = await import(/* webpackChunkName: \"editor\" */'./components/Editor.vue')\n\n\tconst data = Vue.observable({\n\t\tshowOutlineOutside: false,\n\t\treadonlyBarProps: readonlyBar.props,\n\t\treadOnly,\n\t\tcontent,\n\t})\n\n\tconst sessionEditor = fileId && useSession\n\n\tconst vm = new Vue({\n\t\tprovide() {\n\t\t\treturn {\n\t\t\t\t[ACTION_ATTACHMENT_PROMPT]: onFileInsert,\n\t\t\t\t[EDITOR_UPLOAD]: !!sessionEditor,\n\t\t\t\t[HOOK_MENTION_SEARCH]: sessionEditor ? true : onMentionSearch,\n\t\t\t\t[HOOK_MENTION_INSERT]: sessionEditor ? true : onMentionInsert,\n\t\t\t\t[ATTACHMENT_RESOLVER]: {\n\t\t\t\t\tresolve(src, preferRaw) {\n\t\t\t\t\t\treturn [{\n\t\t\t\t\t\t\ttype: 'image',\n\t\t\t\t\t\t\turl: src,\n\t\t\t\t\t\t}]\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}\n\t\t},\n\t\tdata() {\n\t\t\treturn data\n\t\t},\n\t\trender: h => {\n\t\t\tconst scopedSlots = readonlyBar?.component\n\t\t\t\t? {\n\t\t\t\t\treadonlyBar: () => {\n\t\t\t\t\t\treturn h(readonlyBar.component, {\n\t\t\t\t\t\t\tprops: data.readonlyBarProps,\n\t\t\t\t\t\t})\n\t\t\t\t\t},\n\t\t\t\t}\n\t\t\t\t: {}\n\n\t\t\treturn sessionEditor\n\t\t\t\t? h(Editor, {\n\t\t\t\t\tprops: {\n\t\t\t\t\t\tfileId,\n\t\t\t\t\t\trelativePath: filePath,\n\t\t\t\t\t\tshareToken,\n\t\t\t\t\t\tmime: 'text/markdown',\n\t\t\t\t\t\tactive: true,\n\t\t\t\t\t\tautofocus,\n\t\t\t\t\t\tshowOutlineOutside: data.showOutlineOutside,\n\t\t\t\t\t},\n\t\t\t\t\tscopedSlots,\n\t\t\t\t})\n\t\t\t\t: h(MarkdownContentEditor, {\n\t\t\t\t\tprops: {\n\t\t\t\t\t\tfileId,\n\t\t\t\t\t\tcontent: data.content,\n\t\t\t\t\t\trelativePath: filePath,\n\t\t\t\t\t\tshareToken,\n\t\t\t\t\t\treadOnly: data.readOnly,\n\t\t\t\t\t\tshowOutlineOutside: data.showOutlineOutside,\n\t\t\t\t\t},\n\t\t\t\t\tscopedSlots,\n\t\t\t\t})\n\t\t},\n\t\tstore,\n\t})\n\treturn new TextEditorEmbed(vm, data)\n\t\t.onCreate(onCreate)\n\t\t.onLoaded(onLoaded)\n\t\t.onUpdate(onUpdate)\n\t\t.onOutlineToggle(onOutlineToggle)\n\t\t.onSearch(onSearch)\n\t\t.render(el)\n}\n"],"file":"js/text-editors.mjs"} \ No newline at end of file diff --git a/js/vendor.LICENSE.txt b/js/vendor.LICENSE.txt index 3ef56a5eb9d..7004db8c06f 100644 --- a/js/vendor.LICENSE.txt +++ b/js/vendor.LICENSE.txt @@ -85,7 +85,7 @@ version: 2.2.0 license: GPL-3.0-or-later @nextcloud/l10n -version: 2.2.0 +version: 3.1.0 license: GPL-3.0-or-later @nextcloud/logger