@crewlethq/ui 0.55.0 → 0.56.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 +87 -4
- package/dist/Accordion/index.js +2 -2
- package/dist/AgentHandoffPanel/index.js +14 -9
- package/dist/AppShell/AppShell.d.ts +74 -1
- package/dist/AppShell/ResizeHandle.d.ts +74 -0
- package/dist/AppShell/index.d.ts +7 -2
- package/dist/AppShell/index.js +6 -4
- package/dist/AppShell/regions.d.ts +34 -0
- package/dist/AppShell/storedWidth.d.ts +47 -0
- package/dist/{AppShell-5LPXYUV3.css → AppShell-ZVCJRGXH.css} +172 -1
- package/dist/ArrangeFrame/index.js +2 -2
- package/dist/ArrangeList/index.js +5 -5
- package/dist/ArtifactBar/ArtifactBar.d.ts +13 -2
- package/dist/ArtifactBar/index.js +9 -8
- package/dist/{ArtifactBar-UMZCTARR.css → ArtifactBar-LEBMR35Y.css} +19 -1
- package/dist/ArtifactCard/index.js +6 -6
- package/dist/ArtifactNameCell/ArtifactNameCell.d.ts +7 -1
- package/dist/ArtifactNameCell/index.js +1 -1
- package/dist/ArtifactPanel/ArtifactPanel.d.ts +11 -17
- package/dist/ArtifactPanel/index.d.ts +3 -0
- package/dist/ArtifactPanel/index.js +8 -2
- package/dist/ArtifactPanel-TN4FFK2F.css +43 -0
- package/dist/AvatarPicker/index.js +9 -8
- package/dist/Button/index.js +2 -1
- package/dist/{Button-UWKBTKYD.css → Button-VXJ7M5XF.css} +9 -32
- package/dist/Canvas/index.js +5 -4
- package/dist/CanvasBoard/index.js +7 -6
- package/dist/CanvasToolbar/index.js +6 -5
- package/dist/ChangeList/ChangeList.d.ts +114 -0
- package/dist/ChangeList/index.d.ts +3 -0
- package/dist/ChangeList/index.js +10 -0
- package/dist/ChangeList-CB2DLR5S.css +151 -0
- package/dist/ChatThread/ChatThread.d.ts +53 -0
- package/dist/ChatThread/index.d.ts +3 -0
- package/dist/ChatThread/index.js +6 -0
- package/dist/ChatThread-52KMDXHB.css +58 -0
- package/dist/Checkbox/index.js +4 -4
- package/dist/CodeBlock/index.js +5 -4
- package/dist/ColorField/index.js +4 -4
- package/dist/ColorSwatch/index.js +5 -4
- package/dist/Combobox/index.js +5 -5
- package/dist/CommandPalette/index.js +9 -8
- package/dist/CommentThread/index.js +9 -7
- package/dist/Composer/Composer.d.ts +39 -2
- package/dist/Composer/index.js +5 -4
- package/dist/Composer-JSGTOW3F.css +192 -0
- package/dist/ConfirmField/index.js +4 -4
- package/dist/ConflictNote/index.js +3 -2
- package/dist/ContrastHelp/index.js +2 -2
- package/dist/Copyable/index.js +4 -3
- package/dist/DataGrid/driving.d.ts +48 -0
- package/dist/DataGrid/index.d.ts +2 -0
- package/dist/DataGrid/index.js +8 -7
- package/dist/DataTable/index.js +10 -9
- package/dist/DataView/index.js +14 -13
- package/dist/DatasetSource/index.js +2 -2
- package/dist/DateTimePicker/index.js +4 -3
- package/dist/DiffList/DiffList.d.ts +12 -3
- package/dist/DiffList/index.d.ts +1 -1
- package/dist/DiffList/index.js +1 -1
- package/dist/{DiffList-3EX64AAE.css → DiffList-GE6YBRLJ.css} +53 -0
- package/dist/Disclosure/anatomy.d.ts +14 -1
- package/dist/Disclosure/index.js +2 -2
- package/dist/{Disclosure-P4FH3C35.css → Disclosure-FVMA4RW2.css} +36 -0
- package/dist/DocTabsEditor/index.js +8 -7
- package/dist/DownloadButton/DownloadButton.d.ts +21 -4
- package/dist/DownloadButton/index.d.ts +1 -1
- package/dist/DownloadButton/index.js +4 -3
- package/dist/EditingStatus/index.js +2 -2
- package/dist/{Editor-GNKMX3VF.js → Editor-X2J47LPD.js} +7 -6
- package/dist/EntityList/EntityList.d.ts +37 -0
- package/dist/EntityList/index.d.ts +3 -0
- package/dist/EntityList/index.js +10 -0
- package/dist/EntityList-XIICECVC.css +55 -0
- package/dist/ErrorBoundary/index.js +3 -2
- package/dist/FileDrop/index.js +3 -2
- package/dist/FollowBanner/index.js +3 -2
- package/dist/HuePicker/index.js +8 -7
- package/dist/IconButton/IconButton.d.ts +6 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-K24JQHLF.css → IconButton-6WA7UEBJ.css} +44 -21
- package/dist/IconTile/IconTile.d.ts +8 -2
- package/dist/IconTile/index.js +1 -1
- package/dist/{IconTile-4GNWTLAW.css → IconTile-G52XZVR4.css} +3 -0
- package/dist/InlineEditor/index.js +6 -5
- package/dist/Input/index.js +3 -3
- package/dist/LinkInterstitial/index.js +6 -5
- package/dist/ListInput/index.js +7 -6
- package/dist/LogoSlot/index.js +4 -3
- package/dist/MarkdownEditor/index.js +8 -7
- package/dist/Menu/index.js +4 -3
- package/dist/MergeConflicts/index.js +8 -7
- package/dist/MessageBubble/MessageBubble.d.ts +34 -0
- package/dist/MessageBubble/index.d.ts +3 -0
- package/dist/MessageBubble/index.js +2 -0
- package/dist/MessageBubble-GKO6X3QG.css +71 -0
- package/dist/Modal/index.js +5 -4
- package/dist/OpenInAppCard/OpenInAppCard.d.ts +44 -0
- package/dist/OpenInAppCard/index.d.ts +3 -0
- package/dist/OpenInAppCard/index.js +15 -0
- package/dist/OpenInAppCard-CKHCK7DO.css +24 -0
- package/dist/OrgTable/index.js +3 -3
- package/dist/PeekRail/PeekHost.d.ts +90 -0
- package/dist/PeekRail/PeekRail.d.ts +83 -0
- package/dist/PeekRail/activation.d.ts +30 -0
- package/dist/PeekRail/index.d.ts +8 -0
- package/dist/PeekRail/index.js +8 -0
- package/dist/PeekRail-4L5YUQMW.css +95 -0
- package/dist/PeopleRail/index.js +4 -3
- package/dist/PinTile/index.js +2 -2
- package/dist/PresenterView/index.js +5 -4
- package/dist/PrincipalPicker/index.js +6 -6
- package/dist/ProposalCard/ProposalCard.d.ts +134 -0
- package/dist/ProposalCard/index.d.ts +3 -0
- package/dist/ProposalCard/index.js +17 -0
- package/dist/ProposalCard-HLB3FNLA.css +19 -0
- package/dist/ReceiptStrip/ReceiptStrip.d.ts +66 -0
- package/dist/ReceiptStrip/index.d.ts +3 -0
- package/dist/ReceiptStrip/index.js +5 -0
- package/dist/ReceiptStrip-IIRKRTBG.css +93 -0
- package/dist/RefusalCard/RefusalCard.d.ts +34 -0
- package/dist/RefusalCard/index.d.ts +3 -0
- package/dist/RefusalCard/index.js +10 -0
- package/dist/RefusalCard-UM67F5HB.css +8 -0
- package/dist/RelativeTime/clock.d.ts +0 -6
- package/dist/RelativeTime/index.js +1 -1
- package/dist/ResizeHandle-2UNSZ4ZQ.css +59 -0
- package/dist/ResultTableCard/ResultTableCard.d.ts +64 -0
- package/dist/ResultTableCard/index.d.ts +3 -0
- package/dist/ResultTableCard/index.js +16 -0
- package/dist/ResultTableCard-HZRUDNTX.css +40 -0
- package/dist/ReviewList/index.js +2 -2
- package/dist/RichEditor/index.js +3 -2
- package/dist/RunChip/RunChip.d.ts +53 -0
- package/dist/RunChip/index.d.ts +3 -0
- package/dist/RunChip/index.js +10 -0
- package/dist/RunChip-I2S4VZ3R.css +43 -0
- package/dist/SandboxedFrame/index.js +3 -2
- package/dist/SegmentedControl/index.js +7 -6
- package/dist/SelectionBar/index.js +4 -3
- package/dist/SendButton/SendButton.d.ts +38 -0
- package/dist/SendButton/index.d.ts +2 -0
- package/dist/SendButton/index.js +4 -0
- package/dist/SetupWizard/index.js +6 -5
- package/dist/ShareDialog/index.js +8 -7
- package/dist/SheetColumnEditor/index.js +13 -12
- package/dist/SheetGrid/index.js +7 -6
- package/dist/SidePanel/SidePanel.d.ts +137 -0
- package/dist/SidePanel/SidePanelBase.d.ts +59 -0
- package/dist/SidePanel/index.d.ts +5 -0
- package/dist/SidePanel/index.js +11 -0
- package/dist/SidePanel-ERBUIELD.css +235 -0
- package/dist/SlideCompare/index.js +3 -2
- package/dist/SlideFilmstrip/index.js +7 -6
- package/dist/SlideNav/index.js +2 -2
- package/dist/Spinner/Spinner.d.ts +35 -0
- package/dist/Spinner/index.d.ts +3 -0
- package/dist/Spinner/index.js +2 -0
- package/dist/Spinner-XZ2TVYE5.css +46 -0
- package/dist/StatusCard/StatusCard.d.ts +59 -0
- package/dist/StatusCard/index.d.ts +3 -0
- package/dist/StatusCard/index.js +9 -0
- package/dist/StatusCard-6RPEE6UU.css +62 -0
- package/dist/StepList-A4YVU4JI.css +119 -0
- package/dist/Stepper/StepList.d.ts +72 -0
- package/dist/Stepper/index.d.ts +3 -0
- package/dist/Stepper/index.js +2 -1
- package/dist/SuggestionRow/SuggestionRow.d.ts +45 -0
- package/dist/SuggestionRow/index.d.ts +3 -0
- package/dist/SuggestionRow/index.js +3 -0
- package/dist/SuggestionRow-OKBGNHSS.css +102 -0
- package/dist/Switcher/index.js +9 -8
- package/dist/Table/Table.d.ts +23 -2
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-TGCS4C3F.css → Table-RUYMMWXT.css} +49 -0
- package/dist/TableCells/index.js +2 -2
- package/dist/Tabs/index.js +6 -5
- package/dist/TagsInput/index.js +4 -4
- package/dist/ThemeGallery/index.js +2 -2
- package/dist/ThemeSwitcher/index.js +8 -7
- package/dist/ThemeToggle/index.js +2 -2
- package/dist/TimeRangePicker/TimeRangePicker.d.ts +121 -0
- package/dist/TimeRangePicker/index.d.ts +2 -0
- package/dist/TimeRangePicker/index.js +23 -0
- package/dist/TimeWindowPicker/index.js +8 -7
- package/dist/Toaster/Toaster.d.ts +27 -3
- package/dist/Toaster/index.d.ts +2 -2
- package/dist/Toaster/index.js +1 -1
- package/dist/{Toaster-C6BQ7L6I.css → Toaster-MX7TBMC3.css} +32 -11
- package/dist/TreeCanvas/index.js +6 -5
- package/dist/TreeGrid/index.js +2 -2
- package/dist/VersionCompare/index.js +9 -8
- package/dist/VersionTimeline/index.js +4 -3
- package/dist/WidgetFrame/index.js +2 -2
- package/dist/{chunk-KHKZPZHO.js → chunk-272Y3YMV.js} +3 -3
- package/dist/{chunk-LACA4JGC.js → chunk-2BQYODY3.js} +1 -1
- package/dist/{chunk-CCPOLCZL.js → chunk-2TTFDRR3.js} +2 -2
- package/dist/{chunk-4BJK7FE5.js → chunk-3EYSYEXP.js} +1 -1
- package/dist/chunk-3LI4TRUR.js +22 -0
- package/dist/{chunk-ATCHK6LC.js → chunk-3NQS6KYG.js} +1 -1
- package/dist/{chunk-V2N3BMOT.js → chunk-45KMH3E3.js} +11 -4
- package/dist/{chunk-ZMBPEHYH.js → chunk-4CBGIRVU.js} +1 -1
- package/dist/{chunk-DFW5PDU5.js → chunk-4OINEWR4.js} +1 -1
- package/dist/{chunk-5XKI4ITH.js → chunk-56P72ZBE.js} +4 -4
- package/dist/{chunk-J24Q4HTD.js → chunk-5NT6OIPP.js} +13 -3
- package/dist/{chunk-O2KT7HBD.js → chunk-5OMV75GE.js} +3 -3
- package/dist/{chunk-6RMZH7P7.js → chunk-672GLRBU.js} +2 -2
- package/dist/{chunk-MFXN46NN.js → chunk-67F2AM4R.js} +3 -3
- package/dist/{chunk-NQCY44B3.js → chunk-67MW366X.js} +2 -2
- package/dist/{chunk-URV6MGWT.js → chunk-6KLK7E76.js} +2 -2
- package/dist/{chunk-ZFM5L7M4.js → chunk-6NJW5KSX.js} +2 -2
- package/dist/{chunk-A4GFEMVI.js → chunk-6T6V5565.js} +1 -1
- package/dist/{chunk-THDGBD6Y.js → chunk-AKFHMLEX.js} +1 -1
- package/dist/{chunk-CNGHOTHV.js → chunk-AWSFK2IK.js} +2 -2
- package/dist/{chunk-HQJ24WPM.js → chunk-AZ5BKSGV.js} +1 -1
- package/dist/chunk-BLPT6GHV.js +31 -0
- package/dist/chunk-C3FX7ZSU.js +30 -0
- package/dist/{chunk-LDGQIDIZ.js → chunk-CGT4R7LW.js} +64 -2
- package/dist/{chunk-DM4JG4M5.js → chunk-D5OSP3KI.js} +3 -3
- package/dist/{chunk-BTHQFWMG.js → chunk-DOPPU6TZ.js} +4 -4
- package/dist/{chunk-AC22RZKC.js → chunk-DRT4L4WC.js} +17 -5
- package/dist/chunk-E4DZOE55.js +162 -0
- package/dist/chunk-EA23JG6R.js +9 -0
- package/dist/{chunk-WHL3XZCK.js → chunk-EBG3V4MK.js} +6 -6
- package/dist/{chunk-5JDHMDMQ.js → chunk-EDNZHW4K.js} +57 -7
- package/dist/{chunk-E6HXFFWO.js → chunk-EGL24VY5.js} +2 -2
- package/dist/{chunk-7SHAFLEX.js → chunk-ES4HR34Y.js} +2 -2
- package/dist/chunk-EVWTLFKI.js +102 -0
- package/dist/chunk-FA44M2YT.js +25 -0
- package/dist/{chunk-LKBZV5IT.js → chunk-FLTMDSC3.js} +1 -1
- package/dist/{chunk-XANKR3EP.js → chunk-FXQLNETQ.js} +2 -2
- package/dist/{chunk-G22NPQG4.js → chunk-GCASX3FD.js} +4 -4
- package/dist/{chunk-OGXHZHRX.js → chunk-GG4QZWMQ.js} +2 -2
- package/dist/{chunk-XP7EXNKF.js → chunk-GPW4M4OI.js} +2 -2
- package/dist/chunk-GZMEWWXW.js +78 -0
- package/dist/{chunk-OG6CL3EB.js → chunk-HD4QJ2SI.js} +3 -2
- package/dist/{chunk-SYY26XBX.js → chunk-HGCDJOEF.js} +2 -2
- package/dist/chunk-HGYHWWA5.js +54 -0
- package/dist/{chunk-ZS63CFDO.js → chunk-HL4CPLEK.js} +7 -7
- package/dist/{chunk-BEHFTRMZ.js → chunk-HNK43Z3P.js} +23 -5
- package/dist/{chunk-UO7JZVCO.js → chunk-HVEDVKXL.js} +1 -1
- package/dist/{chunk-FS4IH7VB.js → chunk-I7VG6RQE.js} +2 -2
- package/dist/{chunk-3RCHEFIL.js → chunk-ICJRP6QW.js} +2 -2
- package/dist/{chunk-YRIZAIU6.js → chunk-IDQBSMMZ.js} +2 -2
- package/dist/chunk-JILNCBBS.js +27 -0
- package/dist/{chunk-W5GM452Z.js → chunk-JJ3NOBJ6.js} +5 -5
- package/dist/chunk-JLRXCKTS.js +97 -0
- package/dist/{chunk-OJCVVCAZ.js → chunk-JMMS2PQU.js} +1 -1
- package/dist/{chunk-IVAR7NRW.js → chunk-JS2TRHBF.js} +3 -3
- package/dist/{chunk-3CZ7XAVY.js → chunk-KS7YIJ4S.js} +10 -6
- package/dist/{chunk-MU5KH3JF.js → chunk-LQ6AGUDL.js} +2 -2
- package/dist/chunk-LXYSWQNE.js +214 -0
- package/dist/{chunk-EKLEYNGR.js → chunk-MYX4XABB.js} +3 -3
- package/dist/{chunk-PM3JVNRY.js → chunk-N3ISZVLK.js} +1 -1
- package/dist/chunk-NEHSV55H.js +119 -0
- package/dist/{chunk-LLHO4FJK.js → chunk-NHJQXDHA.js} +1 -1
- package/dist/{chunk-NTZQN7OR.js → chunk-NI7WUPH3.js} +2 -2
- package/dist/{chunk-F6CKQX5D.js → chunk-NK3D66PB.js} +2 -2
- package/dist/{chunk-RHPBTE3F.js → chunk-NQGZRMUG.js} +1 -1
- package/dist/chunk-NVZCANJ5.js +3 -0
- package/dist/{chunk-RRO7UEYU.js → chunk-OHBXOEP3.js} +1 -1
- package/dist/{chunk-USVUSO3S.js → chunk-OHG7762N.js} +1 -1
- package/dist/{chunk-OBUQVGEG.js → chunk-OJ2QULVH.js} +1 -1
- package/dist/{chunk-ITTECHM4.js → chunk-OOZ5AGPS.js} +5 -5
- package/dist/{chunk-BZXY2L2D.js → chunk-OYAXKHVW.js} +1 -1
- package/dist/{chunk-WQQ5T5SA.js → chunk-OZIBNFLO.js} +1 -1
- package/dist/{chunk-DFK5EQTU.js → chunk-PDTEPN4D.js} +1 -1
- package/dist/chunk-PIYJNCN7.js +124 -0
- package/dist/{chunk-ZVV2VERB.js → chunk-Q6R6EUQ4.js} +3 -3
- package/dist/chunk-QYEOGGVS.js +161 -0
- package/dist/{chunk-NWGGH2LN.js → chunk-QZ4B72FP.js} +3 -3
- package/dist/chunk-RV2FGESF.js +98 -0
- package/dist/{chunk-TQ3C3Q7V.js → chunk-S5C64PTT.js} +1 -1
- package/dist/chunk-SDSBVVLL.js +45 -0
- package/dist/{chunk-ZNOXQACX.js → chunk-T4D7RZNI.js} +2 -2
- package/dist/{chunk-TDVPYBNL.js → chunk-TA72CURM.js} +1 -1
- package/dist/{chunk-WXOYHVWG.js → chunk-TD3UHDFY.js} +4 -4
- package/dist/{chunk-H7FUQCQY.js → chunk-TDQZ4LB5.js} +8 -6
- package/dist/chunk-TFGCNBWP.js +64 -0
- package/dist/{chunk-TMM32U7D.js → chunk-TKS7FTTO.js} +2 -2
- package/dist/{chunk-NKHS2RQ2.js → chunk-U5PJSGHG.js} +1 -1
- package/dist/{chunk-7CGPPAYR.js → chunk-UV4LOQ3E.js} +1 -1
- package/dist/{chunk-34ANLQW2.js → chunk-UVYGMCJ4.js} +173 -8
- package/dist/{chunk-ON2E46DX.js → chunk-VRNUKH2W.js} +1 -1
- package/dist/{chunk-XX2VQE55.js → chunk-WBRC3MNE.js} +1 -1
- package/dist/chunk-WDIVALLP.js +51 -0
- package/dist/{chunk-QMIWMLFI.js → chunk-WOW5SCEK.js} +1 -1
- package/dist/chunk-XODESBSR.js +250 -0
- package/dist/chunk-XQI2OUV4.js +59 -0
- package/dist/{chunk-EJWPYEG4.js → chunk-XRZGGB6I.js} +1 -1
- package/dist/{chunk-34C7NYIQ.js → chunk-Y73BQL74.js} +1 -1
- package/dist/{chunk-KIRQZG3G.js → chunk-YCGZK2E4.js} +1 -1
- package/dist/{chunk-5TK3C6RG.js → chunk-YCZ2FBKA.js} +1 -1
- package/dist/{chunk-TV2QW6GX.js → chunk-YEURM24I.js} +3 -3
- package/dist/{chunk-IW55G7XG.js → chunk-YNRKVY7X.js} +11 -1
- package/dist/chunk-YY445YFQ.js +55 -0
- package/dist/{chunk-LFHCXZO5.js → chunk-Z3GDMNMU.js} +3 -3
- package/dist/{chunk-LQPU5O3B.js → chunk-Z7PJF6F3.js} +3 -3
- package/dist/{chunk-HDHL773Z.js → chunk-ZH4MJM73.js} +1 -1
- package/dist/generated/index.d.ts +17 -0
- package/dist/generated/index.js +141 -122
- package/dist/index.js +141 -122
- package/dist/styles.css +1877 -218
- package/dist/utils/index.js +1 -1
- package/dist/utils/useDownload.d.ts +6 -0
- package/package.json +3 -3
- package/dist/ArtifactPanel-KKUUIPEU.css +0 -159
- package/dist/Composer-TXULCPPV.css +0 -99
- package/dist/chunk-4E5MWUUJ.js +0 -48
- package/dist/chunk-FZVJDJFN.js +0 -54
- package/dist/chunk-IXJHTFXG.js +0 -17
- package/dist/chunk-NBDN5JZV.js +0 -123
- package/dist/{chunk-UTESMBPL.js → chunk-ESUZ27TS.js} +1 -1
- /package/dist/{chunk-55MPFB2U.js → chunk-EWTPXRRM.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { LayerNodeBridge } from './chunk-LM3ISVJA.js';
|
|
2
2
|
import { Tooltip } from './chunk-I33UIUZD.js';
|
|
3
|
-
import { LAYER_REPOSITION_EVENT, LayerHost } from './chunk-OMV5W53A.js';
|
|
4
3
|
import { Kbd } from './chunk-SMBKXWML.js';
|
|
5
|
-
import { Button } from './chunk-
|
|
6
|
-
import {
|
|
4
|
+
import { Button } from './chunk-HD4QJ2SI.js';
|
|
5
|
+
import { LAYER_REPOSITION_EVENT, LayerHost } from './chunk-OMV5W53A.js';
|
|
6
|
+
import { IconButton } from './chunk-2BQYODY3.js';
|
|
7
7
|
import { returnFocus } from './chunk-NUZHC6MM.js';
|
|
8
8
|
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
9
9
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -9,8 +9,18 @@ function useDownload(options = {}) {
|
|
|
9
9
|
(text, filename, mime = DEFAULT_MIME) => run(() => downloadText(typeof text === "function" ? text() : text, filename, mime).started),
|
|
10
10
|
[run]
|
|
11
11
|
);
|
|
12
|
+
const downloadFile = useCallback(
|
|
13
|
+
(file, filename) => run(async () => {
|
|
14
|
+
try {
|
|
15
|
+
return downloadBlob(await file(), filename).started;
|
|
16
|
+
} catch {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
}),
|
|
20
|
+
[run]
|
|
21
|
+
);
|
|
12
22
|
const state = outcome.state === "done" ? "started" : outcome.state;
|
|
13
|
-
return { state, attempt: outcome.attempt, download };
|
|
23
|
+
return { state, attempt: outcome.attempt, download, downloadFile };
|
|
14
24
|
}
|
|
15
25
|
function downloadText(text, filename, mime = DEFAULT_MIME) {
|
|
16
26
|
if (typeof Blob === "undefined") return { started: false, name: safeFilename(filename) };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ReceiptStrip } from './chunk-XQI2OUV4.js';
|
|
2
|
+
import { safeHref } from './chunk-BAKPMH3S.js';
|
|
3
|
+
import { IconTile } from './chunk-3LI4TRUR.js';
|
|
4
|
+
import { StatusCard } from './chunk-WDIVALLP.js';
|
|
5
|
+
import { ButtonLink, Button } from './chunk-HD4QJ2SI.js';
|
|
6
|
+
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
|
+
import './OpenInAppCard-CKHCK7DO.css';
|
|
8
|
+
import { CircleCheckGlyph } from '@crewlethq/icons/glyphs';
|
|
9
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
10
|
+
|
|
11
|
+
var OPEN_IN_APP_CARD_LABELS = {
|
|
12
|
+
heading: "Open in app",
|
|
13
|
+
openHere: "Open here",
|
|
14
|
+
openInNewTab: "Open in new tab",
|
|
15
|
+
opened: "Opened",
|
|
16
|
+
openedNotice: "Opened beside this conversation."
|
|
17
|
+
};
|
|
18
|
+
function OpenInAppCard({
|
|
19
|
+
icon,
|
|
20
|
+
title,
|
|
21
|
+
path,
|
|
22
|
+
href,
|
|
23
|
+
onOpenHere,
|
|
24
|
+
state = "ready",
|
|
25
|
+
labels: overrides,
|
|
26
|
+
className,
|
|
27
|
+
...rest
|
|
28
|
+
}) {
|
|
29
|
+
const labels = overrides ? { ...OPEN_IN_APP_CARD_LABELS, ...overrides } : OPEN_IN_APP_CARD_LABELS;
|
|
30
|
+
const safe = safeHref(href);
|
|
31
|
+
const opened = state === "opened";
|
|
32
|
+
return /* @__PURE__ */ jsx(
|
|
33
|
+
StatusCard,
|
|
34
|
+
{
|
|
35
|
+
...rest,
|
|
36
|
+
title: labels.heading,
|
|
37
|
+
status: opened ? { label: labels.opened, tone: "success", icon: /* @__PURE__ */ jsx(CircleCheckGlyph, { size: "xs" }) } : void 0,
|
|
38
|
+
strip: opened ? /* @__PURE__ */ jsx(ReceiptStrip, { children: labels.openedNotice }) : void 0,
|
|
39
|
+
actions: opened ? void 0 : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
40
|
+
safe === null ? null : /* @__PURE__ */ jsx(ButtonLink, { href: safe, variant: "secondary", external: true, children: labels.openInNewTab }),
|
|
41
|
+
/* @__PURE__ */ jsx(Button, { variant: "primary", onClick: onOpenHere, children: labels.openHere })
|
|
42
|
+
] }),
|
|
43
|
+
className: cx("crewlet-open-in-app-card", className),
|
|
44
|
+
children: /* @__PURE__ */ jsxs("div", { className: "crewlet-open-in-app-card__place", children: [
|
|
45
|
+
/* @__PURE__ */ jsx(IconTile, { tone: "neutral", size: "sm", children: icon }),
|
|
46
|
+
/* @__PURE__ */ jsxs("span", { className: "crewlet-open-in-app-card__words", children: [
|
|
47
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-open-in-app-card__title", children: title }),
|
|
48
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-open-in-app-card__path", children: path })
|
|
49
|
+
] })
|
|
50
|
+
] })
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { OPEN_IN_APP_CARD_LABELS, OpenInAppCard };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './DiffList-
|
|
3
|
+
import './DiffList-GE6YBRLJ.css';
|
|
4
4
|
import { DiffGlyph, MinusGlyph, PlusGlyph, ArrowRightGlyph } from '@crewlethq/icons/glyphs';
|
|
5
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -15,7 +15,7 @@ var GLYPHS = {
|
|
|
15
15
|
removed: MinusGlyph,
|
|
16
16
|
changed: DiffGlyph
|
|
17
17
|
};
|
|
18
|
-
function DiffList({ rows, emptyMessage, labels: overrides, className }) {
|
|
18
|
+
function DiffList({ rows, emptyMessage, layout = "columns", labels: overrides, className }) {
|
|
19
19
|
const labels = overrides ? { ...DIFF_LIST_LABELS, ...overrides } : DIFF_LIST_LABELS;
|
|
20
20
|
if (rows.length === 0 && emptyMessage != null) {
|
|
21
21
|
return /* @__PURE__ */ jsx("p", { className: "crewlet-diff-list__empty", children: emptyMessage });
|
|
@@ -25,7 +25,7 @@ function DiffList({ rows, emptyMessage, labels: overrides, className }) {
|
|
|
25
25
|
// list role with them, so "12 differences" would never be read. The
|
|
26
26
|
// redundant-role rule is silenced for that reason, not obeyed.
|
|
27
27
|
// eslint-disable-next-line jsx-a11y/no-redundant-roles
|
|
28
|
-
/* @__PURE__ */ jsx("ul", { role: "list", className: cx("crewlet-diff-list", className), children: rows.map((row, index) => {
|
|
28
|
+
/* @__PURE__ */ jsx("ul", { role: "list", className: cx("crewlet-diff-list", layout !== "columns" && `crewlet-diff-list--${layout}`, className), children: rows.map((row, index) => {
|
|
29
29
|
const Glyph = GLYPHS[row.kind];
|
|
30
30
|
return /* @__PURE__ */ jsxs(
|
|
31
31
|
"li",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Modal } from './chunk-
|
|
1
|
+
import { Modal } from './chunk-QZ4B72FP.js';
|
|
2
2
|
import { useListbox, useHighlightRest } from './chunk-7KHM2FZH.js';
|
|
3
|
-
import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
|
|
4
3
|
import { Kbd } from './chunk-SMBKXWML.js';
|
|
5
|
-
import { Input } from './chunk-
|
|
4
|
+
import { Input } from './chunk-FXQLNETQ.js';
|
|
6
5
|
import { Count } from './chunk-BHHIIK3M.js';
|
|
6
|
+
import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
|
|
7
7
|
import { isComposing } from './chunk-H5XTJ7GJ.js';
|
|
8
8
|
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
9
9
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ConfirmModal } from './chunk-NWGGH2LN.js';
|
|
2
1
|
import { InlineCode } from './chunk-5CLW2CXT.js';
|
|
2
|
+
import { ConfirmModal } from './chunk-QZ4B72FP.js';
|
|
3
3
|
import { Callout } from './chunk-BPCY7ZID.js';
|
|
4
4
|
import './LinkInterstitial-ET4MSVSV.css';
|
|
5
5
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
@@ -37,10 +37,12 @@ export * from '../CanvasSchematic/index.js';
|
|
|
37
37
|
export * from '../CanvasToolbar/index.js';
|
|
38
38
|
export * from '../Card/index.js';
|
|
39
39
|
export * from '../CatalogTile/index.js';
|
|
40
|
+
export * from '../ChangeList/index.js';
|
|
40
41
|
export * from '../ChangeMark/index.js';
|
|
41
42
|
export * from '../CharacterCount/index.js';
|
|
42
43
|
export * from '../CharacterPicker/index.js';
|
|
43
44
|
export * from '../Charts/index.js';
|
|
45
|
+
export * from '../ChatThread/index.js';
|
|
44
46
|
export * from '../Checkbox/index.js';
|
|
45
47
|
export * from '../ChoiceButtons/index.js';
|
|
46
48
|
export * from '../ChoiceList/index.js';
|
|
@@ -78,6 +80,7 @@ export * from '../EditingStatus/index.js';
|
|
|
78
80
|
export * from '../EmptyState/index.js';
|
|
79
81
|
export * from '../EmptyValue/index.js';
|
|
80
82
|
export * from '../EntityChip/index.js';
|
|
83
|
+
export * from '../EntityList/index.js';
|
|
81
84
|
export * from '../ErrorBoundary/index.js';
|
|
82
85
|
export * from '../Eyebrow/index.js';
|
|
83
86
|
export * from '../FactList/index.js';
|
|
@@ -118,17 +121,20 @@ export * from '../MarkdownEditor/index.js';
|
|
|
118
121
|
export * from '../MediaMatch/index.js';
|
|
119
122
|
export * from '../Menu/index.js';
|
|
120
123
|
export * from '../MergeConflicts/index.js';
|
|
124
|
+
export * from '../MessageBubble/index.js';
|
|
121
125
|
export * from '../Meter/index.js';
|
|
122
126
|
export * from '../Modal/index.js';
|
|
123
127
|
export * from '../NewItemsNotice/index.js';
|
|
124
128
|
export * from '../Note/index.js';
|
|
125
129
|
export * from '../ObjectHeader/index.js';
|
|
130
|
+
export * from '../OpenInAppCard/index.js';
|
|
126
131
|
export * from '../OrgLabel/index.js';
|
|
127
132
|
export * from '../OrgNode/index.js';
|
|
128
133
|
export * from '../OrgTable/index.js';
|
|
129
134
|
export * from '../Outline/index.js';
|
|
130
135
|
export * from '../PageHeader/index.js';
|
|
131
136
|
export * from '../PageNote/index.js';
|
|
137
|
+
export * from '../PeekRail/index.js';
|
|
132
138
|
export * from '../PeopleRail/index.js';
|
|
133
139
|
export * from '../PinTile/index.js';
|
|
134
140
|
export * from '../Popover/index.js';
|
|
@@ -140,15 +146,20 @@ export * from '../PricingCard/index.js';
|
|
|
140
146
|
export * from '../Principal/index.js';
|
|
141
147
|
export * from '../PrincipalPicker/index.js';
|
|
142
148
|
export * from '../PropertyList/index.js';
|
|
149
|
+
export * from '../ProposalCard/index.js';
|
|
143
150
|
export * from '../Prose/index.js';
|
|
144
151
|
export * from '../QrCode/index.js';
|
|
145
152
|
export * from '../ReadingPane/index.js';
|
|
153
|
+
export * from '../ReceiptStrip/index.js';
|
|
154
|
+
export * from '../RefusalCard/index.js';
|
|
146
155
|
export * from '../RelatedRow/index.js';
|
|
147
156
|
export * from '../RelativeTime/index.js';
|
|
148
157
|
export * from '../Reorder/index.js';
|
|
158
|
+
export * from '../ResultTableCard/index.js';
|
|
149
159
|
export * from '../ReviewList/index.js';
|
|
150
160
|
export * from '../RichEditor/index.js';
|
|
151
161
|
export * from '../RichEditorMarkdown/index.js';
|
|
162
|
+
export * from '../RunChip/index.js';
|
|
152
163
|
export * from '../SandboxedFrame/index.js';
|
|
153
164
|
export * from '../SearchTrigger/index.js';
|
|
154
165
|
export * from '../Section/index.js';
|
|
@@ -157,6 +168,7 @@ export * from '../SegmentedControl/index.js';
|
|
|
157
168
|
export * from '../SegmentedMeter/index.js';
|
|
158
169
|
export * from '../Select/index.js';
|
|
159
170
|
export * from '../SelectionBar/index.js';
|
|
171
|
+
export * from '../SendButton/index.js';
|
|
160
172
|
export * from '../SettingsTable/index.js';
|
|
161
173
|
export * from '../SetupWizard/index.js';
|
|
162
174
|
export * from '../ShareDialog/index.js';
|
|
@@ -164,6 +176,7 @@ export * from '../SheetColumnEditor/index.js';
|
|
|
164
176
|
export * from '../SheetGrid/index.js';
|
|
165
177
|
export * from '../SheetModel/index.js';
|
|
166
178
|
export * from '../Shortcut/index.js';
|
|
179
|
+
export * from '../SidePanel/index.js';
|
|
167
180
|
export * from '../SidebarNav/index.js';
|
|
168
181
|
export * from '../Skeleton/index.js';
|
|
169
182
|
export * from '../SlideCompare/index.js';
|
|
@@ -172,11 +185,14 @@ export * from '../SlideGrid/index.js';
|
|
|
172
185
|
export * from '../SlideNav/index.js';
|
|
173
186
|
export * from '../SlideStage/index.js';
|
|
174
187
|
export * from '../SourceEditor/index.js';
|
|
188
|
+
export * from '../Spinner/index.js';
|
|
175
189
|
export * from '../StatCard/index.js';
|
|
176
190
|
export * from '../StatGroup/index.js';
|
|
177
191
|
export * from '../Statement/index.js';
|
|
192
|
+
export * from '../StatusCard/index.js';
|
|
178
193
|
export * from '../StatusDot/index.js';
|
|
179
194
|
export * from '../Stepper/index.js';
|
|
195
|
+
export * from '../SuggestionRow/index.js';
|
|
180
196
|
export * from '../Switch/index.js';
|
|
181
197
|
export * from '../Switcher/index.js';
|
|
182
198
|
export * from '../Table/index.js';
|
|
@@ -191,6 +207,7 @@ export * from '../ThemeSwatch/index.js';
|
|
|
191
207
|
export * from '../ThemeSwitcher/index.js';
|
|
192
208
|
export * from '../ThemeToggle/index.js';
|
|
193
209
|
export * from '../TileGrid/index.js';
|
|
210
|
+
export * from '../TimeRangePicker/index.js';
|
|
194
211
|
export * from '../TimeWindowPicker/index.js';
|
|
195
212
|
export * from '../Timeline/index.js';
|
|
196
213
|
export * from '../Toaster/index.js';
|