efficient-shell 10.4.0 → 10.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -1
- package/dist/{Browser-WZTJDJPT.js → Browser-EMNG4HTB.js} +14 -14
- package/dist/Calculator-QZCD6MHP.js +29 -0
- package/dist/{CurrencyConverter-MQ3OOVX4.js → CurrencyConverter-L4WCQBUO.js} +5 -5
- package/dist/{Documents-KZ2V5CYE.js → Documents-DEBV3IGR.js} +20 -20
- package/dist/{Files-KV3ZHSLP.js → Files-WMINXPW5.js} +88 -88
- package/dist/{Notepad-U2I5IPBD.js → Notepad-KM6GRBUP.js} +9 -9
- package/dist/{PomodoroTimer-CX677P57.js → PomodoroTimer-2Q5DXEYT.js} +6 -6
- package/dist/{Preview-VZIROQOT.js → Preview-OWM7JE4U.js} +23 -23
- package/dist/Sidebar-XMDORF77.js +44 -0
- package/dist/{Spreadsheet-676YI5OX.js → Spreadsheet-I7LUDZTI.js} +10 -10
- package/dist/{Stock-PWPUDMK2.js → Stock-CN4KZVHA.js} +3 -3
- package/dist/{Weather-3N3MSFQV.js → Weather-N3AC6Q5Z.js} +16 -16
- package/dist/{WorldClock-6QYLEBLL.js → WorldClock-YTNLKOSF.js} +5 -5
- package/dist/ai/index.d.ts +13 -4
- package/dist/ai/index.js +58 -59
- package/dist/ai.css +1 -1
- package/dist/apps/index.js +1 -1
- package/dist/bin/media-host-check.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/brand.css +1 -1
- package/dist/{chunk-37U326EL.js → chunk-235E63CP.js} +7 -7
- package/dist/{chunk-ULXCDM7Y.js → chunk-36R3R3IB.js} +4 -4
- package/dist/{chunk-OTGQYHVC.js → chunk-3BYLHJLC.js} +7 -7
- package/dist/{chunk-JQYNMUZW.js → chunk-3LPG6HMG.js} +1 -1
- package/dist/{chunk-A5BV6NFA.js → chunk-456CJCDK.js} +5 -5
- package/dist/{chunk-5S3YYN7M.js → chunk-47EYPWCB.js} +2 -2
- package/dist/{chunk-DDCMMOB4.js → chunk-4FX5FZ4Z.js} +1 -1
- package/dist/chunk-4GSSOUOI.js +29 -0
- package/dist/{chunk-573EHCD7.js → chunk-4X75SGTT.js} +46 -46
- package/dist/chunk-4YDCNWNU.js +3 -0
- package/dist/{chunk-ORIGX2H5.js → chunk-5NIA6CSZ.js} +4 -4
- package/dist/chunk-7QSDPSXP.js +1 -0
- package/dist/{chunk-6PFZK6ED.js → chunk-7SIH7VPC.js} +1 -1
- package/dist/{chunk-2K2W6VIR.js → chunk-7T4E6VMR.js} +1 -1
- package/dist/{chunk-YGSU5KCP.js → chunk-B4KKEVHL.js} +3 -3
- package/dist/{chunk-4WXF5E3O.js → chunk-BAPQOY7Q.js} +3 -3
- package/dist/{chunk-7X3XNVES.js → chunk-CNPEAHOY.js} +2 -2
- package/dist/{chunk-GNHLVGG5.js → chunk-CUO62I67.js} +3 -3
- package/dist/{chunk-QWWJUYZI.js → chunk-GBCH3UHD.js} +16 -16
- package/dist/{chunk-TVH7IZQ4.js → chunk-GKIU55T5.js} +2 -2
- package/dist/{chunk-ZZOBG6GP.js → chunk-I7EF6DW2.js} +13 -13
- package/dist/{chunk-IPFWXM2Y.js → chunk-ISJPW2FZ.js} +11 -11
- package/dist/{chunk-DLNIRZNR.js → chunk-JBOMPD3V.js} +1 -1
- package/dist/{chunk-LYIXZFMP.js → chunk-JDBMIY7R.js} +1 -1
- package/dist/{chunk-ZUS7FXKE.js → chunk-JGMQLQTE.js} +12 -12
- package/dist/chunk-KZMJE24J.js +5 -0
- package/dist/{chunk-XKDBYJHF.js → chunk-KZX25YEW.js} +1 -1
- package/dist/{chunk-QQPIQCT7.js → chunk-L3QNKCXH.js} +8 -8
- package/dist/chunk-LPSFFJFK.js +1 -0
- package/dist/{chunk-O45WQK57.js → chunk-M3OYHYIS.js} +1 -1
- package/dist/chunk-MJ6SYTFL.js +2 -0
- package/dist/chunk-NOYVZPAU.js +4 -0
- package/dist/chunk-O2GPQ2MX.js +1 -0
- package/dist/{chunk-G5NQOV7L.js → chunk-O6G72N3C.js} +4 -4
- package/dist/chunk-OTGZRL3G.js +2 -0
- package/dist/{chunk-EYZZW6SO.js → chunk-OYEAAX4A.js} +5 -5
- package/dist/chunk-P2HDCQBJ.js +1 -0
- package/dist/chunk-QZXN5IRK.js +3 -0
- package/dist/{chunk-JRZ7PPVJ.js → chunk-SKP66IK4.js} +4 -4
- package/dist/{chunk-SF654IHN.js → chunk-SW7ENSST.js} +12 -12
- package/dist/{chunk-3CPB3WP2.js → chunk-T2ULJNQP.js} +35 -35
- package/dist/{chunk-W6SC3ZNO.js → chunk-TEIJOFHO.js} +2 -2
- package/dist/{chunk-QTV3Y3UT.js → chunk-TFUIOEBX.js} +1 -1
- package/dist/chunk-UVA3BITM.js +2 -0
- package/dist/chunk-UWK5Q3R4.js +19 -0
- package/dist/{chunk-OKL56EZ5.js → chunk-V4W5BG4A.js} +1 -1
- package/dist/chunk-VRBDSUV5.js +2 -0
- package/dist/{chunk-PXDDCD5X.js → chunk-VZ4PBHFN.js} +1 -1
- package/dist/{chunk-YCOYCPAH.js → chunk-ZQKZCQJA.js} +3 -3
- package/dist/data/ListLoadError.js +1 -1
- package/dist/format/index.js +1 -1
- package/dist/forms/BorderInput.js +1 -1
- package/dist/forms/BrandAssetEditor.js +1 -1
- package/dist/forms/ColorPicker.js +1 -1
- package/dist/forms/ComposerAttachments.js +1 -1
- package/dist/forms/CornersInput.js +1 -1
- package/dist/forms/DisplayChips.js +1 -1
- package/dist/forms/IconPicker.js +1 -1
- package/dist/forms/InputNumber.js +1 -1
- package/dist/forms/LinkPicker.js +1 -1
- package/dist/forms/MediaLibrary.js +1 -1
- package/dist/forms/MediaUploadField.js +1 -1
- package/dist/forms/MediaUsedInList.js +1 -1
- package/dist/forms/PositionInput.js +1 -1
- package/dist/forms/Select.d.ts +1 -1
- package/dist/forms/Select.js +1 -1
- package/dist/forms/SidesInput.js +1 -1
- package/dist/forms/Slider.js +1 -1
- package/dist/forms/Snippet.js +1 -1
- package/dist/forms/SplitButton.js +1 -1
- package/dist/forms/TextToolbar.d.ts +1 -1
- package/dist/forms/TextToolbar.js +1 -1
- package/dist/forms/WidthsBar.js +1 -1
- package/dist/forms/textAlign.d.ts +1 -1
- package/dist/icons/efficient-glyphs.d.ts +1 -0
- package/dist/icons/efficient-glyphs.js +1 -1
- package/dist/icons/efficient-looks.d.ts +2 -0
- package/dist/icons/efficient-looks.js +1 -1
- package/dist/icons/efficient-meanings.d.ts +3 -2
- package/dist/icons/efficient-meanings.js +1 -1
- package/dist/icons/efficient.d.ts +1 -0
- package/dist/icons/efficient.js +1 -1
- package/dist/icons/glyphs/IconAtEndIcon.d.ts +8 -0
- package/dist/icons/glyphs/IconAtEndIcon.js +1 -0
- package/dist/icons/index.d.ts +2 -2
- package/dist/icons/index.js +1 -1
- package/dist/icons/looks/IconAtEndMiniIcon.d.ts +8 -0
- package/dist/icons/looks/IconAtEndMiniIcon.js +1 -0
- package/dist/icons/looks/IconAtEndSolidIcon.d.ts +8 -0
- package/dist/icons/looks/IconAtEndSolidIcon.js +1 -0
- package/dist/icons/looks/map.js +1 -1
- package/dist/icons/sets.js +1 -1
- package/dist/index.d.ts +41 -3
- package/dist/index.js +186 -186
- package/dist/map/index.js +1 -1
- package/dist/{names-C1TgIb_2.d.ts → names-CyfXNkce.d.ts} +1 -1
- package/dist/page-tabs/index.js +5 -5
- package/dist/shell/AppUpdateBanner.js +1 -1
- package/dist/shell/ConfirmDialog.js +1 -1
- package/dist/shell/ContextMenu.js +1 -1
- package/dist/shell/Dialog.js +1 -1
- package/dist/shell/Drawer.js +1 -1
- package/dist/shell/DropdownMenu.js +1 -1
- package/dist/shell/GlobalSearch.js +1 -1
- package/dist/shell/HelpCenter.js +1 -1
- package/dist/shell/ImageLightbox.js +1 -1
- package/dist/shell/LanguageSelect.js +1 -1
- package/dist/shell/Markdown.d.ts +1 -1
- package/dist/shell/Markdown.js +1 -1
- package/dist/shell/MilestoneTimeline.js +1 -1
- package/dist/shell/PopupMenu.js +1 -1
- package/dist/shell/ProductionTimeline.js +1 -1
- package/dist/shell/SearchableSelect.js +1 -1
- package/dist/shell/SettingRow.js +1 -1
- package/dist/shell/TimelineTrack.js +1 -1
- package/dist/shell/TopNav.js +1 -1
- package/dist/shell/discardGuard.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/templates/ChatTemplate.js +1 -1
- package/dist/templates/CheckoutTemplate.js +1 -1
- package/dist/templates/DataTablePage.js +1 -1
- package/dist/templates/EmailTemplate.js +1 -1
- package/dist/templates/FormLayoutPage.js +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/Calculator-S5OP2NS6.js +0 -29
- package/dist/Sidebar-QCUDD4OU.js +0 -44
- package/dist/chunk-7Z4PTLDL.js +0 -4
- package/dist/chunk-AM2F5ZXH.js +0 -2
- package/dist/chunk-ANDANM5V.js +0 -1
- package/dist/chunk-B73AXE6P.js +0 -1
- package/dist/chunk-GTNJAKFO.js +0 -29
- package/dist/chunk-LNWQBSYD.js +0 -5
- package/dist/chunk-N2K6OAFM.js +0 -1
- package/dist/chunk-N4DI5F74.js +0 -19
- package/dist/chunk-PKXQDCNR.js +0 -1
- package/dist/chunk-QEKOEIOQ.js +0 -3
- package/dist/chunk-WTTSB4SV.js +0 -3
- /package/dist/{chunk-KC54JQYK.js → chunk-EHPZIBOL.js} +0 -0
- /package/dist/{chunk-OW7MLJ3Y.js → chunk-S2P74CBN.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-
|
|
1
|
+
import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-JDBMIY7R.js";import{useWidgetSettings as n}from"./chunk-4X75SGTT.js";import"./chunk-CY5N5OA3.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-URERZUX5.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-RBQWIHYD.js";import"./chunk-GBCH3UHD.js";import"./chunk-KZMJE24J.js";import"./chunk-QHOBK35Y.js";import"./chunk-3DVNXNTF.js";import"./chunk-S2P74CBN.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-PXQG5EIH.js";import"./chunk-UGTRSRIW.js";import"./chunk-CDAJKLGL.js";import"./chunk-KC3EX26K.js";import"./chunk-235E63CP.js";import"./chunk-5QFPTDQF.js";import"./chunk-URHGHXDN.js";import"./chunk-TXDA7TTP.js";import"./chunk-I4VIEGCX.js";import"./chunk-UQYNPYF4.js";import"./chunk-KKSVRIMP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-34URULVW.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-MVZRZTQP.js";import"./chunk-6XBWM453.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-F27JJHNJ.js";import"./chunk-TWVUQUUD.js";import"./chunk-4PAWQEXM.js";import"./chunk-C3QOHMR6.js";import{useState as r,useCallback as c}from"react";import{jsxs as s,Fragment as a,jsx as i}from"react/jsx-runtime";var o=["AAPL","MSFT","GOOGL","TSLA","NVDA"],m="stock_symbols",l="stock_appearance",h={AAPL:{price:229.87,change:1.42,changePct:.62},MSFT:{price:451.16,change:-2.31,changePct:-.51},GOOGL:{price:178.34,change:.89,changePct:.5},AMZN:{price:201.45,change:-1.08,changePct:-.53},TSLA:{price:248.92,change:6.74,changePct:2.78},NVDA:{price:134.81,change:-3.12,changePct:-2.26},META:{price:563.27,change:4.55,changePct:.81}},p=Object.keys(h);function u(){try{const e=JSON.parse(localStorage.getItem(m)||"");if(Array.isArray(e)&&e.length)return e.slice(0,8)}catch{}return o}var d=e=>`${e>=0?"+":""}${e.toFixed(2)}`;function g(){const[o,g]=r(u),[x,k]=r(()=>e(l)),[j,N]=r(!1),[b,f]=r([]),[y,v]=r(x),[A,P]=r(""),S=c(()=>{f([...o]),v({...x}),P(""),N(!0)},[o,x]);n(S);const D=()=>{const e=A.trim().toUpperCase();!e||b.includes(e)||b.length>=8||(f(t=>[...t,e]),P(""))},M=p.filter(e=>!b.includes(e));/* @__PURE__ */
|
|
2
2
|
return s(a,{children:[
|
|
3
3
|
/* @__PURE__ */i("div",{style:{backgroundColor:`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${x.activeOpacity/100})`,backdropFilter:x.activeBlur>0?`blur(${x.activeBlur}px)`:void 0},children:/* @__PURE__ */i("div",{className:"px-4 py-3",children:0===o.length?/* @__PURE__ */i("div",{className:"text-xs text-gray-500 text-center py-6",children:"No symbols yet — add some in settings."}):/* @__PURE__ */i("div",{className:"space-y-0.5",children:o.map(e=>{const t=h[e],n=(t?.change??0)>=0,r=t?t.change>0?"text-green-600":t.change<0?"text-red-600":"text-gray-500":"text-gray-400";/* @__PURE__ */
|
|
4
4
|
return s("div",{className:"flex items-center justify-between px-2 py-2 border-b border-gray-200 last:border-0",children:[
|
|
@@ -11,6 +11,6 @@ return s("div",{className:"flex items-center justify-between px-2 py-2 border-b
|
|
|
11
11
|
/* @__PURE__ */s("div",{className:"space-y-1 mb-2",children:[b.map((e,t)=>/* @__PURE__ */s("div",{className:"flex items-center justify-between py-1 px-2 bg-gray-50 rounded",children:[
|
|
12
12
|
/* @__PURE__ */i("span",{className:"text-sm font-semibold text-gray-700",children:e}),
|
|
13
13
|
/* @__PURE__ */i("button",{onClick:()=>f(e=>e.filter((e,n)=>n!==t)),className:"text-red-400 hover:text-red-600",children:"×"})]},t)),0===b.length&&/* @__PURE__ */i("p",{className:"text-2xs text-ink-faintest italic",children:"No symbols — add a ticker below."})]}),b.length<8?/* @__PURE__ */s("div",{className:"flex items-center gap-2",children:[
|
|
14
|
-
/* @__PURE__ */i("input",{value:A,onChange:e=>
|
|
15
|
-
/* @__PURE__ */i("button",{onClick:
|
|
14
|
+
/* @__PURE__ */i("input",{value:A,onChange:e=>P(e.target.value),onKeyDown:e=>{"Enter"===e.key&&D()},placeholder:"e.g. NVDA",className:"flex-1 bg-gray-50 border border-gray-200 rounded px-2 py-1 text-sm uppercase focus:outline-none focus:ring-1 focus:ring-blue-500"}),
|
|
15
|
+
/* @__PURE__ */i("button",{onClick:D,className:"text-sm font-medium text-blue-600 hover:text-blue-800 px-2",children:"+ Add"})]}):/* @__PURE__ */s("p",{className:"text-2xs text-ink-faintest italic",children:["Max ",8," symbols — remove one to add another."]}),M.length>0&&b.length<8&&/* @__PURE__ */i("div",{className:"flex flex-wrap gap-2 mt-2",children:M.map(e=>/* @__PURE__ */i("button",{onClick:()=>f(t=>t.length<8?[...t,e]:t),className:"text-2xs font-medium text-gray-600 bg-gray-100 hover:bg-gray-200 rounded px-2 py-0.5 transition-colors",children:e},e))}),
|
|
16
16
|
/* @__PURE__ */i("p",{className:"text-2xs text-ink-faintest mt-2",children:"Demo prices — static sample data, no live feed."})]})})]})}export{g as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{fetchCityWeather as e,getCondition as t,AVAILABLE_CITIES as a,toFahrenheit as r}from"./chunk-FBDZGO3V.js";import{loadAppearance as n,WidgetSettingsModal as i}from"./chunk-
|
|
1
|
+
import{fetchCityWeather as e,getCondition as t,AVAILABLE_CITIES as a,toFahrenheit as r}from"./chunk-FBDZGO3V.js";import{loadAppearance as n,WidgetSettingsModal as i}from"./chunk-JDBMIY7R.js";import{useWidgetSettings as s}from"./chunk-4X75SGTT.js";import"./chunk-CY5N5OA3.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-URERZUX5.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-RBQWIHYD.js";import"./chunk-GBCH3UHD.js";import"./chunk-KZMJE24J.js";import"./chunk-QHOBK35Y.js";import"./chunk-3DVNXNTF.js";import"./chunk-S2P74CBN.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-PXQG5EIH.js";import"./chunk-UGTRSRIW.js";import"./chunk-CDAJKLGL.js";import{useShellPrefs as o}from"./chunk-KC3EX26K.js";import"./chunk-235E63CP.js";import"./chunk-5QFPTDQF.js";import"./chunk-URHGHXDN.js";import"./chunk-TXDA7TTP.js";import"./chunk-I4VIEGCX.js";import"./chunk-UQYNPYF4.js";import"./chunk-KKSVRIMP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-34URULVW.js";import{LoadingSpinner as l}from"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-MVZRZTQP.js";import"./chunk-6XBWM453.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-F27JJHNJ.js";import"./chunk-TWVUQUUD.js";import"./chunk-4PAWQEXM.js";import"./chunk-C3QOHMR6.js";import{useState as c,useEffect as d,useCallback as m}from"react";import{jsx as p,jsxs as h,Fragment as u}from"react/jsx-runtime";var f="weather_city",y="weather_appearance",g={useFahrenheit:!1,showLocalTime:!0,use24Hour:!1};function x(){const e="undefined"!=typeof localStorage?localStorage.getItem(f):null;if(e&&a[e])return e;try{const e=JSON.parse(localStorage.getItem("weather_cities")||"");if(Array.isArray(e)&&e[0]&&a[e[0]])return localStorage.setItem(f,e[0]),e[0]}catch{}return function(){try{const e=Intl.DateTimeFormat().resolvedOptions().timeZone;for(const[t,r]of Object.entries(a))if(r.tz===e)return t}catch{}return"London"}()}var b=r;function w(e,t=!1){try{if(t){const t=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"2-digit",hour12:!1}).formatToParts(/* @__PURE__ */new Date),a=parseInt(t.find(e=>"hour"===e.type)?.value||"0"),r=parseInt(t.find(e=>"minute"===e.type)?.value||"0");return`${String(a).padStart(2,"0")}:${String(r).padStart(2,"0")}`}const a=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"2-digit",hour12:!0}).formatToParts(/* @__PURE__ */new Date),r=parseInt(a.find(e=>"hour"===e.type)?.value||"12"),n=parseInt(a.find(e=>"minute"===e.type)?.value||"0"),i=a.find(e=>"dayPeriod"===e.type)?.value||"";return`${r}:${String(n).padStart(2,"0")} ${i}`}catch{return""}}function v(){/* @__PURE__ */
|
|
2
2
|
return h("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[
|
|
3
3
|
/* @__PURE__ */p("div",{className:"absolute -top-5 -right-5 w-24 h-24",style:{animation:"wx-sun-rays 70s linear infinite"},children:/* @__PURE__ */p("svg",{viewBox:"0 0 100 100",className:"w-full h-full",children:Array.from({length:12}).map((e,t)=>/* @__PURE__ */p("rect",{x:49,y:3,width:2,height:14,rx:1,fill:"rgba(255, 232, 130, 0.55)",transform:`rotate(${30*t} 50 50)`},t))})}),
|
|
4
4
|
/* @__PURE__ */p("div",{className:"absolute top-1 right-1 w-10 h-10 rounded-full",style:{background:"radial-gradient(circle at 35% 35%, #fff8cc 0%, #ffd84a 55%, #ff9e2a 100%)",boxShadow:"0 0 18px 5px rgba(255, 200, 80, 0.55)",animation:"wx-sun-pulse 4.5s ease-in-out infinite"}})]})}function k(){const e=Array.from({length:16}).map((e,t)=>({left:(53*t+11)%95+"%",top:(37*t+9)%78+"%",size:1+13*t%3,delay:.41*t%4+"s",duration:2.5+7*t%5*.6+"s"}));/* @__PURE__ */
|
|
@@ -24,37 +24,37 @@ return h("div",{className:"absolute inset-0 overflow-hidden pointer-events-none"
|
|
|
24
24
|
/* @__PURE__ */p(j,{heavy:!0}),
|
|
25
25
|
/* @__PURE__ */p("div",{className:"absolute inset-0 bg-white",style:{animation:"wx-flash 6s ease-out infinite"}}),
|
|
26
26
|
/* @__PURE__ */p("div",{className:"absolute inset-y-0 right-1/3 flex items-center justify-center pointer-events-none",style:{animation:"wx-bolt 6s ease-out infinite"},children:/* @__PURE__ */p("svg",{viewBox:"0 0 18 60",className:"h-4/5",style:{filter:"drop-shadow(0 0 6px rgba(255, 240, 150, 0.95)) drop-shadow(0 0 14px rgba(255, 220, 90, 0.7))"},children:/* @__PURE__ */p("path",{d:"M11 0 L2 28 L8 30 L4 60 L16 24 L9 22 Z",fill:"rgba(255, 250, 200, 0.98)",stroke:"rgba(255, 255, 255, 0.9)",strokeWidth:.3})})})]})}function T(){/* @__PURE__ */
|
|
27
|
-
return p("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:Array.from({length:4}).map((e,t)=>/* @__PURE__ */p("div",{className:"absolute left-0 right-0",style:{top:10+22*t+"%",height:"14px",background:"linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 100%)",filter:"blur(2px)",animation:`wx-fog-drift ${10+3*t}s ease-in-out ${.7*t}s infinite alternate`}},t))})}function
|
|
28
|
-
/* @__PURE__ */p(N,{tone:t?"light":"dark"})]}):3===e?/* @__PURE__ */p(N,{tone:t?"light":"dark"}):45===e||48===e?/* @__PURE__ */p(T,{}):[51,53,61,80,81].includes(e)?/* @__PURE__ */p(j,{}):[55,63,65,82].includes(e)?/* @__PURE__ */p(j,{heavy:!0}):[71,73,75].includes(e)?/* @__PURE__ */p(S,{}):[95,96,99].includes(e)?/* @__PURE__ */p(D,{}):null}function
|
|
27
|
+
return p("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:Array.from({length:4}).map((e,t)=>/* @__PURE__ */p("div",{className:"absolute left-0 right-0",style:{top:10+22*t+"%",height:"14px",background:"linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 100%)",filter:"blur(2px)",animation:`wx-fog-drift ${10+3*t}s ease-in-out ${.7*t}s infinite alternate`}},t))})}function $({code:e,isDay:t}){return 0===e||1===e?/* @__PURE__ */p(t?v:k,{}):2===e?/* @__PURE__ */h(u,{children:[/* @__PURE__ */p(t?v:k,{}),
|
|
28
|
+
/* @__PURE__ */p(N,{tone:t?"light":"dark"})]}):3===e?/* @__PURE__ */p(N,{tone:t?"light":"dark"}):45===e||48===e?/* @__PURE__ */p(T,{}):[51,53,61,80,81].includes(e)?/* @__PURE__ */p(j,{}):[55,63,65,82].includes(e)?/* @__PURE__ */p(j,{heavy:!0}):[71,73,75].includes(e)?/* @__PURE__ */p(S,{}):[95,96,99].includes(e)?/* @__PURE__ */p(D,{}):null}function C(){const[r,v]=c(x),[k,N]=c(()=>n(y)),[j,S]=c(null),[D,T]=c(!0),[,C]=c(0);d(()=>{const e=setInterval(()=>C(e=>e+1),6e4);return()=>clearInterval(e)},[]);const[H,I]=c(!1),[A,F]=c(r),[L,M]=c(k),{prefs:X,save:B}=o(),J={...g,...X.weather_prefs??{}},[P,U]=c(J);s(m(()=>{F(r),M({...k}),U({...J}),I(!0)},[r,k,J])),d(()=>{let t=!1;return T(!0),e(r).then(e=>{t||(S(e),T(!1))}),()=>{t=!0}},[r]);const W=e=>J.useFahrenheit?`${b(e)}°F`:`${e}°`;if(D&&!j)/* @__PURE__ */
|
|
29
29
|
return p("div",{className:"flex items-center justify-center h-full bg-gradient-to-b from-sky-400 to-blue-500 rounded-lg text-on-accent/80 text-xs",style:{minHeight:110},children:/* @__PURE__ */p(l,{size:"sm",padding:"",label:"Loading"})});if(!j)/* @__PURE__ */
|
|
30
|
-
return p("div",{className:"flex items-center justify-center h-full bg-slate-700 rounded-lg text-white/80 text-xs",style:{minHeight:110},children:"Couldn't load weather"});const[
|
|
30
|
+
return p("div",{className:"flex items-center justify-center h-full bg-slate-700 rounded-lg text-white/80 text-xs",style:{minHeight:110},children:"Couldn't load weather"});const[Z,G,R]=t(j.code,j.isDay);/* @__PURE__ */
|
|
31
31
|
return h(u,{children:[
|
|
32
32
|
/* @__PURE__ */p("style",{children:"\n@keyframes wx-rain-a { 0% { transform: translate(0,-20px); opacity: 0; } 10% { opacity: 0.95; } 100% { transform: translate(8px,140px); opacity: 0; } }\n@keyframes wx-rain-b { 0% { transform: translate(0,-20px); opacity: 0; } 12% { opacity: 0.85; } 100% { transform: translate(12px,140px); opacity: 0; } }\n@keyframes wx-rain-c { 0% { transform: translate(0,-20px); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(5px,140px); opacity: 0; } }\n@keyframes wx-snow-a { 0% { transform: translate(0,-12px) rotate(0deg); opacity: 0; } 10% { opacity: 0.9; } 50% { transform: translate(10px,55px) rotate(180deg); } 100% { transform: translate(-4px,140px) rotate(360deg); opacity: 0; } }\n@keyframes wx-snow-b { 0% { transform: translate(0,-12px) rotate(0deg); opacity: 0; } 10% { opacity: 0.85; } 50% { transform: translate(-12px,55px) rotate(-180deg); } 100% { transform: translate(6px,140px) rotate(-360deg); opacity: 0; } }\n@keyframes wx-snow-c { 0% { transform: translate(0,-12px); opacity: 0; } 10% { opacity: 0.7; } 100% { transform: translate(2px,140px); opacity: 0; } }\n@keyframes wx-drift-cloud { 0% { transform: translateX(-40%); } 100% { transform: translateX(140%); } }\n@keyframes wx-twinkle { 0%, 100% { opacity: 0.25; transform: scale(1); } 50% { opacity: 1; transform: scale(1.6); } }\n@keyframes wx-flash { 0%, 86%, 100% { opacity: 0; } 87% { opacity: 0.95; } 88% { opacity: 0.15; } 89% { opacity: 0.85; } 90% { opacity: 0; } }\n@keyframes wx-bolt { 0%, 86%, 90%, 100% { opacity: 0; } 87% { opacity: 1; } 89% { opacity: 0.85; } }\n@keyframes wx-sun-pulse { 0%, 100% { transform: scale(1); opacity: 0.65; } 50% { transform: scale(1.12); opacity: 0.95; } }\n@keyframes wx-sun-rays { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }\n@keyframes wx-fog-drift { 0% { transform: translateX(-25%); opacity: 0.3; } 50% { opacity: 0.65; } 100% { transform: translateX(25%); opacity: 0.3; } }\n@keyframes wx-shooting-star { 0%, 95% { opacity: 0; transform: translate(0,0) scale(0); } 96% { opacity: 1; transform: translate(0,0) scale(1); } 100% { opacity: 0; transform: translate(40px,30px) scale(1); } }\n"}),
|
|
33
33
|
/* @__PURE__ */p("div",{className:"rounded-lg overflow-hidden",style:{backgroundColor:`rgba(15, 23, 42, ${k.activeOpacity/100})`,backdropFilter:k.activeBlur>0?`blur(${k.activeBlur}px)`:void 0},children:/* @__PURE__ */h("div",{className:`relative rounded-lg overflow-hidden text-white bg-gradient-to-br ${R}`,style:{height:110},children:[
|
|
34
|
-
/* @__PURE__ */p(
|
|
34
|
+
/* @__PURE__ */p($,{code:j.code,isDay:j.isDay}),
|
|
35
35
|
/* @__PURE__ */h("div",{className:"relative z-10 px-3 py-3 flex flex-col h-full justify-between",children:[
|
|
36
36
|
/* @__PURE__ */h("div",{className:"flex items-start justify-between gap-2",children:[
|
|
37
37
|
/* @__PURE__ */h("div",{className:"min-w-0 flex-1",children:[
|
|
38
|
-
/* @__PURE__ */p("div",{className:"text-base font-semibold leading-tight truncate drop-shadow-sm",children:j.city}),
|
|
39
|
-
/* @__PURE__ */p("div",{className:"text-3xl font-extralight leading-none tracking-tight tabular-nums shrink-0 drop-shadow-sm",children:
|
|
38
|
+
/* @__PURE__ */p("div",{className:"text-base font-semibold leading-tight truncate drop-shadow-sm",children:j.city}),J.showLocalTime&&/* @__PURE__ */p("div",{className:"text-2xs opacity-90 leading-tight tabular-nums drop-shadow-sm",children:w(j.timezone,J.use24Hour)})]}),
|
|
39
|
+
/* @__PURE__ */p("div",{className:"text-3xl font-extralight leading-none tracking-tight tabular-nums shrink-0 drop-shadow-sm",children:W(j.temp)})]}),
|
|
40
40
|
/* @__PURE__ */h("div",{className:"flex items-end justify-between gap-2",children:[
|
|
41
41
|
/* @__PURE__ */h("div",{className:"flex items-center gap-2 min-w-0",children:[
|
|
42
|
-
/* @__PURE__ */p("span",{className:"text-lg leading-none drop-shadow-sm",children:
|
|
43
|
-
/* @__PURE__ */p("span",{className:"text-2xs font-medium drop-shadow-sm truncate",children:
|
|
44
|
-
/* @__PURE__ */h("span",{className:"text-2xs opacity-90 tabular-nums drop-shadow-sm shrink-0",children:["H:",
|
|
45
|
-
/* @__PURE__ */h(i,{open:
|
|
42
|
+
/* @__PURE__ */p("span",{className:"text-lg leading-none drop-shadow-sm",children:G}),
|
|
43
|
+
/* @__PURE__ */p("span",{className:"text-2xs font-medium drop-shadow-sm truncate",children:Z})]}),
|
|
44
|
+
/* @__PURE__ */h("span",{className:"text-2xs opacity-90 tabular-nums drop-shadow-sm shrink-0",children:["H:",W(j.high)," L:",W(j.low)]})]})]})]})}),
|
|
45
|
+
/* @__PURE__ */h(i,{open:H,onClose:()=>I(!1),title:"Weather Settings",appearance:L,onAppearanceChange:M,onSave:()=>{v(A),N(L),B({weather_prefs:P}),localStorage.setItem(f,A),localStorage.setItem(y,JSON.stringify(L)),I(!1)},children:[
|
|
46
46
|
/* @__PURE__ */p("div",{className:"space-y-3",children:/* @__PURE__ */h("div",{children:[
|
|
47
47
|
/* @__PURE__ */p("h3",{className:"text-sm font-semibold text-gray-700 mb-2",children:"Display"}),
|
|
48
48
|
/* @__PURE__ */h("div",{className:"flex items-center gap-3 mb-2",children:[
|
|
49
49
|
/* @__PURE__ */p("span",{className:"text-sm text-gray-600 w-24",children:"Temperature"}),
|
|
50
|
-
/* @__PURE__ */p("div",{className:"flex gap-1",children:[{key:!1,label:"°C"},{key:!0,label:"°F"}].map(e=>/* @__PURE__ */p("button",{onClick:()=>
|
|
50
|
+
/* @__PURE__ */p("div",{className:"flex gap-1",children:[{key:!1,label:"°C"},{key:!0,label:"°F"}].map(e=>/* @__PURE__ */p("button",{onClick:()=>U(t=>({...t,useFahrenheit:e.key})),className:"px-3 py-1 text-xs font-medium rounded-lg border transition-colors "+(P.useFahrenheit===e.key?"bg-blue-600 text-white border-blue-600":"bg-white text-gray-700 border-gray-300 hover:bg-gray-50"),children:e.label},String(e.key)))})]}),
|
|
51
51
|
/* @__PURE__ */h("div",{className:"flex items-center gap-3 mb-2",children:[
|
|
52
52
|
/* @__PURE__ */p("span",{className:"text-sm text-gray-600 w-24",children:"Time Format"}),
|
|
53
|
-
/* @__PURE__ */p("div",{className:"flex gap-1",children:[{key:!1,label:"AM/PM"},{key:!0,label:"24H"}].map(e=>/* @__PURE__ */p("button",{onClick:()=>
|
|
53
|
+
/* @__PURE__ */p("div",{className:"flex gap-1",children:[{key:!1,label:"AM/PM"},{key:!0,label:"24H"}].map(e=>/* @__PURE__ */p("button",{onClick:()=>U(t=>({...t,use24Hour:e.key})),className:"px-3 py-1 text-xs font-medium rounded-lg border transition-colors "+(P.use24Hour===e.key?"bg-blue-600 text-white border-blue-600":"bg-white text-gray-700 border-gray-300 hover:bg-gray-50"),children:e.label},String(e.key)))})]}),
|
|
54
54
|
/* @__PURE__ */h("label",{className:"flex items-center gap-2 cursor-pointer",children:[
|
|
55
|
-
/* @__PURE__ */p("input",{type:"checkbox",checked:
|
|
55
|
+
/* @__PURE__ */p("input",{type:"checkbox",checked:P.showLocalTime,onChange:e=>U(t=>({...t,showLocalTime:e.target.checked})),className:"rounded border-gray-300 text-blue-600 h-3.5 w-3.5"}),
|
|
56
56
|
/* @__PURE__ */p("span",{className:"text-sm text-gray-600",children:"Show local time"})]})]})}),
|
|
57
57
|
/* @__PURE__ */h("div",{children:[
|
|
58
58
|
/* @__PURE__ */p("h3",{className:"text-sm font-semibold text-gray-700 mb-2",children:"City"}),
|
|
59
|
-
/* @__PURE__ */p("select",{value:
|
|
60
|
-
/* @__PURE__ */p("p",{className:"mt-1 text-2xs text-ink-faintest",children:"Auto-detected from your timezone; change if needed."})]})]})]})}export{
|
|
59
|
+
/* @__PURE__ */p("select",{value:A,onChange:e=>F(e.target.value),className:"w-full bg-surface-sunken border border-line rounded px-2 h-8 text-sm focus:outline-none focus:ring-1 focus:ring-blue-500",children:Object.keys(a).map(e=>/* @__PURE__ */p("option",{value:e,children:e},e))}),
|
|
60
|
+
/* @__PURE__ */p("p",{className:"mt-1 text-2xs text-ink-faintest",children:"Auto-detected from your timezone; change if needed."})]})]})]})}export{C as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{AVAILABLE_CITIES as e,fetchCityWeather as t,getCondition as n,toFahrenheit as r}from"./chunk-FBDZGO3V.js";import{loadAppearance as s,WidgetSettingsModal as i}from"./chunk-
|
|
1
|
+
import{AVAILABLE_CITIES as e,fetchCityWeather as t,getCondition as n,toFahrenheit as r}from"./chunk-FBDZGO3V.js";import{loadAppearance as s,WidgetSettingsModal as i}from"./chunk-JDBMIY7R.js";import{useWidgetSettings as a}from"./chunk-4X75SGTT.js";import"./chunk-CY5N5OA3.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-URERZUX5.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-RBQWIHYD.js";import"./chunk-GBCH3UHD.js";import"./chunk-KZMJE24J.js";import"./chunk-QHOBK35Y.js";import"./chunk-3DVNXNTF.js";import"./chunk-S2P74CBN.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-PXQG5EIH.js";import"./chunk-UGTRSRIW.js";import"./chunk-CDAJKLGL.js";import{useShellPrefs as c}from"./chunk-KC3EX26K.js";import"./chunk-235E63CP.js";import"./chunk-5QFPTDQF.js";import"./chunk-URHGHXDN.js";import"./chunk-TXDA7TTP.js";import"./chunk-I4VIEGCX.js";import"./chunk-UQYNPYF4.js";import"./chunk-KKSVRIMP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-34URULVW.js";import{LoadingSpinner as o}from"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-MVZRZTQP.js";import"./chunk-6XBWM453.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-F27JJHNJ.js";import"./chunk-TWVUQUUD.js";import"./chunk-4PAWQEXM.js";import"./chunk-C3QOHMR6.js";import{useState as m,useEffect as l,useCallback as h}from"react";import{jsxs as p,Fragment as u,jsx as d}from"react/jsx-runtime";var k="world_clock_appearance",g=["London","Shanghai","New York"];function j(){const{prefs:j,save:x}=c(),[b,f]=m(()=>s(k)),[y,N]=m(!1),[v,w]=m([]),[D,C]=m(b),T={useFahrenheit:!!j.weather_prefs?.useFahrenheit},[F,U]=m(T),[J,P]=m(()=>/* @__PURE__ */new Date);l(()=>{const e=setInterval(()=>P(/* @__PURE__ */new Date),3e4);return()=>clearInterval(e)},[]);const S=Object.fromEntries(Object.entries(e).map(([e,t])=>[t.tz,e])),W=j.world_clocks,H=(()=>{if(!Array.isArray(W)||0===W.length)return g;const t=[];for(const n of W){const r=e[n]?n:S[n];r&&!t.includes(r)&&t.push(r)}return t.length?t:g})(),[M,R]=m({}),[G,X]=m(!0);l(()=>{let e=!1;return X(!0),(async()=>{const n={};await Promise.all(H.map(async e=>{const r=await t(e);r&&(n[e]=r)})),e||(R(n),X(!1))})(),()=>{e=!0}},[H.join(",")]),a(h(()=>{w([...H]),C({...b}),U({...T}),N(!0)},[H.join(","),b,T.useFahrenheit]));const B=e=>T.useFahrenheit?`${r(e)}°`:`${e}°`;/* @__PURE__ */
|
|
2
2
|
return p(u,{children:[
|
|
3
|
-
/* @__PURE__ */d("div",{style:{backgroundColor:`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${b.activeOpacity/100})`,backdropFilter:b.activeBlur>0?`blur(${b.activeBlur}px)`:void 0},children:/* @__PURE__ */p("div",{className:"divide-y divide-gray-200",children:[
|
|
3
|
+
/* @__PURE__ */d("div",{style:{backgroundColor:`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${b.activeOpacity/100})`,backdropFilter:b.activeBlur>0?`blur(${b.activeBlur}px)`:void 0},children:/* @__PURE__ */p("div",{className:"divide-y divide-gray-200",children:[G&&H.every(e=>!M[e])&&/* @__PURE__ */d(o,{size:"sm",padding:"py-6",label:"Loading"}),H.map(t=>{const r=M[t],s=e[t]?.tz??"UTC",{time:i,ampm:a}=function(e,t){try{const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"2-digit",hour12:!0}).formatToParts(t),r=n.find(e=>"hour"===e.type)?.value||"12";return{time:`${r}:${n.find(e=>"minute"===e.type)?.value||"00"}`,ampm:(n.find(e=>"dayPeriod"===e.type)?.value||"").toUpperCase()}}catch{return{time:"",ampm:""}}}(s,J);if(!r)/* @__PURE__ */
|
|
4
4
|
return p("div",{className:"px-4 py-3",children:[
|
|
5
5
|
/* @__PURE__ */p("div",{className:"flex items-baseline justify-between gap-2",children:[
|
|
6
6
|
/* @__PURE__ */d("span",{className:"text-base font-semibold tracking-tight text-ink-strongest truncate",children:t}),
|
|
@@ -10,7 +10,7 @@ return p("div",{className:"px-4 py-3",children:[
|
|
|
10
10
|
return p("div",{className:"px-4 py-3",children:[
|
|
11
11
|
/* @__PURE__ */p("div",{className:"flex items-baseline justify-between gap-2",children:[
|
|
12
12
|
/* @__PURE__ */d("span",{className:"text-base font-semibold tracking-tight text-ink-strongest truncate",children:t}),
|
|
13
|
-
/* @__PURE__ */d("span",{className:"text-2xl font-extralight leading-none tabular-nums tracking-tight text-ink-strongest shrink-0",children:
|
|
13
|
+
/* @__PURE__ */d("span",{className:"text-2xl font-extralight leading-none tabular-nums tracking-tight text-ink-strongest shrink-0",children:B(r.temp)})]}),
|
|
14
14
|
/* @__PURE__ */p("div",{className:"flex items-center justify-between gap-2 mt-2 text-2xs",children:[
|
|
15
15
|
/* @__PURE__ */p("div",{className:"flex items-center gap-2 min-w-0 text-ink-faint",children:[
|
|
16
16
|
/* @__PURE__ */d("span",{className:"text-base leading-none shrink-0",children:m}),
|
|
@@ -18,8 +18,8 @@ return p("div",{className:"px-4 py-3",children:[
|
|
|
18
18
|
/* @__PURE__ */d("span",{className:"text-3xs font-medium ml-0.5 opacity-70",children:a})]}),
|
|
19
19
|
/* @__PURE__ */d("span",{className:"text-gray-300 shrink-0",children:"·"}),
|
|
20
20
|
/* @__PURE__ */d("span",{className:"truncate",children:c})]}),
|
|
21
|
-
/* @__PURE__ */p("span",{className:"tabular-nums text-gray-500 shrink-0",children:["H:",
|
|
22
|
-
/* @__PURE__ */p(i,{open:y,onClose:()=>N(!1),title:"World Clock Settings",appearance:D,onAppearanceChange:
|
|
21
|
+
/* @__PURE__ */p("span",{className:"tabular-nums text-gray-500 shrink-0",children:["H:",B(r.high)," L:",B(r.low)]})]})]},t)})]})}),
|
|
22
|
+
/* @__PURE__ */p(i,{open:y,onClose:()=>N(!1),title:"World Clock Settings",appearance:D,onAppearanceChange:C,onSave:()=>{0!==v.length&&(x({world_clocks:v,weather_prefs:{...j.weather_prefs??{},useFahrenheit:F.useFahrenheit}}),f(D),localStorage.setItem(k,JSON.stringify(D)),N(!1))},children:[
|
|
23
23
|
/* @__PURE__ */p("div",{children:[
|
|
24
24
|
/* @__PURE__ */d("h3",{className:"text-sm font-semibold text-gray-700 mb-2",children:"Display"}),
|
|
25
25
|
/* @__PURE__ */p("div",{className:"flex items-center gap-3 mb-2",children:[
|
package/dist/ai/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { UIMessage, FileUIPart } from 'ai';
|
|
4
|
-
import { b as IconName } from '../names-
|
|
4
|
+
import { b as IconName } from '../names-CyfXNkce.js';
|
|
5
5
|
import { MarkdownTableAction } from '../shell/Markdown.js';
|
|
6
6
|
|
|
7
7
|
/** The conversation the server keeps for this chat. `guestToken` is set for an
|
|
@@ -212,6 +212,8 @@ interface AssistantChatLabels {
|
|
|
212
212
|
approvalNeeded: string;
|
|
213
213
|
approve: string;
|
|
214
214
|
deny: string;
|
|
215
|
+
/** In place of Approve and Deny once the request has expired. */
|
|
216
|
+
approvalExpired: string;
|
|
215
217
|
approved: string;
|
|
216
218
|
declined: string;
|
|
217
219
|
toolFailed: string;
|
|
@@ -457,6 +459,9 @@ declare function AssistantChat(props: AssistantChatProps): react_jsx_runtime.JSX
|
|
|
457
459
|
|
|
458
460
|
interface MessageProps {
|
|
459
461
|
message: AssistantUIMessage;
|
|
462
|
+
/** In a chat several people share, the assistant's name: its answers are
|
|
463
|
+
* drawn like a colleague's message, on the left under that name. */
|
|
464
|
+
speaker?: string;
|
|
460
465
|
toolLabels: ToolLabels | undefined;
|
|
461
466
|
labels: AssistantChatLabels;
|
|
462
467
|
showReasoning: boolean;
|
|
@@ -487,7 +492,7 @@ interface MessageProps {
|
|
|
487
492
|
* server named a run for shows thumbs. */
|
|
488
493
|
onRate?: (runId: string, rating: AssistantAnswerRating | null) => Promise<void> | void;
|
|
489
494
|
}
|
|
490
|
-
declare function Message({ message, toolLabels, labels, showReasoning, showToolOutput, showUsage, live, onApprove, plans, userActions, tableActions, onLinkClick, onOpenAttachment, onOpenFile, renderDataPart, showCopy, answerActions, onRate }: MessageProps): react_jsx_runtime.JSX.Element | null;
|
|
495
|
+
declare function Message({ message, speaker, toolLabels, labels, showReasoning, showToolOutput, showUsage, live, onApprove, plans, userActions, tableActions, onLinkClick, onOpenAttachment, onOpenFile, renderDataPart, showCopy, answerActions, onRate }: MessageProps): react_jsx_runtime.JSX.Element | null;
|
|
491
496
|
|
|
492
497
|
interface ApprovalDecision {
|
|
493
498
|
approval_id: string;
|
|
@@ -619,7 +624,9 @@ interface ToolCallProps {
|
|
|
619
624
|
showOutput: boolean;
|
|
620
625
|
onApprove: (approvalId: string, approved: boolean) => void;
|
|
621
626
|
}
|
|
622
|
-
declare function ApprovalCard({ tool, toolLabels, labels, onApprove }: Omit<ToolCallProps, 'showOutput'>
|
|
627
|
+
declare function ApprovalCard({ tool, toolLabels, labels, onApprove, expiresAt, }: Omit<ToolCallProps, 'showOutput'> & {
|
|
628
|
+
expiresAt?: string;
|
|
629
|
+
}): react_jsx_runtime.JSX.Element;
|
|
623
630
|
declare function ToolStep({ tool, summary, toolLabels, labels, showOutput }: Omit<ToolCallProps, 'onApprove'> & {
|
|
624
631
|
/** The server's account of where this read's figures came from. */
|
|
625
632
|
summary?: ToolSummaryDataPart;
|
|
@@ -638,10 +645,12 @@ interface ApprovalProps {
|
|
|
638
645
|
labels: AssistantChatLabels;
|
|
639
646
|
toolLabels: ToolLabels | undefined;
|
|
640
647
|
onApprove: (approvalId: string, approved: boolean) => void;
|
|
648
|
+
/** When the server stops taking a decision (its `data-approval` part). */
|
|
649
|
+
expiresAt?: string;
|
|
641
650
|
}
|
|
642
651
|
/** One decision for the whole plan: every step, by its friendly name and
|
|
643
652
|
* inputs, then Approve or Deny. */
|
|
644
|
-
declare function PlanApprovalCard({ approvalId, plan, input, labels, toolLabels, onApprove }: ApprovalProps): react_jsx_runtime.JSX.Element;
|
|
653
|
+
declare function PlanApprovalCard({ approvalId, plan, input, labels, toolLabels, onApprove, expiresAt }: ApprovalProps): react_jsx_runtime.JSX.Element;
|
|
645
654
|
|
|
646
655
|
/** The chat's own words, English. Hosts translate through the `labels` prop. */
|
|
647
656
|
declare const DEFAULT_ASSISTANT_CHAT_LABELS: AssistantChatLabels;
|