efficient-shell 12.27.0 → 12.30.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 +38 -0
- package/dist/{Browser-6YRO47YI.js → Browser-FQHXHI3R.js} +18 -18
- package/dist/Calculator-XCRU5K4O.js +29 -0
- package/dist/{CurrencyConverter-G5IYUCN7.js → CurrencyConverter-EHIQIFJK.js} +9 -9
- package/dist/{Files-K7H7WHRS.js → Files-LTUUGPAM.js} +85 -85
- package/dist/{Notepad-EHISTRGJ.js → Notepad-JPAXNEFR.js} +9 -9
- package/dist/PdfViewer-J55QKFNS.js +1 -0
- package/dist/{PomodoroTimer-SFTPXEDV.js → PomodoroTimer-IVDZBBUN.js} +10 -10
- package/dist/{Preview-L4RT7TBC.js → Preview-KRK4XT2B.js} +35 -35
- package/dist/Sidebar-FCXIPW5K.js +44 -0
- package/dist/{Stock-YCPMLYPR.js → Stock-OBS2LPX4.js} +7 -7
- package/dist/{Weather-TLFNIPDG.js → Weather-I4TJBIEN.js} +17 -17
- package/dist/{WorldClock-66IRFS2W.js → WorldClock-YU2ZPVSA.js} +6 -6
- package/dist/ai/index.d.ts +155 -6
- package/dist/ai/index.js +109 -91
- package/dist/ai.css +1 -1
- package/dist/apps/ImageAnnotator.js +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/charts/BoxPlotChart.js +1 -1
- package/dist/charts/CandlestickChart.js +1 -1
- package/dist/charts/CartesianPlot.js +1 -1
- package/dist/charts/ChartBrush.js +1 -1
- package/dist/charts/ChartFrame.js +1 -1
- package/dist/charts/ChartSkeleton.js +1 -1
- package/dist/charts/ChordChart.js +1 -1
- package/dist/charts/ColumnChart.js +1 -1
- package/dist/charts/FlowChart.js +1 -1
- package/dist/charts/FunnelChart.js +1 -1
- package/dist/charts/HeatmapChart.js +1 -1
- package/dist/charts/HistogramChart.js +1 -1
- package/dist/charts/Meter.js +1 -1
- package/dist/charts/PieChart.js +1 -1
- package/dist/charts/RadarChart.js +1 -1
- package/dist/charts/RadialBarChart.js +1 -1
- package/dist/charts/RangeChart.js +1 -1
- package/dist/charts/RankedBars.js +1 -1
- package/dist/charts/SankeyChart.js +1 -1
- package/dist/charts/ScatterChart.js +1 -1
- package/dist/charts/SpecChart.js +1 -1
- package/dist/charts/StatTile.js +1 -1
- package/dist/charts/SunburstChart.js +1 -1
- package/dist/charts/TimeSeriesChart.js +1 -1
- package/dist/charts/TreemapChart.js +1 -1
- package/dist/charts/WaterfallChart.js +1 -1
- package/dist/{chunk-W2663E4S.js → chunk-23CZSU3H.js} +3 -3
- package/dist/{chunk-DK5SXOXJ.js → chunk-2DCATU5B.js} +1 -1
- package/dist/{chunk-RF3ZFTAU.js → chunk-2IEKMFVL.js} +1 -1
- package/dist/{chunk-676TKVDM.js → chunk-2N6WWL7Y.js} +1 -1
- package/dist/{chunk-KBI3T6UC.js → chunk-36MM4YRK.js} +9 -9
- package/dist/{chunk-3J3FBYIZ.js → chunk-37EYKPR6.js} +1 -1
- package/dist/{chunk-63TCQAGE.js → chunk-3B3QIHF7.js} +5 -5
- package/dist/chunk-3DSGJIC7.js +7 -0
- package/dist/{chunk-CCK2UWQ5.js → chunk-3HLV6BEC.js} +12 -12
- package/dist/{chunk-X34ZBXIU.js → chunk-3N4XJS43.js} +3 -3
- package/dist/{chunk-232YPI2L.js → chunk-3R2TMLKH.js} +5 -5
- package/dist/{chunk-YW3UKSON.js → chunk-3ZC53F4T.js} +3 -3
- package/dist/{chunk-OLCRYT3N.js → chunk-42GNFUAP.js} +12 -12
- package/dist/{chunk-7LTU5TJD.js → chunk-4EFIUJ7X.js} +1 -1
- package/dist/{chunk-VQ4X3OBR.js → chunk-4FUQK2LK.js} +1 -1
- package/dist/{chunk-QPSJYSET.js → chunk-4MCI7UHQ.js} +5 -5
- package/dist/chunk-4SEPQN2N.js +12 -0
- package/dist/{chunk-GEVNBBM7.js → chunk-4WW3SNL6.js} +1 -1
- package/dist/{chunk-TUPPFC74.js → chunk-4YCWO2GZ.js} +7 -7
- package/dist/{chunk-SSNTJ3M4.js → chunk-5O5QMMMG.js} +8 -8
- package/dist/{chunk-N32LNPPP.js → chunk-5RLJAXDR.js} +7 -7
- package/dist/{chunk-3YBXA72C.js → chunk-5X3Z45SL.js} +1 -1
- package/dist/{chunk-FD6DJRD4.js → chunk-5XYRFK7D.js} +1 -1
- package/dist/{chunk-3JL4TCA7.js → chunk-5ZS3VOJH.js} +1 -1
- package/dist/chunk-64ZDYUE7.js +27 -0
- package/dist/{chunk-XHZVUO6F.js → chunk-67JLD6AU.js} +5 -5
- package/dist/{chunk-OM6VWUAZ.js → chunk-6EETON2U.js} +1 -1
- package/dist/{chunk-4PIQG2ZK.js → chunk-6EXWWPAW.js} +1 -1
- package/dist/{chunk-N3R6N7LG.js → chunk-6UB6YY3H.js} +1 -1
- package/dist/{chunk-ZGWXSHVM.js → chunk-77BK2IAJ.js} +1 -1
- package/dist/chunk-7DTWIWFO.js +6 -0
- package/dist/chunk-7IGWU6DK.js +8 -0
- package/dist/{chunk-DCCYUCBM.js → chunk-7NO4IENQ.js} +1 -1
- package/dist/{chunk-YI6SYUAK.js → chunk-AIGLJYQ5.js} +1 -1
- package/dist/chunk-AJVL6LXI.js +22 -0
- package/dist/{chunk-34TQBJ7I.js → chunk-ANGNTN36.js} +1 -1
- package/dist/chunk-ASDYAASN.js +3 -0
- package/dist/{chunk-KZRZYLN7.js → chunk-AYCWVVJ3.js} +35 -35
- package/dist/{chunk-VLMBXPRM.js → chunk-B27XRZ47.js} +1 -1
- package/dist/{chunk-JN5NUZ6D.js → chunk-BEB3AGSY.js} +1 -1
- package/dist/{chunk-4ZRGMK7Y.js → chunk-CBBU74QT.js} +1 -1
- package/dist/chunk-CHV7U5UV.js +9 -0
- package/dist/{chunk-5WK56FA3.js → chunk-CIOPLPZW.js} +1 -1
- package/dist/{chunk-B4GRHE44.js → chunk-CVEVPB3O.js} +3 -3
- package/dist/chunk-CXXMSYA6.js +1 -0
- package/dist/{chunk-RY7JCGLI.js → chunk-DHRCI7KE.js} +1 -1
- package/dist/{chunk-Y523KUQC.js → chunk-DOKA65JI.js} +1 -1
- package/dist/{chunk-XKNKRKHH.js → chunk-E7RMS776.js} +14 -14
- package/dist/chunk-EWSOX4WP.js +28 -0
- package/dist/{chunk-BZHP645G.js → chunk-FEWWCWKV.js} +9 -9
- package/dist/{chunk-SR4W2SYQ.js → chunk-FIXZT5TZ.js} +7 -7
- package/dist/{chunk-6GWYFUME.js → chunk-FM34DWV7.js} +6 -6
- package/dist/{chunk-VP2GI3UP.js → chunk-FPYOZOUY.js} +8 -8
- package/dist/{chunk-QZCLHKCI.js → chunk-FSORYU5C.js} +12 -12
- package/dist/{chunk-FQ4IRBMA.js → chunk-FYGPJPU7.js} +1 -1
- package/dist/{chunk-KP2JYXEU.js → chunk-GANZLRMW.js} +9 -9
- package/dist/{chunk-WBGJ4XB7.js → chunk-GBPGZFBS.js} +4 -4
- package/dist/chunk-GKX3C3JE.js +13 -0
- package/dist/{chunk-QMSINDXL.js → chunk-GL4NELAT.js} +1 -1
- package/dist/{chunk-DGHSCKOE.js → chunk-GN3AHAVY.js} +4 -4
- package/dist/{chunk-THLXDI76.js → chunk-GOAFMGUI.js} +10 -10
- package/dist/{chunk-7ZJRBFHA.js → chunk-HC3BZPWX.js} +1 -1
- package/dist/{chunk-JSHMIMAJ.js → chunk-HCDG7EUR.js} +1 -1
- package/dist/{chunk-GUHCKMC7.js → chunk-HE2I6KWY.js} +2 -2
- package/dist/chunk-HJECGV6W.js +5 -0
- package/dist/{chunk-TYQ2JL4J.js → chunk-HOXXEF52.js} +1 -1
- package/dist/{chunk-3CKYFCX4.js → chunk-HRNT4UDG.js} +17 -17
- package/dist/{chunk-WPG3ZHYT.js → chunk-HU24RSAE.js} +1 -1
- package/dist/{chunk-I7JU4IU3.js → chunk-I6V4DMNR.js} +2 -2
- package/dist/{chunk-EEB5XPWP.js → chunk-IBPULOGJ.js} +2 -2
- package/dist/{chunk-RZ2DWX4N.js → chunk-ILSE5F5F.js} +5 -5
- package/dist/{chunk-KAKJ7ENS.js → chunk-IOIY54KO.js} +2 -2
- package/dist/{chunk-NUPK6CUV.js → chunk-IQTURGC4.js} +1 -1
- package/dist/{chunk-XZXFUZIK.js → chunk-ISVODSRP.js} +6 -3
- package/dist/{chunk-VBLCYL4L.js → chunk-JA5WM66L.js} +1 -1
- package/dist/{chunk-H6WXTJOT.js → chunk-JGZEZHMP.js} +1 -1
- package/dist/{chunk-CBVKGAZH.js → chunk-JOANOIVK.js} +1 -1
- package/dist/{chunk-24Y5JHIR.js → chunk-JTRQ7HAS.js} +1 -1
- package/dist/{chunk-GLRRX4AL.js → chunk-K5YT5PMJ.js} +1 -1
- package/dist/{chunk-CEIIQRK5.js → chunk-K6LO6QI5.js} +6 -6
- package/dist/chunk-KHFPF534.js +8 -0
- package/dist/{chunk-JGRDG7CB.js → chunk-KKYNDLOC.js} +6 -6
- package/dist/{chunk-4IHYWLWE.js → chunk-KLG6RYYC.js} +5 -5
- package/dist/{chunk-7K3FYCRZ.js → chunk-KNNFNOX7.js} +9 -9
- package/dist/chunk-KPFP2I2S.js +8 -0
- package/dist/{chunk-JZBLOIL7.js → chunk-KPPKPGQI.js} +1 -1
- package/dist/{chunk-SY66VJAI.js → chunk-KTO427N3.js} +1 -1
- package/dist/{chunk-XHSMDUEW.js → chunk-LBLWN3SH.js} +3 -3
- package/dist/chunk-LHATGPIE.js +19 -0
- package/dist/{chunk-T2TZBTSM.js → chunk-LQD54ZL5.js} +1 -1
- package/dist/{chunk-4ZLFAXOC.js → chunk-M2GF44WC.js} +12 -12
- package/dist/{chunk-AQCUGTOR.js → chunk-MFZ4YMXE.js} +6 -6
- package/dist/{chunk-VFHKD7TQ.js → chunk-MHVWUYEN.js} +1 -1
- package/dist/chunk-MKPZIEQP.js +23 -0
- package/dist/{chunk-KZHVKSNF.js → chunk-MRVW6F5E.js} +1 -1
- package/dist/chunk-MUSNAMWH.js +1 -0
- package/dist/{chunk-VEQ45GAH.js → chunk-MVBDE4AX.js} +1 -1
- package/dist/{chunk-3E3LR2PM.js → chunk-MYJ3HQYG.js} +12 -12
- package/dist/{chunk-JFGJJNT2.js → chunk-N2BWOHNM.js} +6 -6
- package/dist/{chunk-ILDPJ26Y.js → chunk-N2FX4O3H.js} +1 -1
- package/dist/{chunk-N2445WHJ.js → chunk-NJ6WZHXC.js} +5 -5
- package/dist/{chunk-YRY64DQV.js → chunk-NLQLVXMJ.js} +1 -1
- package/dist/{chunk-Z3CTYK3U.js → chunk-NSNM4QIV.js} +5 -5
- package/dist/{chunk-PLPMCE44.js → chunk-O3SCB4QZ.js} +8 -8
- package/dist/{chunk-UR2ECNBB.js → chunk-OMSIXLK4.js} +1 -1
- package/dist/{chunk-74JMBOQH.js → chunk-P4NWDRHS.js} +26 -26
- package/dist/{chunk-DMEP2SCP.js → chunk-PAVOVX3D.js} +3 -3
- package/dist/{chunk-LIWBCIRZ.js → chunk-PBZ3UQMS.js} +4 -4
- package/dist/chunk-PRWA4AAC.js +11 -0
- package/dist/{chunk-6RK6R3RY.js → chunk-PT4GMPUB.js} +1 -1
- package/dist/{chunk-MWTCGJAI.js → chunk-Q4BJW37U.js} +1 -1
- package/dist/{chunk-WNOXHJVT.js → chunk-QB7TIWHT.js} +5 -5
- package/dist/{chunk-YO26RV3H.js → chunk-QF4FYOVE.js} +1 -1
- package/dist/{chunk-DJXXY23A.js → chunk-QHWD3G7T.js} +2 -2
- package/dist/{chunk-GEZM6ARD.js → chunk-QIPO4EVJ.js} +1 -1
- package/dist/{chunk-6FZ5JTBY.js → chunk-QMBMK6PP.js} +2 -2
- package/dist/{chunk-TOVEZAIM.js → chunk-QOYKBINM.js} +1 -1
- package/dist/{chunk-WXZZGHET.js → chunk-QT34GMZR.js} +1 -1
- package/dist/chunk-QV5A7NFQ.js +11 -0
- package/dist/chunk-RJG67VRP.js +15 -0
- package/dist/{chunk-LBKKKZ4M.js → chunk-RMUOUMV2.js} +2 -2
- package/dist/{chunk-CALBDO7B.js → chunk-RPXRMTOU.js} +1 -1
- package/dist/chunk-RVD6HJUJ.js +4 -0
- package/dist/{chunk-CJHYOHMU.js → chunk-SAAXAAAH.js} +1 -1
- package/dist/chunk-TIYRBJSB.js +7 -0
- package/dist/{chunk-4BKJ6A5H.js → chunk-TJ5ZX5HP.js} +10 -10
- package/dist/chunk-TN3W72FC.js +8 -0
- package/dist/{chunk-2DYVVHZA.js → chunk-U22563X2.js} +1 -1
- package/dist/{chunk-QADNVFV5.js → chunk-U45APXV3.js} +1 -1
- package/dist/{chunk-OOWPLQD5.js → chunk-UEADX2GV.js} +2 -2
- package/dist/chunk-UK2D2CSB.js +14 -0
- package/dist/{chunk-Z66QBDNU.js → chunk-UOHHIEH4.js} +1 -1
- package/dist/{chunk-MEN4B6NP.js → chunk-UQNKFMJR.js} +12 -12
- package/dist/{chunk-FTMCNC66.js → chunk-UZFFSZFI.js} +1 -1
- package/dist/{chunk-SE6IQZYW.js → chunk-V64XY7L4.js} +9 -9
- package/dist/{chunk-75H4BWNC.js → chunk-VEF3STCH.js} +1 -1
- package/dist/chunk-VLI2ED22.js +7 -0
- package/dist/{chunk-V4XR4MOS.js → chunk-VREZFFRE.js} +1 -1
- package/dist/chunk-VY5NO4TS.js +2 -0
- package/dist/{chunk-QG37GJP2.js → chunk-WBAWJIVM.js} +4 -4
- package/dist/{chunk-CMJD5URC.js → chunk-WCJR2GNH.js} +18 -18
- package/dist/{chunk-Y7KDCC6E.js → chunk-WM37FXRK.js} +1 -1
- package/dist/{chunk-4LOHQ4QB.js → chunk-X27K2NCU.js} +5 -5
- package/dist/{chunk-L543DFHF.js → chunk-X5RFTIHV.js} +1 -1
- package/dist/chunk-XJTZU7UH.js +4 -0
- package/dist/{chunk-RBS3AWE7.js → chunk-XK3VYRLR.js} +1 -1
- package/dist/{chunk-FJVZ2W55.js → chunk-XMAOLCQV.js} +1 -1
- package/dist/{chunk-GC4N4UQM.js → chunk-XXRUDMD5.js} +5 -5
- package/dist/{chunk-34EBBZFK.js → chunk-Y6H5C6A4.js} +1 -1
- package/dist/{chunk-LPPJNZQ6.js → chunk-YGKQMENL.js} +1 -1
- package/dist/{chunk-NOGSS432.js → chunk-YNE5YC6E.js} +1 -1
- package/dist/chunk-YS3CF7GL.js +2 -0
- package/dist/{chunk-R62JKPYY.js → chunk-Z2Z653OO.js} +1 -1
- package/dist/{chunk-G2Y5I5OR.js → chunk-ZSVBEJ4G.js} +1 -1
- package/dist/data/DataTable.js +1 -1
- package/dist/data/EntityList.js +1 -1
- package/dist/data/Kanban.js +1 -1
- package/dist/data/ListFooter.js +1 -1
- package/dist/data/ListLoadError.js +1 -1
- package/dist/data/Pagination.js +1 -1
- package/dist/data/ResizableTable.js +1 -1
- package/dist/file-intake/index.js +1 -1
- package/dist/forms/BorderInput.js +1 -1
- package/dist/forms/BrandAssetEditor.js +1 -1
- package/dist/forms/Calendar.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/DatePicker.js +1 -1
- package/dist/forms/DateRangePicker.js +1 -1
- package/dist/forms/DateTimePicker.js +1 -1
- package/dist/forms/DisplayChips.js +1 -1
- package/dist/forms/FilePicker.js +1 -1
- package/dist/forms/FormErrorSummary.js +1 -1
- package/dist/forms/IconPicker.js +1 -1
- package/dist/forms/ImageFocusPoint.js +1 -1
- package/dist/forms/Input.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/MediaUploadGrid.js +1 -1
- package/dist/forms/MediaUsedInList.js +1 -1
- package/dist/forms/NumericKeypad.js +1 -1
- package/dist/forms/PositionInput.js +1 -1
- package/dist/forms/RenameField.js +1 -1
- package/dist/forms/Select.js +1 -1
- package/dist/forms/SidesInput.d.ts +13 -2
- 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/TagInput.js +1 -1
- package/dist/forms/TextToolbar.js +1 -1
- package/dist/forms/TimePicker.js +1 -1
- package/dist/forms/UnitMenu.js +1 -1
- package/dist/forms/WidthsBar.js +1 -1
- package/dist/forms/mediaLibraryMenu.js +1 -1
- package/dist/forms/mediaMoveItems.js +1 -1
- package/dist/forms/textAlign.js +1 -1
- package/dist/forms/useFileIntake.js +1 -1
- package/dist/hooks/useTheme.d.ts +1 -1
- package/dist/icons/efficient-glyphs.js +1 -1
- package/dist/icons/efficient-looks.js +1 -1
- package/dist/icons/efficient.js +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/icons/looks/map.js +1 -1
- package/dist/icons/payment.js +1 -1
- package/dist/icons/sets.js +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +506 -506
- package/dist/locales/zh-Hans.js +1 -1
- package/dist/map/index.js +5 -5
- package/dist/markdown/index.js +1 -1
- package/dist/model-viewer/index.d.ts +123 -0
- package/dist/model-viewer/index.js +7 -0
- package/dist/page-tabs/index.js +5 -5
- package/dist/pdf/index.js +1 -1
- package/dist/shell/Accordion.js +1 -1
- package/dist/shell/AppUpdateBanner.js +1 -1
- package/dist/shell/Avatar.js +1 -1
- package/dist/shell/Banner.js +1 -1
- package/dist/shell/Breadcrumbs.js +1 -1
- package/dist/shell/BudgetBar.js +1 -1
- package/dist/shell/Card.js +1 -1
- package/dist/shell/ColoredBadge.js +1 -1
- package/dist/shell/ConfirmDialog.js +1 -1
- package/dist/shell/ContainerFillChart.js +1 -1
- package/dist/shell/ContextMenu.js +1 -1
- package/dist/shell/CountBadge.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/EditableGrid.js +1 -1
- package/dist/shell/EmptyState.js +1 -1
- package/dist/shell/GlobalSearch.js +1 -1
- package/dist/shell/HelpCenter.js +1 -1
- package/dist/shell/IconRail.js +1 -1
- package/dist/shell/ImageLightbox.js +1 -1
- package/dist/shell/ItemCount.js +1 -1
- package/dist/shell/LanguageSelect.js +1 -1
- package/dist/shell/Markdown.js +1 -1
- package/dist/shell/MetricBar.js +1 -1
- package/dist/shell/MetricBarLegend.js +1 -1
- package/dist/shell/MilestoneTimeline.js +1 -1
- package/dist/shell/PageHeader.js +1 -1
- package/dist/shell/PopupMenu.js +1 -1
- package/dist/shell/ProductionTimeline.js +1 -1
- package/dist/shell/ResizeHandle.js +1 -1
- package/dist/shell/Result.js +1 -1
- package/dist/shell/SearchableSelect.js +1 -1
- package/dist/shell/SettingReset.js +1 -1
- package/dist/shell/SettingRow.js +1 -1
- package/dist/shell/SidebarLayout.js +1 -1
- package/dist/shell/SidebarNav.js +1 -1
- package/dist/shell/SortableList.js +1 -1
- package/dist/shell/Statistic.js +1 -1
- package/dist/shell/StepChain.js +1 -1
- package/dist/shell/Stepper.js +1 -1
- package/dist/shell/TimeAgo.js +1 -1
- package/dist/shell/TimelineTrack.js +1 -1
- package/dist/shell/TopNav.js +1 -1
- package/dist/shell/TransferProgress.js +1 -1
- package/dist/shell/Tree.js +1 -1
- package/dist/shell/discardGuard.js +1 -1
- package/dist/shell/language.js +1 -1
- package/dist/shell/strings.d.ts +10 -0
- package/dist/shell/strings.js +1 -1
- package/dist/shell/toast.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/templates/AuthScreen.js +1 -1
- package/dist/templates/ChatTemplate.js +1 -1
- package/dist/templates/CheckoutTemplate.js +1 -1
- package/dist/templates/DashboardTemplate.js +1 -1
- package/dist/templates/DataTablePage.js +1 -1
- package/dist/templates/EmailTemplate.js +1 -1
- package/dist/templates/ErrorBoundary.d.ts +1 -1
- package/dist/templates/ErrorBoundary.js +1 -1
- package/dist/templates/ErrorPage.js +1 -1
- package/dist/templates/FormLayoutPage.js +1 -1
- package/dist/templates/GalleryTemplate.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 +12 -1
- package/dist/Calculator-LSDVIJVQ.js +0 -29
- package/dist/PdfViewer-UY5SRC63.js +0 -1
- package/dist/Sidebar-BKNCPUOE.js +0 -44
- package/dist/chunk-436PJFHC.js +0 -11
- package/dist/chunk-4Y33Y4OX.js +0 -8
- package/dist/chunk-574SLTKO.js +0 -8
- package/dist/chunk-A4PFVMQ2.js +0 -7
- package/dist/chunk-BHHFVIAD.js +0 -2
- package/dist/chunk-BM2QIV64.js +0 -23
- package/dist/chunk-D2WJAF62.js +0 -4
- package/dist/chunk-DG2TGWXI.js +0 -15
- package/dist/chunk-DRMIQ3YE.js +0 -1
- package/dist/chunk-ENFXDIIZ.js +0 -8
- package/dist/chunk-FI6IJTAJ.js +0 -14
- package/dist/chunk-FVKXDF2Q.js +0 -12
- package/dist/chunk-HMT3MES3.js +0 -27
- package/dist/chunk-INADSWOF.js +0 -28
- package/dist/chunk-LCEQIFPK.js +0 -3
- package/dist/chunk-OM42AUMS.js +0 -4
- package/dist/chunk-OQ6TECLX.js +0 -6
- package/dist/chunk-SFULX4E3.js +0 -7
- package/dist/chunk-T7D73HT7.js +0 -11
- package/dist/chunk-TM4CRQ3W.js +0 -19
- package/dist/chunk-TU2L7NW3.js +0 -7
- package/dist/chunk-UP4HLGMZ.js +0 -9
- package/dist/chunk-VABHQDN5.js +0 -1
- package/dist/chunk-VDYF3WPJ.js +0 -2
- package/dist/chunk-XQWHKXLS.js +0 -22
- package/dist/chunk-YIUWX2IU.js +0 -8
- package/dist/chunk-YX2OOGV7.js +0 -4
- package/dist/chunk-ZQ24H5UO.js +0 -13
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import{useAuth as e,parseOpenSections as t,readStored as r,RAIL_OPEN_SECTIONS_KEY as n,RAIL_WIDTH_KEY as i,toggleOpenSection as a,writeStored as o}from"./chunk-U6LKNGC6.js";import{ResizeHandle as l}from"./chunk-UEADX2GV.js";import{openGlobalSearch as s}from"./chunk-NJ6WZHXC.js";import{partitionNav as c,visibleNavChildren as d,visibleSectionItems as m,rowsContainRoute as u}from"./chunk-HGOWQO63.js";import{BrandMark as h}from"./chunk-MI67DI3H.js";import{IconButton_default as p}from"./chunk-SV5RRBVA.js";import{RAIL_MENU_GAP as b,navSections as f,startMenuCategories as g,RAIL_W as x,TAB_STRIP_H as k,RAIL_COLLAPSED_INSET as y,RAIL_MAX_W as v,RAIL_MIN_W as N,navIcons as w,sectionIcons as j}from"./chunk-4LXCCZDM.js";import"./chunk-5A7MWTXX.js";import"./chunk-7QSDPSXP.js";import"./chunk-2QY5BJLA.js";import{PopupMenu as C,PopupMenuItem as S,PopupMenuDivider as L}from"./chunk-GOAFMGUI.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-M5K4AX4E.js";import{Icon as $}from"./chunk-ISVODSRP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-SOZCWT6I.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import{useShellStrings as z}from"./chunk-HCDG7EUR.js";import"./chunk-C3QOHMR6.js";import{useMemo as A,useState as W,useRef as I,useEffect as T,isValidElement as H,cloneElement as D}from"react";import{jsx as R,jsxs as K,Fragment as M}from"react/jsx-runtime";var O="undefined"!=typeof navigator&&/Mac|iPhone|iPad/.test(navigator.platform),P=150,U=250;function Q(e,t,r){const n=Math.max(8,r-t.bottom);return{left:e+b,bottom:n,maxHeight:r-n-8,overflowY:"auto"}}var E=(e,t)=>["flex h-(--row-height-menu) w-full items-center gap-3 rounded-md px-3 text-left text-sm font-medium transition-colors",t?"justify-center px-0":"",e?"bg-gray-100 text-gray-900":"text-gray-600 hover:bg-gray-100 hover:text-gray-900"].join(" "),G="flex size-8 shrink-0 items-center justify-center rounded-md text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-900",J="flex size-[18px] shrink-0 items-center justify-center [&>svg]:size-[18px]";function X({open:e,children:t}){const r=I(null);return T(()=>{r.current?.toggleAttribute("inert",!e)},[e]),/* @__PURE__ */R("div",{ref:r,className:"grid transition-[grid-template-rows,opacity] duration-200 ease-out motion-reduce:transition-none",style:{gridTemplateRows:e?"1fr":"0fr",opacity:e?1:0},"aria-hidden":!e,"data-fold":e?"open":"closed",children:/* @__PURE__ */R("div",{className:"min-h-0 overflow-hidden",children:t})})}function B({open:e}){/* @__PURE__ */
|
|
2
|
+
return R($,{name:"chevron-down",className:"size-4 shrink-0 transition-transform "+(e?"rotate-180":""),strokeWidth:2,"aria-hidden":"true"})}function V({dir:e}){/* @__PURE__ */
|
|
3
|
+
return R($,"left"===e?{name:"chevron-double-left",className:"size-[18px] shrink-0",strokeWidth:1.5,"aria-hidden":"true"}:{name:"chevron-double-right",className:"size-[18px] shrink-0",strokeWidth:1.5,"aria-hidden":"true"})}function F({className:e}){/* @__PURE__ */
|
|
4
|
+
return R($,{name:"search",className:e,strokeWidth:2,"aria-hidden":"true"})}var Y=e=>.75+1.75*e+"rem";function Z({width:b,openWidth:P=x,collapsed:U,onToggleCollapsed:Z,onResize:_,onHome:q,onOpen:ee,activeRoute:te,profile:re,user:ne,onLogout:ie,onSwitchToDesktop:ae,onReportBug:oe,onClose:le,navSections:se=f,navIcons:ce=w,sectionIcons:de=j,categories:me=g,productName:ue,productIcon:he,tagline:pe,adaptiveLogo:be=!1,logoHasAlpha:fe=null,logoIsLight:ge=null}){const xe=z().layout,{hasAnyPerm:ke}=e(),ye=A(()=>c(se,me,ke),[se,me,ke]),[ve,Ne]=W(()=>t(r(n))),we=A(()=>[...ye.topItems.filter(e=>d(e,ke).length>0).map(e=>`child:${e.to}`),...[...ye.erpSections,...ye.systemSections,...ye.virtualSections,...ye.footerSections].map(e=>e.label)],[ye,ke]),je=(e,t=we)=>Ne(r=>{const i=a(r,e,t);return o(n,JSON.stringify([...i])),i}),[Ce,Se]=W(!1),Le=I(null),$e=U&&!le,[ze,Ae]=W(!1),We=I("pointer"),Ie=I(void 0),Te=I(!1),He=I(null),De=()=>{clearTimeout(Ie.current),Ie.current=void 0},Re=e=>{De(),We.current=e,Ae(!0)},Ke=()=>{De(),Ae(!1)};T(()=>{De(),Ae(!1)},[U]),T(()=>()=>De(),[]),T(()=>{if(!ze)return;const e=e=>{const t=e.target;t&&(He.current?.contains(t)||t.closest?.('[role="menu"]'))||(De(),Ae(!1))};return document.addEventListener("pointerdown",e,!0),()=>document.removeEventListener("pointerdown",e,!0)},[ze]);const Me=U&&!ze,Oe=U&&ze?P:b,Pe=(e,t)=>{Ke(),e.onSelect?e.onSelect():ee(e.to,!!t&&(e=>e.metaKey||e.ctrlKey||1===e.button)(t))},Ue=(e,t)=>{const r=t[e];/* @__PURE__ */
|
|
5
|
+
return R("span",{className:J,"aria-hidden":"true",children:r&&H(r)?D(r,{className:"size-[18px]"}):r})},Qe=e=>e.filter(e=>d(e,ke).length>0).map(e=>`child:${e.to}`),Ee=(e,t,r=we)=>{const n=d(e,ke),i=e.menuLabel??e.label;if(n.length>0){const a=`child:${e.to}`,o=ve.has(a),l=!o&&u(n,te,ke);/* @__PURE__ */
|
|
6
|
+
return K("div",{children:[
|
|
7
|
+
/* @__PURE__ */K("button",{type:"button",onClick:()=>je(a,r),"aria-expanded":o,className:E(l,!1),style:t>0?{paddingLeft:Y(t)}:void 0,children:[0===t&&Ue(e.to,ce),
|
|
8
|
+
/* @__PURE__ */R("span",{className:"min-w-0 flex-1 truncate",children:i}),
|
|
9
|
+
/* @__PURE__ */R(B,{open:o})]}),
|
|
10
|
+
/* @__PURE__ */R(X,{open:o,children:/* @__PURE__ */R("div",{className:"space-y-0.5 pt-0.5",children:n.map(e=>Ee(e,t+1,Qe(n)))})}),e.dividerAfter&&/* @__PURE__ */R("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:Y(t)},"aria-hidden":"true"})]},e.to)}const a=e.to===te;/* @__PURE__ */
|
|
11
|
+
return K("div",{children:[
|
|
12
|
+
/* @__PURE__ */K("button",{type:"button",onClick:t=>Pe(e,t),onAuxClick:t=>{1===t.button&&Pe(e,t)},"aria-current":a?"page":void 0,className:E(a,!1),style:t>0?{paddingLeft:Y(t)}:void 0,children:[0===t&&Ue(e.to,ce),
|
|
13
|
+
/* @__PURE__ */R("span",{className:"min-w-0 flex-1 truncate",children:i})]}),e.dividerAfter&&/* @__PURE__ */R("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:Y(t)},"aria-hidden":"true"})]},e.to)},Ge=(e,t)=>{const r=t?e.items:m(e,ke);if(0===r.length)return null;const n="icon"in e&&e.icon?/* @__PURE__ */R("span",{className:J,"aria-hidden":"true",children:e.icon}):Ue(e.label,de),i=e.menuLabel??e.label,a=u(r,te,ke),o="dividerAfter"in e&&e.dividerAfter;if(Me)/* @__PURE__ */
|
|
14
|
+
return K("div",{children:[
|
|
15
|
+
/* @__PURE__ */R("button",{type:"button",title:i,"aria-label":i,"aria-expanded":!1,onClick:()=>{ve.has(e.label)||je(e.label),Re("tap")},className:E(a,!0),children:n}),o&&/* @__PURE__ */R("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.label);const l=ve.has(e.label),s=`rosh-rail-${e.label.replace(/[^a-z0-9]+/gi,"-").toLowerCase()}`;/* @__PURE__ */
|
|
16
|
+
return K("div",{children:[
|
|
17
|
+
/* @__PURE__ */K("button",{type:"button",onClick:()=>je(e.label),"aria-expanded":l,"aria-controls":s,className:E(!l&&a,!1),children:[n,
|
|
18
|
+
/* @__PURE__ */R("span",{className:"min-w-0 flex-1 truncate",children:i}),
|
|
19
|
+
/* @__PURE__ */R(B,{open:l})]}),
|
|
20
|
+
/* @__PURE__ */R(X,{open:l,children:/* @__PURE__ */R("div",{id:s,role:"group","aria-label":i,className:"space-y-0.5 pt-0.5",children:r.map(e=>Ee(e,1,Qe(r)))})}),o&&/* @__PURE__ */R("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.label)},Je=re?.first_name?`${re.first_name} ${re.last_name||""}`.trim():ne?.email||"",Xe=(re?.first_name?.charAt(0)||ne?.email?.charAt(0)||"?").toUpperCase(),Be=re?.avatar_url?/* @__PURE__ */R("img",{src:re.avatar_url,alt:"",className:"size-8 shrink-0 rounded-full object-cover"}):/* @__PURE__ */R("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-full bg-blue-600 text-xs font-semibold text-white",children:Xe}),Ve=Ce?Le.current?.getBoundingClientRect():void 0,Fe=Me?"":"px-3",Ye=Me?{paddingInline:y}:void 0,Ze=`${U?xe.expandSidebar:xe.collapseSidebar} (${O?"⌘":"Ctrl"} .)`,_e=q?{run:q,label:xe.goHome,title:xe.goHome}:le?null:{run:Z,label:U?xe.expandSidebar:xe.collapseSidebar,title:Ze},qe=/* @__PURE__ */K(M,{children:[he&&/* @__PURE__ */R(h,{src:he,alt:"",slot:"compact",surface:"light",adaptive:be,hasAlpha:fe,isLight:ge,size:28,decorative:!0}),!Me&&/* @__PURE__ */K("span",{className:"min-w-0 text-left leading-tight",children:[
|
|
21
|
+
/* @__PURE__ */R("span",{className:"block truncate text-base font-bold tracking-wide text-gray-900",children:ue??"Apps"}),pe&&/* @__PURE__ */R("span",{className:"block truncate text-2xs font-medium text-gray-500",children:pe})]})]}),et=ye.erpSections.length>0||ye.systemSections.length>0||ye.virtualSections.length>0;/* @__PURE__ */
|
|
22
|
+
return K("aside",{ref:He,"aria-label":xe.navLabel,"data-rail-peek":ze?"":void 0,className:`fixed left-0 top-0 z-(--z-sidebar) flex h-dvh flex-col border-r border-line bg-surface text-ink-strong ${U?"overflow-hidden transition-[width] duration-150 ease-out motion-reduce:transition-none":""} ${ze?"rounded-r-(--radius-panel)":""}`,style:{width:Oe,boxShadow:ze?"var(--elevation-popup)":void 0},onPointerEnter:e=>{"touch"!==e.pointerType&&(Te.current=!0,$e&&(ze?De():(De(),Ie.current=setTimeout(()=>Re("pointer"),150))))},onPointerLeave:e=>{"touch"!==e.pointerType&&(Te.current=!1,$e&&(De(),ze&&!Ce&&"pointer"===We.current&&(Ie.current=setTimeout(Ke,250))))},onFocus:e=>{$e&&!ze&&(e=>{try{return e.matches(":focus-visible")}catch{return!1}})(e.target)&&Re("focus")},onBlur:e=>{if(!ze||"focus"!==We.current)return;const t=e.relatedTarget;t&&He.current?.contains(t)||Ce||Te.current||Ke()},onKeyDown:e=>{"Escape"===e.key&&ze&&Ke()},children:[
|
|
23
|
+
/* @__PURE__ */K("div",{className:"flex shrink-0 items-center border-b border-gray-200 "+(Me?"justify-center":"justify-between gap-2 pl-4 pr-2"),style:{height:k},children:[_e?/* @__PURE__ */R("button",{type:"button",onClick:_e.run,"aria-label":_e.label,title:_e.title,className:"flex min-w-0 items-center gap-2 rounded-md transition-colors hover:bg-gray-100 "+(Me?"justify-center p-0.5":"-ml-1 p-1"),children:qe}):/* @__PURE__ */R("span",{className:"flex min-w-0 items-center gap-2",children:qe}),le?/* @__PURE__ */R(p,{onClick:le,"aria-label":xe.closeMenu,children:/* @__PURE__ */R($,{name:"close",className:"size-[18px]",strokeWidth:1.5,"aria-hidden":"true"})}):U?ze&&
|
|
24
|
+
/* @__PURE__ */R("button",{type:"button",onClick:()=>{Ke(),Z()},"aria-label":xe.keepSidebarOpen,title:`${xe.keepSidebarOpen} (${O?"⌘":"Ctrl"} .)`,className:G,children:/* @__PURE__ */R(V,{dir:"right"})}):/* @__PURE__ */R("button",{type:"button",onClick:Z,"aria-label":xe.collapseSidebar,title:`${xe.collapseSidebar} (${O?"⌘":"Ctrl"} .)`,className:G,children:/* @__PURE__ */R(V,{dir:"left"})})]}),
|
|
25
|
+
/* @__PURE__ */R("div",{className:`shrink-0 pt-3 ${Fe}`,style:Ye,children:Me?/* @__PURE__ */R("button",{type:"button",onClick:s,"aria-label":xe.search,title:`${xe.search} (${O?"⌘K":"Ctrl K"})`,className:E(!1,!0),children:/* @__PURE__ */R(F,{className:"size-[18px] shrink-0"})}):/* @__PURE__ */K("button",{type:"button",onClick:s,className:"flex h-(--row-height-menu) w-full items-center gap-2 rounded-md border border-line bg-surface px-3 text-left transition-colors hover:bg-gray-100",children:[
|
|
26
|
+
/* @__PURE__ */R(F,{className:"size-3.5 text-gray-500"}),
|
|
27
|
+
/* @__PURE__ */R("span",{className:"min-w-0 flex-1 truncate text-sm text-ink-faint",children:xe.search}),
|
|
28
|
+
/* @__PURE__ */R("kbd",{className:"rounded border border-line bg-gray-100 px-2 py-0.5 font-mono text-2xs font-semibold text-ink-faint",children:O?"⌘K":"Ctrl K"})]})}),
|
|
29
|
+
/* @__PURE__ */K("nav",{"aria-label":xe.navLabel,className:`min-h-0 flex-1 overflow-y-auto pb-4 pt-3 ${Fe} ${Me?"space-y-1":"space-y-0.5"}`,style:Ye,children:[Me&&/* @__PURE__ */R("button",{type:"button",onClick:Z,"aria-label":xe.expandSidebar,title:`${xe.expandSidebar} (${O?"⌘":"Ctrl"} .)`,className:`${E(!1,!0)} mb-3`,children:/* @__PURE__ */R(V,{dir:"right"})}),ye.topItems.map(e=>{if(!Me)return Ee(e,0);const t=d(e,ke),r=e.to===te||u(t,te,ke),n=e.menuLabel??e.label;/* @__PURE__ */
|
|
30
|
+
return K("div",{children:[
|
|
31
|
+
/* @__PURE__ */R("button",{type:"button",title:n,"aria-label":n,onClick:r=>{if(0===t.length)return void Pe(e,r);const n=`child:${e.to}`;ve.has(n)||je(n),Re("tap")},className:E(r,!0),children:Ue(e.to,ce)}),e.dividerAfter&&/* @__PURE__ */R("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.to)}),ye.topItems.length>0&&et&&!ye.topItems[ye.topItems.length-1].dividerAfter&&/* @__PURE__ */R("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"}),ye.erpSections.map(e=>Ge(e,!1)),ye.systemSections.map(e=>Ge(e,!1)),ye.virtualSections.map(e=>Ge(e,!0)),ye.footerSections.length>0&&/* @__PURE__ */R("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"}),ye.footerSections.map(e=>Ge(e,!1))]}),
|
|
32
|
+
/* @__PURE__ */R("div",{className:`shrink-0 border-t border-gray-200 py-2 ${Fe}`,style:Ye,children:/* @__PURE__ */K("button",{ref:Le,type:"button",onClick:()=>Se(e=>!e),"aria-haspopup":"menu","aria-expanded":Ce,"aria-label":Me?xe.accountMenu(Je):void 0,className:"flex w-full items-center gap-3 rounded-md hover:bg-gray-100 "+(Me?"justify-center py-2":"px-2 py-2"),children:[Be,!Me&&/* @__PURE__ */K("span",{className:"min-w-0 flex-1 text-left",children:[
|
|
33
|
+
/* @__PURE__ */R("span",{className:"block truncate text-sm font-semibold text-ink-strong",children:Je}),ne?.email&&Je!==ne.email&&/* @__PURE__ */R("span",{className:"block truncate text-2xs text-ink-faint",children:ne.email})]})]})}),_&&!U&&!le&&/* @__PURE__ */R(l,{side:"left",width:b,onResize:_,min:N,max:v,defaultWidth:x,storageKey:i,label:xe.resizeSidebar}),Ce&&Ve&&/* @__PURE__ */K(C,{portal:!0,minWidth:224,onClose:()=>{Se(!1),ze&&"pointer"===We.current&&!Te.current&&Ke()},style:Q(Oe,Ve,window.innerHeight),children:[Me&&/* @__PURE__ */K("div",{className:"border-b border-line px-3 py-3",children:[
|
|
34
|
+
/* @__PURE__ */R("p",{className:"truncate text-sm font-semibold text-gray-800",children:Je}),ne?.email&&/* @__PURE__ */R("p",{className:"truncate text-xs text-gray-500",children:ne.email})]}),
|
|
35
|
+
/* @__PURE__ */K(S,{onClick:()=>{Se(!1),Ke(),ee("/profile",!1)},children:[
|
|
36
|
+
/* @__PURE__ */R($,{name:"account",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),xe.profile]}),ye.footerItems.map(e=>/* @__PURE__ */K(S,{onClick:()=>{Se(!1),Pe(e)},children:[
|
|
37
|
+
/* @__PURE__ */R("span",{className:"h-4 w-4 [&>svg]:size-4","aria-hidden":"true",children:ce[e.to]}),e.menuLabel??e.label]},e.to)),oe&&/* @__PURE__ */K(S,{onClick:()=>{Se(!1),Ke(),oe()},children:[
|
|
38
|
+
/* @__PURE__ */R($,{name:"error",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),xe.reportIssue]}),
|
|
39
|
+
/* @__PURE__ */R(L,{}),ae&&/* @__PURE__ */K(M,{children:[
|
|
40
|
+
/* @__PURE__ */K(S,{onClick:()=>{Se(!1),Ke(),ae()},children:[
|
|
41
|
+
/* @__PURE__ */R($,{name:"desktop",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),xe.switchToDesktop]}),
|
|
42
|
+
/* @__PURE__ */R(L,{})]}),
|
|
43
|
+
/* @__PURE__ */K(S,{danger:!0,onClick:()=>{Se(!1),Ke(),ie()},children:[
|
|
44
|
+
/* @__PURE__ */R($,{name:"logout",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),xe.signOut]})]})]})}export{U as RAIL_PEEK_CLOSE_MS,P as RAIL_PEEK_OPEN_MS,Q as accountMenuPosition,Z as default};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-
|
|
1
|
+
import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-JGZEZHMP.js";import{useWidgetSettings as n}from"./chunk-AYCWVVJ3.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-2DCATU5B.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-OMSIXLK4.js";import"./chunk-64ZDYUE7.js";import"./chunk-RVD6HJUJ.js";import"./chunk-EIFNESXS.js";import"./chunk-Q4BJW37U.js";import"./chunk-RIG5FEVS.js";import"./chunk-CIOPLPZW.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-SAAXAAAH.js";import"./chunk-KPPKPGQI.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import"./chunk-KC3EX26K.js";import"./chunk-DWGYC7OD.js";import"./chunk-JMGDGNM7.js";import"./chunk-GOAFMGUI.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-EVYD6UFQ.js";import"./chunk-M5K4AX4E.js";import"./chunk-ISVODSRP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-G67CJAQ2.js";import"./chunk-SOZCWT6I.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-HCDG7EUR.js";import"./chunk-C3QOHMR6.js";import{useState as r,useCallback as c}from"react";import{jsxs as s,Fragment as i,jsx as a}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),[k,x]=r(()=>e(l)),[j,b]=r(!1),[N,f]=r([]),[y,A]=r(k),[v,S]=r(""),D=c(()=>{f([...o]),A({...k}),S(""),b(!0)},[o,k]);n(D);const P=()=>{const e=v.trim().toUpperCase();!e||N.includes(e)||N.length>=8||(f(t=>[...t,e]),S(""))},C=p.filter(e=>!N.includes(e));/* @__PURE__ */
|
|
2
2
|
return s(i,{children:[
|
|
3
3
|
/* @__PURE__ */a("div",{style:{backgroundColor:`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${k.activeOpacity/100})`,backdropFilter:k.activeBlur>0?`blur(${k.activeBlur}px)`:void 0},children:/* @__PURE__ */a("div",{className:"px-4 py-3",children:0===o.length?/* @__PURE__ */a("div",{className:"text-xs text-gray-500 text-center py-6",children:"No symbols yet — add some in settings."}):/* @__PURE__ */a("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:[
|
|
5
5
|
/* @__PURE__ */a("span",{className:"text-sm font-bold text-gray-800 tracking-tight",children:e}),t?/* @__PURE__ */s("div",{className:"flex flex-col items-end leading-tight",children:[
|
|
6
6
|
/* @__PURE__ */a("span",{className:"text-sm font-mono font-semibold text-gray-900 tabular-nums",children:(c=t.price,`$${c.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})}`)}),
|
|
7
7
|
/* @__PURE__ */s("span",{className:`text-2xs font-medium tabular-nums ${r}`,children:[n?"▲":"▼"," ",d(t.change)," (",d(t.changePct),"%)"]})]}):/* @__PURE__ */a("span",{className:"text-sm font-mono text-gray-400 tabular-nums",children:"—"})]},e);var c})})})}),
|
|
8
|
-
/* @__PURE__ */a(t,{open:j,onClose:()=>
|
|
8
|
+
/* @__PURE__ */a(t,{open:j,onClose:()=>b(!1),title:"Stock Settings",appearance:y,onAppearanceChange:A,onSave:()=>{const e=N.map(e=>e.toUpperCase()).slice(0,8);g(e),x(y),localStorage.setItem(m,JSON.stringify(e)),localStorage.setItem(l,JSON.stringify(y)),b(!1)},children:/* @__PURE__ */s("div",{children:[
|
|
9
9
|
/* @__PURE__ */s("h3",{className:"text-sm font-semibold text-ink mb-2",children:["Symbols ",
|
|
10
|
-
/* @__PURE__ */s("span",{className:"text-2xs font-normal text-ink-faintest",children:["(",
|
|
11
|
-
/* @__PURE__ */s("div",{className:"space-y-1 mb-2",children:[
|
|
10
|
+
/* @__PURE__ */s("span",{className:"text-2xs font-normal text-ink-faintest",children:["(",N.length,"/",8,")"]})]}),
|
|
11
|
+
/* @__PURE__ */s("div",{className:"space-y-1 mb-2",children:[N.map((e,t)=>/* @__PURE__ */s("div",{className:"flex items-center justify-between py-1 px-2 bg-gray-50 rounded",children:[
|
|
12
12
|
/* @__PURE__ */a("span",{className:"text-sm font-semibold text-gray-700",children:e}),
|
|
13
|
-
/* @__PURE__ */a("button",{onClick:()=>f(e=>e.filter((e,n)=>n!==t)),className:"text-red-400 hover:text-red-600",children:"×"})]},t)),0===
|
|
14
|
-
/* @__PURE__ */a("input",{value:
|
|
15
|
-
/* @__PURE__ */a("button",{onClick:
|
|
13
|
+
/* @__PURE__ */a("button",{onClick:()=>f(e=>e.filter((e,n)=>n!==t)),className:"text-red-400 hover:text-red-600",children:"×"})]},t)),0===N.length&&/* @__PURE__ */a("p",{className:"text-2xs text-ink-faintest italic",children:"No symbols — add a ticker below."})]}),N.length<8?/* @__PURE__ */s("div",{className:"flex items-center gap-2",children:[
|
|
14
|
+
/* @__PURE__ */a("input",{value:v,onChange:e=>S(e.target.value),onKeyDown:e=>{"Enter"===e.key&&P()},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__ */a("button",{onClick:P,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."]}),C.length>0&&N.length<8&&/* @__PURE__ */a("div",{className:"flex flex-wrap gap-2 mt-2",children:C.map(e=>/* @__PURE__ */a("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__ */a("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-JGZEZHMP.js";import{pad2 as s}from"./chunk-LF27WIN2.js";import{useWidgetSettings as o}from"./chunk-AYCWVVJ3.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-2DCATU5B.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-OMSIXLK4.js";import"./chunk-64ZDYUE7.js";import"./chunk-RVD6HJUJ.js";import"./chunk-EIFNESXS.js";import"./chunk-Q4BJW37U.js";import"./chunk-RIG5FEVS.js";import"./chunk-CIOPLPZW.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-SAAXAAAH.js";import"./chunk-KPPKPGQI.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import{useShellPrefs as l}from"./chunk-KC3EX26K.js";import"./chunk-DWGYC7OD.js";import"./chunk-JMGDGNM7.js";import"./chunk-GOAFMGUI.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-EVYD6UFQ.js";import"./chunk-M5K4AX4E.js";import"./chunk-ISVODSRP.js";import"./chunk-J75ZT2JQ.js";import{LoadingSpinner as c}from"./chunk-R2VKEMZH.js";import"./chunk-G67CJAQ2.js";import"./chunk-SOZCWT6I.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-HCDG7EUR.js";import"./chunk-C3QOHMR6.js";import{useState as d,useEffect as m,useCallback as h}from"react";import{jsx as p,jsxs as u,Fragment as f}from"react/jsx-runtime";var y="weather_city",g="weather_appearance",x={useFahrenheit:!1,showLocalTime:!0,use24Hour:!1};function b(){const e="undefined"!=typeof localStorage?localStorage.getItem(y):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(y,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 w=r;function k(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`${s(a)}:${s(r)}`}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}:${s(n)} ${i}`}catch{return""}}function v(){/* @__PURE__ */
|
|
2
2
|
return u("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 N(){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__ */
|
|
@@ -19,42 +19,42 @@ return u("div",{className:"absolute inset-0 overflow-hidden pointer-events-none"
|
|
|
19
19
|
/* @__PURE__ */p("div",{className:"absolute",style:{top:"40%",animation:"wx-drift-cloud 60s linear -22s infinite",opacity:.85},children:/* @__PURE__ */p(a,{scale:1.25})}),
|
|
20
20
|
/* @__PURE__ */p("div",{className:"absolute",style:{top:"68%",animation:"wx-drift-cloud 78s linear -45s infinite",opacity:.7},children:/* @__PURE__ */p(a,{scale:.75})})]})}function S({heavy:e=!1}){const t=e?26:16,a=["wx-rain-a","wx-rain-b","wx-rain-c"],r=Array.from({length:t}).map((e,r)=>({left:(100*r/t+11*r%7)%100+"%",delay:.087*r%1.3+"s",height:12+r%4*5+"px",duration:.7+r%3*.18+"s",variant:a[r%a.length]}));/* @__PURE__ */
|
|
21
21
|
return p("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:r.map((e,t)=>/* @__PURE__ */p("div",{className:"absolute",style:{left:e.left,top:"-20px",width:"1px",height:e.height,background:"linear-gradient(180deg, rgba(180,210,255,0) 0%, rgba(220,235,255,0.85) 90%, rgba(255,255,255,0.95) 100%)",transform:"rotate(8deg)",animation:`${e.variant} ${e.duration} linear ${e.delay} infinite`,transformOrigin:"top"}},t))})}function D(){const e=["wx-snow-a","wx-snow-b","wx-snow-c"],t=Array.from({length:16}).map((t,a)=>({left:(100*a/16+13*a%5)%100+"%",delay:.43*a%5+"s",duration:4.5+a%5+"s",size:3+a%4*1.4,opacity:.65+7*a%4*.08,variant:e[a%e.length]}));/* @__PURE__ */
|
|
22
|
-
return p("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:t.map((e,t)=>/* @__PURE__ */p("div",{className:"absolute rounded-full bg-white",style:{left:e.left,top:"-12px",width:e.size,height:e.size,opacity:e.opacity,boxShadow:"0 0 4px rgba(255,255,255,0.65)",animation:`${e.variant} ${e.duration} linear ${e.delay} infinite`}},t))})}function
|
|
22
|
+
return p("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:t.map((e,t)=>/* @__PURE__ */p("div",{className:"absolute rounded-full bg-white",style:{left:e.left,top:"-12px",width:e.size,height:e.size,opacity:e.opacity,boxShadow:"0 0 4px rgba(255,255,255,0.65)",animation:`${e.variant} ${e.duration} linear ${e.delay} infinite`}},t))})}function A(){/* @__PURE__ */
|
|
23
23
|
return u("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[
|
|
24
24
|
/* @__PURE__ */p(S,{heavy:!0}),
|
|
25
25
|
/* @__PURE__ */p("div",{className:"absolute inset-0 bg-white",style:{animation:"wx-flash 6s ease-out infinite"}}),
|
|
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
|
|
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 C(){/* @__PURE__ */
|
|
27
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 I({code:e,isDay:t}){return 0===e||1===e?/* @__PURE__ */p(t?v:N,{}):2===e?/* @__PURE__ */u(f,{children:[/* @__PURE__ */p(t?v:N,{}),
|
|
28
|
-
/* @__PURE__ */p(j,{tone:t?"light":"dark"})]}):3===e?/* @__PURE__ */p(j,{tone:t?"light":"dark"}):45===e||48===e?/* @__PURE__ */p(
|
|
28
|
+
/* @__PURE__ */p(j,{tone:t?"light":"dark"})]}):3===e?/* @__PURE__ */p(j,{tone:t?"light":"dark"}):45===e||48===e?/* @__PURE__ */p(C,{}):[51,53,61,80,81].includes(e)?/* @__PURE__ */p(S,{}):[55,63,65,82].includes(e)?/* @__PURE__ */p(S,{heavy:!0}):[71,73,75].includes(e)?/* @__PURE__ */p(D,{}):[95,96,99].includes(e)?/* @__PURE__ */p(A,{}):null}function F(){const[r,s]=d(b),[v,N]=d(()=>n(g)),[j,S]=d(null),[D,A]=d(!0),[,C]=d(0);m(()=>{const e=setInterval(()=>C(e=>e+1),6e4);return()=>clearInterval(e)},[]);const[F,T]=d(!1),[$,H]=d(r),[L,G]=d(v),{prefs:J,save:M}=l(),O={...x,...J.weather_prefs??{}},[U,Z]=d(O);o(h(()=>{H(r),G({...v}),Z({...O}),T(!0)},[r,v,O])),m(()=>{let t=!1;return A(!0),e(r).then(e=>{t||(S(e),A(!1))}),()=>{t=!0}},[r]);const P=e=>O.useFahrenheit?`${w(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(c,{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[W,X,B]=t(j.code,j.isDay);/* @__PURE__ */
|
|
31
31
|
return u(f,{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
|
-
/* @__PURE__ */p("div",{className:"rounded-lg overflow-hidden",style:{backgroundColor:`rgba(15, 23, 42, ${v.activeOpacity/100})`,backdropFilter:v.activeBlur>0?`blur(${v.activeBlur}px)`:void 0},children:/* @__PURE__ */u("div",{className:`relative rounded-lg overflow-hidden text-white bg-gradient-to-br ${
|
|
33
|
+
/* @__PURE__ */p("div",{className:"rounded-lg overflow-hidden",style:{backgroundColor:`rgba(15, 23, 42, ${v.activeOpacity/100})`,backdropFilter:v.activeBlur>0?`blur(${v.activeBlur}px)`:void 0},children:/* @__PURE__ */u("div",{className:`relative rounded-lg overflow-hidden text-white bg-gradient-to-br ${B}`,style:{height:110},children:[
|
|
34
34
|
/* @__PURE__ */p(I,{code:j.code,isDay:j.isDay}),
|
|
35
35
|
/* @__PURE__ */u("div",{className:"relative z-10 px-3 py-3 flex flex-col h-full justify-between",children:[
|
|
36
36
|
/* @__PURE__ */u("div",{className:"flex items-start justify-between gap-2",children:[
|
|
37
37
|
/* @__PURE__ */u("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}),O.showLocalTime&&/* @__PURE__ */p("div",{className:"text-2xs opacity-90 leading-tight tabular-nums drop-shadow-sm",children:k(j.timezone,O.use24Hour)})]}),
|
|
39
|
+
/* @__PURE__ */p("div",{className:"text-3xl font-extralight leading-none tracking-tight tabular-nums shrink-0 drop-shadow-sm",children:P(j.temp)})]}),
|
|
40
40
|
/* @__PURE__ */u("div",{className:"flex items-end justify-between gap-2",children:[
|
|
41
41
|
/* @__PURE__ */u("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__ */u("span",{className:"text-2xs opacity-90 tabular-nums drop-shadow-sm shrink-0",children:["H:",
|
|
45
|
-
/* @__PURE__ */u(i,{open:
|
|
42
|
+
/* @__PURE__ */p("span",{className:"text-lg leading-none drop-shadow-sm",children:X}),
|
|
43
|
+
/* @__PURE__ */p("span",{className:"text-2xs font-medium drop-shadow-sm truncate",children:W})]}),
|
|
44
|
+
/* @__PURE__ */u("span",{className:"text-2xs opacity-90 tabular-nums drop-shadow-sm shrink-0",children:["H:",P(j.high)," L:",P(j.low)]})]})]})]})}),
|
|
45
|
+
/* @__PURE__ */u(i,{open:F,onClose:()=>T(!1),title:"Weather Settings",appearance:L,onAppearanceChange:G,onSave:()=>{s($),N(L),M({weather_prefs:U}),localStorage.setItem(y,$),localStorage.setItem(g,JSON.stringify(L)),T(!1)},children:[
|
|
46
46
|
/* @__PURE__ */p("div",{className:"space-y-3",children:/* @__PURE__ */u("div",{children:[
|
|
47
47
|
/* @__PURE__ */p("h3",{className:"text-sm font-semibold text-gray-700 mb-2",children:"Display"}),
|
|
48
48
|
/* @__PURE__ */u("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:()=>Z(t=>({...t,useFahrenheit:e.key})),className:"px-3 py-1 text-xs font-medium rounded-lg border transition-colors "+(U.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__ */u("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:()=>Z(t=>({...t,use24Hour:e.key})),className:"px-3 py-1 text-xs font-medium rounded-lg border transition-colors "+(U.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__ */u("label",{className:"flex items-center gap-2 cursor-pointer",children:[
|
|
55
|
-
/* @__PURE__ */p("input",{type:"checkbox",checked:
|
|
55
|
+
/* @__PURE__ */p("input",{type:"checkbox",checked:U.showLocalTime,onChange:e=>Z(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__ */u("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:$,onChange:e=>H(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{F 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-JGZEZHMP.js";import{useWidgetSettings as a}from"./chunk-AYCWVVJ3.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-2DCATU5B.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-OMSIXLK4.js";import"./chunk-64ZDYUE7.js";import"./chunk-RVD6HJUJ.js";import"./chunk-EIFNESXS.js";import"./chunk-Q4BJW37U.js";import"./chunk-RIG5FEVS.js";import"./chunk-CIOPLPZW.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-SAAXAAAH.js";import"./chunk-KPPKPGQI.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import{useShellPrefs as c}from"./chunk-KC3EX26K.js";import"./chunk-DWGYC7OD.js";import"./chunk-JMGDGNM7.js";import"./chunk-GOAFMGUI.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-EVYD6UFQ.js";import"./chunk-M5K4AX4E.js";import"./chunk-ISVODSRP.js";import"./chunk-J75ZT2JQ.js";import{LoadingSpinner as o}from"./chunk-R2VKEMZH.js";import"./chunk-G67CJAQ2.js";import"./chunk-SOZCWT6I.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-HCDG7EUR.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),F={useFahrenheit:!!j.weather_prefs?.useFahrenheit},[S,U]=m(F),[A,G]=m(()=>/* @__PURE__ */new Date);l(()=>{const e=setInterval(()=>G(/* @__PURE__ */new Date),3e4);return()=>clearInterval(e)},[]);const J=Object.fromEntries(Object.entries(e).map(([e,t])=>[t.tz,e])),O=j.world_clocks,P=(()=>{if(!Array.isArray(O)||0===O.length)return g;const t=[];for(const n of O){const r=e[n]?n:J[n];r&&!t.includes(r)&&t.push(r)}return t.length?t:g})(),[W,M]=m({}),[T,Z]=m(!0);l(()=>{let e=!1;return Z(!0),(async()=>{const n={};await Promise.all(P.map(async e=>{const r=await t(e);r&&(n[e]=r)})),e||(M(n),Z(!1))})(),()=>{e=!0}},[P.join(",")]),a(h(()=>{w([...P]),C({...b}),U({...F}),N(!0)},[P.join(","),b,F.useFahrenheit]));const E=e=>F.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:[T&&P.every(e=>!W[e])&&/* @__PURE__ */d(o,{size:"sm",padding:"py-6",label:"Loading"}),P.map(t=>{const r=W[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,A);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:E(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,13 +18,13 @@ 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:",E(r.high)," L:",E(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:S.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:[
|
|
26
26
|
/* @__PURE__ */d("span",{className:"text-sm text-gray-600 w-24",children:"Temperature"}),
|
|
27
|
-
/* @__PURE__ */d("div",{className:"flex gap-1",children:[{key:!1,label:"°C"},{key:!0,label:"°F"}].map(e=>/* @__PURE__ */d("button",{onClick:()=>
|
|
27
|
+
/* @__PURE__ */d("div",{className:"flex gap-1",children:[{key:!1,label:"°C"},{key:!0,label:"°F"}].map(e=>/* @__PURE__ */d("button",{onClick:()=>U(t=>({...t,useFahrenheit:e.key})),className:"px-3 py-1 text-xs font-medium rounded-lg border transition-colors "+(S.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)))})]}),
|
|
28
28
|
/* @__PURE__ */d("p",{className:"text-2xs text-ink-faintest mt-1",children:"Shared with the Weather widget."})]}),
|
|
29
29
|
/* @__PURE__ */p("div",{children:[
|
|
30
30
|
/* @__PURE__ */d("h3",{className:"text-sm font-semibold text-gray-700 mb-2",children:"Cities"}),
|
package/dist/ai/index.d.ts
CHANGED
|
@@ -614,6 +614,134 @@ interface MessageProps {
|
|
|
614
614
|
}
|
|
615
615
|
declare function Message({ message, speaker, toolLabels, labels, showReasoning, showToolOutput, showUsage, live, waitingSince, onApprove, plans, userActions, tableActions, onLinkClick, onOpenAttachment, onOpenFile, renderDataPart, showCopy, answerActions, onRate, onAsk, layout, selfName, onQuote }: MessageProps): react_jsx_runtime.JSX.Element | null;
|
|
616
616
|
|
|
617
|
+
/** One emoji on a message, as `/api/direct-chats/` sends it. */
|
|
618
|
+
interface ChatReaction {
|
|
619
|
+
emoji: string;
|
|
620
|
+
count: number;
|
|
621
|
+
/** The viewer is one of them. */
|
|
622
|
+
mine: boolean;
|
|
623
|
+
/** Who, by name. */
|
|
624
|
+
names: string[];
|
|
625
|
+
}
|
|
626
|
+
/** The emoji the hover bar offers first. */
|
|
627
|
+
declare const QUICK_REACTIONS: readonly ["👍", "✅", "👀"];
|
|
628
|
+
/** The picker's emoji: the common ones, in a small grid, no library. */
|
|
629
|
+
declare const PICKER_EMOJI: readonly ["👍", "👎", "❤️", "😂", "😮", "😢", "🙏", "🎉", "✅", "❌", "👀", "🔥", "💯", "🚀", "👏", "🙌", "😀", "😅", "🤔", "😬", "🤝", "💪", "📦", "🚚", "📅", "⏰", "💰", "📈", "⚠️", "❓", "➕", "👌"];
|
|
630
|
+
/** "You, Mia Chen and Tom Reyes": who reacted, the viewer first as "You". */
|
|
631
|
+
declare function reactionNames(reaction: ChatReaction, selfName?: string, you?: string): string;
|
|
632
|
+
/** A small grid of emoji; choosing one calls `onPick` and closes it. */
|
|
633
|
+
declare function EmojiPicker({ onPick, onClose, label }: {
|
|
634
|
+
onPick: (emoji: string) => void;
|
|
635
|
+
onClose: () => void;
|
|
636
|
+
label?: string;
|
|
637
|
+
}): react_jsx_runtime.JSX.Element;
|
|
638
|
+
/** The quick emoji and the smiley for a row's hover bar. */
|
|
639
|
+
declare function ReactionBarItems({ onReact, label }: {
|
|
640
|
+
/** Adds the viewer's emoji. */
|
|
641
|
+
onReact: (emoji: string) => void;
|
|
642
|
+
label?: string;
|
|
643
|
+
}): react_jsx_runtime.JSX.Element;
|
|
644
|
+
/** The pills under a message: each emoji with its count, the viewer's own
|
|
645
|
+
* in the accent tint. Choosing one toggles the viewer's; the last pill adds
|
|
646
|
+
* another. Pointing at a pill names who reacted. */
|
|
647
|
+
declare function ReactionPills({ reactions, onToggle, selfName, label }: {
|
|
648
|
+
reactions: ChatReaction[];
|
|
649
|
+
/** `on`: add the viewer's emoji; off: take it back. Absent: read only. */
|
|
650
|
+
onToggle?: (emoji: string, on: boolean) => void;
|
|
651
|
+
selfName?: string;
|
|
652
|
+
label?: string;
|
|
653
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
654
|
+
/** What a deleted message leaves in its place. */
|
|
655
|
+
declare function DeletedText({ text }: {
|
|
656
|
+
text?: string;
|
|
657
|
+
}): react_jsx_runtime.JSX.Element;
|
|
658
|
+
/** A forwarded or shared message's copy, as the server keeps it. */
|
|
659
|
+
interface ChatForwarded {
|
|
660
|
+
author_name: string;
|
|
661
|
+
chat_title: string;
|
|
662
|
+
chat_kind: string;
|
|
663
|
+
body: string;
|
|
664
|
+
created_at: string;
|
|
665
|
+
/** Filled only for a reader who is in the chat it came from. */
|
|
666
|
+
chat_id: string | null;
|
|
667
|
+
message_id: string | null;
|
|
668
|
+
}
|
|
669
|
+
/** The card a forwarded message carries: who wrote it, where and when, what
|
|
670
|
+
* it said, and a link back for a reader who is in that chat. */
|
|
671
|
+
declare function ForwardedCard({ forwarded, onOpen, children }: {
|
|
672
|
+
forwarded: ChatForwarded;
|
|
673
|
+
/** Opens the original; shown only when the server gave a link back. */
|
|
674
|
+
onOpen?: (chatId: string, messageId: string) => void;
|
|
675
|
+
/** The original's own rendering of `body` (mentions, Markdown). */
|
|
676
|
+
children?: ReactNode;
|
|
677
|
+
}): react_jsx_runtime.JSX.Element;
|
|
678
|
+
/** "Mia Chen is typing", "Mia Chen and Sam Patel are typing", "Several
|
|
679
|
+
* people are typing". Nothing while nobody is. */
|
|
680
|
+
declare function typingWords(names: string[]): string;
|
|
681
|
+
/** The line under the last message while someone else types. */
|
|
682
|
+
declare function TypingLine({ names }: {
|
|
683
|
+
names: string[];
|
|
684
|
+
}): react_jsx_runtime.JSX.Element;
|
|
685
|
+
/** Someone the composer's menu offers; `id` empty for a word such as
|
|
686
|
+
* "@channel" or the assistant. */
|
|
687
|
+
interface MentionOption {
|
|
688
|
+
id: string;
|
|
689
|
+
/** What goes into the text after "@": a person's name, "JARVIS", "channel". */
|
|
690
|
+
name: string;
|
|
691
|
+
/** Muted on the right: a team, "Assistant", "All 9", "Active now". */
|
|
692
|
+
hint?: string;
|
|
693
|
+
avatarUrl?: string | null;
|
|
694
|
+
/** Draws the sparkles (the assistant) or a megaphone (a word for everyone). */
|
|
695
|
+
kind?: 'person' | 'assistant' | 'everyone';
|
|
696
|
+
}
|
|
697
|
+
/** The "@…" being typed at `caret`, or null: the at sign's index and what
|
|
698
|
+
* follows it so far (letters, spaces between names, up to 30 characters). */
|
|
699
|
+
declare function mentionQuery(text: string, caret: number): {
|
|
700
|
+
start: number;
|
|
701
|
+
query: string;
|
|
702
|
+
} | null;
|
|
703
|
+
/** The options whose name has a word starting with every word of `query`. */
|
|
704
|
+
declare function filterMentions(options: MentionOption[], query: string, limit?: number): MentionOption[];
|
|
705
|
+
/** The text with the "@query" at `start..caret` replaced by "@Name ", and
|
|
706
|
+
* where the caret goes after it. */
|
|
707
|
+
declare function insertMention(text: string, start: number, caret: number, name: string): {
|
|
708
|
+
text: string;
|
|
709
|
+
caret: number;
|
|
710
|
+
};
|
|
711
|
+
/** The ids of the people still named in `text` ("@Name" as whole words). */
|
|
712
|
+
declare function mentionedIds(text: string, picked: MentionOption[]): string[];
|
|
713
|
+
/** The menu above the composer while "@…" is typed: arrow keys move, Enter
|
|
714
|
+
* or Tab picks, Escape closes (the host routes keys with `useMentionKeys`). */
|
|
715
|
+
declare function MentionMenu({ options, active, onPick, label }: {
|
|
716
|
+
options: MentionOption[];
|
|
717
|
+
active: number;
|
|
718
|
+
onPick: (option: MentionOption) => void;
|
|
719
|
+
label?: string;
|
|
720
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
721
|
+
/** The state of the composer's @-menu for a textarea: call `onChange` with
|
|
722
|
+
* the new text and caret, route `onKeyDown` through `keyDown` first (it
|
|
723
|
+
* answers true when it took the key), and read `mentions` when sending. */
|
|
724
|
+
declare function useMentionDraft(options: MentionOption[]): {
|
|
725
|
+
shown: MentionOption[];
|
|
726
|
+
active: number;
|
|
727
|
+
/** Track the "@…" under the caret. */
|
|
728
|
+
onChange(text: string, caret: number): void;
|
|
729
|
+
/** Pick an option: returns the new text and caret. */
|
|
730
|
+
pick(text: string, option: MentionOption): {
|
|
731
|
+
text: string;
|
|
732
|
+
caret: number;
|
|
733
|
+
};
|
|
734
|
+
/** Arrow keys, Enter/Tab and Escape while the menu shows. */
|
|
735
|
+
keyDown(event: {
|
|
736
|
+
key: string;
|
|
737
|
+
preventDefault: () => void;
|
|
738
|
+
}, pickActive: (option: MentionOption) => void): boolean;
|
|
739
|
+
/** The ids of the people the text still names, for the send. */
|
|
740
|
+
mentions(text: string): string[];
|
|
741
|
+
/** After a send. */
|
|
742
|
+
reset(): void;
|
|
743
|
+
};
|
|
744
|
+
|
|
617
745
|
/** How much of a message a quote carries; the server keeps its own excerpt. */
|
|
618
746
|
declare const QUOTE_EXCERPT_LENGTH = 140;
|
|
619
747
|
/** A message's text as a quote's excerpt: plain words on one line, cut at a word. */
|
|
@@ -634,13 +762,21 @@ declare function RowAvatar({ name, assistant, avatarUrl }: {
|
|
|
634
762
|
declare function QuoteBlock({ quote }: {
|
|
635
763
|
quote: AssistantReplyTo;
|
|
636
764
|
}): react_jsx_runtime.JSX.Element;
|
|
637
|
-
/** The person's text, each
|
|
765
|
+
/** The person's text, each mention in it an accent chip: `@JARVIS`, or
|
|
766
|
+
* several words at once (each person the message mentions, `@channel`). */
|
|
638
767
|
declare function MentionText({ text, mention }: {
|
|
639
768
|
text: string;
|
|
640
|
-
mention: string;
|
|
769
|
+
mention: string | readonly string[];
|
|
641
770
|
}): react_jsx_runtime.JSX.Element;
|
|
642
771
|
/** The words a row's bar and a quote chip use; each falls back to the default. */
|
|
643
|
-
type MessageRowLabels = Partial<Pick<AssistantChatLabels, 'quote' | 'moreActions' | 'replyingTo' | 'clearQuote'
|
|
772
|
+
type MessageRowLabels = Partial<Pick<AssistantChatLabels, 'quote' | 'moreActions' | 'replyingTo' | 'clearQuote'> & typeof ROW_EXTRA_LABELS>;
|
|
773
|
+
/** The words the Slack-parity pieces of a row use (2026-11-09). */
|
|
774
|
+
declare const ROW_EXTRA_LABELS: {
|
|
775
|
+
edited: string;
|
|
776
|
+
deleted: string;
|
|
777
|
+
addReaction: string;
|
|
778
|
+
pinned: string;
|
|
779
|
+
};
|
|
644
780
|
/** What the composer's box shows above the field while a reply quotes a
|
|
645
781
|
* message: "Replying to {name}", how it began, and × to drop the quote. */
|
|
646
782
|
declare function QuoteChip({ quote, labels, onClear }: {
|
|
@@ -691,10 +827,23 @@ interface MessageRowProps {
|
|
|
691
827
|
menuText?: string;
|
|
692
828
|
/** Under the text: the reply's stats. */
|
|
693
829
|
footer?: ReactNode;
|
|
830
|
+
/** Its writer changed it: "(edited)" after the time. */
|
|
831
|
+
edited?: boolean;
|
|
832
|
+
/** Deleted: "This message was deleted" in place of the text, no bar and
|
|
833
|
+
* no reactions. */
|
|
834
|
+
deleted?: boolean;
|
|
835
|
+
/** The emoji under the message (`ReactionPills`). */
|
|
836
|
+
reactions?: ChatReaction[];
|
|
837
|
+
/** With it, the bar offers quick emoji and the pills toggle the viewer's. */
|
|
838
|
+
onReact?: (emoji: string, on: boolean) => void;
|
|
839
|
+
/** The viewer's name, so the pills say "You". */
|
|
840
|
+
selfName?: string;
|
|
841
|
+
/** Pinned to the chat: a small "Pinned" over the row. */
|
|
842
|
+
pinned?: boolean;
|
|
694
843
|
children: ReactNode;
|
|
695
844
|
}
|
|
696
845
|
/** One message in the `rows` layout. */
|
|
697
|
-
declare function MessageRow({ name, assistant, avatarUrl, mine, receipt, onReceiptInfo, createdAt, note, replyTo, labels: labelOverrides, onQuote, barItems, menu, menuText, footer, children }: MessageRowProps): react_jsx_runtime.JSX.Element;
|
|
846
|
+
declare function MessageRow({ name, assistant, avatarUrl, mine, receipt, onReceiptInfo, createdAt, note, replyTo, labels: labelOverrides, onQuote: quote, barItems: hostItems, menu: hostMenu, menuText, footer: hostFooter, edited, deleted, reactions, onReact: react, selfName, pinned, children: body }: MessageRowProps): react_jsx_runtime.JSX.Element;
|
|
698
847
|
|
|
699
848
|
interface ApprovalDecision {
|
|
700
849
|
approval_id: string;
|
|
@@ -755,7 +904,7 @@ interface MentionSpan {
|
|
|
755
904
|
/** A message's text cut where it names the assistant by `mention` ("@JARVIS"),
|
|
756
905
|
* on the same word edges as {@link mentionsAssistant}, so the rows layout can
|
|
757
906
|
* draw each mention as a chip. Without a mention it is one plain span. */
|
|
758
|
-
declare function mentionSpans(text: string, mention: string): MentionSpan[];
|
|
907
|
+
declare function mentionSpans(text: string, mention: string | readonly string[]): MentionSpan[];
|
|
759
908
|
/** The draft as a question to the assistant: `mention` first, unless it is
|
|
760
909
|
* already there. */
|
|
761
910
|
declare function addressedToAssistant(text: string, mention: string): string;
|
|
@@ -935,4 +1084,4 @@ declare function summarizeChat(messages: AssistantUIMessage[], toolLabels: ToolL
|
|
|
935
1084
|
/** Compact token counts for the panel: 950, 48.2k, 1.3M. */
|
|
936
1085
|
declare function compactCount(n: number): string;
|
|
937
1086
|
|
|
938
|
-
export { ApprovalCard, type ApprovalDecision, type AssistantAnswerAction, type AssistantAnswerRating, type AssistantAnswerVerdict, type AssistantAttachment, type AssistantAttachmentsConfig, AssistantChat, type AssistantChatDetails, type AssistantChatLabels, type AssistantChatLayout, type AssistantChatProps, type AssistantChatRequestBody, type AssistantChatVariant, type AssistantConversation, type AssistantDataPart, type AssistantDetailFact, type AssistantErrorCode, Message as AssistantMessage, type AssistantMessageMetadata, type AssistantPerson, type AssistantRateRequest, type AssistantReplyTo, type AssistantTextAction, type AssistantTurnUsage, type AssistantUIMessage, type ChatDetailsSummary, type ChatFile, type ChatTool, type ChatUsage, type ConversationHistory, DEFAULT_ASSISTANT_CHAT_LABELS, type ErrorDataPart, type FailureView, type FileDataPart, type MentionSpan, MentionText, type MessageReceipt, MessageRow, type MessageRowLabels, type MessageRowProps, type MessageSource, OWN_DATA_PARTS, PlanApprovalCard, PlanChecklist, type PlanDataPart, type PlanStatus, type PlanStepData, QUOTE_EXCERPT_LENGTH, QuoteBlock, QuoteChip, ReceiptTicks, RowAvatar, type ToolLabel, type ToolLabelSpec, type ToolLabels, ToolStep, type ToolSummaryDataPart, type ToolSummaryRow, addressedToAssistant, attachmentPart, attachmentsOf, buildRequestBody, compactCount, estimateTokens, failureView, filesOf, finishedStats, initialsOf, isDroppedConnection, liveStats, mentionSpans, mentionsAssistant, messagesFromHistory, peopleNames, pinnedPlan, plansOf, quoteExcerpt, summarizeChat, tokensPerSecond, toolSummariesOf };
|
|
1087
|
+
export { ApprovalCard, type ApprovalDecision, type AssistantAnswerAction, type AssistantAnswerRating, type AssistantAnswerVerdict, type AssistantAttachment, type AssistantAttachmentsConfig, AssistantChat, type AssistantChatDetails, type AssistantChatLabels, type AssistantChatLayout, type AssistantChatProps, type AssistantChatRequestBody, type AssistantChatVariant, type AssistantConversation, type AssistantDataPart, type AssistantDetailFact, type AssistantErrorCode, Message as AssistantMessage, type AssistantMessageMetadata, type AssistantPerson, type AssistantRateRequest, type AssistantReplyTo, type AssistantTextAction, type AssistantTurnUsage, type AssistantUIMessage, type ChatDetailsSummary, type ChatFile, type ChatForwarded, type ChatReaction, type ChatTool, type ChatUsage, type ConversationHistory, DEFAULT_ASSISTANT_CHAT_LABELS, DeletedText, EmojiPicker, type ErrorDataPart, type FailureView, type FileDataPart, ForwardedCard, MentionMenu, type MentionOption, type MentionSpan, MentionText, type MessageReceipt, MessageRow, type MessageRowLabels, type MessageRowProps, type MessageSource, OWN_DATA_PARTS, PICKER_EMOJI, PlanApprovalCard, PlanChecklist, type PlanDataPart, type PlanStatus, type PlanStepData, QUICK_REACTIONS, QUOTE_EXCERPT_LENGTH, QuoteBlock, QuoteChip, ROW_EXTRA_LABELS, ReactionBarItems, ReactionPills, ReceiptTicks, RowAvatar, type ToolLabel, type ToolLabelSpec, type ToolLabels, ToolStep, type ToolSummaryDataPart, type ToolSummaryRow, TypingLine, addressedToAssistant, attachmentPart, attachmentsOf, buildRequestBody, compactCount, estimateTokens, failureView, filesOf, filterMentions, finishedStats, initialsOf, insertMention, isDroppedConnection, liveStats, mentionQuery, mentionSpans, mentionedIds, mentionsAssistant, messagesFromHistory, peopleNames, pinnedPlan, plansOf, quoteExcerpt, reactionNames, summarizeChat, tokensPerSecond, toolSummariesOf, typingWords, useMentionDraft };
|