François Chalifour
98ad14f2a6
chore(release): don't check for NODE_ENV to set banner
2020-08-26 15:40:59 +02:00
François Chalifour
326e9c0fba
chore: release v1.0.0-alpha.28 ( #76 )
2020-08-26 15:13:18 +02:00
François Chalifour
ffd0af969d
chore(css): add banners to DocSearch CSS bundles
2020-08-26 12:01:30 +02:00
François Chalifour
f00f740457
chore(build): add banner to all builds
2020-08-26 10:18:05 +02:00
François Chalifour
852d7e46b8
docs: update repository documentation
...
Closes #68
Closes #69
2020-08-25 14:18:33 +02:00
François Chalifour
a9f13dd080
fix(docsearch): remove data-cy attributes
2020-08-24 15:41:32 +02:00
François Chalifour
f9247b9cae
fix(docsearch): capture mousedown event to close modal
...
This doesn't close the modal when selecting the input text and finishing the selection outside of the modal.
See https://github.com/facebook/react-native-website/pull/2139#issuecomment-678330203
2020-08-21 19:01:51 +02:00
François Chalifour
1a0cbbfdbf
feat(docsearch): add enterkeyhint to go
2020-08-21 19:01:48 +02:00
François Chalifour
928b9ca7b8
fix(docsearch): allow a single instance to open
...
If a website uses two DocSearch instances (e.g., one for mobile and one for desktop), it resulted in a double modal being show when hitting `Ctrl + K`.
This is fixed by checking that the active DocSearch CSS class is not applied on `body` before opening the modal.
2020-08-21 14:30:58 +02:00
François Chalifour
9c1b04003a
fix(core): add type search to getInputProps
2020-08-19 17:57:09 +02:00
François Chalifour
4e059a2b81
chore: release v1.0.0-alpha.27 ( #67 )
2020-08-07 11:50:16 +02:00
François Chalifour
159ef8ba89
feat(docsearch): export DocSearch types
2020-08-07 11:29:51 +02:00
François Chalifour
b904ff6fc7
feat(docsearch): update missing results issue link
2020-08-06 19:02:04 +02:00
François Chalifour
57284e4beb
refactor(docsearch): type initial query
2020-08-06 12:20:17 +02:00
François Chalifour
960bf6e28e
chore: release v1.0.0-alpha.26 ( #64 )
2020-08-04 10:09:09 +02:00
François Chalifour
45cf5c325b
fix(docsearch): don't open modal on / when editing text
2020-08-04 10:04:00 +02:00
François Chalifour
78a0aa8a44
chore: release v1.0.0-alpha.25 ( #62 )
2020-07-30 13:34:00 +02:00
François Chalifour
4ea64b31aa
fix(docsearch): pass autoFocus prop to autocomplete for mobiles
2020-07-30 12:05:18 +02:00
François Chalifour
f75e1cc7a1
feat(docsearch): add aria-label to search button
2020-07-28 12:24:37 +02:00
François Chalifour
9e86687ce3
chore: release v1.0.0-alpha.24 ( #60 )
2020-07-23 11:12:11 +02:00
François Chalifour
ecda3d3da8
fix(docsearch): don't blur input on submit
2020-07-23 10:44:31 +02:00
François Chalifour
dfa63df4d0
fix(docsearch): focus input on Selection Search
2020-07-23 10:44:31 +02:00
François Chalifour
533f187ba9
chore: fix watch scripts
2020-07-22 17:32:50 +02:00
François Chalifour
6214ffc921
chore: release v1.0.0-alpha.23 ( #58 )
2020-07-22 11:09:44 +02:00
François Chalifour
26bc858de6
feat(DocSearch): add DocSearch CSS class to DocSearch elements
2020-07-22 10:36:51 +02:00
François Chalifour
8588b965e9
fix(docsearch): rename DocSearch-Button CSS class
2020-07-22 10:36:13 +02:00
François Chalifour
2b2cbcf984
chore(lint): sort imports
2020-07-21 11:01:02 +02:00
François Chalifour
145593a295
chore(build): update shared Rollup config
2020-07-21 10:42:58 +02:00
François Chalifour
5411367582
fix(website): memoize onInput callback
2020-07-20 15:45:27 +02:00
François Chalifour
00742f6711
refactor: fix "snippet" typoe
2020-07-20 15:37:29 +02:00
François Chalifour
81092060d5
feat(docsearch): support initialQuery
...
Closes #51
2020-07-20 15:36:56 +02:00
François Chalifour
1cec65bbe0
fix(search): hide content when `disableUserPersonalization
2020-07-20 11:40:00 +02:00
François Chalifour
a40cc0351e
feat(docsearch): introduce disableUserPersonalization API
2020-07-09 17:49:52 +02:00
François Chalifour
77daceeb23
chore: release v1.0.0-alpha.22 ( #57 )
2020-07-09 17:19:33 +02:00
François Chalifour
9a2188548c
feat(website): lazy load DocSearch styles
2020-07-09 12:15:04 +02:00
François Chalifour
79a972b520
feat(docsearch): track docsearch-react UA
2020-07-09 12:04:12 +02:00
François Chalifour
267c22f27f
feat(docsearch): attach docsearch.js user agent to vanilla renderer
2020-07-09 11:11:10 +02:00
François Chalifour
70b4de690d
feat(docsearch): introduce transformSearchClient API
...
`transformSearchClient` allows to attach user agents to the search client, to manipulate the cache, etc.
2020-07-09 11:10:44 +02:00
François Chalifour
a358695c25
feat(docsearch): introduce DocSearch.js v3 ( #56 )
2020-07-09 10:54:38 +02:00
François Chalifour
ae3c713ed4
refactor: remove unused API
2020-07-08 14:37:59 +02:00
François Chalifour
cf84a256a4
fix(docsearch): support initial query
2020-07-08 14:37:59 +02:00
François Chalifour
7eeb30bf22
chore: release v1.0.0-alpha.21 ( #55 )
2020-07-07 16:46:47 +02:00
François Chalifour
92e2565d45
feat(docsearch): support keyboard on focus on default integration
2020-07-07 15:04:57 +02:00
François Chalifour
2a00d3f3c0
refactor(docsearch): manage input focus with effects
...
The `autoFocus` prop is not standardize when coming from a component that gets mounted after the first page load.
Although this works with React, it does with Preact. This makes it work with both libraries.
2020-07-07 15:04:11 +02:00
François Chalifour
929b1c6a72
feat(docsearch): support typing query when search button is focused ( #54 )
2020-07-07 09:54:42 +02:00
Shipow
43ea3752fd
fix(css): firefox placeholder opacity
2020-07-04 23:29:45 +02:00
Shipow
1957f5ad5f
fix(css): don't display key shortcuts on mobile
2020-07-04 10:30:59 +02:00
François Chalifour
dde883ebe3
fix(docsearch): remove theme media query
2020-07-02 15:12:17 +02:00
Shipow
41e00c1985
Merge branch 'next' of https://github.com/francoischalifour/autocomplete.js into next
2020-07-01 17:42:33 +02:00
Shipow
422f683add
css(docsearch): split css + remove docusaurus variables
2020-07-01 17:42:28 +02:00