@powerhousedao/contributor-billing 0.0.98 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/dist/document-models/billing-statement/src/reducers/general.d.ts.map +1 -1
  2. package/dist/document-models/billing-statement/src/reducers/general.js +8 -26
  3. package/dist/document-models/billing-statement/src/reducers/line-items.d.ts.map +1 -1
  4. package/dist/document-models/billing-statement/src/reducers/line-items.js +19 -29
  5. package/dist/document-models/billing-statement/src/reducers/tags.d.ts.map +1 -1
  6. package/dist/document-models/billing-statement/src/reducers/tags.js +20 -25
  7. package/dist/document-models/integrations/src/reducers/integrations.d.ts.map +1 -1
  8. package/dist/document-models/integrations/src/reducers/integrations.js +29 -44
  9. package/dist/document-models/invoice/src/reducers/general.d.ts.map +1 -1
  10. package/dist/document-models/invoice/src/reducers/general.js +31 -56
  11. package/dist/document-models/invoice/src/reducers/items.d.ts.map +1 -1
  12. package/dist/document-models/invoice/src/reducers/items.js +63 -88
  13. package/dist/document-models/invoice/src/reducers/parties.d.ts.map +1 -1
  14. package/dist/document-models/invoice/src/reducers/parties.js +199 -229
  15. package/dist/editors/billing-statement/components/lineItemsTable.d.ts +3 -2
  16. package/dist/editors/billing-statement/components/lineItemsTable.d.ts.map +1 -1
  17. package/dist/editors/billing-statement/components/lineItemsTable.js +12 -8
  18. package/dist/editors/billing-statement/components/objectSetTable.d.ts +3 -2
  19. package/dist/editors/billing-statement/components/objectSetTable.d.ts.map +1 -1
  20. package/dist/editors/billing-statement/editor.d.ts +3 -1
  21. package/dist/editors/billing-statement/editor.d.ts.map +1 -1
  22. package/dist/editors/billing-statement/editor.js +2 -2
  23. package/dist/editors/billing-statement/lineItemTags/lineItemTags.d.ts +2 -2
  24. package/dist/editors/billing-statement/lineItemTags/lineItemTags.d.ts.map +1 -1
  25. package/dist/editors/contributor-billing/components/DriveExplorer.d.ts +8 -1
  26. package/dist/editors/contributor-billing/components/DriveExplorer.d.ts.map +1 -1
  27. package/dist/editors/contributor-billing/components/DriveExplorer.js +18 -64
  28. package/dist/editors/contributor-billing/components/InvoiceTable/HeaderControls.d.ts +2 -8
  29. package/dist/editors/contributor-billing/components/InvoiceTable/HeaderControls.d.ts.map +1 -1
  30. package/dist/editors/contributor-billing/components/InvoiceTable/HeaderControls.js +21 -7
  31. package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTable.d.ts +8 -10
  32. package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTable.d.ts.map +1 -1
  33. package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTable.js +27 -24
  34. package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableRow.d.ts +6 -8
  35. package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableRow.d.ts.map +1 -1
  36. package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableRow.js +8 -17
  37. package/dist/editors/contributor-billing/editor.d.ts +1 -10
  38. package/dist/editors/contributor-billing/editor.d.ts.map +1 -1
  39. package/dist/editors/contributor-billing/editor.js +2 -23
  40. package/dist/editors/contributor-billing/hooks/useTransformedNodes.d.ts +2 -1
  41. package/dist/editors/contributor-billing/hooks/useTransformedNodes.d.ts.map +1 -1
  42. package/dist/editors/contributor-billing/index.js +1 -1
  43. package/dist/editors/hooks/useBillingStatementDocument.d.ts +4 -0
  44. package/dist/editors/hooks/useBillingStatementDocument.d.ts.map +1 -0
  45. package/dist/editors/hooks/useBillingStatementDocument.js +8 -0
  46. package/dist/editors/hooks/useIntegrationsDocument.d.ts +4 -0
  47. package/dist/editors/hooks/useIntegrationsDocument.d.ts.map +1 -0
  48. package/dist/editors/hooks/useIntegrationsDocument.js +8 -0
  49. package/dist/editors/hooks/useInvoiceDocument.d.ts +4 -0
  50. package/dist/editors/hooks/useInvoiceDocument.d.ts.map +1 -0
  51. package/dist/editors/hooks/useInvoiceDocument.js +8 -0
  52. package/dist/editors/integrations/editor.d.ts +4 -1
  53. package/dist/editors/integrations/editor.d.ts.map +1 -1
  54. package/dist/editors/integrations/editor.js +7 -12
  55. package/dist/editors/invoice/components/lineItemCard.d.ts +21 -0
  56. package/dist/editors/invoice/components/lineItemCard.d.ts.map +1 -0
  57. package/dist/editors/invoice/components/lineItemCard.js +23 -0
  58. package/dist/editors/invoice/components/lineItemMobileModal.d.ts +33 -0
  59. package/dist/editors/invoice/components/lineItemMobileModal.d.ts.map +1 -0
  60. package/dist/editors/invoice/components/lineItemMobileModal.js +73 -0
  61. package/dist/editors/invoice/components/lineItemsEmptyState.d.ts +6 -0
  62. package/dist/editors/invoice/components/lineItemsEmptyState.d.ts.map +1 -0
  63. package/dist/editors/invoice/components/lineItemsEmptyState.js +5 -0
  64. package/dist/editors/invoice/editor.d.ts +4 -1
  65. package/dist/editors/invoice/editor.d.ts.map +1 -1
  66. package/dist/editors/invoice/editor.js +41 -22
  67. package/dist/editors/invoice/ingestPDF.js +1 -1
  68. package/dist/editors/invoice/invoiceToGnosis.d.ts +3 -2
  69. package/dist/editors/invoice/invoiceToGnosis.d.ts.map +1 -1
  70. package/dist/editors/invoice/invoiceToGnosis.js +11 -11
  71. package/dist/editors/invoice/legalEntity/bankSection.d.ts +1 -0
  72. package/dist/editors/invoice/legalEntity/bankSection.d.ts.map +1 -1
  73. package/dist/editors/invoice/legalEntity/bankSection.js +36 -12
  74. package/dist/editors/invoice/legalEntity/legalEntity.d.ts +2 -1
  75. package/dist/editors/invoice/legalEntity/legalEntity.d.ts.map +1 -1
  76. package/dist/editors/invoice/legalEntity/legalEntity.js +2 -2
  77. package/dist/editors/invoice/lineItemTags/lineItemTags.d.ts.map +1 -1
  78. package/dist/editors/invoice/lineItemTags/lineItemTags.js +25 -3
  79. package/dist/editors/invoice/lineItemTags/tagCard.d.ts +15 -0
  80. package/dist/editors/invoice/lineItemTags/tagCard.d.ts.map +1 -0
  81. package/dist/editors/invoice/lineItemTags/tagCard.js +13 -0
  82. package/dist/editors/invoice/lineItemTags/tagMobileModal.d.ts +18 -0
  83. package/dist/editors/invoice/lineItemTags/tagMobileModal.d.ts.map +1 -0
  84. package/dist/editors/invoice/lineItemTags/tagMobileModal.js +71 -0
  85. package/dist/editors/invoice/lineItems.d.ts.map +1 -1
  86. package/dist/editors/invoice/lineItems.js +76 -38
  87. package/dist/editors/invoice/requestFinance.js +2 -2
  88. package/dist/editors/invoice/uploadPdfChunked.js +1 -1
  89. package/dist/editors/invoice/validation/validationHandler.d.ts +1 -1
  90. package/dist/editors/invoice/validation/validationHandler.d.ts.map +1 -1
  91. package/dist/editors/invoice/validation/validationHandler.js +25 -9
  92. package/dist/editors/invoice/validation/validationManager.d.ts.map +1 -1
  93. package/dist/editors/invoice/validation/validationManager.js +3 -2
  94. package/dist/editors/invoice/validation/validationRules.d.ts +2 -0
  95. package/dist/editors/invoice/validation/validationRules.d.ts.map +1 -1
  96. package/dist/editors/invoice/validation/validationRules.js +37 -7
  97. package/dist/scripts/contributor-billing/createExpenseReportCsv.d.ts +5 -0
  98. package/dist/scripts/contributor-billing/createExpenseReportCsv.d.ts.map +1 -0
  99. package/dist/scripts/contributor-billing/createExpenseReportCsv.js +122 -0
  100. package/dist/style.css +180 -12
  101. package/dist/tailwind.config.js +1 -0
  102. package/package.json +13 -12
  103. package/dist/reducers/general.d.ts +0 -8
  104. package/dist/reducers/general.d.ts.map +0 -1
  105. package/dist/reducers/general.js +0 -73
  106. package/dist/reducers/items.d.ts +0 -8
  107. package/dist/reducers/items.d.ts.map +0 -1
  108. package/dist/reducers/items.js +0 -195
  109. package/dist/reducers/parties.d.ts +0 -8
  110. package/dist/reducers/parties.d.ts.map +0 -1
  111. package/dist/reducers/parties.js +0 -266
  112. package/dist/reducers/transitions.d.ts +0 -8
  113. package/dist/reducers/transitions.d.ts.map +0 -1
  114. package/dist/reducers/transitions.js +0 -162
package/dist/style.css CHANGED
@@ -315,9 +315,6 @@
315
315
  .z-10 {
316
316
  z-index: 10;
317
317
  }
318
- .z-40 {
319
- z-index: 40;
320
- }
321
318
  .z-50 {
322
319
  z-index: 50;
323
320
  }
@@ -354,6 +351,9 @@
354
351
  .mt-2 {
355
352
  margin-top: calc(var(--spacing) * 2);
356
353
  }
354
+ .mt-3 {
355
+ margin-top: calc(var(--spacing) * 3);
356
+ }
357
357
  .mt-4 {
358
358
  margin-top: calc(var(--spacing) * 4);
359
359
  }
@@ -372,6 +372,9 @@
372
372
  .mb-2 {
373
373
  margin-bottom: calc(var(--spacing) * 2);
374
374
  }
375
+ .mb-3 {
376
+ margin-bottom: calc(var(--spacing) * 3);
377
+ }
375
378
  .mb-4 {
376
379
  margin-bottom: calc(var(--spacing) * 4);
377
380
  }
@@ -402,9 +405,6 @@
402
405
  .inline {
403
406
  display: inline;
404
407
  }
405
- .inline-block {
406
- display: inline-block;
407
- }
408
408
  .inline-flex {
409
409
  display: inline-flex;
410
410
  }
@@ -427,6 +427,12 @@
427
427
  .h-4 {
428
428
  height: calc(var(--spacing) * 4);
429
429
  }
430
+ .h-5 {
431
+ height: calc(var(--spacing) * 5);
432
+ }
433
+ .h-6 {
434
+ height: calc(var(--spacing) * 6);
435
+ }
430
436
  .h-8 {
431
437
  height: calc(var(--spacing) * 8);
432
438
  }
@@ -442,6 +448,9 @@
442
448
  .h-32 {
443
449
  height: calc(var(--spacing) * 32);
444
450
  }
451
+ .h-\[29px\] {
452
+ height: 29px;
453
+ }
445
454
  .h-full {
446
455
  height: 100%;
447
456
  }
@@ -460,6 +469,12 @@
460
469
  .w-4 {
461
470
  width: calc(var(--spacing) * 4);
462
471
  }
472
+ .w-5 {
473
+ width: calc(var(--spacing) * 5);
474
+ }
475
+ .w-6 {
476
+ width: calc(var(--spacing) * 6);
477
+ }
463
478
  .w-8 {
464
479
  width: calc(var(--spacing) * 8);
465
480
  }
@@ -469,6 +484,9 @@
469
484
  .w-16 {
470
485
  width: calc(var(--spacing) * 16);
471
486
  }
487
+ .w-20 {
488
+ width: calc(var(--spacing) * 20);
489
+ }
472
490
  .w-32 {
473
491
  width: calc(var(--spacing) * 32);
474
492
  }
@@ -481,6 +499,9 @@
481
499
  .w-50 {
482
500
  width: calc(var(--spacing) * 50);
483
501
  }
502
+ .w-54 {
503
+ width: calc(var(--spacing) * 54);
504
+ }
484
505
  .w-64 {
485
506
  width: calc(var(--spacing) * 64);
486
507
  }
@@ -496,6 +517,9 @@
496
517
  .w-full {
497
518
  width: 100%;
498
519
  }
520
+ .max-w-\[60\%\] {
521
+ max-width: 60%;
522
+ }
499
523
  .max-w-\[200px\] {
500
524
  max-width: 200px;
501
525
  }
@@ -508,6 +532,9 @@
508
532
  .max-w-xl {
509
533
  max-width: var(--container-xl);
510
534
  }
535
+ .max-w-xs {
536
+ max-width: var(--container-xs);
537
+ }
511
538
  .min-w-\[142px\] {
512
539
  min-width: 142px;
513
540
  }
@@ -566,12 +593,18 @@
566
593
  .flex-col {
567
594
  flex-direction: column;
568
595
  }
569
- .flex-nowrap {
570
- flex-wrap: nowrap;
596
+ .flex-row {
597
+ flex-direction: row;
598
+ }
599
+ .flex-wrap {
600
+ flex-wrap: wrap;
571
601
  }
572
602
  .items-center {
573
603
  align-items: center;
574
604
  }
605
+ .items-start {
606
+ align-items: flex-start;
607
+ }
575
608
  .justify-between {
576
609
  justify-content: space-between;
577
610
  }
@@ -581,6 +614,9 @@
581
614
  .justify-end {
582
615
  justify-content: flex-end;
583
616
  }
617
+ .gap-0 {
618
+ gap: calc(var(--spacing) * 0);
619
+ }
584
620
  .gap-1 {
585
621
  gap: calc(var(--spacing) * 1);
586
622
  }
@@ -600,6 +636,13 @@
600
636
  margin-block-end: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)));
601
637
  }
602
638
  }
639
+ .space-y-3 {
640
+ :where(& > :not(:last-child)) {
641
+ --tw-space-y-reverse: 0;
642
+ margin-block-start: calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));
643
+ margin-block-end: calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));
644
+ }
645
+ }
603
646
  .space-y-4 {
604
647
  :where(& > :not(:last-child)) {
605
648
  --tw-space-y-reverse: 0;
@@ -640,6 +683,9 @@
640
683
  .overflow-x-auto {
641
684
  overflow-x: auto;
642
685
  }
686
+ .overflow-y-auto {
687
+ overflow-y: auto;
688
+ }
643
689
  .rounded {
644
690
  border-radius: 0.25rem;
645
691
  }
@@ -665,6 +711,14 @@
665
711
  border-style: var(--tw-border-style);
666
712
  border-width: 1px;
667
713
  }
714
+ .border-0 {
715
+ border-style: var(--tw-border-style);
716
+ border-width: 0px;
717
+ }
718
+ .border-2 {
719
+ border-style: var(--tw-border-style);
720
+ border-width: 2px;
721
+ }
668
722
  .border-t {
669
723
  border-top-style: var(--tw-border-style);
670
724
  border-top-width: 1px;
@@ -677,12 +731,19 @@
677
731
  border-bottom-style: var(--tw-border-style);
678
732
  border-bottom-width: 2px;
679
733
  }
734
+ .border-dashed {
735
+ --tw-border-style: dashed;
736
+ border-style: dashed;
737
+ }
680
738
  .border-blue-100 {
681
739
  border-color: var(--color-blue-100);
682
740
  }
683
741
  .border-blue-500 {
684
742
  border-color: var(--color-blue-500);
685
743
  }
744
+ .border-gray-100 {
745
+ border-color: var(--color-gray-100);
746
+ }
686
747
  .border-gray-200 {
687
748
  border-color: var(--color-gray-200);
688
749
  }
@@ -770,6 +831,9 @@
770
831
  .p-0 {
771
832
  padding: calc(var(--spacing) * 0);
772
833
  }
834
+ .p-1 {
835
+ padding: calc(var(--spacing) * 1);
836
+ }
773
837
  .p-2 {
774
838
  padding: calc(var(--spacing) * 2);
775
839
  }
@@ -800,6 +864,9 @@
800
864
  .px-6 {
801
865
  padding-inline: calc(var(--spacing) * 6);
802
866
  }
867
+ .py-0\.5 {
868
+ padding-block: calc(var(--spacing) * 0.5);
869
+ }
803
870
  .py-1 {
804
871
  padding-block: calc(var(--spacing) * 1);
805
872
  }
@@ -809,9 +876,15 @@
809
876
  .py-3 {
810
877
  padding-block: calc(var(--spacing) * 3);
811
878
  }
879
+ .py-6 {
880
+ padding-block: calc(var(--spacing) * 6);
881
+ }
812
882
  .pt-2 {
813
883
  padding-top: calc(var(--spacing) * 2);
814
884
  }
885
+ .pt-3 {
886
+ padding-top: calc(var(--spacing) * 3);
887
+ }
815
888
  .pt-4 {
816
889
  padding-top: calc(var(--spacing) * 4);
817
890
  }
@@ -888,12 +961,18 @@
888
961
  .text-blue-600 {
889
962
  color: var(--color-blue-600);
890
963
  }
964
+ .text-blue-800 {
965
+ color: var(--color-blue-800);
966
+ }
891
967
  .text-blue-900 {
892
968
  color: var(--color-blue-900);
893
969
  }
894
970
  .text-gray-50 {
895
971
  color: var(--color-gray-50);
896
972
  }
973
+ .text-gray-400 {
974
+ color: var(--color-gray-400);
975
+ }
897
976
  .text-gray-500 {
898
977
  color: var(--color-gray-500);
899
978
  }
@@ -1089,6 +1168,13 @@
1089
1168
  }
1090
1169
  }
1091
1170
  }
1171
+ .hover\:bg-red-50 {
1172
+ &:hover {
1173
+ @media (hover: hover) {
1174
+ background-color: var(--color-red-50);
1175
+ }
1176
+ }
1177
+ }
1092
1178
  .hover\:bg-red-700 {
1093
1179
  &:hover {
1094
1180
  @media (hover: hover) {
@@ -1216,6 +1302,26 @@
1216
1302
  line-height: var(--tw-leading, var(--text-base--line-height));
1217
1303
  }
1218
1304
  }
1305
+ .md\:block {
1306
+ @media (width >= 48rem) {
1307
+ display: block;
1308
+ }
1309
+ }
1310
+ .md\:flex {
1311
+ @media (width >= 48rem) {
1312
+ display: flex;
1313
+ }
1314
+ }
1315
+ .md\:hidden {
1316
+ @media (width >= 48rem) {
1317
+ display: none;
1318
+ }
1319
+ }
1320
+ .md\:inline {
1321
+ @media (width >= 48rem) {
1322
+ display: inline;
1323
+ }
1324
+ }
1219
1325
  .md\:grid-cols-2 {
1220
1326
  @media (width >= 48rem) {
1221
1327
  grid-template-columns: repeat(2, minmax(0, 1fr));
@@ -1227,6 +1333,32 @@
1227
1333
  line-height: var(--tw-leading, var(--text-2xl--line-height));
1228
1334
  }
1229
1335
  }
1336
+ .lg\:gap-4 {
1337
+ @media (width >= 64rem) {
1338
+ gap: calc(var(--spacing) * 4);
1339
+ }
1340
+ }
1341
+ .lg\:rounded-lg {
1342
+ @media (width >= 64rem) {
1343
+ border-radius: var(--radius-lg);
1344
+ }
1345
+ }
1346
+ .lg\:border {
1347
+ @media (width >= 64rem) {
1348
+ border-style: var(--tw-border-style);
1349
+ border-width: 1px;
1350
+ }
1351
+ }
1352
+ .lg\:border-gray-200 {
1353
+ @media (width >= 64rem) {
1354
+ border-color: var(--color-gray-200);
1355
+ }
1356
+ }
1357
+ .lg\:p-4 {
1358
+ @media (width >= 64rem) {
1359
+ padding: calc(var(--spacing) * 4);
1360
+ }
1361
+ }
1230
1362
  }
1231
1363
  /*! tailwindcss v4.1.12 | MIT License | https://tailwindcss.com */
1232
1364
  @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
@@ -19139,15 +19271,15 @@ input[type="number"] {
19139
19271
  }
19140
19272
  @media (max-width: 640px) {
19141
19273
  .editor-container {
19142
- padding: 0.25rem;
19143
- transform: scale(0.95);
19274
+ padding: 0.125rem;
19275
+ transform: none;
19144
19276
  transform-origin: top left;
19145
19277
  }
19146
19278
  }
19147
19279
  @media (min-width: 641px) and (max-width: 1023px) {
19148
19280
  .editor-container {
19149
- padding: 0.5rem;
19150
- transform: scale(0.9);
19281
+ padding: 0.25rem;
19282
+ transform: none;
19151
19283
  transform-origin: top left;
19152
19284
  }
19153
19285
  }
@@ -19160,6 +19292,42 @@ input[type="number"] {
19160
19292
  transform: none;
19161
19293
  }
19162
19294
  }
19295
+ @media (min-width: 768px) {
19296
+ .md\:grid-cols-2 {
19297
+ grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
19298
+ }
19299
+ }
19300
+ @media (min-width: 768px) {
19301
+ .md\:flex {
19302
+ display: flex !important;
19303
+ }
19304
+ .md\:hidden {
19305
+ display: none !important;
19306
+ }
19307
+ .md\:block {
19308
+ display: block !important;
19309
+ }
19310
+ .md\:inline {
19311
+ display: inline !important;
19312
+ }
19313
+ }
19314
+ @media (min-width: 1024px) {
19315
+ .lg\:gap-4 {
19316
+ gap: 1rem !important;
19317
+ }
19318
+ .lg\:border {
19319
+ border-width: 1px !important;
19320
+ }
19321
+ .lg\:border-gray-200 {
19322
+ border-color: rgb(229, 231, 235) !important;
19323
+ }
19324
+ .lg\:rounded-lg {
19325
+ border-radius: 0.5rem !important;
19326
+ }
19327
+ .lg\:p-4 {
19328
+ padding: 1rem !important;
19329
+ }
19330
+ }
19163
19331
  @property --tw-border-spacing-x {
19164
19332
  syntax: "<length>";
19165
19333
  inherits: false;
@@ -3,6 +3,7 @@ export default {
3
3
  content: [
4
4
  "./index.html",
5
5
  "./src/**/*.{js,ts,jsx,tsx}",
6
+ "./editors/**/*.{js,ts,jsx,tsx}",
6
7
  ],
7
8
  theme: {
8
9
  extend: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@powerhousedao/contributor-billing",
3
3
  "description": "Document models that help contributors of open organisations get paid anonymously for their work on a monthly basis.",
4
- "version": "0.0.98",
4
+ "version": "0.1.0",
5
5
  "license": "AGPL-3.0-only",
6
6
  "type": "module",
7
7
  "files": [
@@ -57,9 +57,9 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@google-cloud/documentai": "^8.12.0",
60
- "@powerhousedao/builder-tools": "^5.0.0-staging.21",
61
- "@powerhousedao/common": "^5.0.0-staging.21",
62
- "@powerhousedao/design-system": "^5.0.0-staging.21",
60
+ "@powerhousedao/builder-tools": "^5.0.0-staging.25",
61
+ "@powerhousedao/common": "^5.0.0-staging.25",
62
+ "@powerhousedao/design-system": "^5.0.0-staging.25",
63
63
  "@powerhousedao/document-engineering": "^1.38.0",
64
64
  "@react-pdf/renderer": "^4.3.0",
65
65
  "@safe-global/api-kit": "^3.0.1",
@@ -69,7 +69,7 @@
69
69
  "@types/cors": "^2.8.17",
70
70
  "axios": "^1.9.0",
71
71
  "cors": "^2.8.5",
72
- "document-model": "^5.0.0-staging.21",
72
+ "document-model": "^5.0.0-staging.25",
73
73
  "dotenv": "^16.5.0",
74
74
  "error": "^10.4.0",
75
75
  "ethers": "^6.14.0",
@@ -84,20 +84,21 @@
84
84
  "devDependencies": {
85
85
  "@electric-sql/pglite": "^0.2.12",
86
86
  "@eslint/js": "^9.25.0",
87
+ "@playwright/test": "^1.56.0",
87
88
  "@powerhousedao/analytics-engine-core": "^0.5.0",
88
- "@powerhousedao/codegen": "^5.0.0-staging.21",
89
- "@powerhousedao/ph-cli": "^5.0.0-staging.21",
90
- "@powerhousedao/reactor-api": "^5.0.0-staging.21",
91
- "@powerhousedao/reactor-browser": "^5.0.0-staging.21",
92
- "@powerhousedao/reactor-local": "^5.0.0-staging.21",
89
+ "@powerhousedao/codegen": "^5.0.0-staging.25",
90
+ "@powerhousedao/ph-cli": "^5.0.0-staging.25",
91
+ "@powerhousedao/reactor-api": "^5.0.0-staging.25",
92
+ "@powerhousedao/reactor-browser": "^5.0.0-staging.25",
93
+ "@powerhousedao/reactor-local": "^5.0.0-staging.25",
93
94
  "@powerhousedao/scalars": "^1.33.1-staging.5",
94
- "@powerhousedao/switchboard": "^5.0.0-staging.21",
95
+ "@powerhousedao/switchboard": "^5.0.0-staging.25",
95
96
  "@tailwindcss/cli": "^4.1.4",
96
97
  "@testing-library/react": "^16.3.0",
97
98
  "@types/node": "^22.14.1",
98
99
  "@types/react": "^18.3.20",
99
100
  "@vitejs/plugin-react": "^4.4.1",
100
- "document-drive": "^5.0.0-staging.21",
101
+ "document-drive": "^5.0.0-staging.25",
101
102
  "eslint": "^9.25.0",
102
103
  "eslint-plugin-react": "^7.37.5",
103
104
  "eslint-plugin-react-hooks": "^5.2.0",
@@ -1,8 +0,0 @@
1
- /**
2
- * This is a scaffold file meant for customization:
3
- * - modify it by implementing the reducer functions
4
- * - delete the file and run the code generator again to have it reset
5
- */
6
- import type { InvoiceGeneralOperations } from "../../gen/general/operations.js";
7
- export declare const reducer: InvoiceGeneralOperations;
8
- //# sourceMappingURL=general.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../reducers/general.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAEhF,eAAO,MAAM,OAAO,EAAE,wBAkErB,CAAC"}
@@ -1,73 +0,0 @@
1
- /**
2
- * This is a scaffold file meant for customization:
3
- * - modify it by implementing the reducer functions
4
- * - delete the file and run the code generator again to have it reset
5
- */
6
- export const reducer = {
7
- editInvoiceOperation(state, action, dispatch) {
8
- try {
9
- const newState = { ...state };
10
- newState.currency = action.input.currency ?? state.currency;
11
- newState.dateDue = action.input.dateDue ?? state.dateDue;
12
- newState.dateIssued = action.input.dateIssued ?? state.dateIssued;
13
- newState.invoiceNo = action.input.invoiceNo ?? state.invoiceNo;
14
- newState.notes = action.input.notes ?? state.notes;
15
- state = Object.assign(state, newState);
16
- }
17
- catch (e) {
18
- console.error(e);
19
- }
20
- },
21
- editStatusOperation(state, action, dispatch) {
22
- try {
23
- state.status = action.input.status;
24
- }
25
- catch (e) {
26
- console.error(e);
27
- }
28
- },
29
- editPaymentDataOperation(state, action, dispatch) {
30
- try {
31
- const payment = state.payments.find((payment) => payment.id === action.input.id);
32
- if (payment) {
33
- payment.processorRef = action.input.processorRef ?? payment.processorRef;
34
- payment.paymentDate = action.input.paymentDate ?? payment.paymentDate;
35
- payment.txnRef = action.input.txnRef ?? payment.txnRef;
36
- payment.confirmed = action.input.confirmed ?? payment.confirmed;
37
- payment.issue = action.input.issue ?? payment.issue;
38
- }
39
- }
40
- catch (e) {
41
- console.error(e);
42
- }
43
- },
44
- addPaymentOperation(state, action, dispatch) {
45
- try {
46
- const payment = {
47
- id: action.input.id,
48
- processorRef: action.input.processorRef ?? "",
49
- paymentDate: action.input.paymentDate ?? "",
50
- txnRef: action.input.txnRef ?? "",
51
- confirmed: action.input.confirmed ?? false,
52
- issue: action.input.issue ?? "",
53
- amount: 0,
54
- };
55
- state.payments.push(payment);
56
- }
57
- catch (e) {
58
- console.error(e);
59
- }
60
- },
61
- setExportedDataOperation(state, action, dispatch) {
62
- try {
63
- const exportedData = {
64
- timestamp: action.input.timestamp,
65
- exportedLineItems: action.input.exportedLineItems,
66
- };
67
- state.exported = exportedData;
68
- }
69
- catch (e) {
70
- console.error(e);
71
- }
72
- }
73
- };
@@ -1,8 +0,0 @@
1
- /**
2
- * This is a scaffold file meant for customization:
3
- * - modify it by implementing the reducer functions
4
- * - delete the file and run the code generator again to have it reset
5
- */
6
- import type { InvoiceItemsOperations } from "../../gen/items/operations.js";
7
- export declare const reducer: InvoiceItemsOperations;
8
- //# sourceMappingURL=items.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../reducers/items.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAG5E,eAAO,MAAM,OAAO,EAAE,sBA6GrB,CAAC"}