@powerhousedao/contributor-billing 0.1.30 → 0.1.31

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.
@@ -417,7 +417,7 @@ export default function Editor() {
417
417
  function handleClose() {
418
418
  setSelectedNode(parentFolder);
419
419
  }
420
- return (_jsxs("div", { children: [_jsx(DocumentToolbar, { document: doc, onClose: handleClose }), _jsxs("div", { className: "container mx-auto", children: [_jsx(ToastContainer, { position: "bottom-right", autoClose: 5000, hideProgressBar: false, newestOnTop: false, closeOnClick: false, rtl: false, pauseOnFocusLoss: true, draggable: true, pauseOnHover: true, theme: "light" }), _jsxs("div", { className: "mb-6", children: [_jsxs("div", { className: "hidden md:flex flex-row items-center justify-between gap-4", children: [_jsxs("div", { className: "flex flex-row items-center gap-4 flex-wrap", children: [_jsx("h1", { className: "text-3xl font-bold whitespace-nowrap", children: "Invoice" }), _jsx(InputField, { placeholder: "Add invoice number", value: invoiceNoInput, handleInputChange: (e) => setInvoiceNoInput(e.target.value), onBlur: (e) => {
420
+ return (_jsxs("div", { children: [_jsx(DocumentToolbar, { document: doc, onClose: handleClose }), _jsxs("div", { className: "container mx-auto mt-4", children: [_jsx(ToastContainer, { position: "bottom-right", autoClose: 5000, hideProgressBar: false, newestOnTop: false, closeOnClick: false, rtl: false, pauseOnFocusLoss: true, draggable: true, pauseOnHover: true, theme: "light" }), _jsxs("div", { className: "mb-6", children: [_jsxs("div", { className: "hidden md:flex flex-row items-center justify-between gap-4", children: [_jsxs("div", { className: "flex flex-row items-center gap-4 flex-wrap", children: [_jsx("h1", { className: "text-3xl font-bold whitespace-nowrap", children: "Invoice" }), _jsx(InputField, { placeholder: "Add invoice number", value: invoiceNoInput, handleInputChange: (e) => setInvoiceNoInput(e.target.value), onBlur: (e) => {
421
421
  const newValue = e.target.value;
422
422
  if (newValue !== state.invoiceNo) {
423
423
  dispatch(actions.editInvoice({ invoiceNo: newValue }));
@@ -7,7 +7,7 @@ import { getCountryCodeFromName, mapChainNameToConfig } from "./utils/utils.js";
7
7
  import { LoaderCircle } from "lucide-react";
8
8
  let GRAPHQL_URL = "http://localhost:4001/graphql";
9
9
  if (!window.document.baseURI.includes("localhost")) {
10
- GRAPHQL_URL = "https://switchboard-dev.powerhouse.xyz/graphql";
10
+ GRAPHQL_URL = "https://switchboard.powerhouse.xyz/graphql";
11
11
  }
12
12
  export async function loadPDFFile({ file, dispatch, }) {
13
13
  if (!file)
@@ -3,8 +3,8 @@ import React, { useState, useEffect } from "react";
3
3
  import { actions } from "../../document-models/invoice/index.js";
4
4
  import { generateId } from "document-model";
5
5
  let GRAPHQL_URL = "http://localhost:4001/graphql";
6
- if (!window.document.baseURI.includes("localhost")) {
7
- GRAPHQL_URL = "https://switchboard-dev.powerhouse.xyz/graphql";
6
+ if (!window.document.baseURI.includes('localhost')) {
7
+ GRAPHQL_URL = 'https://switchboard.powerhouse.xyz/graphql';
8
8
  }
9
9
  const InvoiceToGnosis = ({ docState, dispatch, }) => {
10
10
  const [isLoading, setIsLoading] = useState(false);
@@ -3,8 +3,8 @@ import React, { useState } from "react";
3
3
  import { actions } from "../../document-models/invoice/index.js";
4
4
  import { generateId } from "document-model";
5
5
  let GRAPHQL_URL = "http://localhost:4001/graphql";
6
- if (!window.document.baseURI.includes("localhost")) {
7
- GRAPHQL_URL = "https://switchboard-dev.powerhouse.xyz/graphql";
6
+ if (!window.document.baseURI.includes('localhost')) {
7
+ GRAPHQL_URL = 'https://switchboard.powerhouse.xyz/graphql';
8
8
  }
9
9
  const RequestFinance = ({ docState, dispatch, }) => {
10
10
  const [isLoading, setIsLoading] = useState(false);
@@ -6,8 +6,8 @@
6
6
  * @param onProgress Callback for upload progress
7
7
  */
8
8
  let GRAPHQL_URL = "http://localhost:4001/graphql";
9
- if (!window.document.baseURI.includes("localhost")) {
10
- GRAPHQL_URL = "https://switchboard-dev.powerhouse.xyz/graphql";
9
+ if (!window.document.baseURI.includes('localhost')) {
10
+ GRAPHQL_URL = 'https://switchboard.powerhouse.xyz/graphql';
11
11
  }
12
12
  export async function uploadPdfChunked(pdfData, endpoint = GRAPHQL_URL, chunkSize = 500 * 1024, // 500KB chunks
13
13
  onProgress) {
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.1.30",
4
+ "version": "0.1.31",
5
5
  "license": "AGPL-3.0-only",
6
6
  "type": "module",
7
7
  "files": [
@@ -66,7 +66,6 @@
66
66
  "@powerhousedao/common": "^5.0.12",
67
67
  "@powerhousedao/design-system": "^5.0.12",
68
68
  "@powerhousedao/document-engineering": "^1.40.0",
69
- "@powerhousedao/vetra": "^5.0.12",
70
69
  "@react-pdf/renderer": "^4.3.1",
71
70
  "@safe-global/api-kit": "^4.0.0",
72
71
  "@safe-global/protocol-kit": "^6.0.3",