{"_id":"@adelant/react-mautic-forms","_rev":"17-5d110b55cc7a0367f8c458d92956c46f","name":"@adelant/react-mautic-forms","dist-tags":{"latest":"0.4.0"},"versions":{"0.1.0":{"name":"@adelant/react-mautic-forms","version":"0.1.0","keywords":["react","mautic","forms"],"author":"Adelant","license":"MIT","_id":"@adelant/react-mautic-forms@0.1.0","maintainers":[{"name":"angrigo","email":"gab.angrisani@gmail.com"}],"dist":{"shasum":"d7bfef5e538954ef31aa53e255b4effdf8d5efbe","tarball":"https://registry.npmjs.org/@adelant/react-mautic-forms/-/react-mautic-forms-0.1.0.tgz","fileCount":11,"integrity":"sha512-uVHX/BS3dL8t9iX+CtL9mpgI7j1FUWXpA14OBQrNEYoTRFItwhl1P/xq3qxA2G5T+toAwvXArCH9g1bUyPP2og==","signatures":[{"sig":"MEQCIA4kxdrLHWLA0nnX5NsVRPmaHIkhcdemyvVw2sbkSrcOAiAkdptsRSV2gkr2Oz/5MdDTYD+3UHgb60pfnmJZWcgS5A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":149951},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","shasum":"d7bfef5e538954ef31aa53e255b4effdf8d5efbe","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"bun build --watch","test":"bun test","build":"bun build ./src/index.ts --outdir dist && tsc --emitDeclarationOnly"},"_npmUser":{"name":"angrigo","email":"gab.angrisani@gmail.com"},"_integrity":"sha512-uVHX/BS3dL8t9iX+CtL9mpgI7j1FUWXpA14OBQrNEYoTRFItwhl1P/xq3qxA2G5T+toAwvXArCH9g1bUyPP2og==","repository":{"url":"https://github.com/AdelantSoftware/mautic-react-forms","type":"git"},"_npmVersion":"10.8.3","description":"React components for Mautic form integration","directories":{},"_nodeVersion":"22.6.0","dependencies":{"@types/react":"^19.0.10"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"react":"^19.0.0","react-dom":"^19.0.0","typescript":"^5","lucide-react":"^0.479.0"},"optionalDependencies":{"next":"^15.2.1"},"_npmOperationalInternal":{"tmp":"tmp/react-mautic-forms_0.1.0_1741468817173_0.1849345471611723","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@adelant/react-mautic-forms","version":"0.1.1","keywords":["react","mautic","forms"],"author":{"name":"Adelant"},"license":"MIT","_id":"@adelant/react-mautic-forms@0.1.1","maintainers":[{"name":"angrigo","email":"gab.angrisani@gmail.com"}],"homepage":"https://github.com/AdelantSoftware/mautic-react-forms#readme","bugs":{"url":"https://github.com/AdelantSoftware/mautic-react-forms/issues"},"dist":{"shasum":"c8e6d8520aaa9dd79e4fb380caafc18fd9a396b7","tarball":"https://registry.npmjs.org/@adelant/react-mautic-forms/-/react-mautic-forms-0.1.1.tgz","fileCount":11,"integrity":"sha512-7EFSpCDCqRUvZ5cE+iCTDPjdhYgA82VFkxTAo0Ks2M7Q1ts26/t3pvrp5gpRhrIvOAEqOuKuLx7v3Iy8dZ4gGQ==","signatures":[{"sig":"MEQCICB+uMEHlLkwMx5I4yVOw1lUyGjY4gi5qGsPJqGjQm6iAiAVBsfVa531meI7tZ5xhbiwKBdd4uPXyUN7Al9pqQ2L4w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1044362},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"f67784819c3361312ba33ca1066d9d86acf02e6e","scripts":{"dev":"bun build --watch","test":"bun test","build":"bun build ./src/index.ts --outdir dist && tsc --emitDeclarationOnly"},"_npmUser":{"name":"angrigo","email":"gab.angrisani@gmail.com"},"repository":{"url":"git+https://github.com/AdelantSoftware/mautic-react-forms.git","type":"git"},"_npmVersion":"10.9.0","description":"React components for Mautic form integration","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@types/react-dom":"^17.0.0 || ^18.0.0 || ^19.0.0"},"peerDependencies":{"react":"^17.0.0 || ^18.0.0 || ^19.0.0","react-dom":"^17.0.0 || ^18.0.0 || ^19.0.0","typescript":"^4.5.0 || ^5"},"optionalDependencies":{"next":"^13.0.0 || ^14.0.0 || ^15.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react-mautic-forms_0.1.1_1741520506293_0.5400707134801608","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@adelant/react-mautic-forms","version":"0.1.2","keywords":["react","mautic","forms"],"author":{"name":"Adelant"},"license":"MIT","_id":"@adelant/react-mautic-forms@0.1.2","maintainers":[{"name":"angrigo","email":"gab.angrisani@gmail.com"}],"homepage":"https://github.com/AdelantSoftware/mautic-react-forms#readme","bugs":{"url":"https://github.com/AdelantSoftware/mautic-react-forms/issues"},"dist":{"shasum":"443b9d4844075fa03ac1afe01d7942f0a0880099","tarball":"https://registry.npmjs.org/@adelant/react-mautic-forms/-/react-mautic-forms-0.1.2.tgz","fileCount":11,"integrity":"sha512-KsUzrKrrOESfl0uUuZu2xrMPs8gAzuk6uVag+Q1qyrUYjSTWImXrLLKtjOzcYs7Oz6pES2i1PYQ9yVSlpDRj9g==","signatures":[{"sig":"MEUCIQDK51UsfJ3mXKpjqrd6niuPHIkOnrumRToNak7ZiPqQKQIgZZfR2JMFbYSqzBTIwzNQWq0dPL37/bdztOFH0fcofVI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":149467},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"f67784819c3361312ba33ca1066d9d86acf02e6e","scripts":{"dev":"bun build --watch","test":"bun test","build":"bun build ./src/index.ts --outdir dist && tsc --emitDeclarationOnly"},"_npmUser":{"name":"angrigo","email":"gab.angrisani@gmail.com"},"repository":{"url":"git+https://github.com/AdelantSoftware/mautic-react-forms.git","type":"git"},"_npmVersion":"10.9.0","description":"React components for Mautic form integration","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@types/react-dom":"^19.0.0"},"peerDependencies":{"react":"^19.0.0","react-dom":"^19.0.0","typescript":"^5"},"optionalDependencies":{"next":"^14.0.0 || ^15.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react-mautic-forms_0.1.2_1741523984077_0.38278305394187084","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@adelant/react-mautic-forms","version":"0.1.4","keywords":["react","mautic","forms"],"author":{"name":"Adelant"},"license":"MIT","_id":"@adelant/react-mautic-forms@0.1.4","maintainers":[{"name":"angrigo","email":"gab.angrisani@gmail.com"}],"homepage":"https://github.com/AdelantSoftware/mautic-react-forms#readme","bugs":{"url":"https://github.com/AdelantSoftware/mautic-react-forms/issues"},"dist":{"shasum":"bd6ba122b70b37db32a9e4ba998da3ac7dfbf39a","tarball":"https://registry.npmjs.org/@adelant/react-mautic-forms/-/react-mautic-forms-0.1.4.tgz","fileCount":12,"integrity":"sha512-ifnQv/sOah7pA0OUVA/c3s0FZ9BI3hti8penJE18Iipw9qLOU08En/2nlbVEOjHASjeg9PBSFArElcEYIDeZQA==","signatures":[{"sig":"MEYCIQCF4LOs7VcgMZkVciiP46r1B0gaCMzXio3Bi2FlP8GfpwIhAIR2bmGDmtT2J1eT7NtYcziiH+zwxKUbz1ZtKDNS1lbH","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41402},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"efe9e1a50097eab760a5dab1172b4fc1384ab72b","scripts":{"dev":"bun build --watch","test":"bun test","build":"bun build ./src/index.ts --outdir dist --format esm --external react-dom --external react --external next --external typescript --banner '\"use client\"' && bun build --outfile=./dist/index.cjs ./src/index.ts --format cjs --external react-dom --external react --external next --external typescript --banner '\"use client\"' && tsc --emitDeclarationOnly"},"_npmUser":{"name":"angrigo","email":"gab.angrisani@gmail.com"},"repository":{"url":"git+https://github.com/AdelantSoftware/mautic-react-forms.git","type":"git"},"_npmVersion":"10.8.1","description":"React components for Mautic form integration","directories":{},"_nodeVersion":"22.3.0","_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@types/react-dom":"^19.0.0"},"peerDependencies":{"react":"^19.0.0","react-dom":"^19.0.0","typescript":"^5"},"optionalDependencies":{"next":"^14.0.0 || ^15.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react-mautic-forms_0.1.4_1741620087912_0.6715776881369018","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@adelant/react-mautic-forms","version":"0.1.5","keywords":["react","mautic","forms"],"author":{"name":"Adelant"},"license":"MIT","_id":"@adelant/react-mautic-forms@0.1.5","maintainers":[{"name":"angrigo","email":"gab.angrisani@gmail.com"}],"homepage":"https://github.com/AdelantSoftware/mautic-react-forms#readme","bugs":{"url":"https://github.com/AdelantSoftware/mautic-react-forms/issues"},"dist":{"shasum":"034a3967e7c351d979e8e43ae728871d05f6783a","tarball":"https://registry.npmjs.org/@adelant/react-mautic-forms/-/react-mautic-forms-0.1.5.tgz","fileCount":12,"integrity":"sha512-SRM1HR1MuQlHPFMmJS9ZE4SSYT6HW8S76vDdeQ7miqHmSbJM3ecU05srQ2+lyddNBNDGm7oP58rh8pQefenRlw==","signatures":[{"sig":"MEYCIQCt/U5a13hMRu6PObg5pC4pUWxLjV/3vjyI517eOoB1MgIhAPCADgepyFYum8u3dcq60UIRmaFF0F6Z4iAl4KG7yTVt","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41992},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"d794a5caace2854855343bf4b90c8a5b6ad35bcd","scripts":{"dev":"bun build --watch","test":"bun test","build":"bun build ./src/index.ts --outdir dist --format esm --external react-dom --external react --external next --external typescript --banner '\"use client\"' && bun build --outfile=./dist/index.cjs ./src/index.ts --format cjs --external react-dom --external react --external next --external typescript --banner '\"use client\"' && tsc --emitDeclarationOnly"},"_npmUser":{"name":"angrigo","email":"gab.angrisani@gmail.com"},"repository":{"url":"git+https://github.com/AdelantSoftware/mautic-react-forms.git","type":"git"},"_npmVersion":"10.9.0","description":"React components for Mautic form integration","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@types/react-dom":"^19.0.0"},"peerDependencies":{"react":"^19.0.0","react-dom":"^19.0.0","typescript":"^5"},"optionalDependencies":{"next":"^14.0.0 || ^15.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react-mautic-forms_0.1.5_1741623762512_0.4298568220730996","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@adelant/react-mautic-forms","version":"0.1.6","keywords":["react","mautic","forms"],"author":{"name":"Adelant"},"license":"MIT","_id":"@adelant/react-mautic-forms@0.1.6","maintainers":[{"name":"angrigo","email":"gab.angrisani@gmail.com"}],"homepage":"https://github.com/AdelantSoftware/mautic-react-forms#readme","bugs":{"url":"https://github.com/AdelantSoftware/mautic-react-forms/issues"},"dist":{"shasum":"726f1b54c91a3d3fd3047b5b40eabb65b317bf4c","tarball":"https://registry.npmjs.org/@adelant/react-mautic-forms/-/react-mautic-forms-0.1.6.tgz","fileCount":12,"integrity":"sha512-DG5nkYAU/6JICVnzyzpT7dxbuxdQjEF15z8aVMmuMOOJUAC64BiWF2abwIyq3JREkCv+0Bb8QQrkapM0EqWtBA==","signatures":[{"sig":"MEUCIHeNQOmBQUhL55r//yBp2OOQVRB5SER66+7xKhkE+AmgAiEAmmNx7HrozrOANC/5Xn1chlQGQ7DgdxIgpE8cY1JV2mg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38889},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"6ff2f23177b4ac057a9185753308640aa2c8d7d5","scripts":{"dev":"bun build --watch","test":"bun test","build":"bun build.js"},"_npmUser":{"name":"angrigo","email":"gab.angrisani@gmail.com"},"repository":{"url":"git+https://github.com/AdelantSoftware/mautic-react-forms.git","type":"git"},"_npmVersion":"10.9.0","description":"React components for Mautic form integration","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@types/react-dom":"^19.0.0"},"peerDependencies":{"react":"^19.0.0","react-dom":"^19.0.0","typescript":"^5"},"optionalDependencies":{"next":"^14.0.0 || ^15.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react-mautic-forms_0.1.6_1741628741717_0.0150959033414515","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"@adelant/react-mautic-forms","version":"0.1.7","keywords":["react","mautic","forms"],"author":{"name":"Adelant"},"license":"MIT","_id":"@adelant/react-mautic-forms@0.1.7","maintainers":[{"name":"angrigo","email":"gab.angrisani@gmail.com"}],"homepage":"https://github.com/AdelantSoftware/mautic-react-forms#readme","bugs":{"url":"https://github.com/AdelantSoftware/mautic-react-forms/issues"},"dist":{"shasum":"e76add1746d2e2d2fa636f91404f0319d923c9e9","tarball":"https://registry.npmjs.org/@adelant/react-mautic-forms/-/react-mautic-forms-0.1.7.tgz","fileCount":12,"integrity":"sha512-px29Oo5lCUFgtD+fXkImEWuZQ38sKLAdSggW4U3Y2LyTQ4w0yI7YBx5dey73tObzAY94n5j0jaE7+gxLP8GO6A==","signatures":[{"sig":"MEUCIQDLY/lQegFJDrvYI+n5Al7oWnUek7lzkuxkPtYTE4B6iwIgO4g72NcerXjmlJ7MJkmIePuE0OucBiqPEtuJd2D0rlI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":39991},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"cf8fb5863e50dd0be3bd0cac7d2050b3fc86f6d6","scripts":{"dev":"bun build --watch","test":"bun test","build":"bun build.js"},"_npmUser":{"name":"angrigo","email":"gab.angrisani@gmail.com"},"repository":{"url":"git+https://github.com/AdelantSoftware/mautic-react-forms.git","type":"git"},"_npmVersion":"10.9.0","description":"React components for Mautic form integration","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@types/react-dom":"^19.1.2"},"peerDependencies":{"react":"^19.1.0","react-dom":"^19.1.0","typescript":"^5"},"optionalDependencies":{"next":"^14.0.0 || ^15.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react-mautic-forms_0.1.7_1744674589365_0.19772608986225237","host":"s3://npm-registry-packages-npm-production"}},"0.1.8":{"name":"@adelant/react-mautic-forms","version":"0.1.8","keywords":["react","mautic","forms"],"author":{"name":"Adelant"},"license":"MIT","_id":"@adelant/react-mautic-forms@0.1.8","maintainers":[{"name":"angrigo","email":"gab.angrisani@gmail.com"}],"homepage":"https://github.com/AdelantSoftware/mautic-react-forms#readme","bugs":{"url":"https://github.com/AdelantSoftware/mautic-react-forms/issues"},"dist":{"shasum":"67f1fa5953bf304210e9099a0add6756756a71b7","tarball":"https://registry.npmjs.org/@adelant/react-mautic-forms/-/react-mautic-forms-0.1.8.tgz","fileCount":12,"integrity":"sha512-qZzfoWgfRo1NRUQCTBxWxJejD5IZx6GIB9dhrzh91Q5P2mmm2L17hj+ZhmhyB8MFBQcKAqHlwjbdjXfUu8VvTw==","signatures":[{"sig":"MEUCIQCG9ur5OtzqHfiVqFm9CehdMZJr1JiOEFThgyOWKTov4wIgDh4tFezfbiSYfMhoBlljMBAu43OTAASpe4/k4N9Uv0Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":31437},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"f59286de819596f368aa2d936a1e3ba703cfea80","scripts":{"dev":"bun build --watch","test":"bun test","build":"bun build.js"},"_npmUser":{"name":"angrigo","email":"gab.angrisani@gmail.com"},"repository":{"url":"git+https://github.com/AdelantSoftware/mautic-react-forms.git","type":"git"},"_npmVersion":"10.9.0","description":"React components for Mautic form integration","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@types/react-dom":"^19.1.2"},"peerDependencies":{"react":"^19.1.0","react-dom":"^19.1.0","typescript":"^5"},"optionalDependencies":{"next":"^14.0.0 || ^15.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react-mautic-forms_0.1.8_1744751386526_0.9430100431207007","host":"s3://npm-registry-packages-npm-production"}},"0.1.9":{"name":"@adelant/react-mautic-forms","version":"0.1.9","keywords":["react","mautic","forms"],"author":{"name":"Adelant"},"license":"MIT","_id":"@adelant/react-mautic-forms@0.1.9","maintainers":[{"name":"angrigo","email":"gab.angrisani@gmail.com"}],"homepage":"https://github.com/AdelantSoftware/mautic-react-forms#readme","bugs":{"url":"https://github.com/AdelantSoftware/mautic-react-forms/issues"},"dist":{"shasum":"05c30995b438136e8aaf60e4ef6472079281b346","tarball":"https://registry.npmjs.org/@adelant/react-mautic-forms/-/react-mautic-forms-0.1.9.tgz","fileCount":12,"integrity":"sha512-X6f66XWTrOpcrld/ygWN9FqQ4+9q9Kb6C6W0tfGnIA3tEvwPfDmhffJ0iF60NAqb+BJpkoi6+0NQqq2AwY1HnA==","signatures":[{"sig":"MEUCIEeulZ0XvWGqy3PXmf3JAl2zHWSvM9zWxE9rQBu9tJgKAiEAtVlIXkSfg8WpMMNKUqXNhCaC7Fda+/dslgx2JCx2dCk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":31456},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"0ed83c14aa841da75be8220f414ef44442239f91","scripts":{"dev":"bun build --watch","test":"bun test","build":"bun build.js"},"_npmUser":{"name":"angrigo","email":"gab.angrisani@gmail.com"},"repository":{"url":"git+https://github.com/AdelantSoftware/mautic-react-forms.git","type":"git"},"_npmVersion":"11.5.1","description":"React components for Mautic form integration","directories":{},"_nodeVersion":"24.5.0","_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@types/react":"^19.0.0","@types/react-dom":"^19.0.0"},"peerDependencies":{"react":"^19.0.0","react-dom":"^19.0.0","typescript":"^5"},"optionalDependencies":{"next":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/react-mautic-forms_0.1.9_1762531879543_0.49667159347364476","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@adelant/react-mautic-forms","version":"0.2.0","keywords":["react","mautic","forms"],"author":{"name":"Adelant"},"license":"MIT","_id":"@adelant/react-mautic-forms@0.2.0","maintainers":[{"name":"angrigo","email":"gab.angrisani@gmail.com"}],"homepage":"https://github.com/AdelantSoftware/mautic-react-forms#readme","bugs":{"url":"https://github.com/AdelantSoftware/mautic-react-forms/issues"},"dist":{"shasum":"fa5b5c67cb331057ef19b3c79cbb6764f8bfc368","tarball":"https://registry.npmjs.org/@adelant/react-mautic-forms/-/react-mautic-forms-0.2.0.tgz","fileCount":12,"integrity":"sha512-AprNx4Rw27h8NdRm1UNneoDoUiNfcdpv1cCT4dn2Tr0HMDilaHAro1D9Xv0HGhFrhPiACntCqgqyLQtsTrHxFA==","signatures":[{"sig":"MEUCIQD7Njl97ukBlH0J2blXcFKl1T2TrDHe/IYRHFsKCduQ5wIgIhTs/Hc25slchg4j0dPgrSsbI7K9zpcre9hPerm9VLc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":31522},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"a02fd0e5aba3a2c9a665373311552124887d07a7","scripts":{"dev":"bun build --watch","test":"bun test","build":"bun build.js"},"_npmUser":{"name":"angrigo","email":"gab.angrisani@gmail.com"},"repository":{"url":"git+https://github.com/AdelantSoftware/mautic-react-forms.git","type":"git"},"_npmVersion":"11.5.1","description":"React components for Mautic form integration","directories":{},"_nodeVersion":"24.5.0","_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@types/react":"^19.0.0","@types/react-dom":"^19.0.0"},"peerDependencies":{"react":"^17.0.0 || ^18.0.0 || ^19.0.0","react-dom":"^17.0.0 || ^18.0.0 || ^19.0.0","typescript":"^5"},"optionalDependencies":{"next":"^14.0.0 || ^15.0.0 || ^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react-mautic-forms_0.2.0_1762597913795_0.7220767316624321","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@adelant/react-mautic-forms","version":"0.3.0","keywords":["react","mautic","forms"],"author":{"name":"Adelant"},"license":"MIT","_id":"@adelant/react-mautic-forms@0.3.0","maintainers":[{"name":"angrigo","email":"gab.angrisani@gmail.com"}],"homepage":"https://github.com/AdelantSoftware/mautic-react-forms#readme","bugs":{"url":"https://github.com/AdelantSoftware/mautic-react-forms/issues"},"dist":{"shasum":"46c13fc425e0bfa541381f65617a0614c729aec8","tarball":"https://registry.npmjs.org/@adelant/react-mautic-forms/-/react-mautic-forms-0.3.0.tgz","fileCount":12,"integrity":"sha512-9vigc7tuyPDBRMeMMq8/giu16nJU9zJfXOlpIBqk7b0peCw3edSZKz/rzI+m4zyXFR9jVvfEUkRs0j8O2HCVNw==","signatures":[{"sig":"MEQCIAPwCwzP5e6Kdx+Tx68JNmEPVt7O4Zrydvd9lmAYDOvmAiBrPM5tJpHoKPz/KINWqe/ZapWm4GppRGjP/qOYOYuR3g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@adelant%2freact-mautic-forms@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":36035},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"d250a172f7e3581d36f76563b598d81376d20509","scripts":{"dev":"bun build --watch","test":"bun test","build":"bun build.js"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f8ac57f3-be1f-4949-8978-528c45d32d3a"}},"repository":{"url":"git+https://github.com/AdelantSoftware/mautic-react-forms.git","type":"git"},"_npmVersion":"11.6.2","description":"React components for Mautic form integration","directories":{},"_nodeVersion":"24.13.0","_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@types/react":"^19.0.0","@types/react-dom":"^19.0.0"},"peerDependencies":{"react":"^17.0.0 || ^18.0.0 || ^19.0.0","react-dom":"^17.0.0 || ^18.0.0 || ^19.0.0","typescript":"^5"},"optionalDependencies":{"next":"^14.0.0 || ^15.0.0 || ^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react-mautic-forms_0.3.0_1771263696251_0.2218814758574974","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@adelant/react-mautic-forms","version":"0.3.1","keywords":["react","mautic","forms"],"author":{"name":"Adelant"},"license":"MIT","_id":"@adelant/react-mautic-forms@0.3.1","maintainers":[{"name":"angrigo","email":"gab.angrisani@gmail.com"}],"homepage":"https://github.com/AdelantSoftware/mautic-react-forms#readme","bugs":{"url":"https://github.com/AdelantSoftware/mautic-react-forms/issues"},"dist":{"shasum":"94e7fe02a84859da62e18d658c063b7e5159fb73","tarball":"https://registry.npmjs.org/@adelant/react-mautic-forms/-/react-mautic-forms-0.3.1.tgz","fileCount":12,"integrity":"sha512-Z7/Sv7ClUqsf0h3wFU7EUJ3JHXasXuBHVeoEmEmHMqvQjqLWDNUyJHABG25oetSO5X+KJsW+NY9hBKWcx7XMjw==","signatures":[{"sig":"MEUCIQDISteJ2dYMAQkpgea7gpcMKoTgp2aqBzhxGZ8H+h40cAIgLQa/A12nSkHJvapTRiEiBnLwubYygU2oMpSIU8+9p10=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26780},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"d250a172f7e3581d36f76563b598d81376d20509","scripts":{"dev":"bun build --watch","test":"bun test","build":"bun build.js"},"_npmUser":{"name":"angrigo","email":"gab.angrisani@gmail.com"},"repository":{"url":"git+https://github.com/AdelantSoftware/mautic-react-forms.git","type":"git"},"_npmVersion":"11.5.1","description":"React components for Mautic form integration","directories":{},"_nodeVersion":"24.5.0","_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@types/react":"^19.0.0","@types/react-dom":"^19.0.0"},"peerDependencies":{"react":"^17.0.0 || ^18.0.0 || ^19.0.0","react-dom":"^17.0.0 || ^18.0.0 || ^19.0.0","typescript":"^5"},"optionalDependencies":{"next":"^14.0.0 || ^15.0.0 || ^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react-mautic-forms_0.3.1_1774878834506_0.7974784639885124","host":"s3://npm-registry-packages-npm-production"}},"0.3.2":{"name":"@adelant/react-mautic-forms","version":"0.3.2","keywords":["react","mautic","forms"],"author":{"name":"Adelant"},"license":"MIT","_id":"@adelant/react-mautic-forms@0.3.2","maintainers":[{"name":"angrigo","email":"gab.angrisani@gmail.com"}],"homepage":"https://github.com/AdelantSoftware/mautic-react-forms#readme","bugs":{"url":"https://github.com/AdelantSoftware/mautic-react-forms/issues"},"dist":{"shasum":"7002a77573a741e40bb1d6e007fe64d95a250fa2","tarball":"https://registry.npmjs.org/@adelant/react-mautic-forms/-/react-mautic-forms-0.3.2.tgz","fileCount":12,"integrity":"sha512-4IyeEl97dDAlqBjmMPkyG2yp3eQnSTl3VMDAV1aDc5DqV9zuadHj+IiXhnIEmMusytHIj3u1IlZCGOcIvqSz3g==","signatures":[{"sig":"MEYCIQDcoI3DwN9TyMDbgosUs+AzIiIe5JmIxi9jI1Lo8pPAKAIhAP+w5fk93Yan66hWEP0G7F5UIZqNBSQcEC4mMgIbKiPO","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26870},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"d250a172f7e3581d36f76563b598d81376d20509","scripts":{"dev":"bun build --watch","test":"bun test","build":"bun build.js"},"_npmUser":{"name":"angrigo","email":"gab.angrisani@gmail.com"},"repository":{"url":"git+https://github.com/AdelantSoftware/mautic-react-forms.git","type":"git"},"_npmVersion":"11.5.1","description":"React components for Mautic form integration","directories":{},"_nodeVersion":"24.5.0","_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@types/react":"^19.0.0","@types/react-dom":"^19.0.0"},"peerDependencies":{"react":"^17.0.0 || ^18.0.0 || ^19.0.0","react-dom":"^17.0.0 || ^18.0.0 || ^19.0.0","typescript":"^5"},"optionalDependencies":{"next":"^14.0.0 || ^15.0.0 || ^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react-mautic-forms_0.3.2_1774878915137_0.7475549893249815","host":"s3://npm-registry-packages-npm-production"}},"0.3.3":{"name":"@adelant/react-mautic-forms","version":"0.3.3","keywords":["react","mautic","forms"],"author":{"name":"Adelant"},"license":"MIT","_id":"@adelant/react-mautic-forms@0.3.3","maintainers":[{"name":"angrigo","email":"gab.angrisani@gmail.com"}],"homepage":"https://github.com/AdelantSoftware/mautic-react-forms#readme","bugs":{"url":"https://github.com/AdelantSoftware/mautic-react-forms/issues"},"dist":{"shasum":"e681055d5c27b1ffa006b7a8843a7617281f7e2c","tarball":"https://registry.npmjs.org/@adelant/react-mautic-forms/-/react-mautic-forms-0.3.3.tgz","fileCount":12,"integrity":"sha512-YQ0KWTM91Yp3+EMFFydAaEckIjE0CXqbYxyis++KXzk75cmtcK63dQ4RRpt2ikIPt5PZV/4BhJZZTYWo7n/+Dw==","signatures":[{"sig":"MEYCIQD+kkkWb04Qe2uNlA49LCo8fEfGn5TU8yT5r+v6+vvajQIhAL6n0MOOIZgXGIXwsazTTe7f5uzIfXeyHBK15Dzn1K4u","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26875},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"6e2279036fd4ddbf51a7ae861db8cfa37cbb40c2","scripts":{"dev":"bun build --watch","test":"bun test","build":"bun build.js"},"_npmUser":{"name":"angrigo","email":"gab.angrisani@gmail.com"},"repository":{"url":"git+https://github.com/AdelantSoftware/mautic-react-forms.git","type":"git"},"_npmVersion":"11.5.1","description":"React components for Mautic form integration","directories":{},"_nodeVersion":"24.5.0","_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@types/react":"^19.0.0","@types/react-dom":"^19.0.0"},"peerDependencies":{"react":"^17.0.0 || ^18.0.0 || ^19.0.0","react-dom":"^17.0.0 || ^18.0.0 || ^19.0.0","typescript":"^5 || ^6"},"optionalDependencies":{"next":"^14.0.0 || ^15.0.0 || ^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react-mautic-forms_0.3.3_1778485848334_0.020356737116533186","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@adelant/react-mautic-forms","description":"React components for Mautic form integration","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","type":"module","version":"0.4.0","license":"MIT","author":{"name":"Adelant"},"repository":{"type":"git","url":"git+https://github.com/AdelantSoftware/mautic-react-forms.git"},"keywords":["react","mautic","forms"],"exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs","types":"./dist/index.d.ts"}},"peerDependencies":{"react":"^17.0.0 || ^18.0.0 || ^19.0.0","react-dom":"^17.0.0 || ^18.0.0 || ^19.0.0","typescript":"^5 || ^6"},"optionalDependencies":{"next":"^14.0.0 || ^15.0.0 || ^16.0.0"},"devDependencies":{"@types/bun":"latest","@types/react":"^19.0.0","@types/react-dom":"^19.0.0"},"scripts":{"build":"bun build.js","dev":"bun build --watch","test":"bun test"},"_id":"@adelant/react-mautic-forms@0.4.0","gitHead":"6e2279036fd4ddbf51a7ae861db8cfa37cbb40c2","bugs":{"url":"https://github.com/AdelantSoftware/mautic-react-forms/issues"},"homepage":"https://github.com/AdelantSoftware/mautic-react-forms#readme","_nodeVersion":"24.5.0","_npmVersion":"11.5.1","dist":{"integrity":"sha512-FvWNY5nC9+Gntalilo0PqjuWIMcyo01CliS9gJBRsV810WXdtVVRD9YHgwo4aqXZwNTtlhJm+rFbpR3QafRnBw==","shasum":"3aba17973bd92e0cce3a86a69858b1eb18b7b60f","tarball":"https://registry.npmjs.org/@adelant/react-mautic-forms/-/react-mautic-forms-0.4.0.tgz","fileCount":15,"unpackedSize":37133,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCortINqqpaUz94gpA/xNskZ1h5kBcJuaPBVt+triB3iQIgaYpDv4SashlZ3SAUfD5eNXim4wN1RniX6+4XComc6s4="}]},"_npmUser":{"name":"angrigo","email":"gab.angrisani@gmail.com"},"directories":{},"maintainers":[{"name":"angrigo","email":"gab.angrisani@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/react-mautic-forms_0.4.0_1778489233383_0.49635753579549213"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-08T21:20:17.061Z","modified":"2026-05-11T08:47:13.646Z","0.1.0":"2025-03-08T21:20:17.353Z","0.1.1":"2025-03-09T11:41:46.550Z","0.1.2":"2025-03-09T12:39:44.271Z","0.1.3":"2025-03-09T14:28:42.113Z","0.1.4":"2025-03-10T15:21:28.100Z","0.1.5":"2025-03-10T16:22:42.707Z","0.1.6":"2025-03-10T17:45:41.884Z","0.1.7":"2025-04-14T23:49:49.557Z","0.1.8":"2025-04-15T21:09:46.730Z","0.1.9":"2025-11-07T16:11:19.752Z","0.2.0":"2025-11-08T10:31:54.003Z","0.3.0":"2026-02-16T17:41:36.400Z","0.3.1":"2026-03-30T13:53:54.656Z","0.3.2":"2026-03-30T13:55:15.267Z","0.3.3":"2026-05-11T07:50:48.470Z","0.4.0":"2026-05-11T08:47:13.525Z"},"bugs":{"url":"https://github.com/AdelantSoftware/mautic-react-forms/issues"},"author":{"name":"Adelant"},"license":"MIT","homepage":"https://github.com/AdelantSoftware/mautic-react-forms#readme","keywords":["react","mautic","forms"],"repository":{"type":"git","url":"git+https://github.com/AdelantSoftware/mautic-react-forms.git"},"description":"React components for Mautic form integration","maintainers":[{"name":"angrigo","email":"gab.angrisani@gmail.com"}],"readme":"# @adelant/react-mautic-forms\n\nA lightweight, flexible React component library for integrating Mautic forms into any React-based project. This library provides easy-to-use components for creating, styling, and handling Mautic form submissions.\n\n[![npm version](https://img.shields.io/npm/v/@adelant/react-mautic-forms.svg)](https://www.npmjs.com/package/@adelant/react-mautic-forms)\n[![npm downloads](https://img.shields.io/npm/dm/@adelant/react-mautic-forms.svg)](https://www.npmjs.com/package/@adelant/react-mautic-forms)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n## Features\n\n- 🚀 Framework agnostic - works with any React project\n- 🧩 Modular components for maximum flexibility\n- 🤖 Auto-generate forms from Mautic form definitions (no manual field wiring)\n- 📱 Responsive design with customizable styling\n- 🔄 Automatic form reset on successful submission\n- 📝 TypeScript support with comprehensive type definitions\n- ⚡ Optimized for Next.js but works with any React setup\n\n## Installation\n\n```bash\n# Using npm\nnpm install @adelant/react-mautic-forms\n\n# Using yarn\nyarn add @adelant/react-mautic-forms\n\n# Using pnpm\npnpm add @adelant/react-mautic-forms\n\n# Using bun\nbun add @adelant/react-mautic-forms\n```\n\n## Quick Start\n\n```jsx\nimport {\n  MauticForm,\n  MauticInput,\n  MauticSubmitButton,\n  MauticTracking,\n  MauticFormScript,\n} from \"@adelant/react-mautic-forms\";\n\nfunction ContactForm() {\n  const handleSuccess = (formData) => {\n    console.log(\"Form submitted:\", formData);\n  };\n\n  return (\n    <>\n      {/* Add these once in your app */}\n      <MauticTracking\n        mauticURL=\"https://mautic.example.com/mtc.js\"\n        tags=\"example.com\"\n      />\n      <MauticFormScript\n        mauticDomain=\"https://mautic.example.com\"\n        mauticFormURL=\"https://mautic.example.com/media/js/mautic-form.js\"\n      />\n\n      {/* Create your form */}\n      <MauticForm\n        formId=\"123\"\n        formName=\"contact_form\"\n        successCallback={handleSuccess}\n      >\n        <MauticInput\n          formName=\"contact_form\"\n          name=\"email\"\n          label=\"Email Address\"\n          type=\"email\"\n          required\n          validate=\"email\"\n        />\n\n        <MauticInput\n          formName=\"contact_form\"\n          name=\"message\"\n          label=\"Your Message\"\n          type=\"textarea\"\n          required\n        />\n\n        <MauticSubmitButton\n          formName=\"contact_form\"\n          className=\"px-4 py-2 bg-blue-500 text-white rounded\"\n        >\n          Send Message\n        </MauticSubmitButton>\n      </MauticForm>\n    </>\n  );\n}\n```\n\n## MauticAutoForm — Zero-effort dynamic forms\n\nInstead of manually wiring every field, `MauticAutoForm` reads the form structure from Mautic and renders everything automatically.\n\n**Two ways to use it:**\n\n### Mode 1: Zero setup (auto-fetch from public endpoint)\n\nNo credentials. No backend. Just `formId` and `mauticBaseUrl` — the component fetches `GET /form/{formId}` directly and parses the HTML.\n\n```jsx\nimport { MauticAutoForm } from \"@adelant/react-mautic-forms\";\n\n<MauticAutoForm\n  formId={7}\n  mauticBaseUrl=\"https://mautic.example.com\"\n  successCallback={(formData) => console.log(\"ok\")}\n/>\n```\n\n### Mode 2: Server-side fetch (auth-protected API)\n\nIf your Mautic API requires authentication, fetch the definition server-side and pass it as the `definition` prop. No credentials leak to the browser.\n\n### Props\n\n| Prop | Type | Required | Description |\n|------|------|----------|-------------|\n| `formId` | `number` | ✓ | Mautic form ID |\n| `formId` | `number` | ✓ | Mautic form ID |\n| `mauticBaseUrl` | `string` | ✓ | Your Mautic instance base URL |\n| `definition` | `object` | — | Pre-fetched form definition (if omitted, auto-fetches from public `/form/{id}`) |\n| `renderField` | `(field, formName) => ReactNode` | — | Custom field renderer. Return null to use default. |\n| `onFormLoaded` | `(def) => void` | — | Called on mount with the definition |\n| `successCallback` | `(formData) => void` | — | Called on successful submit |\n| `errorCallback` | `(error, formData) => void` | — | Called on error |\n| `className` | `string` | — | Wrapper class |\n| `fieldClassName` | `string` | — | Default class for fields |\n| `submitClassName` | `string` | — | Class for submit button |\n| `submitLabel` | `string` | — | Submit button text (falls back to Mautic label → \"Submit\") |\n\n### Custom field rendering\n\n```jsx\n<MauticAutoForm\n  formId={7}\n  mauticBaseUrl=\"https://mautic.example.com\"\n  renderField={(field, formName) => {\n    if (field.alias === \"country\") return <CountrySelect key={field.id} />;\n    return null; // null = use default renderer for this field\n  }}\n/>\n```\n\n## Usage with Different Frameworks\n\n### Basic React Application\n\n```jsx\nimport {\n  MauticForm,\n  MauticInput,\n  MauticSubmitButton,\n  MauticTracking,\n  MauticFormScript,\n} from \"@adelant/react-mautic-forms\";\n\nfunction App() {\n  return (\n    <div>\n      <MauticTracking\n        mauticURL=\"https://mautic.example.com/mtc.js\"\n        tags=\"example.com\"\n      />\n      <MauticFormScript\n        mauticDomain=\"https://mautic.example.com\"\n        mauticFormURL=\"https://mautic.example.com/media/js/mautic-form.js\"\n      />\n\n      <MauticForm formId=\"1\" formName=\"contact_form\">\n        <MauticInput\n          formName=\"contact_form\"\n          name=\"name\"\n          label=\"Your Name\"\n          required\n        />\n\n        <MauticInput\n          formName=\"contact_form\"\n          name=\"email\"\n          label=\"Email Address\"\n          type=\"email\"\n          required\n        />\n\n        <MauticSubmitButton formName=\"contact_form\">Submit</MauticSubmitButton>\n      </MauticForm>\n    </div>\n  );\n}\n```\n\n### Next.js (Pages Router)\n\n```jsx\n// pages/_app.js\nimport { MauticTracking, MauticFormScript } from '@adelant/react-mautic-forms';\n\nfunction MyApp({ Component, pageProps }) {\n  return (\n    <>\n      <Component {...pageProps} />\n      <MauticTracking\n        mauticURL=\"https://mautic.example.com/mtc.js\"\n        tags=\"example.com\"\n      />\n      <MauticFormScript\n        mauticDomain=\"https://mautic.example.com\"\n        mauticFormURL=\"https://mautic.example.com/media/js/mautic-form.js\"\n      />\n    </>\n  );\n}\n\nexport default MyApp;\n\n// pages/contact.js\nimport { MauticForm, MauticInput, MauticSubmitButton } from '@adelant/react-mautic-forms';\n\nexport default function Contact() {\n  return (\n    <div className=\"container mx-auto py-8\">\n      <h1 className=\"text-2xl font-bold mb-6\">Contact Us</h1>\n\n      <MauticForm formId=\"1\" formName=\"contact_form\">\n        {/* Form fields */}\n        <MauticSubmitButton formName=\"contact_form\">Submit</MauticSubmitButton>\n      </MauticForm>\n    </div>\n  );\n}\n```\n\n### Next.js (App Router)\n\n```jsx\n// app/layout.jsx\nimport { MauticTracking, MauticFormScript } from '@adelant/react-mautic-forms';\n\nexport default function RootLayout({ children }) {\n  return (\n    <html lang=\"en\">\n      <body>\n        {children}\n        <MauticTracking\n          mauticURL=\"https://mautic.example.com/mtc.js\"\n          tags=\"example.com\"\n        />\n        <MauticFormScript\n          mauticDomain=\"https://mautic.example.com\"\n          mauticFormURL=\"https://mautic.example.com/media/js/mautic-form.js\"\n        />\n      </body>\n    </html>\n  );\n}\n\n// app/contact/page.jsx - Note: Client Component\n'use client';\n\nimport { MauticForm, MauticInput, MauticSubmitButton } from '@adelant/react-mautic-forms';\n\nexport default function ContactPage() {\n  return (\n    <div className=\"container mx-auto py-8\">\n      <h1 className=\"text-2xl font-bold mb-6\">Contact Us</h1>\n\n      <MauticForm formId=\"1\" formName=\"contact_form\">\n        <MauticInput\n          formName=\"contact_form\"\n          name=\"email\"\n          label=\"Email\"\n          type=\"email\"\n          required\n        />\n        <MauticSubmitButton formName=\"contact_form\">Submit</MauticSubmitButton>\n      </MauticForm>\n    </div>\n  );\n}\n```\n\nIf you need to avoid SSR rendering for the form itself (for example during strict prerendering workflows), lazy-load the form components with SSR disabled:\n\n```jsx\n// app/contact/page.jsx\n'use client';\n\nimport dynamic from 'next/dynamic';\n\nconst MauticForm = dynamic(\n  () => import('@adelant/react-mautic-forms').then((m) => m.MauticForm),\n  { ssr: false }\n);\nconst MauticInput = dynamic(\n  () => import('@adelant/react-mautic-forms').then((m) => m.MauticInput),\n  { ssr: false }\n);\nconst MauticSubmitButton = dynamic(\n  () => import('@adelant/react-mautic-forms').then((m) => m.MauticSubmitButton),\n  { ssr: false }\n);\n```\n\n## Component API\n\n### MauticForm\n\nMain container for Mautic forms that handles form submission and notifications.\n\n```jsx\n<MauticForm\n  formId=\"123\" // Required: Mautic form ID\n  formName=\"contact_form\" // Required: Unique form name\n  action=\"https://mautic.example.com/form/submit\" // Optional: Custom submission URL\n  successCallback={(formData) => {}} // Optional: Function called on successful submission\n  errorCallback={(error, formData) => {}} // Optional: Function called on error\n  className=\"my-form\" // Optional: CSS class for the wrapper\n>\n  {/* Form elements go here */}\n</MauticForm>\n```\n\n### MauticInput\n\nComponent for creating various form input types.\n\n```jsx\n<MauticInput\n  formName=\"contact_form\" // Required: Must match parent MauticForm's formName\n  name=\"email\" // Required: Field name\n  label=\"Email Address\" // Optional: Input label\n  type=\"email\" // Optional: Input type (default: \"text\") or \"textarea\"\n  component=\"input\" // Optional: \"input\" or \"textarea\". Defaults to inferring from type.\n  required={true} // Optional: Mark field as required\n  validate=\"email\" // Optional: Validation type\n  validationType=\"email\" // Optional: Additional validation params\n  className=\"custom-input\" // Optional: CSS classes\n  errorMessage=\"Valid email required\" // Optional: Custom error message\n  placeholder=\"Enter your email\" // Optional: Placeholder text\n  autocomplete=\"email\" // Optional: Autocomplete attribute\n  // ...other standard input/textarea props (onChange, onBlur, etc.)\n/>\n```\n\nSupported input types: `text`, `email`, `tel`, `number`, `date`, `textarea`, and others supported by HTML input.\n\n### MauticSubmitButton\n\nCustomizable submit button for the form.\n\n```jsx\n<MauticSubmitButton\n  formName=\"contact_form\" // Required: Must match parent MauticForm's formName\n  className=\"submit-button\" // Optional: CSS classes\n  // ...other standard button props (disabled, onClick, etc.)\n>\n  Send Message // Button text/content\n</MauticSubmitButton>\n```\n\n### MauticTracking\n\nAdds Mautic tracking to your application. Include this once, typically in your app layout.\n\n```jsx\n<MauticTracking\n  mauticURL=\"https://mautic.example.com/mtc.js\"\n  tags=\"example.com\"\n  enabled={true} // Optional: Explicitly enable/disable tracking. Defaults to !dev\n/>\n```\n\n## Custom Hooks (Headless Usage)\n\n### useMauticForm\n\nIf you need complete control over the form rendering and logic, you can use the `useMauticForm` hook.\n\n```jsx\nimport { useMauticForm } from \"@adelant/react-mautic-forms\";\n\nfunction MyCustomForm() {\n  const { handleSubmit, isSubmitting, error } = useMauticForm({\n    formId: \"123\",\n    formName: \"contact_form\",\n    action: \"https://mautic.example.com/form/submit\",\n    successCallback: (formData) => console.log(\"Success!\", formData),\n    errorCallback: (err) => console.error(\"Error!\", err),\n  });\n\n  return (\n    <form onSubmit={handleSubmit}>\n      <input name=\"mauticform[email]\" type=\"email\" required />\n      \n      {/* Required hidden fields for Mautic */}\n      <input type=\"hidden\" name=\"mauticform[formId]\" value=\"123\" />\n      <input type=\"hidden\" name=\"mauticform[return]\" value=\"\" />\n      <input type=\"hidden\" name=\"mauticform[formName]\" value=\"contact_form\" />\n\n      <button disabled={isSubmitting}>\n        {isSubmitting ? \"Sending...\" : \"Send\"}\n      </button>\n\n      {error && <div className=\"error\">{error.message}</div>}\n    </form>\n  );\n}\n```\n\n### MauticFormScript\n\nAdds the Mautic form handler script to your application. Include this once, typically in your app layout.\n\n```jsx\n<MauticFormScript\n  mauticDomain=\"https://mautic.example.com\"\n  mauticFormURL=\"https://mautic.example.com/media/js/mautic-form.js\"\n/>\n```\n\n## Advanced Usage\n\n### Custom Form Styling\n\nAll components accept `className` props for styling with Tailwind CSS, CSS modules, or any CSS framework.\n\n```jsx\n<MauticForm\n  formId=\"1\"\n  formName=\"contact_form\"\n  className=\"bg-gray-100 p-6 rounded-lg shadow-md\"\n>\n  <MauticInput\n    formName=\"contact_form\"\n    name=\"email\"\n    label=\"Email\"\n    className=\"mb-4 border-gray-300 focus:ring-blue-500\"\n  />\n\n  <MauticSubmitButton\n    formName=\"contact_form\"\n    className=\"px-6 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 transition-colors\"\n  >\n    Submit\n  </MauticSubmitButton>\n</MauticForm>\n```\n\n### Form Submission Handling\n\nCustomize what happens after successful form submission:\n\n```jsx\n<MauticForm\n  formId=\"1\"\n  formName=\"contact_form\"\n  successCallback={(formData) => {\n    // Access form data\n    console.log(\"Form data:\", formData);\n\n    // Track event with analytics\n    window.gtag?.(\"event\", \"form_submission\", {\n      form_name: \"contact_form\",\n    });\n\n    // Navigate to thank you page\n    router.push(\"/thank-you\");\n  }}\n>\n  {/* Form fields */}\n</MauticForm>\n```\n\n### Custom Mautic Instance\n\nYou can use a custom Mautic instance by configuring the endpoint URL:\n\n```jsx\n<MauticForm\n  formId=\"1\"\n  formName=\"contact_form\"\n  action=\"https://your-mautic-instance.com/form/submit\"\n>\n  {/* Form fields */}\n</MauticForm>\n```\n\n## TypeScript Support\n\nThis library includes comprehensive TypeScript definitions. Import types directly:\n\n```tsx\nimport { MauticFormProps, MauticInputProps } from \"@adelant/react-mautic-forms\";\n\nconst CustomInput = ({ ...props }: MauticInputProps) => {\n  return <MauticInput {...props} className=\"custom-styled-input\" />;\n};\n```\n\n## Browser Support\n\n- Chrome, Firefox, Safari, Edge: latest 2 versions\n- IE: Not supported\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Acknowledgements\n\n- Developed and maintained by [Adelant](https://adelant.com)\n- Built with [Bun](https://bun.sh) and TypeScript\n","readmeFilename":"README.md"}