{"_id":"webflow-scripts","_rev":"2-1bcb2d203653417c631f23aa4da89d34","name":"webflow-scripts","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"webflow-scripts","version":"1.0.0","keywords":["webflow"],"author":{"name":"Devflow Studio, LLC"},"license":"MIT","_id":"webflow-scripts@1.0.0","maintainers":[{"name":"devflow-studio","email":"admin@devflow.studio"}],"dist":{"shasum":"dd9a7157340664eefbe1fa2ebf1382572a312db9","tarball":"https://registry.npmjs.org/webflow-scripts/-/webflow-scripts-1.0.0.tgz","fileCount":5,"integrity":"sha512-B+Jq2+QOkexYeqytwOJqfalVzCNsO5rsZb0BV51x/XdSjmXZKDS4E6gvG46mIeJjOR1QE2MRUFhqs2GqlIjUXQ==","signatures":[{"sig":"MEYCIQDKCZ4GLbg2b9xtb9DU052vf8achG17Zd5nQPsdGwC2IQIhAP3KkmQROpsuGN9jyEDVZzZSRy5ZjqHiqqxjxc7v2ipW","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2400},"gitHead":"ec697885e89674eceb597e4fed51529486f1469a","scripts":{"lint":"eslint ./src/**/*.ts","test":"jest","build":"rollup -c","types:check":"tsc --noEmit"},"_npmUser":{"name":"devflow-studio","email":"admin@devflow.studio"},"_npmVersion":"10.2.5","description":"Various scripts to be used to extend functionality of websites built with Webflow","directories":{},"_nodeVersion":"20.10.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","jest":"^29.7.0","tslib":"^2.8.1","rollup":"^4.31.0","ts-jest":"^29.2.5","typescript":"^5.7.3","@types/jest":"^29.5.14","@types/node":"^22.10.10","@repo/jest-presets":"workspace:^","@repo/eslint-config":"workspace:^","@rollup/plugin-terser":"^0.4.4","@repo/typescript-config":"workspace:^","@rollup/plugin-typescript":"^12.1.2"},"_npmOperationalInternal":{"tmp":"tmp/webflow-scripts_1.0.0_1737708789533_0.26281584418164106","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"webflow-scripts","version":"1.0.1","keywords":["webflow"],"author":{"name":"Devflow Studio, LLC"},"license":"MIT","_id":"webflow-scripts@1.0.1","maintainers":[{"name":"devflow-studio","email":"admin@devflow.studio"}],"dist":{"shasum":"ffb47215bf5632ce87da7f2105f3e09cd01b224a","tarball":"https://registry.npmjs.org/webflow-scripts/-/webflow-scripts-1.0.1.tgz","fileCount":5,"integrity":"sha512-hHEqhwUrFbgE0qYR0iUZPh0T5HltBRLdUkZ7m98wV5zK4CyrCgARAuObJst2PlGo27GZiVDmZAgATuZjKhelYQ==","signatures":[{"sig":"MEUCIQDkD759IW+yUlZuN6ZDCabjDY0E/hPX4l1n7Ix2KbdC5gIgYLKB+wZGhcrO783FMiz1zEPMWztcw+ZW04/cz+Wz8Zo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2518},"gitHead":"aa515cd4109b89b5bce5ccf06c1f67507fa92f5f","scripts":{"lint":"eslint ./src/**/*.ts","test":"jest","build":"rollup -c","types:check":"tsc --noEmit"},"_npmUser":{"name":"devflow-studio","email":"admin@devflow.studio"},"_npmVersion":"10.2.5","description":"Various scripts to be used to extend functionality of websites built with Webflow","directories":{},"_nodeVersion":"20.10.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","jest":"^29.7.0","tslib":"^2.8.1","rollup":"^4.31.0","ts-jest":"^29.2.5","typescript":"^5.7.3","@types/jest":"^29.5.14","@types/node":"^22.10.10","@repo/jest-presets":"workspace:^","@repo/eslint-config":"workspace:^","@rollup/plugin-terser":"^0.4.4","@repo/typescript-config":"workspace:^","@rollup/plugin-typescript":"^12.1.2"},"_npmOperationalInternal":{"tmp":"tmp/webflow-scripts_1.0.1_1737710292371_0.240103358653867","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"webflow-scripts","version":"1.1.0","description":"Various scripts to be used to extend functionality of websites built with Webflow","scripts":{"build":"rollup -c","lint":"eslint ./src/**/*.ts","test":"jest --verbose --silent --coverage","types:check":"tsc --noEmit"},"keywords":["webflow"],"author":{"name":"Devflow Studio, LLC"},"license":"MIT","devDependencies":{"@repo/eslint-config":"workspace:^","@repo/jest-presets":"workspace:^","@repo/typescript-config":"workspace:^","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^12.1.2","@types/jest":"^29.5.14","@types/node":"^22.10.10","jest":"^29.7.0","rollup":"^4.31.0","ts-jest":"^29.2.5","tslib":"^2.8.1","tsx":"^4.19.2","typescript":"^5.7.3"},"_id":"webflow-scripts@1.1.0","gitHead":"d36715976ba452c02676718659cf397e329cdf73","_nodeVersion":"20.10.0","_npmVersion":"10.2.5","dist":{"integrity":"sha512-NAX7ranWxIf/IICM75wDlqKwu+uwQNOsLphftFaHbcHiSgWNDG0VarRc8fTxZgNH5SVOTxpQjmVkYzkF4Fva4A==","shasum":"5bf89f53d19cc120607b70973091f857cdca4e1f","tarball":"https://registry.npmjs.org/webflow-scripts/-/webflow-scripts-1.1.0.tgz","fileCount":7,"unpackedSize":31282,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIC10VqzVp4sT1wMRTogq1mh1K9XiIlkR1UlTOeyCiqYEAiEA0uyAzLRGBzfu99b9EmYq3L7ThJLTseBlWaRXMl3/0RY="}]},"_npmUser":{"name":"devflow-studio","email":"admin@devflow.studio"},"directories":{},"maintainers":[{"name":"devflow-studio","email":"admin@devflow.studio"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/webflow-scripts_1.1.0_1737942343715_0.7823402035401819"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-24T08:53:09.532Z","modified":"2025-01-27T01:45:44.113Z","1.0.0":"2025-01-24T08:53:09.716Z","1.0.1":"2025-01-24T09:18:12.523Z","1.1.0":"2025-01-27T01:45:43.936Z"},"author":{"name":"Devflow Studio, LLC"},"license":"MIT","keywords":["webflow"],"description":"Various scripts to be used to extend functionality of websites built with Webflow","maintainers":[{"name":"devflow-studio","email":"admin@devflow.studio"}],"readme":"# Webflow Scripts\n\n## Scripts\n\n### Hubspot Submit\n\nA form controller script that overrides the default Webflow form behavior to\nsubmit form data to Hubspot via API. It will target ALL forms on a page that\nhave the required attributes, and _will ignore forms that don't have the\nrequired attributes so that other forms can retain default behavior if desired_.\n\n#### IMPORTANT\n\n- The field types and names must match the Hubspot form fields _exactly_.\n- `email` property in Hubspot must have corresponding input with name `email` in\n  Webflow.\n- Properties other that Contact Properties use dot notation: `company.name`,\n  `company.industry`, etc.\n- Install the Hubspot tracking code on the site to attribute submissions with\n  the Hubspot cookie.\n- It is highly recommended to turn off non-Hubspot form captures for all forms\n  in Hubspot to avoid duplicate submissions.\n  [Manage Settings Docs](https://knowledge.hubspot.com/forms/use-non-hubspot-forms#enable-or-disable-non-hubspot-forms)\n\n##### Currently Supported Field Types\n\nThese are the tested field types that are supported. More field types are\nplanned to be supported in future versions with backward compatibility.\n\n- Text Inputs - including text, phone, email, number\n- Text Areas\n- Checkboxes\n- Selects (native select elements - not dropdowns)\n\n#### Usage\n\n```html\n<script\n  data-webflow-hubspot-submit\n  data-use-ip=\"false\"\n  data-use-utm=\"false\"\n  data-use-gclid=\"false\"\n  src=\"https://cdn.jsdelivr.net/npm/webflow-scripts@<VERSION>/dist/hubspot-submit/index.js\"\n></script>\n```\n\n<VERSION>=1.1.0 (or latest version)\n\n**Script Tag**\n\nPLACE IN GLOBAL FOOTER | OR | PLACE IN PAGE FOOTER (if per page usage)\n\nThe script embed should have the following attribute to work as expected:\n`data-webflow-hubspot-submit`.\n\nThe script embed has the following OPTIONAL flags:\n\n- `data-use-ip` [true | false] (default: false) - If true, the script will\n  attempt to get the client IP and add to the Hubspot context.\n- `data-use-utm` [true | false] (default: false) - If true, the script will\n  attempt to get the UTM parameters from the URL and add to the Hubspot context.\n  NOTE: The form in Hubspot must have identical utm fields to be collected,\n  otherwise the submission data will be noisy.\n- `data-use-gclid` [true | false] (default: false) - If true, the script will\n  attempt to get the GCLID parameter from the URL and add to the Hubspot\n  context. NOTE: The form in Hubspot must have identical gclid field to be\n  collected, otherwise the submission data will be noisy.\n\n**Webflow Form Block**\n\nThe Webflow form block includes a wrapper with a form element, success block,\nand error block. It also includes a class `w-form` which is the selector used\nfor default behavior. This script will remove the class in preparation for the\ncustom behavior - therefore, don't style the wrapper using that selector.\n\n_Required Attributes_\n\n= Form Element =\n\n(NOT THE FORM BLOCK, but the form element itself)\n\n- `data-hs-portal-id` - The Hubspot portal ID. (found on the script embed code\n  from Hubspot)\n- `data-hs-form-id` - The Hubspot form ID. (found on the script embed code from\n  Hubspot)\n\n= Form Success Block =\n\nIt will be set to display: block when the form is successfully submitted,\ntherefore style the inner elements accordingly.\n\n- `data-form-success` - Success block target.\n\n= Form Error Block =\n\nIt will be set to display: block when the form submission fails, therefore style\nthe inner elements accordingly.\n\n- `data-form-error` - Error block target.\n\n_Optional Attributes_\n\n= Redirects =\n\nApplied to **form element**.\n\n- `data-redirect-url` - The URL to redirect to after successful form submission.\n  (e.g. /thank-you)\n- `data-redirect-timeout` - The number of milliseconds to wait before\n  redirecting. (e.g. 1000 = 1 second) - default is 0 if a redirect URL is\n  provided without a timeout.\n\n= Resource Downloads =\n\nApplied to **form element**.\n\n- `data-resource-url` - The URL to download a resource after successful form\n  submission. These can be PDFs uploaded to the Webflow Assets library, for\n  example.\n- `data-resource-filename` - The filename of the resource to download. This is\n  the name that will be used when the browser prompts the user to save the file.\n  (e.g. \"whitepaper.pdf\")\n- NOTE: if a resource URL is provided but a filename is not, the resource will\n  open a new browser tab to the resource URL instead.\n\n### Hello World\n\nA script that logs \"Hello, world!\" to the console. Helpful for testing CDN\nfetches.\n\n```html\n<script src=\"https://cdn.jsdelivr.net/npm/webflow-scripts@<VERSION>/dist/hello-world/index.js\"></script>\n```\n","readmeFilename":"README.md"}