@unchainedshop/admin-ui 4.8.27 → 4.8.29
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/chunk-2RTX42IE.js +2083 -0
- package/dist/chunk-6UGLNLJG.js +44 -0
- package/dist/{chunk-UXG7EYHC.js → chunk-7PPOGX7R.js} +2 -35
- package/dist/{chunk-45H2WVIC.js → chunk-COV7BREX.js} +0 -1
- package/dist/{chunk-RHUFQVKL.js → chunk-F2TCVEQX.js} +1 -1
- package/dist/{chunk-UFYR5WZT.js → chunk-GY2DRQGW.js} +2 -1
- package/dist/{chunk-BGCKJQGS.js → chunk-JAVEZY3Q.js} +22 -15
- package/dist/{chunk-6TXD4TA7.js → chunk-KCN7DDPH.js} +2 -82
- package/dist/{chunk-YSKZE2KN.js → chunk-MSPWYMDY.js} +37 -24
- package/dist/chunk-RORNAN2J.js +12 -0
- package/dist/chunk-YZGQJJCD.js +37 -0
- package/dist/components/ui/Tag/TagInput.d.ts +10 -5
- package/dist/components/ui/Tag/TagInput.d.ts.map +1 -1
- package/dist/components/ui/form/TagInputField.d.ts +2 -1
- package/dist/components/ui/form/TagInputField.d.ts.map +1 -1
- package/dist/form.js +699 -2497
- package/dist/gql/operation-types.d.ts +13043 -0
- package/dist/gql/operation-types.d.ts.map +1 -0
- package/dist/gql/schema-types.d.ts +3820 -0
- package/dist/gql/schema-types.d.ts.map +1 -0
- package/dist/gql/types.d.ts +2 -17208
- package/dist/gql/types.d.ts.map +1 -1
- package/dist/hooks.js +3 -2
- package/dist/modal.js +9 -5
- package/dist/modules/accounts/fragment/UserFragment.d.ts.map +1 -1
- package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +1 -1
- package/dist/modules/accounts.js +219 -63
- package/dist/modules/assortment.js +9 -4
- package/dist/modules/common/hooks/useApp.d.ts +1 -1
- package/dist/modules/common/hooks/useBulkResultHandler.d.ts +8 -0
- package/dist/modules/common/hooks/useBulkResultHandler.d.ts.map +1 -0
- package/dist/modules/common/hooks/useBulkSelection.d.ts +12 -0
- package/dist/modules/common/hooks/useBulkSelection.d.ts.map +1 -0
- package/dist/modules/common/hooks/useScrollRestoration.d.ts +8 -0
- package/dist/modules/common/hooks/useScrollRestoration.d.ts.map +1 -0
- package/dist/modules/common/hooks/useShopInfo.d.ts +13 -13
- package/dist/modules/common/hooks/useShopInfo.d.ts.map +1 -1
- package/dist/modules/common/utils/useFormatDateTime.d.ts +10 -1
- package/dist/modules/common/utils/useFormatDateTime.d.ts.map +1 -1
- package/dist/modules/country/hooks/useCountries.d.ts +4 -4
- package/dist/modules/enrollment.js +23 -2
- package/dist/modules/event.js +1 -1
- package/dist/modules/filter.js +1 -1
- package/dist/modules/language/hooks/useLanguages.d.ts +4 -4
- package/dist/modules/modal/components/DangerMessage.d.ts +2 -1
- package/dist/modules/modal/components/DangerMessage.d.ts.map +1 -1
- package/dist/modules/order/hooks/useOrders.d.ts +20 -20
- package/dist/modules/order/hooks/useOrders.d.ts.map +1 -1
- package/dist/modules/order.js +9 -3
- package/dist/modules/product-review.js +24 -5
- package/dist/modules/product.js +12 -16
- package/dist/modules/quotation.js +22 -2
- package/dist/modules/token.js +1 -1
- package/dist/modules/work/hooks/useWork.d.ts +14 -14
- package/dist/modules/work.js +17 -5
- package/dist/plugins.js +6 -1
- package/dist/providers.js +3 -3
- package/dist/sdk/plugins.d.ts +11 -0
- package/dist/sdk/plugins.d.ts.map +1 -1
- package/dist/sdk/shims/admin-ui-plugins.d.ts +3 -0
- package/dist/sdk/shims/admin-ui-plugins.d.ts.map +1 -0
- package/dist/sdk/shims/apollo-client-react.d.ts +3 -0
- package/dist/sdk/shims/apollo-client-react.d.ts.map +1 -0
- package/dist/sdk/shims/apollo-client.d.ts +3 -0
- package/dist/sdk/shims/apollo-client.d.ts.map +1 -0
- package/dist/sdk/shims/host.d.ts +17 -0
- package/dist/sdk/shims/host.d.ts.map +1 -0
- package/dist/sdk/shims/next-head.d.ts +3 -0
- package/dist/sdk/shims/next-head.d.ts.map +1 -0
- package/dist/sdk/shims/next-image.d.ts +3 -0
- package/dist/sdk/shims/next-image.d.ts.map +1 -0
- package/dist/sdk/shims/next-link.d.ts +3 -0
- package/dist/sdk/shims/next-link.d.ts.map +1 -0
- package/dist/sdk/shims/next-router.d.ts +3 -0
- package/dist/sdk/shims/next-router.d.ts.map +1 -0
- package/dist/sdk/shims/react-dom-client.d.ts +3 -0
- package/dist/sdk/shims/react-dom-client.d.ts.map +1 -0
- package/dist/sdk/shims/react-dom.d.ts +3 -0
- package/dist/sdk/shims/react-dom.d.ts.map +1 -0
- package/dist/sdk/shims/react-hook-form.d.ts +3 -0
- package/dist/sdk/shims/react-hook-form.d.ts.map +1 -0
- package/dist/sdk/shims/react-intl.d.ts +3 -0
- package/dist/sdk/shims/react-intl.d.ts.map +1 -0
- package/dist/sdk/shims/react-jsx-runtime.d.ts +3 -0
- package/dist/sdk/shims/react-jsx-runtime.d.ts.map +1 -0
- package/dist/sdk/shims/react-toastify.d.ts +3 -0
- package/dist/sdk/shims/react-toastify.d.ts.map +1 -0
- package/dist/sdk/shims/react.d.ts +3 -0
- package/dist/sdk/shims/react.d.ts.map +1 -0
- package/dist/shims/admin-ui-plugins.js +9 -0
- package/dist/shims/apollo-client-react.js +25 -0
- package/dist/shims/apollo-client.js +55 -0
- package/dist/shims/next-head.js +9 -0
- package/dist/shims/next-image.js +9 -0
- package/dist/shims/next-link.js +9 -0
- package/dist/shims/next-router.js +13 -0
- package/dist/shims/react-dom-client.js +11 -0
- package/dist/shims/react-dom.js +22 -0
- package/dist/shims/react-hook-form.js +25 -0
- package/dist/shims/react-intl.js +37 -0
- package/dist/shims/react-jsx-runtime.js +11 -0
- package/dist/shims/react-toastify.js +16 -0
- package/dist/shims/react.js +52 -0
- package/dist/ui.js +1261 -3443
- package/out/403/index.html +2 -2
- package/out/404/index.html +2 -2
- package/out/404.html +2 -2
- package/out/423/index.html +2 -2
- package/out/500/index.html +2 -2
- package/out/_next/static/{hZLisNV-2KMtO7y1-ggVm → 4-xf4wPkZc5rcBq3jUTDg}/_buildManifest.js +62 -62
- package/out/_next/static/chunks/{2z5b35yv3i6aq.js → 0-mytn4v5bu5h.js} +5 -5
- package/out/_next/static/chunks/0060t3kg_i0lf.js +10 -0
- package/out/_next/static/chunks/{20wamkfz03l6l.js → 0186bg0b60cid.js} +5 -5
- package/out/_next/static/chunks/{0l3hp2c6_v3vu.js → 049clkw76lm67.js} +5 -5
- package/out/_next/static/chunks/04bb4k67x398t.js +1 -0
- package/out/_next/static/chunks/{0c1eqd9oamcur.js → 057evs7qr5y-t.js} +6 -6
- package/out/_next/static/chunks/{036jcj4okqca4.js → 06tejx8u1_0kg.js} +1 -1
- package/out/_next/static/chunks/{3s18b668qqa87.js → 08tyybz20igty.js} +5 -5
- package/out/_next/static/chunks/{17wc5344qnib1.js → 0_02skyivjqh6.js} +5 -5
- package/out/_next/static/chunks/{37rq4vcfobv9x.js → 0cblqqpscyy7w.js} +5 -5
- package/out/_next/static/chunks/{1bhsgjj7bbftc.js → 0g6hr3dmen536.js} +2 -2
- package/out/_next/static/chunks/{1-mz7zwy-mbvq.js → 0ibp5q64hnd88.js} +9 -9
- package/out/_next/static/chunks/{2y9z7y6i5cawj.js → 0ichlp5c67dko.js} +5 -5
- package/out/_next/static/chunks/{404_8bnljpu18.js → 0iui_zfuxfa45.js} +6 -6
- package/out/_next/static/chunks/{1k703f4i1hgfy.js → 0k6z6zl_zxqp7.js} +6 -6
- package/out/_next/static/chunks/{3-av_88np5f5_.js → 0lutmpv07icdg.js} +4 -4
- package/out/_next/static/chunks/{1hpx7xjq9a5bq.js → 0nhczsa2mm354.js} +6 -6
- package/out/_next/static/chunks/{3k98cr566roh-.js → 0prynyrvhm7ef.js} +2 -2
- package/out/_next/static/chunks/0r5wwinf72z4g.js +1 -0
- package/out/_next/static/chunks/{2-ciniqgtu96t.js → 0ryqvctymlr3k.js} +4 -4
- package/out/_next/static/chunks/{1mo_wvf-1w8h-.js → 0sh5256hzmj3b.js} +6 -6
- package/out/_next/static/chunks/{3-h5nu9jontfy.js → 0srpqs12m-bwy.js} +6 -6
- package/out/_next/static/chunks/0uv4d5f9o8wu1.js +10 -0
- package/out/_next/static/chunks/{40v94fy15qxej.js → 0vx_1vxljh4tn.js} +5 -5
- package/out/_next/static/chunks/{05dtc5uryjkmn.js → 0vxe9bw7ffqy2.js} +7 -7
- package/out/_next/static/chunks/{1_g-csysa-i-9.js → 0w0zigi7aws2m.js} +1 -1
- package/out/_next/static/chunks/{0-b63f3cwlt9h.js → 18kae_yjyhjwf.js} +5 -5
- package/out/_next/static/chunks/{2cnc1jkfc85_x.js → 1aegvtb5jv57q.js} +5 -5
- package/out/_next/static/chunks/{0k433cermb_mg.js → 1cp4-dvxowp4c.js} +11 -11
- package/out/_next/static/chunks/1fzbon-ih4_3j.js +1 -0
- package/out/_next/static/chunks/{0o16fnqhx30be.js → 1g8f6jrb9cp9v.js} +6 -6
- package/out/_next/static/chunks/{2b_lhf_533k0a.js → 1gy9ae4fpd6jm.js} +7 -7
- package/out/_next/static/chunks/{2vhqw66fy605y.js → 1hq9yt63076pk.js} +7 -7
- package/out/_next/static/chunks/{31j6x_qgtn-7j.js → 1k-cn_5ey1u62.js} +5 -5
- package/out/_next/static/chunks/{1r0jyqmys60fw.js → 1k0mvn915uz76.js} +5 -5
- package/out/_next/static/chunks/{3dbskin37ha12.js → 1l4snbkce_jb6.js} +6 -6
- package/out/_next/static/chunks/{2_0bsdj7k4kue.js → 1vk6h4qps69vq.js} +5 -5
- package/out/_next/static/chunks/1vx8_u7-f7q8u.js +28 -0
- package/out/_next/static/chunks/1wvicoevgxhkk.js +14 -0
- package/out/_next/static/chunks/{3yqw8z_udrol0.js → 201rx84kyo8ag.js} +1 -1
- package/out/_next/static/chunks/{0dtahnosgvou_.js → 21o2yfegozc0m.js} +5 -5
- package/out/_next/static/chunks/{2p6deqdf8dlo0.js → 22w2ovaffle-i.js} +8 -8
- package/out/_next/static/chunks/234pfdqctlnyt.js +100 -0
- package/out/_next/static/chunks/{1f536itbgwelp.js → 25d8wr34sbm__.js} +6 -6
- package/out/_next/static/chunks/{2g0f0awj5p2qc.js → 29w1exzy704_7.js} +4 -4
- package/out/_next/static/chunks/{30zp6-w17u9rt.js → 2c4vy8ofex0ti.js} +6 -6
- package/out/_next/static/chunks/{1bp_0jnta8nj1.js → 2g39exixp92yf.js} +6 -6
- package/out/_next/static/chunks/{1w_4l5gk0n27a.js → 2hvt_8j6jkd_n.js} +6 -6
- package/out/_next/static/chunks/{21lf0tu71e9e5.js → 2iuznbar_ttrh.js} +8 -8
- package/out/_next/static/chunks/{2f8qzo__ksyu7.js → 2lwxs_ly4bz1o.js} +5 -5
- package/out/_next/static/chunks/2rtyphk0o1hbr.js +5 -0
- package/out/_next/static/chunks/{1epelh6347c59.js → 2sukt9l-1md8_.js} +11 -11
- package/out/_next/static/chunks/{03_e40kzqm4nj.js → 2vt52_i-6cdbh.js} +4 -4
- package/out/_next/static/chunks/{1szkbg0-e_tli.js → 2we4fnghpvprw.js} +1 -1
- package/out/_next/static/chunks/36yth4lm03_j8.js +1 -0
- package/out/_next/static/chunks/{1o41sjh1nhwir.js → 38ipj45w-tqay.js} +8 -8
- package/out/_next/static/chunks/{0dvf7ltl55td_.js → 39634va9fx9s2.js} +6 -6
- package/out/_next/static/chunks/{18e-92lfg29wn.js → 3a0hqx7ohm5lh.js} +8 -8
- package/out/_next/static/chunks/{378867ti5yucc.js → 3a7wm2331v13r.js} +1 -1
- package/out/_next/static/chunks/{3u3tcrl7wxrzi.js → 3dr_oa5hx41is.js} +5 -5
- package/out/_next/static/chunks/{2ncenexps2330.js → 3e7w6ko5psik7.js} +9 -9
- package/out/_next/static/chunks/{0172idn4wi-am.js → 3eow7lw1727kt.js} +6 -6
- package/out/_next/static/chunks/{4188i5qe83m24.js → 3f1gb4_hyhtho.js} +8 -8
- package/out/_next/static/chunks/{21c515liq8_sf.js → 3g4qj6_qh97q_.js} +5 -5
- package/out/_next/static/chunks/{2vy8ae-zwwle1.js → 3jcf4ei6zgnca.js} +7 -7
- package/out/_next/static/chunks/{0yhj5b33a-dp1.js → 3mnt471ayfsvh.js} +12 -12
- package/out/_next/static/chunks/{0c2th4nk1xlfd.js → 3ondw3-zthjz5.js} +7 -7
- package/out/_next/static/chunks/{1v16gcok-ktdo.js → 3oxv1fo564rrf.js} +1 -1
- package/out/_next/static/chunks/{3wm88ukxj8u46.js → 3ra_41-fw410n.js} +5 -5
- package/out/_next/static/chunks/3s22ovhmk-4h7.js +1 -0
- package/out/_next/static/chunks/3sktz8258so64.js +2 -0
- package/out/_next/static/chunks/{1gv6j3dx9s71x.js → 3tq-bb0j1_lpu.js} +6 -6
- package/out/_next/static/chunks/{27tp9qrxhs6uf.js → 3ww_p-agyd9u-.js} +7 -7
- package/out/_next/static/chunks/3xfj8_2nd5d_1.js +1 -0
- package/out/_next/static/chunks/{2o7wjpjbr5vau.js → 3yz34q3ulli7q.js} +5 -5
- package/out/_next/static/chunks/{0pj6j2o4ya0xs.js → 3zs002htik_8l.js} +8 -8
- package/out/_next/static/chunks/{2rw-r9fvx6t4y.js → 41fbmiggueudh.js} +6 -6
- package/out/_next/static/chunks/{2v0koj5wv-png.js → 43e0fp97w800k.js} +5 -5
- package/out/_next/static/chunks/{2eo4m196-t6ed.js → 43gv4x1sfyb5l.js} +4 -4
- package/out/_next/static/chunks/{40bl8g3_13c59.js → 44r51e87s4z_d.js} +4 -4
- package/out/_next/static/chunks/{turbopack-34rebh56g2zjd.js → turbopack-01866gjdddrxa.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3-84r4h6w7ztq.js → turbopack-08ttg7vxsdnsj.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3np05fneli2gv.js → turbopack-0a3j0ezn8okfg.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0cu-maxx6s175.js → turbopack-0anbjm4c1j4u4.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3seov_dvv8im-.js → turbopack-0ga3wfg-oyyst.js} +1 -1
- package/out/_next/static/chunks/{turbopack-25bgi6hb6qg8w.js → turbopack-0m3lvbvrn923g.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0rt_vkqrb6ykb.js → turbopack-0pmjdjcdx7cqp.js} +1 -1
- package/out/_next/static/chunks/{turbopack-08u3rgl_09tb7.js → turbopack-0s4b5r_1d8yqv.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2cvqtdfi5z-33.js → turbopack-0sihqflu4qpvw.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0bp88aylp19tu.js → turbopack-0tc31uax4buqq.js} +1 -1
- package/out/_next/static/chunks/{turbopack-058ikg9c4qsyu.js → turbopack-0w2rzh4i3j2og.js} +1 -1
- package/out/_next/static/chunks/turbopack-10ldzl5n31zl-.js +1 -0
- package/out/_next/static/chunks/{turbopack-3ma-qc75tctdd.js → turbopack-19e_bi5k2rqyy.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2h_05wv-1o-qp.js → turbopack-19i6-4a5o4fil.js} +1 -1
- package/out/_next/static/chunks/turbopack-19vr9o5829d-f.js +1 -0
- package/out/_next/static/chunks/{turbopack-1w3-o4vpw_tgq.js → turbopack-19yw5qwon7l57.js} +1 -1
- package/out/_next/static/chunks/{turbopack-13nb0axu41yph.js → turbopack-1cx5i7_gdoz5k.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1bnaj5x8w5m6z.js → turbopack-1d-c7awe26kf5.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3591lq9bl5zm-.js → turbopack-1l1aen9tojmq4.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2h3q2k9k2riyq.js → turbopack-1o1rar8ouv6h9.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0nlhzx_9rg6_p.js → turbopack-1od_4a7nj02l4.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0ywznohf-p_-1.js → turbopack-1r_0o22d_puxo.js} +1 -1
- package/out/_next/static/chunks/{turbopack-34cd6px36-_ae.js → turbopack-1rmdtpi005n_6.js} +1 -1
- package/out/_next/static/chunks/{turbopack-252a5rlyrq9fk.js → turbopack-1wx5785osz26z.js} +1 -1
- package/out/_next/static/chunks/{turbopack-22gnlzp5il9ai.js → turbopack-1zn9gl4fpayoc.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3uov6gvwwuxmx.js → turbopack-21vayl2_q4r5u.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3-kzs1xrhesa8.js → turbopack-23nr2ioaqw90j.js} +1 -1
- package/out/_next/static/chunks/{turbopack-22r1qh8g6munp.js → turbopack-23u97wxsuqiqb.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3zxsk_hikkrwx.js → turbopack-24ylsu2au7hg1.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0hpk8f7-2xoz3.js → turbopack-28_dvdmt6lvhn.js} +1 -1
- package/out/_next/static/chunks/turbopack-2bo7hmw4eirxu.js +1 -0
- package/out/_next/static/chunks/{turbopack-34gjko7_04blz.js → turbopack-2dk8ur1fvwxzj.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2b14t7jx5tgn7.js → turbopack-2e_wy0ffi64id.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1gbk68s3o1ulv.js → turbopack-2fuk9oepxr5n0.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2jpit5njafpgz.js → turbopack-2g2viapamsvwe.js} +1 -1
- package/out/_next/static/chunks/turbopack-2ga09m38zacev.js +1 -0
- package/out/_next/static/chunks/{turbopack-3x5pttfv2qlpw.js → turbopack-2pxtve7lryqre.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2ihmy6dk991x4.js → turbopack-2qbfd_-7v5dbo.js} +1 -1
- package/out/_next/static/chunks/{turbopack-42akqkt4irsps.js → turbopack-2rz_y4ejrvafp.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1ddkj8w1l0b4_.js → turbopack-2u0ls0liblo_9.js} +1 -1
- package/out/_next/static/chunks/{turbopack-25hv3ltvy0wos.js → turbopack-2u_328z53ed9p.js} +1 -1
- package/out/_next/static/chunks/{turbopack-272y7gt3ncsq7.js → turbopack-2xfom16ggx1i3.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0bljt1tp0zt4q.js → turbopack-2ycfwit0p-fkf.js} +1 -1
- package/out/_next/static/chunks/{turbopack-06hufy_7yovzw.js → turbopack-2yekm5ij2g-aw.js} +1 -1
- package/out/_next/static/chunks/{turbopack-14qzcqdgveoel.js → turbopack-3-w-v8og1lok2.js} +1 -1
- package/out/_next/static/chunks/{turbopack-148_1qw3wae7d.js → turbopack-30qkgccwlkv7n.js} +1 -1
- package/out/_next/static/chunks/{turbopack-26z9lzkojt-cx.js → turbopack-36bl9-rerhcfg.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3cnuj1vf45306.js → turbopack-37a6lyjyz7fts.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0jijm5fs2d3pa.js → turbopack-37lb9ujef-ujm.js} +1 -1
- package/out/_next/static/chunks/turbopack-39nctu3yv9iv4.js +1 -0
- package/out/_next/static/chunks/{turbopack-3mxiudedhdbib.js → turbopack-3_mmmbs60vr14.js} +1 -1
- package/out/_next/static/chunks/{turbopack-328hjoqts5fe-.js → turbopack-3_o3qz69ih0uu.js} +1 -1
- package/out/_next/static/chunks/turbopack-3cv39r7v3s2gr.js +1 -0
- package/out/_next/static/chunks/{turbopack-3n_3uj335tm0n.js → turbopack-3cv3hgsoo_z1k.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0cbhwv4g0ak0q.js → turbopack-3pgmc-lv74ewz.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1r4g2xna7gckz.js → turbopack-3uj40sz7i7jg0.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2xm-84om1nxe3.js → turbopack-3v4nxmdavly34.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3aujkr72l5znq.js → turbopack-3vfm6fp92up6y.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1k2h3st-nygbo.js → turbopack-3vyi51cuxeowy.js} +1 -1
- package/out/_next/static/chunks/{turbopack-44bpgib3rn1s2.js → turbopack-3w26eu86co02z.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3qmjh91o7wte5.js → turbopack-3zc0h1216mtm2.js} +1 -1
- package/out/_next/static/chunks/{turbopack-15x3cqzaaew93.js → turbopack-4166pmk5_y_4x.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0j92hsdmi8k6p.js → turbopack-431y1sh-m_0mp.js} +1 -1
- package/out/_offline/index.html +2 -2
- package/out/account/forgot-password/index.html +2 -2
- package/out/account/index.html +2 -2
- package/out/assortments/AssortmentDetailPage/index.html +2 -2
- package/out/assortments/index.html +2 -2
- package/out/assortments/new/index.html +2 -2
- package/out/copilot/index.html +2 -2
- package/out/country/CountryDetailPage/index.html +2 -2
- package/out/country/index.html +2 -2
- package/out/country/new/index.html +2 -2
- package/out/currency/CurrencyDetailPage/index.html +2 -2
- package/out/currency/index.html +2 -2
- package/out/currency/new/index.html +2 -2
- package/out/delivery-provider/DeliveryProviderDetailPage/index.html +2 -2
- package/out/delivery-provider/index.html +2 -2
- package/out/delivery-provider/new/index.html +2 -2
- package/out/enrollments/EnrollmentDetailPage/index.html +2 -2
- package/out/enrollments/index.html +2 -2
- package/out/events/EventDetailPage/index.html +2 -2
- package/out/events/index.html +2 -2
- package/out/exports/index.html +2 -2
- package/out/external/index.html +2 -2
- package/out/filters/FilterDetailPage/index.html +2 -2
- package/out/filters/index.html +2 -2
- package/out/filters/new/index.html +2 -2
- package/out/index.html +2 -2
- package/out/install/index.html +2 -2
- package/out/language/LanguageDetailPage/index.html +2 -2
- package/out/language/index.html +2 -2
- package/out/language/new/index.html +2 -2
- package/out/log-in/index.html +2 -2
- package/out/orders/OrderDetailPage/index.html +2 -2
- package/out/orders/index.html +2 -2
- package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
- package/out/payment-provider/index.html +2 -2
- package/out/payment-provider/new/index.html +2 -2
- package/out/products/ProductDetailPage/index.html +2 -2
- package/out/products/index.html +2 -2
- package/out/products/new/index.html +2 -2
- package/out/quotations/QuotationDetailPage/index.html +2 -2
- package/out/quotations/index.html +2 -2
- package/out/reset-password/index.html +2 -2
- package/out/sign-up/index.html +2 -2
- package/out/styleguide/index.html +2 -2
- package/out/tokens/TokenDetailPage/index.html +2 -2
- package/out/tokens/index.html +2 -2
- package/out/users/UserDetailPage/index.html +2 -2
- package/out/users/index.html +2 -2
- package/out/users/new/index.html +2 -2
- package/out/verify-email/index.html +2 -2
- package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
- package/out/warehousing-provider/index.html +2 -2
- package/out/warehousing-provider/new/index.html +2 -2
- package/out/works/WorkDetailPage/index.html +2 -2
- package/out/works/WorkQueueListView/index.html +2 -2
- package/out/works/index.html +2 -2
- package/out/works/management/index.html +2 -2
- package/package.json +2 -2
- package/out/_next/static/chunks/01crynfjy3xpb.js +0 -14
- package/out/_next/static/chunks/0cm0oyd82zvez.js +0 -1
- package/out/_next/static/chunks/119eyvb0tl4d7.js +0 -5
- package/out/_next/static/chunks/1shkyosfbiwr4.js +0 -1
- package/out/_next/static/chunks/1yv01jo2m1gkf.js +0 -1
- package/out/_next/static/chunks/2cwzp5h99c8es.js +0 -10
- package/out/_next/static/chunks/2tw-iq1oliu-h.js +0 -1
- package/out/_next/static/chunks/3-2opr3e2h-8o.js +0 -105
- package/out/_next/static/chunks/3-hdz4_6asex-.js +0 -10
- package/out/_next/static/chunks/3bxtyo0u_psf7.js +0 -1
- package/out/_next/static/chunks/3f-ap6wo94un_.js +0 -1
- package/out/_next/static/chunks/3ghzaufs2n8uq.js +0 -2
- package/out/_next/static/chunks/3rnl7-84z1op5.js +0 -28
- package/out/_next/static/chunks/turbopack-0i_uv1p6_dyo-.js +0 -1
- package/out/_next/static/chunks/turbopack-10l1gows-lyo9.js +0 -1
- package/out/_next/static/chunks/turbopack-3opb94dwpz7bg.js +0 -1
- package/out/_next/static/chunks/turbopack-3ouyppea8jp6k.js +0 -1
- package/out/_next/static/chunks/turbopack-3xem4akmi9at9.js +0 -1
- package/out/_next/static/chunks/turbopack-3z9v3oefxw81i.js +0 -1
- /package/dist/{chunk-BYXBJQAS.js → chunk-QWQ3WJJN.js} +0 -0
- /package/out/_next/static/{hZLisNV-2KMtO7y1-ggVm → 4-xf4wPkZc5rcBq3jUTDg}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{hZLisNV-2KMtO7y1-ggVm → 4-xf4wPkZc5rcBq3jUTDg}/_ssgManifest.js +0 -0
package/dist/hooks.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export { useForm_default as useForm } from './chunk-Q6S3LBUF.js';
|
|
2
|
-
export { useField_default as useField, useFormContext_default as useFormContext } from './chunk-
|
|
2
|
+
export { useField_default as useField, useFormContext_default as useFormContext } from './chunk-7PPOGX7R.js';
|
|
3
|
+
import './chunk-YZGQJJCD.js';
|
|
3
4
|
import { ThemeContext } from './chunk-SRAAKMWY.js';
|
|
4
|
-
export { useLocalStorage_default as useLocalStorage } from './chunk-54DKBWXV.js';
|
|
5
5
|
export { useModal_default as useModal } from './chunk-XHOCXPD5.js';
|
|
6
6
|
import './chunk-RVG6IOFC.js';
|
|
7
|
+
export { useLocalStorage_default as useLocalStorage } from './chunk-54DKBWXV.js';
|
|
7
8
|
import './chunk-4VNS5WPM.js';
|
|
8
9
|
import { useContext, useRef, useCallback, useEffect } from 'react';
|
|
9
10
|
|
package/dist/modal.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CheckIcon_default } from './chunk-XJBPMIC4.js';
|
|
2
2
|
export { useModal_default as useModal } from './chunk-XHOCXPD5.js';
|
|
3
|
-
export { Modal_default as Modal, ModalWrapper_default as ModalWrapper } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
export { Modal_default as Modal, ModalWrapper_default as ModalWrapper } from './chunk-F2TCVEQX.js';
|
|
4
|
+
import './chunk-KCN7DDPH.js';
|
|
5
5
|
export { ModalContext_default as ModalContext } from './chunk-RVG6IOFC.js';
|
|
6
6
|
import './chunk-4VNS5WPM.js';
|
|
7
7
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
@@ -52,7 +52,8 @@ var DangerMessage = ({
|
|
|
52
52
|
headerText = null,
|
|
53
53
|
message = null,
|
|
54
54
|
icon = null,
|
|
55
|
-
close = null
|
|
55
|
+
close = null,
|
|
56
|
+
loading = false
|
|
56
57
|
}) => {
|
|
57
58
|
const { formatMessage } = useIntl();
|
|
58
59
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -91,8 +92,10 @@ var DangerMessage = ({
|
|
|
91
92
|
{
|
|
92
93
|
id: "danger_continue",
|
|
93
94
|
onClick: onOkClick,
|
|
95
|
+
disabled: loading,
|
|
96
|
+
"aria-busy": loading,
|
|
94
97
|
type: "button",
|
|
95
|
-
className: "inline-flex w-full justify-center rounded-md border border-transparent bg-rose-600 px-4 py-2 text-base font-medium text-white shadow-xs hover:bg-rose-700 focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm",
|
|
98
|
+
className: "inline-flex w-full justify-center rounded-md border border-transparent bg-rose-600 px-4 py-2 text-base font-medium text-white shadow-xs hover:bg-rose-700 focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:ml-3 sm:w-auto sm:text-sm",
|
|
96
99
|
children: okText || formatMessage({ id: "continue", defaultMessage: "Continue" })
|
|
97
100
|
}
|
|
98
101
|
),
|
|
@@ -101,8 +104,9 @@ var DangerMessage = ({
|
|
|
101
104
|
{
|
|
102
105
|
id: "danger_cancel",
|
|
103
106
|
onClick: onCancelClick || close,
|
|
107
|
+
disabled: loading,
|
|
104
108
|
type: "button",
|
|
105
|
-
className: "mt-3 inline-flex w-full justify-center rounded-md border border-border-default bg-surface px-4 py-2 text-base font-medium text-text-secondary shadow-xs hover:bg-surface-raised focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",
|
|
109
|
+
className: "mt-3 inline-flex w-full justify-center rounded-md border border-border-default bg-surface px-4 py-2 text-base font-medium text-text-secondary shadow-xs hover:bg-surface-raised focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",
|
|
106
110
|
children: cancelText || formatMessage({ id: "cancel", defaultMessage: "Cancel" })
|
|
107
111
|
}
|
|
108
112
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserFragment.d.ts","sourceRoot":"","sources":["../../../../src/modules/accounts/fragment/UserFragment.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"UserFragment.d.ts","sourceRoot":"","sources":["../../../../src/modules/accounts/fragment/UserFragment.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,YAAY,gCA2GjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCurrentUser.d.ts","sourceRoot":"","sources":["../../../../src/modules/accounts/hooks/useCurrentUser.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,0BAA0B,EAC1B,KAAK,EACN,MAAM,oBAAoB,CAAC;AAI5B,eAAO,MAAM,mBAAmB,GAAI,uBAAmB,
|
|
1
|
+
{"version":3,"file":"useCurrentUser.d.ts","sourceRoot":"","sources":["../../../../src/modules/accounts/hooks/useCurrentUser.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,0BAA0B,EAC1B,KAAK,EACN,MAAM,oBAAoB,CAAC;AAI5B,eAAO,MAAM,mBAAmB,GAAI,uBAAmB,mCAUtD,CAAC;AAEF,QAAA,MAAM,cAAc,GAAI,SAAS,0BAA0B;;;;;CAmB1D,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
package/dist/modules/accounts.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import '../chunk-QWQ3WJJN.js';
|
|
2
|
+
import { useConfirmMediaUpload_default, PUTMedia_default } from '../chunk-COV7BREX.js';
|
|
3
|
+
import { UserFragment_default, MD5MetaDataFragment_default } from '../chunk-GY2DRQGW.js';
|
|
4
|
+
export { useCurrentUser_default as useCurrentUser } from '../chunk-GY2DRQGW.js';
|
|
4
5
|
import { useUnchainedContext_default } from '../chunk-IAQPLRXZ.js';
|
|
5
6
|
import '../chunk-4VNS5WPM.js';
|
|
6
7
|
import { gql } from '@apollo/client';
|
|
@@ -31,16 +32,16 @@ var logOut_default = logOut;
|
|
|
31
32
|
var AddEmailMutation = gql`
|
|
32
33
|
mutation AddEmail($email: String!, $userId: ID) {
|
|
33
34
|
addEmail(email: $email, userId: $userId) {
|
|
34
|
-
|
|
35
|
+
_id
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
|
-
${UserFragment_default}
|
|
38
38
|
`;
|
|
39
39
|
var useAddEmail = () => {
|
|
40
40
|
const [addEmailMutation] = useMutation(AddEmailMutation);
|
|
41
41
|
const addEmail = async ({ email, userId }) => {
|
|
42
42
|
return addEmailMutation({
|
|
43
|
-
variables: { email, userId }
|
|
43
|
+
variables: { email, userId },
|
|
44
|
+
refetchQueries: ["UserPermissions", "User", "CurrentUser"]
|
|
44
45
|
});
|
|
45
46
|
};
|
|
46
47
|
return {
|
|
@@ -293,24 +294,25 @@ var useGenerateLoginCredentials = () => {
|
|
|
293
294
|
});
|
|
294
295
|
const publicKey = data?.createWebAuthnCredentialRequestOptions;
|
|
295
296
|
if (!publicKey?.allowCredentials?.length) return null;
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
id:
|
|
299
|
-
|
|
300
|
-
|
|
297
|
+
const preparedKey = {
|
|
298
|
+
challenge: base64ToArrayBuffer_default(publicKey.challenge),
|
|
299
|
+
allowCredentials: publicKey.allowCredentials?.map(({ id: id2, type, ...rest }) => ({
|
|
300
|
+
id: base64ToArrayBuffer_default(id2),
|
|
301
|
+
type: type || "public-key",
|
|
302
|
+
...rest
|
|
303
|
+
})) || []
|
|
304
|
+
};
|
|
301
305
|
const PublicKeyCredentials = await navigator.credentials.get({
|
|
302
|
-
publicKey
|
|
306
|
+
publicKey: preparedKey
|
|
303
307
|
});
|
|
308
|
+
if (!PublicKeyCredentials) return null;
|
|
309
|
+
const response = PublicKeyCredentials.response;
|
|
304
310
|
const authenticatorData = arrayBufferToBase64url(
|
|
305
|
-
|
|
306
|
-
);
|
|
307
|
-
const signature = arrayBufferToBase64url(
|
|
308
|
-
PublicKeyCredentials.response.signature
|
|
309
|
-
);
|
|
310
|
-
const userHandle = PublicKeyCredentials.response.userHandle ? arrayBufferToBase64url(PublicKeyCredentials.response.userHandle) : arrayBufferToBase64url(new TextEncoder().encode(username));
|
|
311
|
-
const clientDataJSON = arrayBufferToBase64url(
|
|
312
|
-
PublicKeyCredentials.response.clientDataJSON
|
|
311
|
+
response.authenticatorData
|
|
313
312
|
);
|
|
313
|
+
const signature = arrayBufferToBase64url(response.signature);
|
|
314
|
+
const userHandle = response.userHandle ? arrayBufferToBase64url(response.userHandle) : arrayBufferToBase64url(new TextEncoder().encode(username));
|
|
315
|
+
const clientDataJSON = arrayBufferToBase64url(response.clientDataJSON);
|
|
314
316
|
const id = arrayBufferToBase64url(PublicKeyCredentials.rawId);
|
|
315
317
|
return {
|
|
316
318
|
requestId: publicKey.requestId,
|
|
@@ -338,30 +340,31 @@ var useGenerateWebAuthCredentials = () => {
|
|
|
338
340
|
const { data } = await createWebAuthnCredentialCreationOptions({
|
|
339
341
|
username
|
|
340
342
|
});
|
|
341
|
-
const
|
|
343
|
+
const options = data.createWebAuthnCredentialCreationOptions;
|
|
342
344
|
const textEncoder = new TextEncoder();
|
|
343
|
-
publicKey
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
345
|
+
const publicKey = {
|
|
346
|
+
...options,
|
|
347
|
+
challenge: base64ToArrayBuffer_default(options.challenge),
|
|
348
|
+
user: {
|
|
349
|
+
id: textEncoder.encode(username),
|
|
350
|
+
name: username,
|
|
351
|
+
displayName: username
|
|
352
|
+
}
|
|
348
353
|
};
|
|
349
354
|
const publicKeyCredentials = await navigator.credentials.create({
|
|
350
355
|
publicKey
|
|
351
356
|
});
|
|
357
|
+
if (!publicKeyCredentials) return null;
|
|
358
|
+
const response = publicKeyCredentials.response;
|
|
352
359
|
const attestationObject = arrayBufferToBase64url2(
|
|
353
|
-
|
|
354
|
-
);
|
|
355
|
-
const clientDataJSON = arrayBufferToBase64url2(
|
|
356
|
-
publicKeyCredentials.response.clientDataJSON
|
|
360
|
+
response.attestationObject
|
|
357
361
|
);
|
|
362
|
+
const clientDataJSON = arrayBufferToBase64url2(response.clientDataJSON);
|
|
358
363
|
const rawId = arrayBufferToBase64url2(publicKeyCredentials.rawId);
|
|
359
|
-
const authenticatorData =
|
|
360
|
-
|
|
361
|
-
) :
|
|
362
|
-
const
|
|
363
|
-
const publicKeyAlgorithm = publicKeyCredentials.response.getPublicKeyAlgorithm ? publicKeyCredentials.response.getPublicKeyAlgorithm() : -7;
|
|
364
|
-
const transports = publicKeyCredentials.response.getTransports ? publicKeyCredentials.response.getTransports() : ["internal"];
|
|
364
|
+
const authenticatorData = response.getAuthenticatorData ? arrayBufferToBase64url2(response.getAuthenticatorData()) : "";
|
|
365
|
+
const responsePublicKey = response.getPublicKey ? arrayBufferToBase64url2(response.getPublicKey()) : "";
|
|
366
|
+
const publicKeyAlgorithm = response.getPublicKeyAlgorithm ? response.getPublicKeyAlgorithm() : -7;
|
|
367
|
+
const transports = response.getTransports ? response.getTransports() : ["internal"];
|
|
365
368
|
return {
|
|
366
369
|
id: rawId,
|
|
367
370
|
rawId,
|
|
@@ -469,10 +472,9 @@ var useLoginWithWebAuthn_default = useLoginWithWebAuthn;
|
|
|
469
472
|
var RemoveEmailMutation = gql`
|
|
470
473
|
mutation RemoveEmail($email: String!, $userId: ID) {
|
|
471
474
|
removeEmail(email: $email, userId: $userId) {
|
|
472
|
-
|
|
475
|
+
_id
|
|
473
476
|
}
|
|
474
477
|
}
|
|
475
|
-
${UserFragment_default}
|
|
476
478
|
`;
|
|
477
479
|
var useRemoveEmail = () => {
|
|
478
480
|
const [removeEmailMutation] = useMutation(RemoveEmailMutation);
|
|
@@ -484,7 +486,8 @@ var useRemoveEmail = () => {
|
|
|
484
486
|
variables: {
|
|
485
487
|
email,
|
|
486
488
|
userId
|
|
487
|
-
}
|
|
489
|
+
},
|
|
490
|
+
refetchQueries: ["UserPermissions", "User", "CurrentUser"]
|
|
488
491
|
});
|
|
489
492
|
};
|
|
490
493
|
return {
|
|
@@ -593,10 +596,9 @@ var useSendVerificationEmail_default = useSendVerificationEmail;
|
|
|
593
596
|
var SetPasswordMutation = gql`
|
|
594
597
|
mutation SetPassword($newPlainPassword: String!, $userId: ID!) {
|
|
595
598
|
setPassword(newPassword: $newPlainPassword, userId: $userId) {
|
|
596
|
-
|
|
599
|
+
_id
|
|
597
600
|
}
|
|
598
601
|
}
|
|
599
|
-
${UserFragment_default}
|
|
600
602
|
`;
|
|
601
603
|
var useSetPassword = () => {
|
|
602
604
|
const [setPasswordMutation] = useMutation(SetPasswordMutation);
|
|
@@ -605,7 +607,10 @@ var useSetPassword = () => {
|
|
|
605
607
|
userId
|
|
606
608
|
}) => {
|
|
607
609
|
const variables = { newPlainPassword, userId };
|
|
608
|
-
return setPasswordMutation({
|
|
610
|
+
return setPasswordMutation({
|
|
611
|
+
variables,
|
|
612
|
+
refetchQueries: ["UserPermissions", "User", "CurrentUser"]
|
|
613
|
+
});
|
|
609
614
|
};
|
|
610
615
|
return {
|
|
611
616
|
setPassword
|
|
@@ -615,10 +620,9 @@ var useSetPassword_default = useSetPassword;
|
|
|
615
620
|
var SetRoleMutation = gql`
|
|
616
621
|
mutation SetRoles($roles: [String!]!, $userId: ID!) {
|
|
617
622
|
setRoles(roles: $roles, userId: $userId) {
|
|
618
|
-
|
|
623
|
+
_id
|
|
619
624
|
}
|
|
620
625
|
}
|
|
621
|
-
${UserFragment_default}
|
|
622
626
|
`;
|
|
623
627
|
var useSetRoles = () => {
|
|
624
628
|
const [setRoleMutation] = useMutation(SetRoleMutation);
|
|
@@ -631,7 +635,7 @@ var useSetRoles = () => {
|
|
|
631
635
|
roles,
|
|
632
636
|
userId
|
|
633
637
|
},
|
|
634
|
-
refetchQueries: ["User"]
|
|
638
|
+
refetchQueries: ["UserPermissions", "User", "CurrentUser"]
|
|
635
639
|
});
|
|
636
640
|
};
|
|
637
641
|
return {
|
|
@@ -658,7 +662,14 @@ var useSetUserTags = () => {
|
|
|
658
662
|
tags,
|
|
659
663
|
userId
|
|
660
664
|
},
|
|
661
|
-
refetchQueries: [
|
|
665
|
+
refetchQueries: [
|
|
666
|
+
"Users",
|
|
667
|
+
"UserPermissions",
|
|
668
|
+
"User",
|
|
669
|
+
"CurrentUser",
|
|
670
|
+
"ShopStatus",
|
|
671
|
+
"ShopInfo"
|
|
672
|
+
]
|
|
662
673
|
});
|
|
663
674
|
};
|
|
664
675
|
return {
|
|
@@ -669,10 +680,9 @@ var useSetUserTags_default = useSetUserTags;
|
|
|
669
680
|
var SetUserNameMutation = gql`
|
|
670
681
|
mutation SetUsername($username: String!, $userId: ID!) {
|
|
671
682
|
setUsername(username: $username, userId: $userId) {
|
|
672
|
-
|
|
683
|
+
_id
|
|
673
684
|
}
|
|
674
685
|
}
|
|
675
|
-
${UserFragment_default}
|
|
676
686
|
`;
|
|
677
687
|
var useSetUserName = () => {
|
|
678
688
|
const [setUserNameMutation] = useMutation(SetUserNameMutation);
|
|
@@ -685,7 +695,7 @@ var useSetUserName = () => {
|
|
|
685
695
|
username,
|
|
686
696
|
userId
|
|
687
697
|
},
|
|
688
|
-
refetchQueries: ["User"]
|
|
698
|
+
refetchQueries: ["UserPermissions", "User", "CurrentUser"]
|
|
689
699
|
});
|
|
690
700
|
};
|
|
691
701
|
return {
|
|
@@ -730,10 +740,9 @@ var useUpdateUserAvatar_default = useUpdateUserAvatar;
|
|
|
730
740
|
var UpdateUserProfileMutation = gql`
|
|
731
741
|
mutation UpdateUserProfile($profile: UserProfileInput!, $userId: ID) {
|
|
732
742
|
updateUserProfile(profile: $profile, userId: $userId) {
|
|
733
|
-
|
|
743
|
+
_id
|
|
734
744
|
}
|
|
735
745
|
}
|
|
736
|
-
${UserFragment_default}
|
|
737
746
|
`;
|
|
738
747
|
var useUpdateUserProfile = () => {
|
|
739
748
|
const [updateUserProfileMutation] = useMutation(UpdateUserProfileMutation);
|
|
@@ -745,7 +754,8 @@ var useUpdateUserProfile = () => {
|
|
|
745
754
|
variables: {
|
|
746
755
|
profile,
|
|
747
756
|
userId
|
|
748
|
-
}
|
|
757
|
+
},
|
|
758
|
+
refetchQueries: ["UserPermissions", "User", "CurrentUser"]
|
|
749
759
|
});
|
|
750
760
|
};
|
|
751
761
|
return {
|
|
@@ -753,30 +763,176 @@ var useUpdateUserProfile = () => {
|
|
|
753
763
|
};
|
|
754
764
|
};
|
|
755
765
|
var useUpdateUserProfile_default = useUpdateUserProfile;
|
|
766
|
+
var GetUserPermissionsQuery = gql`
|
|
767
|
+
query UserPermissions($userId: ID!) {
|
|
768
|
+
user(userId: $userId) {
|
|
769
|
+
_id
|
|
770
|
+
viewerAllowedActions
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
`;
|
|
756
774
|
var GetUserQuery = (inlineFragment = "") => gql`
|
|
757
|
-
query User(
|
|
775
|
+
query User(
|
|
776
|
+
$userId: ID!
|
|
777
|
+
$includePrivateInfos: Boolean!
|
|
778
|
+
$includeRoles: Boolean!
|
|
779
|
+
$includeOrders: Boolean!
|
|
780
|
+
) {
|
|
758
781
|
user(userId: $userId) {
|
|
759
|
-
|
|
760
|
-
|
|
782
|
+
_id
|
|
783
|
+
name
|
|
784
|
+
avatar {
|
|
785
|
+
_id
|
|
786
|
+
name
|
|
787
|
+
size
|
|
788
|
+
type
|
|
789
|
+
url
|
|
790
|
+
}
|
|
791
|
+
... @include(if: $includePrivateInfos) {
|
|
792
|
+
${inlineFragment}
|
|
793
|
+
lastBillingAddress {
|
|
794
|
+
firstName
|
|
795
|
+
lastName
|
|
796
|
+
company
|
|
797
|
+
addressLine
|
|
798
|
+
addressLine2
|
|
799
|
+
postalCode
|
|
800
|
+
countryCode
|
|
801
|
+
regionCode
|
|
802
|
+
city
|
|
803
|
+
}
|
|
804
|
+
lastContact {
|
|
805
|
+
emailAddress
|
|
806
|
+
telNumber
|
|
807
|
+
}
|
|
808
|
+
lastLogin {
|
|
809
|
+
countryCode
|
|
810
|
+
locale
|
|
811
|
+
remoteAddress
|
|
812
|
+
remotePort
|
|
813
|
+
timestamp
|
|
814
|
+
userAgent
|
|
815
|
+
}
|
|
816
|
+
paymentCredentials {
|
|
817
|
+
_id
|
|
818
|
+
isValid
|
|
819
|
+
isPreferred
|
|
820
|
+
paymentProvider {
|
|
821
|
+
_id
|
|
822
|
+
type
|
|
823
|
+
interface {
|
|
824
|
+
_id
|
|
825
|
+
label
|
|
826
|
+
version
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
emails {
|
|
831
|
+
verified
|
|
832
|
+
address
|
|
833
|
+
}
|
|
834
|
+
web3Addresses {
|
|
835
|
+
address
|
|
836
|
+
nonce
|
|
837
|
+
verified
|
|
838
|
+
}
|
|
839
|
+
webAuthnCredentials {
|
|
840
|
+
_id
|
|
841
|
+
created
|
|
842
|
+
aaguid
|
|
843
|
+
counter
|
|
844
|
+
mdsMetadata {
|
|
845
|
+
...MD5MetaDataFragment
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
profile {
|
|
849
|
+
displayName
|
|
850
|
+
phoneMobile
|
|
851
|
+
gender
|
|
852
|
+
address {
|
|
853
|
+
firstName
|
|
854
|
+
lastName
|
|
855
|
+
company
|
|
856
|
+
addressLine
|
|
857
|
+
addressLine2
|
|
858
|
+
postalCode
|
|
859
|
+
countryCode
|
|
860
|
+
regionCode
|
|
861
|
+
city
|
|
862
|
+
}
|
|
863
|
+
birthday
|
|
864
|
+
}
|
|
865
|
+
username
|
|
866
|
+
primaryEmail {
|
|
867
|
+
verified
|
|
868
|
+
address
|
|
869
|
+
}
|
|
870
|
+
isGuest
|
|
871
|
+
isInitialPassword
|
|
872
|
+
tags
|
|
873
|
+
deleted
|
|
874
|
+
}
|
|
875
|
+
... @include(if: $includeRoles) {
|
|
876
|
+
roles
|
|
877
|
+
}
|
|
878
|
+
... @include(if: $includeOrders) {
|
|
879
|
+
cart {
|
|
880
|
+
_id
|
|
881
|
+
items {
|
|
882
|
+
_id
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
orders {
|
|
886
|
+
_id
|
|
887
|
+
items {
|
|
888
|
+
_id
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
}
|
|
761
892
|
}
|
|
762
893
|
}
|
|
763
|
-
${
|
|
894
|
+
${MD5MetaDataFragment_default}
|
|
764
895
|
`;
|
|
765
896
|
var useUser = ({ userId = null } = {}) => {
|
|
766
897
|
const { customProperties, hydrateFragment } = useUnchainedContext_default();
|
|
767
|
-
const
|
|
898
|
+
const skip = !userId;
|
|
899
|
+
const {
|
|
900
|
+
data: permissionsData,
|
|
901
|
+
loading: permissionsLoading,
|
|
902
|
+
error: permissionsError
|
|
903
|
+
} = useQuery(
|
|
904
|
+
GetUserPermissionsQuery,
|
|
905
|
+
{
|
|
906
|
+
skip,
|
|
907
|
+
variables: { userId },
|
|
908
|
+
fetchPolicy: "network-only"
|
|
909
|
+
}
|
|
910
|
+
);
|
|
911
|
+
const permissionTarget = permissionsData?.user?._id === userId ? permissionsData.user : null;
|
|
912
|
+
const viewerAllowedActions = permissionTarget?.viewerAllowedActions;
|
|
913
|
+
const hasPermission = (action) => viewerAllowedActions?.includes(action) ?? false;
|
|
914
|
+
const {
|
|
915
|
+
data: userData,
|
|
916
|
+
loading: userLoading,
|
|
917
|
+
error: userError
|
|
918
|
+
} = useQuery(
|
|
768
919
|
GetUserQuery(customProperties?.User),
|
|
769
920
|
{
|
|
770
|
-
skip: !
|
|
771
|
-
variables: {
|
|
921
|
+
skip: skip || !permissionTarget,
|
|
922
|
+
variables: {
|
|
923
|
+
userId,
|
|
924
|
+
includePrivateInfos: hasPermission("viewUserPrivateInfos" /* ViewUserPrivateInfos */),
|
|
925
|
+
includeRoles: hasPermission("viewUserRoles" /* ViewUserRoles */),
|
|
926
|
+
includeOrders: hasPermission("viewUserOrders" /* ViewUserOrders */)
|
|
927
|
+
}
|
|
772
928
|
}
|
|
773
929
|
);
|
|
774
|
-
const user =
|
|
775
|
-
const extendedData = hydrateFragment(customProperties?.User, user);
|
|
930
|
+
const user = permissionTarget && userData?.user?._id === userId ? { ...permissionTarget, ...userData.user } : null;
|
|
931
|
+
const extendedData = hasPermission("viewUserPrivateInfos" /* ViewUserPrivateInfos */) ? hydrateFragment(customProperties?.User, user) : null;
|
|
776
932
|
return {
|
|
777
933
|
user,
|
|
778
|
-
loading,
|
|
779
|
-
error,
|
|
934
|
+
loading: permissionsLoading || userLoading,
|
|
935
|
+
error: permissionsError || userError,
|
|
780
936
|
extendedData
|
|
781
937
|
};
|
|
782
938
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { parseUniqueId, parseSlug } from '../chunk-IXBMHOB5.js';
|
|
2
|
-
import { useApp_default } from '../chunk-
|
|
2
|
+
import { useApp_default } from '../chunk-RORNAN2J.js';
|
|
3
3
|
import { ProductBriefFragment_default } from '../chunk-EJDZRZSZ.js';
|
|
4
|
-
import '../chunk-ELPURWDC.js';
|
|
5
4
|
import { FilterFragment_default } from '../chunk-OKGJ6HDE.js';
|
|
6
5
|
import { parseMeta_default } from '../chunk-YO6PT7KD.js';
|
|
6
|
+
import '../chunk-JAVEZY3Q.js';
|
|
7
|
+
import '../chunk-ELPURWDC.js';
|
|
7
8
|
import '../chunk-RAQV2GYF.js';
|
|
8
9
|
import '../chunk-54DKBWXV.js';
|
|
9
|
-
import { useConfirmMediaUpload_default, PUTMedia_default } from '../chunk-
|
|
10
|
-
import '../chunk-
|
|
10
|
+
import { useConfirmMediaUpload_default, PUTMedia_default } from '../chunk-COV7BREX.js';
|
|
11
|
+
import '../chunk-GY2DRQGW.js';
|
|
11
12
|
import { useUnchainedContext_default } from '../chunk-IAQPLRXZ.js';
|
|
12
13
|
import '../chunk-4VNS5WPM.js';
|
|
13
14
|
import { gql } from '@apollo/client';
|
|
@@ -612,6 +613,10 @@ var CreateAssortmentMutation = gql`
|
|
|
612
613
|
) {
|
|
613
614
|
createAssortment(assortment: $assortment, texts: $texts) {
|
|
614
615
|
_id
|
|
616
|
+
texts {
|
|
617
|
+
_id
|
|
618
|
+
slug
|
|
619
|
+
}
|
|
615
620
|
}
|
|
616
621
|
}
|
|
617
622
|
`;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface BulkActionResult {
|
|
2
|
+
successCount: number;
|
|
3
|
+
failedCount: number;
|
|
4
|
+
failedIds: string[];
|
|
5
|
+
}
|
|
6
|
+
declare const useBulkResultHandler: () => (operation: () => Promise<unknown>, operationName: string) => Promise<BulkActionResult | null>;
|
|
7
|
+
export default useBulkResultHandler;
|
|
8
|
+
//# sourceMappingURL=useBulkResultHandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBulkResultHandler.d.ts","sourceRoot":"","sources":["../../../../src/modules/common/hooks/useBulkResultHandler.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAWD,QAAA,MAAM,oBAAoB,oBAKT,MAAM,OAAO,CAAC,OAAO,CAAC,iBAClB,MAAM,KACpB,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAsDrC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const useBulkSelection: <T extends string = string>(availableIds?: readonly T[]) => {
|
|
2
|
+
selectedIds: T[];
|
|
3
|
+
selectedCount: number;
|
|
4
|
+
allSelected: boolean;
|
|
5
|
+
toggle: (id: T) => void;
|
|
6
|
+
selectAll: (ids?: readonly T[]) => void;
|
|
7
|
+
clearAll: () => void;
|
|
8
|
+
isSelected: (id: T) => boolean;
|
|
9
|
+
toggleAll: () => void;
|
|
10
|
+
};
|
|
11
|
+
export default useBulkSelection;
|
|
12
|
+
//# sourceMappingURL=useBulkSelection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBulkSelection.d.ts","sourceRoot":"","sources":["../../../../src/modules/common/hooks/useBulkSelection.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,gBAAgB,GAAI,CAAC,SAAS,MAAM,GAAG,MAAM,EACjD,eAAc,SAAS,CAAC,EAA8B;;;;iBAe/C,CAAC;sBAgBA,SAAS,CAAC,EAAE;;qBAUgB,CAAC;;CAqCtC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Next restores before asynchronously fetched lists have rendered, which clamps
|
|
3
|
+
* the saved position to the top. Retry that same history entry's position while
|
|
4
|
+
* the list grows, stopping when the user scrolls or starts another navigation.
|
|
5
|
+
*/
|
|
6
|
+
declare const useScrollRestoration: () => void;
|
|
7
|
+
export default useScrollRestoration;
|
|
8
|
+
//# sourceMappingURL=useScrollRestoration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useScrollRestoration.d.ts","sourceRoot":"","sources":["../../../../src/modules/common/hooks/useScrollRestoration.ts"],"names":[],"mappings":"AAoEA;;;;GAIG;AACH,QAAA,MAAM,oBAAoB,YA+CzB,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
declare const useShopInfo: () => {
|
|
2
2
|
shopInfo: {
|
|
3
3
|
_id: string;
|
|
4
|
-
version
|
|
5
|
-
language
|
|
4
|
+
version: string | null;
|
|
5
|
+
language: {
|
|
6
6
|
_id: string;
|
|
7
|
-
isoCode
|
|
8
|
-
name
|
|
7
|
+
isoCode: string | null;
|
|
8
|
+
name: string | null;
|
|
9
9
|
} | null;
|
|
10
|
-
country
|
|
10
|
+
country: {
|
|
11
11
|
_id: string;
|
|
12
|
-
isoCode
|
|
13
|
-
flagEmoji
|
|
14
|
-
name
|
|
15
|
-
defaultCurrency
|
|
12
|
+
isoCode: string | null;
|
|
13
|
+
flagEmoji: string | null;
|
|
14
|
+
name: string | null;
|
|
15
|
+
defaultCurrency: {
|
|
16
16
|
_id: string;
|
|
17
17
|
isoCode: string;
|
|
18
18
|
} | null;
|
|
19
19
|
} | null;
|
|
20
20
|
adminUiConfig: {
|
|
21
|
-
singleSignOnURL
|
|
21
|
+
singleSignOnURL: string | null;
|
|
22
22
|
productTags: Array<string>;
|
|
23
23
|
assortmentTags: Array<string>;
|
|
24
24
|
userTags: Array<string>;
|
|
25
25
|
externalLinks: Array<{
|
|
26
|
-
href
|
|
27
|
-
title
|
|
28
|
-
target
|
|
26
|
+
href: string | null;
|
|
27
|
+
title: string | null;
|
|
28
|
+
target: import("../../../gql/schema-types").IExternalLinkTarget | null;
|
|
29
29
|
}>;
|
|
30
30
|
customProperties: Array<{
|
|
31
31
|
entityName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useShopInfo.d.ts","sourceRoot":"","sources":["../../../../src/modules/common/hooks/useShopInfo.ts"],"names":[],"mappings":"AA2CA,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"useShopInfo.d.ts","sourceRoot":"","sources":["../../../../src/modules/common/hooks/useShopInfo.ts"],"names":[],"mappings":"AA2CA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolves the BCP 47 locale used for date & time formatting in the Admin UI.
|
|
3
|
+
*
|
|
4
|
+
* Preserves the selected content locale. Without a valid selection, combines
|
|
5
|
+
* the Admin UI language with the shop country for regional conventions.
|
|
6
|
+
* An explicit region in the UI locale takes precedence over the shop country.
|
|
7
|
+
*/
|
|
8
|
+
export declare const resolveDateTimeLocale: (uiLocale?: string | null, countryCode?: string | null, selectedLocale?: string | null) => string;
|
|
1
9
|
declare const useFormatDateTime: () => {
|
|
2
|
-
formatDateTime: (date:
|
|
10
|
+
formatDateTime: (date: unknown, options?: Intl.DateTimeFormatOptions) => string;
|
|
3
11
|
getDateFormatPattern: () => string;
|
|
4
12
|
parseDate: (value: any) => string;
|
|
13
|
+
locale: string;
|
|
5
14
|
};
|
|
6
15
|
export default useFormatDateTime;
|
|
7
16
|
//# sourceMappingURL=useFormatDateTime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFormatDateTime.d.ts","sourceRoot":"","sources":["../../../../src/modules/common/utils/useFormatDateTime.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useFormatDateTime.d.ts","sourceRoot":"","sources":["../../../../src/modules/common/utils/useFormatDateTime.ts"],"names":[],"mappings":"AAOA;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,GAChC,WAAW,MAAM,GAAG,IAAI,EACxB,cAAc,MAAM,GAAG,IAAI,EAC3B,iBAAiB,MAAM,GAAG,IAAI,KAC7B,MAkBF,CAAC;AAEF,QAAA,MAAM,iBAAiB;2BAWb,OAAO,YACJ,IAAI,CAAC,qBAAqB;;;;CA6CtC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -4,10 +4,10 @@ declare const useCountries: ({ queryString, limit, offset, includeInactive, sort
|
|
|
4
4
|
}) => {
|
|
5
5
|
countries: {
|
|
6
6
|
_id: string;
|
|
7
|
-
isoCode
|
|
8
|
-
isActive
|
|
9
|
-
isBase
|
|
10
|
-
defaultCurrency
|
|
7
|
+
isoCode: string | null;
|
|
8
|
+
isActive: boolean | null;
|
|
9
|
+
isBase: boolean | null;
|
|
10
|
+
defaultCurrency: {
|
|
11
11
|
_id: string;
|
|
12
12
|
isoCode: string;
|
|
13
13
|
} | null;
|