efficient-shell 4.157.0 → 4.160.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 +41 -5
- package/dist/{Browser-PP7VID3N.js → Browser-3KOGROX7.js} +10 -10
- package/dist/{Calculator-5DF4PSEG.js → Calculator-QLJJ3ICT.js} +22 -22
- package/dist/{CurrencyConverter-BEI6UUDD.js → CurrencyConverter-3GTKDKHH.js} +6 -6
- package/dist/{Documents-CP2XWF7D.js → Documents-FDGF7QBQ.js} +1 -1
- package/dist/Files-TTSYOPVB.js +89 -0
- package/dist/Notepad-ITHIATP2.js +25 -0
- package/dist/{PomodoroTimer-3BDFGHC6.js → PomodoroTimer-CRKL26PP.js} +25 -25
- package/dist/{Preview-5ANRQG57.js → Preview-GZTTEZWS.js} +5 -5
- package/dist/{Sidebar-H6R3AK5G.js → Sidebar-ECJEQXFK.js} +19 -19
- package/dist/{Spreadsheet-SRQT2MJP.js → Spreadsheet-PFKZTLSI.js} +12 -12
- package/dist/{Stock-PEZB3WXV.js → Stock-NAHSVLAJ.js} +3 -3
- package/dist/{Weather-6EJFJQIX.js → Weather-AY3QWBQT.js} +9 -9
- package/dist/{WorldClock-5BMGEL2A.js → WorldClock-AXNMA4PG.js} +6 -6
- package/dist/apps/index.js +1 -1
- package/dist/brand.css +1 -1
- package/dist/{chunk-ZHPA74NY.js → chunk-A6FPBD7W.js} +1 -1
- package/dist/chunk-GF2XCISN.js +1 -0
- package/dist/{chunk-KAESEFKM.js → chunk-HQTSPK5Q.js} +1 -1
- package/dist/{chunk-ELCH5NDO.js → chunk-JK3IIJN5.js} +6 -6
- package/dist/chunk-LCB4IVEL.js +942 -0
- package/dist/chunk-S2AZZGFF.js +1 -0
- package/dist/chunk-VNEH2Y6H.js +9 -0
- package/dist/{chunk-LGDG4YMF.js → chunk-VRW5JNMR.js} +6 -6
- package/dist/{chunk-XC64WV33.js → chunk-X6E6UULK.js} +75 -75
- package/dist/{chunk-DRN636EP.js → chunk-XPSADW6W.js} +1 -1
- package/dist/chunk-YKZGKYVT.js +2 -0
- package/dist/format/index.d.ts +1 -0
- package/dist/format/index.js +1 -0
- package/dist/{index-Cap9oGrA.d.ts → index-Brl0XepS.d.ts} +49 -43
- package/dist/index-DCUzlKPZ.d.ts +194 -0
- package/dist/index.d.ts +25 -3
- package/dist/index.js +645 -645
- package/dist/page-tabs/index.js +5 -5
- package/dist/ui/index.d.ts +2 -1
- package/dist/ui/index.js +1 -1
- package/dist/ui.css +7 -0
- package/package.json +6 -1
- package/dist/Files-ZSAHZBB5.js +0 -89
- package/dist/Notepad-AUHWLOXO.js +0 -25
- package/dist/chunk-ARMUS5GB.js +0 -1
- package/dist/chunk-J7LKJIZC.js +0 -9
- package/dist/chunk-MVLIXV7C.js +0 -2
- package/dist/chunk-WWRFM2YF.js +0 -940
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{VERSION as e}from"./chunk-
|
|
1
|
+
import{VERSION as e}from"./chunk-GF2XCISN.js";import{useWindowMenuItem as t,Modal as r}from"./chunk-X6E6UULK.js";import{navIcons as o}from"./chunk-6UXY7MPY.js";import{useState as n,useCallback as s,isValidElement as i,cloneElement as a}from"react";import{jsx as l,jsxs as d}from"react/jsx-runtime";var c={spreadsheet:{name:"Spreadsheets",version:"1.1.3",route:"/spreadsheet",description:"Multi-sheet spreadsheet editor with CSV / TSV import and export."},notepad:{name:"Notepad",version:"1.0.1",route:"/notepad",description:"Color-coded notes with checklists, desktop stickies and entity autolinking."},documents:{name:"Documents",version:"1.1.0",route:"/documents",description:"Letter-page editor for Word documents and plain-text files — images, lists, alignment."},preview:{name:"Preview",version:"1.4.1",route:"/preview",description:"Viewer for PDF documents, images, DXF drawings and 3D models — CAD-style measuring with object snap and an AutoCAD-like command bar."},files:{name:"Files",version:"1.1.1",route:"/files",description:"Personal file manager with folders, uploads, quota, trash and desktop shortcut folders."},browser:{name:"Browser",version:"1.0.1",route:"/browser",description:"Minimal web browser with bookmarks, history and navigation bar."}},m=/* @__PURE__ */l("svg",{className:"h-4 w-4 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:/* @__PURE__ */l("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"})}),p=/* @__PURE__ */l("svg",{className:"h-9 w-9",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:/* @__PURE__ */l("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75A2.25 2.25 0 016 4.5h12a2.25 2.25 0 012.25 2.25v10.5A2.25 2.25 0 0118 19.5H6a2.25 2.25 0 01-2.25-2.25V6.75z M3.75 9h16.5"})});function h({app:h}){const u=c[h],[x,f]=n(!1),g=s(()=>f(!0),[]);if(t(`About ${u.name}`,g,m),!x)return null;const v=o[u.route],w=i(v)?a(v,{className:"h-9 w-9"}):p;/* @__PURE__ */
|
|
2
2
|
return l(r,{open:!0,onClose:()=>f(!1),title:`About ${u.name}`,size:"sm",compact:!0,bodyScroll:!1,autoHeight:!0,dimensions:[320,320],children:/* @__PURE__ */d("div",{className:"flex flex-col items-center text-center px-5 pt-5 pb-4",children:[
|
|
3
3
|
/* @__PURE__ */l("div",{className:"flex h-16 w-16 items-center justify-center rounded-2xl bg-gray-100 text-gray-600 shrink-0",children:w}),
|
|
4
4
|
/* @__PURE__ */l("h2",{className:"mt-3 text-lg font-bold text-gray-900",children:u.name}),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r="4.160.0",a=r;export{a as APP_VERSION,r as VERSION};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{client_default as a}from"./chunk-
|
|
1
|
+
import{client_default as a}from"./chunk-X6E6UULK.js";var e=()=>a.get("/auth/numbering-configs/").then(a=>a.data?.results??a.data??[]),t="uploaded:wallpaper";function r(a,e){return"string"!=typeof a||!a||"none"===a||a.startsWith("#")?"":a===t?e||"":a}var p=()=>a.get("/auth/me/wallpaper/").then(a=>a.data),n=e=>{const t=new FormData;return t.append("wallpaper",e),a.post("/auth/me/wallpaper/",t).then(a=>a.data)},l=()=>a.delete("/auth/me/wallpaper/").then(a=>a.data);function s(a){const e=a?.response?.status,t=a?.response?.data,r=Array.isArray(t?.wallpaper)?t.wallpaper[0]:void 0;return r||(413===e?"That picture is too large to use as a wallpaper.":415===e?"That file is not a picture this can use as a wallpaper.":"The wallpaper could not be saved. Please try again.")}export{t as WALLPAPER_PREF_TOKEN,l as deleteWallpaper,e as getNumberingConfigs,p as getWallpaper,n as uploadWallpaper,r as wallpaperSrc,s as wallpaperUploadError};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import{glassStyle as e}from"./chunk-
|
|
1
|
+
import{glassStyle as e}from"./chunk-VNEH2Y6H.js";import{useDismissPopupsOnOpen as r,Z_LAYERS as t}from"./chunk-OSJ3ADF2.js";import{useShellStrings as a}from"./chunk-VVI77XNV.js";import{useState as n,useEffect as l,useRef as o,useCallback as s}from"react";import{jsx as i,jsxs as d}from"react/jsx-runtime";import{createPortal as c}from"react-dom";var m={favicon:"h-8 w-8",compact:"h-10 w-10",wordmark:"h-10 w-40"};function h(e){return e.trim().charAt(0).toLocaleUpperCase()||"·"}function u(e,r,t){return!1===e?"framed":null==e||null==r?"plate-light":r?"light"===t?"plate-dark":"bare":"dark"===t?"plate-light":"bare"}var p={"plate-light":"bg-white shadow-[0_2px_12px_var(--rosh-mark-plate-shadow)]","plate-dark":"bg-neutral-900 shadow-[0_2px_12px_var(--rosh-mark-plate-shadow-strong)]",framed:"border border-black/10 shadow-[0_2px_12px_var(--rosh-mark-plate-shadow)]",bare:""};function g(e,r,t){return"bare"===e?{}:"framed"===e?{borderRadius:r}:{borderRadius:r,padding:t}}function b({src:e,fallbackSrc:r,fallbackHasAlpha:t=null,fallbackIsLight:a=null,fallbackAdaptive:o,alt:s,slot:d="compact",surface:c="light",size:b,width:x,height:f,decorative:y=!1,fallbackMode:v="monogram",adaptive:k=!1,hasAlpha:w=null,isLight:N=null,treatmentPadding:C=4,treatmentRadius:j=8,className:E="",style:L}){const[A,_]=n(e||r||"");l(()=>{_(e||r||"")},[e,r]);const $=Boolean(r&&A===r&&A!==e),D=($?o??k:k)?u($?t:w,$?a:N,c):"bare",B=["inline-flex shrink-0 items-center justify-center overflow-hidden",null==b&&null==x&&null==f?m[d]:"","dark"===c?"text-white":"text-gray-700",p[D],E].filter(Boolean).join(" "),K={...g(D,j,C),...null==b?{width:x,height:f}:{width:b,height:b},...L};return A?/* @__PURE__ */i("span",{className:B,"data-brand-treatment":D,style:K,children:/* @__PURE__ */i("img",{src:A,alt:y?"":s,"data-brand-slot":d,className:"block max-h-full max-w-full",style:{objectFit:"contain"},onError:()=>_(e=>r&&e!==r?r:"")})}):"none"===v?null:/* @__PURE__ */i("span",{"data-brand-fallback":!0,"data-brand-slot":d,"aria-label":y?void 0:s,"aria-hidden":y||void 0,role:y?void 0:"img",className:`${B} rounded-md bg-gray-100 font-semibold`,style:K,children:y?null:h(s)})}var x="M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z",f="react-os-shell:open-global-search";function y(){"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent(f))}function v({providers:m,typeIcons:h,placeholder:u,onSelect:p}={}){const g=a().search,b=u??g.placeholder,[y,v]=n(!1),[k,w]=n(""),[N,C]=n([]),[j,E]=n(!1),[L,A]=n(0),_=o(null),$=o(),D=o(function(){let e=0,r=null;const t=()=>{e+=1,r?.abort(),r=null};return{begin:()=>{t();const a=e,n=new AbortController;return r=n,{signal:n.signal,isCurrent:()=>a===e}},cancel:t}}());l(()=>{const e=e=>{(e.ctrlKey||e.metaKey)&&"k"===e.key&&(e.preventDefault(),v(e=>!e)),"Escape"===e.key&&y&&v(!1)},r=()=>v(!0);return window.addEventListener("keydown",e),window.addEventListener(f,r),()=>{window.removeEventListener("keydown",e),window.removeEventListener(f,r)}},[y]),r(y),l(()=>{y?setTimeout(()=>_.current?.focus(),50):(w(""),C([]))},[y]),l(()=>{const e=D.current;return $.current&&clearTimeout($.current),k.length<2||!m||0===m.length?(e.cancel(),C([]),void E(!1)):($.current=setTimeout(async()=>{const r=e.begin();E(!0);const t=await Promise.all(m.map(async e=>{try{return await e(k,{signal:r.signal})}catch{return[]}}));r.isCurrent()&&(C(t.flat()),A(0),E(!1))},250),()=>{$.current&&clearTimeout($.current),e.cancel()})},[k,m]);const B=s(e=>{v(!1),p?.(e)},[p]);return y?c(
|
|
2
2
|
/* @__PURE__ */d("div",{"data-global-search":"",className:"fixed inset-0 flex items-start justify-center pt-[15vh]",style:{zIndex:t.overlay},onClick:()=>v(!1),children:[
|
|
3
3
|
/* @__PURE__ */i("div",{"data-global-search-backdrop":"",className:"absolute inset-0 bg-black/50 backdrop-blur-sm"}),
|
|
4
4
|
/* @__PURE__ */d("div",{className:"relative z-10 w-full max-w-xl rounded-2xl overflow-hidden",onClick:e=>e.stopPropagation(),style:e(),children:[
|
|
5
5
|
/* @__PURE__ */d("div",{className:"flex items-center gap-3 px-4 py-3 border-b border-gray-200",children:[
|
|
6
|
-
/* @__PURE__ */i("svg",{className:"h-5 w-5 text-gray-400 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:/* @__PURE__ */i("path",{strokeLinecap:"round",strokeLinejoin:"round",d:
|
|
7
|
-
/* @__PURE__ */i("input",{ref:
|
|
6
|
+
/* @__PURE__ */i("svg",{className:"h-5 w-5 text-gray-400 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:/* @__PURE__ */i("path",{strokeLinecap:"round",strokeLinejoin:"round",d:x})}),
|
|
7
|
+
/* @__PURE__ */i("input",{ref:_,type:"text",value:k,onChange:e=>w(e.target.value),onKeyDown:e=>{"ArrowDown"===e.key?(e.preventDefault(),A(e=>Math.min(e+1,N.length-1))):"ArrowUp"===e.key?(e.preventDefault(),A(e=>Math.max(e-1,0))):"Enter"===e.key&&N[L]&&B(N[L])},placeholder:b,className:"flex-1 text-sm bg-transparent border-0 rosh-focus-ring placeholder-gray-400"}),
|
|
8
8
|
/* @__PURE__ */i("kbd",{className:"hidden sm:inline-flex items-center rounded border border-gray-300 px-1.5 py-0.5 text-[10px] font-medium text-gray-400",children:g.escBadge})]}),
|
|
9
|
-
/* @__PURE__ */d("div",{className:"max-h-[50vh] overflow-y-auto",children:[j&&/* @__PURE__ */i("div",{className:"px-4 py-6 text-center text-sm text-gray-400",children:g.searching}),!j&&k.length>=2&&0===N.length&&/* @__PURE__ */i("div",{className:"px-4 py-6 text-center text-sm text-gray-400",children:g.noResults}),!j&&N.length>0&&/* @__PURE__ */i("ul",{className:"py-2",children:N.map((e,r)=>/* @__PURE__ */i("li",{children:/* @__PURE__ */d("button",{className:"flex items-center gap-3 w-full px-4 py-2.5 text-left transition-colors "+(r===
|
|
10
|
-
/* @__PURE__ */i("svg",{className:"h-4 w-4 text-gray-400 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:/* @__PURE__ */i("path",{strokeLinecap:"round",strokeLinejoin:"round",d:h?.[e.type]||
|
|
9
|
+
/* @__PURE__ */d("div",{className:"max-h-[50vh] overflow-y-auto",children:[j&&/* @__PURE__ */i("div",{className:"px-4 py-6 text-center text-sm text-gray-400",children:g.searching}),!j&&k.length>=2&&0===N.length&&/* @__PURE__ */i("div",{className:"px-4 py-6 text-center text-sm text-gray-400",children:g.noResults}),!j&&N.length>0&&/* @__PURE__ */i("ul",{className:"py-2",children:N.map((e,r)=>/* @__PURE__ */i("li",{children:/* @__PURE__ */d("button",{className:"flex items-center gap-3 w-full px-4 py-2.5 text-left transition-colors "+(r===L?"bg-blue-50":"hover:bg-gray-50"),onClick:()=>B(e),onMouseEnter:()=>A(r),children:[
|
|
10
|
+
/* @__PURE__ */i("svg",{className:"h-4 w-4 text-gray-400 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:/* @__PURE__ */i("path",{strokeLinecap:"round",strokeLinejoin:"round",d:h?.[e.type]||x})}),
|
|
11
11
|
/* @__PURE__ */d("div",{className:"flex-1 min-w-0",children:[
|
|
12
12
|
/* @__PURE__ */i("p",{className:"text-sm font-medium text-gray-900 truncate",children:e.label}),e.sub&&/* @__PURE__ */i("p",{className:"text-xs text-gray-400 truncate",children:e.sub})]}),
|
|
13
13
|
/* @__PURE__ */i("span",{className:"shrink-0 rounded-full bg-gray-100 px-2 py-0.5 text-[10px] font-medium text-gray-500",children:e.type})]})},`${e.type}-${e.label}-${r}`))}),!j&&k.length<2&&/* @__PURE__ */i("div",{className:"px-4 py-6 text-center text-sm text-gray-400",children:g.minChars(2)})]}),
|
|
@@ -19,4 +19,4 @@ import{glassStyle as e}from"./chunk-J7LKJIZC.js";import{useDismissPopupsOnOpen a
|
|
|
19
19
|
/* @__PURE__ */d("span",{className:"flex items-center gap-1",children:[
|
|
20
20
|
/* @__PURE__ */i("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:g.enterKey}),` ${g.open}`]})]}),
|
|
21
21
|
/* @__PURE__ */d("span",{className:"flex items-center gap-1",children:[
|
|
22
|
-
/* @__PURE__ */i("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:g.escKey}),` ${g.close}`]})]})]})]}),document.body):null}export{
|
|
22
|
+
/* @__PURE__ */i("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:g.escKey}),` ${g.close}`]})]})]})]}),document.body):null}export{b as BrandMark,v as GlobalSearch,y as openGlobalSearch,u as resolveBrandMarkTreatment};
|