@cimplify/sdk 0.109.0 → 0.111.0
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/CHANGELOG.md +54 -0
- package/README.md +18 -0
- package/dist/advanced.d.mts +4 -4
- package/dist/advanced.d.ts +4 -4
- package/dist/advanced.js +22 -22
- package/dist/advanced.mjs +3 -3
- package/dist/{audio-XU2sFNyO.d.mts → audio-DhvyjqdA.d.mts} +2 -2
- package/dist/{audio-8Igdy2WK.d.ts → audio-m0w8cnxq.d.ts} +2 -2
- package/dist/avatars.js +21 -21
- package/dist/avatars.mjs +3 -3
- package/dist/{backend-L4d_Ha0J.d.mts → backend-gUCzs5Kg.d.mts} +16 -2
- package/dist/{backend-L4d_Ha0J.d.ts → backend-gUCzs5Kg.d.ts} +16 -2
- package/dist/{catalogue-DLLsfuNg.d.ts → catalogue-1QcoGDO6.d.ts} +2 -2
- package/dist/{catalogue-BeBFWlHF.d.mts → catalogue-FdFQiWrU.d.mts} +2 -2
- package/dist/{chunk-HF2MZKP2.mjs → chunk-22BD3RHN.mjs} +6 -3
- package/dist/{chunk-B54P6RL2.js → chunk-2AQ237Y4.js} +30 -30
- package/dist/{chunk-W3VVG4NL.js → chunk-2O2CG465.js} +14 -2
- package/dist/{chunk-UPHTPBNQ.mjs → chunk-2QTQ6BUH.mjs} +1 -1
- package/dist/{chunk-BS65NRDW.js → chunk-3S6WPBZL.js} +16 -16
- package/dist/{chunk-PEZYNYJE.js → chunk-3TUOUP5T.js} +3 -3
- package/dist/{chunk-EB6EAOM5.mjs → chunk-3VEH23I5.mjs} +7 -10
- package/dist/{chunk-SYEO2WV4.mjs → chunk-42JTCWIE.mjs} +3 -3
- package/dist/{chunk-FB6YH2WW.js → chunk-4C7I3ELN.js} +4 -4
- package/dist/{chunk-UQYO3OM7.js → chunk-4ZDR72SG.js} +1 -2
- package/dist/{chunk-HPKKCUHU.js → chunk-52YS45RR.js} +13 -13
- package/dist/{chunk-6YVELDFK.mjs → chunk-5BYDGGWO.mjs} +1 -1
- package/dist/{chunk-YN24DET4.js → chunk-5HFMY3D7.js} +10 -10
- package/dist/{chunk-4CVB2ZTC.js → chunk-5LH2QN3T.js} +32 -29
- package/dist/{chunk-4A24F4ZV.mjs → chunk-5YFBGGCK.mjs} +4 -1
- package/dist/{chunk-NLAT3DB2.mjs → chunk-6DAEZKIG.mjs} +1 -1
- package/dist/{chunk-F6CHJXXK.mjs → chunk-6DATW7TB.mjs} +3 -3
- package/dist/{chunk-4RYATNVK.mjs → chunk-6H254EVP.mjs} +6 -11
- package/dist/{chunk-32U4BVJA.mjs → chunk-6PJWXIFX.mjs} +1 -1
- package/dist/{chunk-OMTVH334.js → chunk-6QANXRUM.js} +203 -186
- package/dist/{chunk-BHAGIIBI.js → chunk-6WUBSMTX.js} +82 -85
- package/dist/{chunk-EPYFN2A3.js → chunk-7AAIAVAA.js} +24 -20
- package/dist/{chunk-HZC27ICH.mjs → chunk-7BHW5GTC.mjs} +3 -3
- package/dist/{chunk-MB425DVA.mjs → chunk-7IQQQENP.mjs} +2 -2
- package/dist/{chunk-DJUUL67Z.js → chunk-7KFTYENS.js} +296 -296
- package/dist/{chunk-XLQSNQMP.js → chunk-7SM6XSPZ.js} +339 -339
- package/dist/{chunk-NBH64BDP.mjs → chunk-A33OORT7.mjs} +13 -1
- package/dist/{chunk-G2SXLGFY.js → chunk-A7BU3BK4.js} +7 -7
- package/dist/{chunk-ZNWS7NOW.mjs → chunk-A7V4L2IT.mjs} +2 -2
- package/dist/{chunk-O3SITS4R.mjs → chunk-AGV33FWC.mjs} +4 -4
- package/dist/{chunk-Z2DE3EHS.js → chunk-AHNR3BXI.js} +7 -7
- package/dist/{chunk-UQ4BHMLS.mjs → chunk-AQ5RLBU2.mjs} +5 -5
- package/dist/{chunk-J4HU2YQB.js → chunk-AQOE6WCG.js} +2 -2
- package/dist/{chunk-X57B7VQC.js → chunk-AYJPHKYV.js} +22 -22
- package/dist/{chunk-6XTWY6MH.js → chunk-AZAXD44P.js} +126 -42
- package/dist/{chunk-6ETDAU62.mjs → chunk-B45X3HPO.mjs} +98 -39
- package/dist/{chunk-QDW4EPWS.mjs → chunk-BBGKQIJJ.mjs} +1 -1
- package/dist/{chunk-NHYTO4VU.js → chunk-BP4JLSUA.js} +111 -120
- package/dist/{chunk-7INQVOHY.mjs → chunk-BU6OK542.mjs} +25 -8
- package/dist/{chunk-MKIJQL5Q.js → chunk-CJVEJPIG.js} +69 -69
- package/dist/{chunk-W23VX5MY.js → chunk-CVSRWM6W.js} +5 -5
- package/dist/{chunk-A7DK7QAG.mjs → chunk-CYBMFMJD.mjs} +1 -1
- package/dist/{chunk-BOTUAHP2.mjs → chunk-DS2VU4WW.mjs} +5 -20
- package/dist/{chunk-HMMFNLXZ.js → chunk-DSAG7T5P.js} +2 -2
- package/dist/{chunk-7GG4KNTL.mjs → chunk-E65WCTIG.mjs} +8 -4
- package/dist/{chunk-WXDVEXTW.mjs → chunk-ECDK6QBF.mjs} +1 -1
- package/dist/{chunk-5IRV36MS.mjs → chunk-EIB4OWVQ.mjs} +1 -1
- package/dist/{chunk-JLJ4FD5H.js → chunk-EQUZYCGO.js} +18 -18
- package/dist/{chunk-Q2Y3VMKH.js → chunk-ETZDIISN.js} +151 -151
- package/dist/{chunk-AKTWH3KJ.mjs → chunk-F3UJ6ZRM.mjs} +2 -2
- package/dist/{chunk-J6HRY5EQ.js → chunk-F63N2ZTQ.js} +232 -232
- package/dist/{chunk-MUEFTPNN.js → chunk-FE6VCE4K.js} +34 -34
- package/dist/{chunk-GCKWKLZF.mjs → chunk-FT6GFYJL.mjs} +17 -3
- package/dist/{chunk-2UYTS7SL.mjs → chunk-GCX7TY4D.mjs} +16 -16
- package/dist/{chunk-QDLMIHUH.js → chunk-GDB6TCSD.js} +7 -7
- package/dist/{chunk-7S7LDFGH.js → chunk-GDZT5LZ5.js} +12 -12
- package/dist/{chunk-TB2LS4CE.mjs → chunk-GHS6MIL6.mjs} +7 -11
- package/dist/{chunk-7OHZ56N7.mjs → chunk-GXKI64OT.mjs} +4 -4
- package/dist/{chunk-HRSIIDOZ.js → chunk-H3OQKK6X.js} +41 -41
- package/dist/{chunk-56BM75QX.js → chunk-H5DFSCJ6.js} +2 -2
- package/dist/{chunk-LMK775I4.mjs → chunk-HAGEIC2L.mjs} +1 -1
- package/dist/{chunk-6FZDMICK.js → chunk-HAJ4JRFO.js} +15 -15
- package/dist/{chunk-AWR2G5QN.js → chunk-HDR72GB6.js} +6 -11
- package/dist/{chunk-PTT6KIM6.js → chunk-HSEO6TPU.js} +9 -9
- package/dist/{chunk-CQSA2D2O.js → chunk-I5FOHCLH.js} +4 -31
- package/dist/{chunk-TMFB55IR.js → chunk-J2U6PJSO.js} +3 -30
- package/dist/{chunk-W77VO6LP.js → chunk-J5AJNY2N.js} +13 -13
- package/dist/{chunk-UKA7LHIT.js → chunk-JR3TNEQC.js} +98 -98
- package/dist/{chunk-P2O34BIO.mjs → chunk-JURRXY2J.mjs} +1 -1
- package/dist/{chunk-PKMVOVUA.mjs → chunk-K3HW5I2A.mjs} +1 -1
- package/dist/{chunk-BXUGKBMK.mjs → chunk-KDQOR4QQ.mjs} +1 -14
- package/dist/{chunk-KVZSYGTX.mjs → chunk-KGHJH5KJ.mjs} +1 -1
- package/dist/{chunk-3AKWZF3X.mjs → chunk-KK6HYVBI.mjs} +1 -1
- package/dist/{chunk-K6GK5B5J.js → chunk-KMKWGXMK.js} +6 -6
- package/dist/{chunk-EH4UG7IL.mjs → chunk-KU7O4IXU.mjs} +4 -4
- package/dist/{chunk-IHRMR3WV.mjs → chunk-KVFNRJOR.mjs} +9 -9
- package/dist/{chunk-A36JRXXH.mjs → chunk-KWZHIPRN.mjs} +26 -9
- package/dist/{chunk-HBZQ5HSV.mjs → chunk-LIV3KXJG.mjs} +1 -1
- package/dist/{chunk-S75PBSSL.mjs → chunk-ME6HGG4I.mjs} +92 -8
- package/dist/{chunk-SNNEOS5Z.js → chunk-MHDUUSG6.js} +75 -75
- package/dist/{chunk-FKYZCXFM.js → chunk-MIPO6F72.js} +3 -3
- package/dist/{chunk-MFWIHTEN.js → chunk-MTIHEW2M.js} +5 -5
- package/dist/{chunk-UCR5HRYM.js → chunk-NFXCKTE2.js} +17 -3
- package/dist/{chunk-M53GR3ZV.mjs → chunk-NHJUGZUR.mjs} +43 -5
- package/dist/{chunk-FAYK2MN6.js → chunk-NZTKLY2W.js} +14 -18
- package/dist/{chunk-EQW6PFC2.js → chunk-O2ICABUD.js} +2 -2
- package/dist/{chunk-5PW6DVHF.js → chunk-OIVVQQ22.js} +55 -37
- package/dist/{chunk-GBJ5CW3A.js → chunk-PKOZXD2Q.js} +30 -30
- package/dist/{chunk-NGN3JE5A.js → chunk-PQTQKNKD.js} +16 -7
- package/dist/{chunk-DFZWHNRG.js → chunk-QOCHWR4V.js} +105 -42
- package/dist/{chunk-PCVVQNBD.js → chunk-QS6TRHMR.js} +5 -5
- package/dist/{chunk-DXZZ27CV.js → chunk-RKBLPGPV.js} +245 -207
- package/dist/{chunk-765P2G7G.mjs → chunk-RUVGVNOF.mjs} +1 -1
- package/dist/{chunk-NJ7ZWH4U.mjs → chunk-SAFJIGYB.mjs} +1 -1
- package/dist/{chunk-AOPH2IZV.js → chunk-SKQFLBDD.js} +60 -22
- package/dist/{chunk-BUUA5XJV.js → chunk-TWM6DLYF.js} +2 -2
- package/dist/{chunk-YPL5TKI4.mjs → chunk-U6UVWEAK.mjs} +1 -1
- package/dist/{chunk-6YQDHXPL.mjs → chunk-UCEPNO6N.mjs} +46 -9
- package/dist/{chunk-U7RULAEP.mjs → chunk-UG5BTOTF.mjs} +2 -2
- package/dist/{chunk-MITGBWV7.mjs → chunk-UGH37BQW.mjs} +1 -1
- package/dist/{chunk-IZDWAL53.mjs → chunk-UJDQQTBS.mjs} +8 -8
- package/dist/{chunk-URRZ2SMI.mjs → chunk-V7ZRH3PY.mjs} +2 -2
- package/dist/{chunk-3H76N7G5.mjs → chunk-VBGHBL3E.mjs} +8 -17
- package/dist/{chunk-AZC2LTUI.js → chunk-VVE3Y76O.js} +2 -2
- package/dist/{chunk-BRAA7U3I.mjs → chunk-W65JIRI4.mjs} +1 -1
- package/dist/{chunk-KU4EDEKA.js → chunk-WKWTDZS7.js} +9 -9
- package/dist/{chunk-BTUSVHIE.mjs → chunk-WLSU5QJT.mjs} +2 -2
- package/dist/{chunk-NTTHAXHI.js → chunk-X5A5FOWW.js} +11 -8
- package/dist/{chunk-ODL55PYL.mjs → chunk-XD2PMH46.mjs} +16 -7
- package/dist/{chunk-OADW5BSV.js → chunk-XK6UDWJS.js} +2 -2
- package/dist/{chunk-7ZTEVNXO.mjs → chunk-Y65LXQGA.mjs} +8 -8
- package/dist/{chunk-Z3PGQRTX.mjs → chunk-Y66WVMO5.mjs} +3 -30
- package/dist/{chunk-VZAJDN5C.mjs → chunk-Y7JWLB25.mjs} +1 -1
- package/dist/{chunk-ZJGPD42I.js → chunk-YCDXAJKU.js} +3 -3
- package/dist/{chunk-NCTLCSLE.mjs → chunk-Z3A3AFVU.mjs} +1 -1
- package/dist/{chunk-AEEF3T2E.mjs → chunk-ZCY6YKKP.mjs} +3 -3
- package/dist/{chunk-M5FWHML6.js → chunk-ZMIL4ZOA.js} +5 -18
- package/dist/{chunk-D3JMTFOX.mjs → chunk-ZR5ULMN2.mjs} +1 -1
- package/dist/{client-C9hsiaki.d.ts → client-CChON4-x.d.ts} +2 -2
- package/dist/{client-CO8lw80Q.d.mts → client-EeuGm5gj.d.mts} +2 -2
- package/dist/{courier-CJasuxTU.d.ts → courier-Cnn-edJ4.d.ts} +5 -5
- package/dist/{courier-C2Vo2VlH.d.mts → courier-FmGfkvIN.d.mts} +5 -5
- package/dist/{crowd-D1ljcic8.d.ts → crowd-DdHFbqKK.d.ts} +1 -1
- package/dist/{crowd-B37S1apB.d.mts → crowd-hOVSAmA3.d.mts} +1 -1
- package/dist/{danfo-BsaPzhGi.d.mts → danfo-BEBapFlX.d.mts} +3 -3
- package/dist/{danfo-CCv23CPy.d.ts → danfo-UQ_PTIIx.d.ts} +3 -3
- package/dist/{elements-Bsfk7CPw.d.ts → elements-ss9xZgRg.d.mts} +47 -1
- package/dist/{elements-Bsfk7CPw.d.mts → elements-ss9xZgRg.d.ts} +47 -1
- package/dist/engines/godot.d.mts +1 -1
- package/dist/engines/godot.d.ts +1 -1
- package/dist/engines/wasm.d.mts +1 -1
- package/dist/engines/wasm.d.ts +1 -1
- package/dist/fallback-KDB4Y2CE.mjs +6 -0
- package/dist/fallback-Y26TQENE.js +19 -0
- package/dist/{five-a-side-DP84gMuh.d.mts → five-a-side-Bv1AOUy3.d.mts} +4 -4
- package/dist/{five-a-side-DO8SDqMb.d.ts → five-a-side-EC51SJY1.d.ts} +4 -4
- package/dist/{fluid-BkxNBD2t.d.ts → fluid-ARr0qUIL.d.ts} +168 -4
- package/dist/{fluid-BZ42EMds.d.mts → fluid-DLlEj2cs.d.mts} +168 -4
- package/dist/game/conformance.d.mts +7 -7
- package/dist/game/conformance.d.ts +7 -7
- package/dist/game/conformance.js +39 -41
- package/dist/game/conformance.mjs +17 -19
- package/dist/game/heap.d.mts +3 -3
- package/dist/game/heap.d.ts +3 -3
- package/dist/game/heap.js +13 -15
- package/dist/game/heap.mjs +4 -6
- package/dist/game/kit/canvas.d.mts +33 -34
- package/dist/game/kit/canvas.d.ts +33 -34
- package/dist/game/kit/canvas.js +569 -570
- package/dist/game/kit/canvas.mjs +52 -53
- package/dist/game/kit/courier.d.mts +9 -9
- package/dist/game/kit/courier.d.ts +9 -9
- package/dist/game/kit/courier.js +20 -20
- package/dist/game/kit/courier.mjs +17 -17
- package/dist/game/kit/danfo.d.mts +7 -7
- package/dist/game/kit/danfo.d.ts +7 -7
- package/dist/game/kit/danfo.js +30 -30
- package/dist/game/kit/danfo.mjs +15 -15
- package/dist/game/kit/engine.d.mts +12 -12
- package/dist/game/kit/engine.d.ts +12 -12
- package/dist/game/kit/engine.js +40 -41
- package/dist/game/kit/engine.mjs +11 -12
- package/dist/game/kit/five-a-side.d.mts +7 -7
- package/dist/game/kit/five-a-side.d.ts +7 -7
- package/dist/game/kit/five-a-side.js +24 -24
- package/dist/game/kit/five-a-side.mjs +14 -14
- package/dist/game/kit/frontier.d.mts +7 -7
- package/dist/game/kit/frontier.d.ts +7 -7
- package/dist/game/kit/genesis.d.mts +7 -7
- package/dist/game/kit/genesis.d.ts +7 -7
- package/dist/game/kit/ludo.d.mts +8 -8
- package/dist/game/kit/ludo.d.ts +8 -8
- package/dist/game/kit/ludo.js +24 -24
- package/dist/game/kit/ludo.mjs +14 -14
- package/dist/game/kit/runner.d.mts +8 -8
- package/dist/game/kit/runner.d.ts +8 -8
- package/dist/game/kit/runner.js +22 -22
- package/dist/game/kit/runner.mjs +14 -14
- package/dist/game/kit/shootout.d.mts +9 -9
- package/dist/game/kit/shootout.d.ts +9 -9
- package/dist/game/kit/shootout.js +33 -34
- package/dist/game/kit/shootout.mjs +18 -19
- package/dist/game/kit/tycoon.d.mts +9 -9
- package/dist/game/kit/tycoon.d.ts +9 -9
- package/dist/game/kit/tycoon.js +38 -38
- package/dist/game/kit/tycoon.mjs +14 -14
- package/dist/game/kit/word.d.mts +7 -7
- package/dist/game/kit/word.d.ts +7 -7
- package/dist/game/kit/word.js +22 -22
- package/dist/game/kit/word.mjs +14 -14
- package/dist/game/kit/worlds.d.mts +10 -10
- package/dist/game/kit/worlds.d.ts +10 -10
- package/dist/game/kit/worlds.js +22 -22
- package/dist/game/kit/worlds.mjs +17 -17
- package/dist/game/kit.d.mts +31 -32
- package/dist/game/kit.d.ts +31 -32
- package/dist/game/kit.js +523 -524
- package/dist/game/kit.mjs +38 -39
- package/dist/game/prepared.d.mts +6 -7
- package/dist/game/prepared.d.ts +6 -7
- package/dist/game/prepared.js +23 -24
- package/dist/game/prepared.mjs +12 -13
- package/dist/{game-BZAfgKV6.d.mts → game-Bx8onkhX.d.mts} +5 -97
- package/dist/{game-UoJWopvD.d.ts → game-fgQy2YIm.d.ts} +5 -97
- package/dist/game.d.mts +56 -18
- package/dist/game.d.ts +56 -18
- package/dist/game.js +922 -927
- package/dist/game.mjs +16 -17
- package/dist/{graphics-DNIAV5Mi.d.ts → graphics-C6YjWYvP.d.ts} +1 -1
- package/dist/{graphics-CGJDdtdT.d.mts → graphics-Dk2yQnYN.d.mts} +1 -1
- package/dist/{guest-CMCZeyh5.d.mts → guest-DrsA00XD.d.mts} +2 -7
- package/dist/{guest-CB458Hgw.d.ts → guest-wIdfoT05.d.ts} +2 -7
- package/dist/{hit-stop-D2Ca-i9-.d.mts → hit-stop-BKkVwTq7.d.mts} +1 -1
- package/dist/{hit-stop-Ca1OYk15.d.ts → hit-stop-D-8pPYnM.d.ts} +1 -1
- package/dist/{hot-B9BTmDz6.d.ts → hot-Crn9XpHJ.d.ts} +1 -1
- package/dist/{hot-B_L-GEHZ.d.mts → hot-DH3nOhQD.d.mts} +1 -1
- package/dist/{index-DPeyo938.d.ts → index-B8ybCKJI.d.ts} +3 -3
- package/dist/index-BB2gjVvA.d.mts +153 -0
- package/dist/index-BEfmBDAH.d.ts +153 -0
- package/dist/{index-D8ZDzms9.d.mts → index-DHjNHb1c.d.mts} +3 -3
- package/dist/{index-DFDeJxFQ.d.ts → index-DQK8sTfu.d.ts} +2 -2
- package/dist/{index-C76o9Pj4.d.mts → index-DSVkhRmW.d.mts} +2 -2
- package/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +189 -177
- package/dist/index.mjs +8 -8
- package/dist/interactives-authoring.js +12 -1
- package/dist/interactives-authoring.mjs +12 -1
- package/dist/interactives-canvas.global.js +14 -39
- package/dist/interactives-guest.d.mts +2 -2
- package/dist/interactives-guest.d.ts +2 -2
- package/dist/interactives-guest.js +10 -10
- package/dist/interactives-guest.mjs +6 -6
- package/dist/interactives-jsc.global.js +4 -23
- package/dist/interactives-meters.d.mts +11 -11
- package/dist/interactives-meters.d.ts +11 -11
- package/dist/interactives-meters.js +65 -66
- package/dist/interactives-meters.mjs +17 -18
- package/dist/interactives-production.d.mts +5 -5
- package/dist/interactives-production.d.ts +5 -5
- package/dist/interactives-production.js +15 -16
- package/dist/interactives-production.mjs +3 -4
- package/dist/interactives-record.d.mts +3 -9
- package/dist/interactives-record.d.ts +3 -9
- package/dist/interactives-record.js +45 -65
- package/dist/interactives-record.mjs +19 -39
- package/dist/interactives-runtime.d.mts +3 -3
- package/dist/interactives-runtime.d.ts +3 -3
- package/dist/interactives-runtime.js +101 -105
- package/dist/interactives-runtime.mjs +6 -6
- package/dist/interactives-studio-kernel.global.js +1 -1
- package/dist/interactives-studio.d.mts +7 -7
- package/dist/interactives-studio.d.ts +7 -7
- package/dist/interactives-studio.js +136 -82
- package/dist/interactives-studio.mjs +65 -11
- package/dist/interactives-web.d.mts +14 -14
- package/dist/interactives-web.d.ts +14 -14
- package/dist/interactives-web.js +201 -198
- package/dist/interactives-web.mjs +33 -34
- package/dist/interactives.d.mts +7 -28
- package/dist/interactives.d.ts +7 -28
- package/dist/interactives.js +267 -313
- package/dist/interactives.mjs +26 -24
- package/dist/{juice-Dfgc1B1q.d.ts → juice-CoHxlpKA.d.ts} +1 -1
- package/dist/{juice-CsnrmTOk.d.mts → juice-DQztFS43.d.mts} +1 -1
- package/dist/{launch-CCsmv8HC.d.mts → launch-T2f4_Di4.d.mts} +6 -6
- package/dist/{launch-8W_Tojpz.d.ts → launch-d6oreMzR.d.ts} +6 -6
- package/dist/{local-DA_HpPOj.d.mts → local-D8_I6UeL.d.mts} +0 -5
- package/dist/{local-_mD0x-p_.d.ts → local-VZkqsCzR.d.ts} +0 -5
- package/dist/{ludo-BVHycBP-.d.ts → ludo-B8ClkDqr.d.ts} +4 -4
- package/dist/{ludo-BRaTcI3E.d.mts → ludo-BOuohQ-M.d.mts} +4 -4
- package/dist/mock/cli.mjs +25 -10
- package/dist/mock/library.js +25 -10
- package/dist/mock/library.mjs +25 -10
- package/dist/mock/msw.js +25 -10
- package/dist/mock/msw.mjs +25 -10
- package/dist/{native-CcMUV7rL.d.mts → native-BodxSh03.d.mts} +2 -2
- package/dist/{native-3f4Ht82c.d.ts → native-DUHMT8gA.d.ts} +2 -2
- package/dist/{online-CCy8pwOn.d.ts → online-XeymeM9s.d.ts} +1 -1
- package/dist/{online-smW2BO3Y.d.mts → online-d7W_Al9a.d.mts} +1 -1
- package/dist/{play-BhHHX1jD.d.ts → play-BRRlfLhX.d.ts} +5 -5
- package/dist/{play-Bn7NfGNE.d.mts → play-ClrMd_e8.d.mts} +5 -5
- package/dist/{policy-Dvnzg8ki.d.mts → policy-CCw8tXLm.d.mts} +19 -19
- package/dist/{policy-b3MVXMQu.d.ts → policy-CMqOSQIu.d.ts} +19 -19
- package/dist/{ports-CNeZdgVm.d.mts → ports-B_0v_P3A.d.mts} +1 -1
- package/dist/{ports-Vno6MDaR.d.ts → ports-CGU_3e_0.d.ts} +1 -1
- package/dist/{prefetch-BFg6lJyD.d.ts → prefetch-BHnicOQj.d.ts} +3 -3
- package/dist/{prefetch-BOoKX3qx.d.mts → prefetch-CBXgYacv.d.mts} +3 -3
- package/dist/{price-BIKJla_G.d.mts → price-B-w4PwHm.d.mts} +1 -1
- package/dist/{price-D1gE7Ek6.d.ts → price-BEvQFNJv.d.ts} +1 -1
- package/dist/react.d.mts +35 -27
- package/dist/react.d.ts +35 -27
- package/dist/react.js +276 -248
- package/dist/react.mjs +147 -119
- package/dist/{runner-BAG8EglP.d.ts → runner-CQcLL7By.d.ts} +6 -6
- package/dist/{runner-CKtKtIzc.d.mts → runner-D46Yj-wE.d.mts} +6 -6
- package/dist/{runtime-DfZp1Kwg.d.mts → runtime-BRWfkf_q.d.mts} +1 -8
- package/dist/{runtime-yHPgIJV-.d.ts → runtime-DyuBMkKM.d.ts} +1 -8
- package/dist/{scheduling-CnRAhWQL.d.ts → scheduling-D9WwOxbo.d.ts} +1 -1
- package/dist/{scheduling-lHyYoCa7.d.mts → scheduling-DDmrYCr-.d.mts} +1 -1
- package/dist/{server-DxcxjER1.d.ts → server-BiKwxvnf.d.ts} +2 -2
- package/dist/{server-lU3Sznd4.d.mts → server-DPdtl2dd.d.mts} +2 -2
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +10 -10
- package/dist/server.mjs +4 -4
- package/dist/{shootout-rK-oblpb.d.ts → shootout-BJZeX6FG.d.ts} +6 -6
- package/dist/{shootout-D998OWa-.d.mts → shootout-tcZd1Rxt.d.mts} +6 -6
- package/dist/styles.css +1 -1
- package/dist/{template-Byaueo34.d.mts → template-AhCdB1kW.d.mts} +3 -3
- package/dist/{template-BXE2L654.d.ts → template-BkEGVTQj.d.ts} +3 -3
- package/dist/{terrain-vgYkJPNx.d.ts → terrain-BMxEc6Oc.d.ts} +3 -3
- package/dist/{terrain-CR0NQZPl.d.mts → terrain-C-XC1Oui.d.mts} +3 -3
- package/dist/testing/msw.d.mts +3 -3
- package/dist/testing/msw.d.ts +3 -3
- package/dist/testing/msw.js +3 -3
- package/dist/testing/msw.mjs +2 -2
- package/dist/testing/suite.d.mts +6 -6
- package/dist/testing/suite.d.ts +6 -6
- package/dist/testing/suite.js +25 -25
- package/dist/testing/suite.mjs +6 -6
- package/dist/testing.d.mts +5 -5
- package/dist/testing.d.ts +5 -5
- package/dist/testing.js +117 -117
- package/dist/testing.mjs +7 -7
- package/dist/{tick-transport-Q_8syS8J.d.mts → tick-transport-C8QEh8Uw.d.mts} +1 -1
- package/dist/{tick-transport-xpMcMTs2.d.ts → tick-transport-UjHY3xK1.d.ts} +1 -1
- package/dist/{tree-BsXFWKQ6.d.mts → tree-C-Io2Hbx.d.mts} +1 -1
- package/dist/{tree-DW9x29Vv.d.ts → tree-CP_qSW4H.d.ts} +1 -1
- package/dist/{tycoon-BMAE5Wea.d.mts → tycoon-B5KHk2Xx.d.mts} +5 -5
- package/dist/{tycoon-dWvWTbE4.d.ts → tycoon-hmHo-3HX.d.ts} +5 -5
- package/dist/{types-AkQEePZo.d.mts → types-BQkxPwZP.d.mts} +1 -1
- package/dist/{types-BWaZJDla.d.ts → types-D_f6UUxM.d.ts} +1 -1
- package/dist/utils.d.mts +3 -3
- package/dist/utils.d.ts +3 -3
- package/dist/utils.js +44 -32
- package/dist/utils.mjs +2 -2
- package/dist/{weave-delivery-3G03LdMM.d.mts → weave-delivery-CW-Kstut.d.mts} +10 -1
- package/dist/{weave-delivery-3G03LdMM.d.ts → weave-delivery-CW-Kstut.d.ts} +10 -1
- package/dist/{web-C8B9uVx_.d.ts → web-Dss74a7v.d.ts} +7 -7
- package/dist/{web-BqSEfX2o.d.mts → web-f9ZQPoyw.d.mts} +7 -7
- package/dist/{weight-BDABC8cN.d.ts → weight-CPGjsgjV.d.ts} +3 -3
- package/dist/{weight-Cee73u3d.d.mts → weight-tF1ODR1p.d.mts} +3 -3
- package/dist/{word-DB2CcI9q.d.mts → word-BcX9Jcmv.d.mts} +3 -3
- package/dist/{word-C1Q8oXuy.d.ts → word-C7sVPLHm.d.ts} +3 -3
- package/dist/{world-Bmh7K4tQ.d.ts → world-PvILHDR1.d.ts} +1 -1
- package/dist/{world-CPEjuctH.d.mts → world-qekkXjJv.d.mts} +1 -1
- package/dist/{worlds-ShY5h6Z_.d.ts → worlds-Br2Pb0Cs.d.ts} +6 -6
- package/dist/{worlds-CQgN3GnR.d.mts → worlds-D5ydYr7d.d.mts} +6 -6
- package/package.json +5 -3
- package/registry/cart-summary.json +1 -1
- package/registry/chat-widget.json +1 -1
- package/registry/price.json +1 -1
- package/registry/product-customizer.json +1 -1
- package/registry/search-input.json +1 -1
- package/dist/chunk-2LKAOU3L.mjs +0 -96
- package/dist/chunk-UWPQL2IQ.js +0 -104
- package/dist/fallback-Q5YYIMVJ.js +0 -20
- package/dist/fallback-XGBE3RXC.mjs +0 -7
- package/dist/index-C3KORE2U.d.mts +0 -86
- package/dist/index-Cv_rL5X0.d.ts +0 -86
- package/dist/split-Di9wBpNx.d.mts +0 -68
- package/dist/split-Di9wBpNx.d.ts +0 -68
package/dist/react.mjs
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import { CONSENT_KINDS } from './chunk-XVZ2NKSU.mjs';
|
|
3
3
|
import { DURATION_UNIT, transformToCheckoutCart, assetUrl, getVariantDisplayName, INPUT_FIELD_TYPE, isMultiDayService, serviceBillingMultiplier, PRODUCT_TYPE, BOUNDARY_KIND, resolveGallery, chatMessageCards, RENDER_HINT, displaysGrossPrices, DEFAULT_CDN_BASE_URL } from './chunk-LUY45X3U.mjs';
|
|
4
4
|
export { getVariantDisplayName } from './chunk-LUY45X3U.mjs';
|
|
5
|
-
import { avatarRenderUrl, avatarRenders, drawnAvatarUri } from './chunk-
|
|
6
|
-
import './chunk-
|
|
5
|
+
import { avatarRenderUrl, avatarRenders, drawnAvatarUri } from './chunk-6PJWXIFX.mjs';
|
|
6
|
+
import './chunk-Z3A3AFVU.mjs';
|
|
7
7
|
import './chunk-JKGTBMU7.mjs';
|
|
8
|
-
import './chunk-
|
|
9
|
-
import { chatRealtimeUpdateFromWire, createCimplifyClient } from './chunk-
|
|
8
|
+
import './chunk-XD2PMH46.mjs';
|
|
9
|
+
import { chatRealtimeUpdateFromWire, createCimplifyClient } from './chunk-WLSU5QJT.mjs';
|
|
10
10
|
import { splitGenUIContent, messagePreview } from './chunk-SWX4SALA.mjs';
|
|
11
11
|
export { messagePreview, splitGenUIContent } from './chunk-SWX4SALA.mjs';
|
|
12
|
-
import { ELEMENT_TYPES, EVENT_TYPES, startSignIn, SESSION_CLAIMED, SESSION_CLEARED, generateIdempotencyKey, AUTH_TOKEN_CHANGED, MUTATION_ERROR } from './chunk-
|
|
12
|
+
import { ELEMENT_TYPES, EVENT_TYPES, startSignIn, SESSION_CLAIMED, SESSION_CLEARED, generateIdempotencyKey, AUTH_TOKEN_CHANGED, MUTATION_ERROR } from './chunk-KWZHIPRN.mjs';
|
|
13
13
|
import { ORDER_TYPE, CHECKOUT_STATUS } from './chunk-E6QQKDNE.mjs';
|
|
14
|
-
import { parsePrice, formatMoney,
|
|
15
|
-
import { isSupportedCurrency, ErrorCode, currencyCode, CimplifyError } from './chunk-
|
|
14
|
+
import { parsePrice, roundToCurrencyDigits, formatMoney, formatCurrencyAmount, getVariantUnitPrice, getProductCurrency, getUnitPriceAtQuantity, isOnSale, getDiscountPercentage, getBasePrice, getPriceRange, formatPriceRange, formatPrice } from './chunk-B45X3HPO.mjs';
|
|
15
|
+
import { isSupportedCurrency, ErrorCode, currencyCode, CimplifyError } from './chunk-FT6GFYJL.mjs';
|
|
16
16
|
import './chunk-25T4JHEA.mjs';
|
|
17
17
|
import React14, { createContext, lazy, memo, Suspense, useMemo, useContext, useRef, useCallback, useSyncExternalStore, useState, useEffect, useId, createRef } from 'react';
|
|
18
18
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -363,8 +363,8 @@ function toNumber(value) {
|
|
|
363
363
|
}
|
|
364
364
|
return 0;
|
|
365
365
|
}
|
|
366
|
-
function roundMoney(value) {
|
|
367
|
-
return Math.max(0,
|
|
366
|
+
function roundMoney(value, currency) {
|
|
367
|
+
return Math.max(0, roundToCurrencyDigits(value, currency));
|
|
368
368
|
}
|
|
369
369
|
function clampQuantity(quantity) {
|
|
370
370
|
return Number.isFinite(quantity) ? Math.max(1, Math.floor(quantity)) : 1;
|
|
@@ -401,18 +401,21 @@ function attachInternalItemMetadata(item, metadata = {}) {
|
|
|
401
401
|
};
|
|
402
402
|
return metadata.quotedUnitPrice !== void 0 && (internalItem._quotedUnitPrice = metadata.quotedUnitPrice), internalItem;
|
|
403
403
|
}
|
|
404
|
-
function calculateLineSubtotal(item) {
|
|
404
|
+
function calculateLineSubtotal(item, currency) {
|
|
405
405
|
if (item._quotedUnitPrice !== void 0)
|
|
406
|
-
return roundMoney(parsePrice(item._quotedUnitPrice) * item.quantity);
|
|
406
|
+
return roundMoney(parsePrice(item._quotedUnitPrice) * item.quantity, currency);
|
|
407
407
|
let unitPrice = parsePrice(item.product.default_price);
|
|
408
408
|
item.variant?.price_adjustment && (unitPrice += parsePrice(item.variant.price_adjustment));
|
|
409
409
|
for (let option of item.addOnOptions || [])
|
|
410
410
|
option.default_price && (unitPrice += parsePrice(option.default_price));
|
|
411
|
-
return roundMoney(unitPrice * item.quantity);
|
|
411
|
+
return roundMoney(unitPrice * item.quantity, currency);
|
|
412
412
|
}
|
|
413
|
-
function calculateSummary(items) {
|
|
414
|
-
let subtotal = roundMoney(
|
|
415
|
-
|
|
413
|
+
function calculateSummary(items, currency) {
|
|
414
|
+
let subtotal = roundMoney(
|
|
415
|
+
items.reduce((sum, item) => sum + calculateLineSubtotal(item, currency), 0),
|
|
416
|
+
currency
|
|
417
|
+
), tax = roundMoney(subtotal * (0), currency);
|
|
418
|
+
return { subtotal, tax, total: roundMoney(subtotal + tax, currency) };
|
|
416
419
|
}
|
|
417
420
|
function applyCartPatch(base, patch) {
|
|
418
421
|
switch (patch.kind) {
|
|
@@ -428,17 +431,17 @@ function applyCartPatch(base, patch) {
|
|
|
428
431
|
};
|
|
429
432
|
} else
|
|
430
433
|
nextItems.push(patch.tempItem);
|
|
431
|
-
return { ...base, items: nextItems, ...calculateSummary(nextItems) };
|
|
434
|
+
return { ...base, items: nextItems, ...calculateSummary(nextItems, base.currency) };
|
|
432
435
|
}
|
|
433
436
|
case "remove_item": {
|
|
434
437
|
let nextItems = base.items.filter((item) => item.id !== patch.itemId);
|
|
435
|
-
return { ...base, items: nextItems, ...calculateSummary(nextItems) };
|
|
438
|
+
return { ...base, items: nextItems, ...calculateSummary(nextItems, base.currency) };
|
|
436
439
|
}
|
|
437
440
|
case "set_quantity": {
|
|
438
441
|
let resolved = clampQuantity(patch.quantity), nextItems = base.items.map(
|
|
439
442
|
(item) => item.id === patch.itemId ? { ...item, quantity: resolved } : item
|
|
440
443
|
);
|
|
441
|
-
return { ...base, items: nextItems, ...calculateSummary(nextItems) };
|
|
444
|
+
return { ...base, items: nextItems, ...calculateSummary(nextItems, base.currency) };
|
|
442
445
|
}
|
|
443
446
|
case "clear":
|
|
444
447
|
return { ...base, items: [], subtotal: 0, tax: 0, total: 0 };
|
|
@@ -515,7 +518,8 @@ function toProductFromServerItem(item, businessId) {
|
|
|
515
518
|
metadata: { from_sdk: true }
|
|
516
519
|
};
|
|
517
520
|
}
|
|
518
|
-
function mapServerCart(serverCart,
|
|
521
|
+
function mapServerCart(serverCart, businessCurrency) {
|
|
522
|
+
let cartCurrency = serverCart.pricing.currency || businessCurrency;
|
|
519
523
|
return {
|
|
520
524
|
items: serverCart.items.map((item) => {
|
|
521
525
|
let variant = item.variant_info || item.variant_name ? {
|
|
@@ -559,14 +563,14 @@ function mapServerCart(serverCart, fallbackCurrency) {
|
|
|
559
563
|
{ quotedUnitPrice: item.total_price }
|
|
560
564
|
);
|
|
561
565
|
}),
|
|
562
|
-
subtotal: roundMoney(toNumber(serverCart.pricing.subtotal)),
|
|
563
|
-
tax: roundMoney(toNumber(serverCart.pricing.tax_amount)),
|
|
566
|
+
subtotal: roundMoney(toNumber(serverCart.pricing.subtotal), cartCurrency),
|
|
567
|
+
tax: roundMoney(toNumber(serverCart.pricing.tax_amount), cartCurrency),
|
|
564
568
|
taxRate: serverCart.pricing.tax_rate != null ? toNumber(serverCart.pricing.tax_rate) : null,
|
|
565
569
|
taxInclusive: serverCart.pricing.tax_inclusive,
|
|
566
570
|
displayGross: displaysGrossPrices(serverCart.pricing),
|
|
567
571
|
taxJurisdictionLabel: serverCart.pricing.tax_jurisdiction_label ?? null,
|
|
568
|
-
total: roundMoney(toNumber(serverCart.pricing.total_price)),
|
|
569
|
-
currency:
|
|
572
|
+
total: roundMoney(toNumber(serverCart.pricing.total_price), cartCurrency),
|
|
573
|
+
currency: cartCurrency,
|
|
570
574
|
isLoading: false
|
|
571
575
|
};
|
|
572
576
|
}
|
|
@@ -583,7 +587,7 @@ function annotateOptimisticItems(base, ops) {
|
|
|
583
587
|
};
|
|
584
588
|
}
|
|
585
589
|
function deriveView(base, ops) {
|
|
586
|
-
let folded = base ?? emptyBase(
|
|
590
|
+
let folded = base ?? emptyBase(null);
|
|
587
591
|
for (let op of ops)
|
|
588
592
|
folded = applyCartPatch(folded, op.patch);
|
|
589
593
|
return folded = annotateOptimisticItems(folded, ops), {
|
|
@@ -621,7 +625,7 @@ function getOrCreateStore(params) {
|
|
|
621
625
|
purgeLegacyCartCachesOnce();
|
|
622
626
|
let storeKey = buildStoreKey(client, locationId), existing = cartStores.get(storeKey);
|
|
623
627
|
if (existing)
|
|
624
|
-
return existing.optimisticEnabled = optimisticEnabled, existing;
|
|
628
|
+
return existing.optimisticEnabled = optimisticEnabled, currency !== null && (existing.currency = currency), existing;
|
|
625
629
|
let entry = {
|
|
626
630
|
collection: createCollection({
|
|
627
631
|
applyPatch: applyCartPatch,
|
|
@@ -766,7 +770,7 @@ function useCart(options = {}) {
|
|
|
766
770
|
let context = useOptionalCimplify(), client = options.client ?? context?.client;
|
|
767
771
|
if (!client)
|
|
768
772
|
throw new Error("useCart must be used within CimplifyProvider or passed { client }.");
|
|
769
|
-
let locationId = options.locationId ?? (context?.client === client ? context.currentLocation?.id ?? (context.isReady ? null : client.getLocationId()) : client.getLocationId()), currency = options.currency ?? context?.currency ??
|
|
773
|
+
let locationId = options.locationId ?? (context?.client === client ? context.currentLocation?.id ?? (context.isReady ? null : client.getLocationId()) : client.getLocationId()), currency = options.currency ?? context?.currency ?? null, optimisticEnabled = context?.optimistic ?? true, entry = useMemo(
|
|
770
774
|
() => getOrCreateStore({
|
|
771
775
|
client,
|
|
772
776
|
locationId,
|
|
@@ -865,7 +869,7 @@ function preconnectOrigin(url, crossOrigin) {
|
|
|
865
869
|
let link = document.createElement("link");
|
|
866
870
|
link.rel = "preconnect", link.href = origin, crossOrigin && (link.crossOrigin = crossOrigin), document.head.appendChild(link);
|
|
867
871
|
}
|
|
868
|
-
var LOCATION_STORAGE_KEY = "cimplify_location_id", DISPLAY_CURRENCY_STORAGE_KEY = "cimplify_display_currency", FX_REFRESH_INTERVAL = 12e4,
|
|
872
|
+
var LOCATION_STORAGE_KEY = "cimplify_location_id", DISPLAY_CURRENCY_STORAGE_KEY = "cimplify_display_currency", FX_REFRESH_INTERVAL = 12e4, DEFAULT_COUNTRY = "US";
|
|
869
873
|
function createDefaultClient() {
|
|
870
874
|
let envPublicKey = globalThis.process?.env?.NEXT_PUBLIC_CIMPLIFY_PUBLIC_KEY || "";
|
|
871
875
|
return createCimplifyClient({ publicKey: envPublicKey });
|
|
@@ -895,7 +899,7 @@ function getStoredDisplayCurrency() {
|
|
|
895
899
|
if (!value)
|
|
896
900
|
return null;
|
|
897
901
|
let normalized = value.trim().toUpperCase();
|
|
898
|
-
return normalized
|
|
902
|
+
return isSupportedCurrency(normalized) ? normalized : null;
|
|
899
903
|
}
|
|
900
904
|
function setStoredDisplayCurrency(currency) {
|
|
901
905
|
if (!(typeof window > "u" || !window.localStorage)) {
|
|
@@ -945,26 +949,23 @@ function CimplifyProvider({
|
|
|
945
949
|
useEffect(() => {
|
|
946
950
|
onLocationChangeRef.current = onLocationChange;
|
|
947
951
|
}, [onLocationChange]);
|
|
948
|
-
let baseCurrency = business?.default_currency ||
|
|
952
|
+
let baseCurrency = business?.default_currency || null, [displayCurrencyOverride, setDisplayCurrencyOverride] = useState(
|
|
949
953
|
() => getStoredDisplayCurrency()
|
|
950
|
-
), [fxRate, setFxRate] = useState(null), displayCurrency =
|
|
954
|
+
), [fxRate, setFxRate] = useState(null), displayCurrency = baseCurrency !== null && displayCurrencyOverride !== null ? displayCurrencyOverride : baseCurrency, setDisplayCurrency = useCallback(
|
|
951
955
|
(currency) => {
|
|
952
956
|
let normalized = currency?.trim().toUpperCase() || null;
|
|
953
|
-
normalized && !isSupportedCurrency(normalized) || (setDisplayCurrencyOverride(normalized), setStoredDisplayCurrency(normalized), (!normalized || normalized === baseCurrency) && setFxRate(null));
|
|
957
|
+
normalized !== null && !isSupportedCurrency(normalized) || (setDisplayCurrencyOverride(normalized), setStoredDisplayCurrency(normalized), (!normalized || normalized === baseCurrency) && setFxRate(null));
|
|
954
958
|
},
|
|
955
959
|
[baseCurrency]
|
|
956
960
|
);
|
|
957
961
|
useEffect(() => {
|
|
958
|
-
if (displayCurrency === baseCurrency) {
|
|
962
|
+
if (baseCurrency === null || displayCurrency === null || displayCurrency === baseCurrency) {
|
|
959
963
|
setFxRate(null);
|
|
960
964
|
return;
|
|
961
965
|
}
|
|
962
|
-
let cancelled = false;
|
|
966
|
+
let fromCurrency = baseCurrency, toCurrency = displayCurrency, cancelled = false;
|
|
963
967
|
async function fetchRate() {
|
|
964
|
-
let result = await resolvedClient.fx.getRate(
|
|
965
|
-
baseCurrency,
|
|
966
|
-
displayCurrency
|
|
967
|
-
);
|
|
968
|
+
let result = await resolvedClient.fx.getRate(fromCurrency, toCurrency);
|
|
968
969
|
cancelled || (result.ok ? setFxRate(Number(result.value.rate)) : setFxRate(null));
|
|
969
970
|
}
|
|
970
971
|
fetchRate();
|
|
@@ -977,8 +978,8 @@ function CimplifyProvider({
|
|
|
977
978
|
}, [resolvedClient, baseCurrency, displayCurrency]);
|
|
978
979
|
let convertPrice = useCallback(
|
|
979
980
|
(amount) => {
|
|
980
|
-
let
|
|
981
|
-
return
|
|
981
|
+
let value = parsePrice(amount);
|
|
982
|
+
return !fxRate || displayCurrency === null || displayCurrency === baseCurrency ? value : roundToCurrencyDigits(value * fxRate, displayCurrency);
|
|
982
983
|
},
|
|
983
984
|
[fxRate, displayCurrency, baseCurrency]
|
|
984
985
|
);
|
|
@@ -1059,10 +1060,7 @@ function useCimplify() {
|
|
|
1059
1060
|
let clientContext = useContext(CimplifyClientContext), stateContext = useContext(CimplifyStateContext);
|
|
1060
1061
|
if (!clientContext || !stateContext)
|
|
1061
1062
|
throw new Error("useCimplify must be used within CimplifyProvider");
|
|
1062
|
-
return useMemo(
|
|
1063
|
-
() => ({ ...clientContext, ...stateContext }),
|
|
1064
|
-
[clientContext, stateContext]
|
|
1065
|
-
);
|
|
1063
|
+
return useMemo(() => ({ ...clientContext, ...stateContext }), [clientContext, stateContext]);
|
|
1066
1064
|
}
|
|
1067
1065
|
function useOptionalCimplify() {
|
|
1068
1066
|
let clientContext = useContext(CimplifyClientContext), stateContext = useContext(CimplifyStateContext);
|
|
@@ -1109,9 +1107,11 @@ function CimplifyCheckout({
|
|
|
1109
1107
|
() => orderTypes && orderTypes.length > 0 ? orderTypes : [ORDER_TYPE.PICKUP, ORDER_TYPE.DELIVERY],
|
|
1110
1108
|
[orderTypes]
|
|
1111
1109
|
), resolvedDefaultOrderType = useMemo(() => defaultOrderType && resolvedOrderTypes.includes(defaultOrderType) ? defaultOrderType : resolvedOrderTypes[0] || ORDER_TYPE.PICKUP, [defaultOrderType, resolvedOrderTypes]), [orderType, setOrderType] = useState(resolvedDefaultOrderType), [status, setStatus] = useState(null), [statusText, setStatusText] = useState(""), [isSubmitting, setIsSubmitting] = useState(false), [isInitializing, setIsInitializing] = useState(false), [errorMessage, setErrorMessage] = useState(null), [resolvedBusinessId, setResolvedBusinessId] = useState(businessId ?? null), [resolvedCartId, setResolvedCartId] = useState(cartId ?? null), [resolvedCart, setResolvedCart] = useState(null), checkoutMountRef = useRef(null), elementsRef = useRef(null), activeCheckoutRef = useRef(null), initialAppearanceRef = useRef(appearance), hasWarnedInlineAppearanceRef = useRef(false), isMountedRef = useRef(true), isTestMode = client.isTestMode(), cimplifyCtx = useOptionalCimplify(), fxOptions = useMemo(() => {
|
|
1112
|
-
if (cimplifyCtx?.fxRate
|
|
1110
|
+
if (!cimplifyCtx?.fxRate) return;
|
|
1111
|
+
let displayCurrency = cimplifyCtx.displayCurrency;
|
|
1112
|
+
if (!(displayCurrency === null || displayCurrency === cimplifyCtx.baseCurrency))
|
|
1113
1113
|
return {
|
|
1114
|
-
displayCurrency
|
|
1114
|
+
displayCurrency,
|
|
1115
1115
|
convertPrice: cimplifyCtx.convertPrice
|
|
1116
1116
|
};
|
|
1117
1117
|
}, [
|
|
@@ -2906,10 +2906,10 @@ function NextDeliveryCard({
|
|
|
2906
2906
|
);
|
|
2907
2907
|
}
|
|
2908
2908
|
var BASE_CLASSES = "inline-flex items-center justify-center gap-2 font-medium text-sm rounded-md transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed", VARIANT_CLASSES = {
|
|
2909
|
-
primary: "bg-
|
|
2909
|
+
primary: "bg-[#FFE01A] text-[#141413] hover:bg-[#E0A12E] px-4 py-2.5 border border-transparent",
|
|
2910
2910
|
outline: "bg-white text-zinc-900 hover:bg-zinc-50 px-4 py-2.5 border border-zinc-300",
|
|
2911
2911
|
dark: "bg-zinc-900 text-white hover:bg-zinc-800 px-4 py-2.5 border border-zinc-800",
|
|
2912
|
-
text: "bg-transparent text-
|
|
2912
|
+
text: "bg-transparent text-[#7A6300] hover:text-[#8A5508] px-2 py-1"
|
|
2913
2913
|
};
|
|
2914
2914
|
function CimplifySignInButton({
|
|
2915
2915
|
variant = "primary",
|
|
@@ -2941,10 +2941,21 @@ function CimplifySignInButton({
|
|
|
2941
2941
|
className: cn(BASE_CLASSES, VARIANT_CLASSES[variant], fullWidth && "w-full", className),
|
|
2942
2942
|
"data-cimplify-signin": true,
|
|
2943
2943
|
children: [
|
|
2944
|
-
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "inline-flex", style: { width: 16, height: 16 }, children: /* @__PURE__ */ jsxs(
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2944
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "inline-flex", style: { width: 16, height: 16 }, children: /* @__PURE__ */ jsxs(
|
|
2945
|
+
"svg",
|
|
2946
|
+
{
|
|
2947
|
+
viewBox: "0 0 24 24",
|
|
2948
|
+
fill: "none",
|
|
2949
|
+
stroke: "currentColor",
|
|
2950
|
+
strokeWidth: 2.4,
|
|
2951
|
+
strokeLinecap: "round",
|
|
2952
|
+
strokeLinejoin: "round",
|
|
2953
|
+
children: [
|
|
2954
|
+
/* @__PURE__ */ jsx("path", { d: "M10 13.5a4 4 0 0 0 5.6 0l3-3a4 4 0 0 0-5.6-5.6L11.5 6.4" }),
|
|
2955
|
+
/* @__PURE__ */ jsx("path", { d: "M14 10.5a4 4 0 0 0-5.6 0l-3 3a4 4 0 0 0 5.6 5.6l1.5-1.5" })
|
|
2956
|
+
]
|
|
2957
|
+
}
|
|
2958
|
+
) }),
|
|
2948
2959
|
label ?? (busy ? "Signing in\u2026" : "Continue with Cimplify")
|
|
2949
2960
|
]
|
|
2950
2961
|
}
|
|
@@ -3722,10 +3733,12 @@ function Price({
|
|
|
3722
3733
|
prefix,
|
|
3723
3734
|
convert = true
|
|
3724
3735
|
}) {
|
|
3725
|
-
let context = useOptionalCimplify(), sourceCurrency = currency ?? context?.baseCurrency ??
|
|
3726
|
-
|
|
3736
|
+
let context = useOptionalCimplify(), sourceCurrency = currency ?? context?.baseCurrency ?? null;
|
|
3737
|
+
if (sourceCurrency === null) return null;
|
|
3738
|
+
let displayCurrency = context?.displayCurrency ?? null, formatted = convert && context !== null && context.fxRate != null && displayCurrency !== null && displayCurrency !== sourceCurrency && sourceCurrency === context.baseCurrency && context !== null && displayCurrency !== null ? formatCurrencyAmount(context.convertPrice(amount), displayCurrency) : formatCurrencyAmount(amount, sourceCurrency);
|
|
3739
|
+
return formatted === null ? null : /* @__PURE__ */ jsxs("span", { className, children: [
|
|
3727
3740
|
prefix,
|
|
3728
|
-
|
|
3741
|
+
formatted
|
|
3729
3742
|
] });
|
|
3730
3743
|
}
|
|
3731
3744
|
function createCachedQuery(config) {
|
|
@@ -4581,8 +4594,9 @@ function useProductPrice(input) {
|
|
|
4581
4594
|
else if (unitPrice = getVariantUnitPrice(product, variant), addOnOptions)
|
|
4582
4595
|
for (let option of addOnOptions)
|
|
4583
4596
|
option.default_price && (unitPrice += parsePrice(option.default_price));
|
|
4584
|
-
|
|
4585
|
-
|
|
4597
|
+
let currency = getProductCurrency(product);
|
|
4598
|
+
unitPrice = roundToCurrencyDigits(unitPrice, currency);
|
|
4599
|
+
let totalPrice = roundToCurrencyDigits(unitPrice * quantity, currency);
|
|
4586
4600
|
return {
|
|
4587
4601
|
unitPrice,
|
|
4588
4602
|
totalPrice,
|
|
@@ -8312,7 +8326,7 @@ function ProductCustomizerContent({
|
|
|
8312
8326
|
isExpired: isQuoteExpired2
|
|
8313
8327
|
} = useQuote(quoteInput, {
|
|
8314
8328
|
enabled: quoteEnabled
|
|
8315
|
-
}), currency = quote?.currency ?? getProductCurrency(product), quoteId = quote?.quote_id, quotedUnitPrice =
|
|
8329
|
+
}), quotedPriceInfo = quote?.quoted_total_price_info ?? quote?.final_price_info, currency = quote?.currency ?? quotedPriceInfo?.currency ?? getProductCurrency(product), quoteId = quote?.quote_id, quotedUnitPrice = quotedPriceInfo?.final_price, quotedTotalPrice = useMemo(() => {
|
|
8316
8330
|
if (quotedUnitPrice != null)
|
|
8317
8331
|
return parsePrice(quotedUnitPrice) * quantity;
|
|
8318
8332
|
}, [quotedUnitPrice, quantity]), quoteIsReady = quoteEnabled && quote !== null && !isQuoteLoading && !quoteError && !isQuoteExpired2, validationMessage = quoteEnabled ? quoteError ? QUOTE_UNAVAILABLE_MESSAGE : quoteIsReady ? null : QUOTE_LOADING_MESSAGE : REQUIRED_OPTIONS_MESSAGE, displayTotalPrice = useMemo(() => {
|
|
@@ -9337,7 +9351,7 @@ function CartSummary({
|
|
|
9337
9351
|
currency,
|
|
9338
9352
|
removeItem,
|
|
9339
9353
|
updateQuantity
|
|
9340
|
-
} = useCart(), displayCurrency = serverCart?.currency ?? currencyCode(currency), deliveryFee = serverCart?.delivery_fee, serviceCharge = serverCart?.service_charge, totalDiscounts = serverCart?.total_discounts, handleRemove = (itemId) => {
|
|
9354
|
+
} = useCart(), displayCurrency = serverCart?.currency ?? (currency === null ? null : currencyCode(currency)), deliveryFee = serverCart?.delivery_fee, serviceCharge = serverCart?.service_charge, totalDiscounts = serverCart?.total_discounts, handleRemove = (itemId) => {
|
|
9341
9355
|
onItemRemove ? onItemRemove(itemId) : removeItem(itemId);
|
|
9342
9356
|
}, handleQuantityChange = (itemId, qty) => {
|
|
9343
9357
|
onQuantityChange ? onQuantityChange(itemId, qty) : updateQuantity(itemId, qty);
|
|
@@ -11174,11 +11188,39 @@ function SearchInput({
|
|
|
11174
11188
|
alt: "",
|
|
11175
11189
|
"data-cimplify-search-result-image": true,
|
|
11176
11190
|
className: classNames?.resultImage,
|
|
11177
|
-
style: {
|
|
11191
|
+
style: {
|
|
11192
|
+
width: "2rem",
|
|
11193
|
+
height: "2rem",
|
|
11194
|
+
objectFit: "cover",
|
|
11195
|
+
borderRadius: "0.25rem",
|
|
11196
|
+
flexShrink: 0
|
|
11197
|
+
}
|
|
11198
|
+
}
|
|
11199
|
+
),
|
|
11200
|
+
/* @__PURE__ */ jsx(
|
|
11201
|
+
"span",
|
|
11202
|
+
{
|
|
11203
|
+
"data-cimplify-search-result-name": true,
|
|
11204
|
+
className: classNames?.resultName,
|
|
11205
|
+
style: { flex: 1, textAlign: "left" },
|
|
11206
|
+
children: product.name
|
|
11178
11207
|
}
|
|
11179
11208
|
),
|
|
11180
|
-
/* @__PURE__ */ jsx(
|
|
11181
|
-
|
|
11209
|
+
product.default_price !== void 0 && /* @__PURE__ */ jsx(
|
|
11210
|
+
"span",
|
|
11211
|
+
{
|
|
11212
|
+
"data-cimplify-search-result-price": true,
|
|
11213
|
+
className: classNames?.resultPrice,
|
|
11214
|
+
style: { flexShrink: 0 },
|
|
11215
|
+
children: /* @__PURE__ */ jsx(
|
|
11216
|
+
Price,
|
|
11217
|
+
{
|
|
11218
|
+
amount: product.default_price,
|
|
11219
|
+
currency: getProductCurrency(product)
|
|
11220
|
+
}
|
|
11221
|
+
)
|
|
11222
|
+
}
|
|
11223
|
+
)
|
|
11182
11224
|
] })
|
|
11183
11225
|
},
|
|
11184
11226
|
product.id
|
|
@@ -18104,16 +18146,16 @@ var COLOR = {
|
|
|
18104
18146
|
hairline: "#EDEEF1",
|
|
18105
18147
|
surface: "#FFFFFF",
|
|
18106
18148
|
fill: "#F1F1F3",
|
|
18107
|
-
accent: "#
|
|
18108
|
-
accentWash: "#
|
|
18109
|
-
accentInk: "#
|
|
18149
|
+
accent: "#FFE01A",
|
|
18150
|
+
accentWash: "#FDF3DF",
|
|
18151
|
+
accentInk: "#7A6300",
|
|
18110
18152
|
danger: "#C2410C",
|
|
18111
18153
|
iconDisabled: "#C4C8D0",
|
|
18112
|
-
onAccent: "#
|
|
18154
|
+
onAccent: "#141413",
|
|
18113
18155
|
transparent: "transparent"
|
|
18114
18156
|
}, SHADOW = {
|
|
18115
|
-
sheet: "0 12px 32px #
|
|
18116
|
-
form: "0 8px 24px #
|
|
18157
|
+
sheet: "0 12px 32px #14141314",
|
|
18158
|
+
form: "0 8px 24px #1414130F",
|
|
18117
18159
|
segment: "0 1px 3px #14161C1A",
|
|
18118
18160
|
knob: "0 2px 4px #0000001F",
|
|
18119
18161
|
focusRing: `0 0 0 4px ${COLOR.accentWash}`,
|
|
@@ -19392,7 +19434,10 @@ var CHAT_GENUI_COMPONENTS = {
|
|
|
19392
19434
|
{
|
|
19393
19435
|
role: action ? "button" : void 0,
|
|
19394
19436
|
onClick: action ? () => ctx.onAction({ action, label: title }) : void 0,
|
|
19395
|
-
className: cn(
|
|
19437
|
+
className: cn(
|
|
19438
|
+
"flex items-center gap-2.5 py-1",
|
|
19439
|
+
action && "cursor-pointer active:opacity-70"
|
|
19440
|
+
),
|
|
19396
19441
|
children: [
|
|
19397
19442
|
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 grow flex-col", children: [
|
|
19398
19443
|
/* @__PURE__ */ jsx("span", { className: "truncate text-sm font-medium text-foreground", children: title }),
|
|
@@ -19505,7 +19550,7 @@ function ReplyCardView({
|
|
|
19505
19550
|
card.image_url && /* @__PURE__ */ jsx("img", { src: card.image_url, alt: "", className: "size-12 shrink-0 rounded-xl object-cover" }),
|
|
19506
19551
|
/* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-col gap-0.5", children: [
|
|
19507
19552
|
/* @__PURE__ */ jsx("span", { className: "truncate text-sm font-semibold text-foreground", children: card.name }),
|
|
19508
|
-
card.price !== void 0 && /* @__PURE__ */ jsx("span", { className: "text-[13px] font-semibold text-foreground tabular-nums", children: formatPrice(parsePrice(card.price), currency
|
|
19553
|
+
card.price !== void 0 && /* @__PURE__ */ jsx("span", { className: "text-[13px] font-semibold text-foreground tabular-nums", children: formatPrice(parsePrice(card.price), currency) }),
|
|
19509
19554
|
fire2 && /* @__PURE__ */ jsx("span", { className: "text-xs font-semibold text-primary", children: "View" })
|
|
19510
19555
|
] })
|
|
19511
19556
|
]
|
|
@@ -19565,7 +19610,7 @@ function ChatWidget({
|
|
|
19565
19610
|
className,
|
|
19566
19611
|
classNames
|
|
19567
19612
|
}) {
|
|
19568
|
-
let context = useOptionalCimplifyClient(), client = clientProp ?? context?.client, businessName = businessNameProp ?? context?.business?.name ?? "Support", currency = currencyProp ?? context?.baseCurrency, [open, setOpen] = useState(defaultOpen), [readAt, setReadAt] = useState(null), [attachError, setAttachError] = useState(null), [replyTo, setReplyTo] = useState(null), {
|
|
19613
|
+
let context = useOptionalCimplifyClient(), client = clientProp ?? context?.client, businessName = businessNameProp ?? context?.business?.name ?? "Support", currency = currencyProp ?? context?.baseCurrency ?? void 0, [open, setOpen] = useState(defaultOpen), [readAt, setReadAt] = useState(null), [attachError, setAttachError] = useState(null), [replyTo, setReplyTo] = useState(null), {
|
|
19569
19614
|
messages,
|
|
19570
19615
|
isLoading,
|
|
19571
19616
|
isSending,
|
|
@@ -19618,9 +19663,7 @@ function ChatWidget({
|
|
|
19618
19663
|
return setReplyTo(null), send(content, target ? { replyTo: target } : void 0);
|
|
19619
19664
|
},
|
|
19620
19665
|
[send, replyTo]
|
|
19621
|
-
), unread = open ? 0 : messages.filter(
|
|
19622
|
-
(m) => m.sender_type !== "customer" && (!readAt || m.created_at > readAt)
|
|
19623
|
-
).length;
|
|
19666
|
+
), unread = open ? 0 : messages.filter((m) => m.sender_type !== "customer" && (!readAt || m.created_at > readAt)).length;
|
|
19624
19667
|
useState(() => {
|
|
19625
19668
|
defaultOpen && openIfExisting();
|
|
19626
19669
|
});
|
|
@@ -19640,14 +19683,7 @@ function ChatWidget({
|
|
|
19640
19683
|
classNames?.root
|
|
19641
19684
|
),
|
|
19642
19685
|
children: [
|
|
19643
|
-
!open && /* @__PURE__ */ jsx(
|
|
19644
|
-
Bubble,
|
|
19645
|
-
{
|
|
19646
|
-
unread,
|
|
19647
|
-
onClick: handleOpen,
|
|
19648
|
-
className: classNames?.bubble
|
|
19649
|
-
}
|
|
19650
|
-
),
|
|
19686
|
+
!open && /* @__PURE__ */ jsx(Bubble, { unread, onClick: handleOpen, className: classNames?.bubble }),
|
|
19651
19687
|
open && /* @__PURE__ */ jsx(
|
|
19652
19688
|
Panel,
|
|
19653
19689
|
{
|
|
@@ -19854,8 +19890,7 @@ function Panel({
|
|
|
19854
19890
|
}
|
|
19855
19891
|
),
|
|
19856
19892
|
/* @__PURE__ */ jsxs("div", { className: "flex-shrink-0 border-t border-border bg-background px-4 py-1.5 text-center text-[10px] text-muted-foreground", children: [
|
|
19857
|
-
"Powered by",
|
|
19858
|
-
" ",
|
|
19893
|
+
"Powered by ",
|
|
19859
19894
|
/* @__PURE__ */ jsx("span", { className: "font-semibold text-foreground", children: "Cimplify" })
|
|
19860
19895
|
] })
|
|
19861
19896
|
]
|
|
@@ -20005,42 +20040,35 @@ function MessageList({
|
|
|
20005
20040
|
) }),
|
|
20006
20041
|
bubbles.map((msg, i) => {
|
|
20007
20042
|
let prev = bubbles[i - 1], newDay = !prev || !sameDay(prev.created_at, msg.created_at), group = groupPosition(timeline, i), startsRun = group === "single" || group === "first", delivery = deliveryState(msg, timeline, seenAt, isOptimistic);
|
|
20008
|
-
return /* @__PURE__ */ jsxs(
|
|
20009
|
-
"
|
|
20010
|
-
|
|
20011
|
-
|
|
20012
|
-
|
|
20013
|
-
|
|
20014
|
-
|
|
20015
|
-
|
|
20016
|
-
|
|
20017
|
-
|
|
20018
|
-
|
|
20019
|
-
|
|
20020
|
-
|
|
20021
|
-
|
|
20022
|
-
|
|
20023
|
-
|
|
20024
|
-
|
|
20025
|
-
|
|
20026
|
-
|
|
20027
|
-
|
|
20028
|
-
|
|
20029
|
-
|
|
20030
|
-
|
|
20031
|
-
|
|
20032
|
-
|
|
20033
|
-
|
|
20034
|
-
|
|
20035
|
-
|
|
20036
|
-
|
|
20037
|
-
}
|
|
20038
|
-
)
|
|
20039
|
-
] })
|
|
20040
|
-
]
|
|
20041
|
-
},
|
|
20042
|
-
msg.id
|
|
20043
|
-
);
|
|
20043
|
+
return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-1.5", startsRun && i > 0 && "mt-2.5"), children: [
|
|
20044
|
+
newDay && /* @__PURE__ */ jsx(Seam, { variant: "chip", label: dayLabel(msg.created_at) }),
|
|
20045
|
+
msg.id === firstUnreadId && /* @__PURE__ */ jsx(
|
|
20046
|
+
Seam,
|
|
20047
|
+
{
|
|
20048
|
+
variant: "unread",
|
|
20049
|
+
label: `${unreadOnOpen} new message${unreadOnOpen === 1 ? "" : "s"}`
|
|
20050
|
+
}
|
|
20051
|
+
),
|
|
20052
|
+
msg.id === firstAgentMessageId && /* @__PURE__ */ jsx(Seam, { label: "A person joined" }),
|
|
20053
|
+
msg.sender_type === "system" ? /* @__PURE__ */ jsx(Seam, { label: "Passing you to the team" }) : /* @__PURE__ */ jsxs("div", { className: "group relative", children: [
|
|
20054
|
+
msg.sender_type !== "customer" && !isOptimistic(msg) && /* @__PURE__ */ jsx(HoverRail, { message: msg, onReact, onReply }),
|
|
20055
|
+
/* @__PURE__ */ jsx(
|
|
20056
|
+
MessageBubble,
|
|
20057
|
+
{
|
|
20058
|
+
message: msg,
|
|
20059
|
+
reactions: reactionsByTarget.get(msg.id),
|
|
20060
|
+
businessName,
|
|
20061
|
+
group,
|
|
20062
|
+
delivery,
|
|
20063
|
+
onReply,
|
|
20064
|
+
avatar: /* @__PURE__ */ jsx(LetterAvatar, { name: businessName }),
|
|
20065
|
+
renderProgram: (source) => /* @__PURE__ */ jsx(ChatKitProgram, { source, onAction: onGenUIAction }),
|
|
20066
|
+
renderCards: (target) => /* @__PURE__ */ jsx(ChatReplyCards, { message: target, currency, onAction: onGenUIAction }),
|
|
20067
|
+
onQuoteMiss: async () => (onLoadOlder(), true)
|
|
20068
|
+
}
|
|
20069
|
+
)
|
|
20070
|
+
] })
|
|
20071
|
+
] }, msg.id);
|
|
20044
20072
|
}),
|
|
20045
20073
|
isSending && /* @__PURE__ */ jsx("div", { className: "mr-auto mt-1", children: /* @__PURE__ */ jsx(TypingDots, {}) }),
|
|
20046
20074
|
offerHuman && /* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsx(
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { u as SoftCurrency, h as GenreTemplate, F as Faucet, E as EconomyDecl } from './template-
|
|
2
|
-
import { d as ScreenShake, H as HitStop } from './hit-stop-
|
|
3
|
-
import { T as Transforms, E as Entity } from './world-
|
|
4
|
-
import { F as FrameTime } from './backend-
|
|
5
|
-
import { G as Game } from './game-
|
|
6
|
-
import { G as GameScene } from './fluid-
|
|
1
|
+
import { u as SoftCurrency, h as GenreTemplate, F as Faucet, E as EconomyDecl } from './template-BkEGVTQj.js';
|
|
2
|
+
import { d as ScreenShake, H as HitStop } from './hit-stop-D-8pPYnM.js';
|
|
3
|
+
import { T as Transforms, E as Entity } from './world-PvILHDR1.js';
|
|
4
|
+
import { F as FrameTime } from './backend-gUCzs5Kg.js';
|
|
5
|
+
import { G as Game } from './game-fgQy2YIm.js';
|
|
6
|
+
import { G as GameScene } from './fluid-ARr0qUIL.js';
|
|
7
7
|
|
|
8
8
|
interface CameraRigOptions {
|
|
9
9
|
readonly smoothSeconds?: number;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { u as SoftCurrency, h as GenreTemplate, F as Faucet, E as EconomyDecl } from './template-
|
|
2
|
-
import { d as ScreenShake, H as HitStop } from './hit-stop-
|
|
3
|
-
import { T as Transforms, E as Entity } from './world-
|
|
4
|
-
import { F as FrameTime } from './backend-
|
|
5
|
-
import { G as Game } from './game-
|
|
6
|
-
import { G as GameScene } from './fluid-
|
|
1
|
+
import { u as SoftCurrency, h as GenreTemplate, F as Faucet, E as EconomyDecl } from './template-AhCdB1kW.mjs';
|
|
2
|
+
import { d as ScreenShake, H as HitStop } from './hit-stop-BKkVwTq7.mjs';
|
|
3
|
+
import { T as Transforms, E as Entity } from './world-qekkXjJv.mjs';
|
|
4
|
+
import { F as FrameTime } from './backend-gUCzs5Kg.mjs';
|
|
5
|
+
import { G as Game } from './game-Bx8onkhX.mjs';
|
|
6
|
+
import { G as GameScene } from './fluid-DLlEj2cs.mjs';
|
|
7
7
|
|
|
8
8
|
interface CameraRigOptions {
|
|
9
9
|
readonly smoothSeconds?: number;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { W as WebGpuExecutor, d as WebGl2Executor, P as PlatformAudioDecoder, e as PlatformEngineRuntime, f as PlatformEngine } from './local-
|
|
1
|
+
import { W as WebGpuExecutor, d as WebGl2Executor, P as PlatformAudioDecoder, e as PlatformEngineRuntime, f as PlatformEngine } from './local-D8_I6UeL.mjs';
|
|
2
2
|
import { b as EngineSessionGrant } from './session-grant-CJ27DwrT.mjs';
|
|
3
|
-
import { D as DeferredCode, a as DeferredEngine } from './split-Di9wBpNx.mjs';
|
|
4
3
|
|
|
5
4
|
interface ThreadScope {
|
|
6
5
|
readonly crossOriginIsolated?: boolean;
|
|
@@ -39,16 +38,10 @@ interface EngineRuntimeOptions {
|
|
|
39
38
|
readonly scope?: ThreadScope;
|
|
40
39
|
readonly workerFactory?: WorkerFactory;
|
|
41
40
|
readonly session?: EngineSessionGrant | null;
|
|
42
|
-
/** The rest of a split engine core, for a boot core built by wasm-split. */
|
|
43
|
-
readonly deferred?: DeferredCode | null;
|
|
44
|
-
/** Extra `env` imports, for a core built with binaryen's --instrument-memory (the stage's static data capture). */
|
|
45
|
-
readonly instrument?: WebAssembly.ModuleImports | null;
|
|
46
41
|
}
|
|
47
42
|
interface LoadedEngineRuntime extends EngineRuntime {
|
|
48
43
|
readonly threads: EngineThreads | null;
|
|
49
44
|
readonly lanes: number;
|
|
50
|
-
/** Links a split core to the rest of its code; null for a whole core. */
|
|
51
|
-
readonly deferred: DeferredEngine | null;
|
|
52
45
|
}
|
|
53
46
|
declare function bindEngineRuntime(runtime: PlatformEngineRuntime): EngineRuntime;
|
|
54
47
|
declare function loadEngineRuntime(source: BufferSource | WebAssembly.Module, options?: EngineRuntimeOptions): Promise<LoadedEngineRuntime>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { W as WebGpuExecutor, d as WebGl2Executor, P as PlatformAudioDecoder, e as PlatformEngineRuntime, f as PlatformEngine } from './local-
|
|
1
|
+
import { W as WebGpuExecutor, d as WebGl2Executor, P as PlatformAudioDecoder, e as PlatformEngineRuntime, f as PlatformEngine } from './local-VZkqsCzR.js';
|
|
2
2
|
import { b as EngineSessionGrant } from './session-grant-CJ27DwrT.js';
|
|
3
|
-
import { D as DeferredCode, a as DeferredEngine } from './split-Di9wBpNx.js';
|
|
4
3
|
|
|
5
4
|
interface ThreadScope {
|
|
6
5
|
readonly crossOriginIsolated?: boolean;
|
|
@@ -39,16 +38,10 @@ interface EngineRuntimeOptions {
|
|
|
39
38
|
readonly scope?: ThreadScope;
|
|
40
39
|
readonly workerFactory?: WorkerFactory;
|
|
41
40
|
readonly session?: EngineSessionGrant | null;
|
|
42
|
-
/** The rest of a split engine core, for a boot core built by wasm-split. */
|
|
43
|
-
readonly deferred?: DeferredCode | null;
|
|
44
|
-
/** Extra `env` imports, for a core built with binaryen's --instrument-memory (the stage's static data capture). */
|
|
45
|
-
readonly instrument?: WebAssembly.ModuleImports | null;
|
|
46
41
|
}
|
|
47
42
|
interface LoadedEngineRuntime extends EngineRuntime {
|
|
48
43
|
readonly threads: EngineThreads | null;
|
|
49
44
|
readonly lanes: number;
|
|
50
|
-
/** Links a split core to the rest of its code; null for a whole core. */
|
|
51
|
-
readonly deferred: DeferredEngine | null;
|
|
52
45
|
}
|
|
53
46
|
declare function bindEngineRuntime(runtime: PlatformEngineRuntime): EngineRuntime;
|
|
54
47
|
declare function loadEngineRuntime(source: BufferSource | WebAssembly.Module, options?: EngineRuntimeOptions): Promise<LoadedEngineRuntime>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Hono } from 'hono';
|
|
2
|
-
import { dV as ProductInputField, eh as PurchaseIntentView, cL as MintPurchaseIntentRequest, l as ConfirmPurchaseIntentResponse, eI as SubmitAuthorizationInput, aj as CHECKOUT_NEXT_ACTION, fb as VerifyMobileMoneyResult, n as ConfirmPurchaseIntentRequest, eJ as SubmitPurchaseIntentActionRequest } from './elements-
|
|
3
|
-
import { i as RescheduleBookingResult } from './scheduling-
|
|
2
|
+
import { dV as ProductInputField, eh as PurchaseIntentView, cL as MintPurchaseIntentRequest, l as ConfirmPurchaseIntentResponse, eI as SubmitAuthorizationInput, aj as CHECKOUT_NEXT_ACTION, fb as VerifyMobileMoneyResult, n as ConfirmPurchaseIntentRequest, eJ as SubmitPurchaseIntentActionRequest } from './elements-ss9xZgRg.js';
|
|
3
|
+
import { i as RescheduleBookingResult } from './scheduling-D9WwOxbo.js';
|
|
4
4
|
|
|
5
5
|
interface Clock {
|
|
6
6
|
now(): Date;
|