@unchainedshop/admin-ui 4.8.27 → 4.8.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-2RTX42IE.js +2083 -0
- package/dist/chunk-6UGLNLJG.js +44 -0
- package/dist/{chunk-UXG7EYHC.js → chunk-7PPOGX7R.js} +2 -35
- package/dist/{chunk-45H2WVIC.js → chunk-COV7BREX.js} +0 -1
- package/dist/{chunk-RHUFQVKL.js → chunk-F2TCVEQX.js} +1 -1
- package/dist/{chunk-UFYR5WZT.js → chunk-GY2DRQGW.js} +2 -1
- package/dist/{chunk-BGCKJQGS.js → chunk-JAVEZY3Q.js} +22 -15
- package/dist/{chunk-6TXD4TA7.js → chunk-KCN7DDPH.js} +2 -82
- package/dist/{chunk-YSKZE2KN.js → chunk-MSPWYMDY.js} +37 -24
- package/dist/chunk-RORNAN2J.js +12 -0
- package/dist/chunk-YZGQJJCD.js +37 -0
- package/dist/components/ui/Tag/TagInput.d.ts +10 -5
- package/dist/components/ui/Tag/TagInput.d.ts.map +1 -1
- package/dist/components/ui/form/TagInputField.d.ts +2 -1
- package/dist/components/ui/form/TagInputField.d.ts.map +1 -1
- package/dist/form.js +699 -2497
- package/dist/gql/operation-types.d.ts +13043 -0
- package/dist/gql/operation-types.d.ts.map +1 -0
- package/dist/gql/schema-types.d.ts +3820 -0
- package/dist/gql/schema-types.d.ts.map +1 -0
- package/dist/gql/types.d.ts +2 -17208
- package/dist/gql/types.d.ts.map +1 -1
- package/dist/hooks.js +3 -2
- package/dist/modal.js +9 -5
- package/dist/modules/accounts/fragment/UserFragment.d.ts.map +1 -1
- package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +1 -1
- package/dist/modules/accounts.js +219 -63
- package/dist/modules/assortment.js +9 -4
- package/dist/modules/common/hooks/useApp.d.ts +1 -1
- package/dist/modules/common/hooks/useBulkResultHandler.d.ts +8 -0
- package/dist/modules/common/hooks/useBulkResultHandler.d.ts.map +1 -0
- package/dist/modules/common/hooks/useBulkSelection.d.ts +12 -0
- package/dist/modules/common/hooks/useBulkSelection.d.ts.map +1 -0
- package/dist/modules/common/hooks/useScrollRestoration.d.ts +8 -0
- package/dist/modules/common/hooks/useScrollRestoration.d.ts.map +1 -0
- package/dist/modules/common/hooks/useShopInfo.d.ts +13 -13
- package/dist/modules/common/hooks/useShopInfo.d.ts.map +1 -1
- package/dist/modules/common/utils/useFormatDateTime.d.ts +10 -1
- package/dist/modules/common/utils/useFormatDateTime.d.ts.map +1 -1
- package/dist/modules/country/hooks/useCountries.d.ts +4 -4
- package/dist/modules/enrollment.js +23 -2
- package/dist/modules/event.js +1 -1
- package/dist/modules/filter.js +1 -1
- package/dist/modules/language/hooks/useLanguages.d.ts +4 -4
- package/dist/modules/modal/components/DangerMessage.d.ts +2 -1
- package/dist/modules/modal/components/DangerMessage.d.ts.map +1 -1
- package/dist/modules/order/hooks/useOrders.d.ts +20 -20
- package/dist/modules/order/hooks/useOrders.d.ts.map +1 -1
- package/dist/modules/order.js +9 -3
- package/dist/modules/product-review.js +24 -5
- package/dist/modules/product.js +12 -16
- package/dist/modules/quotation.js +22 -2
- package/dist/modules/token.js +1 -1
- package/dist/modules/work/hooks/useWork.d.ts +14 -14
- package/dist/modules/work.js +17 -5
- package/dist/plugins.js +6 -1
- package/dist/providers.js +3 -3
- package/dist/sdk/plugins.d.ts +11 -0
- package/dist/sdk/plugins.d.ts.map +1 -1
- package/dist/sdk/shims/admin-ui-plugins.d.ts +3 -0
- package/dist/sdk/shims/admin-ui-plugins.d.ts.map +1 -0
- package/dist/sdk/shims/apollo-client-react.d.ts +3 -0
- package/dist/sdk/shims/apollo-client-react.d.ts.map +1 -0
- package/dist/sdk/shims/apollo-client.d.ts +3 -0
- package/dist/sdk/shims/apollo-client.d.ts.map +1 -0
- package/dist/sdk/shims/host.d.ts +17 -0
- package/dist/sdk/shims/host.d.ts.map +1 -0
- package/dist/sdk/shims/next-head.d.ts +3 -0
- package/dist/sdk/shims/next-head.d.ts.map +1 -0
- package/dist/sdk/shims/next-image.d.ts +3 -0
- package/dist/sdk/shims/next-image.d.ts.map +1 -0
- package/dist/sdk/shims/next-link.d.ts +3 -0
- package/dist/sdk/shims/next-link.d.ts.map +1 -0
- package/dist/sdk/shims/next-router.d.ts +3 -0
- package/dist/sdk/shims/next-router.d.ts.map +1 -0
- package/dist/sdk/shims/react-dom-client.d.ts +3 -0
- package/dist/sdk/shims/react-dom-client.d.ts.map +1 -0
- package/dist/sdk/shims/react-dom.d.ts +3 -0
- package/dist/sdk/shims/react-dom.d.ts.map +1 -0
- package/dist/sdk/shims/react-hook-form.d.ts +3 -0
- package/dist/sdk/shims/react-hook-form.d.ts.map +1 -0
- package/dist/sdk/shims/react-intl.d.ts +3 -0
- package/dist/sdk/shims/react-intl.d.ts.map +1 -0
- package/dist/sdk/shims/react-jsx-runtime.d.ts +3 -0
- package/dist/sdk/shims/react-jsx-runtime.d.ts.map +1 -0
- package/dist/sdk/shims/react-toastify.d.ts +3 -0
- package/dist/sdk/shims/react-toastify.d.ts.map +1 -0
- package/dist/sdk/shims/react.d.ts +3 -0
- package/dist/sdk/shims/react.d.ts.map +1 -0
- package/dist/shims/admin-ui-plugins.js +9 -0
- package/dist/shims/apollo-client-react.js +25 -0
- package/dist/shims/apollo-client.js +55 -0
- package/dist/shims/next-head.js +9 -0
- package/dist/shims/next-image.js +9 -0
- package/dist/shims/next-link.js +9 -0
- package/dist/shims/next-router.js +13 -0
- package/dist/shims/react-dom-client.js +11 -0
- package/dist/shims/react-dom.js +22 -0
- package/dist/shims/react-hook-form.js +25 -0
- package/dist/shims/react-intl.js +37 -0
- package/dist/shims/react-jsx-runtime.js +11 -0
- package/dist/shims/react-toastify.js +16 -0
- package/dist/shims/react.js +52 -0
- package/dist/ui.js +1261 -3443
- package/out/403/index.html +2 -2
- package/out/404/index.html +2 -2
- package/out/404.html +2 -2
- package/out/423/index.html +2 -2
- package/out/500/index.html +2 -2
- package/out/_next/static/chunks/04bb4k67x398t.js +1 -0
- package/out/_next/static/chunks/{2g0f0awj5p2qc.js → 06a1c2sikfkdk.js} +4 -4
- package/out/_next/static/chunks/{036jcj4okqca4.js → 06tejx8u1_0kg.js} +1 -1
- package/out/_next/static/chunks/{3u3tcrl7wxrzi.js → 0amvl_hv6wa7d.js} +5 -5
- package/out/_next/static/chunks/{2rw-r9fvx6t4y.js → 0bx11n-vs9rye.js} +5 -5
- package/out/_next/static/chunks/0fiwxqhlo_suy.js +14 -0
- package/out/_next/static/chunks/{18e-92lfg29wn.js → 0g1ikcsz2gw8d.js} +8 -8
- package/out/_next/static/chunks/{1bhsgjj7bbftc.js → 0g6hr3dmen536.js} +2 -2
- package/out/_next/static/chunks/{1r0jyqmys60fw.js → 0hg96-q-sy8p3.js} +5 -5
- package/out/_next/static/chunks/{21lf0tu71e9e5.js → 0irr04sbnadk8.js} +8 -8
- package/out/_next/static/chunks/{0pj6j2o4ya0xs.js → 0pp2j5ys0s75h.js} +8 -8
- package/out/_next/static/chunks/{3k98cr566roh-.js → 0prynyrvhm7ef.js} +2 -2
- package/out/_next/static/chunks/0r5wwinf72z4g.js +1 -0
- package/out/_next/static/chunks/{2cnc1jkfc85_x.js → 0t-8fvpr3gwkw.js} +4 -4
- package/out/_next/static/chunks/{1_g-csysa-i-9.js → 0w0zigi7aws2m.js} +1 -1
- package/out/_next/static/chunks/{1w_4l5gk0n27a.js → 0w6403ca0wd40.js} +5 -5
- package/out/_next/static/chunks/{1mo_wvf-1w8h-.js → 0x34_uvhgol1o.js} +5 -5
- package/out/_next/static/chunks/{2p6deqdf8dlo0.js → 11496j8y5izl0.js} +7 -7
- package/out/_next/static/chunks/{0dvf7ltl55td_.js → 16b-fme2lvyik.js} +6 -6
- package/out/_next/static/chunks/{0l3hp2c6_v3vu.js → 17rvdo97_73-r.js} +5 -5
- package/out/_next/static/chunks/{1gv6j3dx9s71x.js → 17t_4qy79-xou.js} +6 -6
- package/out/_next/static/chunks/{2v0koj5wv-png.js → 194e8b6x5qm5k.js} +5 -5
- package/out/_next/static/chunks/{0yhj5b33a-dp1.js → 1asyhd18d8b19.js} +12 -12
- package/out/_next/static/chunks/{40v94fy15qxej.js → 1dj6rtr2zagxl.js} +5 -5
- package/out/_next/static/chunks/{0172idn4wi-am.js → 1dv2thnikolnz.js} +6 -6
- package/out/_next/static/chunks/1f8hl62epp2bs.js +5 -0
- package/out/_next/static/chunks/1fzbon-ih4_3j.js +1 -0
- package/out/_next/static/chunks/{2vy8ae-zwwle1.js → 1ikc8-ca87tw_.js} +8 -8
- package/out/_next/static/chunks/{2ncenexps2330.js → 1pv3s5pi4mn-7.js} +8 -8
- package/out/_next/static/chunks/{404_8bnljpu18.js → 1qnsi9q49l6yt.js} +5 -5
- package/out/_next/static/chunks/{4188i5qe83m24.js → 1s5id04nxpmov.js} +7 -7
- package/out/_next/static/chunks/{05dtc5uryjkmn.js → 1u56ggvtfz1pw.js} +5 -5
- package/out/_next/static/chunks/{37rq4vcfobv9x.js → 1u9myfa-qi11x.js} +5 -5
- package/out/_next/static/chunks/{3dbskin37ha12.js → 1vmcguc9yb6gq.js} +6 -6
- package/out/_next/static/chunks/{0-b63f3cwlt9h.js → 1w30h0skp16nw.js} +5 -5
- package/out/_next/static/chunks/{1hpx7xjq9a5bq.js → 1wrffo12-xpad.js} +5 -5
- package/out/_next/static/chunks/{3-h5nu9jontfy.js → 1yi1a106ht-nz.js} +6 -6
- package/out/_next/static/chunks/{1epelh6347c59.js → 1zh3wmaf2a0wq.js} +9 -9
- package/out/_next/static/chunks/{1o41sjh1nhwir.js → 1zmw93-y4onb8.js} +7 -7
- package/out/_next/static/chunks/{3yqw8z_udrol0.js → 201rx84kyo8ag.js} +1 -1
- package/out/_next/static/chunks/22ial6oluoicg.js +100 -0
- package/out/_next/static/chunks/{21c515liq8_sf.js → 22mbms24up6d4.js} +4 -4
- package/out/_next/static/chunks/{1f536itbgwelp.js → 23thyqnxwb_h4.js} +6 -6
- package/out/_next/static/chunks/{2_0bsdj7k4kue.js → 24zql9mxp7je7.js} +5 -5
- package/out/_next/static/chunks/{31j6x_qgtn-7j.js → 26qclo9iliv0v.js} +5 -5
- package/out/_next/static/chunks/{2vhqw66fy605y.js → 2_kc34rl9smyf.js} +6 -6
- package/out/_next/static/chunks/{0c1eqd9oamcur.js → 2ay53yz_k-gka.js} +6 -6
- package/out/_next/static/chunks/{1k703f4i1hgfy.js → 2cl2qh-t0bp-x.js} +6 -6
- package/out/_next/static/chunks/{30zp6-w17u9rt.js → 2impwm9m10-y5.js} +6 -6
- package/out/_next/static/chunks/{3s18b668qqa87.js → 2mq7-oeknij50.js} +6 -6
- package/out/_next/static/chunks/{2f8qzo__ksyu7.js → 2puhcafuku-tt.js} +6 -6
- package/out/_next/static/chunks/{1szkbg0-e_tli.js → 2qocgb90m12d8.js} +1 -1
- package/out/_next/static/chunks/{2z5b35yv3i6aq.js → 2r9etl_ej7yq8.js} +5 -5
- package/out/_next/static/chunks/{0dtahnosgvou_.js → 2s6eb6877qk5z.js} +5 -5
- package/out/_next/static/chunks/{2b_lhf_533k0a.js → 2slrs8mk6-_qy.js} +7 -7
- package/out/_next/static/chunks/2t724bghemjmf.js +28 -0
- package/out/_next/static/chunks/{20wamkfz03l6l.js → 2u435g-3ydo_e.js} +6 -6
- package/out/_next/static/chunks/{0k433cermb_mg.js → 2vv2odme20_bj.js} +11 -11
- package/out/_next/static/chunks/{2-ciniqgtu96t.js → 2yjnzxw72qkwa.js} +4 -4
- package/out/_next/static/chunks/{40bl8g3_13c59.js → 2ypcj5e-tv2ki.js} +4 -4
- package/out/_next/static/chunks/{3wm88ukxj8u46.js → 31yuk0tzdgnsq.js} +6 -6
- package/out/_next/static/chunks/33tjpl4-mac6i.js +10 -0
- package/out/_next/static/chunks/36yth4lm03_j8.js +1 -0
- package/out/_next/static/chunks/{2eo4m196-t6ed.js → 389rjxe1t1mxi.js} +4 -4
- package/out/_next/static/chunks/{378867ti5yucc.js → 3a7wm2331v13r.js} +1 -1
- package/out/_next/static/chunks/{27tp9qrxhs6uf.js → 3dshohnaq5dpb.js} +7 -7
- package/out/_next/static/chunks/{0c2th4nk1xlfd.js → 3e-hohr5rbfgs.js} +6 -6
- package/out/_next/static/chunks/{0o16fnqhx30be.js → 3e2sowyws346l.js} +6 -6
- package/out/_next/static/chunks/{2y9z7y6i5cawj.js → 3gl6y4hg4xqh1.js} +5 -5
- package/out/_next/static/chunks/{1-mz7zwy-mbvq.js → 3js2_oj1o86yv.js} +9 -9
- package/out/_next/static/chunks/{17wc5344qnib1.js → 3nnzjetbwg4mr.js} +5 -5
- package/out/_next/static/chunks/{1v16gcok-ktdo.js → 3oxv1fo564rrf.js} +1 -1
- package/out/_next/static/chunks/3s22ovhmk-4h7.js +1 -0
- package/out/_next/static/chunks/3sktz8258so64.js +2 -0
- package/out/_next/static/chunks/{3-av_88np5f5_.js → 3t-cwqu-9qfvs.js} +4 -4
- package/out/_next/static/chunks/{2o7wjpjbr5vau.js → 3tn3fjkayia2l.js} +5 -5
- package/out/_next/static/chunks/{1bp_0jnta8nj1.js → 3v-4df_kpu7wl.js} +6 -6
- package/out/_next/static/chunks/3xfj8_2nd5d_1.js +1 -0
- package/out/_next/static/chunks/42gvqnnznu5d5.js +10 -0
- package/out/_next/static/chunks/{03_e40kzqm4nj.js → 44hx7evqwmlix.js} +4 -4
- package/out/_next/static/chunks/{turbopack-0bljt1tp0zt4q.js → turbopack-0-h3wxx12zewd.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3xem4akmi9at9.js → turbopack-0-huij9pkr6i5.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3-kzs1xrhesa8.js → turbopack-00ka03s4zfhmk.js} +1 -1
- package/out/_next/static/chunks/turbopack-00rnle9d3h5j8.js +1 -0
- package/out/_next/static/chunks/{turbopack-1gbk68s3o1ulv.js → turbopack-0a9my88c0do8o.js} +1 -1
- package/out/_next/static/chunks/{turbopack-058ikg9c4qsyu.js → turbopack-0ah23ustnbjgw.js} +1 -1
- package/out/_next/static/chunks/turbopack-0bj4v4kbzidiu.js +1 -0
- package/out/_next/static/chunks/{turbopack-3zxsk_hikkrwx.js → turbopack-0ca90b_8se2ws.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1bnaj5x8w5m6z.js → turbopack-0hwktepjs4shu.js} +1 -1
- package/out/_next/static/chunks/{turbopack-328hjoqts5fe-.js → turbopack-0iqoh65_n4y31.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0j92hsdmi8k6p.js → turbopack-0m53ts1akyqg9.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1k2h3st-nygbo.js → turbopack-0mp6vcjbi4oj6.js} +1 -1
- package/out/_next/static/chunks/{turbopack-08u3rgl_09tb7.js → turbopack-0p995f9piwklo.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0ywznohf-p_-1.js → turbopack-0pdfslh_xau4v.js} +1 -1
- package/out/_next/static/chunks/{turbopack-15x3cqzaaew93.js → turbopack-0q1m4v0r5_pw-.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0cbhwv4g0ak0q.js → turbopack-0wc1wpl3t5cbf.js} +1 -1
- package/out/_next/static/chunks/{turbopack-34gjko7_04blz.js → turbopack-0wu_ea8477kfb.js} +1 -1
- package/out/_next/static/chunks/{turbopack-26z9lzkojt-cx.js → turbopack-0x-489k903f9f.js} +1 -1
- package/out/_next/static/chunks/{turbopack-252a5rlyrq9fk.js → turbopack-11i280gb7ytob.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3cnuj1vf45306.js → turbopack-11mgtsuzuth10.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1w3-o4vpw_tgq.js → turbopack-14elmv-0t42r4.js} +1 -1
- package/out/_next/static/chunks/{turbopack-10l1gows-lyo9.js → turbopack-18b89oxgeg1p3.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0jijm5fs2d3pa.js → turbopack-1j4b2o2gyndaw.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3qmjh91o7wte5.js → turbopack-1kg_x57lhnhln.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2xm-84om1nxe3.js → turbopack-1m20zbo-8iwfh.js} +1 -1
- package/out/_next/static/chunks/{turbopack-34cd6px36-_ae.js → turbopack-1rmdtpi005n_6.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0bp88aylp19tu.js → turbopack-1sy__tr_jpy9p.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0hpk8f7-2xoz3.js → turbopack-22l2qxvuvnfnm.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3ma-qc75tctdd.js → turbopack-259f81vw0sjro.js} +1 -1
- package/out/_next/static/chunks/{turbopack-42akqkt4irsps.js → turbopack-25n3ygfcffvqv.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3ouyppea8jp6k.js → turbopack-2ah1mf3i_019l.js} +1 -1
- package/out/_next/static/chunks/{turbopack-272y7gt3ncsq7.js → turbopack-2d2i6sp7ig7ar.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0i_uv1p6_dyo-.js → turbopack-2dog_ytiydz1b.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3591lq9bl5zm-.js → turbopack-2dp-kk65cjuz1.js} +1 -1
- package/out/_next/static/chunks/turbopack-2kbsoz95aykk8.js +1 -0
- package/out/_next/static/chunks/{turbopack-3n_3uj335tm0n.js → turbopack-2rnunhgad49uw.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2h3q2k9k2riyq.js → turbopack-2u8czufggehlj.js} +1 -1
- package/out/_next/static/chunks/{turbopack-06hufy_7yovzw.js → turbopack-2v6rz3zo07si0.js} +1 -1
- package/out/_next/static/chunks/{turbopack-25bgi6hb6qg8w.js → turbopack-2w27fkgilqbl3.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0cu-maxx6s175.js → turbopack-2x4qn8b3l97el.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3uov6gvwwuxmx.js → turbopack-31liqa7xywfc3.js} +1 -1
- package/out/_next/static/chunks/{turbopack-14qzcqdgveoel.js → turbopack-32aublis-jlvx.js} +1 -1
- package/out/_next/static/chunks/{turbopack-34rebh56g2zjd.js → turbopack-3467hrkyb1r4-.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3aujkr72l5znq.js → turbopack-35lc2tzfqfnq3.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3mxiudedhdbib.js → turbopack-37465j0f7qzui.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3seov_dvv8im-.js → turbopack-374ar5091nfoc.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2jpit5njafpgz.js → turbopack-37k0iid3ve75q.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3np05fneli2gv.js → turbopack-37z02xo4d9761.js} +1 -1
- package/out/_next/static/chunks/{turbopack-22r1qh8g6munp.js → turbopack-3aw_3x16wx0hg.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2b14t7jx5tgn7.js → turbopack-3d4st1erykui5.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0nlhzx_9rg6_p.js → turbopack-3nxt9w32_n_vs.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2h_05wv-1o-qp.js → turbopack-3p03o8o_0h4o1.js} +1 -1
- package/out/_next/static/chunks/turbopack-3qenf92gnhnqu.js +1 -0
- package/out/_next/static/chunks/{turbopack-148_1qw3wae7d.js → turbopack-3s9690f4fp1sr.js} +1 -1
- package/out/_next/static/chunks/{turbopack-13nb0axu41yph.js → turbopack-3v-9xb14o2wcf.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2cvqtdfi5z-33.js → turbopack-3wy9kdvqtyrqr.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3opb94dwpz7bg.js → turbopack-3xy1pj-av41-3.js} +1 -1
- package/out/_next/static/chunks/{turbopack-22gnlzp5il9ai.js → turbopack-3z_pmy149cb3t.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1r4g2xna7gckz.js → turbopack-3zk-yr-2ktefz.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2ihmy6dk991x4.js → turbopack-400v7uvt-ygyn.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1ddkj8w1l0b4_.js → turbopack-41jswgtq4l3-n.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0rt_vkqrb6ykb.js → turbopack-42kawbzqb610r.js} +1 -1
- package/out/_next/static/chunks/{turbopack-25hv3ltvy0wos.js → turbopack-430a09gmn8rwm.js} +1 -1
- package/out/_next/static/{hZLisNV-2KMtO7y1-ggVm → lMHTn15MSw1RJOw-DD9ir}/_buildManifest.js +62 -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/external/index.html +2 -2
- package/out/filters/FilterDetailPage/index.html +2 -2
- package/out/filters/index.html +2 -2
- package/out/filters/new/index.html +2 -2
- package/out/index.html +2 -2
- package/out/install/index.html +2 -2
- package/out/language/LanguageDetailPage/index.html +2 -2
- package/out/language/index.html +2 -2
- package/out/language/new/index.html +2 -2
- package/out/log-in/index.html +2 -2
- package/out/orders/OrderDetailPage/index.html +2 -2
- package/out/orders/index.html +2 -2
- package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
- package/out/payment-provider/index.html +2 -2
- package/out/payment-provider/new/index.html +2 -2
- package/out/products/ProductDetailPage/index.html +2 -2
- package/out/products/index.html +2 -2
- package/out/products/new/index.html +2 -2
- package/out/quotations/QuotationDetailPage/index.html +2 -2
- package/out/quotations/index.html +2 -2
- package/out/reset-password/index.html +2 -2
- package/out/sign-up/index.html +2 -2
- package/out/styleguide/index.html +2 -2
- package/out/tokens/TokenDetailPage/index.html +2 -2
- package/out/tokens/index.html +2 -2
- package/out/users/UserDetailPage/index.html +2 -2
- package/out/users/index.html +2 -2
- package/out/users/new/index.html +2 -2
- package/out/verify-email/index.html +2 -2
- package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
- package/out/warehousing-provider/index.html +2 -2
- package/out/warehousing-provider/new/index.html +2 -2
- package/out/works/WorkDetailPage/index.html +2 -2
- package/out/works/WorkQueueListView/index.html +2 -2
- package/out/works/index.html +2 -2
- package/out/works/management/index.html +2 -2
- package/package.json +2 -2
- package/out/_next/static/chunks/01crynfjy3xpb.js +0 -14
- package/out/_next/static/chunks/0cm0oyd82zvez.js +0 -1
- package/out/_next/static/chunks/119eyvb0tl4d7.js +0 -5
- package/out/_next/static/chunks/1shkyosfbiwr4.js +0 -1
- package/out/_next/static/chunks/1yv01jo2m1gkf.js +0 -1
- package/out/_next/static/chunks/2cwzp5h99c8es.js +0 -10
- package/out/_next/static/chunks/2tw-iq1oliu-h.js +0 -1
- package/out/_next/static/chunks/3-2opr3e2h-8o.js +0 -105
- package/out/_next/static/chunks/3-hdz4_6asex-.js +0 -10
- package/out/_next/static/chunks/3bxtyo0u_psf7.js +0 -1
- package/out/_next/static/chunks/3f-ap6wo94un_.js +0 -1
- package/out/_next/static/chunks/3ghzaufs2n8uq.js +0 -2
- package/out/_next/static/chunks/3rnl7-84z1op5.js +0 -28
- package/out/_next/static/chunks/turbopack-3-84r4h6w7ztq.js +0 -1
- package/out/_next/static/chunks/turbopack-3x5pttfv2qlpw.js +0 -1
- package/out/_next/static/chunks/turbopack-3z9v3oefxw81i.js +0 -1
- package/out/_next/static/chunks/turbopack-44bpgib3rn1s2.js +0 -1
- /package/dist/{chunk-BYXBJQAS.js → chunk-QWQ3WJJN.js} +0 -0
- /package/out/_next/static/{hZLisNV-2KMtO7y1-ggVm → lMHTn15MSw1RJOw-DD9ir}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{hZLisNV-2KMtO7y1-ggVm → lMHTn15MSw1RJOw-DD9ir}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// src/sdk/shims/host.ts
|
|
2
|
+
function hostDep(specifier) {
|
|
3
|
+
let resolved = void 0;
|
|
4
|
+
let didResolve = false;
|
|
5
|
+
const resolve = () => {
|
|
6
|
+
if (didResolve) return resolved;
|
|
7
|
+
const deps = typeof window !== "undefined" && window.__UNCHAINED_PLUGIN_DEPS__;
|
|
8
|
+
const dep = deps?.[specifier];
|
|
9
|
+
if (!dep) {
|
|
10
|
+
throw new Error(
|
|
11
|
+
`Unchained admin-ui plugin runtime: host dependency "${specifier}" is not available. Plugin modules can only be loaded by the admin-ui after its plugin runtime is initialized.`
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
resolved = dep;
|
|
15
|
+
didResolve = true;
|
|
16
|
+
return dep;
|
|
17
|
+
};
|
|
18
|
+
return new Proxy(/* @__PURE__ */ Object.create(null), {
|
|
19
|
+
get(_target, prop) {
|
|
20
|
+
if (prop === Symbol.toPrimitive || prop === Symbol.toStringTag) {
|
|
21
|
+
return void 0;
|
|
22
|
+
}
|
|
23
|
+
return resolve()[prop];
|
|
24
|
+
},
|
|
25
|
+
set(_target, prop, value) {
|
|
26
|
+
resolve()[prop] = value;
|
|
27
|
+
return true;
|
|
28
|
+
},
|
|
29
|
+
has(_target, prop) {
|
|
30
|
+
return prop in resolve();
|
|
31
|
+
},
|
|
32
|
+
ownKeys() {
|
|
33
|
+
return Reflect.ownKeys(resolve());
|
|
34
|
+
},
|
|
35
|
+
getOwnPropertyDescriptor(_target, prop) {
|
|
36
|
+
return Object.getOwnPropertyDescriptor(resolve(), prop);
|
|
37
|
+
},
|
|
38
|
+
getPrototypeOf() {
|
|
39
|
+
return Object.getPrototypeOf(resolve());
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { hostDep };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isValid } from './chunk-YZGQJJCD.js';
|
|
1
2
|
import { __commonJS, __toESM } from './chunk-4VNS5WPM.js';
|
|
2
3
|
import React, { useContext, useRef } from 'react';
|
|
3
4
|
import { useIntl } from 'react-intl';
|
|
@@ -437,40 +438,6 @@ var useFormContext_default = useFormContext;
|
|
|
437
438
|
// src/modules/forms/lib/validators.ts
|
|
438
439
|
var import_isLength = __toESM(require_isLength(), 1);
|
|
439
440
|
var import_isEmail = __toESM(require_isEmail(), 1);
|
|
440
|
-
var millisecondsInWeek = 6048e5;
|
|
441
|
-
var millisecondsInDay = 864e5;
|
|
442
|
-
var constructFromSymbol = /* @__PURE__ */ Symbol.for("constructDateFrom");
|
|
443
|
-
|
|
444
|
-
// ../node_modules/date-fns/constructFrom.js
|
|
445
|
-
function constructFrom(date, value) {
|
|
446
|
-
if (typeof date === "function") return date(value);
|
|
447
|
-
if (date && typeof date === "object" && constructFromSymbol in date)
|
|
448
|
-
return date[constructFromSymbol](value);
|
|
449
|
-
if (date instanceof Date) return new date.constructor(value);
|
|
450
|
-
return new Date(value);
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
// ../node_modules/date-fns/toDate.js
|
|
454
|
-
function toDate(argument, context) {
|
|
455
|
-
return constructFrom(context || argument, argument);
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
// ../node_modules/date-fns/startOfDay.js
|
|
459
|
-
function startOfDay(date, options) {
|
|
460
|
-
const _date = toDate(date, options?.in);
|
|
461
|
-
_date.setHours(0, 0, 0, 0);
|
|
462
|
-
return _date;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
// ../node_modules/date-fns/isDate.js
|
|
466
|
-
function isDate(value) {
|
|
467
|
-
return value instanceof Date || typeof value === "object" && Object.prototype.toString.call(value) === "[object Date]";
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
// ../node_modules/date-fns/isValid.js
|
|
471
|
-
function isValid(date) {
|
|
472
|
-
return !(!isDate(date) && typeof date !== "number" || isNaN(+toDate(date)));
|
|
473
|
-
}
|
|
474
441
|
var isString = (value) => typeof value === "string";
|
|
475
442
|
var validateMaxLength = (max) => ({
|
|
476
443
|
isValid: (value) => (0, import_isLength.default)(value || "", { max }),
|
|
@@ -611,4 +578,4 @@ var useField = (props) => {
|
|
|
611
578
|
};
|
|
612
579
|
var useField_default = useField;
|
|
613
580
|
|
|
614
|
-
export { FormContext_default,
|
|
581
|
+
export { FormContext_default, useField_default, useFormContext_default, validateDate, validateEmail, validateMaxLength, validateRequiredTag };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Y, A, r, u3, i3, y, u2, o2, l3, oe, y2, x, n, S, k2, f2, p2, H, n2, K, s4, l4 as l4$1, le, B, M, n3, u, v, T2, I, p, f, s2, C, N, m, x2, t2, c, l, t3, E2, o4, m3, d, w2 as w2$1, c2, t, A2, s3, i, b, s, n5 } from './chunk-
|
|
1
|
+
import { Y, A, r, u3, i3, y, u2, o2, l3, oe, y2, x, n, S, k2, f2, p2, H, n2, K, s4, l4 as l4$1, le, B, M, n3, u, v, T2, I, p, f, s2, C, N, m, x2, t2, c, l, t3, E2, o4, m3, d, w2 as w2$1, c2, t, A2, s3, i, b, s, n5 } from './chunk-KCN7DDPH.js';
|
|
2
2
|
import { ModalContext_default } from './chunk-RVG6IOFC.js';
|
|
3
3
|
import l4, { createContext, useRef, useReducer, createRef, useCallback, useMemo, useState, Fragment, useEffect, useContext } from 'react';
|
|
4
4
|
import { useIntl } from 'react-intl';
|
|
@@ -57,7 +57,6 @@ var UserFragment = gql`
|
|
|
57
57
|
type
|
|
58
58
|
url
|
|
59
59
|
}
|
|
60
|
-
allowedActions
|
|
61
60
|
paymentCredentials {
|
|
62
61
|
_id
|
|
63
62
|
isValid
|
|
@@ -140,6 +139,8 @@ var GetCurrentUserQuery = (inlineFragment = "") => gql`
|
|
|
140
139
|
query CurrentUser {
|
|
141
140
|
me {
|
|
142
141
|
...UserFragment
|
|
142
|
+
allowedActions
|
|
143
|
+
viewerAllowedActions
|
|
143
144
|
${inlineFragment}
|
|
144
145
|
}
|
|
145
146
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { createContext, useContext } from 'react';
|
|
2
|
-
import 'react-intl';
|
|
3
1
|
import { gql } from '@apollo/client';
|
|
4
|
-
import '@apollo/client/react';
|
|
2
|
+
import { useQuery } from '@apollo/client/react';
|
|
3
|
+
import { createContext } from 'react';
|
|
4
|
+
import 'react-intl';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
|
|
7
|
-
// src/modules/common/hooks/
|
|
8
|
-
gql`
|
|
7
|
+
// src/modules/common/hooks/useShopInfo.ts
|
|
8
|
+
var ShopInfoQuery = gql`
|
|
9
9
|
query ShopInfo {
|
|
10
10
|
shopInfo {
|
|
11
11
|
_id
|
|
@@ -43,16 +43,23 @@ gql`
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
`;
|
|
46
|
+
var useShopInfo = () => {
|
|
47
|
+
const { data, loading, error } = useQuery(ShopInfoQuery, {
|
|
48
|
+
fetchPolicy: "cache-first"
|
|
49
|
+
});
|
|
50
|
+
const { shopInfo } = data || {};
|
|
51
|
+
return {
|
|
52
|
+
shopInfo,
|
|
53
|
+
defaultLocale: [
|
|
54
|
+
shopInfo?.language?.isoCode,
|
|
55
|
+
shopInfo?.country?.isoCode?.toUpperCase()
|
|
56
|
+
]?.filter(Boolean)?.join("-"),
|
|
57
|
+
loading,
|
|
58
|
+
error
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
var useShopInfo_default = useShopInfo;
|
|
46
62
|
var AppContext = createContext(void 0);
|
|
47
63
|
var AppContext_default = AppContext;
|
|
48
64
|
|
|
49
|
-
|
|
50
|
-
var useApp = () => {
|
|
51
|
-
const context = useContext(AppContext_default);
|
|
52
|
-
if (!context)
|
|
53
|
-
throw new Error("useLocale must be used within a LocaleProvider");
|
|
54
|
-
return context;
|
|
55
|
-
};
|
|
56
|
-
var useApp_default = useApp;
|
|
57
|
-
|
|
58
|
-
export { useApp_default };
|
|
65
|
+
export { AppContext_default, useShopInfo_default };
|
|
@@ -4,77 +4,10 @@ import t9__default, { createContext, forwardRef, useId, Fragment, useContext, us
|
|
|
4
4
|
export { useId as r } from 'react';
|
|
5
5
|
import { createPortal } from 'react-dom';
|
|
6
6
|
|
|
7
|
-
// ../node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js
|
|
8
|
-
var require_use_sync_external_store_with_selector_production = __commonJS({
|
|
9
|
-
"../node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js"(exports) {
|
|
10
|
-
var React = __require("react");
|
|
11
|
-
function is(x6, y4) {
|
|
12
|
-
return x6 === y4 && (0 !== x6 || 1 / x6 === 1 / y4) || x6 !== x6 && y4 !== y4;
|
|
13
|
-
}
|
|
14
|
-
var objectIs = "function" === typeof Object.is ? Object.is : is;
|
|
15
|
-
var useSyncExternalStore = React.useSyncExternalStore;
|
|
16
|
-
var useRef = React.useRef;
|
|
17
|
-
var useEffect2 = React.useEffect;
|
|
18
|
-
var useMemo = React.useMemo;
|
|
19
|
-
var useDebugValue = React.useDebugValue;
|
|
20
|
-
exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
|
|
21
|
-
var instRef = useRef(null);
|
|
22
|
-
if (null === instRef.current) {
|
|
23
|
-
var inst = { hasValue: false, value: null };
|
|
24
|
-
instRef.current = inst;
|
|
25
|
-
} else inst = instRef.current;
|
|
26
|
-
instRef = useMemo(
|
|
27
|
-
function() {
|
|
28
|
-
function memoizedSelector(nextSnapshot) {
|
|
29
|
-
if (!hasMemo) {
|
|
30
|
-
hasMemo = true;
|
|
31
|
-
memoizedSnapshot = nextSnapshot;
|
|
32
|
-
nextSnapshot = selector(nextSnapshot);
|
|
33
|
-
if (void 0 !== isEqual && inst.hasValue) {
|
|
34
|
-
var currentSelection = inst.value;
|
|
35
|
-
if (isEqual(currentSelection, nextSnapshot))
|
|
36
|
-
return memoizedSelection = currentSelection;
|
|
37
|
-
}
|
|
38
|
-
return memoizedSelection = nextSnapshot;
|
|
39
|
-
}
|
|
40
|
-
currentSelection = memoizedSelection;
|
|
41
|
-
if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;
|
|
42
|
-
var nextSelection = selector(nextSnapshot);
|
|
43
|
-
if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))
|
|
44
|
-
return memoizedSnapshot = nextSnapshot, currentSelection;
|
|
45
|
-
memoizedSnapshot = nextSnapshot;
|
|
46
|
-
return memoizedSelection = nextSelection;
|
|
47
|
-
}
|
|
48
|
-
var hasMemo = false, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
|
|
49
|
-
return [
|
|
50
|
-
function() {
|
|
51
|
-
return memoizedSelector(getSnapshot());
|
|
52
|
-
},
|
|
53
|
-
null === maybeGetServerSnapshot ? void 0 : function() {
|
|
54
|
-
return memoizedSelector(maybeGetServerSnapshot());
|
|
55
|
-
}
|
|
56
|
-
];
|
|
57
|
-
},
|
|
58
|
-
[getSnapshot, getServerSnapshot, selector, isEqual]
|
|
59
|
-
);
|
|
60
|
-
var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
|
|
61
|
-
useEffect2(
|
|
62
|
-
function() {
|
|
63
|
-
inst.hasValue = true;
|
|
64
|
-
inst.value = value;
|
|
65
|
-
},
|
|
66
|
-
[value]
|
|
67
|
-
);
|
|
68
|
-
useDebugValue(value);
|
|
69
|
-
return value;
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
|
|
74
7
|
// ../node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js
|
|
75
8
|
var require_use_sync_external_store_with_selector_development = __commonJS({
|
|
76
9
|
"../node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js"(exports) {
|
|
77
|
-
|
|
10
|
+
(function() {
|
|
78
11
|
function is(x6, y4) {
|
|
79
12
|
return x6 === y4 && (0 !== x6 || 1 / x6 === 1 / y4) || x6 !== x6 && y4 !== y4;
|
|
80
13
|
}
|
|
@@ -140,9 +73,7 @@ var require_use_sync_external_store_with_selector_development = __commonJS({
|
|
|
140
73
|
// ../node_modules/use-sync-external-store/with-selector.js
|
|
141
74
|
var require_with_selector = __commonJS({
|
|
142
75
|
"../node_modules/use-sync-external-store/with-selector.js"(exports, module) {
|
|
143
|
-
|
|
144
|
-
module.exports = require_use_sync_external_store_with_selector_production();
|
|
145
|
-
} else {
|
|
76
|
+
{
|
|
146
77
|
module.exports = require_use_sync_external_store_with_selector_development();
|
|
147
78
|
}
|
|
148
79
|
}
|
|
@@ -1170,17 +1101,6 @@ function E6(n11, e5, a14, t11) {
|
|
|
1170
1101
|
}
|
|
1171
1102
|
/*! Bundled license information:
|
|
1172
1103
|
|
|
1173
|
-
use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js:
|
|
1174
|
-
(**
|
|
1175
|
-
* @license React
|
|
1176
|
-
* use-sync-external-store-with-selector.production.js
|
|
1177
|
-
*
|
|
1178
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1179
|
-
*
|
|
1180
|
-
* This source code is licensed under the MIT license found in the
|
|
1181
|
-
* LICENSE file in the root directory of this source tree.
|
|
1182
|
-
*)
|
|
1183
|
-
|
|
1184
1104
|
use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js:
|
|
1185
1105
|
(**
|
|
1186
1106
|
* @license React
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { textColor, bgColor, borderColor } from './chunk-VDKQGOMV.js';
|
|
2
|
-
import { useField_default, validateRequiredTag, useFormContext_default } from './chunk-
|
|
2
|
+
import { useField_default, validateRequiredTag, useFormContext_default } from './chunk-7PPOGX7R.js';
|
|
3
3
|
import { QuestionMarkCircleIcon_default } from './chunk-XJBPMIC4.js';
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import { useRouter } from 'next/router';
|
|
@@ -295,32 +295,45 @@ var TagInput = ({
|
|
|
295
295
|
};
|
|
296
296
|
const addTag = useCallback(
|
|
297
297
|
(tag) => {
|
|
298
|
-
|
|
299
|
-
|
|
298
|
+
const trimmedTag = tag.trim();
|
|
299
|
+
const existingOption = selectOptions.find(
|
|
300
|
+
(option) => option.value.toLowerCase() === trimmedTag.toLowerCase()
|
|
301
|
+
);
|
|
302
|
+
const resolvedTag = existingOption?.value || trimmedTag;
|
|
303
|
+
const isAlreadySelected = tagList.some(
|
|
304
|
+
(selectedTag) => selectedTag.toLowerCase() === resolvedTag.toLowerCase()
|
|
305
|
+
);
|
|
306
|
+
if (!isAlreadySelected && resolvedTag) {
|
|
307
|
+
const newTags = [...tagList, resolvedTag];
|
|
300
308
|
setTagList(newTags);
|
|
301
309
|
onChange(newTags);
|
|
302
310
|
setInputValue("");
|
|
303
311
|
setIsOpen(false);
|
|
304
312
|
}
|
|
305
313
|
},
|
|
306
|
-
[tagList, onChange]
|
|
314
|
+
[tagList, onChange, selectOptions]
|
|
307
315
|
);
|
|
308
316
|
const filteredOptions = useMemo(() => {
|
|
309
317
|
const available = selectOptions.filter(
|
|
310
|
-
(option) => !
|
|
318
|
+
(option) => !tagList.some(
|
|
319
|
+
(tag) => tag.toLowerCase() === option.value.toLowerCase()
|
|
320
|
+
)
|
|
311
321
|
);
|
|
312
322
|
if (!inputValue) return available;
|
|
313
323
|
return available.filter(
|
|
314
324
|
(opt) => opt.label.toLowerCase().includes(inputValue.toLowerCase())
|
|
315
325
|
);
|
|
316
326
|
}, [selectOptions, tagList, inputValue]);
|
|
317
|
-
const
|
|
318
|
-
|
|
327
|
+
const normalizedInput = inputValue.trim().toLowerCase();
|
|
328
|
+
const showCreateOption = Boolean(
|
|
329
|
+
normalizedInput && !tagList.some((tag) => tag.toLowerCase() === normalizedInput) && !selectOptions.some(
|
|
330
|
+
(option) => option.value.toLowerCase() === normalizedInput
|
|
331
|
+
)
|
|
319
332
|
);
|
|
320
333
|
const handleKeyDown = (e) => {
|
|
321
334
|
if (e.key === "Enter" && inputValue.trim()) {
|
|
322
335
|
e.preventDefault();
|
|
323
|
-
addTag(inputValue.trim());
|
|
336
|
+
addTag(filteredOptions[0]?.value || inputValue.trim());
|
|
324
337
|
}
|
|
325
338
|
};
|
|
326
339
|
const TagInputComponent = /* @__PURE__ */ jsxs("div", { className: "relative", ref: wrapperRef, children: [
|
|
@@ -354,12 +367,26 @@ var TagInput = ({
|
|
|
354
367
|
role: "listbox",
|
|
355
368
|
className: "absolute z-9999999 mt-1 max-h-60 w-full overflow-auto rounded-md bg-surface border border-border-subtle py-1 text-sm shadow-lg",
|
|
356
369
|
children: [
|
|
357
|
-
|
|
370
|
+
filteredOptions.map((opt) => /* @__PURE__ */ jsx(
|
|
358
371
|
"li",
|
|
359
372
|
{
|
|
360
373
|
role: "option",
|
|
361
374
|
"aria-selected": false,
|
|
362
375
|
className: "cursor-pointer select-none py-2 px-4 text-text-primary hover:bg-surface-raised",
|
|
376
|
+
onMouseDown: (e) => {
|
|
377
|
+
e.preventDefault();
|
|
378
|
+
addTag(opt.value);
|
|
379
|
+
},
|
|
380
|
+
children: opt.label
|
|
381
|
+
},
|
|
382
|
+
opt.value
|
|
383
|
+
)),
|
|
384
|
+
showCreateOption && /* @__PURE__ */ jsx(
|
|
385
|
+
"li",
|
|
386
|
+
{
|
|
387
|
+
role: "option",
|
|
388
|
+
"aria-selected": false,
|
|
389
|
+
className: "cursor-pointer select-none border-t border-border-subtle py-2 px-4 text-text-primary hover:bg-surface-raised",
|
|
363
390
|
onMouseDown: (e) => {
|
|
364
391
|
e.preventDefault();
|
|
365
392
|
addTag(inputValue.trim());
|
|
@@ -372,21 +399,7 @@ var TagInput = ({
|
|
|
372
399
|
{ inputValue: inputValue.trim() }
|
|
373
400
|
)
|
|
374
401
|
}
|
|
375
|
-
)
|
|
376
|
-
filteredOptions.map((opt) => /* @__PURE__ */ jsx(
|
|
377
|
-
"li",
|
|
378
|
-
{
|
|
379
|
-
role: "option",
|
|
380
|
-
"aria-selected": false,
|
|
381
|
-
className: "cursor-pointer select-none py-2 px-4 text-text-primary hover:bg-surface-raised",
|
|
382
|
-
onMouseDown: (e) => {
|
|
383
|
-
e.preventDefault();
|
|
384
|
-
addTag(opt.value);
|
|
385
|
-
},
|
|
386
|
-
children: opt.label
|
|
387
|
-
},
|
|
388
|
-
opt.value
|
|
389
|
-
))
|
|
402
|
+
)
|
|
390
403
|
]
|
|
391
404
|
}
|
|
392
405
|
)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AppContext_default } from './chunk-JAVEZY3Q.js';
|
|
2
|
+
import { useContext } from 'react';
|
|
3
|
+
|
|
4
|
+
var useApp = () => {
|
|
5
|
+
const context = useContext(AppContext_default);
|
|
6
|
+
if (!context)
|
|
7
|
+
throw new Error("useLocale must be used within a LocaleProvider");
|
|
8
|
+
return context;
|
|
9
|
+
};
|
|
10
|
+
var useApp_default = useApp;
|
|
11
|
+
|
|
12
|
+
export { useApp_default };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// ../node_modules/date-fns/constants.js
|
|
2
|
+
var millisecondsInWeek = 6048e5;
|
|
3
|
+
var millisecondsInDay = 864e5;
|
|
4
|
+
var constructFromSymbol = /* @__PURE__ */ Symbol.for("constructDateFrom");
|
|
5
|
+
|
|
6
|
+
// ../node_modules/date-fns/constructFrom.js
|
|
7
|
+
function constructFrom(date, value) {
|
|
8
|
+
if (typeof date === "function") return date(value);
|
|
9
|
+
if (date && typeof date === "object" && constructFromSymbol in date)
|
|
10
|
+
return date[constructFromSymbol](value);
|
|
11
|
+
if (date instanceof Date) return new date.constructor(value);
|
|
12
|
+
return new Date(value);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// ../node_modules/date-fns/toDate.js
|
|
16
|
+
function toDate(argument, context) {
|
|
17
|
+
return constructFrom(context || argument, argument);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// ../node_modules/date-fns/startOfDay.js
|
|
21
|
+
function startOfDay(date, options) {
|
|
22
|
+
const _date = toDate(date, options?.in);
|
|
23
|
+
_date.setHours(0, 0, 0, 0);
|
|
24
|
+
return _date;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// ../node_modules/date-fns/isDate.js
|
|
28
|
+
function isDate(value) {
|
|
29
|
+
return value instanceof Date || typeof value === "object" && Object.prototype.toString.call(value) === "[object Date]";
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// ../node_modules/date-fns/isValid.js
|
|
33
|
+
function isValid(date) {
|
|
34
|
+
return !(!isDate(date) && typeof date !== "number" || isNaN(+toDate(date)));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { constructFrom, isValid, millisecondsInDay, millisecondsInWeek, startOfDay, toDate };
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export interface TagOption {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string;
|
|
4
|
+
}
|
|
5
|
+
interface TagInputProps {
|
|
6
|
+
tagList?: string[] | string;
|
|
7
|
+
onChange: (tags: string[]) => void;
|
|
4
8
|
disabled?: boolean;
|
|
5
9
|
name?: string;
|
|
6
10
|
id?: string;
|
|
7
11
|
placeholder?: string;
|
|
8
|
-
selectOptions?:
|
|
12
|
+
selectOptions?: TagOption[];
|
|
9
13
|
className?: string;
|
|
10
14
|
buttonText?: string;
|
|
11
15
|
showTagsInline?: boolean;
|
|
12
|
-
}
|
|
16
|
+
}
|
|
17
|
+
declare const TagInput: ({ tagList: tags, onChange, disabled, name, id, placeholder, selectOptions, className, buttonText, showTagsInline, }: TagInputProps) => import("react").JSX.Element;
|
|
13
18
|
export default TagInput;
|
|
14
19
|
//# sourceMappingURL=TagInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TagInput.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/Tag/TagInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TagInput.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/Tag/TagInput.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,aAAa;IACrB,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAC5B,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,SAAS,EAAE,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAaD,QAAA,MAAM,QAAQ,GAAI,qHAWf,aAAa,gCAiLf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { type TagOption } from '../Tag/TagInput';
|
|
1
2
|
import { FieldHookProps } from '../../../modules/forms/hooks/useField';
|
|
2
3
|
declare const TagInputField: ({ buttonText, validators, selectOptions, ...props }: FieldHookProps & {
|
|
3
|
-
|
|
4
|
+
selectOptions?: TagOption[];
|
|
4
5
|
}) => import("react").JSX.Element;
|
|
5
6
|
export default TagInputField;
|
|
6
7
|
//# sourceMappingURL=TagInputField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TagInputField.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/form/TagInputField.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TagInputField.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/form/TagInputField.tsx"],"names":[],"mappings":"AACA,OAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE3D,OAAiB,EACf,cAAc,EACf,MAAM,uCAAuC,CAAC;AAI/C,QAAA,MAAM,aAAa,GAAI,qDAKpB,cAAc,GAAG;IAAE,aAAa,CAAC,EAAE,SAAS,EAAE,CAAA;CAAE,gCAuBlD,CAAC;AAEF,eAAe,aAAa,CAAC"}
|