@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.
@@ -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;
@@ -1,4 +1,4 @@
1
- import { S as e } from "./supertab-CSYk9Bg2.js";
1
+ import { S as e } from "./supertab-BCEiM5iF.js";
2
2
  export {
3
3
  e as Supertab
4
4
  };
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "engines": {
23
23
  "node": ">=22.13.1"
24
24
  },
25
- "version": "3.26.0",
25
+ "version": "3.27.0",
26
26
  "type": "module",
27
27
  "scripts": {
28
28
  "dev": "vite --config .vite/vite.dev.config.ts",