@blinkk/root-cms 3.0.6 → 3.1.2
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/README.md +77 -0
- package/dist/app.js +6 -4
- package/dist/browser-client/browser-client.d.ts +148 -0
- package/dist/browser-client/embed-window.d.ts +66 -0
- package/dist/browser-client/emitter.d.ts +11 -0
- package/dist/browser-client.js +377 -0
- package/dist/{chunk-RXWDB3K4.js → chunk-4VZTYUQ7.js} +1 -1
- package/dist/{chunk-N4K6ICFR.js → chunk-AFBSITEO.js} +4 -6
- package/dist/{chunk-PNLLZXVY.js → chunk-AJDMNTZQ.js} +2 -2
- package/dist/chunk-J72JK4KR.js +8 -0
- package/dist/{chunk-7L5OI5ES.js → chunk-X5CNR4CK.js} +8 -4
- package/dist/cli.js +2 -1
- package/dist/client.js +2 -1
- package/dist/core/client.d.ts +5 -0
- package/dist/core/plugin.d.ts +1 -1
- package/dist/core/translations.d.ts +19 -4
- package/dist/core.js +4 -2
- package/dist/functions.js +4 -3
- package/dist/plugin.js +38 -7
- package/dist/shared/embed-protocol.d.ts +72 -0
- package/dist/shared/translation-languages.d.ts +67 -0
- package/dist/ui/AIPage-2N5UYBRX.js +1 -0
- package/dist/ui/AssetsPage-KLGNE6D6.js +1 -0
- package/dist/ui/CollectionPage-D7IG6526.js +1 -0
- package/dist/ui/ComparePage-726NIJW5.js +1 -0
- package/dist/ui/DataPage-YMSQCIVK.js +1 -0
- package/dist/ui/DataSourcePage-7VPFUG3K.js +1 -0
- package/dist/ui/DocTranslationsPage-FO7O76VK.js +1 -0
- package/dist/ui/DocumentPage-M7SJ4ITQ.js +1 -0
- package/dist/ui/EditDataSourcePage-Y7YK6IWT.js +1 -0
- package/dist/ui/EditReleasePage-XZ4RHHRT.js +1 -0
- package/dist/ui/EmbeddedAIPage-RJOUIPF2.js +1 -0
- package/dist/ui/EmbeddedDocumentPage-4TLMCDSO.js +1 -0
- package/dist/ui/{ImageEditorDialog-QEULJAT2.js → ImageEditorDialog-GGS4VFEA.js} +2 -2
- package/dist/ui/LogsPage-IGDDZGEI.js +1 -0
- package/dist/ui/NewDataSourcePage-YUPRHL7F.js +1 -0
- package/dist/ui/NewReleasePage-6HHLYOQP.js +1 -0
- package/dist/ui/NotFoundPage-A6OCYREA.js +1 -0
- package/dist/ui/ProjectPage-UHRXNN7O.js +1 -0
- package/dist/ui/ReleasePage-V2JMPWX7.js +1 -0
- package/dist/ui/ReleasesPage-SCR4SVKN.js +1 -0
- package/dist/ui/SettingsPage-5XKHPG6K.js +1 -0
- package/dist/ui/SidebarToolsPage-VXVRZ2C3.js +1 -0
- package/dist/ui/TaskPage-LDPRN3G6.js +1 -0
- package/dist/ui/TasksPage-DIXUWYXM.js +1 -0
- package/dist/ui/TranslationsArbPage-QPD3ZBT4.js +2 -0
- package/dist/ui/TranslationsEditPage-475Z7UPC.js +1 -0
- package/dist/ui/{TranslationsPage-OBN6CQZZ.js → TranslationsPage-674JU6L4.js} +32 -32
- package/dist/ui/{chunk-N4DFAIC5.js → chunk-2EPQJUGM.js} +1 -1
- package/dist/ui/{chunk-WKOX3VFN.js → chunk-2RAVKX2Z.js} +2 -2
- package/dist/ui/chunk-2S5HMST6.js +1 -0
- package/dist/ui/{chunk-V7RAXP2W.js → chunk-3E6CASIN.js} +1 -1
- package/dist/ui/chunk-4ALFT4ES.js +141 -0
- package/dist/ui/{chunk-KYKFNAX4.js → chunk-4FGASIIX.js} +1 -1
- package/dist/ui/chunk-4ISFTE2G.js +5 -0
- package/dist/ui/{chunk-SKEP5WYH.js → chunk-7SK47HHZ.js} +3 -3
- package/dist/ui/chunk-AAHM6RYJ.js +1 -0
- package/dist/ui/chunk-AGFPVTBA.js +1 -0
- package/dist/ui/chunk-BUNR5EU3.js +1 -0
- package/dist/ui/{chunk-N5Y5OWTV.js → chunk-BW2MKGNP.js} +1 -1
- package/dist/ui/{chunk-2225WAJ2.js → chunk-CAY5NM4Z.js} +1 -1
- package/dist/ui/{chunk-4KE2SZKH.js → chunk-D3UIZHRK.js} +1 -1
- package/dist/ui/{chunk-HYARD7BK.js → chunk-ENQKSLGJ.js} +1 -1
- package/dist/ui/chunk-FBSBL476.js +1 -0
- package/dist/ui/{chunk-NQB37NMX.js → chunk-FJLNXXE3.js} +1 -1
- package/dist/ui/chunk-GT5EQSEX.js +1 -0
- package/dist/ui/{chunk-KPJ53X55.js → chunk-HARRKJFZ.js} +1 -1
- package/dist/ui/{chunk-6E7PGMZX.js → chunk-HO3W4RVG.js} +1 -1
- package/dist/ui/{chunk-CVGYBXVH.js → chunk-J5E457OI.js} +1 -1
- package/dist/ui/{chunk-SEUH7LN2.js → chunk-JBHRZ4EX.js} +1 -1
- package/dist/ui/{chunk-W3HIZQ4Z.js → chunk-JS6TK4OP.js} +1 -1
- package/dist/ui/{chunk-BEDUTYQP.js → chunk-JTIQBW33.js} +1 -1
- package/dist/ui/{chunk-ORXEMIQC.js → chunk-KRNQ6L35.js} +1 -1
- package/dist/ui/chunk-LROR6N3B.js +7 -0
- package/dist/ui/{chunk-4CUWZQXT.js.LEGAL.txt → chunk-LROR6N3B.js.LEGAL.txt} +6 -1
- package/dist/ui/{chunk-6GPTGBA7.js → chunk-MSYTAJBV.js} +1 -1
- package/dist/ui/{chunk-RQKL4KXY.js → chunk-N3JSLTMV.js} +1 -1
- package/dist/ui/{chunk-NMBXHKIJ.js → chunk-NJMNOITA.js} +1 -1
- package/dist/ui/{chunk-D37DCENS.js → chunk-NSOTG64N.js} +1 -1
- package/dist/ui/chunk-NWHGT476.js +1 -0
- package/dist/ui/chunk-P2Z66DHV.js +1 -0
- package/dist/ui/{chunk-4IXGYXA2.js → chunk-PTPYMVFW.js} +1 -1
- package/dist/ui/{chunk-OVRTVMO5.js → chunk-Q7IU4QCY.js} +1 -1
- package/dist/ui/{chunk-XYBHH5L4.js → chunk-QF3GPZTI.js} +1 -1
- package/dist/ui/{chunk-AXETBZ6T.js → chunk-QHJOTXYB.js} +1 -1
- package/dist/ui/{chunk-UHWNLNP4.js → chunk-RHAJNURN.js} +1 -1
- package/dist/ui/chunk-SENZVSVZ.js +1 -0
- package/dist/ui/chunk-SKQECSUR.js +1 -0
- package/dist/ui/chunk-TOGLZDK3.js +1 -0
- package/dist/ui/chunk-TPJCPCRR.js +1 -0
- package/dist/ui/{chunk-EMYXSVTD.js → chunk-TVYAZN2Q.js} +1 -1
- package/dist/ui/{chunk-GDSSFO5R.js → chunk-UUVAD4U4.js} +1 -1
- package/dist/ui/{chunk-EGEB6N4J.js → chunk-VD6G5NV4.js} +11 -11
- package/dist/ui/{chunk-DXKEDMEI.js → chunk-VJUMFJIX.js} +1 -1
- package/dist/ui/chunk-W5DOO6ID.js +1 -0
- package/dist/ui/{chunk-6MOPIV5T.js → chunk-W6LP22IK.js} +1 -1
- package/dist/ui/{chunk-3XYCOR6Z.js → chunk-WFQU7V3W.js} +1 -1
- package/dist/ui/chunk-WMICEDOT.js +1 -0
- package/dist/ui/chunk-XMESZUC5.js +1 -0
- package/dist/ui/{chunk-T47V6AGW.js → chunk-XWX2622O.js} +1 -1
- package/dist/ui/chunk-YMBBWVBB.js +3 -0
- package/dist/ui/chunk-YXSXWFLZ.js +1 -0
- package/dist/ui/chunk-ZMS6NIGG.js +1 -0
- package/dist/ui/gcs-ECSDFCIU.js +1 -0
- package/dist/ui/ui.css +1 -1
- package/dist/ui/ui.js +1 -1
- package/package.json +7 -3
- package/dist/ui/AIPage-JPZ4QUB4.js +0 -1
- package/dist/ui/AssetsPage-GDJMKS3M.js +0 -1
- package/dist/ui/CollectionPage-5DVXJEET.js +0 -1
- package/dist/ui/ComparePage-LIXA6G66.js +0 -1
- package/dist/ui/DataPage-AP4Z5JPS.js +0 -1
- package/dist/ui/DataSourcePage-WO3ZKMFI.js +0 -1
- package/dist/ui/DocTranslationsPage-QKYFIVHP.js +0 -1
- package/dist/ui/DocumentPage-ON43I5KM.js +0 -1
- package/dist/ui/EditDataSourcePage-XVMEV2LJ.js +0 -1
- package/dist/ui/EditReleasePage-A2NB5TFG.js +0 -1
- package/dist/ui/LogsPage-4LZJX3O4.js +0 -1
- package/dist/ui/NewDataSourcePage-4YWX7IOG.js +0 -1
- package/dist/ui/NewReleasePage-HWLVTEXX.js +0 -1
- package/dist/ui/NotFoundPage-72AXQAYX.js +0 -1
- package/dist/ui/ProjectPage-L4GYDIA5.js +0 -1
- package/dist/ui/ReleasePage-43BSWL5B.js +0 -1
- package/dist/ui/ReleasesPage-CJXAZBP6.js +0 -1
- package/dist/ui/SettingsPage-SYXAMKSF.js +0 -1
- package/dist/ui/SidebarToolsPage-OFF5BOXP.js +0 -1
- package/dist/ui/TaskPage-HBDLHFI5.js +0 -1
- package/dist/ui/TasksPage-OLCDTQNB.js +0 -1
- package/dist/ui/TranslationsArbPage-E3NCMAMS.js +0 -2
- package/dist/ui/TranslationsEditPage-IWOI7Y5G.js +0 -1
- package/dist/ui/chunk-32LRQ5MJ.js +0 -1
- package/dist/ui/chunk-3HVDIPSS.js +0 -1
- package/dist/ui/chunk-3IDOZ4MG.js +0 -1
- package/dist/ui/chunk-4CUWZQXT.js +0 -7
- package/dist/ui/chunk-AOCBDKLV.js +0 -1
- package/dist/ui/chunk-DUJYIOLE.js +0 -5
- package/dist/ui/chunk-IDYKCAAL.js +0 -1
- package/dist/ui/chunk-IKED2IGU.js +0 -1
- package/dist/ui/chunk-J3EGGI57.js +0 -1
- package/dist/ui/chunk-MZP6RIG2.js +0 -1
- package/dist/ui/chunk-NQ5ARARP.js +0 -1
- package/dist/ui/chunk-RI2JWWU3.js +0 -141
- package/dist/ui/chunk-RPOP6MVJ.js +0 -1
- package/dist/ui/chunk-TDKVKTW4.js +0 -1
- package/dist/ui/chunk-TZEZEMRQ.js +0 -1
- package/dist/ui/chunk-UA7UCTX5.js +0 -1
- package/dist/ui/chunk-UFQSZ6J2.js +0 -3
- package/dist/ui/gcs-L33FIRZU.js +0 -1
- /package/dist/ui/{ImageEditorDialog-QEULJAT2.js.LEGAL.txt → ImageEditorDialog-GGS4VFEA.js.LEGAL.txt} +0 -0
- /package/dist/ui/{chunk-RI2JWWU3.js.LEGAL.txt → chunk-4ALFT4ES.js.LEGAL.txt} +0 -0
- /package/dist/ui/{chunk-SKEP5WYH.js.LEGAL.txt → chunk-7SK47HHZ.js.LEGAL.txt} +0 -0
- /package/dist/ui/{chunk-NMBXHKIJ.js.LEGAL.txt → chunk-NJMNOITA.js.LEGAL.txt} +0 -0
- /package/dist/ui/{chunk-EGEB6N4J.js.LEGAL.txt → chunk-VD6G5NV4.js.LEGAL.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as ye,D as k,E as Se,G as J,H as Ee,I as we,K as Oe,O as xe,P as Pe,Q as Ce,S as Ae,T as be,Y as U,Z as Re,a as P,b as ae,c as q,d as se,e as y,fa as De,g as le,ha as Ie,i as $,ia as Le,j as ve,ja as je,ka as Te,ua as ke,v as c,y as b}from"./chunk-4CUWZQXT.js";import{a as Q,b as x,f as _e,i as ne,j as H,k as ie}from"./chunk-KUCVLANF.js";ie();ve();var N,W;function Ot(e){return!W||(typeof W=="string"?e.startsWith(W):W.test(e))}function xt(e,t){let r="";if(N=void 0,t&&t.type==="click"){if(t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||t.button!==0)return e;let o=t.composedPath().find(i=>i.nodeName=="A"&&i.href),n=o&&o.getAttribute("href");if(!o||o.origin!=location.origin||/^#/.test(n)||!/^(_?self)?$/i.test(o.target)||!Ot(n)||o.download)return e;N=!0,t.preventDefault(),r=o.href.replace(location.origin,"")}else t&&t.url?(N=!t.replace,r=t.url):r=location.pathname+location.search;return N===!0?history.pushState(null,"",r):N===!1&&history.replaceState(null,"",r),r}var Pt=(e,t,r={})=>{e=e.split("/").filter(Boolean),t=(t||"").split("/").filter(Boolean),r.params||(r.params={});for(let o=0,n,i;o<Math.max(e.length,t.length);o++){let[,s,u,l]=(t[o]||"").match(/^(:?)(.*?)([+*?]?)$/);if(n=e[o],!(!s&&u==n)){if(!s&&n&&l=="*"){r.rest="/"+e.slice(o).map(decodeURIComponent).join("/");break}if(!s||!n&&l!="?"&&l!="*")return;if(i=l=="+"||l=="*",i?n=e.slice(o).map(decodeURIComponent).join("/")||void 0:n&&(n=decodeURIComponent(n)),r.params[u]=n,u in r||(r[u]=n),i)break}}return r};function F(e){let[t,r]=ae(xt,e.url||location.pathname+location.search);e.scope&&(W=e.scope);let o=N===!0,n=le(()=>{let i=new URL(t,location.origin),s=i.pathname.replace(/\/+$/g,"")||"/";return{url:t,path:s,query:Object.fromEntries(i.searchParams),route:(u,l)=>r({url:u,replace:l}),wasPush:o}},[t]);return se(()=>(addEventListener("click",r),addEventListener("popstate",r),()=>{removeEventListener("click",r),removeEventListener("popstate",r)}),[]),x(F.ctx.Provider,{value:n},e.children)}var Ct=Promise.resolve();function Me(e){let[t,r]=ae(p=>p+1,0),{url:o,query:n,wasPush:i,path:s}=Be();if(!o)throw new Error("preact-iso's <Router> must be used within a <LocationProvider>, see: https://github.com/preactjs/preact-iso#locationprovider");let{rest:u=s,params:l={}}=$(Ne),f=y(!1),d=y(s),h=y(0),a=y(),m=y(),_=y(),g=y(!1),w=y();w.current=!1;let R,C,E;_e(e.children).some(p=>{if(Pt(u,p.props.path,E={...p.props,path:u,query:n,params:Object.assign({},l),rest:""}))return R=ne(p,E);p.props.default&&(C=ne(p,E))});let O=R||C,D=a.current&&a.current.__u&Y&&a.current.__u&Z,I=a.current&&a.current.__h,M=le(()=>{m.current=a.current,a.current=x(Ne.Provider,{value:E},O);let p=m.current&&m.current.props.children;return!p||!O||O.type!==p.type||O.props.component!==p.props.component?(this.__v&&this.__v.__k&&this.__v.__k.reverse(),h.current++,!0):!1},[o,JSON.stringify(E)]);D?(a.current.__u|=Y,a.current.__u|=Z):I&&(a.current.__h=!0);let L=m.current;return m.current=null,this.__c=(p,A)=>{w.current=!0,m.current=L,e.onLoadStart&&e.onLoadStart(o),f.current=!0;let re=h.current;p.then(()=>{re===h.current&&(m.current=null,a.current&&(A.__h&&(a.current.__h=A.__h),A.__u&Z&&(a.current.__u|=Z),A.__u&Y&&(a.current.__u|=Y)),Ct.then(r))})},se(()=>{let p=this.__v&&this.__v.__e;if(w.current){!g.current&&!_.current&&(_.current=p);return}!g.current&&_.current&&(_.current!==p&&_.current.remove(),_.current=null),g.current=!0,d.current!==s&&(i&&scrollTo(0,0),e.onRouteChange&&e.onRouteChange(o),d.current=s),e.onLoadEnd&&f.current&&e.onLoadEnd(o),f.current=!1},[s,i,t]),M?[x(ce,{r:a}),x(ce,{r:m})]:x(ce,{r:a})}var Y=32,Z=128,ce=({r:e})=>e.current;Me.Provider=F;F.ctx=H({});var Ne=H({}),At=e=>x(e.component,e),Be=()=>$(F.ctx);ie();ve();var ze=Q.__b;Q.__b=e=>{e.type&&e.type._forwarded&&e.ref&&(e.props.ref=e.ref,e.ref=null),ze&&ze(e)};function He(e){let t,r,o=()=>e().then(i=>r=i&&i.default||i),n=i=>{let[,s]=P(0),u=y(r);if(t||(t=o()),r!==void 0)return x(r,i);throw u.current||(u.current=t.then(()=>s(1))),t};return n.preload=()=>(t||(t=o()),t),n._forwarded=!0,n}var Qe=Q.__e;Q.__e=(e,t,r)=>{if(e&&e.then){let o=t;for(;o=o.__;)if(o.__c&&o.__c.__c)return t.__e==null&&(t.__c.__z=[r.__e],t.__e=r.__e,t.__k=r.__k),t.__k||(t.__k=[]),o.__c.__c(e,t)}Qe&&Qe(e,t,r)};ie();function Er(...e){return e.filter(t=>!!t).join(" ")||void 0}b();b();var bt=Object.defineProperty,Rt=Object.defineProperties,Dt=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,We=(e,t,r)=>t in e?bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jt=(e,t)=>{for(var r in t||(t={}))It.call(t,r)&&We(e,r,t[r]);if(Ue)for(var r of Ue(t))Lt.call(t,r)&&We(e,r,t[r]);return e},Tt=(e,t)=>Rt(e,Dt(t));function kt(e){return Tt(jt({},e),{id:e.id||Oe()})}function Nt(e){let t=[];return e.reduceRight((r,o)=>(t.includes(o.id)||(t.push(o.id),r.push(o)),r),[]).reverse()}function X(e){return Nt(e.map(t=>kt(t)))}function Fe(e,t){let[r,o]=P(X(typeof e=="function"?e(t):e));return q(()=>{typeof e=="function"&&o(X(e(t)))},[t]),[r,{registerActions:l=>o(f=>X([...f,...l])),updateActions:l=>o(X(typeof l=="function"?l(t):l)),removeActions:l=>o(f=>f.filter(d=>!l.includes(d.id))),triggerAction:l=>{var f;let d=r.find(h=>h.id===l);(f=d?.onTrigger)==null||f.call(d,d)}}]}function Mt(e,t){return e===null?[]:Array.isArray(e)?e.map(r=>[r,t]):[[e,t]]}function Ke(e,t){Pe(Mt(e,t))}b();b();var Bt=k((e,{radius:t})=>({action:{position:"relative",display:"block",width:"100%",padding:"10px 12px",borderRadius:e.fn.radius(t)},actionHovered:{backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[1]},actionIcon:{color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6]},actionBody:{flex:1}})),Ge=Bt;var zt=Object.defineProperty,V=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,qe=(e,t,r)=>t in e?zt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qt=(e,t)=>{for(var r in t||(t={}))$e.call(t,r)&&qe(e,r,t[r]);if(V)for(var r of V(t))Je.call(t,r)&&qe(e,r,t[r]);return e},Ht=(e,t)=>{var r={};for(var o in e)$e.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&V)for(var o of V(e))t.indexOf(o)<0&&Je.call(e,o)&&(r[o]=e[o]);return r};function ue(e){var t=e,{action:r,styles:o,classNames:n,hovered:i,onTrigger:s,highlightQuery:u,highlightColor:l,query:f,radius:d}=t,h=Ht(t,["action","styles","classNames","hovered","onTrigger","highlightQuery","highlightColor","query","radius"]);let{classes:a,cx:m}=Ge({radius:d},{styles:o,classNames:n,name:"Spotlight"});return c.createElement(Ae,Qt({className:m(a.action,{[a.actionHovered]:i}),tabIndex:-1,onMouseDown:_=>_.preventDefault(),onClick:s},h),c.createElement(De,{noWrap:!0},r.icon&&c.createElement(be,{className:a.actionIcon},r.icon),c.createElement("div",{className:a.actionBody},c.createElement(Te,{highlightColor:l,highlight:u?f:null},r.title),r.description&&c.createElement(U,{color:"dimmed",size:"xs"},r.description))))}ue.displayName="@mantine/spotlight/DefaultAction";b();var Ut=k(e=>({nothingFound:{},actions:{padding:e.spacing.xs/2,borderTop:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]}`},actionsGroup:{textTransform:"uppercase",fontSize:e.spacing.xs,fontWeight:700,padding:"10px 12px",paddingBottom:0,paddingTop:15}})),Ye=Ut;function pe({actions:e,styles:t,classNames:r,actionComponent:o,hovered:n,onActionHover:i,onActionTrigger:s,query:u,nothingFoundMessage:l,highlightQuery:f,highlightColor:d,radius:h}){let{classes:a}=Ye(null,{classNames:r,styles:t,name:"Spotlight"}),m=e.map(g=>g.type==="item"?c.createElement(o,{query:u,key:g.item.id,action:g.item,hovered:g.index===n,onMouseEnter:()=>i(g.index),classNames:r,styles:t,radius:h,onTrigger:()=>s(g.item),highlightQuery:f,highlightColor:d}):c.createElement(U,{className:a.actionsGroup,color:"dimmed",key:g.label},g.label)),_=m.length>0||!!l&&u.trim().length>0;return c.createElement(c.Fragment,null,_&&c.createElement("div",{className:a.actions},m.length>0?m:c.createElement(U,{color:"dimmed",className:a.nothingFound,align:"center",size:"lg",py:"md"},l)))}pe.displayName="@mantine/spotlight/ActionsList";function Wt(e){return Array.isArray(e)?e.map(t=>t.trim()).join(",").toLowerCase().trim():typeof e=="string"?e.toLowerCase().trim():""}function Ze(e,t){let r=e.trim().toLowerCase(),o=[[],[]];return t.forEach(n=>{var i,s;(i=n.title)!=null&&i.toLowerCase().includes(r)?o[0].push(n):((s=n.description)!=null&&s.toLowerCase().includes(r)||Wt(n.keywords).includes(r))&&o[1].push(n)}),o.flat()}var Ft=Object.defineProperty,Kt=Object.defineProperties,Gt=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,qt=Object.prototype.hasOwnProperty,$t=Object.prototype.propertyIsEnumerable,Ve=(e,t,r)=>t in e?Ft(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,et=(e,t)=>{for(var r in t||(t={}))qt.call(t,r)&&Ve(e,r,t[r]);if(Xe)for(var r of Xe(t))$t.call(t,r)&&Ve(e,r,t[r]);return e},tt=(e,t)=>Kt(e,Gt(t)),Jt=k((e,{centered:t,maxWidth:r,topOffset:o,radius:n})=>({root:tt(et({},e.fn.cover()),{position:"fixed"}),spotlight:{position:"relative",zIndex:2,backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white,borderRadius:e.fn.radius(n),width:"100%",maxWidth:r,overflow:"hidden",marginLeft:"calc(var(--removed-scroll-width, 0px) * -1)"},overlay:tt(et({},e.fn.cover()),{position:"fixed"}),inner:{height:"100vh",display:"flex",flexDirection:"column",paddingTop:t?e.spacing.md:o,justifyContent:t?"center":"flex-start",alignItems:"center"},searchInput:{border:0,borderBottomRightRadius:0,borderBottomLeftRadius:0,backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white}})),rt=Jt;var Yt=Object.defineProperty,ee=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,ot=(e,t,r)=>t in e?Yt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Zt=(e,t)=>{for(var r in t||(t={}))nt.call(t,r)&&ot(e,r,t[r]);if(ee)for(var r of ee(t))it.call(t,r)&&ot(e,r,t[r]);return e},Xt=(e,t)=>{var r={};for(var o in e)nt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&ee)for(var o of ee(e))t.indexOf(o)<0&&it.call(e,o)&&(r[o]=e[o]);return r};function fe(e){var t=e,{query:r,onQueryChange:o,actions:n,onClose:i,opened:s,withinPortal:u,transition:l="pop",transitionDuration:f,classNames:d,styles:h,overlayColor:a="#000",overlayOpacity:m=.25,overlayBlur:_=3,shadow:g="md",radius:w="sm",centered:R=!1,closeOnActionTrigger:C=!0,highlightQuery:E=!1,highlightColor:O,maxWidth:D=600,topOffset:I=120,className:M,searchPlaceholder:L,searchIcon:p,filter:A=Ze,nothingFoundMessage:re,limit:ft=10,actionComponent:dt=ue,actionsWrapperComponent:mt="div",zIndex:gt=ye("modal")}=t,ht=Xt(t,["query","onQueryChange","actions","onClose","opened","withinPortal","transition","transitionDuration","classNames","styles","overlayColor","overlayOpacity","overlayBlur","shadow","radius","centered","closeOnActionTrigger","highlightQuery","highlightColor","maxWidth","topOffset","className","searchPlaceholder","searchIcon","filter","nothingFoundMessage","limit","actionComponent","actionsWrapperComponent","zIndex"]);let[K,j]=P(-1),[_t,me]=P(!1),{classes:B,cx:vt}=rt({centered:R,maxWidth:D,topOffset:I,radius:w},{classNames:d,styles:h,name:"Spotlight"}),[,ge]=xe(),yt=we(s),oe=()=>j(-1),G=()=>{oe(),i()};Ee({transitionDuration:0,opened:s});let St=A(r,n).slice(0,ft),he=Se(St).items,T=he.map(v=>v.type==="item"?v.item:void 0).filter(v=>v);J(()=>{T.length-1<K&&j(T.length-1)},[T.length]);let Et=v=>{var z;if(!_t)switch(v.code){case"ArrowDown":{v.preventDefault(),j(S=>S<T.length-1?S+1:0);break}case"ArrowUp":{v.preventDefault(),j(S=>S>0?S-1:T.length-1);break}case"Enter":{v.preventDefault();let S=T[K];(z=S?.onTrigger)==null||z.call(S,S),C&&S?.onTrigger&&G();break}case"Escape":v.preventDefault(),G()}},wt=v=>{o(v.currentTarget.value),K===-1&&j(0)};return c.createElement(Ie,{withinPortal:u,zIndex:gt},c.createElement(Le,{onExited:()=>ge(!1),onEntered:()=>ge(!0),mounted:s,transitions:{spotlight:{duration:f,transition:l,timingFunction:"ease"},overlay:{duration:f/2,transition:"fade",timingFunction:"ease"}}},v=>c.createElement("div",Zt({className:vt(B.root,M)},ht),c.createElement("div",{className:B.inner,ref:yt},c.createElement(Re,{style:v.spotlight,className:B.spotlight,shadow:g,radius:w,onMouseLeave:oe},c.createElement(ke,{value:r,onChange:wt,onKeyDown:Et,onCompositionStart:()=>me(!0),onCompositionEnd:()=>me(!1),classNames:{input:B.searchInput},size:"lg",placeholder:L,icon:p,onMouseEnter:oe,autoComplete:"chrome-please-just-do-not-show-it-thanks"}),c.createElement(mt,null,c.createElement(pe,{highlightQuery:E,highlightColor:O,actions:he,actionComponent:dt,hovered:K,query:r,nothingFoundMessage:re,onActionHover:j,onActionTrigger:z=>{z.onTrigger(z),C&&G()},styles:h,classNames:d,radius:w}))),c.createElement("div",{style:v.overlay},c.createElement(je,{className:B.overlay,zIndex:1,onMouseDown:G,color:a,opacity:m,blur:_}))))))}fe.displayName="@mantine/spotlight/Spotlight";b();var de={open:"mantine:open-spotlight",close:"mantine:close-spotlight",toggle:"mantine:toggle-spotlight",triggerAction:"mantine:trigger-spotlight-action",registerActions:"mantine:register-spotlight-actions",removeActions:"mantine:remove-spotlight-actions"};function Vt(e,t){return new CustomEvent(e,{detail:t})}function er(){window.dispatchEvent(Vt(de.open))}function at(e){let t={registerActions:r=>e.registerActions(r.detail),removeActions:r=>e.removeActions(r.detail),triggerAction:r=>e.triggerAction(r.detail),open:e.openSpotlight,close:e.closeSpotlight,toggle:e.toggleSpotlight};q(()=>(Object.keys(t).forEach(r=>{window.addEventListener(de[r],t[r])}),()=>{Object.keys(t).forEach(r=>{window.removeEventListener(de[r],t[r])})}),[])}b();var st=H(null);var tr=Object.defineProperty,te=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,lt=(e,t,r)=>t in e?tr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rr=(e,t)=>{for(var r in t||(t={}))ct.call(t,r)&<(e,r,t[r]);if(te)for(var r of te(t))ut.call(t,r)&<(e,r,t[r]);return e},or=(e,t)=>{var r={};for(var o in e)ct.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&te)for(var o of te(e))t.indexOf(o)<0&&ut.call(e,o)&&(r[o]=e[o]);return r};function pt(e){var t=e,{actions:r,children:o,shortcut:n="mod + K",onSpotlightClose:i,onSpotlightOpen:s,onQueryChange:u,cleanQueryOnClose:l=!0,transitionDuration:f=150}=t,d=or(t,["actions","children","shortcut","onSpotlightClose","onSpotlightOpen","onQueryChange","cleanQueryOnClose","transitionDuration"]);let h=y(-1),[a,m]=P(""),[_,{registerActions:g,updateActions:w,removeActions:R,triggerAction:C}]=Fe(r,a);J(()=>{w(r)},[r]);let E=p=>{m(p),u?.(p)},[O,{open:D,close:I,toggle:M}]=Ce(!1,{onClose:()=>{i?.(),l&&(h.current=window.setTimeout(()=>{E("")},f))},onOpen:()=>{s?.(),window.clearTimeout(h.current)}}),L={openSpotlight:D,closeSpotlight:I,toggleSpotlight:M,registerActions:g,removeActions:R,triggerAction:C,opened:O,actions:_,query:a};return Ke(n,D),at(L),c.createElement(st.Provider,{value:L},c.createElement(fe,rr({actions:_,onClose:I,opened:O,query:a,onQueryChange:E,transitionDuration:f},d)),o)}pt.displayName="@mantine/spotlight/SpotlightProvider";export{F as a,Me as b,At as c,Be as d,He as e,Er as f,er as g,pt as h};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as a}from"./chunk-RPOP6MVJ.js";import{Fa as r,Ga as i}from"./chunk-4CUWZQXT.js";import{d as l}from"./chunk-KUCVLANF.js";function s(o,n){if(n in o)return o[n];let e=`*@${n.split("@").at(-1)}`;return e in o?o[e]:null}function d(o,n){let t=s(o,n);return t==="ADMIN"||t==="EDITOR"}function c(o,n){let t=s(o,n);return t==="ADMIN"||t==="EDITOR"||t==="CONTRIBUTOR"}function f(o){return o.condition?i(r,{label:o.label,children:i("div",{className:a(o.className,"ConditionalTooltip"),style:o.style,children:i("div",{className:"ConditionalTooltip__content",children:o.children})})}):i(l,{children:o.children})}export{d as a,c as b,f as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as k}from"./chunk-N4DFAIC5.js";import{c as z}from"./chunk-NMBXHKIJ.js";import{B as A,C as I,x as y}from"./chunk-NQ5ARARP.js";import{a as b}from"./chunk-N5Y5OWTV.js";import{f as h}from"./chunk-5MV6XVGA.js";import{f as u}from"./chunk-RPOP6MVJ.js";import{Dc as N,Ga as e,U as p,Uc as C,V as g,a as n,c as v,da as S,e as w,j as V}from"./chunk-4CUWZQXT.js";import{d as _}from"./chunk-KUCVLANF.js";V();V();function P(o){let r=o.docId,[i,d]=n("idle"),[c,f]=n(""),[s,l]=n(""),m=w(!1);async function x(){d("loading");try{let t=await I(r,{beforeVersion:o.beforeVersion,afterVersion:o.afterVersion});f(t),d("success")}catch(t){console.error(t),l(t instanceof Error?t.message:"Unknown error"),d("error")}}function D(){m.current||(m.current=!0,x())}let a;return i==="idle"||i==="loading"?a=e("div",{className:"AiSummary__loading",children:e(g,{size:"md",color:"gray"})}):i==="error"?a=e(b,{className:"AiSummary__content",size:"body-sm",color:"gray",children:["Failed to load AI summary.",s&&e(_,{children:[e("br",{}),s]})]}):c?a=e(z,{className:"AiSummary__content",code:c}):a=e(b,{className:"AiSummary__content",size:"body-sm",color:"gray",children:"No AI summary available for this draft yet."}),e("div",{className:u(o.className,"AiSummary"),children:e(p,{iconPosition:"right",onChange:()=>D(),disableIconRotation:!0,children:e(p.Item,{label:"Summarize changes",icon:e(N,{stroke:"1.5"}),iconPosition:"left",children:a})})})}function se(o){let r=o.left,i=o.right,[d,c]=n(!1),[f,s]=n(null),[l,m]=n(null),D=(window.__ROOT_CTX?.experiments||{}).ai&&r.docId===i.docId&&o.showAiSummary!==!1,a=h(T(f?.fields||{})),t=h(T(l?.fields||{})),F=!d&&f&&l&&a===t,M=`/cms/compare?left=${B(r)}&right=${B(i)}`;async function $(){c(!0);let[j,E]=await Promise.all([y(r.docId,r.versionId),y(i.docId,i.versionId)]);s(j),m(E),c(!1)}return v(()=>{$()},[]),d?e("div",{className:"DocDiffViewer DocDiffViewer--loading",children:e(g,{size:"md",color:"gray"})}):e(_,{children:[D&&e(P,{className:"DocDiffViewer__aiSummary",docId:r.docId,beforeVersion:String(r.versionId),afterVersion:String(i.versionId)}),e("div",{className:u(o.className,"DocDiffViewer"),children:[o.showExpandButton&&e("div",{className:"DocDiffViewer__expand",children:e(S,{component:"a",variant:"default",size:"xs",compact:!0,href:M,target:"_blank",children:"Open in new tab"})}),e("div",{className:"DocDiffViewer__header",children:[e("div",{className:"DocDiffViewer__header__label",children:[e("div",{className:"DocDiffViewer__header__label__title",children:[o.left.docId,"@",o.left.versionId]}),e("div",{className:"DocDiffViewer__header__label__meta",children:R(f)})]}),e("div",{className:"DocDiffViewer__header__label",children:[e("div",{className:"DocDiffViewer__header__label__title",children:[o.right.docId,"@",o.right.versionId]}),e("div",{className:"DocDiffViewer__header__label__meta",children:R(l)})]})]}),e("div",{className:"DocDiffViewer__diff",children:F?e("div",{className:"DocDiffViewer__identical",children:[e(C,{size:20}),e("span",{children:"No changes. Both versions are identical."})]}):e(k,{oldCode:a,newCode:t})})]})]})}function R(o){if(!o?.sys?.modifiedAt)return"never";let r=o.sys.modifiedAt.toDate();return`${new Intl.DateTimeFormat("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}).format(r)} by ${o.sys.modifiedBy}`}function T(o){return A(o,{removeArrayKey:!0})}function B(o){return encodeURIComponent(`${o.docId}@${o.versionId}`).replaceAll("%2F","/").replaceAll("%40","@")}export{P as a,se as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{k as T}from"./chunk-4KE2SZKH.js";import{f as C}from"./chunk-NQ5ARARP.js";import{f as i}from"./chunk-ORXEMIQC.js";import{a as b,b as g,c as n,g as m,i as R,n as I,o as y,q as l,s as j,t as d,u as f,w as _}from"./chunk-EGEB6N4J.js";var c="Releases";async function E(e,t){if(!e)throw new Error("missing data source id");let r=window.__ROOT_CTX.rootConfig.projectId,o=window.firebase.db,s=n(o,"Projects",r,c,e);await j(o,async a=>{if((await a.get(s)).exists())throw new Error(`release exists: ${e}`);await a.set(s,{...t,id:e,createdAt:f(),createdBy:window.firebase.user.email})}),i("release.create",{metadata:{releaseId:e}})}async function S(){let e=window.__ROOT_CTX.rootConfig.projectId,t=window.firebase.db,r=g(t,"Projects",e,c),o=m(r,R("createdAt","desc")),s=await y(o),a=[];return s.forEach(w=>{a.push(w.data())}),a}async function u(e){let t=window.__ROOT_CTX.rootConfig.projectId,r=window.firebase.db,o=n(r,"Projects",t,c,e),s=await I(o);return s.exists()?s.data():null}async function D(e,t){let r=window.__ROOT_CTX.rootConfig.projectId,o=window.firebase.db,s=n(o,"Projects",r,c,e);await l(s,t),i("release.save",{metadata:{releaseId:e}})}async function X(e){let t=window.__ROOT_CTX.rootConfig.projectId,r=window.firebase.db,o=n(r,"Projects",t,c,e);await l(o,{archivedAt:f(),archivedBy:window.firebase.user.email}),i("release.archive",{metadata:{releaseId:e}})}async function M(e){let t=window.__ROOT_CTX.rootConfig.projectId,r=window.firebase.db,o=n(r,"Projects",t,c,e);await l(o,{archivedAt:d(),archivedBy:d()}),i("release.unarchive",{metadata:{releaseId:e}})}async function k(e){let t=await u(e);if(!t)throw new Error(`release not found: ${e}`);if(t.archivedAt)throw new Error(`release is archived: ${e}`);let r=t.docIds||[],o=t.dataSourceIds||[];if(r.length===0&&o.length===0)throw new Error(`no docs or data sources to publish for release: ${e}`);let s=window.__ROOT_CTX.rootConfig.projectId,a=window.firebase.db,w=n(a,"Projects",s,c,e),p=_(a);p.update(w,{publishedAt:f(),publishedBy:window.firebase.user.email,scheduledAt:d(),scheduledBy:d()}),o.length>0&&await T(o,{batch:p,commitBatch:!1}),await C(r,{batch:p,releaseId:e,publishMessage:t.description}),console.log(`published release: ${e}`);let h={releaseId:e,docIds:r,dataSourceIds:o};t.description&&(h.publishMessage=t.description),i("release.publish",{metadata:h})}async function q(e,t){let r=await u(e);if(!r)throw new Error(`release not found: ${e}`);if(r.archivedAt)throw new Error(`release is archived: ${e}`);typeof t=="number"&&(t=b.fromMillis(t));let o=window.__ROOT_CTX.rootConfig.projectId,s=window.firebase.db,a=n(s,"Projects",o,c,e);await l(a,{scheduledAt:t,scheduledBy:window.firebase.user.email}),i("release.publish",{metadata:{releaseId:e,scheduledAt:t.toMillis()}})}var O=["blue","bold","bright","calm","cool","cosmic","crisp","dark","eager","fast","fresh","gentle","golden","grand","happy","idle","jolly","keen","lively","lucky","mellow","mighty","neat","noble","proud","quiet","rapid","sharp","silver","swift","vivid","warm","wild"],v=["arrow","beacon","breeze","canyon","cedar","comet","coral","crane","dune","eagle","ember","falcon","flame","flint","forest","fox","glacier","harbor","hawk","lantern","maple","meadow","orbit","otter","peak","pine","reef","river","sage","spark","spruce","stone","summit","tide","wolf"];function N(){let e=new Date,t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),o=String(e.getDate()).padStart(2,"0"),s=O[Math.floor(Math.random()*O.length)],a=v[Math.floor(Math.random()*v.length)];return`${t}${r}${o}-${s}-${a}`}async function F(e){if(!await u(e))throw new Error(`release not found: ${e}`);let r=window.__ROOT_CTX.rootConfig.projectId,o=window.firebase.db,s=n(o,"Projects",r,c,e);await l(s,{scheduledAt:d(),scheduledBy:d()}),i("release.unschedule",{metadata:{releaseId:e}})}export{E as a,S as b,u as c,D as d,X as e,M as f,k as g,q as h,N as i,F as j};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{a as C,f as h}from"./chunk-ORXEMIQC.js";import{b as m,c as g,g as p,h as b,n as y,o as x,q as _,v as f,w as u}from"./chunk-EGEB6N4J.js";function S(){let t=window.__ROOT_CTX.rootConfig.projectId,n=window.firebase.db;return m(n,"Projects",t,"Translations")}async function $(t){let n=S(),s=t?.tags?p(n,b("tags","array-contains-any",t.tags)):p(n),a=await x(s),e={};return a.forEach(r=>{let o=r.id;e[o]=r.data()}),e}async function k(t){let n=window.__ROOT_CTX.rootConfig.projectId,s=window.firebase.db,a=g(s,"Projects",n,"Translations",t);return(await y(a)).data()}async function H(t,n){let s=window.__ROOT_CTX.rootConfig.projectId,a=window.firebase.db,e=g(a,"Projects",s,"Translations",t),r={};for(let o in n){if(o==="tags"){r.tags=n.tags;continue}let c=O(o);c&&(r[c]=n[o])}console.log("updating translations: ",r),await _(e,r),h("translations.save",{metadata:{hash:t},throttle:5*C.minute,throttleId:t})}async function U(t,n){let s=n?.mode??"replace",a=window.__ROOT_CTX.rootConfig.projectId,e=window.firebase.db,r=500;for(let o=0;o<t.length;o+=r){let c=u(e);t.slice(o,o+r).forEach(({hash:l,tags:d})=>{let i=g(e,"Projects",a,"Translations",l);s==="union"?c.update(i,{tags:f(...d)}):c.update(i,{tags:d})}),await c.commit()}}async function A(t){return P(j(t))}async function P(t){let s=new TextEncoder().encode(t),a=await crypto.subtle.digest("SHA-1",s);return Array.from(new Uint8Array(a)).map(o=>o.toString(16).padStart(2,"0")).join("")}function j(t){return String(t).trim().split(`
|
|
2
|
-
`).map(s=>X(s)).join(`
|
|
3
|
-
`)}function X(t){return String(t).trimEnd().replace(/ $/,"")}var R=new Map;function L(t){let n=R.get(t);if(n)return n;let s=t.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,"."),a=new RegExp(`^${s}$`,"i");return R.set(t,a),a}function q(t){return(window.__ROOT_CTX.excludeLocalesFromTranslations||[]).some(s=>L(s).test(t))}function O(t){let s=(window.__ROOT_CTX.rootConfig.i18n||{}).locales||["en"];for(let a of s)if(String(a).toLowerCase()===t.toLowerCase())return a;return null}async function B(t,n){let s=window.__ROOT_CTX.rootConfig.projectId,a=window.firebase.db,e=500,r=await Promise.all(t.map(async o=>({hash:await A(o.source),locales:o.locales,source:o.source})));for(let o=0;o<r.length;o+=e){let c=u(a),w=r.slice(o,o+e);for(let l of w){let d=g(a,"Projects",s,"Translations",l.hash),i={source:l.source};for(let[E,I]of Object.entries(l.locales)){let T=O(E);T&&(i[T]=j(I))}n?.tags?.length&&(i.tags=f(...n.tags)),c.set(d,i,{merge:!0})}await c.commit()}h("translations.batch_save",{metadata:{count:t.length}})}export{S as a,$ as b,k as c,H as d,U as e,A as f,j as g,q as h,B as i};
|
package/dist/ui/gcs-L33FIRZU.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as a,c as b,d as c,e as d,f as e,g as f,h as g,i as h,j as i,k as j,l as k,m as l,n as m}from"./chunk-SKEP5WYH.js";import"./chunk-DTMZLUNY.js";import"./chunk-PVAE643M.js";export{a as GCI_SUPPORTED_EXTS,d as GCI_URL_PREFIX,b as IMAGE_EXTS,c as VIDEO_EXTS,l as buildDownloadURL,g as checkFileExists,f as deleteFileFromGCS,h as getFileExt,m as shouldImageUseDarkBg,j as testIsGoogleCloudImageFile,i as testIsImageFile,k as testIsVideoFile,e as uploadFileToGCS};
|
/package/dist/ui/{ImageEditorDialog-QEULJAT2.js.LEGAL.txt → ImageEditorDialog-GGS4VFEA.js.LEGAL.txt}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|