@unchainedshop/admin-ui 5.0.0-alpha.12 → 5.0.0-alpha.14
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-ATZJXTRA.js → chunk-5UHBGLFV.js} +39 -1
- package/dist/{chunk-4MXPTVDL.js → chunk-6WMH7PLC.js} +1 -1
- package/dist/{chunk-GWMLIF3C.js → chunk-EKWWSFDK.js} +1 -1
- package/dist/{chunk-Q6S3LBUF.js → chunk-JC6PXYZP.js} +7 -1
- package/dist/{chunk-BOMSMJF2.js → chunk-JGER2LQO.js} +1 -0
- package/dist/{chunk-YUXHILXY.js → chunk-M2242FCR.js} +1 -1
- package/dist/{chunk-33ZO52Z7.js → chunk-NUGWX3KO.js} +123 -19
- package/dist/{chunk-ED2FP42R.js → chunk-XZ2V6XTD.js} +2 -2
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/form.js +7 -99
- package/dist/gql/operation-types.d.ts +51 -18
- package/dist/gql/operation-types.d.ts.map +1 -1
- package/dist/gql/schema-types.d.ts +25 -0
- package/dist/gql/schema-types.d.ts.map +1 -1
- package/dist/hooks.js +4 -4
- package/dist/modules/UnchainedContext/UnchainedContext.d.ts +1 -0
- package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +1 -1
- package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +1 -0
- package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +1 -1
- package/dist/modules/accounts.js +47 -1
- package/dist/modules/assortment.js +1 -1
- package/dist/modules/common/components/SearchWithTags.d.ts +10 -0
- package/dist/modules/common/components/SearchWithTags.d.ts.map +1 -0
- package/dist/modules/common/hooks/useShopInfo.d.ts +1 -0
- package/dist/modules/common/hooks/useShopInfo.d.ts.map +1 -1
- package/dist/modules/enrollment.js +24 -10
- package/dist/modules/forms/lib/validators.d.ts +3 -1
- package/dist/modules/forms/lib/validators.d.ts.map +1 -1
- package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +1 -1
- package/dist/modules/order.js +0 -1
- package/dist/modules/product/hooks/useProductsCount.d.ts +1 -1
- package/dist/modules/product/hooks/useProductsCount.d.ts.map +1 -1
- package/dist/modules/product-review.js +1 -1
- package/dist/modules/product.js +436 -24
- package/dist/modules/quotation.js +1 -0
- package/dist/ui.js +1317 -411
- package/out/403/index.html +3 -3
- package/out/404/index.html +3 -3
- package/out/404.html +3 -3
- package/out/423/index.html +3 -3
- package/out/500/index.html +3 -3
- package/out/_next/static/WEaZ5SW9HLnJWzXs84JMH/_buildManifest.js +266 -0
- package/out/_next/static/chunks/{2_0v0fw6x71zy.js → 00p6gl0n0kga2.js} +4 -4
- package/out/_next/static/chunks/0389l__ljgq-b.js +1 -0
- package/out/_next/static/chunks/039xltalow0bh.js +1 -0
- package/out/_next/static/chunks/{0w9d4swf95hvu.js → 03awz8e25u6-9.js} +1 -1
- package/out/_next/static/chunks/04kydtjv2qqb1.js +39 -0
- package/out/_next/static/chunks/05ghb-a4hshp1.js +24 -0
- package/out/_next/static/chunks/06gqojz2tfk7h.js +33 -0
- package/out/_next/static/chunks/08e3-wndual-j.js +183 -0
- package/out/_next/static/chunks/{41c4n9whpyrjc.js → 08gngcgmdigfl.js} +2 -2
- package/out/_next/static/chunks/{3e7d8sb4289js.js → 08htfpcq8k2ct.js} +1 -1
- package/out/_next/static/chunks/{45c05mbjow5wz.js → 0ao00r36i0nko.js} +1 -1
- package/out/_next/static/chunks/{01isyk4v59s_4.js → 0az9r1m1m5nw7.js} +2 -2
- package/out/_next/static/chunks/{2q988j4vovsiy.js → 0bahbwxzev843.js} +3 -3
- package/out/_next/static/chunks/{1z-etrje5tsj6.js → 0ejd4so6pfsb9.js} +2 -1
- package/out/_next/static/chunks/0f0aouv41459l.js +99 -0
- package/out/_next/static/chunks/{3fevbt4ysloo8.js → 0f4mwm9gegsvc.js} +3 -3
- package/out/_next/static/chunks/{1fehej_7rgmmo.js → 0ffdde8s4b7e2.js} +1 -1
- package/out/_next/static/chunks/0ftb36h7poyeo.js +235 -0
- package/out/_next/static/chunks/{1z1d11slpalrq.js → 0gclli_nyb0px.js} +1 -1
- package/out/_next/static/chunks/{0hv3x0mo1tt7i.js → 0hv62tllrjbgx.js} +2 -2
- package/out/_next/static/chunks/0ik3suboifvvc.js +1 -0
- package/out/_next/static/chunks/{3exy4ii5maq4x.js → 0jsbw2npug66o.js} +1 -1
- package/out/_next/static/chunks/0lgoprkr2wj68.js +12 -0
- package/out/_next/static/chunks/0mpgc4f7hc1dd.js +7 -0
- package/out/_next/static/chunks/{2y11qf38baxpu.js → 0oauw10y-zu7q.js} +5 -5
- package/out/_next/static/chunks/0pnifxx4n6jz4.js +30 -0
- package/out/_next/static/chunks/{2bxdh-td1el8z.js → 0rj53mrsrvu49.js} +1 -1
- package/out/_next/static/chunks/{3ek680kdzjdr7.js → 0v2f0xq8mp63h.js} +1 -1
- package/out/_next/static/chunks/{32whi9clpxjd0.js → 0wvck3kmtd8h3.js} +1 -1
- package/out/_next/static/chunks/{3h6a3clw5m5ro.js → 0y-xf7e4lgmru.js} +1 -1
- package/out/_next/static/chunks/12z0--swhgre2.js +33 -0
- package/out/_next/static/chunks/139wqbl161pdw.js +12 -0
- package/out/_next/static/chunks/{1hzt0aoixrv4_.js → 13sl42_jx13hh.js} +2 -2
- package/out/_next/static/chunks/14wav1vmqi2oo.js +371 -0
- package/out/_next/static/chunks/{3b1kt-r_75q1a.js → 15oodwh44nrve.js} +2 -2
- package/out/_next/static/chunks/15ullli2vlj87.js +8 -0
- package/out/_next/static/chunks/17g3a6iz0s59f.js +837 -0
- package/out/_next/static/chunks/{2m38nntt3z8zi.js → 19-fs9eq1syvw.js} +3 -3
- package/out/_next/static/chunks/{3fu072xwkf88o.js → 195cwzh3q1i0h.js} +2 -1
- package/out/_next/static/chunks/1fou9xz0_rm6d.js +5 -0
- package/out/_next/static/chunks/{37jjn1wguhj-a.js → 1k1b69hvwr-0g.js} +1 -1
- package/out/_next/static/chunks/{0rrhyxuk32t3n.js → 1kyjdq0bnkw10.js} +2 -2
- package/out/_next/static/chunks/{0v1tb34y7e1y4.js → 1l2ix83845lui.js} +1 -1
- package/out/_next/static/chunks/{3x_gia2m5w9_l.js → 1ossmsdseqyeu.js} +6 -6
- package/out/_next/static/chunks/1pm7k55e4pfpm.js +59 -0
- package/out/_next/static/chunks/1pqyz1opm5_7r.js +1 -0
- package/out/_next/static/chunks/{39moagn46hde9.js → 1qd4fupa708s4.js} +2 -2
- package/out/_next/static/chunks/{3o-h2po9z09dk.js → 1t1ecrjkykbv1.js} +1 -1
- package/out/_next/static/chunks/{28o6402k4vuky.js → 1tej7js0fwv1h.js} +3 -3
- package/out/_next/static/chunks/1th8knz7txt9f.js +5 -0
- package/out/_next/static/chunks/1tuf110jbpl_r.js +1 -0
- package/out/_next/static/chunks/1tzkeg4c-br-z.js +17 -0
- package/out/_next/static/chunks/{0_3suta3t3lus.js → 1u7l4tos3wysc.js} +2 -2
- package/out/_next/static/chunks/1v0ag3k96c56s.js +1 -0
- package/out/_next/static/chunks/1w6iuc_ba9g-3.js +3 -0
- package/out/_next/static/chunks/1x7cm_fuwp9m8.js +1 -0
- package/out/_next/static/chunks/1yv22tvuqofr_.js +296 -0
- package/out/_next/static/chunks/{0rt4le6syjqdj.js → 2-s-hteo3lrnj.js} +12 -12
- package/out/_next/static/chunks/20p146xfq-xrq.js +5 -0
- package/out/_next/static/chunks/{3ujdligrod612.js → 20t2g2u3jhtvy.js} +1 -1
- package/out/_next/static/chunks/{1ug1ie2lrhi0a.js → 231mhpexhdm2g.js} +1 -1
- package/out/_next/static/chunks/24zfmgc4cu-n1.js +9 -0
- package/out/_next/static/chunks/{44b7_q6pkf1k9.js → 25b_pi2_ro9yy.js} +1 -1
- package/out/_next/static/chunks/{2uo6puoi0y082.js → 2693w1263bb3s.js} +1 -1
- package/out/_next/static/chunks/{0i481ym5-ss1t.js → 26yarz_db5ms0.js} +1 -1
- package/out/_next/static/chunks/28xbb7hkhkoup.js +1 -0
- package/out/_next/static/chunks/299pou8yuoq6b.js +116 -0
- package/out/_next/static/chunks/2_cq751vth7u7.js +81 -0
- package/out/_next/static/chunks/2a2cayocu5mc3.js +1 -0
- package/out/_next/static/chunks/{1th1-x1szvnq8.js → 2dn2ma73q9ye0.js} +1 -1
- package/out/_next/static/chunks/{3www97fxyknos.js → 2fnn6q9fmhu3s.js} +1 -1
- package/out/_next/static/chunks/{3pls-kicv4xu9.js → 2ga95n_v_6_7b.js} +1 -1
- package/out/_next/static/chunks/{1q7wxp4rlhy0x.js → 2gfljy_oo0nnr.js} +5 -5
- package/out/_next/static/chunks/{0qv2nce7okzy5.js → 2gfot_-pkeohl.js} +1 -1
- package/out/_next/static/chunks/2h4bxz0oww5pk.js +4 -0
- package/out/_next/static/chunks/2j4g1tyyp8ta1.js +1 -0
- package/out/_next/static/chunks/2mt78e61hd_4p.js +100 -0
- package/out/_next/static/chunks/{05474mknnr_tw.js → 2rri_ex6s-d8g.js} +1 -1
- package/out/_next/static/chunks/{2ud5j0_nqocf4.js → 2sc6dwzzc2t7n.js} +1 -1
- package/out/_next/static/chunks/2texlu369byon.js +1 -0
- package/out/_next/static/chunks/{3lr6hkso67d68.js → 2tq8sqd3-wavo.js} +2 -2
- package/out/_next/static/chunks/2u2obxhc_n6xk.js +119 -0
- package/out/_next/static/chunks/{157ndq6b9jcvv.js → 2u4cc_r_qo0s4.js} +4 -4
- package/out/_next/static/chunks/2u6n7ohruqpxp.js +1 -0
- package/out/_next/static/chunks/2u9myo1sjc-q0.js +276 -0
- package/out/_next/static/chunks/{0we1tw4xvdb7o.js → 2ubbeh02scr2l.js} +2 -2
- package/out/_next/static/chunks/{1w6gc_cygbi6h.js → 2v_bdu-atp2qq.js} +1 -1
- package/out/_next/static/chunks/{1gv0k-w7m83om.js → 2vyv371s8n48m.js} +2 -2
- package/out/_next/static/chunks/{24caedynuzux0.js → 2xd_5hafdvicw.js} +1 -1
- package/out/_next/static/chunks/2ym9q2u0yw0m8.js +326 -0
- package/out/_next/static/chunks/{131uuhqexo4si.js → 3-grp4-_b_uin.js} +2 -1
- package/out/_next/static/chunks/{2s-0q8i8lr2p2.js → 31i76bjr7wp3u.js} +1 -1
- package/out/_next/static/chunks/{1j2gw9gyg8j80.js → 32thgoqghnqfk.js} +2 -2
- package/out/_next/static/chunks/{3hmoy4f23y1s4.js → 33svzh7wrh2ca.js} +4 -4
- package/out/_next/static/chunks/{345s7967cwd02.js → 33v1m9okpss0r.js} +1 -1
- package/out/_next/static/chunks/34gspkpv7wikw.js +8 -0
- package/out/_next/static/chunks/{0mcu2o1ir2t_w.js → 35zhvtyq31ani.js} +1 -1
- package/out/_next/static/chunks/36vqjcd_y2j30.js +1 -0
- package/out/_next/static/chunks/{1msc4qrgaanh7.js → 38043sp-g7lor.js} +2 -2
- package/out/_next/static/chunks/395bs5xmcnl_3.js +31 -0
- package/out/_next/static/chunks/{2w3z7kqh6nbmw.js → 3_jqu6hq_bq0s.js} +2 -2
- package/out/_next/static/chunks/{153-_av1r1ssb.js → 3_tuio1shb_8w.js} +1 -1
- package/out/_next/static/chunks/{0br42_xli8-2x.js → 3_u_uxeaysv2y.js} +1 -1
- package/out/_next/static/chunks/{1bypzyw5fs3w2.js → 3e9x78_cfl4gs.js} +4 -4
- package/out/_next/static/chunks/3i7obrooylax2.js +1 -0
- package/out/_next/static/chunks/3ij_85v4doyfu.js +2 -0
- package/out/_next/static/chunks/3jgmo9q79w1-c.js +290 -0
- package/out/_next/static/chunks/{42dygj7ul4k54.js → 3jp_xvjzuj3ts.js} +2 -2
- package/out/_next/static/chunks/{1k06h8wbfrx_v.js → 3l9ixfzewn8ct.js} +1 -1
- package/out/_next/static/chunks/3ltrxqm61t2um.js +1 -0
- package/out/_next/static/chunks/{1bxznw06g-5u2.js → 3qt1oiw306jtf.js} +2 -2
- package/out/_next/static/chunks/{0zqdvl0b4w5nc.js → 3s5_6nq23zb_5.js} +1 -1
- package/out/_next/static/chunks/{1vzs8hvrsoslf.js → 3s_74oi_rqb7q.js} +1 -1
- package/out/_next/static/chunks/{2-qo63s4vlxol.js → 3skconxcf6r_s.js} +5 -5
- package/out/_next/static/chunks/{3xs_undkbcqp7.js → 3ud-crkzgoj7q.js} +3 -3
- package/out/_next/static/chunks/{2u64ldp2xfy8a.js → 3wr9v36meolw7.js} +71 -70
- package/out/_next/static/chunks/3xun85a44o067.js +1 -0
- package/out/_next/static/chunks/{0cdk-eqghrgee.js → 407elvwrmcfn6.js} +1 -1
- package/out/_next/static/chunks/40j4nxaeofft-.js +1 -0
- package/out/_next/static/chunks/{3k01tdsm6l20w.js → 42ijceja_327z.js} +2 -2
- package/out/_next/static/chunks/440jwge6wnjj6.js +1 -0
- package/out/_next/static/chunks/44xnlcqhabyj6.js +174 -0
- package/out/_offline/index.html +3 -3
- package/out/account/forgot-password/index.html +3 -3
- package/out/account/index.html +3 -3
- package/out/assortments/AssortmentDetailPage/index.html +3 -3
- package/out/assortments/index.html +3 -3
- package/out/assortments/new/index.html +3 -3
- package/out/copilot/index.html +3 -3
- package/out/country/CountryDetailPage/index.html +3 -3
- package/out/country/index.html +3 -3
- package/out/country/new/index.html +3 -3
- package/out/currency/CurrencyDetailPage/index.html +3 -3
- package/out/currency/index.html +3 -3
- package/out/currency/new/index.html +3 -3
- package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -3
- package/out/delivery-provider/index.html +3 -3
- package/out/delivery-provider/new/index.html +3 -3
- package/out/enrollments/EnrollmentDetailPage/index.html +3 -3
- package/out/enrollments/index.html +3 -3
- package/out/events/EventDetailPage/index.html +3 -3
- package/out/events/index.html +3 -3
- package/out/exports/index.html +3 -3
- package/out/ext/[[...slug]]/index.html +3 -3
- package/out/external/index.html +3 -3
- package/out/filters/FilterDetailPage/index.html +3 -3
- package/out/filters/index.html +3 -3
- package/out/filters/new/index.html +3 -3
- package/out/index.html +3 -3
- package/out/install/index.html +3 -3
- package/out/language/LanguageDetailPage/index.html +3 -3
- package/out/language/index.html +3 -3
- package/out/language/new/index.html +3 -3
- package/out/log-in/index.html +3 -3
- package/out/login-code/index.html +12 -0
- package/out/orders/OrderDetailPage/index.html +3 -3
- package/out/orders/index.html +3 -3
- package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -3
- package/out/payment-provider/index.html +3 -3
- package/out/payment-provider/new/index.html +3 -3
- package/out/products/ProductDetailPage/index.html +3 -3
- package/out/products/index.html +3 -3
- package/out/products/new/index.html +3 -3
- package/out/quotations/QuotationDetailPage/index.html +3 -3
- package/out/quotations/index.html +3 -3
- package/out/reset-password/index.html +3 -3
- package/out/sign-up/index.html +3 -3
- package/out/styleguide/index.html +3 -3
- package/out/tokens/TokenDetailPage/index.html +3 -3
- package/out/tokens/index.html +3 -3
- package/out/users/UserDetailPage/index.html +3 -3
- package/out/users/index.html +3 -3
- package/out/users/new/index.html +3 -3
- package/out/verify-email/index.html +3 -3
- package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -3
- package/out/warehousing-provider/index.html +3 -3
- package/out/warehousing-provider/new/index.html +3 -3
- package/out/works/WorkDetailPage/index.html +3 -3
- package/out/works/WorkQueueListView/index.html +3 -3
- package/out/works/index.html +3 -3
- package/out/works/management/index.html +3 -3
- package/package.json +1 -1
- package/src/modules/accounts/hooks/useLoginWithLoginCode.ts +45 -0
- package/src/modules/accounts/hooks/useRequestLoginCode.ts +31 -0
- package/src/modules/accounts/index.ts +2 -0
- package/src/modules/common/hooks/useShopInfo.ts +1 -0
- package/src/modules/enrollment/fragments/EnrollmentDetailFragment.ts +3 -2
- package/src/modules/enrollment/hooks/useSuspendEnrollment.ts +5 -3
- package/src/modules/enrollment/hooks/useTerminateEnrollment.ts +15 -3
- package/src/modules/enrollment/hooks/useUpdateEnrollmentExpires.ts +38 -0
- package/src/modules/order/fragments/OrderDetailFragment.ts +0 -1
- package/src/modules/product/hooks/useProductTokenization.ts +1 -0
- package/src/modules/product/hooks/useProductsCount.ts +4 -0
- package/src/modules/product/hooks/useUpdateProductCommerce.ts +2 -13
- package/src/modules/product/hooks/useUpdateProductTokenization.ts +8 -1
- package/src/modules/product/index.ts +3 -0
- package/src/modules/quotation/fragments/QuotationDetailFragment.ts +1 -0
- package/src/sdk/README.md +1 -1
- package/out/_next/static/bg3Z_ZBjStiTvJAHlsPDE/_buildManifest.js +0 -262
- package/out/_next/static/chunks/00wlebfe9j80r.js +0 -24
- package/out/_next/static/chunks/03x_mgpai_kbn.js +0 -1
- package/out/_next/static/chunks/04327_1fq5i7-.js +0 -9
- package/out/_next/static/chunks/0_a5fzdztv84p.js +0 -272
- package/out/_next/static/chunks/0d54jo566j9ka.js +0 -12
- package/out/_next/static/chunks/0gfia1t8drmnx.js +0 -182
- package/out/_next/static/chunks/0gwd6ju8j_bwr.js +0 -39
- package/out/_next/static/chunks/0j46qnxaxeqk_.js +0 -1
- package/out/_next/static/chunks/0op3htrvd-ix6.js +0 -5
- package/out/_next/static/chunks/1-wbp_4f-c4-3.js +0 -837
- package/out/_next/static/chunks/11vnr4kb9qkjr.js +0 -1
- package/out/_next/static/chunks/14eqp21pspjud.js +0 -234
- package/out/_next/static/chunks/1eokbzdgdicpa.js +0 -33
- package/out/_next/static/chunks/1f0t23r6y0hni.js +0 -1
- package/out/_next/static/chunks/1ia6hdgf7pj9y.js +0 -174
- package/out/_next/static/chunks/1oqc8etm-romv.js +0 -1
- package/out/_next/static/chunks/1tbd6m-xvx0um.js +0 -353
- package/out/_next/static/chunks/1tw97cvdosb89.js +0 -5
- package/out/_next/static/chunks/1ubmbegreszhk.js +0 -1
- package/out/_next/static/chunks/1uw7hr3o4w5cj.js +0 -8
- package/out/_next/static/chunks/1xybsisfyvqrj.js +0 -115
- package/out/_next/static/chunks/1zdral15la_p7.js +0 -99
- package/out/_next/static/chunks/2-4610weysas_.js +0 -1
- package/out/_next/static/chunks/22duvsj-priip.js +0 -7
- package/out/_next/static/chunks/22rdge7enz4nd.js +0 -12
- package/out/_next/static/chunks/2b4k5t_myq-pa.js +0 -1
- package/out/_next/static/chunks/2dz0_3jf4m9cy.js +0 -31
- package/out/_next/static/chunks/2erqawjj0rnih.js +0 -117
- package/out/_next/static/chunks/2grm6dtosrvoq.js +0 -1
- package/out/_next/static/chunks/2imf3_f1_ex86.js +0 -1
- package/out/_next/static/chunks/2iwst7mjldlcz.js +0 -1
- package/out/_next/static/chunks/2ja0dztzyw8zw.js +0 -1
- package/out/_next/static/chunks/2ja1--2x_gs49.js +0 -83
- package/out/_next/static/chunks/2lec5u8obskt6.js +0 -5
- package/out/_next/static/chunks/2pogx3xggqd8y.js +0 -1
- package/out/_next/static/chunks/3205eg3ochzp4.js +0 -297
- package/out/_next/static/chunks/3368kg846t33d.js +0 -57
- package/out/_next/static/chunks/33oz-znvi5-m6.js +0 -1
- package/out/_next/static/chunks/3e38rrs6dszgt.js +0 -8
- package/out/_next/static/chunks/3eth7s2-06yuz.js +0 -1
- package/out/_next/static/chunks/3i4_3b36nutw7.js +0 -33
- package/out/_next/static/chunks/3lzin6_25n8rs.js +0 -30
- package/out/_next/static/chunks/3onharcadlou0.js +0 -327
- package/out/_next/static/chunks/3tg_clsx6ux4o.js +0 -1
- package/out/_next/static/chunks/3ttz1zgoq3xmp.js +0 -1
- package/out/_next/static/chunks/3ytp87o76hzmx.js +0 -100
- package/out/_next/static/chunks/40kvu3lk3s9h2.js +0 -276
- package/out/_next/static/chunks/44qc0zn0tudui.js +0 -2
- /package/out/_next/static/{bg3Z_ZBjStiTvJAHlsPDE → WEaZ5SW9HLnJWzXs84JMH}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{bg3Z_ZBjStiTvJAHlsPDE → WEaZ5SW9HLnJWzXs84JMH}/_ssgManifest.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="h-full"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><title data-next-head="">Unchained: Admin UI</title><meta name="og:description-0-Unchained e-commerce shop controller" content="Unchained e-commerce shop controller"/><meta name="og:site_name-1-Admin UI" content="Admin UI"/><meta name="og:url-2-https://unchained.shop" content="https://unchained.shop"/><meta name="og:image-3-/icons/manifest-icon-512.maskable.png" content="/icons/manifest-icon-512.maskable.png"/><meta name="og:type-4-website" content="website"/><meta name="og:title-5-Unchained Admin UI" content="Unchained Admin UI"/><meta name="twitter:image-6-/icons/manifest-icon-192.maskable.png" content="/icons/manifest-icon-192.maskable.png"/><meta name="twitter:creator-7-@unchainedshop" content="@unchainedshop"/><meta name="twitter:description-8-Unchained e-commerce shop controller" content="Unchained e-commerce shop controller"/><meta name="twitter:card-9-summary" content="summary"/><meta name="twitter:url-10-https://unchained.shop" content="https://unchained.shop"/><meta name="twitter:title-11-Unchained Admin UI" content="Unchained Admin UI"/><meta name="application-name-12-Unchained Admin UI" content="Unchained Admin UI"/><meta name="apple-mobile-web-app-capable-13-yes" content="yes"/><meta name="apple-mobile-web-app-status-bar-style-14-default" content="default"/><meta name="apple-mobile-web-app-title-15-Admin UI" content="Admin UI"/><meta name="description-16-Unchained e-commerce shop admin control" content="Unchained e-commerce shop admin control"/><meta name="format-detection-17-telephone=no" content="telephone=no"/><meta name="mobile-web-app-capable-18-yes" content="yes"/><meta name="msapplication-config-19-/icons/browserconfig.xml" content="/icons/browserconfig.xml"/><meta name="msapplication-TileColor-20-#537bd8" content="#537bd8"/><meta name="msapplication-tap-highlight-21-no" content="no"/><meta name="theme-color-22-#537bd8" content="#537bd8"/><link rel="icon" type="image/svg+xml" href="/favicon.svg"/><link rel="icon" type="image/png" sizes="196x196" href="/icons/favicon-196.png"/><link rel="apple-touch-icon" href="/icons/apple-icon-180.png"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-2048-2732.jpg" media="(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-2732-2048.jpg" media="(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-2388-1668.jpg" media="(device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-1536-2048.jpg" media="(device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-2048-1536.jpg" media="(device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-1668-2224.jpg" media="(device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-2224-1668.jpg" media="(device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-1620-2160.jpg" media="(device-width: 810px) and (device-height: 1080px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-2160-1620.jpg" media="(device-width: 810px) and (device-height: 1080px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-1284-2778.jpg" media="(device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-2778-1284.jpg" media="(device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-1170-2532.jpg" media="(device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-2532-1170.jpg" media="(device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-1125-2436.jpg" media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-2436-1125.jpg" media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-1242-2688.jpg" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-2688-1242.jpg" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-828-1792.jpg" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-1792-828.jpg" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-1242-2208.jpg" media="(device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-2208-1242.jpg" media="(device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-750-1334.jpg" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-1334-750.jpg" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-640-1136.jpg" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-1136-640.jpg" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)"/><link rel="preload" href="/_next/static/chunks/3_0q-dmk8few_.css" as="style"/><script>(function(){try{var t=localStorage.getItem('theme');if(t){t=JSON.parse(t)}if(t==='dark'||((!t||t==='system')&&window.matchMedia('(prefers-color-scheme:dark)').matches)){document.documentElement.classList.add('dark')}}catch(e){if(localStorage.theme==='dark')document.documentElement.classList.add('dark')}})()</script><link rel="stylesheet" href="/admin-ui-theme.css?v=5.0.0-alpha.
|
|
2
|
-
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/
|
|
1
|
+
<!DOCTYPE html><html class="h-full"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><title data-next-head="">Unchained: Admin UI</title><meta name="og:description-0-Unchained e-commerce shop controller" content="Unchained e-commerce shop controller"/><meta name="og:site_name-1-Admin UI" content="Admin UI"/><meta name="og:url-2-https://unchained.shop" content="https://unchained.shop"/><meta name="og:image-3-/icons/manifest-icon-512.maskable.png" content="/icons/manifest-icon-512.maskable.png"/><meta name="og:type-4-website" content="website"/><meta name="og:title-5-Unchained Admin UI" content="Unchained Admin UI"/><meta name="twitter:image-6-/icons/manifest-icon-192.maskable.png" content="/icons/manifest-icon-192.maskable.png"/><meta name="twitter:creator-7-@unchainedshop" content="@unchainedshop"/><meta name="twitter:description-8-Unchained e-commerce shop controller" content="Unchained e-commerce shop controller"/><meta name="twitter:card-9-summary" content="summary"/><meta name="twitter:url-10-https://unchained.shop" content="https://unchained.shop"/><meta name="twitter:title-11-Unchained Admin UI" content="Unchained Admin UI"/><meta name="application-name-12-Unchained Admin UI" content="Unchained Admin UI"/><meta name="apple-mobile-web-app-capable-13-yes" content="yes"/><meta name="apple-mobile-web-app-status-bar-style-14-default" content="default"/><meta name="apple-mobile-web-app-title-15-Admin UI" content="Admin UI"/><meta name="description-16-Unchained e-commerce shop admin control" content="Unchained e-commerce shop admin control"/><meta name="format-detection-17-telephone=no" content="telephone=no"/><meta name="mobile-web-app-capable-18-yes" content="yes"/><meta name="msapplication-config-19-/icons/browserconfig.xml" content="/icons/browserconfig.xml"/><meta name="msapplication-TileColor-20-#537bd8" content="#537bd8"/><meta name="msapplication-tap-highlight-21-no" content="no"/><meta name="theme-color-22-#537bd8" content="#537bd8"/><link rel="icon" type="image/svg+xml" href="/favicon.svg"/><link rel="icon" type="image/png" sizes="196x196" href="/icons/favicon-196.png"/><link rel="apple-touch-icon" href="/icons/apple-icon-180.png"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-2048-2732.jpg" media="(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-2732-2048.jpg" media="(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-2388-1668.jpg" media="(device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-1536-2048.jpg" media="(device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-2048-1536.jpg" media="(device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-1668-2224.jpg" media="(device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-2224-1668.jpg" media="(device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-1620-2160.jpg" media="(device-width: 810px) and (device-height: 1080px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-2160-1620.jpg" media="(device-width: 810px) and (device-height: 1080px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-1284-2778.jpg" media="(device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-2778-1284.jpg" media="(device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-1170-2532.jpg" media="(device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-2532-1170.jpg" media="(device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-1125-2436.jpg" media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-2436-1125.jpg" media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-1242-2688.jpg" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-2688-1242.jpg" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-828-1792.jpg" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-1792-828.jpg" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-1242-2208.jpg" media="(device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-2208-1242.jpg" media="(device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-750-1334.jpg" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-1334-750.jpg" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-640-1136.jpg" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"/><link rel="apple-touch-startup-image" href="/icons/apple-splash-1136-640.jpg" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)"/><link rel="preload" href="/_next/static/chunks/3_0q-dmk8few_.css" as="style"/><script>(function(){try{var t=localStorage.getItem('theme');if(t){t=JSON.parse(t)}if(t==='dark'||((!t||t==='system')&&window.matchMedia('(prefers-color-scheme:dark)').matches)){document.documentElement.classList.add('dark')}}catch(e){if(localStorage.theme==='dark')document.documentElement.classList.add('dark')}})()</script><link rel="stylesheet" href="/admin-ui-theme.css?v=5.0.0-alpha.14" id="theme-config-style"/><link rel="stylesheet" href="/_next/static/chunks/3_0q-dmk8few_.css" data-n-g=""/><noscript data-n-css=""></noscript><script>(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/06kqbwwnuu3te.js","static/chunks/440jwge6wnjj6.js","static/chunks/26guwpx1_pkxv.js","static/chunks/0uef4ugmc_g10.js","static/chunks/1sc2ug6_szd_d.js","static/chunks/17g3a6iz0s59f.js","static/chunks/1w6iuc_ba9g-3.js","static/chunks/34wf3lz_fft3k.js","static/chunks/0f0aouv41459l.js","static/chunks/0728622u98g6r.js","static/chunks/3ek1bahoqa_ll.js","static/chunks/1x7cm_fuwp9m8.js","static/chunks/32g5gxee1kcdc.js","static/chunks/2hci18oosfv5d.js","static/chunks/0ftb36h7poyeo.js","static/chunks/2mt78e61hd_4p.js","static/chunks/2_cq751vth7u7.js","static/chunks/3_0q-dmk8few_.css"],"runtimeModuleIds":[10783,92666]});
|
|
2
|
+
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/395bs5xmcnl_3.js","static/chunks/2j4g1tyyp8ta1.js"],"runtimeModuleIds":[10783,95260]});</script><script src="/_next/static/chunks/06kqbwwnuu3te.js" defer=""></script><script src="/_next/static/chunks/440jwge6wnjj6.js" defer=""></script><script src="/_next/static/chunks/26guwpx1_pkxv.js" defer=""></script><script src="/_next/static/chunks/0uef4ugmc_g10.js" defer=""></script><script src="/_next/static/chunks/1sc2ug6_szd_d.js" defer=""></script><script src="/_next/static/chunks/17g3a6iz0s59f.js" defer=""></script><script src="/_next/static/chunks/1w6iuc_ba9g-3.js" defer=""></script><script src="/_next/static/chunks/34wf3lz_fft3k.js" defer=""></script><script src="/_next/static/chunks/0f0aouv41459l.js" defer=""></script><script src="/_next/static/chunks/0728622u98g6r.js" defer=""></script><script src="/_next/static/chunks/3ek1bahoqa_ll.js" defer=""></script><script src="/_next/static/chunks/1x7cm_fuwp9m8.js" defer=""></script><script src="/_next/static/chunks/32g5gxee1kcdc.js" defer=""></script><script src="/_next/static/chunks/2hci18oosfv5d.js" defer=""></script><script src="/_next/static/chunks/0ftb36h7poyeo.js" defer=""></script><script src="/_next/static/chunks/2mt78e61hd_4p.js" defer=""></script><script src="/_next/static/chunks/2_cq751vth7u7.js" defer=""></script><script src="/_next/static/chunks/turbopack-077hmtqrhcoji.js" defer=""></script><script src="/_next/static/chunks/395bs5xmcnl_3.js" defer=""></script><script src="/_next/static/chunks/2j4g1tyyp8ta1.js" defer=""></script><script src="/_next/static/WEaZ5SW9HLnJWzXs84JMH/_buildManifest.js" defer=""></script><script src="/_next/static/WEaZ5SW9HLnJWzXs84JMH/_ssgManifest.js" defer=""></script><script src="/_next/static/WEaZ5SW9HLnJWzXs84JMH/_clientMiddlewareManifest.js" defer=""></script></head><body class="h-full bg-surface-subtle text-text-primary"><noscript>
|
|
3
3
|
<!--
|
|
4
4
|
_____ _____ _____ _____ _____ _____ _____ _____ ____
|
|
5
5
|
| | | | | | | | _ | | | | __| \
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
- Technology, Engineering & Design by Unchained Commerce GmbH - https://unchained.shop
|
|
10
10
|
|
|
11
11
|
-->
|
|
12
|
-
</noscript><div id="__next"><div class="w-full" role="status" aria-label="Loading"><div class="space-y-4 py-5"><div class="animate-pulse rounded bg-slate-200 dark:bg-slate-700 h-5 w-48"></div><div class="animate-pulse rounded bg-slate-200 dark:bg-slate-700 h-4 w-full"></div><div class="animate-pulse rounded bg-slate-200 dark:bg-slate-700 h-4 w-3/4"></div><div class="animate-pulse rounded bg-slate-200 dark:bg-slate-700 h-4 w-5/6"></div><div class="animate-pulse rounded bg-slate-200 dark:bg-slate-700 h-32 w-full mt-2"></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{},"componentName":"Unknown"},"page":"/works/management","query":{},"buildId":"
|
|
12
|
+
</noscript><div id="__next"><div class="w-full" role="status" aria-label="Loading"><div class="space-y-4 py-5"><div class="animate-pulse rounded bg-slate-200 dark:bg-slate-700 h-5 w-48"></div><div class="animate-pulse rounded bg-slate-200 dark:bg-slate-700 h-4 w-full"></div><div class="animate-pulse rounded bg-slate-200 dark:bg-slate-700 h-4 w-3/4"></div><div class="animate-pulse rounded bg-slate-200 dark:bg-slate-700 h-4 w-5/6"></div><div class="animate-pulse rounded bg-slate-200 dark:bg-slate-700 h-32 w-full mt-2"></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{},"componentName":"Unknown"},"page":"/works/management","query":{},"buildId":"WEaZ5SW9HLnJWzXs84JMH","nextExport":true,"isFallback":false,"appGip":true,"scriptLoader":[]}</script></body></html>
|
package/package.json
CHANGED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
2
|
+
import { useMutation } from '@apollo/client/react';
|
|
3
|
+
import {
|
|
4
|
+
ILoginWithLoginCodeMutation,
|
|
5
|
+
ILoginWithLoginCodeMutationVariables,
|
|
6
|
+
} from '../../../gql/types';
|
|
7
|
+
|
|
8
|
+
const LoginWithLoginCodeMutation = gql`
|
|
9
|
+
mutation LoginWithLoginCode($email: String, $code: String, $token: String) {
|
|
10
|
+
loginWithLoginCode(email: $email, code: $code, token: $token) {
|
|
11
|
+
_id
|
|
12
|
+
tokenExpires
|
|
13
|
+
user {
|
|
14
|
+
_id
|
|
15
|
+
allowedActions
|
|
16
|
+
roles
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
const useLoginWithLoginCode = () => {
|
|
23
|
+
const [loginWithLoginCodeMutation, { client }] = useMutation<
|
|
24
|
+
ILoginWithLoginCodeMutation,
|
|
25
|
+
ILoginWithLoginCodeMutationVariables
|
|
26
|
+
>(LoginWithLoginCodeMutation, {
|
|
27
|
+
errorPolicy: 'all',
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
const loginWithLoginCode = async (
|
|
31
|
+
variables: ILoginWithLoginCodeMutationVariables,
|
|
32
|
+
) => {
|
|
33
|
+
const result = await loginWithLoginCodeMutation({ variables });
|
|
34
|
+
if (result?.data?.loginWithLoginCode) {
|
|
35
|
+
await client.resetStore();
|
|
36
|
+
}
|
|
37
|
+
return result;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
return {
|
|
41
|
+
loginWithLoginCode,
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export default useLoginWithLoginCode;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
2
|
+
import { useMutation } from '@apollo/client/react';
|
|
3
|
+
import {
|
|
4
|
+
IRequestLoginCodeMutation,
|
|
5
|
+
IRequestLoginCodeMutationVariables,
|
|
6
|
+
} from '../../../gql/types';
|
|
7
|
+
|
|
8
|
+
const RequestLoginCodeMutation = gql`
|
|
9
|
+
mutation RequestLoginCode($email: String!) {
|
|
10
|
+
requestLoginCode(email: $email)
|
|
11
|
+
}
|
|
12
|
+
`;
|
|
13
|
+
|
|
14
|
+
const useRequestLoginCode = () => {
|
|
15
|
+
const [requestLoginCodeMutation] = useMutation<
|
|
16
|
+
IRequestLoginCodeMutation,
|
|
17
|
+
IRequestLoginCodeMutationVariables
|
|
18
|
+
>(RequestLoginCodeMutation);
|
|
19
|
+
|
|
20
|
+
const requestLoginCode = async ({
|
|
21
|
+
email,
|
|
22
|
+
}: IRequestLoginCodeMutationVariables) => {
|
|
23
|
+
return requestLoginCodeMutation({ variables: { email } });
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
return {
|
|
27
|
+
requestLoginCode,
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default useRequestLoginCode;
|
|
@@ -14,12 +14,14 @@ export { default as useForgotPassword } from './hooks/useForgotPassword';
|
|
|
14
14
|
export { default as useGenerateLoginCredentials } from './hooks/useGenerateLoginCredentials';
|
|
15
15
|
export { default as useGenerateWebAuthCredentials } from './hooks/useGenerateWebAuthCredentials';
|
|
16
16
|
export { default as useLoginWithPassword } from './hooks/useLoginWithPassword';
|
|
17
|
+
export { default as useLoginWithLoginCode } from './hooks/useLoginWithLoginCode';
|
|
17
18
|
export { default as useLoginWithWebAuthn } from './hooks/useLoginWithWebAuthn';
|
|
18
19
|
export { default as useLogoutAllSessions } from './hooks/useLogoutAllSessions';
|
|
19
20
|
export { default as useRemoveBookmark } from './hooks/useRemoveBookmark';
|
|
20
21
|
export { default as useRemoveEmail } from './hooks/useRemoveEmail';
|
|
21
22
|
export { default as useRemoveWeb3Address } from './hooks/useRemoveWeb3Address';
|
|
22
23
|
export { default as useRemoveWebAuthCredentials } from './hooks/useRemoveWebAuthCredentials';
|
|
24
|
+
export { default as useRequestLoginCode } from './hooks/useRequestLoginCode';
|
|
23
25
|
export { default as useResetPassword } from './hooks/useResetPassword';
|
|
24
26
|
export { default as useSendVerificationEmail } from './hooks/useSendVerificationEmail';
|
|
25
27
|
export { default as useSetPassword } from './hooks/useSetPassword';
|
|
@@ -12,8 +12,11 @@ const EnrollmentDetailFragment = gql`
|
|
|
12
12
|
status
|
|
13
13
|
created
|
|
14
14
|
expires
|
|
15
|
+
resumeAt
|
|
15
16
|
contractStartDate
|
|
16
17
|
minimumCommitmentEnd
|
|
18
|
+
cancellationReason
|
|
19
|
+
cancellationComment
|
|
17
20
|
billingAddress {
|
|
18
21
|
addressLine
|
|
19
22
|
addressLine2
|
|
@@ -39,7 +42,6 @@ const EnrollmentDetailFragment = gql`
|
|
|
39
42
|
delivery {
|
|
40
43
|
provider {
|
|
41
44
|
_id
|
|
42
|
-
configuration
|
|
43
45
|
configurationError
|
|
44
46
|
interface {
|
|
45
47
|
_id
|
|
@@ -60,7 +62,6 @@ const EnrollmentDetailFragment = gql`
|
|
|
60
62
|
payment {
|
|
61
63
|
provider {
|
|
62
64
|
_id
|
|
63
|
-
configuration
|
|
64
65
|
configurationError
|
|
65
66
|
interface {
|
|
66
67
|
_id
|
|
@@ -2,8 +2,8 @@ import { gql } from '@apollo/client';
|
|
|
2
2
|
import { useMutation } from '@apollo/client/react';
|
|
3
3
|
|
|
4
4
|
const SuspendEnrollmentMutation = gql`
|
|
5
|
-
mutation SuspendEnrollment($enrollmentId: ID
|
|
6
|
-
suspendEnrollment(enrollmentId: $enrollmentId) {
|
|
5
|
+
mutation SuspendEnrollment($enrollmentId: ID!, $resumeAt: DateTimeISO) {
|
|
6
|
+
suspendEnrollment(enrollmentId: $enrollmentId, resumeAt: $resumeAt) {
|
|
7
7
|
_id
|
|
8
8
|
}
|
|
9
9
|
}
|
|
@@ -14,11 +14,13 @@ const useSuspendEnrollment = () => {
|
|
|
14
14
|
|
|
15
15
|
const suspendEnrollment = async ({
|
|
16
16
|
enrollmentId,
|
|
17
|
+
resumeAt,
|
|
17
18
|
}: {
|
|
18
19
|
enrollmentId: string;
|
|
20
|
+
resumeAt?: string | null;
|
|
19
21
|
}) => {
|
|
20
22
|
return suspendEnrollmentMutation({
|
|
21
|
-
variables: { enrollmentId },
|
|
23
|
+
variables: { enrollmentId, resumeAt },
|
|
22
24
|
refetchQueries: ['Enrollments', 'Enrollment'],
|
|
23
25
|
});
|
|
24
26
|
};
|
|
@@ -6,9 +6,19 @@ import {
|
|
|
6
6
|
} from '../../../gql/types';
|
|
7
7
|
|
|
8
8
|
const TerminateEnrollmentMutation = gql`
|
|
9
|
-
mutation TerminateEnrollment(
|
|
10
|
-
|
|
9
|
+
mutation TerminateEnrollment(
|
|
10
|
+
$enrollmentId: ID!
|
|
11
|
+
$reason: EnrollmentTerminationReason
|
|
12
|
+
$comment: String
|
|
13
|
+
) {
|
|
14
|
+
terminateEnrollment(
|
|
15
|
+
enrollmentId: $enrollmentId
|
|
16
|
+
reason: $reason
|
|
17
|
+
comment: $comment
|
|
18
|
+
) {
|
|
11
19
|
_id
|
|
20
|
+
status
|
|
21
|
+
expires
|
|
12
22
|
}
|
|
13
23
|
}
|
|
14
24
|
`;
|
|
@@ -21,9 +31,11 @@ const useTerminateEnrollment = () => {
|
|
|
21
31
|
|
|
22
32
|
const terminateEnrollment = async ({
|
|
23
33
|
enrollmentId,
|
|
34
|
+
reason,
|
|
35
|
+
comment,
|
|
24
36
|
}: ITerminateEnrollmentMutationVariables) => {
|
|
25
37
|
return terminateEnrollmentMutation({
|
|
26
|
-
variables: { enrollmentId },
|
|
38
|
+
variables: { enrollmentId, reason, comment },
|
|
27
39
|
refetchQueries: ['Enrollments', 'Enrollment'],
|
|
28
40
|
});
|
|
29
41
|
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
2
|
+
import { useMutation } from '@apollo/client/react';
|
|
3
|
+
import {
|
|
4
|
+
IUpdateEnrollmentExpiresMutation,
|
|
5
|
+
IUpdateEnrollmentExpiresMutationVariables,
|
|
6
|
+
} from '../../../gql/types';
|
|
7
|
+
|
|
8
|
+
const UpdateEnrollmentExpiresMutation = gql`
|
|
9
|
+
mutation UpdateEnrollmentExpires($enrollmentId: ID!, $expires: DateTimeISO) {
|
|
10
|
+
updateEnrollment(enrollmentId: $enrollmentId, expires: $expires) {
|
|
11
|
+
_id
|
|
12
|
+
expires
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
16
|
+
|
|
17
|
+
const useUpdateEnrollmentExpires = () => {
|
|
18
|
+
const [updateEnrollmentExpiresMutation] = useMutation<
|
|
19
|
+
IUpdateEnrollmentExpiresMutation,
|
|
20
|
+
IUpdateEnrollmentExpiresMutationVariables
|
|
21
|
+
>(UpdateEnrollmentExpiresMutation);
|
|
22
|
+
|
|
23
|
+
const updateEnrollmentExpires = async ({
|
|
24
|
+
enrollmentId,
|
|
25
|
+
expires,
|
|
26
|
+
}: IUpdateEnrollmentExpiresMutationVariables) => {
|
|
27
|
+
return updateEnrollmentExpiresMutation({
|
|
28
|
+
variables: { enrollmentId, expires },
|
|
29
|
+
refetchQueries: ['Enrollments', 'Enrollment'],
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
return {
|
|
34
|
+
updateEnrollmentExpires,
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export default useUpdateEnrollmentExpires;
|
|
@@ -11,12 +11,14 @@ const ProductsCountQuery = gql`
|
|
|
11
11
|
$tags: [LowerCaseString!]
|
|
12
12
|
$slugs: [String!]
|
|
13
13
|
$includeDrafts: Boolean
|
|
14
|
+
$type: ProductType
|
|
14
15
|
) {
|
|
15
16
|
productsCount(
|
|
16
17
|
tags: $tags
|
|
17
18
|
slugs: $slugs
|
|
18
19
|
includeDrafts: $includeDrafts
|
|
19
20
|
queryString: $queryString
|
|
21
|
+
type: $type
|
|
20
22
|
)
|
|
21
23
|
}
|
|
22
24
|
`;
|
|
@@ -25,6 +27,7 @@ const useProductsCount = ({
|
|
|
25
27
|
queryString = '',
|
|
26
28
|
tags = null,
|
|
27
29
|
includeDrafts = true,
|
|
30
|
+
type = null,
|
|
28
31
|
}: IProductsCountQueryVariables) => {
|
|
29
32
|
const { data, loading, error } = useQuery<
|
|
30
33
|
IProductsCountQuery,
|
|
@@ -35,6 +38,7 @@ const useProductsCount = ({
|
|
|
35
38
|
queryString,
|
|
36
39
|
includeDrafts,
|
|
37
40
|
tags,
|
|
41
|
+
type,
|
|
38
42
|
},
|
|
39
43
|
});
|
|
40
44
|
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from '../../../gql/types';
|
|
7
7
|
import ProductDetailFragment from '../fragments/ProductDetailFragment';
|
|
8
8
|
import useCurrencies from '../../currency/hooks/useCurrencies';
|
|
9
|
-
import {
|
|
9
|
+
import { toPricingInput } from '../utils/price.utils';
|
|
10
10
|
|
|
11
11
|
const UpdateProductCommerceMutation = gql`
|
|
12
12
|
mutation UpdateProductCommerce(
|
|
@@ -31,22 +31,11 @@ const useUpdateProductCommerce = () => {
|
|
|
31
31
|
productId,
|
|
32
32
|
commerce: { pricing },
|
|
33
33
|
}: IUpdateProductCommerceMutationVariables) => {
|
|
34
|
-
const normalizedPricing = pricing.map((price) => {
|
|
35
|
-
const currency = currencies.find(
|
|
36
|
-
({ isoCode }) => isoCode === price.currencyCode,
|
|
37
|
-
);
|
|
38
|
-
const amount = toMinorUnit(price.amount.toString(), currency.decimals);
|
|
39
|
-
return {
|
|
40
|
-
...price,
|
|
41
|
-
amount,
|
|
42
|
-
};
|
|
43
|
-
});
|
|
44
|
-
|
|
45
34
|
return updateProductCommerceMutation({
|
|
46
35
|
variables: {
|
|
47
36
|
productId,
|
|
48
37
|
commerce: {
|
|
49
|
-
pricing:
|
|
38
|
+
pricing: toPricingInput(pricing, currencies),
|
|
50
39
|
},
|
|
51
40
|
},
|
|
52
41
|
refetchQueries: ['Products'],
|
|
@@ -27,7 +27,13 @@ const useUpdateProductTokenization = () => {
|
|
|
27
27
|
|
|
28
28
|
const updateProductTokenization = async ({
|
|
29
29
|
productId,
|
|
30
|
-
tokenization: {
|
|
30
|
+
tokenization: {
|
|
31
|
+
contractAddress,
|
|
32
|
+
contractStandard,
|
|
33
|
+
tokenId,
|
|
34
|
+
supply,
|
|
35
|
+
ercMetadataProperties,
|
|
36
|
+
},
|
|
31
37
|
}: IUpdateProductTokenizationMutationVariables) => {
|
|
32
38
|
return updateProductTokenizationMutation({
|
|
33
39
|
variables: {
|
|
@@ -37,6 +43,7 @@ const useUpdateProductTokenization = () => {
|
|
|
37
43
|
contractStandard,
|
|
38
44
|
tokenId,
|
|
39
45
|
supply: parseInt(supply as unknown as string, 10),
|
|
46
|
+
ercMetadataProperties,
|
|
40
47
|
},
|
|
41
48
|
},
|
|
42
49
|
refetchQueries: ['Product', 'Products'],
|
|
@@ -51,3 +51,6 @@ export { default as useUpdateProductWarehousing } from './hooks/useUpdateProduct
|
|
|
51
51
|
export { default as useUserTokens } from './hooks/useUserTokens';
|
|
52
52
|
export { default as ProductTextsForm } from './components/ProductTextsForm';
|
|
53
53
|
export { default as ProductMediaForm } from './components/ProductMediaForm';
|
|
54
|
+
export { default as CommerceForm } from './components/CommerceForm';
|
|
55
|
+
export { default as PricingFields } from './components/PricingFields';
|
|
56
|
+
export { toPricingFormValues, toPricingInput } from './utils/price.utils';
|
package/src/sdk/README.md
CHANGED
|
@@ -44,7 +44,7 @@ my-plugin/
|
|
|
44
44
|
"scripts": { "build": "tsup", "build:watch": "tsup --watch" },
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/react": "^19.0.0",
|
|
47
|
-
"@unchainedshop/admin-ui": "^5.0.0-alpha.
|
|
47
|
+
"@unchainedshop/admin-ui": "^5.0.0-alpha.14",
|
|
48
48
|
"esbuild": "^0.25.0",
|
|
49
49
|
"react": "^19.0.0",
|
|
50
50
|
"tsup": "^9.0.0"
|