domma-cms 1.66.8 → 1.66.10
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/CHANGELOG.md +14 -0
- package/admin/css/admin.css +1 -1
- package/admin/js/app.js +2 -2
- package/admin/js/lib/page-editor-reference.js +1 -1
- package/admin/js/templates/docs/usage-shortcodes-components.html +366 -0
- package/admin/js/templates/docs/usage-shortcodes-content.html +550 -0
- package/admin/js/templates/docs/usage-shortcodes-data.html +469 -0
- package/admin/js/templates/docs/usage-shortcodes-effects.html +897 -0
- package/admin/js/templates/docs/usage-shortcodes-layout.html +732 -0
- package/admin/js/templates/docs/usage-shortcodes.html +82 -0
- package/admin/js/templates/documentation.html +20 -0
- package/admin/js/templates/effects.html +1 -1
- package/admin/js/views/doc-pages.js +1 -1
- package/admin/js/views/index.js +1 -1
- package/docs/markdown-shortcodes.md +15 -10
- package/package.json +1 -1
- package/public/css/site.css +1 -1
- package/public/js/effects.js +1 -1
- package/server/server.js +5 -0
- package/server/services/docs.js +5 -0
- package/server/services/markdown.js +104 -34
- package/server/templates/page.html +2 -2
package/public/js/effects.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){"use strict";var C=window.__CMS_EFFECTS__;Promise.all([C&&typeof C=="object"?C:fetch("/api/effects/settings").then(function(g){return g.json()}),import("/public/js/scribe-style.mjs?v=20261029-all-cms-fonts")]).then(function(g){var w=g[0],R=g[1].buildScribeStyle,k=g[1].loadScribeFont,q=w.respectMotion!==!1,Y=w.defaultDuration||600,N=w.defaultAnimation||"fade",j=w.defaultThreshold!=null?w.defaultThreshold:.1,p=q&&window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,m=document.querySelector(".page-body");if(!m)return;var A=m.querySelector?m.querySelector(".dm-fx-demo-controls"):null;if(A){A.hidden=!1;var M=A.querySelector("[data-fx-demo-status]"),I=A.querySelector("[data-fx-demo-play]");M.textContent=p?"Animations are disabled by your Reduce motion preference. The demos show static content.":"Animations are enabled. Scroll to each demo to see it, or replay the page.",I.textContent=p?"Enable animations on this site":"Replay demos",I.addEventListener("click",function(){if(p)try{localStorage.setItem("domma:reduced_motion","false")}catch{M.textContent="Your browser blocked saving the motion preference. Use its accessibility settings to allow animations.";return}window.location.reload()})}function r(t,e){return t.getAttribute("data-fx-"+e)}function i(t,e,n){var a=r(t,e),o=a!==null?parseFloat(a):NaN;return Number.isFinite(o)?o:n}function x(t,e,n){var a=r(t,e);return a===null?n:a==="true"||a==="1"}function T(t,e,n){var a=new IntersectionObserver(function(o){o[0].isIntersecting&&(a.unobserve(t),n())},{threshold:e});a.observe(t)}m.querySelectorAll(".dm-fx-reveal").forEach(function(t){var e=r(t,"animation")||N,n=i(t,"duration",Y),a=i(t,"delay",0),o=i(t,"threshold",j),d=x(t,"once",!0);p||(t.style.opacity="0",t.style.transition="none",e==="slide-up"?t.style.transform="translateY(30px)":e==="slide-down"?t.style.transform="translateY(-30px)":e==="zoom"?t.style.transform="scale(0.85)":e==="flip"&&(t.style.transform="rotateY(90deg)"),requestAnimationFrame(function(){requestAnimationFrame(function(){t.style.transition="opacity "+n+"ms ease "+a+"ms, transform "+n+"ms ease "+a+"ms";var f=new IntersectionObserver(function(c){c.forEach(function(v){v.isIntersecting?(t.style.opacity="1",t.style.transform="",d&&f.unobserve(t)):d||(t.style.opacity="0",e==="slide-up"?t.style.transform="translateY(30px)":e==="slide-down"?t.style.transform="translateY(-30px)":e==="zoom"?t.style.transform="scale(0.85)":e==="flip"?t.style.transform="rotateY(90deg)":t.style.transform="")})},{threshold:o});f.observe(t)})}))}),m.querySelectorAll(".dm-fx-counter").forEach(function(t){var e=i(t,"to",0),n=i(t,"from",0),a=i(t,"duration",2e3),o=r(t,"prefix")||"",d=r(t,"suffix")||"",f=i(t,"decimals",0),c=r(t,"separator")||"";function v(l){var u=l.toFixed(f);if(c){var y=u.split(".");y[0]=y[0].replace(/\B(?=(\d{3})+(?!\d))/g,c),u=y.join(".")}return o+u+d}if(p){t.textContent=v(e);return}T(t,.5,function(){var l=null;requestAnimationFrame(function u(y){l||(l=y);var S=Math.min((y-l)/a,1),E=1-Math.pow(1-S,3);t.textContent=v(n+(e-n)*E),S<1&&requestAnimationFrame(u)})})}),p||m.querySelectorAll(".dm-fx-scramble").forEach(function(t){var e=i(t,"speed",50),n=t.textContent,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%&",o=0;T(t,.3,function(){var d=setInterval(function(){for(var f="",c=0;c<n.length;c++)c<o||n[c]===" "?f+=n[c]:f+=a[Math.floor(Math.random()*a.length)];t.textContent=f,o<n.length?o++:clearInterval(d)},e)})}),p||m.querySelectorAll(".dm-fx-shake").forEach(function(t){var e=i(t,"intensity",5),n=i(t,"duration",500),a=r(t,"direction")||"horizontal",o=a==="vertical"?"translateY":"translateX";t.animate([{transform:o+"(0)"},{transform:o+"(-"+e+"px)"},{transform:o+"("+e+"px)"},{transform:o+"(-"+e+"px)"},{transform:o+"("+e+"px)"},{transform:o+"(0)"}],{duration:n,easing:"ease-in-out"})}),m.querySelectorAll(".dm-fx-ripple").forEach(function(t){t.style.position="relative",t.style.overflow="hidden",t.addEventListener("click",function(e){var n=r(t,"colour")||"rgba(255,255,255,0.3)",a=i(t,"duration",600),o=t.getBoundingClientRect(),d=Math.max(o.width,o.height)*2,f=document.createElement("span");f.style.cssText="position:absolute;border-radius:50%;pointer-events:none;width:"+d+"px;height:"+d+"px;left:"+(e.clientX-o.left-d/2)+"px;top:"+(e.clientY-o.top-d/2)+"px;background:"+n+";transform:scale(0);opacity:1;transition:transform "+a+"ms ease,opacity "+a+"ms ease;",t.appendChild(f),requestAnimationFrame(function(){f.style.transform="scale(1)",f.style.opacity="0"}),setTimeout(function(){f.remove()},a)})});var h=window.Domma&&window.Domma.effects;h&&(m.querySelectorAll(".dm-fx-breathe").forEach(function(t){if(!p){var e={};r(t,"amplitude")&&(e.amplitude=i(t,"amplitude",6)),r(t,"duration")&&(e.duration=i(t,"duration",3e3)),r(t,"easing")&&(e.easing=r(t,"easing")),r(t,"stagger")&&(e.stagger=i(t,"stagger",0)),h.breathe(t,e)}}),m.querySelectorAll(".dm-fx-pulse").forEach(function(t){if(!p){var e={};r(t,"scale")&&(e.scale=i(t,"scale",1.05)),r(t,"duration")&&(e.duration=i(t,"duration",2e3)),r(t,"easing")&&(e.easing=r(t,"easing")),h.pulse(t,e)}}),m.querySelectorAll(".dm-fx-scribe").forEach(function(t){var e={};["font","size","font-size","weight","colour","color","italic","align","line-height","spacing"].forEach(function(s){var b=r(t,s);b!==null&&(e[s]=b)}),typeof k=="function"&&k(e.font);var n=R(e);n&&(t.style.cssText+=";"+n);var a={respectMotionPreference:q};[["speed","speed",50],["delete-speed","deleteSpeed",30],["loop-delay","loopDelay",1e3]].forEach(function(s){r(t,s[0])!==null&&(a[s[1]]=Math.max(0,i(t,s[0],s[2])))}),[["cursor","cursor",!0],["cursor-blink","cursorBlink",!0],["pause-on-hover","pauseOnHover",!1],["auto-start","autoStart",!0],["respect-motion-preference","respectMotionPreference",q]].forEach(function(s){r(t,s[0])!==null&&(a[s[1]]=x(t,s[0],s[2]))}),r(t,"cursor-char")!==null&&(a.cursorChar=r(t,"cursor-char"));var o=r(t,"mode");["typewriter","word","sentence"].includes(o)&&(a.mode=o);var d=r(t,"cursor-type");["caret","block","underline"].includes(d)&&(a.cursorType=d);var f=r(t,"loop");if(f!==null){var c=Number(f);a.loop=f==="true"?!0:Number.isInteger(c)&&c>=1?c:!1}var v=r(t,"effect");["none","fade","bounce","glow"].includes(v)||(v="none");var l=r(t,"actions");if(l){try{a.actions=JSON.parse(l)}catch{return}if(!Array.isArray(a.actions)||a.actions.some(function(s){return!s||typeof s!="object"}))return;a.actions=a.actions.map(function(s){return s.render!==void 0&&s.effect===void 0?Object.assign({},s,{effect:v}):s})}else{var u=t.textContent.trim();if(!u)return;a.actions=[{render:u,effect:v}]}var y=a.respectMotionPreference&&window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(y){var S=a.actions.find(function(s){return s.render!=null});S&&(t.textContent=String(S.render));return}l||(t.textContent=""),[["onStart","start"],["onComplete","complete"],["onCharacter","character"],["onRender","render"],["onUndoRender","undo"],["onLoop","loop"]].forEach(function(s){a[s[0]]=function(b,O){t.dispatchEvent(new CustomEvent("scribe:"+s[1],{bubbles:!0,detail:{value:b,index:O}}))}});var E=h.scribe(t,a);if(E&&(x(t,"controls",!1)||a.autoStart===!1)){var z=document.createElement("span");z.className="dm-scribe-controls",z.setAttribute("role","group"),z.setAttribute("aria-label","Text animation playback"),[["Play","resume"],["Pause","pause"],["Replay","restart"]].forEach(function(s){var b=document.createElement("button");b.type="button",b.className="btn btn-ghost btn-sm",b.textContent=s[0],b.addEventListener("click",function(){E[s[1]]()}),z.appendChild(b)}),t.insertAdjacentElement("afterend",z)}}),m.querySelectorAll(".dm-fx-twinkle").forEach(function(t){var e={};r(t,"count")&&(e.count=i(t,"count",100)),r(t,"shape")&&(e.shape=r(t,"shape")),r(t,"colour")&&(e.colour=r(t,"colour")),r(t,"min-size")&&(e.minSize=i(t,"min-size",1)),r(t,"max-size")&&(e.maxSize=i(t,"max-size",3)),h.twinkle(t,e)}),typeof h.tickerTape=="function"&&m.querySelectorAll(".dm-fx-ticker-tape").forEach(function(t){if(!p){var e={};r(t,"palette")&&(e.palette=r(t,"palette")),r(t,"density")&&(e.density=i(t,"density",50)),r(t,"speed")&&(e.speed=i(t,"speed",1)),r(t,"sway")&&(e.sway=i(t,"sway",60)),r(t,"rotation-speed")&&(e.rotationSpeed=i(t,"rotation-speed",6)),r(t,"min-width")&&(e.minWidth=i(t,"min-width",5)),r(t,"max-width")&&(e.maxWidth=i(t,"max-width",9)),r(t,"min-height")&&(e.minHeight=i(t,"min-height",12)),r(t,"max-height")&&(e.maxHeight=i(t,"max-height",22)),r(t,"fade-start")&&(e.fadeStart=i(t,"fade-start",.55)),r(t,"burst")&&(e.burst=x(t,"burst",!1)),r(t,"burst-count")&&(e.burstCount=i(t,"burst-count",150)),r(t,"z-index")&&(e.zIndex=i(t,"z-index",1));var n=r(t,"mode");n==="page"?h.tickerTape(null,e):h.tickerTape(t,e)}}),typeof h.butterflies=="function"&&m.querySelectorAll(".dm-fx-butterflies").forEach(function(t){if(!p){var e={};r(t,"palette")&&(e.palette=r(t,"palette")),r(t,"density")&&(e.density=i(t,"density",18)),r(t,"speed")&&(e.speed=i(t,"speed",1)),r(t,"wander")&&(e.wander=i(t,"wander",1)),r(t,"rise-speed")&&(e.riseSpeed=i(t,"rise-speed",.4)),r(t,"flap-speed")&&(e.flapSpeed=i(t,"flap-speed",1)),r(t,"min-size")&&(e.minSize=i(t,"min-size",14)),r(t,"max-size")&&(e.maxSize=i(t,"max-size",26)),r(t,"two-tone")&&(e.twoTone=x(t,"two-tone",!0)),r(t,"burst")&&(e.burst=x(t,"burst",!1)),r(t,"burst-count")&&(e.burstCount=i(t,"burst-count",40)),r(t,"z-index")&&(e.zIndex=i(t,"z-index",1));var n=r(t,"mode");n==="page"?h.butterflies(null,e):h.butterflies(t,e)}}),typeof h.strobe=="function"&&m.querySelectorAll(".dm-fx-strobe").forEach(function(t){if(p)return;function e(f){var c=r(t,f);if(!c)return null;var v=c.split(",").map(function(l){return l.trim()}).filter(Boolean);return v.length?v:null}var n={};r(t,"preset")&&(n.preset=r(t,"preset")),r(t,"motion")&&(n.motion=r(t,"motion")),r(t,"speed")&&(n.speed=i(t,"speed",1)),r(t,"sweep-arc")&&(n.sweepArc=i(t,"sweep-arc",100)),r(t,"beam-width")&&(n.beamWidth=i(t,"beam-width",16)),r(t,"intensity")&&(n.intensity=i(t,"intensity",.7)),r(t,"flicker")&&(n.flicker=x(t,"flicker",!0)),r(t,"hz")&&(n.hz=i(t,"hz",10));var a=e("origins");a&&(n.origins=a);var o=e("colours");o&&(n.colours=o),r(t,"duration")&&(n.duration=i(t,"duration",null)),r(t,"z-index")&&(n.zIndex=i(t,"z-index",9999));var d=r(t,"mode");d==="page"?h.strobe(null,n):h.strobe(t,n)}));var F=m.querySelectorAll(".dm-fx-celebrate");F.length&&import("/public/js/celebrations/index.js?v=20261015-occasions").then(function(t){var e=t.CelebrationsEffect;F.forEach(function(n){var a=r(n,"character");if(a){if(n.querySelector("canvas"))return;t.mountCharacter(n,{character:a,size:r(n,"size")||"medium",facing:r(n,"facing")||"right",animate:!p&&x(n,"animate",!0)}).then(function(u){var y=new MutationObserver(function(){n.isConnected||(u.destroy(),y.disconnect())});n.isConnected?y.observe(document.body,{childList:!0,subtree:!0}):u.destroy()}).catch(function(u){console.error("[celebrate]",u)});return}if(!p){var o=n.getAttribute("data-fx-theme")||"auto";o==="auto"&&r(n,"message")&&(o="greeting");var d=n.getAttribute("data-fx-intensity")||"medium",f=n.getAttribute("data-fx-z-index")?parseInt(n.getAttribute("data-fx-z-index"),10):999;if(!(o==="auto"&&(o=e.getCurrentTheme(),!o))){var c={},v=["data-fx-theme","data-fx-intensity","data-fx-z-index"];if(Array.from(n.attributes).forEach(function(u){u.name.startsWith("data-fx-")&&!v.includes(u.name)&&(c[u.name.slice(8)]=u.value)}),o==="make-it-rain"||o==="money-rain"){t[o==="money-rain"?"moneyRain":"makeItRain"]({intensity:d,zIndex:f,overrides:c,duration:i(n,"duration",8e3)}).catch(function(u){console.error("[make-it-rain]",u)});return}var l=new e({theme:o,intensity:d,enabled:!0,zIndex:f,overrides:c});l.init().then(function(){l.start()})}}})}).catch(function(){})}).catch(function(){})})();
|
|
1
|
+
(function(){"use strict";var C=window.__CMS_EFFECTS__;Promise.all([C&&typeof C=="object"?C:fetch("/api/effects/settings").then(function(g){return g.json()}),import("/public/js/scribe-style.mjs?v=20261029-all-cms-fonts")]).then(function(g){var w=g[0],R=g[1].buildScribeStyle,M=g[1].loadScribeFont,q=w.respectMotion!==!1,Y=w.defaultDuration||600,N=w.defaultAnimation||"fade",O=w.defaultThreshold!=null?w.defaultThreshold:.1,v=q&&window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,l=document.querySelector(".page-body");if(!l)return;var A=l.querySelector?l.querySelector(".dm-fx-demo-controls"):null;if(A){A.hidden=!1;var k=A.querySelector("[data-fx-demo-status]"),I=A.querySelector("[data-fx-demo-play]");k.textContent=v?"Animations are disabled by your Reduce motion preference. The demos show static content.":"Animations are enabled. Scroll to each demo to see it, or replay the page.",I.textContent=v?"Enable animations on this site":"Replay demos",I.addEventListener("click",function(){if(v)try{localStorage.setItem("domma:reduced_motion","false")}catch{k.textContent="Your browser blocked saving the motion preference. Use its accessibility settings to allow animations.";return}window.location.reload()})}function r(t,e){return t.getAttribute("data-fx-"+e)}function i(t,e,n){var a=r(t,e),o=a!==null?parseFloat(a):NaN;return Number.isFinite(o)?o:n}function x(t,e,n){var a=r(t,e);return a===null?n:a==="true"||a==="1"}function T(t,e,n){var a=new IntersectionObserver(function(o){o[0].isIntersecting&&(a.unobserve(t),n())},{threshold:e});a.observe(t)}l.querySelectorAll(".dm-fx-reveal").forEach(function(t){var e=r(t,"animation")||N,n=i(t,"duration",Y),a=i(t,"delay",0),o=i(t,"threshold",O),d=x(t,"once",!0);v||(t.style.opacity="0",t.style.transition="none",e==="slide-up"?t.style.transform="translateY(30px)":e==="slide-down"?t.style.transform="translateY(-30px)":e==="zoom"?t.style.transform="scale(0.85)":e==="flip"&&(t.style.transform="rotateY(90deg)"),requestAnimationFrame(function(){requestAnimationFrame(function(){t.style.transition="opacity "+n+"ms ease "+a+"ms, transform "+n+"ms ease "+a+"ms";var u=new IntersectionObserver(function(f){f.forEach(function(m){m.isIntersecting?(t.style.opacity="1",t.style.transform="",d&&u.unobserve(t)):d||(t.style.opacity="0",e==="slide-up"?t.style.transform="translateY(30px)":e==="slide-down"?t.style.transform="translateY(-30px)":e==="zoom"?t.style.transform="scale(0.85)":e==="flip"?t.style.transform="rotateY(90deg)":t.style.transform="")})},{threshold:o});u.observe(t)})}))}),l.querySelectorAll(".dm-fx-counter").forEach(function(t){var e=i(t,"to",0),n=i(t,"from",0),a=i(t,"duration",2e3),o=r(t,"prefix")||"",d=r(t,"suffix")||"",u=i(t,"decimals",0),f=r(t,"separator")||"";function m(p){var c=p.toFixed(u);if(f){var h=c.split(".");h[0]=h[0].replace(/\B(?=(\d{3})+(?!\d))/g,f),c=h.join(".")}return o+c+d}if(v){t.textContent=m(e);return}T(t,.5,function(){var p=null;requestAnimationFrame(function c(h){p||(p=h);var S=Math.min((h-p)/a,1),E=1-Math.pow(1-S,3);t.textContent=m(n+(e-n)*E),S<1&&requestAnimationFrame(c)})})}),v||l.querySelectorAll(".dm-fx-scramble").forEach(function(t){var e=i(t,"speed",50),n=t.textContent,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%&",o=r(t,"loop"),d=o!=null&&["false","no","0","off"].indexOf(String(o).toLowerCase())===-1,u=Math.max(250,i(t,"loop-delay",2e3));function f(){var m=0,p=setInterval(function(){if(!t.isConnected)return clearInterval(p);for(var c="",h=0;h<n.length;h++)h<m||n[h]===" "?c+=n[h]:c+=a[Math.floor(Math.random()*a.length)];t.textContent=c,m<n.length?m++:(clearInterval(p),d&&n.trim()&&setTimeout(f,u))},e)}T(t,.3,f)}),v||l.querySelectorAll(".dm-fx-shake").forEach(function(t){var e=i(t,"intensity",5),n=i(t,"duration",500),a=r(t,"direction")||"horizontal",o=a==="vertical"?"translateY":"translateX";t.animate([{transform:o+"(0)"},{transform:o+"(-"+e+"px)"},{transform:o+"("+e+"px)"},{transform:o+"(-"+e+"px)"},{transform:o+"("+e+"px)"},{transform:o+"(0)"}],{duration:n,easing:"ease-in-out"})}),l.querySelectorAll(".dm-fx-ripple").forEach(function(t){t.style.position="relative",t.style.overflow="hidden",t.addEventListener("click",function(e){var n=r(t,"colour")||"rgba(255,255,255,0.3)",a=i(t,"duration",600),o=Math.min(1,Math.max(0,i(t,"opacity",1))),d=t.getBoundingClientRect(),u=Math.max(d.width,d.height)*2,f=document.createElement("span");f.style.cssText="position:absolute;border-radius:50%;pointer-events:none;width:"+u+"px;height:"+u+"px;left:"+(e.clientX-d.left-u/2)+"px;top:"+(e.clientY-d.top-u/2)+"px;background:"+n+";transform:scale(0);opacity:"+o+";transition:transform "+a+"ms ease,opacity "+a+"ms ease;",t.appendChild(f),requestAnimationFrame(function(){f.style.transform="scale(1)",f.style.opacity="0"}),setTimeout(function(){f.remove()},a)})});var y=window.Domma&&window.Domma.effects;y&&(l.querySelectorAll(".dm-fx-breathe").forEach(function(t){if(!v){var e={};r(t,"amplitude")&&(e.amplitude=i(t,"amplitude",6)),r(t,"duration")&&(e.duration=i(t,"duration",3e3)),r(t,"easing")&&(e.easing=r(t,"easing")),r(t,"stagger")&&(e.stagger=i(t,"stagger",0)),y.breathe(t,e)}}),l.querySelectorAll(".dm-fx-pulse").forEach(function(t){if(!v){var e={};r(t,"scale")&&(e.scale=i(t,"scale",1.05)),r(t,"duration")&&(e.duration=i(t,"duration",2e3)),r(t,"easing")&&(e.easing=r(t,"easing")),y.pulse(t,e)}}),l.querySelectorAll(".dm-fx-scribe").forEach(function(t){var e={};["font","size","font-size","weight","colour","color","italic","align","line-height","spacing"].forEach(function(s){var b=r(t,s);b!==null&&(e[s]=b)}),typeof M=="function"&&M(e.font);var n=R(e);n&&(t.style.cssText+=";"+n);var a={respectMotionPreference:q};[["speed","speed",50],["delete-speed","deleteSpeed",30],["loop-delay","loopDelay",1e3]].forEach(function(s){r(t,s[0])!==null&&(a[s[1]]=Math.max(0,i(t,s[0],s[2])))}),[["cursor","cursor",!0],["cursor-blink","cursorBlink",!0],["pause-on-hover","pauseOnHover",!1],["auto-start","autoStart",!0],["respect-motion-preference","respectMotionPreference",q]].forEach(function(s){r(t,s[0])!==null&&(a[s[1]]=x(t,s[0],s[2]))}),r(t,"cursor-char")!==null&&(a.cursorChar=r(t,"cursor-char"));var o=r(t,"mode");["typewriter","word","sentence"].includes(o)&&(a.mode=o);var d=r(t,"cursor-type");["caret","block","underline"].includes(d)&&(a.cursorType=d);var u=r(t,"loop");if(u!==null){var f=Number(u);a.loop=u==="true"?!0:Number.isInteger(f)&&f>=1?f:!1}var m=r(t,"effect");["none","fade","bounce","glow"].includes(m)||(m="none");var p=r(t,"actions");if(p){try{a.actions=JSON.parse(p)}catch{return}if(!Array.isArray(a.actions)||a.actions.some(function(s){return!s||typeof s!="object"}))return;a.actions=a.actions.map(function(s){return s.render!==void 0&&s.effect===void 0?Object.assign({},s,{effect:m}):s})}else{var c=t.textContent.trim();if(!c)return;a.actions=[{render:c,effect:m}]}var h=a.respectMotionPreference&&window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(h){var S=a.actions.find(function(s){return s.render!=null});S&&(t.textContent=String(S.render));return}p||(t.textContent=""),[["onStart","start"],["onComplete","complete"],["onCharacter","character"],["onRender","render"],["onUndoRender","undo"],["onLoop","loop"]].forEach(function(s){a[s[0]]=function(b,j){t.dispatchEvent(new CustomEvent("scribe:"+s[1],{bubbles:!0,detail:{value:b,index:j}}))}});var E=y.scribe(t,a);if(E&&(x(t,"controls",!1)||a.autoStart===!1)){var z=document.createElement("span");z.className="dm-scribe-controls",z.setAttribute("role","group"),z.setAttribute("aria-label","Text animation playback"),[["Play","resume"],["Pause","pause"],["Replay","restart"]].forEach(function(s){var b=document.createElement("button");b.type="button",b.className="btn btn-ghost btn-sm",b.textContent=s[0],b.addEventListener("click",function(){E[s[1]]()}),z.appendChild(b)}),t.insertAdjacentElement("afterend",z)}}),l.querySelectorAll(".dm-fx-twinkle").forEach(function(t){var e={};r(t,"count")&&(e.count=i(t,"count",100)),r(t,"shape")&&(e.shape=r(t,"shape")),r(t,"colour")&&(e.colour=r(t,"colour")),r(t,"min-size")&&(e.minSize=i(t,"min-size",1)),r(t,"max-size")&&(e.maxSize=i(t,"max-size",3)),y.twinkle(t,e)}),typeof y.tickerTape=="function"&&l.querySelectorAll(".dm-fx-ticker-tape").forEach(function(t){if(!v){var e={};r(t,"palette")&&(e.palette=r(t,"palette")),r(t,"density")&&(e.density=i(t,"density",50)),r(t,"speed")&&(e.speed=i(t,"speed",1)),r(t,"sway")&&(e.sway=i(t,"sway",60)),r(t,"rotation-speed")&&(e.rotationSpeed=i(t,"rotation-speed",6)),r(t,"min-width")&&(e.minWidth=i(t,"min-width",5)),r(t,"max-width")&&(e.maxWidth=i(t,"max-width",9)),r(t,"min-height")&&(e.minHeight=i(t,"min-height",12)),r(t,"max-height")&&(e.maxHeight=i(t,"max-height",22)),r(t,"fade-start")&&(e.fadeStart=i(t,"fade-start",.55)),r(t,"burst")&&(e.burst=x(t,"burst",!1)),r(t,"burst-count")&&(e.burstCount=i(t,"burst-count",150)),r(t,"z-index")&&(e.zIndex=i(t,"z-index",1));var n=r(t,"mode");n==="page"?y.tickerTape(null,e):y.tickerTape(t,e)}}),typeof y.butterflies=="function"&&l.querySelectorAll(".dm-fx-butterflies").forEach(function(t){if(!v){var e={};r(t,"palette")&&(e.palette=r(t,"palette")),r(t,"density")&&(e.density=i(t,"density",18)),r(t,"speed")&&(e.speed=i(t,"speed",1)),r(t,"wander")&&(e.wander=i(t,"wander",1)),r(t,"rise-speed")&&(e.riseSpeed=i(t,"rise-speed",.4)),r(t,"flap-speed")&&(e.flapSpeed=i(t,"flap-speed",1)),r(t,"min-size")&&(e.minSize=i(t,"min-size",14)),r(t,"max-size")&&(e.maxSize=i(t,"max-size",26)),r(t,"two-tone")&&(e.twoTone=x(t,"two-tone",!0)),r(t,"burst")&&(e.burst=x(t,"burst",!1)),r(t,"burst-count")&&(e.burstCount=i(t,"burst-count",40)),r(t,"z-index")&&(e.zIndex=i(t,"z-index",1));var n=r(t,"mode");n==="page"?y.butterflies(null,e):y.butterflies(t,e)}}),typeof y.strobe=="function"&&l.querySelectorAll(".dm-fx-strobe").forEach(function(t){if(v)return;function e(u){var f=r(t,u);if(!f)return null;var m=f.split(",").map(function(p){return p.trim()}).filter(Boolean);return m.length?m:null}var n={};r(t,"preset")&&(n.preset=r(t,"preset")),r(t,"motion")&&(n.motion=r(t,"motion")),r(t,"speed")&&(n.speed=i(t,"speed",1)),r(t,"sweep-arc")&&(n.sweepArc=i(t,"sweep-arc",100)),r(t,"beam-width")&&(n.beamWidth=i(t,"beam-width",16)),r(t,"intensity")&&(n.intensity=i(t,"intensity",.7)),r(t,"flicker")&&(n.flicker=x(t,"flicker",!0)),r(t,"hz")&&(n.hz=i(t,"hz",10));var a=e("origins");a&&(n.origins=a);var o=e("colours");o&&(n.colours=o),r(t,"duration")&&(n.duration=i(t,"duration",null)),r(t,"z-index")&&(n.zIndex=i(t,"z-index",9999));var d=r(t,"mode");d==="page"?y.strobe(null,n):y.strobe(t,n)}));var F=l.querySelectorAll(".dm-fx-celebrate");F.length&&import("/public/js/celebrations/index.js?v=20261015-occasions").then(function(t){var e=t.CelebrationsEffect;F.forEach(function(n){var a=r(n,"character");if(a){if(n.querySelector("canvas"))return;t.mountCharacter(n,{character:a,size:r(n,"size")||"medium",facing:r(n,"facing")||"right",animate:!v&&x(n,"animate",!0)}).then(function(c){var h=new MutationObserver(function(){n.isConnected||(c.destroy(),h.disconnect())});n.isConnected?h.observe(document.body,{childList:!0,subtree:!0}):c.destroy()}).catch(function(c){console.error("[celebrate]",c)});return}if(!v){var o=n.getAttribute("data-fx-theme")||"auto";o==="auto"&&r(n,"message")&&(o="greeting");var d=n.getAttribute("data-fx-intensity")||"medium",u=n.getAttribute("data-fx-z-index")?parseInt(n.getAttribute("data-fx-z-index"),10):999;if(!(o==="auto"&&(o=e.getCurrentTheme(),!o))){var f={},m=["data-fx-theme","data-fx-intensity","data-fx-z-index"];if(Array.from(n.attributes).forEach(function(c){c.name.startsWith("data-fx-")&&!m.includes(c.name)&&(f[c.name.slice(8)]=c.value)}),o==="make-it-rain"||o==="money-rain"){t[o==="money-rain"?"moneyRain":"makeItRain"]({intensity:d,zIndex:u,overrides:f,duration:i(n,"duration",8e3)}).catch(function(c){console.error("[make-it-rain]",c)});return}var p=new e({theme:o,intensity:d,enabled:!0,zIndex:u,overrides:f});p.init().then(function(){p.start()})}}})}).catch(function(){})}).catch(function(){})})();
|
package/server/server.js
CHANGED
|
@@ -757,6 +757,11 @@ registerSidebarItem({folder: 'Usage', item: {source: 'Built in', text: 'Search E
|
|
|
757
757
|
registerSidebarItem({folder: 'Usage', item: {source: 'Built in', text: 'Launchers', url: '#/docs/usage/launchers', icon: 'rocket'}});
|
|
758
758
|
registerSidebarItem({folder: 'Usage', item: {source: 'Built in', text: 'Chat & Knowledge', url: '#/docs/usage/chat', icon: 'message-circle'}});
|
|
759
759
|
registerSidebarItem({folder: 'Usage', item: {source: 'Built in', text: 'Editions & Licences', url: '#/docs/usage/editions', icon: 'key'}});
|
|
760
|
+
registerSidebarItem({folder: 'Usage', item: {source: 'Built in', text: 'Layout shortcodes', url: '#/docs/usage/shortcodes-layout', icon: 'layout'}});
|
|
761
|
+
registerSidebarItem({folder: 'Usage', item: {source: 'Built in', text: 'Component shortcodes', url: '#/docs/usage/shortcodes-components', icon: 'layers'}});
|
|
762
|
+
registerSidebarItem({folder: 'Usage', item: {source: 'Built in', text: 'Content shortcodes', url: '#/docs/usage/shortcodes-content', icon: 'type'}});
|
|
763
|
+
registerSidebarItem({folder: 'Usage', item: {source: 'Built in', text: 'Data shortcodes', url: '#/docs/usage/shortcodes-data', icon: 'database'}});
|
|
764
|
+
registerSidebarItem({folder: 'Usage', item: {source: 'Built in', text: 'Effect shortcodes', url: '#/docs/usage/shortcodes-effects', icon: 'sparkles'}});
|
|
760
765
|
registerSidebarItem({folder: 'API Reference', item: {source: 'Built in', text: 'Forms', url: '#/docs/api/forms', icon: 'layout'}});
|
|
761
766
|
registerSidebarItem({folder: 'API Reference', item: {source: 'Built in', text: 'Scaffold', url: '#/docs/api/scaffold', icon: 'package'}});
|
|
762
767
|
registerSidebarItem({folder: 'API Reference', item: {source: 'Built in', text: 'External API & Tokens', url: '#/docs/api/external', icon: 'key'}});
|
package/server/services/docs.js
CHANGED
|
@@ -51,6 +51,11 @@ const MAP = [
|
|
|
51
51
|
['usage-navigation', 'usage/navigation', 'Navigation'],
|
|
52
52
|
['usage-dconfig', 'usage/dconfig', 'DConfig'],
|
|
53
53
|
['usage-shortcodes', 'usage/shortcodes', 'Shortcodes'],
|
|
54
|
+
['usage-shortcodes-layout', 'usage/shortcodes-layout', 'Layout shortcodes'],
|
|
55
|
+
['usage-shortcodes-components', 'usage/shortcodes-components', 'Component shortcodes'],
|
|
56
|
+
['usage-shortcodes-content', 'usage/shortcodes-content', 'Content shortcodes'],
|
|
57
|
+
['usage-shortcodes-data', 'usage/shortcodes-data', 'Data shortcodes'],
|
|
58
|
+
['usage-shortcodes-effects', 'usage/shortcodes-effects', 'Effect shortcodes'],
|
|
54
59
|
['usage-site-settings', 'usage/site-settings', 'Site Settings'],
|
|
55
60
|
['usage-plugins', 'usage/plugins', 'Plugins'],
|
|
56
61
|
['usage-users-roles', 'usage/users-roles', 'Users & Roles'],
|
|
@@ -2406,26 +2406,13 @@ function processEffectsBlocks(markdown) {
|
|
|
2406
2406
|
});
|
|
2407
2407
|
}
|
|
2408
2408
|
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
if (attrs.repeat) classes.push(`animate-${classToken(attrs.repeat)}`);
|
|
2417
|
-
return `<div class="${classes.join(' ')}">${markedBody(processCardBlocks(processGridBlocks(processInlineShortcodes(restore(body.trim())))))}</div>\n`;
|
|
2418
|
-
});
|
|
2419
|
-
|
|
2420
|
-
apply('ambient', (attrStr, body) => {
|
|
2421
|
-
if (body === null) return '';
|
|
2422
|
-
const attrs = parseShortcodeAttrs(attrStr);
|
|
2423
|
-
const classes = [];
|
|
2424
|
-
if (attrs.type) classes.push(`bg-ambient-${classToken(attrs.type)}`);
|
|
2425
|
-
if (attrs.speed) classes.push(`bg-ambient-${classToken(attrs.speed)}`);
|
|
2426
|
-
if (attrs.intensity) classes.push(`bg-ambient-${classToken(attrs.intensity)}`);
|
|
2427
|
-
return `<div class="${classes.join(' ')}">${markedBody(processCardBlocks(processGridBlocks(processInlineShortcodes(restore(body.trim())))))}</div>\n`;
|
|
2428
|
-
});
|
|
2409
|
+
for (const name of ['animate', 'ambient']) {
|
|
2410
|
+
apply(name, (attrStr, body) => {
|
|
2411
|
+
if (body === null) return '';
|
|
2412
|
+
const classes = CSS_EFFECT_CLASSES[name](parseShortcodeAttrs(attrStr), '');
|
|
2413
|
+
return `<div class="${classes.join(' ')}">${markedBody(processCardBlocks(processGridBlocks(processInlineShortcodes(restore(body.trim())))))}</div>\n`;
|
|
2414
|
+
});
|
|
2415
|
+
}
|
|
2429
2416
|
|
|
2430
2417
|
return restore(result);
|
|
2431
2418
|
}
|
|
@@ -2649,6 +2636,31 @@ export function escapeAttr(str) {
|
|
|
2649
2636
|
.replace(/>/g, '>');
|
|
2650
2637
|
}
|
|
2651
2638
|
|
|
2639
|
+
/**
|
|
2640
|
+
* The classes for the two CSS-only effects, shared by the [animate] / [ambient]
|
|
2641
|
+
* tags and by the same effects written as switches on a host tag. As a switch
|
|
2642
|
+
* with no type, each falls back to a default so the bare word does something.
|
|
2643
|
+
*/
|
|
2644
|
+
const CSS_EFFECT_CLASSES = {
|
|
2645
|
+
animate({type, duration, delay, repeat} = {}, fallback = 'fade-in') {
|
|
2646
|
+
const classes = [];
|
|
2647
|
+
const kind = classToken(type === true ? '' : type) || fallback;
|
|
2648
|
+
if (kind) classes.push(`animate-${kind}`);
|
|
2649
|
+
if (duration) classes.push(`animate-duration-${classToken(duration)}`);
|
|
2650
|
+
if (delay) classes.push(`animate-delay-${classToken(delay)}`);
|
|
2651
|
+
if (repeat) classes.push(`animate-${classToken(repeat)}`);
|
|
2652
|
+
return classes;
|
|
2653
|
+
},
|
|
2654
|
+
ambient({type, speed, intensity} = {}, fallback = 'aurora') {
|
|
2655
|
+
const classes = [];
|
|
2656
|
+
const kind = classToken(type === true ? '' : type) || fallback;
|
|
2657
|
+
if (kind) classes.push(`bg-ambient-${kind}`);
|
|
2658
|
+
if (speed) classes.push(`bg-ambient-${classToken(speed)}`);
|
|
2659
|
+
if (intensity) classes.push(`bg-ambient-${classToken(intensity)}`);
|
|
2660
|
+
return classes;
|
|
2661
|
+
},
|
|
2662
|
+
};
|
|
2663
|
+
|
|
2652
2664
|
/**
|
|
2653
2665
|
* Extract injected-effect flag attributes from a parsed shortcode attrs object.
|
|
2654
2666
|
*
|
|
@@ -2671,16 +2683,29 @@ export function extractInjectedEffects(attrs, allowed) {
|
|
|
2671
2683
|
|
|
2672
2684
|
for (const effect of allowed) {
|
|
2673
2685
|
if (!(effect in attrs)) continue;
|
|
2674
|
-
effectClasses.push(`dm-fx-${effect}`);
|
|
2675
2686
|
consumedKeys.add(effect);
|
|
2676
2687
|
|
|
2677
2688
|
const prefix = `${effect}-`;
|
|
2689
|
+
const params = {};
|
|
2678
2690
|
for (const key of Object.keys(attrs)) {
|
|
2679
2691
|
if (!key.startsWith(prefix)) continue;
|
|
2680
|
-
|
|
2681
|
-
dataAttrParts.push(` data-fx-${param}="${escapeAttr(String(attrs[key]))}"`);
|
|
2692
|
+
params[key.slice(prefix.length)] = attrs[key];
|
|
2682
2693
|
consumedKeys.add(key);
|
|
2683
2694
|
}
|
|
2695
|
+
|
|
2696
|
+
// animate and ambient are CSS only: nothing in the browser reads a
|
|
2697
|
+
// dm-fx-* class for them, so the switch emits the same classes the
|
|
2698
|
+
// [animate] / [ambient] tags do.
|
|
2699
|
+
const cssClasses = CSS_EFFECT_CLASSES[effect];
|
|
2700
|
+
if (cssClasses) {
|
|
2701
|
+
effectClasses.push(...cssClasses(params));
|
|
2702
|
+
continue;
|
|
2703
|
+
}
|
|
2704
|
+
|
|
2705
|
+
effectClasses.push(`dm-fx-${effect}`);
|
|
2706
|
+
for (const [param, value] of Object.entries(params)) {
|
|
2707
|
+
dataAttrParts.push(` data-fx-${param}="${escapeAttr(String(value))}"`);
|
|
2708
|
+
}
|
|
2684
2709
|
}
|
|
2685
2710
|
|
|
2686
2711
|
return {
|
|
@@ -3595,9 +3620,13 @@ function processCardBlocks(markdown) {
|
|
|
3595
3620
|
* [/tabs]
|
|
3596
3621
|
*
|
|
3597
3622
|
* Supported attributes on [tabs]:
|
|
3598
|
-
* style - "pills" for pill-style nav
|
|
3623
|
+
* style - "pills" for pill-style nav, "bordered" for a box around the tabs
|
|
3624
|
+
* and their panel (default: standard underline)
|
|
3625
|
+
* align - "center" or "right" (default: left)
|
|
3599
3626
|
* id - optional id on the wrapper
|
|
3600
3627
|
*
|
|
3628
|
+
* Panels always fade in: Domma's tabs do it themselves, so there is no switch.
|
|
3629
|
+
*
|
|
3601
3630
|
* @param {string} markdown
|
|
3602
3631
|
* @returns {string}
|
|
3603
3632
|
*/
|
|
@@ -3612,7 +3641,6 @@ function processTabsBlocks(markdown) {
|
|
|
3612
3641
|
const attrs = parseShortcodeAttrs(attrStr);
|
|
3613
3642
|
const pillsClass = attrs.style === 'pills' ? ' tabs-pills' : '';
|
|
3614
3643
|
const borderedClass = attrs.style === 'bordered' ? ' tabs--bordered' : '';
|
|
3615
|
-
const fadeClass = 'fade' in attrs ? ' tabs--fade' : '';
|
|
3616
3644
|
const centeredClass = attrs.align === 'center' ? ' tabs-centered' : '';
|
|
3617
3645
|
const rightClass = attrs.align === 'right' ? ' tabs--right' : '';
|
|
3618
3646
|
const idAttr = attrs.id ? ` id="${escapeAttr(attrs.id)}"` : '';
|
|
@@ -3645,7 +3673,7 @@ function processTabsBlocks(markdown) {
|
|
|
3645
3673
|
).join('\n ');
|
|
3646
3674
|
|
|
3647
3675
|
return (
|
|
3648
|
-
`<div class="tabs${pillsClass}${borderedClass}${
|
|
3676
|
+
`<div class="tabs${pillsClass}${borderedClass}${centeredClass}${rightClass}"${idAttr}>\n` +
|
|
3649
3677
|
` <div class="tab-list">\n ${navItems}\n </div>\n` +
|
|
3650
3678
|
` <div class="tab-content">\n ${panes}\n </div>\n` +
|
|
3651
3679
|
`</div>\n`
|
|
@@ -5104,6 +5132,31 @@ function processHeroBlocks(markdown) {
|
|
|
5104
5132
|
* @param {string} markdown
|
|
5105
5133
|
* @returns {string}
|
|
5106
5134
|
*/
|
|
5135
|
+
/**
|
|
5136
|
+
* Put every [banner …] opening tag's attributes aside before the containers run.
|
|
5137
|
+
*
|
|
5138
|
+
* [banner] is expanded late, after cards, grids, tabs and accordions have run
|
|
5139
|
+
* Markdown over their bodies - which turns the tag's quotes into entities,
|
|
5140
|
+
* links a URL in a title and so on, so a banner inside one lost its type, title
|
|
5141
|
+
* and icon. The attributes are swapped for a token only this render knows and
|
|
5142
|
+
* given back in processBannerBlocks. Entry data cannot forge one: its brackets
|
|
5143
|
+
* are inert at this point, and the token carries a per-render nonce.
|
|
5144
|
+
*
|
|
5145
|
+
* @param {string} markdown
|
|
5146
|
+
* @returns {{text: string, held: Map<string, string>}}
|
|
5147
|
+
*/
|
|
5148
|
+
function holdBannerTags(markdown) {
|
|
5149
|
+
const held = new Map();
|
|
5150
|
+
if (!/\[banner/i.test(markdown)) return {text: markdown, held};
|
|
5151
|
+
const nonce = randomUUID();
|
|
5152
|
+
const text = markdown.replace(/\[banner([^\]]*)\]/gi, (_, attrStr) => {
|
|
5153
|
+
const token = `dmb-${nonce}-${held.size}`;
|
|
5154
|
+
held.set(token, attrStr);
|
|
5155
|
+
return `[banner ${token}]`;
|
|
5156
|
+
});
|
|
5157
|
+
return {text, held};
|
|
5158
|
+
}
|
|
5159
|
+
|
|
5107
5160
|
/**
|
|
5108
5161
|
* Pre-process [banner] shortcodes before running through marked.
|
|
5109
5162
|
*
|
|
@@ -5122,10 +5175,26 @@ function processHeroBlocks(markdown) {
|
|
|
5122
5175
|
* @param {string} markdown
|
|
5123
5176
|
* @returns {string}
|
|
5124
5177
|
*/
|
|
5125
|
-
function processBannerBlocks(markdown) {
|
|
5178
|
+
function processBannerBlocks(markdown, held = null) {
|
|
5126
5179
|
return markdown.replace(
|
|
5127
|
-
|
|
5128
|
-
(_,
|
|
5180
|
+
/(<p>)?\[banner([^\]]*)\]([\s\S]*?)\[\/banner\](<\/p>)?/gi,
|
|
5181
|
+
(_, openP, rawAttrStr, rawBody, closeP) => {
|
|
5182
|
+
// A tag the author wrote carries a held token (holdBannerTags), so its
|
|
5183
|
+
// attributes are exactly as written whatever a container did to its
|
|
5184
|
+
// body. Only such a tag has the <p> a container wrapped it in removed.
|
|
5185
|
+
// Any other [banner] is read as it always was - never entity-decoded,
|
|
5186
|
+
// because the quotes in entry data reach here as entities.
|
|
5187
|
+
const token = rawAttrStr.trim();
|
|
5188
|
+
const authored = !!held && held.has(token);
|
|
5189
|
+
const attrStr = authored ? held.get(token) : rawAttrStr;
|
|
5190
|
+
const wrapped = authored && !!(openP && closeP);
|
|
5191
|
+
let body = rawBody;
|
|
5192
|
+
if (wrapped) {
|
|
5193
|
+
const inner = body.trim();
|
|
5194
|
+
if (inner.startsWith('</p>') && inner.endsWith('<p>')) body = inner.slice(4, -3);
|
|
5195
|
+
}
|
|
5196
|
+
const before = wrapped ? '' : (openP || '');
|
|
5197
|
+
const after = wrapped ? '' : (closeP || '');
|
|
5129
5198
|
const attrs = parseShortcodeAttrs(attrStr);
|
|
5130
5199
|
const BANNER_INJECTABLE = ['reveal', 'pulse', 'shake', 'ambient', 'animate'];
|
|
5131
5200
|
const injected = extractInjectedEffects(attrs, BANNER_INJECTABLE);
|
|
@@ -5137,7 +5206,7 @@ function processBannerBlocks(markdown) {
|
|
|
5137
5206
|
const extraClass = attrs.class || '';
|
|
5138
5207
|
|
|
5139
5208
|
const classes = [`dm-banner`, `dm-banner--${classToken(type)}`];
|
|
5140
|
-
if (extraClass) classes.push(extraClass);
|
|
5209
|
+
if (extraClass) classes.push(escapeAttr(extraClass));
|
|
5141
5210
|
classes.push(...injected.effectClasses);
|
|
5142
5211
|
|
|
5143
5212
|
const iconHtml = icon
|
|
@@ -5152,11 +5221,11 @@ function processBannerBlocks(markdown) {
|
|
|
5152
5221
|
: '';
|
|
5153
5222
|
|
|
5154
5223
|
return (
|
|
5155
|
-
|
|
5224
|
+
`${before}<div class="${classes.join(' ')}"${injected.effectDataAttrs}>\n` +
|
|
5156
5225
|
` ${iconHtml}<div class="dm-banner__body">\n` +
|
|
5157
5226
|
` ${titleHtml}${bodyHtml}` +
|
|
5158
5227
|
` </div>${dismissHtml}\n` +
|
|
5159
|
-
`</div>\n`
|
|
5228
|
+
`</div>\n${after}`
|
|
5160
5229
|
);
|
|
5161
5230
|
}
|
|
5162
5231
|
);
|
|
@@ -5529,7 +5598,8 @@ export async function parseMarkdown(raw, opts = {}) {
|
|
|
5529
5598
|
: {};
|
|
5530
5599
|
const withMenu = await processMenuBlocks(withStaticBlock, opts.user || null, menuCtx);
|
|
5531
5600
|
const withDconfig = processDConfigBlocks(withMenu);
|
|
5532
|
-
const
|
|
5601
|
+
const banners = holdBannerTags(withDconfig);
|
|
5602
|
+
const withEffects = processEffectsBlocks(banners.text);
|
|
5533
5603
|
const withPluginShortcodes = await processPluginShortcodes(withEffects, opts.user || null);
|
|
5534
5604
|
const withTabs = processTabsBlocks(withPluginShortcodes);
|
|
5535
5605
|
const withAccordion = processAccordionBlocks(withTabs);
|
|
@@ -5554,7 +5624,7 @@ export async function parseMarkdown(raw, opts = {}) {
|
|
|
5554
5624
|
const withCta = processCtaBlocks(withLink);
|
|
5555
5625
|
const withGrid = processGridBlocks(withCta);
|
|
5556
5626
|
const withCard = processCardBlocks(withGrid);
|
|
5557
|
-
const withBanner = processBannerBlocks(withCard);
|
|
5627
|
+
const withBanner = processBannerBlocks(withCard, banners.held);
|
|
5558
5628
|
const withSlideover = processSlideoverBlocks(withBanner);
|
|
5559
5629
|
const rendered = slots.restore(marked.parse(withSlideover));
|
|
5560
5630
|
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<link rel="stylesheet" href="/dist/domma/themes/domma-themes.css">
|
|
26
26
|
|
|
27
27
|
<!-- Site CSS -->
|
|
28
|
-
<link rel="stylesheet" href="/public/css/site.css?v=
|
|
28
|
+
<link rel="stylesheet" href="/public/css/site.css?v=20261115-tabs-bordered">
|
|
29
29
|
<link rel="stylesheet" href="/public/css/forms.css?v=20261031-forms-reduce-motion">
|
|
30
30
|
<!-- Menu item hover / current-page effects. Loaded after site.css so a
|
|
31
31
|
menu's own highlight wins over the blanket link styling there. -->
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
visitor's browser asked about both on every page. -->
|
|
202
202
|
|
|
203
203
|
<!-- Core effects runtime -->
|
|
204
|
-
<script src="/public/js/effects.js?v=
|
|
204
|
+
<script src="/public/js/effects.js?v=20261115-scramble-loop" defer></script>
|
|
205
205
|
|
|
206
206
|
<!-- Plugin body-end injection -->
|
|
207
207
|
{{bodyEndInject}}
|