@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
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
# Admin UI Plugins
|
|
2
|
+
|
|
3
|
+
Extend the Unchained admin-ui with your own pages, entity managers, tabs, and
|
|
4
|
+
dashboard widgets — without forking it. A plugin is a single ESM bundle plus a
|
|
5
|
+
manifest you register on the engine; the admin-ui discovers and loads it at
|
|
6
|
+
runtime.
|
|
7
|
+
|
|
8
|
+
## How it works
|
|
9
|
+
|
|
10
|
+
- Plugins are built with `definePluginConfig()` from
|
|
11
|
+
`@unchainedshop/admin-ui/plugin-build` into one standard ESM bundle.
|
|
12
|
+
- Dependencies the host app already ships (React, Apollo, react-intl, the
|
|
13
|
+
`@unchainedshop/admin-ui/*` SDK modules, ...) are left as bare import
|
|
14
|
+
specifiers. In the browser, an import map resolves them to the host's own
|
|
15
|
+
module instances, so your plugin runs on the exact same React/Apollo as the
|
|
16
|
+
admin-ui. Everything else you import gets bundled in.
|
|
17
|
+
- The engine serves your bundle under `/admin-plugins/<name>.js` and a
|
|
18
|
+
manifest under `/admin-ui-plugins.json`; the admin-ui loads bundles with a
|
|
19
|
+
native dynamic `import()`.
|
|
20
|
+
|
|
21
|
+
The module graph (which specifiers are shared vs. bundled) is defined in
|
|
22
|
+
[`plugin-runtime.cjs`](./plugin-runtime.cjs), re-exported by `plugin-runtime.mjs` — see `SHARED_DEP_SHIMS` and
|
|
23
|
+
`SDK_ENTRY_KEYS`.
|
|
24
|
+
|
|
25
|
+
## Writing a plugin
|
|
26
|
+
|
|
27
|
+
Minimal project layout (see `examples/kitchensink/plugins/bookmark-manager`
|
|
28
|
+
for a complete one):
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
my-plugin/
|
|
32
|
+
├── package.json
|
|
33
|
+
├── tsup.config.ts
|
|
34
|
+
└── src/
|
|
35
|
+
└── index.tsx
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
`package.json`:
|
|
39
|
+
|
|
40
|
+
```json
|
|
41
|
+
{
|
|
42
|
+
"name": "my-plugin",
|
|
43
|
+
"type": "module",
|
|
44
|
+
"scripts": { "build": "tsup", "build:watch": "tsup --watch" },
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@types/react": "^19.0.0",
|
|
47
|
+
"@unchainedshop/admin-ui": "^5.0.0-alpha.10",
|
|
48
|
+
"esbuild": "^0.25.0",
|
|
49
|
+
"react": "^19.0.0",
|
|
50
|
+
"tsup": "^8.0.0"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
`tsup.config.ts`:
|
|
56
|
+
|
|
57
|
+
```ts
|
|
58
|
+
import { definePluginConfig } from '@unchainedshop/admin-ui/plugin-build';
|
|
59
|
+
|
|
60
|
+
export default definePluginConfig('my-plugin');
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
`src/index.tsx` — export every component your manifest references, as named
|
|
64
|
+
exports:
|
|
65
|
+
|
|
66
|
+
```tsx
|
|
67
|
+
export { default as ThingList } from './components/ThingList';
|
|
68
|
+
export { default as ThingDetail } from './components/ThingDetail';
|
|
69
|
+
export { default as ThingWidget } from './components/ThingWidget';
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Inside components you can import from the host SDK:
|
|
73
|
+
|
|
74
|
+
```tsx
|
|
75
|
+
import { Button } from '@unchainedshop/admin-ui/ui';
|
|
76
|
+
import { useForm } from '@unchainedshop/admin-ui/hooks';
|
|
77
|
+
import { useProducts } from '@unchainedshop/admin-ui/modules/product';
|
|
78
|
+
import { usePluginRuntime } from '@unchainedshop/admin-ui/plugins';
|
|
79
|
+
import { useQuery } from '@apollo/client/react';
|
|
80
|
+
import { FormattedMessage } from 'react-intl';
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
SDK components and hooks use the host app's contexts: `useModal` opens the
|
|
84
|
+
admin-ui modal, `useApp` returns the selected locale and shop info, and
|
|
85
|
+
`useAuth().hasRole(action)` checks the actions of the user
|
|
86
|
+
(`User.allowedActions`), including the actions your plugin adds with
|
|
87
|
+
`rolesOptions.additionalActions`; administrators hold all of them. Build pages like the admin-ui does, with `BreadCrumbs`,
|
|
88
|
+
`PageHeader`, `Tab`, `FormWrapper` and `LocaleWrapper` from
|
|
89
|
+
`@unchainedshop/admin-ui/ui`; core forms such as `ProductTextsForm` and
|
|
90
|
+
`ProductMediaForm` (`@unchainedshop/admin-ui/modules/product`) can be embedded
|
|
91
|
+
as they are.
|
|
92
|
+
|
|
93
|
+
Form fields read their state from the `Form` provider, so wrap them in `Form`
|
|
94
|
+
from the same `form` entry and pass it the result of `useForm`:
|
|
95
|
+
|
|
96
|
+
```tsx
|
|
97
|
+
import { Form, TextField, SubmitButton } from '@unchainedshop/admin-ui/form';
|
|
98
|
+
import { useForm } from '@unchainedshop/admin-ui/hooks';
|
|
99
|
+
|
|
100
|
+
const ThingForm = ({ onSave }) => {
|
|
101
|
+
const form = useForm({
|
|
102
|
+
submit: async ({ title }) => ({ success: await onSave(title) }),
|
|
103
|
+
initialValues: { title: '' },
|
|
104
|
+
});
|
|
105
|
+
return (
|
|
106
|
+
<Form form={form}>
|
|
107
|
+
<TextField name="title" label="Title" required />
|
|
108
|
+
<SubmitButton label="Save" />
|
|
109
|
+
</Form>
|
|
110
|
+
);
|
|
111
|
+
};
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## Registering a plugin on the engine
|
|
115
|
+
|
|
116
|
+
Pass the manifest in the `adminUI.plugins` option of the Express or Fastify
|
|
117
|
+
`connect()`:
|
|
118
|
+
|
|
119
|
+
```ts
|
|
120
|
+
adminUI: {
|
|
121
|
+
plugins: [
|
|
122
|
+
{
|
|
123
|
+
name: 'my-plugin', // [a-z0-9._-], used in URLs
|
|
124
|
+
version: '1.0.0', // optional, informational
|
|
125
|
+
bundlePath: resolve(__dirname, '../plugins/my-plugin/dist/index.js'),
|
|
126
|
+
navigation: { // optional: groups nav items in a submenu
|
|
127
|
+
label: 'My Plugin',
|
|
128
|
+
icon: 'bookmark', // heroicon name
|
|
129
|
+
requiredRole: 'viewProducts',
|
|
130
|
+
sortOrder: 75, // position among sidebar items, see below
|
|
131
|
+
},
|
|
132
|
+
slots: {
|
|
133
|
+
entities: [
|
|
134
|
+
{
|
|
135
|
+
path: '/things', // page lives at /ext/things
|
|
136
|
+
label: 'Things',
|
|
137
|
+
icon: 'bookmark',
|
|
138
|
+
requiredRole: 'viewProducts',
|
|
139
|
+
sortOrder: 75,
|
|
140
|
+
components: {
|
|
141
|
+
list: 'ThingList', // must match a named export of the bundle
|
|
142
|
+
detail: 'ThingDetail',
|
|
143
|
+
create: 'ThingCreate' // optional
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
],
|
|
147
|
+
pages: [
|
|
148
|
+
{ path: '/reports', label: 'Reports', component: 'ReportsPage' },
|
|
149
|
+
],
|
|
150
|
+
'dashboard:widgets': [
|
|
151
|
+
{ component: 'ThingWidget', width: 'half' }, // full | half | third
|
|
152
|
+
],
|
|
153
|
+
'product:tabs': [
|
|
154
|
+
{ label: 'Things', component: 'ProductThingsTab' },
|
|
155
|
+
],
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
}
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
Slot types: `entities` (list/detail/create pages under `/ext/<path>`),
|
|
163
|
+
`pages` (single custom page under `/ext/<path>`), `dashboard:widgets`, and
|
|
164
|
+
`<entity>:tabs` for `product`, `assortment`, `filter`, `user`, `order`.
|
|
165
|
+
|
|
166
|
+
- `requiredRole` — action name (such as `viewProducts`) checked against the logged-in user's `allowedActions`; the item is
|
|
167
|
+
hidden without it.
|
|
168
|
+
- `sortOrder` — position in the sidebar. Built-in items use 0–130 in steps of
|
|
169
|
+
10 (Orders 30, Products 40, Users 70, System settings 110, ...). Items
|
|
170
|
+
without a `sortOrder` keep their relative order after ordered ones.
|
|
171
|
+
|
|
172
|
+
At startup the engine validates the manifest against the bundle and logs a
|
|
173
|
+
warning if a referenced component is not exported, if two plugins share a
|
|
174
|
+
name, or if the bundle was built against a different admin-ui SDK version
|
|
175
|
+
than the one running.
|
|
176
|
+
|
|
177
|
+
## Development workflow
|
|
178
|
+
|
|
179
|
+
### Client project with the packaged Admin UI
|
|
180
|
+
|
|
181
|
+
The engine can serve the prebuilt Admin UI from the installed
|
|
182
|
+
`@unchainedshop/admin-ui` npm package while you develop local extensions.
|
|
183
|
+
Register the local plugin's `dist/index.js` as its `bundlePath`, build the
|
|
184
|
+
plugin before starting the engine, and run its build watcher alongside the
|
|
185
|
+
engine. Open the engine's Admin UI URL and refresh after a successful rebuild.
|
|
186
|
+
Only the local extension needs rebuilding; the packaged Admin UI stays prebuilt.
|
|
187
|
+
|
|
188
|
+
Both Kitchensink examples provide this workflow through `npm run dev` in the
|
|
189
|
+
example directory: an initial plugin build followed by backend and plugin
|
|
190
|
+
watchers. `npm run dev:server` starts only the backend. The repository root's
|
|
191
|
+
`npm run dev` also starts Next.js for development of the Admin UI itself.
|
|
192
|
+
|
|
193
|
+
In a standalone project, use published package versions instead of the
|
|
194
|
+
examples' repository-local `file:` dependencies, and use the same
|
|
195
|
+
`@unchainedshop/admin-ui` version for the engine and plugin build. Install the
|
|
196
|
+
plugin's dependencies separately if it is not included in your npm workspaces.
|
|
197
|
+
|
|
198
|
+
### Rebuilds and refreshes
|
|
199
|
+
|
|
200
|
+
Run the plugin build in watch mode next to the engine:
|
|
201
|
+
|
|
202
|
+
```bash
|
|
203
|
+
cd my-plugin && npm run build:watch
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
In dev mode (`NODE_ENV !== 'production'`) the engine picks up bundle changes
|
|
207
|
+
on the next manifest request — reload the admin-ui to get the new bundle. In
|
|
208
|
+
production, bundles are read once at startup and served with immutable
|
|
209
|
+
caching, keyed by content hash.
|
|
210
|
+
|
|
211
|
+
The plugin bundle must exist when the engine starts. If it was missing at
|
|
212
|
+
startup, build it and restart the engine. This workflow uses browser refreshes;
|
|
213
|
+
it does not provide React Fast Refresh or preserve component state across edits.
|
|
214
|
+
|
|
215
|
+
## Content-Security-Policy
|
|
216
|
+
|
|
217
|
+
The engine injects the import map as an inline `<script type="importmap">`
|
|
218
|
+
tag. If you serve the admin-ui with a strict CSP, provide a nonce and it will
|
|
219
|
+
be added to the tag:
|
|
220
|
+
|
|
221
|
+
- **Express + helmet**: set `res.locals.cspNonce` in a middleware (as in
|
|
222
|
+
helmet's CSP nonce docs) before the admin-ui router.
|
|
223
|
+
- **Fastify + @fastify/helmet**: register with `enableCSPNonces: true`; the
|
|
224
|
+
engine reads `reply.cspNonce.script`.
|
|
225
|
+
|
|
226
|
+
Without a nonce, `script-src` must allow the inline import map tag.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import assert from 'node:assert/strict';
|
|
2
|
+
import { readFileSync } from 'node:fs';
|
|
3
|
+
import test from 'node:test';
|
|
4
|
+
|
|
5
|
+
// The form fields read their state from the Form provider (FormContext + react-hook-form), so a
|
|
6
|
+
// plugin can only use them when the same `form` entry also exports Form.
|
|
7
|
+
test('the form entry exports Form next to its fields', () => {
|
|
8
|
+
const source = readFileSync(new URL('../components/ui/form/index.ts', import.meta.url), 'utf8');
|
|
9
|
+
assert.match(source, /export \{ default as Form \} from '..\/..\/..\/modules\/forms\/components\/Form';/);
|
|
10
|
+
assert.match(source, /export \{ default as TextField \}/);
|
|
11
|
+
});
|
package/src/sdk/hooks.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { default as useTheme } from '../modules/common/hooks/useTheme';
|
|
2
|
+
export { default as useLocalStorage } from '../modules/common/hooks/useLocalStorage';
|
|
3
|
+
export { default as useOutsideClick } from '../modules/common/hooks/useOutsideClick';
|
|
4
|
+
export { default as useModal } from '../modules/modal/hooks/useModal';
|
|
5
|
+
export { default as useField } from '../modules/forms/hooks/useField';
|
|
6
|
+
export type {
|
|
7
|
+
FieldHookProps,
|
|
8
|
+
ComputedProps,
|
|
9
|
+
} from '../modules/forms/hooks/useField';
|
|
10
|
+
export { default as useForm } from '../modules/forms/hooks/useForm';
|
|
11
|
+
export { default as useFormContext } from '../modules/forms/hooks/useFormContext';
|
|
12
|
+
// Host state (shared contexts): the selected locale and shop info, and the roles of the user
|
|
13
|
+
export { default as useApp } from '../modules/common/hooks/useApp';
|
|
14
|
+
export { default as useAuth } from '../modules/Auth/useAuth';
|
|
15
|
+
export { default as useFormatDateTime } from '../modules/common/utils/useFormatDateTime';
|
package/src/sdk/modal.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as Modal } from '../modules/modal/components/Modal';
|
|
2
|
+
export { default as ModalWrapper } from '../modules/modal/components/ModalWrapper';
|
|
3
|
+
export { default as AlertMessage } from '../modules/modal/components/AlertMessage';
|
|
4
|
+
export { default as DangerMessage } from '../modules/modal/components/DangerMessage';
|
|
5
|
+
export { default as useModal } from '../modules/modal/hooks/useModal';
|
|
6
|
+
export { default as ModalContext } from '../modules/modal/utils/ModalContext';
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { readFileSync } from 'node:fs';
|
|
2
|
+
import { defineConfig } from 'tsup';
|
|
3
|
+
import { PLUGIN_EXTERNALS } from './plugin-runtime.mjs';
|
|
4
|
+
|
|
5
|
+
// Version of the admin-ui SDK this plugin is built against, stamped into the
|
|
6
|
+
// bundle banner so the engine can warn about plugin/host version skew.
|
|
7
|
+
const SDK_VERSION = (() => {
|
|
8
|
+
try {
|
|
9
|
+
return JSON.parse(readFileSync(new URL('../../package.json', import.meta.url), 'utf-8')).version;
|
|
10
|
+
} catch {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
})();
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Build configuration for admin-ui plugins.
|
|
17
|
+
*
|
|
18
|
+
* Plugins are compiled to a single standard ESM bundle. Dependencies provided
|
|
19
|
+
* by the host admin-ui (react, @apollo/client, @unchainedshop/admin-ui/*, ...)
|
|
20
|
+
* are left as bare import specifiers; at runtime the admin-ui resolves them
|
|
21
|
+
* through a browser import map to the host's own module instances, so plugins
|
|
22
|
+
* share one React/Apollo instance with the app. Everything else (plugin-local
|
|
23
|
+
* dependencies) is bundled in.
|
|
24
|
+
*
|
|
25
|
+
* The bundle is loaded by the admin-ui with a native dynamic import(); its
|
|
26
|
+
* module exports are the components referenced from the plugin manifest.
|
|
27
|
+
*/
|
|
28
|
+
export function definePluginConfig(pluginName, entry = 'src/index.tsx') {
|
|
29
|
+
return defineConfig({
|
|
30
|
+
entry: { index: entry },
|
|
31
|
+
format: ['esm'],
|
|
32
|
+
platform: 'browser',
|
|
33
|
+
target: 'es2022',
|
|
34
|
+
outDir: 'dist',
|
|
35
|
+
outExtension: () => ({ js: '.js' }),
|
|
36
|
+
dts: false,
|
|
37
|
+
splitting: false,
|
|
38
|
+
sourcemap: false,
|
|
39
|
+
clean: true,
|
|
40
|
+
banner: {
|
|
41
|
+
js: `/* unchained admin-ui plugin: ${JSON.stringify(pluginName)} (esm${SDK_VERSION ? `, sdk ${SDK_VERSION}` : ''}) */`,
|
|
42
|
+
},
|
|
43
|
+
esbuildPlugins: [handleExternals(PLUGIN_EXTERNALS)],
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const SHIM_NS = 'unchained-cjs-esm-bridge';
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Unified esbuild plugin that handles shared dependencies declared as external.
|
|
51
|
+
*
|
|
52
|
+
* ESM imports (kind "import-statement") are marked external so the bare
|
|
53
|
+
* specifier is preserved in the output for the browser import map.
|
|
54
|
+
*
|
|
55
|
+
* CJS require() calls (kind "require-call") from bundled CJS dependencies
|
|
56
|
+
* (e.g. @unchainedshop/client) are redirected to virtual ESM re-export modules.
|
|
57
|
+
* Without this, esbuild wraps them as __require() which throws in the browser.
|
|
58
|
+
*
|
|
59
|
+
* This plugin replaces both tsup's built-in `external` option (which cannot
|
|
60
|
+
* distinguish import kinds) and the previous rewriteCjsExternals plugin. The
|
|
61
|
+
* admin-ui SDK build uses it too: Headless UI and recharts bundle the CJS
|
|
62
|
+
* use-sync-external-store, which require()s react.
|
|
63
|
+
*/
|
|
64
|
+
export function handleExternals(externals) {
|
|
65
|
+
const isExternal = (id) =>
|
|
66
|
+
externals.some((ext) =>
|
|
67
|
+
ext instanceof RegExp ? ext.test(id) : ext === id,
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
return {
|
|
71
|
+
name: 'unchained-handle-externals',
|
|
72
|
+
setup(build) {
|
|
73
|
+
build.onResolve({ filter: /.*/ }, (args) => {
|
|
74
|
+
if (!isExternal(args.path)) return undefined;
|
|
75
|
+
|
|
76
|
+
if (args.kind === 'require-call' || args.kind === 'require-resolve') {
|
|
77
|
+
return { path: args.path, namespace: SHIM_NS };
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return { path: args.path, external: true };
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
build.onLoad({ filter: /.*/, namespace: SHIM_NS }, (args) => {
|
|
84
|
+
const spec = JSON.stringify(args.path);
|
|
85
|
+
return {
|
|
86
|
+
contents: [
|
|
87
|
+
`import * as _ns from ${spec};`,
|
|
88
|
+
`export default _ns.default;`,
|
|
89
|
+
`export * from ${spec};`,
|
|
90
|
+
].join('\n'),
|
|
91
|
+
loader: 'js',
|
|
92
|
+
resolveDir: '.',
|
|
93
|
+
};
|
|
94
|
+
});
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import test from 'node:test';
|
|
2
|
+
import assert from 'node:assert/strict';
|
|
3
|
+
import { mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
|
|
4
|
+
import { tmpdir } from 'node:os';
|
|
5
|
+
import { join } from 'node:path';
|
|
6
|
+
import { build } from 'tsup';
|
|
7
|
+
|
|
8
|
+
import { definePluginConfig, handleExternals } from './plugin-build.mjs';
|
|
9
|
+
|
|
10
|
+
test('definePluginConfig emits native ESM browser bundles with a .js extension', () => {
|
|
11
|
+
const config = definePluginConfig('bookmark-manager');
|
|
12
|
+
const outputExtension = config.outExtension?.({ format: 'esm' });
|
|
13
|
+
|
|
14
|
+
assert.deepEqual(config.format, ['esm']);
|
|
15
|
+
assert.equal(config.platform, 'browser');
|
|
16
|
+
assert.equal(config.splitting, false);
|
|
17
|
+
assert.equal(outputExtension?.js, '.js');
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
test('handleExternals keeps shared dependencies external when bundled CJS require()s them', async (t) => {
|
|
21
|
+
const dir = mkdtempSync(join(tmpdir(), 'admin-ui-externals-'));
|
|
22
|
+
t.after(() => rmSync(dir, { recursive: true, force: true }));
|
|
23
|
+
writeFileSync(
|
|
24
|
+
join(dir, 'legacy.cjs'),
|
|
25
|
+
"const React = require('react');\nmodule.exports = React.useRef;\n",
|
|
26
|
+
);
|
|
27
|
+
writeFileSync(
|
|
28
|
+
join(dir, 'index.js'),
|
|
29
|
+
"import useRef from './legacy.cjs';\nexport default useRef;\n",
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
await build({
|
|
33
|
+
entry: { index: join(dir, 'index.js') },
|
|
34
|
+
format: ['esm'],
|
|
35
|
+
platform: 'browser',
|
|
36
|
+
outDir: join(dir, 'dist'),
|
|
37
|
+
config: false,
|
|
38
|
+
silent: true,
|
|
39
|
+
esbuildPlugins: [handleExternals(['react'])],
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
const output = readFileSync(join(dir, 'dist', 'index.js'), 'utf-8');
|
|
43
|
+
// tsup's `external` option would emit __require("react"), which throws in the browser.
|
|
44
|
+
assert.doesNotMatch(output, /__require\(["']react["']\)/);
|
|
45
|
+
assert.match(output, /from ["']react["']/);
|
|
46
|
+
});
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Synchronously loadable source of truth for the admin-ui plugin module graph.
|
|
3
|
+
*
|
|
4
|
+
* Keep this file data-only: the API loads it through the package's `require`
|
|
5
|
+
* condition when plugins are enabled, while plugin-runtime.mjs exposes the
|
|
6
|
+
* same values to ESM consumers and the browser build.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
const SHARED_DEP_SHIMS = {
|
|
10
|
+
react: 'shims/react.js',
|
|
11
|
+
'react/jsx-runtime': 'shims/react-jsx-runtime.js',
|
|
12
|
+
'react-dom': 'shims/react-dom.js',
|
|
13
|
+
'react-dom/client': 'shims/react-dom-client.js',
|
|
14
|
+
'@apollo/client': 'shims/apollo-client.js',
|
|
15
|
+
'@apollo/client/react': 'shims/apollo-client-react.js',
|
|
16
|
+
'next/router': 'shims/next-router.js',
|
|
17
|
+
'next/link': 'shims/next-link.js',
|
|
18
|
+
'next/image': 'shims/next-image.js',
|
|
19
|
+
'next/head': 'shims/next-head.js',
|
|
20
|
+
'react-intl': 'shims/react-intl.js',
|
|
21
|
+
'react-toastify': 'shims/react-toastify.js',
|
|
22
|
+
'react-hook-form': 'shims/react-hook-form.js',
|
|
23
|
+
'@unchainedshop/admin-ui/plugins': 'shims/admin-ui-plugins.js',
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const SDK_ENTRY_KEYS = [
|
|
27
|
+
'ui',
|
|
28
|
+
'form',
|
|
29
|
+
'hooks',
|
|
30
|
+
'providers',
|
|
31
|
+
'modal',
|
|
32
|
+
'theme',
|
|
33
|
+
'modules/accounts',
|
|
34
|
+
'modules/assortment',
|
|
35
|
+
'modules/country',
|
|
36
|
+
'modules/currency',
|
|
37
|
+
'modules/delivery-provider',
|
|
38
|
+
'modules/enrollment',
|
|
39
|
+
'modules/event',
|
|
40
|
+
'modules/filter',
|
|
41
|
+
'modules/language',
|
|
42
|
+
'modules/order',
|
|
43
|
+
'modules/payment-providers',
|
|
44
|
+
'modules/product',
|
|
45
|
+
'modules/product-review',
|
|
46
|
+
'modules/quotation',
|
|
47
|
+
'modules/token',
|
|
48
|
+
'modules/warehousing-providers',
|
|
49
|
+
'modules/work',
|
|
50
|
+
];
|
|
51
|
+
|
|
52
|
+
const SDK_MODULE_FILES = Object.fromEntries(
|
|
53
|
+
SDK_ENTRY_KEYS.map((key) => [`@unchainedshop/admin-ui/${key}`, `${key}.js`]),
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
const PLUGIN_EXTERNALS = [
|
|
57
|
+
...Object.keys(SHARED_DEP_SHIMS),
|
|
58
|
+
/^@unchainedshop\/admin-ui\//,
|
|
59
|
+
];
|
|
60
|
+
|
|
61
|
+
module.exports = {
|
|
62
|
+
SHARED_DEP_SHIMS,
|
|
63
|
+
SDK_ENTRY_KEYS,
|
|
64
|
+
SDK_MODULE_FILES,
|
|
65
|
+
PLUGIN_EXTERNALS,
|
|
66
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Bare specifiers provided by the host app, mapped to their shim file in dist/. */
|
|
2
|
+
export declare const SHARED_DEP_SHIMS: Record<string, string>;
|
|
3
|
+
|
|
4
|
+
/** SDK entry keys built by tsup.config.ts (excluding shim entries). */
|
|
5
|
+
export declare const SDK_ENTRY_KEYS: string[];
|
|
6
|
+
|
|
7
|
+
/** SDK subpath exports resolvable from plugin bundles, mapped to their dist file. */
|
|
8
|
+
export declare const SDK_MODULE_FILES: Record<string, string>;
|
|
9
|
+
|
|
10
|
+
/** All bare specifiers a plugin bundle may leave external. */
|
|
11
|
+
export declare const PLUGIN_EXTERNALS: (string | RegExp)[];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single source of truth for the admin-ui plugin runtime module graph.
|
|
3
|
+
*
|
|
4
|
+
* Plugins are built as pure ESM bundles (see plugin-build.mjs) with shared
|
|
5
|
+
* dependencies left as bare import specifiers. At runtime the browser resolves
|
|
6
|
+
* those specifiers through an import map:
|
|
7
|
+
*
|
|
8
|
+
* - Host-owned dependencies (react, @apollo/client, ...) map to tiny shim
|
|
9
|
+
* modules (built from src/sdk/shims/) that re-export the running admin-ui
|
|
10
|
+
* app's instances via window.__UNCHAINED_PLUGIN_DEPS__, so plugins share the
|
|
11
|
+
* exact same React/Apollo instances as the host.
|
|
12
|
+
* - SDK subpaths (@unchainedshop/admin-ui/ui, ...) map to the prebuilt ESM
|
|
13
|
+
* files in dist/, served by the engine under /admin-ui-sdk/.
|
|
14
|
+
*
|
|
15
|
+
* This file is imported by plugin build configs (via tsup, plain Node ESM)
|
|
16
|
+
* and the browser build. The data lives in the dependency-free CommonJS
|
|
17
|
+
* module so @unchainedshop/api can load it synchronously and lazily through
|
|
18
|
+
* the package's `require` condition.
|
|
19
|
+
*/
|
|
20
|
+
import runtime from './plugin-runtime.cjs';
|
|
21
|
+
|
|
22
|
+
export const {
|
|
23
|
+
SHARED_DEP_SHIMS,
|
|
24
|
+
SDK_ENTRY_KEYS,
|
|
25
|
+
SDK_MODULE_FILES,
|
|
26
|
+
PLUGIN_EXTERNALS,
|
|
27
|
+
} = runtime;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import assert from 'node:assert/strict';
|
|
2
|
+
import { createRequire } from 'node:module';
|
|
3
|
+
import test from 'node:test';
|
|
4
|
+
import {
|
|
5
|
+
PLUGIN_EXTERNALS,
|
|
6
|
+
SDK_ENTRY_KEYS,
|
|
7
|
+
SHARED_DEP_SHIMS,
|
|
8
|
+
} from './plugin-runtime.mjs';
|
|
9
|
+
import * as pluginAPI from './plugins.mjs';
|
|
10
|
+
|
|
11
|
+
test('shares react-hook-form instead of the removed Formik runtime', () => {
|
|
12
|
+
assert.equal(SHARED_DEP_SHIMS['react-hook-form'], 'shims/react-hook-form.js');
|
|
13
|
+
assert.equal('formik' in SHARED_DEP_SHIMS, false);
|
|
14
|
+
assert.equal(PLUGIN_EXTERNALS.includes('react-hook-form'), true);
|
|
15
|
+
assert.equal(PLUGIN_EXTERNALS.includes('formik'), false);
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
test('exposes the same runtime graph to import and require consumers', () => {
|
|
19
|
+
const require = createRequire(import.meta.url);
|
|
20
|
+
const commonJSRuntime = require('@unchainedshop/admin-ui/plugin-runtime');
|
|
21
|
+
|
|
22
|
+
assert.deepEqual(commonJSRuntime.SHARED_DEP_SHIMS, SHARED_DEP_SHIMS);
|
|
23
|
+
assert.deepEqual(commonJSRuntime.SDK_ENTRY_KEYS, SDK_ENTRY_KEYS);
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
test('makes every host plugin API export visible to shim generation', () => {
|
|
27
|
+
assert.deepEqual(Object.keys(pluginAPI).sort(), ['definePlugin', 'usePluginRuntime']);
|
|
28
|
+
assert.throws(
|
|
29
|
+
() => pluginAPI.usePluginRuntime(),
|
|
30
|
+
/only available inside an admin-ui plugin component/,
|
|
31
|
+
);
|
|
32
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Runtime-resolvable definePlugin so the engine and examples can register
|
|
2
|
+
// admin-ui plugins on a fresh checkout without building admin-ui first.
|
|
3
|
+
// The corresponding types (PluginConfig, slot configs, …) live in plugins.ts
|
|
4
|
+
// and are exposed through the package "types" condition. Keep this identity
|
|
5
|
+
// helper in sync with the definePlugin declaration in plugins.ts.
|
|
6
|
+
export function definePlugin(config) {
|
|
7
|
+
return config;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// The browser import map redirects this module to a host shim that supplies
|
|
11
|
+
// the real hook. Keeping the export here makes the runtime surface visible to
|
|
12
|
+
// shim generation and gives accidental server-side calls a useful failure.
|
|
13
|
+
export function usePluginRuntime() {
|
|
14
|
+
throw new Error(
|
|
15
|
+
'usePluginRuntime is only available inside an admin-ui plugin component at runtime',
|
|
16
|
+
);
|
|
17
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
export interface EntityTabProps {
|
|
2
|
+
entity: any;
|
|
3
|
+
entityId: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export interface EntityDetailProps {
|
|
7
|
+
entityId: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export type EntityCreateProps = Record<string, never>;
|
|
11
|
+
|
|
12
|
+
export type EntityListProps = Record<string, never>;
|
|
13
|
+
|
|
14
|
+
export type PageProps = Record<string, never>;
|
|
15
|
+
|
|
16
|
+
export type DashboardWidgetProps = Record<string, never>;
|
|
17
|
+
|
|
18
|
+
export interface PluginRuntimeContext {
|
|
19
|
+
pluginName: string;
|
|
20
|
+
version?: string;
|
|
21
|
+
slotId: string;
|
|
22
|
+
config: Record<string, any>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Keep in sync with packages/api/src/adminUiPlugins.ts AdminUIPluginConfig
|
|
26
|
+
|
|
27
|
+
export interface PluginEntityConfig {
|
|
28
|
+
path: string;
|
|
29
|
+
label: string;
|
|
30
|
+
icon?: string;
|
|
31
|
+
requiredRole?: string;
|
|
32
|
+
sortOrder?: number;
|
|
33
|
+
components: {
|
|
34
|
+
list: string;
|
|
35
|
+
detail: string;
|
|
36
|
+
create?: string;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface PluginPageConfig {
|
|
41
|
+
path: string;
|
|
42
|
+
label: string;
|
|
43
|
+
icon?: string;
|
|
44
|
+
requiredRole?: string;
|
|
45
|
+
sortOrder?: number;
|
|
46
|
+
component: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface PluginTabConfig {
|
|
50
|
+
label: string;
|
|
51
|
+
component: string;
|
|
52
|
+
requiredRole?: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface PluginWidgetConfig {
|
|
56
|
+
component: string;
|
|
57
|
+
width?: 'full' | 'half' | 'third';
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface PluginSlots {
|
|
61
|
+
entities?: PluginEntityConfig[];
|
|
62
|
+
pages?: PluginPageConfig[];
|
|
63
|
+
'dashboard:widgets'?: PluginWidgetConfig[];
|
|
64
|
+
'product:tabs'?: PluginTabConfig[];
|
|
65
|
+
'assortment:tabs'?: PluginTabConfig[];
|
|
66
|
+
'filter:tabs'?: PluginTabConfig[];
|
|
67
|
+
'user:tabs'?: PluginTabConfig[];
|
|
68
|
+
'order:tabs'?: PluginTabConfig[];
|
|
69
|
+
[key: string]:
|
|
70
|
+
| PluginEntityConfig[]
|
|
71
|
+
| PluginPageConfig[]
|
|
72
|
+
| PluginWidgetConfig[]
|
|
73
|
+
| PluginTabConfig[]
|
|
74
|
+
| undefined;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface PluginNavigationGroup {
|
|
78
|
+
label: string;
|
|
79
|
+
icon?: string;
|
|
80
|
+
requiredRole?: string;
|
|
81
|
+
sortOrder?: number;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export interface PluginConfig {
|
|
85
|
+
name: string;
|
|
86
|
+
version?: string;
|
|
87
|
+
bundlePath: string;
|
|
88
|
+
/** Optional: group all plugin nav items under a collapsible sidebar section */
|
|
89
|
+
navigation?: PluginNavigationGroup;
|
|
90
|
+
slots: PluginSlots;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function definePlugin(config: PluginConfig): PluginConfig {
|
|
94
|
+
return config;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* The browser import map replaces this SDK placeholder with the host hook.
|
|
99
|
+
* Calling it outside a plugin component is unsupported.
|
|
100
|
+
*/
|
|
101
|
+
export function usePluginRuntime(): PluginRuntimeContext {
|
|
102
|
+
throw new Error(
|
|
103
|
+
'usePluginRuntime is only available inside an admin-ui plugin component at runtime',
|
|
104
|
+
);
|
|
105
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as ThemeWrapper } from '../modules/common/components/ThemeWrapper';
|
|
2
|
+
export { ThemeContext } from '../modules/common/components/ThemeWrapper';
|
|
3
|
+
export type { Theme } from '../modules/common/components/ThemeWrapper';
|
|
4
|
+
export { default as ModalWrapper } from '../modules/modal/components/ModalWrapper';
|