@getsupertab/supertab-js 3.26.0 → 3.27.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.
- package/dist/pkg/prod/{browser-ponyfill-Bhk6rnf4.js → browser-ponyfill-CNklgiN6.js} +1 -1
- package/dist/pkg/prod/{sentry-C9dqBo1C.js → sentry-D3TAWXDk.js} +1 -1
- package/dist/pkg/prod/{supertab-CSYk9Bg2.js → supertab-BCEiM5iF.js} +4746 -4719
- package/dist/pkg/prod/supertab.d.ts +13 -1
- package/dist/pkg/prod/supertab.js +1 -1
- package/package.json +1 -1
|
@@ -379,6 +379,17 @@ declare interface CreatePurchaseResult {
|
|
|
379
379
|
destroy: () => void;
|
|
380
380
|
}
|
|
381
381
|
|
|
382
|
+
/**
|
|
383
|
+
* UI configuration specifically for the createPurchase function.
|
|
384
|
+
* Only includes the necessary color properties for styling.
|
|
385
|
+
*/
|
|
386
|
+
declare interface CreatePurchaseUiConfig {
|
|
387
|
+
colors: {
|
|
388
|
+
text: string;
|
|
389
|
+
background: string;
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
|
|
382
393
|
declare interface Currency {
|
|
383
394
|
code: string;
|
|
384
395
|
name: string;
|
|
@@ -516,12 +527,13 @@ export declare class Supertab extends SupertabClient {
|
|
|
516
527
|
destroy: () => void;
|
|
517
528
|
initialState?: undefined;
|
|
518
529
|
}>;
|
|
519
|
-
createPurchase({ offeringId, merchantName, merchantLogoUrl, language, purchaseMetadata, }: {
|
|
530
|
+
createPurchase({ offeringId, merchantName, merchantLogoUrl, language, purchaseMetadata, uiConfig, }: {
|
|
520
531
|
offeringId: string;
|
|
521
532
|
merchantName?: string;
|
|
522
533
|
merchantLogoUrl?: string;
|
|
523
534
|
language?: string;
|
|
524
535
|
purchaseMetadata?: Metadata;
|
|
536
|
+
uiConfig?: CreatePurchaseUiConfig;
|
|
525
537
|
}): Promise<CreatePurchaseResult>;
|
|
526
538
|
private renderButton;
|
|
527
539
|
private createPaygateContainer;
|