react-os-shell 4.2.1 → 4.3.1
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 +5 -0
- package/dist/{Browser-JDPFFM43.js → Browser-674YMWMK.js} +6 -6
- package/dist/{Browser-JDPFFM43.js.map → Browser-674YMWMK.js.map} +1 -1
- package/dist/{Calculator-EIKUYW6O.js → Calculator-3ULKK5ZA.js} +5 -5
- package/dist/{Calculator-EIKUYW6O.js.map → Calculator-3ULKK5ZA.js.map} +1 -1
- package/dist/ConfirmDialog-XJP67AHR.js +4 -0
- package/dist/{ConfirmDialog-C25OKJZP.js.map → ConfirmDialog-XJP67AHR.js.map} +1 -1
- package/dist/{CurrencyConverter-PJUTWMCD.js → CurrencyConverter-JC2N7AY3.js} +5 -5
- package/dist/{CurrencyConverter-PJUTWMCD.js.map → CurrencyConverter-JC2N7AY3.js.map} +1 -1
- package/dist/{Documents-TIPUTUSS.js → Documents-MJKEUOOL.js} +6 -6
- package/dist/{Documents-TIPUTUSS.js.map → Documents-MJKEUOOL.js.map} +1 -1
- package/dist/{Files-Z6R3YGEB.js → Files-BTZMPTL6.js} +8 -8
- package/dist/{Files-Z6R3YGEB.js.map → Files-BTZMPTL6.js.map} +1 -1
- package/dist/{Notepad-NZXSKZ6I.js → Notepad-NGLFEJLA.js} +6 -6
- package/dist/{Notepad-NZXSKZ6I.js.map → Notepad-NGLFEJLA.js.map} +1 -1
- package/dist/{PomodoroTimer-K5NBAIVW.js → PomodoroTimer-RPCRTUKC.js} +6 -6
- package/dist/{PomodoroTimer-K5NBAIVW.js.map → PomodoroTimer-RPCRTUKC.js.map} +1 -1
- package/dist/{Preview-3F4LFED7.js → Preview-H4S427VB.js} +6 -6
- package/dist/{Preview-3F4LFED7.js.map → Preview-H4S427VB.js.map} +1 -1
- package/dist/{Sidebar-VF2IOOFX.js → Sidebar-E553SOXC.js} +4 -4
- package/dist/{Sidebar-VF2IOOFX.js.map → Sidebar-E553SOXC.js.map} +1 -1
- package/dist/{Spreadsheet-P2DB7LGI.js → Spreadsheet-2YYUKKSY.js} +6 -6
- package/dist/{Spreadsheet-P2DB7LGI.js.map → Spreadsheet-2YYUKKSY.js.map} +1 -1
- package/dist/{Stock-2XTWWH6K.js → Stock-YTQ2OYQ7.js} +5 -5
- package/dist/{Stock-2XTWWH6K.js.map → Stock-YTQ2OYQ7.js.map} +1 -1
- package/dist/{Weather-GCBITKTJ.js → Weather-4I4EFUJO.js} +5 -5
- package/dist/{Weather-GCBITKTJ.js.map → Weather-4I4EFUJO.js.map} +1 -1
- package/dist/{WorldClock-S52UINCL.js → WorldClock-7PZI7VRE.js} +5 -5
- package/dist/{WorldClock-S52UINCL.js.map → WorldClock-7PZI7VRE.js.map} +1 -1
- package/dist/apps/index.js +18 -18
- package/dist/chunk-3NZSR3ZG.js +20 -0
- package/dist/chunk-3NZSR3ZG.js.map +1 -0
- package/dist/{chunk-XIMGKR4G.js → chunk-ASRXGCSQ.js} +5 -5
- package/dist/{chunk-XIMGKR4G.js.map → chunk-ASRXGCSQ.js.map} +1 -1
- package/dist/{chunk-6Q4KYGMH.js → chunk-DKDD5KXG.js} +14 -3
- package/dist/chunk-DKDD5KXG.js.map +1 -0
- package/dist/chunk-K6MB36UJ.js +7 -0
- package/dist/{chunk-3S5NISAL.js.map → chunk-K6MB36UJ.js.map} +1 -1
- package/dist/{chunk-CWFH34LM.js → chunk-LBY7KH2W.js} +3 -3
- package/dist/{chunk-CWFH34LM.js.map → chunk-LBY7KH2W.js.map} +1 -1
- package/dist/{chunk-QAVN7ZV5.js → chunk-PMPJLVZV.js} +3 -3
- package/dist/{chunk-QAVN7ZV5.js.map → chunk-PMPJLVZV.js.map} +1 -1
- package/dist/{chunk-52RFL3OQ.js → chunk-QAKURGOG.js} +3 -3
- package/dist/{chunk-52RFL3OQ.js.map → chunk-QAKURGOG.js.map} +1 -1
- package/dist/{chunk-URHWXWZE.js → chunk-VA6M46NL.js} +274 -16
- package/dist/chunk-VA6M46NL.js.map +1 -0
- package/dist/{chunk-IGYB3NRR.js → chunk-YF2XNVGN.js} +3 -3
- package/dist/{chunk-IGYB3NRR.js.map → chunk-YF2XNVGN.js.map} +1 -1
- package/dist/index.d.ts +222 -1
- package/dist/index.js +53 -16
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/dist/ConfirmDialog-C25OKJZP.js +0 -4
- package/dist/chunk-3S5NISAL.js +0 -7
- package/dist/chunk-6Q4KYGMH.js.map +0 -1
- package/dist/chunk-ADJ3CERD.js +0 -31
- package/dist/chunk-ADJ3CERD.js.map +0 -1
- package/dist/chunk-URHWXWZE.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/shell/WidgetSettingsModal.tsx"],"names":[],"mappings":";;;AASO,IAAM,kBAAA,GAAuC,EAAE,aAAA,EAAe,EAAA,EAAI,iBAAiB,EAAA,EAAI,UAAA,EAAY,CAAA,EAAG,YAAA,EAAc,CAAA,EAAE;AAEtH,SAAS,eAAe,GAAA,EAA+B;AAC5D,EAAA,IAAI;AACF,IAAA,MAAM,QAAQ,IAAA,CAAK,KAAA,CAAM,aAAa,OAAA,CAAQ,GAAG,KAAK,EAAE,CAAA;AAExD,IAAA,IAAI,KAAA,CAAM,IAAA,IAAQ,IAAA,IAAQ,KAAA,CAAM,cAAc,IAAA,EAAM;AAClD,MAAA,KAAA,CAAM,aAAa,KAAA,CAAM,IAAA;AACzB,MAAA,KAAA,CAAM,eAAe,KAAA,CAAM,IAAA;AAC3B,MAAA,OAAO,KAAA,CAAM,IAAA;AAAA,IACf;AACA,IAAA,OAAO,EAAE,GAAG,kBAAA,EAAoB,GAAG,KAAA,EAAM;AAAA,EAC3C,CAAA,CAAA,MACM;AAAE,IAAA,OAAO,kBAAA;AAAA,EAAoB;AACrC;AAGe,SAAR,mBAAA,CAAqC,EAAE,IAAA,EAAM,OAAA,EAAS,OAAO,UAAA,EAAY,kBAAA,EAAoB,MAAA,EAAQ,QA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modal from './Modal';\n\nexport interface WidgetAppearance {\n activeOpacity: number;\n inactiveOpacity: number;\n activeBlur: number;\n inactiveBlur: number;\n}\n\nexport const DEFAULT_APPEARANCE: WidgetAppearance = { activeOpacity: 70, inactiveOpacity: 50, activeBlur: 0, inactiveBlur: 0 };\n\nexport function loadAppearance(key: string): WidgetAppearance {\n try {\n const saved = JSON.parse(localStorage.getItem(key) || '');\n // Migrate old single `blur` field to activeBlur/inactiveBlur\n if (saved.blur != null && saved.activeBlur == null) {\n saved.activeBlur = saved.blur;\n saved.inactiveBlur = saved.blur;\n delete saved.blur;\n }\n return { ...DEFAULT_APPEARANCE, ...saved };\n }\n catch { return DEFAULT_APPEARANCE; }\n}\n\n/** Reusable settings modal for widgets — renders appearance sliders + optional extra content above */\nexport default function WidgetSettingsModal({ open, onClose, title, appearance, onAppearanceChange, onSave, children }: {\n open: boolean;\n onClose: () => void;\n title: string;\n appearance: WidgetAppearance;\n onAppearanceChange: (a: WidgetAppearance) => void;\n onSave: () => void;\n children?: React.ReactNode;\n}) {\n if (!open) return null;\n\n const inp = 'w-full h-1.5 rounded-full appearance-none bg-gray-200 cursor-pointer accent-blue-500';\n const lbl = 'flex items-center justify-between text-xs text-gray-500';\n\n return (\n <div onPointerDown={e => e.stopPropagation()} onContextMenu={e => e.stopPropagation()}>\n <Modal open={open} onClose={onClose} title={title} size=\"sm\">\n <div className=\"space-y-4\">\n {children}\n\n {/* Appearance */}\n <div>\n <h3 className=\"text-sm font-semibold text-gray-700 mb-3\">Appearance</h3>\n <div className=\"grid grid-cols-2 gap-4\">\n <div>\n <div className=\"text-xs font-medium text-gray-600 mb-2\">Active</div>\n <div className=\"space-y-2\">\n <div>\n <div className={lbl}><span>Opacity</span><span>{appearance.activeOpacity}%</span></div>\n <input type=\"range\" min={20} max={100} value={appearance.activeOpacity}\n onChange={e => onAppearanceChange({ ...appearance, activeOpacity: +e.target.value })} className={inp} />\n </div>\n <div>\n <div className={lbl}><span>Blur</span><span>{appearance.activeBlur}px</span></div>\n <input type=\"range\" min={0} max={20} value={appearance.activeBlur}\n onChange={e => onAppearanceChange({ ...appearance, activeBlur: +e.target.value })} className={inp} />\n </div>\n </div>\n </div>\n <div>\n <div className=\"text-xs font-medium text-gray-600 mb-2\">Inactive</div>\n <div className=\"space-y-2\">\n <div>\n <div className={lbl}><span>Opacity</span><span>{appearance.inactiveOpacity}%</span></div>\n <input type=\"range\" min={20} max={100} value={appearance.inactiveOpacity}\n onChange={e => onAppearanceChange({ ...appearance, inactiveOpacity: +e.target.value })} className={inp} />\n </div>\n <div>\n <div className={lbl}><span>Blur</span><span>{appearance.inactiveBlur}px</span></div>\n <input type=\"range\" min={0} max={20} value={appearance.inactiveBlur}\n onChange={e => onAppearanceChange({ ...appearance, inactiveBlur: +e.target.value })} className={inp} />\n </div>\n </div>\n </div>\n </div>\n </div>\n\n {/* Actions */}\n <div className=\"flex gap-2 pt-2\">\n <button onClick={onSave}\n className=\"flex-1 text-sm font-medium py-2 rounded-lg bg-blue-600 text-white hover:bg-blue-700 transition\">Save</button>\n <button onClick={onClose}\n className=\"flex-1 text-sm font-medium py-2 rounded-lg border border-gray-300 text-gray-600 hover:bg-gray-50 transition\">Cancel</button>\n </div>\n </div>\n </Modal>\n </div>\n );\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { navIcons } from './chunk-
|
|
1
|
+
import { navIcons } from './chunk-DKDD5KXG.js';
|
|
2
2
|
import { isValidElement, cloneElement } from 'react';
|
|
3
3
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
4
|
|
|
@@ -167,5 +167,5 @@ function consumeFilesViewRequest() {
|
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
export { DesktopItemMiniIcon, FILES_OPEN_DESKTOP_FOLDER_EVENT, FILES_SHOW_TRASH_EVENT, FileIconTile, FolderGlyph, consumeFilesViewRequest, desktopItemTypeLabel, getDesktopFoldersSnapshot, peekFilesViewRequest, publishDesktopFolders, requestFilesDesktopFolderView, requestFilesTrashView, subscribeDesktopFolders };
|
|
170
|
-
//# sourceMappingURL=chunk-
|
|
171
|
-
//# sourceMappingURL=chunk-
|
|
170
|
+
//# sourceMappingURL=chunk-QAKURGOG.js.map
|
|
171
|
+
//# sourceMappingURL=chunk-QAKURGOG.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/shell/desktopIcons.tsx"],"names":[],"mappings":";;;;AAiBO,IAAM,cAAA,GAAiB;AAAA,EAC5B,2BAAA;AAAA,EACA,+BAAA;AAAA,EACA,6BAAA;AAAA,EACA,2BAAA;AAAA,EACA,0BAAA;AAAA,EACA,4BAAA;AAAA,EACA,8BAAA;AAAA,EACA,8BAAA;AAAA,EACA,4BAAA;AAAA,EACA,+BAAA;AAAA,EACA,8BAAA;AAAA,EACA,2BAAA;AAAA,EACA,0BAAA;AAAA,EACA,0BAAA;AAAA,EACA;AACF,CAAA;AAEO,SAAS,aAAa,IAAA,EAAsB;AACjD,EAAA,IAAI,CAAA,GAAI,CAAA;AACR,EAAA,KAAA,IAAS,CAAA,GAAI,CAAA,EAAG,CAAA,GAAI,IAAA,CAAK,MAAA,EAAQ,CAAA,EAAA,EAAK,CAAA,GAAA,CAAK,CAAA,IAAK,CAAA,IAAK,CAAA,GAAI,IAAA,CAAK,UAAA,CAAW,CAAC,CAAA;AAC1E,EAAA,OAAO,eAAe,IAAA,CAAK,GAAA,CAAI,CAAC,CAAA,GAAI,eAAe,MAAM,CAAA;AAC3D;AAGO,IAAM,kBAAA,GAA6C;AAAA,EACxD,KAAA,EAAO,eAAA;AAAA,EAAiB,cAAA,EAAgB,iBAAA;AAAA,EAAmB,OAAA,EAAS,gBAAA;AAAA,EACpE,MAAA,EAAQ,iBAAA;AAAA,EAAmB,YAAA,EAAc,iBAAA;AAAA,EAAmB,QAAA,EAAU,eAAA;AAAA,EACtE,WAAA,EAAa,eAAA;AAAA,EAAiB,OAAA,EAAS,eAAA;AAAA,EAAiB,KAAA,EAAO,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IAAM,eAAA,GAAkB,+BAAA;AACxB,IAAM,sBAAA,GAAyB;AAC/B,IAAM,+BAAA,GAAkC;AAExC,SAAS,qBAAA,GAAwB;AACtC,EAAA,IAAI,OAAO,WAAW,WAAA,EAAa;AACnC,EAAC,MAAA,CAAe,eAAe,CAAA,GAAI,OAAA;AACnC,EAAA,MAAA,CAAO,aAAA,CAAc,IAAI,WAAA,CAAY,sBAAsB,CAAC,CAAA;AAC9D;AAEO,SAAS,8BAA8B,QAAA,EAAkB;AAC9D,EAAA,IAAI,OAAO,WAAW,WAAA,EAAa;AACnC,EAAC,OAAe,eAAe,CAAA,GAAI,EAAE,IAAA,EAAM,kBAAkB,QAAA,EAAS;AACtE,EAAA,MAAA,CAAO,aAAA,CAAc,IAAI,WAAA,CAAY,+BAAA,EAAiC,EAAE,QAAQ,EAAE,QAAA,EAAS,EAAG,CAAC,CAAA;AACjG;AAKO,SAAS,oBAAA,GAAgD;AAC9D,EAAA,IAAI,OAAO,MAAA,KAAW,WAAA,EAAa,OAAO,IAAA;AAC1C,EAAA,MAAM,GAAA,GAAO,OAAe,eAAe,CAAA;AAC3C,EAAA,IAAI,GAAA,KAAQ,SAAS,OAAO,OAAA;AAC5B,EAAA,IAAI,GAAA,IAAO,OAAO,GAAA,KAAQ,QAAA,IAAY,GAAA,CAAI,IAAA,KAAS,gBAAA,IAAoB,OAAO,GAAA,CAAI,QAAA,KAAa,QAAA,EAAU,OAAO,GAAA;AAChH,EAAA,OAAO,IAAA;AACT;AAGO,SAAS,uBAAA,GAAmD;AACjE,EAAA,MAAM,MAAM,oBAAA,EAAqB;AACjC,EAAA,IAAI,OAAO,MAAA,KAAW,WAAA,EAAc,MAAA,CAAe,eAAe,CAAA,GAAI,IAAA;AACtE,EAAA,OAAO,GAAA;AACT","file":"chunk-52RFL3OQ.js","sourcesContent":["/**\n * Shared desktop-icon building blocks.\n *\n * Desktop.tsx renders the desktop surface; Files.tsx renders desktop shortcut\n * folders inside the Files app. Both import the icon tiles, entity-icon config\n * and the desktop-folder bridge from here so the surfaces never visually\n * diverge — and so Desktop and Files never import each other (that would be an\n * import cycle).\n */\nimport { isValidElement, cloneElement, type ReactElement, type ReactNode } from 'react';\nimport { navIcons } from '../shell-config/nav';\nimport type { PreviewFileKind } from '../utils/openPreviewFile';\n\n// ── Gradient tiles ──────────────────────────────────────────────────────────\n// Per-app colored tile background, shared by the mobile home grid and the\n// desktop \"page\" shortcuts. Tailwind's JIT scans the source so each gradient\n// class string must appear in full somewhere — keep them inline.\nexport const ICON_GRADIENTS = [\n 'from-blue-500 to-blue-700',\n 'from-indigo-500 to-purple-600',\n 'from-purple-500 to-pink-600',\n 'from-pink-500 to-rose-600',\n 'from-red-500 to-rose-600',\n 'from-orange-500 to-red-600',\n 'from-amber-500 to-orange-600',\n 'from-yellow-500 to-amber-500',\n 'from-lime-500 to-green-600',\n 'from-green-500 to-emerald-600',\n 'from-emerald-500 to-teal-600',\n 'from-teal-500 to-cyan-600',\n 'from-cyan-500 to-sky-600',\n 'from-sky-500 to-blue-600',\n 'from-violet-500 to-fuchsia-600',\n];\n\nexport function hashGradient(seed: string): string {\n let h = 0;\n for (let i = 0; i < seed.length; i++) h = (h << 5) - h + seed.charCodeAt(i);\n return ICON_GRADIENTS[Math.abs(h) % ICON_GRADIENTS.length];\n}\n\n// ── Entity icon config ──────────────────────────────────────────────────────\nexport const ENTITY_ICON_COLORS: Record<string, string> = {\n order: 'text-blue-600', purchase_order: 'text-purple-600', invoice: 'text-green-600',\n client: 'text-indigo-600', manufacturer: 'text-orange-600', shipment: 'text-teal-600',\n part_number: 'text-gray-600', project: 'text-pink-600', mould: 'text-red-600',\n design: 'text-cyan-600', brand: 'text-amber-600', price_sheet: 'text-emerald-600',\n folder: 'text-yellow-600', page: 'text-blue-500',\n};\nexport const ENTITY_ICONS: Record<string, string> = {\n order: 'SO', purchase_order: 'PO', invoice: 'INV', client: 'CLI',\n manufacturer: 'MFR', shipment: 'DN', part_number: 'PN', project: 'PRJ',\n mould: 'MLD', design: 'DSN', brand: 'BRD', price_sheet: 'PS',\n vendor_invoice: 'VI', vendor_payment: 'VP', warranty_claim: 'WC',\n qc_report: 'QC', vendor_shipment: 'GRN', bank_account: 'BA',\n wheel_finish: 'WF', weight_log: 'WL', production_progress: 'PP',\n vendor_price_sheet: 'VPS', proposal: 'PR', folder: 'FLD',\n};\n\n// Glyphs and colors for the auto-tracked preview shortcuts that live in the\n// Documents folder. Keyed by `fileKind`, not `entityType`.\nexport const PREVIEW_FILE_CODES: Record<PreviewFileKind, string> = {\n pdf: 'PDF', dxf: 'DXF', '3d': 'STP', image: 'IMG', csv: 'CSV',\n};\nexport const PREVIEW_FILE_COLORS: Record<PreviewFileKind, string> = {\n pdf: 'text-red-600', dxf: 'text-blue-600', '3d': 'text-purple-600',\n image: 'text-emerald-600', csv: 'text-green-600',\n};\n\nexport interface DesktopItem {\n entityType: string;\n entityId: string;\n label: string;\n x?: number;\n y?: number;\n folderId?: string; // if inside a folder\n // Legacy free-form position inside the old folder window (pixels, relative\n // to the folder body). Folders now open in the Files app, which lists items\n // in a table — kept so previously-persisted shortcuts keep parsing.\n folderX?: number;\n folderY?: number;\n // Set for `entityType: 'preview-file'` shortcuts auto-recorded when the\n // user previews a file. `filePath` is the server-relative path passed\n // back into `openPreviewFile` on shortcut click.\n filePath?: string;\n fileKind?: PreviewFileKind;\n}\n\n/** Solid amber folder — the exact glyph the Files app uses for folders, so\n * desktop folders and Files-app folders read as the same object. */\nexport function FolderGlyph({ className }: { className?: string }) {\n return (\n <svg className={className} fill=\"currentColor\" viewBox=\"0 0 24 24\">\n <path d=\"M2.25 7.125A2.25 2.25 0 014.5 4.875h4.504c.61 0 1.193.243 1.624.673l1.494 1.494a.75.75 0 00.53.22h7.098A2.25 2.25 0 0122 9.51v8.366A2.25 2.25 0 0119.75 20.125H4.25A2.25 2.25 0 012 17.875V7.125z\" />\n </svg>\n );\n}\n\n/** Page shortcuts reuse the consumer-registered nav icons; historically the\n * label was tried first, then the route. */\nfunction pageGlyph(entityId?: string, label?: string): ReactNode {\n return (label && navIcons[label]) || (entityId ? navIcons[entityId] : undefined);\n}\n\nconst PAGE_FALLBACK_GLYPH = (\n <svg className=\"h-7 w-7\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" strokeWidth={1.5}>\n <path strokeLinecap=\"round\" strokeLinejoin=\"round\" d=\"M3.75 6A2.25 2.25 0 016 3.75h2.25A2.25 2.25 0 0110.5 6v2.25a2.25 2.25 0 01-2.25 2.25H6a2.25 2.25 0 01-2.25-2.25V6z\" />\n </svg>\n);\n\n// Shared 48×48 tile used by the desktop icon renderer (and anything else\n// that needs a full-size shortcut tile), so all surfaces stay in sync.\nexport function FileIconTile({ entityType, isSelected, entityId, label, fileKind }: {\n entityType: string;\n isSelected: boolean;\n entityId?: string;\n label?: string;\n fileKind?: PreviewFileKind;\n}) {\n const isPreviewFile = entityType === 'preview-file' && fileKind;\n const previewColor = isPreviewFile ? PREVIEW_FILE_COLORS[fileKind!] : null;\n const previewCode = isPreviewFile ? PREVIEW_FILE_CODES[fileKind!] : null;\n if (entityType === 'folder') {\n return (\n <div className={`w-12 h-12 flex items-center justify-center ${isSelected ? 'rounded-lg bg-blue-400/30 ring-2 ring-blue-500' : ''}`}>\n <FolderGlyph className=\"h-12 w-12 text-amber-500 drop-shadow-[0_2px_3px_rgba(0,0,0,0.3)]\" />\n </div>\n );\n }\n if (entityType === 'page') {\n // App shortcut — colored gradient tile with the white nav glyph, same\n // treatment as the mobile home grid (and the same hash seed, the route,\n // so an app keeps its color across surfaces).\n const icon = pageGlyph(entityId, label);\n const gradient = hashGradient(entityId || label || 'page');\n return (\n <div className={`w-12 h-12 flex items-center justify-center ${isSelected ? 'rounded-lg bg-blue-400/30 ring-2 ring-blue-500' : ''}`}>\n <span className={`h-11 w-11 rounded-xl bg-gradient-to-br ${gradient} flex items-center justify-center text-white border border-white/30 drop-shadow-[0_2px_3px_rgba(0,0,0,0.3)]`}>\n {icon && isValidElement(icon)\n ? cloneElement(icon as ReactElement, { className: 'h-7 w-7 text-white' })\n : PAGE_FALLBACK_GLYPH}\n </span>\n </div>\n );\n }\n return (\n <div className={`w-12 h-12 relative flex items-center justify-center ${isSelected ? 'rounded-lg bg-blue-400/30 ring-2 ring-blue-500' : ''}`}>\n <svg className={`w-10 h-12 drop-shadow-[0_2px_3px_rgba(0,0,0,0.3)] ${previewColor ?? ENTITY_ICON_COLORS[entityType] ?? 'text-gray-500'}`} viewBox=\"0 0 40 48\" fill=\"none\">\n <path d=\"M4 0h22l10 10v34a4 4 0 01-4 4H4a4 4 0 01-4-4V4a4 4 0 014-4z\" fill=\"white\" fillOpacity=\"0.92\" />\n <path d=\"M26 0l10 10H30a4 4 0 01-4-4V0z\" fill=\"currentColor\" fillOpacity=\"0.2\" />\n <path d=\"M4 0h22l10 10v34a4 4 0 01-4 4H4a4 4 0 01-4-4V4a4 4 0 014-4z\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeOpacity=\"0.5\" />\n </svg>\n <span className={`absolute inset-0 flex items-center justify-center text-[9px] font-bold pt-2 ${previewColor ?? ENTITY_ICON_COLORS[entityType] ?? 'text-gray-600'}`}>\n {previewCode ?? ENTITY_ICONS[entityType] ?? entityType.slice(0, 3).toUpperCase()}\n </span>\n </div>\n );\n}\n\n/** Compact row icon for desktop shortcuts listed inside the Files app. */\nexport function DesktopItemMiniIcon({ item }: { item: DesktopItem }) {\n if (item.entityType === 'folder') {\n return <FolderGlyph className=\"h-4 w-4 shrink-0 text-amber-500\" />;\n }\n if (item.entityType === 'page') {\n const icon = pageGlyph(item.entityId, item.label);\n return (\n <span className={`h-4 w-4 rounded bg-gradient-to-br ${hashGradient(item.entityId || item.label || 'page')} flex items-center justify-center text-white shrink-0`}>\n {icon && isValidElement(icon)\n ? cloneElement(icon as ReactElement, { className: 'h-3 w-3 text-white' })\n : <span className=\"h-1.5 w-1.5 rounded-[2px] border border-white/80\" />}\n </span>\n );\n }\n const color = (item.entityType === 'preview-file' && item.fileKind\n ? PREVIEW_FILE_COLORS[item.fileKind]\n : ENTITY_ICON_COLORS[item.entityType]) ?? 'text-gray-400';\n return (\n <svg className={`h-4 w-4 shrink-0 ${color}`} fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" strokeWidth={1.5}>\n <path strokeLinecap=\"round\" strokeLinejoin=\"round\" d=\"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z\" />\n </svg>\n );\n}\n\n/** Short type tag shown in the Files-app listing of a desktop folder. */\nexport function desktopItemTypeLabel(item: DesktopItem): string {\n if (item.entityType === 'preview-file' && item.fileKind) return PREVIEW_FILE_CODES[item.fileKind];\n if (item.entityType === 'page') return 'App';\n if (item.entityType === 'folder') return 'Folder';\n return ENTITY_ICONS[item.entityType] ?? item.entityType.slice(0, 3).toUpperCase();\n}\n\n// ── Desktop-folder bridge ───────────────────────────────────────────────────\n//\n// Desktop folders are virtual — shortcut collections persisted in the user's\n// prefs, not directories on the file server. The Files app shows them anyway\n// (sidebar section + folder listing), so Desktop publishes its live folder\n// state here and Files subscribes via useSyncExternalStore. Mutations route\n// back through the callbacks so persistence stays in Desktop's host-aware\n// save path.\n\nexport interface DesktopFoldersSnapshot {\n folders: { id: string; name: string; itemCount: number }[];\n itemsByFolder: Record<string, DesktopItem[]>;\n /** Clear `folderId` on these shortcuts — they reappear on the desktop. */\n moveToDesktop: (items: DesktopItem[]) => void;\n /** Delete these shortcuts entirely. */\n removeShortcuts: (items: DesktopItem[]) => void;\n}\n\nlet desktopFoldersSnapshot: DesktopFoldersSnapshot | null = null;\nconst desktopFoldersListeners = new Set<() => void>();\n\nexport function publishDesktopFolders(next: DesktopFoldersSnapshot | null) {\n desktopFoldersSnapshot = next;\n desktopFoldersListeners.forEach(l => l());\n}\n\nexport function subscribeDesktopFolders(listener: () => void): () => void {\n desktopFoldersListeners.add(listener);\n return () => { desktopFoldersListeners.delete(listener); };\n}\n\nexport function getDesktopFoldersSnapshot(): DesktopFoldersSnapshot | null {\n return desktopFoldersSnapshot;\n}\n\n// ── Files-app view side channel ─────────────────────────────────────────────\n//\n// Used by the desktop Trash icon and desktop folders to open the Files app\n// on a specific view. Two cases handled:\n// 1) Files isn't open yet — the flag below is read once on first mount.\n// 2) Files is already open — the event tells the live instance to flip view.\n// The caller follows up with `openPage('/files')` either way.\n\nexport type FilesViewRequest = 'trash' | { view: 'desktop-folder'; folderId: string };\n\nexport const FILES_VIEW_FLAG = '__REACT_OS_SHELL_FILES_VIEW__';\nexport const FILES_SHOW_TRASH_EVENT = 'react-os-shell:files-show-trash';\nexport const FILES_OPEN_DESKTOP_FOLDER_EVENT = 'react-os-shell:files-open-desktop-folder';\n\nexport function requestFilesTrashView() {\n if (typeof window === 'undefined') return;\n (window as any)[FILES_VIEW_FLAG] = 'trash' satisfies FilesViewRequest;\n window.dispatchEvent(new CustomEvent(FILES_SHOW_TRASH_EVENT));\n}\n\nexport function requestFilesDesktopFolderView(folderId: string) {\n if (typeof window === 'undefined') return;\n (window as any)[FILES_VIEW_FLAG] = { view: 'desktop-folder', folderId } satisfies FilesViewRequest;\n window.dispatchEvent(new CustomEvent(FILES_OPEN_DESKTOP_FOLDER_EVENT, { detail: { folderId } }));\n}\n\n/** Read the pending view request without clearing it. Side-effect free so\n * it is safe inside a `useState` initializer (StrictMode double-invokes\n * those; a read-and-clear there would hand the second invocation null). */\nexport function peekFilesViewRequest(): FilesViewRequest | null {\n if (typeof window === 'undefined') return null;\n const raw = (window as any)[FILES_VIEW_FLAG];\n if (raw === 'trash') return 'trash';\n if (raw && typeof raw === 'object' && raw.view === 'desktop-folder' && typeof raw.folderId === 'string') return raw;\n return null;\n}\n\n/** Read-and-clear the pending view request (Files calls this once mounted). */\nexport function consumeFilesViewRequest(): FilesViewRequest | null {\n const req = peekFilesViewRequest();\n if (typeof window !== 'undefined') (window as any)[FILES_VIEW_FLAG] = null;\n return req;\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/shell/desktopIcons.tsx"],"names":[],"mappings":";;;;AAiBO,IAAM,cAAA,GAAiB;AAAA,EAC5B,2BAAA;AAAA,EACA,+BAAA;AAAA,EACA,6BAAA;AAAA,EACA,2BAAA;AAAA,EACA,0BAAA;AAAA,EACA,4BAAA;AAAA,EACA,8BAAA;AAAA,EACA,8BAAA;AAAA,EACA,4BAAA;AAAA,EACA,+BAAA;AAAA,EACA,8BAAA;AAAA,EACA,2BAAA;AAAA,EACA,0BAAA;AAAA,EACA,0BAAA;AAAA,EACA;AACF,CAAA;AAEO,SAAS,aAAa,IAAA,EAAsB;AACjD,EAAA,IAAI,CAAA,GAAI,CAAA;AACR,EAAA,KAAA,IAAS,CAAA,GAAI,CAAA,EAAG,CAAA,GAAI,IAAA,CAAK,MAAA,EAAQ,CAAA,EAAA,EAAK,CAAA,GAAA,CAAK,CAAA,IAAK,CAAA,IAAK,CAAA,GAAI,IAAA,CAAK,UAAA,CAAW,CAAC,CAAA;AAC1E,EAAA,OAAO,eAAe,IAAA,CAAK,GAAA,CAAI,CAAC,CAAA,GAAI,eAAe,MAAM,CAAA;AAC3D;AAGO,IAAM,kBAAA,GAA6C;AAAA,EACxD,KAAA,EAAO,eAAA;AAAA,EAAiB,cAAA,EAAgB,iBAAA;AAAA,EAAmB,OAAA,EAAS,gBAAA;AAAA,EACpE,MAAA,EAAQ,iBAAA;AAAA,EAAmB,YAAA,EAAc,iBAAA;AAAA,EAAmB,QAAA,EAAU,eAAA;AAAA,EACtE,WAAA,EAAa,eAAA;AAAA,EAAiB,OAAA,EAAS,eAAA;AAAA,EAAiB,KAAA,EAAO,cAAA;AAAA,EAC/D,MAAA,EAAQ,eAAA;AAAA,EAAiB,KAAA,EAAO,gBAAA;AAAA,EAAkB,W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,SAAS,qBAAA,GAAwB;AACtC,EAAA,IAAI,OAAO,WAAW,WAAA,EAAa;AACnC,EAAC,MAAA,CAAe,eAAe,CAAA,GAAI,OAAA;AACnC,EAAA,MAAA,CAAO,aAAA,CAAc,IAAI,WAAA,CAAY,sBAAsB,CAAC,CAAA;AAC9D;AAEO,SAAS,8BAA8B,QAAA,EAAkB;AAC9D,EAAA,IAAI,OAAO,WAAW,WAAA,EAAa;AACnC,EAAC,OAAe,eAAe,CAAA,GAAI,EAAE,IAAA,EAAM,kBAAkB,QAAA,EAAS;AACtE,EAAA,MAAA,CAAO,aAAA,CAAc,IAAI,WAAA,CAAY,+BAAA,EAAiC,EAAE,QAAQ,EAAE,QAAA,EAAS,EAAG,CAAC,CAAA;AACjG;AAKO,SAAS,oBAAA,GAAgD;AAC9D,EAAA,IAAI,OAAO,MAAA,KAAW,WAAA,EAAa,OAAO,IAAA;AAC1C,EAAA,MAAM,GAAA,GAAO,OAAe,eAAe,CAAA;AAC3C,EAAA,IAAI,GAAA,KAAQ,SAAS,OAAO,OAAA;AAC5B,EAAA,IAAI,GAAA,IAAO,OAAO,GAAA,KAAQ,QAAA,IAAY,GAAA,CAAI,IAAA,KAAS,gBAAA,IAAoB,OAAO,GAAA,CAAI,QAAA,KAAa,QAAA,EAAU,OAAO,GAAA;AAChH,EAAA,OAAO,IAAA;AACT;AAGO,SAAS,uBAAA,GAAmD;AACjE,EAAA,MAAM,MAAM,oBAAA,EAAqB;AACjC,EAAA,IAAI,OAAO,MAAA,KAAW,WAAA,EAAc,MAAA,CAAe,eAAe,CAAA,GAAI,IAAA;AACtE,EAAA,OAAO,GAAA;AACT","file":"chunk-QAKURGOG.js","sourcesContent":["/**\n * Shared desktop-icon building blocks.\n *\n * Desktop.tsx renders the desktop surface; Files.tsx renders desktop shortcut\n * folders inside the Files app. Both import the icon tiles, entity-icon config\n * and the desktop-folder bridge from here so the surfaces never visually\n * diverge — and so Desktop and Files never import each other (that would be an\n * import cycle).\n */\nimport { isValidElement, cloneElement, type ReactElement, type ReactNode } from 'react';\nimport { navIcons } from '../shell-config/nav';\nimport type { PreviewFileKind } from '../utils/openPreviewFile';\n\n// ── Gradient tiles ──────────────────────────────────────────────────────────\n// Per-app colored tile background, shared by the mobile home grid and the\n// desktop \"page\" shortcuts. Tailwind's JIT scans the source so each gradient\n// class string must appear in full somewhere — keep them inline.\nexport const ICON_GRADIENTS = [\n 'from-blue-500 to-blue-700',\n 'from-indigo-500 to-purple-600',\n 'from-purple-500 to-pink-600',\n 'from-pink-500 to-rose-600',\n 'from-red-500 to-rose-600',\n 'from-orange-500 to-red-600',\n 'from-amber-500 to-orange-600',\n 'from-yellow-500 to-amber-500',\n 'from-lime-500 to-green-600',\n 'from-green-500 to-emerald-600',\n 'from-emerald-500 to-teal-600',\n 'from-teal-500 to-cyan-600',\n 'from-cyan-500 to-sky-600',\n 'from-sky-500 to-blue-600',\n 'from-violet-500 to-fuchsia-600',\n];\n\nexport function hashGradient(seed: string): string {\n let h = 0;\n for (let i = 0; i < seed.length; i++) h = (h << 5) - h + seed.charCodeAt(i);\n return ICON_GRADIENTS[Math.abs(h) % ICON_GRADIENTS.length];\n}\n\n// ── Entity icon config ──────────────────────────────────────────────────────\nexport const ENTITY_ICON_COLORS: Record<string, string> = {\n order: 'text-blue-600', purchase_order: 'text-purple-600', invoice: 'text-green-600',\n client: 'text-indigo-600', manufacturer: 'text-orange-600', shipment: 'text-teal-600',\n part_number: 'text-gray-600', project: 'text-pink-600', mould: 'text-red-600',\n design: 'text-cyan-600', brand: 'text-amber-600', price_sheet: 'text-emerald-600',\n folder: 'text-yellow-600', page: 'text-blue-500',\n};\nexport const ENTITY_ICONS: Record<string, string> = {\n order: 'SO', purchase_order: 'PO', invoice: 'INV', client: 'CLI',\n manufacturer: 'MFR', shipment: 'DN', part_number: 'PN', project: 'PRJ',\n mould: 'MLD', design: 'DSN', brand: 'BRD', price_sheet: 'PS',\n vendor_invoice: 'VI', vendor_payment: 'VP', warranty_claim: 'WC',\n qc_report: 'QC', vendor_shipment: 'GRN', bank_account: 'BA',\n wheel_finish: 'WF', weight_log: 'WL', production_progress: 'PP',\n vendor_price_sheet: 'VPS', proposal: 'PR', folder: 'FLD',\n};\n\n// Glyphs and colors for the auto-tracked preview shortcuts that live in the\n// Documents folder. Keyed by `fileKind`, not `entityType`.\nexport const PREVIEW_FILE_CODES: Record<PreviewFileKind, string> = {\n pdf: 'PDF', dxf: 'DXF', '3d': 'STP', image: 'IMG', csv: 'CSV',\n};\nexport const PREVIEW_FILE_COLORS: Record<PreviewFileKind, string> = {\n pdf: 'text-red-600', dxf: 'text-blue-600', '3d': 'text-purple-600',\n image: 'text-emerald-600', csv: 'text-green-600',\n};\n\nexport interface DesktopItem {\n entityType: string;\n entityId: string;\n label: string;\n x?: number;\n y?: number;\n folderId?: string; // if inside a folder\n // Legacy free-form position inside the old folder window (pixels, relative\n // to the folder body). Folders now open in the Files app, which lists items\n // in a table — kept so previously-persisted shortcuts keep parsing.\n folderX?: number;\n folderY?: number;\n // Set for `entityType: 'preview-file'` shortcuts auto-recorded when the\n // user previews a file. `filePath` is the server-relative path passed\n // back into `openPreviewFile` on shortcut click.\n filePath?: string;\n fileKind?: PreviewFileKind;\n}\n\n/** Solid amber folder — the exact glyph the Files app uses for folders, so\n * desktop folders and Files-app folders read as the same object. */\nexport function FolderGlyph({ className }: { className?: string }) {\n return (\n <svg className={className} fill=\"currentColor\" viewBox=\"0 0 24 24\">\n <path d=\"M2.25 7.125A2.25 2.25 0 014.5 4.875h4.504c.61 0 1.193.243 1.624.673l1.494 1.494a.75.75 0 00.53.22h7.098A2.25 2.25 0 0122 9.51v8.366A2.25 2.25 0 0119.75 20.125H4.25A2.25 2.25 0 012 17.875V7.125z\" />\n </svg>\n );\n}\n\n/** Page shortcuts reuse the consumer-registered nav icons; historically the\n * label was tried first, then the route. */\nfunction pageGlyph(entityId?: string, label?: string): ReactNode {\n return (label && navIcons[label]) || (entityId ? navIcons[entityId] : undefined);\n}\n\nconst PAGE_FALLBACK_GLYPH = (\n <svg className=\"h-7 w-7\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" strokeWidth={1.5}>\n <path strokeLinecap=\"round\" strokeLinejoin=\"round\" d=\"M3.75 6A2.25 2.25 0 016 3.75h2.25A2.25 2.25 0 0110.5 6v2.25a2.25 2.25 0 01-2.25 2.25H6a2.25 2.25 0 01-2.25-2.25V6z\" />\n </svg>\n);\n\n// Shared 48×48 tile used by the desktop icon renderer (and anything else\n// that needs a full-size shortcut tile), so all surfaces stay in sync.\nexport function FileIconTile({ entityType, isSelected, entityId, label, fileKind }: {\n entityType: string;\n isSelected: boolean;\n entityId?: string;\n label?: string;\n fileKind?: PreviewFileKind;\n}) {\n const isPreviewFile = entityType === 'preview-file' && fileKind;\n const previewColor = isPreviewFile ? PREVIEW_FILE_COLORS[fileKind!] : null;\n const previewCode = isPreviewFile ? PREVIEW_FILE_CODES[fileKind!] : null;\n if (entityType === 'folder') {\n return (\n <div className={`w-12 h-12 flex items-center justify-center ${isSelected ? 'rounded-lg bg-blue-400/30 ring-2 ring-blue-500' : ''}`}>\n <FolderGlyph className=\"h-12 w-12 text-amber-500 drop-shadow-[0_2px_3px_rgba(0,0,0,0.3)]\" />\n </div>\n );\n }\n if (entityType === 'page') {\n // App shortcut — colored gradient tile with the white nav glyph, same\n // treatment as the mobile home grid (and the same hash seed, the route,\n // so an app keeps its color across surfaces).\n const icon = pageGlyph(entityId, label);\n const gradient = hashGradient(entityId || label || 'page');\n return (\n <div className={`w-12 h-12 flex items-center justify-center ${isSelected ? 'rounded-lg bg-blue-400/30 ring-2 ring-blue-500' : ''}`}>\n <span className={`h-11 w-11 rounded-xl bg-gradient-to-br ${gradient} flex items-center justify-center text-white border border-white/30 drop-shadow-[0_2px_3px_rgba(0,0,0,0.3)]`}>\n {icon && isValidElement(icon)\n ? cloneElement(icon as ReactElement, { className: 'h-7 w-7 text-white' })\n : PAGE_FALLBACK_GLYPH}\n </span>\n </div>\n );\n }\n return (\n <div className={`w-12 h-12 relative flex items-center justify-center ${isSelected ? 'rounded-lg bg-blue-400/30 ring-2 ring-blue-500' : ''}`}>\n <svg className={`w-10 h-12 drop-shadow-[0_2px_3px_rgba(0,0,0,0.3)] ${previewColor ?? ENTITY_ICON_COLORS[entityType] ?? 'text-gray-500'}`} viewBox=\"0 0 40 48\" fill=\"none\">\n <path d=\"M4 0h22l10 10v34a4 4 0 01-4 4H4a4 4 0 01-4-4V4a4 4 0 014-4z\" fill=\"white\" fillOpacity=\"0.92\" />\n <path d=\"M26 0l10 10H30a4 4 0 01-4-4V0z\" fill=\"currentColor\" fillOpacity=\"0.2\" />\n <path d=\"M4 0h22l10 10v34a4 4 0 01-4 4H4a4 4 0 01-4-4V4a4 4 0 014-4z\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeOpacity=\"0.5\" />\n </svg>\n <span className={`absolute inset-0 flex items-center justify-center text-[9px] font-bold pt-2 ${previewColor ?? ENTITY_ICON_COLORS[entityType] ?? 'text-gray-600'}`}>\n {previewCode ?? ENTITY_ICONS[entityType] ?? entityType.slice(0, 3).toUpperCase()}\n </span>\n </div>\n );\n}\n\n/** Compact row icon for desktop shortcuts listed inside the Files app. */\nexport function DesktopItemMiniIcon({ item }: { item: DesktopItem }) {\n if (item.entityType === 'folder') {\n return <FolderGlyph className=\"h-4 w-4 shrink-0 text-amber-500\" />;\n }\n if (item.entityType === 'page') {\n const icon = pageGlyph(item.entityId, item.label);\n return (\n <span className={`h-4 w-4 rounded bg-gradient-to-br ${hashGradient(item.entityId || item.label || 'page')} flex items-center justify-center text-white shrink-0`}>\n {icon && isValidElement(icon)\n ? cloneElement(icon as ReactElement, { className: 'h-3 w-3 text-white' })\n : <span className=\"h-1.5 w-1.5 rounded-[2px] border border-white/80\" />}\n </span>\n );\n }\n const color = (item.entityType === 'preview-file' && item.fileKind\n ? PREVIEW_FILE_COLORS[item.fileKind]\n : ENTITY_ICON_COLORS[item.entityType]) ?? 'text-gray-400';\n return (\n <svg className={`h-4 w-4 shrink-0 ${color}`} fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" strokeWidth={1.5}>\n <path strokeLinecap=\"round\" strokeLinejoin=\"round\" d=\"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z\" />\n </svg>\n );\n}\n\n/** Short type tag shown in the Files-app listing of a desktop folder. */\nexport function desktopItemTypeLabel(item: DesktopItem): string {\n if (item.entityType === 'preview-file' && item.fileKind) return PREVIEW_FILE_CODES[item.fileKind];\n if (item.entityType === 'page') return 'App';\n if (item.entityType === 'folder') return 'Folder';\n return ENTITY_ICONS[item.entityType] ?? item.entityType.slice(0, 3).toUpperCase();\n}\n\n// ── Desktop-folder bridge ───────────────────────────────────────────────────\n//\n// Desktop folders are virtual — shortcut collections persisted in the user's\n// prefs, not directories on the file server. The Files app shows them anyway\n// (sidebar section + folder listing), so Desktop publishes its live folder\n// state here and Files subscribes via useSyncExternalStore. Mutations route\n// back through the callbacks so persistence stays in Desktop's host-aware\n// save path.\n\nexport interface DesktopFoldersSnapshot {\n folders: { id: string; name: string; itemCount: number }[];\n itemsByFolder: Record<string, DesktopItem[]>;\n /** Clear `folderId` on these shortcuts — they reappear on the desktop. */\n moveToDesktop: (items: DesktopItem[]) => void;\n /** Delete these shortcuts entirely. */\n removeShortcuts: (items: DesktopItem[]) => void;\n}\n\nlet desktopFoldersSnapshot: DesktopFoldersSnapshot | null = null;\nconst desktopFoldersListeners = new Set<() => void>();\n\nexport function publishDesktopFolders(next: DesktopFoldersSnapshot | null) {\n desktopFoldersSnapshot = next;\n desktopFoldersListeners.forEach(l => l());\n}\n\nexport function subscribeDesktopFolders(listener: () => void): () => void {\n desktopFoldersListeners.add(listener);\n return () => { desktopFoldersListeners.delete(listener); };\n}\n\nexport function getDesktopFoldersSnapshot(): DesktopFoldersSnapshot | null {\n return desktopFoldersSnapshot;\n}\n\n// ── Files-app view side channel ─────────────────────────────────────────────\n//\n// Used by the desktop Trash icon and desktop folders to open the Files app\n// on a specific view. Two cases handled:\n// 1) Files isn't open yet — the flag below is read once on first mount.\n// 2) Files is already open — the event tells the live instance to flip view.\n// The caller follows up with `openPage('/files')` either way.\n\nexport type FilesViewRequest = 'trash' | { view: 'desktop-folder'; folderId: string };\n\nexport const FILES_VIEW_FLAG = '__REACT_OS_SHELL_FILES_VIEW__';\nexport const FILES_SHOW_TRASH_EVENT = 'react-os-shell:files-show-trash';\nexport const FILES_OPEN_DESKTOP_FOLDER_EVENT = 'react-os-shell:files-open-desktop-folder';\n\nexport function requestFilesTrashView() {\n if (typeof window === 'undefined') return;\n (window as any)[FILES_VIEW_FLAG] = 'trash' satisfies FilesViewRequest;\n window.dispatchEvent(new CustomEvent(FILES_SHOW_TRASH_EVENT));\n}\n\nexport function requestFilesDesktopFolderView(folderId: string) {\n if (typeof window === 'undefined') return;\n (window as any)[FILES_VIEW_FLAG] = { view: 'desktop-folder', folderId } satisfies FilesViewRequest;\n window.dispatchEvent(new CustomEvent(FILES_OPEN_DESKTOP_FOLDER_EVENT, { detail: { folderId } }));\n}\n\n/** Read the pending view request without clearing it. Side-effect free so\n * it is safe inside a `useState` initializer (StrictMode double-invokes\n * those; a read-and-clear there would hand the second invocation null). */\nexport function peekFilesViewRequest(): FilesViewRequest | null {\n if (typeof window === 'undefined') return null;\n const raw = (window as any)[FILES_VIEW_FLAG];\n if (raw === 'trash') return 'trash';\n if (raw && typeof raw === 'object' && raw.view === 'desktop-folder' && typeof raw.folderId === 'string') return raw;\n return null;\n}\n\n/** Read-and-clear the pending view request (Files calls this once mounted). */\nexport function consumeFilesViewRequest(): FilesViewRequest | null {\n const req = peekFilesViewRequest();\n if (typeof window !== 'undefined') (window as any)[FILES_VIEW_FLAG] = null;\n return req;\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { glassStyle, GLASS_DIVIDER, navIcons } from './chunk-
|
|
2
|
-
import { createContext, Component,
|
|
1
|
+
import { useShellAuth, glassStyle, GLASS_DIVIDER, navIcons } from './chunk-DKDD5KXG.js';
|
|
2
|
+
import { createContext, Component, useReducer, useRef, useCallback, useState, useEffect, useMemo, useContext, useId, useSyncExternalStore, useLayoutEffect, isValidElement, cloneElement, Suspense } from 'react';
|
|
3
3
|
import { Dialog, DialogBackdrop, DialogPanel, DialogTitle } from '@headlessui/react';
|
|
4
4
|
import { XMarkIcon, ExclamationTriangleIcon } from '@heroicons/react/24/outline';
|
|
5
5
|
import { createPortal } from 'react-dom';
|
|
@@ -123,6 +123,217 @@ var WindowErrorBoundary = class extends Component {
|
|
|
123
123
|
return this.props.children;
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
|
+
|
|
127
|
+
// src/hooks/undoHistory.ts
|
|
128
|
+
var UNDO_LIMIT = 100;
|
|
129
|
+
var emptyUndoState = { past: [], future: [] };
|
|
130
|
+
function undoReducer(state, action) {
|
|
131
|
+
switch (action.type) {
|
|
132
|
+
case "record": {
|
|
133
|
+
const newest = state.past[state.past.length - 1];
|
|
134
|
+
if (action.step.coalesceKey !== null && newest?.coalesceKey === action.step.coalesceKey) {
|
|
135
|
+
return state.future.length === 0 ? state : { ...state, future: [] };
|
|
136
|
+
}
|
|
137
|
+
const past = [...state.past, action.step];
|
|
138
|
+
return {
|
|
139
|
+
past: past.length > UNDO_LIMIT ? past.slice(past.length - UNDO_LIMIT) : past,
|
|
140
|
+
future: []
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
case "undo": {
|
|
144
|
+
if (state.past.length === 0) return state;
|
|
145
|
+
return {
|
|
146
|
+
past: state.past.slice(0, -1),
|
|
147
|
+
future: [action.redoStep, ...state.future]
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
case "redo": {
|
|
151
|
+
if (state.future.length === 0) return state;
|
|
152
|
+
return {
|
|
153
|
+
past: [...state.past, action.undoStep],
|
|
154
|
+
future: state.future.slice(1)
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
case "clear":
|
|
158
|
+
return state.past.length === 0 && state.future.length === 0 ? state : emptyUndoState;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
var TEXT_ENTRY = /* @__PURE__ */ new Set(["INPUT", "TEXTAREA", "SELECT"]);
|
|
162
|
+
function matchUndoHotkey(e) {
|
|
163
|
+
if (!(e.metaKey || e.ctrlKey) || e.altKey) return null;
|
|
164
|
+
const key = e.key.toLowerCase();
|
|
165
|
+
const action = key === "z" ? e.shiftKey ? "redo" : "undo" : key === "y" && e.ctrlKey && !e.metaKey && !e.shiftKey ? "redo" : null;
|
|
166
|
+
if (!action) return null;
|
|
167
|
+
const target = e.target;
|
|
168
|
+
if (target?.isContentEditable) return null;
|
|
169
|
+
if (target?.tagName && TEXT_ENTRY.has(target.tagName.toUpperCase())) return null;
|
|
170
|
+
return action;
|
|
171
|
+
}
|
|
172
|
+
var UndoContext = createContext(null);
|
|
173
|
+
var RUNAWAY_LIMIT = 500;
|
|
174
|
+
var RUNAWAY_QUIET_MS = 250;
|
|
175
|
+
function UndoProvider({ children, canEdit = true, perms, windowId }) {
|
|
176
|
+
const [state, dispatch] = useReducer(undoReducer, emptyUndoState);
|
|
177
|
+
const slices = useRef(/* @__PURE__ */ new Map());
|
|
178
|
+
const { hasAnyPerm } = useShellAuth();
|
|
179
|
+
const enabled = canEdit && (perms && perms.length > 0 ? hasAnyPerm(perms) : true);
|
|
180
|
+
const pending = useRef(null);
|
|
181
|
+
const suspended = useRef(false);
|
|
182
|
+
const snapshot = useCallback(() => {
|
|
183
|
+
const values = {};
|
|
184
|
+
for (const [id, slice] of slices.current) values[id] = slice.getLast();
|
|
185
|
+
return values;
|
|
186
|
+
}, []);
|
|
187
|
+
const register = useCallback((id, slice) => {
|
|
188
|
+
slices.current.set(id, slice);
|
|
189
|
+
}, []);
|
|
190
|
+
const unregister = useCallback((id) => {
|
|
191
|
+
slices.current.delete(id);
|
|
192
|
+
}, []);
|
|
193
|
+
const runaway = useRef({ last: 0, count: 0, tripped: false });
|
|
194
|
+
const record = useCallback((label, coalesceKey) => {
|
|
195
|
+
if (!enabled || suspended.current || pending.current) return;
|
|
196
|
+
const r = runaway.current;
|
|
197
|
+
if (r.tripped) return;
|
|
198
|
+
const now = Date.now();
|
|
199
|
+
if (now - r.last > RUNAWAY_QUIET_MS) r.count = 0;
|
|
200
|
+
r.last = now;
|
|
201
|
+
if (++r.count > RUNAWAY_LIMIT) {
|
|
202
|
+
r.tripped = true;
|
|
203
|
+
console.error(
|
|
204
|
+
`[react-os-shell] UndoProvider: "${label}" recorded ${RUNAWAY_LIMIT} undo steps with no pause between them, which no user action can do. The value passed to useUndoable for this slice is almost certainly rebuilt on every render (a .map/.filter/object literal in the call) rather than held in state, so it reads as changed every time \u2014 and since recording a step re-renders the form, that is a loop. Undo recording is now off for this form to keep the tab responsive.`
|
|
205
|
+
);
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
pending.current = { values: snapshot(), label, coalesceKey };
|
|
209
|
+
queueMicrotask(() => {
|
|
210
|
+
const step = pending.current;
|
|
211
|
+
pending.current = null;
|
|
212
|
+
if (step) dispatch({ type: "record", step });
|
|
213
|
+
});
|
|
214
|
+
}, [enabled, snapshot]);
|
|
215
|
+
const applyValues = useCallback((values) => {
|
|
216
|
+
for (const [id, value2] of Object.entries(values)) {
|
|
217
|
+
const slice = slices.current.get(id);
|
|
218
|
+
if (!slice) continue;
|
|
219
|
+
slice.setLast(value2);
|
|
220
|
+
slice.apply(value2);
|
|
221
|
+
}
|
|
222
|
+
}, []);
|
|
223
|
+
const undo = useCallback(() => {
|
|
224
|
+
const step = state.past[state.past.length - 1];
|
|
225
|
+
if (!step) return;
|
|
226
|
+
const redoStep = { values: snapshot(), label: step.label, coalesceKey: null };
|
|
227
|
+
applyValues(step.values);
|
|
228
|
+
dispatch({ type: "undo", redoStep });
|
|
229
|
+
}, [state.past, snapshot, applyValues]);
|
|
230
|
+
const redo = useCallback(() => {
|
|
231
|
+
const step = state.future[0];
|
|
232
|
+
if (!step) return;
|
|
233
|
+
const undoStep = { values: snapshot(), label: step.label, coalesceKey: null };
|
|
234
|
+
applyValues(step.values);
|
|
235
|
+
dispatch({ type: "redo", undoStep });
|
|
236
|
+
}, [state.future, snapshot, applyValues]);
|
|
237
|
+
const [baselineToken, setBaselineToken] = useState(0);
|
|
238
|
+
const baseline = useCallback(() => {
|
|
239
|
+
suspended.current = true;
|
|
240
|
+
pending.current = null;
|
|
241
|
+
setBaselineToken((t) => t + 1);
|
|
242
|
+
dispatch({ type: "clear" });
|
|
243
|
+
}, []);
|
|
244
|
+
useEffect(() => {
|
|
245
|
+
if (!suspended.current) return;
|
|
246
|
+
suspended.current = false;
|
|
247
|
+
pending.current = null;
|
|
248
|
+
dispatch({ type: "clear" });
|
|
249
|
+
}, [baselineToken]);
|
|
250
|
+
const clear = baseline;
|
|
251
|
+
const canUndo = enabled && state.past.length > 0;
|
|
252
|
+
const canRedo = enabled && state.future.length > 0;
|
|
253
|
+
const isActive = useIsActiveWindow(windowId);
|
|
254
|
+
const keyed = useRef({ undo, redo, canUndo, canRedo });
|
|
255
|
+
keyed.current = { undo, redo, canUndo, canRedo };
|
|
256
|
+
useEffect(() => {
|
|
257
|
+
if (!isActive || !enabled) return;
|
|
258
|
+
const handler = (e) => {
|
|
259
|
+
const action = matchUndoHotkey(e);
|
|
260
|
+
if (!action) return;
|
|
261
|
+
const k = keyed.current;
|
|
262
|
+
if (action === "undo" ? !k.canUndo : !k.canRedo) return;
|
|
263
|
+
e.preventDefault();
|
|
264
|
+
if (action === "undo") k.undo();
|
|
265
|
+
else k.redo();
|
|
266
|
+
};
|
|
267
|
+
window.addEventListener("keydown", handler);
|
|
268
|
+
return () => window.removeEventListener("keydown", handler);
|
|
269
|
+
}, [isActive, enabled]);
|
|
270
|
+
const value = useMemo(() => ({
|
|
271
|
+
register,
|
|
272
|
+
unregister,
|
|
273
|
+
record,
|
|
274
|
+
undo,
|
|
275
|
+
redo,
|
|
276
|
+
clear,
|
|
277
|
+
baseline,
|
|
278
|
+
canUndo,
|
|
279
|
+
canRedo,
|
|
280
|
+
enabled,
|
|
281
|
+
undoLabel: canUndo ? state.past[state.past.length - 1].label : null,
|
|
282
|
+
redoLabel: canRedo ? state.future[0].label : null
|
|
283
|
+
}), [register, unregister, record, undo, redo, clear, baseline, canUndo, canRedo, enabled, state.past, state.future]);
|
|
284
|
+
return /* @__PURE__ */ jsx(UndoContext.Provider, { value, children });
|
|
285
|
+
}
|
|
286
|
+
function useUndo() {
|
|
287
|
+
const ctx = useContext(UndoContext);
|
|
288
|
+
const noop = useCallback(() => {
|
|
289
|
+
}, []);
|
|
290
|
+
return {
|
|
291
|
+
undo: ctx?.undo ?? noop,
|
|
292
|
+
redo: ctx?.redo ?? noop,
|
|
293
|
+
clear: ctx?.clear ?? noop,
|
|
294
|
+
baseline: ctx?.baseline ?? noop,
|
|
295
|
+
canUndo: ctx?.canUndo ?? false,
|
|
296
|
+
canRedo: ctx?.canRedo ?? false,
|
|
297
|
+
undoLabel: ctx?.undoLabel ?? null,
|
|
298
|
+
redoLabel: ctx?.redoLabel ?? null,
|
|
299
|
+
enabled: ctx?.enabled ?? false
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
function useUndoable(value, apply, opts) {
|
|
303
|
+
const ctx = useContext(UndoContext);
|
|
304
|
+
const id = useId();
|
|
305
|
+
const last = useRef(value);
|
|
306
|
+
const applyRef = useRef(apply);
|
|
307
|
+
applyRef.current = apply;
|
|
308
|
+
useEffect(() => {
|
|
309
|
+
if (!ctx) return;
|
|
310
|
+
ctx.register(id, {
|
|
311
|
+
getLast: () => last.current,
|
|
312
|
+
setLast: (v) => {
|
|
313
|
+
last.current = v;
|
|
314
|
+
},
|
|
315
|
+
apply: (v) => applyRef.current(v)
|
|
316
|
+
});
|
|
317
|
+
return () => ctx.unregister(id);
|
|
318
|
+
}, [ctx, id]);
|
|
319
|
+
const { label, coalesceKey = null } = opts;
|
|
320
|
+
const ctxRef = useRef(ctx);
|
|
321
|
+
ctxRef.current = ctx;
|
|
322
|
+
const optsRef = useRef({ label, coalesceKey });
|
|
323
|
+
optsRef.current = { label, coalesceKey };
|
|
324
|
+
useEffect(() => {
|
|
325
|
+
const c = ctxRef.current;
|
|
326
|
+
if (!c) return;
|
|
327
|
+
if (Object.is(value, last.current)) return;
|
|
328
|
+
c.record(optsRef.current.label, optsRef.current.coalesceKey);
|
|
329
|
+
last.current = value;
|
|
330
|
+
}, [value]);
|
|
331
|
+
}
|
|
332
|
+
function useUndoableState(initial, opts) {
|
|
333
|
+
const [value, setValue] = useState(initial);
|
|
334
|
+
useUndoable(value, (next) => setValue(() => next), opts);
|
|
335
|
+
return [value, setValue];
|
|
336
|
+
}
|
|
126
337
|
function LoadingSpinner() {
|
|
127
338
|
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-8 text-sm text-gray-400", children: "Loading..." });
|
|
128
339
|
}
|
|
@@ -850,7 +1061,7 @@ function WindowManagerProvider({ children, windowAccentForRoute }) {
|
|
|
850
1061
|
WindowErrorBoundary,
|
|
851
1062
|
{
|
|
852
1063
|
fallback: (error, reset) => /* @__PURE__ */ jsx(Modal, { open: true, onClose: () => closeEntity(item.id), title: item.label, size: "md", autoHeight: true, windowKey: item.id, children: /* @__PURE__ */ jsx(WindowCrashedFallback, { error, onReload: reset }) }),
|
|
853
|
-
children: /* @__PURE__ */ jsx(WindowShortcutProvider, { spec: shortcutSpecFor(item), children: item.type === "page" ? /* @__PURE__ */ jsx(PageWindow, { item, onClose: () => closeEntity(item.id), accentRgb }) : /* @__PURE__ */ jsx(
|
|
1064
|
+
children: /* @__PURE__ */ jsx(WindowShortcutProvider, { spec: shortcutSpecFor(item), children: /* @__PURE__ */ jsx(UndoProvider, { windowId: item.id, children: item.type === "page" ? /* @__PURE__ */ jsx(PageWindow, { item, onClose: () => closeEntity(item.id), accentRgb }) : /* @__PURE__ */ jsx(
|
|
854
1065
|
RestoredRegistryModal,
|
|
855
1066
|
{
|
|
856
1067
|
item,
|
|
@@ -859,7 +1070,7 @@ function WindowManagerProvider({ children, windowAccentForRoute }) {
|
|
|
859
1070
|
},
|
|
860
1071
|
accentRgb
|
|
861
1072
|
}
|
|
862
|
-
) })
|
|
1073
|
+
) }) })
|
|
863
1074
|
},
|
|
864
1075
|
item.id
|
|
865
1076
|
);
|
|
@@ -1205,7 +1416,7 @@ function CancelButton({ onClick, children, className }) {
|
|
|
1205
1416
|
const ctx = useContext(ModalActionsContext);
|
|
1206
1417
|
const handleClick = async () => {
|
|
1207
1418
|
if (ctx?.isDirty) {
|
|
1208
|
-
const { confirm: confirm2 } = await import('./ConfirmDialog-
|
|
1419
|
+
const { confirm: confirm2 } = await import('./ConfirmDialog-XJP67AHR.js');
|
|
1209
1420
|
const ok = await confirm2({
|
|
1210
1421
|
title: "Discard changes?",
|
|
1211
1422
|
message: "You have unsaved changes. Are you sure you want to cancel? All changes will be lost.",
|
|
@@ -1307,6 +1518,14 @@ var windowHeightScale = {
|
|
|
1307
1518
|
};
|
|
1308
1519
|
var activationOrder = [];
|
|
1309
1520
|
var activeListeners = /* @__PURE__ */ new Set();
|
|
1521
|
+
var _activeVersion = 0;
|
|
1522
|
+
function getActiveVersion() {
|
|
1523
|
+
return _activeVersion;
|
|
1524
|
+
}
|
|
1525
|
+
function notifyActive() {
|
|
1526
|
+
_activeVersion++;
|
|
1527
|
+
activeListeners.forEach((fn) => fn());
|
|
1528
|
+
}
|
|
1310
1529
|
var _modalIdByKey = /* @__PURE__ */ new Map();
|
|
1311
1530
|
var _keyByModalId = /* @__PURE__ */ new Map();
|
|
1312
1531
|
function _insertModalIdForKey(modalId, key) {
|
|
@@ -1339,7 +1558,7 @@ function mountModal(modalId, key) {
|
|
|
1339
1558
|
_saveOrderDebounced();
|
|
1340
1559
|
}
|
|
1341
1560
|
}
|
|
1342
|
-
|
|
1561
|
+
notifyActive();
|
|
1343
1562
|
window.dispatchEvent(new CustomEvent("modal-reorder"));
|
|
1344
1563
|
}
|
|
1345
1564
|
function activateModal(id) {
|
|
@@ -1353,7 +1572,7 @@ function activateModal(id) {
|
|
|
1353
1572
|
_activationOrderKeys.push(key);
|
|
1354
1573
|
_saveOrderDebounced();
|
|
1355
1574
|
}
|
|
1356
|
-
|
|
1575
|
+
notifyActive();
|
|
1357
1576
|
window.dispatchEvent(new CustomEvent("modal-reorder"));
|
|
1358
1577
|
}
|
|
1359
1578
|
function _minimizeModal(modalId) {
|
|
@@ -1367,7 +1586,7 @@ function _minimizeModal(modalId) {
|
|
|
1367
1586
|
_saveOrderDebounced();
|
|
1368
1587
|
}
|
|
1369
1588
|
}
|
|
1370
|
-
|
|
1589
|
+
notifyActive();
|
|
1371
1590
|
window.dispatchEvent(new CustomEvent("modal-reorder"));
|
|
1372
1591
|
}
|
|
1373
1592
|
var widgetIds = /* @__PURE__ */ new Set();
|
|
@@ -1380,7 +1599,7 @@ function deactivateAllModals() {
|
|
|
1380
1599
|
return mid != null && widgetIds.has(mid);
|
|
1381
1600
|
});
|
|
1382
1601
|
_saveOrderDebounced();
|
|
1383
|
-
|
|
1602
|
+
notifyActive();
|
|
1384
1603
|
window.dispatchEvent(new CustomEvent("modal-reorder"));
|
|
1385
1604
|
}
|
|
1386
1605
|
var EDGE_THRESHOLD = 8;
|
|
@@ -1588,6 +1807,16 @@ function useIsActiveModal(modalId) {
|
|
|
1588
1807
|
const activeId = useSyncExternalStore(subscribeActive, getActiveModalId);
|
|
1589
1808
|
return activationOrder.length <= 1 || activeId === modalId;
|
|
1590
1809
|
}
|
|
1810
|
+
function useIsActiveWindow(windowKey) {
|
|
1811
|
+
useSyncExternalStore(subscribeActive, getActiveVersion);
|
|
1812
|
+
const ctx = useContext(ModalActionsContext);
|
|
1813
|
+
if (activationOrder.length <= 1) return true;
|
|
1814
|
+
if (windowKey) {
|
|
1815
|
+
const modalId = _modalIdByKey.get(windowKey);
|
|
1816
|
+
if (modalId != null) return getActiveModalId() === modalId;
|
|
1817
|
+
}
|
|
1818
|
+
return ctx?.active ?? getActiveModalId() != null;
|
|
1819
|
+
}
|
|
1591
1820
|
var _exposeOn = false;
|
|
1592
1821
|
var _exposeListeners = /* @__PURE__ */ new Set();
|
|
1593
1822
|
function _notifyExpose() {
|
|
@@ -1832,6 +2061,8 @@ function Modal({ open, onClose, title, icon, copyText, size = "lg", dirty = fals
|
|
|
1832
2061
|
const actionsRef = useRef(null);
|
|
1833
2062
|
const actionsLeftRef = useRef(null);
|
|
1834
2063
|
const [hasActions, setHasActions] = useState(false);
|
|
2064
|
+
const footerRef = useRef(null);
|
|
2065
|
+
const hasFooterContent = !!(footer || actions || actionsLeft) || hasActions;
|
|
1835
2066
|
const fallbackIcon = /* @__PURE__ */ jsx("svg", { className: "h-4 w-4 text-gray-400", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 1.5, children: /* @__PURE__ */ jsx("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" }) });
|
|
1836
2067
|
const effectiveIcon = icon && isValidElement(icon) ? cloneElement(icon, {
|
|
1837
2068
|
className: `h-4 w-4 ${icon.props?.className ?? ""}`.trim()
|
|
@@ -2036,7 +2267,7 @@ function Modal({ open, onClose, title, icon, copyText, size = "lg", dirty = fals
|
|
|
2036
2267
|
const aidx = activationOrder.indexOf(modalId);
|
|
2037
2268
|
if (aidx !== -1) {
|
|
2038
2269
|
activationOrder.splice(aidx, 1);
|
|
2039
|
-
|
|
2270
|
+
notifyActive();
|
|
2040
2271
|
}
|
|
2041
2272
|
const cleanupKey = _keyByModalId.get(modalId);
|
|
2042
2273
|
if (cleanupKey) {
|
|
@@ -2123,12 +2354,17 @@ function Modal({ open, onClose, title, icon, copyText, size = "lg", dirty = fals
|
|
|
2123
2354
|
}
|
|
2124
2355
|
} else if (changed || freezeTimer === null) {
|
|
2125
2356
|
if (freezeTimer) clearTimeout(freezeTimer);
|
|
2126
|
-
freezeTimer = setTimeout(() =>
|
|
2357
|
+
freezeTimer = setTimeout(() => {
|
|
2358
|
+
const before = lastH;
|
|
2359
|
+
measure();
|
|
2360
|
+
if (lastH === before) setAutoHeightResolved(true);
|
|
2361
|
+
}, 160);
|
|
2127
2362
|
}
|
|
2128
2363
|
}
|
|
2129
2364
|
};
|
|
2130
2365
|
const ro = new ResizeObserver(measure);
|
|
2131
2366
|
measure();
|
|
2367
|
+
if (footerRef.current) ro.observe(footerRef.current);
|
|
2132
2368
|
const mo = new MutationObserver(measure);
|
|
2133
2369
|
mo.observe(body, { childList: true, subtree: true, characterData: true });
|
|
2134
2370
|
return () => {
|
|
@@ -2136,7 +2372,28 @@ function Modal({ open, onClose, title, icon, copyText, size = "lg", dirty = fals
|
|
|
2136
2372
|
mo.disconnect();
|
|
2137
2373
|
if (freezeTimer) clearTimeout(freezeTimer);
|
|
2138
2374
|
};
|
|
2139
|
-
}, [autoHeightResolved, widget, autoMinHeight]);
|
|
2375
|
+
}, [autoHeightResolved, widget, autoMinHeight, hasFooterContent]);
|
|
2376
|
+
useLayoutEffect(() => {
|
|
2377
|
+
if (!autoHeight || !autoHeightResolved || widget || !open) return;
|
|
2378
|
+
const footerEl = footerRef.current;
|
|
2379
|
+
if (!footerEl) return;
|
|
2380
|
+
let lastFooterH = footerEl.offsetHeight;
|
|
2381
|
+
const ro = new ResizeObserver(() => {
|
|
2382
|
+
if (!footerEl.isConnected) return;
|
|
2383
|
+
const h = footerEl.offsetHeight;
|
|
2384
|
+
const delta = h - lastFooterH;
|
|
2385
|
+
const flipped = h > 0 !== lastFooterH > 0;
|
|
2386
|
+
lastFooterH = h;
|
|
2387
|
+
if (!flipped || delta === 0 || maximized) return;
|
|
2388
|
+
if (document.body.classList.contains("rosh-gesturing")) return;
|
|
2389
|
+
const floor = autoMinHeight ?? 240;
|
|
2390
|
+
const taskbarH = parseInt(getComputedStyle(document.documentElement).getPropertyValue("--taskbar-height")) || 0;
|
|
2391
|
+
const viewportCap = Math.max(floor, window.innerHeight - taskbarH - Math.max(0, boxRef.current.y) - 24);
|
|
2392
|
+
setBox((prev) => ({ ...prev, h: Math.min(Math.max(floor, prev.h + delta), viewportCap) }));
|
|
2393
|
+
});
|
|
2394
|
+
ro.observe(footerEl);
|
|
2395
|
+
return () => ro.disconnect();
|
|
2396
|
+
}, [autoHeight, autoHeightResolved, widget, open, maximized, autoMinHeight]);
|
|
2140
2397
|
useEffect(() => {
|
|
2141
2398
|
if (alwaysMaximized) {
|
|
2142
2399
|
setMaximized(true);
|
|
@@ -2784,7 +3041,8 @@ function Modal({ open, onClose, title, icon, copyText, size = "lg", dirty = fals
|
|
|
2784
3041
|
"div",
|
|
2785
3042
|
{
|
|
2786
3043
|
onPointerDown: startDrag,
|
|
2787
|
-
|
|
3044
|
+
ref: footerRef,
|
|
3045
|
+
className: `px-4 py-2 border-t border-gray-200 shrink-0 flex items-center justify-between text-xs select-none cursor-move${isActive ? " backdrop-blur-sm" : ""}${widget || compact || appStyle || isMobile || !hasFooterContent ? " hidden" : ""}`,
|
|
2788
3046
|
style: { touchAction: "none", backgroundColor: isActive ? `rgb(var(--window-footer-rgb) / var(--active-header-opacity, 0.8))` : `rgb(var(--window-footer-rgb) / var(--inactive-header-opacity, 0.7))` },
|
|
2789
3047
|
children: [
|
|
2790
3048
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 min-w-0", children: [
|
|
@@ -3178,6 +3436,6 @@ function ConfirmProvider({ children }) {
|
|
|
3178
3436
|
] });
|
|
3179
3437
|
}
|
|
3180
3438
|
|
|
3181
|
-
export { CancelButton, ConfirmProvider, CopyButton, DocFavStar, LoadingSpinner, Modal, ModalActions, PopupMenu, PopupMenuDivider, PopupMenuItem, PopupMenuLabel, SIDEBAR_STRIP_W, ShellPrefsProvider, WINDOW_REGISTRY, WindowCrashedFallback, WindowErrorBoundary, WindowManagerProvider, WindowTitle, client_default, commitExposeHighlight, confirm, confirmDestructive, exitExposeMode, forgetMaximizedWindowBoxes, getActiveModalId, getActiveWindowRoute, getExposeHighlight, getWindowPosition, isEntityEntry, isPageEntry, isShellApiClientConfigured, prompt, registerModalEscapeInterceptor, setExposeHighlight, setShellApiClient, setShellWindowRegistry, setWindowDefaultPosition, setWindowPosition, subscribeExposeHighlight, toggleExposeMode, useConfirm, useIsMobile, useLocalStoragePrefs, useModalActive, useShellPrefs, useWidgetSettings, useWindowManager, useWindowMenuItem, useWindowTitle };
|
|
3182
|
-
//# sourceMappingURL=chunk-
|
|
3183
|
-
//# sourceMappingURL=chunk-
|
|
3439
|
+
export { CancelButton, ConfirmProvider, CopyButton, DocFavStar, LoadingSpinner, Modal, ModalActions, PopupMenu, PopupMenuDivider, PopupMenuItem, PopupMenuLabel, SIDEBAR_STRIP_W, ShellPrefsProvider, UndoProvider, WINDOW_REGISTRY, WindowCrashedFallback, WindowErrorBoundary, WindowManagerProvider, WindowTitle, client_default, commitExposeHighlight, confirm, confirmDestructive, exitExposeMode, forgetMaximizedWindowBoxes, getActiveModalId, getActiveWindowRoute, getExposeHighlight, getWindowPosition, isEntityEntry, isPageEntry, isShellApiClientConfigured, prompt, registerModalEscapeInterceptor, setExposeHighlight, setShellApiClient, setShellWindowRegistry, setWindowDefaultPosition, setWindowPosition, subscribeExposeHighlight, toggleExposeMode, useConfirm, useIsActiveWindow, useIsMobile, useLocalStoragePrefs, useModalActive, useShellPrefs, useUndo, useUndoable, useUndoableState, useWidgetSettings, useWindowManager, useWindowMenuItem, useWindowTitle };
|
|
3440
|
+
//# sourceMappingURL=chunk-VA6M46NL.js.map
|
|
3441
|
+
//# sourceMappingURL=chunk-VA6M46NL.js.map
|