@layerfi/components 0.1.112-alpha.4 → 0.1.112
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.
- package/dist/cjs/index.cjs +1417 -1226
- package/dist/esm/index.mjs +1405 -1214
- package/dist/index.css +580 -537
- package/dist/index.d.ts +94 -97
- package/package.json +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -118,7 +118,7 @@ declare type BankTransactionFilters = {
|
|
|
118
118
|
tagFilter?: TagFilterInput;
|
|
119
119
|
};
|
|
120
120
|
|
|
121
|
-
export declare const BankTransactions: ({ onError, showTags, showCustomerVendor, monthlyView, applyGlobalDateRange, mode, renderInAppLink,
|
|
121
|
+
export declare const BankTransactions: ({ onError, showTags, showCustomerVendor, monthlyView, applyGlobalDateRange, mode, renderInAppLink, ...props }: BankTransactionsWithErrorProps) => JSX_2.Element;
|
|
122
122
|
|
|
123
123
|
declare interface BankTransactionsHeaderStringOverrides {
|
|
124
124
|
header?: string;
|
|
@@ -149,8 +149,7 @@ declare interface BankTransactionsProps {
|
|
|
149
149
|
collapseHeader?: boolean;
|
|
150
150
|
stringOverrides?: BankTransactionsStringOverrides;
|
|
151
151
|
renderInAppLink?: (details: LinkingMetadata) => ReactNode;
|
|
152
|
-
|
|
153
|
-
_showBulkSelection?: boolean;
|
|
152
|
+
showCategorizationRules?: boolean;
|
|
154
153
|
}
|
|
155
154
|
|
|
156
155
|
declare interface BankTransactionsStringOverrides {
|
|
@@ -173,7 +172,7 @@ declare interface BankTransactionsWithErrorProps extends BankTransactionsProps {
|
|
|
173
172
|
showTags?: boolean;
|
|
174
173
|
}
|
|
175
174
|
|
|
176
|
-
export declare const BankTransactionsWithLinkedAccounts: ({ title, showTitle, elevatedLinkedAccounts, mode, showBreakConnection, showCustomerVendor, showDescriptions, showLedgerBalance, showReceiptUploads, showTags, showTooltips, showUnlinkItem, showUploadOptions, mobileComponent, stringOverrides, renderInAppLink,
|
|
175
|
+
export declare const BankTransactionsWithLinkedAccounts: ({ title, showTitle, elevatedLinkedAccounts, mode, showBreakConnection, showCustomerVendor, showDescriptions, showLedgerBalance, showReceiptUploads, showTags, showTooltips, showUnlinkItem, showUploadOptions, mobileComponent, stringOverrides, renderInAppLink, showCategorizationRules, }: BankTransactionsWithLinkedAccountsProps) => JSX_2.Element;
|
|
177
176
|
|
|
178
177
|
declare interface BankTransactionsWithLinkedAccountsProps {
|
|
179
178
|
title?: string;
|
|
@@ -195,8 +194,7 @@ declare interface BankTransactionsWithLinkedAccountsProps {
|
|
|
195
194
|
mobileComponent?: MobileComponentType;
|
|
196
195
|
stringOverrides?: BankTransactionsWithLinkedAccountsStringOverrides;
|
|
197
196
|
renderInAppLink?: (details: LinkingMetadata) => ReactNode;
|
|
198
|
-
|
|
199
|
-
_showBulkSelection?: boolean;
|
|
197
|
+
showCategorizationRules?: boolean;
|
|
200
198
|
}
|
|
201
199
|
|
|
202
200
|
declare interface BankTransactionsWithLinkedAccountsStringOverrides {
|
|
@@ -216,7 +214,7 @@ declare type BillsViewProps = {
|
|
|
216
214
|
stringOverrides?: BillsStringOverrides;
|
|
217
215
|
};
|
|
218
216
|
|
|
219
|
-
export declare const BookkeepingOverview: ({ title, showTitle, onClickReconnectAccounts, stringOverrides, slotProps,
|
|
217
|
+
export declare const BookkeepingOverview: ({ title, showTitle, onClickReconnectAccounts, stringOverrides, slotProps, }: BookkeepingOverviewProps) => JSX_2.Element;
|
|
220
218
|
|
|
221
219
|
declare interface BookkeepingOverviewProps {
|
|
222
220
|
showTitle?: boolean;
|
|
@@ -236,7 +234,6 @@ declare interface BookkeepingOverviewProps {
|
|
|
236
234
|
};
|
|
237
235
|
};
|
|
238
236
|
};
|
|
239
|
-
_showBookACall?: boolean;
|
|
240
237
|
onClickReconnectAccounts?: () => void;
|
|
241
238
|
/**
|
|
242
239
|
* @deprecated Use `stringOverrides.title` instead
|
|
@@ -499,7 +496,7 @@ declare interface GeneralLedgerStringOverrides {
|
|
|
499
496
|
export declare const GeneralLedgerView: ({ title, showTitle, showTags, showCustomerVendor, stringOverrides, chartOfAccountsOptions, renderInAppLink, }: GeneralLedgerProps) => JSX_2.Element;
|
|
500
497
|
|
|
501
498
|
/**
|
|
502
|
-
* Configuration for the hero/main content section of the
|
|
499
|
+
* Configuration for the hero/main content section of the Landing Page page
|
|
503
500
|
*/
|
|
504
501
|
declare type HeroContentConfig = {
|
|
505
502
|
stringOverrides: {
|
|
@@ -514,8 +511,8 @@ declare type HeroContentConfig = {
|
|
|
514
511
|
topOfFoldImage: string;
|
|
515
512
|
};
|
|
516
513
|
cta: {
|
|
517
|
-
primary:
|
|
518
|
-
secondary:
|
|
514
|
+
primary: LandingPageLink;
|
|
515
|
+
secondary: LandingPageLink;
|
|
519
516
|
};
|
|
520
517
|
};
|
|
521
518
|
|
|
@@ -573,6 +570,92 @@ declare interface JournalTableStringOverrides {
|
|
|
573
570
|
creditColumnHeader?: string;
|
|
574
571
|
}
|
|
575
572
|
|
|
573
|
+
/**
|
|
574
|
+
* The LandingPage component provides a page-level component that surfaces the Layer accounting
|
|
575
|
+
* and bookkeeping services. It acts as a landing page allowing platforms to showcase the core value proposition
|
|
576
|
+
* and offers/pricing for the platform's end users.
|
|
577
|
+
* @see LandingPageMainConfig
|
|
578
|
+
@param config Allows you to customize the page component.
|
|
579
|
+
@returns A React JSX component
|
|
580
|
+
*/
|
|
581
|
+
export declare const LandingPage: ({ platform, availableOffers, heroOverrides, offeringOverrides, }: LandingPageProps) => JSX_2.Element;
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* Configuration for individual Landing Page cards (accounting or bookkeeping)
|
|
585
|
+
*/
|
|
586
|
+
declare type LandingPageCardConfig = {
|
|
587
|
+
offerType: 'accounting' | 'bookkeeping';
|
|
588
|
+
stringOverrides: {
|
|
589
|
+
badge: string;
|
|
590
|
+
title: string;
|
|
591
|
+
subtitle: string;
|
|
592
|
+
priceAmount: string;
|
|
593
|
+
priceUnit: string;
|
|
594
|
+
};
|
|
595
|
+
mediaUrls: {
|
|
596
|
+
offerImage: string;
|
|
597
|
+
};
|
|
598
|
+
cta: {
|
|
599
|
+
primary: LandingPageLink;
|
|
600
|
+
};
|
|
601
|
+
showStartingAtLabel: boolean;
|
|
602
|
+
};
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* A Link acts as a call-to-action for users interacting with the LandingPage component.
|
|
606
|
+
* @see LandingPage
|
|
607
|
+
*/
|
|
608
|
+
declare type LandingPageLink = {
|
|
609
|
+
/** Text label displayed for the link. */
|
|
610
|
+
label: string;
|
|
611
|
+
/** Destination for the link. If calendly URL, opens a Calendly modal. Otherwise, opens a new tab. */
|
|
612
|
+
url: string;
|
|
613
|
+
};
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* The PlatformConfig holds on to the name of the platform integrating with Layer, the primary
|
|
617
|
+
* top-of-fold image shown on the LandingPage component, and the name of the platform's
|
|
618
|
+
* niche or industry.
|
|
619
|
+
@see LandingPage
|
|
620
|
+
*/
|
|
621
|
+
declare interface LandingPagePlatformConfig {
|
|
622
|
+
/**
|
|
623
|
+
* The platform/brand name displayed throughout the component (e.g., "Shopify", "WooCommerce").
|
|
624
|
+
* Used in titles, descriptions, and feature text to customize the content.
|
|
625
|
+
*/
|
|
626
|
+
platformName: string;
|
|
627
|
+
/**
|
|
628
|
+
* The target industry for customization (e.g., "e-commerce", "SaaS", "retail").
|
|
629
|
+
* Used to tailor feature descriptions and messaging to the specific industry.
|
|
630
|
+
*
|
|
631
|
+
* In cases where the industry name substitution does not work well for the value
|
|
632
|
+
* propositions or features, we recommended you overwrite the value propositions directly.
|
|
633
|
+
*
|
|
634
|
+
@see LandingPageValueProposition
|
|
635
|
+
*/
|
|
636
|
+
industry: string;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* Props for the LandingPage component.
|
|
641
|
+
*
|
|
642
|
+
* Requires only a single parameter, which is `config` which holds on to all the customizable
|
|
643
|
+
* settings for the landing page component such as textual content on the accounting and bookkeeping
|
|
644
|
+
* services, with varied pricing options and book-a-call calendly integration.
|
|
645
|
+
*/
|
|
646
|
+
declare interface LandingPageProps {
|
|
647
|
+
platform: LandingPagePlatformConfig;
|
|
648
|
+
availableOffers: ('accounting' | 'bookkeeping')[];
|
|
649
|
+
heroOverrides: DeepPartial<HeroContentConfig>;
|
|
650
|
+
offeringOverrides: {
|
|
651
|
+
stringOverrides?: {
|
|
652
|
+
sectionTitle: string;
|
|
653
|
+
};
|
|
654
|
+
accounting: DeepPartial<LandingPageCardConfig>;
|
|
655
|
+
bookkeeping: DeepPartial<LandingPageCardConfig>;
|
|
656
|
+
};
|
|
657
|
+
}
|
|
658
|
+
|
|
576
659
|
declare type LayerContextDateRange = {
|
|
577
660
|
dateRange: {
|
|
578
661
|
range: DateRange;
|
|
@@ -918,92 +1001,6 @@ declare type ReportType = 'profitAndLoss' | 'balanceSheet' | 'statementOfCashFlo
|
|
|
918
1001
|
|
|
919
1002
|
declare type Scope = 'expenses' | 'revenue';
|
|
920
1003
|
|
|
921
|
-
/**
|
|
922
|
-
* The ServiceOffering component provides a page-level component that surfaces the Layer accounting
|
|
923
|
-
* and bookkeeping services. It acts as a landing page allowing platforms to showcase the core value proposition
|
|
924
|
-
* and offers/pricing for the platform's end users.
|
|
925
|
-
@see ServiceOfferingMainConfig
|
|
926
|
-
@param config Allows you to customize the page component.
|
|
927
|
-
@returns A React JSX component
|
|
928
|
-
*/
|
|
929
|
-
export declare const ServiceOffering: ({ platform, availableOffers, heroOverrides, offeringOverrides, }: ServiceOfferingProps) => JSX_2.Element;
|
|
930
|
-
|
|
931
|
-
/**
|
|
932
|
-
* Configuration for individual service offering cards (accounting or bookkeeping)
|
|
933
|
-
*/
|
|
934
|
-
declare type ServiceOfferingCardConfig = {
|
|
935
|
-
offerType: 'accounting' | 'bookkeeping';
|
|
936
|
-
stringOverrides: {
|
|
937
|
-
badge: string;
|
|
938
|
-
title: string;
|
|
939
|
-
subtitle: string;
|
|
940
|
-
priceAmount: string;
|
|
941
|
-
priceUnit: string;
|
|
942
|
-
};
|
|
943
|
-
mediaUrls: {
|
|
944
|
-
offerImage: string;
|
|
945
|
-
};
|
|
946
|
-
cta: {
|
|
947
|
-
primary: ServiceOfferingLink;
|
|
948
|
-
};
|
|
949
|
-
showStartingAtLabel: boolean;
|
|
950
|
-
};
|
|
951
|
-
|
|
952
|
-
/**
|
|
953
|
-
* A Link acts as a call-to-action for users interacting with the ServiceOffering component.
|
|
954
|
-
@see ServiceOffering
|
|
955
|
-
*/
|
|
956
|
-
declare type ServiceOfferingLink = {
|
|
957
|
-
/** Text label displayed for the link. */
|
|
958
|
-
label: string;
|
|
959
|
-
/** Destination for the link. If calendly URL, opens a Calendly modal. Otherwise, opens a new tab. */
|
|
960
|
-
url: string;
|
|
961
|
-
};
|
|
962
|
-
|
|
963
|
-
/**
|
|
964
|
-
* The PlatformConfig holds on to the name of the platform integrating with Layer, the primary
|
|
965
|
-
* top-of-fold image shown on the ServiceOffering component, and the name of the platform's
|
|
966
|
-
* niche or industry.
|
|
967
|
-
@see ServiceOffering
|
|
968
|
-
*/
|
|
969
|
-
declare interface ServiceOfferingPlatformConfig {
|
|
970
|
-
/**
|
|
971
|
-
* The platform/brand name displayed throughout the component (e.g., "Shopify", "WooCommerce").
|
|
972
|
-
* Used in titles, descriptions, and feature text to customize the content.
|
|
973
|
-
*/
|
|
974
|
-
platformName: string;
|
|
975
|
-
/**
|
|
976
|
-
* The target industry for customization (e.g., "e-commerce", "SaaS", "retail").
|
|
977
|
-
* Used to tailor feature descriptions and messaging to the specific industry.
|
|
978
|
-
*
|
|
979
|
-
* In cases where the industry name substitution does not work well for the value
|
|
980
|
-
* propositions or features, we recommended you overwrite the value propositions directly.
|
|
981
|
-
*
|
|
982
|
-
@see ServiceOfferingValueProposition
|
|
983
|
-
*/
|
|
984
|
-
industry: string;
|
|
985
|
-
}
|
|
986
|
-
|
|
987
|
-
/**
|
|
988
|
-
* Props for the ServiceOffering component.
|
|
989
|
-
*
|
|
990
|
-
* Requires only a single parameter, which is `config` which holds on to all the customizable
|
|
991
|
-
* settings for the service offering component such as textual content on the accounting and bookkeeping
|
|
992
|
-
* services, with varied pricing options and book-a-call calendly integration.
|
|
993
|
-
*/
|
|
994
|
-
declare interface ServiceOfferingProps {
|
|
995
|
-
platform: ServiceOfferingPlatformConfig;
|
|
996
|
-
availableOffers: ('accounting' | 'bookkeeping')[];
|
|
997
|
-
heroOverrides: DeepPartial<HeroContentConfig>;
|
|
998
|
-
offeringOverrides: {
|
|
999
|
-
stringOverrides?: {
|
|
1000
|
-
sectionTitle: string;
|
|
1001
|
-
};
|
|
1002
|
-
accounting: DeepPartial<ServiceOfferingCardConfig>;
|
|
1003
|
-
bookkeeping: DeepPartial<ServiceOfferingCardConfig>;
|
|
1004
|
-
};
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
1004
|
declare type SidebarScope = Scope | undefined;
|
|
1008
1005
|
|
|
1009
1006
|
declare const _SIZE_VARIANTS: readonly ["sm", "lg"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layerfi/components",
|
|
3
|
-
"version": "0.1.112
|
|
3
|
+
"version": "0.1.112",
|
|
4
4
|
"description": "Layer React Components",
|
|
5
5
|
"main": "dist/cjs/index.cjs",
|
|
6
6
|
"module": "dist/esm/index.mjs",
|
|
@@ -85,6 +85,7 @@
|
|
|
85
85
|
"dependencies": {
|
|
86
86
|
"@floating-ui/react": "^0.27.8",
|
|
87
87
|
"@internationalized/date": "^3.8.2",
|
|
88
|
+
"@react-hook/resize-observer": "^2.0.2",
|
|
88
89
|
"@tanstack/react-form": "^1.19.0",
|
|
89
90
|
"@tanstack/react-table": "^8.21.3",
|
|
90
91
|
"@tanstack/react-virtual": "^3.13.9",
|
|
@@ -101,6 +102,7 @@
|
|
|
101
102
|
"react-currency-input-field": "^3.10.0",
|
|
102
103
|
"react-datepicker": "^6.9.0",
|
|
103
104
|
"react-dropzone": "^14.3.8",
|
|
105
|
+
"react-merge-refs": "^3.0.2",
|
|
104
106
|
"react-plaid-link": "^4.0.1",
|
|
105
107
|
"react-select": "^5.10.1",
|
|
106
108
|
"recharts": "^2.15.3",
|