{"_id":"@codesyntax/volto-countup-block","_rev":"7-446351104d0e4f07641cab60655cdeb4","name":"@codesyntax/volto-countup-block","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.1":{"name":"@codesyntax/volto-countup-block","version":"1.0.1","keywords":["volto-addon","volto","plone","react"],"license":"MIT","_id":"@codesyntax/volto-countup-block@1.0.1","maintainers":[{"name":"erral","email":"mlarreategi@codesyntax.com"},{"name":"ionlizarazu","email":"ilizarazu@codesyntax.com"},{"name":"bipoza","email":"bipoza@gmail.com"},{"name":"libargutxi","email":"libargutxi@codesyntax.com"}],"dist":{"shasum":"91807502522ae136f7b314e19ff6087152f3341b","tarball":"https://registry.npmjs.org/@codesyntax/volto-countup-block/-/volto-countup-block-1.0.1.tgz","fileCount":39,"integrity":"sha512-+LkAVUavDcSDNNR2QYhvg6PAK1sdEW5QBOf0gtXyn7rTFsno192JFymAThjRuyRjdS5B+6VxNLwdWcU3BUq15Q==","signatures":[{"sig":"MEUCIFOyFRn4kQpXrcjtnTALz3IVltav5zEOJ+p5Fi/oVpxLAiEAudgWxkVpyJe+3XxnpnZDrC/zFJOYYhKm3LAC5T8Y94c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2705926},"main":"src/index.js","gitHead":"a282cccd373c8432270a8df6955bc05844a0a374","scripts":{"i18n":"rm -rf build/messages && NODE_ENV=production i18n --addon","release":"release-it","release-rc":"release-it --preRelease=rc","dry-release":"release-it --dry-run","release-alpha":"release-it --preRelease=alpha","release-major-alpha":"release-it major --preRelease=alpha"},"_npmUser":{"name":"erral","email":"mlarreategi@codesyntax.com"},"_npmVersion":"8.15.0","description":"volto-countup-block: Volto add-on","directories":{},"_nodeVersion":"16.17.1","dependencies":{"react-countup":"*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.49.0","prettier":"3.0.3","stylelint":"15.10.3","release-it":"^16.1.5","postcss-less":"6.0.0","postcss-scss":"4.0.8","@plone/scripts":"^3.0.0","stylelint-prettier":"4.0.2","eslint-plugin-react":"7.33.2","@babel/eslint-parser":"7.22.15","eslint-plugin-import":"2.28.1","eslint-config-prettier":"9.0.0","eslint-plugin-flowtype":"8.0.3","eslint-plugin-jsx-a11y":"6.7.1","eslint-plugin-prettier":"5.0.0","eslint-config-react-app":"7.0.1","eslint-plugin-react-hooks":"4.6.0","stylelint-config-idiomatic-order":"9.0.0","stylelint-config-sass-guidelines":"10.0.0"},"peerDependencies":{"@plone/volto":"^17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/volto-countup-block_1.0.1_1709914633156_0.5226398006577067","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@codesyntax/volto-countup-block","version":"1.0.2","keywords":["volto-addon","volto","plone","react"],"license":"MIT","_id":"@codesyntax/volto-countup-block@1.0.2","maintainers":[{"name":"erral","email":"mlarreategi@codesyntax.com"},{"name":"ionlizarazu","email":"ilizarazu@codesyntax.com"},{"name":"bipoza","email":"bipoza@gmail.com"},{"name":"libargutxi","email":"libargutxi@codesyntax.com"}],"dist":{"shasum":"2432b956aa88dad0e49ab9556d8e350a5355d7a8","tarball":"https://registry.npmjs.org/@codesyntax/volto-countup-block/-/volto-countup-block-1.0.2.tgz","fileCount":39,"integrity":"sha512-fO3tvk7it36JW9ulvIp4D49+CO4DmJT3ipRlwLeNMMs1UKNOLqi7HDBZkdIgz+wMbGGfgx8j2+CtPDLXJVwbGw==","signatures":[{"sig":"MEQCIDKmfWDCZIpbVGxhVz0WbLc6Ny9zAzHAk36UWSYKzReeAiA5IMN2hHid7phFQ/pzFtEoAva9PNSjP62RWa4XDLO68g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2705929},"main":"src/index.js","gitHead":"dbf09493b24566979c8c94b87fc4e10023a2e19f","scripts":{"i18n":"rm -rf build/messages && NODE_ENV=production i18n --addon","release":"release-it","release-rc":"release-it --preRelease=rc","dry-release":"release-it --dry-run","release-alpha":"release-it --preRelease=alpha","release-major-alpha":"release-it major --preRelease=alpha"},"_npmUser":{"name":"erral","email":"mlarreategi@codesyntax.com"},"_npmVersion":"8.15.0","description":"volto-countup-block: Volto add-on","directories":{},"_nodeVersion":"16.17.1","dependencies":{"react-countup":"*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.49.0","prettier":"3.0.3","stylelint":"15.10.3","release-it":"^16.1.5","postcss-less":"6.0.0","postcss-scss":"4.0.8","@plone/scripts":"^3.0.0","stylelint-prettier":"4.0.2","eslint-plugin-react":"7.33.2","@babel/eslint-parser":"7.22.15","eslint-plugin-import":"2.28.1","eslint-config-prettier":"9.0.0","eslint-plugin-flowtype":"8.0.3","eslint-plugin-jsx-a11y":"6.7.1","eslint-plugin-prettier":"5.0.0","eslint-config-react-app":"7.0.1","eslint-plugin-react-hooks":"4.6.0","stylelint-config-idiomatic-order":"9.0.0","stylelint-config-sass-guidelines":"10.0.0"},"peerDependencies":{"@plone/volto":"^17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/volto-countup-block_1.0.2_1709914762640_0.06307382222375368","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@codesyntax/volto-countup-block","version":"1.1.0","keywords":["volto-addon","volto","plone","react"],"license":"MIT","_id":"@codesyntax/volto-countup-block@1.1.0","maintainers":[{"name":"erral","email":"mlarreategi@codesyntax.com"},{"name":"ionlizarazu","email":"ilizarazu@codesyntax.com"},{"name":"bipoza","email":"bipoza@gmail.com"},{"name":"libargutxi","email":"libargutxi@codesyntax.com"}],"dist":{"shasum":"27be7014a3145c25714c77ee959f90ec37f03e8b","tarball":"https://registry.npmjs.org/@codesyntax/volto-countup-block/-/volto-countup-block-1.1.0.tgz","fileCount":40,"integrity":"sha512-tCDQwFuLKITmYsyxACpc2PTdKpre2gsFetKbmvTwXagwVF116VtMcywLHAD50kjNZRA4cctG2OdpgaMPpMcELw==","signatures":[{"sig":"MEUCIQD9AmP2cq5eWoFVcRrfVfiMK5pMSmWcc3zUFj1ZHa73VwIgSlZBMhxnRjXR3Ah20IWLHuzuodta85G0QYoUo572TJ8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2708921},"main":"src/index.js","gitHead":"ec9449fe2ea6fa51278cbc2126a2d56ad3bb1e7c","scripts":{"i18n":"rm -rf build/messages && NODE_ENV=production i18n --addon","release":"release-it","release-rc":"release-it --preRelease=rc","dry-release":"release-it --dry-run","release-alpha":"release-it --preRelease=alpha","release-major-alpha":"release-it major --preRelease=alpha"},"_npmUser":{"name":"erral","email":"mlarreategi@codesyntax.com"},"_npmVersion":"10.2.3","description":"volto-countup-block: Volto add-on","directories":{},"_nodeVersion":"20.10.0","dependencies":{"react-countup":"*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.49.0","prettier":"3.0.3","stylelint":"15.10.3","release-it":"^16.1.5","postcss-less":"6.0.0","postcss-scss":"4.0.8","@plone/scripts":"^3.0.0","stylelint-prettier":"4.0.2","eslint-plugin-react":"7.33.2","@babel/eslint-parser":"7.22.15","eslint-plugin-import":"2.28.1","eslint-config-prettier":"9.0.0","eslint-plugin-flowtype":"8.0.3","eslint-plugin-jsx-a11y":"6.7.1","eslint-plugin-prettier":"5.0.0","eslint-config-react-app":"7.0.1","eslint-plugin-react-hooks":"4.6.0","stylelint-config-idiomatic-order":"9.0.0","stylelint-config-sass-guidelines":"10.0.0"},"peerDependencies":{"@plone/volto":"^17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/volto-countup-block_1.1.0_1710318588123_0.1579221451425643","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@codesyntax/volto-countup-block","version":"1.2.0","keywords":["volto-addon","volto","plone","react"],"license":"MIT","_id":"@codesyntax/volto-countup-block@1.2.0","maintainers":[{"name":"erral","email":"mlarreategi@codesyntax.com"},{"name":"ionlizarazu","email":"ilizarazu@codesyntax.com"},{"name":"bipoza","email":"bipoza@gmail.com"},{"name":"libargutxi","email":"libargutxi@codesyntax.com"}],"dist":{"shasum":"e243c961fa866fe42150718711b99b8c76740bfc","tarball":"https://registry.npmjs.org/@codesyntax/volto-countup-block/-/volto-countup-block-1.2.0.tgz","fileCount":40,"integrity":"sha512-rJ0EdFxJlPerz7vPDrrZZj4VRl+iix48t9sihcdUtv065X9qAXX/atf5jRojAEox/urfbjLpV+wvwQaBSR9pxg==","signatures":[{"sig":"MEYCIQCqpGl7PhPu0B3OT4hchIJvO5avop3KIc6iBvfQvoV76gIhAPxoWvT++3el/JyY4mFLBKSDvw7Urba1oR/ZJ/uemDVz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2713518},"main":"src/index.js","gitHead":"4abe5761a2c5ff34bdc93e8199a98e8efdd6f755","scripts":{"i18n":"rm -rf build/messages && NODE_ENV=production i18n --addon","release":"release-it","release-rc":"release-it --preRelease=rc","dry-release":"release-it --dry-run","release-alpha":"release-it --preRelease=alpha","release-major-alpha":"release-it major --preRelease=alpha"},"_npmUser":{"name":"erral","email":"mlarreategi@codesyntax.com"},"_npmVersion":"10.2.3","description":"volto-countup-block: Volto add-on","directories":{},"_nodeVersion":"20.10.0","dependencies":{"react-countup":"*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.49.0","prettier":"3.0.3","stylelint":"15.10.3","release-it":"^16.1.5","postcss-less":"6.0.0","postcss-scss":"4.0.8","@plone/scripts":"^3.0.0","stylelint-prettier":"4.0.2","eslint-plugin-react":"7.33.2","@babel/eslint-parser":"7.22.15","eslint-plugin-import":"2.28.1","eslint-config-prettier":"9.0.0","eslint-plugin-flowtype":"8.0.3","eslint-plugin-jsx-a11y":"6.7.1","eslint-plugin-prettier":"5.0.0","eslint-config-react-app":"7.0.1","eslint-plugin-react-hooks":"4.6.0","stylelint-config-idiomatic-order":"9.0.0","stylelint-config-sass-guidelines":"10.0.0"},"peerDependencies":{"@plone/volto":"^17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/volto-countup-block_1.2.0_1710952495948_0.183519257191467","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@codesyntax/volto-countup-block","version":"2.0.0","keywords":["volto-addon","volto","plone","react"],"author":{"name":"Mikel Larreategi"},"license":"MIT","_id":"@codesyntax/volto-countup-block@2.0.0","maintainers":[{"name":"erral","email":"mlarreategi@codesyntax.com"},{"name":"ionlizarazu","email":"ilizarazu@codesyntax.com"},{"name":"bipoza","email":"bipoza@gmail.com"},{"name":"libargutxi","email":"libargutxi@codesyntax.com"},{"name":"uetxaburu","email":"uetxaburu@codesyntax.eus"}],"homepage":"https://github.com/codesyntax/volto-countup-block#readme","bugs":{"url":"https://github.com/codesyntax/volto-countup-block/issues"},"dist":{"shasum":"b1c872131ebcd030874195ced438bd096e55a22a","tarball":"https://registry.npmjs.org/@codesyntax/volto-countup-block/-/volto-countup-block-2.0.0.tgz","fileCount":20,"integrity":"sha512-ay6TMK+n1KV0+UCLkr4zyrsxMS/VDdfCX2plO/iWE6s1BNN6wkVuDj/TaHdm8BkDFB9h0N6PEiUajRWs4H8x/A==","signatures":[{"sig":"MEUCICWUJZYm0cZYETXS5jDn57eBAUSoYhURhg5W8JnePN8mAiEAnUeBB5FZrap45mZB7h4vw18EipB06Igjn24ZJMLuVF0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38677},"main":"src/index.js","_from":"file:codesyntax-volto-countup-block-2.0.0.tgz","scripts":{"i18n":"rm -rf build/messages && NODE_ENV=production i18n --addon","release":"release-it","dry-release":"release-it --dry-run","release-alpha":"release-it --preRelease=alpha","release-major-alpha":"release-it major --preRelease=alpha"},"_npmUser":{"name":"erral","email":"mlarreategi@codesyntax.com"},"_resolved":"/tmp/eaa6b8641a5aaa177be7e7c824bf6bdf/codesyntax-volto-countup-block-2.0.0.tgz","_integrity":"sha512-ay6TMK+n1KV0+UCLkr4zyrsxMS/VDdfCX2plO/iWE6s1BNN6wkVuDj/TaHdm8BkDFB9h0N6PEiUajRWs4H8x/A==","repository":{"url":"git+ssh://git@github.com/codesyntax/volto-countup-block.git","type":"git"},"_npmVersion":"10.8.1","description":"volto-countup-block: Volto add-on","directories":{},"_nodeVersion":"20.16.0","dependencies":{"react-countup":"*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"release-it":"^17.1.1","@plone/scripts":"^3.6.1"},"peerDependencies":{"react":"18.2.0","react-dom":"18.2.0"},"_npmOperationalInternal":{"tmp":"tmp/volto-countup-block_2.0.0_1733426310031_0.5718953292737472","host":"s3://npm-registry-packages"}}},"time":{"created":"2024-03-08T16:17:13.028Z","modified":"2025-03-11T14:56:06.085Z","1.0.1":"2024-03-08T16:17:13.360Z","1.0.2":"2024-03-08T16:19:22.837Z","1.1.0":"2024-03-13T08:29:48.354Z","1.2.0":"2024-03-20T16:34:56.262Z","2.0.0":"2024-12-05T19:18:30.204Z"},"bugs":{"url":"https://github.com/codesyntax/volto-countup-block/issues"},"author":{"name":"Mikel Larreategi"},"license":"MIT","homepage":"https://github.com/codesyntax/volto-countup-block#readme","keywords":["volto-addon","volto","plone","react"],"repository":{"url":"git+ssh://git@github.com/codesyntax/volto-countup-block.git","type":"git"},"description":"volto-countup-block: Volto add-on","maintainers":[{"email":"mlarreategi@codesyntax.com","name":"erral"},{"email":"ilizarazu@codesyntax.com","name":"ionlizarazu"},{"email":"bipoza@gmail.com","name":"bipoza"},{"email":"libargutxi@codesyntax.com","name":"libargutxi"},{"email":"uetxaburu@codesyntax.eus","name":"uetxaburu"},{"email":"aiglesias@codesyntax.eus","name":"asiercodesyntax"}],"readme":"# Volto Count up block (@codesyntax/volto-countup-block)\n\nA new add-on for Volto\n\n[![npm](https://img.shields.io/npm/v/@codesyntax/volto-countup-block)](https://www.npmjs.com/package/@codesyntax/volto-countup-block)\n[![](https://img.shields.io/badge/-Storybook-ff4785?logo=Storybook&logoColor=white&style=flat-square)](https://codesyntax.github.io/volto-countup-block/)\n[![Code analysis checks](https://github.com/codesyntax/volto-countup-block/actions/workflows/code.yml/badge.svg)](https://github.com/codesyntax/volto-countup-block/actions/workflows/code.yml)\n[![Unit tests](https://github.com/codesyntax/volto-countup-block/actions/workflows/unit.yml/badge.svg)](https://github.com/codesyntax/volto-countup-block/actions/workflows/unit.yml)\n\n## Features\n\nA simple block to show a rolling number.\n\nInternally it supports the basic options of [react-countup](https://www.npmjs.com/package/react-countup)\n\nIt allows setting the start and end values, the duration of the counting, the start delay, decimal and thousands separator, ...\n\nIt also allows adding a title and selecting its heading and position.\n\n## Customization\n\nYou can restrict the list of allowed tags to render the title of the counter. Just modify the `titleTags` property of the block in your config:\n\n\n```js\nconst applyConfig = (config) => {\n  // Own blocks\n  config.blocks.blocksConfig['countUpBlock']['titleTags'] = [\n      ['h3', 'h3'],\n      ['h4', 'h4'],\n  ];\n\n  return config;\n};\n```\n\n\n## Installation\n\nTo install your project, you must choose the method appropriate to your version of Volto.\n\n\n### Volto 17 and earlier\n\nCreate a new Volto project (you can skip this step if you already have one):\n\n```\nnpm install -g yo @plone/generator-volto\nyo @plone/volto my-volto-project --addon @codesyntax/volto-countup-block\ncd my-volto-project\n```\n\nAdd `@codesyntax/volto-countup-block` to your package.json:\n\n```JSON\n\"addons\": [\n    \"@codesyntax/volto-countup-block\"\n],\n\n\"dependencies\": {\n    \"@codesyntax/volto-countup-block\": \"*\"\n}\n```\n\nDownload and install the new add-on by running:\n\n```\nyarn install\n```\n\nStart volto with:\n\n```\nyarn start\n```\n\n### Volto 18 and later\n\nAdd `@codesyntax/volto-countup-block` to your `package.json`:\n\n```json\n\"dependencies\": {\n    \"@codesyntax/volto-countup-block\": \"*\"\n}\n```\n\nAdd `@codesyntax/volto-countup-block` to your `volto.config.js`:\n\n```javascript\nconst addons = ['@codesyntax/volto-countup-block'];\n```\n\nIf this package provides a Volto theme, and you want to activate it, then add the following to your `volto.config.js`:\n\n```javascript\nconst theme = '@codesyntax/volto-countup-block';\n```\n\n## Test installation\n\nVisit http://localhost:3000/ in a browser, login, and check the awesome new features.\n\n\n## Development\n\nThe development of this add-on is done in isolation using a new approach using pnpm workspaces and latest `mrs-developer` and other Volto core improvements.\nFor this reason, it only works with pnpm and Volto 18 (currently in alpha).\n\n\n### Pre-requisites\n\n-   [Node.js](https://6.docs.plone.org/install/create-project.html#node-js)\n-   [Make](https://6.docs.plone.org/install/create-project.html#make)\n-   [Docker](https://6.docs.plone.org/install/create-project.html#docker)\n\n\n### Make convenience commands\n\nRun `make help` to list the available commands.\n\n```text\nhelp                             Show this help\ninstall                          Installs the add-on in a development environment\nstart                            Starts Volto, allowing reloading of the add-on during development\nbuild                            Build a production bundle for distribution of the project with the add-on\ni18n                             Sync i18n\nci-i18n                          Check if i18n is not synced\nformat                           Format codebase\nlint                             Lint, or catch and remove problems, in code base\nrelease                          Release the add-on on npmjs.org\nrelease-dry-run                  Dry-run the release of the add-on on npmjs.org\ntest                             Run unit tests\nci-test                          Run unit tests in CI\nbackend-docker-start             Starts a Docker-based backend for development\nstorybook-start                  Start Storybook server on port 6006\nstorybook-build                  Build Storybook\nacceptance-frontend-dev-start    Start acceptance frontend in development mode\nacceptance-frontend-prod-start   Start acceptance frontend in production mode\nacceptance-backend-start         Start backend acceptance server\nci-acceptance-backend-start      Start backend acceptance server in headless mode for CI\nacceptance-test                  Start Cypress in interactive mode\nci-acceptance-test               Run cypress tests in headless mode for CI\n```\n\n### Development environment set up\n\nInstall package requirements.\n\n```shell\nmake install\n```\n\n### Start developing\n\nStart the backend.\n\n```shell\nmake backend-docker-start\n```\n\nIn a separate terminal session, start the frontend.\n\n```shell\nmake start\n```\n\n### Lint code\n\nRun ESlint, Prettier, and Stylelint in analyze mode.\n\n```shell\nmake lint\n```\n\n### Format code\n\nRun ESlint, Prettier, and Stylelint in fix mode.\n\n```shell\nmake format\n```\n\n### i18n\n\nExtract the i18n messages to locales.\n\n```shell\nmake i18n\n```\n\n### Unit tests\n\nRun unit tests.\n\n```shell\nmake test\n```\n\n### Run Cypress tests\n\nRun each of these steps in separate terminal sessions.\n\nIn the first session, start the frontend in development mode.\n\n```shell\nmake acceptance-frontend-dev-start\n```\n\nIn the second session, start the backend acceptance server.\n\n```shell\nmake acceptance-backend-start\n```\n\nIn the third session, start the Cypress interactive test runner.\n\n```shell\nmake acceptance-test\n```\n\n## License\n\nThe project is licensed under the MIT license.\n\n## Credits and Acknowledgements 🙏\n\nCrafted with care by **Generated using [Cookieplone (0.7.1)](https://github.com/plone/cookieplone) and [cookiecutter-plone (92fee80)](https://github.com/plone/cookiecutter-plone/commit/92fee80e8c83fceacc79c729e5dddbe3ffaa502e) on 2024-11-13 19:22:58.189323**. A special thanks to all contributors and supporters!\n","readmeFilename":"README.md"}