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.594latest

Version History

VersionDownloads (Last 7 Days)Published
8.0.594
8.0.428
8.0.30
8.0.20
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.62
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.00
6.1.10
6.1.054
6.0.00
5.0.013
4.0.01,245
3.3.03
3.2.32
3.2.23
3.2.11
3.2.01
3.1.01
3.0.026
2.0.07
1.2.11
1.2.01
1.1.11
1.1.01
1.0.91
1.0.81
1.0.71
1.0.61
1.0.51
1.0.41

Package Sidebar

Install

npm i n-topic-search

Weekly Downloads

134

Version

8.0.5

License

ISC

Unpacked Size

116 kB

Total Files

45

Last publish

Collaborators

  • the-ft