algolia / instantsearch

⚡️ Libraries for building performant and instant search and recommend experiences with Algolia. Compatible with JavaScript, TypeScript, React and Vue.
https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/js/
MIT License
3.73k stars 525 forks source link

feat(templates): re-introduce simple strings as text #6381

Closed Haroenv closed 1 month ago

Haroenv commented 1 month ago

Summary

I think simple strings can be very useful in panels, or other simple templates. We should of course warn if there's html-looking text, as that's likely a mistake in migration.

Result

simple strings in templates are passed as text nodes; a warning is given if that text has a < in it

codesandbox-ci[bot] commented 1 month ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit da445f3a9730bb08d3ebeeda10ebd56dbcd17eb4:

Sandbox Source
example-instantsearch-getting-started Configuration
example-react-instantsearch-getting-started Configuration
example-react-instantsearch-next-app-dir-example Configuration
example-react-instantsearch-next-routing-example Configuration
example-vue-instantsearch-getting-started Configuration