@billgangcom/theme-lib 1.118.0 → 1.119.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.
Files changed (50) hide show
  1. package/dist/{builder-CcLZHVq3.js → builder-C7VD2Hrr.js} +5 -5
  2. package/dist/{builder-JKkaOMOl.cjs → builder-D40snPWY.cjs} +2 -2
  3. package/dist/{builder-components-B0SvEDG4.cjs → builder-components-3rAy-Smx.cjs} +1 -1
  4. package/dist/{builder-components-Dl3dEzV6.js → builder-components-BvBlpSpu.js} +4 -4
  5. package/dist/builder.cjs.js +1 -1
  6. package/dist/builder.es.js +44 -44
  7. package/dist/charge-5j107R6o.cjs +109 -0
  8. package/dist/{charge-DC4f3U8I.js → charge-iu_hkYgk.js} +6861 -7143
  9. package/dist/{checkout-B_qFvrUF.js → checkout-BpKCwIxB.js} +5 -5
  10. package/dist/{checkout-BaZLmyfk.cjs → checkout-CaqNOLLu.cjs} +1 -1
  11. package/dist/exports.cjs.js +1 -1
  12. package/dist/exports.es.js +25 -24
  13. package/dist/{index-DtcojRuS.cjs → index-11n2K2VN.cjs} +1 -1
  14. package/dist/{index-BtQ89Hj3.cjs → index-AEZ2KhQR.cjs} +1 -1
  15. package/dist/{index-CyiCR5lK.cjs → index-BOjsM7d1.cjs} +1 -1
  16. package/dist/{index-BqtOxv5i.js → index-BYBw4TgV.js} +5 -5
  17. package/dist/{index-CmO3iWeV.cjs → index-BjuGKegT.cjs} +1 -1
  18. package/dist/{index-D4Hp4-Qp.cjs → index-Cxrmj7hz.cjs} +1 -1
  19. package/dist/{index-Bh3_Rczn.js → index-DBgBtyQS.js} +1 -1
  20. package/dist/{index-C-SrHRJh.js → index-KiiAjnVN.js} +12 -12
  21. package/dist/{index-Ek3qYkbu.js → index-UVcYwMAu.js} +5 -5
  22. package/dist/{index-BFZm601D.js → index-jOdOgPXj.js} +5 -5
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.es.js +9 -9
  25. package/dist/{order-Bd24i-W3.js → order-BGmiWqRq.js} +5 -5
  26. package/dist/{order-t2QoTU6S.cjs → order-BphgbYol.cjs} +1 -1
  27. package/dist/src/exports.d.ts +1 -0
  28. package/dist/src/lib/createTicket.d.ts +1 -1
  29. package/dist/src/pages/ticket/model.d.ts +6 -1
  30. package/dist/src/storefront/api/ticket.d.ts +4 -1
  31. package/dist/src/ui/ImagesLoader/example.d.ts +18 -0
  32. package/dist/src/ui/ImagesLoader/index.d.ts +30 -0
  33. package/dist/src/ui/index.d.ts +1 -0
  34. package/dist/style.css +1 -1
  35. package/dist/{subscription-DHhmsQxH.cjs → subscription-C9MVW1hD.cjs} +1 -1
  36. package/dist/{subscription-CqhnWDq_.js → subscription-udEFKrRx.js} +5 -5
  37. package/dist/{ticket-r3Kx22M9.js → ticket-CVpIDi23.js} +480 -401
  38. package/dist/ticket-DHMkT2YQ.cjs +108 -0
  39. package/dist/{top-up-9OWzVCVP.js → top-up-BrOInMzx.js} +5 -5
  40. package/dist/{top-up-Ba_v68et.cjs → top-up-CUh8b-Aq.cjs} +1 -1
  41. package/dist/{ui-components-BGzv0KT2.js → ui-components-D5DlMpwI.js} +2905 -2666
  42. package/dist/ui-components-tJEldx8o.cjs +1 -0
  43. package/dist/ui.cjs.js +1 -1
  44. package/dist/ui.es.js +39 -38
  45. package/dist/{validation-BUpHL2xL.js → validation-DWYiq2wg.js} +5 -5
  46. package/dist/{validation-D3IO5HzB.cjs → validation-riS3yl7s.cjs} +1 -1
  47. package/package.json +1 -1
  48. package/dist/charge-LGilmNUv.cjs +0 -109
  49. package/dist/ticket-Cv2XbF6y.cjs +0 -108
  50. package/dist/ui-components-C4hKK4aN.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";const t=require("react/jsx-runtime"),c=require("react"),u=require("./builder-JKkaOMOl.cjs"),s=require("./charge-LGilmNUv.cjs"),m=require("./ui-components-C4hKK4aN.cjs");require("./builder-components-B0SvEDG4.cjs");require("./ticket-Cv2XbF6y.cjs");require("react-dom");const x=async(n=1)=>await s.fetchSubscriptions({PageNumber:n}),f=()=>{const[n,o]=c.useState(null),[e,S]=c.useState(0),{page:l,setPage:b}=u.usePaginationPagesStore(),{gatewaysDetail:d,setGatewaysDetail:g,balanceSettings:i}=u.useCustomerDashboardStore();return c.useEffect(()=>{const h=async()=>{const{list:r,totalCount:p}=await x(l);o(r),S(p)},j=async()=>{const r=await s.getGatewaysDetail(i!=null&&i.isEnabled?(i==null?void 0:i.topUpSettings.gateways)||[]:[]);g(r)};h(),d||j()},[l]),t.jsx(t.Fragment,{children:n&&n.length===0?t.jsx(s.NoItemsBlock,{title:"Subscriptions History",description:"When you subscribe to a product on our website, you'll see a history of your subscriptions here."}):t.jsxs(t.Fragment,{children:[t.jsx(s.PageTitle,{title:"Subscriptions"}),t.jsx(s.SubscriptionsTable,{subscriptions:n,gatewaysDetail:d,totalCount:e,page:l,setPage:b})]})})},C="_subscriptionContainer_1j6ol_1",_="_leftSection_1j6ol_15",y="_content_1j6ol_26",v="_mainContent_1j6ol_33",P="_detailsSection_1j6ol_37",w="_buttonGroup_1j6ol_50",D="_detailsContent_1j6ol_57",a={subscriptionContainer:C,leftSection:_,content:y,mainContent:v,detailsSection:P,buttonGroup:w,detailsContent:D},N=()=>{const{id:n,accessToken:o}=u.useParams(),{subscription:e,setSubscription:S}=u.useSubscriptionStore(),{setIsOpen:l}=u.useModalStore(),[b,d]=c.useState(!1),[g,i]=c.useState(!1);c.useLayoutEffect(()=>{S(null)},[n,o]);const{balanceSettings:h,setBalanceSettings:j}=u.useCustomerDashboardStore();return c.useEffect(()=>{n&&o&&(async()=>{if(!n||!o)return;i(!0);const{data:p}=await s.fetchSubscription(n,o);S({...p}),i(!1)})()},[n,o]),c.useEffect(()=>{h||(async()=>{const p=await s.getBalanceSettings();j(p)})()},[h]),g?t.jsx(m.Loader,{}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:a.subscriptionContainer,children:[t.jsx("div",{className:a.leftSection,children:t.jsxs("div",{className:a.content,children:[t.jsx(s.CheckoutHeader,{}),t.jsxs("div",{className:a.mainContent,children:[e&&t.jsxs(t.Fragment,{children:[t.jsx("h3",{id:"h3",children:"Your Subscription"}),t.jsx(s.SubscriptionProduct,{subscription:{price:e.price,name:e.productName,description:e.productDescription,status:e.status,image:e.productImage,recurringInterval:e.recurringInterval}}),t.jsx("div",{className:a.buttonGroup,children:e.pricingPlanExists&&t.jsx(m.Button,{onClick:r=>{r.stopPropagation(),l(!0),d(!0)},style:{maxWidth:"500px",width:"100%"},children:"Change Plan"})})]}),t.jsx(s.CheckoutFooter,{})]})]})}),t.jsx("div",{className:a.detailsSection,children:t.jsxs("div",{className:a.detailsContent,children:[t.jsx("h3",{id:"h3",children:"Details"}),(e==null?void 0:e.coupon)&&t.jsx(s.SubscriptionCoupon,{coupon:e.coupon,currency:e.price.currency||"USD"}),e&&t.jsx(s.ActiveSubscriptionProduct,{id:n||"",accessToken:o||"",subscription:{price:e.price,name:e.productName,description:e.productDescription,status:e.status,image:e.productImage,recurringInterval:e.recurringInterval}}),e&&t.jsxs(t.Fragment,{children:[t.jsx(s.ActivePaymentMethod,{}),e.activeTo&&t.jsx(s.SubscriptionExpirationDate,{})]}),t.jsx(s.CheckoutFooter,{className:"flex md:hidden"})]})})]}),t.jsx(s.ChangeSubscriptionPlan,{isOpen:b,setIsOpen:d,subscription:e})]})},I=Object.freeze(Object.defineProperty({__proto__:null,Subscription:N},Symbol.toStringTag,{value:"Module"}));exports.Subscriptions=f;exports.index=I;
1
+ "use strict";const t=require("react/jsx-runtime"),c=require("react"),u=require("./builder-D40snPWY.cjs"),s=require("./charge-5j107R6o.cjs"),m=require("./ui-components-tJEldx8o.cjs");require("./builder-components-3rAy-Smx.cjs");require("react-dom");require("./ticket-DHMkT2YQ.cjs");const x=async(n=1)=>await s.fetchSubscriptions({PageNumber:n}),f=()=>{const[n,o]=c.useState(null),[e,S]=c.useState(0),{page:l,setPage:b}=u.usePaginationPagesStore(),{gatewaysDetail:d,setGatewaysDetail:g,balanceSettings:i}=u.useCustomerDashboardStore();return c.useEffect(()=>{const h=async()=>{const{list:r,totalCount:p}=await x(l);o(r),S(p)},j=async()=>{const r=await s.getGatewaysDetail(i!=null&&i.isEnabled?(i==null?void 0:i.topUpSettings.gateways)||[]:[]);g(r)};h(),d||j()},[l]),t.jsx(t.Fragment,{children:n&&n.length===0?t.jsx(s.NoItemsBlock,{title:"Subscriptions History",description:"When you subscribe to a product on our website, you'll see a history of your subscriptions here."}):t.jsxs(t.Fragment,{children:[t.jsx(s.PageTitle,{title:"Subscriptions"}),t.jsx(s.SubscriptionsTable,{subscriptions:n,gatewaysDetail:d,totalCount:e,page:l,setPage:b})]})})},C="_subscriptionContainer_1j6ol_1",_="_leftSection_1j6ol_15",y="_content_1j6ol_26",v="_mainContent_1j6ol_33",P="_detailsSection_1j6ol_37",w="_buttonGroup_1j6ol_50",D="_detailsContent_1j6ol_57",a={subscriptionContainer:C,leftSection:_,content:y,mainContent:v,detailsSection:P,buttonGroup:w,detailsContent:D},N=()=>{const{id:n,accessToken:o}=u.useParams(),{subscription:e,setSubscription:S}=u.useSubscriptionStore(),{setIsOpen:l}=u.useModalStore(),[b,d]=c.useState(!1),[g,i]=c.useState(!1);c.useLayoutEffect(()=>{S(null)},[n,o]);const{balanceSettings:h,setBalanceSettings:j}=u.useCustomerDashboardStore();return c.useEffect(()=>{n&&o&&(async()=>{if(!n||!o)return;i(!0);const{data:p}=await s.fetchSubscription(n,o);S({...p}),i(!1)})()},[n,o]),c.useEffect(()=>{h||(async()=>{const p=await s.getBalanceSettings();j(p)})()},[h]),g?t.jsx(m.Loader,{}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:a.subscriptionContainer,children:[t.jsx("div",{className:a.leftSection,children:t.jsxs("div",{className:a.content,children:[t.jsx(s.CheckoutHeader,{}),t.jsxs("div",{className:a.mainContent,children:[e&&t.jsxs(t.Fragment,{children:[t.jsx("h3",{id:"h3",children:"Your Subscription"}),t.jsx(s.SubscriptionProduct,{subscription:{price:e.price,name:e.productName,description:e.productDescription,status:e.status,image:e.productImage,recurringInterval:e.recurringInterval}}),t.jsx("div",{className:a.buttonGroup,children:e.pricingPlanExists&&t.jsx(m.Button,{onClick:r=>{r.stopPropagation(),l(!0),d(!0)},style:{maxWidth:"500px",width:"100%"},children:"Change Plan"})})]}),t.jsx(s.CheckoutFooter,{})]})]})}),t.jsx("div",{className:a.detailsSection,children:t.jsxs("div",{className:a.detailsContent,children:[t.jsx("h3",{id:"h3",children:"Details"}),(e==null?void 0:e.coupon)&&t.jsx(s.SubscriptionCoupon,{coupon:e.coupon,currency:e.price.currency||"USD"}),e&&t.jsx(s.ActiveSubscriptionProduct,{id:n||"",accessToken:o||"",subscription:{price:e.price,name:e.productName,description:e.productDescription,status:e.status,image:e.productImage,recurringInterval:e.recurringInterval}}),e&&t.jsxs(t.Fragment,{children:[t.jsx(s.ActivePaymentMethod,{}),e.activeTo&&t.jsx(s.SubscriptionExpirationDate,{})]}),t.jsx(s.CheckoutFooter,{className:"flex md:hidden"})]})})]}),t.jsx(s.ChangeSubscriptionPlan,{isOpen:b,setIsOpen:d,subscription:e})]})},I=Object.freeze(Object.defineProperty({__proto__:null,Subscription:N},Symbol.toStringTag,{value:"Module"}));exports.Subscriptions=f;exports.index=I;
@@ -1,11 +1,11 @@
1
1
  import { jsx as e, Fragment as d, jsxs as o } from "react/jsx-runtime";
2
2
  import a from "react";
3
- import { X as C, O as _, a7 as y, a8 as v, J as P } from "./builder-CcLZHVq3.js";
4
- import { p as w, N, P as j, S as D, g as I, i as x, q as E, l as f, r as G, A as T, s as k, t as B, v as O, w as A, x as L } from "./charge-DC4f3U8I.js";
5
- import { e as M, g as F } from "./ui-components-BGzv0KT2.js";
6
- import "./builder-components-Dl3dEzV6.js";
7
- import "./ticket-r3Kx22M9.js";
3
+ import { X as C, O as _, a7 as y, a8 as v, J as P } from "./builder-C7VD2Hrr.js";
4
+ import { p as w, N, P as j, S as D, g as I, i as x, q as E, l as f, r as G, A as T, s as k, t as B, v as O, w as A, x as L } from "./charge-iu_hkYgk.js";
5
+ import { e as M, g as F } from "./ui-components-D5DlMpwI.js";
6
+ import "./builder-components-BvBlpSpu.js";
8
7
  import "react-dom";
8
+ import "./ticket-CVpIDi23.js";
9
9
  const H = async (s = 1) => await w({ PageNumber: s }), nt = () => {
10
10
  const [s, i] = a.useState(null), [t, S] = a.useState(0), { page: u, setPage: h } = C(), { gatewaysDetail: l, setGatewaysDetail: b, balanceSettings: n } = _();
11
11
  return a.useEffect(() => {