officialblock 1.8.4 → 1.8.6

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.
@@ -0,0 +1 @@
1
+ "use strict";var O=Object.defineProperty;var U=(o,n,i)=>n in o?O(o,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[n]=i;var s=(o,n,i)=>U(o,typeof n!="symbol"?n+"":n,i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),b=require("@wangeditor/editor-for-vue"),x=require("@wangeditor/editor"),T=require("./index-BDlwVUIL.js"),_={class:"rich-text-editor"},E=t.defineComponent({__name:"index",props:{name:{default:""},modelValue:{default:""},placeholder:{default:"请输入内容..."},height:{default:"400px"},mode:{default:"default"},disabled:{type:Boolean,default:!1},maxLength:{default:1e4},excludeKeys:{default:()=>[]},includeKeys:{default:()=>[]}},emits:["update:modelValue","change","focus","blur","created","upload-image","upload-video"],setup(o,{expose:n,emit:i}){const a=o,c=i,l=t.shallowRef(),r=t.ref(""),C=t.computed(()=>typeof a.height=="number"?`${a.height}px`:a.height),f=t.inject("handleUpload",()=>{}),h=t.inject("fileUrl",null),g=t.inject("chooseName",null),m=t.ref(""),v=()=>{if(!f){console.warn("Upload: handleUpload function not provided by ancestor");return}f(!0,a.name+m.value)};t.watch(()=>[h==null?void 0:h.value,g==null?void 0:g.value],([e,u])=>{var d,p;!e||!u||u!==a.name+m.value||(m.value==="img"?(d=l.value)==null||d.dangerouslyInsertHtml('<img src="https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg" alt="图片" style="max-width: 100%;">'):(p=l.value)==null||p.dangerouslyInsertHtml('<video src="https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg" controls style="max-width: 100%;"></video>'))},{immediate:!1});class V{constructor(){s(this,"title");s(this,"tag");s(this,"iconSvg");this.title="上传图片",this.tag="button",this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>'}isActive(){return!1}getValue(){return""}isDisabled(){return!1}exec(){t.nextTick(()=>{console.log("点击了自定义上传图片菜单"),m.value="img",v()})}}class M{constructor(){s(this,"title");s(this,"tag");s(this,"iconSvg");this.title="上传视频",this.tag="button",this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>'}getValue(){return""}isActive(){return!1}isDisabled(){return!1}exec(){t.nextTick(()=>{m.value="video",v()})}}const y={toolbarKeys:["headerSelect","bold","italic","through","underline","color","fontSize","lineHeight","delIndent","indent","divider","insertTable","justifyCenter","justifyJustify","justifyLeft","justifyRight","undo","redo","clearStyle","codeBlock"]},w={placeholder:a.placeholder,readOnly:a.disabled,maxLength:a.maxLength,MENU_CONF:{}},B=e=>{l.value=e;const u={key:"CustomImageMenu",factory(){return new V}},d={key:"CustomVideoMenu",factory(){return new M}};x.Boot.registerMenu(u),x.Boot.registerMenu(d),y.insertKeys={index:0,keys:["CustomImageMenu","CustomVideoMenu"]},c("created",e)};t.onBeforeUnmount(()=>{const e=l.value;e!=null&&e.destroy()}),t.watch(()=>a.modelValue,e=>{e!==r.value&&(r.value=e||"")},{immediate:!0});const j=e=>{c("update:modelValue",r.value),c("change",e)},S=()=>{l.value=void 0},H=e=>{c("focus",e)},k=e=>{c("blur",e)};return n({editor:l,getHtml:()=>r.value,getText:()=>{var e;return((e=l.value)==null?void 0:e.getText())||""},isEmpty:()=>{var e;return((e=l.value)==null?void 0:e.isEmpty())||!0},clear:()=>{var e;return(e=l.value)==null?void 0:e.clear()},focus:()=>{var e;return(e=l.value)==null?void 0:e.focus()},blur:()=>{var e;return(e=l.value)==null?void 0:e.blur()},disable:()=>{var e;return(e=l.value)==null?void 0:e.disable()},enable:()=>{var e;return(e=l.value)==null?void 0:e.enable()}}),(e,u)=>(t.openBlock(),t.createElementBlock("div",_,[t.createVNode(t.unref(b.Toolbar),{class:"editor-toolbar",editor:l.value,defaultConfig:y,mode:o.mode},null,8,["editor","mode"]),t.createVNode(t.unref(b.Editor),{class:"editor-content",style:t.normalizeStyle({height:C.value}),modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=d=>r.value=d),defaultConfig:w,mode:o.mode,onOnCreated:B,onOnChange:j,onOnDestroyed:S,onOnFocus:H,onOnBlur:k},null,8,["style","modelValue","mode"])]))}}),F=T._(E,[["__scopeId","data-v-b409e38f"]]);exports.default=F;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./index-BVmrkk8g.js");exports.AlummiCommunityList=l.J;exports.AlummiCommunityListPlugin=l.aF;exports.AnimationUtils=l.aP;exports.ArticleItem=l.j;exports.ArticleItemPlugin=l.af;exports.ArticleList=l.A;exports.ArticleListPlugin=l.Y;exports.BannerImage=l.B;exports.BannerImagePlugin=l.Z;exports.BannerImageWithLink=l.q;exports.BannerImageWithLinkPlugin=l.ap;exports.BannerPage=l.a;exports.BannerPagePlugin=l.$;exports.BannerQuote=l.i;exports.BannerQuotePlugin=l.ae;exports.BasicCollapse=l.x;exports.BasicCollapsePlugin=l.az;exports.BlessingMessage=l.K;exports.BlessingMessagePlugin=l.aG;exports.BlessingSlider=l.S;exports.BlessingSliderPlugin=l.aH;exports.BtnList=l.b;exports.BtnListPlugin=l.a0;exports.CardCarousel=l.g;exports.CardCarouselArticlesPlugin=l.au;exports.CardCarouselMultiRow=l.h;exports.CardCarouselMultiRowArticles=l.I;exports.CardCarouselMultiRowArticlesPlugin=l.aE;exports.CardCarouselMultiRowPlugin=l.ad;exports.CardCarouselMultiRowPublications=l.X;exports.CardCarouselMultiRowPublicationsPlugin=l.aL;exports.CardCarouselPlugin=l.ac;exports.CardShowcase=l.U;exports.CardShowcasePlugin=l.aI;exports.CardShowcaseProfile=l.l;exports.CardShowcaseProfilePlugin=l.ak;exports.CarouselLogo=l.t;exports.CarouselLogoPlugin=l.av;exports.ContactUsInfo=l.r;exports.ContactUsInfoPlugin=l.ar;exports.ContactUsList=l.o;exports.ContactUsListPlugin=l.am;exports.CountDown=l.m;exports.CountDownPlugin=l.al;exports.CustomIframe=l.n;exports.CustomIframePlugin=l.an;exports.CustomSpace=l.C;exports.CustomSpacePlugin=l.a6;exports.Disc=l.w;exports.DiscPlugin=l.ay;exports.DonorLinks=l.D;exports.DonorLinksPlugin=l.ab;exports.ExploreLinks=l.V;exports.ExploreLinksPlugin=l.aJ;exports.GalleryBlock=l.F;exports.GalleryBlockPlugin=l.aD;exports.GalleryCaptionRound=l.c;exports.GalleryCaptionRoundPlugin=l.a2;exports.GalleryDefault=l.G;exports.GalleryDefaultPlugin=l.a1;exports.GalleryList=l.f;exports.GalleryListPlugin=l.a7;exports.GalleryTimeline=l.d;exports.GalleryTimelineCol=l.e;exports.GalleryTimelineColPlugin=l.a4;exports.GalleryTimelinePlugin=l.a3;exports.HeroSlide=l.H;exports.HeroSlidePlugin=l.a8;exports.LinkList=l.L;exports.LinkListPlugin=l.a9;exports.MapStatic=l.M;exports.MapStaticPlugin=l.at;exports.MediaLogo=l.z;exports.MediaLogoPlugin=l.aB;exports.NewsList=l.N;exports.NewsListPlugin=l.ai;exports.Process=l.P;exports.ProcessPlugin=l.a5;exports.Publications=l.s;exports.PublicationsPlugin=l.as;exports.QuoteText=l.Q;exports.QuoteTextPlugin=l.aa;exports.RegisterForm=l.E;exports.RegisterFormPlugin=l.aC;exports.Resources=l.u;exports.ResourcesPlugin=l.aw;exports.ResourcesTwo=l.v;exports.ResourcesTwoPlugin=l.ax;exports.ResponsiveUtils=l.aO;exports.RibbonBlock=l.R;exports.RibbonBlockPlugin=l.ag;exports.SchoolLayout=l.W;exports.SchoolLayoutPlugin=l.aK;exports.ScrollKeyInfoPlugin=l.aq;exports.StorageUtils=l.aQ;exports.TableCollapse=l.y;exports.TableCollapsePlugin=l.aA;exports.TableTwo=l.p;exports.TableTwoPlugin=l.ao;exports.TheHistoryCarousel=l.k;exports.TheHistoryCarouselPlugin=l.aj;exports.ThemeUtils=l.aN;exports.TimelineStory=l.T;exports.TimelineStoryPlugin=l.ah;exports.default=l.O;exports.useTheme=l.aM;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./index-BDlwVUIL.js");exports.AlummiCommunityList=l.J;exports.AlummiCommunityListPlugin=l.aF;exports.AnimationUtils=l.aP;exports.ArticleItem=l.j;exports.ArticleItemPlugin=l.af;exports.ArticleList=l.A;exports.ArticleListPlugin=l.Y;exports.BannerImage=l.B;exports.BannerImagePlugin=l.Z;exports.BannerImageWithLink=l.q;exports.BannerImageWithLinkPlugin=l.ap;exports.BannerPage=l.a;exports.BannerPagePlugin=l.$;exports.BannerQuote=l.i;exports.BannerQuotePlugin=l.ae;exports.BasicCollapse=l.x;exports.BasicCollapsePlugin=l.az;exports.BlessingMessage=l.K;exports.BlessingMessagePlugin=l.aG;exports.BlessingSlider=l.S;exports.BlessingSliderPlugin=l.aH;exports.BtnList=l.b;exports.BtnListPlugin=l.a0;exports.CardCarousel=l.g;exports.CardCarouselArticlesPlugin=l.au;exports.CardCarouselMultiRow=l.h;exports.CardCarouselMultiRowArticles=l.I;exports.CardCarouselMultiRowArticlesPlugin=l.aE;exports.CardCarouselMultiRowPlugin=l.ad;exports.CardCarouselMultiRowPublications=l.X;exports.CardCarouselMultiRowPublicationsPlugin=l.aL;exports.CardCarouselPlugin=l.ac;exports.CardShowcase=l.U;exports.CardShowcasePlugin=l.aI;exports.CardShowcaseProfile=l.l;exports.CardShowcaseProfilePlugin=l.ak;exports.CarouselLogo=l.t;exports.CarouselLogoPlugin=l.av;exports.ContactUsInfo=l.r;exports.ContactUsInfoPlugin=l.ar;exports.ContactUsList=l.o;exports.ContactUsListPlugin=l.am;exports.CountDown=l.m;exports.CountDownPlugin=l.al;exports.CustomIframe=l.n;exports.CustomIframePlugin=l.an;exports.CustomSpace=l.C;exports.CustomSpacePlugin=l.a6;exports.Disc=l.w;exports.DiscPlugin=l.ay;exports.DonorLinks=l.D;exports.DonorLinksPlugin=l.ab;exports.ExploreLinks=l.V;exports.ExploreLinksPlugin=l.aJ;exports.GalleryBlock=l.F;exports.GalleryBlockPlugin=l.aD;exports.GalleryCaptionRound=l.c;exports.GalleryCaptionRoundPlugin=l.a2;exports.GalleryDefault=l.G;exports.GalleryDefaultPlugin=l.a1;exports.GalleryList=l.f;exports.GalleryListPlugin=l.a7;exports.GalleryTimeline=l.d;exports.GalleryTimelineCol=l.e;exports.GalleryTimelineColPlugin=l.a4;exports.GalleryTimelinePlugin=l.a3;exports.HeroSlide=l.H;exports.HeroSlidePlugin=l.a8;exports.LinkList=l.L;exports.LinkListPlugin=l.a9;exports.MapStatic=l.M;exports.MapStaticPlugin=l.at;exports.MediaLogo=l.z;exports.MediaLogoPlugin=l.aB;exports.NewsList=l.N;exports.NewsListPlugin=l.ai;exports.Process=l.P;exports.ProcessPlugin=l.a5;exports.Publications=l.s;exports.PublicationsPlugin=l.as;exports.QuoteText=l.Q;exports.QuoteTextPlugin=l.aa;exports.RegisterForm=l.E;exports.RegisterFormPlugin=l.aC;exports.Resources=l.u;exports.ResourcesPlugin=l.aw;exports.ResourcesTwo=l.v;exports.ResourcesTwoPlugin=l.ax;exports.ResponsiveUtils=l.aO;exports.RibbonBlock=l.R;exports.RibbonBlockPlugin=l.ag;exports.SchoolLayout=l.W;exports.SchoolLayoutPlugin=l.aK;exports.ScrollKeyInfoPlugin=l.aq;exports.StorageUtils=l.aQ;exports.TableCollapse=l.y;exports.TableCollapsePlugin=l.aA;exports.TableTwo=l.p;exports.TableTwoPlugin=l.ao;exports.TheHistoryCarousel=l.k;exports.TheHistoryCarouselPlugin=l.aj;exports.ThemeUtils=l.aN;exports.TimelineStory=l.T;exports.TimelineStoryPlugin=l.ah;exports.default=l.O;exports.useTheme=l.aM;
@@ -1,4 +1,4 @@
1
- import { J as l, aF as i, aP as e, j as n, af as o, A as u, Y as r, B as t, Z as g, q as P, ap as C, a as c, $ as m, i as L, ae as d, x as y, az as B, K as T, aG as w, S, aH as R, b as p, a0 as b, g as h, au as k, h as G, I as M, aE as f, ad as I, X as A, aL as D, ac as U, U as x, aI as H, l as Q, ak as E, t as F, av as N, r as v, ar as K, o as W, am as j, m as q, al as z, n as J, an as O, C as V, a6 as X, w as Y, ay as Z, D as $, ab as _, V as aa, aJ as sa, F as la, aD as ia, c as ea, a2 as na, G as oa, a1 as ua, f as ra, a7 as ta, d as ga, e as Pa, a4 as Ca, a3 as ca, H as ma, a8 as La, L as da, a9 as ya, M as Ba, at as Ta, z as wa, aB as Sa, N as Ra, ai as pa, P as ba, a5 as ha, s as ka, as as Ga, Q as Ma, aa as fa, E as Ia, aC as Aa, u as Da, aw as Ua, v as xa, ax as Ha, aO as Qa, R as Ea, ag as Fa, W as Na, aK as va, aq as Ka, aQ as Wa, y as ja, aA as qa, p as za, ao as Ja, k as Oa, aj as Va, aN as Xa, T as Ya, ah as Za, O as $a, aM as _a } from "./index-DmjHG1Mk.mjs";
1
+ import { J as l, aF as i, aP as e, j as n, af as o, A as u, Y as r, B as t, Z as g, q as P, ap as C, a as c, $ as m, i as L, ae as d, x as y, az as B, K as T, aG as w, S, aH as R, b as p, a0 as b, g as h, au as k, h as G, I as M, aE as f, ad as I, X as A, aL as D, ac as U, U as x, aI as H, l as Q, ak as E, t as F, av as N, r as v, ar as K, o as W, am as j, m as q, al as z, n as J, an as O, C as V, a6 as X, w as Y, ay as Z, D as $, ab as _, V as aa, aJ as sa, F as la, aD as ia, c as ea, a2 as na, G as oa, a1 as ua, f as ra, a7 as ta, d as ga, e as Pa, a4 as Ca, a3 as ca, H as ma, a8 as La, L as da, a9 as ya, M as Ba, at as Ta, z as wa, aB as Sa, N as Ra, ai as pa, P as ba, a5 as ha, s as ka, as as Ga, Q as Ma, aa as fa, E as Ia, aC as Aa, u as Da, aw as Ua, v as xa, ax as Ha, aO as Qa, R as Ea, ag as Fa, W as Na, aK as va, aq as Ka, aQ as Wa, y as ja, aA as qa, p as za, ao as Ja, k as Oa, aj as Va, aN as Xa, T as Ya, ah as Za, O as $a, aM as _a } from "./index-BZXCZXXX.mjs";
2
2
  export {
3
3
  l as AlummiCommunityList,
4
4
  i as AlummiCommunityListPlugin,