{"_id":"@coveops/have-you-tried","_rev":"47-1d7826d2f8899c0dca568a65eb18afb1","name":"@coveops/have-you-tried","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@coveops/have-you-tried","version":"1.0.0","keywords":[],"author":"","license":"Apache-2.0","_id":"@coveops/have-you-tried@1.0.0","maintainers":[{"name":"jfallaire","email":"jeanfrancois.allaire@gmail.com"},{"name":"davebouffard","email":"dbouffard@coveo.com"},{"name":"jmdro","email":"jmdrolet@coveo.com"},{"name":"eqcoveo","email":"equinn@coveo.com"},{"name":"jfleurent","email":"jfleurent@coveo.com"},{"name":"mthusscoveo","email":"mthuss@coveo.com"},{"name":"sfecteau","email":"sfecteau@coveo.com"},{"name":"jwolfe-coveo","email":"jwolfe@coveo.com"},{"name":"rvundavalli","email":"rvundavalli@coveo.com"},{"name":"gfoumbi","email":"gfoumbi@coveo.com"},{"name":"yass1408","email":"yassine_lakhdar@hotmail.com"},{"name":"coveoit","email":"itaccounts@coveo.com"}],"dist":{"shasum":"3f4f682a6c75dc1c5be1a7fff74949fade9b44c0","tarball":"https://registry.npmjs.org/@coveops/have-you-tried/-/have-you-tried-1.0.0.tgz","fileCount":9,"integrity":"sha512-Ixv+YVZEG+9uPRUIkVPuJR1KCOH9rN52xlN6ataqdpFwCEkyDpsLLNKFTssczdng+qs87bCxdd3N1ZLAOUwKbg==","signatures":[{"sig":"MEUCIDUiot+xE7dvcSf8CY31OmDoQ1Og+6ORWvquddU2PHK8AiEArQoqZGu7u6X1IPerZnoYB0whblI5VJO2n+sEmyVfGIU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40576,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGEdNCRA9TVsSAnZWagAAcYgP/icj8olj5NZy0ffU0Z/u\n4z0nFY4AWM5feZNknOv1J0OxWse3mOQEWhoQ95Bi5LJ4VZi7bcTHMGM1A4uN\nHI9PGFkylCLzsKRtHa+aYJaQQ0/Ql9oZjHm3r2Bw3wpOaWXOOwsJTmSD3Kws\nZ9OPIShZkbIaX3Iw7rsqMClLzdrGoUF3uum1ms5dseJ4jUjn72sqI2C9zVNo\ns1eZWv6zqfe7VY9N/m5APe+FFByA8jZknJeH6xX5k1o4sDVJjDuy0tRE4DoV\nPPZhleZOZ5AuhA2D6n8dTJ+aKA2kFsmXavapUd4x9wgU7m5T7PxRW12wbdoQ\nBYeQ4a6wBH9NStl7vWvbDH+nC+NQ8UIGwUrxFO5i6xKxQ/I/qW4qlQEWvVI3\nsS+7hwYNKeTZPukXqlzLVVG1nvuqjIVu2vV+UISsjfL3agXOXRu6DVSz1OcF\nivfDv0s1m2j8MDww3iCCTGT1EkI2dnt++pSUWgV3SdZcwisWcjUFs6cfqD+4\n12nUrDjnjXdPTLLYqLAZAijgQsQ1Ufb89omCfTh3yMZb3SKXbwWJks0o7apf\nTkZ54BWfRjkYj5rG92qiRDXxwsUJuyEj4bTcVdBgVIOsylRGfU13hVlYYpsz\nSFMFGy6CDbE5HfdPeKWiPHUAeH2Ba+I0w20DJ78ASyk8XKb6CKzqnTPyKlHf\nZg0T\r\n=Fxz3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"129a14eef28f135c88db0ab906d3676c301070ba","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"coveops build have-you-tried --template typescript","serve":"coveops serve","precompile":"npm run build"},"_npmUser":{"name":"jwolfe-coveo","email":"jwolfe@coveo.com"},"_npmVersion":"6.10.2","description":"When you have no results, have you tried will show machine learning query suggestions to try.","directories":{},"_nodeVersion":"12.9.1","dependencies":{"coveo-search-ui":"^2.9373.6","@coveops/turbo-core":"^1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"@coveops/cli":"^0.8.1"},"_npmOperationalInternal":{"tmp":"tmp/have-you-tried_1.0.0_1595426636520_0.10316683178558161","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-07-22T14:03:56.258Z","modified":"2026-05-13T17:46:45.418Z","1.0.0":"2020-07-22T14:03:56.743Z"},"license":"Apache-2.0","keywords":[],"description":"When you have no results, have you tried will show machine learning query suggestions to try.","maintainers":[{"email":"jfleurent@coveo.com","name":"jfleurent"},{"email":"jmdrolet@coveo.com","name":"jmdro"},{"email":"jeanfrancois.allaire@gmail.com","name":"jfallaire"},{"email":"achouan@coveo.com","name":"achouan"},{"email":"lpblais@coveo.com","name":"lpblais-coveo"},{"email":"watallah@coveo.com","name":"watallah"},{"email":"eshahneh@coveo.com","name":"ehsanshahneh"},{"email":"belbizri@coveo.com","name":"belbizri"},{"email":"jpurohit@coveo.com","name":"jpurohit_coveo"},{"email":"acherney2@coveo.com","name":"acherney2c"},{"email":"jcharron@coveo.com","name":"jcharron-coveo"},{"email":"oa-npmcoveops@oacvo.com","name":"oa-npmcoveops"}],"readme":"# have-you-tried\n\nWhen you have no results, have you tried will show machine learning query suggestions to try.\n\nDisclaimer: This component was built by the community at large and is not an official Coveo JSUI Component. Use this component at your own risk.\n\n## Getting Started\n\n1. Install the component into your project.\n\n```\nnpm i @coveops/have-you-tried\n```\n\n2. Use the Component or extend it\n\nTypescript:\n\n```javascript\nimport { HaveYouTried, IHaveYouTriedOptions } from '@coveops/have-you-tried';\n```\n\nJavascript\n\n```javascript\nconst have-you-tried = require('@coveops/have-you-tried').HaveYouTried;\n```\n\n3. You can also expose the component alongside other components being built in your project.\n\n```javascript\nexport * from '@coveops/have-you-tried'\n```\n\n4. Include the component in your template as follows:\n\n\n\n```html\n<div class=\"CoveoHaveYouTried\"></div>\n```\n\n\n## Options\n\nThe following options can be configured:\n\n| Option | Required | Type | Default | Notes |\n| --- | --- | --- | --- | --- |\n| `title` | No | string | `<b>No results?</b> You can also try:` | Title rendered |\n\n\n\n## Extending\n\nExtending the component can be done as follows:\n\n```javascript\nimport { HaveYouTried, IHaveYouTriedOptions } from \"@coveops/have-you-tried\";\n\nexport interface IExtendedHaveYouTriedOptions extends IHaveYouTriedOptions {}\n\nexport class ExtendedHaveYouTried extends HaveYouTried {}\n```\n\n\nThe following methods can be extended to provide additional functionalities or handle more complex use cases.\n\n### applyCommunityUrlRewriter\n\n```javascript\nprotected renderTitle():string\n```\n\nThe `renderTitle` should render the title for the component.\n\n\n## Contribute\n\n1. Clone the project\n2. Copy `.env.dist` to `.env` and update the COVEO_ORG_ID and COVEO_TOKEN fields in the `.env` file to use your Coveo credentials and SERVER_PORT to configure the port of the sandbox - it will use 8080 by default.\n3. Build the code base: `npm run build`\n4. Serve the sandbox for live development `npm run serve`","readmeFilename":"README.md"}