@powerhousedao/contributor-billing 0.1.21 → 0.1.23

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 (580) hide show
  1. package/dist/document-models/billing-statement/actions.d.ts +18 -0
  2. package/dist/document-models/billing-statement/actions.d.ts.map +1 -0
  3. package/dist/document-models/billing-statement/actions.js +9 -0
  4. package/dist/document-models/billing-statement/gen/creators.d.ts +3 -0
  5. package/dist/document-models/billing-statement/gen/creators.d.ts.map +1 -1
  6. package/dist/document-models/billing-statement/gen/creators.js +3 -0
  7. package/dist/document-models/billing-statement/gen/document-model.d.ts +2 -2
  8. package/dist/document-models/billing-statement/gen/document-model.d.ts.map +1 -1
  9. package/dist/document-models/billing-statement/gen/document-schema.d.ts +294 -0
  10. package/dist/document-models/billing-statement/gen/document-schema.d.ts.map +1 -0
  11. package/dist/document-models/billing-statement/gen/document-schema.js +33 -0
  12. package/dist/document-models/billing-statement/gen/document-type.d.ts +2 -0
  13. package/dist/document-models/billing-statement/gen/document-type.d.ts.map +1 -0
  14. package/dist/document-models/billing-statement/gen/document-type.js +1 -0
  15. package/dist/document-models/billing-statement/gen/general/actions.js +1 -1
  16. package/dist/document-models/billing-statement/gen/general/creators.d.ts +2 -2
  17. package/dist/document-models/billing-statement/gen/general/creators.d.ts.map +1 -1
  18. package/dist/document-models/billing-statement/gen/general/creators.js +5 -5
  19. package/dist/document-models/billing-statement/gen/general/operations.js +3 -1
  20. package/dist/document-models/billing-statement/gen/index.d.ts +9 -3
  21. package/dist/document-models/billing-statement/gen/index.d.ts.map +1 -1
  22. package/dist/document-models/billing-statement/gen/index.js +9 -2
  23. package/dist/document-models/billing-statement/gen/line-items/actions.js +1 -1
  24. package/dist/document-models/billing-statement/gen/line-items/creators.d.ts +2 -2
  25. package/dist/document-models/billing-statement/gen/line-items/creators.d.ts.map +1 -1
  26. package/dist/document-models/billing-statement/gen/line-items/creators.js +4 -4
  27. package/dist/document-models/billing-statement/gen/line-items/operations.js +3 -1
  28. package/dist/document-models/billing-statement/gen/ph-factories.d.ts +6 -10
  29. package/dist/document-models/billing-statement/gen/ph-factories.d.ts.map +1 -1
  30. package/dist/document-models/billing-statement/gen/ph-factories.js +1 -4
  31. package/dist/document-models/billing-statement/gen/reducer.d.ts +1 -3
  32. package/dist/document-models/billing-statement/gen/reducer.d.ts.map +1 -1
  33. package/dist/document-models/billing-statement/gen/reducer.js +18 -21
  34. package/dist/document-models/billing-statement/gen/schema/index.d.ts +1 -1
  35. package/dist/document-models/billing-statement/gen/schema/index.d.ts.map +1 -1
  36. package/dist/document-models/billing-statement/gen/schema/index.js +1 -1
  37. package/dist/document-models/billing-statement/gen/tags/actions.js +1 -1
  38. package/dist/document-models/billing-statement/gen/tags/creators.d.ts +2 -2
  39. package/dist/document-models/billing-statement/gen/tags/creators.d.ts.map +1 -1
  40. package/dist/document-models/billing-statement/gen/tags/creators.js +3 -3
  41. package/dist/document-models/billing-statement/gen/tags/operations.js +3 -1
  42. package/dist/document-models/billing-statement/gen/types.d.ts +9 -7
  43. package/dist/document-models/billing-statement/gen/types.d.ts.map +1 -1
  44. package/dist/document-models/billing-statement/gen/types.js +1 -1
  45. package/dist/document-models/billing-statement/gen/utils.d.ts +13 -20
  46. package/dist/document-models/billing-statement/gen/utils.d.ts.map +1 -1
  47. package/dist/document-models/billing-statement/gen/utils.js +45 -36
  48. package/dist/document-models/billing-statement/hooks.d.ts +11 -0
  49. package/dist/document-models/billing-statement/hooks.d.ts.map +1 -0
  50. package/dist/document-models/billing-statement/hooks.js +26 -0
  51. package/dist/document-models/billing-statement/index.d.ts +5 -25
  52. package/dist/document-models/billing-statement/index.d.ts.map +1 -1
  53. package/dist/document-models/billing-statement/index.js +5 -17
  54. package/dist/document-models/billing-statement/module.d.ts +5 -0
  55. package/dist/document-models/billing-statement/module.d.ts.map +1 -0
  56. package/dist/document-models/billing-statement/module.js +10 -0
  57. package/dist/document-models/billing-statement/src/index.d.ts +2 -0
  58. package/dist/document-models/billing-statement/src/index.d.ts.map +1 -0
  59. package/dist/document-models/billing-statement/src/index.js +1 -0
  60. package/dist/document-models/billing-statement/src/reducers/general.d.ts +2 -7
  61. package/dist/document-models/billing-statement/src/reducers/general.d.ts.map +1 -1
  62. package/dist/document-models/billing-statement/src/reducers/general.js +2 -7
  63. package/dist/document-models/billing-statement/src/reducers/line-items.d.ts +2 -7
  64. package/dist/document-models/billing-statement/src/reducers/line-items.d.ts.map +1 -1
  65. package/dist/document-models/billing-statement/src/reducers/line-items.js +1 -6
  66. package/dist/document-models/billing-statement/src/reducers/tags.d.ts +2 -7
  67. package/dist/document-models/billing-statement/src/reducers/tags.d.ts.map +1 -1
  68. package/dist/document-models/billing-statement/src/reducers/tags.js +1 -6
  69. package/dist/document-models/billing-statement/src/tests/document-model.test.js +3 -3
  70. package/dist/document-models/billing-statement/src/tests/general.test.js +3 -2
  71. package/dist/document-models/billing-statement/src/tests/line-items.test.js +2 -1
  72. package/dist/document-models/billing-statement/src/tests/tags.test.js +2 -1
  73. package/dist/document-models/billing-statement/utils.d.ts +14 -0
  74. package/dist/document-models/billing-statement/utils.d.ts.map +1 -0
  75. package/dist/document-models/billing-statement/utils.js +7 -0
  76. package/dist/document-models/document-models.d.ts +3 -0
  77. package/dist/document-models/document-models.d.ts.map +1 -0
  78. package/dist/document-models/document-models.js +10 -0
  79. package/dist/document-models/expense-report/actions.d.ts +27 -0
  80. package/dist/document-models/expense-report/actions.d.ts.map +1 -0
  81. package/dist/document-models/expense-report/actions.js +4 -0
  82. package/dist/document-models/expense-report/gen/creators.d.ts +1 -0
  83. package/dist/document-models/expense-report/gen/creators.d.ts.map +1 -1
  84. package/dist/document-models/expense-report/gen/creators.js +1 -0
  85. package/dist/document-models/expense-report/gen/document-model.d.ts +2 -2
  86. package/dist/document-models/expense-report/gen/document-model.d.ts.map +1 -1
  87. package/dist/document-models/expense-report/gen/document-schema.d.ts +199 -0
  88. package/dist/document-models/expense-report/gen/document-schema.d.ts.map +1 -0
  89. package/dist/document-models/expense-report/gen/document-schema.js +33 -0
  90. package/dist/document-models/expense-report/gen/document-type.d.ts +2 -0
  91. package/dist/document-models/expense-report/gen/document-type.d.ts.map +1 -0
  92. package/dist/document-models/expense-report/gen/document-type.js +1 -0
  93. package/dist/document-models/expense-report/gen/expense-report/actions.js +1 -1
  94. package/dist/document-models/expense-report/gen/expense-report/creators.d.ts +2 -2
  95. package/dist/document-models/expense-report/gen/expense-report/creators.d.ts.map +1 -1
  96. package/dist/document-models/expense-report/gen/expense-report/creators.js +3 -3
  97. package/dist/document-models/expense-report/gen/expense-report/operations.js +3 -1
  98. package/dist/document-models/expense-report/gen/index.d.ts +7 -3
  99. package/dist/document-models/expense-report/gen/index.d.ts.map +1 -1
  100. package/dist/document-models/expense-report/gen/index.js +7 -2
  101. package/dist/document-models/expense-report/gen/ph-factories.d.ts +6 -10
  102. package/dist/document-models/expense-report/gen/ph-factories.d.ts.map +1 -1
  103. package/dist/document-models/expense-report/gen/ph-factories.js +1 -4
  104. package/dist/document-models/expense-report/gen/reducer.d.ts +1 -3
  105. package/dist/document-models/expense-report/gen/reducer.d.ts.map +1 -1
  106. package/dist/document-models/expense-report/gen/reducer.js +34 -37
  107. package/dist/document-models/expense-report/gen/schema/index.d.ts +1 -1
  108. package/dist/document-models/expense-report/gen/schema/index.d.ts.map +1 -1
  109. package/dist/document-models/expense-report/gen/schema/index.js +1 -1
  110. package/dist/document-models/expense-report/gen/types.d.ts +9 -7
  111. package/dist/document-models/expense-report/gen/types.d.ts.map +1 -1
  112. package/dist/document-models/expense-report/gen/types.js +1 -1
  113. package/dist/document-models/expense-report/gen/utils.d.ts +13 -20
  114. package/dist/document-models/expense-report/gen/utils.d.ts.map +1 -1
  115. package/dist/document-models/expense-report/gen/utils.js +44 -35
  116. package/dist/document-models/expense-report/gen/wallet/actions.js +1 -1
  117. package/dist/document-models/expense-report/gen/wallet/creators.d.ts +2 -2
  118. package/dist/document-models/expense-report/gen/wallet/creators.d.ts.map +1 -1
  119. package/dist/document-models/expense-report/gen/wallet/creators.js +17 -17
  120. package/dist/document-models/expense-report/gen/wallet/operations.js +3 -1
  121. package/dist/document-models/expense-report/hooks.d.ts +11 -0
  122. package/dist/document-models/expense-report/hooks.d.ts.map +1 -0
  123. package/dist/document-models/expense-report/hooks.js +26 -0
  124. package/dist/document-models/expense-report/index.d.ts +5 -34
  125. package/dist/document-models/expense-report/index.d.ts.map +1 -1
  126. package/dist/document-models/expense-report/index.js +5 -17
  127. package/dist/document-models/expense-report/module.d.ts +5 -0
  128. package/dist/document-models/expense-report/module.d.ts.map +1 -0
  129. package/dist/document-models/expense-report/module.js +10 -0
  130. package/dist/document-models/expense-report/src/index.d.ts +2 -0
  131. package/dist/document-models/expense-report/src/index.d.ts.map +1 -0
  132. package/dist/document-models/expense-report/src/index.js +1 -0
  133. package/dist/document-models/expense-report/src/reducers/wallet.d.ts +2 -2
  134. package/dist/document-models/expense-report/src/reducers/wallet.d.ts.map +1 -1
  135. package/dist/document-models/expense-report/src/reducers/wallet.js +1 -1
  136. package/dist/document-models/expense-report/src/tests/document-model.test.js +4 -4
  137. package/dist/document-models/expense-report/src/tests/expense-report.test.js +3 -3
  138. package/dist/document-models/expense-report/src/tests/wallet.test.js +3 -3
  139. package/dist/document-models/expense-report/utils.d.ts +14 -0
  140. package/dist/document-models/expense-report/utils.d.ts.map +1 -0
  141. package/dist/document-models/expense-report/utils.js +7 -0
  142. package/dist/document-models/index.d.ts +8 -4
  143. package/dist/document-models/index.d.ts.map +1 -1
  144. package/dist/document-models/index.js +8 -4
  145. package/dist/document-models/integrations/actions.d.ts +15 -0
  146. package/dist/document-models/integrations/actions.d.ts.map +1 -0
  147. package/dist/document-models/integrations/actions.js +4 -0
  148. package/dist/document-models/integrations/gen/creators.d.ts +1 -0
  149. package/dist/document-models/integrations/gen/creators.d.ts.map +1 -1
  150. package/dist/document-models/integrations/gen/creators.js +1 -0
  151. package/dist/document-models/integrations/gen/document-model.d.ts +2 -2
  152. package/dist/document-models/integrations/gen/document-model.d.ts.map +1 -1
  153. package/dist/document-models/integrations/gen/document-schema.d.ts +180 -0
  154. package/dist/document-models/integrations/gen/document-schema.d.ts.map +1 -0
  155. package/dist/document-models/integrations/gen/document-schema.js +33 -0
  156. package/dist/document-models/integrations/gen/document-type.d.ts +2 -0
  157. package/dist/document-models/integrations/gen/document-type.d.ts.map +1 -0
  158. package/dist/document-models/integrations/gen/document-type.js +1 -0
  159. package/dist/document-models/integrations/gen/index.d.ts +7 -3
  160. package/dist/document-models/integrations/gen/index.d.ts.map +1 -1
  161. package/dist/document-models/integrations/gen/index.js +7 -2
  162. package/dist/document-models/integrations/gen/integrations/actions.js +1 -1
  163. package/dist/document-models/integrations/gen/integrations/creators.d.ts +2 -2
  164. package/dist/document-models/integrations/gen/integrations/creators.d.ts.map +1 -1
  165. package/dist/document-models/integrations/gen/integrations/creators.js +5 -5
  166. package/dist/document-models/integrations/gen/integrations/operations.js +3 -1
  167. package/dist/document-models/integrations/gen/ph-factories.d.ts +6 -10
  168. package/dist/document-models/integrations/gen/ph-factories.d.ts.map +1 -1
  169. package/dist/document-models/integrations/gen/ph-factories.js +4 -18
  170. package/dist/document-models/integrations/gen/reducer.d.ts +1 -3
  171. package/dist/document-models/integrations/gen/reducer.d.ts.map +1 -1
  172. package/dist/document-models/integrations/gen/reducer.js +10 -13
  173. package/dist/document-models/integrations/gen/schema/index.d.ts +1 -1
  174. package/dist/document-models/integrations/gen/schema/index.d.ts.map +1 -1
  175. package/dist/document-models/integrations/gen/schema/index.js +1 -1
  176. package/dist/document-models/integrations/gen/types.d.ts +9 -7
  177. package/dist/document-models/integrations/gen/types.d.ts.map +1 -1
  178. package/dist/document-models/integrations/gen/types.js +1 -1
  179. package/dist/document-models/integrations/gen/utils.d.ts +13 -20
  180. package/dist/document-models/integrations/gen/utils.d.ts.map +1 -1
  181. package/dist/document-models/integrations/gen/utils.js +47 -49
  182. package/dist/document-models/integrations/hooks.d.ts +11 -0
  183. package/dist/document-models/integrations/hooks.d.ts.map +1 -0
  184. package/dist/document-models/integrations/hooks.js +26 -0
  185. package/dist/document-models/integrations/index.d.ts +5 -22
  186. package/dist/document-models/integrations/index.d.ts.map +1 -1
  187. package/dist/document-models/integrations/index.js +5 -17
  188. package/dist/document-models/integrations/module.d.ts +5 -0
  189. package/dist/document-models/integrations/module.d.ts.map +1 -0
  190. package/dist/document-models/integrations/module.js +10 -0
  191. package/dist/document-models/integrations/src/index.d.ts +2 -0
  192. package/dist/document-models/integrations/src/index.d.ts.map +1 -0
  193. package/dist/document-models/integrations/src/index.js +1 -0
  194. package/dist/document-models/integrations/src/reducers/integrations.d.ts +2 -7
  195. package/dist/document-models/integrations/src/reducers/integrations.d.ts.map +1 -1
  196. package/dist/document-models/integrations/src/reducers/integrations.js +1 -6
  197. package/dist/document-models/integrations/src/tests/document-model.test.js +4 -4
  198. package/dist/document-models/integrations/src/tests/integrations.test.js +2 -1
  199. package/dist/document-models/integrations/utils.d.ts +14 -0
  200. package/dist/document-models/integrations/utils.d.ts.map +1 -0
  201. package/dist/document-models/integrations/utils.js +7 -0
  202. package/dist/document-models/invoice/actions.d.ts +40 -0
  203. package/dist/document-models/invoice/actions.d.ts.map +1 -0
  204. package/dist/document-models/invoice/actions.js +10 -0
  205. package/dist/document-models/invoice/gen/creators.d.ts +4 -0
  206. package/dist/document-models/invoice/gen/creators.d.ts.map +1 -1
  207. package/dist/document-models/invoice/gen/creators.js +4 -0
  208. package/dist/document-models/invoice/gen/document-model.d.ts +2 -2
  209. package/dist/document-models/invoice/gen/document-model.d.ts.map +1 -1
  210. package/dist/document-models/invoice/gen/document-schema.d.ts +465 -0
  211. package/dist/document-models/invoice/gen/document-schema.d.ts.map +1 -0
  212. package/dist/document-models/invoice/gen/document-schema.js +33 -0
  213. package/dist/document-models/invoice/gen/document-type.d.ts +2 -0
  214. package/dist/document-models/invoice/gen/document-type.d.ts.map +1 -0
  215. package/dist/document-models/invoice/gen/document-type.js +1 -0
  216. package/dist/document-models/invoice/gen/general/actions.js +1 -1
  217. package/dist/document-models/invoice/gen/general/creators.d.ts +2 -2
  218. package/dist/document-models/invoice/gen/general/creators.d.ts.map +1 -1
  219. package/dist/document-models/invoice/gen/general/creators.js +7 -7
  220. package/dist/document-models/invoice/gen/general/operations.js +3 -1
  221. package/dist/document-models/invoice/gen/index.d.ts +10 -3
  222. package/dist/document-models/invoice/gen/index.d.ts.map +1 -1
  223. package/dist/document-models/invoice/gen/index.js +10 -2
  224. package/dist/document-models/invoice/gen/items/actions.js +1 -1
  225. package/dist/document-models/invoice/gen/items/creators.d.ts +2 -2
  226. package/dist/document-models/invoice/gen/items/creators.d.ts.map +1 -1
  227. package/dist/document-models/invoice/gen/items/creators.js +7 -7
  228. package/dist/document-models/invoice/gen/items/operations.js +3 -1
  229. package/dist/document-models/invoice/gen/parties/actions.js +1 -1
  230. package/dist/document-models/invoice/gen/parties/creators.d.ts +2 -2
  231. package/dist/document-models/invoice/gen/parties/creators.d.ts.map +1 -1
  232. package/dist/document-models/invoice/gen/parties/creators.js +8 -8
  233. package/dist/document-models/invoice/gen/parties/operations.js +3 -1
  234. package/dist/document-models/invoice/gen/ph-factories.d.ts +6 -10
  235. package/dist/document-models/invoice/gen/ph-factories.d.ts.map +1 -1
  236. package/dist/document-models/invoice/gen/ph-factories.js +5 -5
  237. package/dist/document-models/invoice/gen/reducer.d.ts +1 -3
  238. package/dist/document-models/invoice/gen/reducer.d.ts.map +1 -1
  239. package/dist/document-models/invoice/gen/reducer.js +63 -66
  240. package/dist/document-models/invoice/gen/schema/index.d.ts +1 -1
  241. package/dist/document-models/invoice/gen/schema/index.d.ts.map +1 -1
  242. package/dist/document-models/invoice/gen/schema/index.js +1 -1
  243. package/dist/document-models/invoice/gen/schema/types.d.ts +1 -1
  244. package/dist/document-models/invoice/gen/schema/types.d.ts.map +1 -1
  245. package/dist/document-models/invoice/gen/transitions/actions.js +1 -1
  246. package/dist/document-models/invoice/gen/transitions/creators.d.ts +2 -2
  247. package/dist/document-models/invoice/gen/transitions/creators.d.ts.map +1 -1
  248. package/dist/document-models/invoice/gen/transitions/creators.js +14 -14
  249. package/dist/document-models/invoice/gen/transitions/operations.js +3 -1
  250. package/dist/document-models/invoice/gen/types.d.ts +9 -7
  251. package/dist/document-models/invoice/gen/types.d.ts.map +1 -1
  252. package/dist/document-models/invoice/gen/types.js +1 -1
  253. package/dist/document-models/invoice/gen/utils.d.ts +13 -20
  254. package/dist/document-models/invoice/gen/utils.d.ts.map +1 -1
  255. package/dist/document-models/invoice/gen/utils.js +48 -36
  256. package/dist/document-models/invoice/hooks.d.ts +11 -0
  257. package/dist/document-models/invoice/hooks.d.ts.map +1 -0
  258. package/dist/document-models/invoice/hooks.js +26 -0
  259. package/dist/document-models/invoice/index.d.ts +5 -47
  260. package/dist/document-models/invoice/index.d.ts.map +1 -1
  261. package/dist/document-models/invoice/index.js +5 -17
  262. package/dist/document-models/invoice/module.d.ts +5 -0
  263. package/dist/document-models/invoice/module.d.ts.map +1 -0
  264. package/dist/document-models/invoice/module.js +10 -0
  265. package/dist/document-models/invoice/src/index.d.ts +2 -0
  266. package/dist/document-models/invoice/src/index.d.ts.map +1 -0
  267. package/dist/document-models/invoice/src/index.js +1 -0
  268. package/dist/document-models/invoice/src/reducers/general.d.ts +2 -7
  269. package/dist/document-models/invoice/src/reducers/general.d.ts.map +1 -1
  270. package/dist/document-models/invoice/src/reducers/general.js +1 -6
  271. package/dist/document-models/invoice/src/reducers/items.d.ts +2 -7
  272. package/dist/document-models/invoice/src/reducers/items.d.ts.map +1 -1
  273. package/dist/document-models/invoice/src/reducers/items.js +1 -6
  274. package/dist/document-models/invoice/src/reducers/parties.d.ts +2 -7
  275. package/dist/document-models/invoice/src/reducers/parties.d.ts.map +1 -1
  276. package/dist/document-models/invoice/src/reducers/parties.js +1 -6
  277. package/dist/document-models/invoice/src/reducers/transitions.d.ts +2 -2
  278. package/dist/document-models/invoice/src/reducers/transitions.d.ts.map +1 -1
  279. package/dist/document-models/invoice/src/reducers/transitions.js +1 -1
  280. package/dist/document-models/invoice/src/tests/document-model.test.js +3 -3
  281. package/dist/document-models/invoice/src/tests/general.test.js +4 -4
  282. package/dist/document-models/invoice/src/tests/items.test.js +5 -5
  283. package/dist/document-models/invoice/src/tests/parties.test.js +8 -8
  284. package/dist/document-models/invoice/src/tests/transitions.test.js +2 -1
  285. package/dist/document-models/invoice/utils.d.ts +14 -0
  286. package/dist/document-models/invoice/utils.d.ts.map +1 -0
  287. package/dist/document-models/invoice/utils.js +7 -0
  288. package/dist/editors/billing-statement/components/objectSetTable.js +3 -1
  289. package/dist/editors/billing-statement/config.d.ts +3 -0
  290. package/dist/editors/billing-statement/config.d.ts.map +1 -0
  291. package/dist/editors/billing-statement/config.js +3 -0
  292. package/dist/editors/billing-statement/editor.d.ts.map +1 -1
  293. package/dist/editors/billing-statement/editor.js +18 -10
  294. package/dist/editors/billing-statement/lineItemTags/lineItemTags.d.ts +2 -2
  295. package/dist/editors/billing-statement/lineItemTags/lineItemTags.d.ts.map +1 -1
  296. package/dist/editors/billing-statement/lineItemTags/lineItemTags.js +2 -2
  297. package/dist/editors/billing-statement/lineItemTags/tagMapping.d.ts +2 -2
  298. package/dist/editors/billing-statement/lineItemTags/tagMapping.d.ts.map +1 -1
  299. package/dist/editors/billing-statement/lineItemTags/tagMapping.js +2 -0
  300. package/dist/editors/billing-statement/module.d.ts +3 -0
  301. package/dist/editors/billing-statement/module.d.ts.map +1 -0
  302. package/dist/editors/billing-statement/module.js +9 -0
  303. package/dist/editors/contributor-billing/components/DriveExplorer.d.ts +2 -9
  304. package/dist/editors/contributor-billing/components/DriveExplorer.d.ts.map +1 -1
  305. package/dist/editors/contributor-billing/components/DriveExplorer.js +13 -20
  306. package/dist/editors/contributor-billing/components/InvoiceTable/HeaderControls.d.ts +8 -1
  307. package/dist/editors/contributor-billing/components/InvoiceTable/HeaderControls.d.ts.map +1 -1
  308. package/dist/editors/contributor-billing/components/InvoiceTable/HeaderControls.js +90 -5
  309. package/dist/editors/contributor-billing/components/InvoiceTable/HeaderStats.js +3 -3
  310. package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTable.d.ts +4 -4
  311. package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTable.d.ts.map +1 -1
  312. package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTable.js +7 -6
  313. package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableRow.d.ts.map +1 -1
  314. package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableRow.js +3 -8
  315. package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableSection.d.ts +3 -3
  316. package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableSection.d.ts.map +1 -1
  317. package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableSection.js +1 -1
  318. package/dist/editors/contributor-billing/config.d.ts +3 -0
  319. package/dist/editors/contributor-billing/config.d.ts.map +1 -0
  320. package/dist/editors/contributor-billing/config.js +7 -0
  321. package/dist/editors/contributor-billing/editor.d.ts +2 -1
  322. package/dist/editors/contributor-billing/editor.d.ts.map +1 -1
  323. package/dist/editors/contributor-billing/editor.js +7 -2
  324. package/dist/editors/contributor-billing/module.d.ts +3 -0
  325. package/dist/editors/contributor-billing/module.d.ts.map +1 -0
  326. package/dist/editors/contributor-billing/module.js +9 -0
  327. package/dist/editors/editors.d.ts +3 -0
  328. package/dist/editors/editors.d.ts.map +1 -0
  329. package/dist/editors/editors.js +12 -0
  330. package/dist/editors/expense-report/components/AddBillingStatementModal.js +2 -2
  331. package/dist/editors/expense-report/components/WalletsTable.d.ts.map +1 -1
  332. package/dist/editors/expense-report/components/WalletsTable.js +15 -8
  333. package/dist/editors/expense-report/config.d.ts +3 -0
  334. package/dist/editors/expense-report/config.d.ts.map +1 -0
  335. package/dist/editors/expense-report/config.js +3 -0
  336. package/dist/editors/expense-report/editor.d.ts +1 -1
  337. package/dist/editors/expense-report/editor.d.ts.map +1 -1
  338. package/dist/editors/expense-report/editor.js +12 -3
  339. package/dist/editors/expense-report/hooks/useSyncWallet.js +2 -2
  340. package/dist/editors/expense-report/hooks/useWalletSync.js +2 -2
  341. package/dist/editors/expense-report/module.d.ts +3 -0
  342. package/dist/editors/expense-report/module.d.ts.map +1 -0
  343. package/dist/editors/expense-report/module.js +9 -0
  344. package/dist/editors/hooks/useExpenseReportDocument.d.ts +2 -2
  345. package/dist/editors/hooks/useExpenseReportDocument.d.ts.map +1 -1
  346. package/dist/editors/hooks/useIntegrationsDocument.d.ts +2 -2
  347. package/dist/editors/hooks/useIntegrationsDocument.d.ts.map +1 -1
  348. package/dist/editors/index.d.ts +5 -5
  349. package/dist/editors/index.d.ts.map +1 -1
  350. package/dist/editors/index.js +5 -5
  351. package/dist/editors/integrations/config.d.ts +3 -0
  352. package/dist/editors/integrations/config.d.ts.map +1 -0
  353. package/dist/editors/integrations/config.js +3 -0
  354. package/dist/editors/integrations/editor.d.ts.map +1 -1
  355. package/dist/editors/integrations/editor.js +74 -52
  356. package/dist/editors/integrations/module.d.ts +3 -0
  357. package/dist/editors/integrations/module.d.ts.map +1 -0
  358. package/dist/editors/integrations/module.js +9 -0
  359. package/dist/editors/invoice/InvoicePDF.d.ts +1 -1
  360. package/dist/editors/invoice/InvoicePDF.d.ts.map +1 -1
  361. package/dist/editors/invoice/components/confirmationModal.js +1 -0
  362. package/dist/editors/invoice/components/countryForm.d.ts +1 -1
  363. package/dist/editors/invoice/components/countryForm.d.ts.map +1 -1
  364. package/dist/editors/invoice/components/countryForm.js +1 -0
  365. package/dist/editors/invoice/components/currencyForm.d.ts +1 -1
  366. package/dist/editors/invoice/components/currencyForm.d.ts.map +1 -1
  367. package/dist/editors/invoice/components/currencyForm.js +1 -0
  368. package/dist/editors/invoice/components/datePicker.js +1 -0
  369. package/dist/editors/invoice/components/inputField.d.ts +1 -1
  370. package/dist/editors/invoice/components/inputField.d.ts.map +1 -1
  371. package/dist/editors/invoice/components/inputField.js +1 -0
  372. package/dist/editors/invoice/components/selectField.d.ts.map +1 -1
  373. package/dist/editors/invoice/components/selectField.js +0 -12
  374. package/dist/editors/invoice/components/statusModalComponents.js +4 -4
  375. package/dist/editors/invoice/config.d.ts +3 -0
  376. package/dist/editors/invoice/config.d.ts.map +1 -0
  377. package/dist/editors/invoice/config.js +3 -0
  378. package/dist/editors/invoice/editor.d.ts.map +1 -1
  379. package/dist/editors/invoice/editor.js +103 -95
  380. package/dist/editors/invoice/exportUBL.d.ts +1 -1
  381. package/dist/editors/invoice/exportUBL.d.ts.map +1 -1
  382. package/dist/editors/invoice/ingestPDF.d.ts +1 -1
  383. package/dist/editors/invoice/ingestPDF.d.ts.map +1 -1
  384. package/dist/editors/invoice/ingestPDF.js +34 -18
  385. package/dist/editors/invoice/ingestUBL.d.ts +1 -1
  386. package/dist/editors/invoice/ingestUBL.d.ts.map +1 -1
  387. package/dist/editors/invoice/invoiceToGnosis.js +1 -1
  388. package/dist/editors/invoice/legalEntity/bankSection.d.ts +3 -3
  389. package/dist/editors/invoice/legalEntity/bankSection.d.ts.map +1 -1
  390. package/dist/editors/invoice/legalEntity/common.d.ts +1 -1
  391. package/dist/editors/invoice/legalEntity/common.d.ts.map +1 -1
  392. package/dist/editors/invoice/legalEntity/legalEntity.d.ts +3 -3
  393. package/dist/editors/invoice/legalEntity/legalEntity.d.ts.map +1 -1
  394. package/dist/editors/invoice/legalEntity/legalEntity.js +1 -0
  395. package/dist/editors/invoice/legalEntity/walletSection.d.ts +3 -3
  396. package/dist/editors/invoice/legalEntity/walletSection.d.ts.map +1 -1
  397. package/dist/editors/invoice/legalEntity/walletSection.js +5 -6
  398. package/dist/editors/invoice/lineItemTags/lineItemTags.d.ts +2 -2
  399. package/dist/editors/invoice/lineItemTags/lineItemTags.d.ts.map +1 -1
  400. package/dist/editors/invoice/lineItemTags/lineItemTags.js +2 -2
  401. package/dist/editors/invoice/lineItemTags/tagMapping.d.ts +1 -1
  402. package/dist/editors/invoice/lineItemTags/tagMapping.d.ts.map +1 -1
  403. package/dist/editors/invoice/lineItemTags/tagMobileModal.d.ts +2 -2
  404. package/dist/editors/invoice/lineItemTags/tagMobileModal.d.ts.map +1 -1
  405. package/dist/editors/invoice/lineItemTags/tagMobileModal.js +2 -2
  406. package/dist/editors/invoice/lineItems.d.ts.map +1 -1
  407. package/dist/editors/invoice/lineItems.js +3 -1
  408. package/dist/editors/invoice/module.d.ts +3 -0
  409. package/dist/editors/invoice/module.d.ts.map +1 -0
  410. package/dist/editors/invoice/module.js +9 -0
  411. package/dist/editors/invoice/requestFinance.js +2 -2
  412. package/dist/editors/invoice/uploadPdfChunked.js +1 -1
  413. package/dist/editors/invoice/utils/utils.d.ts +25 -0
  414. package/dist/editors/invoice/utils/utils.d.ts.map +1 -1
  415. package/dist/editors/invoice/utils/utils.js +66 -0
  416. package/dist/editors/invoice/validation/validationHandler.d.ts +1 -1
  417. package/dist/editors/invoice/validation/validationHandler.d.ts.map +1 -1
  418. package/dist/editors/invoice/validation/validationHandler.js +1 -1
  419. package/dist/editors/invoice/validation/validationManager.d.ts +1 -1
  420. package/dist/editors/invoice/validation/validationManager.d.ts.map +1 -1
  421. package/dist/editors/invoice/validation/validationManager.js +1 -0
  422. package/dist/editors/invoice/validation/validationRules.d.ts +1 -1
  423. package/dist/editors/invoice/validation/validationRules.d.ts.map +1 -1
  424. package/dist/index.d.ts +3 -3
  425. package/dist/index.d.ts.map +1 -1
  426. package/dist/index.js +2 -4
  427. package/dist/processors/index.d.ts +1 -1
  428. package/dist/processors/index.d.ts.map +1 -1
  429. package/dist/processors/line-item-processor/index.d.ts +2 -2
  430. package/dist/processors/line-item-processor/index.d.ts.map +1 -1
  431. package/dist/processors/line-item-processor/index.js +2 -1
  432. package/dist/scripts/invoice/autoTagging.d.ts +32 -0
  433. package/dist/scripts/invoice/autoTagging.d.ts.map +1 -0
  434. package/dist/scripts/invoice/autoTagging.js +341 -0
  435. package/dist/scripts/invoice/gnosisTransactionBuilder.d.ts.map +1 -1
  436. package/dist/scripts/invoice/gnosisTransactionBuilder.js +4 -9
  437. package/dist/scripts/invoice/pdfToClaudeAI.d.ts.map +1 -1
  438. package/dist/scripts/invoice/pdfToClaudeAI.js +8 -4
  439. package/dist/style.css +276 -4773
  440. package/dist/subgraphs/billing-statement/index.d.ts +2 -2
  441. package/dist/subgraphs/billing-statement/index.d.ts.map +1 -1
  442. package/dist/subgraphs/billing-statement/index.js +2 -2
  443. package/dist/subgraphs/billing-statement/resolvers.d.ts +2 -2
  444. package/dist/subgraphs/billing-statement/resolvers.d.ts.map +1 -1
  445. package/dist/subgraphs/billing-statement/resolvers.js +1 -0
  446. package/dist/subgraphs/expense-report/index.d.ts +2 -2
  447. package/dist/subgraphs/expense-report/index.d.ts.map +1 -1
  448. package/dist/subgraphs/expense-report/index.js +2 -2
  449. package/dist/subgraphs/expense-report/resolvers.d.ts +2 -2
  450. package/dist/subgraphs/expense-report/resolvers.d.ts.map +1 -1
  451. package/dist/subgraphs/expense-report/resolvers.js +1 -0
  452. package/dist/subgraphs/integrations/index.d.ts +2 -2
  453. package/dist/subgraphs/integrations/index.d.ts.map +1 -1
  454. package/dist/subgraphs/integrations/index.js +2 -2
  455. package/dist/subgraphs/integrations/resolvers.d.ts +2 -2
  456. package/dist/subgraphs/integrations/resolvers.d.ts.map +1 -1
  457. package/dist/subgraphs/integrations/resolvers.js +1 -0
  458. package/dist/subgraphs/invoice/index.d.ts +2 -2
  459. package/dist/subgraphs/invoice/index.d.ts.map +1 -1
  460. package/dist/subgraphs/invoice/index.js +2 -2
  461. package/dist/subgraphs/invoice/resolvers.d.ts +2 -2
  462. package/dist/subgraphs/invoice/resolvers.d.ts.map +1 -1
  463. package/dist/subgraphs/invoice/resolvers.js +1 -0
  464. package/dist/vite.config.d.ts +3 -0
  465. package/dist/vite.config.d.ts.map +1 -0
  466. package/dist/vite.config.js +13 -0
  467. package/package.json +66 -49
  468. package/dist/document-models/billing-statement/gen/general/object.d.ts +0 -9
  469. package/dist/document-models/billing-statement/gen/general/object.d.ts.map +0 -1
  470. package/dist/document-models/billing-statement/gen/general/object.js +0 -13
  471. package/dist/document-models/billing-statement/gen/line-items/object.d.ts +0 -8
  472. package/dist/document-models/billing-statement/gen/line-items/object.d.ts.map +0 -1
  473. package/dist/document-models/billing-statement/gen/line-items/object.js +0 -10
  474. package/dist/document-models/billing-statement/gen/object.d.ts +0 -19
  475. package/dist/document-models/billing-statement/gen/object.d.ts.map +0 -1
  476. package/dist/document-models/billing-statement/gen/object.js +0 -33
  477. package/dist/document-models/billing-statement/gen/tags/object.d.ts +0 -7
  478. package/dist/document-models/billing-statement/gen/tags/object.d.ts.map +0 -1
  479. package/dist/document-models/billing-statement/gen/tags/object.js +0 -7
  480. package/dist/document-models/expense-report/gen/expense-report/object.d.ts +0 -7
  481. package/dist/document-models/expense-report/gen/expense-report/object.d.ts.map +0 -1
  482. package/dist/document-models/expense-report/gen/expense-report/object.js +0 -7
  483. package/dist/document-models/expense-report/gen/object.d.ts +0 -15
  484. package/dist/document-models/expense-report/gen/object.d.ts.map +0 -1
  485. package/dist/document-models/expense-report/gen/object.js +0 -25
  486. package/dist/document-models/expense-report/gen/wallet/object.d.ts +0 -21
  487. package/dist/document-models/expense-report/gen/wallet/object.d.ts.map +0 -1
  488. package/dist/document-models/expense-report/gen/wallet/object.js +0 -49
  489. package/dist/document-models/integrations/gen/integrations/object.d.ts +0 -9
  490. package/dist/document-models/integrations/gen/integrations/object.d.ts.map +0 -1
  491. package/dist/document-models/integrations/gen/integrations/object.js +0 -13
  492. package/dist/document-models/integrations/gen/object.d.ts +0 -15
  493. package/dist/document-models/integrations/gen/object.d.ts.map +0 -1
  494. package/dist/document-models/integrations/gen/object.js +0 -25
  495. package/dist/document-models/invoice/gen/general/object.d.ts +0 -11
  496. package/dist/document-models/invoice/gen/general/object.d.ts.map +0 -1
  497. package/dist/document-models/invoice/gen/general/object.js +0 -19
  498. package/dist/document-models/invoice/gen/items/object.d.ts +0 -11
  499. package/dist/document-models/invoice/gen/items/object.d.ts.map +0 -1
  500. package/dist/document-models/invoice/gen/items/object.js +0 -19
  501. package/dist/document-models/invoice/gen/object.d.ts +0 -21
  502. package/dist/document-models/invoice/gen/object.d.ts.map +0 -1
  503. package/dist/document-models/invoice/gen/object.js +0 -36
  504. package/dist/document-models/invoice/gen/parties/object.d.ts +0 -12
  505. package/dist/document-models/invoice/gen/parties/object.d.ts.map +0 -1
  506. package/dist/document-models/invoice/gen/parties/object.js +0 -22
  507. package/dist/document-models/invoice/gen/transitions/object.d.ts +0 -18
  508. package/dist/document-models/invoice/gen/transitions/object.d.ts.map +0 -1
  509. package/dist/document-models/invoice/gen/transitions/object.js +0 -40
  510. package/dist/editors/billing-statement/index.d.ts +0 -4
  511. package/dist/editors/billing-statement/index.d.ts.map +0 -1
  512. package/dist/editors/billing-statement/index.js +0 -12
  513. package/dist/editors/contributor-billing/components/CreateDocument.d.ts +0 -6
  514. package/dist/editors/contributor-billing/components/CreateDocument.d.ts.map +0 -1
  515. package/dist/editors/contributor-billing/components/CreateDocument.js +0 -23
  516. package/dist/editors/contributor-billing/components/DocumentDispatch.d.ts +0 -12
  517. package/dist/editors/contributor-billing/components/DocumentDispatch.d.ts.map +0 -1
  518. package/dist/editors/contributor-billing/components/DocumentDispatch.js +0 -20
  519. package/dist/editors/contributor-billing/components/EditorContainer.d.ts +0 -10
  520. package/dist/editors/contributor-billing/components/EditorContainer.d.ts.map +0 -1
  521. package/dist/editors/contributor-billing/components/EditorContainer.js +0 -56
  522. package/dist/editors/contributor-billing/components/FileItemsGrid.d.ts +0 -12
  523. package/dist/editors/contributor-billing/components/FileItemsGrid.d.ts.map +0 -1
  524. package/dist/editors/contributor-billing/components/FileItemsGrid.js +0 -7
  525. package/dist/editors/contributor-billing/components/FolderItemsGrid.d.ts +0 -17
  526. package/dist/editors/contributor-billing/components/FolderItemsGrid.d.ts.map +0 -1
  527. package/dist/editors/contributor-billing/components/FolderItemsGrid.js +0 -14
  528. package/dist/editors/contributor-billing/components/FolderTree.d.ts +0 -13
  529. package/dist/editors/contributor-billing/components/FolderTree.d.ts.map +0 -1
  530. package/dist/editors/contributor-billing/components/FolderTree.js +0 -38
  531. package/dist/editors/contributor-billing/hooks/useDispatchMap.d.ts +0 -9
  532. package/dist/editors/contributor-billing/hooks/useDispatchMap.d.ts.map +0 -1
  533. package/dist/editors/contributor-billing/hooks/useDispatchMap.js +0 -21
  534. package/dist/editors/contributor-billing/hooks/useDrop.d.ts +0 -22
  535. package/dist/editors/contributor-billing/hooks/useDrop.d.ts.map +0 -1
  536. package/dist/editors/contributor-billing/hooks/useDrop.js +0 -57
  537. package/dist/editors/contributor-billing/hooks/useSelectedFolderChildren.d.ts +0 -8
  538. package/dist/editors/contributor-billing/hooks/useSelectedFolderChildren.d.ts.map +0 -1
  539. package/dist/editors/contributor-billing/hooks/useSelectedFolderChildren.js +0 -19
  540. package/dist/editors/contributor-billing/hooks/useTransformedNodes.d.ts +0 -3
  541. package/dist/editors/contributor-billing/hooks/useTransformedNodes.d.ts.map +0 -1
  542. package/dist/editors/contributor-billing/hooks/useTransformedNodes.js +0 -32
  543. package/dist/editors/contributor-billing/index.d.ts +0 -4
  544. package/dist/editors/contributor-billing/index.d.ts.map +0 -1
  545. package/dist/editors/contributor-billing/index.js +0 -19
  546. package/dist/editors/contributor-billing/utils/withDropZone.d.ts +0 -4
  547. package/dist/editors/contributor-billing/utils/withDropZone.d.ts.map +0 -1
  548. package/dist/editors/contributor-billing/utils/withDropZone.js +0 -19
  549. package/dist/editors/expense-report/index.d.ts +0 -3
  550. package/dist/editors/expense-report/index.d.ts.map +0 -1
  551. package/dist/editors/expense-report/index.js +0 -11
  552. package/dist/editors/integrations/index.d.ts +0 -4
  553. package/dist/editors/integrations/index.d.ts.map +0 -1
  554. package/dist/editors/integrations/index.js +0 -12
  555. package/dist/editors/invoice/assets/custom.d.ts +0 -4
  556. package/dist/editors/invoice/assets/powerhouseLogo.png +0 -0
  557. package/dist/editors/invoice/index.d.ts +0 -4
  558. package/dist/editors/invoice/index.d.ts.map +0 -1
  559. package/dist/editors/invoice/index.js +0 -12
  560. package/dist/migrate-zip.d.ts +0 -2
  561. package/dist/migrate-zip.d.ts.map +0 -1
  562. package/dist/migrate-zip.js +0 -56
  563. package/dist/reducers/general.d.ts +0 -8
  564. package/dist/reducers/general.d.ts.map +0 -1
  565. package/dist/reducers/general.js +0 -73
  566. package/dist/reducers/items.d.ts +0 -8
  567. package/dist/reducers/items.d.ts.map +0 -1
  568. package/dist/reducers/items.js +0 -195
  569. package/dist/reducers/parties.d.ts +0 -8
  570. package/dist/reducers/parties.d.ts.map +0 -1
  571. package/dist/reducers/parties.js +0 -266
  572. package/dist/reducers/transitions.d.ts +0 -8
  573. package/dist/reducers/transitions.d.ts.map +0 -1
  574. package/dist/reducers/transitions.js +0 -162
  575. package/dist/scripts/invoice/pdfToDocumentAi.d.ts +0 -5
  576. package/dist/scripts/invoice/pdfToDocumentAi.d.ts.map +0 -1
  577. package/dist/scripts/invoice/pdfToDocumentAi.js +0 -659
  578. package/dist/tailwind.config.d.ts +0 -13
  579. package/dist/tailwind.config.d.ts.map +0 -1
  580. package/dist/tailwind.config.js +0 -16
@@ -3,10 +3,11 @@ import React from "react";
3
3
  import { HeaderControls } from "./HeaderControls.js";
4
4
  import { InvoiceTableSection } from "./InvoiceTableSection.js";
5
5
  import { InvoiceTableRow } from "./InvoiceTableRow.js";
6
+ import {} from "document-model";
6
7
  import { mapTags } from "../../../billing-statement/lineItemTags/tagMapping.js";
7
8
  import { exportInvoicesToXeroCSV } from "../../../../scripts/contributor-billing/createXeroCsv.js";
8
9
  import { exportExpenseReportCSV } from "../../../../scripts/contributor-billing/createExpenseReportCsv.js";
9
- import { toast } from "@powerhousedao/design-system";
10
+ import { toast } from "@powerhousedao/design-system/connect";
10
11
  import { actions, } from "../../../../document-models/invoice/index.js";
11
12
  import { addDocument, useSelectedDrive, dispatchActions, setSelectedNode, } from "@powerhousedao/reactor-browser";
12
13
  import { actions as billingStatementActions } from "../../../../document-models/billing-statement/index.js";
@@ -21,7 +22,7 @@ const statusOptions = [
21
22
  { label: "Rejected", value: "REJECTED" },
22
23
  { label: "Other", value: "OTHER" },
23
24
  ];
24
- export const InvoiceTable = ({ files, state, selected, filteredDocumentModels, onSelectDocumentModel, getDocDispatcher, selectedStatuses, onStatusChange, onRowSelection, canExportSelectedRows, }) => {
25
+ export const InvoiceTable = ({ files, state, selected, setSelected, filteredDocumentModels, onSelectDocumentModel, getDocDispatcher, selectedStatuses, onStatusChange, onRowSelection, canExportSelectedRows, }) => {
25
26
  const [selectedDrive] = useSelectedDrive();
26
27
  const billingDocStates = state
27
28
  .filter((doc) => doc.header.documentType === "powerhouse/billing-statement")
@@ -91,7 +92,7 @@ export const InvoiceTable = ({ files, state, selected, filteredDocumentModels, o
91
92
  console.log("created billing statement doc", createdNode);
92
93
  if (!createdNode?.id) {
93
94
  console.error("Failed to create billing statement");
94
- return null;
95
+ return;
95
96
  }
96
97
  await dispatchActions(billingStatementActions.editContributor({
97
98
  contributor: id,
@@ -203,7 +204,7 @@ export const InvoiceTable = ({ files, state, selected, filteredDocumentModels, o
203
204
  // check if integrations document exists
204
205
  const integrationsDoc = files.find((file) => file.documentType === "powerhouse/integrations");
205
206
  const createIntegrationsDocument = async () => {
206
- const integrationsDocument = filteredDocumentModels?.find((model) => model.documentModel.id === "powerhouse/integrations");
207
+ const integrationsDocument = filteredDocumentModels?.find((model) => model.id === "powerhouse/integrations");
207
208
  if (integrationsDocument) {
208
209
  const createdNode = await addDocument(selectedDrive?.header.id || "", `integration-settings`, "powerhouse/integrations", undefined, undefined, undefined, "integrations-editor");
209
210
  console.log("created integrations document", createdNode);
@@ -225,7 +226,7 @@ export const InvoiceTable = ({ files, state, selected, filteredDocumentModels, o
225
226
  }
226
227
  else {
227
228
  // Create new expense report
228
- const expenseReportModel = filteredDocumentModels?.find((model) => model.documentModel.id === "powerhouse/expense-report");
229
+ const expenseReportModel = filteredDocumentModels?.find((model) => model.id === "powerhouse/expense-report");
229
230
  if (expenseReportModel) {
230
231
  const createdNode = await addDocument(selectedDrive?.header.id || "", `expense-report`, "powerhouse/expense-report", undefined, undefined, undefined, "powerhouse-expense-report-editor");
231
232
  console.log("created expense report document", createdNode);
@@ -237,5 +238,5 @@ export const InvoiceTable = ({ files, state, selected, filteredDocumentModels, o
237
238
  }
238
239
  }
239
240
  };
240
- return (_jsxs("div", { className: "w-full h-full bg-white rounded-lg p-4 border border-gray-200 shadow-md mt-4 overflow-x-auto", children: [_jsx(HeaderControls, { statusOptions: statusOptions, onStatusChange: onStatusChange, onExport: handleCSVExport, onExpenseReportExport: handleExportCSVExpenseReport, selectedStatuses: selectedStatuses, createIntegrationsDocument: createIntegrationsDocument, integrationsDoc: integrationsDoc, canExportSelectedRows: canExportSelectedRows, hasBillingStatements: hasBillingStatements, expenseReportDoc: expenseReportDoc, onCreateOrOpenExpenseReport: handleCreateOrOpenExpenseReport }), shouldShowSection("DRAFT") && (_jsx(InvoiceTableSection, { title: "Draft", count: draft.length, onSelectDocumentModel: onSelectDocumentModel, filteredDocumentModels: filteredDocumentModels, children: _jsxs("table", { className: "w-full text-sm border-separate border-spacing-0 border border-gray-400", children: [_jsx("thead", { children: _jsxs("tr", { className: "bg-gray-50", children: [_jsx("th", { className: "px-2 py-2 w-8" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Invoice" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Invoice No." }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issue Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Due Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Currency" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Amount" }), _jsx("th", { className: "px-2 py-2", children: "Exported" })] }) }), _jsx("tbody", { children: draft.map((row) => (_jsx(InvoiceTableRow, { files: files, row: row, isSelected: !!selected[row.id], onSelect: (checked) => onRowSelection(row.id, checked, row.status) }, row.id))) })] }) })), shouldShowSection("ISSUED") && (_jsx(InvoiceTableSection, { title: "Issued", count: issued.length, children: _jsxs("table", { className: "w-full text-sm border-separate border-spacing-0 border border-gray-400", children: [_jsx("thead", { children: _jsxs("tr", { className: "bg-gray-50", children: [_jsx("th", { className: "px-2 py-2 w-8" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issuer" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Invoice No." }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issue Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Due Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Currency" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Amount" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Billing Statement" }), _jsx("th", { className: "px-2 py-2", children: "Exported" })] }) }), _jsx("tbody", { children: issued.map((row) => (_jsx(InvoiceTableRow, { files: files, row: row, isSelected: !!selected[row.id], onSelect: (checked) => onRowSelection(row.id, checked, row.status), onCreateBillingStatement: handleCreateBillingStatement, billingDocStates: billingDocStates }, row.id))) })] }) })), shouldShowSection("ACCEPTED") && (_jsx(InvoiceTableSection, { title: "Accepted", count: accepted.length, color: "bg-green-100 text-green-600", children: _jsxs("table", { className: "w-full text-sm border-separate border-spacing-0 border border-gray-400", children: [_jsx("thead", { children: _jsxs("tr", { className: "bg-gray-50", children: [_jsx("th", { className: "px-2 py-2 w-8" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issuer" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Invoice No." }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issue Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Due Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Currency" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Amount" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Billing Statement" }), _jsx("th", { className: "px-2 py-2", children: "Exported" })] }) }), _jsx("tbody", { children: accepted.map((row) => (_jsx(InvoiceTableRow, { files: files, row: row, isSelected: !!selected[row.id], onSelect: (checked) => onRowSelection(row.id, checked, row.status), onCreateBillingStatement: handleCreateBillingStatement, billingDocStates: billingDocStates }, row.id))) })] }) })), shouldShowSection("PAYMENTSCHEDULED") && (_jsx(InvoiceTableSection, { title: "Payment Scheduled", count: paymentScheduled.length, color: "bg-green-100 text-green-600", children: _jsxs("table", { className: "w-full text-sm border-separate border-spacing-0 border border-gray-400", children: [_jsx("thead", { children: _jsxs("tr", { className: "bg-gray-50", children: [_jsx("th", { className: "px-2 py-2 w-8" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issuer" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Invoice No." }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issue Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Due Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Currency" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Amount" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Billing Statement" }), _jsx("th", { className: "px-2 py-2", children: "Exported" })] }) }), _jsx("tbody", { children: paymentScheduled.map((row) => (_jsx(InvoiceTableRow, { files: files, row: row, isSelected: !!selected[row.id], onSelect: (checked) => onRowSelection(row.id, checked, row.status), onCreateBillingStatement: handleCreateBillingStatement, billingDocStates: billingDocStates }, row.id))) })] }) })), shouldShowSection("PAYMENTSENT") && (_jsx(InvoiceTableSection, { title: "Payment Sent", count: paymentSent.length, color: "bg-green-100 text-green-600", children: _jsxs("table", { className: "w-full text-sm border-separate border-spacing-0 border border-gray-400", children: [_jsx("thead", { children: _jsxs("tr", { className: "bg-gray-50", children: [_jsx("th", { className: "px-2 py-2 w-8" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issuer" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Invoice No." }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issue Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Due Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Currency" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Amount" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Billing Statement" }), _jsx("th", { className: "px-2 py-2", children: "Exported" })] }) }), _jsx("tbody", { children: paymentSent.map((row) => (_jsx(InvoiceTableRow, { files: files, row: row, isSelected: !!selected[row.id], onSelect: (checked) => onRowSelection(row.id, checked, row.status), onCreateBillingStatement: handleCreateBillingStatement, billingDocStates: billingDocStates }, row.id))) })] }) })), shouldShowSection("PAYMENTISSUE") && (_jsx(InvoiceTableSection, { title: "Payment Issue", count: paymentIssue.length, color: "bg-yellow-100 text-yellow-600", children: _jsxs("table", { className: "w-full text-sm border-separate border-spacing-0 border border-gray-400", children: [_jsx("thead", { children: _jsxs("tr", { className: "bg-gray-50", children: [_jsx("th", { className: "px-2 py-2 w-8" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issuer" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Invoice No." }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issue Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Due Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Currency" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Amount" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Billing Statement" }), _jsx("th", { className: "px-2 py-2", children: "Exported" })] }) }), _jsx("tbody", { children: paymentIssue.map((row) => (_jsx(InvoiceTableRow, { files: files, row: row, isSelected: !!selected[row.id], onSelect: (checked) => onRowSelection(row.id, checked, row.status), onCreateBillingStatement: handleCreateBillingStatement, billingDocStates: billingDocStates }, row.id))) })] }) })), shouldShowSection("PAYMENTCLOSED") && (_jsx(InvoiceTableSection, { title: "Payment Closed", count: paymentClosed.length, color: "bg-red-500 text-black-600", children: _jsxs("table", { className: "w-full text-sm border-separate border-spacing-0 border border-gray-400", children: [_jsx("thead", { children: _jsxs("tr", { className: "bg-gray-50", children: [_jsx("th", { className: "px-2 py-2 w-8" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issuer" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Invoice No." }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issue Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Due Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Currency" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Amount" }), _jsx("th", { className: "px-2 py-2", children: "Exported" })] }) }), _jsx("tbody", { children: paymentClosed.map((row) => (_jsx(InvoiceTableRow, { files: files, row: row, isSelected: !!selected[row.id], onSelect: (checked) => onRowSelection(row.id, checked, row.status) }, row.id))) })] }) })), shouldShowSection("REJECTED") && (_jsx(InvoiceTableSection, { title: "Rejected", count: rejected.length, color: "bg-red-500 text-black-600", children: _jsxs("table", { className: "w-full text-sm border-separate border-spacing-0 border border-gray-400", children: [_jsx("thead", { children: _jsxs("tr", { className: "bg-gray-50", children: [_jsx("th", { className: "px-2 py-2 w-8" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issuer" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Invoice No." }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issue Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Due Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Currency" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Amount" }), _jsx("th", { className: "px-2 py-2", children: "Exported" })] }) }), _jsx("tbody", { children: rejected.map((row) => (_jsx(InvoiceTableRow, { files: files, row: row, isSelected: !!selected[row.id], onSelect: (checked) => onRowSelection(row.id, checked, row.status) }, row.id))) })] }) })), shouldShowSection("OTHER") && (_jsx(InvoiceTableSection, { title: "Other", count: otherInvoices.length, children: _jsxs("table", { className: "w-full text-sm border-separate border-spacing-0 border border-gray-400", children: [_jsx("thead", { children: _jsxs("tr", { className: "bg-gray-50", children: [_jsx("th", { className: "px-2 py-2 w-8" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issuer" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Invoice No." }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issue Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Due Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Currency" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Amount" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Exported" })] }) }), _jsx("tbody", { children: otherInvoices.map((row) => (_jsx(InvoiceTableRow, { files: files, row: row, isSelected: !!selected[row.id], onSelect: (checked) => onRowSelection(row.id, checked, row.status) }, row.id))) })] }) }))] }, `${state.length}`));
241
+ return (_jsxs("div", { className: "w-full h-full bg-white rounded-lg p-4 border border-gray-200 shadow-md mt-4 overflow-x-auto", children: [_jsx(HeaderControls, { statusOptions: statusOptions, onStatusChange: onStatusChange, onExport: handleCSVExport, onExpenseReportExport: handleExportCSVExpenseReport, selectedStatuses: selectedStatuses, createIntegrationsDocument: createIntegrationsDocument, integrationsDoc: integrationsDoc, canExportSelectedRows: canExportSelectedRows, hasBillingStatements: hasBillingStatements, expenseReportDoc: expenseReportDoc, onCreateOrOpenExpenseReport: handleCreateOrOpenExpenseReport, selected: selected, handleCreateBillingStatement: handleCreateBillingStatement, setSelected: setSelected }), shouldShowSection("DRAFT") && (_jsx(InvoiceTableSection, { title: "Draft", count: draft.length, onSelectDocumentModel: onSelectDocumentModel, filteredDocumentModels: filteredDocumentModels, children: _jsxs("table", { className: "w-full text-sm rounded-sm border-separate border-spacing-0 border border-gray-400 overflow-hidden", children: [_jsx("thead", { children: _jsxs("tr", { className: "bg-gray-50 font-medium text-gray-500", children: [_jsx("th", { className: "px-2 py-2 w-8 rounded-tl-sm" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Invoice" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Invoice No." }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issue Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Due Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Currency" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Amount" }), _jsx("th", { className: "px-2 py-2 rounded-tr-sm", children: "Exported" })] }) }), _jsx("tbody", { children: draft.map((row) => (_jsx(InvoiceTableRow, { files: files, row: row, isSelected: !!selected[row.id], onSelect: (checked) => onRowSelection(row.id, checked, row.status) }, row.id))) })] }) })), shouldShowSection("ISSUED") && (_jsx(InvoiceTableSection, { title: "Issued", count: issued.length, children: _jsxs("table", { className: "w-full text-sm rounded-sm border-separate border-spacing-0 border border-gray-400 overflow-hidden", children: [_jsx("thead", { children: _jsxs("tr", { className: "bg-gray-50 font-medium text-gray-500", children: [_jsx("th", { className: "px-2 py-2 w-8 rounded-tl-sm" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issuer" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Invoice No." }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issue Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Due Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Currency" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Amount" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Billing Statement" }), _jsx("th", { className: "px-2 py-2 rounded-tr-sm", children: "Exported" })] }) }), _jsx("tbody", { children: issued.map((row) => (_jsx(InvoiceTableRow, { files: files, row: row, isSelected: !!selected[row.id], onSelect: (checked) => onRowSelection(row.id, checked, row.status), onCreateBillingStatement: handleCreateBillingStatement, billingDocStates: billingDocStates }, row.id))) })] }) })), shouldShowSection("ACCEPTED") && (_jsx(InvoiceTableSection, { title: "Accepted", count: accepted.length, color: "bg-green-100 text-green-600", children: _jsxs("table", { className: "w-full text-sm rounded-sm border-separate border-spacing-0 border border-gray-400 overflow-hidden", children: [_jsx("thead", { children: _jsxs("tr", { className: "bg-gray-50 font-medium text-gray-500", children: [_jsx("th", { className: "px-2 py-2 w-8 rounded-tl-sm" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issuer" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Invoice No." }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issue Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Due Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Currency" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Amount" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Billing Statement" }), _jsx("th", { className: "px-2 py-2 rounded-tr-sm", children: "Exported" })] }) }), _jsx("tbody", { children: accepted.map((row) => (_jsx(InvoiceTableRow, { files: files, row: row, isSelected: !!selected[row.id], onSelect: (checked) => onRowSelection(row.id, checked, row.status), onCreateBillingStatement: handleCreateBillingStatement, billingDocStates: billingDocStates }, row.id))) })] }) })), shouldShowSection("PAYMENTSCHEDULED") && (_jsx(InvoiceTableSection, { title: "Payment Scheduled", count: paymentScheduled.length, color: "bg-green-100 text-green-600", children: _jsxs("table", { className: "w-full text-sm rounded-sm border-separate border-spacing-0 border border-gray-400 overflow-hidden", children: [_jsx("thead", { children: _jsxs("tr", { className: "bg-gray-50 font-medium text-gray-500", children: [_jsx("th", { className: "px-2 py-2 w-8 rounded-tl-sm" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issuer" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Invoice No." }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issue Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Due Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Currency" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Amount" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Billing Statement" }), _jsx("th", { className: "px-2 py-2 rounded-tr-sm", children: "Exported" })] }) }), _jsx("tbody", { children: paymentScheduled.map((row) => (_jsx(InvoiceTableRow, { files: files, row: row, isSelected: !!selected[row.id], onSelect: (checked) => onRowSelection(row.id, checked, row.status), onCreateBillingStatement: handleCreateBillingStatement, billingDocStates: billingDocStates }, row.id))) })] }) })), shouldShowSection("PAYMENTSENT") && (_jsx(InvoiceTableSection, { title: "Payment Sent", count: paymentSent.length, color: "bg-green-100 text-green-600", children: _jsxs("table", { className: "w-full text-sm rounded-sm border-separate border-spacing-0 border border-gray-400 overflow-hidden", children: [_jsx("thead", { children: _jsxs("tr", { className: "bg-gray-50 font-medium text-gray-500", children: [_jsx("th", { className: "px-2 py-2 w-8 rounded-tl-sm" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issuer" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Invoice No." }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issue Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Due Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Currency" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Amount" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Billing Statement" }), _jsx("th", { className: "px-2 py-2 rounded-tr-sm", children: "Exported" })] }) }), _jsx("tbody", { children: paymentSent.map((row) => (_jsx(InvoiceTableRow, { files: files, row: row, isSelected: !!selected[row.id], onSelect: (checked) => onRowSelection(row.id, checked, row.status), onCreateBillingStatement: handleCreateBillingStatement, billingDocStates: billingDocStates }, row.id))) })] }) })), shouldShowSection("PAYMENTISSUE") && (_jsx(InvoiceTableSection, { title: "Payment Issue", count: paymentIssue.length, color: "bg-yellow-100 text-yellow-600", children: _jsxs("table", { className: "w-full text-sm rounded-sm border-separate border-spacing-0 border border-gray-400 overflow-hidden", children: [_jsx("thead", { children: _jsxs("tr", { className: "bg-gray-50 font-medium text-gray-500", children: [_jsx("th", { className: "px-2 py-2 w-8 rounded-tl-sm" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issuer" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Invoice No." }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issue Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Due Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Currency" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Amount" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Billing Statement" }), _jsx("th", { className: "px-2 py-2 rounded-tr-sm", children: "Exported" })] }) }), _jsx("tbody", { children: paymentIssue.map((row) => (_jsx(InvoiceTableRow, { files: files, row: row, isSelected: !!selected[row.id], onSelect: (checked) => onRowSelection(row.id, checked, row.status), onCreateBillingStatement: handleCreateBillingStatement, billingDocStates: billingDocStates }, row.id))) })] }) })), shouldShowSection("PAYMENTCLOSED") && (_jsx(InvoiceTableSection, { title: "Payment Closed", count: paymentClosed.length, color: "bg-red-500 text-black-600", children: _jsxs("table", { className: "w-full text-sm rounded-sm border-separate border-spacing-0 border border-gray-400 overflow-hidden", children: [_jsx("thead", { children: _jsxs("tr", { className: "bg-gray-50 font-medium text-gray-500", children: [_jsx("th", { className: "px-2 py-2 w-8 rounded-tl-sm" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issuer" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Invoice No." }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issue Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Due Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Currency" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Amount" }), _jsx("th", { className: "px-2 py-2 rounded-tr-sm", children: "Exported" })] }) }), _jsx("tbody", { children: paymentClosed.map((row) => (_jsx(InvoiceTableRow, { files: files, row: row, isSelected: !!selected[row.id], onSelect: (checked) => onRowSelection(row.id, checked, row.status) }, row.id))) })] }) })), shouldShowSection("REJECTED") && (_jsx(InvoiceTableSection, { title: "Rejected", count: rejected.length, color: "bg-red-500 text-black-600", children: _jsxs("table", { className: "w-full text-sm rounded-sm border-separate border-spacing-0 border border-gray-400 overflow-hidden", children: [_jsx("thead", { children: _jsxs("tr", { className: "bg-gray-50 font-medium text-gray-500", children: [_jsx("th", { className: "px-2 py-2 w-8 rounded-tl-sm" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issuer" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Invoice No." }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issue Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Due Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Currency" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Amount" }), _jsx("th", { className: "px-2 py-2 rounded-tr-sm", children: "Exported" })] }) }), _jsx("tbody", { children: rejected.map((row) => (_jsx(InvoiceTableRow, { files: files, row: row, isSelected: !!selected[row.id], onSelect: (checked) => onRowSelection(row.id, checked, row.status) }, row.id))) })] }) })), shouldShowSection("OTHER") && (_jsx(InvoiceTableSection, { title: "Other", count: otherInvoices.length, children: _jsxs("table", { className: "w-full text-sm rounded-sm border-separate border-spacing-0 border border-gray-400 overflow-hidden", children: [_jsx("thead", { children: _jsxs("tr", { className: "bg-gray-50 font-medium text-gray-500", children: [_jsx("th", { className: "px-2 py-2 w-8 rounded-tl-sm" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issuer" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Invoice No." }), _jsx("th", { className: "px-2 py-2 text-center", children: "Issue Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Due Date" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Currency" }), _jsx("th", { className: "px-2 py-2 text-center", children: "Amount" }), _jsx("th", { className: "px-2 py-2 text-center rounded-tr-sm", children: "Exported" })] }) }), _jsx("tbody", { children: otherInvoices.map((row) => (_jsx(InvoiceTableRow, { files: files, row: row, isSelected: !!selected[row.id], onSelect: (checked) => onRowSelection(row.id, checked, row.status) }, row.id))) })] }) }))] }, `${state.length}`));
241
242
  };
@@ -1 +1 @@
1
- {"version":3,"file":"InvoiceTableRow.d.ts","sourceRoot":"","sources":["../../../../../editors/contributor-billing/components/InvoiceTable/InvoiceTableRow.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,eAAe,GAAI,mFAO7B;IACD,KAAK,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC9D,GAAG,EAAE,GAAG,CAAC;IACT,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,wBAAwB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,gBAAgB,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC1D,4CAoJA,CAAC"}
1
+ {"version":3,"file":"InvoiceTableRow.d.ts","sourceRoot":"","sources":["../../../../../editors/contributor-billing/components/InvoiceTable/InvoiceTableRow.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,GAAI,mFAO7B;IACD,KAAK,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC9D,GAAG,EAAE,GAAG,CAAC;IACT,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,wBAAwB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,gBAAgB,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC1D,4CA2GA,CAAC"}
@@ -1,11 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { FileItem } from "@powerhousedao/design-system";
3
- import { getSyncStatusSync, setSelectedNode, showDeleteNodeModal, useDriveSharingType, useNodeActions, useSelectedDriveDocument, } from "@powerhousedao/reactor-browser";
2
+ import { FileItem } from "@powerhousedao/design-system/connect";
4
3
  export const InvoiceTableRow = ({ files, row, isSelected, onSelect, onCreateBillingStatement, billingDocStates, }) => {
5
- const [selectedDrive] = useSelectedDriveDocument(); // Currently selected drive
6
- const sharingType = useDriveSharingType(selectedDrive.header.id);
7
- // Core drive operations and document models
8
- const { onAddFile, onAddFolder, onCopyNode, onDuplicateNode, onMoveNode, onRenameNode, } = useNodeActions();
9
4
  const formatTimestamp = (timestamp) => {
10
5
  const date = new Date(timestamp);
11
6
  const day = date.getDate().toString().padStart(2, "0");
@@ -43,10 +38,10 @@ export const InvoiceTableRow = ({ files, row, isSelected, onSelect, onCreateBill
43
38
  const billingFile = files?.find((file) => file.id === billingDoc?.id);
44
39
  const file = files?.find((file) => file.id === row.id);
45
40
  const hasExportedData = row.exported != null && Boolean(row.exported.timestamp?.trim());
46
- return (_jsxs("tr", { className: "hover:bg-gray-50", children: [_jsx("td", { className: "px-2 py-2", children: _jsx("input", { type: "checkbox", checked: isSelected, onChange: (e) => onSelect(e.target.checked), className: "size-4 rounded border-gray-300 text-blue-600 focus:ring-2 focus:ring-blue-500" }) }), _jsx("td", { className: "py-1 w-10", children: file && (_jsx(FileItem, { fileNode: file, sharingType: sharingType || "LOCAL", isAllowedToCreateDocuments: true, className: "h-10", onAddFile: onAddFile, onCopyNode: onCopyNode, onMoveNode: onMoveNode, onRenameNode: onRenameNode, onDuplicateNode: onDuplicateNode, onAddFolder: onAddFolder, onAddAndSelectNewFolder: () => new Promise((resolve) => resolve(undefined)), getSyncStatusSync: getSyncStatusSync, setSelectedNode: setSelectedNode, showDeleteNodeModal: (node) => showDeleteNodeModal(node.id) }, row.id)) }), _jsx("td", { className: "px-2 py-2 text-center", children: row.invoiceNo }), _jsx("td", { className: "px-2 py-2 text-center", children: row.issueDate }), _jsx("td", { className: "px-2 py-2 text-center", children: row.dueDate }), _jsx("td", { className: "px-2 py-2 text-center", children: row.currency }), _jsx("td", { className: "px-2 py-2 text-center", children: formatAmount(row.amount) }), (row.status === "ISSUED" ||
41
+ return (_jsxs("tr", { className: "hover:bg-gray-50", children: [_jsx("td", { className: "px-2 py-2", children: _jsx("input", { type: "checkbox", checked: isSelected, onChange: (e) => onSelect(e.target.checked), className: "size-4 rounded border-gray-300 text-blue-600 focus:ring-2 focus:ring-blue-500" }) }), _jsx("td", { className: "py-1 w-10", children: file && (_jsx(FileItem, { fileNode: file, className: "h-10" }, row.id)) }), _jsx("td", { className: "px-2 py-2 text-center", children: row.invoiceNo }), _jsx("td", { className: "px-2 py-2 text-center", children: row.issueDate }), _jsx("td", { className: "px-2 py-2 text-center", children: row.dueDate }), _jsx("td", { className: "px-2 py-2 text-center", children: row.currency }), _jsx("td", { className: "px-2 py-2 text-center", children: formatAmount(row.amount) }), (row.status === "ISSUED" ||
47
42
  row.status === "ACCEPTED" ||
48
43
  row.status === "PAYMENTSCHEDULED" ||
49
44
  row.status === "PAYMENTRECEIVED" ||
50
45
  row.status === "PAYMENTSENT") &&
51
- !billingFile && (_jsx("td", { className: "px-2 py-2 text-center", children: _jsx("button", { className: "bg-white border border-gray-300 rounded px-3 py-1 text-sm hover:bg-gray-100 col-span-1 justify-self-end", onClick: () => onCreateBillingStatement?.(row.id), children: "Generate Billing Statement" }) })), billingFile && (_jsx("td", { className: "px-2 py-2 text-center", children: _jsx(FileItem, { fileNode: billingFile, sharingType: sharingType || "LOCAL", showDeleteNodeModal: (node) => showDeleteNodeModal(node.id), isAllowedToCreateDocuments: true, className: "h-10", onAddFile: onAddFile, onCopyNode: onCopyNode, onMoveNode: onMoveNode, onRenameNode: onRenameNode, onDuplicateNode: onDuplicateNode, onAddFolder: onAddFolder, onAddAndSelectNewFolder: () => new Promise((resolve) => resolve(undefined)), getSyncStatusSync: getSyncStatusSync, setSelectedNode: setSelectedNode }, billingDoc?.id) })), _jsx("td", { className: "px-2 py-2 text-center", children: hasExportedData ? (_jsxs("div", { className: "flex flex-col items-center", children: [_jsx("span", { className: "text-green-500", children: "Yes" }), _jsx("span", { className: "text-green-500 text-xs", children: formatTimestamp(row.exported.timestamp) })] })) : (_jsx("span", { className: "text-red-500", children: "No" })) })] }));
46
+ !billingFile && (_jsx("td", { className: "px-2 py-2 text-center", children: _jsx("button", { className: "bg-white border border-gray-300 rounded px-3 py-1 text-sm hover:bg-gray-100 col-span-1 justify-self-end", onClick: () => onCreateBillingStatement?.(row.id), children: "Generate Billing Statement" }) })), billingFile && (_jsx("td", { className: "px-2 py-2 text-center", children: _jsx(FileItem, { fileNode: billingFile, className: "h-10" }, billingDoc?.id) })), _jsx("td", { className: "px-2 py-2 text-center", children: hasExportedData ? (_jsxs("div", { className: "flex flex-col items-center", children: [_jsx("span", { className: "text-green-500", children: "Yes" }), _jsx("span", { className: "text-green-500 text-xs", children: formatTimestamp(row.exported.timestamp) })] })) : (_jsx("span", { className: "text-red-500", children: "No" })) })] }));
52
47
  };
@@ -1,10 +1,10 @@
1
- import { DocumentModelModule } from "document-model";
1
+ import type { VetraDocumentModelModule } from "@powerhousedao/reactor-browser";
2
2
  export declare const InvoiceTableSection: ({ title, count, children, color, onSelectDocumentModel, filteredDocumentModels, }: {
3
3
  title: string;
4
4
  count: number;
5
5
  children: React.ReactNode;
6
6
  color?: string;
7
- onSelectDocumentModel?: (model: DocumentModelModule) => void;
8
- filteredDocumentModels?: DocumentModelModule[];
7
+ onSelectDocumentModel?: (model: VetraDocumentModelModule) => void;
8
+ filteredDocumentModels?: VetraDocumentModelModule[];
9
9
  }) => import("react/jsx-runtime").JSX.Element;
10
10
  //# sourceMappingURL=InvoiceTableSection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InvoiceTableSection.d.ts","sourceRoot":"","sources":["../../../../../editors/contributor-billing/components/InvoiceTable/InvoiceTableSection.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,eAAO,MAAM,mBAAmB,GAAI,mFAOjC;IACD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC7D,sBAAsB,CAAC,EAAE,mBAAmB,EAAE,CAAC;CAChD,4CAsCA,CAAC"}
1
+ {"version":3,"file":"InvoiceTableSection.d.ts","sourceRoot":"","sources":["../../../../../editors/contributor-billing/components/InvoiceTable/InvoiceTableSection.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAE/E,eAAO,MAAM,mBAAmB,GAAI,mFAOjC;IACD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,wBAAwB,KAAK,IAAI,CAAC;IAClE,sBAAsB,CAAC,EAAE,wBAAwB,EAAE,CAAC;CACrD,4CAsCA,CAAC"}
@@ -3,7 +3,7 @@ import { useState } from "react";
3
3
  import { ChevronDown, ChevronRight } from "lucide-react";
4
4
  export const InvoiceTableSection = ({ title, count, children, color = "bg-blue-100 text-blue-600", onSelectDocumentModel, filteredDocumentModels, }) => {
5
5
  const [isExpanded, setIsExpanded] = useState(true);
6
- const invoiceDodModel = filteredDocumentModels?.find(model => model.documentModel.id === "powerhouse/invoice");
6
+ const invoiceDodModel = filteredDocumentModels?.find(model => model.id === "powerhouse/invoice");
7
7
  return (_jsxs("div", { className: "mb-2", children: [_jsxs("div", { className: "grid grid-cols-2", children: [_jsxs("button", { onClick: () => setIsExpanded(!isExpanded), className: "w-full flex items-center gap-2 hover:opacity-80 transition-opacity col-span-1", children: [_jsx("span", { className: "font-medium", children: title }), _jsx("span", { className: `inline-flex items-center justify-center rounded-full text-xs font-bold px-2 ${color}`, children: count }), isExpanded ? (_jsx(ChevronDown, { className: "w-4 h-4 text-gray-900" })) : (_jsx(ChevronRight, { className: "w-4 h-4 text-gray-900" }))] }), title === "Draft" && (_jsx("button", { className: "bg-white border border-gray-300 rounded px-3 py-1 text-sm hover:bg-gray-100 col-span-1 justify-self-end", onClick: () => {
8
8
  onSelectDocumentModel?.(invoiceDodModel);
9
9
  }, children: "Create Invoice" }))] }), isExpanded && _jsx("div", { className: "mt-2", children: children })] }));
@@ -0,0 +1,3 @@
1
+ import type { PHDriveEditorConfig } from "@powerhousedao/reactor-browser";
2
+ export declare const editorConfig: PHDriveEditorConfig;
3
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../editors/contributor-billing/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAE1E,eAAO,MAAM,YAAY,EAAE,mBAM1B,CAAC"}
@@ -0,0 +1,7 @@
1
+ export const editorConfig = {
2
+ allowedDocumentTypes: [
3
+ "powerhouse/invoice",
4
+ "powerhouse/billing-statement",
5
+ ],
6
+ isDragAndDropEnabled: true,
7
+ };
@@ -1,2 +1,3 @@
1
- export declare const Editor: import("react").ComponentType<import("@powerhousedao/reactor-browser").DriveEditorProps>;
1
+ import type { EditorProps } from "document-model";
2
+ export default function Editor(props: EditorProps): import("react/jsx-runtime").JSX.Element;
2
3
  //# sourceMappingURL=editor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../editors/contributor-billing/editor.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,0FAA8B,CAAC"}
1
+ {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../editors/contributor-billing/editor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAK,EAAE,WAAW,2CAG9C"}
@@ -1,3 +1,8 @@
1
- import { withDropZone } from "@powerhousedao/design-system";
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { DriveExplorer } from "./components/DriveExplorer.js";
3
- export const Editor = withDropZone(DriveExplorer);
3
+ import { useSetPHDriveEditorConfig } from "@powerhousedao/reactor-browser";
4
+ import { editorConfig } from "./config.js";
5
+ export default function Editor(props) {
6
+ useSetPHDriveEditorConfig(editorConfig);
7
+ return _jsx(DriveExplorer, { ...props });
8
+ }
@@ -0,0 +1,3 @@
1
+ import type { EditorModule } from "document-model";
2
+ export declare const ContributorBilling: EditorModule;
3
+ //# sourceMappingURL=module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../editors/contributor-billing/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAGnD,eAAO,MAAM,kBAAkB,EAAE,YAOhC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { lazy } from "react";
2
+ export const ContributorBilling = {
3
+ Component: lazy(() => import("./editor.js")),
4
+ documentTypes: ["powerhouse/document-drive"],
5
+ config: {
6
+ id: "contributor-billing",
7
+ name: "Contributor Billing",
8
+ },
9
+ };
@@ -0,0 +1,3 @@
1
+ import type { EditorModule } from "document-model";
2
+ export declare const editors: EditorModule[];
3
+ //# sourceMappingURL=editors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editors.d.ts","sourceRoot":"","sources":["../../editors/editors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAOnD,eAAO,MAAM,OAAO,EAAE,YAAY,EAMjC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { BillingStatement } from "./billing-statement/module.js";
2
+ import { ContributorBilling } from "./contributor-billing/module.js";
3
+ import { ExpenseReport } from "./expense-report/module.js";
4
+ import { Integrations } from "./integrations/module.js";
5
+ import { Invoice } from "./invoice/module.js";
6
+ export const editors = [
7
+ BillingStatement,
8
+ ContributorBilling,
9
+ ExpenseReport,
10
+ Integrations,
11
+ Invoice,
12
+ ];
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useState, useMemo } from "react";
3
3
  import { Button } from "@powerhousedao/document-engineering";
4
- import { useSelectedDriveDocuments } from "@powerhousedao/reactor-browser";
4
+ import { useDocumentsInSelectedDrive } from "@powerhousedao/reactor-browser";
5
5
  import { generateId } from "document-model";
6
6
  import { X, FileText, Check } from "lucide-react";
7
7
  import { actions } from "../../../document-models/expense-report/index.js";
@@ -34,7 +34,7 @@ const fusionLabelToValue = {
34
34
  Equity: "equity/retained",
35
35
  };
36
36
  export function AddBillingStatementModal({ isOpen, onClose, walletAddress, dispatch, groups, }) {
37
- const documents = useSelectedDriveDocuments();
37
+ const documents = useDocumentsInSelectedDrive();
38
38
  const [selectedStatements, setSelectedStatements] = useState(new Set());
39
39
  const [searchTerm, setSearchTerm] = useState("");
40
40
  // Get already added billing statement IDs for this wallet from documents
@@ -1 +1 @@
1
- {"version":3,"file":"WalletsTable.d.ts","sourceRoot":"","sources":["../../../../editors/expense-report/components/WalletsTable.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,sDAAsD,CAAC;AAKlG,UAAU,iBAAiB;IACzB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,qBAAqB,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD,QAAQ,EAAE,GAAG,CAAC;CACf;AAED,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,MAAM,EACN,qBAAqB,EACrB,QAAQ,GACT,EAAE,iBAAiB,2CAwanB"}
1
+ {"version":3,"file":"WalletsTable.d.ts","sourceRoot":"","sources":["../../../../editors/expense-report/components/WalletsTable.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,MAAM,EACN,aAAa,EACd,MAAM,sDAAsD,CAAC;AAK9D,UAAU,iBAAiB;IACzB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,qBAAqB,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD,QAAQ,EAAE,GAAG,CAAC;CACf;AAED,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,MAAM,EACN,qBAAqB,EACrB,QAAQ,GACT,EAAE,iBAAiB,2CAmdnB"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
3
  import { Button, TextInput } from "@powerhousedao/document-engineering";
4
- import { Plus, Trash2, Pencil, Check, X, Copy, CheckCheck, RefreshCw } from "lucide-react";
4
+ import { Plus, Trash2, Pencil, Check, X, Copy, CheckCheck, RefreshCw, } from "lucide-react";
5
5
  import { actions } from "../../../document-models/expense-report/index.js";
6
6
  import { useWalletSync } from "../hooks/useWalletSync.js";
7
7
  import { useSyncWallet } from "../hooks/useSyncWallet.js";
@@ -21,7 +21,7 @@ export function WalletsTable({ wallets, groups, onAddBillingStatement, dispatch,
21
21
  const trimmedAddress = newWalletAddress.trim();
22
22
  if (trimmedAddress) {
23
23
  // Check if wallet already exists
24
- const walletExists = wallets.some(w => w.wallet === trimmedAddress);
24
+ const walletExists = wallets.some((w) => w.wallet === trimmedAddress);
25
25
  if (walletExists) {
26
26
  setWalletError("This wallet already exists");
27
27
  return;
@@ -40,7 +40,7 @@ export function WalletsTable({ wallets, groups, onAddBillingStatement, dispatch,
40
40
  setEditingName(wallet.name || "");
41
41
  };
42
42
  const handleSaveEditName = (walletAddress) => {
43
- const wallet = wallets.find(w => w.wallet === walletAddress);
43
+ const wallet = wallets.find((w) => w.wallet === walletAddress);
44
44
  const trimmedName = editingName.trim();
45
45
  // Only update if the name has changed
46
46
  if (trimmedName && wallet && trimmedName !== (wallet.name || "")) {
@@ -67,7 +67,9 @@ export function WalletsTable({ wallets, groups, onAddBillingStatement, dispatch,
67
67
  return `${address.substring(0, 6)}...${address.substring(address.length - 5)}`;
68
68
  };
69
69
  const handleSyncWallet = async (wallet) => {
70
- if (!wallet.wallet || !wallet.billingStatements || wallet.billingStatements.length === 0) {
70
+ if (!wallet.wallet ||
71
+ !wallet.billingStatements ||
72
+ wallet.billingStatements.length === 0) {
71
73
  return;
72
74
  }
73
75
  setSyncingWallet(wallet.wallet);
@@ -125,7 +127,7 @@ export function WalletsTable({ wallets, groups, onAddBillingStatement, dispatch,
125
127
  return (_jsxs("div", { className: "space-y-4", children: [wallets.length > 0 ? (_jsx("div", { className: "overflow-x-auto", children: _jsxs("table", { className: "min-w-full divide-y divide-gray-200 dark:divide-gray-700", children: [_jsx("thead", { className: "bg-gray-50 dark:bg-gray-800", children: _jsxs("tr", { children: [_jsx("th", { className: "px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider", children: "Wallet" }), _jsx("th", { className: "px-6 py-3 text-right text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider", children: "Monthly Budget" }), _jsx("th", { className: "px-6 py-3 text-right text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider", children: "Forecast" }), _jsx("th", { className: "px-6 py-3 text-right text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider", children: _jsxs("div", { className: "flex items-center justify-end gap-2", children: [needsSync && (_jsx("button", { onClick: () => {
126
128
  // Sync all outdated wallets
127
129
  [...tagChangedWallets, ...outdatedWallets].forEach((walletAddress) => {
128
- const wallet = wallets.find(w => w.wallet === walletAddress);
130
+ const wallet = wallets.find((w) => w.wallet === walletAddress);
129
131
  if (wallet) {
130
132
  handleSyncWallet(wallet);
131
133
  }
@@ -144,11 +146,14 @@ export function WalletsTable({ wallets, groups, onAddBillingStatement, dispatch,
144
146
  else if (e.key === "Escape") {
145
147
  handleCancelEditName();
146
148
  }
147
- }, autoFocus: true }), _jsx("button", { onClick: () => handleSaveEditName(wallet.wallet || ""), className: "inline-flex items-center justify-center w-7 h-7 text-green-600 dark:text-green-400 hover:bg-green-50 dark:hover:bg-green-900/20 rounded-md transition-colors", title: "Save", children: _jsx(Check, { size: 14 }) }), _jsx("button", { onClick: handleCancelEditName, className: "inline-flex items-center justify-center w-7 h-7 text-gray-600 dark:text-gray-400 hover:bg-gray-50 dark:hover:bg-gray-900/20 rounded-md transition-colors", title: "Cancel", children: _jsx(X, { size: 14 }) })] })) : (_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "text-sm font-medium text-gray-900 dark:text-white", children: wallet.name || "Unnamed Wallet" }), _jsx("button", { onClick: () => handleStartEditName(wallet), className: "inline-flex items-center justify-center w-6 h-6 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md transition-colors", title: "Edit name", children: _jsx(Pencil, { size: 12 }) }), _jsxs("button", { onClick: () => handleCopyAddress(wallet.wallet || ""), className: "inline-flex items-center gap-1 px-2 py-1 text-xs text-gray-500 dark:text-gray-400 font-mono hover:bg-gray-100 dark:hover:bg-gray-700 rounded transition-colors", title: `Copy address: ${wallet.wallet}`, children: [formatAddress(wallet.wallet || ""), copiedWallet === wallet.wallet ? (_jsx(CheckCheck, { size: 12, className: "text-green-500" })) : (_jsx(Copy, { size: 12 }))] })] })) }), _jsx("td", { className: "px-6 py-4 whitespace-nowrap text-right text-sm text-gray-900 dark:text-white", children: formatCurrency(totals.budget) }), _jsx("td", { className: "px-6 py-4 whitespace-nowrap text-right text-sm text-gray-900 dark:text-white", children: formatCurrency(totals.forecast) }), _jsx("td", { className: "px-6 py-4 whitespace-nowrap text-right text-sm", children: totals.actuals === 0 && (!wallet.billingStatements || wallet.billingStatements.length === 0) ? (
149
+ }, autoFocus: true }), _jsx("button", { onClick: () => handleSaveEditName(wallet.wallet || ""), className: "inline-flex items-center justify-center w-7 h-7 text-green-600 dark:text-green-400 hover:bg-green-50 dark:hover:bg-green-900/20 rounded-md transition-colors", title: "Save", children: _jsx(Check, { size: 14 }) }), _jsx("button", { onClick: handleCancelEditName, className: "inline-flex items-center justify-center w-7 h-7 text-gray-600 dark:text-gray-400 hover:bg-gray-50 dark:hover:bg-gray-900/20 rounded-md transition-colors", title: "Cancel", children: _jsx(X, { size: 14 }) })] })) : (_jsxs("div", { className: "flex items-center gap-1", children: [_jsx("span", { className: "text-sm font-medium text-gray-900 dark:text-white", children: wallet.name || "Unnamed Wallet" }), _jsx("button", { onClick: () => handleStartEditName(wallet), className: "inline-flex items-center justify-center w-6 h-6 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md transition-colors", title: "Edit name", children: _jsx(Pencil, { size: 12 }) }), _jsxs("button", { onClick: () => handleCopyAddress(wallet.wallet || ""), className: "inline-flex items-center gap-1 px-2 py-1 text-xs text-gray-500 dark:text-gray-400 font-mono hover:bg-gray-100 dark:hover:bg-gray-700 rounded transition-colors", title: `Copy address: ${wallet.wallet}`, children: [formatAddress(wallet.wallet || ""), copiedWallet === wallet.wallet ? (_jsx(CheckCheck, { size: 12, className: "text-green-500" })) : (_jsx(Copy, { size: 12 }))] })] })) }), _jsx("td", { className: "px-6 py-4 whitespace-nowrap text-right text-sm text-gray-900 dark:text-white", children: formatCurrency(totals.budget) }), _jsx("td", { className: "px-6 py-4 whitespace-nowrap text-right text-sm text-gray-900 dark:text-white", children: formatCurrency(totals.forecast) }), _jsx("td", { className: "px-6 py-4 whitespace-nowrap text-right text-sm", children: totals.actuals === 0 &&
150
+ (!wallet.billingStatements ||
151
+ wallet.billingStatements.length === 0) ? (
148
152
  // When actuals is 0 and no billing statements, only show the Add Bills button
149
153
  _jsx("div", { className: "flex items-center justify-end", children: _jsxs("button", { onClick: () => onAddBillingStatement(wallet.wallet || ""), className: "inline-flex items-center gap-1 px-3 py-1 text-sm font-medium text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 bg-blue-50 dark:bg-blue-900/20 hover:bg-blue-100 dark:hover:bg-blue-900/30 rounded-md transition-colors", title: "Add billing statement for this wallet", children: [_jsx(Plus, { size: 16 }), _jsx("span", { children: "Add Bills" })] }) })) : (
150
154
  // When actuals is not 0 or has billing statements, show compact buttons + value horizontally
151
- _jsxs("div", { className: "flex items-center justify-end gap-2", children: [_jsx("button", { onClick: () => onAddBillingStatement(wallet.wallet || ""), className: "inline-flex items-center justify-center w-8 h-8 text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 bg-blue-50 dark:bg-blue-900/20 hover:bg-blue-100 dark:hover:bg-blue-900/30 rounded-md transition-colors", title: "Add billing statement for this wallet", children: _jsx(Plus, { size: 16 }) }), wallet.billingStatements && wallet.billingStatements.length > 0 && (_jsx("button", { onClick: () => handleSyncWallet(wallet), disabled: syncingWallet === wallet.wallet, className: `inline-flex items-center justify-center w-8 h-8 rounded-md transition-colors ${tagChangedWallets.includes(wallet.wallet || "")
155
+ _jsxs("div", { className: "flex items-center justify-end gap-2", children: [_jsx("button", { onClick: () => onAddBillingStatement(wallet.wallet || ""), className: "inline-flex items-center justify-center w-8 h-8 text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 bg-blue-50 dark:bg-blue-900/20 hover:bg-blue-100 dark:hover:bg-blue-900/30 rounded-md transition-colors", title: "Add billing statement for this wallet", children: _jsx(Plus, { size: 16 }) }), wallet.billingStatements &&
156
+ wallet.billingStatements.length > 0 && (_jsx("button", { onClick: () => handleSyncWallet(wallet), disabled: syncingWallet === wallet.wallet, className: `inline-flex items-center justify-center w-8 h-8 rounded-md transition-colors ${tagChangedWallets.includes(wallet.wallet || "")
152
157
  ? "text-red-600 dark:text-red-400 bg-red-50 dark:bg-red-900/20 hover:bg-red-100 dark:hover:bg-red-900/30 animate-pulse"
153
158
  : outdatedWallets.includes(wallet.wallet || "")
154
159
  ? "text-amber-600 dark:text-amber-400 bg-amber-50 dark:bg-amber-900/20 hover:bg-amber-100 dark:hover:bg-amber-900/30 animate-pulse"
@@ -156,7 +161,9 @@ export function WalletsTable({ wallets, groups, onAddBillingStatement, dispatch,
156
161
  ? "ALERT: Tags have changed - sync required!"
157
162
  : outdatedWallets.includes(wallet.wallet || "")
158
163
  ? "Sync needed - billing statements updated"
159
- : "Sync with latest billing statements", children: _jsx(RefreshCw, { size: 16, className: syncingWallet === wallet.wallet ? "animate-spin" : "" }) })), _jsx("span", { className: "text-sm font-medium text-gray-900 dark:text-white", children: formatCurrency(totals.actuals) })] })) }), _jsx("td", { className: `px-6 py-4 whitespace-nowrap text-right text-sm font-medium ${totals.difference > 0
164
+ : "Sync with latest billing statements", children: _jsx(RefreshCw, { size: 16, className: syncingWallet === wallet.wallet
165
+ ? "animate-spin"
166
+ : "" }) })), _jsx("span", { className: "text-sm font-medium text-gray-900 dark:text-white", children: formatCurrency(totals.actuals) })] })) }), _jsx("td", { className: `px-6 py-4 whitespace-nowrap text-right text-sm font-medium ${totals.difference > 0
160
167
  ? "text-red-600 dark:text-red-400"
161
168
  : totals.difference < 0
162
169
  ? "text-green-600 dark:text-green-400"
@@ -0,0 +1,3 @@
1
+ import type { PHDocumentEditorConfig } from "@powerhousedao/reactor-browser";
2
+ export declare const editorConfig: PHDocumentEditorConfig;
3
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../editors/expense-report/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAE7E,eAAO,MAAM,YAAY,EAAE,sBAE1B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export const editorConfig = {
2
+ isExternalControlsEnabled: false,
3
+ };
@@ -1,2 +1,2 @@
1
- export declare function Editor(): import("react/jsx-runtime").JSX.Element;
1
+ export default function Editor(): import("react/jsx-runtime").JSX.Element;
2
2
  //# sourceMappingURL=editor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../editors/expense-report/editor.tsx"],"names":[],"mappings":"AAWA,wBAAgB,MAAM,4CAmMrB"}
1
+ {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../editors/expense-report/editor.tsx"],"names":[],"mappings":"AAgBA,MAAM,CAAC,OAAO,UAAU,MAAM,4CA+M7B"}
@@ -8,7 +8,10 @@ import { AggregatedExpensesTable } from "./components/AggregatedExpensesTable.js
8
8
  import { AddBillingStatementModal } from "./components/AddBillingStatementModal.js";
9
9
  import { ExpenseReportPDF } from "./components/ExpenseReportPDF.js";
10
10
  import { pdf } from "@react-pdf/renderer";
11
- export function Editor() {
11
+ import { PDFViewer } from "@react-pdf/renderer";
12
+ import { DocumentToolbar } from "@powerhousedao/design-system/connect";
13
+ import { setSelectedNode, useParentFolderForSelectedNode, } from "@powerhousedao/reactor-browser";
14
+ export default function Editor() {
12
15
  const [document, dispatch] = useSelectedExpenseReportDocument();
13
16
  const [selectedWallet, setSelectedWallet] = useState(null);
14
17
  const [isModalOpen, setIsModalOpen] = useState(false);
@@ -50,7 +53,7 @@ export function Editor() {
50
53
  link.href = url;
51
54
  // Generate filename with period
52
55
  const filename = periodStart
53
- ? `expense-report-${new Date(periodStart).toISOString().split('T')[0]}.pdf`
56
+ ? `expense-report-${new Date(periodStart).toISOString().split("T")[0]}.pdf`
54
57
  : "expense-report.pdf";
55
58
  link.download = filename;
56
59
  link.click();
@@ -70,5 +73,11 @@ export function Editor() {
70
73
  const year = date.getFullYear();
71
74
  return `${month} ${year} Breakdown`;
72
75
  }, [periodStart]);
73
- return (_jsxs("div", { className: "ph-default-styles flex flex-col h-full w-full bg-gray-50 dark:bg-gray-900", children: [_jsx("div", { className: "flex-1 overflow-auto px-8 py-6", children: _jsxs("div", { className: "max-w-7xl mx-auto space-y-8", children: [_jsx("section", { className: "bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700", children: _jsx("div", { className: "px-6 py-6", children: _jsxs("div", { className: "relative", children: [_jsxs("div", { className: "text-center", children: [_jsx("h1", { className: "text-3xl font-bold text-gray-900 dark:text-white mb-4", children: "Expense Report" }), _jsx("div", { className: "flex items-center justify-center gap-4 text-sm text-gray-600 dark:text-gray-400", children: _jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "font-medium", children: "Period:" }), _jsx(DatePicker, { name: "periodStart", value: periodStart, onChange: handlePeriodStartChange }), _jsx("span", { children: "to" }), _jsx(DatePicker, { name: "periodEnd", value: periodEnd, onChange: handlePeriodEndChange })] }) })] }), _jsxs(Button, { variant: "ghost", onClick: handleExportPDF, className: "absolute top-0 right-0 flex items-center gap-2", children: [_jsx(Icon, { name: "ExportPdf", size: 18 }), "Export to PDF"] })] }) }) }), _jsxs("section", { className: "bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700", children: [_jsx("div", { className: "px-6 py-4 border-b border-gray-200 dark:border-gray-700", children: _jsx("h2", { className: "text-xl font-semibold text-gray-900 dark:text-white", children: "Wallets" }) }), _jsx("div", { className: "p-6", children: _jsx(WalletsTable, { wallets: wallets, groups: groups, onAddBillingStatement: handleAddBillingStatement, dispatch: dispatch }) })] }), wallets.length > 0 && (_jsxs("section", { className: "bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700", children: [_jsx("div", { className: "px-6 py-4 border-b border-gray-200 dark:border-gray-700", children: _jsx("h2", { className: "text-xl font-semibold text-gray-900 dark:text-white", children: breakdownTitle }) }), _jsx("div", { className: "p-6", children: _jsx(AggregatedExpensesTable, { wallets: wallets, groups: groups, periodStart: periodStart, periodEnd: periodEnd, dispatch: dispatch }) })] }))] }) }), isModalOpen && selectedWallet && (_jsx(AddBillingStatementModal, { isOpen: isModalOpen, onClose: handleCloseModal, walletAddress: selectedWallet, dispatch: dispatch, groups: groups }))] }));
76
+ // Get the parent folder node for the currently selected node
77
+ const parentFolder = useParentFolderForSelectedNode();
78
+ // Set the selected node to the parent folder node (close the editor)
79
+ function handleClose() {
80
+ setSelectedNode(parentFolder?.id);
81
+ }
82
+ return (_jsxs("div", { children: [_jsx(DocumentToolbar, { document: document, onClose: handleClose }), _jsxs("div", { className: "ph-default-styles flex flex-col h-full w-full bg-gray-50 dark:bg-gray-900", children: [_jsx("div", { className: "flex-1 overflow-auto px-8 py-6", children: _jsxs("div", { className: "max-w-7xl mx-auto space-y-8", children: [_jsx("section", { className: "bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700", children: _jsx("div", { className: "px-6 py-6", children: _jsxs("div", { className: "relative", children: [_jsxs("div", { className: "text-center", children: [_jsx("h1", { className: "text-3xl font-bold text-gray-900 dark:text-white mb-4", children: "Expense Report" }), _jsx("div", { className: "flex items-center justify-center gap-4 text-sm text-gray-600 dark:text-gray-400", children: _jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "font-medium", children: "Period:" }), _jsx(DatePicker, { name: "periodStart", value: periodStart, onChange: handlePeriodStartChange, className: "bg-white" }), _jsx("span", { children: "to" }), _jsx(DatePicker, { name: "periodEnd", value: periodEnd, onChange: handlePeriodEndChange, className: "bg-white" })] }) })] }), _jsxs(Button, { variant: "ghost", onClick: handleExportPDF, className: "absolute top-0 right-0 flex items-center gap-2", children: [_jsx(Icon, { name: "ExportPdf", size: 18 }), "Export to PDF"] })] }) }) }), _jsxs("section", { className: "bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700", children: [_jsx("div", { className: "px-6 py-4 border-b border-gray-200 dark:border-gray-700", children: _jsx("h2", { className: "text-xl font-semibold text-gray-900 dark:text-white", children: "Wallets" }) }), _jsx("div", { className: "p-6", children: _jsx(WalletsTable, { wallets: wallets, groups: groups, onAddBillingStatement: handleAddBillingStatement, dispatch: dispatch }) })] }), wallets.length > 0 && (_jsxs("section", { className: "bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700", children: [_jsx("div", { className: "px-6 py-4 border-b border-gray-200 dark:border-gray-700", children: _jsx("h2", { className: "text-xl font-semibold text-gray-900 dark:text-white", children: breakdownTitle }) }), _jsx("div", { className: "p-6", children: _jsx(AggregatedExpensesTable, { wallets: wallets, groups: groups, periodStart: periodStart, periodEnd: periodEnd, dispatch: dispatch }) })] }))] }) }), isModalOpen && selectedWallet && (_jsx(AddBillingStatementModal, { isOpen: isModalOpen, onClose: handleCloseModal, walletAddress: selectedWallet, dispatch: dispatch, groups: groups }))] })] }));
74
83
  }
@@ -1,8 +1,8 @@
1
- import { useSelectedDriveDocuments } from "@powerhousedao/reactor-browser";
1
+ import { useDocumentsInSelectedDrive } from "@powerhousedao/reactor-browser";
2
2
  import { actions } from "../../../document-models/expense-report/index.js";
3
3
  import { generateId } from "document-model";
4
4
  export function useSyncWallet() {
5
- const documents = useSelectedDriveDocuments();
5
+ const documents = useDocumentsInSelectedDrive();
6
6
  const syncWallet = (walletAddress, billingStatementIds, groups, dispatch) => {
7
7
  if (!documents)
8
8
  return;
@@ -1,7 +1,7 @@
1
1
  import { useMemo } from "react";
2
- import { useSelectedDriveDocuments } from "@powerhousedao/reactor-browser";
2
+ import { useDocumentsInSelectedDrive } from "@powerhousedao/reactor-browser";
3
3
  export function useWalletSync(wallets) {
4
- const documents = useSelectedDriveDocuments();
4
+ const documents = useDocumentsInSelectedDrive();
5
5
  const syncStatus = useMemo(() => {
6
6
  if (!documents || wallets.length === 0) {
7
7
  return { needsSync: false, outdatedWallets: [], tagChangedWallets: [] };
@@ -0,0 +1,3 @@
1
+ import type { EditorModule } from "document-model";
2
+ export declare const ExpenseReport: EditorModule;
3
+ //# sourceMappingURL=module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../editors/expense-report/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAGnD,eAAO,MAAM,aAAa,EAAE,YAO3B,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { lazy } from "react";
2
+ export const ExpenseReport = {
3
+ Component: lazy(() => import("./editor.js")),
4
+ documentTypes: ["powerhouse/expense-report"],
5
+ config: {
6
+ id: "powerhouse-expense-report-editor",
7
+ name: "Expense Report",
8
+ },
9
+ };
@@ -1,4 +1,4 @@
1
1
  import type { ExpenseReportDocument } from "../../document-models/expense-report/index.js";
2
- export declare function useExpenseReportDocument(documentId: string | null | undefined): never[] | [ExpenseReportDocument, import("@powerhousedao/reactor-browser").DocumentDispatch<import("../../document-models/expense-report/gen/actions.js").ExpenseReportWalletAction>];
3
- export declare function useSelectedExpenseReportDocument(): never[] | [ExpenseReportDocument, import("@powerhousedao/reactor-browser").DocumentDispatch<import("../../document-models/expense-report/gen/actions.js").ExpenseReportWalletAction>];
2
+ export declare function useExpenseReportDocument(documentId: string | null | undefined): never[] | [ExpenseReportDocument, import("@powerhousedao/reactor-browser").DocumentDispatch<import("../../document-models/expense-report/index.js").ExpenseReportWalletAction>];
3
+ export declare function useSelectedExpenseReportDocument(): never[] | [ExpenseReportDocument, import("@powerhousedao/reactor-browser").DocumentDispatch<import("../../document-models/expense-report/index.js").ExpenseReportWalletAction>];
4
4
  //# sourceMappingURL=useExpenseReportDocument.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useExpenseReportDocument.d.ts","sourceRoot":"","sources":["../../../editors/hooks/useExpenseReportDocument.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAEV,qBAAqB,EACtB,MAAM,+CAA+C,CAAC;AAEvD,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,yLAMtC;AAED,wBAAgB,gCAAgC,0LAG/C"}
1
+ {"version":3,"file":"useExpenseReportDocument.d.ts","sourceRoot":"","sources":["../../../editors/hooks/useExpenseReportDocument.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAEV,qBAAqB,EACtB,MAAM,+CAA+C,CAAC;AAEvD,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,mLAMtC;AAED,wBAAgB,gCAAgC,oLAG/C"}
@@ -1,4 +1,4 @@
1
1
  import type { IntegrationsDocument } from "../../document-models/integrations/index.js";
2
- export declare function useIntegrationsDocument(documentId: string | null | undefined): never[] | [IntegrationsDocument, import("@powerhousedao/reactor-browser").DocumentDispatch<import("../../document-models/integrations/gen/actions.js").IntegrationsIntegrationsAction>];
3
- export declare function useSelectedIntegrationsDocument(): never[] | [IntegrationsDocument, import("@powerhousedao/reactor-browser").DocumentDispatch<import("../../document-models/integrations/gen/actions.js").IntegrationsIntegrationsAction>];
2
+ export declare function useIntegrationsDocument(documentId: string | null | undefined): never[] | [IntegrationsDocument, import("@powerhousedao/reactor-browser").DocumentDispatch<import("../../document-models/integrations/index.js").IntegrationsIntegrationsAction>];
3
+ export declare function useSelectedIntegrationsDocument(): never[] | [IntegrationsDocument, import("@powerhousedao/reactor-browser").DocumentDispatch<import("../../document-models/integrations/index.js").IntegrationsIntegrationsAction>];
4
4
  //# sourceMappingURL=useIntegrationsDocument.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIntegrationsDocument.d.ts","sourceRoot":"","sources":["../../../editors/hooks/useIntegrationsDocument.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAEV,oBAAoB,EACrB,MAAM,6CAA6C,CAAC;AAErD,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,2LAK5E;AAED,wBAAgB,+BAA+B,4LAG9C"}
1
+ {"version":3,"file":"useIntegrationsDocument.d.ts","sourceRoot":"","sources":["../../../editors/hooks/useIntegrationsDocument.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAEV,oBAAoB,EACrB,MAAM,6CAA6C,CAAC;AAErD,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,qLAK5E;AAED,wBAAgB,+BAA+B,sLAG9C"}
@@ -1,6 +1,6 @@
1
- export { module as Invoice } from "./invoice/index.js";
2
- export { module as ContributorBilling } from "./contributor-billing/index.js";
3
- export { module as BillingStatement } from "./billing-statement/index.js";
4
- export { module as Integrations } from "./integrations/index.js";
5
- export { module as ExpenseReport } from "./expense-report/index.js";
1
+ export { BillingStatement } from "./billing-statement/module.js";
2
+ export { ContributorBilling } from "./contributor-billing/module.js";
3
+ export { ExpenseReport } from "./expense-report/module.js";
4
+ export { Integrations } from "./integrations/module.js";
5
+ export { Invoice } from "./invoice/module.js";
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../editors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,MAAM,IAAI,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,MAAM,IAAI,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../editors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1,5 +1,5 @@
1
- export { module as Invoice } from "./invoice/index.js";
2
- export { module as ContributorBilling } from "./contributor-billing/index.js";
3
- export { module as BillingStatement } from "./billing-statement/index.js";
4
- export { module as Integrations } from "./integrations/index.js";
5
- export { module as ExpenseReport } from "./expense-report/index.js";
1
+ export { BillingStatement } from "./billing-statement/module.js";
2
+ export { ContributorBilling } from "./contributor-billing/module.js";
3
+ export { ExpenseReport } from "./expense-report/module.js";
4
+ export { Integrations } from "./integrations/module.js";
5
+ export { Invoice } from "./invoice/module.js";
@@ -0,0 +1,3 @@
1
+ import type { PHDocumentEditorConfig } from "@powerhousedao/reactor-browser";
2
+ export declare const editorConfig: PHDocumentEditorConfig;
3
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../editors/integrations/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAE7E,eAAO,MAAM,YAAY,EAAE,sBAE1B,CAAC"}