@agentsky/desktop-ui 0.4.80 → 0.4.82
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/dist/app.css +1 -1
- package/dist/app.js +1765 -1647
- package/dist/assets/web/lark.svg +1 -0
- package/dist/index.html +1 -1
- package/dist/quick-ask.html +2 -2
- package/dist/quick-ask.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" aria-hidden="true"><rect width="48" height="48" rx="14" fill="#3370FF"/><path d="M11 24.5c4.9-6.6 12.4-10.5 21.8-10.5h4.2c-2.6 6.4-6.9 11.4-13 14.6-4 2.1-8.4 3.3-13 3.4 1.9-1.1 3.6-2.5 5-4.1-2-.7-3.7-1.9-5-3.4Zm19.9-5.7c-1.7 2.2-4.4 4.4-8.2 6.3 1.7-.1 3.3-.5 4.8-1.2 2.3-1.1 4.4-3 6.3-5.5-1 .1-2 .3-2.9.4Z" fill="#fff"/></svg>
|
package/dist/index.html
CHANGED
package/dist/quick-ask.html
CHANGED
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
</button>
|
|
15
15
|
</form>
|
|
16
16
|
<div class="row">
|
|
17
|
-
<nav aria-label="Open in
|
|
17
|
+
<nav aria-label="Open in AgentSky">
|
|
18
18
|
<button type="button" data-view="new">New Chat</button>
|
|
19
19
|
<button type="button" data-view="settings">Settings</button>
|
|
20
20
|
</nav>
|
|
21
|
-
<p id="hint">Return to continue in
|
|
21
|
+
<p id="hint">Return to continue in AgentSky · Esc to close</p>
|
|
22
22
|
</div>
|
|
23
23
|
</main>
|
|
24
24
|
<script type="module" src="/quick-ask.js"></script>
|
package/dist/quick-ask.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var C="button, a[href], label, summary, [role='button'], [role='tab'], [role='switch'], [role='menuitem'], [role='option'], [role='treeitem'], [role='separator'], [data-tooltip], [data-tooltip-overflow]";function L(e){let a=e.getAttribute("data-tooltip");if(a!=null)return a.trim()||null;let t=(e.innerText??e.textContent??"").trim();return t?x(e)?e.getAttribute("data-tooltip-overflow")?.trim()||t:null:e.getAttribute("aria-label")?.trim()||null}function x(e){return[e,...e.querySelectorAll("*")].some(t=>t.scrollWidth>t.clientWidth+1&&getComputedStyle(t).textOverflow==="ellipsis")}function k(e,a,t=0){let i=e.top>40,c=Math.min(t/2+8,a/2);return{left:Math.min(Math.max(e.left+e.width/2,c),a-c),top:i?e.top-6:e.bottom+6,above:i}}function v(e=document){let a=e.defaultView,t=e.createElement("span");t.className="ui-tooltip",t.id="ui-tooltip-global",t.setAttribute("role","tooltip"),e.body.append(t);let i=null,c=null,r=()=>{i&&(a.clearInterval(c),i.getAttribute("aria-describedby")===t.id&&i.removeAttribute("aria-describedby"),i=null,t.classList.remove("is-open"))},p=n=>{if(n===i)return;r();let o=L(n);if(!o)return;i=n,t.textContent=o;let d=k(n.getBoundingClientRect(),a.innerWidth,t.offsetWidth);Object.assign(t.style,{left:`${d.left}px`,top:`${d.top}px`,translate:`-50% ${d.above?"-100%":"0"}`}),t.classList.add("is-open"),c=a.setInterval(()=>!n.isConnected&&r(),250),o!==n.getAttribute("aria-label")&&!n.hasAttribute("aria-describedby")&&n.setAttribute("aria-describedby",t.id)},f=n=>{let o=n instanceof a.Element?n.closest(C):null;return!o||o.closest(".ui-tooltip-anchor, [data-no-tooltip]")?null:o},b=[["mouseover",n=>{let o=f(n.target);o?p(o):r()}],["mouseout",n=>{i&&!i.contains(n.relatedTarget)&&r()}],["focusin",n=>{let o=f(n.target);o&&o.matches(":focus-visible")&&p(o)}],["focusout",r],["mousedown",r],["keydown",n=>{n.key==="Escape"&&r()}],["scroll",r],["wheel",r]];for(let[n,o]of b)e.addEventListener(n,o,!0);return a.addEventListener("blur",r),()=>{r();for(let[n,o]of b)e.removeEventListener(n,o,!0);a.removeEventListener("blur",r),t.remove()}}var y=[{value:"blue",label:"Blue",pantoneName:"Classic Blue",year:2020,pantone:"#0f4c81"},{value:"ultraviolet",label:"Violet",pantoneName:"Ultra Violet",year:2018,pantone:"#5f4b8b"},{value:"vivamagenta",label:"Magenta",pantoneName:"Viva Magenta",year:2023,pantone:"#bb2649"},{value:"peachfuzz",label:"Peach",pantoneName:"Peach Fuzz",year:2024,pantone:"#ffbe98"},{value:"mochamousse",label:"Mocha",pantoneName:"Mocha Mousse",year:2025,pantone:"#a47864"},{value:"greenery",label:"Greenery",pantoneName:"Greenery",year:2017,pantone:"#88b04b"},{value:"emerald",label:"Emerald",pantoneName:"Emerald",year:2013,pantone:"#009473"},{value:"clouddancer",label:"Cloud",pantoneName:"Cloud Dancer",year:2026,pantone:"#f0eee9"}],m="clouddancer";function h(e){let a=y.some(t=>t.value===e)?e:m;return a===m?delete document.documentElement.dataset.accent:document.documentElement.dataset.accent=a,a}var u=window.agentskyQuickAsk,N=document.getElementById("form"),s=document.getElementById("task"),E=document.getElementById("send"),l=document.getElementById("hint"),T=l.textContent;function g(e){l.textContent=e,l.setAttribute("role","alert"),l.classList.add("is-alert")}function w(){l.textContent=T,l.removeAttribute("role"),l.classList.remove("is-alert")}async function A(){let e=s.value.trim();if(e)try{await u.submit(e),s.value="",E.disabled=!0,w()}catch{g("Could not open AgentSky. Try again.")}}s.addEventListener("input",()=>{E.disabled=s.value.trim().length===0});s.addEventListener("keydown",e=>{e.key!=="Enter"||e.shiftKey||e.isComposing||(e.preventDefault(),A())});N.addEventListener("submit",e=>{e.preventDefault(),A()});document.addEventListener("keydown",e=>{e.key==="Escape"&&u.dismiss()});window.addEventListener("focus",()=>s.focus());v();for(let e of document.querySelectorAll("[data-view]"))e.addEventListener("click",()=>{u.open(e.dataset.view).then(w,()=>g("Could not open that. Try again."))});u.onAccent(h);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentsky/desktop-ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.82",
|
|
4
4
|
"description": "The AgentSky for Mac interface, prebuilt: the pages the app's windows show, served by the app's shell from this package's dist/.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"private": false,
|