efficient-shell 13.20.0 → 13.21.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 +10 -10
- package/dist/{Browser-XFEOOL5J.js → Browser-AE7OYSTS.js} +12 -12
- package/dist/{Calculator-V5SACDGQ.js → Calculator-QEQU3W2L.js} +11 -11
- package/dist/{CurrencyConverter-B3NWE6LM.js → CurrencyConverter-L22FF4ST.js} +7 -7
- package/dist/{Files-LRSNSZ5Y.js → Files-Y5UGT3RX.js} +77 -77
- package/dist/{Notepad-GGBFJNRE.js → Notepad-YZOEXYE3.js} +9 -9
- package/dist/{PomodoroTimer-XLPBKMWS.js → PomodoroTimer-6XHLOAJD.js} +64 -64
- package/dist/{Preview-CWGCGKR5.js → Preview-XQXSRAGY.js} +19 -19
- package/dist/{Stock-PRUMXULJ.js → Stock-36O4LW46.js} +3 -3
- package/dist/{Weather-FO5DVYQ4.js → Weather-BN6AJJ4S.js} +18 -18
- package/dist/{WorldClock-BYZ5BNLZ.js → WorldClock-TUVIRPTM.js} +6 -6
- package/dist/apps/index.js +1 -1
- package/dist/bin/browser-check.js +1 -1
- package/dist/bin/media-host-check.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/{chunk-XOCRRCCP.js → chunk-ABTVRB23.js} +1 -1
- package/dist/{chunk-IXJIHTUI.js → chunk-D4WO73XD.js} +29 -29
- package/dist/{chunk-JGKUENPD.js → chunk-H75CQD46.js} +1 -1
- package/dist/chunk-LZOKBMAF.js +1 -0
- package/dist/{chunk-YE2YU526.js → chunk-MUNP5Z24.js} +1 -1
- package/dist/{chunk-5EC62E65.js → chunk-SOXZRLSD.js} +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/useTheme.d.ts +1 -1
- package/dist/index.js +58 -58
- package/dist/telemetry/index.js +1 -1
- package/dist/tokens/colour.d.ts +2 -2
- package/dist/ui/index.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-VGUYAVDG.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{useWindowMenuItem as e,Modal as t}from"./chunk-
|
|
1
|
+
import{useWindowMenuItem as e,Modal as t}from"./chunk-D4WO73XD.js";import{navIcons as r}from"./chunk-4LXCCZDM.js";import{VERSION as n}from"./chunk-LZOKBMAF.js";import{Icon as s}from"./chunk-ISVODSRP.js";import{DEFAULT_SHELL_STRINGS as i,useShellStrings as o,splitAround as a}from"./chunk-IUVGHHR3.js";import{useState as l,useCallback as m,isValidElement as c,cloneElement as p}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";var h=i.aboutApp,x={notepad:{name:"Notepad",version:"1.1.0",route:"/notepad",description:h.notepad},preview:{name:"Preview",version:"1.5.1",route:"/preview",description:h.preview},files:{name:"Files",version:"2.0.1",route:"/files",description:h.files},browser:{name:"Browser",version:"1.0.3",route:"/browser",description:h.browser}},u=/* @__PURE__ */d(s,{name:"info",className:"h-4 w-4",strokeWidth:1.5}),w=/* @__PURE__ */d(s,{name:"window",className:"h-9 w-9",strokeWidth:1.5});function v({app:s}){const i=x[s],[h,v]=l(!1),N=m(()=>v(!0),[]),b=o().aboutApp,k=b.title(i.name);if(e(k,N,u),!h)return null;const g=r[i.route],y=c(g)?p(g,{className:"h-9 w-9"}):w,[j,D]=a(b.partOf);/* @__PURE__ */
|
|
2
2
|
return d(t,{open:!0,onClose:()=>v(!1),title:k,size:"sm",compact:!0,bodyScroll:!1,autoHeight:!0,dimensions:[320,320],children:/* @__PURE__ */f("div",{className:"flex flex-col items-center text-center px-5 pt-5 pb-4",children:[
|
|
3
3
|
/* @__PURE__ */d("div",{className:"flex h-16 w-16 items-center justify-center rounded-2xl bg-gray-100 text-gray-600 shrink-0",children:y}),
|
|
4
4
|
/* @__PURE__ */d("h2",{className:"mt-3 text-lg font-bold text-gray-900",children:i.name}),
|
|
@@ -6,4 +6,4 @@ return d(t,{open:!0,onClose:()=>v(!1),title:k,size:"sm",compact:!0,bodyScroll:!1
|
|
|
6
6
|
/* @__PURE__ */d("p",{className:"mt-2 text-xs text-gray-500 leading-relaxed",children:b[s]}),
|
|
7
7
|
/* @__PURE__ */f("div",{className:"mt-4 pt-3 border-t border-gray-200 w-full",children:[
|
|
8
8
|
/* @__PURE__ */f("p",{className:"text-2xs text-ink-faint",children:[j,
|
|
9
|
-
/* @__PURE__ */d("span",{className:"font-medium text-gray-700",children:"efficient-shell"}),
|
|
9
|
+
/* @__PURE__ */d("span",{className:"font-medium text-gray-700",children:"efficient-shell"}),D]}),n&&/* @__PURE__ */d("p",{className:"mt-0.5 text-2xs font-mono text-ink-faintest",children:b.shellVersion(n)})]})]})})}export{v as AboutApp,x as BUILTIN_APP_INFO};
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useLayoutEffect } from 'react';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The one home of the browser/server effect pick. It imports React and nothing
|
|
@@ -24,6 +24,6 @@ declare const IN_BROWSER: boolean;
|
|
|
24
24
|
* `useLayoutEffect` it meets, once per component per render. Chosen at module
|
|
25
25
|
* scope, so the hook order is the same on every render either way.
|
|
26
26
|
*/
|
|
27
|
-
declare const useBrowserLayoutEffect: typeof
|
|
27
|
+
declare const useBrowserLayoutEffect: typeof useLayoutEffect;
|
|
28
28
|
|
|
29
29
|
export { IN_BROWSER, useBrowserLayoutEffect };
|
package/dist/hooks/useTheme.d.ts
CHANGED
|
@@ -67,7 +67,7 @@ declare function applyThemePrefs(p: {
|
|
|
67
67
|
}): void;
|
|
68
68
|
declare function useTheme(): {
|
|
69
69
|
theme: Theme;
|
|
70
|
-
resolved: "
|
|
70
|
+
resolved: "dark" | "light" | "blue" | "green" | "grey" | "pink";
|
|
71
71
|
corners: Corners;
|
|
72
72
|
iconSet: string | null;
|
|
73
73
|
};
|