{"_id":"@doist/todoist-quickadd","_rev":"20-cd3ca56f215d753523dd9a2afbef2386","name":"@doist/todoist-quickadd","dist-tags":{"latest":"1.1.6"},"versions":{"1.0.0":{"name":"@doist/todoist-quickadd","version":"1.0.0","keywords":["todoist","quickadd"],"author":{"name":"Amir Salihefendic"},"license":"MIT","_id":"@doist/todoist-quickadd@1.0.0","maintainers":[{"name":"amix3k","email":"amix@doist.com"},{"name":"doistuser","email":"amix@doist.io"},{"name":"henningmu","email":"muszynski.henning@gmail.com"},{"name":"jvalente","email":"joao@doist.io"}],"homepage":"https://github.com/Doist/todoist-quickadd#readme","bugs":{"url":"https://github.com/Doist/todoist-quickadd/issues"},"dist":{"shasum":"a88864fe7b0e3c9726617e5aa18807090c43d0ae","tarball":"https://registry.npmjs.org/@doist/todoist-quickadd/-/todoist-quickadd-1.0.0.tgz","fileCount":12,"integrity":"sha512-/H5SjwHWBTsOdXgexxXnB45BNftWAvIXUGC+croj9/4X2l9CL2UjtMHNRG3l0L2ylXSViwP3E9LjSnPxLBFJYA==","signatures":[{"sig":"MEUCIQC/Y1YxcGDDqlbeEyKrUYiuKXldz0lqqbWYNNHxNXKSxAIgWXcucauY+GyPLRFvs9V4cryYk0u0SVjqwdzGr2M9EDw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15148,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfykvHCRA9TVsSAnZWagAAPgcQAIZNrEllhxa6by3vNIds\nAnlCtFkSXM7bM6eBTw9F25b21rzuZD9i5CJHVTRdtTTF3+QXf+m8ncNJOLIj\nGBz7rQc/MNYgl6FP9rfPDyhjvpuk2T7/FjykqTU2ADsn/pAFwAEMgtgOyk8V\nMqBq+WWibrcU6f2nOVLV6YGb9UynowDbtV/uDJT9h2fehp5bXuKgETtSAzHH\nlapMthMekVY65bc6ByBGqiqK4Lm+SXywA/7CWZJH7jX2idv8a07EXOwBK0Kb\nLNrC746MErmMoBV5yqe2cebiQN1XnM85tYZvc+ascRnEWk2kp82Wdr4Siqjq\nR2NBWugYN+EiqN9W5cc0C48zk6AiFfFMR95LOKH2awItP50DCDBvi9ANW+KM\n8sbeTSO3FahvilHYSdMerkd4AiaLM1UVqFtFemJWKhxZ5cFA9zZ07BA7LnRv\nty38F07c+30Ui9Jo8UkCfzupqtnHT3gi62bFnWOkgTtrJdQ0QLeXk952Ms5q\nJHusuSNHWbBfX+OcAuyNRJnfVejWRVqQacYNXRsGezFcLFOjgJSE91h9vI91\nP3cLgqrbFaF/eRdb0vx8gHnPtMhCS74u4xObNaumR/yYH9X3H8JlHnAwa12E\npVshIx/PkzllIEm3i8od7Q1sFxznWbm5V4mrltVAOYr/GqcmiItLqU+2HNu3\nhcFx\r\n=lsK/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","husky":{"hooks":{"pre-commit":"tsdx lint"}},"module":"dist/todoist-quickadd.esm.js","engines":{"node":">=10"},"gitHead":"8540db03efe70f47ad1b1a3f2d40b67ec595d4f2","scripts":{"lint":"tsdx lint","size":"size-limit","test":"tsdx test","build":"tsdx build","start":"tsdx watch","analyze":"size-limit --why","prepare":"tsdx build"},"typings":"dist/index.d.ts","_npmUser":{"name":"amix3k","email":"amix@doist.com"},"prettier":"@doist/prettier-config","repository":{"url":"git+https://github.com/Doist/todoist-quickadd.git","type":"git"},"size-limit":[{"path":"dist/todoist-quickadd.cjs.production.min.js","limit":"10 KB"},{"path":"dist/todoist-quickadd.esm.js","limit":"10 KB"}],"_npmVersion":"6.14.3","description":"Add Todoist QuickAdd anywhere on the web","directories":{},"_nodeVersion":"12.16.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tsdx":"^0.14.1","husky":"^4.3.0","tslib":"^2.0.3","size-limit":"^4.9.1","typescript":"^4.1.2","@doist/prettier-config":"^3.0.5","@size-limit/preset-small-lib":"^4.9.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/todoist-quickadd_1.0.0_1607093191083_0.054846004056396946","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@doist/todoist-quickadd","version":"1.0.1","keywords":["todoist","quickadd"],"author":{"name":"Amir Salihefendic"},"license":"MIT","_id":"@doist/todoist-quickadd@1.0.1","maintainers":[{"name":"amix3k","email":"amix@doist.com"},{"name":"doistuser","email":"amix@doist.io"},{"name":"henningmu","email":"muszynski.henning@gmail.com"},{"name":"jvalente","email":"joao@doist.io"}],"homepage":"https://github.com/Doist/todoist-quickadd#readme","bugs":{"url":"https://github.com/Doist/todoist-quickadd/issues"},"dist":{"shasum":"e479f5003b4fc8ffabd6588df9c0ae7319b62e76","tarball":"https://registry.npmjs.org/@doist/todoist-quickadd/-/todoist-quickadd-1.0.1.tgz","fileCount":12,"integrity":"sha512-57RzDClE04n2UHGXzoGBWPZV1BNAHLC51sPEDVQLAmNwGRRzWCZ+XW78XtrURgFWS7qvjE+MhLepq3cIWkewkg==","signatures":[{"sig":"MEQCIH7uvQz4eMrpwaWEt8k3vT8UtIj/0QyCpUslkCnw6fjiAiA+BohFQzT/1n5i5WQ7r5WJrvsA4/7LUZhllDgARX3H8w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15148,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyk+zCRA9TVsSAnZWagAA/nsP/1qqz/WvFayp03XvcTWR\nrA1S/X3N/X4KFZXIyq8lzFcU+PJfXNZZZhImmtjERWBNw62LbywEu69UaBDV\nRBL/b0EAHD+nBXG8BWQYiUay9nGXwC/GC8aSXlEZg2xJNMEagMdmRzia5H1n\ndT950JI0P3NQWdzI/WLg/Ksg4ZG4xaP9GvWBhdsbB6Ri/MrBEOwWWFnDlCXs\nsYYx8unPtm6Fz7bp6iW/OqtMw66JbQ3FtNIEnmEL49WWwHOnYhfBN+qhg7qZ\nKTglALF9lavDTroeMilJ0UROkXbRd3nrqe0U+6DPc6hGdu8BG7OkbkVDq4Hl\nY75PuG2YParkN5J5N9ZfE+PJ4PYd+TlaSyK5Q0NjBS4odtTwF69Lo2lVwtit\n4VmYt5aiacrucrn9jmdJ7SKcvEAVrdJmaPcj21U0I/OQOtA8XUk17M+alBn7\n8+BFwc4zvT4xKlqITd53QNsJ6NREXj0Xgx3Z51/nSRPbRFEeXsGIJJ+sWqR1\nC1zZaFfkY+jTkRlUZfCNeHk7qr/v1FDGDKoGOoblGzGsvi0EEy0QerTZdLNy\nS2vxttMDGplXd42iCY6TwybBBrE+TlQNMRn0BIh2aox3Jngc6RTI8IEv+rqR\nsDoj83sm47nn23oRNZORy3QuOdg6OLKV1eRg5f0Rrvj0fr0WhBOnZZE5jOZG\n4+iD\r\n=ffPn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","husky":{"hooks":{"pre-commit":"tsdx lint"}},"module":"dist/todoist-quickadd.esm.js","engines":{"node":">=10"},"gitHead":"90ca61d9816f93fa596cf9f13d14f27628980c16","scripts":{"lint":"tsdx lint","size":"size-limit","test":"tsdx test","build":"tsdx build","start":"tsdx watch","analyze":"size-limit --why","prepare":"tsdx build"},"typings":"dist/index.d.ts","_npmUser":{"name":"amix3k","email":"amix@doist.com"},"prettier":"@doist/prettier-config","repository":{"url":"git+https://github.com/Doist/todoist-quickadd.git","type":"git"},"size-limit":[{"path":"dist/todoist-quickadd.cjs.production.min.js","limit":"10 KB"},{"path":"dist/todoist-quickadd.esm.js","limit":"10 KB"}],"_npmVersion":"6.14.3","description":"Add Todoist QuickAdd anywhere on the web","directories":{},"_nodeVersion":"12.16.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tsdx":"^0.14.1","husky":"^4.3.0","tslib":"^2.0.3","size-limit":"^4.9.1","typescript":"^4.1.2","@doist/prettier-config":"^3.0.5","@size-limit/preset-small-lib":"^4.9.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/todoist-quickadd_1.0.1_1607094194803_0.8565721575002809","host":"s3://npm-registry-packages"}},"1.1.5":{"name":"@doist/todoist-quickadd","version":"1.1.5","keywords":["todoist","quickadd"],"author":{"name":"Amir Salihefendic"},"license":"MIT","_id":"@doist/todoist-quickadd@1.1.5","maintainers":[{"name":"doistuser","email":"amix@doist.io"},{"name":"henningmu","email":"muszynski.henning@gmail.com"},{"name":"jvalente","email":"joao@doist.io"},{"name":"amix3k","email":"amix@doist.com"}],"homepage":"https://github.com/Doist/todoist-quickadd#readme","bugs":{"url":"https://github.com/Doist/todoist-quickadd/issues"},"dist":{"shasum":"bd3e8ad1cfd53fb2b298ee8ef40a39f2dff3e7de","tarball":"https://registry.npmjs.org/@doist/todoist-quickadd/-/todoist-quickadd-1.1.5.tgz","fileCount":13,"integrity":"sha512-JX9+SNXhaW/oGLLcKbLLvVTFvdmX/EwDHqTVFwtuWdoFqFgv68x13fAnV0SDQ03Rv9aHLzH1Y0nfDsSNYjQQVw==","signatures":[{"sig":"MEUCIDWD2ETtzZ6xO/6eeTjyFT5oIm6/swziTDG+16oygJ5kAiEAjgWBHsFhKd7YmWslLOyzwbF5oL/5cgFZnVk2xCp18sw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17592},"main":"dist/index.js","husky":{"hooks":{"pre-commit":"tsdx lint"}},"module":"dist/todoist-quickadd.esm.js","engines":{"node":">=10"},"gitHead":"ec731ad9a74cfe795c04eeb84c64ab47d7d1b905","scripts":{"lint":"tsdx lint","size":"size-limit","build":"tsdx build","start":"tsdx watch","analyze":"size-limit --why","prepare":"tsdx build"},"typings":"dist/index.d.ts","_npmUser":{"name":"henningmu","email":"muszynski.henning@gmail.com"},"prettier":"@doist/prettier-config","repository":{"url":"git+https://github.com/Doist/todoist-quickadd.git","type":"git"},"size-limit":[{"path":"dist/todoist-quickadd.cjs.production.min.js","limit":"10 KB"},{"path":"dist/todoist-quickadd.esm.js","limit":"10 KB"}],"_npmVersion":"6.14.15","description":"Add Todoist QuickAdd anywhere on the web","directories":{},"_nodeVersion":"12.22.7","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tsdx":"^0.14.1","husky":"^4.3.0","tslib":"^2.0.3","size-limit":"^4.9.1","typescript":"^4.1.2","@doist/prettier-config":"^3.0.5","@size-limit/preset-small-lib":"^4.9.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/todoist-quickadd_1.1.5_1635953263971_0.6934296197233865","host":"s3://npm-registry-packages"}},"1.1.6":{"name":"@doist/todoist-quickadd","version":"1.1.6","keywords":["todoist","quickadd"],"author":{"name":"Amir Salihefendic"},"license":"MIT","_id":"@doist/todoist-quickadd@1.1.6","maintainers":[{"name":"ricardoist","email":"ricardo@doist.com"},{"name":"henningmu","email":"muszynski.henning@gmail.com"},{"name":"jvalente","email":"joao@doist.com"},{"name":"antondoist","email":"antonball@doist.com"},{"name":"jefcurtis","email":"jef@doist.com"},{"name":"doistbot","email":"dev@doist.com"},{"name":"fbidu","email":"felipe@doist.com"},{"name":"ernestodoist","email":"ernesto@doist.com"}],"homepage":"https://github.com/Doist/todoist-quickadd#readme","bugs":{"url":"https://github.com/Doist/todoist-quickadd/issues"},"dist":{"shasum":"2eff6438c2c1a29c4a9fc5d8ab9489cb422c2870","tarball":"https://registry.npmjs.org/@doist/todoist-quickadd/-/todoist-quickadd-1.1.6.tgz","fileCount":12,"integrity":"sha512-8g/sUrVkn6GaiVTsON7ErzE87DED9eeoLW3cPj+4LPj4lrmHuQwo0d3vNsLmqx+irUL6Kyd6uldlT3VmOjPRyg==","signatures":[{"sig":"MEUCIF3fbuYX2IGw25NfTE9S/LESuONYMGNyQRvIFGdHoYviAiEAhGHx88cXeG+9NB/zmhRCCxwPfxIycNBwagv8p48zIfs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@doist%2ftodoist-quickadd@1.1.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":17174},"main":"dist/index.js","husky":{"hooks":{"pre-commit":"tsdx lint"}},"module":"dist/todoist-quickadd.esm.js","engines":{"node":">=24"},"gitHead":"7024280d70b44ab6bb0ef565a91915870e9c52c9","scripts":{"lint":"tsdx lint","size":"size-limit","build":"tsdx build","start":"tsdx watch","analyze":"size-limit --why","prepare":"tsdx build"},"typings":"dist/index.d.ts","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f4eb4053-5b01-4e20-a0cb-7d407e609286"}},"prettier":"@doist/prettier-config","repository":{"url":"git+https://github.com/Doist/todoist-quickadd.git","type":"git"},"size-limit":[{"path":"dist/todoist-quickadd.cjs.production.min.js","limit":"10 KB"},{"path":"dist/todoist-quickadd.esm.js","limit":"10 KB"}],"_npmVersion":"11.6.2","description":"Add Todoist QuickAdd anywhere on the web","directories":{},"_nodeVersion":"24.10.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tsdx":"^0.14.1","husky":"^4.3.0","tslib":"^2.0.3","size-limit":"^4.9.1","typescript":"^4.1.2","@doist/prettier-config":"^3.0.5","@size-limit/preset-small-lib":"^4.9.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/todoist-quickadd_1.1.6_1761241012972_0.4960563432493459","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2020-12-04T14:46:30.798Z","modified":"2026-08-21T21:58:10.514Z","1.0.0":"2020-12-04T14:46:31.220Z","1.0.1":"2020-12-04T15:03:15.022Z","1.1.5":"2021-11-03T15:27:44.093Z","1.1.6":"2025-10-23T17:36:53.164Z"},"bugs":{"url":"https://github.com/Doist/todoist-quickadd/issues"},"author":{"name":"Amir Salihefendic"},"license":"MIT","homepage":"https://github.com/Doist/todoist-quickadd#readme","keywords":["todoist","quickadd"],"repository":{"url":"git+https://github.com/Doist/todoist-quickadd.git","type":"git"},"description":"Add Todoist QuickAdd anywhere on the web","maintainers":[{"email":"ricardo@doist.com","name":"ricardoist"},{"email":"muszynski.henning@gmail.com","name":"henningmu"},{"email":"joao@doist.com","name":"jvalente"},{"email":"antonball@doist.com","name":"antondoist"},{"email":"jef@doist.com","name":"jefcurtis"},{"email":"daw.gawel@gmail.com","name":"dmgawel"},{"email":"dev@doist.com","name":"doistbot"},{"email":"felipe@doist.com","name":"fbidu"},{"email":"goncalossilva@gmail.com","name":"goncalossilva"},{"email":"omar@doist.com","name":"omar.doist.com"},{"email":"scott@doist.com","name":"scottatdoist"},{"email":"craigcarlyle@me.com","name":"craigcarlyle"},{"email":"ernesto@doist.com","name":"ernestodoist"}],"readme":"# todoist-quickadd\n\nAdd the powerful Todoist Quick Add anywhere on the web. The experience is simple, beautiful, and fast.\n\nThe Todoist Quick Add also supports all of the powerful features, such as natural language parsing.\n\n## Installation\n\nUse [npm](https://www.npmjs.com/get-npm) or [yarn](https://yarnpkg.com/lang/en/docs/install/) to install:\n\n```sh\nnpm install @doist/todoist-quickadd\n# or\nyarn add @doist/todoist-quickadd\n```\n\n## Usage (vanilla JavaScript)\n\n```javascript\nimport { showQuickAdd } from '@doist/todoist-quickadd'\n\nshowQuickAdd({\n    content: 'Hello world',\n    priority: 3,\n    date: 'today',\n})\n```\n\n## Usage (React)\n\n```javascript\nimport { useState, useEffect } from 'react'\n\nimport { showQuickAdd } from '@doist/todoist-quickadd'\n\nfunction Todoist() {\n    const [content, setContent] = (useState < string) | (null > null)\n\n    // Set up store listener\n    useEffect(() => {\n        const todoistListener = Store.addListener(() => {\n            setContent(TodoistStore.getState().content)\n        })\n        return () => todoistListener && todoistListener.remove()\n    }, [])\n\n    // Handle content change\n    useEffect(() => {\n        function onLoadingError() {\n            alert('Could not load Todoist Quick Add. Please try again later.')\n        }\n\n        if (content) {\n            StoreActions.resetContent()\n\n            showQuickAdd({\n                content: content,\n                onLoadingError: onLoadingError,\n            })\n        }\n    }, [content])\n\n    return null\n}\n```\n\n## showQuickAdd API\n\nThe `showQuickAdd` function can take the following parameters. All of them are\noptional:\n\n| Name           | Type                    | Description                                                                                 |\n| -------------- | ----------------------- | ------------------------------------------------------------------------------------------- |\n| content        | string                  | The preset content                                                                          |\n| priority       | number between 1 and 4  | The preset priority                                                                         |\n| theme          | number between 1 and 11 | Force a specific Todoist theme (e.g, `2` for Todoist Red,<br>and `11` for Todoist Darkmode) |\n| project_id     | number                  | The preset project (by default it's the Inbox)                                              |\n| onAdd          | (item: any) => void     | Callback that will be called when a task is added.                                          |\n| onClose        | () => void              | Callback that will be called when the Quick Add is closed                                   |\n| onLoadingError | () => void              | Callback that will be called when the Quick Add fails to load                               |\n| todoistHost    | string                  | An optional Todoist host, e.g. `staging.todoist.com`                                        |\n\n## Changelog\n\nWe're maintaining a [changelog](./CHANGELOG.md) in this repository. Our versioning follows [semantic versioning](https://semver.org/).\n\n## Releasing\n\nA new version of todoist-quickadd is published both on npm and GitHub Package Registry whenever a new release on GitHub is created. A GitHub Action will automatically perform all the necessary steps.\n\nThe Action will release the version number that's specified inside the `package.json`'s `version` field so make sure that it reflects the version you want to publish. Additionally, the Action can be triggered manually in case something went wrong in the automation.\n\n## Contributing\n\nContributions are welcome.\n\n## License\n\nThis project is distributed under the [MIT License](./LICENSE).\n","readmeFilename":"README.md"}