@arbidocs/blocks 0.5.129 → 0.5.131

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.
Files changed (249) hide show
  1. package/dist/{ConnectedCallDock-XJOYVVAH.cjs → ConnectedCallDock-GJ4LO7I3.cjs} +27 -27
  2. package/dist/{ConnectedCallDock-XJOYVVAH.cjs.map → ConnectedCallDock-GJ4LO7I3.cjs.map} +1 -1
  3. package/dist/{ConnectedCallRoom-CUDYAPQK.cjs → ConnectedCallRoom-SL3GMHO7.cjs} +20 -20
  4. package/dist/{ConnectedCallRoom-CUDYAPQK.cjs.map → ConnectedCallRoom-SL3GMHO7.cjs.map} +1 -1
  5. package/dist/{ConnectedNativeDocxComparison-7KTAOUE3.cjs → ConnectedNativeDocxComparison-OY4RTJKA.cjs} +17 -17
  6. package/dist/{ConnectedNativeDocxComparison-7KTAOUE3.cjs.map → ConnectedNativeDocxComparison-OY4RTJKA.cjs.map} +1 -1
  7. package/dist/{ConnectedPresentation-SI3L77J4.cjs → ConnectedPresentation-5W26JTH6.cjs} +18 -18
  8. package/dist/{ConnectedPresentation-SI3L77J4.cjs.map → ConnectedPresentation-5W26JTH6.cjs.map} +1 -1
  9. package/dist/{ConnectedSlidesTab-E76OVY34.cjs → ConnectedSlidesTab-YS2XRWUC.cjs} +16 -16
  10. package/dist/{ConnectedSlidesTab-E76OVY34.cjs.map → ConnectedSlidesTab-YS2XRWUC.cjs.map} +1 -1
  11. package/dist/{ConnectedStreamedWordArtifact-J4MYBABA.cjs → ConnectedStreamedWordArtifact-6Y24NJON.cjs} +17 -17
  12. package/dist/{ConnectedStreamedWordArtifact-J4MYBABA.cjs.map → ConnectedStreamedWordArtifact-6Y24NJON.cjs.map} +1 -1
  13. package/dist/{DocumentReviewCard-M53XFLI2.cjs → DocumentReviewCard-DIUHU76E.cjs} +16 -16
  14. package/dist/{DocumentReviewCard-M53XFLI2.cjs.map → DocumentReviewCard-DIUHU76E.cjs.map} +1 -1
  15. package/dist/{FilesViewerDialog-GGF4WMU4.cjs → FilesViewerDialog-H6ZXLUO3.cjs} +46 -46
  16. package/dist/{FilesViewerDialog-GGF4WMU4.cjs.map → FilesViewerDialog-H6ZXLUO3.cjs.map} +1 -1
  17. package/dist/{StreamedArtifactEditor-7KJ2HLLU.cjs → StreamedArtifactEditor-RSPUSZ2B.cjs} +5 -5
  18. package/dist/{StreamedArtifactEditor-7KJ2HLLU.cjs.map → StreamedArtifactEditor-RSPUSZ2B.cjs.map} +1 -1
  19. package/dist/{WorkspaceTableView-CUCTCA2O.cjs → WorkspaceTableView-44555T3K.cjs} +9 -9
  20. package/dist/{WorkspaceTableView-CUCTCA2O.cjs.map → WorkspaceTableView-44555T3K.cjs.map} +1 -1
  21. package/dist/agents/index.cjs +377 -377
  22. package/dist/agents/workflows/StepParts.d.ts +3 -0
  23. package/dist/agents/workflows/StepParts.js +20 -3
  24. package/dist/agents/workflows/StepParts.js.map +2 -2
  25. package/dist/agents/workflows/WorkflowStepAction.js +14 -3
  26. package/dist/agents/workflows/WorkflowStepAction.js.map +2 -2
  27. package/dist/agents/workflows/planSteps.js +6 -1
  28. package/dist/agents/workflows/planSteps.js.map +2 -2
  29. package/dist/agents/workflows/workflow.d.ts +11 -2
  30. package/dist/agents/workflows/workflow.js +16 -1
  31. package/dist/agents/workflows/workflow.js.map +2 -2
  32. package/dist/{ai-IEIR7SC2.cjs → ai-V4X2E6Y4.cjs} +31 -31
  33. package/dist/ai-V4X2E6Y4.cjs.map +1 -0
  34. package/dist/artifacts/VersionTimeline.d.ts +5 -1
  35. package/dist/artifacts/VersionTimeline.js +15 -0
  36. package/dist/artifacts/VersionTimeline.js.map +2 -2
  37. package/dist/artifacts/index.cjs +24 -24
  38. package/dist/calls/index.cjs +120 -120
  39. package/dist/chat/index.cjs +58 -58
  40. package/dist/{chunk-SGYSDABK.cjs → chunk-2W5E62EY.cjs} +6 -6
  41. package/dist/{chunk-SGYSDABK.cjs.map → chunk-2W5E62EY.cjs.map} +1 -1
  42. package/dist/{chunk-NY3YUCOW.cjs → chunk-4NPCDS2X.cjs} +3 -3
  43. package/dist/{chunk-NY3YUCOW.cjs.map → chunk-4NPCDS2X.cjs.map} +1 -1
  44. package/dist/{chunk-MLA2BJ2Y.cjs → chunk-4RBQ44RY.cjs} +28 -28
  45. package/dist/{chunk-MLA2BJ2Y.cjs.map → chunk-4RBQ44RY.cjs.map} +1 -1
  46. package/dist/{chunk-BQ5RIWWT.cjs → chunk-4VZZWYEC.cjs} +3 -3
  47. package/dist/{chunk-BQ5RIWWT.cjs.map → chunk-4VZZWYEC.cjs.map} +1 -1
  48. package/dist/{chunk-7JLJH5CW.cjs → chunk-5A6T4W46.cjs} +7 -7
  49. package/dist/{chunk-7JLJH5CW.cjs.map → chunk-5A6T4W46.cjs.map} +1 -1
  50. package/dist/{chunk-WXUU3COI.cjs → chunk-6NT377PS.cjs} +12 -12
  51. package/dist/{chunk-WXUU3COI.cjs.map → chunk-6NT377PS.cjs.map} +1 -1
  52. package/dist/{chunk-ADDQKZ5I.cjs → chunk-734NPQNR.cjs} +4 -4
  53. package/dist/{chunk-ADDQKZ5I.cjs.map → chunk-734NPQNR.cjs.map} +1 -1
  54. package/dist/{chunk-XF355M7O.cjs → chunk-A2YUBDCO.cjs} +17 -17
  55. package/dist/{chunk-XF355M7O.cjs.map → chunk-A2YUBDCO.cjs.map} +1 -1
  56. package/dist/{chunk-IDCD5TEZ.cjs → chunk-A6GBPE5E.cjs} +18 -18
  57. package/dist/{chunk-IDCD5TEZ.cjs.map → chunk-A6GBPE5E.cjs.map} +1 -1
  58. package/dist/{chunk-HH5RDNO5.cjs → chunk-AFG7YCCJ.cjs} +82 -82
  59. package/dist/{chunk-HH5RDNO5.cjs.map → chunk-AFG7YCCJ.cjs.map} +1 -1
  60. package/dist/{chunk-KNGZZC4O.cjs → chunk-B3BZ6MNI.cjs} +6 -6
  61. package/dist/{chunk-KNGZZC4O.cjs.map → chunk-B3BZ6MNI.cjs.map} +1 -1
  62. package/dist/{chunk-I3A6KKWY.cjs → chunk-BAA44UEC.cjs} +114 -104
  63. package/dist/chunk-BAA44UEC.cjs.map +1 -0
  64. package/dist/{chunk-5QERK4PK.cjs → chunk-BVAT4EVC.cjs} +35 -35
  65. package/dist/{chunk-5QERK4PK.cjs.map → chunk-BVAT4EVC.cjs.map} +1 -1
  66. package/dist/{chunk-QGVOT7E4.cjs → chunk-EQTZQD66.cjs} +8 -8
  67. package/dist/{chunk-QGVOT7E4.cjs.map → chunk-EQTZQD66.cjs.map} +1 -1
  68. package/dist/{chunk-M2FOXGJU.cjs → chunk-F6CEPWIF.cjs} +7 -7
  69. package/dist/{chunk-M2FOXGJU.cjs.map → chunk-F6CEPWIF.cjs.map} +1 -1
  70. package/dist/{chunk-VWBYE3XY.cjs → chunk-GKMUXI4V.cjs} +6 -6
  71. package/dist/{chunk-VWBYE3XY.cjs.map → chunk-GKMUXI4V.cjs.map} +1 -1
  72. package/dist/{chunk-XCKHOXRP.cjs → chunk-H4ID6S4P.cjs} +6 -6
  73. package/dist/{chunk-XCKHOXRP.cjs.map → chunk-H4ID6S4P.cjs.map} +1 -1
  74. package/dist/{chunk-7OPOPYV6.cjs → chunk-H5OLHP2U.cjs} +3 -3
  75. package/dist/{chunk-7OPOPYV6.cjs.map → chunk-H5OLHP2U.cjs.map} +1 -1
  76. package/dist/{chunk-L4CIFLCU.cjs → chunk-IIYG542W.cjs} +9 -9
  77. package/dist/{chunk-L4CIFLCU.cjs.map → chunk-IIYG542W.cjs.map} +1 -1
  78. package/dist/{chunk-3IH55CDE.cjs → chunk-IZBAWZTB.cjs} +16 -2
  79. package/dist/chunk-IZBAWZTB.cjs.map +1 -0
  80. package/dist/{chunk-QRAQZTJE.cjs → chunk-JN5YMHGI.cjs} +18 -3
  81. package/dist/chunk-JN5YMHGI.cjs.map +1 -0
  82. package/dist/{chunk-ALK3PUUB.cjs → chunk-JQLWKNJO.cjs} +4 -4
  83. package/dist/{chunk-ALK3PUUB.cjs.map → chunk-JQLWKNJO.cjs.map} +1 -1
  84. package/dist/{chunk-I7J3ED6P.cjs → chunk-KAR326FU.cjs} +4 -4
  85. package/dist/{chunk-I7J3ED6P.cjs.map → chunk-KAR326FU.cjs.map} +1 -1
  86. package/dist/{chunk-GEZB3OEC.cjs → chunk-KUVGR5KE.cjs} +18 -17
  87. package/dist/chunk-KUVGR5KE.cjs.map +1 -0
  88. package/dist/{chunk-ZCU72Q76.cjs → chunk-MEZ7WSW3.cjs} +10 -10
  89. package/dist/{chunk-ZCU72Q76.cjs.map → chunk-MEZ7WSW3.cjs.map} +1 -1
  90. package/dist/{chunk-EG7EJFUE.cjs → chunk-MHIG6GGS.cjs} +17 -2
  91. package/dist/chunk-MHIG6GGS.cjs.map +1 -0
  92. package/dist/{chunk-ENOPKX7E.cjs → chunk-MXBXZXXQ.cjs} +3 -3
  93. package/dist/{chunk-ENOPKX7E.cjs.map → chunk-MXBXZXXQ.cjs.map} +1 -1
  94. package/dist/{chunk-IWHP7FAB.cjs → chunk-NZN7SK4W.cjs} +11 -11
  95. package/dist/{chunk-IWHP7FAB.cjs.map → chunk-NZN7SK4W.cjs.map} +1 -1
  96. package/dist/{chunk-U7D6ZDR2.cjs → chunk-PASJI6JZ.cjs} +140 -80
  97. package/dist/chunk-PASJI6JZ.cjs.map +1 -0
  98. package/dist/{chunk-UFT22LAB.cjs → chunk-PD23GDT7.cjs} +16 -16
  99. package/dist/{chunk-UFT22LAB.cjs.map → chunk-PD23GDT7.cjs.map} +1 -1
  100. package/dist/{chunk-325GVZE6.cjs → chunk-Q6DQGGP4.cjs} +3 -3
  101. package/dist/{chunk-325GVZE6.cjs.map → chunk-Q6DQGGP4.cjs.map} +1 -1
  102. package/dist/{chunk-TP5PGWIO.cjs → chunk-QFXOTJ6G.cjs} +20 -15
  103. package/dist/chunk-QFXOTJ6G.cjs.map +1 -0
  104. package/dist/{chunk-7L4X6QN2.cjs → chunk-QYX2U7TI.cjs} +8 -8
  105. package/dist/{chunk-7L4X6QN2.cjs.map → chunk-QYX2U7TI.cjs.map} +1 -1
  106. package/dist/{chunk-WAV762GP.cjs → chunk-R7IA2F2G.cjs} +6 -6
  107. package/dist/{chunk-WAV762GP.cjs.map → chunk-R7IA2F2G.cjs.map} +1 -1
  108. package/dist/{chunk-JJZOL5MG.cjs → chunk-RYVZDFVO.cjs} +3 -3
  109. package/dist/{chunk-JJZOL5MG.cjs.map → chunk-RYVZDFVO.cjs.map} +1 -1
  110. package/dist/{chunk-XGTMC54Q.cjs → chunk-SHPETTGW.cjs} +4 -4
  111. package/dist/{chunk-XGTMC54Q.cjs.map → chunk-SHPETTGW.cjs.map} +1 -1
  112. package/dist/{chunk-2F57IO7S.cjs → chunk-SZCDYKS4.cjs} +27 -27
  113. package/dist/{chunk-2F57IO7S.cjs.map → chunk-SZCDYKS4.cjs.map} +1 -1
  114. package/dist/{chunk-NQML7IUC.cjs → chunk-TW4RV3QK.cjs} +139 -112
  115. package/dist/chunk-TW4RV3QK.cjs.map +1 -0
  116. package/dist/{chunk-NG2EE7HR.cjs → chunk-UXBFXF26.cjs} +54 -54
  117. package/dist/{chunk-NG2EE7HR.cjs.map → chunk-UXBFXF26.cjs.map} +1 -1
  118. package/dist/{chunk-HSLPFBK2.cjs → chunk-VL7ZX4KQ.cjs} +6 -6
  119. package/dist/{chunk-HSLPFBK2.cjs.map → chunk-VL7ZX4KQ.cjs.map} +1 -1
  120. package/dist/{chunk-7PN3YENO.cjs → chunk-W6B3RYTX.cjs} +4 -4
  121. package/dist/{chunk-7PN3YENO.cjs.map → chunk-W6B3RYTX.cjs.map} +1 -1
  122. package/dist/{chunk-T73BHNQX.cjs → chunk-XKCIDXMP.cjs} +239 -89
  123. package/dist/chunk-XKCIDXMP.cjs.map +1 -0
  124. package/dist/{chunk-5GA65VBW.cjs → chunk-XX5SH4WE.cjs} +11 -11
  125. package/dist/{chunk-5GA65VBW.cjs.map → chunk-XX5SH4WE.cjs.map} +1 -1
  126. package/dist/{chunk-LXFCED4Z.cjs → chunk-Z4O324CO.cjs} +9 -9
  127. package/dist/{chunk-LXFCED4Z.cjs.map → chunk-Z4O324CO.cjs.map} +1 -1
  128. package/dist/{chunk-7NLO7ASW.cjs → chunk-ZEQE4I46.cjs} +18 -18
  129. package/dist/{chunk-7NLO7ASW.cjs.map → chunk-ZEQE4I46.cjs.map} +1 -1
  130. package/dist/connect/docx.cjs +20 -20
  131. package/dist/connect/index.cjs +2729 -1230
  132. package/dist/connect/index.cjs.map +1 -1
  133. package/dist/connect/index.d.ts +2 -0
  134. package/dist/connect/index.js +12 -0
  135. package/dist/connect/index.js.map +2 -2
  136. package/dist/connect/viewer.cjs +33 -33
  137. package/dist/connection/ConnectedWorkflowBuilder.d.ts +12 -0
  138. package/dist/connection/ConnectedWorkflowBuilder.js +6 -1
  139. package/dist/connection/ConnectedWorkflowBuilder.js.map +2 -2
  140. package/dist/connection/assistant/AssistantDrafts.d.ts +21 -0
  141. package/dist/connection/assistant/AssistantDrafts.js +158 -0
  142. package/dist/connection/assistant/AssistantDrafts.js.map +7 -0
  143. package/dist/connection/assistant/AssistantPlan.d.ts +16 -0
  144. package/dist/connection/assistant/AssistantPlan.js +72 -0
  145. package/dist/connection/assistant/AssistantPlan.js.map +7 -0
  146. package/dist/connection/assistant/AssistantStatusPanel.d.ts +28 -0
  147. package/dist/connection/assistant/AssistantStatusPanel.js +206 -0
  148. package/dist/connection/assistant/AssistantStatusPanel.js.map +7 -0
  149. package/dist/connection/assistant/ConnectedAssistantPage.d.ts +39 -0
  150. package/dist/connection/assistant/ConnectedAssistantPage.js +377 -0
  151. package/dist/connection/assistant/ConnectedAssistantPage.js.map +7 -0
  152. package/dist/connection/billing/ChangePlanDialog.d.ts +2 -1
  153. package/dist/connection/billing/ChangePlanDialog.js +8 -3
  154. package/dist/connection/billing/ChangePlanDialog.js.map +2 -2
  155. package/dist/connection/billing/ChangeProPlan.js +4 -4
  156. package/dist/connection/billing/ChangeProPlan.js.map +2 -2
  157. package/dist/connection/billing/CollaboratorPlan.js +5 -3
  158. package/dist/connection/billing/CollaboratorPlan.js.map +2 -2
  159. package/dist/connection/billing/ConnectedWelcomeDialog.d.ts +5 -13
  160. package/dist/connection/billing/ConnectedWelcomeDialog.js +38 -19
  161. package/dist/connection/billing/ConnectedWelcomeDialog.js.map +2 -2
  162. package/dist/connection/billing/MonthlySpendCap.d.ts +10 -3
  163. package/dist/connection/billing/MonthlySpendCap.js +103 -11
  164. package/dist/connection/billing/MonthlySpendCap.js.map +2 -2
  165. package/dist/connection/billing/NewProjectFlow.js +20 -7
  166. package/dist/connection/billing/NewProjectFlow.js.map +2 -2
  167. package/dist/connection/billing/ProjectDetail.js +1 -1
  168. package/dist/connection/billing/ProjectDetail.js.map +2 -2
  169. package/dist/connection/billing/ProjectPurchaseOptions.d.ts +14 -3
  170. package/dist/connection/billing/ProjectPurchaseOptions.js +472 -139
  171. package/dist/connection/billing/ProjectPurchaseOptions.js.map +2 -2
  172. package/dist/connection/billing/ProjectUsageCard.js +4 -4
  173. package/dist/connection/billing/ProjectUsageCard.js.map +2 -2
  174. package/dist/connection/billing/ReduceAddonDialog.js +2 -2
  175. package/dist/connection/billing/ReduceAddonDialog.js.map +2 -2
  176. package/dist/connection/billing/StripeCheckoutModal.js +3 -2
  177. package/dist/connection/billing/StripeCheckoutModal.js.map +2 -2
  178. package/dist/connection/billing/SubscriptionPlans.d.ts +5 -1
  179. package/dist/connection/billing/SubscriptionPlans.js +89 -6
  180. package/dist/connection/billing/SubscriptionPlans.js.map +2 -2
  181. package/dist/connection/billing/index.d.ts +1 -1
  182. package/dist/connection/billing/index.js +2 -2
  183. package/dist/connection/billing/index.js.map +2 -2
  184. package/dist/connection/billing/referral-reward.d.ts +2 -3
  185. package/dist/connection/billing/referral-reward.js +8 -3
  186. package/dist/connection/billing/referral-reward.js.map +2 -2
  187. package/dist/connection/billing/tax-quote.d.ts +2 -2
  188. package/dist/connection/billing/tax-quote.js +1 -0
  189. package/dist/connection/billing/tax-quote.js.map +2 -2
  190. package/dist/connection/contacts/ConnectedAddContacts.d.ts +7 -1
  191. package/dist/connection/contacts/ConnectedAddContacts.js +33 -17
  192. package/dist/connection/contacts/ConnectedAddContacts.js.map +2 -2
  193. package/dist/connection/contacts/ConnectedInviteContactsDialog.js +3 -2
  194. package/dist/connection/contacts/ConnectedInviteContactsDialog.js.map +2 -2
  195. package/dist/connection/contacts/ConnectedWelcomeInvitations.d.ts +6 -0
  196. package/dist/connection/contacts/ConnectedWelcomeInvitations.js +198 -0
  197. package/dist/connection/contacts/ConnectedWelcomeInvitations.js.map +7 -0
  198. package/dist/connection/conversation/AgentSteps.js +19 -2
  199. package/dist/connection/conversation/AgentSteps.js.map +2 -2
  200. package/dist/connection/viewer/ConnectedDocumentViewer.js +22 -2
  201. package/dist/connection/viewer/ConnectedDocumentViewer.js.map +2 -2
  202. package/dist/connection/viewer/useDocumentVersionRestore.d.ts +14 -0
  203. package/dist/connection/viewer/useDocumentVersionRestore.js +48 -0
  204. package/dist/connection/viewer/useDocumentVersionRestore.js.map +7 -0
  205. package/dist/connection/viewer/useViewerTabs.d.ts +1 -1
  206. package/dist/connection/viewer/useViewerTabs.js +6 -3
  207. package/dist/connection/viewer/useViewerTabs.js.map +2 -2
  208. package/dist/dashboards/index.cjs +1 -1
  209. package/dist/document-tools/VersionSnapshotBar.d.ts +4 -1
  210. package/dist/document-tools/VersionSnapshotBar.js +14 -0
  211. package/dist/document-tools/VersionSnapshotBar.js.map +2 -2
  212. package/dist/document-tools/index.cjs +13 -13
  213. package/dist/embed/index.cjs +39 -39
  214. package/dist/facts/index.cjs +43 -43
  215. package/dist/files/index.cjs +224 -224
  216. package/dist/index.cjs +1409 -1409
  217. package/dist/office/index.cjs +5 -5
  218. package/dist/settings/Billing.d.ts +2 -2
  219. package/dist/settings/Billing.js +4 -3
  220. package/dist/settings/Billing.js.map +2 -2
  221. package/dist/settings/SubscriptionParts.d.ts +4 -2
  222. package/dist/settings/SubscriptionParts.js +22 -3
  223. package/dist/settings/SubscriptionParts.js.map +2 -2
  224. package/dist/settings/WelcomeDialog.d.ts +31 -4
  225. package/dist/settings/WelcomeDialog.js +221 -82
  226. package/dist/settings/WelcomeDialog.js.map +2 -2
  227. package/dist/settings/index.cjs +147 -147
  228. package/dist/shell/index.cjs +78 -78
  229. package/dist/site/index.cjs +5 -5
  230. package/dist/studio/index.cjs +31 -31
  231. package/dist/styles.css +1 -1
  232. package/dist/workflow-canvas/TriggerInspector.d.ts +7 -0
  233. package/dist/workflow-canvas/TriggerInspector.js +56 -0
  234. package/dist/workflow-canvas/TriggerInspector.js.map +2 -2
  235. package/dist/workflow-canvas/index.cjs +159 -98
  236. package/dist/workflow-canvas/index.cjs.map +1 -1
  237. package/node_modules/@arbidocs/coedit/package.json +1 -1
  238. package/package.json +5 -5
  239. package/src/connection/billing/project-purchase.css +518 -39
  240. package/dist/ai-IEIR7SC2.cjs.map +0 -1
  241. package/dist/chunk-3IH55CDE.cjs.map +0 -1
  242. package/dist/chunk-EG7EJFUE.cjs.map +0 -1
  243. package/dist/chunk-GEZB3OEC.cjs.map +0 -1
  244. package/dist/chunk-I3A6KKWY.cjs.map +0 -1
  245. package/dist/chunk-NQML7IUC.cjs.map +0 -1
  246. package/dist/chunk-QRAQZTJE.cjs.map +0 -1
  247. package/dist/chunk-T73BHNQX.cjs.map +0 -1
  248. package/dist/chunk-TP5PGWIO.cjs.map +0 -1
  249. package/dist/chunk-U7D6ZDR2.cjs.map +0 -1
@@ -1,26 +1,25 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkHH5RDNO5_cjs = require('../chunk-HH5RDNO5.cjs');
4
+ var chunkAFG7YCCJ_cjs = require('../chunk-AFG7YCCJ.cjs');
5
5
  require('../chunk-YZ6YOOTF.cjs');
6
6
  require('../chunk-KWJW5TMH.cjs');
7
- require('../chunk-7NLO7ASW.cjs');
8
- require('../chunk-7PN3YENO.cjs');
9
- var chunkUFT22LAB_cjs = require('../chunk-UFT22LAB.cjs');
7
+ require('../chunk-ZEQE4I46.cjs');
8
+ require('../chunk-W6B3RYTX.cjs');
9
+ var chunkPD23GDT7_cjs = require('../chunk-PD23GDT7.cjs');
10
10
  require('../chunk-AEQT2QQX.cjs');
11
- require('../chunk-QUMUAJ2P.cjs');
12
- var chunkADDQKZ5I_cjs = require('../chunk-ADDQKZ5I.cjs');
13
- require('../chunk-5QERK4PK.cjs');
14
- require('../chunk-T73BHNQX.cjs');
11
+ var chunk734NPQNR_cjs = require('../chunk-734NPQNR.cjs');
12
+ require('../chunk-BVAT4EVC.cjs');
13
+ require('../chunk-XKCIDXMP.cjs');
15
14
  require('../chunk-HYUKPHCT.cjs');
16
- require('../chunk-ALK3PUUB.cjs');
15
+ require('../chunk-JQLWKNJO.cjs');
17
16
  require('../chunk-223D4727.cjs');
18
17
  require('../chunk-SNUBQMIS.cjs');
19
- var chunk5GA65VBW_cjs = require('../chunk-5GA65VBW.cjs');
20
- var chunkP5AQYC4D_cjs = require('../chunk-P5AQYC4D.cjs');
21
- require('../chunk-WAV762GP.cjs');
18
+ var chunkXX5SH4WE_cjs = require('../chunk-XX5SH4WE.cjs');
22
19
  require('../chunk-4ONPEVTP.cjs');
23
20
  require('../chunk-V3KLUWQQ.cjs');
21
+ var chunkP5AQYC4D_cjs = require('../chunk-P5AQYC4D.cjs');
22
+ require('../chunk-R7IA2F2G.cjs');
24
23
  require('../chunk-JH6JTI76.cjs');
25
24
  require('../chunk-QQMMCXBP.cjs');
26
25
  require('../chunk-DTMBAFIL.cjs');
@@ -31,30 +30,45 @@ require('../chunk-NWNVWO6L.cjs');
31
30
  require('../chunk-SK6HQ46Q.cjs');
32
31
  require('../chunk-TG2GM7WJ.cjs');
33
32
  require('../chunk-ZYGAXD3N.cjs');
33
+ require('../chunk-5SKHK3BG.cjs');
34
+ require('../chunk-A6GBPE5E.cjs');
35
+ require('../chunk-F6CEPWIF.cjs');
36
+ require('../chunk-5F4DCIHS.cjs');
37
+ require('../chunk-MCXS6X37.cjs');
38
+ require('../chunk-KQF7POTG.cjs');
39
+ require('../chunk-75BNMCUX.cjs');
34
40
  var chunkNSD37OF5_cjs = require('../chunk-NSD37OF5.cjs');
35
41
  require('../chunk-OEJQFPWO.cjs');
36
- var chunkL4CIFLCU_cjs = require('../chunk-L4CIFLCU.cjs');
37
- var chunkNQML7IUC_cjs = require('../chunk-NQML7IUC.cjs');
42
+ var chunkIIYG542W_cjs = require('../chunk-IIYG542W.cjs');
43
+ var chunkTW4RV3QK_cjs = require('../chunk-TW4RV3QK.cjs');
38
44
  require('../chunk-QECKDZ47.cjs');
39
- var chunkTP5PGWIO_cjs = require('../chunk-TP5PGWIO.cjs');
45
+ var chunkQFXOTJ6G_cjs = require('../chunk-QFXOTJ6G.cjs');
40
46
  var chunkI4IS6ST6_cjs = require('../chunk-I4IS6ST6.cjs');
41
- var chunk7JLJH5CW_cjs = require('../chunk-7JLJH5CW.cjs');
47
+ var chunk5A6T4W46_cjs = require('../chunk-5A6T4W46.cjs');
42
48
  require('../chunk-EVZH6Z5O.cjs');
43
49
  require('../chunk-OYXWQTHF.cjs');
44
50
  require('../chunk-S237ORM3.cjs');
45
51
  require('../chunk-II2OEXHW.cjs');
46
- require('../chunk-JJZOL5MG.cjs');
52
+ require('../chunk-RYVZDFVO.cjs');
47
53
  require('../chunk-3YEXZX4H.cjs');
48
54
  require('../chunk-4PA6VCCR.cjs');
49
- var chunkWXUU3COI_cjs = require('../chunk-WXUU3COI.cjs');
55
+ var chunk6NT377PS_cjs = require('../chunk-6NT377PS.cjs');
50
56
  require('../chunk-AHDJXIUB.cjs');
51
- require('../chunk-YVCOQHCE.cjs');
52
57
  require('../chunk-RL2HI6NP.cjs');
53
58
  require('../chunk-6UZC4XVV.cjs');
54
- require('../chunk-VZOOGA47.cjs');
59
+ require('../chunk-YVCOQHCE.cjs');
60
+ require('../chunk-IN6ILI5A.cjs');
61
+ var chunkVL7ZX4KQ_cjs = require('../chunk-VL7ZX4KQ.cjs');
62
+ require('../chunk-FX3K6LNZ.cjs');
63
+ var chunkEQTZQD66_cjs = require('../chunk-EQTZQD66.cjs');
64
+ var chunkJN5YMHGI_cjs = require('../chunk-JN5YMHGI.cjs');
65
+ var chunkUDSHVNU3_cjs = require('../chunk-UDSHVNU3.cjs');
55
66
  require('../chunk-JV5TVUOU.cjs');
67
+ require('../chunk-IPSHAMO2.cjs');
56
68
  require('../chunk-ZVEW3JBT.cjs');
57
69
  require('../chunk-M74FWYNL.cjs');
70
+ require('../chunk-QUMUAJ2P.cjs');
71
+ require('../chunk-VZOOGA47.cjs');
58
72
  require('../chunk-SBWIA4PL.cjs');
59
73
  require('../chunk-QMIHLJMH.cjs');
60
74
  var chunkHQDR43JC_cjs = require('../chunk-HQDR43JC.cjs');
@@ -62,23 +76,9 @@ var chunkJR2YSBD5_cjs = require('../chunk-JR2YSBD5.cjs');
62
76
  require('../chunk-TMX7YFVM.cjs');
63
77
  var chunk3YZKDCWY_cjs = require('../chunk-3YZKDCWY.cjs');
64
78
  require('../chunk-SJSGSHIT.cjs');
79
+ require('../chunk-PPCATBOY.cjs');
65
80
  require('../chunk-ZW6FPIFC.cjs');
66
81
  require('../chunk-ZT5MIFLC.cjs');
67
- require('../chunk-5SKHK3BG.cjs');
68
- require('../chunk-IDCD5TEZ.cjs');
69
- require('../chunk-M2FOXGJU.cjs');
70
- require('../chunk-5F4DCIHS.cjs');
71
- require('../chunk-MCXS6X37.cjs');
72
- require('../chunk-KQF7POTG.cjs');
73
- require('../chunk-75BNMCUX.cjs');
74
- require('../chunk-IN6ILI5A.cjs');
75
- var chunkHSLPFBK2_cjs = require('../chunk-HSLPFBK2.cjs');
76
- require('../chunk-FX3K6LNZ.cjs');
77
- var chunkQGVOT7E4_cjs = require('../chunk-QGVOT7E4.cjs');
78
- var chunkQRAQZTJE_cjs = require('../chunk-QRAQZTJE.cjs');
79
- var chunkUDSHVNU3_cjs = require('../chunk-UDSHVNU3.cjs');
80
- require('../chunk-IPSHAMO2.cjs');
81
- require('../chunk-PPCATBOY.cjs');
82
82
  require('../chunk-LJJJ6CYH.cjs');
83
83
  var chunkTKHCIHE2_cjs = require('../chunk-TKHCIHE2.cjs');
84
84
  require('../chunk-JDFBEGQO.cjs');
@@ -107,11 +107,11 @@ function withSteps(workflow, steps, layout) {
107
107
  const run = workflow.run.kind === "steps" ? workflow.run : { kind: "steps", steps: [] };
108
108
  return {
109
109
  ...workflow,
110
- run: { ...run, steps: chunkQGVOT7E4_cjs.orderSteps(steps), layout: layout ?? run.layout }
110
+ run: { ...run, steps: chunkEQTZQD66_cjs.orderSteps(steps), layout: layout ?? run.layout }
111
111
  };
112
112
  }
113
113
  var layoutOf = (workflow) => workflow.run.kind === "steps" && workflow.run.layout || {};
114
- var explicit = (steps) => steps.map((s) => ({ ...s, after: chunkQGVOT7E4_cjs.stepDependencies(steps, s.id) }));
114
+ var explicit = (steps) => steps.map((s) => ({ ...s, after: chunkEQTZQD66_cjs.stepDependencies(steps, s.id) }));
115
115
  function stepIdFor(steps, title) {
116
116
  const base = title.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").replace(/^[^a-z]+/, "") || "step";
117
117
  const taken = new Set(steps.map((s) => s.id));
@@ -158,7 +158,7 @@ function blankStep(kind, id, title) {
158
158
  }
159
159
  }
160
160
  function addStep(workflow, kind, options = {}) {
161
- const steps = explicit(chunkQGVOT7E4_cjs.workflowSteps(workflow));
161
+ const steps = explicit(chunkEQTZQD66_cjs.workflowSteps(workflow));
162
162
  const title = options.title ?? DEFAULT_TITLES[kind];
163
163
  const id = stepIdFor(steps, title);
164
164
  const step = { ...blankStep(kind, id, title), after: options.after ? [options.after] : [] };
@@ -167,7 +167,7 @@ function addStep(workflow, kind, options = {}) {
167
167
  return { workflow: withSteps(workflow, [...steps, step], layout), id };
168
168
  }
169
169
  function removeStep(workflow, id) {
170
- const steps = explicit(chunkQGVOT7E4_cjs.workflowSteps(workflow));
170
+ const steps = explicit(chunkEQTZQD66_cjs.workflowSteps(workflow));
171
171
  const removed = steps.find((s) => s.id === id);
172
172
  if (!removed) return workflow;
173
173
  const bridged = steps.filter((s) => s.id !== id).map(
@@ -180,8 +180,8 @@ function removeStep(workflow, id) {
180
180
  return withSteps(workflow, bridged, layout);
181
181
  }
182
182
  function connectSteps(workflow, from, to) {
183
- const steps = explicit(chunkQGVOT7E4_cjs.workflowSteps(workflow));
184
- if (from === to || !steps.some((s) => s.id === from) || chunkQGVOT7E4_cjs.dependsOn(steps, from, to)) {
183
+ const steps = explicit(chunkEQTZQD66_cjs.workflowSteps(workflow));
184
+ if (from === to || !steps.some((s) => s.id === from) || chunkEQTZQD66_cjs.dependsOn(steps, from, to)) {
185
185
  return workflow;
186
186
  }
187
187
  return withSteps(
@@ -191,16 +191,16 @@ function connectSteps(workflow, from, to) {
191
191
  )
192
192
  );
193
193
  }
194
- var wouldCycle = (workflow, from, to) => from === to || chunkQGVOT7E4_cjs.dependsOn(chunkQGVOT7E4_cjs.workflowSteps(workflow), from, to);
194
+ var wouldCycle = (workflow, from, to) => from === to || chunkEQTZQD66_cjs.dependsOn(chunkEQTZQD66_cjs.workflowSteps(workflow), from, to);
195
195
  function disconnectSteps(workflow, from, to) {
196
- const steps = explicit(chunkQGVOT7E4_cjs.workflowSteps(workflow));
196
+ const steps = explicit(chunkEQTZQD66_cjs.workflowSteps(workflow));
197
197
  return withSteps(
198
198
  workflow,
199
199
  steps.map((s) => s.id === to ? { ...s, after: (s.after ?? []).filter((d) => d !== from) } : s)
200
200
  );
201
201
  }
202
202
  function updateStep(workflow, id, patch) {
203
- const steps = explicit(chunkQGVOT7E4_cjs.workflowSteps(workflow));
203
+ const steps = explicit(chunkEQTZQD66_cjs.workflowSteps(workflow));
204
204
  return withSteps(
205
205
  workflow,
206
206
  steps.map(
@@ -214,7 +214,7 @@ var renameIn = (text, from, to) => text.replace(
214
214
  );
215
215
  function renameInput(workflow, from, to) {
216
216
  if (from === to) return workflow;
217
- const steps = chunkQGVOT7E4_cjs.workflowSteps(workflow).map((s) => {
217
+ const steps = chunkEQTZQD66_cjs.workflowSteps(workflow).map((s) => {
218
218
  if (s.kind === "agent")
219
219
  return {
220
220
  ...s,
@@ -263,13 +263,13 @@ function renameInput(workflow, from, to) {
263
263
  var renamePerson = (a, from, to) => "input" in a && a.input === from ? { input: to } : a;
264
264
  var renameRef = (r, from, to) => "input" in r && r.input === from ? { input: to } : r;
265
265
  function moveStep(workflow, id, position) {
266
- return withSteps(workflow, chunkQGVOT7E4_cjs.workflowSteps(workflow), { ...layoutOf(workflow), [id]: position });
266
+ return withSteps(workflow, chunkEQTZQD66_cjs.workflowSteps(workflow), { ...layoutOf(workflow), [id]: position });
267
267
  }
268
268
  var COLUMN = 300;
269
269
  var ROW = 140;
270
270
  function autoLayout(steps) {
271
271
  const layout = {};
272
- chunkQGVOT7E4_cjs.stepLevels(steps).forEach(
272
+ chunkEQTZQD66_cjs.stepLevels(steps).forEach(
273
273
  (level, x) => level.forEach((s, y) => {
274
274
  layout[s.id] = { x: x * COLUMN, y: (y - (level.length - 1) / 2) * ROW };
275
275
  })
@@ -277,7 +277,7 @@ function autoLayout(steps) {
277
277
  return layout;
278
278
  }
279
279
  function layoutWithDefaults(workflow) {
280
- const auto = autoLayout(chunkQGVOT7E4_cjs.workflowSteps(workflow));
280
+ const auto = autoLayout(chunkEQTZQD66_cjs.workflowSteps(workflow));
281
281
  return { ...auto, ...layoutOf(workflow) };
282
282
  }
283
283
  var DEFAULT_SIGNALS_EDITOR_LABELS = {
@@ -374,9 +374,9 @@ function SignalsEditor({
374
374
  {
375
375
  className: ui.cn(
376
376
  "space-y-1.5 rounded-md border p-2",
377
- chunkTP5PGWIO_cjs.isIncompleteSignal(signal) ? "border-destructive/50" : "border-border"
377
+ chunkQFXOTJ6G_cjs.isIncompleteSignal(signal) ? "border-destructive/50" : "border-border"
378
378
  ),
379
- "data-incomplete": chunkTP5PGWIO_cjs.isIncompleteSignal(signal) || void 0,
379
+ "data-incomplete": chunkQFXOTJ6G_cjs.isIncompleteSignal(signal) || void 0,
380
380
  "data-testid": `${testId}-${i}`,
381
381
  children: [
382
382
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
@@ -1207,7 +1207,7 @@ function StepInspector({
1207
1207
  }) {
1208
1208
  const l = { ...DEFAULT_STEP_INSPECTOR_LABELS, ...labels };
1209
1209
  const ol = { ...DEFAULT_FIELD_OPTIONS_EDITOR_LABELS, ...optionLabels };
1210
- const steps = chunkQGVOT7E4_cjs.workflowSteps(workflow);
1210
+ const steps = chunkEQTZQD66_cjs.workflowSteps(workflow);
1211
1211
  const step = steps.find((s) => s.id === stepId);
1212
1212
  const run = workflow.run.kind === "steps" ? workflow.run : void 0;
1213
1213
  if (!step || !run) {
@@ -1234,8 +1234,8 @@ function StepInspector({
1234
1234
  const patch = (p) => onChange(updateStep(workflow, step.id, p));
1235
1235
  const al = { ...DEFAULT_STEP_ACTION_SETTINGS_LABELS, ...actionLabels };
1236
1236
  const ctx = {
1237
- earlier: chunkQGVOT7E4_cjs.upstreamSteps(steps, step.id),
1238
- fields: chunkQGVOT7E4_cjs.runFields(workflow),
1237
+ earlier: chunkEQTZQD66_cjs.upstreamSteps(steps, step.id),
1238
+ fields: chunkEQTZQD66_cjs.runFields(workflow),
1239
1239
  people,
1240
1240
  tags,
1241
1241
  documents
@@ -1256,7 +1256,7 @@ function StepInspector({
1256
1256
  )
1257
1257
  );
1258
1258
  };
1259
- const deps = chunkQGVOT7E4_cjs.stepDependencies(steps, step.id);
1259
+ const deps = chunkEQTZQD66_cjs.stepDependencies(steps, step.id);
1260
1260
  const titleOf = (id) => steps.find((s) => s.id === id)?.title ?? id;
1261
1261
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", "data-testid": `${testId}-step`, children: [
1262
1262
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
@@ -1337,7 +1337,7 @@ function StepInspector({
1337
1337
  {
1338
1338
  step,
1339
1339
  workflows,
1340
- fields: chunkQGVOT7E4_cjs.runFields(workflow).map((f) => f.name),
1340
+ fields: chunkEQTZQD66_cjs.runFields(workflow).map((f) => f.name),
1341
1341
  patch,
1342
1342
  l,
1343
1343
  testId
@@ -1398,7 +1398,7 @@ function StepInspector({
1398
1398
  testId: `${testId}-review-grid`
1399
1399
  }
1400
1400
  ),
1401
- chunkQGVOT7E4_cjs.canAssign(step) && /* @__PURE__ */ jsxRuntime.jsx(AssigneeSettings, { step, patch, ctx, l: al, testId }),
1401
+ chunkEQTZQD66_cjs.canAssign(step) && /* @__PURE__ */ jsxRuntime.jsx(AssigneeSettings, { step, patch, ctx, l: al, testId }),
1402
1402
  /* @__PURE__ */ jsxRuntime.jsx(
1403
1403
  SignalsEditor,
1404
1404
  {
@@ -1664,7 +1664,7 @@ function triggerFields(trigger, clearOthers) {
1664
1664
  return {
1665
1665
  timezone: trigger.timezone,
1666
1666
  rrule: trigger.start === "repeat" ? trigger.rrule.trim() : none,
1667
- run_at: trigger.start === "once" ? chunk7JLJH5CW_cjs.localInputToIso(trigger.runAt) : none,
1667
+ run_at: trigger.start === "once" ? chunk5A6T4W46_cjs.localInputToIso(trigger.runAt) : none,
1668
1668
  event_kind: trigger.start === "event" ? trigger.eventKind.trim() : none,
1669
1669
  // A step signal is `workflow_signal` narrowed to one signal name.
1670
1670
  event_filter: filter ?? none,
@@ -1680,7 +1680,7 @@ function plan(value, options) {
1680
1680
  criteria: [],
1681
1681
  max_passes: 3,
1682
1682
  documents: [],
1683
- steps: chunkTP5PGWIO_cjs.toPlanSteps(value.workflow, options)
1683
+ steps: chunkQFXOTJ6G_cjs.toPlanSteps(value.workflow, options)
1684
1684
  };
1685
1685
  }
1686
1686
  function builderToWorkflowRequest(value, workspaceId, options = {}) {
@@ -1715,7 +1715,7 @@ function builderToWorkflowUpdate(value, options = {}) {
1715
1715
  }
1716
1716
  function workflowRecordToBuilder(record) {
1717
1717
  const planned = record.plan?.steps ?? [];
1718
- const steps = planned.length ? chunkTP5PGWIO_cjs.fromPlanSteps(planned) : record.prompt || record.skill_ref ? [
1718
+ const steps = planned.length ? chunkQFXOTJ6G_cjs.fromPlanSteps(planned) : record.prompt || record.skill_ref ? [
1719
1719
  {
1720
1720
  id: "work",
1721
1721
  kind: "agent",
@@ -1723,7 +1723,7 @@ function workflowRecordToBuilder(record) {
1723
1723
  ...record.skill_ref ? { workflow: record.skill_ref } : { run: { kind: "prompt", promptTemplate: record.prompt } }
1724
1724
  }
1725
1725
  ] : [];
1726
- const when = chunk7JLJH5CW_cjs.workflowWhen(record);
1726
+ const when = chunk5A6T4W46_cjs.workflowWhen(record);
1727
1727
  return {
1728
1728
  workflow: {
1729
1729
  id: record.external_id,
@@ -1732,12 +1732,12 @@ function workflowRecordToBuilder(record) {
1732
1732
  inputs: [],
1733
1733
  landing: "chat",
1734
1734
  schedulable: false,
1735
- run: { kind: "steps", steps, layout: chunkTP5PGWIO_cjs.layoutFromPlanSteps(planned ?? []) }
1735
+ run: { kind: "steps", steps, layout: chunkQFXOTJ6G_cjs.layoutFromPlanSteps(planned ?? []) }
1736
1736
  },
1737
1737
  trigger: {
1738
1738
  ...DEFAULT_WORKFLOW_TRIGGER,
1739
1739
  start: when === "now" ? "manual" : when,
1740
- runAt: chunk7JLJH5CW_cjs.isoToLocalInput(record.run_at),
1740
+ runAt: chunk5A6T4W46_cjs.isoToLocalInput(record.run_at),
1741
1741
  rrule: record.rrule ?? "",
1742
1742
  timezone: record.timezone || DEFAULT_WORKFLOW_TRIGGER.timezone,
1743
1743
  eventKind: record.event_kind ?? "",
@@ -1775,6 +1775,16 @@ var DEFAULT_TRIGGER_INSPECTOR_LABELS = {
1775
1775
  runAt: "When",
1776
1776
  event: "Event",
1777
1777
  eventPlaceholder: "Pick an event",
1778
+ sender: "From (email address)",
1779
+ senderPlaceholder: "x@company.com",
1780
+ documentReason: "Kind of new version",
1781
+ documentReasonHint: "Starts when someone else saves a new version of a document that already exists. A first upload does not start it.",
1782
+ documentReasons: {
1783
+ any: "Any new version",
1784
+ upload: "Uploaded as a new version",
1785
+ edit: "Edited",
1786
+ signed: "Signed"
1787
+ },
1778
1788
  stepSignals: "When a step signals",
1779
1789
  signal: "Signal",
1780
1790
  signalPlaceholder: "e.g. risk-high",
@@ -1793,7 +1803,7 @@ function triggerSummary(trigger, options = {}) {
1793
1803
  case "once":
1794
1804
  return trigger.runAt ? new Date(trigger.runAt).toLocaleString() : l.starts.once;
1795
1805
  case "repeat":
1796
- return trigger.rrule ? chunkTP5PGWIO_cjs.describeRRule(trigger.rrule) : l.starts.repeat;
1806
+ return trigger.rrule ? chunkQFXOTJ6G_cjs.describeRRule(trigger.rrule) : l.starts.repeat;
1797
1807
  case "event":
1798
1808
  if (isSignalTrigger(trigger))
1799
1809
  return trigger.signal ? l.signalSummary.replace("{signal}", trigger.signal) : l.stepSignals;
@@ -1852,7 +1862,7 @@ function TriggerInspector({
1852
1862
  }
1853
1863
  )
1854
1864
  ] }),
1855
- trigger.start === "repeat" && /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.RecurrenceBuilder, { rrule: trigger.rrule, onChange: (rrule) => set({ rrule }) }),
1865
+ trigger.start === "repeat" && /* @__PURE__ */ jsxRuntime.jsx(chunkTW4RV3QK_cjs.RecurrenceBuilder, { rrule: trigger.rrule, onChange: (rrule) => set({ rrule }) }),
1856
1866
  trigger.start === "event" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
1857
1867
  /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { className: "text-xs", children: l.event }),
1858
1868
  /* @__PURE__ */ jsxRuntime.jsxs(
@@ -1869,6 +1879,52 @@ function TriggerInspector({
1869
1879
  }
1870
1880
  )
1871
1881
  ] }),
1882
+ trigger.start === "event" && trigger.eventKind === "mail_document_received" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
1883
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { className: "text-xs", htmlFor: `${testId}-sender`, children: l.sender }),
1884
+ /* @__PURE__ */ jsxRuntime.jsx(
1885
+ ui.Input,
1886
+ {
1887
+ id: `${testId}-sender`,
1888
+ type: "email",
1889
+ value: String(trigger.eventFilter?.sender ?? ""),
1890
+ placeholder: l.senderPlaceholder,
1891
+ onChange: (e) => {
1892
+ const sender = e.target.value.trim().toLowerCase();
1893
+ set({ eventFilter: sender ? { sender } : void 0 });
1894
+ },
1895
+ "data-testid": `${testId}-sender`
1896
+ }
1897
+ )
1898
+ ] }),
1899
+ trigger.start === "event" && trigger.eventKind === "document_activity" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
1900
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { className: "text-xs", htmlFor: `${testId}-reason`, children: l.documentReason }),
1901
+ /* @__PURE__ */ jsxRuntime.jsxs(
1902
+ "select",
1903
+ {
1904
+ id: `${testId}-reason`,
1905
+ className: selectClass3,
1906
+ value: String(trigger.eventFilter?.reason ?? ""),
1907
+ onChange: (e) => set({ eventFilter: e.target.value ? { reason: e.target.value } : void 0 }),
1908
+ "aria-describedby": `${testId}-reason-hint`,
1909
+ "data-testid": `${testId}-reason`,
1910
+ children: [
1911
+ /* @__PURE__ */ jsxRuntime.jsx("option", { value: "", children: l.documentReasons.any }),
1912
+ /* @__PURE__ */ jsxRuntime.jsx("option", { value: "upload", children: l.documentReasons.upload }),
1913
+ /* @__PURE__ */ jsxRuntime.jsx("option", { value: "edit", children: l.documentReasons.edit }),
1914
+ /* @__PURE__ */ jsxRuntime.jsx("option", { value: "signed", children: l.documentReasons.signed })
1915
+ ]
1916
+ }
1917
+ ),
1918
+ /* @__PURE__ */ jsxRuntime.jsx(
1919
+ "p",
1920
+ {
1921
+ id: `${testId}-reason-hint`,
1922
+ className: "text-xs text-muted-foreground",
1923
+ "data-testid": `${testId}-reason-hint`,
1924
+ children: l.documentReasonHint
1925
+ }
1926
+ )
1927
+ ] }),
1872
1928
  isSignalTrigger(trigger) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
1873
1929
  /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { className: "text-xs", htmlFor: `${testId}-signal`, children: l.signal }),
1874
1930
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -1904,7 +1960,7 @@ function TriggerInspector({
1904
1960
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
1905
1961
  /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { className: "text-xs", children: l.agent }),
1906
1962
  /* @__PURE__ */ jsxRuntime.jsx(
1907
- chunkWXUU3COI_cjs.AgentSelect,
1963
+ chunk6NT377PS_cjs.AgentSelect,
1908
1964
  {
1909
1965
  agents,
1910
1966
  value: trigger.agentId,
@@ -1972,7 +2028,7 @@ function revealCenter(node, view, frame, reserveRight = 0) {
1972
2028
  };
1973
2029
  }
1974
2030
  var DEFAULT_WORKFLOW_CANVAS_LABELS = {
1975
- ...chunkHSLPFBK2_cjs.DEFAULT_STEP_KIND_LABELS,
2031
+ ...chunkVL7ZX4KQ_cjs.DEFAULT_STEP_KIND_LABELS,
1976
2032
  redline: "Tracked changes",
1977
2033
  branch: "Branch",
1978
2034
  kindHints: {
@@ -2003,7 +2059,7 @@ var DEFAULT_WORKFLOW_CANVAS_LABELS = {
2003
2059
  fitView: "Fit view"
2004
2060
  };
2005
2061
  var TRIGGER_NODE = "__trigger";
2006
- var KINDS = chunkHSLPFBK2_cjs.WORKFLOW_STEP_KINDS;
2062
+ var KINDS = chunkVL7ZX4KQ_cjs.WORKFLOW_STEP_KINDS;
2007
2063
  function AddNext({
2008
2064
  from,
2009
2065
  onAdd,
@@ -2025,7 +2081,7 @@ function AddNext({
2025
2081
  /* @__PURE__ */ jsxRuntime.jsxs(ui.PopoverContent, { side: "right", align: "start", className: "w-60 p-1.5", children: [
2026
2082
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "px-2 pb-1 pt-0.5 text-xs font-medium text-muted-foreground", children: l.addNext }),
2027
2083
  KINDS.map((kind) => {
2028
- const Icon = chunkHSLPFBK2_cjs.STEP_KIND_ICONS[kind];
2084
+ const Icon = chunkVL7ZX4KQ_cjs.STEP_KIND_ICONS[kind];
2029
2085
  return /* @__PURE__ */ jsxRuntime.jsxs(
2030
2086
  "button",
2031
2087
  {
@@ -2064,8 +2120,8 @@ function PhaseMark({ phase }) {
2064
2120
  }
2065
2121
  function StepNode({ data }) {
2066
2122
  const { step, phase, summary, assignee, icon, l, onAdd, testId } = data;
2067
- const kind = chunkHSLPFBK2_cjs.stepKindOf(step);
2068
- const KindIcon = chunkHSLPFBK2_cjs.STEP_KIND_ICONS[kind];
2123
+ const kind = chunkVL7ZX4KQ_cjs.stepKindOf(step);
2124
+ const KindIcon = chunkVL7ZX4KQ_cjs.STEP_KIND_ICONS[kind];
2069
2125
  const redline = step.kind === "agent" && !!step.editDocument;
2070
2126
  return /* @__PURE__ */ jsxRuntime.jsxs(
2071
2127
  "div",
@@ -2201,12 +2257,12 @@ function WorkflowCanvas({
2201
2257
  testId = "workflow-canvas"
2202
2258
  }) {
2203
2259
  const l = react.useMemo(() => ({ ...DEFAULT_WORKFLOW_CANVAS_LABELS, ...labels }), [labels]);
2204
- const steps = chunkQGVOT7E4_cjs.workflowSteps(workflow);
2260
+ const steps = chunkEQTZQD66_cjs.workflowSteps(workflow);
2205
2261
  const editable = !!onChange;
2206
2262
  const built = react.useMemo(() => {
2207
2263
  const layout = layoutWithDefaults(workflow);
2208
- const all = chunkQGVOT7E4_cjs.workflowSteps(workflow);
2209
- const roots = all.filter((s) => chunkQGVOT7E4_cjs.stepDependencies(all, s.id).length === 0);
2264
+ const all = chunkEQTZQD66_cjs.workflowSteps(workflow);
2265
+ const roots = all.filter((s) => chunkEQTZQD66_cjs.stepDependencies(all, s.id).length === 0);
2210
2266
  const triggerNode = trigger ? [
2211
2267
  {
2212
2268
  id: TRIGGER_NODE,
@@ -2255,7 +2311,7 @@ function WorkflowCanvas({
2255
2311
  react.useEffect(() => setNodes(built), [built]);
2256
2312
  const edges = react.useMemo(
2257
2313
  () => steps.flatMap((s) => {
2258
- const deps = chunkQGVOT7E4_cjs.stepDependencies(steps, s.id);
2314
+ const deps = chunkEQTZQD66_cjs.stepDependencies(steps, s.id);
2259
2315
  const from = deps.length ? deps : trigger ? [TRIGGER_NODE] : [];
2260
2316
  return from.map((d) => ({
2261
2317
  id: `${d}->${s.id}`,
@@ -2425,7 +2481,7 @@ function WorkflowCanvas({
2425
2481
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-semibold", children: l.emptyTitle }),
2426
2482
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-xs text-muted-foreground", children: l.emptyHint }),
2427
2483
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3 grid grid-cols-2 gap-2", children: KINDS.map((kind) => {
2428
- const Icon = chunkHSLPFBK2_cjs.STEP_KIND_ICONS[kind];
2484
+ const Icon = chunkVL7ZX4KQ_cjs.STEP_KIND_ICONS[kind];
2429
2485
  return /* @__PURE__ */ jsxRuntime.jsxs(
2430
2486
  "button",
2431
2487
  {
@@ -2475,7 +2531,7 @@ var DEFAULT_WORKFLOW_BUILDER_LABELS = {
2475
2531
  }
2476
2532
  };
2477
2533
  var PANEL_WIDTH = 344;
2478
- var KINDS2 = chunkHSLPFBK2_cjs.WORKFLOW_STEP_KINDS;
2534
+ var KINDS2 = chunkVL7ZX4KQ_cjs.WORKFLOW_STEP_KINDS;
2479
2535
  function WorkflowBuilder({
2480
2536
  value,
2481
2537
  onChange,
@@ -2507,12 +2563,12 @@ function WorkflowBuilder({
2507
2563
  const [mode, setMode] = react.useState("design");
2508
2564
  const [adding, setAdding] = react.useState(false);
2509
2565
  const { workflow, trigger } = value;
2510
- const steps = chunkQGVOT7E4_cjs.workflowSteps(workflow);
2511
- const problems = chunkQGVOT7E4_cjs.validateWorkflowGraph(steps);
2512
- const missing = chunkQGVOT7E4_cjs.stepConfigProblems(steps);
2566
+ const steps = chunkEQTZQD66_cjs.workflowSteps(workflow);
2567
+ const problems = chunkEQTZQD66_cjs.validateWorkflowGraph(steps);
2568
+ const missing = chunkEQTZQD66_cjs.stepConfigProblems(steps);
2513
2569
  const nameOf = (id) => people.find((p) => p.value === id)?.label;
2514
- const fields = chunkQGVOT7E4_cjs.runFields(workflow);
2515
- const assigneeOf = (step) => chunkQGVOT7E4_cjs.canAssign(step) ? chunkQGVOT7E4_cjs.assigneeName(step.assignee, { nameOf, fields }) : void 0;
2570
+ const fields = chunkEQTZQD66_cjs.runFields(workflow);
2571
+ const assigneeOf = (step) => chunkEQTZQD66_cjs.canAssign(step) ? chunkEQTZQD66_cjs.assigneeName(step.assignee, { nameOf, fields }) : void 0;
2516
2572
  const titles = react.useMemo(() => new Map(workflows.map((w) => [w.id, w.title])), [workflows]);
2517
2573
  const setWorkflow = (next) => onChange({ ...value, workflow: next });
2518
2574
  const addAfter = (from, kind) => {
@@ -2581,7 +2637,7 @@ function WorkflowBuilder({
2581
2637
  l.addStep
2582
2638
  ] }) }),
2583
2639
  /* @__PURE__ */ jsxRuntime.jsx(ui.PopoverContent, { align: "start", className: "w-64 p-1.5", children: KINDS2.map((kind) => {
2584
- const Icon = chunkHSLPFBK2_cjs.STEP_KIND_ICONS[kind];
2640
+ const Icon = chunkVL7ZX4KQ_cjs.STEP_KIND_ICONS[kind];
2585
2641
  const cls = { ...DEFAULT_WORKFLOW_CANVAS_LABELS, ...canvasLabels };
2586
2642
  return /* @__PURE__ */ jsxRuntime.jsxs(
2587
2643
  "button",
@@ -2743,13 +2799,13 @@ function WorkflowPreview({
2743
2799
  renderIcon,
2744
2800
  testId
2745
2801
  }) {
2746
- const run = chunkL4CIFLCU_cjs.useWorkflowPreview(workflow, {
2802
+ const run = chunkIIYG542W_cjs.useWorkflowPreview(workflow, {
2747
2803
  resolveWorkflow: (id) => workflows.find((w) => w.id === id),
2748
2804
  compose,
2749
2805
  answer
2750
2806
  });
2751
2807
  return /* @__PURE__ */ jsxRuntime.jsx(
2752
- chunkNQML7IUC_cjs.WorkflowRunner,
2808
+ chunkTW4RV3QK_cjs.WorkflowRunner,
2753
2809
  {
2754
2810
  workflow,
2755
2811
  run,
@@ -2820,7 +2876,7 @@ function scheduledTaskBuilderValue() {
2820
2876
  ]
2821
2877
  }
2822
2878
  },
2823
- trigger: { ...value.trigger, start: "repeat", rrule: chunkTP5PGWIO_cjs.buildRRule(chunkTP5PGWIO_cjs.DEFAULT_RECURRENCE) }
2879
+ trigger: { ...value.trigger, start: "repeat", rrule: chunkQFXOTJ6G_cjs.buildRRule(chunkQFXOTJ6G_cjs.DEFAULT_RECURRENCE) }
2824
2880
  };
2825
2881
  }
2826
2882
  var TITLE_WORDS = 6;
@@ -2843,7 +2899,12 @@ var DEFAULT_WORKFLOW_EVENT_KINDS = [
2843
2899
  { value: "workflow_completed", label: "Another workflow finishes" },
2844
2900
  { value: "workflow_signal", label: "When a step signals" },
2845
2901
  // Filter on {"language": "other", "wp_type": "source"} to act on every non-English upload (e.g. Translate).
2846
- { value: "document_processed", label: "A document finishes processing" }
2902
+ { value: "document_processed", label: "A document finishes processing" },
2903
+ {
2904
+ value: "document_activity",
2905
+ label: "Someone else saves a new version of your document"
2906
+ },
2907
+ { value: "mail_document_received", label: "An email arrives from a sender" }
2847
2908
  ];
2848
2909
  function ConnectedWorkflowBuilder({
2849
2910
  workflowId,
@@ -2895,7 +2956,7 @@ function ConnectedWorkflowBuilder({
2895
2956
  }
2896
2957
  }, [record, loaded]);
2897
2958
  const workflows = react.useMemo(() => {
2898
- const merged = chunkQRAQZTJE_cjs.mergeSkillWorkflows(hostWorkflows, skills.data ?? []);
2959
+ const merged = chunkJN5YMHGI_cjs.mergeSkillWorkflows(hostWorkflows, skills.data ?? []);
2899
2960
  return [...merged.host, ...merged.skills];
2900
2961
  }, [hostWorkflows, skills.data]);
2901
2962
  const agents = (agentsQuery.data ?? []).map((a) => ({
@@ -2904,7 +2965,7 @@ function ConnectedWorkflowBuilder({
2904
2965
  }));
2905
2966
  const tasks = conversations.filter((c) => c.status && c.status !== "done").map((c) => ({ value: c.external_id, label: c.title || l.untitledTask }));
2906
2967
  const options = { resolveWorkflow: (wid) => workflows.find((w) => w.id === wid), compose };
2907
- const problem = triggerProblem(value.trigger) ?? (chunkQGVOT7E4_cjs.validateWorkflowGraph(chunkQGVOT7E4_cjs.workflowSteps(value.workflow)).length || chunkQGVOT7E4_cjs.stepConfigProblems(chunkQGVOT7E4_cjs.workflowSteps(value.workflow)).length ? "graph" : null);
2968
+ const problem = triggerProblem(value.trigger) ?? (chunkEQTZQD66_cjs.validateWorkflowGraph(chunkEQTZQD66_cjs.workflowSteps(value.workflow)).length || chunkEQTZQD66_cjs.stepConfigProblems(chunkEQTZQD66_cjs.workflowSteps(value.workflow)).length ? "graph" : null);
2908
2969
  const busy = !!pending || create.isPending || update.isPending || run.isPending;
2909
2970
  const save = async () => {
2910
2971
  if (!workspaceId) return void 0;
@@ -3039,13 +3100,13 @@ function ConnectedWorkflowsPage({
3039
3100
  historyLabels,
3040
3101
  testId = "workflows-page"
3041
3102
  }) {
3042
- const webWorkflows = chunkUFT22LAB_cjs.useNamedWorkflows(chunk7JLJH5CW_cjs.WEB_WORKFLOWS);
3103
+ const webWorkflows = chunkPD23GDT7_cjs.useNamedWorkflows(chunk5A6T4W46_cjs.WEB_WORKFLOWS);
3043
3104
  const l = { ...DEFAULT_CONNECTED_WORKFLOWS_PAGE_LABELS, ...labels };
3044
3105
  const host = chunk3YZKDCWY_cjs.useHost();
3045
3106
  const config = host.workflows;
3046
3107
  const { openConversation, openFiles } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
3047
3108
  const openWorkflow = chunkP5AQYC4D_cjs.useOpenWorkflow();
3048
- const renderPerson = chunkHH5RDNO5_cjs.useRenderTaskPerson();
3109
+ const renderPerson = chunkAFG7YCCJ_cjs.useRenderTaskPerson();
3049
3110
  const refreshDocuments = react$2.useRefreshDocuments();
3050
3111
  const invalidateTags = react$2.useInvalidateTagData();
3051
3112
  const { data: tags = [] } = react$2.useTags();
@@ -3076,7 +3137,7 @@ function ConnectedWorkflowsPage({
3076
3137
  openHistory,
3077
3138
  closeHistoryTab,
3078
3139
  selectHistoryTab
3079
- } = chunkHH5RDNO5_cjs.useWorkflowsPageState({
3140
+ } = chunkAFG7YCCJ_cjs.useWorkflowsPageState({
3080
3141
  historyWorkflowId: requestedHistoryId ?? historyWorkflowId,
3081
3142
  onHistoryWorkflowConsumed: consumeHistory
3082
3143
  });
@@ -3125,14 +3186,14 @@ function ConnectedWorkflowsPage({
3125
3186
  await refreshDocuments(execution.document_ext_ids);
3126
3187
  await invalidateTags();
3127
3188
  const fieldIds = execution.result?.tag_ext_ids ?? runsFor?.action?.tag_ext_ids ?? [];
3128
- chunkADDQKZ5I_cjs.useAiReviewStore.getState().setRun({
3189
+ chunk734NPQNR_cjs.useAiReviewStore.getState().setRun({
3129
3190
  docIds: execution.document_ext_ids,
3130
3191
  tags: fieldIds.map((fieldId) => ({
3131
3192
  id: fieldId,
3132
3193
  name: tags.find((tag) => tag.external_id === fieldId)?.name ?? "Review"
3133
3194
  }))
3134
3195
  });
3135
- chunkADDQKZ5I_cjs.useAiReviewStore.getState().setOpen(true);
3196
+ chunk734NPQNR_cjs.useAiReviewStore.getState().setOpen(true);
3136
3197
  openFiles(
3137
3198
  execution.label_ext_id ? { filters: { [execution.label_ext_id]: "include" } } : void 0
3138
3199
  );
@@ -3144,7 +3205,7 @@ function ConnectedWorkflowsPage({
3144
3205
  return (
3145
3206
  // The page in the Workflows page's frame: padded, scrolling.
3146
3207
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-full min-h-0 w-full overflow-auto p-4 sm:p-6", children: /* @__PURE__ */ jsxRuntime.jsx(
3147
- chunkHH5RDNO5_cjs.ConnectedWorkflowRunPage,
3208
+ chunkAFG7YCCJ_cjs.ConnectedWorkflowRunPage,
3148
3209
  {
3149
3210
  workflow: running.workflow,
3150
3211
  projectFrom: running.projectFrom,
@@ -3232,7 +3293,7 @@ function ConnectedWorkflowsPage({
3232
3293
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full min-h-0 flex-col", "data-testid": testId, children: [
3233
3294
  pageHeader && /* @__PURE__ */ jsxRuntime.jsx(chunkNSD37OF5_cjs.PageHeader, { ...pageHeader }),
3234
3295
  /* @__PURE__ */ jsxRuntime.jsx(
3235
- chunk5GA65VBW_cjs.ConnectedWorkflowsTable,
3296
+ chunkXX5SH4WE_cjs.ConnectedWorkflowsTable,
3236
3297
  {
3237
3298
  onOpenTemplate: (id) => openBuilder({ kind: "template", id }),
3238
3299
  tabs: [
@@ -3262,7 +3323,7 @@ function ConnectedWorkflowsPage({
3262
3323
  }
3263
3324
  },
3264
3325
  content: hostTab ? hostTab.content : runsFor ? /* @__PURE__ */ jsxRuntime.jsx(
3265
- chunkHH5RDNO5_cjs.ConnectedWorkflowHistory,
3326
+ chunkAFG7YCCJ_cjs.ConnectedWorkflowHistory,
3266
3327
  {
3267
3328
  inline: true,
3268
3329
  hideHeader: true,
@@ -3287,7 +3348,7 @@ function ConnectedWorkflowsPage({
3287
3348
  ) : void 0,
3288
3349
  automationsOnly: true,
3289
3350
  gridId: "automations-grid-v1",
3290
- describeTrigger: (workflow) => workflow.on_demand ? l.manualTrigger : chunkTP5PGWIO_cjs.describeTrigger(workflow),
3351
+ describeTrigger: (workflow) => workflow.on_demand ? l.manualTrigger : chunkQFXOTJ6G_cjs.describeTrigger(workflow),
3291
3352
  formatDate: ui.formatFriendlyDate,
3292
3353
  renderPerson,
3293
3354
  onViewRuns: showHistory,
@@ -3326,7 +3387,7 @@ function ConnectedWorkflowsPage({
3326
3387
  }
3327
3388
  ),
3328
3389
  /* @__PURE__ */ jsxRuntime.jsx(
3329
- chunkHH5RDNO5_cjs.ConnectedTaskComposer,
3390
+ chunkAFG7YCCJ_cjs.ConnectedTaskComposer,
3330
3391
  {
3331
3392
  kind: "workflow",
3332
3393
  saveOnly: true,