@ic-pay/icpay-widget 1.1.12 → 1.1.15

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { T as ThemeConfig, C as CommonConfig } from './amount-input-BuRsVrmL.js';
2
- export { g as AmountInputConfig, A as ArticlePaywallConfig, e as CoffeeShopConfig, b as CryptoOption, D as DonationThermometerConfig, m as ICPayAmountInput, i as ICPayArticlePaywall, j as ICPayCoffeeShop, k as ICPayDonationThermometer, l as ICPayPayButton, I as ICPayPremiumContent, h as ICPayTipJar, O as OnrampConfig, f as PayButtonConfig, P as PlugNPlayConfig, c as PremiumContentConfig, a as ProgressBarConfig, d as TipJarConfig } from './amount-input-BuRsVrmL.js';
1
+ import { T as ThemeConfig, C as CommonConfig } from './amount-input-DOThSI5P.js';
2
+ export { g as AmountInputConfig, A as ArticlePaywallConfig, e as CoffeeShopConfig, b as CryptoOption, D as DonationThermometerConfig, m as ICPayAmountInput, i as ICPayArticlePaywall, j as ICPayCoffeeShop, k as ICPayDonationThermometer, l as ICPayPayButton, I as ICPayPremiumContent, h as ICPayTipJar, O as OnrampConfig, f as PayButtonConfig, P as PlugNPlayConfig, c as PremiumContentConfig, a as ProgressBarConfig, d as TipJarConfig } from './amount-input-DOThSI5P.js';
3
3
  import * as lit from 'lit';
4
4
  import { TemplateResult } from 'lit';
5
5
  import { Icpay, PriceCalculationResult } from '@ic-pay/icpay-sdk';
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{a as o,b as a,c as e,d as r,e as p,f as t,g as n,h as m,i as y,j as i,k as c}from"./chunk-2DMFM5CQ.js";import"./chunk-LTEQ7OUJ.js";export{c as ICPayAmountInput,n as ICPayArticlePaywall,m as ICPayCoffeeShop,y as ICPayDonationThermometer,i as ICPayPayButton,p as ICPayPremiumContent,t as ICPayTipJar,a as applyThemeVars,o as baseStyles,e as createSdk,r as renderTransakOnrampModal};
1
+ import{a as o,b as a,c as e,d as r,e as p,f as t,g as n,h as m,i as y,j as i,k as c}from"./chunk-7BODKC5B.js";import"./chunk-LTEQ7OUJ.js";export{c as ICPayAmountInput,n as ICPayArticlePaywall,m as ICPayCoffeeShop,y as ICPayDonationThermometer,i as ICPayPayButton,p as ICPayPremiumContent,t as ICPayTipJar,a as applyThemeVars,o as baseStyles,e as createSdk,r as renderTransakOnrampModal};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import '../amount-input-BuRsVrmL.js';
1
+ import '../amount-input-DOThSI5P.js';
2
2
  import 'lit';
3
3
 
4
4
  type IcpaySuccess = {
@@ -1,2 +1,2 @@
1
- import"../chunk-2DMFM5CQ.js";import"../chunk-LTEQ7OUJ.js";import I,{forwardRef as M,useEffect as d,useRef as b}from"react";function n(m,i){let f=M((o,t)=>{let s=b(null);d(()=>{let e=s.current;if(!e)return;let{children:p,className:r,style:y,id:c,role:l,tabIndex:u,title:a,ref:h,...C}=o;for(let[S,T]of Object.entries(C))try{e[S]=T}catch{}},[o]),d(()=>{let e=s.current;if(!e||!i?.eventMap)return;let p=[];for(let[r,y]of Object.entries(i.eventMap)){let c=o[r];if(typeof c=="function"){let l=u=>{let a=u;a&&"detail"in a?c(a.detail):c(u)};e.addEventListener(y,l),p.push(()=>e.removeEventListener(y,l))}}return()=>{p.forEach(r=>r())}},[o,i?.eventMap]);let g=e=>{s.current=e,typeof t=="function"?t(e):t&&typeof t=="object"&&(t.current=e)},{children:E,...v}=o;return I.createElement(m,{ref:g,...v},E)});return f.displayName=`ICPay(${m})`,f}var R=n("icpay-pay-button",{eventMap:{onSuccess:"icpay-pay",onError:"icpay-error"}}),A=n("icpay-amount-input",{eventMap:{onSuccess:"icpay-amount-pay",onError:"icpay-error"}}),H=n("icpay-premium-content",{eventMap:{onSuccess:"icpay-unlock",onError:"icpay-error"}}),w=n("icpay-tip-jar",{eventMap:{onSuccess:"icpay-tip",onError:"icpay-error"}}),k=n("icpay-article-paywall",{eventMap:{onSuccess:"icpay-unlock",onError:"icpay-error"}}),j=n("icpay-coffee-shop",{eventMap:{onSuccess:"icpay-coffee",onError:"icpay-error"}}),B=n("icpay-donation-thermometer",{eventMap:{onSuccess:"icpay-donation",onError:"icpay-error"}}),N=n("icpay-progress-bar");export{A as IcpayAmountInput,k as IcpayArticlePaywall,j as IcpayCoffeeShop,B as IcpayDonationThermometer,R as IcpayPayButton,H as IcpayPremiumContent,N as IcpayProgressBar,w as IcpayTipJar};
1
+ import"../chunk-7BODKC5B.js";import"../chunk-LTEQ7OUJ.js";import I,{forwardRef as M,useEffect as d,useRef as b}from"react";function n(m,i){let f=M((o,t)=>{let s=b(null);d(()=>{let e=s.current;if(!e)return;let{children:p,className:r,style:y,id:c,role:l,tabIndex:u,title:a,ref:h,...C}=o;for(let[S,T]of Object.entries(C))try{e[S]=T}catch{}},[o]),d(()=>{let e=s.current;if(!e||!i?.eventMap)return;let p=[];for(let[r,y]of Object.entries(i.eventMap)){let c=o[r];if(typeof c=="function"){let l=u=>{let a=u;a&&"detail"in a?c(a.detail):c(u)};e.addEventListener(y,l),p.push(()=>e.removeEventListener(y,l))}}return()=>{p.forEach(r=>r())}},[o,i?.eventMap]);let g=e=>{s.current=e,typeof t=="function"?t(e):t&&typeof t=="object"&&(t.current=e)},{children:E,...v}=o;return I.createElement(m,{ref:g,...v},E)});return f.displayName=`ICPay(${m})`,f}var R=n("icpay-pay-button",{eventMap:{onSuccess:"icpay-pay",onError:"icpay-error"}}),A=n("icpay-amount-input",{eventMap:{onSuccess:"icpay-amount-pay",onError:"icpay-error"}}),H=n("icpay-premium-content",{eventMap:{onSuccess:"icpay-unlock",onError:"icpay-error"}}),w=n("icpay-tip-jar",{eventMap:{onSuccess:"icpay-tip",onError:"icpay-error"}}),k=n("icpay-article-paywall",{eventMap:{onSuccess:"icpay-unlock",onError:"icpay-error"}}),j=n("icpay-coffee-shop",{eventMap:{onSuccess:"icpay-coffee",onError:"icpay-error"}}),B=n("icpay-donation-thermometer",{eventMap:{onSuccess:"icpay-donation",onError:"icpay-error"}}),N=n("icpay-progress-bar");export{A as IcpayAmountInput,k as IcpayArticlePaywall,j as IcpayCoffeeShop,B as IcpayDonationThermometer,R as IcpayPayButton,H as IcpayPremiumContent,N as IcpayProgressBar,w as IcpayTipJar};
2
2
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ic-pay/icpay-widget",
3
- "version": "1.1.12",
3
+ "version": "1.1.15",
4
4
  "description": "ICPay embeddable payment widgets as framework-agnostic Web Components",
5
5
  "homepage": "https://github.com/icpay/icpay-widget#readme",
6
6
  "bugs": {
@@ -36,7 +36,7 @@
36
36
  "prepare": "pnpm build"
37
37
  },
38
38
  "dependencies": {
39
- "@ic-pay/icpay-sdk": "^1.3.83",
39
+ "@ic-pay/icpay-sdk": "^1.3.87",
40
40
  "@windoge98/plug-n-play": "^0.0.70",
41
41
  "lit": "^3.3.1"
42
42
  },
@@ -48,9 +48,9 @@
48
48
  "typescript": "^5.9.2"
49
49
  },
50
50
  "peerDependencies": {
51
+ "@ic-pay/icpay-sdk": "*",
51
52
  "react": ">=18",
52
- "react-dom": ">=18",
53
- "@ic-pay/icpay-sdk": "*"
53
+ "react-dom": ">=18"
54
54
  },
55
55
  "module": "dist/index.js",
56
56
  "unpkg": "dist/index.iife.js"