@billgangcom/theme-lib 1.111.1 → 1.111.3
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/{builder-CSr9GKSb.js → builder--uz9bTJl.js} +5 -5
- package/dist/{builder-Drs-eMpC.cjs → builder-Dc4t3e6x.cjs} +2 -2
- package/dist/{builder-components-B35IxzAP.js → builder-components-BgFUk-kn.js} +4 -4
- package/dist/{builder-components-BHjHn2ZO.cjs → builder-components-DFkWIHl0.cjs} +1 -1
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +22 -22
- package/dist/charge-DVEYTVV_.cjs +104 -0
- package/dist/{charge-CCn4nKwI.js → charge-DueaDct8.js} +7648 -7686
- package/dist/{checkout-DIJouRVV.cjs → checkout-CsUEgzNn.cjs} +1 -1
- package/dist/{checkout-BsYetn2-.js → checkout-mcHAyWEa.js} +5 -5
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +6 -6
- package/dist/{index-Cr25rl1u.js → index-B12y_qEB.js} +5 -5
- package/dist/{index-CG9fjckz.cjs → index-BWoaMG8T.cjs} +1 -1
- package/dist/{index-DHhy_3x4.js → index-BjcWx8wB.js} +5 -5
- package/dist/{index-CGhwUO1e.cjs → index-Bofxg0AH.cjs} +1 -1
- package/dist/{index-C6JugsHY.cjs → index-C7_7gxtJ.cjs} +1 -1
- package/dist/{index-FBJs_JPX.js → index-CCjzKMwQ.js} +5 -5
- package/dist/{index-DMB5q_9y.js → index-DIDN7IgX.js} +1 -1
- package/dist/{index-D71UMIbF.cjs → index-DfVUY914.cjs} +1 -1
- package/dist/{index-DbpGGHmH.cjs → index-IqTAj4am.cjs} +1 -1
- package/dist/{index-Q6x34N1h.js → index-tBte6qj1.js} +5 -5
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.es.js +6 -6
- package/dist/{order-ByTbpE8g.js → order-BSsAdOhb.js} +5 -5
- package/dist/{order-Cel0_cQV.cjs → order-Daq3KqYR.cjs} +1 -1
- package/dist/src/exports.d.ts +1 -1
- package/dist/src/storefront/utils/{MarkdownText.d.ts → MarkdownText/MarkdownText.d.ts} +1 -0
- package/dist/src/storefront/utils/parseDraftJsText.d.ts +1 -1
- package/dist/src/ui/Input/index.d.ts +1 -0
- package/dist/src/ui/Select/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/{subscription-DEhfna15.cjs → subscription-CRKE4aqm.cjs} +1 -1
- package/dist/{subscription-BQgsD4lk.js → subscription-DXdXdYbh.js} +5 -5
- package/dist/{ticket-BwxrIRC1.cjs → ticket-B9hCJ2BK.cjs} +1 -1
- package/dist/{ticket-C6mCCzyX.js → ticket-CBrgGC_d.js} +5 -5
- package/dist/{top-up-BwcFHgzC.cjs → top-up-C560FFu1.cjs} +1 -1
- package/dist/{top-up-Dqho0T4f.js → top-up-jgF7HiT1.js} +5 -5
- package/dist/ui-components-CRgCcdUh.cjs +1 -0
- package/dist/{ui-components-BK_dGhdU.js → ui-components-TTSDl0fE.js} +1289 -1277
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +1 -1
- package/dist/{validation-B8s971ha.js → validation-Q5n0EBhg.js} +5 -5
- package/dist/{validation-DE-xVdL0.cjs → validation-c_mPG5bz.cjs} +1 -1
- package/package.json +4 -3
- package/dist/charge-BRVd1wLH.cjs +0 -109
- package/dist/ui-components-D9iV1NC1.cjs +0 -1
package/dist/ui.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./ui-components-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./ui-components-CRgCcdUh.cjs");exports.Accordion=t.Accordion;exports.AlignText=t.AlignText;exports.BurgerMenuButton=t.BurgerMenuButton;exports.Button=t.Button;exports.ButtonSettings=t.ButtonSettings;exports.ButtonTypeSettings=t.ButtonTypeSettings;exports.ButtonsSettings=t.ButtonsSettings;exports.CategorySettings=t.CategorySettings;exports.ChargeTypes=t.ChargeTypes;exports.Checkbox=t.Checkbox;exports.CheckboxSettings=t.CheckboxSettings;exports.ChooseImage=t.ChooseImage;exports.ChooseImageModal=t.ChooseImageModal;exports.ConfirmationModal=t.ConfirmationModal;exports.EmptyCart=t.EmptyCart;exports.ErrorableBlock=t.ErrorableBlock;exports.FormSettings=t.FormSettings;exports.GroupCardModal=t.GroupCardModal;exports.HeaderButtons=t.HeaderButtons;exports.Icon=t.Icon;exports.InputSettings=t.InputSettings;exports.InputUI=t.Input;exports.ItemsSettings=t.ItemsSettings;exports.LayoutSettings=t.LayoutSettings;exports.Link=t.Link;exports.ListingSelector=t.ListingSelector;exports.Loader=t.Loader;exports.LoaderBuilder=t.LoaderBuilder;exports.MetaInfoPost=t.MetaInfoPost;exports.Modal=t.Modal;exports.NotificationBuilder=t.NotificationBuilder;exports.PagesMobileMenu=t.PagesMobileMenu;exports.PagesMobileModal=t.PagesMobileModal;exports.PagesSettings=t.PagesSettings;exports.ProductCardButtons=t.ProductCardButtons;exports.ProductCardModal=t.ProductCardModal;exports.ProductOptions=t.ProductOptions;exports.RadioUI=t.Radio;exports.RangeSelector=t.RangeSelector;exports.Select=t.Select;exports.SelectInfiniteList=t.SelectInfiniteList;exports.SelectTypeText=t.SelectTypeText;exports.SelectUI=t.Select;exports.ShareLink=t.ShareLink;exports.ShoppingButton=t.ShoppingButton;exports.ShoppingModalCart=t.ShoppingModalCart;exports.Switch=t.Switch;exports.TextSettings=t.TextSettings;exports.TextareaSettings=t.TextareaSettings;exports.TextareaUI=t.Textarea;exports.Tip=t.Tip;exports.TypesText=t.TypesText;exports.UserInfo=t.UserInfo;exports.Wrapper=t.Wrapper;
|
package/dist/ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as t, A as e, Y as o, g as n, B as i, y as r, w as g, v as S, G as d, i as l, k as u, a5 as c, b as p, C as I, Q as B, E as C, F as M, a3 as T, J as h, I as x, c as y, f as L, t as P, q as f, $ as m, D as b, e as k, L as U, a1 as A, M as E, N as R, X as w, V as F, P as G, a0 as H, a2 as N, H as O, R as W, z as j, S as q, a6 as v, a4 as z, S as D, Z as J, K, O as Q, d as V, s as X, T as Y, j as Z, h as _, x as $, U as aa, W as sa } from "./ui-components-
|
|
1
|
+
import { _ as t, A as e, Y as o, g as n, B as i, y as r, w as g, v as S, G as d, i as l, k as u, a5 as c, b as p, C as I, Q as B, E as C, F as M, a3 as T, J as h, I as x, c as y, f as L, t as P, q as f, $ as m, D as b, e as k, L as U, a1 as A, M as E, N as R, X as w, V as F, P as G, a0 as H, a2 as N, H as O, R as W, z as j, S as q, a6 as v, a4 as z, S as D, Z as J, K, O as Q, d as V, s as X, T as Y, j as Z, h as _, x as $, U as aa, W as sa } from "./ui-components-TTSDl0fE.js";
|
|
2
2
|
export {
|
|
3
3
|
t as Accordion,
|
|
4
4
|
e as AlignText,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as l, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import r from "react";
|
|
3
|
-
import { V as g } from "./charge-
|
|
4
|
-
import { V as I, M as b, ab as x, p as N } from "./builder
|
|
5
|
-
import { I as y, f as k, g as V, e as L } from "./ui-components-
|
|
6
|
-
import "./builder-components-
|
|
7
|
-
import "./ticket-
|
|
3
|
+
import { V as g } from "./charge-DueaDct8.js";
|
|
4
|
+
import { V as I, M as b, ab as x, p as N } from "./builder--uz9bTJl.js";
|
|
5
|
+
import { I as y, f as k, g as V, e as L } from "./ui-components-TTSDl0fE.js";
|
|
6
|
+
import "./builder-components-BgFUk-kn.js";
|
|
7
|
+
import "./ticket-CBrgGC_d.js";
|
|
8
8
|
import "react-dom";
|
|
9
9
|
const E = "_lock_1mxa7_1", G = "_wrapper_1mxa7_12", j = "_content_1mxa7_22", C = "_info_1mxa7_31", q = "_buttons_1mxa7_38", B = "_button_1mxa7_38", M = "_input_1mxa7_50", R = "_error_1mxa7_57", t = {
|
|
10
10
|
lock: E,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),g=require("./charge-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),g=require("./charge-DVEYTVV_.cjs"),d=require("./builder-Dc4t3e6x.cjs"),u=require("./ui-components-CRgCcdUh.cjs");require("./builder-components-DFkWIHl0.cjs");require("./ticket-B9hCJ2BK.cjs");require("react-dom");const j="_lock_1mxa7_1",b="_wrapper_1mxa7_12",I="_content_1mxa7_22",y="_info_1mxa7_31",N="_buttons_1mxa7_38",q="_button_1mxa7_38",k="_input_1mxa7_50",L="_error_1mxa7_57",s={lock:j,wrapper:b,content:I,info:y,buttons:N,button:q,input:k,error:L},V=()=>{const[f,n]=r.useState(!1),[h,w]=r.useState(!1),[c,P]=r.useState(""),{general:o,setGeneral:_}=d.useGeneralStore(),{setShopPassword:p}=d.useStorefrontStore(),i=d.useLocation(),m=d.useNavigate();r.useEffect(()=>{if(o&&(!o.info.passwordProtected||o.isPasswordValid)){const t=i.state.from==="/validation"?"/":i.state.from;m(t)}},[o]),r.useEffect(()=>{o||(async()=>{var x;n(!0);const l=localStorage.getItem("shopPassword")||"",a=await g.fetchGeneral(l);if(a.isPasswordValid){const S=((x=i.state)==null?void 0:x.from)||"/";m(S)}a.info.passwordProtected||(localStorage.removeItem("shopPassword"),p("")),_(a),n(!1)})()},[o]);async function v(){var l;n(!0);const t=await g.fetchGeneral(c);if(!t.isPasswordValid)w(!0);else{localStorage.setItem("shopPassword",c),p(c);const a=((l=i.state)==null?void 0:l.from)||"/";m(a),t.info.passwordProtected||(localStorage.removeItem("shopPassword"),p("")),_(t)}n(!1)}return e.jsxs("div",{className:s.wrapper,children:[!f&&e.jsxs("div",{className:s.content,children:[e.jsx("div",{className:s.lock,children:e.jsx(u.Icon,{name:"Lock",fill:"var(--text-secondary)",width:64,height:64})}),e.jsxs("div",{className:s.info,children:[e.jsx("h2",{id:"h2",className:s.title,children:"The store is password protected"}),e.jsx("p",{id:"p",className:s.description,children:"If you do not have a password, we recommend you to contact the technical support of the store or write to the mail"})]}),e.jsxs("div",{className:s.input,children:[e.jsx(u.Input,{type:"password",onChange:t=>{w(!1),P(t)},value:c,placeholder:"Password",required:!0}),e.jsx("span",{className:s.error,children:h&&"Incorrect password"})]}),e.jsx("div",{className:s.buttons,children:e.jsx(u.Button,{type:"Primary",className:s.button,disabled:h,onClick:v,children:"Submit"})})]}),f&&e.jsx(u.Loader,{})]})};exports.ValidationPage=V;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@billgangcom/theme-lib",
|
|
3
|
-
"version": "1.111.
|
|
3
|
+
"version": "1.111.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"@dnd-kit/sortable": "^10.0.0",
|
|
30
30
|
"@dnd-kit/utilities": "^3.2.2",
|
|
31
31
|
"axios": "^1.7.7",
|
|
32
|
+
"draftjs-to-markdown": "^0.6.0",
|
|
32
33
|
"fuse.js": "^7.0.0",
|
|
33
34
|
"input-otp": "^1.2.4",
|
|
34
35
|
"jwt-decode": "^4.0.0",
|
|
@@ -74,9 +75,9 @@
|
|
|
74
75
|
"vite-plugin-svgr": "^4.2.0"
|
|
75
76
|
},
|
|
76
77
|
"peerDependencies": {
|
|
78
|
+
"@phosphor-icons/react": "^2.1.8",
|
|
77
79
|
"react": "^18.3.1",
|
|
78
|
-
"react-dom": "^18.3.1"
|
|
79
|
-
"@phosphor-icons/react": "^2.1.8"
|
|
80
|
+
"react-dom": "^18.3.1"
|
|
80
81
|
},
|
|
81
82
|
"scripts": {
|
|
82
83
|
"prebuild": "node generateIconNames.cjs",
|