@arbidocs/blocks 0.5.132 → 0.5.133
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/{ConnectedCallDock-CJ7RWP5B.cjs → ConnectedCallDock-ZNS5BS2R.cjs} +22 -22
- package/dist/{ConnectedCallDock-CJ7RWP5B.cjs.map → ConnectedCallDock-ZNS5BS2R.cjs.map} +1 -1
- package/dist/{ConnectedCallRoom-JPJCXP6X.cjs → ConnectedCallRoom-ACNVSFH7.cjs} +14 -14
- package/dist/{ConnectedCallRoom-JPJCXP6X.cjs.map → ConnectedCallRoom-ACNVSFH7.cjs.map} +1 -1
- package/dist/ConnectedMailInviteCard-AJI7JZYJ.cjs +22 -0
- package/dist/{ConnectedMailInviteCard-EINB3THA.cjs.map → ConnectedMailInviteCard-AJI7JZYJ.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-5TZAIR4V.cjs → ConnectedNativeDocxComparison-H72RQJKH.cjs} +19 -19
- package/dist/{ConnectedNativeDocxComparison-5TZAIR4V.cjs.map → ConnectedNativeDocxComparison-H72RQJKH.cjs.map} +1 -1
- package/dist/{ConnectedPresentation-SEUUNFUA.cjs → ConnectedPresentation-3JXN6SRT.cjs} +19 -19
- package/dist/{ConnectedPresentation-SEUUNFUA.cjs.map → ConnectedPresentation-3JXN6SRT.cjs.map} +1 -1
- package/dist/{ConnectedProductionSetDialog-LHB4VQWC.cjs → ConnectedProductionSetDialog-EOWZQ6J3.cjs} +9 -9
- package/dist/{ConnectedProductionSetDialog-LHB4VQWC.cjs.map → ConnectedProductionSetDialog-EOWZQ6J3.cjs.map} +1 -1
- package/dist/{ConnectedSlidesTab-3ATAKNSJ.cjs → ConnectedSlidesTab-IECS2MJI.cjs} +18 -18
- package/dist/{ConnectedSlidesTab-3ATAKNSJ.cjs.map → ConnectedSlidesTab-IECS2MJI.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-BKPOMQ6G.cjs → ConnectedStreamedWordArtifact-T7PZIRBY.cjs} +19 -19
- package/dist/{ConnectedStreamedWordArtifact-BKPOMQ6G.cjs.map → ConnectedStreamedWordArtifact-T7PZIRBY.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-2VI5OOLE.cjs → DocumentReviewCard-EM2AJUF3.cjs} +22 -22
- package/dist/{DocumentReviewCard-2VI5OOLE.cjs.map → DocumentReviewCard-EM2AJUF3.cjs.map} +1 -1
- package/dist/{FilesViewerDialog-77YTFIX3.cjs → FilesViewerDialog-OA3HDLOI.cjs} +44 -44
- package/dist/{FilesViewerDialog-77YTFIX3.cjs.map → FilesViewerDialog-OA3HDLOI.cjs.map} +1 -1
- package/dist/{NativeDocxEditor-2PTEK6ND.cjs → NativeDocxEditor-XZAEU5QU.cjs} +8 -8
- package/dist/{NativeDocxEditor-2PTEK6ND.cjs.map → NativeDocxEditor-XZAEU5QU.cjs.map} +1 -1
- package/dist/{WorkspaceTableView-7BMZ2O3Y.cjs → WorkspaceTableView-HMQ6PXUC.cjs} +9 -9
- package/dist/{WorkspaceTableView-7BMZ2O3Y.cjs.map → WorkspaceTableView-HMQ6PXUC.cjs.map} +1 -1
- package/dist/agents/index.cjs +194 -194
- package/dist/{ai-4XJ2VFNS.cjs → ai-QEXZ4SYR.cjs} +25 -25
- package/dist/ai-QEXZ4SYR.cjs.map +1 -0
- package/dist/calls/index.cjs +118 -118
- package/dist/chat/index.cjs +30 -30
- package/dist/{chunk-PSIKUQYM.cjs → chunk-2FA7UVLG.cjs} +12 -12
- package/dist/{chunk-PSIKUQYM.cjs.map → chunk-2FA7UVLG.cjs.map} +1 -1
- package/dist/{chunk-ZYGAXD3N.cjs → chunk-2SWS7ESM.cjs} +3 -3
- package/dist/{chunk-ZYGAXD3N.cjs.map → chunk-2SWS7ESM.cjs.map} +1 -1
- package/dist/{chunk-YZ6YOOTF.cjs → chunk-32W2S6DE.cjs} +4 -4
- package/dist/{chunk-YZ6YOOTF.cjs.map → chunk-32W2S6DE.cjs.map} +1 -1
- package/dist/{chunk-IZBAWZTB.cjs → chunk-3RAW2ZH5.cjs} +8 -8
- package/dist/{chunk-IZBAWZTB.cjs.map → chunk-3RAW2ZH5.cjs.map} +1 -1
- package/dist/{chunk-MXBXZXXQ.cjs → chunk-3Y75LUCT.cjs} +4 -4
- package/dist/{chunk-MXBXZXXQ.cjs.map → chunk-3Y75LUCT.cjs.map} +1 -1
- package/dist/{chunk-PL7HUTM3.cjs → chunk-57LUHZLV.cjs} +8 -8
- package/dist/{chunk-PL7HUTM3.cjs.map → chunk-57LUHZLV.cjs.map} +1 -1
- package/dist/{chunk-MXGXKUSW.cjs → chunk-5GHGIDZP.cjs} +15 -15
- package/dist/{chunk-MXGXKUSW.cjs.map → chunk-5GHGIDZP.cjs.map} +1 -1
- package/dist/{chunk-KSDTK66A.cjs → chunk-5JK3232B.cjs} +20 -20
- package/dist/{chunk-KSDTK66A.cjs.map → chunk-5JK3232B.cjs.map} +1 -1
- package/dist/{chunk-Q6IKXWPG.cjs → chunk-64247UHS.cjs} +4 -4
- package/dist/{chunk-Q6IKXWPG.cjs.map → chunk-64247UHS.cjs.map} +1 -1
- package/dist/{chunk-HBUHOCWF.cjs → chunk-6CGMSJLB.cjs} +4 -4
- package/dist/{chunk-HBUHOCWF.cjs.map → chunk-6CGMSJLB.cjs.map} +1 -1
- package/dist/{chunk-VRK3IQAP.cjs → chunk-6RC6GYIW.cjs} +4 -4
- package/dist/{chunk-VRK3IQAP.cjs.map → chunk-6RC6GYIW.cjs.map} +1 -1
- package/dist/{chunk-VJCSEMXT.cjs → chunk-6THN5ZGA.cjs} +4 -4
- package/dist/{chunk-VJCSEMXT.cjs.map → chunk-6THN5ZGA.cjs.map} +1 -1
- package/dist/{chunk-ZESMRGDV.cjs → chunk-7NJKDJVO.cjs} +6 -6
- package/dist/{chunk-ZESMRGDV.cjs.map → chunk-7NJKDJVO.cjs.map} +1 -1
- package/dist/{chunk-SBWIA4PL.cjs → chunk-AGL7Z6Y2.cjs} +21 -21
- package/dist/{chunk-SBWIA4PL.cjs.map → chunk-AGL7Z6Y2.cjs.map} +1 -1
- package/dist/{chunk-PDDYAY4Z.cjs → chunk-BN33PC5F.cjs} +82 -82
- package/dist/{chunk-PDDYAY4Z.cjs.map → chunk-BN33PC5F.cjs.map} +1 -1
- package/dist/{chunk-TBPCG2PV.cjs → chunk-C5APAFUY.cjs} +224 -165
- package/dist/chunk-C5APAFUY.cjs.map +1 -0
- package/dist/{chunk-H7PHOTX2.cjs → chunk-C6RJQQLG.cjs} +10 -10
- package/dist/{chunk-H7PHOTX2.cjs.map → chunk-C6RJQQLG.cjs.map} +1 -1
- package/dist/{chunk-HQDR43JC.cjs → chunk-CENMN32L.cjs} +6 -6
- package/dist/{chunk-HQDR43JC.cjs.map → chunk-CENMN32L.cjs.map} +1 -1
- package/dist/{chunk-ULWRNGGE.cjs → chunk-CVPV4I7Z.cjs} +4 -3
- package/dist/chunk-CVPV4I7Z.cjs.map +1 -0
- package/dist/{chunk-QECKDZ47.cjs → chunk-CYN66TBO.cjs} +3 -3
- package/dist/chunk-CYN66TBO.cjs.map +1 -0
- package/dist/{chunk-B3BZ6MNI.cjs → chunk-DGAGSP5G.cjs} +6 -6
- package/dist/{chunk-B3BZ6MNI.cjs.map → chunk-DGAGSP5G.cjs.map} +1 -1
- package/dist/{chunk-325GVZE6.cjs → chunk-ECSOXKJQ.cjs} +6 -6
- package/dist/{chunk-325GVZE6.cjs.map → chunk-ECSOXKJQ.cjs.map} +1 -1
- package/dist/{chunk-GNZAH6UI.cjs → chunk-ETMSINQS.cjs} +6 -6
- package/dist/{chunk-GNZAH6UI.cjs.map → chunk-ETMSINQS.cjs.map} +1 -1
- package/dist/{chunk-SGYSDABK.cjs → chunk-EYXU32D7.cjs} +6 -6
- package/dist/{chunk-SGYSDABK.cjs.map → chunk-EYXU32D7.cjs.map} +1 -1
- package/dist/{chunk-UZHWXKS6.cjs → chunk-F6F375V7.cjs} +7 -7
- package/dist/{chunk-UZHWXKS6.cjs.map → chunk-F6F375V7.cjs.map} +1 -1
- package/dist/{chunk-ALK3PUUB.cjs → chunk-FYFL3CET.cjs} +25 -25
- package/dist/{chunk-ALK3PUUB.cjs.map → chunk-FYFL3CET.cjs.map} +1 -1
- package/dist/{chunk-IWHP7FAB.cjs → chunk-IFJBE7M5.cjs} +10 -10
- package/dist/{chunk-IWHP7FAB.cjs.map → chunk-IFJBE7M5.cjs.map} +1 -1
- package/dist/{chunk-AFXLRO6E.cjs → chunk-IN3KXI3K.cjs} +6 -6
- package/dist/{chunk-AFXLRO6E.cjs.map → chunk-IN3KXI3K.cjs.map} +1 -1
- package/dist/{chunk-MLA2BJ2Y.cjs → chunk-JYZ6UE5X.cjs} +28 -28
- package/dist/{chunk-MLA2BJ2Y.cjs.map → chunk-JYZ6UE5X.cjs.map} +1 -1
- package/dist/{chunk-QMIHLJMH.cjs → chunk-JZQ47OW5.cjs} +6 -6
- package/dist/{chunk-QMIHLJMH.cjs.map → chunk-JZQ47OW5.cjs.map} +1 -1
- package/dist/{chunk-VWTOIGX4.cjs → chunk-K3ZZ6IH3.cjs} +4 -4
- package/dist/{chunk-VWTOIGX4.cjs.map → chunk-K3ZZ6IH3.cjs.map} +1 -1
- package/dist/chunk-KWD5Q4XH.cjs +18 -0
- package/dist/{chunk-TDA6KESI.cjs.map → chunk-KWD5Q4XH.cjs.map} +1 -1
- package/dist/{chunk-ESVRVZ53.cjs → chunk-L4Y6UMRC.cjs} +5 -5
- package/dist/{chunk-ESVRVZ53.cjs.map → chunk-L4Y6UMRC.cjs.map} +1 -1
- package/dist/{chunk-YWHUWIHP.cjs → chunk-LFMOQALU.cjs} +75 -75
- package/dist/{chunk-YWHUWIHP.cjs.map → chunk-LFMOQALU.cjs.map} +1 -1
- package/dist/{chunk-TKHCIHE2.cjs → chunk-LIKDQBNJ.cjs} +7 -7
- package/dist/{chunk-TKHCIHE2.cjs.map → chunk-LIKDQBNJ.cjs.map} +1 -1
- package/dist/{chunk-ADDQKZ5I.cjs → chunk-LLD4PNBW.cjs} +4 -4
- package/dist/{chunk-ADDQKZ5I.cjs.map → chunk-LLD4PNBW.cjs.map} +1 -1
- package/dist/{chunk-2Z25MUAY.cjs → chunk-MEYQLQWS.cjs} +12 -12
- package/dist/{chunk-2Z25MUAY.cjs.map → chunk-MEYQLQWS.cjs.map} +1 -1
- package/dist/{chunk-H4ID6S4P.cjs → chunk-MSJGEZHL.cjs} +6 -6
- package/dist/{chunk-H4ID6S4P.cjs.map → chunk-MSJGEZHL.cjs.map} +1 -1
- package/dist/{chunk-ORELHENJ.cjs → chunk-NZNBJF3M.cjs} +12 -2
- package/dist/chunk-NZNBJF3M.cjs.map +1 -0
- package/dist/{chunk-P5AQYC4D.cjs → chunk-OA3AN6WW.cjs} +4 -4
- package/dist/{chunk-P5AQYC4D.cjs.map → chunk-OA3AN6WW.cjs.map} +1 -1
- package/dist/{chunk-A6GBPE5E.cjs → chunk-OOHBXCDV.cjs} +5 -5
- package/dist/{chunk-A6GBPE5E.cjs.map → chunk-OOHBXCDV.cjs.map} +1 -1
- package/dist/{chunk-DBN6GBRQ.cjs → chunk-OOW7H2YD.cjs} +14 -14
- package/dist/{chunk-DBN6GBRQ.cjs.map → chunk-OOW7H2YD.cjs.map} +1 -1
- package/dist/{chunk-JV5TVUOU.cjs → chunk-OUGRCQM7.cjs} +4 -4
- package/dist/{chunk-JV5TVUOU.cjs.map → chunk-OUGRCQM7.cjs.map} +1 -1
- package/dist/{chunk-JH6JTI76.cjs → chunk-OUYBYZ7Y.cjs} +6 -6
- package/dist/{chunk-JH6JTI76.cjs.map → chunk-OUYBYZ7Y.cjs.map} +1 -1
- package/dist/{chunk-TXP2N3DC.cjs → chunk-P7VUIW24.cjs} +6 -6
- package/dist/{chunk-TXP2N3DC.cjs.map → chunk-P7VUIW24.cjs.map} +1 -1
- package/dist/{chunk-OD6NGGL3.cjs → chunk-R5NTEW4L.cjs} +28 -28
- package/dist/{chunk-OD6NGGL3.cjs.map → chunk-R5NTEW4L.cjs.map} +1 -1
- package/dist/{chunk-SUOHAB7N.cjs → chunk-RSQGDXAF.cjs} +8 -8
- package/dist/{chunk-SUOHAB7N.cjs.map → chunk-RSQGDXAF.cjs.map} +1 -1
- package/dist/{chunk-U7KB42OQ.cjs → chunk-RZSBHRQL.cjs} +70 -70
- package/dist/{chunk-U7KB42OQ.cjs.map → chunk-RZSBHRQL.cjs.map} +1 -1
- package/dist/{chunk-YVCOQHCE.cjs → chunk-S5OGPQSB.cjs} +5 -5
- package/dist/{chunk-YVCOQHCE.cjs.map → chunk-S5OGPQSB.cjs.map} +1 -1
- package/dist/{chunk-ULPTSXXO.cjs → chunk-SD7GUB44.cjs} +4 -4
- package/dist/{chunk-ULPTSXXO.cjs.map → chunk-SD7GUB44.cjs.map} +1 -1
- package/dist/{chunk-ERRXU2HL.cjs → chunk-SK6LFIU2.cjs} +11 -11
- package/dist/{chunk-ERRXU2HL.cjs.map → chunk-SK6LFIU2.cjs.map} +1 -1
- package/dist/{chunk-23I5EUZA.cjs → chunk-T2DUNNYY.cjs} +4 -4
- package/dist/{chunk-23I5EUZA.cjs.map → chunk-T2DUNNYY.cjs.map} +1 -1
- package/dist/{chunk-E3Y7RI3J.cjs → chunk-T6WA6S5T.cjs} +4 -4
- package/dist/{chunk-E3Y7RI3J.cjs.map → chunk-T6WA6S5T.cjs.map} +1 -1
- package/dist/{chunk-XJE7W42L.cjs → chunk-TENWM7BH.cjs} +10 -13
- package/dist/chunk-TENWM7BH.cjs.map +1 -0
- package/dist/{chunk-XCW6OY7E.cjs → chunk-TOYKBRAU.cjs} +14 -14
- package/dist/{chunk-XCW6OY7E.cjs.map → chunk-TOYKBRAU.cjs.map} +1 -1
- package/dist/{chunk-FQRJCAT2.cjs → chunk-TXBXIUTX.cjs} +7 -7
- package/dist/{chunk-FQRJCAT2.cjs.map → chunk-TXBXIUTX.cjs.map} +1 -1
- package/dist/{chunk-7OPOPYV6.cjs → chunk-U6XMZG6G.cjs} +4 -4
- package/dist/{chunk-7OPOPYV6.cjs.map → chunk-U6XMZG6G.cjs.map} +1 -1
- package/dist/{chunk-4EK7TAP7.cjs → chunk-UOI6JJPG.cjs} +5 -5
- package/dist/{chunk-4EK7TAP7.cjs.map → chunk-UOI6JJPG.cjs.map} +1 -1
- package/dist/{chunk-TZYB22FM.cjs → chunk-UOZ237OW.cjs} +22 -22
- package/dist/{chunk-TZYB22FM.cjs.map → chunk-UOZ237OW.cjs.map} +1 -1
- package/dist/{chunk-QXMPATG6.cjs → chunk-UWTCK5IN.cjs} +14 -14
- package/dist/{chunk-QXMPATG6.cjs.map → chunk-UWTCK5IN.cjs.map} +1 -1
- package/dist/{chunk-HORAMB52.cjs → chunk-V6SFJ44C.cjs} +101 -101
- package/dist/{chunk-HORAMB52.cjs.map → chunk-V6SFJ44C.cjs.map} +1 -1
- package/dist/{chunk-NY3YUCOW.cjs → chunk-VCDD763Y.cjs} +4 -4
- package/dist/{chunk-NY3YUCOW.cjs.map → chunk-VCDD763Y.cjs.map} +1 -1
- package/dist/{chunk-BQ5RIWWT.cjs → chunk-VF26CUE3.cjs} +28 -28
- package/dist/{chunk-BQ5RIWWT.cjs.map → chunk-VF26CUE3.cjs.map} +1 -1
- package/dist/{chunk-5QERK4PK.cjs → chunk-VIUEPJ3Y.cjs} +42 -42
- package/dist/{chunk-5QERK4PK.cjs.map → chunk-VIUEPJ3Y.cjs.map} +1 -1
- package/dist/{chunk-7PN3YENO.cjs → chunk-VPKKPHJY.cjs} +4 -4
- package/dist/{chunk-7PN3YENO.cjs.map → chunk-VPKKPHJY.cjs.map} +1 -1
- package/dist/{chunk-CMGNRMPA.cjs → chunk-WNAZM2YS.cjs} +4 -4
- package/dist/{chunk-CMGNRMPA.cjs.map → chunk-WNAZM2YS.cjs.map} +1 -1
- package/dist/{chunk-7LEN65YI.cjs → chunk-X46QYO4S.cjs} +4 -4
- package/dist/{chunk-7LEN65YI.cjs.map → chunk-X46QYO4S.cjs.map} +1 -1
- package/dist/{chunk-5SKHK3BG.cjs → chunk-XZMYSDU4.cjs} +4 -4
- package/dist/{chunk-5SKHK3BG.cjs.map → chunk-XZMYSDU4.cjs.map} +1 -1
- package/dist/{chunk-JR2YSBD5.cjs → chunk-YKOPKLYP.cjs} +6 -6
- package/dist/{chunk-JR2YSBD5.cjs.map → chunk-YKOPKLYP.cjs.map} +1 -1
- package/dist/{chunk-JDFBEGQO.cjs → chunk-YZBDHBKI.cjs} +7 -7
- package/dist/chunk-YZBDHBKI.cjs.map +1 -0
- package/dist/{chunk-GNX3FBBX.cjs → chunk-ZM6B5WJW.cjs} +4 -4
- package/dist/{chunk-GNX3FBBX.cjs.map → chunk-ZM6B5WJW.cjs.map} +1 -1
- package/dist/{chunk-5UYFLFNR.cjs → chunk-ZOU6K6DD.cjs} +4 -4
- package/dist/{chunk-5UYFLFNR.cjs.map → chunk-ZOU6K6DD.cjs.map} +1 -1
- package/dist/{chunk-NM7RWZ4E.cjs → chunk-ZTHYJP4G.cjs} +21 -21
- package/dist/{chunk-NM7RWZ4E.cjs.map → chunk-ZTHYJP4G.cjs.map} +1 -1
- package/dist/citations/index.cjs +10 -10
- package/dist/collaboration/index.cjs +70 -70
- package/dist/components/UsageMeter.d.ts +2 -0
- package/dist/components/UsageMeter.js +10 -0
- package/dist/components/UsageMeter.js.map +2 -2
- package/dist/connect/docx.cjs +23 -23
- package/dist/connect/index.cjs +3201 -2446
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/viewer.cjs +30 -30
- package/dist/connection/billing/AddAddonDialog.js +1 -1
- package/dist/connection/billing/AddAddonDialog.js.map +2 -2
- package/dist/connection/billing/BillingCard.d.ts +1 -1
- package/dist/connection/billing/BillingCard.js.map +1 -1
- package/dist/connection/billing/ChangePlanDialog.d.ts +1 -1
- package/dist/connection/billing/ChangePlanDialog.js +2 -5
- package/dist/connection/billing/ChangePlanDialog.js.map +2 -2
- package/dist/connection/billing/ChangeProPlan.js +2 -2
- package/dist/connection/billing/ChangeProPlan.js.map +2 -2
- package/dist/connection/billing/CollaboratorPlan.d.ts +2 -1
- package/dist/connection/billing/CollaboratorPlan.js +115 -52
- package/dist/connection/billing/CollaboratorPlan.js.map +2 -2
- package/dist/connection/billing/ConnectedSubscriptionSetup.d.ts +1 -0
- package/dist/connection/billing/ConnectedSubscriptionSetup.js +198 -0
- package/dist/connection/billing/ConnectedSubscriptionSetup.js.map +7 -0
- package/dist/connection/billing/ConnectedWelcomeDialog.d.ts +3 -13
- package/dist/connection/billing/ConnectedWelcomeDialog.js +26 -30
- package/dist/connection/billing/ConnectedWelcomeDialog.js.map +2 -2
- package/dist/connection/billing/InvoicesModal.js +2 -2
- package/dist/connection/billing/InvoicesModal.js.map +1 -1
- package/dist/connection/billing/ManualSubscriptionAdjustments.d.ts +12 -0
- package/dist/connection/billing/ManualSubscriptionAdjustments.js +424 -0
- package/dist/connection/billing/ManualSubscriptionAdjustments.js.map +7 -0
- package/dist/connection/billing/MonthlySpendCap.d.ts +3 -1
- package/dist/connection/billing/MonthlySpendCap.js +11 -7
- package/dist/connection/billing/MonthlySpendCap.js.map +2 -2
- package/dist/connection/billing/NewProjectFlow.d.ts +4 -1
- package/dist/connection/billing/NewProjectFlow.js +44 -37
- package/dist/connection/billing/NewProjectFlow.js.map +2 -2
- package/dist/connection/billing/PlanChangeLines.d.ts +1 -1
- package/dist/connection/billing/PlanChangeLines.js.map +1 -1
- package/dist/connection/billing/ProjectBilling.d.ts +3 -3
- package/dist/connection/billing/ProjectBilling.js +2 -2
- package/dist/connection/billing/ProjectBilling.js.map +2 -2
- package/dist/connection/billing/ProjectDetail.js +17 -2
- package/dist/connection/billing/ProjectDetail.js.map +2 -2
- package/dist/connection/billing/ProjectPurchaseOptions.d.ts +2 -14
- package/dist/connection/billing/ProjectPurchaseOptions.js +289 -440
- package/dist/connection/billing/ProjectPurchaseOptions.js.map +2 -2
- package/dist/connection/billing/ProjectUsageCard.js +4 -4
- package/dist/connection/billing/ProjectUsageCard.js.map +2 -2
- package/dist/connection/billing/SharedProjects.js +1 -1
- package/dist/connection/billing/SharedProjects.js.map +1 -1
- package/dist/connection/billing/StripeCheckoutModal.d.ts +2 -1
- package/dist/connection/billing/StripeCheckoutModal.js +20 -4
- package/dist/connection/billing/StripeCheckoutModal.js.map +2 -2
- package/dist/connection/billing/SubscriptionIntervalToggle.d.ts +9 -0
- package/dist/connection/billing/SubscriptionIntervalToggle.js +40 -0
- package/dist/connection/billing/SubscriptionIntervalToggle.js.map +7 -0
- package/dist/connection/billing/SubscriptionPlans.d.ts +3 -4
- package/dist/connection/billing/SubscriptionPlans.js +35 -112
- package/dist/connection/billing/SubscriptionPlans.js.map +2 -2
- package/dist/connection/billing/SubscriptionSetupDialog.d.ts +26 -0
- package/dist/connection/billing/SubscriptionSetupDialog.js +248 -0
- package/dist/connection/billing/SubscriptionSetupDialog.js.map +7 -0
- package/dist/connection/billing/addon-pricing.d.ts +2 -2
- package/dist/connection/billing/addon-pricing.js +2 -2
- package/dist/connection/billing/addon-pricing.js.map +1 -1
- package/dist/connection/billing/plan-pricing.d.ts +2 -2
- package/dist/connection/billing/plan-pricing.js +1 -1
- package/dist/connection/billing/plan-pricing.js.map +2 -2
- package/dist/connection/contacts/ConnectedWelcomeInvitations.js +11 -11
- package/dist/connection/contacts/ConnectedWelcomeInvitations.js.map +2 -2
- package/dist/connection/conversation/ConnectedConversationPage.js +1 -1
- package/dist/connection/conversation/ConnectedConversationPage.js.map +2 -2
- package/dist/connection/dialogs/ConnectedGlobalDialogs.js +9 -5
- package/dist/connection/dialogs/ConnectedGlobalDialogs.js.map +2 -2
- package/dist/connection/export/ConnectedExportPanel.js +1 -1
- package/dist/connection/export/ConnectedExportPanel.js.map +2 -2
- package/dist/connection/files/page/DocumentsUploadButton.js +1 -1
- package/dist/connection/files/page/DocumentsUploadButton.js.map +2 -2
- package/dist/connection/runtime/usePaymentReturn.js +62 -18
- package/dist/connection/runtime/usePaymentReturn.js.map +3 -3
- package/dist/connection/sharing/WorkspaceMembersList.js.map +1 -1
- package/dist/connection/workspace-access/ConnectedGrantWorkspaceAccessDialog.d.ts +1 -1
- package/dist/connection/workspace-access/ConnectedGrantWorkspaceAccessDialog.js.map +1 -1
- package/dist/connection/workspace-list/WorkspaceCardsView.js +1 -1
- package/dist/connection/workspace-list/WorkspaceCardsView.js.map +1 -1
- package/dist/connection/workspace-list/projectBilling.d.ts +1 -1
- package/dist/connection/workspace-list/projectBilling.js.map +1 -1
- package/dist/connection/workspace-list/useConnectedWorkspaceList.d.ts +2 -0
- package/dist/dashboards/index.cjs +24 -24
- package/dist/document-tools/index.cjs +26 -26
- package/dist/document-tools/viewer/SignatureRequestEditor.js +1 -1
- package/dist/document-tools/viewer/SignatureRequestEditor.js.map +2 -2
- package/dist/document-tools/viewer/index.cjs +12 -12
- package/dist/document-tools/viewer/index.cjs.map +1 -1
- package/dist/docx/index.cjs +40 -40
- package/dist/embed/index.cjs +34 -34
- package/dist/facts/index.cjs +46 -46
- package/dist/files/index.cjs +226 -226
- package/dist/home/index.cjs +34 -34
- package/dist/index.cjs +437 -437
- package/dist/provider/dialog-registry.d.ts +4 -0
- package/dist/provider/dialog-registry.js.map +2 -2
- package/dist/retrieval/index.cjs +6 -6
- package/dist/settings/Billing.d.ts +1 -1
- package/dist/settings/Billing.js.map +1 -1
- package/dist/settings/IdentityVerification.js +3 -3
- package/dist/settings/IdentityVerification.js.map +2 -2
- package/dist/settings/ModalScaffold.d.ts +3 -1
- package/dist/settings/ModalScaffold.js +2 -1
- package/dist/settings/ModalScaffold.js.map +2 -2
- package/dist/settings/PlanCard.d.ts +1 -1
- package/dist/settings/PlanCard.js +2 -2
- package/dist/settings/PlanCard.js.map +1 -1
- package/dist/settings/SubscriptionParts.js +1 -1
- package/dist/settings/SubscriptionParts.js.map +1 -1
- package/dist/settings/WelcomeDialog.d.ts +7 -3
- package/dist/settings/WelcomeDialog.js +194 -135
- package/dist/settings/WelcomeDialog.js.map +2 -2
- package/dist/settings/index.cjs +154 -154
- package/dist/shell/index.cjs +48 -48
- package/dist/studio/index.cjs +33 -33
- package/dist/styles.css +1 -1
- package/dist/workflow-canvas/index.cjs +51 -51
- package/dist/workspaces/WorkspaceGroup.d.ts +1 -1
- package/dist/workspaces/WorkspaceGroup.js.map +1 -1
- package/dist/workspaces/index.cjs +33 -33
- package/dist/workspaces/workspace-roles.d.ts +2 -2
- package/dist/workspaces/workspace-roles.js +1 -1
- package/dist/workspaces/workspace-roles.js.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/src/connection/billing/project-purchase.css +362 -9
- package/dist/ConnectedMailInviteCard-EINB3THA.cjs +0 -22
- package/dist/ai-4XJ2VFNS.cjs.map +0 -1
- package/dist/chunk-JDFBEGQO.cjs.map +0 -1
- package/dist/chunk-ORELHENJ.cjs.map +0 -1
- package/dist/chunk-QECKDZ47.cjs.map +0 -1
- package/dist/chunk-TBPCG2PV.cjs.map +0 -1
- package/dist/chunk-TDA6KESI.cjs +0 -18
- package/dist/chunk-ULWRNGGE.cjs.map +0 -1
- package/dist/chunk-XJE7W42L.cjs.map +0 -1
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
.project-purchase-inclusions {
|
|
45
45
|
display: grid;
|
|
46
46
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
47
|
-
grid-template-rows: repeat(
|
|
47
|
+
grid-template-rows: repeat(4, auto);
|
|
48
48
|
row-gap: 4px;
|
|
49
49
|
padding: 10px 4px;
|
|
50
50
|
}
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
display: grid;
|
|
89
89
|
grid-template-columns: minmax(0, 1fr);
|
|
90
90
|
grid-template-rows: subgrid;
|
|
91
|
-
grid-row: 1 / span
|
|
91
|
+
grid-row: 1 / span 4;
|
|
92
92
|
justify-content: center;
|
|
93
93
|
align-content: stretch;
|
|
94
94
|
align-items: center;
|
|
@@ -586,8 +586,27 @@ details[open] > .project-purchase-adjust .project-purchase-adjust-label svg {
|
|
|
586
586
|
font-size: 22px;
|
|
587
587
|
line-height: 28px;
|
|
588
588
|
}
|
|
589
|
+
.project-purchase-inclusions dd.project-purchase-allowance-note,
|
|
590
|
+
.welcome-flow-dialog .project-purchase-inclusions dd.project-purchase-allowance-note {
|
|
591
|
+
grid-row: 4;
|
|
592
|
+
display: flex;
|
|
593
|
+
align-items: center;
|
|
594
|
+
justify-content: center;
|
|
595
|
+
gap: 3px;
|
|
596
|
+
color: hsl(var(--muted-foreground));
|
|
597
|
+
font-size: 12px;
|
|
598
|
+
line-height: 16px;
|
|
599
|
+
}
|
|
600
|
+
.project-purchase-allowance-note svg {
|
|
601
|
+
width: 12px;
|
|
602
|
+
height: 12px;
|
|
603
|
+
flex-shrink: 0;
|
|
604
|
+
color: #166534;
|
|
605
|
+
stroke-width: 2.5;
|
|
606
|
+
}
|
|
589
607
|
.project-purchase-inclusions dd.project-purchase-current,
|
|
590
608
|
.welcome-flow-dialog .project-purchase-inclusions dd.project-purchase-current {
|
|
609
|
+
grid-row: 3;
|
|
591
610
|
grid-column: 1 / -1;
|
|
592
611
|
font-size: 12px;
|
|
593
612
|
line-height: 16px;
|
|
@@ -598,7 +617,27 @@ details[open] > .project-purchase-adjust .project-purchase-adjust-label svg {
|
|
|
598
617
|
color: #166534;
|
|
599
618
|
font-weight: 600;
|
|
600
619
|
}
|
|
620
|
+
@media (max-width: 480px) {
|
|
621
|
+
.project-purchase-inclusions dd.project-purchase-allowance-note,
|
|
622
|
+
.welcome-flow-dialog .project-purchase-inclusions dd.project-purchase-allowance-note {
|
|
623
|
+
flex-direction: column;
|
|
624
|
+
align-self: stretch;
|
|
625
|
+
justify-content: flex-start;
|
|
626
|
+
gap: 2px;
|
|
627
|
+
}
|
|
628
|
+
.project-purchase-allowance-note > span {
|
|
629
|
+
width: 100%;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
601
632
|
@media (max-width: 360px) {
|
|
633
|
+
.project-purchase-inclusions > div {
|
|
634
|
+
padding-inline: 3px;
|
|
635
|
+
}
|
|
636
|
+
.project-purchase-inclusions dd.project-purchase-allowance-note,
|
|
637
|
+
.welcome-flow-dialog .project-purchase-inclusions dd.project-purchase-allowance-note {
|
|
638
|
+
font-size: 11px;
|
|
639
|
+
line-height: 15px;
|
|
640
|
+
}
|
|
602
641
|
.welcome-flow-dialog .project-purchase-inclusions dt {
|
|
603
642
|
font-size: 12px;
|
|
604
643
|
line-height: 18px;
|
|
@@ -878,10 +917,14 @@ details[open] > .project-purchase-adjust .project-purchase-adjust-label svg {
|
|
|
878
917
|
.welcome-referral-line strong {
|
|
879
918
|
color: #166534;
|
|
880
919
|
}
|
|
920
|
+
.welcome-referral-offer {
|
|
921
|
+
display: block;
|
|
922
|
+
white-space: normal;
|
|
923
|
+
}
|
|
881
924
|
@media (max-width: 480px) {
|
|
882
925
|
.welcome-referral-line { font-size: 13px; gap: 3px; }
|
|
883
|
-
.welcome-referral-line:first-child > span { font-size: 0; }
|
|
884
|
-
.welcome-referral-line:first-child > span::after { content: 'Rewards'; font-size: 13px; }
|
|
926
|
+
.welcome-referral-line:not(.welcome-referral-offer):first-child > span { font-size: 0; }
|
|
927
|
+
.welcome-referral-line:not(.welcome-referral-offer):first-child > span::after { content: 'Rewards'; font-size: 13px; }
|
|
885
928
|
}
|
|
886
929
|
|
|
887
930
|
.welcome-invitations { display: grid; gap: 16px; }
|
|
@@ -913,15 +956,21 @@ details[open] > .project-purchase-adjust .project-purchase-adjust-label svg {
|
|
|
913
956
|
|
|
914
957
|
.welcome-invite-button { height: 36px; padding: 0 10px; white-space: nowrap; }
|
|
915
958
|
@media (max-width: 480px) {
|
|
916
|
-
.welcome-referral-card {
|
|
959
|
+
.welcome-referral-card {
|
|
960
|
+
display: grid;
|
|
961
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
962
|
+
gap: 6px 8px;
|
|
963
|
+
padding: 10px;
|
|
964
|
+
}
|
|
965
|
+
.welcome-referral-copy { display: contents; }
|
|
966
|
+
.welcome-referral-offer { grid-column: 1 / -1; grid-row: 2; }
|
|
967
|
+
.welcome-referral-card .welcome-invite-button { grid-column: 2; grid-row: 1; }
|
|
917
968
|
.welcome-invite-button { width: auto; padding: 0 8px; font-size: 13px; }
|
|
918
|
-
.welcome-referral-prefix { display:
|
|
919
|
-
.welcome-referral-after { font-size: 0; }
|
|
920
|
-
.welcome-referral-after::after { content: 'per Pro'; font-size: 13px; }
|
|
969
|
+
.welcome-referral-prefix { display: inline; }
|
|
921
970
|
}
|
|
922
971
|
.welcome-referral-card .welcome-invite-button { font-size: 14px; }
|
|
923
972
|
.welcome-referral-line strong { flex-shrink: 0; }
|
|
924
|
-
.welcome-referral-line:first-child > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
973
|
+
.welcome-referral-line:not(.welcome-referral-offer):first-child > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
925
974
|
@media (max-width: 480px) {
|
|
926
975
|
.welcome-referral-card .welcome-invite-button { padding: 0 6px; gap: 4px; font-size: 13px; }
|
|
927
976
|
.welcome-referral-card .welcome-invite-button svg { width: 14px; height: 14px; }
|
|
@@ -930,3 +979,307 @@ details[open] > .project-purchase-adjust .project-purchase-adjust-label svg {
|
|
|
930
979
|
|
|
931
980
|
.welcome-invitation-totals { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid hsl(var(--border)); font-size: 14px; line-height: 20px; }
|
|
932
981
|
.welcome-invitation-totals strong { margin-left: 4px; color: #166534; font-variant-numeric: tabular-nums; }
|
|
982
|
+
|
|
983
|
+
/* The initial decision is always Free versus one selected Pro billing interval. */
|
|
984
|
+
.subscription-start .project-purchase-prices {
|
|
985
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
986
|
+
}
|
|
987
|
+
.subscription-start .project-purchase-price-free { grid-column: auto; }
|
|
988
|
+
.subscription-start .project-purchase-free-allowances { flex-direction: column; align-items: flex-start; gap: 4px; }
|
|
989
|
+
.subscription-start .project-purchase-prices .project-purchase-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
|
|
990
|
+
.subscription-start .project-purchase-price-free .project-purchase-total { margin-top: auto; }
|
|
991
|
+
.subscription-inclusions-heading { padding: 10px 10px 0; text-align: center; font-size: 14px; font-weight: 600; }
|
|
992
|
+
.subscription-period-toggle { align-self: center; width: fit-content; margin-inline: auto; }
|
|
993
|
+
.subscription-period-saving { display: inline-block; margin-left: 4px; padding: 1px 5px; border-radius: 4px; background: #dcfce7; color: #166534; font-size: 11px; white-space: nowrap; }
|
|
994
|
+
@media (max-width: 480px) {
|
|
995
|
+
.subscription-start .project-purchase-price { padding: 12px 10px; }
|
|
996
|
+
.subscription-start .project-purchase-price-heading { font-size: 14px; }
|
|
997
|
+
.subscription-start .project-purchase-amount { font-size: 26px; }
|
|
998
|
+
.subscription-start .project-purchase-prices .project-purchase-total { display: flex; flex-direction: column; align-items: flex-start; }
|
|
999
|
+
.subscription-start .project-purchase-total .project-purchase-due { white-space: normal; }
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
/* On phones each choice needs room for promo, credit and due-now figures. */
|
|
1003
|
+
@media (max-width: 600px) {
|
|
1004
|
+
.subscription-start .project-purchase-prices { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
|
|
1005
|
+
.subscription-start .project-purchase-prices > .project-purchase-price { grid-template-rows: auto auto auto; grid-row: auto; gap: 8px; }
|
|
1006
|
+
.subscription-start .project-purchase-free-allowances { flex-direction: row; gap: 4px 12px; margin-block: 0; }
|
|
1007
|
+
.subscription-start .project-purchase-price-free { grid-template-columns: minmax(0, 1fr) auto; }
|
|
1008
|
+
.subscription-start .project-purchase-price-free > .project-purchase-price-heading { grid-column: 1 / -1; }
|
|
1009
|
+
.subscription-start .project-purchase-price-free > .project-purchase-total { grid-column: 2; grid-row: 2; align-self: center; }
|
|
1010
|
+
.subscription-start .project-purchase-price-free .project-purchase-due { display: none; }
|
|
1011
|
+
.subscription-start .project-purchase-prices .project-purchase-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; }
|
|
1012
|
+
.subscription-start .project-purchase-price-free .project-purchase-amount { font-size: 22px; }
|
|
1013
|
+
.subscription-start .project-purchase-renewal { text-align: left; }
|
|
1014
|
+
.subscription-start .project-purchase-credit > span > span:last-child { flex-shrink: 0; }
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
/* Compact controls and included benefits within the subscription cards. */
|
|
1018
|
+
.subscription-purchase-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
|
|
1019
|
+
.subscription-purchase-controls .project-purchase-setting-toggle { flex: 1; width: auto; }
|
|
1020
|
+
.subscription-purchase-controls .subscription-period-toggle { flex-shrink: 0; margin: 0; }
|
|
1021
|
+
.subscription-purchase-controls .subscription-period-toggle button { min-width: 0; height: 28px; padding-inline: 8px; font-size: 13px; }
|
|
1022
|
+
.subscription-card-inclusions { display: flex; flex-direction: column; gap: 7px; width: 100%; font-size: 14px; line-height: 20px; }
|
|
1023
|
+
.subscription-card-benefit { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 5px; }
|
|
1024
|
+
.subscription-card-benefit > span { display: inline-flex; align-items: center; gap: 5px; }
|
|
1025
|
+
.subscription-card-inclusions svg { width: 14px; height: 14px; flex-shrink: 0; }
|
|
1026
|
+
.subscription-card-benefit small { font-size: 11px; line-height: 16px; color: #dcfce7; font-weight: 600; }
|
|
1027
|
+
.subscription-card-unlimited { display: flex; align-items: baseline; gap: 4px; color: #dcfce7; font-size: 12px; line-height: 17px; }
|
|
1028
|
+
.subscription-card-unlimited svg { align-self: flex-start; margin-top: 2px; }
|
|
1029
|
+
@media (max-width: 480px) {
|
|
1030
|
+
.subscription-purchase-controls { gap: 8px; flex-wrap: wrap; }
|
|
1031
|
+
.subscription-purchase-controls .project-purchase-setting-toggle { font-size: 13px; }
|
|
1032
|
+
.subscription-purchase-controls .subscription-period-toggle button { padding-inline: 5px; font-size: 12px; }
|
|
1033
|
+
}
|
|
1034
|
+
.subscription-start .project-purchase-price:not(.project-purchase-price-free) { background: white; color: hsl(var(--foreground)); border-color: hsl(var(--secondary)); }
|
|
1035
|
+
.subscription-start .project-purchase-select { background: hsl(var(--secondary)); border-color: hsl(var(--secondary)); color: white; }
|
|
1036
|
+
.subscription-start .project-purchase-price:hover:not(:disabled) .project-purchase-select { background: hsl(var(--secondary)); }
|
|
1037
|
+
.subscription-start .subscription-card-inclusions svg { color: hsl(var(--secondary)); }
|
|
1038
|
+
.subscription-start .subscription-card-benefit small, .subscription-start .subscription-card-unlimited { color: #166534; }
|
|
1039
|
+
.subscription-start .subscription-card-unlimited svg { color: #166534; }
|
|
1040
|
+
.subscription-start .project-purchase-credit { border-bottom-color: hsl(var(--border)); }
|
|
1041
|
+
.subscription-purchase-controls .project-purchase-setting-toggle { white-space: nowrap; min-width: max-content; }
|
|
1042
|
+
|
|
1043
|
+
/* Live Free usage and Pro allowances share the same comparison rows. */
|
|
1044
|
+
.subscription-current-usage, .subscription-card-inclusions { display: grid; grid-template-rows: repeat(3, 44px) auto; gap: 7px; width: 100%; }
|
|
1045
|
+
.subscription-card-benefit { align-content: start; align-self: start; min-height: 44px; }
|
|
1046
|
+
.subscription-free-action { min-height: 36px; padding: 7px 10px; border: 1px solid transparent; border-radius: 6px; color: hsl(var(--foreground)); text-align: left; cursor: pointer; }
|
|
1047
|
+
.subscription-start .subscription-free-total { display: flex; justify-content: flex-end; align-self: end; }
|
|
1048
|
+
.subscription-free-name { font-size: 18px; font-weight: 600; line-height: 26px; }
|
|
1049
|
+
.subscription-start .project-purchase-price button:disabled { opacity: .5; cursor: not-allowed; }
|
|
1050
|
+
.subscription-promo-trigger { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0; text-align: left; font-size: 14px; }
|
|
1051
|
+
.subscription-promo-trigger svg { color: hsl(var(--secondary)); }
|
|
1052
|
+
.subscription-promo-inline { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; }
|
|
1053
|
+
.subscription-promo-inline input { min-width: 0; width: 100%; height: 36px; }
|
|
1054
|
+
.subscription-promo-inline button { height: 36px; flex-shrink: 0; padding-inline: 12px; }
|
|
1055
|
+
.subscription-purchase-controls { min-height: 38px; }
|
|
1056
|
+
@media (max-width: 600px) {
|
|
1057
|
+
.subscription-start .project-purchase-price-free { grid-template-columns: minmax(0, 1fr); }
|
|
1058
|
+
.subscription-start .project-purchase-price-free > .project-purchase-total { grid-column: 1; grid-row: auto; }
|
|
1059
|
+
.subscription-start .project-purchase-price-free > .project-purchase-details { grid-column: 1; }
|
|
1060
|
+
}
|
|
1061
|
+
@media (max-width: 480px) {
|
|
1062
|
+
.subscription-promo-inline { flex-basis: 100%; }
|
|
1063
|
+
.subscription-purchase-controls .subscription-period-toggle { margin-left: auto; }
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
/* Identical primary typography; comparisons occupy the line below each Pro allowance. */
|
|
1067
|
+
.subscription-current-usage > .font-semibold, .subscription-card-inclusions > .font-semibold { font-size: 16px; line-height: 22px; font-weight: 600; }
|
|
1068
|
+
.subscription-current-usage .text-sm, .subscription-allowance-line { font-size: 16px; line-height: 22px; font-weight: 400; }
|
|
1069
|
+
.subscription-card-benefit { display: block; }
|
|
1070
|
+
.subscription-card-benefit > .subscription-allowance-line { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 10px; }
|
|
1071
|
+
.subscription-allowance-label { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: hsl(var(--muted-foreground)); }
|
|
1072
|
+
.subscription-allowance-value { flex-shrink: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
|
|
1073
|
+
.subscription-card-benefit small { display: block; margin-top: 3px; margin-left: 20px; font-size: 12px; line-height: 18px; font-weight: 500; }
|
|
1074
|
+
.subscription-current-usage svg { color: hsl(var(--secondary)); }
|
|
1075
|
+
.subscription-start .project-purchase-price-heading { font-size: 16px; line-height: 22px; font-weight: 600; }
|
|
1076
|
+
.subscription-start .project-purchase-period { font: inherit; }
|
|
1077
|
+
.subscription-free-benefits { display: grid; gap: 7px; }
|
|
1078
|
+
.welcome-greeting-summary { font-size: 16px; font-weight: 400; line-height: 24px; }
|
|
1079
|
+
.welcome-greeting-balance { white-space: nowrap; }
|
|
1080
|
+
.welcome-greeting-balance strong { color: #166534; font-weight: 600; }
|
|
1081
|
+
.welcome-referral-offer-icon { display: inline-block; width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; color: #16a34a; }
|
|
1082
|
+
.welcome-referral-card-compact .welcome-referral-copy { display: block; flex: 1; min-width: 0; }
|
|
1083
|
+
@media (max-width: 600px) {
|
|
1084
|
+
.welcome-greeting-column { flex-basis: 100%; }
|
|
1085
|
+
.welcome-referral-card-compact { display: flex; align-items: center; gap: 8px; }
|
|
1086
|
+
}
|
|
1087
|
+
.welcome-greeting-summary strong { font-weight: 700; }
|
|
1088
|
+
.subscription-card-unlimited svg { width: 14px; height: 14px; flex-shrink: 0; }
|
|
1089
|
+
.subscription-promo-inline .subscription-promo-applied { display: inline-flex; gap: 5px; background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; white-space: nowrap; }
|
|
1090
|
+
.welcome-greeting-line, .welcome-greeting-summary .welcome-greeting-balance { display: block; }
|
|
1091
|
+
|
|
1092
|
+
/* Activation uses the same white cards, cyan accents and type scale as plan selection. */
|
|
1093
|
+
.subscription-setup-modal [data-slot="modal-header"] { padding-bottom: 20px; }
|
|
1094
|
+
.subscription-setup-modal [data-slot="dialog-title"] { font-size: 20px; line-height: 28px; }
|
|
1095
|
+
.subscription-setup-success { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #dcfce7; color: #166534; flex-shrink: 0; }
|
|
1096
|
+
.subscription-setup-name { display: flex; align-items: center; gap: 16px; }
|
|
1097
|
+
.subscription-setup-name label { flex-shrink: 0; font-size: 14px; }
|
|
1098
|
+
.subscription-setup-name input { flex: 1; min-width: 0; }
|
|
1099
|
+
.subscription-setup-card { border: 1px solid hsl(var(--border)); border-radius: 10px; padding: 16px; display: grid; gap: 12px; }
|
|
1100
|
+
.subscription-setup-auto { border-color: hsl(var(--secondary)); }
|
|
1101
|
+
.subscription-setup-card h3 { font-size: 16px; line-height: 22px; }
|
|
1102
|
+
.subscription-setup-card label { font-size: 14px; }
|
|
1103
|
+
.subscription-setup-hint { color: hsl(var(--muted-foreground)); font-size: 13px; line-height: 19px; }
|
|
1104
|
+
.subscription-setup-auto .project-purchase-ceiling-intro { font-size: 14px; line-height: 20px; }
|
|
1105
|
+
.subscription-setup-auto .project-purchase-auto-summary { gap: 12px; }
|
|
1106
|
+
.subscription-setup-auto .project-purchase-ceiling-columns { align-items: center; padding: 0; }
|
|
1107
|
+
.subscription-setup-auto .project-purchase-ceiling-unit { font-size: 13px; }
|
|
1108
|
+
.subscription-setup-auto .project-purchase-max-stepper button { width: 32px; height: 32px; }
|
|
1109
|
+
.subscription-setup-daily { display: flex; gap: 8px; align-items: center; }
|
|
1110
|
+
.subscription-setup-daily > span { margin-right: auto; }
|
|
1111
|
+
.subscription-setup-daily input { width: 112px; flex: 0 1 112px; }
|
|
1112
|
+
.subscription-setup-daily button:not([role="checkbox"]) { flex-shrink: 0; width: 32px; height: 32px; }
|
|
1113
|
+
.subscription-setup-adjust { display: block; }
|
|
1114
|
+
.subscription-setup-adjust summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 16px; font-weight: 600; list-style: none; }
|
|
1115
|
+
.subscription-setup-adjust summary::-webkit-details-marker { display: none; }
|
|
1116
|
+
.subscription-setup-adjust[open] summary > svg { transform: rotate(180deg); }
|
|
1117
|
+
.subscription-setup-confirm { background: hsl(var(--secondary)); color: white; min-width: 160px; }
|
|
1118
|
+
.subscription-setup-confirm:hover { background: hsl(var(--secondary) / .9); }
|
|
1119
|
+
@media (max-width: 480px) {
|
|
1120
|
+
.subscription-setup-card { padding: 12px; }
|
|
1121
|
+
.subscription-setup-auto > div:first-child { flex-wrap: wrap; gap: 8px; }
|
|
1122
|
+
.subscription-setup-auto .project-purchase-ceiling-unit { display: block; }
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
.subscription-setup-auto .project-purchase-ceiling-intro { display: none; }
|
|
1126
|
+
.subscription-setup-auto .project-purchase-auto-summary { gap: 0; }
|
|
1127
|
+
.subscription-setup-auto .project-purchase-ceiling-columns { row-gap: 4px; }
|
|
1128
|
+
.subscription-setup-collaborator { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
|
|
1129
|
+
.subscription-setup-collaborator h3 { font-size: 14px; white-space: nowrap; }
|
|
1130
|
+
.subscription-setup-collaborator label { white-space: nowrap; font-size: 13px; }
|
|
1131
|
+
.subscription-setup-collaborator input { width: 90px; height: 32px; flex-basis: 90px; }
|
|
1132
|
+
@media (max-width: 600px) {
|
|
1133
|
+
.subscription-setup-collaborator { flex-wrap: wrap; }
|
|
1134
|
+
.subscription-setup-daily { width: 100%; }
|
|
1135
|
+
.subscription-setup-daily label { margin-left: auto; }
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
.subscription-setup-daily [role="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; }
|
|
1139
|
+
.subscription-setup-modal [data-slot="modal-scroll"] > [data-slot="modal-footer"] { margin-top: 20px; }
|
|
1140
|
+
.subscription-setup-adjust .manual-subscription-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
|
|
1141
|
+
.subscription-setup-adjust .manual-subscription-value { display: flex; align-items: center; gap: 10px; font-size: 16px; }
|
|
1142
|
+
.subscription-setup-adjust .manual-subscription-value > svg { color: hsl(var(--secondary)); width: 16px; height: 16px; }
|
|
1143
|
+
.subscription-setup-adjust .manual-subscription-value p { display: inline; font-size: 16px; font-weight: 400; }
|
|
1144
|
+
.subscription-setup-adjust .manual-subscription-value p + p { margin-left: 12px; font-weight: 600; }
|
|
1145
|
+
.subscription-setup-adjust :is(.manual-subscription-row, .collaborator-plan-compact-row) > .flex.gap-2 button { width: 32px; height: 32px; }
|
|
1146
|
+
|
|
1147
|
+
.subscription-setup-adjust .manual-collaborator-row { display: flex; align-items: center; gap: 10px; }
|
|
1148
|
+
.subscription-setup-adjust .manual-collaborator-row > svg { color: hsl(var(--secondary)); width: 16px; height: 16px; flex-shrink: 0; }
|
|
1149
|
+
.subscription-setup-adjust .manual-collaborator-row > div { flex: 1; min-width: 0; }
|
|
1150
|
+
.subscription-setup-adjust .manual-collaborator-row p { display: inline; font-size: 16px; line-height: 22px; font-weight: 400; }
|
|
1151
|
+
.subscription-setup-adjust .manual-collaborator-row p + p { margin-left: 12px; font-weight: 600; }
|
|
1152
|
+
.subscription-setup-adjust .manual-collaborator-row button { width: 32px; height: 32px; }
|
|
1153
|
+
@media (max-width: 380px) {
|
|
1154
|
+
.subscription-setup-daily { gap: 5px; }
|
|
1155
|
+
.subscription-setup-collaborator input { width: 68px; flex-basis: 68px; font-size: 13px; padding-inline: 4px; }
|
|
1156
|
+
.subscription-setup-collaborator label { gap: 5px; font-size: 12px; }
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
.subscription-adjust-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
|
|
1160
|
+
.subscription-adjust-heading h3 { font-size: 16px; font-weight: 600; }
|
|
1161
|
+
.subscription-adjust-heading > span { width: 72px; text-align: center; color: hsl(var(--muted-foreground)); font-size: 13px; }
|
|
1162
|
+
.subscription-setup-adjust :is(.manual-subscription-row, .collaborator-plan-compact-row) > .flex.gap-2 { flex-shrink: 0; width: 72px; }
|
|
1163
|
+
.subscription-setup-adjust [data-testid^="subscription-usage-"] { flex: 1; min-width: 0; }
|
|
1164
|
+
.subscription-setup-adjust [data-testid^="subscription-usage-"] svg { color: hsl(var(--secondary)); }
|
|
1165
|
+
.subscription-setup-adjust [data-testid^="subscription-usage-"] .text-sm { font-size: 16px; line-height: 22px; }
|
|
1166
|
+
.subscription-setup-adjust [data-testid^="subscription-usage-"] button { width: 32px; height: 32px; }
|
|
1167
|
+
@media (max-width: 480px) {
|
|
1168
|
+
.subscription-setup-adjust [data-testid^="subscription-usage-"] .text-sm { font-size: 12px; line-height: 18px; gap: 4px; }
|
|
1169
|
+
.subscription-setup-adjust [data-testid^="subscription-usage-"] .truncate { white-space: normal; }
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
.subscription-adjust-column-label { width: 72px; margin-left: auto; text-align: center; font-size: 13px; color: hsl(var(--muted-foreground)); margin-bottom: -8px; }
|
|
1173
|
+
.subscription-setup-adjust [data-testid="change-pro-plan"] { padding-block: 8px; border-block: 1px solid hsl(var(--border)); }
|
|
1174
|
+
|
|
1175
|
+
/* One native button per plan, with its click target stretched over the whole card. */
|
|
1176
|
+
.subscription-start .project-purchase-price > .project-purchase-price-heading::after {
|
|
1177
|
+
content: "";
|
|
1178
|
+
position: absolute;
|
|
1179
|
+
inset: 0;
|
|
1180
|
+
z-index: 1;
|
|
1181
|
+
border-radius: 10px;
|
|
1182
|
+
cursor: pointer;
|
|
1183
|
+
}
|
|
1184
|
+
.subscription-start .project-purchase-price > .project-purchase-price-heading:disabled::after { cursor: default; }
|
|
1185
|
+
.subscription-start .project-purchase-price:has(> .project-purchase-price-heading:focus-visible) { outline: 2px solid hsl(var(--ring)); outline-offset: 3px; }
|
|
1186
|
+
|
|
1187
|
+
.subscription-inline-editor { display: grid; gap: 12px; }
|
|
1188
|
+
.subscription-edit-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 160px; }
|
|
1189
|
+
.subscription-inline-editor .subscription-adjust-column-label { margin-bottom: -8px; }
|
|
1190
|
+
.subscription-inline-editor .subscription-adjust-controls { width: 72px; flex-shrink: 0; }
|
|
1191
|
+
.subscription-edit-total { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid hsl(var(--border)); padding-top: 10px; font-size: 14px; }
|
|
1192
|
+
.subscription-edit-total strong { font-size: 18px; }
|
|
1193
|
+
@media (max-width: 480px) {
|
|
1194
|
+
.subscription-edit-actions { min-width: 0; }
|
|
1195
|
+
.subscription-edit-actions button { padding-inline: 8px; font-size: 12px; }
|
|
1196
|
+
.subscription-inline-editor .subscription-adjust-heading h3 { font-size: 14px; }
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
.subscription-edit-inline-price { font-size: 13px; line-height: 18px; white-space: nowrap; }
|
|
1200
|
+
.subscription-edit-inline-price strong { font-size: 16px; }
|
|
1201
|
+
.subscription-edit-explanation { min-height: 19px; white-space: nowrap; font-size: 12px; }
|
|
1202
|
+
.subscription-inline-editor [data-slot="usage-meter-bar"] { height: 6px; }
|
|
1203
|
+
.subscription-inline-editor [data-slot="usage-meter-topups"] { background: hsl(var(--secondary) / .2); }
|
|
1204
|
+
.subscription-inline-editor [data-slot="usage-meter-step"] { background: hsl(var(--secondary)); }
|
|
1205
|
+
.subscription-inline-editor .subscription-adjust-heading > div:first-child { flex-shrink: 0; }
|
|
1206
|
+
@media (max-width: 600px) {
|
|
1207
|
+
.subscription-inline-editor .subscription-adjust-heading { display: grid; grid-template-columns: 1fr; gap: 6px; }
|
|
1208
|
+
.subscription-inline-editor .subscription-edit-actions { min-height: 36px; width: 100%; }
|
|
1209
|
+
.subscription-edit-inline-price { margin-right: auto; font-size: 11px; }
|
|
1210
|
+
.subscription-edit-inline-price strong { font-size: 13px; }
|
|
1211
|
+
.subscription-edit-explanation { font-size: 11px; }
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
.subscription-billing-row { display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
|
|
1215
|
+
.subscription-billing-row [role="group"] { display: inline-flex; gap: 2px; border: 1px solid hsl(var(--border)); padding: 2px; border-radius: 6px; }
|
|
1216
|
+
.subscription-billing-row [role="radio"] { min-height: 26px; height: 26px; padding-inline: 12px; font-size: 13px; }
|
|
1217
|
+
.subscription-edit-actions { min-height: 40px; }
|
|
1218
|
+
.subscription-setup-name > button[role="combobox"] { flex: 1; width: auto; min-width: 0; }
|
|
1219
|
+
@media (max-width: 600px) {
|
|
1220
|
+
.subscription-edit-inline-price { white-space: normal; min-width: 0; }
|
|
1221
|
+
.subscription-edit-inline-price > span { white-space: nowrap; }
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
.subscription-inline-editor [data-testid^="subscription-usage-"] .text-sm > span:first-child { font-weight: 400; color: hsl(var(--muted-foreground)); }
|
|
1225
|
+
|
|
1226
|
+
@media (max-width: 600px) {
|
|
1227
|
+
.subscription-inline-editor .subscription-edit-actions { height: 40px; min-height: 40px; }
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
.subscription-setup-auto .project-purchase-ceiling-columns-single { grid-template-columns: minmax(0, 1fr) auto; }
|
|
1231
|
+
|
|
1232
|
+
.subscription-cycle-dates { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 18px; color: hsl(var(--muted-foreground)); }
|
|
1233
|
+
.subscription-cycle-dates strong { font-weight: 500; color: hsl(var(--foreground)); }
|
|
1234
|
+
.subscription-billing-row label { font-size: 13px; }
|
|
1235
|
+
@media (max-width: 480px) { .subscription-cycle-dates { flex-direction: column; gap: 2px; } .subscription-billing-row label { font-size: 12px; } }
|
|
1236
|
+
@media (max-width: 480px) {
|
|
1237
|
+
.subscription-billing-row { display: grid; grid-template-columns: 1fr; align-content: center; gap: 4px; min-height: 60px; }
|
|
1238
|
+
.subscription-billing-row > div { justify-self: end; }
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
.subscription-renewal-actions { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
|
|
1242
|
+
.subscription-cancel-action { padding: 0; height: auto; color: hsl(var(--destructive)); font-size: 12px; line-height: 18px; }
|
|
1243
|
+
.subscription-cancel-action:hover { color: hsl(var(--destructive)); }
|
|
1244
|
+
|
|
1245
|
+
.subscription-renewal-icon { width: 20px; height: 20px; min-height: 20px; padding: 2px; color: hsl(var(--muted-foreground)); }
|
|
1246
|
+
.subscription-renewal-icon:hover { color: hsl(var(--destructive)); background: hsl(var(--muted)); }
|
|
1247
|
+
|
|
1248
|
+
/* Compact subscription setup: one identity row, dates, then the actual usage. */
|
|
1249
|
+
.subscription-setup-modal [data-slot="modal-scroll"] { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; }
|
|
1250
|
+
.subscription-setup-modal [data-slot="modal-scroll"] > :not([data-slot="modal-footer"]) { margin-block: 0; flex-shrink: 0; }
|
|
1251
|
+
.subscription-setup-modal [data-slot="modal-scroll"] > [data-slot="modal-footer"] { margin-top: 0; flex-shrink: 0; }
|
|
1252
|
+
.subscription-setup-name { padding-right: 28px; }
|
|
1253
|
+
.subscription-setup-card { padding: 12px; gap: 8px; }
|
|
1254
|
+
.subscription-inline-editor { position: relative; gap: 10px; padding-bottom: 20px; }
|
|
1255
|
+
.subscription-inline-editor .subscription-adjust-heading { display: flex; min-height: 36px; }
|
|
1256
|
+
.subscription-inline-editor .subscription-title-and-period { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-width: 0; flex-shrink: 1 !important; }
|
|
1257
|
+
.subscription-title-and-period h3 { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; white-space: nowrap; }
|
|
1258
|
+
.subscription-title-and-period [role="radio"] { height: 28px; min-height: 28px; padding-inline: 9px; font-size: 12px; }
|
|
1259
|
+
.subscription-inline-editor .subscription-edit-actions { min-width: 0; height: 36px; min-height: 36px; }
|
|
1260
|
+
.subscription-edit-pencil { width: 28px; height: 28px; padding: 5px; color: hsl(var(--muted-foreground)); }
|
|
1261
|
+
.subscription-inline-editor .subscription-cycle-dates { display: grid; grid-template-columns: minmax(0, 1fr) auto 72px; gap: 8px; }
|
|
1262
|
+
.subscription-cycle-dates > .subscription-adjust-column-label { margin: 0; font-size: 11px; }
|
|
1263
|
+
.subscription-inline-editor .subscription-edit-explanation { position: absolute; bottom: -1px; left: 0; right: 0; margin: 0; }
|
|
1264
|
+
@media (max-width: 600px) {
|
|
1265
|
+
.subscription-inline-editor .subscription-adjust-heading { flex-wrap: wrap; gap: 4px; }
|
|
1266
|
+
.subscription-inline-editor .subscription-edit-actions { width: auto; margin-left: auto; }
|
|
1267
|
+
.subscription-inline-editor .subscription-cycle-dates { display: flex; flex-direction: column; gap: 2px; }
|
|
1268
|
+
.subscription-cycle-dates > .subscription-adjust-column-label { display: none; }
|
|
1269
|
+
.subscription-edit-inline-price { max-width: 120px; }
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
.subscription-setup-modal [data-slot="modal-footer"] { position: static; }
|
|
1273
|
+
|
|
1274
|
+
.subscription-title-and-period .subscription-period-toggle { margin: 0; }
|
|
1275
|
+
.subscription-title-and-period .subscription-period-toggle button { min-width: 0; padding-inline: 6px; font-size: 12px; }
|
|
1276
|
+
.subscription-edit-inline-price { font-size: 12px; }
|
|
1277
|
+
.subscription-edit-inline-price strong { font-size: 14px; }
|
|
1278
|
+
.subscription-inline-editor .subscription-title-and-period { column-gap: 6px; }
|
|
1279
|
+
.subscription-inline-editor .subscription-adjust-heading { min-height: 40px; gap: 8px; }
|
|
1280
|
+
.subscription-inline-editor .subscription-edit-actions { height: 40px; min-height: 40px; }
|
|
1281
|
+
.subscription-edit-inline-price { max-width: 145px; white-space: normal; }
|
|
1282
|
+
@media (max-width: 600px) {
|
|
1283
|
+
.subscription-inline-editor .subscription-adjust-heading { gap: 4px; }
|
|
1284
|
+
.subscription-edit-inline-price { max-width: 120px; }
|
|
1285
|
+
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
var chunkVWTOIGX4_cjs = require('./chunk-VWTOIGX4.cjs');
|
|
5
|
-
require('./chunk-4M3OIBIS.cjs');
|
|
6
|
-
require('./chunk-6U3CYVZC.cjs');
|
|
7
|
-
require('./chunk-QUMUAJ2P.cjs');
|
|
8
|
-
require('./chunk-ZKKSTMMI.cjs');
|
|
9
|
-
require('./chunk-VZOOGA47.cjs');
|
|
10
|
-
require('./chunk-TKHCIHE2.cjs');
|
|
11
|
-
require('./chunk-JDFBEGQO.cjs');
|
|
12
|
-
require('./chunk-ULWRNGGE.cjs');
|
|
13
|
-
require('./chunk-PLIF5CUV.cjs');
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
Object.defineProperty(exports, "ConnectedMailInviteCard", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () { return chunkVWTOIGX4_cjs.ConnectedMailInviteCard; }
|
|
20
|
-
});
|
|
21
|
-
//# sourceMappingURL=ConnectedMailInviteCard-EINB3THA.cjs.map
|
|
22
|
-
//# sourceMappingURL=ConnectedMailInviteCard-EINB3THA.cjs.map
|
package/dist/ai-4XJ2VFNS.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"ai-4XJ2VFNS.cjs"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/provider/dialog-registry.ts","../src/provider/dialogs.tsx"],"names":["useSyncExternalStore","useMemo","useRef","jsxs","ModalScaffold","jsx","AlertTriangle","testIdOr","Button","open","useState","Info","AlertCircle"],"mappings":";;;;;;;;;AA+FA,IAAI,OAAoB,EAAC;AACzB,IAAM,SAAA,uBAAgB,GAAA,EAAgB;AACtC,IAAM,cAAA,uBAAqB,GAAA,EAAgB;AAGpC,SAAS,sBAAsB,OAAA,EAAiC;AACrE,EAAA,cAAA,CAAe,IAAI,OAAO,CAAA;AAC1B,EAAA,OAAO,MAAM;AACX,IAAA,cAAA,CAAe,OAAO,OAAO,CAAA;AAAA,EAC/B,CAAA;AACF;AAEA,SAAS,IAAI,IAAA,EAAmB;AAC9B,EAAA,IAAA,GAAO,IAAA;AACP,EAAA,SAAA,CAAU,OAAA,CAAQ,CAAC,QAAA,KAAa,QAAA,EAAU,CAAA;AAC5C;AAGO,SAAS,UAAA,CAAuC,IAAA,EAAA,GAAY,CAAC,KAAK,CAAA,EAAsB;AAC7F,EAAA,GAAA,CAAI,EAAE,GAAG,IAAA,EAAM,CAAC,IAAI,GAAG,KAAA,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AChE,CAAA;AACH","file":"chunk-JDFBEGQO.cjs","sourcesContent":["/**\n * The global dialogs: one registry of what is open, so any surface (a kit, a command, code outside\n * React such as an API middleware) opens a dialog by kind, and the one `<ConnectedGlobalDialogs>`\n * mounted in the shell shows it. Each kind is open or not; an open kind holds the props it was\n * opened with. Opening a kind that is already open replaces its props.\n *\n * Kits reach it through the environment (`useBlocksEnvironment().openDialog`), which a host may\n * replace; code outside React calls `openDialog` / `closeDialog` here. Confirm and choice prompts\n * are promise-based instead (`./dialogs`).\n */\nimport { useSyncExternalStore } from 'react'\nimport type { components } from '@arbidocs/client'\nimport type { WorkflowLaunchRequest } from '../agents/workflows/launchRequest'\nimport type { QuotaExceededInfo } from '../connection/billing/ConnectedQuotaDialog'\n\ntype NotificationResponse = components['schemas']['NotificationResponse']\n\n/** Where files are added from: this device, links, or an email account. */\nexport type UploadSource = 'computer' | 'internet' | 'email'\n\n/** What `openShare` shares by email. */\nexport interface ShareRequest {\n resourceType: 'document' | 'conversation'\n resourceExtId: string\n workspaceExtId: string\n resourceName?: string\n /** Whether it is private to its owner now: the dialog offers to share it with the workspace. */\n isPrivate: boolean\n}\n\n/** The upload dialog: files or links already picked, one source, a folder to add them to. */\nexport interface UploadDialogProps {\n /** The tab it opens on (default `upload`). */\n tab?: 'upload' | 'status'\n files?: File[]\n urls?: string[]\n /** Only this source (from an \"Add\" menu). None: every source. */\n source?: UploadSource | null\n /** The folder the files go into. */\n folder?: string | null\n}\n\n/** The create-workspace dialog: in a project (locked to it), or the first-login welcome copy. */\nexport interface CreateWorkspaceDialogProps {\n projectId?: string | null\n variant?: 'default' | 'welcome'\n}\n\n/** Each global dialog, by kind, and the props it is opened with. */\nexport interface BlocksDialogProps {\n /** Personal support requests and their resolution. */\n support: { ticketId?: number }\n /** Add files (upload, links, email). */\n upload: UploadDialogProps\n /** A project's AI usage for the month is used up. */\n quota: QuotaExceededInfo\n /** The first-login snapshot for free users. */\n welcome: Record<string, never>\n /** Share a document or a thread by email. */\n share: ShareRequest\n createWorkspace: CreateWorkspaceDialogProps\n /** Export, copy or move the whole open workspace. */\n transfer: Record<string, never>\n /** Number the selected documents as a production set. */\n productionSet: Record<string, never>\n /** Invite people as contacts. */\n inviteContacts: Record<string, never>\n /** Review a workspace access request (its notification). */\n grantAccess: { notification: NotificationResponse }\n /** Browse, run and edit skills, optionally on one. */\n skillsBrowser: { skillSlug?: string }\n /** Start a workflow with some inputs preset (or at once, `autoStart`). */\n workflowLaunch: WorkflowLaunchRequest\n /** Sign out of this session or all of them. */\n logout: Record<string, never>\n /** Restore an archived workspace. */\n unarchiveWorkspace: { workspaceId: string }\n /** The caller's access to a workspace has expired (its link was opened): ask its owner to renew. */\n expiredWorkspaceAccess: { access: components['schemas']['WorkspaceAccessStatusResponse'] }\n /** The open conversation's settings. */\n conversationSettings: Record<string, never>\n /** Pick the open conversation's documents. */\n conversationDocuments: Record<string, never>\n}\n\nexport type BlocksDialogKind = keyof BlocksDialogProps\n\n/** The props argument: optional for a kind whose props are all optional. */\nexport type DialogPropsArg<K extends BlocksDialogKind> =\n Record<never, never> extends BlocksDialogProps[K]\n ? [props?: BlocksDialogProps[K]]\n : [props: BlocksDialogProps[K]]\n\ntype OpenDialogs = { readonly [K in BlocksDialogKind]?: BlocksDialogProps[K] }\n\nlet open: OpenDialogs = {}\nconst listeners = new Set<() => void>()\nconst promptCleanups = new Set<() => void>()\n\n/** Internal lifetime registration, including prompts that are fading out. */\nexport function registerPromptCleanup(cleanup: () => void): () => void {\n promptCleanups.add(cleanup)\n return () => {\n promptCleanups.delete(cleanup)\n }\n}\n\nfunction set(next: OpenDialogs) {\n open = next\n listeners.forEach((listener) => listener())\n}\n\n/** Open a dialog (replacing the props of one already open). */\nexport function openDialog<K extends BlocksDialogKind>(kind: K, ...[props]: DialogPropsArg<K>) {\n set({ ...open, [kind]: props ?? {} })\n}\n\n/** Close a dialog (nothing happens when it is not open). */\nexport function closeDialog(kind: BlocksDialogKind): void {\n if (!(kind in open)) return\n const next = { ...open }\n delete next[kind]\n set(next)\n}\n\n/** Close every dialog (signing out). */\nexport function closeAllDialogs(): void {\n for (const cleanup of promptCleanups) cleanup()\n if (Object.keys(open).length > 0) set({})\n}\n\n/** The props an open dialog was opened with, or `null` while it is closed. */\nexport function getDialog<K extends BlocksDialogKind>(kind: K): BlocksDialogProps[K] | null {\n return (open[kind] as BlocksDialogProps[K] | undefined) ?? null\n}\n\nfunction subscribe(listener: () => void) {\n listeners.add(listener)\n return () => listeners.delete(listener)\n}\n\n/** A dialog's props while it is open, `null` while closed; re-renders when it opens or closes. */\nexport function useDialogProps<K extends BlocksDialogKind>(kind: K): BlocksDialogProps[K] | null {\n const snapshot = () => getDialog(kind)\n return useSyncExternalStore(subscribe, snapshot, snapshot)\n}\n","/**\n * The one confirmation dialog, and the promise-based prompts built on it — the blocks replacement\n * for `window.confirm` / `window.alert`.\n *\n * - `ConfirmDialog` is the declarative yes/no dialog (with a loading state and optional content).\n * - `confirmDialog()` shows that same dialog from any event handler: each call mounts its own\n * short-lived React root, so no dialog host is needed in the tree.\n * - `choiceDialog()` offers arbitrary choices (Overwrite / Skip / Cancel); an `alert` is one OK.\n *\n * Hosts reach the prompts through `useBlocksEnvironment().confirm` / `.choose` (the defaults),\n * which lets an app swap in its own dialogs without touching callers.\n */\nimport { useMemo, useRef, useState, type ReactElement, type ReactNode } from 'react'\nimport type { Root } from 'react-dom/client'\nimport { registerPromptCleanup } from './dialog-registry'\nimport { AlertCircle, AlertTriangle, Info } from 'lucide-react'\nimport { Button } from '@arbidocs/react/ui'\nimport { testIdOr } from '../chat/test-id'\nimport { ModalScaffold } from '../settings/ModalScaffold'\n\n/** Every fixed string of the confirm dialog. `confirmText` / `cancelText` props win. */\nexport interface ConfirmDialogLabels {\n confirm: string\n cancel: string\n pleaseWait: string\n}\n\nexport const DEFAULT_CONFIRM_DIALOG_LABELS: ConfirmDialogLabels = {\n confirm: 'Confirm',\n cancel: 'Cancel',\n pleaseWait: 'Please wait...',\n}\n\nexport interface ConfirmDialogProps {\n labels?: Partial<ConfirmDialogLabels>\n isOpen: boolean\n onClose: () => void\n onConfirm: () => void\n title: string\n description: string\n confirmText?: string\n cancelText?: string\n variant?: 'destructive' | 'default'\n isLoading?: boolean\n /** Dialog test id (default `confirmation-modal`). */\n testId?: string\n /** Button ids; defaults are the current ids. */\n testIds?: Partial<Record<'cancel' | 'confirm', string>>\n /** Extra content between the description and the buttons (e.g. an opt-in checkbox). */\n children?: ReactNode\n}\n\n/**\n * Declarative yes/no confirmation with a loading state. An `alertdialog`: initial focus is on\n * Cancel (the safe action) and clicking outside does not dismiss it; Escape and Cancel do.\n */\nexport function ConfirmDialog({\n isOpen,\n onClose,\n onConfirm,\n title,\n description,\n confirmText,\n cancelText,\n variant = 'destructive',\n isLoading = false,\n labels,\n testId,\n testIds,\n children,\n}: ConfirmDialogProps) {\n const l = useMemo(() => ({ ...DEFAULT_CONFIRM_DIALOG_LABELS, ...labels }), [labels])\n const cancelRef = useRef<HTMLButtonElement>(null)\n return (\n <ModalScaffold\n open={isOpen}\n onOpenChange={(next) => {\n if (!next) onClose()\n }}\n role=\"alertdialog\"\n initialFocusRef={cancelRef}\n title={title}\n description={<span className=\"whitespace-pre-line\">{description}</span>}\n showDescription\n icon={\n variant === 'destructive' ? (\n <AlertTriangle className=\"h-5 w-5 text-red-text\" aria-hidden=\"true\" />\n ) : null\n }\n testId={testIdOr(testId, { testId: 'confirmation-modal' })}\n >\n {children}\n <ModalScaffold.Footer>\n <Button\n ref={cancelRef}\n variant=\"outline\"\n onClick={() => onClose()}\n disabled={isLoading}\n data-testid={testIdOr(testIds?.cancel, { testId: 'confirmation-modal-cancel-button' })}\n >\n {cancelText ?? l.cancel}\n </Button>\n <Button\n variant={variant}\n onClick={onConfirm}\n disabled={isLoading}\n data-testid={testIdOr(testIds?.confirm, { testId: 'confirmation-modal-confirm-button' })}\n >\n {isLoading ? l.pleaseWait : (confirmText ?? l.confirm)}\n </Button>\n </ModalScaffold.Footer>\n </ModalScaffold>\n )\n}\ntype ChoiceVariant = 'default' | 'destructive' | 'outline'\n\nexport interface PromptChoice<T extends string> {\n label: string\n value: T\n variant?: ChoiceVariant\n}\n\n/** A dialog offering arbitrary choices (e.g. Overwrite / Skip / Cancel). */\nexport interface ChoiceRequest<T extends string> {\n message: string\n title?: string\n choices: PromptChoice<T>[]\n icon?: 'alert' | 'info'\n /** Dialog test id; each button is `${testId}-${value}-button`. Default `choice-modal`. */\n testId?: string\n}\n\n/**\n * `confirm` — Cancel / Confirm (destructive); `yesno` — No / Yes; `alert` — a single OK\n * (resolves true once acknowledged).\n */\nexport type ConfirmKind = 'confirm' | 'yesno' | 'alert'\n\nexport interface ConfirmRequest {\n message: string\n /** Default: \"Alert\" for `alert`, else \"Confirm\". */\n title?: string\n kind?: ConfirmKind\n}\n\n/** Close animation length before the root is unmounted. */\nconst UNMOUNT_DELAY_MS = 300\n\nfunction PromptDialog<T extends string>({\n request,\n onSettle,\n}: {\n request: ChoiceRequest<T>\n onSettle: (value: T | null) => void\n}): ReactElement {\n const [open, setOpen] = useState(true)\n const { message, title = 'Confirm', choices, icon = 'alert', testId = 'choice-modal' } = request\n const settle = (value: T | null) => {\n setOpen(false)\n onSettle(value)\n }\n return (\n <ModalScaffold\n open={open}\n onOpenChange={(next) => {\n if (!next) settle(null)\n }}\n title={title}\n icon={\n icon === 'info' ? (\n <Info className=\"h-5 w-5 text-blue-text\" aria-hidden=\"true\" />\n ) : (\n <AlertCircle className=\"h-5 w-5\" aria-hidden=\"true\" />\n )\n }\n description={<span className=\"whitespace-pre-line\">{message}</span>}\n showDescription\n testId={testId}\n >\n <ModalScaffold.Footer>\n {choices.map((choice) => (\n <Button\n key={choice.value}\n variant={choice.variant ?? 'default'}\n onClick={() => settle(choice.value)}\n data-testid={`${testId}-${choice.value.toLowerCase()}-button`}\n >\n {choice.label}\n </Button>\n ))}\n </ModalScaffold.Footer>\n </ModalScaffold>\n )\n}\n\n/** Mount a dialog in its own short-lived root; `render` gets the settle callback. */\nfunction mountDialog<R>(\n fallback: R,\n render: (settle: (value: R) => void) => ReactElement\n): Promise<R> {\n if (typeof document === 'undefined') return Promise.resolve(fallback)\n return new Promise((resolve) => {\n const container = document.createElement('div')\n document.body.appendChild(container)\n let settled = false\n let disposing = false\n let root: Root | undefined\n let timer: ReturnType<typeof setTimeout> | undefined\n const dispose = () => {\n if (disposing) return\n disposing = true\n if (timer !== undefined) clearTimeout(timer)\n // Logout can run in another root's effect. Unmount outside that React commit.\n queueMicrotask(() => {\n root?.unmount()\n container.remove()\n unregister()\n })\n }\n const unregister = registerPromptCleanup(() => {\n dispose()\n if (!settled) {\n settled = true\n resolve(fallback)\n }\n })\n void import('react-dom/client').then(({ createRoot }) => {\n if (disposing) return\n root = createRoot(container)\n const settle = (value: R) => {\n if (settled) return\n settled = true\n resolve(value)\n timer = setTimeout(dispose, UNMOUNT_DELAY_MS)\n }\n root.render(render(settle))\n })\n })\n}\n\n/** Show a choice dialog; resolves with the chosen `value`, or `null` when dismissed. */\nexport function choiceDialog<T extends string>(request: ChoiceRequest<T>): Promise<T | null> {\n return mountDialog<T | null>(null, (settle) => (\n <PromptDialog request={request} onSettle={settle} />\n ))\n}\n\n/** `ConfirmDialog` driven by a promise: open until answered, then closes. */\nfunction PromptConfirm({\n request,\n kind,\n onSettle,\n}: {\n request: ConfirmRequest\n kind: 'confirm' | 'yesno'\n onSettle: (value: boolean) => void\n}): ReactElement {\n const [open, setOpen] = useState(true)\n const settle = (value: boolean) => {\n setOpen(false)\n onSettle(value)\n }\n const yesno = kind === 'yesno'\n return (\n <ConfirmDialog\n isOpen={open}\n onClose={() => settle(false)}\n onConfirm={() => settle(true)}\n title={request.title ?? 'Confirm'}\n description={request.message}\n variant={yesno ? 'default' : 'destructive'}\n {...(yesno\n ? {\n confirmText: 'Yes',\n cancelText: 'No',\n testId: 'yes-no-modal',\n testIds: { confirm: 'yes-no-modal-yes-button', cancel: 'yes-no-modal-no-button' },\n }\n : {})}\n />\n )\n}\n\n/** Show a confirmation; resolves true on Confirm / Yes / OK, false on cancel or dismissal. */\nexport async function confirmDialog(request: ConfirmRequest): Promise<boolean> {\n const kind = request.kind ?? 'confirm'\n if (kind === 'alert') {\n const choice = await choiceDialog({\n message: request.message,\n title: request.title ?? 'Alert',\n choices: [{ label: 'OK', value: 'ok' }],\n icon: 'info',\n testId: 'alert-modal',\n })\n return choice === 'ok'\n }\n return mountDialog(false, (settle) => (\n <PromptConfirm request={request} kind={kind} onSettle={settle} />\n ))\n}\n"]}
|