{"_id":"@agencecinq/modal","_rev":"12-3e9df0b3db37a686eb722c951794a9b1","name":"@agencecinq/modal","dist-tags":{"latest":"4.0.1"},"versions":{"1.0.0":{"name":"@agencecinq/modal","version":"1.0.0","license":"MIT","_id":"@agencecinq/modal@1.0.0","maintainers":[{"name":"19h47","email":"jeremylevron@19h47.fr"}],"homepage":"https://github.com/agencecinq/shopify#readme","bugs":{"url":"https://github.com/agencecinq/shopify/issues"},"dist":{"shasum":"43301d148c71ba5187b82bd38b125938fb08c38b","tarball":"https://registry.npmjs.org/@agencecinq/modal/-/modal-1.0.0.tgz","fileCount":9,"integrity":"sha512-fIovoXEfhXvpW8rKcHMaG6/SigndNs30I1tV2L3JaOJR3aoJONLtkShEhOq/pzJsNqkKne8MTKOmUa8ySFdHlA==","signatures":[{"sig":"MEUCIHhdzizME2PjDAGdAx2pUAeM8d7+FmJ6s+2fVaafVEFFAiEA6FEC2z7GTG9lowCPVAC3QURmDz68c7gvutvJGT7uuAQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9228},"main":"./dist/index.js","type":"module","_from":"file:agencecinq-modal-1.0.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"vite build --watch","build":"vite build"},"_npmUser":{"name":"19h47","email":"jeremylevron@19h47.fr"},"_resolved":"/private/var/folders/vt/kpbgrh4d7k14zvxmcm01bfxh0000gn/T/5bdb79a058d366c5b36aebf14d694691/agencecinq-modal-1.0.0.tgz","_integrity":"sha512-fIovoXEfhXvpW8rKcHMaG6/SigndNs30I1tV2L3JaOJR3aoJONLtkShEhOq/pzJsNqkKne8MTKOmUa8ySFdHlA==","repository":{"url":"git+https://github.com/agencecinq/shopify.git","type":"git","directory":"packages/modal"},"_npmVersion":"11.10.1","description":"A lightweight, accessible Web Component wrapper around the native HTML `<dialog>` element, designed for Shopify themes. Part of the **CINQ** internal tools ecosystem.","directories":{},"_nodeVersion":"22.22.0","dependencies":{"fs-extra":"^11.3.3","@types/fs-extra":"^11.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.3.1","vite-plugin-dts":"^4.5.4","@agencecinq/utils":"4.0.0"},"peerDependencies":{"@agencecinq/utils":"*"},"_npmOperationalInternal":{"tmp":"tmp/modal_1.0.0_1773127382996_0.8240800632930763","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@agencecinq/modal","version":"1.0.1","license":"MIT","_id":"@agencecinq/modal@1.0.1","maintainers":[{"name":"19h47","email":"jeremylevron@19h47.fr"}],"homepage":"https://github.com/agencecinq/shopify#readme","bugs":{"url":"https://github.com/agencecinq/shopify/issues"},"dist":{"shasum":"f407655fe30ee188ead50ebbcb66f637ae801b62","tarball":"https://registry.npmjs.org/@agencecinq/modal/-/modal-1.0.1.tgz","fileCount":9,"integrity":"sha512-Om+U9uNxR3XDdH1iO6CdaaXRwlSUbiFF9doPDHBG6rEJlLgm01Jo6Mcw4yJ+MGFlFuOcDqL+zuEitoZMlYn0Ww==","signatures":[{"sig":"MEUCIQCmyJsrBLXw1+2VBKv5Wand/0A2lnMlgnbqfZ5EM1fS6wIgdv5w8wn/1fcDIbPuEiC+yHlgHtr53FHSW8rwEXNDfko=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9163},"main":"./dist/index.js","type":"module","_from":"file:agencecinq-modal-1.0.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"vite build --watch","build":"vite build"},"_npmUser":{"name":"19h47","email":"jeremylevron@19h47.fr"},"_resolved":"/private/var/folders/vt/kpbgrh4d7k14zvxmcm01bfxh0000gn/T/26f26b724788867f405da607a427d5ce/agencecinq-modal-1.0.1.tgz","_integrity":"sha512-Om+U9uNxR3XDdH1iO6CdaaXRwlSUbiFF9doPDHBG6rEJlLgm01Jo6Mcw4yJ+MGFlFuOcDqL+zuEitoZMlYn0Ww==","repository":{"url":"git+https://github.com/agencecinq/shopify.git","type":"git","directory":"packages/modal"},"_npmVersion":"11.10.1","description":"A lightweight, accessible Web Component wrapper around the native HTML `<dialog>` element, designed for Shopify themes. Part of the **CINQ** internal tools ecosystem.","directories":{},"_nodeVersion":"22.22.0","dependencies":{"fs-extra":"^11.3.3","@types/fs-extra":"^11.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.3.1","vite-plugin-dts":"^4.5.4","@agencecinq/utils":"4.0.0"},"peerDependencies":{"@agencecinq/utils":"*"},"_npmOperationalInternal":{"tmp":"tmp/modal_1.0.1_1773129717793_0.17340275478841494","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@agencecinq/modal","version":"1.1.0","license":"MIT","_id":"@agencecinq/modal@1.1.0","maintainers":[{"name":"19h47","email":"jeremylevron@19h47.fr"}],"homepage":"https://github.com/agencecinq/shopify#readme","bugs":{"url":"https://github.com/agencecinq/shopify/issues"},"dist":{"shasum":"9589ae101e73cab4fa5b1653493b75b683e7d506","tarball":"https://registry.npmjs.org/@agencecinq/modal/-/modal-1.1.0.tgz","fileCount":9,"integrity":"sha512-FliwW9m+xum+cyJJ31+N46iMYP/YxdF+8ueK/7wulm6mleCEq331+5RczBHeLgNkUi0gWrY0PkPRsGj9rqK3YQ==","signatures":[{"sig":"MEUCIQCPfNK7VfBbX8B5xcrFSqgPKd22rCkQ/smFSW9gPYX/HQIgSdGRE37q1B6eLIFjsWit6E9ONaTmsDRWv/ixADQFoTk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9549},"main":"./dist/index.js","type":"module","_from":"file:agencecinq-modal-1.1.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"vite build --watch","build":"vite build"},"_npmUser":{"name":"19h47","email":"jeremylevron@19h47.fr"},"_resolved":"/private/var/folders/vt/kpbgrh4d7k14zvxmcm01bfxh0000gn/T/aa4fa7123abebbbbe227d0451a377be4/agencecinq-modal-1.1.0.tgz","_integrity":"sha512-FliwW9m+xum+cyJJ31+N46iMYP/YxdF+8ueK/7wulm6mleCEq331+5RczBHeLgNkUi0gWrY0PkPRsGj9rqK3YQ==","repository":{"url":"git+https://github.com/agencecinq/shopify.git","type":"git","directory":"packages/modal"},"_npmVersion":"11.10.1","description":"A lightweight, accessible Web Component wrapper around the native HTML `<dialog>` element, designed for Shopify themes. Part of the **CINQ** internal tools ecosystem.","directories":{},"_nodeVersion":"22.22.0","dependencies":{"fs-extra":"^11.3.3","@types/fs-extra":"^11.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.3.1","vite-plugin-dts":"^4.5.4","@agencecinq/utils":"4.0.0"},"peerDependencies":{"@agencecinq/utils":"*"},"_npmOperationalInternal":{"tmp":"tmp/modal_1.1.0_1773131625934_0.7824495579591979","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@agencecinq/modal","version":"2.0.0","license":"MIT","_id":"@agencecinq/modal@2.0.0","maintainers":[{"name":"19h47","email":"jeremylevron@19h47.fr"}],"homepage":"https://github.com/agencecinq/shopify#readme","bugs":{"url":"https://github.com/agencecinq/shopify/issues"},"dist":{"shasum":"4460d3a3337406edd728905188f485615674a08f","tarball":"https://registry.npmjs.org/@agencecinq/modal/-/modal-2.0.0.tgz","fileCount":9,"integrity":"sha512-nvxWN0Jty5DKkGcNs7P7p8TJqovJ/rUteR5qOIdi642GmNFl9iDB4OaKXtgfW/RjLpzlwbKdnAwQitmD1giT+Q==","signatures":[{"sig":"MEUCICBWBGEZGpmFrriOf2Q627/i0Q2jA2xKs3c2tlqpi0DzAiEAv19sdbW0n8hnkwWYfzh/WN7KxGe9ELh62JCYM5hnuag=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9549},"main":"./dist/index.js","type":"module","_from":"file:agencecinq-modal-2.0.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"vite build --watch","build":"vite build"},"_npmUser":{"name":"19h47","email":"jeremylevron@19h47.fr"},"_resolved":"/private/var/folders/vt/kpbgrh4d7k14zvxmcm01bfxh0000gn/T/58bdacb7ff2dff7b1cff5241fe6bef93/agencecinq-modal-2.0.0.tgz","_integrity":"sha512-nvxWN0Jty5DKkGcNs7P7p8TJqovJ/rUteR5qOIdi642GmNFl9iDB4OaKXtgfW/RjLpzlwbKdnAwQitmD1giT+Q==","repository":{"url":"git+https://github.com/agencecinq/shopify.git","type":"git","directory":"packages/modal"},"_npmVersion":"11.12.1","description":"A lightweight, accessible Web Component wrapper around the native HTML `<dialog>` element, designed for Shopify themes. Part of the **CINQ** internal tools ecosystem.","directories":{},"_nodeVersion":"22.22.0","dependencies":{"fs-extra":"^11.3.3","@types/fs-extra":"^11.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.3.1","vite-plugin-dts":"^4.5.4","@agencecinq/utils":"5.0.0"},"peerDependencies":{"@agencecinq/utils":"*"},"_npmOperationalInternal":{"tmp":"tmp/modal_2.0.0_1777372826840_0.08136159056970582","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@agencecinq/modal","version":"2.0.1","license":"MIT","_id":"@agencecinq/modal@2.0.1","maintainers":[{"name":"19h47","email":"jeremylevron@19h47.fr"}],"homepage":"https://github.com/agencecinq/shopify#readme","bugs":{"url":"https://github.com/agencecinq/shopify/issues"},"dist":{"shasum":"1bc3094f849be9cc15f2dd0c8c545eb4af6cf2db","tarball":"https://registry.npmjs.org/@agencecinq/modal/-/modal-2.0.1.tgz","fileCount":9,"integrity":"sha512-pQro2CsieYh9K/f5zvMxwSKgHiQKo5x7PKnxRUcCUzZqZnXbYrW7CklclBM5BiZpcTg1iKIoh8+0SmNLiYAKwQ==","signatures":[{"sig":"MEUCIAo9E5kna4FEDLXYX+JFKgTkiHLNaU4h6Et4i6P3FEQZAiEAg00riCa06tgaV69DRpsL+Txr93GHO0MqScapG0mK8fY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9555},"main":"./dist/index.js","type":"module","_from":"file:agencecinq-modal-2.0.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"vite build --watch","build":"vite build"},"_npmUser":{"name":"19h47","email":"jeremylevron@19h47.fr"},"_resolved":"/private/var/folders/vt/kpbgrh4d7k14zvxmcm01bfxh0000gn/T/fe1573cf6fa9fd65898fbbbae3a1b48d/agencecinq-modal-2.0.1.tgz","_integrity":"sha512-pQro2CsieYh9K/f5zvMxwSKgHiQKo5x7PKnxRUcCUzZqZnXbYrW7CklclBM5BiZpcTg1iKIoh8+0SmNLiYAKwQ==","repository":{"url":"git+https://github.com/agencecinq/shopify.git","type":"git","directory":"packages/modal"},"_npmVersion":"11.12.1","description":"A lightweight, accessible Web Component wrapper around the native HTML `<dialog>` element, designed for Shopify themes. Part of the **CINQ** internal tools ecosystem.","directories":{},"_nodeVersion":"22.22.0","dependencies":{"fs-extra":"^11.3.3","@types/fs-extra":"^11.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.3.1","vite-plugin-dts":"^4.5.4","@agencecinq/utils":"5.0.1"},"peerDependencies":{"@agencecinq/utils":"*"},"_npmOperationalInternal":{"tmp":"tmp/modal_2.0.1_1777443112129_0.29463157394312","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"@agencecinq/modal","version":"2.0.2","license":"MIT","_id":"@agencecinq/modal@2.0.2","maintainers":[{"name":"19h47","email":"jeremylevron@19h47.fr"}],"homepage":"https://github.com/agencecinq/shopify#readme","bugs":{"url":"https://github.com/agencecinq/shopify/issues"},"dist":{"shasum":"8b8951b889af7d67938f847c6243c7eacecad991","tarball":"https://registry.npmjs.org/@agencecinq/modal/-/modal-2.0.2.tgz","fileCount":9,"integrity":"sha512-Q0AK3Uy9LV37NE+ClQ1ZTXW6o1voLiHRKoUU5R9V2d/mkQM3PJCc1i1yIAaEOOSLEMg28ipCHimZo//oOJwJVw==","signatures":[{"sig":"MEYCIQDX2pwiZtJCz66rwGZg9UhNajNervNZmEvjJIlarU7+WAIhAIYlxoYvhxSdrxqHEbFu8T2GQVWv1k9pYyQAqiNmTSeL","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10723},"main":"./dist/index.js","type":"module","_from":"file:agencecinq-modal-2.0.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"vite build --watch","build":"vite build"},"_npmUser":{"name":"19h47","email":"jeremylevron@19h47.fr"},"_resolved":"/private/var/folders/vt/kpbgrh4d7k14zvxmcm01bfxh0000gn/T/3e8823d55c080a05480a2c878153af87/agencecinq-modal-2.0.2.tgz","_integrity":"sha512-Q0AK3Uy9LV37NE+ClQ1ZTXW6o1voLiHRKoUU5R9V2d/mkQM3PJCc1i1yIAaEOOSLEMg28ipCHimZo//oOJwJVw==","repository":{"url":"git+https://github.com/agencecinq/shopify.git","type":"git","directory":"packages/modal"},"_npmVersion":"11.18.0","description":"A lightweight, accessible Web Component wrapper around the native HTML `<dialog>` element, designed for Shopify themes. Part of the **CINQ** internal tools ecosystem.","directories":{},"_nodeVersion":"22.22.0","dependencies":{"fs-extra":"^11.3.6","@types/fs-extra":"^11.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^8.1.4","vite-plugin-dts":"^5.0.3","@agencecinq/utils":"5.1.0"},"peerDependencies":{"@agencecinq/utils":"*"},"_npmOperationalInternal":{"tmp":"tmp/modal_2.0.2_1784557140439_0.6739500291957108","host":"s3://npm-registry-packages-npm-production"}},"2.0.3":{"name":"@agencecinq/modal","version":"2.0.3","license":"MIT","_id":"@agencecinq/modal@2.0.3","maintainers":[{"name":"19h47","email":"jeremylevron@19h47.fr"}],"homepage":"https://github.com/agencecinq/shopify#readme","bugs":{"url":"https://github.com/agencecinq/shopify/issues"},"dist":{"shasum":"16ff95bd8f13ad30411c40b00c1e260adff5a207","tarball":"https://registry.npmjs.org/@agencecinq/modal/-/modal-2.0.3.tgz","fileCount":9,"integrity":"sha512-Of5gz0H+QekISofwJPSyrNeCvdFgr8aNYLNBys8nblEYLx3ebc/4z7a8Bclfq8RAcNyIrdfz9/9WVsfVmOskAw==","signatures":[{"sig":"MEUCIGO9MV/Nbup1hSFlimaPvz+f2Imehb8dYYYEGybP8f+PAiEA17+4VBdAW0EP64Oh+QAW/VBr0do8iLZ9BiDgb9n7wm4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10760},"main":"./dist/index.js","type":"module","_from":"file:agencecinq-modal-2.0.3.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"vite build --watch","build":"vite build"},"_npmUser":{"name":"19h47","email":"jeremylevron@19h47.fr"},"_resolved":"/private/var/folders/vt/kpbgrh4d7k14zvxmcm01bfxh0000gn/T/0aecd43dbe87737925505165f0863223/agencecinq-modal-2.0.3.tgz","_integrity":"sha512-Of5gz0H+QekISofwJPSyrNeCvdFgr8aNYLNBys8nblEYLx3ebc/4z7a8Bclfq8RAcNyIrdfz9/9WVsfVmOskAw==","repository":{"url":"git+https://github.com/agencecinq/shopify.git","type":"git","directory":"packages/modal"},"_npmVersion":"11.18.0","description":"A lightweight, accessible Web Component wrapper around the native HTML `<dialog>` element, designed for Shopify themes. Part of the **CINQ** internal tools ecosystem.","directories":{},"_nodeVersion":"22.22.0","dependencies":{"fs-extra":"^11.3.6","@types/fs-extra":"^11.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^8.1.4","vite-plugin-dts":"^5.0.3","@agencecinq/utils":"5.1.1"},"peerDependencies":{"@agencecinq/utils":"*"},"_npmOperationalInternal":{"tmp":"tmp/modal_2.0.3_1784612338003_0.5385999997486857","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"@agencecinq/modal","version":"3.0.0","license":"MIT","_id":"@agencecinq/modal@3.0.0","maintainers":[{"name":"19h47","email":"jeremylevron@19h47.fr"}],"homepage":"https://github.com/agencecinq/shopify#readme","bugs":{"url":"https://github.com/agencecinq/shopify/issues"},"dist":{"shasum":"5d80f5f099ea33213cc03338531c2adee955e344","tarball":"https://registry.npmjs.org/@agencecinq/modal/-/modal-3.0.0.tgz","fileCount":9,"integrity":"sha512-bf3HI3K1q234QHtU59Sve8u5Q7gBeHor6kn+txpnr/EFP57NyonRApcbRkPcsib0/M0d3E+DqbH0Lk9Mb7n2Uw==","signatures":[{"sig":"MEUCIAbRSaCq0+WGIuG8OtmRaOZkKVL7gxFhg063H1aRBxWwAiEApd6xhyJwuXLOWW2dCDKJZvY0e56G6LcH6cgJ5+L9RO0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12638},"main":"./dist/index.js","type":"module","_from":"file:agencecinq-modal-3.0.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"vite build --watch","build":"vite build"},"_npmUser":{"name":"19h47","email":"jeremylevron@19h47.fr"},"_resolved":"/private/var/folders/vt/kpbgrh4d7k14zvxmcm01bfxh0000gn/T/f24e082cd3d139e2ebb6f8ad62675e87/agencecinq-modal-3.0.0.tgz","_integrity":"sha512-bf3HI3K1q234QHtU59Sve8u5Q7gBeHor6kn+txpnr/EFP57NyonRApcbRkPcsib0/M0d3E+DqbH0Lk9Mb7n2Uw==","repository":{"url":"git+https://github.com/agencecinq/shopify.git","type":"git","directory":"packages/modal"},"_npmVersion":"11.18.0","description":"A lightweight, accessible Web Component wrapper around the native HTML `<dialog>` element, designed for Shopify themes. Part of the **CINQ** internal tools ecosystem.","directories":{},"_nodeVersion":"22.22.0","dependencies":{"fs-extra":"^11.3.6","@types/fs-extra":"^11.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^8.1.4","vite-plugin-dts":"^5.0.3","@agencecinq/utils":"5.3.0"},"peerDependencies":{"@agencecinq/utils":"*"},"_npmOperationalInternal":{"tmp":"tmp/modal_3.0.0_1785850090011_0.02677039843011375","host":"s3://npm-registry-packages-npm-production"}},"3.1.0":{"name":"@agencecinq/modal","version":"3.1.0","license":"MIT","_id":"@agencecinq/modal@3.1.0","maintainers":[{"name":"19h47","email":"jeremylevron@19h47.fr"}],"homepage":"https://github.com/agencecinq/shopify#readme","bugs":{"url":"https://github.com/agencecinq/shopify/issues"},"dist":{"shasum":"7784e0edc3766443a846ba1c78cedac1ecc3893b","tarball":"https://registry.npmjs.org/@agencecinq/modal/-/modal-3.1.0.tgz","fileCount":11,"integrity":"sha512-8xZGYJMx0/8RrF0KaOPPzl/+wprurYPuQmuB+dd9aZIrGdm4hnH/bdCTRU0TbOI4vL924bzLqZLlZS9Q6WGEOQ==","signatures":[{"sig":"MEUCIQCMUeMx4xT9+UmFJLItjQJ0LapgXvytDwaD5hug5U1hHwIgYGcoe6IFXn75AG9Fo68TN/TmJTn4myQvdrqNSRydWq0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16039},"main":"./dist/index.js","type":"module","_from":"file:agencecinq-modal-3.1.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"vite build --watch","build":"vite build"},"_npmUser":{"name":"19h47","email":"jeremylevron@19h47.fr"},"_resolved":"/private/var/folders/vt/kpbgrh4d7k14zvxmcm01bfxh0000gn/T/e9d1795379a8bc4135f945494033ca94/agencecinq-modal-3.1.0.tgz","_integrity":"sha512-8xZGYJMx0/8RrF0KaOPPzl/+wprurYPuQmuB+dd9aZIrGdm4hnH/bdCTRU0TbOI4vL924bzLqZLlZS9Q6WGEOQ==","repository":{"url":"git+https://github.com/agencecinq/shopify.git","type":"git","directory":"packages/modal"},"_npmVersion":"11.18.0","description":"A lightweight, accessible Web Component wrapper around the native HTML `<dialog>` element, designed for Shopify themes. Part of the **CINQ** internal tools ecosystem.","directories":{},"_nodeVersion":"22.22.0","dependencies":{"fs-extra":"^11.4.0","@types/fs-extra":"^11.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^8.2.0","vite-plugin-dts":"^5.0.3","@agencecinq/utils":"6.1.0"},"peerDependencies":{"@agencecinq/utils":"*"},"_npmOperationalInternal":{"tmp":"tmp/modal_3.1.0_1786088966004_0.20663168979782376","host":"s3://npm-registry-packages-npm-production"}},"4.0.0":{"name":"@agencecinq/modal","version":"4.0.0","license":"MIT","_id":"@agencecinq/modal@4.0.0","maintainers":[{"name":"19h47","email":"jeremylevron@19h47.fr"}],"homepage":"https://github.com/agencecinq/shopify#readme","bugs":{"url":"https://github.com/agencecinq/shopify/issues"},"dist":{"shasum":"49cd5d71fab7f50974e76df41557300d6ace5bac","tarball":"https://registry.npmjs.org/@agencecinq/modal/-/modal-4.0.0.tgz","fileCount":11,"integrity":"sha512-ReTpZ+WgTLlWYVOThxnJsH3U7AF+qA7yGS1Oo4pOIBRGpUfGaSBufhjAtp/FIrQML4E56JpBtIZRhi6gpnTvjQ==","signatures":[{"sig":"MEYCIQCHfSJqlfdxHGHr1v/Jwu1BxPszDsKrmdi+NZo4c4ctvQIhAMqEQlVVAldIBJo9ze5mvh+pUXSvq3vfDocKPjXMRYRi","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13665},"main":"./dist/index.js","type":"module","_from":"file:agencecinq-modal-4.0.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"vite build --watch","build":"vite build"},"_npmUser":{"name":"19h47","email":"jeremylevron@19h47.fr"},"_resolved":"/private/var/folders/vt/kpbgrh4d7k14zvxmcm01bfxh0000gn/T/d06c6c41840604feaf25ba61b3ed95a1/agencecinq-modal-4.0.0.tgz","_integrity":"sha512-ReTpZ+WgTLlWYVOThxnJsH3U7AF+qA7yGS1Oo4pOIBRGpUfGaSBufhjAtp/FIrQML4E56JpBtIZRhi6gpnTvjQ==","repository":{"url":"git+https://github.com/agencecinq/shopify.git","type":"git","directory":"packages/modal"},"_npmVersion":"11.19.1","description":"[![](https://img.shields.io/npm/v/@agencecinq/modal)](https://www.npmjs.com/package/@agencecinq/modal) [![](https://img.shields.io/npm/dm/@agencecinq/modal)](https://www.npmjs.com/package/@agencecinq/modal)","directories":{},"_nodeVersion":"22.22.0","dependencies":{"fs-extra":"^11.4.0","@types/fs-extra":"^11.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^8.2.0","vite-plugin-dts":"^5.0.3","@agencecinq/utils":"7.2.0"},"peerDependencies":{"@agencecinq/utils":">=7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/modal_4.0.0_1788879089302_0.6091289715176693","host":"s3://npm-registry-packages-npm-production"}},"4.0.1":{"name":"@agencecinq/modal","version":"4.0.1","license":"MIT","_id":"@agencecinq/modal@4.0.1","maintainers":[{"name":"19h47","email":"jeremylevron@19h47.fr"}],"homepage":"https://github.com/agencecinq/shopify#readme","bugs":{"url":"https://github.com/agencecinq/shopify/issues"},"dist":{"shasum":"a6659b67abee6a46d34f47ef53feaf45f010f049","tarball":"https://registry.npmjs.org/@agencecinq/modal/-/modal-4.0.1.tgz","fileCount":11,"integrity":"sha512-NF6fBORh7hOvDMCNhe7q0sGbkbidOJiNnZyOH/XaK5HwQhmzMX0swfAJuSIokCPVDPSQDhNUD8Tu+6mkGD3zQw==","signatures":[{"sig":"MEUCIG0diCiXAT/KQ8oyHhaCriLEynJRFAjhvJ30EoPhXfgvAiEAl+2nTLVqbAz7jwKe/0w9aFij2nKomppqWyM4n0tF7d4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13662},"main":"./dist/index.js","type":"module","_from":"file:agencecinq-modal-4.0.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"vite build --watch","build":"vite build"},"_npmUser":{"name":"19h47","email":"jeremylevron@19h47.fr"},"_resolved":"/private/var/folders/vt/kpbgrh4d7k14zvxmcm01bfxh0000gn/T/a34b7bc2e476b2516560ede57c92cbed/agencecinq-modal-4.0.1.tgz","_integrity":"sha512-NF6fBORh7hOvDMCNhe7q0sGbkbidOJiNnZyOH/XaK5HwQhmzMX0swfAJuSIokCPVDPSQDhNUD8Tu+6mkGD3zQw==","repository":{"url":"git+https://github.com/agencecinq/shopify.git","type":"git","directory":"packages/modal"},"_npmVersion":"11.19.1","description":"[![](https://img.shields.io/npm/v/@agencecinq/modal)](https://www.npmjs.com/package/@agencecinq/modal) [![](https://img.shields.io/npm/dm/@agencecinq/modal)](https://www.npmjs.com/package/@agencecinq/modal)","directories":{},"_nodeVersion":"22.22.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^8.2.0","vite-plugin-dts":"^5.0.3","@agencecinq/utils":"7.2.0"},"peerDependencies":{"@agencecinq/utils":">=7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/modal_4.0.1_1788879701917_0.003926229724020347","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2026-03-10T07:23:02.901Z","modified":"2026-09-15T13:10:35.942Z","1.0.0":"2026-03-10T07:23:03.146Z","1.0.1":"2026-03-10T08:01:57.947Z","1.1.0":"2026-03-10T08:33:46.102Z","2.0.0":"2026-04-28T10:40:26.992Z","2.0.1":"2026-04-29T06:11:52.278Z","2.0.2":"2026-07-20T14:19:00.617Z","2.0.3":"2026-07-21T05:38:58.145Z","3.0.0":"2026-08-04T13:28:10.152Z","3.1.0":"2026-08-07T07:49:26.145Z","4.0.0":"2026-09-08T14:51:29.435Z","4.0.1":"2026-09-08T15:01:42.058Z"},"bugs":{"url":"https://github.com/agencecinq/shopify/issues"},"license":"MIT","homepage":"https://github.com/agencecinq/shopify#readme","repository":{"url":"git+https://github.com/agencecinq/shopify.git","type":"git","directory":"packages/modal"},"description":"[![](https://img.shields.io/npm/v/@agencecinq/modal)](https://www.npmjs.com/package/@agencecinq/modal) [![](https://img.shields.io/npm/dm/@agencecinq/modal)](https://www.npmjs.com/package/@agencecinq/modal)","maintainers":[{"email":"jeremylevron@19h47.fr","name":"19h47"},{"email":"pauline@agencecinq.com","name":"paulinecinq"}],"readme":"[![](https://img.shields.io/npm/v/@agencecinq/modal)](https://www.npmjs.com/package/@agencecinq/modal)\n[![](https://img.shields.io/npm/dm/@agencecinq/modal)](https://www.npmjs.com/package/@agencecinq/modal)\n\n# @agencecinq/modal\n\n> Accessible modal Web Component built on the native `<dialog>` element.\n\nA modal presents content above the page. `<cinq-modal>` wraps a native\n`<dialog>`, handles open/close via `showModal()` / `close()`, and coordinates\nwith `cinq-modal-button` through document-level events.\n\n## Installation\n\nRequires **Node.js 18+** (build tooling).\n\n```bash\npnpm add @agencecinq/modal\n```\n\n## Usage\n\n```js\nimport \"@agencecinq/modal\";\n```\n\n```html\n<cinq-modal-button>\n  <button aria-controls=\"newsletter-modal\" aria-pressed=\"false\">\n    Open modal\n  </button>\n</cinq-modal-button>\n\n<cinq-modal id=\"newsletter-modal\">\n  <dialog>\n    ...\n  </dialog>\n</cinq-modal>\n```\n\nImporting `@agencecinq/modal` registers the Web Components automatically.\nNo manual `init()` call required.\n\n> **HTML is the source of truth.** Provide dialog content, labelling, and focus\n> targets yourself. Use an a11y linter (axe-core, Lighthouse) to catch invalid\n> markup.\n\n### Required markup\n\n| Selector / attribute | Required | Role |\n| -------------------- | -------- | ---- |\n| `<cinq-modal>` | **Yes** | Modal host. Requires an `id` for event-driven open/close. |\n| `<dialog>` or `[data-dialog]` | **Yes** | Native dialog element inside the host. |\n| `id` on `<cinq-modal>` | **Yes** | Must match button `aria-controls`. |\n| `aria-controls` on trigger | **Yes** | Points to the modal `id`. |\n\n### API\n\n| Attribute | Required | Description |\n| --------- | -------- | ----------- |\n| `id` | **Yes** | Modal identifier. Must match button `aria-controls`. |\n| `open` | No | Reflected open state. Useful for styling. |\n\n| Method | Description |\n| ------ | ----------- |\n| `show()` | Opens the modal. Returns `false` if already open, aborted, or deferred. |\n| `close()` | Closes the modal. Returns `false` if already closed, aborted, or deferred. |\n\n### Wiring with `cinq-modal-button`\n\n`cinq-modal-button` dispatches `modal:toggle` on `document.documentElement` with:\n\n- `detail.modal`: the modal id from the button `aria-controls`\n- `detail.trigger`: the button element\n- `detail.trap`: optional element from `data-trap`\n\n`cinq-modal` listens to `modal:toggle` and toggles itself when `detail.modal`\nmatches its `id`.\n\n### Background scroll\n\nThe package does **not** lock document scroll. Native `showModal()` makes the\npage inert but the backdrop can still scroll underneath. Prefer CSS in the\ntheme:\n\n```css\nhtml:has(dialog[open]:modal) {\n  overflow: hidden;\n  scrollbar-gutter: stable;\n}\n```\n\nOr refcount `modal:open` / `modal:close` with `disableScroll` / `enableScroll`\nfrom `@agencecinq/utils` if the theme already uses those helpers.\n\n## Events\n\nDispatched on `document.documentElement`. Prefer constants from\n`@agencecinq/utils`:\n\n| Event | Constant | Cancelable | Detail | Description |\n| ----- | -------- | ---------- | ------ | ----------- |\n| `modal:toggle` | `MODAL_TOGGLE` | No | `{ modal, trigger, trap }` | Request open/close from a button. |\n| `modal:before-open` | `MODAL_BEFORE_OPEN` | Yes | `{ modal, instance, trigger, resolve }` | Fired before `open` is set. Cancel to defer, then call `resolve()`. |\n| `modal:before-close` | `MODAL_BEFORE_CLOSE` | Yes | `{ modal, instance, resolve }` | Fired before `open` is removed. Cancel to defer, then call `resolve()`. |\n| `modal:open` | `MODAL_OPEN` | No | `{ modal, trigger? }` | Fired after `open` is set. |\n| `modal:close` | `MODAL_CLOSE` | No | `{ modal }` | Fired after `open` is removed. |\n\n```js\nimport { EVENTS } from \"@agencecinq/utils\";\n\ndocument.documentElement.addEventListener(EVENTS.MODAL_OPEN, (event) => {\n  console.log(event.detail.modal);\n});\n```\n\n### Deferring open or close\n\n```js\ndocument.documentElement.addEventListener(EVENTS.MODAL_BEFORE_OPEN, (event) => {\n  if (event.detail.modal !== \"newsletter-modal\") return;\n\n  event.preventDefault();\n\n  void doAsyncWork().then(() => {\n    event.detail.resolve();\n  });\n});\n```\n\n`resolve()` is idempotent. TypeScript: `BeforeOpenDetail` and\n`BeforeCloseDetail` from `@agencecinq/modal`.\n\n**UX:** defer open when the fetch is quick and the dialog would feel empty.\nOtherwise open immediately and load on `modal:open`. Defer close for save,\narchive, or exit animation.\n\n## Build setup\n\n```bash\npnpm -C packages/modal build\n```\n\n## Acknowledgments\n\nSee the [interactive docs](https://agencecinq.github.io/ui/components/modal/) for live examples.\n","readmeFilename":"README.md"}