@unchainedshop/admin-ui 4.8.28 → 4.8.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-3L6EZQ6P.js +135 -0
- package/dist/chunk-5WPFHQZN.js +388 -0
- package/dist/chunk-BMDNY67T.js +22547 -0
- package/dist/{chunk-JAVEZY3Q.js → chunk-BOMSMJF2.js} +17 -5
- package/dist/{chunk-2RTX42IE.js → chunk-E77YIMGR.js} +2 -2
- package/dist/{chunk-XHOCXPD5.js → chunk-F6LBNV3H.js} +1 -1
- package/dist/chunk-FDHXLNZQ.js +44 -0
- package/dist/{chunk-XJBPMIC4.js → chunk-HERLM47Z.js} +81 -56
- package/dist/{chunk-MSPWYMDY.js → chunk-HJKRGBDG.js} +87 -58
- package/dist/{chunk-7PPOGX7R.js → chunk-I64TXIE7.js} +48 -11
- package/dist/chunk-ICJH36K4.js +326 -0
- package/dist/chunk-IWKDBADX.js +73 -0
- package/dist/{chunk-QNLGYFV7.js → chunk-IYKPRAWC.js} +4 -0
- package/dist/chunk-J23QSWDL.js +8 -0
- package/dist/chunk-KRIRF7F6.js +76 -0
- package/dist/chunk-OTXM2UCD.js +19 -0
- package/dist/chunk-PJLYVMUM.js +3308 -0
- package/dist/{chunk-SRAAKMWY.js → chunk-PUI5BIKO.js} +4 -2
- package/dist/chunk-QHR23GVH.js +1099 -0
- package/dist/chunk-VBO377AY.js +14 -0
- package/dist/chunk-VYEXPG3M.js +107 -0
- package/dist/{chunk-4VNS5WPM.js → chunk-WPLOTFGW.js} +7 -8
- package/dist/{chunk-VDKQGOMV.js → chunk-ZUOVKRKC.js} +118 -1
- package/dist/components/ui/Badge.d.ts.map +1 -1
- package/dist/components/ui/BreadCrumbs.d.ts.map +1 -1
- package/dist/components/ui/Pagination.d.ts.map +1 -1
- package/dist/components/ui/form/ChoicesField.d.ts.map +1 -1
- package/dist/components/ui/form/Combobox.d.ts.map +1 -1
- package/dist/components/ui/form/TextField.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 +1808 -27501
- package/dist/gql/operation-types.d.ts +201 -5
- package/dist/gql/operation-types.d.ts.map +1 -1
- package/dist/gql/schema-types.d.ts +63 -7
- 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 +183 -3
- package/dist/modules/assortment.js +83 -4
- 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/data/miscellaneous.d.ts +1 -0
- package/dist/modules/common/data/miscellaneous.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 +66 -9
- package/dist/modules/event.js +1 -1
- package/dist/modules/filter.js +52 -3
- 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 +2 -2
- package/dist/modules/payment-providers.js +1 -1
- package/dist/modules/product-review.js +4 -4
- package/dist/modules/product.js +5000 -11
- package/dist/modules/quotation.js +8 -1
- package/dist/modules/token.js +3 -3
- package/dist/modules/warehousing-providers.js +1 -1
- package/dist/modules/work.js +23 -111
- 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 +3476 -3103
- 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/{lMHTn15MSw1RJOw-DD9ir → F8ReqaxPvLqFJ2DaPfMdn}/_buildManifest.js +61 -61
- package/out/_next/static/chunks/{2r9etl_ej7yq8.js → 0-mytn4v5bu5h.js} +3 -3
- package/out/_next/static/chunks/{33tjpl4-mac6i.js → 0060t3kg_i0lf.js} +3 -3
- package/out/_next/static/chunks/{2u435g-3ydo_e.js → 0186bg0b60cid.js} +3 -3
- package/out/_next/static/chunks/{17rvdo97_73-r.js → 049clkw76lm67.js} +2 -2
- package/out/_next/static/chunks/{2ay53yz_k-gka.js → 057evs7qr5y-t.js} +2 -2
- package/out/_next/static/chunks/{2mq7-oeknij50.js → 08tyybz20igty.js} +3 -3
- package/out/_next/static/chunks/{3nnzjetbwg4mr.js → 0_02skyivjqh6.js} +2 -2
- package/out/_next/static/chunks/{1u9myfa-qi11x.js → 0cblqqpscyy7w.js} +2 -2
- package/out/_next/static/chunks/{3js2_oj1o86yv.js → 0ibp5q64hnd88.js} +3 -3
- package/out/_next/static/chunks/{3gl6y4hg4xqh1.js → 0ichlp5c67dko.js} +2 -2
- package/out/_next/static/chunks/{1qnsi9q49l6yt.js → 0iui_zfuxfa45.js} +3 -3
- package/out/_next/static/chunks/{2cl2qh-t0bp-x.js → 0k6z6zl_zxqp7.js} +2 -2
- package/out/_next/static/chunks/{3t-cwqu-9qfvs.js → 0lutmpv07icdg.js} +2 -2
- package/out/_next/static/chunks/{1wrffo12-xpad.js → 0nhczsa2mm354.js} +4 -4
- package/out/_next/static/chunks/{2yjnzxw72qkwa.js → 0ryqvctymlr3k.js} +2 -2
- package/out/_next/static/chunks/{0x34_uvhgol1o.js → 0sh5256hzmj3b.js} +3 -3
- package/out/_next/static/chunks/{1yi1a106ht-nz.js → 0srpqs12m-bwy.js} +2 -2
- package/out/_next/static/chunks/{42gvqnnznu5d5.js → 0uv4d5f9o8wu1.js} +3 -3
- package/out/_next/static/chunks/{1dj6rtr2zagxl.js → 0vx_1vxljh4tn.js} +2 -2
- package/out/_next/static/chunks/{1u56ggvtfz1pw.js → 0vxe9bw7ffqy2.js} +5 -5
- package/out/_next/static/chunks/{1w30h0skp16nw.js → 18kae_yjyhjwf.js} +2 -2
- package/out/_next/static/chunks/{0t-8fvpr3gwkw.js → 1aegvtb5jv57q.js} +3 -3
- package/out/_next/static/chunks/{2vv2odme20_bj.js → 1cp4-dvxowp4c.js} +2 -2
- package/out/_next/static/chunks/{3e2sowyws346l.js → 1g8f6jrb9cp9v.js} +2 -2
- package/out/_next/static/chunks/{2slrs8mk6-_qy.js → 1gy9ae4fpd6jm.js} +2 -2
- package/out/_next/static/chunks/{2_kc34rl9smyf.js → 1hq9yt63076pk.js} +3 -3
- package/out/_next/static/chunks/{26qclo9iliv0v.js → 1k-cn_5ey1u62.js} +2 -2
- package/out/_next/static/chunks/{0hg96-q-sy8p3.js → 1k0mvn915uz76.js} +2 -2
- package/out/_next/static/chunks/{1vmcguc9yb6gq.js → 1l4snbkce_jb6.js} +2 -2
- package/out/_next/static/chunks/{24zql9mxp7je7.js → 1vk6h4qps69vq.js} +2 -2
- package/out/_next/static/chunks/1vx8_u7-f7q8u.js +28 -0
- package/out/_next/static/chunks/{2qocgb90m12d8.js → 217_5onj-woma.js} +1 -1
- package/out/_next/static/chunks/{2s6eb6877qk5z.js → 21o2yfegozc0m.js} +3 -3
- package/out/_next/static/chunks/{11496j8y5izl0.js → 22w2ovaffle-i.js} +3 -3
- package/out/_next/static/chunks/{22ial6oluoicg.js → 234pfdqctlnyt.js} +13 -13
- package/out/_next/static/chunks/{23thyqnxwb_h4.js → 25d8wr34sbm__.js} +2 -2
- package/out/_next/static/chunks/{06a1c2sikfkdk.js → 29w1exzy704_7.js} +3 -3
- package/out/_next/static/chunks/{2impwm9m10-y5.js → 2c4vy8ofex0ti.js} +2 -2
- package/out/_next/static/chunks/{3v-4df_kpu7wl.js → 2g39exixp92yf.js} +2 -2
- package/out/_next/static/chunks/{0w6403ca0wd40.js → 2hvt_8j6jkd_n.js} +3 -3
- package/out/_next/static/chunks/{0irr04sbnadk8.js → 2iuznbar_ttrh.js} +2 -2
- package/out/_next/static/chunks/{0fiwxqhlo_suy.js → 2jjgby8cd1gdj.js} +4 -4
- package/out/_next/static/chunks/{2puhcafuku-tt.js → 2lwxs_ly4bz1o.js} +4 -4
- package/out/_next/static/chunks/2rtyphk0o1hbr.js +5 -0
- package/out/_next/static/chunks/{1zh3wmaf2a0wq.js → 2sukt9l-1md8_.js} +6 -6
- package/out/_next/static/chunks/{44hx7evqwmlix.js → 2vt52_i-6cdbh.js} +3 -3
- package/out/_next/static/chunks/{1zmw93-y4onb8.js → 38ipj45w-tqay.js} +3 -3
- package/out/_next/static/chunks/{16b-fme2lvyik.js → 39634va9fx9s2.js} +2 -2
- package/out/_next/static/chunks/{0g1ikcsz2gw8d.js → 3a0hqx7ohm5lh.js} +2 -2
- package/out/_next/static/chunks/{0amvl_hv6wa7d.js → 3dr_oa5hx41is.js} +2 -2
- package/out/_next/static/chunks/{1pv3s5pi4mn-7.js → 3e7w6ko5psik7.js} +5 -5
- package/out/_next/static/chunks/{1dv2thnikolnz.js → 3eow7lw1727kt.js} +2 -2
- package/out/_next/static/chunks/{1s5id04nxpmov.js → 3f1gb4_hyhtho.js} +3 -3
- package/out/_next/static/chunks/{22mbms24up6d4.js → 3g4qj6_qh97q_.js} +3 -3
- package/out/_next/static/chunks/{1ikc8-ca87tw_.js → 3jcf4ei6zgnca.js} +3 -3
- package/out/_next/static/chunks/{1asyhd18d8b19.js → 3mnt471ayfsvh.js} +2 -2
- package/out/_next/static/chunks/{3e-hohr5rbfgs.js → 3ondw3-zthjz5.js} +4 -4
- package/out/_next/static/chunks/{31yuk0tzdgnsq.js → 3ra_41-fw410n.js} +3 -3
- package/out/_next/static/chunks/{17t_4qy79-xou.js → 3tq-bb0j1_lpu.js} +2 -2
- package/out/_next/static/chunks/{3dshohnaq5dpb.js → 3ww_p-agyd9u-.js} +2 -2
- package/out/_next/static/chunks/{3tn3fjkayia2l.js → 3yz34q3ulli7q.js} +2 -2
- package/out/_next/static/chunks/{0pp2j5ys0s75h.js → 3zs002htik_8l.js} +2 -2
- package/out/_next/static/chunks/{0bx11n-vs9rye.js → 41fbmiggueudh.js} +3 -3
- package/out/_next/static/chunks/{194e8b6x5qm5k.js → 43e0fp97w800k.js} +2 -2
- package/out/_next/static/chunks/{389rjxe1t1mxi.js → 43gv4x1sfyb5l.js} +2 -2
- package/out/_next/static/chunks/{2ypcj5e-tv2ki.js → 44r51e87s4z_d.js} +2 -2
- package/out/_next/static/chunks/{turbopack-1kg_x57lhnhln.js → turbopack-01866gjdddrxa.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0-huij9pkr6i5.js → turbopack-08ttg7vxsdnsj.js} +1 -1
- package/out/_next/static/chunks/{turbopack-37z02xo4d9761.js → turbopack-0a3j0ezn8okfg.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0pdfslh_xau4v.js → turbopack-0anbjm4c1j4u4.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0wc1wpl3t5cbf.js → turbopack-0ga3wfg-oyyst.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2v6rz3zo07si0.js → turbopack-0m3lvbvrn923g.js} +1 -1
- package/out/_next/static/chunks/{turbopack-42kawbzqb610r.js → turbopack-0pmjdjcdx7cqp.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3z_pmy149cb3t.js → turbopack-0ptvhnhsw0_c7.js} +1 -1
- package/out/_next/static/chunks/turbopack-0s4b5r_1d8yqv.js +1 -0
- package/out/_next/static/chunks/{turbopack-0mp6vcjbi4oj6.js → turbopack-0sihqflu4qpvw.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3467hrkyb1r4-.js → turbopack-0tc31uax4buqq.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0ah23ustnbjgw.js → turbopack-0w2rzh4i3j2og.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2w27fkgilqbl3.js → turbopack-10ldzl5n31zl-.js} +1 -1
- package/out/_next/static/chunks/{turbopack-259f81vw0sjro.js → turbopack-19e_bi5k2rqyy.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3p03o8o_0h4o1.js → turbopack-19i6-4a5o4fil.js} +1 -1
- package/out/_next/static/chunks/turbopack-19vr9o5829d-f.js +1 -0
- package/out/_next/static/chunks/{turbopack-14elmv-0t42r4.js → turbopack-19yw5qwon7l57.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3v-9xb14o2wcf.js → turbopack-1cx5i7_gdoz5k.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0hwktepjs4shu.js → turbopack-1d-c7awe26kf5.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2dp-kk65cjuz1.js → turbopack-1l1aen9tojmq4.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2u8czufggehlj.js → turbopack-1o1rar8ouv6h9.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3nxt9w32_n_vs.js → turbopack-1od_4a7nj02l4.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2x4qn8b3l97el.js → turbopack-1r_0o22d_puxo.js} +1 -1
- package/out/_next/static/chunks/{turbopack-11i280gb7ytob.js → turbopack-1wx5785osz26z.js} +1 -1
- package/out/_next/static/chunks/{turbopack-31liqa7xywfc3.js → turbopack-21vayl2_q4r5u.js} +1 -1
- package/out/_next/static/chunks/{turbopack-374ar5091nfoc.js → turbopack-23nr2ioaqw90j.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3aw_3x16wx0hg.js → turbopack-23u97wxsuqiqb.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2rnunhgad49uw.js → turbopack-24ylsu2au7hg1.js} +1 -1
- package/out/_next/static/chunks/{turbopack-22l2qxvuvnfnm.js → turbopack-28_dvdmt6lvhn.js} +1 -1
- package/out/_next/static/chunks/{turbopack-37k0iid3ve75q.js → turbopack-2bo7hmw4eirxu.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1j4b2o2gyndaw.js → turbopack-2dk8ur1fvwxzj.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3d4st1erykui5.js → turbopack-2e_wy0ffi64id.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0a9my88c0do8o.js → turbopack-2fuk9oepxr5n0.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2kbsoz95aykk8.js → turbopack-2g2viapamsvwe.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3qenf92gnhnqu.js → turbopack-2ga09m38zacev.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2dog_ytiydz1b.js → turbopack-2pxtve7lryqre.js} +1 -1
- package/out/_next/static/chunks/{turbopack-400v7uvt-ygyn.js → turbopack-2qbfd_-7v5dbo.js} +1 -1
- package/out/_next/static/chunks/{turbopack-25n3ygfcffvqv.js → turbopack-2rz_y4ejrvafp.js} +1 -1
- package/out/_next/static/chunks/{turbopack-41jswgtq4l3-n.js → turbopack-2u0ls0liblo_9.js} +1 -1
- package/out/_next/static/chunks/{turbopack-430a09gmn8rwm.js → turbopack-2u_328z53ed9p.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2d2i6sp7ig7ar.js → turbopack-2xfom16ggx1i3.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0-h3wxx12zewd.js → turbopack-2ycfwit0p-fkf.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0p995f9piwklo.js → turbopack-2yekm5ij2g-aw.js} +1 -1
- package/out/_next/static/chunks/{turbopack-32aublis-jlvx.js → turbopack-3-w-v8og1lok2.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3s9690f4fp1sr.js → turbopack-30qkgccwlkv7n.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0x-489k903f9f.js → turbopack-36bl9-rerhcfg.js} +1 -1
- package/out/_next/static/chunks/{turbopack-11mgtsuzuth10.js → turbopack-37a6lyjyz7fts.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0wu_ea8477kfb.js → turbopack-37lb9ujef-ujm.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3wy9kdvqtyrqr.js → turbopack-39nctu3yv9iv4.js} +1 -1
- package/out/_next/static/chunks/{turbopack-37465j0f7qzui.js → turbopack-3_mmmbs60vr14.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0iqoh65_n4y31.js → turbopack-3_o3qz69ih0uu.js} +1 -1
- package/out/_next/static/chunks/{turbopack-18b89oxgeg1p3.js → turbopack-3cv39r7v3s2gr.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0ca90b_8se2ws.js → turbopack-3cv3hgsoo_z1k.js} +1 -1
- package/out/_next/static/chunks/{turbopack-00rnle9d3h5j8.js → turbopack-3pgmc-lv74ewz.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3zk-yr-2ktefz.js → turbopack-3uj40sz7i7jg0.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1m20zbo-8iwfh.js → turbopack-3v4nxmdavly34.js} +1 -1
- package/out/_next/static/chunks/{turbopack-35lc2tzfqfnq3.js → turbopack-3vfm6fp92up6y.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0bj4v4kbzidiu.js → turbopack-3vyi51cuxeowy.js} +1 -1
- package/out/_next/static/chunks/{turbopack-00ka03s4zfhmk.js → turbopack-3w26eu86co02z.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1sy__tr_jpy9p.js → turbopack-3zc0h1216mtm2.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0q1m4v0r5_pw-.js → turbopack-4166pmk5_y_4x.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0m53ts1akyqg9.js → turbopack-431y1sh-m_0mp.js} +1 -1
- package/out/_offline/index.html +2 -2
- package/out/account/forgot-password/index.html +2 -2
- package/out/account/index.html +2 -2
- package/out/assortments/AssortmentDetailPage/index.html +2 -2
- package/out/assortments/index.html +2 -2
- package/out/assortments/new/index.html +2 -2
- package/out/copilot/index.html +2 -2
- package/out/country/CountryDetailPage/index.html +2 -2
- package/out/country/index.html +2 -2
- package/out/country/new/index.html +2 -2
- package/out/currency/CurrencyDetailPage/index.html +2 -2
- package/out/currency/index.html +2 -2
- package/out/currency/new/index.html +2 -2
- package/out/delivery-provider/DeliveryProviderDetailPage/index.html +2 -2
- package/out/delivery-provider/index.html +2 -2
- package/out/delivery-provider/new/index.html +2 -2
- package/out/enrollments/EnrollmentDetailPage/index.html +2 -2
- package/out/enrollments/index.html +2 -2
- package/out/events/EventDetailPage/index.html +2 -2
- package/out/events/index.html +2 -2
- package/out/exports/index.html +2 -2
- package/out/external/index.html +2 -2
- package/out/filters/FilterDetailPage/index.html +2 -2
- package/out/filters/index.html +2 -2
- package/out/filters/new/index.html +2 -2
- package/out/index.html +2 -2
- package/out/install/index.html +2 -2
- package/out/language/LanguageDetailPage/index.html +2 -2
- package/out/language/index.html +2 -2
- package/out/language/new/index.html +2 -2
- package/out/log-in/index.html +2 -2
- package/out/orders/OrderDetailPage/index.html +2 -2
- package/out/orders/index.html +2 -2
- package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
- package/out/payment-provider/index.html +2 -2
- package/out/payment-provider/new/index.html +2 -2
- package/out/products/ProductDetailPage/index.html +2 -2
- package/out/products/index.html +2 -2
- package/out/products/new/index.html +2 -2
- package/out/quotations/QuotationDetailPage/index.html +2 -2
- package/out/quotations/index.html +2 -2
- package/out/reset-password/index.html +2 -2
- package/out/sign-up/index.html +2 -2
- package/out/styleguide/index.html +2 -2
- package/out/tokens/TokenDetailPage/index.html +2 -2
- package/out/tokens/index.html +2 -2
- package/out/users/UserDetailPage/index.html +2 -2
- package/out/users/index.html +2 -2
- package/out/users/new/index.html +2 -2
- package/out/verify-email/index.html +2 -2
- package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
- package/out/warehousing-provider/index.html +2 -2
- package/out/warehousing-provider/new/index.html +2 -2
- package/out/works/WorkDetailPage/index.html +2 -2
- package/out/works/WorkQueueListView/index.html +2 -2
- package/out/works/index.html +2 -2
- package/out/works/management/index.html +2 -2
- package/package.json +1 -1
- 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/1f8hl62epp2bs.js +0 -5
- package/out/_next/static/chunks/2t724bghemjmf.js +0 -28
- package/out/_next/static/chunks/turbopack-2ah1mf3i_019l.js +0 -1
- package/out/_next/static/chunks/turbopack-3xy1pj-av41-3.js +0 -1
- /package/out/_next/static/{lMHTn15MSw1RJOw-DD9ir → F8ReqaxPvLqFJ2DaPfMdn}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{lMHTn15MSw1RJOw-DD9ir → F8ReqaxPvLqFJ2DaPfMdn}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { useAddWork_default, GetWorkQuery } from './chunk-VYEXPG3M.js';
|
|
2
|
+
import { useState, useCallback } from 'react';
|
|
3
|
+
import { toast } from 'react-toastify';
|
|
4
|
+
import { useIntl } from 'react-intl';
|
|
5
|
+
import { useApolloClient } from '@apollo/client/react';
|
|
6
|
+
import { useRouter } from 'next/router';
|
|
7
|
+
|
|
8
|
+
var useCSVExport = () => {
|
|
9
|
+
const [isExporting, setIsExporting] = useState(false);
|
|
10
|
+
const client = useApolloClient();
|
|
11
|
+
const router = useRouter();
|
|
12
|
+
const { addWork } = useAddWork_default();
|
|
13
|
+
const { formatMessage } = useIntl();
|
|
14
|
+
const getWorkStatus = useCallback(
|
|
15
|
+
async (workId) => {
|
|
16
|
+
const { data } = await client.query({
|
|
17
|
+
query: GetWorkQuery(),
|
|
18
|
+
variables: { workId },
|
|
19
|
+
fetchPolicy: "network-only"
|
|
20
|
+
});
|
|
21
|
+
return data?.work ?? null;
|
|
22
|
+
},
|
|
23
|
+
[client]
|
|
24
|
+
);
|
|
25
|
+
const exportCSV = useCallback(
|
|
26
|
+
async ({ type, pollInterval = 2e3, ...params }) => {
|
|
27
|
+
setIsExporting(true);
|
|
28
|
+
try {
|
|
29
|
+
const worker = await addWork({
|
|
30
|
+
type: "BULK_EXPORT" /* BulkExport */,
|
|
31
|
+
input: { type, ...params }
|
|
32
|
+
});
|
|
33
|
+
const workId = worker?.data?.addWork?._id;
|
|
34
|
+
if (!workId) throw new Error("Failed to create export work");
|
|
35
|
+
await new Promise((resolve, reject) => {
|
|
36
|
+
const interval = setInterval(async () => {
|
|
37
|
+
try {
|
|
38
|
+
const work = await getWorkStatus(workId);
|
|
39
|
+
if (!work) throw new Error("Work not found");
|
|
40
|
+
if (work.status === "SUCCESS" /* Success */ || work.status === "FAILED" /* Failed */) {
|
|
41
|
+
clearInterval(interval);
|
|
42
|
+
if (work.status === "SUCCESS" /* Success */ && work.success) {
|
|
43
|
+
router.push(`/exports?workId=${work._id}`);
|
|
44
|
+
resolve(work);
|
|
45
|
+
} else {
|
|
46
|
+
reject(work.error || new Error("Export failed"));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
} catch (err) {
|
|
50
|
+
clearInterval(interval);
|
|
51
|
+
reject(err);
|
|
52
|
+
}
|
|
53
|
+
}, pollInterval);
|
|
54
|
+
});
|
|
55
|
+
} catch (error) {
|
|
56
|
+
console.error("Export failed:", error);
|
|
57
|
+
toast.error(
|
|
58
|
+
formatMessage({
|
|
59
|
+
id: "export_failed",
|
|
60
|
+
defaultMessage: "Export failed. Please try again."
|
|
61
|
+
})
|
|
62
|
+
);
|
|
63
|
+
return null;
|
|
64
|
+
} finally {
|
|
65
|
+
setIsExporting(false);
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
[addWork, getWorkStatus, router, formatMessage]
|
|
69
|
+
);
|
|
70
|
+
return { isExporting, exportCSV };
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export { useCSVExport };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// src/modules/common/utils/sharedContext.ts
|
|
2
|
+
function sharedContext(name, context) {
|
|
3
|
+
if (typeof window === "undefined") return context;
|
|
4
|
+
const registry = window.__UNCHAINED_SHARED_CONTEXTS__ ??= {};
|
|
5
|
+
return registry[name] ??= context;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export { sharedContext };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { useIntl } from 'react-intl';
|
|
2
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
// src/modules/modal/components/DangerMessage.tsx
|
|
5
|
+
var DangerMessage = ({
|
|
6
|
+
onOkClick,
|
|
7
|
+
onCancelClick,
|
|
8
|
+
okText = null,
|
|
9
|
+
cancelText = null,
|
|
10
|
+
headerText = null,
|
|
11
|
+
message = null,
|
|
12
|
+
icon = null,
|
|
13
|
+
close = null,
|
|
14
|
+
loading = false
|
|
15
|
+
}) => {
|
|
16
|
+
const { formatMessage } = useIntl();
|
|
17
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
18
|
+
/* @__PURE__ */ jsxs("div", { className: "sm:flex sm:items-start", children: [
|
|
19
|
+
icon || /* @__PURE__ */ jsx("div", { className: "mx-auto flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-rose-100 dark:bg-rose-900/30 sm:mx-0 sm:h-10 sm:w-10", children: /* @__PURE__ */ jsx(
|
|
20
|
+
"svg",
|
|
21
|
+
{
|
|
22
|
+
className: "h-6 w-6 text-danger",
|
|
23
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
24
|
+
fill: "none",
|
|
25
|
+
viewBox: "0 0 24 24",
|
|
26
|
+
stroke: "currentColor",
|
|
27
|
+
"aria-hidden": "true",
|
|
28
|
+
children: /* @__PURE__ */ jsx(
|
|
29
|
+
"path",
|
|
30
|
+
{
|
|
31
|
+
strokeLinecap: "round",
|
|
32
|
+
strokeLinejoin: "round",
|
|
33
|
+
strokeWidth: "2",
|
|
34
|
+
d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
}
|
|
38
|
+
) }),
|
|
39
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left", children: [
|
|
40
|
+
/* @__PURE__ */ jsx("h3", { className: "text-lg text-text-primary", id: "modal-title", children: headerText || formatMessage({ id: "warning", defaultMessage: "Warning!" }) }),
|
|
41
|
+
/* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsx("p", { className: "text-sm text-text-muted", children: message || formatMessage({
|
|
42
|
+
id: "are_you_sure",
|
|
43
|
+
defaultMessage: "Are you sure?"
|
|
44
|
+
}) }) })
|
|
45
|
+
] })
|
|
46
|
+
] }),
|
|
47
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-5 sm:mt-4 sm:flex sm:flex-row-reverse", children: [
|
|
48
|
+
/* @__PURE__ */ jsx(
|
|
49
|
+
"button",
|
|
50
|
+
{
|
|
51
|
+
id: "danger_continue",
|
|
52
|
+
onClick: onOkClick,
|
|
53
|
+
disabled: loading,
|
|
54
|
+
"aria-busy": loading,
|
|
55
|
+
type: "button",
|
|
56
|
+
className: "inline-flex w-full justify-center rounded-md border border-transparent bg-rose-600 px-4 py-2 text-base font-medium text-white shadow-xs hover:bg-rose-700 focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:ml-3 sm:w-auto sm:text-sm",
|
|
57
|
+
children: okText || formatMessage({ id: "continue", defaultMessage: "Continue" })
|
|
58
|
+
}
|
|
59
|
+
),
|
|
60
|
+
/* @__PURE__ */ jsx(
|
|
61
|
+
"button",
|
|
62
|
+
{
|
|
63
|
+
id: "danger_cancel",
|
|
64
|
+
onClick: onCancelClick || close,
|
|
65
|
+
disabled: loading,
|
|
66
|
+
type: "button",
|
|
67
|
+
className: "mt-3 inline-flex w-full justify-center rounded-md border border-border-default bg-surface px-4 py-2 text-base font-medium text-text-secondary shadow-xs hover:bg-surface-raised focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",
|
|
68
|
+
children: cancelText || formatMessage({ id: "cancel", defaultMessage: "Cancel" })
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
] })
|
|
72
|
+
] });
|
|
73
|
+
};
|
|
74
|
+
var DangerMessage_default = DangerMessage;
|
|
75
|
+
|
|
76
|
+
export { DangerMessage_default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { sharedContext } from './chunk-J23QSWDL.js';
|
|
2
|
+
import React, { useContext } from 'react';
|
|
3
|
+
|
|
4
|
+
var AuthContext = sharedContext(
|
|
5
|
+
"AuthContext",
|
|
6
|
+
React.createContext({
|
|
7
|
+
isAdmin: () => false,
|
|
8
|
+
hasRole: () => false
|
|
9
|
+
})
|
|
10
|
+
);
|
|
11
|
+
var AuthContext_default = AuthContext;
|
|
12
|
+
|
|
13
|
+
// src/modules/Auth/useAuth.ts
|
|
14
|
+
var useAuth = () => {
|
|
15
|
+
return useContext(AuthContext_default);
|
|
16
|
+
};
|
|
17
|
+
var useAuth_default = useAuth;
|
|
18
|
+
|
|
19
|
+
export { useAuth_default };
|