n-topic-search

8.0.5 • Public • Published

n-topic-search

A Typeahead component used to enhance the search experience for users. The typeahead serves as an autocomplete component designed to speed-up the search process. The application is built with TypeScript and Preact.

Overview

The Typeahead component is designed to work explicitly with o-header and its markup. The o-header and n-topic-search projects are integrated through dotcom-page-kit (https://github.com/Financial-Times/dotcom-page-kit) -> dotcom-ui-layout (https://github.com/Financial-Times/dotcom-page-kit/tree/main/packages/dotcom-ui-layout) -> dotcom-ui-header (https://github.com/Financial-Times/dotcom-page-kit/tree/main/packages/dotcom-ui-header). You’ll need to use the latest versions of the dotcom-page-kit and o-header packages when running the demo app, before starting development on new features, or performing bug fixes.

How to start

npm i
npm run build
npm start

The local demo application uses hot-reload. It restarts the server and rebuilds automatically. Go to http://localhost:9009/ to see your changes. Make sure the hot-reload has completed its tasks before checking your updates.

The entry point for the Typeahead application is src/index.tsx.

The entry point for the client-side demo application, initialisation logic and examples of how to use the Typeahead component is inside demo/client/main.tsx.

Bundling and npm publishing

This project uses Rollup for bundling the application. It's done through a custom toolkit plugin. npm publishing is automatically configured and handled through various toolkit plugins.

How to release a new version

  1. Create a PR with your changes and get it approved.
  2. Merge your PR to main.
  3. Go to https://github.com/Financial-Times/n-topic-search/releases and draft a new release. When drafting a release, start the name with the version number so it’s easier to track.
  4. After the release is published, you can go to Circle-CI to ensure it was successfully published to the npm registry.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
7.1.0-beta.90prerelease
8.0.582latest

Version History

VersionDownloads (Last 7 Days)Published
8.0.582
8.0.48
8.0.30
8.0.21
8.0.10
8.0.00
7.1.0-beta.90
7.1.0-beta.80
7.1.0-beta.70
7.1.0-beta.61
7.1.0-beta.50
7.1.0-beta.40
7.1.0-beta.30
7.1.0-beta.20
7.1.0-beta.10
7.1.0-beta.00
7.0.10
7.0.00
6.1.2-alpha.02
6.1.10
6.1.00
6.0.00
5.0.00
4.0.034
3.3.00
3.2.30
3.2.20
3.2.10
3.2.00
3.1.00
3.0.00
2.0.00
1.2.10
1.2.02
1.1.10
1.1.00
1.0.90
1.0.80
1.0.70
1.0.60
1.0.50
1.0.40

Package Sidebar

Install

npm i n-topic-search

Weekly Downloads

130

Version

8.0.5

License

ISC

Unpacked Size

116 kB

Total Files

45

Last publish

Collaborators

  • the-ft