@unchainedshop/admin-ui 4.8.29 → 5.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +136 -16
- package/dist/chunk-3L6EZQ6P.js +135 -0
- package/dist/chunk-5WPFHQZN.js +388 -0
- package/dist/chunk-AE5LOZGH.js +3350 -0
- package/dist/{chunk-JAVEZY3Q.js → chunk-AOR2B5N5.js} +14 -5
- package/dist/chunk-DTJ2DTKS.js +314 -0
- package/dist/{chunk-2RTX42IE.js → chunk-E7BVYJ3R.js} +2 -2
- package/dist/{chunk-XHOCXPD5.js → chunk-F6LBNV3H.js} +1 -1
- package/dist/chunk-FDHXLNZQ.js +44 -0
- package/dist/{chunk-MSPWYMDY.js → chunk-H6G4UTZ5.js} +83 -48
- package/dist/{chunk-XJBPMIC4.js → chunk-HERLM47Z.js} +81 -56
- package/dist/chunk-HTPSKUXQ.js +22476 -0
- package/dist/{chunk-7PPOGX7R.js → chunk-I64TXIE7.js} +48 -11
- package/dist/{chunk-QNLGYFV7.js → chunk-IYKPRAWC.js} +4 -0
- package/dist/chunk-J23QSWDL.js +8 -0
- package/dist/{chunk-SRAAKMWY.js → chunk-JED6SHHG.js} +4 -2
- package/dist/chunk-KRIRF7F6.js +76 -0
- package/dist/chunk-OTXM2UCD.js +19 -0
- package/dist/chunk-QHR23GVH.js +1099 -0
- package/dist/chunk-VBO377AY.js +14 -0
- package/dist/{chunk-4VNS5WPM.js → chunk-WPLOTFGW.js} +7 -8
- package/dist/components/ui/form/ChoicesField.d.ts.map +1 -1
- package/dist/components/ui/form/index.d.ts +1 -0
- package/dist/components/ui/form/index.d.ts.map +1 -1
- package/dist/components/ui/index.d.ts +5 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/form.js +1792 -27496
- package/dist/gql/operation-types.d.ts +20 -0
- package/dist/gql/operation-types.d.ts.map +1 -1
- package/dist/gql/schema-types.d.ts +1 -0
- package/dist/gql/schema-types.d.ts.map +1 -1
- package/dist/hooks.js +13 -6
- package/dist/modal.js +11 -78
- package/dist/modules/Auth/AuthContext.d.ts +9 -0
- package/dist/modules/Auth/AuthContext.d.ts.map +1 -0
- package/dist/modules/Auth/useAuth.d.ts +6 -0
- package/dist/modules/Auth/useAuth.d.ts.map +1 -0
- package/dist/modules/accounts.js +1 -1
- package/dist/modules/assortment.js +3 -3
- package/dist/modules/common/components/AppContext.d.ts.map +1 -1
- package/dist/modules/common/components/FormWrapper.d.ts.map +1 -1
- package/dist/modules/common/components/LocaleWrapper.d.ts +7 -0
- package/dist/modules/common/components/LocaleWrapper.d.ts.map +1 -0
- package/dist/modules/common/components/MediaAvatar.d.ts +6 -0
- package/dist/modules/common/components/MediaAvatar.d.ts.map +1 -0
- package/dist/modules/common/components/SelectOptions.d.ts +17 -0
- package/dist/modules/common/components/SelectOptions.d.ts.map +1 -0
- package/dist/modules/common/components/Table.d.ts +25 -0
- package/dist/modules/common/components/Table.d.ts.map +1 -0
- package/dist/modules/common/components/TableCell.d.ts +12 -0
- package/dist/modules/common/components/TableCell.d.ts.map +1 -0
- package/dist/modules/common/components/TableRow.d.ts +10 -0
- package/dist/modules/common/components/TableRow.d.ts.map +1 -0
- package/dist/modules/common/components/ThemeWrapper.d.ts.map +1 -1
- package/dist/modules/common/utils/sharedContext.d.ts +9 -0
- package/dist/modules/common/utils/sharedContext.d.ts.map +1 -0
- package/dist/modules/country.js +1 -1
- package/dist/modules/currency.js +1 -1
- package/dist/modules/delivery-provider.js +1 -1
- package/dist/modules/enrollment.js +1 -1
- package/dist/modules/event.js +1 -1
- package/dist/modules/filter.js +1 -1
- package/dist/modules/forms/lib/FormContext.d.ts.map +1 -1
- package/dist/modules/language.js +1 -1
- package/dist/modules/modal/hooks/useModal.d.ts.map +1 -1
- package/dist/modules/modal/utils/ModalContext.d.ts.map +1 -1
- package/dist/modules/order.js +1 -1
- package/dist/modules/payment-providers.js +1 -1
- package/dist/modules/product-review.js +3 -3
- package/dist/modules/product.js +4748 -7
- package/dist/modules/quotation.js +1 -1
- package/dist/modules/token.js +2 -2
- package/dist/modules/warehousing-providers.js +1 -1
- package/dist/modules/work.js +6 -10
- package/dist/plugins.js +1 -1
- package/dist/providers.js +8 -5
- package/dist/sdk/hooks.d.ts +3 -0
- package/dist/sdk/hooks.d.ts.map +1 -1
- package/dist/shims/admin-ui-plugins.js +1 -1
- package/dist/shims/apollo-client-react.js +1 -1
- package/dist/shims/apollo-client.js +1 -1
- package/dist/shims/next-head.js +1 -1
- package/dist/shims/next-image.js +1 -1
- package/dist/shims/next-link.js +1 -1
- package/dist/shims/next-router.js +1 -1
- package/dist/shims/react-dom-client.js +1 -1
- package/dist/shims/react-dom.js +1 -1
- package/dist/shims/react-hook-form.js +1 -1
- package/dist/shims/react-intl.js +1 -1
- package/dist/shims/react-jsx-runtime.js +1 -1
- package/dist/shims/react-toastify.js +1 -1
- package/dist/shims/react.js +1 -1
- package/dist/theme.js +1 -1
- package/dist/ui.js +3397 -3055
- 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/chunks/0-2b37ubdpy0o.js +7 -0
- package/out/_next/static/chunks/012cafv-4m7rj.js +807 -0
- package/out/_next/static/chunks/02dnhll1bce87.js +46 -0
- package/out/_next/static/chunks/02ptvddfjlsxb.js +1 -0
- package/out/_next/static/chunks/03ebenjfvoj8n.js +1 -0
- package/out/_next/static/chunks/03r347235l6c4.js +7 -0
- package/out/_next/static/chunks/05au-xyt__0f2.js +3 -0
- package/out/_next/static/chunks/05nn5xr3ufcsh.js +1 -0
- package/out/_next/static/chunks/05o_q7jg8wucs.js +44 -0
- package/out/_next/static/chunks/05scroolqe8fu.js +234 -0
- package/out/_next/static/chunks/072qxdqjtqvn9.js +11 -0
- package/out/_next/static/chunks/0752goe9_9g2s.js +110 -0
- package/out/_next/static/chunks/07e-sk6v9u-qh.js +807 -0
- package/out/_next/static/chunks/07evy5u8ldd1y.js +50 -0
- package/out/_next/static/chunks/083ylavob4a8d.js +3 -0
- package/out/_next/static/chunks/08jrw03_vxllg.js +54 -0
- package/out/_next/static/chunks/08pag0k09j2b3.js +807 -0
- package/out/_next/static/chunks/09n6h-_l73rez.js +13 -0
- package/out/_next/static/chunks/0_b5faks_mrvi.js +14 -0
- package/out/_next/static/chunks/0a_bg-ub3r2eo.js +60 -0
- package/out/_next/static/chunks/0aqxsjssb0dh9.js +21 -0
- package/out/_next/static/chunks/0aw4jxe6zcc0c.js +32 -0
- package/out/_next/static/chunks/0b0hrx3sbbs70.js +807 -0
- package/out/_next/static/chunks/0bg4_y1qh5y5h.js +47 -0
- package/out/_next/static/chunks/0bgz44wi1lidl.js +13 -0
- package/out/_next/static/chunks/0dcpvidzyamvk.js +100 -0
- package/out/_next/static/chunks/{19y4w6_d_qiou.js → 0dnh0kr83_tj0.js} +1 -1
- package/out/_next/static/chunks/0dxp17sbyy_dr.js +22 -0
- package/out/_next/static/chunks/0dxu94yin5gdn.js +35 -0
- package/out/_next/static/chunks/0e2c-jlh2q_eq.js +74 -0
- package/out/_next/static/chunks/0el7gr-83bm5j.js +3 -0
- package/out/_next/static/chunks/0f_ofo__wyqsp.js +22 -0
- package/out/_next/static/chunks/0gx9t6j5kx_ho.js +9 -0
- package/out/_next/static/chunks/0i9ymn9xxs0nx.js +18 -0
- package/out/_next/static/chunks/0iy11ws57hzzr.js +99 -0
- package/out/_next/static/chunks/0j8_uikfyrn1f.js +1 -0
- package/out/_next/static/chunks/0jeddko6bac8h.js +1 -0
- package/out/_next/static/chunks/0jzx7vxh13cpi.js +15 -0
- package/out/_next/static/chunks/0kody3217__os.js +16 -0
- package/out/_next/static/chunks/0kwo-m1-mo-s-.js +31 -0
- package/out/_next/static/chunks/0lp_pnq1t06sl.js +104 -0
- package/out/_next/static/chunks/0mez27zlo26ni.js +103 -0
- package/out/_next/static/chunks/0nj8vn3509oe-.js +9 -0
- package/out/_next/static/chunks/0np9pcbt6dmxe.js +25 -0
- package/out/_next/static/chunks/0o7k5vanq57ch.js +807 -0
- package/out/_next/static/chunks/0rqjr_lmrk4pz.js +5 -0
- package/out/_next/static/chunks/0swe0fkt4vyzn.js +136 -0
- package/out/_next/static/chunks/0u4st428hgv1v.js +27 -0
- package/out/_next/static/chunks/0u7--d8_-qyne.js +83 -0
- package/out/_next/static/chunks/0ubzi2s1spm4e.js +342 -0
- package/out/_next/static/chunks/0uecw_5mn0zvr.js +110 -0
- package/out/_next/static/chunks/0uxwblyj0htyb.js +1 -0
- package/out/_next/static/chunks/0uyhr7vs9ltp0.js +141 -0
- package/out/_next/static/chunks/0vr19nswhvt2-.js +14 -0
- package/out/_next/static/chunks/0vyvc19p87f_r.js +234 -0
- package/out/_next/static/chunks/0wznlnzc2xsbz.js +16 -0
- package/out/_next/static/chunks/0ycu-q8fcc8ta.js +1 -0
- package/out/_next/static/chunks/0ytserk6fuf71.js +175 -0
- package/out/_next/static/chunks/0zoum0jzrtu0s.js +145 -0
- package/out/_next/static/chunks/1-6s62fsl_z_7.js +126 -0
- package/out/_next/static/chunks/10b6et0qn-pa0.js +59 -0
- package/out/_next/static/chunks/13m7st62a61df.js +25 -0
- package/out/_next/static/chunks/13u_a5l2xngm4.js +1 -0
- package/out/_next/static/chunks/15vz50rks0o2-.js +238 -0
- package/out/_next/static/chunks/1647yxi4ymq0z.js +14 -0
- package/out/_next/static/chunks/16hd7xvkocqxs.js +807 -0
- package/out/_next/static/chunks/16t18hhd4ax36.js +2 -0
- package/out/_next/static/chunks/17wle25pg9jkp.js +11 -0
- package/out/_next/static/chunks/18juy_eauk94g.js +58 -0
- package/out/_next/static/chunks/19eflki8bmivb.js +81 -0
- package/out/_next/static/chunks/19eu5d-wm2hfr.js +23 -0
- package/out/_next/static/chunks/19izcjxrrapb3.js +9 -0
- package/out/_next/static/chunks/1_jbj-c1d2606.js +21 -0
- package/out/_next/static/chunks/1_pwqdjxb6oou.js +226 -0
- package/out/_next/static/chunks/1bftmuhck_-7b.js +1 -0
- package/out/_next/static/chunks/1bww_2og01jxh.js +807 -0
- package/out/_next/static/chunks/1c0cemuv_tf6i.js +16 -0
- package/out/_next/static/chunks/1c4a2qxtb3r4_.js +16 -0
- package/out/_next/static/chunks/1cjd95y23a9qx.js +1 -0
- package/out/_next/static/chunks/1cy-2yb5j5_9b.js +157 -0
- package/out/_next/static/chunks/1dkv555kaccbl.js +13 -0
- package/out/_next/static/chunks/1dt9_bzfioi8a.js +24 -0
- package/out/_next/static/chunks/1fd7ewfb7bi_g.js +234 -0
- package/out/_next/static/chunks/1gncrqljnmqjn.js +43 -0
- package/out/_next/static/chunks/1iewktf-9h_n8.js +15 -0
- package/out/_next/static/chunks/1l7p7exnzd0c2.js +12 -0
- package/out/_next/static/chunks/1nqu3ymv6lgev.js +3 -0
- package/out/_next/static/chunks/1o_8g-kpuqi9h.js +1 -0
- package/out/_next/static/chunks/1oent0-9-0rgb.js +20 -0
- package/out/_next/static/chunks/1og09fg689_nc.js +180 -0
- package/out/_next/static/chunks/1pj279k5ntty3.js +13 -0
- package/out/_next/static/chunks/1q_sewe1wbxsk.js +54 -0
- package/out/_next/static/chunks/1qvs4gd4rbhb2.js +15 -0
- package/out/_next/static/chunks/1rtv3c_klo0jk.js +1 -0
- package/out/_next/static/chunks/1sdqr2_r6o46f.js +16 -0
- package/out/_next/static/chunks/1vti949e9wuhz.js +15 -0
- package/out/_next/static/chunks/1x-yucftdml28.js +1 -0
- package/out/_next/static/chunks/1ylgjha1c0ua_.js +124 -0
- package/out/_next/static/chunks/1yp98n-n4gxwy.js +15 -0
- package/out/_next/static/chunks/1zcm_9oew7412.js +14 -0
- package/out/_next/static/chunks/2-e0d1qpp7rk9.js +14 -0
- package/out/_next/static/chunks/20ubrczdsehfm.js +879 -0
- package/out/_next/static/chunks/23m--gc-gjenm.js +3 -0
- package/out/_next/static/chunks/24-pobk4qjjvp.js +3 -0
- package/out/_next/static/chunks/24jptulqn322i.js +15 -0
- package/out/_next/static/chunks/24jyi7e2pq4gy.js +15 -0
- package/out/_next/static/chunks/26eux546aoag5.js +58 -0
- package/out/_next/static/chunks/270ua9t85a7ev.js +5 -0
- package/out/_next/static/chunks/28r_j2kquxrjn.js +807 -0
- package/out/_next/static/chunks/2_ccruvok3u8j.js +16 -0
- package/out/_next/static/chunks/2_ojfjgg8do9t.js +1 -0
- package/out/_next/static/chunks/2aj5aq_c0b4r_.js +13 -0
- package/out/_next/static/chunks/2ba3n9zx9e9q9.js +807 -0
- package/out/_next/static/chunks/2d-hxb31pgpn7.js +13 -0
- package/out/_next/static/chunks/2df2cqwidgpan.js +15 -0
- package/out/_next/static/chunks/2djnsowjy3p8y.js +1 -0
- package/out/_next/static/chunks/2dyj8q92_k5el.js +708 -0
- package/out/_next/static/chunks/2e0k9dt1emjfm.js +1 -0
- package/out/_next/static/chunks/2e3gba1n-yyuj.js +15 -0
- package/out/_next/static/chunks/2e_p1vqr0g_-_.js +7 -0
- package/out/_next/static/chunks/2e_te6sbs_5uw.js +1 -0
- package/out/_next/static/chunks/2f16josk9b_cl.js +8 -0
- package/out/_next/static/chunks/2fo2ki1egxbah.js +39 -0
- package/out/_next/static/chunks/2g8gzs8wpsofk.js +2 -0
- package/out/_next/static/chunks/2gh355-kh19zx.js +13 -0
- package/out/_next/static/chunks/2gr4t5xe0atdr.js +15 -0
- package/out/_next/static/chunks/2ib6fee-nqe-z.js +23 -0
- package/out/_next/static/chunks/2kjux30i3gg-c.js +5 -0
- package/out/_next/static/chunks/2ll_mqee86g8c.js +1 -0
- package/out/_next/static/chunks/2lx_iig9xewfj.js +52 -0
- package/out/_next/static/chunks/2lylr4-3tu1_t.js +15 -0
- package/out/_next/static/chunks/2n1v8ph2nt43w.js +17 -0
- package/out/_next/static/chunks/2o9hdz0gk1-s7.js +165 -0
- package/out/_next/static/chunks/2oadogfqpak51.js +1 -0
- package/out/_next/static/chunks/2oogwntgnu9rf.js +17 -0
- package/out/_next/static/chunks/2p4e3kh8sa8iq.js +13 -0
- package/out/_next/static/chunks/2q-mpau-4gsvd.js +1 -0
- package/out/_next/static/chunks/2rddaar-ns45d.js +116 -0
- package/out/_next/static/chunks/2s3qhuh87mu_w.js +126 -0
- package/out/_next/static/chunks/2s6u8274_jzk2.js +105 -0
- package/out/_next/static/chunks/2skfzjx2g9hkk.js +134 -0
- package/out/_next/static/chunks/2u6jwsqz0uhes.js +24 -0
- package/out/_next/static/chunks/2v4k4vpb2id7m.js +44 -0
- package/out/_next/static/chunks/2xctb084h1lyg.js +329 -0
- package/out/_next/static/chunks/2xgpwzpd6-tdb.js +234 -0
- package/out/_next/static/chunks/3-soz24u9483h.js +15 -0
- package/out/_next/static/chunks/30_ns6urg1dkn.js +41 -0
- package/out/_next/static/chunks/30nxkqu5mcga3.js +1 -0
- package/out/_next/static/chunks/{0gurfn3nhm859.js → 313i1x81q2xj1.js} +1 -1
- package/out/_next/static/chunks/31qwglme02a_r.js +807 -0
- package/out/_next/static/chunks/31sk60zzj3bc5.js +17 -0
- package/out/_next/static/chunks/325a7n__tfxy_.js +61 -0
- package/out/_next/static/chunks/33emlry70k-lv.js +2 -0
- package/out/_next/static/chunks/33v8la4hkia7j.js +1 -0
- package/out/_next/static/chunks/34ar-34flu6bu.js +43 -0
- package/out/_next/static/chunks/34z48lfdm9u0l.js +9 -0
- package/out/_next/static/chunks/351jscvbk_wb9.js +13 -0
- package/out/_next/static/chunks/357odtev0t245.js +59 -0
- package/out/_next/static/chunks/360g4b1clnt45.js +142 -0
- package/out/_next/static/chunks/360uyru28azf6.js +20 -0
- package/out/_next/static/chunks/366apf6d0xh2u.js +30 -0
- package/out/_next/static/chunks/36_zbuqpk5cpj.js +14 -0
- package/out/_next/static/chunks/36aqs7u7s-lb1.js +119 -0
- package/out/_next/static/chunks/36beon3q8orx2.js +1 -0
- package/out/_next/static/chunks/37703j9_zf5_h.js +13 -0
- package/out/_next/static/chunks/37rwzuocwsv_k.js +16 -0
- package/out/_next/static/chunks/37w6b3h04uc4c.js +19 -0
- package/out/_next/static/chunks/38ffn8gazqz8_.js +3 -0
- package/out/_next/static/chunks/38xse6_r51yqp.js +234 -0
- package/out/_next/static/chunks/39s8xbnm9f08v.js +14 -0
- package/out/_next/static/chunks/39x-p8r_sl0ng.js +15 -0
- package/out/_next/static/chunks/39zisxvmik0t_.js +34 -0
- package/out/_next/static/chunks/3_97tge0xvvon.js +11 -0
- package/out/_next/static/chunks/3aw-ri7876ngd.js +39 -0
- package/out/_next/static/chunks/3bv7gi3o6-41h.js +11 -0
- package/out/_next/static/chunks/3cdfuacs4_0d-.js +1 -0
- package/out/_next/static/chunks/3cxpx38ycu7u2.js +9 -0
- package/out/_next/static/chunks/3d1ofcqmlbg-5.js +52 -0
- package/out/_next/static/chunks/3e3i3qqkv_my7.js +15 -0
- package/out/_next/static/chunks/3ex71q3pp_ekc.js +247 -0
- package/out/_next/static/chunks/3g1lpkudwo8kg.js +1 -0
- package/out/_next/static/chunks/3h68t22714to5.js +3 -0
- package/out/_next/static/chunks/3jpzhwqgdnobq.js +103 -0
- package/out/_next/static/chunks/3jxuqt_2-j_uc.js +18 -0
- package/out/_next/static/chunks/3kqqv33l7ssn0.js +16 -0
- package/out/_next/static/chunks/3l-9xxd1i1sya.js +1 -0
- package/out/_next/static/chunks/3mancxzz8c7hl.js +51 -0
- package/out/_next/static/chunks/3mq2s9rfy78je.js +27 -0
- package/out/_next/static/chunks/3om1fkw-lrmng.js +1 -0
- package/out/_next/static/chunks/3oynij37wfjb2.js +119 -0
- package/out/_next/static/chunks/3pbyo5kkko3wh.js +1 -0
- package/out/_next/static/chunks/3pjja1obml896.js +15 -0
- package/out/_next/static/chunks/3qaiz-jwi7q2x.js +1 -0
- package/out/_next/static/chunks/3rh3nigvg06yu.js +337 -0
- package/out/_next/static/chunks/3rppjab6j3_k9.js +1 -0
- package/out/_next/static/chunks/3t_3vlnk1ntkb.js +95 -0
- package/out/_next/static/chunks/3tpo2ho54vtth.js +807 -0
- package/out/_next/static/chunks/3tqspv0ggt8j0.js +17 -0
- package/out/_next/static/chunks/3um54w4ca27n_.js +17 -0
- package/out/_next/static/chunks/3vet2a9q9rf2c.js +61 -0
- package/out/_next/static/chunks/3vjgbl76cgrmt.js +1 -0
- package/out/_next/static/chunks/3vz3gqmojh7sx.js +4 -0
- package/out/_next/static/chunks/3w2e5xa061qou.js +9 -0
- package/out/_next/static/chunks/3w9xrlkiztuwi.js +23 -0
- package/out/_next/static/chunks/3x4xfy_av3o0d.js +1 -0
- package/out/_next/static/chunks/3x9k13s5fam4j.js +22 -0
- package/out/_next/static/chunks/{3a7wm2331v13r.js → 3xmtbqm0gddn8.js} +3 -3
- package/out/_next/static/chunks/3z5uyt9mc9_fd.js +2 -0
- package/out/_next/static/chunks/3zlwp96x3hoy9.js +16 -0
- package/out/_next/static/chunks/3zr_sumh1g7il.js +22 -0
- package/out/_next/static/chunks/40jl8yfmy6tp6.js +234 -0
- package/out/_next/static/chunks/40xhwnc_48o73.js +297 -0
- package/out/_next/static/chunks/41-iysd7qkyg1.js +16 -0
- package/out/_next/static/chunks/4105a9rejv_p4.js +1 -0
- package/out/_next/static/chunks/41e2wlkp9_pvk.js +28 -0
- package/out/_next/static/chunks/41g7mv3yuhz6k.js +68 -0
- package/out/_next/static/chunks/43jyzccx6x0lw.js +1 -0
- package/out/_next/static/chunks/43vuxh3wdo567.js +10 -0
- package/out/_next/static/chunks/44daaafswok67.css +1 -0
- package/out/_next/static/chunks/452fv7r-tie6t.js +1 -0
- package/out/_next/static/chunks/{164wr2-2gfnlb.js → 457j51b69odrw.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3pgmc-lv74ewz.js → turbopack-02vysfmmbped5.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1o1rar8ouv6h9.js → turbopack-03fj2scz_09ul.js} +1 -1
- package/out/_next/static/chunks/turbopack-07wtduwtfqsl_.js +1 -0
- package/out/_next/static/chunks/turbopack-0_zihh5ueb_wj.js +1 -0
- package/out/_next/static/chunks/{turbopack-2yekm5ij2g-aw.js → turbopack-0b8-ww_z1vgvn.js} +1 -1
- package/out/_next/static/chunks/{turbopack-431y1sh-m_0mp.js → turbopack-0beql_u-wc_3e.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3_mmmbs60vr14.js → turbopack-0dxdn-gyy3_qj.js} +1 -1
- package/out/_next/static/chunks/turbopack-0hqw81t-42tbj.js +1 -0
- package/out/_next/static/chunks/turbopack-0jsdrr-oq87lm.js +1 -0
- package/out/_next/static/chunks/turbopack-0jxa33q3ikjqg.js +1 -0
- package/out/_next/static/chunks/turbopack-0k9zths9zte_8.js +1 -0
- package/out/_next/static/chunks/turbopack-0pa42wgwsv141.js +1 -0
- package/out/_next/static/chunks/{turbopack-19vr9o5829d-f.js → turbopack-0te09_mp07k1x.js} +1 -1
- package/out/_next/static/chunks/turbopack-0xsxl45thi-35.js +1 -0
- package/out/_next/static/chunks/{turbopack-2fuk9oepxr5n0.js → turbopack-10-8q-q2zomxa.js} +1 -1
- package/out/_next/static/chunks/turbopack-142w-8owzbg7_.js +1 -0
- package/out/_next/static/chunks/{turbopack-23u97wxsuqiqb.js → turbopack-18tezl3vagvil.js} +1 -1
- package/out/_next/static/chunks/turbopack-1_1a-_v7vml72.js +1 -0
- package/out/_next/static/chunks/{turbopack-1zn9gl4fpayoc.js → turbopack-1_k-7s9lmntml.js} +1 -1
- package/out/_next/static/chunks/turbopack-1a47di2tss4e-.js +1 -0
- package/out/_next/static/chunks/turbopack-1c60gn7g-uduw.js +1 -0
- package/out/_next/static/chunks/turbopack-1e1yk3pkaodr5.js +1 -0
- package/out/_next/static/chunks/{turbopack-3v4nxmdavly34.js → turbopack-1jtk1c9w2axlk.js} +1 -1
- package/out/_next/static/chunks/turbopack-1k2ukl9u-7ovo.js +1 -0
- package/out/_next/static/chunks/{turbopack-39nctu3yv9iv4.js → turbopack-1lkz81ntcp1zv.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2dk8ur1fvwxzj.js → turbopack-1pkw_r5dvv20d.js} +1 -1
- package/out/_next/static/chunks/turbopack-1pu2s2k3szn0s.js +1 -0
- package/out/_next/static/chunks/turbopack-1rxz_6lqtls5b.js +1 -0
- package/out/_next/static/chunks/turbopack-1uf07pugrv1fy.js +1 -0
- package/out/_next/static/chunks/turbopack-1uobzdn2r7ebw.js +1 -0
- package/out/_next/static/chunks/{turbopack-1od_4a7nj02l4.js → turbopack-1wv610ktbtzka.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3w26eu86co02z.js → turbopack-1wz4te1fj20zp.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0s4b5r_1d8yqv.js → turbopack-1zi2ss8eiiyfx.js} +1 -1
- package/out/_next/static/chunks/turbopack-207p7bsc5wea7.js +1 -0
- package/out/_next/static/chunks/{turbopack-2ga09m38zacev.js → turbopack-21zngkzhonfcm.js} +1 -1
- package/out/_next/static/chunks/turbopack-23y20ll8n-nwk.js +1 -0
- package/out/_next/static/chunks/{turbopack-19e_bi5k2rqyy.js → turbopack-26wtylwa4_s95.js} +1 -1
- package/out/_next/static/chunks/turbopack-27l7xplqpifq6.js +1 -0
- package/out/_next/static/chunks/turbopack-285oyoobdo21x.js +1 -0
- package/out/_next/static/chunks/turbopack-28b0zyhf3uqaq.js +1 -0
- package/out/_next/static/chunks/{turbopack-0ga3wfg-oyyst.js → turbopack-28m_9eg3draop.js} +1 -1
- package/out/_next/static/chunks/{turbopack-23nr2ioaqw90j.js → turbopack-29h9fgcal-fng.js} +1 -1
- package/out/_next/static/chunks/turbopack-2a84kh6nmf_78.js +1 -0
- package/out/_next/static/chunks/turbopack-2b73dx1bsdg5f.js +1 -0
- package/out/_next/static/chunks/{turbopack-2u_328z53ed9p.js → turbopack-2bslf96g-y1vv.js} +1 -1
- package/out/_next/static/chunks/turbopack-2d-2wg8-_f9-v.js +1 -0
- package/out/_next/static/chunks/{turbopack-30qkgccwlkv7n.js → turbopack-2ez-mfb63qve0.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0m3lvbvrn923g.js → turbopack-2g7u83j1wlswz.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3uj40sz7i7jg0.js → turbopack-2m4gns1_64-7_.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0anbjm4c1j4u4.js → turbopack-2n4ba44aafc4x.js} +1 -1
- package/out/_next/static/chunks/turbopack-2t3zb47_j-ahd.js +1 -0
- package/out/_next/static/chunks/{turbopack-2rz_y4ejrvafp.js → turbopack-2tf6rdek5zvm6.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0a3j0ezn8okfg.js → turbopack-2vb0p2htqo4nd.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0sihqflu4qpvw.js → turbopack-30-bi-9_7jd01.js} +1 -1
- package/out/_next/static/chunks/turbopack-32pjcar5xpn1o.js +1 -0
- package/out/_next/static/chunks/{turbopack-3cv3hgsoo_z1k.js → turbopack-3a3skasosq9-4.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0w2rzh4i3j2og.js → turbopack-3d2rk8-5wcgrs.js} +1 -1
- package/out/_next/static/chunks/{turbopack-4166pmk5_y_4x.js → turbopack-3i91g2le3tkne.js} +1 -1
- package/out/_next/static/chunks/turbopack-3j4bdo8-ldea5.js +1 -0
- package/out/_next/static/chunks/{turbopack-2qbfd_-7v5dbo.js → turbopack-3m47jybfw85nc.js} +1 -1
- package/out/_next/static/chunks/{turbopack-24ylsu2au7hg1.js → turbopack-3yfksvslbm14s.js} +1 -1
- package/out/_next/static/chunks/{turbopack-21vayl2_q4r5u.js → turbopack-414roft8p92hp.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1r_0o22d_puxo.js → turbopack-424slv1lqxh_5.js} +1 -1
- package/out/_next/static/chunks/turbopack-444yt6auyioxn.js +1 -0
- package/out/_next/static/{4-xf4wPkZc5rcBq3jUTDg → z5KrmhOz2mLscINN5EbUf}/_buildManifest.js +66 -62
- 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/ext/[[...slug]]/index.html +11 -0
- 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 +130 -26
- package/src/modules/accounts/index.ts +34 -0
- package/src/modules/assortment/index.ts +29 -0
- package/src/modules/copilot/index.ts +4 -0
- package/src/modules/country/index.ts +5 -0
- package/src/modules/currency/index.ts +5 -0
- package/src/modules/delivery-provider/index.ts +7 -0
- package/src/modules/enrollment/index.ts +6 -0
- package/src/modules/event/index.ts +3 -0
- package/src/modules/filter/index.ts +13 -0
- package/src/modules/language/index.ts +5 -0
- package/src/modules/order/index.ts +8 -0
- package/src/modules/payment-providers/index.ts +7 -0
- package/src/modules/product/index.ts +49 -0
- package/src/modules/product-review/index.ts +6 -0
- package/src/modules/quotation/index.ts +6 -0
- package/src/modules/token/index.ts +3 -0
- package/src/modules/warehousing-providers/index.ts +7 -0
- package/src/modules/work/index.ts +7 -0
- package/src/sdk/README.md +226 -0
- package/src/sdk/form-entry.test.mjs +11 -0
- package/src/sdk/hooks.ts +15 -0
- package/src/sdk/modal.ts +6 -0
- package/src/sdk/plugin-build.mjs +97 -0
- package/src/sdk/plugin-build.test.mjs +46 -0
- package/src/sdk/plugin-runtime.cjs +66 -0
- package/src/sdk/plugin-runtime.d.mts +11 -0
- package/src/sdk/plugin-runtime.mjs +27 -0
- package/src/sdk/plugin-runtime.test.mjs +32 -0
- package/src/sdk/plugins.mjs +17 -0
- package/src/sdk/plugins.ts +105 -0
- package/src/sdk/providers.ts +4 -0
- package/src/sdk/shared-context.test.mjs +40 -0
- package/src/sdk/shims/admin-ui-plugins.ts +3 -0
- package/src/sdk/shims/apollo-client-react.ts +3 -0
- package/src/sdk/shims/apollo-client.ts +3 -0
- package/src/sdk/shims/host.ts +61 -0
- package/src/sdk/shims/next-head.ts +3 -0
- package/src/sdk/shims/next-image.ts +3 -0
- package/src/sdk/shims/next-link.ts +3 -0
- package/src/sdk/shims/next-router.ts +3 -0
- package/src/sdk/shims/react-dom-client.ts +3 -0
- package/src/sdk/shims/react-dom.ts +3 -0
- package/src/sdk/shims/react-hook-form.ts +3 -0
- package/src/sdk/shims/react-intl.ts +3 -0
- package/src/sdk/shims/react-jsx-runtime.ts +3 -0
- package/src/sdk/shims/react-toastify.ts +3 -0
- package/src/sdk/shims/react.ts +3 -0
- package/src/sdk/tailwind-preset.mjs +94 -0
- package/src/sdk/theme.ts +61 -0
- package/src/styles/globals.css +291 -0
- package/dist/chunk-F2TCVEQX.js +0 -514
- package/dist/chunk-KCN7DDPH.js +0 -1116
- package/dist/chunk-RORNAN2J.js +0 -12
- package/dist/chunk-RVG6IOFC.js +0 -11
- package/dist/chunk-YZGQJJCD.js +0 -37
- package/out/_next/static/chunks/0-mytn4v5bu5h.js +0 -12
- package/out/_next/static/chunks/0-uh133eqcz6n.js +0 -60
- package/out/_next/static/chunks/0060t3kg_i0lf.js +0 -10
- package/out/_next/static/chunks/0186bg0b60cid.js +0 -13
- package/out/_next/static/chunks/018n9pot9f5uf.js +0 -90
- package/out/_next/static/chunks/01h4ept18s-ns.js +0 -807
- package/out/_next/static/chunks/02cdoh48sex9m.js +0 -1
- package/out/_next/static/chunks/03-z1yl608b56.js +0 -807
- package/out/_next/static/chunks/030bzkeke0edz.js +0 -7
- package/out/_next/static/chunks/037vsiy28s6dg.js +0 -41
- package/out/_next/static/chunks/049clkw76lm67.js +0 -16
- package/out/_next/static/chunks/04bb4k67x398t.js +0 -1
- package/out/_next/static/chunks/057evs7qr5y-t.js +0 -17
- package/out/_next/static/chunks/05qpw6q8uiz3l.js +0 -15
- package/out/_next/static/chunks/062myzj-2ehu-.js +0 -52
- package/out/_next/static/chunks/06l-rqlf4bp81.js +0 -108
- package/out/_next/static/chunks/06tejx8u1_0kg.js +0 -1
- package/out/_next/static/chunks/07nffhr51vke6.js +0 -59
- package/out/_next/static/chunks/08tyybz20igty.js +0 -15
- package/out/_next/static/chunks/0989pcuje2j55.js +0 -66
- package/out/_next/static/chunks/0_02skyivjqh6.js +0 -14
- package/out/_next/static/chunks/0_ngi84ak813x.js +0 -288
- package/out/_next/static/chunks/0bc02hascgv7z.js +0 -1
- package/out/_next/static/chunks/0c9ruqj2wf3n6.js +0 -905
- package/out/_next/static/chunks/0cblqqpscyy7w.js +0 -12
- package/out/_next/static/chunks/0cotrfgh1n2cx.js +0 -346
- package/out/_next/static/chunks/0d6_opzy2p6ik.js +0 -807
- package/out/_next/static/chunks/0e2e0srgvkzk9.js +0 -144
- package/out/_next/static/chunks/0g6hr3dmen536.js +0 -7
- package/out/_next/static/chunks/0ht2wu-61vq9v.js +0 -807
- package/out/_next/static/chunks/0ibp5q64hnd88.js +0 -18
- package/out/_next/static/chunks/0ichlp5c67dko.js +0 -12
- package/out/_next/static/chunks/0iui_zfuxfa45.js +0 -12
- package/out/_next/static/chunks/0k6z6zl_zxqp7.js +0 -13
- package/out/_next/static/chunks/0kkky_8vhaeaz.js +0 -227
- package/out/_next/static/chunks/0lutmpv07icdg.js +0 -8
- package/out/_next/static/chunks/0mzh9-epgepi1.js +0 -119
- package/out/_next/static/chunks/0n0uzfbkfb7e5.js +0 -12
- package/out/_next/static/chunks/0nhczsa2mm354.js +0 -16
- package/out/_next/static/chunks/0pecsk3c09b19.js +0 -3
- package/out/_next/static/chunks/0prynyrvhm7ef.js +0 -2
- package/out/_next/static/chunks/0q-14a7j6afh3.js +0 -1
- package/out/_next/static/chunks/0razrbxeai797.js +0 -807
- package/out/_next/static/chunks/0ryqvctymlr3k.js +0 -12
- package/out/_next/static/chunks/0se09klbk8drd.js +0 -68
- package/out/_next/static/chunks/0sh5256hzmj3b.js +0 -14
- package/out/_next/static/chunks/0srpqs12m-bwy.js +0 -13
- package/out/_next/static/chunks/0ukyxgmnqos6o.js +0 -1
- package/out/_next/static/chunks/0uv4d5f9o8wu1.js +0 -10
- package/out/_next/static/chunks/0vls1lbu_rh78.js +0 -342
- package/out/_next/static/chunks/0vx_1vxljh4tn.js +0 -13
- package/out/_next/static/chunks/0vxe9bw7ffqy2.js +0 -15
- package/out/_next/static/chunks/0w0zigi7aws2m.js +0 -1
- package/out/_next/static/chunks/0w2zoz_fn_wha.js +0 -137
- package/out/_next/static/chunks/0xuevvy5i5d12.js +0 -138
- package/out/_next/static/chunks/0xxvsq70e4xn0.js +0 -1
- package/out/_next/static/chunks/0yxc1yy1eq4u3.js +0 -149
- package/out/_next/static/chunks/1-uz_5-063kh9.js +0 -188
- package/out/_next/static/chunks/10h7lznd10mmp.js +0 -384
- package/out/_next/static/chunks/10os1s66nimmi.js +0 -110
- package/out/_next/static/chunks/12_5-baf13q49.js +0 -195
- package/out/_next/static/chunks/12qzh85d5on4y.js +0 -44
- package/out/_next/static/chunks/12ukdi5bzlbeo.js +0 -596
- package/out/_next/static/chunks/1398hevtpl_69.js +0 -1
- package/out/_next/static/chunks/13qk8ukzu1snm.js +0 -288
- package/out/_next/static/chunks/16ey81skn09dz.js +0 -1
- package/out/_next/static/chunks/18kae_yjyhjwf.js +0 -16
- package/out/_next/static/chunks/1_quktgfhf40v.js +0 -31
- package/out/_next/static/chunks/1aegvtb5jv57q.js +0 -12
- package/out/_next/static/chunks/1cgxgd2cf8u3j.js +0 -157
- package/out/_next/static/chunks/1cp4-dvxowp4c.js +0 -24
- package/out/_next/static/chunks/1d951b6ed8oqn.js +0 -110
- package/out/_next/static/chunks/1d_puhcn8lg6q.js +0 -51
- package/out/_next/static/chunks/1drrou5kp4qdz.js +0 -1
- package/out/_next/static/chunks/1e4_28-3u5o85.js +0 -30
- package/out/_next/static/chunks/1f3mflnvp8_7-.js +0 -31
- package/out/_next/static/chunks/1f5-j4f3irx0j.js +0 -147
- package/out/_next/static/chunks/1fzbon-ih4_3j.js +0 -1
- package/out/_next/static/chunks/1g57y7cq7tjcb.js +0 -9
- package/out/_next/static/chunks/1g8f6jrb9cp9v.js +0 -13
- package/out/_next/static/chunks/1gksg35fivk0-.js +0 -224
- package/out/_next/static/chunks/1gy9ae4fpd6jm.js +0 -17
- package/out/_next/static/chunks/1hq9yt63076pk.js +0 -16
- package/out/_next/static/chunks/1ikm9qcx--k3u.js +0 -807
- package/out/_next/static/chunks/1izpxynqp99t4.js +0 -193
- package/out/_next/static/chunks/1j2ko85jp-5wy.js +0 -807
- package/out/_next/static/chunks/1k-cn_5ey1u62.js +0 -15
- package/out/_next/static/chunks/1k0mvn915uz76.js +0 -14
- package/out/_next/static/chunks/1l4snbkce_jb6.js +0 -15
- package/out/_next/static/chunks/1lbsdlf5h6ojc.js +0 -16
- package/out/_next/static/chunks/1mwvnv71bl7mc.js +0 -1
- package/out/_next/static/chunks/1n7i2rp59o9o8.js +0 -384
- package/out/_next/static/chunks/1pklei2ds10d2.js +0 -66
- package/out/_next/static/chunks/1pxor-3_vf3du.js +0 -31
- package/out/_next/static/chunks/1qp68765j1aiv.js +0 -61
- package/out/_next/static/chunks/1r-cvj3mpr-7x.js +0 -87
- package/out/_next/static/chunks/1sivy8bkkmwxl.js +0 -5
- package/out/_next/static/chunks/1vk6h4qps69vq.js +0 -12
- package/out/_next/static/chunks/1vx8_u7-f7q8u.js +0 -28
- package/out/_next/static/chunks/1weq9keqxiqpy.js +0 -73
- package/out/_next/static/chunks/1wvicoevgxhkk.js +0 -14
- package/out/_next/static/chunks/1ziicn0eb_yji.js +0 -16
- package/out/_next/static/chunks/1zza9faw4t3b_.js +0 -46
- package/out/_next/static/chunks/1zzpf1xbmchcj.js +0 -132
- package/out/_next/static/chunks/2-4ng9fxftmld.js +0 -1
- package/out/_next/static/chunks/201rx84kyo8ag.js +0 -1
- package/out/_next/static/chunks/20rtv8f0brb0n.js +0 -43
- package/out/_next/static/chunks/21a19t2pe0fpg.js +0 -81
- package/out/_next/static/chunks/21o2yfegozc0m.js +0 -16
- package/out/_next/static/chunks/22w2ovaffle-i.js +0 -21
- package/out/_next/static/chunks/234pfdqctlnyt.js +0 -100
- package/out/_next/static/chunks/25d8wr34sbm__.js +0 -15
- package/out/_next/static/chunks/275o3ly3svw4p.js +0 -1
- package/out/_next/static/chunks/28z1z7in8-kbg.js +0 -26
- package/out/_next/static/chunks/29w1exzy704_7.js +0 -8
- package/out/_next/static/chunks/2bb7696udjx6k.js +0 -44
- package/out/_next/static/chunks/2bm5aw8hqlgf2.js +0 -50
- package/out/_next/static/chunks/2c4vy8ofex0ti.js +0 -14
- package/out/_next/static/chunks/2c7gw8ronvu-c.js +0 -807
- package/out/_next/static/chunks/2cbr3ybo4xsrv.js +0 -43
- package/out/_next/static/chunks/2eh6ku1a1zbs4.js +0 -135
- package/out/_next/static/chunks/2fed4-6c0ghqp.js +0 -99
- package/out/_next/static/chunks/2g39exixp92yf.js +0 -13
- package/out/_next/static/chunks/2gil5igdermzh.js +0 -36
- package/out/_next/static/chunks/2hm0mbq0vtqmw.js +0 -5
- package/out/_next/static/chunks/2hvt_8j6jkd_n.js +0 -14
- package/out/_next/static/chunks/2i5uj5i4z-xu8.js +0 -188
- package/out/_next/static/chunks/2ismth22knujm.js +0 -1
- package/out/_next/static/chunks/2iuznbar_ttrh.js +0 -18
- package/out/_next/static/chunks/2j6cph79-th54.js +0 -7
- package/out/_next/static/chunks/2jln1kjysf99p.js +0 -1
- package/out/_next/static/chunks/2jtk4-i4e9lug.js +0 -1
- package/out/_next/static/chunks/2k020ab3luqev.js +0 -1
- package/out/_next/static/chunks/2kbieaechn8m8.js +0 -1
- package/out/_next/static/chunks/2lwxs_ly4bz1o.js +0 -12
- package/out/_next/static/chunks/2mr2k4sb6i021.js +0 -32
- package/out/_next/static/chunks/2na27-e8gs0-f.js +0 -171
- package/out/_next/static/chunks/2nn3_f04lnr0b.js +0 -807
- package/out/_next/static/chunks/2ocwu5vbc5r34.js +0 -73
- package/out/_next/static/chunks/2qprgjhjl8d4c.js +0 -807
- package/out/_next/static/chunks/2rtyphk0o1hbr.js +0 -5
- package/out/_next/static/chunks/2skxi0oqka3ef.js +0 -26
- package/out/_next/static/chunks/2sukt9l-1md8_.js +0 -25
- package/out/_next/static/chunks/2t3t6gm5vlg_0.js +0 -58
- package/out/_next/static/chunks/2vt52_i-6cdbh.js +0 -10
- package/out/_next/static/chunks/2w5y5xf0nriwx.js +0 -1
- package/out/_next/static/chunks/2we4fnghpvprw.js +0 -190
- package/out/_next/static/chunks/30g-s0ioynhjx.js +0 -224
- package/out/_next/static/chunks/31y7dx6ytab7h.js +0 -3
- package/out/_next/static/chunks/363ng2l8o_bee.js +0 -101
- package/out/_next/static/chunks/36jick0alh9oa.js +0 -50
- package/out/_next/static/chunks/36pa0vs0telmp.js +0 -1
- package/out/_next/static/chunks/36yth4lm03_j8.js +0 -1
- package/out/_next/static/chunks/37phwvegpccj0.js +0 -217
- package/out/_next/static/chunks/38b7m-s26ciug.js +0 -137
- package/out/_next/static/chunks/38ipj45w-tqay.js +0 -21
- package/out/_next/static/chunks/38pz7fmyf6ay0.js +0 -1
- package/out/_next/static/chunks/39634va9fx9s2.js +0 -13
- package/out/_next/static/chunks/3a0hqx7ohm5lh.js +0 -23
- package/out/_next/static/chunks/3dr_oa5hx41is.js +0 -14
- package/out/_next/static/chunks/3e7w6ko5psik7.js +0 -17
- package/out/_next/static/chunks/3ebh4y7h6y1vq.js +0 -58
- package/out/_next/static/chunks/3eow7lw1727kt.js +0 -13
- package/out/_next/static/chunks/3f1gb4_hyhtho.js +0 -20
- package/out/_next/static/chunks/3g4qj6_qh97q_.js +0 -12
- package/out/_next/static/chunks/3gfjdynb9mg8h.js +0 -23
- package/out/_next/static/chunks/3gx4smk7pb27x.js +0 -119
- package/out/_next/static/chunks/3jcf4ei6zgnca.js +0 -17
- package/out/_next/static/chunks/3kisw9hre44e5.js +0 -807
- package/out/_next/static/chunks/3mnt471ayfsvh.js +0 -22
- package/out/_next/static/chunks/3ondw3-zthjz5.js +0 -15
- package/out/_next/static/chunks/3opuxnw_w3yb5.js +0 -101
- package/out/_next/static/chunks/3oxv1fo564rrf.js +0 -142
- package/out/_next/static/chunks/3ra_41-fw410n.js +0 -14
- package/out/_next/static/chunks/3s22ovhmk-4h7.js +0 -1
- package/out/_next/static/chunks/3sktz8258so64.js +0 -2
- package/out/_next/static/chunks/3tq-bb0j1_lpu.js +0 -14
- package/out/_next/static/chunks/3v1dxn4rp-o3v.js +0 -315
- package/out/_next/static/chunks/3w_wwl_hd91od.js +0 -1
- package/out/_next/static/chunks/3ww_p-agyd9u-.js +0 -14
- package/out/_next/static/chunks/3wzzh45yillzb.js +0 -1
- package/out/_next/static/chunks/3xfj8_2nd5d_1.js +0 -1
- package/out/_next/static/chunks/3xhmfg-981n_5.js +0 -61
- package/out/_next/static/chunks/3yz34q3ulli7q.js +0 -12
- package/out/_next/static/chunks/3z_c5kpm-e1ty.js +0 -15
- package/out/_next/static/chunks/3zqfchpzqxd92.css +0 -1
- package/out/_next/static/chunks/3zs002htik_8l.js +0 -21
- package/out/_next/static/chunks/4079hjuumfmm2.js +0 -31
- package/out/_next/static/chunks/40922jbr_e5ug.js +0 -51
- package/out/_next/static/chunks/40zy6mxa-be0m.js +0 -1
- package/out/_next/static/chunks/41fbmiggueudh.js +0 -13
- package/out/_next/static/chunks/43e0fp97w800k.js +0 -13
- package/out/_next/static/chunks/43gv4x1sfyb5l.js +0 -9
- package/out/_next/static/chunks/44nj9c766dqvc.js +0 -807
- package/out/_next/static/chunks/44r51e87s4z_d.js +0 -8
- package/out/_next/static/chunks/458tg2eg5h8j5.js +0 -324
- package/out/_next/static/chunks/45cd4ypk94sw2.js +0 -807
- package/out/_next/static/chunks/turbopack-01866gjdddrxa.js +0 -1
- package/out/_next/static/chunks/turbopack-08ttg7vxsdnsj.js +0 -1
- package/out/_next/static/chunks/turbopack-0pmjdjcdx7cqp.js +0 -1
- package/out/_next/static/chunks/turbopack-0tc31uax4buqq.js +0 -1
- package/out/_next/static/chunks/turbopack-10ldzl5n31zl-.js +0 -1
- package/out/_next/static/chunks/turbopack-19i6-4a5o4fil.js +0 -1
- package/out/_next/static/chunks/turbopack-19yw5qwon7l57.js +0 -1
- package/out/_next/static/chunks/turbopack-1cx5i7_gdoz5k.js +0 -1
- package/out/_next/static/chunks/turbopack-1d-c7awe26kf5.js +0 -1
- package/out/_next/static/chunks/turbopack-1l1aen9tojmq4.js +0 -1
- package/out/_next/static/chunks/turbopack-1rmdtpi005n_6.js +0 -1
- package/out/_next/static/chunks/turbopack-1wx5785osz26z.js +0 -1
- package/out/_next/static/chunks/turbopack-28_dvdmt6lvhn.js +0 -1
- package/out/_next/static/chunks/turbopack-2bo7hmw4eirxu.js +0 -1
- package/out/_next/static/chunks/turbopack-2e_wy0ffi64id.js +0 -1
- package/out/_next/static/chunks/turbopack-2g2viapamsvwe.js +0 -1
- package/out/_next/static/chunks/turbopack-2pxtve7lryqre.js +0 -1
- package/out/_next/static/chunks/turbopack-2u0ls0liblo_9.js +0 -1
- package/out/_next/static/chunks/turbopack-2xfom16ggx1i3.js +0 -1
- package/out/_next/static/chunks/turbopack-2ycfwit0p-fkf.js +0 -1
- package/out/_next/static/chunks/turbopack-3-w-v8og1lok2.js +0 -1
- package/out/_next/static/chunks/turbopack-36bl9-rerhcfg.js +0 -1
- package/out/_next/static/chunks/turbopack-37a6lyjyz7fts.js +0 -1
- package/out/_next/static/chunks/turbopack-37lb9ujef-ujm.js +0 -1
- package/out/_next/static/chunks/turbopack-3_o3qz69ih0uu.js +0 -1
- package/out/_next/static/chunks/turbopack-3cv39r7v3s2gr.js +0 -1
- package/out/_next/static/chunks/turbopack-3vfm6fp92up6y.js +0 -1
- package/out/_next/static/chunks/turbopack-3vyi51cuxeowy.js +0 -1
- package/out/_next/static/chunks/turbopack-3zc0h1216mtm2.js +0 -1
- package/out/admin-ui-permissions.js +0 -129
- /package/out/_next/static/{4-xf4wPkZc5rcBq3jUTDg → z5KrmhOz2mLscINN5EbUf}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{4-xf4wPkZc5rcBq3jUTDg → z5KrmhOz2mLscINN5EbUf}/_ssgManifest.js +0 -0
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# Unchained Admin UI
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@unchainedshop/admin-ui)
|
|
6
|
-
[](https://nextjs.org/)
|
|
7
7
|
[](https://react.dev/)
|
|
8
8
|
|
|
9
9
|
**The open-source admin dashboard for [Unchained Commerce](https://unchained.shop) — manage your headless e-commerce with AI superpowers**
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
| 📦 **Product Management** | Simple, Bundle, Configurable, Subscription Plans & NFT-tokenized products |
|
|
29
29
|
| 🛒 **Order & Fulfillment** | Complete order lifecycle with configurable workflows |
|
|
30
30
|
| 💼 **B2B Quotations** | Professional quotation management with approval workflows |
|
|
31
|
-
| 📊 **Inventory Control** |
|
|
31
|
+
| 📊 **Inventory Control** | Warehousing provider configuration and product inventory views |
|
|
32
32
|
| 💳 **Payment & Shipping** | Integrate any payment gateway or delivery provider |
|
|
33
33
|
| 🌍 **Multi-language & Currency** | Full i18n support with country-specific locales |
|
|
34
|
-
| 🔐 **Role-Based Access** |
|
|
34
|
+
| 🔐 **Role-Based Access** | Runtime action permissions enforced by the backend |
|
|
35
35
|
| 🎨 **Customizable Branding** | White-label ready with custom logos |
|
|
36
36
|
| 📱 **Responsive Design** | Works on desktop, tablet, and mobile |
|
|
37
37
|
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
|
|
44
44
|
| | | | | |
|
|
45
45
|
|:---:|:---:|:---:|:---:|:---:|
|
|
46
|
-
| **Next.js
|
|
46
|
+
| **Next.js 16** | **React 19** | **Apollo GraphQL** | **Tailwind CSS 4** | **TypeScript** |
|
|
47
47
|
|
|
48
48
|
</div>
|
|
49
49
|
|
|
50
|
-
Plus:
|
|
50
|
+
Plus: React Hook Form • React Intl • Headless UI • Recharts • Cypress • AI SDK
|
|
51
51
|
|
|
52
52
|
---
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ Plus: Formik • React Intl • Headless UI • Recharts • Cypress • AI SDK
|
|
|
55
55
|
|
|
56
56
|
### Prerequisites
|
|
57
57
|
|
|
58
|
-
- Node.js
|
|
58
|
+
- Node.js 26+
|
|
59
59
|
- [Unchained Engine](https://github.com/unchainedshop/unchained) running on `localhost:4010`
|
|
60
60
|
|
|
61
61
|
### Installation
|
|
@@ -63,13 +63,13 @@ Plus: Formik • React Intl • Headless UI • Recharts • Cypress • AI SDK
|
|
|
63
63
|
```bash
|
|
64
64
|
# Clone the repository
|
|
65
65
|
git clone git@github.com:unchainedshop/unchained.git
|
|
66
|
-
cd
|
|
66
|
+
cd unchained
|
|
67
67
|
|
|
68
68
|
# Install dependencies
|
|
69
69
|
npm install
|
|
70
70
|
|
|
71
71
|
# Start development server
|
|
72
|
-
npm run dev
|
|
72
|
+
npm run dev --workspace @unchainedshop/admin-ui
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
Open [http://localhost:3000](http://localhost:3000) in your browser.
|
|
@@ -82,13 +82,15 @@ Open [http://localhost:3000](http://localhost:3000) in your browser.
|
|
|
82
82
|
|
|
83
83
|
| Variable | Default | Description |
|
|
84
84
|
|----------|---------|-------------|
|
|
85
|
-
| `NEXT_PUBLIC_GRAPHQL_ENDPOINT` |
|
|
85
|
+
| `NEXT_PUBLIC_GRAPHQL_ENDPOINT` | Same-origin `/graphql` | Unchained Engine GraphQL endpoint; `.env.development` uses `http://localhost:4010/graphql` |
|
|
86
|
+
| `NEXT_PUBLIC_CHAT_URL` | Same-origin `/chat` | Copilot endpoint; `.env.development` uses `http://localhost:4010/chat` |
|
|
86
87
|
| `NEXT_PUBLIC_LOGO` | — | URL to your custom logo |
|
|
87
88
|
|
|
88
|
-
Create
|
|
89
|
+
Create an `admin-ui/.env.local` file for local development:
|
|
89
90
|
|
|
90
91
|
```bash
|
|
91
92
|
NEXT_PUBLIC_GRAPHQL_ENDPOINT=https://your-engine.example.com/graphql
|
|
93
|
+
NEXT_PUBLIC_CHAT_URL=https://your-engine.example.com/chat
|
|
92
94
|
NEXT_PUBLIC_LOGO=https://your-cdn.com/logo.svg
|
|
93
95
|
```
|
|
94
96
|
|
|
@@ -99,6 +101,7 @@ NEXT_PUBLIC_LOGO=https://your-cdn.com/logo.svg
|
|
|
99
101
|
### Static Export (Recommended)
|
|
100
102
|
|
|
101
103
|
```bash
|
|
104
|
+
cd admin-ui
|
|
102
105
|
npm run build
|
|
103
106
|
# Output in ./out/ - deploy to any CDN (Vercel, Netlify, S3, etc.)
|
|
104
107
|
```
|
|
@@ -107,15 +110,132 @@ npm run build
|
|
|
107
110
|
### Express / Fastify Integration
|
|
108
111
|
|
|
109
112
|
```typescript
|
|
110
|
-
|
|
111
|
-
import {
|
|
112
|
-
|
|
113
|
+
import Fastify from 'fastify';
|
|
114
|
+
import { startPlatform } from '@unchainedshop/platform';
|
|
115
|
+
import { connect } from '@unchainedshop/api/fastify';
|
|
116
|
+
import { registerBasePlugins } from '@unchainedshop/plugins/presets/base';
|
|
117
|
+
|
|
118
|
+
registerBasePlugins();
|
|
119
|
+
const platform = await startPlatform({});
|
|
120
|
+
const fastify = Fastify();
|
|
121
|
+
await connect(fastify, platform, { adminUI: { prefix: '/admin' } });
|
|
122
|
+
await fastify.listen({ port: 4010 });
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
For Express, import `connect` from `@unchainedshop/api/express` and pass your Express app and the same platform/options. The backend adapter serves the installed `@unchainedshop/admin-ui` package.
|
|
113
126
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
127
|
+
### 🎨 Custom Theming
|
|
128
|
+
|
|
129
|
+
The admin UI uses semantic CSS custom property tokens for all surface, text, and border colors. Engine consumers can override these at runtime — no rebuild required.
|
|
130
|
+
|
|
131
|
+
Pass a `theme` object with `light` and/or `dark` overrides when connecting the admin UI:
|
|
132
|
+
|
|
133
|
+
```typescript
|
|
134
|
+
await connect(fastify, platform, {
|
|
135
|
+
adminUI: {
|
|
136
|
+
prefix: '/',
|
|
137
|
+
theme: {
|
|
138
|
+
light: {
|
|
139
|
+
accent: '#8b5cf6',
|
|
140
|
+
'accent-hover': '#7c3aed',
|
|
141
|
+
'focus-ring': '#8b5cf6',
|
|
142
|
+
'text-on-accent': '#ffffff',
|
|
143
|
+
},
|
|
144
|
+
dark: {
|
|
145
|
+
accent: '#a78bfa',
|
|
146
|
+
'accent-hover': '#8b5cf6',
|
|
147
|
+
'focus-ring': '#a78bfa',
|
|
148
|
+
'text-on-accent': '#ffffff',
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
});
|
|
117
153
|
```
|
|
118
154
|
|
|
155
|
+
You only need to include the tokens you want to override — unset tokens use the built-in defaults. Each key maps to a `--token-{key}` CSS variable. The engine serves these as `/admin-ui-theme.css` which loads before first paint (no flicker).
|
|
156
|
+
|
|
157
|
+
Available tokens:
|
|
158
|
+
|
|
159
|
+
| Token | Light default | Dark default | Description |
|
|
160
|
+
|-------|-------------|-------------|-------------|
|
|
161
|
+
| `surface` | `#ffffff` | `#1e293b` | Main backgrounds (cards, modals) |
|
|
162
|
+
| `surface-subtle` | `#f8fafc` | `#0f172a` | Page backgrounds |
|
|
163
|
+
| `surface-raised` | `#f1f5f9` | `#334155` | Hover states, raised elements |
|
|
164
|
+
| `surface-input` | `#ffffff` | `#0f172a` | Form input backgrounds |
|
|
165
|
+
| `border` | `#cbd5e1` | `#475569` | Default borders |
|
|
166
|
+
| `border-subtle` | `#e2e8f0` | `#334155` | Subtle/secondary borders |
|
|
167
|
+
| `text-primary` | `#0f172a` | `#f1f5f9` | Headings, primary text |
|
|
168
|
+
| `text-secondary` | `#475569` | `#94a3b8` | Labels, secondary text |
|
|
169
|
+
| `text-muted` | `#64748b` | `#64748b` | Captions, placeholders |
|
|
170
|
+
| `accent` | `#1e293b` | `#475569` | Primary buttons, active elements |
|
|
171
|
+
| `accent-hover` | `#020617` | `#64748b` | Hover state for accent |
|
|
172
|
+
| `focus-ring` | `#1e293b` | `#94a3b8` | Focus ring color for interactive elements |
|
|
173
|
+
| `text-on-accent` | `#ffffff` | `#ffffff` | Text on accent-colored backgrounds |
|
|
174
|
+
| `danger` | `#f43f5e` | `#fb7185` | Error states, destructive actions |
|
|
175
|
+
| `danger-surface` | `#fff1f2` | `oklch(...)` | Danger background |
|
|
176
|
+
| `success` | `#10b981` | `#34d399` | Success states |
|
|
177
|
+
| `warning` | `#f59e0b` | `#fbbf24` | Warning states |
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
### 🧩 SDK — Using UI Primitives in Custom Apps
|
|
182
|
+
|
|
183
|
+
The admin UI exports its component library, form system, hooks, and providers as separate entry points. This allows custom admin pages, plugins, or white-label apps to reuse the design system without forking.
|
|
184
|
+
|
|
185
|
+
```bash
|
|
186
|
+
npm install @unchainedshop/admin-ui
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
**Available imports:**
|
|
190
|
+
|
|
191
|
+
```typescript
|
|
192
|
+
// UI primitives — Button, Badge, Card, Tab, etc.
|
|
193
|
+
import { Button, Badge, Loading, Tab, Accordion } from '@unchainedshop/admin-ui/ui';
|
|
194
|
+
|
|
195
|
+
// Form components — TextField, SelectField, Combobox, CheckboxField, etc.
|
|
196
|
+
import { TextField, SelectField, Combobox, SubmitButton } from '@unchainedshop/admin-ui/form';
|
|
197
|
+
|
|
198
|
+
// Hooks — useTheme, useModal, useField, useForm, etc.
|
|
199
|
+
import { useTheme, useModal, useField, useForm } from '@unchainedshop/admin-ui/hooks';
|
|
200
|
+
|
|
201
|
+
// Providers — ThemeWrapper, ModalWrapper for app composition
|
|
202
|
+
import { ThemeWrapper, ModalWrapper } from '@unchainedshop/admin-ui/providers';
|
|
203
|
+
|
|
204
|
+
// Modal system — Modal, AlertMessage, DangerMessage
|
|
205
|
+
import { Modal, AlertMessage, DangerMessage, useModal } from '@unchainedshop/admin-ui/modal';
|
|
206
|
+
|
|
207
|
+
// Styles — import the full design token stylesheet
|
|
208
|
+
import '@unchainedshop/admin-ui/styles';
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
**Building a custom admin page:**
|
|
212
|
+
|
|
213
|
+
```tsx
|
|
214
|
+
import { ThemeWrapper, ModalWrapper } from '@unchainedshop/admin-ui/providers';
|
|
215
|
+
import { Button, Card, CardContent } from '@unchainedshop/admin-ui/ui';
|
|
216
|
+
import { TextField, SubmitButton } from '@unchainedshop/admin-ui/form';
|
|
217
|
+
import '@unchainedshop/admin-ui/styles';
|
|
218
|
+
|
|
219
|
+
export default function CustomPage() {
|
|
220
|
+
return (
|
|
221
|
+
<ThemeWrapper>
|
|
222
|
+
<ModalWrapper>
|
|
223
|
+
<Card>
|
|
224
|
+
<CardContent>
|
|
225
|
+
<h1>My Custom Admin Page</h1>
|
|
226
|
+
<Button variant="primary" text="Click me" />
|
|
227
|
+
</CardContent>
|
|
228
|
+
</Card>
|
|
229
|
+
</ModalWrapper>
|
|
230
|
+
</ThemeWrapper>
|
|
231
|
+
);
|
|
232
|
+
}
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
**Host dependencies:** The SDK shares React and Next.js with the host. Match the Admin UI's versions (React 19 and Next.js 16); the [plugin build helper](src/sdk/README.md) configures shared dependencies for engine-loaded plugins.
|
|
236
|
+
|
|
237
|
+
**Build the SDK:** `npm run build:sdk` generates the `dist/` directory with ESM bundles and TypeScript declarations.
|
|
238
|
+
|
|
119
239
|
---
|
|
120
240
|
|
|
121
241
|
## 📝 Development
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { A, Y, y, l3, u3, i3, n, o2, K, C, u, N, m, x2, t2, c, b, s, p } from './chunk-QHR23GVH.js';
|
|
2
|
+
import c2, { createContext, useRef, useState, useMemo, Fragment, useEffect, useContext } from 'react';
|
|
3
|
+
|
|
4
|
+
function f() {
|
|
5
|
+
let e = useRef(false);
|
|
6
|
+
return n(() => (e.current = true, () => {
|
|
7
|
+
e.current = false;
|
|
8
|
+
}), []), e;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// ../node_modules/@headlessui/react/dist/components/transition/transition.js
|
|
12
|
+
function ue(e) {
|
|
13
|
+
var t2;
|
|
14
|
+
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || !b((t2 = e.as) != null ? t2 : de) || c2.Children.count(e.children) === 1;
|
|
15
|
+
}
|
|
16
|
+
var V = createContext(null);
|
|
17
|
+
V.displayName = "TransitionContext";
|
|
18
|
+
var De = ((n2) => (n2.Visible = "visible", n2.Hidden = "hidden", n2))(De || {});
|
|
19
|
+
function He() {
|
|
20
|
+
let e = useContext(V);
|
|
21
|
+
if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
22
|
+
return e;
|
|
23
|
+
}
|
|
24
|
+
function Ae() {
|
|
25
|
+
let e = useContext(w);
|
|
26
|
+
if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
27
|
+
return e;
|
|
28
|
+
}
|
|
29
|
+
var w = createContext(null);
|
|
30
|
+
w.displayName = "NestingContext";
|
|
31
|
+
function M(e) {
|
|
32
|
+
return "children" in e ? M(e.children) : e.current.filter(({ el: t2 }) => t2.current !== null).filter(({ state: t2 }) => t2 === "visible").length > 0;
|
|
33
|
+
}
|
|
34
|
+
function Te(e, t2) {
|
|
35
|
+
let n2 = s(e), l2 = useRef([]), S = f(), R = p(), d = o2((o2, i2 = C.Hidden) => {
|
|
36
|
+
let a = l2.current.findIndex(({ el: s2 }) => s2 === o2);
|
|
37
|
+
a !== -1 && (u(i2, { [C.Unmount]() {
|
|
38
|
+
l2.current.splice(a, 1);
|
|
39
|
+
}, [C.Hidden]() {
|
|
40
|
+
l2.current[a].state = "hidden";
|
|
41
|
+
} }), R.microTask(() => {
|
|
42
|
+
var s2;
|
|
43
|
+
!M(l2) && S.current && ((s2 = n2.current) == null || s2.call(n2));
|
|
44
|
+
}));
|
|
45
|
+
}), y2 = o2((o2) => {
|
|
46
|
+
let i2 = l2.current.find(({ el: a }) => a === o2);
|
|
47
|
+
return i2 ? i2.state !== "visible" && (i2.state = "visible") : l2.current.push({ el: o2, state: "visible" }), () => d(o2, C.Unmount);
|
|
48
|
+
}), C2 = useRef([]), p2 = useRef(Promise.resolve()), h = useRef({ enter: [], leave: [] }), g = o2((o2, i2, a) => {
|
|
49
|
+
C2.current.splice(0), t2 && (t2.chains.current[i2] = t2.chains.current[i2].filter(([s2]) => s2 !== o2)), t2 == null || t2.chains.current[i2].push([o2, new Promise((s2) => {
|
|
50
|
+
C2.current.push(s2);
|
|
51
|
+
})]), t2 == null || t2.chains.current[i2].push([o2, new Promise((s2) => {
|
|
52
|
+
Promise.all(h.current[i2].map(([r2, f2]) => f2)).then(() => s2());
|
|
53
|
+
})]), i2 === "enter" ? p2.current = p2.current.then(() => t2 == null ? void 0 : t2.wait.current).then(() => a(i2)) : a(i2);
|
|
54
|
+
}), v = o2((o2, i2, a) => {
|
|
55
|
+
Promise.all(h.current[i2].splice(0).map(([s2, r2]) => r2)).then(() => {
|
|
56
|
+
var s2;
|
|
57
|
+
(s2 = C2.current.shift()) == null || s2();
|
|
58
|
+
}).then(() => a(i2));
|
|
59
|
+
});
|
|
60
|
+
return useMemo(() => ({ children: l2, register: y2, unregister: d, onStart: g, onStop: v, wait: p2, chains: h }), [y2, d, l2, g, v, h, p2]);
|
|
61
|
+
}
|
|
62
|
+
var de = Fragment;
|
|
63
|
+
var fe = A.RenderStrategy;
|
|
64
|
+
function Fe(e, t2$1) {
|
|
65
|
+
var ee, te;
|
|
66
|
+
let { transition: n2 = true, beforeEnter: l2, afterEnter: S, beforeLeave: R, afterLeave: d, enter: y2, enterFrom: C2, enterTo: p2, entered: h, leave: g, leaveFrom: v, leaveTo: o2$1, ...i2 } = e, [a, s2] = useState(null), r2 = useRef(null), f2 = ue(e), U = y(...f2 ? [r2, t2$1, s2] : t2$1 === null ? [] : [t2$1]), H = (ee = i2.unmount) == null || ee ? C.Unmount : C.Hidden, { show: u3, appear: z, initial: K2 } = He(), [m2, j] = useState(u3 ? "visible" : "hidden"), Q = Ae(), { register: A2, unregister: F } = Q;
|
|
67
|
+
n(() => A2(r2), [A2, r2]), n(() => {
|
|
68
|
+
if (H === C.Hidden && r2.current) {
|
|
69
|
+
if (u3 && m2 !== "visible") {
|
|
70
|
+
j("visible");
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
return u(m2, { ["hidden"]: () => F(r2), ["visible"]: () => A2(r2) });
|
|
74
|
+
}
|
|
75
|
+
}, [m2, r2, A2, F, u3, H]);
|
|
76
|
+
let G = l3();
|
|
77
|
+
n(() => {
|
|
78
|
+
if (f2 && G && m2 === "visible" && r2.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
79
|
+
}, [r2, m2, G, f2]);
|
|
80
|
+
let ce = K2 && !z, Y2 = z && u3 && K2, B = useRef(false), I = Te(() => {
|
|
81
|
+
B.current || (j("hidden"), F(r2));
|
|
82
|
+
}, Q), Z = o2((W) => {
|
|
83
|
+
B.current = true;
|
|
84
|
+
let L = W ? "enter" : "leave";
|
|
85
|
+
I.onStart(r2, L, (_) => {
|
|
86
|
+
_ === "enter" ? l2 == null || l2() : _ === "leave" && (R == null || R());
|
|
87
|
+
});
|
|
88
|
+
}), $ = o2((W) => {
|
|
89
|
+
let L = W ? "enter" : "leave";
|
|
90
|
+
B.current = false, I.onStop(r2, L, (_) => {
|
|
91
|
+
_ === "enter" ? S == null || S() : _ === "leave" && (d == null || d());
|
|
92
|
+
}), L === "leave" && !M(I) && (j("hidden"), F(r2));
|
|
93
|
+
});
|
|
94
|
+
useEffect(() => {
|
|
95
|
+
f2 && n2 || (Z(u3), $(u3));
|
|
96
|
+
}, [u3, f2, n2]);
|
|
97
|
+
let pe = /* @__PURE__ */ (() => !(!n2 || !f2 || !G || ce))(), [, T] = N(pe, a, u3, { start: Z, end: $ }), Ce = m({ ref: U, className: ((te = t2(i2.className, Y2 && y2, Y2 && C2, T.enter && y2, T.enter && T.closed && C2, T.enter && !T.closed && p2, T.leave && g, T.leave && !T.closed && v, T.leave && T.closed && o2$1, !T.transition && u3 && h)) == null ? void 0 : te.trim()) || void 0, ...x2(T) }), N2 = 0;
|
|
98
|
+
m2 === "visible" && (N2 |= i3.Open), m2 === "hidden" && (N2 |= i3.Closed), u3 && m2 === "hidden" && (N2 |= i3.Opening), !u3 && m2 === "visible" && (N2 |= i3.Closing);
|
|
99
|
+
let he = K();
|
|
100
|
+
return c2.createElement(w.Provider, { value: I }, c2.createElement(c, { value: N2 }, he({ ourProps: Ce, theirProps: i2, defaultTag: de, features: fe, visible: m2 === "visible", name: "Transition.Child" })));
|
|
101
|
+
}
|
|
102
|
+
function Ie(e, t2) {
|
|
103
|
+
let { show: n2, appear: l2 = false, unmount: S = true, ...R } = e, d = useRef(null), y2 = ue(e), C2 = y(...y2 ? [d, t2] : t2 === null ? [] : [t2]);
|
|
104
|
+
l3();
|
|
105
|
+
let p2 = u3();
|
|
106
|
+
if (n2 === void 0 && p2 !== null && (n2 = (p2 & i3.Open) === i3.Open), n2 === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
107
|
+
let [h, g] = useState(n2 ? "visible" : "hidden"), v = Te(() => {
|
|
108
|
+
n2 || g("hidden");
|
|
109
|
+
}), [o2$1, i2] = useState(true), a = useRef([n2]);
|
|
110
|
+
n(() => {
|
|
111
|
+
o2$1 !== false && a.current[a.current.length - 1] !== n2 && (a.current.push(n2), i2(false));
|
|
112
|
+
}, [a, n2]);
|
|
113
|
+
let s2 = useMemo(() => ({ show: n2, appear: l2, initial: o2$1 }), [n2, l2, o2$1]);
|
|
114
|
+
n(() => {
|
|
115
|
+
n2 ? g("visible") : !M(v) && d.current !== null && g("hidden");
|
|
116
|
+
}, [n2, v]);
|
|
117
|
+
let r2 = { unmount: S }, f2 = o2(() => {
|
|
118
|
+
var u3;
|
|
119
|
+
o2$1 && i2(false), (u3 = e.beforeEnter) == null || u3.call(e);
|
|
120
|
+
}), U = o2(() => {
|
|
121
|
+
var u3;
|
|
122
|
+
o2$1 && i2(false), (u3 = e.beforeLeave) == null || u3.call(e);
|
|
123
|
+
}), H = K();
|
|
124
|
+
return c2.createElement(w.Provider, { value: v }, c2.createElement(V.Provider, { value: s2 }, H({ ourProps: { ...r2, as: Fragment, children: c2.createElement(me, { ref: C2, ...r2, ...R, beforeEnter: f2, beforeLeave: U }) }, theirProps: {}, defaultTag: Fragment, features: fe, visible: h === "visible", name: "Transition" })));
|
|
125
|
+
}
|
|
126
|
+
function Le(e, t2) {
|
|
127
|
+
let n2 = useContext(V) !== null, l2 = u3() !== null;
|
|
128
|
+
return c2.createElement(c2.Fragment, null, !n2 && l2 ? c2.createElement(X, { ref: t2, ...e }) : c2.createElement(me, { ref: t2, ...e }));
|
|
129
|
+
}
|
|
130
|
+
var X = Y(Ie);
|
|
131
|
+
var me = Y(Fe);
|
|
132
|
+
var Oe = Y(Le);
|
|
133
|
+
var Ke = Object.assign(X, { Child: Oe, Root: X });
|
|
134
|
+
|
|
135
|
+
export { Ke, Oe, f };
|