stencil-quill
Version:
Native web component for quill editor
2 lines • 2.73 kB
JavaScript
var __awaiter=this&&this.__awaiter||function(t,e,n,r){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,a){function i(t){try{l(r.next(t))}catch(t){a(t)}}function u(t){try{l(r["throw"](t))}catch(t){a(t)}}function l(t){t.done?n(t.value):o(t.value).then(i,u)}l((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,o,a,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(t){return function(e){return l([t,e])}}function l(u){if(r)throw new TypeError("Generator is already executing.");while(i&&(i=0,u[0]&&(n=0)),n)try{if(r=1,o&&(a=u[0]&2?o["return"]:u[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,u[1])).done)return a;if(o=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;o=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1];a=u;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(u);break}if(a[2])n.ops.pop();n.trys.pop();continue}u=e.call(t,n)}catch(t){u=[6,t];o=0}finally{r=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};import{p as promiseResolve,b as bootstrapLazy}from"./index-c6a20355.js";export{s as setNonce}from"./index-c6a20355.js";import{g as globalScripts}from"./app-globals-0f993ce5.js";var patchBrowser=function(){var t=import.meta.url;var e={};if(t!==""){e.resourcesUrl=new URL(".",t).href}return promiseResolve(e)};patchBrowser().then((function(t){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,globalScripts()];case 1:e.sent();return[2,bootstrapLazy([["quill-editor_3",[[6,"quill-editor",{format:[1],bounds:[1],content:[1],debug:[1],formats:[16],modules:[1],placeholder:[1],readOnly:[4,"read-only"],styles:[1],theme:[1],customToolbarPosition:[1,"custom-toolbar-position"],defaultEmptyValue:[8,"default-empty-value"]},null,{content:["updateContent"],readOnly:["updateReadOnly"],placeholder:["updatePlaceholder"],styles:["updateStyle"]}],[2,"quill-view",{format:[1],content:[1],debug:[1],formats:[16],modules:[1],strict:[4],styles:[1],theme:[1],defaultEmptyValue:[8,"default-empty-value"]},null,{styles:["updateStyle"],content:["updateContent"]}],[2,"quill-view-html",{content:[1],theme:[1]},null,{theme:["updateTheme"]}]]]],t)]}}))}))}));
//# sourceMappingURL=quill-components.js.map