@syntrologie/runtime-sdk 2.8.0-canary.135 → 2.8.0-canary.137

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.
@@ -31,8 +31,8 @@ import {
31
31
  WaitZ,
32
32
  WidgetConfigZ,
33
33
  coreActionStepSchemas
34
- } from "../chunk-IK3HDTZ2.js";
35
- import "../chunk-PAD665LL.js";
34
+ } from "../chunk-NVSX6GGM.js";
35
+ import "../chunk-YBZ66SNB.js";
36
36
  import "../chunk-4HXPGXUC.js";
37
37
  import "../chunk-JMHRHAEL.js";
38
38
  export {
@@ -24,7 +24,7 @@
24
24
  `):a.map((h,p)=>R(this,b,Na).call(this,h,p,a.length))}
25
25
  </div>
26
26
  </div>
27
- `}};we=new WeakMap,ye=new WeakMap,b=new WeakSet,Oa=function(){this.runtime&&(ve(this,we,this.runtime.context.subscribe(()=>{this._renderTick+=1})),this.runtime.accumulator?.subscribe&&ve(this,ye,this.runtime.accumulator.subscribe(()=>{this._renderTick+=1})))},$a=function(){var a,o;(a=la(this,we))==null||a.call(this),ve(this,we,null),(o=la(this,ye))==null||o.call(this),ve(this,ye,null)},Ut=function(){return this._renderTick,this.runtime?this.config.actions.filter(a=>{if(!a.triggerWhen)return!0;try{return this.runtime.evaluateSync(a.triggerWhen).value}catch{return!1}}):this.config.actions},Ua=function(){return Dr(this.config.theme)},Nt=function(a){let o=this._expandedIds.has(a),s;if(this.config.expandBehavior==="single"){for(let l of this._expandedIds)l!==a&&R(this,b,$e).call(this,"nav:toggled",{tipId:l,expanded:!1});s=o?new Set:new Set([a])}else s=new Set(this._expandedIds),o?s.delete(a):s.add(a);R(this,b,$e).call(this,"nav:toggled",{tipId:a,expanded:!o}),this._expandedIds=s},Gt=function(a,o){let s=a.trim().toLowerCase();if(!(s.startsWith("javascript:")||s.startsWith("data:")))if(R(this,b,$e).call(this,"nav:tip_clicked",{href:a,external:o}),this.dispatchEvent(new CustomEvent("nav-tip-clicked",{bubbles:!0,detail:{href:a,external:o,instanceId:this.instanceId}})),o)window.open(a,"_blank","noopener,noreferrer");else{let l=new URL(a,window.location.origin);l.search=window.location.search,Me(l.toString())||(window.history.pushState(null,"",l.toString()),window.dispatchEvent(new PopStateEvent("popstate")))}},Wt=function(a){let o=document.querySelector(a.selector);o instanceof HTMLElement&&(R(this,b,$e).call(this,"nav:tip_focused",{selector:a.selector,route:a.route}),this.dispatchEvent(new CustomEvent("nav-tip-focused",{bubbles:!0,detail:{selector:a.selector,instanceId:this.instanceId}})),o.scrollIntoView({behavior:"smooth",block:"center"}),Mr(o),setTimeout(()=>o.focus(),400))},$e=function(a,o){this.runtime?.events.publish(a,{instanceId:this.instanceId,timestamp:Date.now(),...o})},Na=function(a,o,s){let{id:l,title:d,description:f,href:c,icon:m,external:h,anchor:p,category:y}=a.config,L=this._expandedIds.has(l),k=o===s-1,v=this._hoveredId===l,Z=R(this,b,Ua).call(this),U=p?Array.isArray(p.route)?p.route[0]:p.route:c,g=p?$t(Array.isArray(p.route)?p.route:[p.route]):U?$t([U]):!1,I=p?.selector&&p.selector!=="*",w=g&&I,q=!!U||w,ee=w?"Focus \u2192":h?"Go \u2197":"Go \u2192",J=G({borderRadius:"var(--sc-content-border-radius, 8px)",overflow:"hidden",transition:"box-shadow 0.2s ease",backgroundColor:"var(--sc-content-background)",border:"var(--sc-content-border)",...L?{boxShadow:Z==="dark"?"0 4px 12px rgba(0, 0, 0, 0.15)":"0 4px 12px rgba(0, 0, 0, 0.08)"}:{},...k?{}:{borderBottom:"var(--sc-content-item-divider, none)"}}),ce=G({display:"flex",alignItems:"center",gap:"8px",width:"100%",padding:"var(--sc-content-item-padding, 12px 16px)",border:"none",cursor:"pointer",fontSize:"var(--sc-content-item-font-size, 15px)",fontWeight:"500",fontFamily:"inherit",textAlign:"left",transition:"background-color 0.15s ease",backgroundColor:v?"var(--sc-content-background-hover)":"transparent",color:"var(--sc-content-text-color)"}),pe=G({fontSize:"20px",transition:"transform 0.2s ease",marginLeft:"auto",flexShrink:"0",color:"var(--sc-content-chevron-color, currentColor)",transform:L?"rotate(90deg)":"rotate(0deg)"}),Ue=G({overflow:"hidden",transition:"max-height 0.25s ease, padding-bottom 0.25s ease",padding:"var(--sc-content-body-padding, 0 16px 12px 16px)",color:"var(--sc-content-text-secondary-color)",maxHeight:L?"500px":"0",paddingBottom:L?"16px":"0"}),W=G({fontSize:"var(--sc-content-body-font-size, 14px)",lineHeight:"1.5",margin:"0"}),Wa=G({display:"inline-flex",alignItems:"center",gap:"4px",marginTop:"10px",padding:"6px 12px",borderRadius:"6px",textDecoration:"none",fontSize:"13px",fontWeight:"500",cursor:"pointer",border:"none",transition:"background-color 0.15s ease",backgroundColor:`var(--sc-color-primary, ${vr})`,color:"#ffffff"}),oa=G({fontSize:"16px",flexShrink:"0"}),ra=Ne=>{Ne.preventDefault(),Ne.stopPropagation(),w&&p?R(this,b,Wt).call(this,p):U&&R(this,b,Gt).call(this,U,h??!1)};return re`
27
+ `}};we=new WeakMap,ye=new WeakMap,b=new WeakSet,Oa=function(){this.runtime&&(ve(this,we,this.runtime.context.subscribe(()=>{this._renderTick+=1})),this.runtime.accumulator?.subscribe&&ve(this,ye,this.runtime.accumulator.subscribe(()=>{this._renderTick+=1})))},$a=function(){var a,o;(a=la(this,we))==null||a.call(this),ve(this,we,null),(o=la(this,ye))==null||o.call(this),ve(this,ye,null)},Ut=function(){return this._renderTick,this.runtime?this.config.actions.filter(a=>{if(!a.triggerWhen)return!0;try{return this.runtime.evaluateSync(a.triggerWhen).value}catch{return!1}}):this.config.actions},Ua=function(){return Dr(this.config.theme)},Nt=function(a){let o=this._expandedIds.has(a),s;if(this.config.expandBehavior==="single"){for(let l of this._expandedIds)l!==a&&R(this,b,$e).call(this,"nav:toggled",{tipId:l,expanded:!1});s=o?new Set:new Set([a])}else s=new Set(this._expandedIds),o?s.delete(a):s.add(a);R(this,b,$e).call(this,"nav:toggled",{tipId:a,expanded:!o}),this._expandedIds=s},Gt=function(a,o){let s=a.trim().toLowerCase();if(s.startsWith("javascript:")||s.startsWith("data:"))return;if(R(this,b,$e).call(this,"nav:tip_clicked",{href:a,external:o}),this.dispatchEvent(new CustomEvent("nav-tip-clicked",{bubbles:!0,detail:{href:a,external:o,instanceId:this.instanceId}})),o){window.open(a,"_blank","noopener,noreferrer");return}let l;try{l=new URL(a,window.location.origin)}catch{window.location.href=a;return}if(window.location.origin==="null"||l.origin!==window.location.origin){window.location.href=l.toString();return}l.search=window.location.search,Me(l.toString())||(window.history.pushState(null,"",l.toString()),window.dispatchEvent(new PopStateEvent("popstate")))},Wt=function(a){let o=document.querySelector(a.selector);o instanceof HTMLElement&&(R(this,b,$e).call(this,"nav:tip_focused",{selector:a.selector,route:a.route}),this.dispatchEvent(new CustomEvent("nav-tip-focused",{bubbles:!0,detail:{selector:a.selector,instanceId:this.instanceId}})),o.scrollIntoView({behavior:"smooth",block:"center"}),Mr(o),setTimeout(()=>o.focus(),400))},$e=function(a,o){this.runtime?.events.publish(a,{instanceId:this.instanceId,timestamp:Date.now(),...o})},Na=function(a,o,s){let{id:l,title:d,description:f,href:c,icon:m,external:h,anchor:p,category:y}=a.config,L=this._expandedIds.has(l),k=o===s-1,v=this._hoveredId===l,Z=R(this,b,Ua).call(this),U=p?Array.isArray(p.route)?p.route[0]:p.route:c,g=p?$t(Array.isArray(p.route)?p.route:[p.route]):U?$t([U]):!1,I=p?.selector&&p.selector!=="*",w=g&&I,q=!!U||w,ee=w?"Focus \u2192":h?"Go \u2197":"Go \u2192",J=G({borderRadius:"var(--sc-content-border-radius, 8px)",overflow:"hidden",transition:"box-shadow 0.2s ease",backgroundColor:"var(--sc-content-background)",border:"var(--sc-content-border)",...L?{boxShadow:Z==="dark"?"0 4px 12px rgba(0, 0, 0, 0.15)":"0 4px 12px rgba(0, 0, 0, 0.08)"}:{},...k?{}:{borderBottom:"var(--sc-content-item-divider, none)"}}),ce=G({display:"flex",alignItems:"center",gap:"8px",width:"100%",padding:"var(--sc-content-item-padding, 12px 16px)",border:"none",cursor:"pointer",fontSize:"var(--sc-content-item-font-size, 15px)",fontWeight:"500",fontFamily:"inherit",textAlign:"left",transition:"background-color 0.15s ease",backgroundColor:v?"var(--sc-content-background-hover)":"transparent",color:"var(--sc-content-text-color)"}),pe=G({fontSize:"20px",transition:"transform 0.2s ease",marginLeft:"auto",flexShrink:"0",color:"var(--sc-content-chevron-color, currentColor)",transform:L?"rotate(90deg)":"rotate(0deg)"}),Ue=G({overflow:"hidden",transition:"max-height 0.25s ease, padding-bottom 0.25s ease",padding:"var(--sc-content-body-padding, 0 16px 12px 16px)",color:"var(--sc-content-text-secondary-color)",maxHeight:L?"500px":"0",paddingBottom:L?"16px":"0"}),W=G({fontSize:"var(--sc-content-body-font-size, 14px)",lineHeight:"1.5",margin:"0"}),Wa=G({display:"inline-flex",alignItems:"center",gap:"4px",marginTop:"10px",padding:"6px 12px",borderRadius:"6px",textDecoration:"none",fontSize:"13px",fontWeight:"500",cursor:"pointer",border:"none",transition:"background-color 0.15s ease",backgroundColor:`var(--sc-color-primary, ${vr})`,color:"#ffffff"}),oa=G({fontSize:"16px",flexShrink:"0"}),ra=Ne=>{Ne.preventDefault(),Ne.stopPropagation(),w&&p?R(this,b,Wt).call(this,p):U&&R(this,b,Gt).call(this,U,h??!1)};return re`
28
28
  <div
29
29
  style=${J}
30
30
  data-nav-tip-id=${l}