@billgangcom/theme-lib 1.117.3 → 1.118.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/README.md +2 -6
- package/dist/{builder-ING-1TC5.js → builder-CcLZHVq3.js} +5 -5
- package/dist/{builder-hB8NmH8C.cjs → builder-JKkaOMOl.cjs} +2 -2
- package/dist/{builder-components-oKxTX6fj.cjs → builder-components-B0SvEDG4.cjs} +2 -2
- package/dist/{builder-components-ClJQSJ2L.js → builder-components-Dl3dEzV6.js} +4 -4
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +210 -207
- package/dist/{charge-CuNPpaJ7.js → charge-DC4f3U8I.js} +235 -233
- package/dist/{charge-C1osb-bm.cjs → charge-LGilmNUv.cjs} +3 -3
- package/dist/{checkout-BnsWDYDl.js → checkout-B_qFvrUF.js} +5 -5
- package/dist/{checkout-DMKbVPtL.cjs → checkout-BaZLmyfk.cjs} +1 -1
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +6 -6
- package/dist/{index--_-vRaQR.js → index-BFZm601D.js} +5 -5
- package/dist/{index-BMrIA4yw.js → index-Bh3_Rczn.js} +1 -1
- package/dist/{index-Dqp9j9qF.js → index-BqtOxv5i.js} +5 -5
- package/dist/{index-zDmFKbp8.cjs → index-BtQ89Hj3.cjs} +1 -1
- package/dist/{index-CDeg6Sk-.js → index-C-SrHRJh.js} +5 -5
- package/dist/{index-lINjLxQX.cjs → index-CmO3iWeV.cjs} +1 -1
- package/dist/{index-vFyF3Ow6.cjs → index-CyiCR5lK.cjs} +1 -1
- package/dist/{index-BFVW04-o.cjs → index-D4Hp4-Qp.cjs} +1 -1
- package/dist/{index-BKrDDMuH.cjs → index-DtcojRuS.cjs} +1 -1
- package/dist/{index-BiAMlV6S.js → index-Ek3qYkbu.js} +5 -5
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.es.js +66 -44
- package/dist/{order-BGMoWRhn.js → order-Bd24i-W3.js} +5 -5
- package/dist/{order-BqB3_Sr9.cjs → order-t2QoTU6S.cjs} +1 -1
- package/dist/src/assets/icons/index.d.ts +3 -0
- package/dist/src/constants/icon.d.ts +3 -2
- package/dist/src/hooks/useDynamicIconRegistration.d.ts +10 -0
- package/dist/src/pages/home/model.d.ts +1 -0
- package/dist/src/ui/Icon/index.d.ts +5 -0
- package/dist/src/ui/SelectInfiniteList/index.d.ts +5 -0
- package/dist/src/ui/SelectSettings/index.d.ts +22 -0
- package/dist/src/ui/SelectSettings/utils/index.d.ts +2 -0
- package/dist/src/ui/index.d.ts +1 -0
- package/dist/src/utils/iconHelpers.d.ts +12 -0
- package/dist/src/utils/iconSelectHelpers.d.ts +35 -0
- package/dist/style.css +1 -1
- package/dist/{subscription-BYPJHXT2.js → subscription-CqhnWDq_.js} +5 -5
- package/dist/{subscription-C27f2W_a.cjs → subscription-DHhmsQxH.cjs} +1 -1
- package/dist/{ticket-Bru9-GYY.cjs → ticket-Cv2XbF6y.cjs} +1 -1
- package/dist/{ticket-eMmtCmvN.js → ticket-r3Kx22M9.js} +5 -5
- package/dist/{top-up-BbY79ujW.js → top-up-9OWzVCVP.js} +5 -5
- package/dist/{top-up-CMpoWJbT.cjs → top-up-Ba_v68et.cjs} +1 -1
- package/dist/ui-components-BGzv0KT2.js +8390 -0
- package/dist/ui-components-C4hKK4aN.cjs +1 -0
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +30 -29
- package/dist/{validation-CBWyX-kx.js → validation-BUpHL2xL.js} +5 -5
- package/dist/{validation-CtRwKk0C.cjs → validation-D3IO5HzB.cjs} +1 -1
- package/package.json +1 -1
- package/dist/ui-components-BrBBLOj0.cjs +0 -1
- package/dist/ui-components-CmN3s0-4.js +0 -6542
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as y, jsx as c, Fragment as Pe } from "react/jsx-runtime";
|
|
2
2
|
import A, { useLayoutEffect as Tr, useEffect as U, useRef as V, useMemo as H, useCallback as te, useState as he, memo as Mr, useReducer as Rr, createContext as Lt, useContext as nt } from "react";
|
|
3
|
-
import { u as ne, a as qe, b as J, c as se, d as Po, e as Vn, f as B, v as tn, T as mt, g as Or, h as Kn, i as Fe, j as Lo, r as Fo, k as dn, l as Bt, m as X, n as jo, L as ot, o as Gn, p as rt, q as $r, s as Yn, t as tt, w as hn, x as Rt, y as zo, A as Pr, S as Lr, C as Fr, z as ft, B as jr, D as Be, E as Ft, R as _n, F as wn, G as Ho, H as nn, I as ye, P as go, J as zr, K as Hr } from "./builder-
|
|
4
|
-
import { I as R, u as Wr, B as Xe, E as on, c as ue, S as Ce, d as Tn, T as Ur } from "./ui-components-
|
|
5
|
-
import "./charge-
|
|
6
|
-
import "./ticket-
|
|
3
|
+
import { u as ne, a as qe, b as J, c as se, d as Po, e as Vn, f as B, v as tn, T as mt, g as Or, h as Kn, i as Fe, j as Lo, r as Fo, k as dn, l as Bt, m as X, n as jo, L as ot, o as Gn, p as rt, q as $r, s as Yn, t as tt, w as hn, x as Rt, y as zo, A as Pr, S as Lr, C as Fr, z as ft, B as jr, D as Be, E as Ft, R as _n, F as wn, G as Ho, H as nn, I as ye, P as go, J as zr, K as Hr } from "./builder-CcLZHVq3.js";
|
|
4
|
+
import { I as R, u as Wr, B as Xe, E as on, c as ue, S as Ce, d as Tn, T as Ur } from "./ui-components-BGzv0KT2.js";
|
|
5
|
+
import "./charge-DC4f3U8I.js";
|
|
6
|
+
import "./ticket-r3Kx22M9.js";
|
|
7
7
|
import { unstable_batchedUpdates as Kt, createPortal as Vr } from "react-dom";
|
|
8
8
|
const Xn = ({ render: e, block: t }) => e(t), Wo = ({ settings: e, pageContext: t }) => {
|
|
9
9
|
const { footer: n } = ne(), { settings: o } = qe(), { pageContext: r } = J(), { footer: s } = se();
|
package/dist/builder.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),c=require("./builder-JKkaOMOl.cjs"),m=require("./ticket-Cv2XbF6y.cjs"),n=require("react"),v=require("./charge-LGilmNUv.cjs"),G=require("./ui-components-C4hKK4aN.cjs"),e=require("@phosphor-icons/react"),W=({children:r,shopDomain:u,shopId:h,shopPassword:d,shopLogo:g})=>{const{setShopDomain:x,setShopId:j,setShopPassword:y,setShopTerms:p,setShopPrivacyPolicy:a,setShopRefundPolicy:f,setShopLogo:A}=c.useStorefrontStore();return n.useLayoutEffect(()=>{const s=async()=>{const{data:l}=await v.fetchTerms();p(l)},S=async()=>{const{data:l}=await v.fetchPrivacyPolicy();a(l)},w=async()=>{const{data:l}=await v.fetchRefundPolicy();f(l)};x(u),j(h),d&&y(d),g&&A(g),s(),S(),w()},[u,h,d]),t.jsx(t.Fragment,{children:r})},V="_wrapper_1xuz3_18",L={wrapper:V};function _(){G.registerIcons({X:e.XIcon,Plus:e.PlusIcon,Minus:e.MinusIcon,Check:e.CheckIcon,Clock:e.ClockIcon,Info:e.InfoIcon,Copy:e.CopyIcon,Trash:e.TrashIcon,Sliders:e.SlidersIcon,Image:e.ImageIcon,List:e.ListIcon,Handbag:e.HandbagIcon,Bag:e.BagIcon,Eye:e.EyeIcon,Crown:e.CrownIcon,ArrowUp:e.ArrowUpIcon,ArrowDown:e.ArrowDownIcon,Confetti:e.ConfettiIcon,ArrowLeft:e.ArrowLeftIcon,ArrowRight:e.ArrowRightIcon,ArrowLineUpRight:e.ArrowLineUpRightIcon,ArrowUpRight:e.ArrowUpRightIcon,ArrowUUpLeft:e.ArrowUUpLeftIcon,ArrowUUpRight:e.ArrowUUpRightIcon,CaretRight:e.CaretRightIcon,CaretDown:e.CaretDownIcon,CaretUp:e.CaretUpIcon,CaretLeft:e.CaretLeftIcon,MagnifyingGlass:e.MagnifyingGlassIcon,MagnifyingGlassMinus:e.MagnifyingGlassMinusIcon,ArrowLineDown:e.ArrowLineDownIcon,Selection:e.SelectionIcon,CloudArrowUpIcon:e.CloudArrowUpIcon,ArrowsHorizontal:e.ArrowsHorizontalIcon,ArrowsVertical:e.ArrowsVerticalIcon,CheckCircle:e.CheckCircleIcon,XCircle:e.XCircleIcon,Star:e.StarIcon,Fire:e.FireIcon,Lightning:e.LightningIcon,AlignCenterHorizontal:e.AlignCenterHorizontalIcon,File:e.FileIcon,FileText:e.FileTextIcon,BookOpen:e.BookOpenIcon,DownloadSimple:e.DownloadSimpleIcon,DiscordLogo:e.DiscordLogoIcon,TelegramLogo:e.TelegramLogoIcon,SignOut:e.SignOutIcon,Wallet:e.WalletIcon,PaperPlaneRight:e.PaperPlaneRightIcon,ChatsTeardrop:e.ChatsTeardropIcon,DotsSixVertical:e.DotsSixVerticalIcon,Share:e.ShareIcon,Shield:e.ShieldIcon,ShieldCheck:e.ShieldCheckIcon,FileCloud:e.FileCloudIcon,Lock:e.LockIcon,Heart:e.HeartIcon,User:e.UserIcon,Calendar:e.CalendarIcon,Smiley:e.SmileyIcon,Globe:e.GlobeIcon,House:e.HouseIcon,HouseSimple:e.HouseSimpleIcon,CurrencyCircleDollar:e.CurrencyCircleDollarIcon,Medal:e.MedalIcon,CalendarCheck:e.CalendarCheckIcon,Question:e.QuestionIcon,Warning:e.WarningIcon,WarningDiamond:e.WarningDiamondIcon,TreeStructure:e.TreeStructureIcon,Palette:e.PaletteIcon,Gear:e.GearIcon,PaintBrushBroad:e.PaintBrushBroadIcon,TextAa:e.TextAaIcon,TextB:e.TextBIcon,TextH:e.TextHIcon,CornersOut:e.CornersOutIcon,ArrowSquareIn:e.ArrowSquareInIcon,Textbox:e.TextboxIcon,SquaresFour:e.SquaresFourIcon,SealQuestion:e.SealQuestionIcon,ChatCentered:e.ChatCenteredIcon,Ticket:e.TicketIcon,UserCircleGear:e.UserCircleGearIcon,Desktop:e.DesktopIcon,DeviceTabletCamera:e.DeviceTabletCameraIcon,DeviceMobileCamera:e.DeviceMobileCameraIcon,Cards:e.CardsIcon,PushPin:e.PushPinIcon,TextAlignLeft:e.TextAlignLeftIcon,TextAlignRight:e.TextAlignRightIcon,TextAlignCenter:e.TextAlignCenterIcon,AlignLeft:e.AlignLeftIcon,AlignRight:e.AlignRightIcon,AlignTop:e.AlignTopIcon,AlignBottom:e.AlignBottomIcon,TextItalic:e.TextItalicIcon,TextStrikethrough:e.TextStrikethroughIcon,TextUnderline:e.TextUnderlineIcon})}const Q=n.lazy(()=>Promise.resolve().then(()=>require("./builder-JKkaOMOl.cjs")).then(r=>r.index).then(r=>({default:r.BuilderPage}))),X=n.lazy(()=>Promise.resolve().then(()=>require("./index-DtcojRuS.cjs")).then(r=>({default:r.ErrorPage}))),N=n.lazy(()=>Promise.resolve().then(()=>require("./index-D4Hp4-Qp.cjs")).then(r=>({default:r.ActivePage}))),J=n.lazy(()=>Promise.resolve().then(()=>require("./validation-D3IO5HzB.cjs")).then(r=>({default:r.ValidationPage}))),$=n.lazy(()=>Promise.resolve().then(()=>require("./index-CyiCR5lK.cjs")).then(r=>({default:r.WrapperPage}))),K=n.lazy(()=>Promise.resolve().then(()=>require("./index-CmO3iWeV.cjs")).then(r=>({default:r.RouterErrorPage}))),i=n.lazy(()=>Promise.resolve().then(()=>require("./index-BtQ89Hj3.cjs")).then(r=>({default:r.DynamicErrorPage}))),Y=n.lazy(()=>Promise.resolve().then(()=>require("./checkout-BaZLmyfk.cjs")).then(r=>({default:r.Checkout}))),Z=n.lazy(()=>Promise.resolve().then(()=>require("./charge-LGilmNUv.cjs")).then(r=>r.index$1).then(r=>({default:r.ChargePage}))),ee=n.lazy(()=>Promise.resolve().then(()=>require("./ticket-Cv2XbF6y.cjs")).then(r=>r.index).then(r=>({default:r.TicketItem}))),te=n.lazy(()=>Promise.resolve().then(()=>require("./subscription-DHhmsQxH.cjs")).then(r=>r.index).then(r=>({default:r.Subscription}))),re=n.lazy(()=>Promise.resolve().then(()=>require("./top-up-Ba_v68et.cjs")).then(r=>({default:r.TopUpBalance}))),ne=n.lazy(()=>Promise.resolve().then(()=>require("./order-t2QoTU6S.cjs")).then(r=>r.index).then(r=>({default:r.OrderPage}))),oe=n.lazy(()=>Promise.resolve().then(()=>require("./charge-LGilmNUv.cjs")).then(r=>r.index).then(r=>({default:r.CustomerDashboard}))),b=n.lazy(()=>Promise.resolve().then(()=>require("./charge-LGilmNUv.cjs")).then(r=>r.recapcha).then(r=>({default:r.ReCaptchaProvider}))),se=()=>null,o=({children:r})=>t.jsx(n.Suspense,{fallback:t.jsx(se,{}),children:r}),ce=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-B0SvEDG4.cjs")).then(r=>r.index).then(r=>({default:r.RenderAnnouncement}))),q=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-B0SvEDG4.cjs")).then(r=>r.index).then(r=>({default:r.RenderFooter}))),U=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-B0SvEDG4.cjs")).then(r=>r.index).then(r=>({default:r.RenderHeader}))),ie=r=>{const{blocks:u,settings:h,header:d,footer:g,announcement:x,routes:j=[],shopLogo:y,apiURLs:p,isAntistock:a=!1}=r,[f,A]=n.useState(null),{general:s,setIsAntistock:S}=c.useGeneralStore(),{setApiUrls:w}=c.useApiStore(),{setBlocks:l,setSourceBlocks:B,setHeader:E,setFooter:z,setAnnouncement:H,setSettings:F}=c.useBlocksStore(),{themeSettings:C}=c.useThemeSettingsStore(),{settings:T,setSettings:O}=c.useSettingsStore(),P=c.IS_LOCAL_HOST?localStorage.getItem("fakeDomain")||"":window.location.hostname,M=localStorage.getItem("shopPassword"),D=localStorage.getItem("shopId")||"";return n.useEffect(()=>{S(a)},[a,S]),n.useEffect(()=>{!D&&(s!=null&&s.info.id)&&localStorage.setItem("shopId",s==null?void 0:s.info.id)},[s]),n.useEffect(()=>{!P&&!a&&localStorage.setItem("fakeDomain","drafts-ca18cf24-6659-4015-b1ab-9ebe9fa64e74.bgng.io"),!P&&a&&localStorage.setItem("fakeDomain","eva8.astck.io")},[P]),n.useEffect(()=>{if(C&&T){const I=m.generateDynamicStyles(C,T);m.loadCustomFonts(),m.setupDynamicFonts(C),m.injectStylesToDOM(I)}},[C,JSON.stringify(T),window.location.hostname]),n.useEffect(()=>{const k=new h().blockSettings;O(k)},[]),n.useEffect(()=>{_()},[]),n.useLayoutEffect(()=>{const I={};Object.keys(u).map(R=>{I[R]=u[R]}),B(I),l(I),E(d),z(g),H(x),F(h),p&&w(p);const k=c.createBrowserRouter([{element:t.jsx(W,{shopDomain:P,shopId:D,shopPassword:M||void 0,shopLogo:y,children:t.jsx(b,{children:t.jsx($,{children:t.jsx(c.Outlet,{})})})}),errorElement:t.jsx(o,{children:t.jsx(K,{})}),children:[{path:"/admin/builder/*",element:t.jsx(o,{children:t.jsx(N,{children:t.jsx(Q,{blocks:u,settings:h,header:d,footer:g,announcement:x})})}),errorElement:t.jsx(o,{children:t.jsx(X,{})})},...j,{path:"/checkout",element:t.jsx(o,{children:t.jsx(Y,{})}),errorElement:t.jsx(o,{children:t.jsx(i,{})}),loader:()=>(document.title="Checkout",!0)},{path:"/top-up",element:t.jsx(o,{children:t.jsx(re,{})}),errorElement:t.jsx(o,{children:t.jsx(i,{})}),loader:()=>(document.title="Top Up Balance",!0)},{path:"/charges/:id",element:t.jsx(o,{children:t.jsx(Z,{})}),errorElement:t.jsx(o,{children:t.jsx(i,{})}),loader:()=>(document.title="Charges",!0)},{path:"/orders/:id/:accessToken?",element:t.jsx(o,{children:t.jsx(ne,{})}),errorElement:t.jsx(o,{children:t.jsx(i,{})}),loader:()=>(document.title="Orders",!0)},{path:"/subscriptions/:id/:accessToken?",element:t.jsx(o,{children:t.jsx(te,{})}),errorElement:t.jsx(o,{children:t.jsx(i,{})}),loader:()=>(document.title="Subscriptions",!0)},{path:a?"/account":"/customer-dash",element:t.jsx(o,{children:t.jsxs("div",{className:L.wrapper,children:[t.jsx(ce,{}),t.jsx(U,{}),t.jsx("div",{style:{flex:"1 1 auto"},children:t.jsx(oe,{})}),t.jsx(q,{})]})}),errorElement:t.jsx(o,{children:t.jsx(i,{})}),loader:()=>(document.title=a?"Account":"Customer Dashboard",!0)},{path:"/validation",element:t.jsx(o,{children:t.jsx(J,{})}),errorElement:t.jsx(o,{children:t.jsx(i,{})}),loader:()=>(document.title="Validation",!0)},{path:"/ticket/:id/:accessToken",element:t.jsx(o,{children:t.jsxs("div",{className:L.wrapper,children:[t.jsx(U,{}),t.jsx("div",{style:{flex:1,width:"100%",height:"100%"},children:t.jsx(b,{children:t.jsx(ee,{})})}),t.jsx(q,{})]})}),errorElement:t.jsx(o,{children:t.jsx(i,{})}),loader:()=>(document.title="Ticket",!0)},{path:"*",element:t.jsx(m.DynamicRouteWrapper,{}),errorElement:t.jsx(o,{children:t.jsx(i,{})})}]}]);A(k)},[s]),t.jsx(n.Suspense,{fallback:null,children:f&&t.jsx(c.RouterProvider,{router:f})})};exports.App=ie;
|