@inkandswitch/patchwork-pkg-base 0.0.103 → 0.0.105
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/module-settings-url +1 -1
- package/package.json +1 -1
- package/packages/patternwitch/tool.js +179 -68
- package/packages/threepane/dist/IsolatedDocumentArea-7EWDRVFG.js +2 -0
- package/packages/threepane/dist/{PatchworkFrame-UNWWAISP.js → PatchworkFrame-BGA6G6TI.js} +2 -2
- package/packages/threepane/dist/chunk-LNR6ATYD.js +1210 -0
- package/packages/threepane/dist/{chunk-MSZ7JVNB.js.map → chunk-LNR6ATYD.js.map} +4 -4
- package/packages/threepane/dist/index.js +1 -1
- package/plugin-registry-url +1 -1
- package/packages/threepane/dist/IsolatedDocumentArea-IZWZ74TV.js +0 -2
- package/packages/threepane/dist/chunk-MSZ7JVNB.js +0 -841
- /package/packages/threepane/dist/{IsolatedDocumentArea-IZWZ74TV.js.map → IsolatedDocumentArea-7EWDRVFG.js.map} +0 -0
- /package/packages/threepane/dist/{PatchworkFrame-UNWWAISP.js.map → PatchworkFrame-BGA6G6TI.js.map} +0 -0
|
@@ -1,841 +0,0 @@
|
|
|
1
|
-
import{a as ne,b as vt}from"./chunk-FW4363Y4.js";var $e=ne((Xo,Se)=>{var E=1e3,T=E*60,D=T*60,k=D*24,Ut=k*7,jt=k*365.25;Se.exports=function(e,r){r=r||{};var t=typeof e;if(t==="string"&&e.length>0)return Nt(e);if(t==="number"&&isFinite(e))return r.long?Ht(e):Wt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Nt(e){if(e=String(e),!(e.length>100)){var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(r){var t=parseFloat(r[1]),o=(r[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return t*jt;case"weeks":case"week":case"w":return t*Ut;case"days":case"day":case"d":return t*k;case"hours":case"hour":case"hrs":case"hr":case"h":return t*D;case"minutes":case"minute":case"mins":case"min":case"m":return t*T;case"seconds":case"second":case"secs":case"sec":case"s":return t*E;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function Wt(e){var r=Math.abs(e);return r>=k?Math.round(e/k)+"d":r>=D?Math.round(e/D)+"h":r>=T?Math.round(e/T)+"m":r>=E?Math.round(e/E)+"s":e+"ms"}function Ht(e){var r=Math.abs(e);return r>=k?B(e,r,k,"day"):r>=D?B(e,r,D,"hour"):r>=T?B(e,r,T,"minute"):r>=E?B(e,r,E,"second"):e+" ms"}function B(e,r,t,o){var n=r>=t*1.5;return Math.round(e/t)+" "+o+(n?"s":"")}});var Te=ne((Ko,Ee)=>{function Bt(e){t.debug=t,t.default=t,t.coerce=m,t.disable=a,t.enable=n,t.enabled=p,t.humanize=$e(),t.destroy=u,Object.keys(e).forEach(s=>{t[s]=e[s]}),t.names=[],t.skips=[],t.formatters={};function r(s){let l=0;for(let h=0;h<s.length;h++)l=(l<<5)-l+s.charCodeAt(h),l|=0;return t.colors[Math.abs(l)%t.colors.length]}t.selectColor=r;function t(s){let l,h=null,g,b;function c(...d){if(!c.enabled)return;let f=c,v=Number(new Date),y=v-(l||v);f.diff=y,f.prev=l,f.curr=v,l=v,d[0]=t.coerce(d[0]),typeof d[0]!="string"&&d.unshift("%O");let x=0;d[0]=d[0].replace(/%([a-zA-Z%])/g,(oe,gt)=>{if(oe==="%%")return"%";x++;let me=t.formatters[gt];if(typeof me=="function"){let bt=d[x];oe=me.call(f,bt),d.splice(x,1),x--}return oe}),t.formatArgs.call(f,d),(f.log||t.log).apply(f,d)}return c.namespace=s,c.useColors=t.useColors(),c.color=t.selectColor(s),c.extend=o,c.destroy=t.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(g!==t.namespaces&&(g=t.namespaces,b=t.enabled(s)),b),set:d=>{h=d}}),typeof t.init=="function"&&t.init(c),c}function o(s,l){let h=t(this.namespace+(typeof l>"u"?":":l)+s);return h.log=this.log,h}function n(s){t.save(s),t.namespaces=s,t.names=[],t.skips=[];let l=(typeof s=="string"?s:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let h of l)h[0]==="-"?t.skips.push(h.slice(1)):t.names.push(h)}function i(s,l){let h=0,g=0,b=-1,c=0;for(;h<s.length;)if(g<l.length&&(l[g]===s[h]||l[g]==="*"))l[g]==="*"?(b=g,c=h,g++):(h++,g++);else if(b!==-1)g=b+1,c++,h=c;else return!1;for(;g<l.length&&l[g]==="*";)g++;return g===l.length}function a(){let s=[...t.names,...t.skips.map(l=>"-"+l)].join(",");return t.enable(""),s}function p(s){for(let l of t.skips)if(i(s,l))return!1;for(let l of t.names)if(i(s,l))return!0;return!1}function m(s){return s instanceof Error?s.stack||s.message:s}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t.enable(t.load()),t}Ee.exports=Bt});var De=ne((w,q)=>{w.formatArgs=Vt;w.save=Jt;w.load=Yt;w.useColors=qt;w.storage=Xt();w.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();w.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function qt(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Vt(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+q.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;e.splice(1,0,r,"color: inherit");let t=0,o=0;e[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(t++,n==="%c"&&(o=t))}),e.splice(o,0,r)}w.log=console.debug||console.log||(()=>{});function Jt(e){try{e?w.storage.setItem("debug",e):w.storage.removeItem("debug")}catch{}}function Yt(){let e;try{e=w.storage.getItem("debug")||w.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function Xt(){try{return localStorage}catch{}}q.exports=Te()(w);var{formatters:Kt}=q.exports;Kt.j=function(e){try{return JSON.stringify(e)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}}});import{template as ft}from"solid-js/web";import{createComponent as ho}from"solid-js/web";import{setAttribute as uo}from"solid-js/web";import{effect as fo}from"solid-js/web";import{insert as mt}from"solid-js/web";import{getOwner as mo}from"solid-js/web";import{createMemo as ht}from"solid-js";import{createStore as vo,reconcile as wo}from"solid-js/store";import{render as xo}from"solid-js/web";import{template as fe}from"solid-js/web";import{insert as N}from"solid-js/web";import{getOwner as Q}from"solid-js/web";import{use as ee}from"solid-js/web";import{createComponent as _}from"solid-js/web";import{createUniqueId as wt,untrack as ge}from"solid-js";import{isServer as xt,isDev as be}from"solid-js/web";import{reconcile as yt}from"solid-js/store";function ae(e,r={}){let t=r.storage||globalThis.localStorage,o=r.name||`storage-${wt()}`;if(!t)return Object.assign(e,{2:null});let n=r.storageOptions,i=r.serialize||JSON.stringify.bind(JSON),a=r.deserialize||JSON.parse.bind(JSON),p=t.getItem(o,n),m=typeof e[0]=="function"?s=>{try{let l=a(s);e[1](()=>l)}catch(l){be&&console.warn(l)}}:s=>{try{let l=a(s);e[1](yt(l))}catch(l){be&&console.warn(l)}},u=!0;if(p instanceof Promise?p.then(s=>u&&s&&m(s)):p&&m(p),typeof r.sync?.[0]=="function"){let s=typeof e[0]=="function"?e[0]:()=>e[0];r.sync[0](l=>{l.key!==o||!xt&&(l.url||globalThis.location.href)!==globalThis.location.href||l.newValue===i(ge(s))||m(l.newValue)})}return Object.assign([],e,{1:typeof e[0]=="function"?s=>{let l=e[1](s),h=s!=null?i(l):s;return r.sync?.[1](o,h),h!=null?t.setItem(o,h,n):t.removeItem(o,n),u=!1,l}:(...s)=>{e[1](...s);let l=ge(()=>i(e[0]));r.sync?.[1](o,l),t.setItem(o,l,n),u=!1},2:p})}import{createEffect as st,createMemo as lt,createSignal as S,on as dt,onCleanup as so,onMount as lo,Show as te}from"solid-js";import{createEffect as ve,createSignal as we,on as xe}from"solid-js";var C={leftCollapsed:"patchwork:leftSidebarCollapsed",rightCollapsed:"patchwork:rightSidebarCollapsed",leftWidth:"patchwork:leftSidebarWidth",rightWidth:"patchwork:rightSidebarWidth",contextToolId:"patchwork:contextSidebarToolId"},W="patchwork:collapse-context-sidebar",H=400;function ye(e,r){let t=localStorage.getItem(e);return t?parseInt(t,10):r}function Ce(e){return localStorage.getItem(e)==="true"}function Ct(){let[e,r]=we(Ce(C.leftCollapsed)),[t,o]=we(ye(C.leftWidth,H));return ve(xe(e,n=>{localStorage.setItem(C.leftCollapsed,String(n))})),ve(xe(t,n=>{localStorage.setItem(C.leftWidth,String(n))})),{isSidebarCollapsed:e,setIsSidebarCollapsed:r,leftSidebarWidth:t,setLeftSidebarWidth:o}}import{onCleanup as _t,onMount as kt}from"solid-js";var _e=180,St=720,$t=120,ke=3;function ie(e,{isCollapsed:r,setCollapsed:t,setWidth:o}){let n=!1,i=null,a=!1,p=null,m=f=>{if(f<$t){r()||t(!0),p=null;return}r()&&t(!1);let v=Math.min(St,f);o(v),p=v},u=()=>{r()||p!==null&&p<_e&&o(_e)},s=null,l=()=>{document.body.setAttribute("data-sidebar-resizing",e),s=document.createElement("div"),s.style.cssText="position:fixed;inset:0;z-index:2147483647;cursor:col-resize;",document.body.appendChild(s)},h=()=>{n=!1,i=null,document.body.style.userSelect="",document.body.removeAttribute("data-sidebar-resizing"),s?.remove(),s=null},g=f=>{f.preventDefault(),i={x:f.clientX,y:f.clientY},a=!1,p=null,n=!0,document.body.style.userSelect="none"},b=()=>{let f=n,v=a;h(),f&&v&&u()},c=f=>{if(!n||!i)return;let v=Math.abs(f.clientX-i.x),y=Math.abs(f.clientY-i.y);!a&&(v>ke||y>ke)&&(a=!0,l()),m(e==="left"?f.clientX:window.innerWidth-f.clientX)},d=f=>{if(a){f.preventDefault(),f.stopPropagation(),a=!1;return}t(v=>!v)};return kt(()=>{document.addEventListener("mousemove",c),document.addEventListener("mouseup",b),_t(()=>{document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",b),n&&h()})}),{handleMouseDown:g,handleToggleClick:d}}import{createEffect as Et,createSignal as Tt,onCleanup as Dt}from"solid-js";var $=(e,r)=>{let[t,o]=Tt(!1);return Et(()=>{let n=r();if(!n)return;o(!1);let i=a=>{a.detail?.componentId===e&&o(!0)};n.addEventListener("patchwork:mounted",i),Dt(()=>n.removeEventListener("patchwork:mounted",i))}),t};import{createEffect as At,createSignal as It,onCleanup as Ft}from"solid-js";var Rt=5e3,Ot=(e,r)=>{let[t,o]=It(!1);return At(()=>{if(t())return;let n=e(),i=r();if(!n||!i)return;let a=m=>{let u=m.detail;u?.url&&u.url!==i||o(!0)};n.addEventListener("patchwork:mounted",a),n.addEventListener("patchwork:no-tool",a);let p=setTimeout(()=>o(!0),Rt);Ft(()=>{n.removeEventListener("patchwork:mounted",a),n.removeEventListener("patchwork:no-tool",a),clearTimeout(p)})}),t};import{getRegistry as Mt}from"@inkandswitch/patchwork-plugins";import{createMemo as Lt,createSignal as zt,onCleanup as Pt}from"solid-js";function O(e){let r=Mt("patchwork:component"),[t,o]=zt(0),n=r.on("changed",()=>o(i=>i+1));return Pt(n),Lt(()=>(t(),(r.all?.()??[]).filter(i=>(i.tags??[]).includes(e)).map(i=>({id:i.id,name:i.name||i.id,icon:i.icon})).sort((i,a)=>i.name.localeCompare(a.name))))}import{template as j}from"solid-js/web";import{delegateEvents as jr}from"solid-js/web";import{getOwner as Nr}from"solid-js/web";import{effect as rt}from"solid-js/web";import{setAttribute as Wr}from"solid-js/web";import{memo as ot}from"solid-js/web";import{insert as F}from"solid-js/web";import{createComponent as R}from"solid-js/web";import{For as Yr,Show as he}from"solid-js";import{template as Pe}from"solid-js/web";import{delegateEvents as sr}from"solid-js/web";import{setAttribute as lr}from"solid-js/web";import{insert as dr}from"solid-js/web";import"solid-js/web";import{effect as ze}from"solid-js/web";import{use as Ue}from"solid-js/web";import{createComponent as se}from"solid-js/web";var Fe=vt(De(),1),Re=(0,Fe.default)("cabbages");function Ae(e){return typeof e=="object"&&typeof e!=null&&Object.getPrototypeOf(e)==Object.prototype}var Gt="\uFFFC";function Oe(e,...r){if(r.length==0){Re("empty patch");return}let[t,o,n]=r,i=[...t];for(;;){let a=i.shift();if(!i.length){let m=Array.isArray(o);if(Ae(e)&&m&&typeof a>"u"&&typeof o[0]=="string"){delete e[o[0]];return}if(m||typeof o=="number"){if(typeof a>"u")throw new Error("cant treat top level as a seq");a=a;let[u,s]=Array.isArray(o)?o:[o,o+1],l=Array.isArray(o)&&o.length==0;if(!l&&(u==null||s==null))throw new RangeError("it's all or nothing, no half measures");let h=typeof n>"u",g=u===s&&!h,b=l&&!h,c=!g&&!h&&!b;if(typeof e[a]>"u"){if(typeof e=="string")return;typeof n=="string"?e[a]="":e[a]=[]}let d=e[a];if(Array.isArray(d)){if(b){Array.isArray(n)?d.push(...n):d.push(n);return}if(g||c){Array.isArray(n)?d.splice(u,s-u,...n):d.splice(u,s-u,n);return}if(h){d.splice(u,s-u);return}throw new Error("i don't know what happened")}if(typeof d=="string"){if(b){e[a]=d+n;return}if(c||g){e[a]=d.slice(0,u)+(typeof n=="string"?n:n.map(f=>typeof f=="string"?f:Gt).join(""))+d.slice(s);return}if(h){e[a]=d.slice(0,u)+d.slice(s);return}throw new Error("i don't know what happened")}if(Ae(d)&&m&&typeof o[0]=="string"){delete d[o[0]];return}throw new Error("not implemented")}if(typeof a>"u"){if(typeof o!="string")throw new Error(`can't index top-level map with ${o}`);typeof n>"u"?delete e[o]:e[o]=n;return}if(typeof e[a]>"u"&&(e[a]={}),m){let[u,s]=o;u!=null&&s!=null&&(typeof n>"u"&&u!=null&&s!=null?delete e[a][u||s]:e[a][u||s]=n)}else if(typeof n>"u")delete e[a][o];else{if(typeof e[a]=="string")return;e[a][o]=n}return}if(typeof a>"u")throw new Error("cant treat top level as a seq");a=a;let p=i[0];if(typeof e[a]>"u")if(typeof p=="string")e[a]={};else if(typeof p=="number")e[a]=[];else throw new Error(`can't go down this road ${e}.${a}.${p}`);e=e[a]}}function Ie(e,r){for(let t=0;t<r.length;t++)e=e?e[r[t]]:void 0;return e}function Me(e,r){let t=e.path.slice(0,-1),o=e.path[e.path.length-1];switch(e.action){case"mark":case"unmark":return Re(`skipping ${e.action} because it doesn't affect material reality`),[];case"inc":if(r)return[t,o,Ie(r.patchInfo.after,e.path)];throw new Error(`can't apply ${e.action} without payload argument`);case"conflict":if(r)return[t,o,Ie(r.patchInfo.after,e.path)];throw new Error(`can't apply ${e.action} without payload argument`);case"del":return typeof o=="string"?[t,o]:[t,[o,o+(e.length||1)]];case"insert":return[t,[o,o],structuredClone(e.values)];case"splice":return[t,[o,o],[e.value]];case"put":return[t,o,structuredClone(e.value)]}}function V(e){return r=>{for(let t of e.patches)Oe(r,...Me(t,e))}}import{createMemo as tr}from"solid-js";import{onCleanup as Zt}from"solid-js";import{createStore as Qt,produce as er,reconcile as Le}from"solid-js/store";var M=new WeakMap;function J(e){if(Zt(()=>{let i=M.get(e);i&&(i.refs--||i.cleanup())}),M.has(e)){let i=M.get(e);return i.refs++,i.store}let[r,t]=Qt(structuredClone(e.doc()));M.set(e,{refs:0,store:r,cleanup(){e.off("change",o),e.off("delete",n),M.delete(e)}});function o(i){if(i.scopeReplaced){t(Le(i.doc??{}));return}t(er(V(i)))}function n(){t(Le({}))}return e.on("change",o),e.on("delete",n),e.whenReady().then(()=>{t(structuredClone(e.doc()))}),r}import{getOwner as an,onCleanup as sn,createSignal as ln,untrack as dn,sharedConfig as cn,onMount as pn,DEV as hn,equalFn as un}from"solid-js";import{isServer as mn}from"solid-js/web";var A=e=>typeof e=="function"&&!e.length?e():e;function Y(e){return tr(()=>A(e)&&J(A(e)))}import{createEffect as or,createResource as nr,useContext as ar}from"solid-js";import{createContext as rr}from"solid-js";var X=rr(null);function L(e,r){let t=ar(X);if(!r?.repo&&!t)throw new Error("use outside <RepoContext> requires options.repo");let o=r?.repo||t;function n(){if(r?.["~skipInitialValue"])return;let p=A(e);if(!p)return;let m=o.findWithProgress(p).peek();return m.state==="ready"?m.handle:void 0}let[i,{mutate:a}]=nr(e,p=>o.findWithProgress(p).whenReady(),{initialValue:n()});return or(()=>{A(e)||a()}),i}function K(e,r){let t=L(e,r);return[Y(t),t]}import{onCleanup as Fn}from"solid-js";import{createSignal as On}from"solid-js";import{createEffect as zn,onCleanup as Pn}from"solid-js";import{createSignal as jn}from"solid-js";import{useContext as Jn}from"solid-js";import{getType as pr}from"@inkandswitch/patchwork-filesystem";import{getRegistry as hr,isLoadedPlugin as ur}from"@inkandswitch/patchwork-plugins";import{createEffect as fr,createMemo as G,createSignal as le,onCleanup as mr,onMount as Ne,Show as We}from"solid-js";var je=Pe("<span class=threepane__title-text>"),cr=Pe("<input class=threepane__title-input type=text>");function He(e){let r,[t,o]=le();return Ne(()=>{o(r.closest("repo-provider")?.repo)}),se(We,{get when(){return t()},get fallback(){return(()=>{var n=je(),i=r;return typeof i=="function"?Ue(i,n):r=n,n})()},children:n=>se(gr,{get docUrl(){return e.docUrl},get repo(){return n()}})})}function gr(e){let[r,t]=K(()=>e.docUrl(),{repo:e.repo}),o=hr("patchwork:datatype"),[n,i]=le(0);Ne(()=>{let c=o.on("changed",()=>i(d=>d+1));mr(c)});let a=G(()=>{let c=r();return c?pr(c):void 0});fr(()=>{let c=a();c&&o.load(c)});let p=G(()=>{n();let c=a();if(!c)return;let d=o.get(c);return d&&ur(d)?d:void 0}),m=G(()=>{let c=r(),d=p();if(!(!c||!d))return d.module.getTitle(c)}),u=G(()=>!!t()&&typeof p()?.module.setTitle=="function"),[s,l]=le(!1),h;function g(){u()&&(l(!0),queueMicrotask(()=>{h?.focus(),h?.select()}))}function b(c){if(!s()||(l(!1),!c))return;let d=h?.value.trim();if(!d||d===m())return;let f=t(),v=p()?.module.setTitle;!f||!v||f.change(y=>{v(y,d);let x=y["@patchwork"];x&&(x.title=d)})}return se(We,{get when(){return s()},get fallback(){return(()=>{var c=je();return c.$$click=g,dr(c,()=>m()??"Untitled"),ze(d=>{var f=!!u(),v=u()?"Rename":void 0;return f!==d.e&&c.classList.toggle("threepane__title-text--editable",d.e=f),v!==d.t&&lr(c,"title",d.t=v),d},{e:void 0,t:void 0}),c})()},get children(){var c=cr();c.$$keydown=f=>{f.key==="Enter"?(f.preventDefault(),b(!0)):f.key==="Escape"&&(f.preventDefault(),b(!1))},c.addEventListener("blur",()=>b(!0));var d=h;return typeof d=="function"?Ue(d,c):h=c,ze(()=>c.value=m()??""),c}})}sr(["keydown","click"]);import{template as U}from"solid-js/web";import{delegateEvents as Dr}from"solid-js/web";import{getOwner as Ar}from"solid-js/web";import{insert as P}from"solid-js/web";import{createComponent as I}from"solid-js/web";import{Show as de}from"solid-js";import{template as Je}from"solid-js/web";import{delegateEvents as br}from"solid-js/web";import{setStyleProperty as vr}from"solid-js/web";import{insert as wr}from"solid-js/web";import{setAttribute as Z}from"solid-js/web";import{effect as Be}from"solid-js/web";import{memo as z}from"solid-js/web";import{createComponent as qe}from"solid-js/web";import{Show as Ve}from"solid-js";var xr=Je('<button class="sidebar-toggle sidebar-toggle--resizable">'),yr=Je("<div class=sidebar>");function Ye(e){let r=()=>`${e.isCollapsed()?0:e.width()}px`,t=()=>e.canExpand?.()??!0,o=()=>qe(Ve,{get when(){return!e.isCollapsed()},get children(){return e.children}}),n=()=>qe(Ve,{get when(){return!e.isCollapsed()||t()},get children(){var i=xr();return i.$$mousedown=a=>e.onMouseDown(a),i.$$click=a=>e.onToggleClick(a),Be(a=>{var p=e.isCollapsed()?"Expand sidebar":"Toggle or resize sidebar",m=e.isCollapsed()?"Click to expand, drag to resize":"Click to toggle, drag to resize";return p!==a.e&&Z(i,"aria-label",a.e=p),m!==a.t&&Z(i,"title",a.t=m),a},{e:void 0,t:void 0}),i}});return(()=>{var i=yr();return wr(i,(()=>{var a=z(()=>e.side==="left");return()=>a()?[z(o),z(n)]:[z(n),z(o)]})()),Be(a=>{var p=e.side,m=e.isCollapsed()?"":void 0,u=r();return p!==a.e&&Z(i,"data-side",a.e=p),m!==a.t&&Z(i,"data-collapsed",a.t=m),u!==a.a&&vr(i,"width",a.a=u),a},{e:void 0,t:void 0,a:void 0}),i})()}br(["click","mousedown"]);import{template as Ke}from"solid-js/web";import{delegateEvents as Cr}from"solid-js/web";import{setAttribute as _r}from"solid-js/web";import{effect as kr}from"solid-js/web";import{insert as Xe}from"solid-js/web";import{createComponent as Sr}from"solid-js/web";import{For as Tr}from"solid-js";var $r=Ke("<div role=tablist class=context-sidebar__tablist>"),Er=Ke("<button type=button role=tab class=context-sidebar__tab>");function Ge(e){let r=()=>{let t=e.items().map(n=>n.id),o=e.selectedToolId();return o&&t.includes(o)?o:t[0]};return(()=>{var t=$r();return Xe(t,Sr(Tr,{get each(){return e.items()},children:o=>(()=>{var n=Er();return n.$$click=()=>e.setSelectedToolId(o.id),Xe(n,()=>o.name),kr(()=>_r(n,"data-active",r()===o.id?"":void 0)),n})()})),t})()}Cr(["click"]);var Ir=U('<div class=context-sidebar__tabs><button type=button class=context-sidebar__close title="Hide context sidebar"aria-label="Hide context sidebar">'),Fr=U("<div class=context-sidebar__content>"),Rr=U("<div class=context-sidebar>"),Or=U("<patchwork-view>",!0,!1,!1),Mr=U('<svg xmlns=http://www.w3.org/2000/svg width=18 height=18 viewBox="0 0 24 24"fill=none stroke=var(--studio-chrome-line) stroke-width=1.75 stroke-linecap=round stroke-linejoin=round><rect width=18 height=18 x=3 y=3 rx=2></rect><path d="M15 3v18">');function Ze(e){let r=O("context-tool"),t=()=>{let o=r().map(i=>i.id),n=e.selectedToolId();return n&&o.includes(n)?n:o[0]};return I(Ye,{side:"right",get isCollapsed(){return e.isCollapsed},get width(){return e.width},get onMouseDown(){return e.onMouseDown},get onToggleClick(){return e.onToggleClick},get canExpand(){return e.canExpand},get children(){var o=Rr();return P(o,I(de,{get when(){return r().length},get children(){var n=Ir(),i=n.firstChild;return P(n,I(Ge,{items:r,get selectedToolId(){return e.selectedToolId},get setSelectedToolId(){return e.setSelectedToolId}}),i),i.$$click=()=>e.onCollapse(),P(i,I(ce,{})),n}}),null),P(o,I(de,{get when(){return!e.isCollapsed()},get children(){var n=Fr();return P(n,I(de,{get when(){return t()},keyed:!0,children:i=>(()=>{var a=Or();return a.component=i,a._$owner=Ar(),a})()})),n}}),null),o}})}function ce(){return Mr()}Dr(["click"]);import{template as Lr}from"solid-js/web";import{effect as Qe}from"solid-js/web";import{getOwner as et}from"solid-js/web";import{createComponent as zr}from"solid-js/web";import{memo as Pr}from"solid-js/web";import{Show as Ur}from"solid-js";var tt=Lr("<patchwork-view>",!0,!1,!1),pe=e=>Array.isArray(e)?String(e[0]):String(e);function oi(e){let r=new Set;return e.filter(t=>{let o=pe(t);return r.has(o)?!1:(r.add(o),!0)})}function ni(e){return zr(Ur,{get when(){return Pr(()=>!!Array.isArray(e.slot))()?e.slot:!1},get fallback(){return(()=>{var r=tt();return r._$owner=et(),Qe(()=>r.component=String(e.slot)),r})()},children:r=>(()=>{var t=tt();return t._$owner=et(),Qe(o=>{var n=r()[1],i=r()[0];return n!==o.e&&(t.docUrl=o.e=n),i!==o.t&&(t.toolId=o.t=i),o},{e:void 0,t:void 0}),t})()})}var Hr=j("<div class=threepane__title>"),Br=j("<div class=threepane__doctitle-tools>"),qr=j('<button type=button class=frame__sidebar-toggle title="Show context sidebar"aria-label="Show context sidebar">'),Vr=j("<div class=frame__topbar><div class=threepane__spacer>"),Jr=j("<patchwork-view>",!0,!1,!1);function nt(e){let r=()=>e.toolSlots()??[];return(()=>{var t=Vr(),o=t.firstChild;return F(t,R(he,{get when(){return e.docUrl()},get children(){var n=Hr();return F(n,R(He,{get docUrl(){return e.docUrl}})),n}}),o),F(t,R(he,{get when(){return ot(()=>!!e.docUrl())()&&r().length},get children(){var n=Br();return F(n,R(Yr,{get each(){return r()},children:i=>(()=>{var a=Jr();return a._$owner=Nr(),rt(p=>{var m=pe(i),u=e.docUrl();return m!==p.e&&(a.toolId=p.e=m),u!==p.t&&(a.docUrl=p.t=u),p},{e:void 0,t:void 0}),a})()})),n}}),null),F(t,R(he,{get when(){return ot(()=>!!e.hasContext())()&&e.isRightCollapsed()},get children(){var n=qr();return n.$$click=()=>e.onToggleRight(),Wr(n,"aria-pressed",!1),F(n,R(ce,{})),n}}),null),rt(()=>t.classList.toggle("frame__topbar--left-collapsed",!!e.isLeftCollapsed())),t})()}jr(["click"]);import{template as ue}from"solid-js/web";import{effect as Xr}from"solid-js/web";import{getOwner as Kr}from"solid-js/web";import{insert as at}from"solid-js/web";import{memo as Gr}from"solid-js/web";import{createComponent as Zr}from"solid-js/web";import{use as Qr}from"solid-js/web";import{Show as oo}from"solid-js";var eo=ue("<div class=document-view>"),to=ue("<patchwork-view>",!0,!1,!1),ro=ue("<div class=placeholder>Select a document in the sidebar");function it({viewKey:e,selectedDocUrl:r,toolId:t,ref:o}){return(()=>{var n=eo(),i=o;return typeof i=="function"?Qr(i,n):o=n,at(n,Zr(oo,{get when(){return e()},keyed:!0,children:a=>(()=>{var p=to();return p._$owner=Kr(),Xr(m=>{var u=r(),s=t();return u!==m.e&&(p.docUrl=m.e=u),s!==m.t&&(p.toolId=m.t=s),m},{e:void 0,t:void 0}),p})()}),null),at(n,(()=>{var a=Gr(()=>!r());return()=>a()&&ro()})(),null),n})()}var no=fe("<patchwork-view component=patchwork-draft-state-provider>",!0,!1,!1),ao=fe("<div class=frame__main-column><div class=frame__doc-column><div class=main-area>"),io=fe("<patchwork-view component=patchwork-draft-overlay-provider><patchwork-view component=patchwork-comments-provider><patchwork-view component=patchwork-focus-provider>",!0,!1,!1);function ct(e){let[r,t]=S(e.initialRightCollapsed()),[o,n]=S(e.initialRightWidth());st(dt(r,h=>{try{localStorage.setItem(C.rightCollapsed,String(h))}catch{}},{defer:!0})),st(dt(o,h=>{try{localStorage.setItem(C.rightWidth,String(h))}catch{}},{defer:!0}));let i=ie("right",{isCollapsed:r,setCollapsed:t,setWidth:n});lo(()=>{let h=()=>t(!0);window.addEventListener(W,h),so(()=>window.removeEventListener(W,h))});let[a,p]=ae(S(),{name:C.contextToolId}),[m,u]=S(),s=$("patchwork-draft-state-provider",m),l=()=>s()?m():void 0;return _(te,{get when(){return e.selectedDocUrl()},keyed:!0,children:h=>(()=>{var g=no();return ee(u,g),g.docUrl=h,g._$owner=Q(),N(g,_(te,{get when(){return l()},children:b=>_(co,{get host(){return b()},get setMainDocElement(){return e.setMainDocElement},get selectedDocUrl(){return e.selectedDocUrl},get selectedToolId(){return e.selectedToolId},get doctitleSlots(){return e.doctitleSlots},get isLeftCollapsed(){return e.isLeftCollapsed},isRightSidebarCollapsed:r,setIsRightSidebarCollapsed:t,rightSidebarWidth:o,get handleMouseDown(){return i.handleMouseDown},get handleToggleClick(){return i.handleToggleClick},selectedContextToolId:a,setSelectedContextToolId:p})})),g})()})}function co(e){let r=O("context-tool"),t=()=>r().length>0,o=lt(()=>e.selectedDocUrl()),[n,i]=S(),a=$("patchwork-draft-overlay-provider",n),[p,m]=S(),u=$("patchwork-comments-provider",p),[s,l]=S(),h=$("patchwork-focus-provider",s),g=lt(()=>a()&&u()&&h());return(()=>{var b=io(),c=b.firstChild,d=c.firstChild;return ee(i,b),b._$owner=Q(),ee(m,c),c._$owner=Q(),ee(l,d),d._$owner=Q(),N(d,_(te,{get when(){return g()},get children(){var f=ao(),v=f.firstChild,y=v.firstChild;return N(v,_(nt,{get docUrl(){return e.selectedDocUrl},get toolSlots(){return e.doctitleSlots},get isLeftCollapsed(){return e.isLeftCollapsed},hasContext:t,get isRightCollapsed(){return e.isRightSidebarCollapsed},onToggleRight:()=>e.setIsRightSidebarCollapsed(x=>!x)}),y),N(y,_(it,{viewKey:o,get selectedDocUrl(){return e.selectedDocUrl},get toolId(){return e.selectedToolId},ref:x=>e.setMainDocElement?.(x)})),N(f,_(te,{get when(){return t()},get children(){return _(Ze,{get selectedToolId(){return e.selectedContextToolId},get setSelectedToolId(){return e.setSelectedContextToolId},get isCollapsed(){return e.isRightSidebarCollapsed},get width(){return e.rightSidebarWidth},get onMouseDown(){return e.handleMouseDown},get onToggleClick(){return e.handleToggleClick},onCollapse:()=>e.setIsRightSidebarCollapsed(!0)})}}),null),f}})),b})()}var re=`:root,
|
|
2
|
-
:host,
|
|
3
|
-
[theme] {
|
|
4
|
-
--threepane-bg: var(--studio-fill, white);
|
|
5
|
-
--threepane-sidebar-fill: var(--studio-chrome, var(--studio-fill, white));
|
|
6
|
-
--threepane-fg: var(--studio-line, black);
|
|
7
|
-
/* ink for text sitting ON the sidebar/account-bar chrome surface. mirrors the
|
|
8
|
-
toolbar/context-sidebar fg: it rides --studio-chrome-line (the chrome's own
|
|
9
|
-
ink) so it tracks the chrome palette, not the content page. --threepane-fg
|
|
10
|
-
is content ink and only belongs on --threepane-bg surfaces. */
|
|
11
|
-
--threepane-sidebar-fg: var(--studio-chrome-line, var(--studio-line, black));
|
|
12
|
-
--threepane-muted: var(--studio-line-offset-50, #999);
|
|
13
|
-
--threepane-family: var(--studio-family-sans, system-ui, sans-serif);
|
|
14
|
-
--threepane-family-code: var(--studio-family-code, ui-monospace, monospace);
|
|
15
|
-
|
|
16
|
-
/* spacing scale, aliased from the base theme */
|
|
17
|
-
--threepane-space-3xs: var(--studio-space-3xs, 0.125rem);
|
|
18
|
-
--threepane-space-2xs: var(--studio-space-2xs, 0.25rem);
|
|
19
|
-
--threepane-space-xs: var(--studio-space-xs, 0.375rem);
|
|
20
|
-
--threepane-space-sm: var(--studio-space-sm, 0.5rem);
|
|
21
|
-
--threepane-space: var(--studio-space, 0.75rem);
|
|
22
|
-
--threepane-space-md: var(--studio-space-md, 1rem);
|
|
23
|
-
--threepane-space-2xl: var(--studio-space-2xl, 3rem);
|
|
24
|
-
|
|
25
|
-
/* radius scale, aliased from the base theme */
|
|
26
|
-
--threepane-radius-xs: var(--studio-radius-xs, 2px);
|
|
27
|
-
--threepane-radius-sm: var(--studio-radius-sm, 4px);
|
|
28
|
-
--threepane-radius-md: var(--studio-radius-md, 8px);
|
|
29
|
-
--threepane-radius-round: var(--studio-radius-round, 9999px);
|
|
30
|
-
|
|
31
|
-
/* Height of the frame's top strip: the top bar over the main column, and the
|
|
32
|
-
matching empty space reserved above the left sidebar's widgets so the two
|
|
33
|
-
line up and the left toggle has a home. */
|
|
34
|
-
--threepane-header-height: calc(
|
|
35
|
-
env(safe-area-inset-top, 0px) + var(--threepane-space-2xl)
|
|
36
|
-
);
|
|
37
|
-
|
|
38
|
-
/* the left footer and right tray boxes share one height so they line up. */
|
|
39
|
-
--threepane-tray-height: var(--threepane-space-2xl);
|
|
40
|
-
/* sidebar toggles ride a touch paler than the line (first ink offset). they
|
|
41
|
-
sit on chrome (left toggle over the sidebar, right over the toolbar), so
|
|
42
|
-
they use the chrome ink ramp, not the content one. */
|
|
43
|
-
--threepane-toggle-fg: var(--studio-chrome-line-offset-10, var(--studio-line-offset-10, #333));
|
|
44
|
-
|
|
45
|
-
--threepane-toolbar: var(--studio-chrome, white);
|
|
46
|
-
/* toolbar text rides on the chrome surface, so it uses the chrome ink */
|
|
47
|
-
--threepane-toolbar-fg: var(--studio-chrome-line, var(--studio-line, black));
|
|
48
|
-
--threepane-toolbar-border: var(--studio-chrome-offset-10, #ddd);
|
|
49
|
-
/* Resize handle: a faint 1px divider that tracks the chrome ramp's contrast
|
|
50
|
-
(it mixes toward the chrome ink, so it reads darker on light themes and
|
|
51
|
-
lighter on dark ones), plus a primary-tinted glow + grab pill on hover. */
|
|
52
|
-
--threepane-sidebar-divider: var(--studio-chrome-offset-20, #d4d4d4);
|
|
53
|
-
--threepane-resize-glow: color-mix(in oklch, var(--studio-primary-fill, var(--studio-primary, #35f7ca)), transparent 35%);
|
|
54
|
-
--threepane-resize-pill: var(--studio-primary-fill, var(--studio-primary, #35f7ca));
|
|
55
|
-
|
|
56
|
-
/* The context (right) sidebar sits on a chrome surface stepped one offset off
|
|
57
|
-
the toolbar's flat chrome, so the two chrome regions read as distinct. */
|
|
58
|
-
--threepane-context-sidebar-fill: var(--studio-chrome-offset-10, #ececec);
|
|
59
|
-
|
|
60
|
-
/* Context sidebar (tabbed) */
|
|
61
|
-
--context-sidebar-bg: var(--threepane-context-sidebar-fill);
|
|
62
|
-
/* the tab-bar header rides on the same flat chrome as the toolbar above it,
|
|
63
|
-
so the two chrome strips read as one continuous band */
|
|
64
|
-
--context-sidebar-header-bg: var(--studio-chrome, #f2f2f2);
|
|
65
|
-
--context-sidebar-fg: var(--studio-chrome-line, var(--studio-line, black));
|
|
66
|
-
/* match the lines drawn around the document-view so tab/tray edges read as
|
|
67
|
-
one continuous frame */
|
|
68
|
-
--context-sidebar-border: var(--threepane-toolbar-border);
|
|
69
|
-
--context-sidebar-tab-fg: var(--studio-chrome-line-offset-40, var(--studio-line-offset-40, #666));
|
|
70
|
-
--context-sidebar-tab-hover: var(--studio-chrome-offset-10, #e5e5e5);
|
|
71
|
-
--context-sidebar-tab-active-bg: var(--studio-fill, white);
|
|
72
|
-
--context-sidebar-tab-active-fg: var(--studio-line, black);
|
|
73
|
-
--context-sidebar-tab-active-accent: var(--studio-primary-line, var(--studio-primary, #35f7ca));
|
|
74
|
-
/* the content panel shares the active tab's surface so the selected tab
|
|
75
|
-
connects seamlessly into the tool view below it */
|
|
76
|
-
--context-sidebar-content-bg: var(--context-sidebar-tab-active-bg);
|
|
77
|
-
--context-sidebar-family: var(--studio-family-sans, system-ui, sans-serif);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.frame-shell {
|
|
81
|
-
display: flex;
|
|
82
|
-
flex-direction: column;
|
|
83
|
-
width: 100%;
|
|
84
|
-
height: 100%;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.frame-warning-banner {
|
|
88
|
-
flex: none;
|
|
89
|
-
padding: var(--threepane-space-2xs) var(--threepane-space-sm);
|
|
90
|
-
text-align: center;
|
|
91
|
-
text-transform: uppercase;
|
|
92
|
-
font-family: var(--studio-family-ui, var(--threepane-family));
|
|
93
|
-
font-size: 0.75rem;
|
|
94
|
-
background: var(--studio-warning-fill, yellow);
|
|
95
|
-
color: var(--studio-warning-line);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.frame {
|
|
99
|
-
position: relative;
|
|
100
|
-
display: flex;
|
|
101
|
-
width: 100%;
|
|
102
|
-
flex: 1;
|
|
103
|
-
min-height: 0;
|
|
104
|
-
font-family: var(--threepane-family);
|
|
105
|
-
color: var(--threepane-fg);
|
|
106
|
-
background: var(--threepane-bg);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.frame__version {
|
|
110
|
-
position: absolute;
|
|
111
|
-
top: var(--threepane-space-2xs);
|
|
112
|
-
right: var(--threepane-space-sm);
|
|
113
|
-
z-index: var(--studio-layer-raised, 10);
|
|
114
|
-
color: var(--threepane-muted);
|
|
115
|
-
font-size: 0.75rem;
|
|
116
|
-
font-weight: 500;
|
|
117
|
-
pointer-events: none;
|
|
118
|
-
user-select: none;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.sidebar {
|
|
122
|
-
position: relative;
|
|
123
|
-
display: flex;
|
|
124
|
-
flex: none;
|
|
125
|
-
/* visible so the resize handle can straddle the boundary (sit on *both*
|
|
126
|
-
sides of the divider line); the content clips itself instead. z-index lifts
|
|
127
|
-
the handle's outer half above the main area so it stays grabbable. */
|
|
128
|
-
overflow: visible;
|
|
129
|
-
z-index: 1;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.sidebar[data-collapsed] {
|
|
133
|
-
overflow: visible;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.sidebar[data-side="left"] {
|
|
137
|
-
background: var(--threepane-sidebar-fill);
|
|
138
|
-
color: var(--threepane-sidebar-fg);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.sidebar[data-side="right"] {
|
|
142
|
-
background: var(--threepane-context-sidebar-fill);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.main-area {
|
|
146
|
-
flex: 1;
|
|
147
|
-
min-width: 0;
|
|
148
|
-
display: flex;
|
|
149
|
-
flex-direction: column;
|
|
150
|
-
height: 100%;
|
|
151
|
-
overflow: hidden;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
/* The main column (right of the left sidebar): a row of
|
|
155
|
-
[document column | right sidebar], so the right sidebar spans the full frame
|
|
156
|
-
height and its resize divider runs top-to-bottom exactly like the left one. */
|
|
157
|
-
.frame__main-column {
|
|
158
|
-
position: relative;
|
|
159
|
-
flex: 1;
|
|
160
|
-
min-width: 0;
|
|
161
|
-
display: flex;
|
|
162
|
-
flex-direction: row;
|
|
163
|
-
height: 100%;
|
|
164
|
-
overflow: hidden;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/* The document column: the top bar over the main document view. Sits left of the
|
|
168
|
-
full-height context sidebar. */
|
|
169
|
-
.frame__doc-column {
|
|
170
|
-
flex: 1;
|
|
171
|
-
min-width: 0;
|
|
172
|
-
width: 100%;
|
|
173
|
-
display: flex;
|
|
174
|
-
flex-direction: column;
|
|
175
|
-
height: 100%;
|
|
176
|
-
overflow: hidden;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.frame__doc-column > patchwork-view,
|
|
180
|
-
.frame__doc-column > patchwork-view > patchwork-view,
|
|
181
|
-
.frame__doc-column > patchwork-view > patchwork-view > patchwork-view,
|
|
182
|
-
.frame__doc-column
|
|
183
|
-
> patchwork-view
|
|
184
|
-
> patchwork-view
|
|
185
|
-
> patchwork-view
|
|
186
|
-
> patchwork-view {
|
|
187
|
-
display: contents;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/* The full-width top toolbar. Its height + top safe-area inset match the
|
|
191
|
-
sideboard's reserved top margin so the bar reads as continuous across the top
|
|
192
|
-
(the left sidebar's empty top region lines up with it). */
|
|
193
|
-
.frame__topbar {
|
|
194
|
-
display: flex;
|
|
195
|
-
align-items: stretch;
|
|
196
|
-
box-sizing: border-box;
|
|
197
|
-
min-height: var(--threepane-space-2xl);
|
|
198
|
-
padding-top: env(safe-area-inset-top, 0px);
|
|
199
|
-
padding-inline: var(--threepane-space-2xs);
|
|
200
|
-
gap: var(--threepane-space-2xs);
|
|
201
|
-
background: var(--threepane-toolbar);
|
|
202
|
-
color: var(--threepane-toolbar-fg);
|
|
203
|
-
/* A hairline along the bottom, in the same colour as the document-view's
|
|
204
|
-
border, so the line under the bar runs unbroken across the whole width
|
|
205
|
-
(document column + context tabs). The active tab pulls down 1px to break
|
|
206
|
-
through it and connect to its panel below. */
|
|
207
|
-
border-bottom: var(--studio-border-width, 1px) var(--studio-border-style, solid) var(--threepane-toolbar-border);
|
|
208
|
-
/* Animate the collapsed left-slot in step with the sidebar's width transition
|
|
209
|
-
so the title glides up against the pinned toggle instead of jumping. */
|
|
210
|
-
transition: padding-left var(--studio-transition-slow, 0.25s ease);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
/* When the left sidebar is collapsed the bar's left edge reaches the frame edge,
|
|
214
|
-
where the pinned left toggle lives; reserve a matching slot so the title slides
|
|
215
|
-
up against the toggle rather than under it. */
|
|
216
|
-
.frame__topbar--left-collapsed {
|
|
217
|
-
padding-left: var(--threepane-space-2xl);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
/* The left sidebar toggle, pinned to the frame's top-left corner so it keeps the
|
|
221
|
-
same spot whether the sidebar is open or closed. Square, filling the top strip;
|
|
222
|
-
sits over the sidebar's reserved (empty) top area when open. */
|
|
223
|
-
.frame__left-toggle {
|
|
224
|
-
position: absolute;
|
|
225
|
-
top: 0;
|
|
226
|
-
left: 0;
|
|
227
|
-
z-index: 5;
|
|
228
|
-
width: var(--threepane-space-2xl);
|
|
229
|
-
height: var(--threepane-header-height);
|
|
230
|
-
padding-top: env(safe-area-inset-top, 0px);
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
/* A sidebar toggle at either end of the top bar (always present). */
|
|
234
|
-
.frame__sidebar-toggle {
|
|
235
|
-
display: flex;
|
|
236
|
-
align-items: center;
|
|
237
|
-
justify-content: center;
|
|
238
|
-
flex-shrink: 0;
|
|
239
|
-
padding-inline: var(--threepane-space-sm);
|
|
240
|
-
border: none;
|
|
241
|
-
background: transparent;
|
|
242
|
-
color: var(--threepane-toggle-fg);
|
|
243
|
-
cursor: var(--studio-cursor-pointer, pointer);
|
|
244
|
-
transition: color var(--studio-transition-fast, 0.1s ease);
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.frame__sidebar-toggle:hover {
|
|
248
|
-
color: var(--threepane-sidebar-fg);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
/* The document title, rendered intrinsically: shrinks to the title's width but
|
|
252
|
-
never past half the bar; ellipsis beyond. */
|
|
253
|
-
.threepane__title {
|
|
254
|
-
display: flex;
|
|
255
|
-
align-items: center;
|
|
256
|
-
flex: 0 1 auto;
|
|
257
|
-
min-width: 0;
|
|
258
|
-
max-width: 50%;
|
|
259
|
-
overflow: hidden;
|
|
260
|
-
padding-inline: var(--threepane-space-sm);
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
.threepane__title-text {
|
|
264
|
-
font-weight: 600;
|
|
265
|
-
white-space: nowrap;
|
|
266
|
-
min-width: 0;
|
|
267
|
-
overflow: hidden;
|
|
268
|
-
text-overflow: ellipsis;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
.threepane__title-text--editable {
|
|
272
|
-
cursor: var(--studio-cursor-text, text);
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
.threepane__title-text--editable:hover {
|
|
276
|
-
opacity: 0.7;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
.threepane__title-input {
|
|
280
|
-
font: inherit;
|
|
281
|
-
font-weight: 600;
|
|
282
|
-
color: inherit;
|
|
283
|
-
min-width: 0;
|
|
284
|
-
width: 100%;
|
|
285
|
-
padding: 0;
|
|
286
|
-
margin: 0;
|
|
287
|
-
border: none;
|
|
288
|
-
outline: none;
|
|
289
|
-
background: transparent;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
/* built-in spacer between the title and the right-hand tools */
|
|
293
|
-
.threepane__spacer {
|
|
294
|
-
flex: 1;
|
|
295
|
-
min-width: var(--threepane-space-sm);
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
/* configured doctitle tools at the right end; scroll horizontally when they
|
|
299
|
-
overflow rather than squashing. */
|
|
300
|
-
.threepane__doctitle-tools {
|
|
301
|
-
display: flex;
|
|
302
|
-
align-items: center;
|
|
303
|
-
gap: var(--threepane-space-sm);
|
|
304
|
-
min-width: 0;
|
|
305
|
-
padding-inline: var(--threepane-space-sm);
|
|
306
|
-
overflow-x: auto;
|
|
307
|
-
overflow-y: hidden;
|
|
308
|
-
scrollbar-width: none;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
.threepane__doctitle-tools::-webkit-scrollbar {
|
|
312
|
-
display: none;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
.threepane__doctitle-tools patchwork-view {
|
|
316
|
-
display: flex;
|
|
317
|
-
align-items: center;
|
|
318
|
-
height: 2rem;
|
|
319
|
-
flex-shrink: 0;
|
|
320
|
-
width: auto;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
.document-view {
|
|
324
|
-
flex: 1;
|
|
325
|
-
min-height: 0;
|
|
326
|
-
overflow: hidden;
|
|
327
|
-
/* Left divider only, square corners. The top line is the top bar's
|
|
328
|
-
border-bottom and the bottom is open to the frame edge. The right divider
|
|
329
|
-
(to the context sidebar) is the sidebar's own full-height border-left, so
|
|
330
|
-
it runs the whole frame height rather than just the document view. When the
|
|
331
|
-
left sidebar is collapsed the left divider is dropped (see the :has rule
|
|
332
|
-
below) so nothing rides the frame edge. */
|
|
333
|
-
border-left: var(--studio-border-width, 1px) var(--studio-border-style, solid) var(--threepane-toolbar-border);
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
/* Left sidebar collapsed to 0: drop the document-view's left divider so there's
|
|
337
|
-
no stray line hugging the frame's left edge. */
|
|
338
|
-
.frame:has(.sidebar[data-side="left"][data-collapsed]) .document-view {
|
|
339
|
-
border-left: none;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
.document-view patchwork-view {
|
|
343
|
-
display: block;
|
|
344
|
-
width: 100%;
|
|
345
|
-
height: 100%;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
.placeholder {
|
|
349
|
-
display: flex;
|
|
350
|
-
align-items: center;
|
|
351
|
-
justify-content: center;
|
|
352
|
-
height: 100%;
|
|
353
|
-
color: var(--threepane-fg);
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
.sidebar patchwork-view {
|
|
357
|
-
display: block;
|
|
358
|
-
width: 100%;
|
|
359
|
-
height: 100%;
|
|
360
|
-
/* the sidebar itself doesn't clip, so the content does */
|
|
361
|
-
overflow: hidden;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
/* Context sidebar (tabbed): lifted tabs with a top accent bar and surface fill
|
|
365
|
-
on the active tab, a hover surface, and a bottom-border separator between the
|
|
366
|
-
tab bar and the mounted tool view. */
|
|
367
|
-
.context-sidebar {
|
|
368
|
-
flex: 1;
|
|
369
|
-
min-width: 0;
|
|
370
|
-
width: 100%;
|
|
371
|
-
height: 100%;
|
|
372
|
-
display: flex;
|
|
373
|
-
flex-direction: column;
|
|
374
|
-
overflow: hidden;
|
|
375
|
-
font-family: var(--context-sidebar-family);
|
|
376
|
-
color: var(--context-sidebar-fg);
|
|
377
|
-
background: var(--context-sidebar-bg);
|
|
378
|
-
/* The full-height divider between the document column and the sidebar. Lives
|
|
379
|
-
here (not on the document view) so it runs the whole frame height \u2014 top bar
|
|
380
|
-
level included \u2014 and the resize handle straddling this edge is grabbable end
|
|
381
|
-
to end, matching the left sidebar. */
|
|
382
|
-
border-left: var(--studio-border-width, 1px) var(--studio-border-style, solid) var(--context-sidebar-border);
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
/* Tab bar: the row holding the tab list and the collapse button. Its height +
|
|
386
|
-
top safe-area inset match the document column's top bar so the two header
|
|
387
|
-
strips line up and their bottom hairlines read as one continuous line across
|
|
388
|
-
the divider. */
|
|
389
|
-
.context-sidebar__tabs {
|
|
390
|
-
display: flex;
|
|
391
|
-
align-items: flex-end;
|
|
392
|
-
box-sizing: border-box;
|
|
393
|
-
min-height: var(--threepane-space-2xl);
|
|
394
|
-
padding-top: env(safe-area-inset-top, 0px);
|
|
395
|
-
background: var(--context-sidebar-header-bg);
|
|
396
|
-
border-bottom: var(--studio-border-width, 1px) var(--studio-border-style, solid) var(--context-sidebar-border);
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
.context-sidebar__tablist {
|
|
400
|
-
display: flex;
|
|
401
|
-
flex: 1;
|
|
402
|
-
min-width: 0;
|
|
403
|
-
align-items: flex-end;
|
|
404
|
-
gap: var(--threepane-space-2xs);
|
|
405
|
-
padding-inline: var(--threepane-space-2xs);
|
|
406
|
-
/* when there are more tabs than fit, scroll them horizontally rather than
|
|
407
|
-
letting them shrink/wrap; scrollbar hidden for a clean header. */
|
|
408
|
-
overflow-x: auto;
|
|
409
|
-
overflow-y: hidden;
|
|
410
|
-
scrollbar-width: none;
|
|
411
|
-
/* extend the clip box 1px past the tab-bar border (compensated by the
|
|
412
|
-
negative margin so layout is unchanged) so the active tab's -1px overflow
|
|
413
|
-
isn't clipped by the horizontal scroll container, and it can still cover
|
|
414
|
-
the border-bottom to connect into the panel. */
|
|
415
|
-
padding-bottom: 1px;
|
|
416
|
-
margin-bottom: -1px;
|
|
417
|
-
}
|
|
418
|
-
.context-sidebar__tablist::-webkit-scrollbar {
|
|
419
|
-
display: none;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
/* A single tab. */
|
|
423
|
-
.context-sidebar__tab {
|
|
424
|
-
display: flex;
|
|
425
|
-
align-items: center;
|
|
426
|
-
flex-shrink: 0;
|
|
427
|
-
padding: var(--threepane-space-xs) var(--threepane-space-sm);
|
|
428
|
-
border: var(--studio-border-width, 1px) var(--studio-border-style, solid) transparent;
|
|
429
|
-
border-bottom: none;
|
|
430
|
-
border-top-left-radius: var(--threepane-radius-xs);
|
|
431
|
-
border-top-right-radius: var(--threepane-radius-xs);
|
|
432
|
-
background: transparent;
|
|
433
|
-
font-family: inherit;
|
|
434
|
-
font-size: 0.875rem;
|
|
435
|
-
white-space: nowrap;
|
|
436
|
-
color: var(--context-sidebar-tab-fg);
|
|
437
|
-
cursor: var(--studio-cursor-pointer, pointer);
|
|
438
|
-
user-select: none;
|
|
439
|
-
transition: background var(--studio-transition-fast, 0.1s ease),
|
|
440
|
-
color var(--studio-transition-fast, 0.1s ease);
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
.context-sidebar__tab:hover {
|
|
444
|
-
background: var(--studio-chrome-hover-fill, var(--context-sidebar-tab-hover));
|
|
445
|
-
color: var(--context-sidebar-tab-active-fg);
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
/* Exception: the selected tab. Pulled down 1px so its fill covers the tab-bar's
|
|
449
|
-
bottom border, connecting the tab seamlessly into the panel below. */
|
|
450
|
-
.context-sidebar__tab[data-active] {
|
|
451
|
-
position: relative;
|
|
452
|
-
margin-bottom: -1px;
|
|
453
|
-
background: var(--context-sidebar-tab-active-bg);
|
|
454
|
-
color: var(--context-sidebar-tab-active-fg);
|
|
455
|
-
border-color: var(--context-sidebar-border);
|
|
456
|
-
box-shadow: inset 0 1px 0 0 var(--context-sidebar-tab-active-accent);
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
/* The close (collapse) button. Centred vertically in the tab header (the header
|
|
460
|
-
is otherwise flex-end for the tabs) so it lands at the same height as the
|
|
461
|
-
reopen toggle in the top bar when the sidebar is collapsed. */
|
|
462
|
-
.context-sidebar__close {
|
|
463
|
-
display: flex;
|
|
464
|
-
align-items: center;
|
|
465
|
-
justify-content: center;
|
|
466
|
-
align-self: center;
|
|
467
|
-
flex-shrink: 0;
|
|
468
|
-
padding-inline: var(--threepane-space-sm);
|
|
469
|
-
margin-right: var(--threepane-space-2xs);
|
|
470
|
-
border: none;
|
|
471
|
-
background: transparent;
|
|
472
|
-
color: var(--context-sidebar-fg);
|
|
473
|
-
cursor: var(--studio-cursor-pointer, pointer);
|
|
474
|
-
opacity: 0.5;
|
|
475
|
-
transition: opacity var(--studio-transition-fast, 0.1s ease);
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
.context-sidebar__close:hover {
|
|
479
|
-
opacity: 1;
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
/* The mounted tool view. */
|
|
483
|
-
.context-sidebar__content {
|
|
484
|
-
flex: 1;
|
|
485
|
-
min-height: 0;
|
|
486
|
-
overflow: auto;
|
|
487
|
-
background: var(--context-sidebar-content-bg);
|
|
488
|
-
contain: content;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
.context-sidebar__content patchwork-view {
|
|
492
|
-
display: block;
|
|
493
|
-
width: 100%;
|
|
494
|
-
height: 100%;
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
/* Left sidebar body: a stack of widgets with the account footer pinned below. */
|
|
498
|
-
.threepane-sidebar {
|
|
499
|
-
display: flex;
|
|
500
|
-
flex-direction: column;
|
|
501
|
-
width: 100%;
|
|
502
|
-
height: 100%;
|
|
503
|
-
min-height: 0;
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
/* Reserve the docked tray's height at the sidebar's bottom so the account bar
|
|
507
|
-
sits above the tray (which is pinned outside this collapsing column). */
|
|
508
|
-
.threepane-sidebar--has-tray {
|
|
509
|
-
padding-bottom: calc(
|
|
510
|
-
var(--threepane-tray-height) + env(safe-area-inset-bottom, 0px)
|
|
511
|
-
);
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
/* account / packages / settings footer, pinned to the sidebar bottom */
|
|
515
|
-
.threepane-sidebar--has-tray .threepane-sidebar__footer {
|
|
516
|
-
flex: none;
|
|
517
|
-
margin-bottom: calc(var(--threepane-tray-height) + env(safe-area-inset-bottom, 0px));
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
/* The inlined account bar: avatar (account picker) + Packages + Settings. */
|
|
521
|
-
.threepane-account-bar {
|
|
522
|
-
container-type: inline-size;
|
|
523
|
-
display: flex;
|
|
524
|
-
align-items: center;
|
|
525
|
-
gap: var(--threepane-space-md);
|
|
526
|
-
min-height: var(--threepane-space-2xl);
|
|
527
|
-
box-sizing: border-box;
|
|
528
|
-
background: var(--threepane-sidebar-fill);
|
|
529
|
-
color: var(--threepane-sidebar-fg);
|
|
530
|
-
border-top: var(--studio-border-width, 1px) var(--studio-border-style, solid) var(--threepane-sidebar-divider);
|
|
531
|
-
padding-block: var(--threepane-space-2xs);
|
|
532
|
-
padding-bottom: calc(var(--threepane-space-2xs) + env(safe-area-inset-bottom));
|
|
533
|
-
padding-left: calc(env(safe-area-inset-left) + var(--threepane-space-md));
|
|
534
|
-
padding-right: calc(env(safe-area-inset-right) + var(--threepane-space-md));
|
|
535
|
-
justify-content: space-between;
|
|
536
|
-
overflow: hidden;
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
.threepane-account-bar__button {
|
|
540
|
-
display: flex;
|
|
541
|
-
align-items: center;
|
|
542
|
-
border: var(--studio-border-width, 1px) var(--studio-border-style, solid) transparent;
|
|
543
|
-
padding-inline: var(--threepane-space-2xs);
|
|
544
|
-
padding-block: var(--threepane-space-3xs);
|
|
545
|
-
border-radius: var(--threepane-radius-xs);
|
|
546
|
-
background: transparent;
|
|
547
|
-
color: inherit;
|
|
548
|
-
font: inherit;
|
|
549
|
-
white-space: nowrap;
|
|
550
|
-
cursor: var(--studio-cursor-pointer, pointer);
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
.threepane-account-bar__button:hover {
|
|
554
|
-
border-color: var(--threepane-sidebar-divider);
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
.threepane-account-bar__avatar {
|
|
558
|
-
padding: 0;
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
.threepane-account-bar__avatar patchwork-view {
|
|
562
|
-
display: block;
|
|
563
|
-
width: 100%;
|
|
564
|
-
height: 100%;
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
/* Left sidebar: a stack of configured widgets. The widgets start below the
|
|
568
|
-
frame's top strip (the empty space matching the top bar), so the frame owns
|
|
569
|
-
that spacing rather than each widget reserving its own top margin. */
|
|
570
|
-
.threepane-widgets {
|
|
571
|
-
flex: 1;
|
|
572
|
-
display: flex;
|
|
573
|
-
flex-direction: column;
|
|
574
|
-
width: 100%;
|
|
575
|
-
min-height: 0;
|
|
576
|
-
padding-top: var(--threepane-header-height);
|
|
577
|
-
gap: 1rem;
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
.threepane-widget {
|
|
581
|
-
position: relative;
|
|
582
|
-
flex: 1;
|
|
583
|
-
min-height: 0;
|
|
584
|
-
overflow: hidden;
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
.threepane-widget patchwork-view {
|
|
588
|
-
display: block;
|
|
589
|
-
width: 100%;
|
|
590
|
-
height: 100%;
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
/* empty state: offer to add the document list */
|
|
594
|
-
.threepane-widgets__empty {
|
|
595
|
-
flex: 1;
|
|
596
|
-
display: flex;
|
|
597
|
-
align-items: flex-start;
|
|
598
|
-
justify-content: center;
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
.threepane-widgets__add {
|
|
602
|
-
padding: var(--threepane-space-xs) var(--threepane-space-sm);
|
|
603
|
-
border: var(--studio-border-width, 1px) dashed var(--threepane-sidebar-divider);
|
|
604
|
-
border-radius: var(--threepane-radius-sm);
|
|
605
|
-
background: transparent;
|
|
606
|
-
color: var(--threepane-muted);
|
|
607
|
-
font: inherit;
|
|
608
|
-
cursor: var(--studio-cursor-pointer, pointer);
|
|
609
|
-
white-space: nowrap;
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
.threepane-widgets__add:hover:not(:disabled) {
|
|
613
|
-
color: var(--threepane-sidebar-fg);
|
|
614
|
-
border-color: var(--threepane-sidebar-fg);
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
.threepane-widgets__add:disabled {
|
|
618
|
-
opacity: var(--studio-disabled-opacity, 0.5);
|
|
619
|
-
cursor: var(--studio-cursor-default, default);
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
/* System tray dock: pinned to the frame's bottom-left. Lives outside the
|
|
623
|
-
collapsing left sidebar so it isn't torn down when the sidebar closes. When
|
|
624
|
-
the sidebar is open the dock spans its width (set inline) and fills the space
|
|
625
|
-
reserved by \`threepane-sidebar--has-tray\`; when the sidebar closes the dock is
|
|
626
|
-
hidden (\`display: none\`) but stays mounted, so the tray is invisible while its
|
|
627
|
-
tools keep running. */
|
|
628
|
-
.frame__tray-dock {
|
|
629
|
-
position: absolute;
|
|
630
|
-
left: 0;
|
|
631
|
-
bottom: 0;
|
|
632
|
-
z-index: 4;
|
|
633
|
-
box-sizing: border-box;
|
|
634
|
-
/* Fade the tray in only *after* the sidebar's width animation completes, so it
|
|
635
|
-
doesn't flash at full size over the still-expanding sidebar. The delay equals
|
|
636
|
-
the sidebar's transition duration; collapsing overrides this to hide at once. */
|
|
637
|
-
opacity: 1;
|
|
638
|
-
transition: opacity var(--studio-transition-fast, 0.1s ease) 0.25s;
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
.frame__tray-dock--collapsed {
|
|
642
|
-
opacity: 0;
|
|
643
|
-
pointer-events: none;
|
|
644
|
-
/* Hide immediately on collapse \u2014 no wait, no fade. */
|
|
645
|
-
transition: opacity 0s;
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
/* A row of tray-tagged tools, filling the dock. */
|
|
649
|
-
.frame-tray {
|
|
650
|
-
display: flex;
|
|
651
|
-
align-items: center;
|
|
652
|
-
gap: var(--threepane-space-2xs);
|
|
653
|
-
box-sizing: border-box;
|
|
654
|
-
/* min-height includes the safe-area inset (border-box), and the matching
|
|
655
|
-
padding-bottom lifts the tray's contents clear of it while the tray's own
|
|
656
|
-
background fills the inset down to the very bottom edge. */
|
|
657
|
-
min-height: calc(
|
|
658
|
-
var(--threepane-tray-height) + env(safe-area-inset-bottom, 0px)
|
|
659
|
-
);
|
|
660
|
-
padding-inline: var(--threepane-space-sm);
|
|
661
|
-
padding-bottom: env(safe-area-inset-bottom, 0px);
|
|
662
|
-
border-top: var(--studio-border-width, 1px) var(--studio-border-style, solid) var(--threepane-sidebar-divider);
|
|
663
|
-
background: var(--threepane-sidebar-fill);
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
.frame-tray__item {
|
|
667
|
-
display: flex;
|
|
668
|
-
align-items: center;
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
.frame-tray patchwork-view {
|
|
672
|
-
display: flex;
|
|
673
|
-
width: auto;
|
|
674
|
-
height: auto;
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
/* Isolation-mode chrome popover.
|
|
678
|
-
In isolation the main document area is a sandboxed iframe, so host-realm tools
|
|
679
|
-
opened from the account bar (account picker / Packages / Settings) are floated
|
|
680
|
-
over the frame here instead of being routed into the iframe. The backdrop is a
|
|
681
|
-
lowish-opacity, theme-tinted ink wash (dims the frame + picks up the theme's
|
|
682
|
-
ink hue); the panel carries a soft drop shadow so it reads as lifted. Absolute
|
|
683
|
-
inset:0 resolves to the \`.frame\` (its nearest positioned ancestor). */
|
|
684
|
-
.frame__popover-backdrop {
|
|
685
|
-
position: absolute;
|
|
686
|
-
inset: 0;
|
|
687
|
-
z-index: var(--studio-layer-modal, 1000);
|
|
688
|
-
display: flex;
|
|
689
|
-
align-items: center;
|
|
690
|
-
justify-content: center;
|
|
691
|
-
padding: var(--threepane-space-2xl);
|
|
692
|
-
background: var(--studio-backdrop, color-mix(in oklch, var(--threepane-fg), transparent 82%));
|
|
693
|
-
animation: frame-popover-fade var(--studio-transition, 0.15s ease);
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
.frame__popover {
|
|
697
|
-
display: flex;
|
|
698
|
-
flex-direction: column;
|
|
699
|
-
width: min(1100px, 100%);
|
|
700
|
-
height: min(900px, 100%);
|
|
701
|
-
overflow: hidden;
|
|
702
|
-
background: var(--threepane-bg);
|
|
703
|
-
color: var(--threepane-fg);
|
|
704
|
-
border: var(--studio-border-width, 1px) var(--studio-border-style, solid) var(--threepane-toolbar-border);
|
|
705
|
-
border-radius: var(--threepane-radius-md);
|
|
706
|
-
box-shadow:
|
|
707
|
-
0 32px 80px color-mix(in oklch, var(--threepane-fg), transparent 45%),
|
|
708
|
-
0 12px 32px color-mix(in oklch, var(--threepane-fg), transparent 60%),
|
|
709
|
-
0 2px 8px color-mix(in oklch, var(--threepane-fg), transparent 70%);
|
|
710
|
-
animation: frame-popover-pop var(--studio-transition, 0.15s ease);
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
/* The "Open with" picker, docked to the popover's top. Sits at its natural
|
|
714
|
-
height above the tool body; the doc-openwith tool renders a small titlebar
|
|
715
|
-
button, so this is left-aligned chrome rather than a full-height view. */
|
|
716
|
-
.frame__popover-toolbar {
|
|
717
|
-
display: flex;
|
|
718
|
-
align-items: center;
|
|
719
|
-
flex: 0 0 auto;
|
|
720
|
-
gap: var(--threepane-space-sm);
|
|
721
|
-
padding: var(--threepane-space-sm) var(--threepane-space-md);
|
|
722
|
-
border-bottom: var(--studio-border-width, 1px) var(--studio-border-style, solid) var(--threepane-toolbar-border);
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
.frame__popover-toolbar patchwork-view {
|
|
726
|
-
display: block;
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
.frame__popover-body {
|
|
730
|
-
flex: 1 1 auto;
|
|
731
|
-
min-height: 0;
|
|
732
|
-
overflow: auto;
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
.frame__popover-body patchwork-view {
|
|
736
|
-
display: block;
|
|
737
|
-
width: 100%;
|
|
738
|
-
height: 100%;
|
|
739
|
-
overflow: auto;
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
@keyframes frame-popover-fade {
|
|
743
|
-
from {
|
|
744
|
-
opacity: 0;
|
|
745
|
-
}
|
|
746
|
-
to {
|
|
747
|
-
opacity: 1;
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
@keyframes frame-popover-pop {
|
|
752
|
-
from {
|
|
753
|
-
opacity: 0;
|
|
754
|
-
transform: translateY(8px) scale(0.98);
|
|
755
|
-
}
|
|
756
|
-
to {
|
|
757
|
-
opacity: 1;
|
|
758
|
-
transform: none;
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
.frame {
|
|
763
|
-
.sidebar-toggle {
|
|
764
|
-
position: relative;
|
|
765
|
-
align-self: stretch;
|
|
766
|
-
height: 100%;
|
|
767
|
-
padding: 0;
|
|
768
|
-
/* 1px wide, overlapping the divider border while reserving no layout column
|
|
769
|
-
(content stays flush against the view's border - no offset-bg seam). The
|
|
770
|
-
divider border is painted inside the following column, so a centered 2px
|
|
771
|
-
strip reads half a pixel left of the line. */
|
|
772
|
-
width: 1px;
|
|
773
|
-
margin-inline: 0 -1px;
|
|
774
|
-
margin-block: 0;
|
|
775
|
-
border: 0;
|
|
776
|
-
z-index: 1;
|
|
777
|
-
cursor: var(--studio-cursor-pointer, pointer);
|
|
778
|
-
/* transparent at rest - the visible divider is the main view's border; the
|
|
779
|
-
handle lights up (full-height glow + pill) on hover to signal resize. */
|
|
780
|
-
background: transparent;
|
|
781
|
-
transition: background-color var(--studio-transition, 0.15s ease);
|
|
782
|
-
/* invisible hit target straddling the divider. The toggle sits on opposite
|
|
783
|
-
edges of the two sidebars (right edge of the left pane, left edge of the
|
|
784
|
-
right pane). The grab area reaches 6px past the line on both sides, so it
|
|
785
|
-
works the same on either edge without per-side rules. */
|
|
786
|
-
&::before {
|
|
787
|
-
content: "";
|
|
788
|
-
position: absolute;
|
|
789
|
-
inset-block: 0;
|
|
790
|
-
inset-inline: -6px;
|
|
791
|
-
}
|
|
792
|
-
&::after {
|
|
793
|
-
content: "";
|
|
794
|
-
position: absolute;
|
|
795
|
-
top: 50%;
|
|
796
|
-
left: 50%;
|
|
797
|
-
width: 5px;
|
|
798
|
-
height: 44px;
|
|
799
|
-
border-radius: var(--threepane-radius-round);
|
|
800
|
-
background: var(--threepane-resize-pill);
|
|
801
|
-
opacity: 0;
|
|
802
|
-
transform: translate(-50%, -50%) scaleY(0.55);
|
|
803
|
-
transition: opacity var(--studio-transition, 0.15s ease),
|
|
804
|
-
transform var(--studio-transition, 0.15s ease);
|
|
805
|
-
pointer-events: none;
|
|
806
|
-
}
|
|
807
|
-
/* on hover the divider line lights up in the frame primary */
|
|
808
|
-
&:hover,
|
|
809
|
-
&:active {
|
|
810
|
-
background: var(--threepane-resize-glow);
|
|
811
|
-
}
|
|
812
|
-
&:hover::after,
|
|
813
|
-
&:active::after {
|
|
814
|
-
opacity: 1;
|
|
815
|
-
transform: translate(-50%, -50%) scaleY(1);
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
.sidebar-toggle--resizable {
|
|
820
|
-
cursor: var(--studio-cursor-resize-col, col-resize);
|
|
821
|
-
&:hover {
|
|
822
|
-
cursor: var(--studio-cursor-resize-col, col-resize);
|
|
823
|
-
}
|
|
824
|
-
&:active {
|
|
825
|
-
cursor: var(--studio-cursor-resize-col, col-resize);
|
|
826
|
-
}
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
/* Animate sidebar width on collapse/expand, but never while the handle is being
|
|
832
|
-
actively dragged - the width must track the pointer 1:1 with no easing lag.
|
|
833
|
-
The body flag is set for the duration of a drag by \`useSidebarResize\`. */
|
|
834
|
-
.sidebar {
|
|
835
|
-
transition: width var(--studio-transition-slow, 0.25s ease);
|
|
836
|
-
}
|
|
837
|
-
body[data-sidebar-resizing] .sidebar {
|
|
838
|
-
transition: none;
|
|
839
|
-
}
|
|
840
|
-
`;function pt(){let e="patchwork-frame-styles",r=document.getElementById(e);if(r){r.textContent!==re&&(r.textContent=re);return}let t=document.createElement("style");t.id=e,t.textContent=re,document.head.append(t)}var go=ft("<patchwork-view component=patchwork-isolation root-component=threepane-isolation-root shared-providers=patchwork:contact,patchwork:selected-doc,patchwork:worker-channel shared-tools=llm-config-tray style=display:contents><script type=application/json data-root-component-data>",!0,!1,!1),bo=ft("<div class=frame>");function rs(e){let r=ht(()=>{let o=new Set,n=e.selectedDocUrl();return n&&o.add(n),e.contactUrl&&o.add(e.contactUrl),[...o]}),t=ht(()=>JSON.stringify({selectedDocUrl:e.selectedDocUrl(),selectedToolId:e.selectedToolId(),doctitleSlots:e.doctitleSlots(),isLeftCollapsed:e.isLeftCollapsed(),initialRightWidth:e.initialRightWidth(),initialRightCollapsed:e.initialRightCollapsed()}));return(()=>{var o=go(),n=o.firstChild;return o._$owner=mo(),mt(n,t),fo(()=>uo(o,"automerge-allowlist",r().join(","))),o})()}function ut(e){if(!e?.textContent)return{};try{return JSON.parse(e.textContent)}catch(r){return console.error("[threepane-isolation-root] bad props JSON:",r),{}}}function os(e){pt();let r=e.querySelector('script[type="application/json"]'),[t,o]=vo(ut(r)),n=new MutationObserver(()=>{o(wo(ut(r)))});r&&n.observe(r,{characterData:!0,childList:!0,subtree:!0});let i=xo(()=>(()=>{var a=bo();return mt(a,ho(ct,{selectedDocUrl:()=>t.selectedDocUrl,selectedToolId:()=>t.selectedToolId,doctitleSlots:()=>t.doctitleSlots,isLeftCollapsed:()=>t.isLeftCollapsed??!1,initialRightWidth:()=>t.initialRightWidth??H,initialRightCollapsed:()=>t.initialRightCollapsed??!1})),a})(),e);return()=>{n.disconnect(),i()}}export{De as a,L as b,C as c,W as d,H as e,ye as f,Ce as g,Ct as h,ie as i,Ot as j,Ye as k,pe as l,oi as m,ni as n,it as o,ct as p,pt as q,rs as r,os as s};
|
|
841
|
-
//# sourceMappingURL=chunk-MSZ7JVNB.js.map
|