@billgangcom/theme-lib 1.117.2 → 1.117.5
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-DS9oBIXt.cjs → builder-C6H1N4FP.cjs} +2 -2
- package/dist/{builder-DcfIyRTw.js → builder-Dcp5JIX2.js} +5 -5
- package/dist/{builder-components-B7SAxgEM.cjs → builder-components-Bj_ecWtd.cjs} +2 -2
- package/dist/{builder-components-Dm-kWtxj.js → builder-components-D_-yBjUv.js} +4 -4
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +207 -205
- package/dist/{charge-B9XSDHYf.cjs → charge-CDdwR76I.cjs} +13 -13
- package/dist/{charge-CXy5zGzq.js → charge-_CEEL_lC.js} +144 -141
- package/dist/{checkout-C4QKsh6P.cjs → checkout-BY7eHMQg.cjs} +1 -1
- package/dist/{checkout-C8pOrYnl.js → checkout-LuD-xUEH.js} +5 -5
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +6 -6
- package/dist/{index-CgKO4Rfc.js → index-6C0r0b28.js} +5 -5
- package/dist/{index-BRTHm-r0.cjs → index-C8knQe3w.cjs} +1 -1
- package/dist/{index-CWMP7EHj.js → index-CRXry6Nc.js} +1 -1
- package/dist/{index-B60hdPLY.cjs → index-Cyvdq9bC.cjs} +1 -1
- package/dist/{index-DHDz9Z2M.cjs → index-DOGDvdAe.cjs} +1 -1
- package/dist/{index-BtS9bwZU.cjs → index-DU5qhu5H.cjs} +1 -1
- package/dist/{index-BPwoye0T.js → index-Dj9WbMhN.js} +5 -5
- package/dist/{index-AhJGutkd.cjs → index-DlUuba7X.cjs} +1 -1
- package/dist/{index-CVXfHRHS.js → index-Dnj_qRMe.js} +5 -5
- package/dist/{index-DWwyC_5W.js → index-GWi3v3LH.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-VgDnKBla.cjs → order-B2keJNN9.cjs} +1 -1
- package/dist/{order-BMAFH2EL.js → order-CRkNBk1l.js} +5 -5
- 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/storefront/components/StatusIndicator/index.d.ts +1 -1
- 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-LF680WJT.js → subscription-qxCpanQb.js} +5 -5
- package/dist/{subscription-DaibYXfW.cjs → subscription-v64vRqA-.cjs} +1 -1
- package/dist/{ticket-CQD0ZMj2.js → ticket-BK3fx1Sw.js} +5 -5
- package/dist/{ticket-CraKfT7J.cjs → ticket-C-A_Ok9u.cjs} +1 -1
- package/dist/{top-up-BY8uNtks.cjs → top-up-DCz_tgnE.cjs} +1 -1
- package/dist/{top-up-zL4MfdVN.js → top-up-DvRo2FT6.js} +5 -5
- package/dist/ui-components-DD5zQkng.js +8390 -0
- package/dist/ui-components-DsX_DjBg.cjs +1 -0
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +30 -29
- package/dist/{validation-Db2Od6AE.js → validation-Coc0Q-Ug.js} +5 -5
- package/dist/{validation-lxk5WFtw.cjs → validation-gGpkWETM.cjs} +1 -1
- package/package.json +1 -1
- package/dist/ui-components-JBzZAyzL.cjs +0 -1
- package/dist/ui-components-fiCrAhU8.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-Dcp5JIX2.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-DD5zQkng.js";
|
|
5
|
+
import "./charge-_CEEL_lC.js";
|
|
6
|
+
import "./ticket-BK3fx1Sw.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-C6H1N4FP.cjs"),m=require("./ticket-C-A_Ok9u.cjs"),n=require("react"),v=require("./charge-CDdwR76I.cjs"),G=require("./ui-components-DsX_DjBg.cjs"),e=require("@phosphor-icons/react"),W=({children:r,shopDomain:u,shopId:h,shopPassword:d,shopLogo:I})=>{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),I&&A(I),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,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-C6H1N4FP.cjs")).then(r=>r.index).then(r=>({default:r.BuilderPage}))),X=n.lazy(()=>Promise.resolve().then(()=>require("./index-DlUuba7X.cjs")).then(r=>({default:r.ErrorPage}))),N=n.lazy(()=>Promise.resolve().then(()=>require("./index-DOGDvdAe.cjs")).then(r=>({default:r.ActivePage}))),J=n.lazy(()=>Promise.resolve().then(()=>require("./validation-gGpkWETM.cjs")).then(r=>({default:r.ValidationPage}))),$=n.lazy(()=>Promise.resolve().then(()=>require("./index-DU5qhu5H.cjs")).then(r=>({default:r.WrapperPage}))),K=n.lazy(()=>Promise.resolve().then(()=>require("./index-Cyvdq9bC.cjs")).then(r=>({default:r.RouterErrorPage}))),i=n.lazy(()=>Promise.resolve().then(()=>require("./index-C8knQe3w.cjs")).then(r=>({default:r.DynamicErrorPage}))),Y=n.lazy(()=>Promise.resolve().then(()=>require("./checkout-BY7eHMQg.cjs")).then(r=>({default:r.Checkout}))),Z=n.lazy(()=>Promise.resolve().then(()=>require("./charge-CDdwR76I.cjs")).then(r=>r.index$1).then(r=>({default:r.ChargePage}))),ee=n.lazy(()=>Promise.resolve().then(()=>require("./ticket-C-A_Ok9u.cjs")).then(r=>r.index).then(r=>({default:r.TicketItem}))),te=n.lazy(()=>Promise.resolve().then(()=>require("./subscription-v64vRqA-.cjs")).then(r=>r.index).then(r=>({default:r.Subscription}))),re=n.lazy(()=>Promise.resolve().then(()=>require("./top-up-DCz_tgnE.cjs")).then(r=>({default:r.TopUpBalance}))),ne=n.lazy(()=>Promise.resolve().then(()=>require("./order-B2keJNN9.cjs")).then(r=>r.index).then(r=>({default:r.OrderPage}))),oe=n.lazy(()=>Promise.resolve().then(()=>require("./charge-CDdwR76I.cjs")).then(r=>r.index).then(r=>({default:r.CustomerDashboard}))),b=n.lazy(()=>Promise.resolve().then(()=>require("./charge-CDdwR76I.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-Bj_ecWtd.cjs")).then(r=>r.index).then(r=>({default:r.RenderAnnouncement}))),q=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-Bj_ecWtd.cjs")).then(r=>r.index).then(r=>({default:r.RenderFooter}))),U=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-Bj_ecWtd.cjs")).then(r=>r.index).then(r=>({default:r.RenderHeader}))),ie=r=>{const{blocks:u,settings:h,header:d,footer:I,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 g=m.generateDynamicStyles(C,T);m.loadCustomFonts(),m.setupDynamicFonts(C),m.injectStylesToDOM(g)}},[C,JSON.stringify(T),window.location.hostname]),n.useEffect(()=>{const k=new h().blockSettings;O(k)},[]),n.useEffect(()=>{_()},[]),n.useLayoutEffect(()=>{const g={};Object.keys(u).map(R=>{g[R]=u[R]}),B(g),l(g),E(d),z(I),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:I,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;
|