1
0
Fork 0
Commit graph

158 commits

Author SHA1 Message Date
Pixelastic
7fed6d9ff7 v2.6.2\n\n## [2.6.2](https://github.com/algolia/docsearch/compare/v2.6.1...v2.6.2) (2018-11-22)
### Features

* **ctrl-click:** Enable Ctrl-Click on suggestions ([#542](https://github.com/algolia/docsearch/issues/542)) ([a470c48](https://github.com/algolia/docsearch/commit/a470c48))
2018-11-22 14:18:54 +01:00
Pixelastic
d42ec07cac test(handleSelected): Add tests on selectionMethod 2018-11-22 14:07:28 +01:00
Tim Carry
a470c480dd
feat(ctrl-click): Enable Ctrl-Click on suggestions (#542)
* feat(ctrl-click): Enable Ctrl-Click on suggestions

This updates the underlying autocomplete.js to a version that passes
the selection context (click or keyboard) to the
`autocomplete:selected` event.

With the default `handleSelected, and in the case of a click, it will
do nothing (as each suggestion already being a `<a href>`, it will
already follow the link), but manually change the location for
keyboard navigation.

When a custom `handleSelected` is set though, default browser clicks
on suggestions are disabled and only `handleSelected` is called. This
is to keep backward compatibility with all the live websites that
might already use `handleSelected`.

* fix(test): Making sure it does not crash when no context is passed
2018-11-21 15:47:41 +01:00
Pixelastic
45640c796d v2.6.1\n\n## [2.6.1](https://github.com/algolia/docsearch/compare/v2.6.0...v2.6.1) (2018-11-07) 2018-11-07 17:44:26 +01:00
Pixelastic
1ae421346d v2.6.0\n\n# [2.6.0](https://github.com/algolia/docsearch/compare/v2.5.2...v2.6.0) (2018-11-07)
### Bug Fixes

* **deps:** update dependency algolia-aerial to v1.3.4 ([7e72fe0](https://github.com/algolia/docsearch/commit/7e72fe0))
* **deps:** update dependency algolia-aerial to v1.5.3 ([665438e](https://github.com/algolia/docsearch/commit/665438e))
* **deps:** update dependency algolia-frontend-components to v0.0.35 ([bd5c03f](https://github.com/algolia/docsearch/commit/bd5c03f))
* **deps:** update dependency autocomplete.js to ^0.30.0 ([21eb76a](https://github.com/algolia/docsearch/commit/21eb76a))
* **deps:** update dependency autocomplete.js to ^0.31.0 ([6c65eb2](https://github.com/algolia/docsearch/commit/6c65eb2))
* **deps:** update dependency chalk to v2 ([#323](https://github.com/algolia/docsearch/issues/323)) ([f8962bd](https://github.com/algolia/docsearch/commit/f8962bd))
* **deps:** update dependency deepmerge to v2 ([#324](https://github.com/algolia/docsearch/issues/324)) ([db212d0](https://github.com/algolia/docsearch/commit/db212d0))
* **deps:** update dependency progress to v2 ([#325](https://github.com/algolia/docsearch/issues/325)) ([a99347a](https://github.com/algolia/docsearch/commit/a99347a))
* **wording:** fixed case of DocSearch ([#262](https://github.com/algolia/docsearch/issues/262)) ([d451545](https://github.com/algolia/docsearch/commit/d451545))

### Features

* **css:** Update menu on small screen ([b5733d2](https://github.com/algolia/docsearch/commit/b5733d2))
* **docsearch:** Add custom classes on titles for better crawling ([fc79098](https://github.com/algolia/docsearch/commit/fc79098))
2018-11-07 15:11:41 +01:00
Tim Carry
c0f64d2c76
Adding new logo (#526)
* Adding new logo

I reverted to the previous way of displaying the logo, as a background
SVG image. Adding a new `<svg>` inline element to the markup could
break people implementation relying on our markup, so better play safe
and keep the markup the same.

I used the SVG available on our
https://www.algolia.com/press#resources page, but trimmed it through
SVGO (50% compression) before adding it to the background.

* Updating logo to version validated by design team

Original dimensions are 168x24, but this is substancially bigger than what we
used to have (130x19px). InstantSearch used a 134x20px ratio, and
I re-used the same. Slightly bigger than what we had before, but
keeping the correct ratio.
2018-11-07 14:36:24 +01:00
Tim Carry
cc0d501012
Add test that normal click is disable with custom handleSelected (#523) 2018-11-06 09:32:34 +01:00
Tim Carry
6d74eecd2b
Remove git markers in file (#524) 2018-11-06 08:59:01 +01:00
s-pace
46d293cb1a Merge branch 'master' into feat/v3 2018-11-05 11:09:56 +01:00
s-pace
fe530ca282 add the proper version 2018-11-05 11:04:16 +01:00
Pixelastic
5e85d7b2ec Add tests (still one test WIP) 2018-11-05 10:22:29 +01:00
Pixelastic
89313450dc Disable links with handleSelected is defined 2018-11-05 10:22:29 +01:00
Sylvain Pace
0fa387cdf8
Feat/prettier (#516)
* undo prettier and eslint

* use prettier with md files

* avoid scss confusion

* use glob instead of find

Co-Authored-By: s-pace <sylvain.pace@algolia.com>

* use prettier straight away

Co-Authored-By: s-pace <sylvain.pace@algolia.com>
2018-11-02 11:45:56 +01:00
s-pace
b3c057e95c should listen to the selected and shown event of autocomplete is still failing 2018-11-02 11:25:49 +01:00
s-pace
bb1e19d58f compatibility with multiple input 2018-11-02 10:54:35 +01:00
s-pace
e0c72a7c4e handleSelected test 2018-11-02 10:28:57 +01:00
s-pace
3979e4fe8e compatibility with multiple input 2018-11-02 10:27:50 +01:00
s-pace
3caa399046 better fallback on handle selected 2018-11-02 10:25:55 +01:00
s-pace
b3a140645a Use Error convention 2018-11-02 10:13:54 +01:00
s-pace
67b64d60ec better management of selector matching plenty element, we only take the first one 2018-11-02 10:03:22 +01:00
s-pace
b211630cc2 removing unused URL 2018-11-02 09:50:17 +01:00
s-pace
e517eb0599 use inputs instead of input 2018-11-02 09:47:38 +01:00
s-pace
04a4470e92 update getInputFromSelector 2018-11-02 09:45:28 +01:00
s-pace
12a64cb365 better a tags handling for result 2018-11-02 09:42:43 +01:00
s-pace
99d69e6ee1 svg footer 2018-11-02 09:36:57 +01:00
s-pace
9e80e72db7 change args.inputSelector as a string 2018-11-02 09:30:05 +01:00
Tim Carry
afa72ddd65
better use of aria
Co-Authored-By: s-pace <sylvain.pace@algolia.com>
2018-11-02 08:14:06 +01:00
s-pace
b8c55699ef adding multi input feature closes #230 2018-11-01 22:50:00 +01:00
s-pace
16790f903e removing handleSelected properly, make sure backward compatibility 2018-11-01 22:23:05 +01:00
s-pace
9c6ef3d6a0 avoid issue with scss 2018-11-01 22:09:51 +01:00
s-pace
a62d19cb3b Using a tags to have cmd + click feature and URL preview, fix highlighting in lvl1 & lvl0 2018-11-01 21:53:17 +01:00
s-pace
71fd398044 simple eslint reformat 2018-11-01 14:51:21 +01:00
Tim Carry
f9099dcb3c
chore(lint): Remove .js extension from imports (#483)
ESLint was complaining about having trailing .js extensions in imports
and suggesting removing them as they are the default.
2018-10-05 12:52:39 +02:00
Pixelastic
b53d269bfe Update CONTRIBUTING and fix tests 2018-08-20 13:24:55 +02:00
renovate[bot]
e998849462 chore(deps): update dependency file-loader to v1 (#297)
* chore(deps): update dependency file-loader to v1

* installing missing package stack-utils

* adding requested request package

* adding requested jest package

* fixing test

* freezing outdated tests => TODO
2018-07-31 16:23:38 +02:00
Olivier Tassinari
148a2d2a55 remove duplicated "padding: 0;" (#280) 2018-04-24 16:30:30 +02:00
Sylvain Pace
498675f9a3
Revert "Revert "doc(site): Fixed typos (#277)" (#278)" (#279)
This reverts commit 883894f963.
2018-03-12 16:19:09 +01:00
Sylvain Pace
883894f963
Revert "doc(site): Fixed typos (#277)" (#278)
This reverts commit d3f0aaca85.
2018-03-11 21:17:19 +01:00
Pascal Borreli
d3f0aaca85 doc(site): Fixed typos (#277) 2018-03-11 21:01:45 +01:00
vvo
fb9c47b5ed v2.5.2
<a name="2.5.2"></a>
## [2.5.2](https://github.com/algolia/docsearch/compare/v2.5.1...v2.5.2) (2017-12-07)
2017-12-07 13:16:02 +01:00
vvo
660a3819ba v2.5.1
<a name="2.5.1"></a>
## [2.5.1](https://github.com/algolia/docsearch/compare/v2.5.0...v2.5.1) (2017-11-28)
2017-11-28 17:26:06 +01:00
Maxime
23d7a52f69 v2.5.0
<a name="2.5.0"></a>
# [2.5.0](https://github.com/algolia/docsearch/compare/v2.4.1...v2.5.0) (2017-11-28)

### Bug Fixes

* **autocompleteOptions:** allow cssClasses options ([#246](https://github.com/algolia/docsearch/issues/246)) ([6de70c3](https://github.com/algolia/docsearch/commit/6de70c3))

### Features

* **global:** Add responsive feature to the dropdown ([777d2d4](https://github.com/algolia/docsearch/commit/777d2d4))
2017-11-28 17:01:09 +01:00
Sylvain Pace
777d2d4511 feat(global): Add responsive feature to the dropdown
keep sub level (div.algolia-docsearch-suggestion--subcategory-column)
2017-11-28 16:57:45 +01:00
David Öhlin
6de70c3e7f fix(autocompleteOptions): allow cssClasses options (#246) 2017-11-27 10:19:22 +01:00
Vincent Voyer
5afc05ecd2 chore(cleaning): upgrade all deps, prepare renovate (#206) 2017-10-18 00:43:51 +02:00
Maxime
320157b1a5 v2.4.1
<a name="2.4.1"></a>
## [2.4.1](https://github.com/algolia/docsearch/compare/v2.4.0...v2.4.1) (2017-08-08)
2017-08-08 11:43:34 -07:00
Maxime
f8cada1429 Merge branch 'develop' 2017-08-08 11:42:44 -07:00
Maxime
32df487df0 v2.4.0
<a name="2.4.0"></a>
# [2.4.0](https://github.com/algolia/docsearch/compare/v2.3.3...v2.4.0) (2017-08-08)
2017-08-08 10:26:45 -07:00
Maxime
5f69d42677 add queryHook argument 2017-08-08 10:15:39 -07:00
vvo
81b9e45428 v2.3.3
<a name="2.3.3"></a>
## [2.3.3](https://github.com/algolia/docsearch/compare/v2.3.2...v2.3.3) (2017-03-27)

### Bug Fixes

* **build:** fix badly handled webpack upgrade ([3cbfbb1](https://github.com/algolia/docsearch/commit/3cbfbb1))
2017-03-27 18:31:25 +02:00