@bunnyapp/components 1.0.17 → 1.0.19

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.
@@ -1,11 +1,10 @@
1
1
  import "../../styles/index.less";
2
2
  import { ShadowType } from "../../types/shadowType";
3
- declare const BillingDetails: ({ entityId, isCardEnabled, shadow, className, accountId: accountIdProp, hidePaymentMethodForm, countryListFilter, }: {
3
+ declare const BillingDetails: ({ entityId, isCardEnabled, shadow, className, hidePaymentMethodForm, countryListFilter, }: {
4
4
  entityId: string;
5
5
  isCardEnabled?: boolean | undefined;
6
6
  shadow?: ShadowType | undefined;
7
7
  className?: string | undefined;
8
- accountId?: string | undefined;
9
8
  hidePaymentMethodForm?: boolean | undefined;
10
9
  countryListFilter?: ((country: {
11
10
  value: string;
@@ -1,2 +1,3 @@
1
1
  import { InvoiceQuoteContextProps } from "./InvoiceQuoteContext";
2
+ import "../../styles/index.less";
2
3
  export default function Invoice({ id, invoiceQuoteViewComponent, backButtonName, onBackButtonClick, onInvoiceDownloadError, onPaymentSuccess, entityId, shadow, className, hideDownloadButton, }: InvoiceQuoteContextProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
- export default function InvoicePDF({ invoiceUuid, apiHost, }: {
1
+ export default function InvoicePDF({ invoiceUuid, apiHost, token, }: {
2
2
  invoiceUuid?: string;
3
3
  apiHost: string;
4
+ token: string;
4
5
  }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ declare const billingDetailsUpdate: ({ attributes, token, apiHost, }: {
2
+ attributes: Record<string, string>;
3
+ token: string;
4
+ apiHost: string;
5
+ }) => Promise<any>;
6
+ export default billingDetailsUpdate;
@@ -0,0 +1,6 @@
1
+ import BillingDetails from "../../types/billingDetails";
2
+ declare const getBillingDetails: ({ token, apiHost, }: {
3
+ token: string;
4
+ apiHost: string;
5
+ }) => Promise<BillingDetails>;
6
+ export default getBillingDetails;
@@ -0,0 +1,12 @@
1
+ export default interface BillingDetails {
2
+ name?: string;
3
+ billingCity?: string;
4
+ billingContact?: {
5
+ email?: string;
6
+ };
7
+ billingCountry?: string;
8
+ billingState?: string;
9
+ billingStreet?: string;
10
+ billingZip?: string;
11
+ taxNumber?: string;
12
+ }
package/dist/index.d.ts CHANGED
@@ -183,12 +183,11 @@ declare const Subscriptions: ({ companyName, entityId, gap, shadow, showTitle, c
183
183
  className?: string | undefined;
184
184
  }) => react_jsx_runtime.JSX.Element;
185
185
 
186
- declare const BillingDetails: ({ entityId, isCardEnabled, shadow, className, accountId: accountIdProp, hidePaymentMethodForm, countryListFilter, }: {
186
+ declare const BillingDetails: ({ entityId, isCardEnabled, shadow, className, hidePaymentMethodForm, countryListFilter, }: {
187
187
  entityId: string;
188
188
  isCardEnabled?: boolean | undefined;
189
189
  shadow?: ShadowType | undefined;
190
190
  className?: string | undefined;
191
- accountId?: string | undefined;
192
191
  hidePaymentMethodForm?: boolean | undefined;
193
192
  countryListFilter?: ((country: {
194
193
  value: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunnyapp/components",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "Components from the Bunny portal to embed Bunny UI functionality into your application.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -1,8 +0,0 @@
1
- declare const portalSessionCreate: ({ tenantCode, expiry, returnUrl, token, apiHost, }: {
2
- tenantCode: string;
3
- expiry: number;
4
- returnUrl: string;
5
- token: string;
6
- apiHost: string;
7
- }) => Promise<any>;
8
- export default portalSessionCreate;
@@ -1,7 +0,0 @@
1
- import { Account } from "@bunnyapp/common";
2
- declare const getAccount: ({ id, token, apiHost, }: {
3
- id?: string | undefined;
4
- token: string;
5
- apiHost: string;
6
- }) => Promise<Account>;
7
- export default getAccount;
@@ -1,8 +0,0 @@
1
- declare const portalSessionCreate: ({ tenantCode, expiry, returnUrl, token, apiHost, }: {
2
- tenantCode: string;
3
- expiry: number;
4
- returnUrl: string;
5
- token: string;
6
- apiHost: string;
7
- }) => Promise<any>;
8
- export default portalSessionCreate;
@@ -1,7 +0,0 @@
1
- import { Account } from "@bunnyapp/common";
2
- declare const getAccount: ({ id, token, apiHost, }: {
3
- id?: string | undefined;
4
- token: string;
5
- apiHost: string;
6
- }) => Promise<Account>;
7
- export default getAccount;