efficient-shell 10.17.1 → 10.20.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/dist/{Browser-4B76MFTG.js → Browser-3BZPV4OH.js} +14 -14
- package/dist/Calculator-6NJNSIRN.js +29 -0
- package/dist/{CurrencyConverter-36BFSFRS.js → CurrencyConverter-42IHLJVV.js} +8 -8
- package/dist/{Documents-VKAMBKSP.js → Documents-N2OS46II.js} +24 -24
- package/dist/Files-6MMOX77N.js +88 -0
- package/dist/{Notepad-AQXGH6VP.js → Notepad-QSF2MA3I.js} +9 -9
- package/dist/{PomodoroTimer-RHDLKJBY.js → PomodoroTimer-PD7POYX5.js} +20 -20
- package/dist/{Preview-DEBTZQP5.js → Preview-YJPVKRQU.js} +51 -51
- package/dist/Sidebar-2HHICMZZ.js +44 -0
- package/dist/{Spreadsheet-FSHLWXYP.js → Spreadsheet-3P3BL6CS.js} +9 -9
- package/dist/{Stock-CV53A432.js → Stock-IABQRSXZ.js} +3 -3
- package/dist/{Weather-R4MCLH7F.js → Weather-4QPYOENN.js} +22 -22
- package/dist/{WorldClock-CSFPCZHU.js → WorldClock-3ZVRBLEW.js} +6 -6
- package/dist/ai/index.d.ts +20 -4
- package/dist/ai/index.js +91 -81
- package/dist/ai.css +1 -1
- package/dist/apps/index.js +1 -1
- package/dist/bin/media-host-check.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/brand.css +1 -1
- package/dist/charts/BoxPlotChart.js +1 -1
- package/dist/charts/CandlestickChart.js +1 -1
- package/dist/charts/ChartTooltip.js +1 -1
- package/dist/charts/ChordChart.js +1 -1
- package/dist/charts/ColumnChart.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/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/SankeyChart.js +1 -1
- package/dist/charts/ScatterChart.js +1 -1
- package/dist/charts/SpecChart.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-22RQC4EW.js +20 -0
- package/dist/chunk-2H6YNMBE.js +14 -0
- package/dist/chunk-2UVMNA5W.js +4 -0
- package/dist/{chunk-XTV3CAV7.js → chunk-2VGQS6CW.js} +1 -1
- package/dist/{chunk-5VAIVRK6.js → chunk-2YSGXZOL.js} +48 -48
- package/dist/{chunk-SQCUN2DX.js → chunk-34URULVW.js} +1 -1
- package/dist/{chunk-5LCDCO46.js → chunk-3ELLBQPS.js} +1 -1
- package/dist/chunk-3FGPFDDK.js +2 -0
- package/dist/{chunk-NZQCDFDG.js → chunk-3NW5LD7D.js} +3 -3
- package/dist/{chunk-IX7QXMNJ.js → chunk-3PR5YMWZ.js} +1 -1
- package/dist/{chunk-ILP7QVW5.js → chunk-3UXXA2CS.js} +8 -8
- package/dist/{chunk-5IPFQV34.js → chunk-43L5K2IX.js} +2 -2
- package/dist/{chunk-NRI26RYC.js → chunk-4HBSQGRI.js} +2 -2
- package/dist/{chunk-BZUA5F33.js → chunk-4UKGVLFP.js} +1 -1
- package/dist/{chunk-3VLG6LR3.js → chunk-4WEFGKJL.js} +4 -4
- package/dist/{chunk-UABVKJK7.js → chunk-54NMFQMW.js} +1 -1
- package/dist/{chunk-IDV32UV7.js → chunk-5HO53ZE7.js} +26 -26
- package/dist/chunk-5LBPBT7U.js +4 -0
- package/dist/{chunk-U32J7D4Q.js → chunk-5QGBVTGS.js} +2 -2
- package/dist/{chunk-BE777IO7.js → chunk-5SIOCKCK.js} +2 -2
- package/dist/{chunk-D6OYQM4V.js → chunk-5TDQPZDB.js} +5 -5
- package/dist/chunk-5TQLUPZD.js +6 -0
- package/dist/{chunk-AEJYSUVQ.js → chunk-5WYRAJ5F.js} +1 -1
- package/dist/chunk-67MQ5S32.js +8 -0
- package/dist/chunk-6CBF7UQ2.js +2 -0
- package/dist/chunk-6JSXIEH2.js +4 -0
- package/dist/chunk-6LNNBA3T.js +2 -0
- package/dist/{chunk-Q3IR5SKD.js → chunk-6XBWM453.js} +1 -1
- package/dist/{chunk-L2RS2UQM.js → chunk-77AQNJE2.js} +1 -1
- package/dist/chunk-77MOYIQW.js +15 -0
- package/dist/chunk-7INZ7O3A.js +5 -0
- package/dist/{chunk-G4JTO5PB.js → chunk-7JGR7WPD.js} +1 -1
- package/dist/{chunk-3PR7FLTZ.js → chunk-7VBXIIEC.js} +2 -2
- package/dist/{chunk-MAFSELZK.js → chunk-A42MKJA3.js} +1 -1
- package/dist/{chunk-SOJEQHZ2.js → chunk-AYDW63LV.js} +1 -1
- package/dist/chunk-BTFBXZS2.js +1 -0
- package/dist/{chunk-XCAO2F3H.js → chunk-C6Y7B73Q.js} +1 -1
- package/dist/{chunk-EC527NE3.js → chunk-DCRLJMQ6.js} +1 -1
- package/dist/chunk-DESWIPOZ.js +3 -0
- package/dist/{chunk-WWLKVGV7.js → chunk-DGZAQXTW.js} +4 -4
- package/dist/{chunk-TLWGOQI3.js → chunk-DHIQ46C5.js} +3 -3
- package/dist/chunk-DHKRXHJN.js +1 -0
- package/dist/chunk-DYNJ2H6R.js +8 -0
- package/dist/chunk-E5G2RURY.js +2 -0
- package/dist/chunk-EJUNGVK2.js +22 -0
- package/dist/{chunk-CNUHLJYD.js → chunk-EPY34L26.js} +1 -1
- package/dist/chunk-ESDSE6HY.js +2 -0
- package/dist/{chunk-XKJ7GEVA.js → chunk-FACWYKL6.js} +6 -6
- package/dist/{chunk-ZI3DGOW6.js → chunk-FKRPQDFX.js} +16 -16
- package/dist/chunk-FMHHOXML.js +2 -0
- package/dist/{chunk-HS2E7DVI.js → chunk-FOFZI62F.js} +1 -1
- package/dist/{chunk-Q5QS5MFX.js → chunk-FS6EOU4G.js} +1 -1
- package/dist/{chunk-RBEI4CKX.js → chunk-FTF6JKD5.js} +5 -5
- package/dist/{chunk-WZ5QSSUM.js → chunk-G4GVLK44.js} +6 -6
- package/dist/{chunk-K7L3ZCPB.js → chunk-GEP4FROW.js} +3 -3
- package/dist/chunk-GFYIVFX2.js +2 -0
- package/dist/{chunk-5N5AAYQV.js → chunk-GISDIVFK.js} +1 -1
- package/dist/{chunk-NZGNOMWX.js → chunk-GMOEYB4X.js} +11 -11
- package/dist/chunk-GZ7XQBCG.js +2 -0
- package/dist/chunk-H5FRVS4Y.js +4 -0
- package/dist/chunk-H62WUDPO.js +2 -0
- package/dist/chunk-HFAOJ4OJ.js +2 -0
- package/dist/chunk-HUA3TGMM.js +1 -0
- package/dist/{chunk-VHPT7ZS5.js → chunk-HV47GP2C.js} +5 -5
- package/dist/{chunk-TIGTIT3L.js → chunk-I33SVQ7P.js} +6 -6
- package/dist/chunk-I4VIEGCX.js +2 -0
- package/dist/chunk-I6DN2I6O.js +4 -0
- package/dist/chunk-IS6FC32P.js +2 -0
- package/dist/chunk-JIGFR7Z3.js +11 -0
- package/dist/{chunk-YG6Y5X7S.js → chunk-JNQKBN5M.js} +5 -5
- package/dist/chunk-JNSMBHNH.js +2 -0
- package/dist/{chunk-QEB2UTHO.js → chunk-JYIH2EBG.js} +7 -7
- package/dist/{chunk-2EVTN26H.js → chunk-K4JQ3FQI.js} +2 -2
- package/dist/chunk-K5VNHEVL.js +2 -0
- package/dist/chunk-LAO5ZHQ6.js +14 -0
- package/dist/chunk-LE2UGKUT.js +4 -0
- package/dist/{chunk-QJLBBDX2.js → chunk-LYHJHUQH.js} +1 -1
- package/dist/chunk-MJGK6QTO.js +7 -0
- package/dist/{chunk-LAMRQE2P.js → chunk-MNNZGO2E.js} +1 -1
- package/dist/{chunk-S5SRXI4V.js → chunk-MVZRZTQP.js} +1 -1
- package/dist/{chunk-MMQ6ETRD.js → chunk-N67QX3WW.js} +2 -2
- package/dist/{chunk-3TKMH5VR.js → chunk-N6CS2FO2.js} +1 -1
- package/dist/{chunk-FEATDGFD.js → chunk-NFB7PARJ.js} +1 -1
- package/dist/chunk-NLUSV66Z.js +2 -0
- package/dist/chunk-NO6DG2IV.js +2 -0
- package/dist/chunk-NQJL6B67.js +2 -0
- package/dist/chunk-NR6V243X.js +4 -0
- package/dist/{chunk-WON5GBJY.js → chunk-NU5HN3FZ.js} +7 -7
- package/dist/{chunk-AFINCNY3.js → chunk-NVD4AI5Y.js} +1 -1
- package/dist/chunk-O3UL2XW5.js +2 -0
- package/dist/{chunk-QLVJ5W4G.js → chunk-O47HKK6E.js} +1 -1
- package/dist/{chunk-M5LR7ZZX.js → chunk-O6JJIR4H.js} +1 -1
- package/dist/{chunk-EZUQ5NXE.js → chunk-OORL6BIG.js} +1 -1
- package/dist/{chunk-SDATPJM2.js → chunk-OP5DOO3K.js} +4 -4
- package/dist/{chunk-XQMPLXGG.js → chunk-PLK2WHZG.js} +16 -16
- package/dist/chunk-PN5FQVMB.js +7 -0
- package/dist/chunk-PUF75SMJ.js +1 -0
- package/dist/{chunk-NYEMGKAE.js → chunk-PW52RXPI.js} +1 -1
- package/dist/chunk-QDKAA3HR.js +2 -0
- package/dist/{chunk-CCIGAU5Y.js → chunk-QHPVAXHR.js} +3 -3
- package/dist/chunk-QRTRKWCZ.js +2 -0
- package/dist/{chunk-NVFYLTJ6.js → chunk-QRYSL6QU.js} +2 -2
- package/dist/{chunk-HLQVB7FG.js → chunk-RBBIAIPH.js} +8 -8
- package/dist/chunk-RH2BAZKY.js +4 -0
- package/dist/chunk-RIT7ZXEY.js +4 -0
- package/dist/chunk-RJ4GWBBG.js +4 -0
- package/dist/chunk-RMUSRDWV.js +1 -0
- package/dist/{chunk-G4PGEQOX.js → chunk-RUGQO7YF.js} +9 -9
- package/dist/{chunk-ENDCV7B3.js → chunk-RVRDDTEG.js} +9 -9
- package/dist/{chunk-WS7XIJS6.js → chunk-RXCGE2AY.js} +1 -1
- package/dist/chunk-S5IAQ7ZS.js +2 -0
- package/dist/{chunk-SOBGCIPF.js → chunk-S74LKSUB.js} +1 -1
- package/dist/{chunk-CF7BMDU3.js → chunk-SDDV3UCN.js} +3 -3
- package/dist/{chunk-CUKDQPEN.js → chunk-SLU45G5J.js} +3 -3
- package/dist/chunk-T23TIJ4P.js +1 -0
- package/dist/chunk-T2FITGKQ.js +2 -0
- package/dist/chunk-T7CXUYI4.js +4 -0
- package/dist/{chunk-ZMRGHVKS.js → chunk-TKJBZIHT.js} +1 -1
- package/dist/chunk-TLMFVEMC.js +9 -0
- package/dist/chunk-TQ2M7V4E.js +2 -0
- package/dist/chunk-TSP7UFQB.js +2 -0
- package/dist/{chunk-EQZZ4V5X.js → chunk-TXDA7TTP.js} +1 -1
- package/dist/{chunk-B4HSNEBK.js → chunk-UDKTAG57.js} +1 -1
- package/dist/chunk-UO6GQPT3.js +2 -0
- package/dist/{chunk-4D66DUU5.js → chunk-UYRMW5MO.js} +5 -5
- package/dist/{chunk-5W2OEDUD.js → chunk-V6Y4OC6K.js} +8 -8
- package/dist/{chunk-H7BKSATJ.js → chunk-VDUXPMOQ.js} +1 -1
- package/dist/{chunk-4V73LGZG.js → chunk-VIQ6OME2.js} +8 -8
- package/dist/{chunk-ZF2MNQXY.js → chunk-VN4KSRZ5.js} +1 -1
- package/dist/{chunk-HLVOHOBC.js → chunk-VQCSHJEF.js} +5 -5
- package/dist/{chunk-7AZAMDGG.js → chunk-VWIYC2NB.js} +7 -7
- package/dist/chunk-W33HIHEP.js +2 -0
- package/dist/{chunk-GD7ILVPF.js → chunk-W3OWPBQL.js} +2 -2
- package/dist/{chunk-N4ZEB4UD.js → chunk-WYFMSL4Q.js} +9 -9
- package/dist/{chunk-OUIE2N2Z.js → chunk-XCHAU2UN.js} +5 -5
- package/dist/{chunk-HJ2BDUO6.js → chunk-XK42AQOJ.js} +4 -4
- package/dist/{chunk-BVIOCAEU.js → chunk-XLCZHPCQ.js} +1 -1
- package/dist/{chunk-7X4QNWA7.js → chunk-XLWMM53L.js} +2 -2
- package/dist/chunk-XNSBAJ7T.js +4 -0
- package/dist/chunk-XYBI57KO.js +12 -0
- package/dist/{chunk-X2KMUHBB.js → chunk-Y62TTKSY.js} +3 -3
- package/dist/{chunk-TXDBOSSB.js → chunk-YILGAEW3.js} +1 -1
- package/dist/{chunk-4MJA2SPJ.js → chunk-YJXS7BR5.js} +13 -13
- package/dist/{chunk-EQCFPRKJ.js → chunk-YSDPFDAG.js} +1 -1
- package/dist/{chunk-UG6RI525.js → chunk-Z5A4EY2R.js} +1 -1
- package/dist/{chunk-JFH5HW2G.js → chunk-ZQKA2XKH.js} +7 -7
- package/dist/chunk-ZTYBH5FO.js +4 -0
- package/dist/{chunk-HYDVHGVT.js → chunk-ZWMODDVE.js} +2 -2
- package/dist/data/DataTable.js +1 -1
- package/dist/data/Kanban.js +1 -1
- package/dist/data/ListLoadError.js +1 -1
- package/dist/format/index.d.ts +1 -0
- package/dist/format/index.js +1 -1
- package/dist/forms/AlignmentGrid.js +1 -1
- package/dist/forms/BorderInput.js +1 -1
- package/dist/forms/BrandAssetEditor.js +1 -1
- package/dist/forms/Button.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/DisplayChips.js +1 -1
- package/dist/forms/FilePicker.js +1 -1
- package/dist/forms/IconButton.js +1 -1
- package/dist/forms/IconPicker.js +1 -1
- package/dist/forms/InputNumber.js +1 -1
- package/dist/forms/LinkPicker.js +1 -1
- package/dist/forms/MediaLibrary.js +1 -1
- package/dist/forms/MediaUploadField.js +1 -1
- package/dist/forms/MediaUploadGrid.js +1 -1
- package/dist/forms/MediaUsedInList.js +1 -1
- package/dist/forms/NumericKeypad.js +1 -1
- package/dist/forms/PictureTiles.js +1 -1
- package/dist/forms/PositionInput.js +1 -1
- package/dist/forms/Segmented.js +1 -1
- package/dist/forms/Select.d.ts +1 -1
- package/dist/forms/Select.js +1 -1
- package/dist/forms/SidesInput.js +1 -1
- package/dist/forms/Slider.js +1 -1
- package/dist/forms/Snippet.js +1 -1
- package/dist/forms/SplitButton.js +1 -1
- package/dist/forms/TagInput.js +1 -1
- package/dist/forms/TextToolbar.d.ts +1 -1
- package/dist/forms/TextToolbar.js +1 -1
- package/dist/forms/WidthsBar.js +1 -1
- package/dist/forms/textAlign.d.ts +1 -1
- package/dist/hooks/useTheme.d.ts +1 -1
- package/dist/icons/efficient-glyphs.d.ts +12 -0
- package/dist/icons/efficient-glyphs.js +1 -1
- package/dist/icons/efficient-looks.d.ts +24 -0
- package/dist/icons/efficient-looks.js +1 -1
- package/dist/icons/efficient-meanings.d.ts +12 -0
- package/dist/icons/efficient-meanings.js +1 -1
- package/dist/icons/efficient.d.ts +12 -0
- package/dist/icons/efficient.js +1 -1
- package/dist/icons/glyphs/BoxItemAlignmentIcon.d.ts +8 -0
- package/dist/icons/glyphs/BoxItemAlignmentIcon.js +1 -0
- package/dist/icons/glyphs/BoxJustifyIcon.d.ts +8 -0
- package/dist/icons/glyphs/BoxJustifyIcon.js +1 -0
- package/dist/icons/glyphs/BoxXBetweenIcon.d.ts +8 -0
- package/dist/icons/glyphs/BoxXBetweenIcon.js +1 -0
- package/dist/icons/glyphs/BoxXCenterIcon.d.ts +8 -0
- package/dist/icons/glyphs/BoxXCenterIcon.js +1 -0
- package/dist/icons/glyphs/BoxXEndIcon.d.ts +8 -0
- package/dist/icons/glyphs/BoxXEndIcon.js +1 -0
- package/dist/icons/glyphs/BoxXStartIcon.d.ts +8 -0
- package/dist/icons/glyphs/BoxXStartIcon.js +1 -0
- package/dist/icons/glyphs/BoxXStretchIcon.d.ts +8 -0
- package/dist/icons/glyphs/BoxXStretchIcon.js +1 -0
- package/dist/icons/glyphs/BoxYBetweenIcon.d.ts +8 -0
- package/dist/icons/glyphs/BoxYBetweenIcon.js +1 -0
- package/dist/icons/glyphs/BoxYCenterIcon.d.ts +8 -0
- package/dist/icons/glyphs/BoxYCenterIcon.js +1 -0
- package/dist/icons/glyphs/BoxYEndIcon.d.ts +8 -0
- package/dist/icons/glyphs/BoxYEndIcon.js +1 -0
- package/dist/icons/glyphs/BoxYStartIcon.d.ts +8 -0
- package/dist/icons/glyphs/BoxYStartIcon.js +1 -0
- package/dist/icons/glyphs/BoxYStretchIcon.d.ts +8 -0
- package/dist/icons/glyphs/BoxYStretchIcon.js +1 -0
- package/dist/icons/index.d.ts +2 -2
- package/dist/icons/index.js +1 -1
- package/dist/icons/looks/BoxItemAlignmentMiniIcon.d.ts +8 -0
- package/dist/icons/looks/BoxItemAlignmentMiniIcon.js +1 -0
- package/dist/icons/looks/BoxItemAlignmentSolidIcon.d.ts +8 -0
- package/dist/icons/looks/BoxItemAlignmentSolidIcon.js +1 -0
- package/dist/icons/looks/BoxJustifyMiniIcon.d.ts +8 -0
- package/dist/icons/looks/BoxJustifyMiniIcon.js +1 -0
- package/dist/icons/looks/BoxJustifySolidIcon.d.ts +8 -0
- package/dist/icons/looks/BoxJustifySolidIcon.js +1 -0
- package/dist/icons/looks/BoxXBetweenMiniIcon.d.ts +8 -0
- package/dist/icons/looks/BoxXBetweenMiniIcon.js +1 -0
- package/dist/icons/looks/BoxXBetweenSolidIcon.d.ts +8 -0
- package/dist/icons/looks/BoxXBetweenSolidIcon.js +1 -0
- package/dist/icons/looks/BoxXCenterMiniIcon.d.ts +8 -0
- package/dist/icons/looks/BoxXCenterMiniIcon.js +1 -0
- package/dist/icons/looks/BoxXCenterSolidIcon.d.ts +8 -0
- package/dist/icons/looks/BoxXCenterSolidIcon.js +1 -0
- package/dist/icons/looks/BoxXEndMiniIcon.d.ts +8 -0
- package/dist/icons/looks/BoxXEndMiniIcon.js +1 -0
- package/dist/icons/looks/BoxXEndSolidIcon.d.ts +8 -0
- package/dist/icons/looks/BoxXEndSolidIcon.js +1 -0
- package/dist/icons/looks/BoxXStartMiniIcon.d.ts +8 -0
- package/dist/icons/looks/BoxXStartMiniIcon.js +1 -0
- package/dist/icons/looks/BoxXStartSolidIcon.d.ts +8 -0
- package/dist/icons/looks/BoxXStartSolidIcon.js +1 -0
- package/dist/icons/looks/BoxXStretchMiniIcon.d.ts +8 -0
- package/dist/icons/looks/BoxXStretchMiniIcon.js +1 -0
- package/dist/icons/looks/BoxXStretchSolidIcon.d.ts +8 -0
- package/dist/icons/looks/BoxXStretchSolidIcon.js +1 -0
- package/dist/icons/looks/BoxYBetweenMiniIcon.d.ts +8 -0
- package/dist/icons/looks/BoxYBetweenMiniIcon.js +1 -0
- package/dist/icons/looks/BoxYBetweenSolidIcon.d.ts +8 -0
- package/dist/icons/looks/BoxYBetweenSolidIcon.js +1 -0
- package/dist/icons/looks/BoxYCenterMiniIcon.d.ts +8 -0
- package/dist/icons/looks/BoxYCenterMiniIcon.js +1 -0
- package/dist/icons/looks/BoxYCenterSolidIcon.d.ts +8 -0
- package/dist/icons/looks/BoxYCenterSolidIcon.js +1 -0
- package/dist/icons/looks/BoxYEndMiniIcon.d.ts +8 -0
- package/dist/icons/looks/BoxYEndMiniIcon.js +1 -0
- package/dist/icons/looks/BoxYEndSolidIcon.d.ts +8 -0
- package/dist/icons/looks/BoxYEndSolidIcon.js +1 -0
- package/dist/icons/looks/BoxYStartMiniIcon.d.ts +8 -0
- package/dist/icons/looks/BoxYStartMiniIcon.js +1 -0
- package/dist/icons/looks/BoxYStartSolidIcon.d.ts +8 -0
- package/dist/icons/looks/BoxYStartSolidIcon.js +1 -0
- package/dist/icons/looks/BoxYStretchMiniIcon.d.ts +8 -0
- package/dist/icons/looks/BoxYStretchMiniIcon.js +1 -0
- package/dist/icons/looks/BoxYStretchSolidIcon.d.ts +8 -0
- package/dist/icons/looks/BoxYStretchSolidIcon.js +1 -0
- 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 +5 -5
- package/dist/index.js +244 -244
- package/dist/map/index.js +7 -7
- package/dist/names-bEzx4RQ8.d.ts +23 -0
- package/dist/page-tabs/index.js +5 -5
- package/dist/shell/AppUpdateBanner.js +1 -1
- package/dist/shell/ColoredBadge.js +1 -1
- package/dist/shell/ConfirmDialog.js +1 -1
- package/dist/shell/ContextMenu.js +1 -1
- package/dist/shell/Dialog.js +1 -1
- package/dist/shell/Drawer.js +1 -1
- package/dist/shell/DropdownMenu.js +1 -1
- package/dist/shell/EditableGrid.js +1 -1
- package/dist/shell/FloatingBar.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.d.ts +1 -1
- package/dist/shell/Markdown.js +1 -1
- package/dist/shell/MilestoneTimeline.js +1 -1
- package/dist/shell/Popover.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/SearchableSelect.js +1 -1
- package/dist/shell/SettingReset.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/StatusBadge.js +1 -1
- package/dist/shell/Tabs.js +1 -1
- package/dist/shell/TimelineTrack.js +1 -1
- package/dist/shell/Tooltip.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/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/FormLayoutPage.js +1 -1
- package/dist/templates/GalleryTemplate.js +1 -1
- package/dist/tokens/type.d.ts +32 -1
- package/dist/tokens/type.js +1 -1
- package/dist/ui/index.d.ts +2 -2
- package/dist/ui/index.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/Calculator-AXFKAC7G.js +0 -29
- package/dist/Files-NRYZG4KY.js +0 -88
- package/dist/Sidebar-CB6KRPW2.js +0 -44
- package/dist/chunk-4Q25UHWB.js +0 -22
- package/dist/chunk-6ACS4S4P.js +0 -15
- package/dist/chunk-7RPYVQEV.js +0 -2
- package/dist/chunk-DOC52JBV.js +0 -20
- package/dist/chunk-EDMDKQNO.js +0 -4
- package/dist/chunk-F7Z47OIF.js +0 -12
- package/dist/chunk-FX6DBXXD.js +0 -1
- package/dist/chunk-GLBLKHYA.js +0 -5
- package/dist/chunk-HJCUDXLV.js +0 -1
- package/dist/chunk-HXNMRJQ4.js +0 -2
- package/dist/chunk-HXZ5XPBS.js +0 -3
- package/dist/chunk-IHFZ7OXO.js +0 -14
- package/dist/chunk-KLBJ646Z.js +0 -8
- package/dist/chunk-LH7IKIGE.js +0 -1
- package/dist/chunk-NXVFY22L.js +0 -9
- package/dist/chunk-RAAH4TQU.js +0 -1
- package/dist/chunk-SRWZE3WA.js +0 -6
- package/dist/chunk-TNDRHHKN.js +0 -14
- package/dist/chunk-UXPBVRSE.js +0 -7
- package/dist/chunk-XPTOKPUM.js +0 -11
- package/dist/chunk-XSJHN2GD.js +0 -1
- package/dist/chunk-YG2TWBDH.js +0 -1
- package/dist/chunk-YUECA3XB.js +0 -8
- package/dist/chunk-YYZ73H64.js +0 -7
- package/dist/names-CkQuQ47O.d.ts +0 -23
- /package/dist/{chunk-Y2AGVGOP.js → chunk-BDUWYLPI.js} +0 -0
- /package/dist/{chunk-3J2PO3KW.js → chunk-ECJKIPWU.js} +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import{EditableGrid as e}from"./chunk-
|
|
1
|
+
import{EditableGrid as e}from"./chunk-RBBIAIPH.js";import"./chunk-G6DKCCWH.js";import{AboutApp as t}from"./chunk-43L5K2IX.js";import{peekSpreadsheetPreviewStage as r,claimSpreadsheetPreviewStage as n,SPREADSHEET_PREVIEW_UPDATE_EVENT as o}from"./chunk-VTVSMRFX.js";import{WindowTitle as a}from"./chunk-2YSGXZOL.js";import"./chunk-CY5N5OA3.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-QYL26AB4.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-2E2SUEEE.js";import"./chunk-PLK2WHZG.js";import"./chunk-7INZ7O3A.js";import"./chunk-KC3EX26K.js";import"./chunk-FOFZI62F.js";import"./chunk-3DVNXNTF.js";import"./chunk-ECJKIPWU.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-UGTRSRIW.js";import"./chunk-EPY34L26.js";import"./chunk-CDAJKLGL.js";import"./chunk-RMUSRDWV.js";import"./chunk-4WEFGKJL.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-TXDA7TTP.js";import"./chunk-I4VIEGCX.js";import"./chunk-UQYNPYF4.js";import"./chunk-34URULVW.js";import"./chunk-2UO47XB4.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-MVZRZTQP.js";import"./chunk-6XBWM453.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-F27JJHNJ.js";import"./chunk-TWVUQUUD.js";import"./chunk-GDQJBQ5B.js";import"./chunk-C3QOHMR6.js";import{useRef as l,useState as s,useEffect as c,useCallback as i}from"react";import{jsxs as u,jsx as d,Fragment as h}from"react/jsx-runtime";var m="ABCDEFGHIJKLMNOPQRSTUVWXYZ",p=10,x=30;function g(e){return e<26?m[e]:m[Math.floor(e/26)-1]+m[e%26]}function y(e){return Array.from({length:e},(e,t)=>({key:`col_${t}`,title:g(t),width:100}))}function b(e,t){return Array.from({length:e},()=>Array(t).fill(""))}function f(e){return{id:crypto.randomUUID(),name:e,columns:y(p),data:b(x,p),cellStyles:{}}}function v(e){return e.split("\n").map(e=>{if(e.includes("\t"))return e.split("\t").map(e=>e.trim());const t=[];let r="",n=!1;for(const o of e)'"'!==o?","!==o||n?r+=o:(t.push(r.trim()),r=""):n=!n;return t.push(r.trim()),t}).filter(e=>e.some(e=>e.trim()))}function k(e,t){const r=e.rows?e.rows.map(e=>e.map(e=>String(e??""))):v(e.csv??"");if(0===r.length)return null;const n=Math.max(p,r.reduce((e,t)=>Math.max(e,t.length),0)),o=r.map(e=>{for(;e.length<n;)e.push("");return e});for(;o.length<x;)o.push(Array(n).fill(""));return{id:crypto.randomUUID(),name:t,columns:y(n),data:o,cellStyles:{}}}function w(){const m=l(null),g=l(void 0);void 0===g.current&&(g.current=r());const w=l(g.current?.data??null),j=(()=>{const e=g.current;if(!e)return null;const t=k(e.data,"Sheet 1");if(!t)return null;return{sheet:t,title:e.data.filename.replace(/\.(csv|tsv|txt)$/i,"")}})(),[N,C]=s(j?[j.sheet]:[f("Sheet 1")]),[S,U]=s(0),E=l([]),M=l(N),D=l(!1);c(()=>{D.current?D.current=!1:M.current!==N&&(E.current.push(M.current),E.current.length>50&&E.current.shift()),M.current=N},[N]);const L=i(()=>{const e=E.current.pop();e&&(D.current=!0,C(e))},[]);c(()=>{const e=e=>{if(!m.current?.contains(document.activeElement)&&!m.current?.matches(":focus-within"))return;(e.ctrlKey||e.metaKey)&&!e.shiftKey&&("z"===e.key||"Z"===e.key)&&(e.preventDefault(),L())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[L]);const[A,R]=s(j?.title??"Untitled"),[$,F]=s(()=>g.current?.data.onEmail),K=i(e=>{const t=k(e,"Sheet 1");t&&(C([t]),U(0),R(e.filename.replace(/\.(csv|tsv|txt)$/i,"")),F(()=>e.onEmail))},[]);c(()=>{const e=g.current;null!=e&&(n(e),e.data!==w.current&&K(e.data))},[]),c(()=>{const e=g.current?.token;if(null==e)return;const t=t=>{const r=t.detail;r&&r.token===e&&K(r.data)};return window.addEventListener(o,t),()=>window.removeEventListener(o,t)},[]);const[W,B]=s(!1),[I,G]=s(null),[J,X]=s(""),T=l(null),[V,Z]=s("1"),[H,P]=s("10"),Q=N[S]||N[0],O=Q.data,Y=Q.columns,z=Q.cellStyles??{},[_,q]=s(null),[ee,te]=s(null),re=i(()=>{if(ee){const e=Math.min(ee.anchor.row,ee.end.row),t=Math.max(ee.anchor.row,ee.end.row),r=Math.min(ee.anchor.col,ee.end.col),n=Math.max(ee.anchor.col,ee.end.col),o=[];for(let a=e;a<=t;a++)for(let e=r;e<=n;e++)o.push({row:a,col:e});return o}return _?[_]:[]},[ee,_]),ne=i((e,t)=>{const r=re();0!==r.length&&C(n=>n.map((n,o)=>{if(o!==S)return n;const a={...n.cellStyles??{}},l=`${r[0].row}:${r[0].col}`,s=void 0!==t?t:!(a[l]??{})[e];for(const{row:t,col:n}of r){const r=`${t}:${n}`;a[r]={...a[r]??{},[e]:s}}return{...n,cellStyles:a}}))},[re,S]),oe=ee?{row:ee.anchor.row,col:ee.anchor.col}:_,ae=oe?z[`${oe.row}:${oe.col}`]??{}:{},le=!!oe,se=i(e=>{C(t=>t.map((t,r)=>r===S?{...t,...e}:t))},[S]),ce=i(e=>{const t=e.reduce((e,t)=>Math.max(e,t.length),0);t!==Y.length?se({data:e,columns:y(t)}):se({data:e})},[se,Y.length]),ie=(e,t)=>{C(r=>r.map((r,n)=>n===e?{...r,name:t}:r)),G(null)},ue=()=>O.filter(e=>e.some(e=>e.trim())).map(e=>e.map(e=>e.includes(",")||e.includes('"')||e.includes("\n")?`"${e.replace(/"/g,'""')}"`:e).join(",")).join("\n"),de=[];O.forEach(e=>e.forEach(e=>{const t=parseFloat(e);!isNaN(t)&&e.trim()&&de.push(t)}));const he=O.reduce((e,t)=>e+t.filter(e=>e.trim()).length,0);/* @__PURE__ */
|
|
2
2
|
return u("div",{ref:m,className:"flex flex-col h-full",children:[
|
|
3
3
|
/* @__PURE__ */d(a,{title:`${me=A||"Untitled",me.length>24?`${me.slice(0,23)}…`:me} - Spreadsheets`}),
|
|
4
4
|
/* @__PURE__ */d(t,{app:"spreadsheet"}),
|
|
5
|
-
/* @__PURE__ */u("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-gray-200 bg-gray-50 shrink-0",children:[
|
|
5
|
+
/* @__PURE__ */u("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-gray-200 bg-gray-50 shrink-0",children:[W?/* @__PURE__ */d("input",{type:"text",value:A,onChange:e=>R(e.target.value),onBlur:()=>B(!1),onKeyDown:e=>{"Enter"===e.key&&B(!1)},autoFocus:!0,className:"text-sm font-medium text-gray-900 border border-gray-300 rounded px-2 py-0.5 w-40 focus:border-blue-500 focus:ring-blue-500"}):/* @__PURE__ */d("button",{onClick:()=>B(!0),className:"text-sm font-medium text-gray-900 hover:text-blue-600 truncate max-w-[200px]",title:"Click to rename",children:A||"Untitled"}),
|
|
6
6
|
/* @__PURE__ */d("div",{className:"h-4 w-px bg-gray-300"}),
|
|
7
|
-
/* @__PURE__ */d("input",{ref:
|
|
8
|
-
/* @__PURE__ */d("button",{onClick:()=>
|
|
7
|
+
/* @__PURE__ */d("input",{ref:T,type:"file",accept:".csv,.tsv,.txt,.xlsx,.xls,.ods",onChange:async e=>{const t=e.target.files?.[0];if(!t)return;const r=t.name.replace(/\.(csv|tsv|txt|xlsx|xls|ods)$/i,"");if(/\.(xlsx|xls|ods)$/i.test(t.name)){const e=new Uint8Array(await t.arrayBuffer()),n=await(import("xlsx")),o=n.read(e,{type:"array"}),a=o.SheetNames.map(e=>{const t=n.utils.sheet_to_json(o.Sheets[e],{header:1,defval:""}),r=Math.max(p,t.reduce((e,t)=>Math.max(e,t.length),0)),a=t.map(e=>{const t=e.map(e=>String(e??""));for(;t.length<r;)t.push("");return t});for(;a.length<x;)a.push(Array(r).fill(""));return{id:crypto.randomUUID(),name:e,columns:y(r),data:a}});C(a),U(0),R(r)}else{const e=v(await t.text());if(0===e.length)return;const n=Math.max(p,e.reduce((e,t)=>Math.max(e,t.length),0)),o=e.map(e=>{for(;e.length<n;)e.push("");return e});for(;o.length<x;)o.push(Array(n).fill(""));se({columns:y(n),data:o}),R(r)}T.current&&(T.current.value="")},className:"hidden"}),
|
|
8
|
+
/* @__PURE__ */d("button",{onClick:()=>T.current?.click(),className:"text-xs text-gray-600 hover:text-gray-900 px-2 py-1 rounded hover:bg-gray-200 transition-colors",children:"Open"}),
|
|
9
9
|
/* @__PURE__ */d("button",{onClick:()=>{const e=new Blob([ue()],{type:"text/csv"}),t=URL.createObjectURL(e),r=document.createElement("a");r.href=t,r.download=`${A||"spreadsheet"}.csv`,r.click(),URL.revokeObjectURL(t)},className:"text-xs text-gray-600 hover:text-gray-900 px-2 py-1 rounded hover:bg-gray-200 transition-colors",children:"Save CSV"}),$&&/* @__PURE__ */d("button",{onClick:()=>$(ue(),`${A||"spreadsheet"}.csv`),className:"text-xs text-gray-600 hover:text-gray-900 px-2 py-1 rounded hover:bg-gray-200 transition-colors",children:"Email"}),
|
|
10
10
|
/* @__PURE__ */d("div",{className:"h-4 w-px bg-gray-300"}),
|
|
11
11
|
/* @__PURE__ */u("div",{className:"flex items-center gap-1",children:[
|
|
12
|
-
/* @__PURE__ */d("input",{type:"number",min:"1",max:"50",value:
|
|
13
|
-
/* @__PURE__ */d("button",{onClick:()=>(e=>{const t=Y.length+e;se({columns:y(t),data:O.map(t=>[...t,...Array(e).fill("")])})})(parseInt(
|
|
12
|
+
/* @__PURE__ */d("input",{type:"number",min:"1",max:"50",value:V,onChange:e=>Z(e.target.value),className:"w-10 text-xs text-center border border-gray-300 rounded px-1 py-0.5 focus:border-blue-500 focus:ring-blue-500"}),
|
|
13
|
+
/* @__PURE__ */d("button",{onClick:()=>(e=>{const t=Y.length+e;se({columns:y(t),data:O.map(t=>[...t,...Array(e).fill("")])})})(parseInt(V)||1),className:"text-xs text-gray-600 hover:text-gray-900 px-2 py-1 rounded hover:bg-gray-200 transition-colors",children:"+ Col"})]}),
|
|
14
14
|
/* @__PURE__ */u("div",{className:"flex items-center gap-1",children:[
|
|
15
|
-
/* @__PURE__ */d("input",{type:"number",min:"1",max:"500",value:
|
|
16
|
-
/* @__PURE__ */d("button",{onClick:()=>{return e=parseInt(
|
|
15
|
+
/* @__PURE__ */d("input",{type:"number",min:"1",max:"500",value:H,onChange:e=>P(e.target.value),className:"w-10 text-xs text-center border border-gray-300 rounded px-1 py-0.5 focus:border-blue-500 focus:ring-blue-500"}),
|
|
16
|
+
/* @__PURE__ */d("button",{onClick:()=>{return e=parseInt(H)||10,void se({data:[...O,...Array.from({length:e},()=>Array(Y.length).fill(""))]});var e},className:"text-xs text-gray-600 hover:text-gray-900 px-2 py-1 rounded hover:bg-gray-200 transition-colors",children:"+ Row"})]}),
|
|
17
17
|
/* @__PURE__ */d("div",{className:"h-4 w-px bg-gray-300"}),
|
|
18
18
|
/* @__PURE__ */d("button",{onClick:()=>{se({columns:y(p),data:b(x,p)})},className:"text-xs text-gray-600 hover:text-gray-900 px-2 py-1 rounded hover:bg-gray-200 transition-colors",children:"Clear"}),
|
|
19
19
|
/* @__PURE__ */d("div",{className:"h-4 w-px bg-gray-300"}),
|
|
@@ -28,7 +28,7 @@ return u("div",{ref:m,className:"flex flex-col h-full",children:[
|
|
|
28
28
|
/* @__PURE__ */d("option",{value:"xl",children:"L"})]})]})]}),
|
|
29
29
|
/* @__PURE__ */d("div",{className:"flex-1 min-h-0",children:/* @__PURE__ */d(e,{columns:Y,data:O,onChange:ce,onColumnsChange:e=>se({columns:e}),cellStyles:z,onFocusChange:q,onSelectionChange:te,minRows:x,maxHeight:"100%"})}),
|
|
30
30
|
/* @__PURE__ */u("div",{className:"flex items-center border-t border-gray-200 bg-gray-50 shrink-0",children:[
|
|
31
|
-
/* @__PURE__ */u("div",{className:"flex items-center gap-0.5 px-1 py-1 overflow-x-auto flex-1 min-w-0",children:[N.map((e,t)=>/* @__PURE__ */d("button",{onClick:()=>U(t),onDoubleClick:()=>{
|
|
31
|
+
/* @__PURE__ */u("div",{className:"flex items-center gap-0.5 px-1 py-1 overflow-x-auto flex-1 min-w-0",children:[N.map((e,t)=>/* @__PURE__ */d("button",{onClick:()=>U(t),onDoubleClick:()=>{G(t),X(e.name)},onContextMenu:e=>{e.preventDefault(),N.length>1&&(e=>{N.length<=1||(C(t=>t.filter((t,r)=>r!==e)),S>=e&&S>0&&U(S-1))})(t)},className:"px-3 py-1 text-xs font-medium rounded-b whitespace-nowrap transition-colors "+(t===S?"bg-white text-blue-700 border border-t-0 border-gray-300 -mt-px relative z-10":"text-gray-500 hover:text-gray-700 hover:bg-gray-100"),children:I===t?/* @__PURE__ */d("input",{type:"text",value:J,onChange:e=>X(e.target.value),onBlur:()=>ie(t,J||e.name),onKeyDown:r=>{"Enter"===r.key&&ie(t,J||e.name),"Escape"===r.key&&G(null)},onClick:e=>e.stopPropagation(),autoFocus:!0,className:"w-20 text-xs border border-blue-400 rounded px-1 py-0 focus:ring-0 focus:outline-none"}):e.name},e.id)),
|
|
32
32
|
/* @__PURE__ */d("button",{onClick:()=>{const e=`Sheet ${N.length+1}`;C(t=>[...t,f(e)]),U(N.length)},className:"px-2 py-1 text-xs text-gray-400 hover:text-gray-600 hover:bg-gray-100 rounded",title:"Add sheet",children:"+"})]}),
|
|
33
33
|
/* @__PURE__ */u("div",{className:"flex items-center gap-4 px-3 py-1 text-xs text-gray-500 shrink-0 border-l border-gray-200",children:[
|
|
34
34
|
/* @__PURE__ */u("span",{children:[he," cells"]}),de.length>0&&/* @__PURE__ */u(h,{children:[
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-
|
|
1
|
+
import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-DCRLJMQ6.js";import{useWidgetSettings as n}from"./chunk-2YSGXZOL.js";import"./chunk-CY5N5OA3.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-QYL26AB4.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-2E2SUEEE.js";import"./chunk-PLK2WHZG.js";import"./chunk-7INZ7O3A.js";import"./chunk-KC3EX26K.js";import"./chunk-FOFZI62F.js";import"./chunk-3DVNXNTF.js";import"./chunk-ECJKIPWU.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-UGTRSRIW.js";import"./chunk-EPY34L26.js";import"./chunk-CDAJKLGL.js";import"./chunk-4WEFGKJL.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-TXDA7TTP.js";import"./chunk-I4VIEGCX.js";import"./chunk-UQYNPYF4.js";import"./chunk-34URULVW.js";import"./chunk-2UO47XB4.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-MVZRZTQP.js";import"./chunk-6XBWM453.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-F27JJHNJ.js";import"./chunk-TWVUQUUD.js";import"./chunk-GDQJBQ5B.js";import"./chunk-C3QOHMR6.js";import{useState as r,useCallback as c}from"react";import{jsxs as s,Fragment as a,jsx as i}from"react/jsx-runtime";var o=["AAPL","MSFT","GOOGL","TSLA","NVDA"],m="stock_symbols",l="stock_appearance",h={AAPL:{price:229.87,change:1.42,changePct:.62},MSFT:{price:451.16,change:-2.31,changePct:-.51},GOOGL:{price:178.34,change:.89,changePct:.5},AMZN:{price:201.45,change:-1.08,changePct:-.53},TSLA:{price:248.92,change:6.74,changePct:2.78},NVDA:{price:134.81,change:-3.12,changePct:-2.26},META:{price:563.27,change:4.55,changePct:.81}},p=Object.keys(h);function u(){try{const e=JSON.parse(localStorage.getItem(m)||"");if(Array.isArray(e)&&e.length)return e.slice(0,8)}catch{}return o}var d=e=>`${e>=0?"+":""}${e.toFixed(2)}`;function g(){const[o,g]=r(u),[x,k]=r(()=>e(l)),[j,N]=r(!1),[b,f]=r([]),[y,v]=r(x),[A,S]=r(""),D=c(()=>{f([...o]),v({...x}),S(""),N(!0)},[o,x]);n(D);const P=()=>{const e=A.trim().toUpperCase();!e||b.includes(e)||b.length>=8||(f(t=>[...t,e]),S(""))},J=p.filter(e=>!b.includes(e));/* @__PURE__ */
|
|
2
2
|
return s(a,{children:[
|
|
3
3
|
/* @__PURE__ */i("div",{style:{backgroundColor:`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${x.activeOpacity/100})`,backdropFilter:x.activeBlur>0?`blur(${x.activeBlur}px)`:void 0},children:/* @__PURE__ */i("div",{className:"px-4 py-3",children:0===o.length?/* @__PURE__ */i("div",{className:"text-xs text-gray-500 text-center py-6",children:"No symbols yet — add some in settings."}):/* @__PURE__ */i("div",{className:"space-y-0.5",children:o.map(e=>{const t=h[e],n=(t?.change??0)>=0,r=t?t.change>0?"text-green-600":t.change<0?"text-red-600":"text-gray-500":"text-gray-400";/* @__PURE__ */
|
|
4
4
|
return s("div",{className:"flex items-center justify-between px-2 py-2 border-b border-gray-200 last:border-0",children:[
|
|
@@ -11,6 +11,6 @@ return s("div",{className:"flex items-center justify-between px-2 py-2 border-b
|
|
|
11
11
|
/* @__PURE__ */s("div",{className:"space-y-1 mb-2",children:[b.map((e,t)=>/* @__PURE__ */s("div",{className:"flex items-center justify-between py-1 px-2 bg-gray-50 rounded",children:[
|
|
12
12
|
/* @__PURE__ */i("span",{className:"text-sm font-semibold text-gray-700",children:e}),
|
|
13
13
|
/* @__PURE__ */i("button",{onClick:()=>f(e=>e.filter((e,n)=>n!==t)),className:"text-red-400 hover:text-red-600",children:"×"})]},t)),0===b.length&&/* @__PURE__ */i("p",{className:"text-2xs text-ink-faintest italic",children:"No symbols — add a ticker below."})]}),b.length<8?/* @__PURE__ */s("div",{className:"flex items-center gap-2",children:[
|
|
14
|
-
/* @__PURE__ */i("input",{value:
|
|
15
|
-
/* @__PURE__ */i("button",{onClick:
|
|
14
|
+
/* @__PURE__ */i("input",{value:A,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__ */i("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."]}),J.length>0&&b.length<8&&/* @__PURE__ */i("div",{className:"flex flex-wrap gap-2 mt-2",children:J.map(e=>/* @__PURE__ */i("button",{onClick:()=>f(t=>t.length<8?[...t,e]:t),className:"text-2xs font-medium text-gray-600 bg-gray-100 hover:bg-gray-200 rounded px-2 py-0.5 transition-colors",children:e},e))}),
|
|
16
16
|
/* @__PURE__ */i("p",{className:"text-2xs text-ink-faintest mt-2",children:"Demo prices — static sample data, no live feed."})]})})]})}export{g as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{fetchCityWeather as e,getCondition as t,AVAILABLE_CITIES as a,toFahrenheit as r}from"./chunk-FBDZGO3V.js";import{loadAppearance as n,WidgetSettingsModal as i}from"./chunk-
|
|
1
|
+
import{fetchCityWeather as e,getCondition as t,AVAILABLE_CITIES as a,toFahrenheit as r}from"./chunk-FBDZGO3V.js";import{loadAppearance as n,WidgetSettingsModal as i}from"./chunk-DCRLJMQ6.js";import{pad2 as s}from"./chunk-LF27WIN2.js";import{useWidgetSettings as o}from"./chunk-2YSGXZOL.js";import"./chunk-CY5N5OA3.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-QYL26AB4.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-2E2SUEEE.js";import"./chunk-PLK2WHZG.js";import"./chunk-7INZ7O3A.js";import{useShellPrefs as l}from"./chunk-KC3EX26K.js";import"./chunk-FOFZI62F.js";import"./chunk-3DVNXNTF.js";import"./chunk-ECJKIPWU.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-UGTRSRIW.js";import"./chunk-EPY34L26.js";import"./chunk-CDAJKLGL.js";import"./chunk-4WEFGKJL.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-TXDA7TTP.js";import"./chunk-I4VIEGCX.js";import"./chunk-UQYNPYF4.js";import"./chunk-34URULVW.js";import"./chunk-2UO47XB4.js";import"./chunk-J75ZT2JQ.js";import{LoadingSpinner as c}from"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-MVZRZTQP.js";import"./chunk-6XBWM453.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-F27JJHNJ.js";import"./chunk-TWVUQUUD.js";import"./chunk-GDQJBQ5B.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 v(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 k(){/* @__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__ */
|
|
@@ -17,44 +17,44 @@ return u("div",{className:"absolute inset-0 overflow-hidden pointer-events-none"
|
|
|
17
17
|
return u("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[
|
|
18
18
|
/* @__PURE__ */p("div",{className:"absolute",style:{top:"8%",animation:"wx-drift-cloud 42s linear infinite"},children:/* @__PURE__ */p(a,{scale:.9})}),
|
|
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
|
-
/* @__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
|
|
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
|
|
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
|
|
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 D({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
|
+
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 L(){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 S(){/* @__PURE__ */
|
|
23
23
|
return u("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[
|
|
24
|
-
/* @__PURE__ */p(
|
|
24
|
+
/* @__PURE__ */p(D,{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
|
|
27
|
-
return p("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:Array.from({length:4}).map((e,t)=>/* @__PURE__ */p("div",{className:"absolute left-0 right-0",style:{top:10+22*t+"%",height:"14px",background:"linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 100%)",filter:"blur(2px)",animation:`wx-fog-drift ${10+3*t}s ease-in-out ${.7*t}s infinite alternate`}},t))})}function
|
|
28
|
-
/* @__PURE__ */p(j,{tone:t?"light":"dark"})]}):3===e?/* @__PURE__ */p(j,{tone:t?"light":"dark"}):45===e||48===e?/* @__PURE__ */p(
|
|
26
|
+
/* @__PURE__ */p("div",{className:"absolute inset-y-0 right-1/3 flex items-center justify-center pointer-events-none",style:{animation:"wx-bolt 6s ease-out infinite"},children:/* @__PURE__ */p("svg",{viewBox:"0 0 18 60",className:"h-4/5",style:{filter:"drop-shadow(0 0 6px rgba(255, 240, 150, 0.95)) drop-shadow(0 0 14px rgba(255, 220, 90, 0.7))"},children:/* @__PURE__ */p("path",{d:"M11 0 L2 28 L8 30 L4 60 L16 24 L9 22 Z",fill:"rgba(255, 250, 200, 0.98)",stroke:"rgba(255, 255, 255, 0.9)",strokeWidth:.3})})})]})}function T(){/* @__PURE__ */
|
|
27
|
+
return p("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:Array.from({length:4}).map((e,t)=>/* @__PURE__ */p("div",{className:"absolute left-0 right-0",style:{top:10+22*t+"%",height:"14px",background:"linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 100%)",filter:"blur(2px)",animation:`wx-fog-drift ${10+3*t}s ease-in-out ${.7*t}s infinite alternate`}},t))})}function F({code:e,isDay:t}){return 0===e||1===e?/* @__PURE__ */p(t?k:N,{}):2===e?/* @__PURE__ */u(f,{children:[/* @__PURE__ */p(t?k:N,{}),
|
|
28
|
+
/* @__PURE__ */p(j,{tone:t?"light":"dark"})]}):3===e?/* @__PURE__ */p(j,{tone:t?"light":"dark"}):45===e||48===e?/* @__PURE__ */p(T,{}):[51,53,61,80,81].includes(e)?/* @__PURE__ */p(D,{}):[55,63,65,82].includes(e)?/* @__PURE__ */p(D,{heavy:!0}):[71,73,75].includes(e)?/* @__PURE__ */p(L,{}):[95,96,99].includes(e)?/* @__PURE__ */p(S,{}):null}function $(){const[r,s]=d(b),[k,N]=d(()=>n(g)),[j,D]=d(null),[L,S]=d(!0),[,T]=d(0);m(()=>{const e=setInterval(()=>T(e=>e+1),6e4);return()=>clearInterval(e)},[]);const[$,I]=d(!1),[C,A]=d(r),[H,J]=d(k),{prefs:W,save:Z}=l(),U={...x,...W.weather_prefs??{}},[B,G]=d(U);o(h(()=>{A(r),J({...k}),G({...U}),I(!0)},[r,k,U])),m(()=>{let t=!1;return S(!0),e(r).then(e=>{t||(D(e),S(!1))}),()=>{t=!0}},[r]);const O=e=>U.useFahrenheit?`${w(e)}°F`:`${e}°`;if(L&&!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[X,M,P]=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, ${k.activeOpacity/100})`,backdropFilter:k.activeBlur>0?`blur(${k.activeBlur}px)`:void 0},children:/* @__PURE__ */u("div",{className:`relative rounded-lg overflow-hidden text-white bg-gradient-to-br ${
|
|
34
|
-
/* @__PURE__ */p(
|
|
33
|
+
/* @__PURE__ */p("div",{className:"rounded-lg overflow-hidden",style:{backgroundColor:`rgba(15, 23, 42, ${k.activeOpacity/100})`,backdropFilter:k.activeBlur>0?`blur(${k.activeBlur}px)`:void 0},children:/* @__PURE__ */u("div",{className:`relative rounded-lg overflow-hidden text-white bg-gradient-to-br ${P}`,style:{height:110},children:[
|
|
34
|
+
/* @__PURE__ */p(F,{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}),U.showLocalTime&&/* @__PURE__ */p("div",{className:"text-2xs opacity-90 leading-tight tabular-nums drop-shadow-sm",children:v(j.timezone,U.use24Hour)})]}),
|
|
39
|
+
/* @__PURE__ */p("div",{className:"text-3xl font-extralight leading-none tracking-tight tabular-nums shrink-0 drop-shadow-sm",children:O(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:M}),
|
|
43
|
+
/* @__PURE__ */p("span",{className:"text-2xs font-medium drop-shadow-sm truncate",children:X})]}),
|
|
44
|
+
/* @__PURE__ */u("span",{className:"text-2xs opacity-90 tabular-nums drop-shadow-sm shrink-0",children:["H:",O(j.high)," L:",O(j.low)]})]})]})]})}),
|
|
45
|
+
/* @__PURE__ */u(i,{open:$,onClose:()=>I(!1),title:"Weather Settings",appearance:H,onAppearanceChange:J,onSave:()=>{s(C),N(H),Z({weather_prefs:B}),localStorage.setItem(y,C),localStorage.setItem(g,JSON.stringify(H)),I(!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:()=>G(t=>({...t,useFahrenheit:e.key})),className:"px-3 py-1 text-xs font-medium rounded-lg border transition-colors "+(B.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:()=>G(t=>({...t,use24Hour:e.key})),className:"px-3 py-1 text-xs font-medium rounded-lg border transition-colors "+(B.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:B.showLocalTime,onChange:e=>G(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:C,onChange:e=>A(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{$ 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-DCRLJMQ6.js";import{useWidgetSettings as a}from"./chunk-2YSGXZOL.js";import"./chunk-CY5N5OA3.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-QYL26AB4.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-2E2SUEEE.js";import"./chunk-PLK2WHZG.js";import"./chunk-7INZ7O3A.js";import{useShellPrefs as c}from"./chunk-KC3EX26K.js";import"./chunk-FOFZI62F.js";import"./chunk-3DVNXNTF.js";import"./chunk-ECJKIPWU.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-UGTRSRIW.js";import"./chunk-EPY34L26.js";import"./chunk-CDAJKLGL.js";import"./chunk-4WEFGKJL.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-TXDA7TTP.js";import"./chunk-I4VIEGCX.js";import"./chunk-UQYNPYF4.js";import"./chunk-34URULVW.js";import"./chunk-2UO47XB4.js";import"./chunk-J75ZT2JQ.js";import{LoadingSpinner as o}from"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-MVZRZTQP.js";import"./chunk-6XBWM453.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-F27JJHNJ.js";import"./chunk-TWVUQUUD.js";import"./chunk-GDQJBQ5B.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([]),[F,D]=m(b),C={useFahrenheit:!!j.weather_prefs?.useFahrenheit},[U,J]=m(C),[T,W]=m(()=>/* @__PURE__ */new Date);l(()=>{const e=setInterval(()=>W(/* @__PURE__ */new Date),3e4);return()=>clearInterval(e)},[]);const L=Object.fromEntries(Object.entries(e).map(([e,t])=>[t.tz,e])),G=j.world_clocks,S=(()=>{if(!Array.isArray(G)||0===G.length)return g;const t=[];for(const n of G){const r=e[n]?n:L[n];r&&!t.includes(r)&&t.push(r)}return t.length?t:g})(),[Z,E]=m({}),[O,P]=m(!0);l(()=>{let e=!1;return P(!0),(async()=>{const n={};await Promise.all(S.map(async e=>{const r=await t(e);r&&(n[e]=r)})),e||(E(n),P(!1))})(),()=>{e=!0}},[S.join(",")]),a(h(()=>{w([...S]),D({...b}),J({...C}),N(!0)},[S.join(","),b,C.useFahrenheit]));const Q=e=>C.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:[O&&S.every(e=>!Z[e])&&/* @__PURE__ */d(o,{size:"sm",padding:"py-6",label:"Loading"}),S.map(t=>{const r=Z[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,T);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:Q(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:
|
|
21
|
+
/* @__PURE__ */p("span",{className:"tabular-nums text-gray-500 shrink-0",children:["H:",Q(r.high)," L:",Q(r.low)]})]})]},t)})]})}),
|
|
22
|
+
/* @__PURE__ */p(i,{open:y,onClose:()=>N(!1),title:"World Clock Settings",appearance:F,onAppearanceChange:D,onSave:()=>{0!==v.length&&(x({world_clocks:v,weather_prefs:{...j.weather_prefs??{},useFahrenheit:U.useFahrenheit}}),f(F),localStorage.setItem(k,JSON.stringify(F)),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:()=>J(t=>({...t,useFahrenheit:e.key})),className:"px-3 py-1 text-xs font-medium rounded-lg border transition-colors "+(
|
|
27
|
+
/* @__PURE__ */d("div",{className:"flex gap-1",children:[{key:!1,label:"°C"},{key:!0,label:"°F"}].map(e=>/* @__PURE__ */d("button",{onClick:()=>J(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)))})]}),
|
|
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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { UIMessage, FileUIPart } from 'ai';
|
|
4
|
-
import { b as IconName } from '../names-
|
|
4
|
+
import { b as IconName } from '../names-bEzx4RQ8.js';
|
|
5
5
|
import { MarkdownTableAction } from '../shell/Markdown.js';
|
|
6
6
|
|
|
7
7
|
/** The conversation the server keeps for this chat. `guestToken` is set for an
|
|
@@ -285,6 +285,19 @@ interface AssistantChatLabels {
|
|
|
285
285
|
rateFailed: string;
|
|
286
286
|
/** A file card's action, for assistive technology: "{name}" is filled in. */
|
|
287
287
|
openFile: string;
|
|
288
|
+
/** Said in turn beside the waiting star until the answer's first words
|
|
289
|
+
* arrive, or between its steps. */
|
|
290
|
+
thinkingWords: string[];
|
|
291
|
+
/** The seconds beside it: "{seconds}" is filled in. */
|
|
292
|
+
waitingSeconds: string;
|
|
293
|
+
/** Above the box in a shared chat, when the assistant took the last
|
|
294
|
+
* message as for the people and stayed quiet. */
|
|
295
|
+
notReplied: string;
|
|
296
|
+
/** The button beside it. */
|
|
297
|
+
askToReply: string;
|
|
298
|
+
/** What that button sends, the mention put in front: the assistant reads
|
|
299
|
+
* what people wrote since its last answer, so it answers that. */
|
|
300
|
+
askToReplyText: string;
|
|
288
301
|
/** The Details panel beside the chat (`details`): its own name, and its
|
|
289
302
|
* cards' headings. */
|
|
290
303
|
detailsPanel: string;
|
|
@@ -321,8 +334,8 @@ interface AssistantChatLabels {
|
|
|
321
334
|
toAssistant: string;
|
|
322
335
|
/** Above the box, with `assistantDecides`, when the draft names nobody. */
|
|
323
336
|
assistantDecides: string;
|
|
324
|
-
/** Above the box
|
|
325
|
-
*
|
|
337
|
+
/** Above the box, beside the waiting star, while the assistant decides
|
|
338
|
+
* whether a sent message is for it. */
|
|
326
339
|
deciding: string;
|
|
327
340
|
/** The button that addresses the draft to the assistant. */
|
|
328
341
|
askAssistant: string;
|
|
@@ -512,6 +525,9 @@ interface MessageProps {
|
|
|
512
525
|
showUsage?: boolean;
|
|
513
526
|
/** This message is the one being written right now. */
|
|
514
527
|
live: boolean;
|
|
528
|
+
/** When the turn being written began (ms since the epoch), for the
|
|
529
|
+
* seconds on the waiting line. */
|
|
530
|
+
waitingSince?: number;
|
|
515
531
|
onApprove: (approvalId: string, approved: boolean) => void;
|
|
516
532
|
/** Plans by approval id, for a plan's approval card. */
|
|
517
533
|
plans?: Map<string, PlanDataPart>;
|
|
@@ -534,7 +550,7 @@ interface MessageProps {
|
|
|
534
550
|
* server named a run for shows thumbs. */
|
|
535
551
|
onRate?: (runId: string, rating: AssistantAnswerRating | null) => Promise<void> | void;
|
|
536
552
|
}
|
|
537
|
-
declare function Message({ message, speaker, toolLabels, labels, showReasoning, showToolOutput, showUsage, live, onApprove, plans, userActions, tableActions, onLinkClick, onOpenAttachment, onOpenFile, renderDataPart, showCopy, answerActions, onRate }: MessageProps): react_jsx_runtime.JSX.Element | null;
|
|
553
|
+
declare function Message({ message, speaker, toolLabels, labels, showReasoning, showToolOutput, showUsage, live, waitingSince, onApprove, plans, userActions, tableActions, onLinkClick, onOpenAttachment, onOpenFile, renderDataPart, showCopy, answerActions, onRate }: MessageProps): react_jsx_runtime.JSX.Element | null;
|
|
538
554
|
|
|
539
555
|
interface ApprovalDecision {
|
|
540
556
|
approval_id: string;
|