@nuxt/scripts 0.9.5 → 0.10.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/README.md +4 -6
- package/dist/client/200.html +232 -224
- package/dist/client/404.html +232 -224
- package/dist/client/_nuxt/-71hrkjd.js +1 -0
- package/dist/client/_nuxt/0BrjI7ue.js +1 -0
- package/dist/client/_nuxt/2V0Ap-uE.js +1 -0
- package/dist/client/_nuxt/3xVqZejG.js +1 -0
- package/dist/client/_nuxt/{CrOfvjVs.js → 5LuOXUq_.js} +1 -1
- package/dist/client/_nuxt/727ZlQH0.js +1 -0
- package/dist/client/_nuxt/8jXJkYXT.js +1 -0
- package/dist/client/_nuxt/9C6ErRqt.js +1 -0
- package/dist/client/_nuxt/B-_AxZdj.js +1 -0
- package/dist/client/_nuxt/B0XVJmRM.js +1 -0
- package/dist/client/_nuxt/B14Poo8t.js +1 -0
- package/dist/client/_nuxt/B1bQXN8T.js +1 -0
- package/dist/client/_nuxt/B3ZDOciz.js +1 -0
- package/dist/client/_nuxt/B430Bg39.js +1 -0
- package/dist/client/_nuxt/B48N-Iqd.js +1 -0
- package/dist/client/_nuxt/B5lbUyaz.js +1 -0
- package/dist/client/_nuxt/B6U2uXNT.js +1 -0
- package/dist/client/_nuxt/B6W0miNI.js +1 -0
- package/dist/client/_nuxt/B7mTdjB0.js +1 -0
- package/dist/client/_nuxt/B9wLZaAG.js +1 -0
- package/dist/client/_nuxt/BAng5TT0.js +1 -0
- package/dist/client/_nuxt/BAxNRJcx.js +1 -0
- package/dist/client/_nuxt/BBT0u3iQ.js +1 -0
- package/dist/client/_nuxt/BCMa2Tx6.js +1 -0
- package/dist/client/_nuxt/BDiHrqA7.js +1 -0
- package/dist/client/_nuxt/{C8pgRvQH.js → BFOHcciG.js} +1 -1
- package/dist/client/_nuxt/BHyGnp0Z.js +1 -0
- package/dist/client/_nuxt/BLCLeV30.js +1 -0
- package/dist/client/_nuxt/BLmoVg8f.js +1 -0
- package/dist/client/_nuxt/{C0hdQUNN.js → BMR_PYu6.js} +1 -1
- package/dist/client/_nuxt/BMj5Y0dO.js +1 -0
- package/dist/client/_nuxt/BNioltXt.js +1 -0
- package/dist/client/_nuxt/BPhBrDlE.js +1 -0
- package/dist/client/_nuxt/BR4n0CG2.js +1 -0
- package/dist/client/_nuxt/BSxZ-RaX.js +1 -0
- package/dist/client/_nuxt/{B6NdQBKR.js → BWx0ALLs.js} +1 -1
- package/dist/client/_nuxt/{CMz7PuSU.js → BX77sIaO.js} +1 -1
- package/dist/client/_nuxt/BXW1EomU.js +1 -0
- package/dist/client/_nuxt/{CHcC_Ka1.js → BXZ5z1bG.js} +1 -1
- package/dist/client/_nuxt/BXl-Qilg.js +1 -0
- package/dist/client/_nuxt/BY-TUvya.js +1 -0
- package/dist/client/_nuxt/BZ4qjH1z.js +1 -0
- package/dist/client/_nuxt/B_7mSSNY.js +1 -0
- package/dist/client/_nuxt/{B9hcNGex.js → Ba6QCfRf.js} +1 -1
- package/dist/client/_nuxt/Bbt-fWo2.js +1 -0
- package/dist/client/_nuxt/BcOcwvcX.js +1 -0
- package/dist/client/_nuxt/{B66eQrDP.js → BceOnUsB.js} +1 -1
- package/dist/client/_nuxt/BekpkmYp.js +1 -0
- package/dist/client/_nuxt/{8zCoLDY8.js → BepIKhab.js} +1 -1
- package/dist/client/_nuxt/{CpRrwcwt.js → BfivnA6A.js} +1 -1
- package/dist/client/_nuxt/Bg-kzb6g.js +1 -0
- package/dist/client/_nuxt/Bi2Xjx-o.js +1 -0
- package/dist/client/_nuxt/Bid6LQhH.js +1 -0
- package/dist/client/_nuxt/BixDBq5F.js +1 -0
- package/dist/client/_nuxt/Bjjh7dxw.js +1 -0
- package/dist/client/_nuxt/BkR1g5rb.js +1 -0
- package/dist/client/_nuxt/{D-RymO5g.js → BknIz3MU.js} +1 -1
- package/dist/client/_nuxt/{D3CL8VSI.js → Bl1h29GH.js} +1 -1
- package/dist/client/_nuxt/Blx2zv3z.js +1 -0
- package/dist/client/_nuxt/BnLMxUhr.js +1 -0
- package/dist/client/_nuxt/BnZ6J9ez.js +1 -0
- package/dist/client/_nuxt/BoXegm-a.js +1 -0
- package/dist/client/_nuxt/BpWG_bgh.js +1 -0
- package/dist/client/_nuxt/{DNDvMORL.js → Bvotw-X0.js} +1 -1
- package/dist/client/_nuxt/Bw1r3vCz.js +1 -0
- package/dist/client/_nuxt/BxugDVxS.js +1 -0
- package/dist/client/_nuxt/BzEH12SI.js +1 -0
- package/dist/client/_nuxt/C-_shW-Y.js +1 -0
- package/dist/client/_nuxt/C1XDQQGZ.js +1 -0
- package/dist/client/_nuxt/C1YtDkjL.js +1 -0
- package/dist/client/_nuxt/{DymQr0nX.js → C1w2a3ep.js} +1 -1
- package/dist/client/_nuxt/C39BiMTA.js +1 -0
- package/dist/client/_nuxt/C3FkfJm5.js +1 -0
- package/dist/client/_nuxt/C3TFZlTA.js +1 -0
- package/dist/client/_nuxt/C3mMm8J8.js +1 -0
- package/dist/client/_nuxt/C3t2pwGQ.js +1 -0
- package/dist/client/_nuxt/C4-SGcC-.js +1 -0
- package/dist/client/_nuxt/C5AohmeQ.js +1 -0
- package/dist/client/_nuxt/C5wWYbrZ.js +1 -0
- package/dist/client/_nuxt/C7L56vO4.js +1 -0
- package/dist/client/_nuxt/C7gG9l05.js +1 -0
- package/dist/client/_nuxt/C8E1IXHE.js +1 -0
- package/dist/client/_nuxt/C9e09xm7.js +1 -0
- package/dist/client/_nuxt/CAQ2eGtk.js +1 -0
- package/dist/client/_nuxt/CCQEdssC.js +1 -0
- package/dist/client/_nuxt/CCbUEAxs.js +1 -0
- package/dist/client/_nuxt/CD_QflpE.js +1 -0
- package/dist/client/_nuxt/CGzGISHo.js +32 -0
- package/dist/client/_nuxt/CHVitPdg.js +1 -0
- package/dist/client/_nuxt/CJaU5se_.js +1 -0
- package/dist/client/_nuxt/CLEBXJYW.js +1 -0
- package/dist/client/_nuxt/{CmWLV2bY.js → CM8KxXT1.js} +1 -1
- package/dist/client/_nuxt/COJ4H7py.js +1 -0
- package/dist/client/_nuxt/COl1u60l.js +1 -0
- package/dist/client/_nuxt/{CbUnruJU.js → COyJrUc7.js} +1 -1
- package/dist/client/_nuxt/CQ5q8R2W.js +1 -0
- package/dist/client/_nuxt/CQPZbkWf.js +1 -0
- package/dist/client/_nuxt/CR_dl2Bk.js +1 -0
- package/dist/client/_nuxt/CSHBycmS.js +1 -0
- package/dist/client/_nuxt/CSHvh9SD.js +1 -0
- package/dist/client/_nuxt/CUnW07Te.js +1 -0
- package/dist/client/_nuxt/{CIiI48o2.js → CVw76BM1.js} +1 -1
- package/dist/client/_nuxt/CWGUrYGm.js +1 -0
- package/dist/client/_nuxt/CWgbWrzg.js +1 -0
- package/dist/client/_nuxt/CX-D33aM.js +1 -0
- package/dist/client/_nuxt/CXkZqcqC.js +1 -0
- package/dist/client/_nuxt/Cbu_jgUK.js +1 -0
- package/dist/client/_nuxt/Cc5clBb7.js +1 -0
- package/dist/client/_nuxt/{Bv-mwDEg.js → CdO5JTpU.js} +1 -1
- package/dist/client/_nuxt/CeaQPKDP.js +1 -0
- package/dist/client/_nuxt/CfQXZHmo.js +1 -0
- package/dist/client/_nuxt/Cg69lM4A.js +1 -0
- package/dist/client/_nuxt/{BTbGKmhu.js → CiNAsHKU.js} +1 -1
- package/dist/client/_nuxt/CjDtw9vr.js +1 -0
- package/dist/client/_nuxt/CjTSRSzG.js +1 -0
- package/dist/client/_nuxt/CkXjmgJE.js +1 -0
- package/dist/client/_nuxt/Cksrkzhi.js +1 -0
- package/dist/client/_nuxt/Cl11rDh_.js +1 -0
- package/dist/client/_nuxt/{IqKf4WGj.js → ClJifeiK.js} +1 -1
- package/dist/client/_nuxt/CmCqftbK.js +1 -0
- package/dist/client/_nuxt/CsSk9TLD.js +1 -0
- package/dist/client/_nuxt/CsiB4_CF.js +1 -0
- package/dist/client/_nuxt/CucaAMjX.js +1 -0
- package/dist/client/_nuxt/{Cqv5JV-q.js → CwjWoCRV.js} +1 -1
- package/dist/client/_nuxt/CyZx4btO.js +1 -0
- package/dist/client/_nuxt/CzouJOBO.js +1 -0
- package/dist/client/_nuxt/D08_rs9c.js +1 -0
- package/dist/client/_nuxt/D33VVPhb.js +1 -0
- package/dist/client/_nuxt/D3T736Ml.js +1 -0
- package/dist/client/_nuxt/{CQWsIgnU.js → D4h5O-jR.js} +1 -1
- package/dist/client/_nuxt/D8P4R8x9.js +1 -0
- package/dist/client/_nuxt/DBPt_AfP.js +1 -0
- package/dist/client/_nuxt/DBtIRQT_.js +1 -0
- package/dist/client/_nuxt/DCE3LsBG.js +1 -0
- package/dist/client/_nuxt/DDhM2Lry.js +1 -0
- package/dist/client/_nuxt/DEEqWFGm.js +1 -0
- package/dist/client/_nuxt/DERFIACx.js +1 -0
- package/dist/client/_nuxt/{D44NvAEk.js → DFAwn6Qs.js} +1 -1
- package/dist/client/_nuxt/DFERiEu9.js +1 -0
- package/dist/client/_nuxt/DHo0CJ0O.js +1 -0
- package/dist/client/_nuxt/{Dzwn3p-3.js → DJlmqQ1C.js} +1 -1
- package/dist/client/_nuxt/DKOGybHv.js +1 -0
- package/dist/client/_nuxt/DLdrzW0n.js +1 -0
- package/dist/client/_nuxt/DNTbO5Kf.js +1 -0
- package/dist/client/_nuxt/DPWDxuKt.js +1 -0
- package/dist/client/_nuxt/DPvbFsQx.js +1 -0
- package/dist/client/_nuxt/DRW-0cLl.js +1 -0
- package/dist/client/_nuxt/DSrUkfvF.js +1 -0
- package/dist/client/_nuxt/DTAJTTim.js +1 -0
- package/dist/client/_nuxt/DVMEJ2y_.js +1 -0
- package/dist/client/_nuxt/DWedfzmr.js +1 -0
- package/dist/client/_nuxt/{CmY0Y6Yh.js → DXbdFlpD.js} +1 -1
- package/dist/client/_nuxt/DYoNaHQp.js +1 -0
- package/dist/client/_nuxt/{yA8e6OR-.js → D_iqerNF.js} +1 -1
- package/dist/client/_nuxt/DaDNKYhP.js +1 -0
- package/dist/client/_nuxt/{CNRQ974Q.js → Dayu4EKP.js} +1 -1
- package/dist/client/_nuxt/DbcauaCG.js +1 -0
- package/dist/client/_nuxt/Dbxjm_CC.js +1 -0
- package/dist/client/_nuxt/Ddn3lr0y.js +1 -0
- package/dist/client/_nuxt/Dhn9LcZ4.js +1 -0
- package/dist/client/_nuxt/Dj6nwHGl.js +1 -0
- package/dist/client/_nuxt/DjCbjd0V.js +1 -0
- package/dist/client/_nuxt/DjP-tqRL.js +1 -0
- package/dist/client/_nuxt/DlaVQbPD.js +1 -0
- package/dist/client/_nuxt/DlqU7Mzb.js +1 -0
- package/dist/client/_nuxt/DnAB7knh.js +1 -0
- package/dist/client/_nuxt/Dp08fnRF.js +1 -0
- package/dist/client/_nuxt/DpGQfXhQ.js +1 -0
- package/dist/client/_nuxt/{s1PdnzAn.js → DqDt7uUl.js} +1 -1
- package/dist/client/_nuxt/Ds-gbosJ.js +1 -0
- package/dist/client/_nuxt/DsBKuouk.js +1 -0
- package/dist/client/_nuxt/DtFQj3wx.js +1 -0
- package/dist/client/_nuxt/Dtn5OO9k.js +1 -0
- package/dist/client/_nuxt/Du268qiB.js +1 -0
- package/dist/client/_nuxt/Du5NY7AG.js +1 -0
- package/dist/client/_nuxt/DxSadP1t.js +1 -0
- package/dist/client/_nuxt/{Da_8ueAw.js → DyGSH8sA.js} +1 -1
- package/dist/client/_nuxt/ISJeQQUc.js +1 -0
- package/dist/client/_nuxt/{Dtn98rcr.js → IuBKFhSY.js} +1 -1
- package/dist/client/_nuxt/{DZQMDcrx.js → L9t79GZl.js} +1 -1
- package/dist/client/_nuxt/LGGdnPYs.js +1 -0
- package/dist/client/_nuxt/MxEea5SM.js +1 -0
- package/dist/client/_nuxt/Olw6fvns.js +1 -0
- package/dist/client/_nuxt/R5DMG1SI.js +1 -0
- package/dist/client/_nuxt/RJ4jLoVH.js +1 -0
- package/dist/client/_nuxt/RvZl2ZSs.js +1 -0
- package/dist/client/_nuxt/{BSHf-0eb.js → SKMF96pI.js} +1 -1
- package/dist/client/_nuxt/SPD3sf1n.js +1 -0
- package/dist/client/_nuxt/{D9Bn7OQI.js → T-Tgc4AT.js} +1 -1
- package/dist/client/_nuxt/UP2u2qKn.js +1 -0
- package/dist/client/_nuxt/WlOKAcJ7.js +1 -0
- package/dist/client/_nuxt/XBlWyCtg.js +1 -0
- package/dist/client/_nuxt/{L9-HYnaW.js → YJb9dmdj.js} +1 -1
- package/dist/client/_nuxt/YSxxb8je.js +1 -0
- package/dist/client/_nuxt/a8RH-YUw.js +1 -0
- package/dist/client/_nuxt/aBZrgJR0.js +1 -0
- package/dist/client/_nuxt/{Bnbw1zOw.js → ahYVQIuB.js} +1 -1
- package/dist/client/_nuxt/{DJEtsjbi.js → ajMbGru0.js} +1 -1
- package/dist/client/_nuxt/{dZn0vQkf.js → bCA53EVm.js} +1 -1
- package/dist/client/_nuxt/bN70gL4F.js +1 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/66990e06-bd43-4fcc-a366-b9ec546b2f39.json +1 -0
- package/dist/client/_nuxt/{CkqQx3Va.js → cPjAOO0u.js} +1 -1
- package/dist/client/_nuxt/eHy1PpK4.js +1 -0
- package/dist/client/_nuxt/{BINKOAKH.js → eg146-Ew.js} +1 -1
- package/dist/client/_nuxt/entry.8G-dVB4s.css +1 -0
- package/dist/client/_nuxt/error-404.BuAnUH8b.css +1 -0
- package/dist/client/_nuxt/error-500.DrCOIGHy.css +1 -0
- package/dist/client/_nuxt/fje9CFhw.js +1 -0
- package/dist/client/_nuxt/hegEt444.js +1 -0
- package/dist/client/_nuxt/ifBTmRxC.js +1 -0
- package/dist/client/_nuxt/jOnvO7K6.js +1 -0
- package/dist/client/_nuxt/jY9aw0fr.js +1 -0
- package/dist/client/_nuxt/{Bt50SWsh.js → kP2iUUCn.js} +1 -1
- package/dist/client/_nuxt/k_46elR7.js +1 -0
- package/dist/client/_nuxt/m4uW47V2.js +1 -0
- package/dist/client/_nuxt/mD5xMClh.js +1 -0
- package/dist/client/_nuxt/o8ODhS4a.js +1 -0
- package/dist/client/_nuxt/otdIdbsQ.js +1 -0
- package/dist/client/_nuxt/qVXJnTkO.js +1 -0
- package/dist/client/_nuxt/qmhIZ77x.js +1 -0
- package/dist/client/_nuxt/rAlqSFiP.js +1 -0
- package/dist/client/_nuxt/s0gpj0oJ.js +1 -0
- package/dist/client/_nuxt/sY1Cc3Se.js +1 -0
- package/dist/client/_nuxt/{DwFwdhDE.js → sdHcTMYB.js} +1 -1
- package/dist/client/_nuxt/tpHetfZQ.js +1 -0
- package/dist/client/_nuxt/ulE5f4OK.js +1 -0
- package/dist/client/_nuxt/xI-RfyKK.js +1 -0
- package/dist/client/_nuxt/{CpWBKVjh.js → xW4inM5L.js} +1 -1
- package/dist/client/_nuxt/ySlJ1b_l.js +1 -0
- package/dist/client/_nuxt/z307i-ZX.js +1 -0
- package/dist/client/_nuxt/{hdsyEllQ.js → zocC4JxJ.js} +1 -1
- package/dist/client/index.html +232 -224
- package/dist/module.d.mts +5 -0
- package/dist/module.d.ts +5 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +26 -21
- package/dist/registry.mjs +21 -11
- package/dist/runtime/components/ScriptAriaLoadingIndicator.vue +7 -0
- package/dist/runtime/components/ScriptCarbonAds.vue +12 -7
- package/dist/runtime/components/ScriptCrisp.vue +2 -2
- package/dist/runtime/components/ScriptGoogleAdsense.vue +15 -5
- package/dist/runtime/components/ScriptGoogleMaps.vue +3 -4
- package/dist/runtime/components/ScriptIntercom.vue +2 -2
- package/dist/runtime/components/ScriptLemonSqueezy.vue +1 -1
- package/dist/runtime/components/ScriptLoadingIndicator.vue +1 -1
- package/dist/runtime/components/ScriptStripePricingTable.vue +1 -2
- package/dist/runtime/components/ScriptVimeoPlayer.vue +5 -3
- package/dist/runtime/components/ScriptYouTubePlayer.vue +42 -7
- package/dist/runtime/composables/useScript.d.ts +1 -1
- package/dist/runtime/composables/useScript.js +3 -2
- package/dist/runtime/composables/useScriptEventPage.d.ts +1 -1
- package/dist/runtime/composables/useScriptEventPage.js +3 -1
- package/dist/runtime/composables/useScriptTriggerConsent.js +2 -1
- package/dist/runtime/registry/clarity.d.ts +2 -2
- package/dist/runtime/registry/cloudflare-web-analytics.d.ts +3 -3
- package/dist/runtime/registry/crisp.d.ts +7 -7
- package/dist/runtime/registry/fathom-analytics.d.ts +6 -6
- package/dist/runtime/registry/google-adsense.d.ts +7 -3
- package/dist/runtime/registry/google-adsense.js +21 -5
- package/dist/runtime/registry/google-analytics.d.ts +16 -6
- package/dist/runtime/registry/google-analytics.js +18 -20
- package/dist/runtime/registry/google-maps.d.ts +6 -6
- package/dist/runtime/registry/google-tag-manager.d.ts +28 -7
- package/dist/runtime/registry/google-tag-manager.js +7 -10
- package/dist/runtime/registry/hotjar.d.ts +3 -3
- package/dist/runtime/registry/intercom.d.ts +9 -9
- package/dist/runtime/registry/lemon-squeezy.d.ts +2 -2
- package/dist/runtime/registry/matomo-analytics.d.ts +9 -9
- package/dist/runtime/registry/meta-pixel.d.ts +2 -2
- package/dist/runtime/registry/npm.d.ts +5 -5
- package/dist/runtime/registry/npm.js +24 -8
- package/dist/runtime/registry/plausible-analytics.d.ts +3 -3
- package/dist/runtime/registry/segment.d.ts +3 -3
- package/dist/runtime/registry/snapchat-pixel.d.ts +71 -0
- package/dist/runtime/registry/snapchat-pixel.js +55 -0
- package/dist/runtime/registry/stripe.d.ts +3 -3
- package/dist/runtime/registry/umami-analytics.d.ts +37 -0
- package/dist/runtime/registry/umami-analytics.js +49 -0
- package/dist/runtime/registry/vimeo-player.d.ts +1 -1
- package/dist/runtime/registry/vimeo-player.js +1 -1
- package/dist/runtime/registry/x-pixel.d.ts +3 -3
- package/dist/runtime/registry/youtube-player.d.ts +1 -1
- package/dist/runtime/registry/youtube-player.js +1 -1
- package/dist/runtime/types.d.ts +4 -0
- package/dist/runtime/utils.d.ts +2 -2
- package/dist/runtime/utils.js +1 -1
- package/package.json +82 -72
- package/dist/client/_nuxt/-ALZ4IvE.js +0 -1
- package/dist/client/_nuxt/0e7srHXh.js +0 -1
- package/dist/client/_nuxt/2pWuV6-S.js +0 -1
- package/dist/client/_nuxt/35JD59R_.js +0 -1
- package/dist/client/_nuxt/4NJYcRSJ.js +0 -1
- package/dist/client/_nuxt/6UYsA25C.js +0 -32
- package/dist/client/_nuxt/8Uu6eIa-.js +0 -1
- package/dist/client/_nuxt/9xzcv9xf.js +0 -1
- package/dist/client/_nuxt/A13Lx_ye.js +0 -1
- package/dist/client/_nuxt/B-GI89LT.js +0 -1
- package/dist/client/_nuxt/B2bjgU-v.js +0 -1
- package/dist/client/_nuxt/B3Z_eaxm.js +0 -1
- package/dist/client/_nuxt/B4_rEpOs.js +0 -1
- package/dist/client/_nuxt/B5L7zzq-.js +0 -1
- package/dist/client/_nuxt/B74Y8nHz.js +0 -1
- package/dist/client/_nuxt/B8E-_56i.js +0 -1
- package/dist/client/_nuxt/B8E_5cfo.js +0 -1
- package/dist/client/_nuxt/B9Vj0mJK.js +0 -1
- package/dist/client/_nuxt/BDjtpMT8.js +0 -1
- package/dist/client/_nuxt/BFLt1xDp.js +0 -1
- package/dist/client/_nuxt/BGct0Hx7.js +0 -1
- package/dist/client/_nuxt/BGdveAQA.js +0 -1
- package/dist/client/_nuxt/BHpzmqOf.js +0 -1
- package/dist/client/_nuxt/BJNXdUBN.js +0 -1
- package/dist/client/_nuxt/BKbjiiqg.js +0 -1
- package/dist/client/_nuxt/BMwgFBEQ.js +0 -1
- package/dist/client/_nuxt/BN40hmum.js +0 -1
- package/dist/client/_nuxt/BNxDCkIA.js +0 -1
- package/dist/client/_nuxt/BSPpinrx.js +0 -1
- package/dist/client/_nuxt/BStEqDGx.js +0 -1
- package/dist/client/_nuxt/BT8b6B_-.js +0 -1
- package/dist/client/_nuxt/BTo9ix6S.js +0 -1
- package/dist/client/_nuxt/BVLG6Y-w.js +0 -1
- package/dist/client/_nuxt/BWgb8Pxw.js +0 -1
- package/dist/client/_nuxt/BWkuYGGO.js +0 -1
- package/dist/client/_nuxt/BWslPs4p.js +0 -1
- package/dist/client/_nuxt/BZRbnyjI.js +0 -1
- package/dist/client/_nuxt/B_R80ZlN.js +0 -1
- package/dist/client/_nuxt/BaLI2h1d.js +0 -1
- package/dist/client/_nuxt/BbccZ3y2.js +0 -1
- package/dist/client/_nuxt/BbzkbZ9e.js +0 -1
- package/dist/client/_nuxt/Bdprqoiu.js +0 -1
- package/dist/client/_nuxt/BeSffZBD.js +0 -1
- package/dist/client/_nuxt/Begb3drz.js +0 -1
- package/dist/client/_nuxt/Bexp5DGn.js +0 -1
- package/dist/client/_nuxt/BgqZeg96.js +0 -1
- package/dist/client/_nuxt/BhLNiG9c.js +0 -1
- package/dist/client/_nuxt/BhsLqr-4.js +0 -1
- package/dist/client/_nuxt/BjE2mIY4.js +0 -1
- package/dist/client/_nuxt/BjXeLqNd.js +0 -1
- package/dist/client/_nuxt/Bjs2cL5p.js +0 -1
- package/dist/client/_nuxt/BkG9CdHo.js +0 -1
- package/dist/client/_nuxt/Bpo8LMpD.js +0 -1
- package/dist/client/_nuxt/BrbOHqWv.js +0 -1
- package/dist/client/_nuxt/BwojPDJW.js +0 -1
- package/dist/client/_nuxt/BxJadH_W.js +0 -1
- package/dist/client/_nuxt/ByY1Guvr.js +0 -1
- package/dist/client/_nuxt/BzAMEn9Z.js +0 -1
- package/dist/client/_nuxt/BzaEo2Du.js +0 -1
- package/dist/client/_nuxt/BzwtH5UL.js +0 -1
- package/dist/client/_nuxt/C30t_gpS.js +0 -1
- package/dist/client/_nuxt/C3t61SNw.js +0 -1
- package/dist/client/_nuxt/C6J8XiCD.js +0 -1
- package/dist/client/_nuxt/CE0v8NN9.js +0 -1
- package/dist/client/_nuxt/CEjiMJLT.js +0 -1
- package/dist/client/_nuxt/CHZeBJpW.js +0 -1
- package/dist/client/_nuxt/CIxipgmy.js +0 -1
- package/dist/client/_nuxt/CJrM-UL-.js +0 -1
- package/dist/client/_nuxt/CJxt7p29.js +0 -1
- package/dist/client/_nuxt/CK56Z9cH.js +0 -1
- package/dist/client/_nuxt/CLmbwNS9.js +0 -1
- package/dist/client/_nuxt/CMOi41r9.js +0 -1
- package/dist/client/_nuxt/CN6rGqjK.js +0 -1
- package/dist/client/_nuxt/CNXuF1yM.js +0 -1
- package/dist/client/_nuxt/COtMjVi7.js +0 -1
- package/dist/client/_nuxt/CQO4gZEw.js +0 -1
- package/dist/client/_nuxt/CQzXS8_C.js +0 -1
- package/dist/client/_nuxt/CRR3mLlZ.js +0 -1
- package/dist/client/_nuxt/CSoQzgif.js +0 -1
- package/dist/client/_nuxt/CXmV_HiI.js +0 -1
- package/dist/client/_nuxt/CYyBA3kJ.js +0 -1
- package/dist/client/_nuxt/C_OO3DVV.js +0 -1
- package/dist/client/_nuxt/CcPoRNJz.js +0 -1
- package/dist/client/_nuxt/CcSEeikT.js +0 -1
- package/dist/client/_nuxt/ChDww4um.js +0 -1
- package/dist/client/_nuxt/ChEme8PX.js +0 -1
- package/dist/client/_nuxt/Ci-La1BS.js +0 -1
- package/dist/client/_nuxt/CiXlrwC7.js +0 -1
- package/dist/client/_nuxt/Ckz-YMxz.js +0 -1
- package/dist/client/_nuxt/Cn_j0ne6.js +0 -1
- package/dist/client/_nuxt/CwIbMU3B.js +0 -1
- package/dist/client/_nuxt/Cztwc-HH.js +0 -1
- package/dist/client/_nuxt/D0xWnrgR.js +0 -1
- package/dist/client/_nuxt/D0ybgVpa.js +0 -1
- package/dist/client/_nuxt/D2TqM893.js +0 -1
- package/dist/client/_nuxt/D4O64OTH.js +0 -1
- package/dist/client/_nuxt/D5gt1ch3.js +0 -1
- package/dist/client/_nuxt/D6HQHXJE.js +0 -1
- package/dist/client/_nuxt/D7v6OrNy.js +0 -1
- package/dist/client/_nuxt/D7z58M2W.js +0 -1
- package/dist/client/_nuxt/D8nBeWSR.js +0 -1
- package/dist/client/_nuxt/D9Icd2YK.js +0 -1
- package/dist/client/_nuxt/D9W_gRNE.js +0 -1
- package/dist/client/_nuxt/DA0ESIWO.js +0 -1
- package/dist/client/_nuxt/DBQeEorK.js +0 -1
- package/dist/client/_nuxt/DBxrVw_D.js +0 -1
- package/dist/client/_nuxt/DCRAZVCM.js +0 -1
- package/dist/client/_nuxt/DCcCncrU.js +0 -1
- package/dist/client/_nuxt/DDUKAZWS.js +0 -1
- package/dist/client/_nuxt/DES0gjzB.js +0 -1
- package/dist/client/_nuxt/DFIOpqzz.js +0 -1
- package/dist/client/_nuxt/DFW6HATB.js +0 -1
- package/dist/client/_nuxt/DH4N8IuU.js +0 -1
- package/dist/client/_nuxt/DIt9OTko.js +0 -1
- package/dist/client/_nuxt/DIvA8ll9.js +0 -1
- package/dist/client/_nuxt/DOAn35dn.js +0 -1
- package/dist/client/_nuxt/DPTZissz.js +0 -1
- package/dist/client/_nuxt/DQJjjPvk.js +0 -1
- package/dist/client/_nuxt/DQxx3LPD.js +0 -1
- package/dist/client/_nuxt/DVWcdiGS.js +0 -1
- package/dist/client/_nuxt/DWMP3yrW.js +0 -1
- package/dist/client/_nuxt/DWmkr0yC.js +0 -1
- package/dist/client/_nuxt/DWt6wkI-.js +0 -1
- package/dist/client/_nuxt/DZ4hUExO.js +0 -1
- package/dist/client/_nuxt/D_QQB6Yv.js +0 -1
- package/dist/client/_nuxt/DanlQboj.js +0 -1
- package/dist/client/_nuxt/DbXoA79R.js +0 -1
- package/dist/client/_nuxt/DfpIq38s.js +0 -1
- package/dist/client/_nuxt/Dk1rBueR.js +0 -1
- package/dist/client/_nuxt/DkpUthgY.js +0 -1
- package/dist/client/_nuxt/DlYXzDlu.js +0 -1
- package/dist/client/_nuxt/DmF4-xLG.js +0 -1
- package/dist/client/_nuxt/DmZ-uG0V.js +0 -1
- package/dist/client/_nuxt/Dnfm4U7b.js +0 -1
- package/dist/client/_nuxt/DnyWjya5.js +0 -1
- package/dist/client/_nuxt/DoiKbUTj.js +0 -1
- package/dist/client/_nuxt/DpVQgTom.js +0 -1
- package/dist/client/_nuxt/DsCg8CPl.js +0 -1
- package/dist/client/_nuxt/Dt1_zKdO.js +0 -1
- package/dist/client/_nuxt/DvQyZZSe.js +0 -1
- package/dist/client/_nuxt/DwU8c_yx.js +0 -1
- package/dist/client/_nuxt/Dwo6uFCY.js +0 -1
- package/dist/client/_nuxt/DzaHHFTY.js +0 -1
- package/dist/client/_nuxt/EZUUsui8.js +0 -1
- package/dist/client/_nuxt/F89DG-fP.js +0 -1
- package/dist/client/_nuxt/HNM5thJl.js +0 -1
- package/dist/client/_nuxt/I1uqSxRv.js +0 -1
- package/dist/client/_nuxt/IBB5Tl9j.js +0 -1
- package/dist/client/_nuxt/JbneklYT.js +0 -1
- package/dist/client/_nuxt/Jwd9j1ay.js +0 -1
- package/dist/client/_nuxt/Kxp7UmFj.js +0 -1
- package/dist/client/_nuxt/NKd-Y1zG.js +0 -1
- package/dist/client/_nuxt/NUI3YrRW.js +0 -1
- package/dist/client/_nuxt/NfFGm2lL.js +0 -1
- package/dist/client/_nuxt/NgWrSVUg.js +0 -1
- package/dist/client/_nuxt/OiuHoWY5.js +0 -1
- package/dist/client/_nuxt/S_yhxdK1.js +0 -1
- package/dist/client/_nuxt/Xse1gjxk.js +0 -1
- package/dist/client/_nuxt/ZJvK9Z2N.js +0 -1
- package/dist/client/_nuxt/aeT0-ak7.js +0 -1
- package/dist/client/_nuxt/bGS5FTDY.js +0 -1
- package/dist/client/_nuxt/builds/meta/fa3e7320-a292-4ebb-9b7b-648efbb081ed.json +0 -1
- package/dist/client/_nuxt/eCoydtrh.js +0 -1
- package/dist/client/_nuxt/entry.CZkCC1VG.css +0 -1
- package/dist/client/_nuxt/error-404.Cpz2uRRd.css +0 -1
- package/dist/client/_nuxt/error-500.fQnjp2ZY.css +0 -1
- package/dist/client/_nuxt/g_GSZ1hr.js +0 -1
- package/dist/client/_nuxt/i5HCB2tm.js +0 -1
- package/dist/client/_nuxt/j_FrBdja.js +0 -1
- package/dist/client/_nuxt/keK8bHwS.js +0 -1
- package/dist/client/_nuxt/mLcCfA0-.js +0 -1
- package/dist/client/_nuxt/nkNqggyT.js +0 -1
- package/dist/client/_nuxt/p-youoOz.js +0 -1
- package/dist/client/_nuxt/plSVBvJQ.js +0 -1
- package/dist/client/_nuxt/rAPcFIiw.js +0 -1
- package/dist/client/_nuxt/rf8nNrOk.js +0 -1
- package/dist/client/_nuxt/sH2JAGjN.js +0 -1
- package/dist/client/_nuxt/vFtNXPBc.js +0 -1
- package/dist/client/_nuxt/w1el_4yc.js +0 -1
- package/dist/client/_nuxt/yLioyJ2E.js +0 -1
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { InferInput } from '#nuxt-scripts-validator';
|
|
2
|
+
import type { RegistryScriptInput } from '#nuxt-scripts/types';
|
|
3
|
+
type StandardEvents = 'PAGE_VIEW' | 'VIEW_CONTENT' | 'ADD_CART' | 'SIGN_UP' | 'SAVE' | 'START_CHECKOUT' | 'APP_OPEN' | 'ADD_BILLING' | 'SEARCH' | 'SUBSCRIBE' | 'AD_CLICK' | 'AD_VIEW' | 'COMPLETE_TUTORIAL' | 'LEVEL_COMPLETE' | 'INVITE' | 'LOGIN' | 'SHARE' | 'RESERVE' | 'ACHIEVEMENT_UNLOCKED' | 'ADD_TO_WISHLIST' | 'SPENT_CREDITS' | 'RATE' | 'START_TRIAL' | 'LIST_VIEW';
|
|
4
|
+
interface EventObjectProperties {
|
|
5
|
+
price?: number;
|
|
6
|
+
client_dedup_id?: string;
|
|
7
|
+
currency?: string;
|
|
8
|
+
transaction_id?: string;
|
|
9
|
+
item_ids?: string[];
|
|
10
|
+
item_category?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
search_string?: string;
|
|
13
|
+
number_items?: number;
|
|
14
|
+
payment_info_available?: 0 | 1;
|
|
15
|
+
sign_up_method?: string;
|
|
16
|
+
success?: 0 | 1;
|
|
17
|
+
brands?: string[];
|
|
18
|
+
delivery_method?: 'in_store' | 'curbside' | 'delivery';
|
|
19
|
+
customer_status?: 'new' | 'returning' | 'reactivated';
|
|
20
|
+
event_tag?: string;
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}
|
|
23
|
+
export declare const InitObjectPropertiesSchema: import("valibot").ObjectSchema<{
|
|
24
|
+
readonly user_email: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
25
|
+
readonly ip_address: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
26
|
+
readonly user_phone_number: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
27
|
+
readonly user_hashed_email: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
28
|
+
readonly user_hashed_phone_number: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
29
|
+
readonly firstname: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
30
|
+
readonly lastname: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
31
|
+
readonly geo_city: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
32
|
+
readonly geo_region: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
33
|
+
readonly geo_postal_code: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
34
|
+
readonly geo_country: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
35
|
+
readonly age: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
36
|
+
}, undefined>;
|
|
37
|
+
type InitObjectProperties = InferInput<typeof InitObjectPropertiesSchema>;
|
|
38
|
+
type SnapTrFns = ((event: 'track', eventName: StandardEvents | '', data?: EventObjectProperties) => void) & ((event: 'init', id: string, data?: Record<string, any>) => void) & ((event: 'init', id: string, data?: InitObjectProperties) => void) & ((event: string, ...params: any[]) => void);
|
|
39
|
+
export interface SnapPixelApi {
|
|
40
|
+
snaptr: SnapTrFns & {
|
|
41
|
+
push: SnapTrFns;
|
|
42
|
+
loaded: boolean;
|
|
43
|
+
version: string;
|
|
44
|
+
queue: any[];
|
|
45
|
+
};
|
|
46
|
+
_snaptr: SnapPixelApi['snaptr'];
|
|
47
|
+
handleRequest?: SnapTrFns;
|
|
48
|
+
}
|
|
49
|
+
declare global {
|
|
50
|
+
interface Window extends SnapPixelApi {
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
export declare const SnapTrPixelOptions: import("valibot").ObjectSchema<{
|
|
54
|
+
readonly user_email: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
55
|
+
readonly ip_address: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
56
|
+
readonly user_phone_number: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
57
|
+
readonly user_hashed_email: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
58
|
+
readonly user_hashed_phone_number: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
59
|
+
readonly firstname: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
60
|
+
readonly lastname: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
61
|
+
readonly geo_city: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
62
|
+
readonly geo_region: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
63
|
+
readonly geo_postal_code: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
64
|
+
readonly geo_country: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
65
|
+
readonly age: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
66
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
67
|
+
readonly trackPageView: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
68
|
+
}, undefined>;
|
|
69
|
+
export type SnapTrPixelInput = RegistryScriptInput<typeof SnapTrPixelOptions, true, false, false>;
|
|
70
|
+
export declare function useScriptSnapchatPixel<T extends SnapPixelApi>(_options?: SnapTrPixelInput): import("#nuxt-scripts/types").UseScriptContext<T>;
|
|
71
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { useRegistryScript } from "../utils.js";
|
|
2
|
+
import { boolean, object, optional, string } from "#nuxt-scripts-validator";
|
|
3
|
+
export const InitObjectPropertiesSchema = object({
|
|
4
|
+
user_email: optional(string()),
|
|
5
|
+
ip_address: optional(string()),
|
|
6
|
+
user_phone_number: optional(string()),
|
|
7
|
+
user_hashed_email: optional(string()),
|
|
8
|
+
user_hashed_phone_number: optional(string()),
|
|
9
|
+
firstname: optional(string()),
|
|
10
|
+
lastname: optional(string()),
|
|
11
|
+
geo_city: optional(string()),
|
|
12
|
+
geo_region: optional(string()),
|
|
13
|
+
geo_postal_code: optional(string()),
|
|
14
|
+
geo_country: optional(string()),
|
|
15
|
+
age: optional(string())
|
|
16
|
+
});
|
|
17
|
+
export const SnapTrPixelOptions = object({
|
|
18
|
+
id: string(),
|
|
19
|
+
trackPageView: optional(boolean()),
|
|
20
|
+
...InitObjectPropertiesSchema.entries
|
|
21
|
+
});
|
|
22
|
+
export function useScriptSnapchatPixel(_options) {
|
|
23
|
+
return useRegistryScript("snapchatPixel", (options) => ({
|
|
24
|
+
scriptInput: {
|
|
25
|
+
src: "https://sc-static.net/scevent.min.js",
|
|
26
|
+
crossorigin: false
|
|
27
|
+
},
|
|
28
|
+
schema: import.meta.dev ? SnapTrPixelOptions : void 0,
|
|
29
|
+
scriptOptions: {
|
|
30
|
+
use() {
|
|
31
|
+
return { snaptr: window.snaptr };
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
clientInit: import.meta.server ? void 0 : () => {
|
|
35
|
+
const snaptr = window.snaptr = function(...params) {
|
|
36
|
+
if (snaptr.handleRequest) {
|
|
37
|
+
snaptr.handleRequest(...params);
|
|
38
|
+
} else {
|
|
39
|
+
snaptr.queue.push(params);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
if (!window.snaptr)
|
|
43
|
+
window._snaptr = snaptr;
|
|
44
|
+
snaptr.push = snaptr;
|
|
45
|
+
snaptr.loaded = true;
|
|
46
|
+
snaptr.version = "1.0";
|
|
47
|
+
snaptr.queue = [];
|
|
48
|
+
const { id, ...initData } = options;
|
|
49
|
+
snaptr("init", options?.id, initData);
|
|
50
|
+
if (options?.trackPageView) {
|
|
51
|
+
snaptr("track", "PAGE_VIEW");
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}), _options);
|
|
55
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Stripe } from '@stripe/stripe-js';
|
|
2
|
-
import type { RegistryScriptInput } from '#nuxt-scripts';
|
|
2
|
+
import type { RegistryScriptInput } from '#nuxt-scripts/types';
|
|
3
3
|
export declare const StripeOptions: import("valibot").ObjectSchema<{
|
|
4
|
-
readonly advancedFraudSignals: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>,
|
|
4
|
+
readonly advancedFraudSignals: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
5
5
|
}, undefined>;
|
|
6
6
|
export type StripeInput = RegistryScriptInput<typeof StripeOptions, false>;
|
|
7
7
|
export interface StripeApi {
|
|
8
8
|
Stripe: Stripe;
|
|
9
9
|
}
|
|
10
|
-
export declare function useScriptStripe<T extends StripeApi>(_options?: StripeInput): import("#nuxt-scripts").UseScriptContext<T>;
|
|
10
|
+
export declare function useScriptStripe<T extends StripeApi>(_options?: StripeInput): import("#nuxt-scripts/types").UseScriptContext<T>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { RegistryScriptInput } from '#nuxt-scripts/types';
|
|
2
|
+
export declare const UmamiAnalyticsOptions: import("valibot").ObjectSchema<{
|
|
3
|
+
readonly websiteId: import("valibot").StringSchema<undefined>;
|
|
4
|
+
/**
|
|
5
|
+
* By default, Umami will send data to wherever the script is located.
|
|
6
|
+
* You can override this to send data to another location.
|
|
7
|
+
*/
|
|
8
|
+
readonly hostUrl: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
9
|
+
/**
|
|
10
|
+
* By default, Umami tracks all pageviews and events for you automatically.
|
|
11
|
+
* You can disable this behavior and track events yourself using the tracker functions.
|
|
12
|
+
* https://umami.is/docs/tracker-functions
|
|
13
|
+
*/
|
|
14
|
+
readonly autoTrack: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
15
|
+
/**
|
|
16
|
+
* If you want the tracker to only run on specific domains, you can add them to your tracker script.
|
|
17
|
+
* This is a comma delimited list of domain names.
|
|
18
|
+
* Helps if you are working in a staging/development environment.
|
|
19
|
+
*/
|
|
20
|
+
readonly domains: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
21
|
+
/**
|
|
22
|
+
* If you want the tracker to collect events under a specific tag.
|
|
23
|
+
* Events can be filtered in the dashboard by a specific tag.
|
|
24
|
+
*/
|
|
25
|
+
readonly tag: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
26
|
+
}, undefined>;
|
|
27
|
+
export type UmamiAnalyticsInput = RegistryScriptInput<typeof UmamiAnalyticsOptions, false>;
|
|
28
|
+
export interface UmamiAnalyticsApi {
|
|
29
|
+
track: ((payload?: Record<string, any>) => void) & ((event_name: string, event_data: Record<string, any>) => void);
|
|
30
|
+
identify: (session_data?: Record<string, any>) => void;
|
|
31
|
+
}
|
|
32
|
+
declare global {
|
|
33
|
+
interface Window {
|
|
34
|
+
umami: UmamiAnalyticsApi;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export declare function useScriptUmamiAnalytics<T extends UmamiAnalyticsApi>(_options?: UmamiAnalyticsInput): import("#nuxt-scripts/types").UseScriptContext<T>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { useRegistryScript } from "../utils.js";
|
|
2
|
+
import { object, optional, string, boolean, array } from "#nuxt-scripts-validator";
|
|
3
|
+
export const UmamiAnalyticsOptions = object({
|
|
4
|
+
websiteId: string(),
|
|
5
|
+
// required
|
|
6
|
+
/**
|
|
7
|
+
* By default, Umami will send data to wherever the script is located.
|
|
8
|
+
* You can override this to send data to another location.
|
|
9
|
+
*/
|
|
10
|
+
hostUrl: optional(string()),
|
|
11
|
+
/**
|
|
12
|
+
* By default, Umami tracks all pageviews and events for you automatically.
|
|
13
|
+
* You can disable this behavior and track events yourself using the tracker functions.
|
|
14
|
+
* https://umami.is/docs/tracker-functions
|
|
15
|
+
*/
|
|
16
|
+
autoTrack: optional(boolean()),
|
|
17
|
+
/**
|
|
18
|
+
* If you want the tracker to only run on specific domains, you can add them to your tracker script.
|
|
19
|
+
* This is a comma delimited list of domain names.
|
|
20
|
+
* Helps if you are working in a staging/development environment.
|
|
21
|
+
*/
|
|
22
|
+
domains: optional(array(string())),
|
|
23
|
+
/**
|
|
24
|
+
* If you want the tracker to collect events under a specific tag.
|
|
25
|
+
* Events can be filtered in the dashboard by a specific tag.
|
|
26
|
+
*/
|
|
27
|
+
tag: optional(string())
|
|
28
|
+
});
|
|
29
|
+
export function useScriptUmamiAnalytics(_options) {
|
|
30
|
+
return useRegistryScript("umamiAnalytics", (options) => {
|
|
31
|
+
const domains = Array.isArray(options?.domains) ? options.domains.join(",") : options?.domains;
|
|
32
|
+
return {
|
|
33
|
+
scriptInput: {
|
|
34
|
+
"src": "https://cloud.umami.is/script.js",
|
|
35
|
+
"data-website-id": options.websiteId,
|
|
36
|
+
"data-host-url": options?.hostUrl || void 0,
|
|
37
|
+
"data-auto-track": typeof options?.autoTrack === "boolean" ? options.autoTrack : true,
|
|
38
|
+
"data-domains": domains || void 0,
|
|
39
|
+
"data-tag": options?.tag || void 0
|
|
40
|
+
},
|
|
41
|
+
schema: import.meta.dev ? UmamiAnalyticsOptions : void 0,
|
|
42
|
+
scriptOptions: {
|
|
43
|
+
use() {
|
|
44
|
+
return window.umami;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
}, _options);
|
|
49
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type Vimeo from '@vimeo/player';
|
|
2
2
|
import type { UseScriptContext } from '@unhead/vue';
|
|
3
|
-
import type { RegistryScriptInput } from '#nuxt-scripts';
|
|
3
|
+
import type { RegistryScriptInput } from '#nuxt-scripts/types';
|
|
4
4
|
type Constructor<T extends new (...args: any) => any> = T extends new (...args: infer A) => infer R ? new (...args: A) => R : never;
|
|
5
5
|
export interface VimeoPlayerApi {
|
|
6
6
|
Vimeo: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { watch } from "vue";
|
|
2
|
+
import { useHead } from "@unhead/vue";
|
|
2
3
|
import { useRegistryScript } from "../utils.js";
|
|
3
|
-
import { useHead } from "#imports";
|
|
4
4
|
export function useScriptVimeoPlayer(_options) {
|
|
5
5
|
const instance = useRegistryScript("vimeoPlayer", () => ({
|
|
6
6
|
scriptInput: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RegistryScriptInput } from '#nuxt-scripts';
|
|
1
|
+
import type { RegistryScriptInput } from '#nuxt-scripts/types';
|
|
2
2
|
interface ContentProperties {
|
|
3
3
|
content_type?: string | null;
|
|
4
4
|
content_id?: string | number | null;
|
|
@@ -29,8 +29,8 @@ declare global {
|
|
|
29
29
|
}
|
|
30
30
|
export declare const XPixelOptions: import("valibot").ObjectSchema<{
|
|
31
31
|
readonly id: import("valibot").StringSchema<undefined>;
|
|
32
|
-
readonly version: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>,
|
|
32
|
+
readonly version: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
33
33
|
}, undefined>;
|
|
34
34
|
export type XPixelInput = RegistryScriptInput<typeof XPixelOptions, true, false, false>;
|
|
35
|
-
export declare function useScriptXPixel<T extends XPixelApi>(_options?: XPixelInput): import("#nuxt-scripts").UseScriptContext<T>;
|
|
35
|
+
export declare function useScriptXPixel<T extends XPixelApi>(_options?: XPixelInput): import("#nuxt-scripts/types").UseScriptContext<T>;
|
|
36
36
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { UseScriptContext } from '@unhead/vue';
|
|
2
2
|
import type { MaybePromise } from '../utils.js';
|
|
3
|
-
import type { RegistryScriptInput } from '#nuxt-scripts';
|
|
3
|
+
import type { RegistryScriptInput } from '#nuxt-scripts/types';
|
|
4
4
|
export interface YouTubePlayerApi {
|
|
5
5
|
YT: MaybePromise<{
|
|
6
6
|
Player: YT.Player;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { watch } from "vue";
|
|
2
|
+
import { useHead } from "@unhead/vue";
|
|
2
3
|
import { useRegistryScript } from "../utils.js";
|
|
3
|
-
import { useHead } from "#imports";
|
|
4
4
|
export function useScriptYouTubePlayer(_options) {
|
|
5
5
|
let readyPromise = Promise.resolve();
|
|
6
6
|
const instance = useRegistryScript("youtubePlayer", () => ({
|
package/dist/runtime/types.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import type { MatomoAnalyticsInput } from './registry/matomo-analytics.js';
|
|
|
14
14
|
import type { StripeInput } from './registry/stripe.js';
|
|
15
15
|
import type { VimeoPlayerInput } from './registry/vimeo-player.js';
|
|
16
16
|
import type { XPixelInput } from './registry/x-pixel.js';
|
|
17
|
+
import type { SnapTrPixelInput } from './registry/snapchat-pixel.js';
|
|
17
18
|
import type { YouTubePlayerInput } from './registry/youtube-player.js';
|
|
18
19
|
import type { PlausibleAnalyticsInput } from './registry/plausible-analytics.js';
|
|
19
20
|
import type { NpmInput } from './registry/npm.js';
|
|
@@ -23,6 +24,7 @@ import type { ClarityInput } from './registry/clarity.js';
|
|
|
23
24
|
import type { CrispInput } from './registry/crisp.js';
|
|
24
25
|
import type { GoogleAnalyticsInput } from './registry/google-analytics.js';
|
|
25
26
|
import type { GoogleTagManagerInput } from './registry/google-tag-manager.js';
|
|
27
|
+
import type { UmamiAnalyticsInput } from './registry/umami-analytics.js';
|
|
26
28
|
export type WarmupStrategy = false | 'preload' | 'preconnect' | 'dns-prefetch';
|
|
27
29
|
export type UseScriptContext<T extends Record<symbol | string, any>> = (Promise<T> & VueScriptInstance<T>) & AsAsyncFunctionValues<T> & {
|
|
28
30
|
/**
|
|
@@ -135,8 +137,10 @@ export interface ScriptRegistry {
|
|
|
135
137
|
segment?: SegmentInput;
|
|
136
138
|
stripe?: StripeInput;
|
|
137
139
|
xPixel?: XPixelInput;
|
|
140
|
+
snapchatPixel?: SnapTrPixelInput;
|
|
138
141
|
youtubePlayer?: YouTubePlayerInput;
|
|
139
142
|
vimeoPlayer?: VimeoPlayerInput;
|
|
143
|
+
umamiAnalytics?: UmamiAnalyticsInput;
|
|
140
144
|
[key: `${string}-npm`]: NpmInput;
|
|
141
145
|
}
|
|
142
146
|
export type NuxtConfigScriptRegistryEntry<T> = true | 'mock' | T | [T, NuxtUseScriptOptionsSerializable];
|
package/dist/runtime/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ObjectSchema } from 'valibot';
|
|
2
2
|
import type { UseScriptInput } from '@unhead/vue';
|
|
3
|
-
import type { EmptyOptionsSchema, InferIfSchema, NuxtUseScriptOptions, RegistryScriptInput, ScriptRegistry } from '#nuxt-scripts';
|
|
3
|
+
import type { EmptyOptionsSchema, InferIfSchema, NuxtUseScriptOptions, RegistryScriptInput, ScriptRegistry } from '#nuxt-scripts/types';
|
|
4
4
|
export type MaybePromise<T> = Promise<T> | T;
|
|
5
5
|
type OptionsFn<O> = (options: InferIfSchema<O>) => ({
|
|
6
6
|
scriptInput?: UseScriptInput;
|
|
@@ -9,6 +9,6 @@ type OptionsFn<O> = (options: InferIfSchema<O>) => ({
|
|
|
9
9
|
clientInit?: () => void;
|
|
10
10
|
});
|
|
11
11
|
export declare function scriptRuntimeConfig<T extends keyof ScriptRegistry>(key: T): ScriptRegistry[T];
|
|
12
|
-
export declare function useRegistryScript<T extends Record<string | symbol, any>, O = EmptyOptionsSchema, U = {}>(registryKey: keyof ScriptRegistry | string, optionsFn: OptionsFn<O>, _userOptions?: RegistryScriptInput<O>): import("#nuxt-scripts").UseScriptContext<T>;
|
|
12
|
+
export declare function useRegistryScript<T extends Record<string | symbol, any>, O = EmptyOptionsSchema, U = {}>(registryKey: keyof ScriptRegistry | string, optionsFn: OptionsFn<O>, _userOptions?: RegistryScriptInput<O>): import("#nuxt-scripts/types").UseScriptContext<T>;
|
|
13
13
|
export declare function pick(obj: Record<string, any>, keys: string[]): Record<string, any>;
|
|
14
14
|
export {};
|
package/dist/runtime/utils.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defu } from "defu";
|
|
2
|
+
import { useRuntimeConfig } from "nuxt/app";
|
|
2
3
|
import { useScript } from "./composables/useScript.js";
|
|
3
4
|
import { parse } from "#nuxt-scripts-validator";
|
|
4
|
-
import { useRuntimeConfig } from "#imports";
|
|
5
5
|
function validateScriptInputSchema(key, schema, options) {
|
|
6
6
|
if (import.meta.dev) {
|
|
7
7
|
try {
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/scripts",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@9.11.0",
|
|
4
|
+
"version": "0.10.0",
|
|
6
5
|
"description": "Load third-party scripts with better performance, privacy and DX in Nuxt Apps.",
|
|
7
6
|
"author": {
|
|
8
7
|
"website": "https://harlanzw.com",
|
|
@@ -34,101 +33,112 @@
|
|
|
34
33
|
"files": [
|
|
35
34
|
"dist"
|
|
36
35
|
],
|
|
37
|
-
"scripts": {
|
|
38
|
-
"build": "pnpm dev:prepare && pnpm prepack",
|
|
39
|
-
"client:build": "nuxi generate client",
|
|
40
|
-
"client:dev": "nuxi dev client --port 3300",
|
|
41
|
-
"prepack": "nuxt-module-build build && npm run client:build",
|
|
42
|
-
"dev": "nuxi dev playground",
|
|
43
|
-
"dev:ssl": "nuxi dev playground --https",
|
|
44
|
-
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
45
|
-
"typecheck": "pnpm dlx vue-tsc --noEmit",
|
|
46
|
-
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
|
|
47
|
-
"release:minor": "npm run lint && npm run test && npm run prepack && changelogen --minor --release",
|
|
48
|
-
"lint": "eslint .",
|
|
49
|
-
"lint:fix": "eslint . --fix",
|
|
50
|
-
"test": "pnpm dev:prepare && vitest --run --exclude **/__runtime__ && pnpm test:runtime",
|
|
51
|
-
"test:runtime": "cd test/fixtures/basic && vitest --run",
|
|
52
|
-
"test:types": "echo 'broken due to type regeneration, use pnpm typecheck' && npx nuxi typecheck",
|
|
53
|
-
"script:generate-tpc": "bun ./scripts/generateTpcScripts.ts && pnpm lint:fix"
|
|
54
|
-
},
|
|
55
36
|
"build": {
|
|
56
37
|
"externals": [
|
|
57
38
|
"@unhead/vue",
|
|
58
39
|
"@unhead/schema",
|
|
59
|
-
"third-party-capital",
|
|
60
40
|
"knitwork",
|
|
61
41
|
"estree-walker",
|
|
62
42
|
"#build/modules/nuxt-scripts-gtm",
|
|
63
43
|
"#build/modules/nuxt-scripts-ga",
|
|
64
44
|
"@vimeo/player",
|
|
65
|
-
"esbuild"
|
|
45
|
+
"esbuild",
|
|
46
|
+
"unimport"
|
|
66
47
|
]
|
|
67
48
|
},
|
|
68
|
-
"
|
|
69
|
-
"@
|
|
70
|
-
"@nuxt/devtools-ui-kit": "^1.5.1",
|
|
71
|
-
"@nuxt/kit": "^3.13.2",
|
|
72
|
-
"@stripe/stripe-js": "^4.8.0",
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"@stripe/stripe-js": "^5.6.0",
|
|
73
51
|
"@types/google.maps": "^3.58.1",
|
|
74
52
|
"@types/vimeo__player": "^2.18.3",
|
|
75
53
|
"@types/youtube": "^0.1.0",
|
|
76
|
-
"@unhead/vue": "1
|
|
77
|
-
|
|
78
|
-
|
|
54
|
+
"@unhead/vue": "^1"
|
|
55
|
+
},
|
|
56
|
+
"peerDependenciesMeta": {
|
|
57
|
+
"@stripe/stripe-js": {
|
|
58
|
+
"optional": true
|
|
59
|
+
},
|
|
60
|
+
"@types/google.maps": {
|
|
61
|
+
"optional": true
|
|
62
|
+
},
|
|
63
|
+
"@types/vimeo__player": {
|
|
64
|
+
"optional": true
|
|
65
|
+
},
|
|
66
|
+
"@types/youtube": {
|
|
67
|
+
"optional": true
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"dependencies": {
|
|
71
|
+
"@nuxt/kit": "^3.15.4",
|
|
72
|
+
"@vueuse/core": "^12.5.0",
|
|
73
|
+
"consola": "^3.4.0",
|
|
79
74
|
"defu": "^6.1.4",
|
|
80
|
-
"h3": "^1.
|
|
81
|
-
"magic-string": "^0.30.
|
|
82
|
-
"
|
|
83
|
-
"ofetch": "^1.4.0",
|
|
75
|
+
"h3": "^1.15.0",
|
|
76
|
+
"magic-string": "^0.30.17",
|
|
77
|
+
"ofetch": "^1.4.1",
|
|
84
78
|
"ohash": "^1.1.4",
|
|
85
|
-
"pathe": "^
|
|
86
|
-
"pkg-types": "^1.
|
|
87
|
-
"semver": "^7.
|
|
88
|
-
"shiki": "1.22.0",
|
|
79
|
+
"pathe": "^2.0.2",
|
|
80
|
+
"pkg-types": "^1.3.1",
|
|
81
|
+
"semver": "^7.7.1",
|
|
89
82
|
"sirv": "^3.0.0",
|
|
90
|
-
"std-env": "^3.
|
|
91
|
-
"third-party-capital": "2.3.0",
|
|
83
|
+
"std-env": "^3.8.0",
|
|
92
84
|
"ufo": "^1.5.4",
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"valibot": "^0.42.1"
|
|
85
|
+
"unplugin": "^2.1.2",
|
|
86
|
+
"unstorage": "^1.14.4",
|
|
87
|
+
"valibot": "^1.0.0-beta.15"
|
|
97
88
|
},
|
|
98
89
|
"devDependencies": {
|
|
99
|
-
"@nuxt/devtools-
|
|
100
|
-
"@nuxt/
|
|
90
|
+
"@nuxt/devtools-kit": "^2.0.0",
|
|
91
|
+
"@nuxt/devtools-ui-kit": "^2.0.0",
|
|
92
|
+
"@nuxt/eslint-config": "^1.0.0",
|
|
101
93
|
"@nuxt/module-builder": "^0.8.4",
|
|
102
|
-
"@nuxt/test-utils": "3.
|
|
94
|
+
"@nuxt/test-utils": "3.15.4",
|
|
103
95
|
"@types/semver": "^7.5.8",
|
|
104
|
-
"@typescript-eslint/typescript-estree": "^8.
|
|
105
|
-
"@unhead/schema": "1.11.
|
|
96
|
+
"@typescript-eslint/typescript-estree": "^8.23.0",
|
|
97
|
+
"@unhead/schema": "^1.11.18",
|
|
106
98
|
"acorn-loose": "^8.4.0",
|
|
107
|
-
"bumpp": "^
|
|
99
|
+
"bumpp": "^10.0.2",
|
|
108
100
|
"changelogen": "^0.5.7",
|
|
109
|
-
"eslint": "9.
|
|
110
|
-
"eslint-plugin-n": "^17.
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"nuxt
|
|
114
|
-
"playwright-core": "^1.
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"vue
|
|
101
|
+
"eslint": "9.19.0",
|
|
102
|
+
"eslint-plugin-n": "^17.15.1",
|
|
103
|
+
"happy-dom": "^17.0.0",
|
|
104
|
+
"knitwork": "^1.2.0",
|
|
105
|
+
"nuxt": "^3.15.4",
|
|
106
|
+
"playwright-core": "^1.50.1",
|
|
107
|
+
"shiki": "2.3.2",
|
|
108
|
+
"typescript": "5.7.3",
|
|
109
|
+
"vitest": "^3.0.5",
|
|
110
|
+
"vue": "^3.5.13",
|
|
111
|
+
"vue-router": "^4.5.0",
|
|
112
|
+
"vue-tsc": "^2.2.0"
|
|
119
113
|
},
|
|
120
114
|
"resolutions": {
|
|
121
|
-
"@nuxt/schema": "
|
|
115
|
+
"@nuxt/schema": "catalog:",
|
|
122
116
|
"@nuxt/scripts": "workspace:*",
|
|
123
|
-
"@unhead/dom": "1.11.
|
|
124
|
-
"@unhead/schema": "1.11.
|
|
125
|
-
"@unhead/shared": "1.11.
|
|
126
|
-
"@unhead/ssr": "1.11.
|
|
127
|
-
"@unhead/vue": "1.11.
|
|
128
|
-
"nuxt": "
|
|
129
|
-
"
|
|
130
|
-
"unhead": "1.11.
|
|
131
|
-
"vue": "^3.5.
|
|
132
|
-
"vue-router": "^4.
|
|
117
|
+
"@unhead/dom": "1.11.18",
|
|
118
|
+
"@unhead/schema": "1.11.18",
|
|
119
|
+
"@unhead/shared": "1.11.18",
|
|
120
|
+
"@unhead/ssr": "1.11.18",
|
|
121
|
+
"@unhead/vue": "1.11.18",
|
|
122
|
+
"nuxt": "catalog:",
|
|
123
|
+
"typescript": "5.6.3",
|
|
124
|
+
"unhead": "1.11.18",
|
|
125
|
+
"vue": "^3.5.13",
|
|
126
|
+
"vue-router": "^4.5.0"
|
|
127
|
+
},
|
|
128
|
+
"scripts": {
|
|
129
|
+
"build": "pnpm dev:prepare && pnpm prepack",
|
|
130
|
+
"client:build": "nuxi generate client",
|
|
131
|
+
"client:dev": "nuxi dev client --port 3300",
|
|
132
|
+
"dev": "nuxi dev playground",
|
|
133
|
+
"dev:ssl": "nuxi dev playground --https",
|
|
134
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
135
|
+
"typecheck": "vue-tsc --noEmit",
|
|
136
|
+
"bump": "bumpp package.json --commit --push --tag",
|
|
137
|
+
"release": "pnpm build && pnpm bump && pnpm publish --tag latest -r --no-git-checks",
|
|
138
|
+
"lint": "eslint .",
|
|
139
|
+
"lint:fix": "eslint . --fix",
|
|
140
|
+
"test": "pnpm dev:prepare && vitest --run --exclude **/__runtime__ && pnpm test:runtime",
|
|
141
|
+
"test:runtime": "cd test/fixtures/basic && vitest --run",
|
|
142
|
+
"test:types": "echo 'broken due to type regeneration, use pnpm typecheck' && npx nuxi typecheck"
|
|
133
143
|
}
|
|
134
|
-
}
|
|
144
|
+
}
|