Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
211 commits
Select commit Hold shift + click to select a range
cee98c9
feat(props): Add onError callback prop
cburbank Jan 15, 2017
c7b320a
feat(props): Add clearItemsOnError prop
cburbank Jan 15, 2017
a632d6c
Merge pull request #12 from cburbank/onerror-callback
hibiken Jan 22, 2017
60bb5e7
Add npm scripts postpublish and deploy for publishing Github Page
hibiken Dec 30, 2016
b20c199
chore(demo): Change input styles in Demo
hibiken Feb 4, 2017
892d787
chore(demo): Remove jumbotron in Demo
hibiken Feb 4, 2017
15d0e8d
chore(demo): Change loader in Demo
hibiken Feb 4, 2017
6e9f33b
chore(demo): Add Fork me on Github ribbon
hibiken Feb 4, 2017
6daffd3
chore(demo): Change background to very light grayish white
hibiken Feb 4, 2017
63887bf
feat(autocomplete): Allow esc key to clear autocomplete dropdown
hibiken Feb 4, 2017
ef9950d
Merge pull request #17 from kenny-hibino/feature/esc-key
hibiken Feb 4, 2017
382c460
chore(defaultStyles): Extract default styles to a separate file
hibiken Feb 4, 2017
924a8de
feat(autocompleteItem): Allow custom autocompleteItem to use formatte…
hibiken Feb 4, 2017
68bb3c0
docs(readme): Update readme to document `formattedSuggestion` key in …
hibiken Feb 4, 2017
47f9398
chore(demo): Update AutocompleteItem to use formatted suggestion
hibiken Feb 4, 2017
7f7aed3
chore(readme): Fix syntax error in readme example
hibiken Feb 5, 2017
2e4b172
feat(placeId): Allow user to use placeId
hibiken Feb 5, 2017
b4e9965
Merge pull request #18 from kenny-hibino/feature/place-id
hibiken Feb 5, 2017
a69722b
feat(geocode): Provide entire results from Google API through geocode…
hibiken Feb 5, 2017
33e8357
Merge pull request #19 from kenny-hibino/feature/geocodeByAddress-update
hibiken Feb 5, 2017
5e0593d
feat(props): Remove children prop
hibiken Feb 7, 2017
8af33df
Merge pull request #22 from kenny-hibino/fix/children-props
hibiken Feb 7, 2017
5de1aad
chore(readme): Update readme
hibiken Feb 7, 2017
5910c8c
feat(props): Add onEnterKeyDown props
hibiken Feb 10, 2017
3f3f471
feat(onBlur): Clear autocomplete on blur event
hibiken Feb 10, 2017
f527e58
Merge pull request #25 from kenny-hibino/feature/onEnterKeyDown
hibiken Feb 10, 2017
80a647f
Fix address selection on click
Feb 10, 2017
3f06b50
fix(onBlur): Remove onBlur handler
hibiken Feb 10, 2017
1ac22a4
Merge pull request #27 from fewlinesco/master
hibiken Feb 10, 2017
e62b068
Fix onBlur
hibiken Feb 10, 2017
2b0bb92
refactor(overlay): Remove overlay div
hibiken Feb 11, 2017
9de81f3
chore(misc): Add comment for licensing
hibiken Feb 12, 2017
324def4
feat(label): Remove label element from the component
hibiken Feb 12, 2017
9e04fb8
feat(props): Add inputName prop
hibiken Mar 4, 2017
f444531
Merge pull request #33 from kenny-hibino/feature/name-prop
hibiken Mar 4, 2017
eb99b75
feat(typeAhead): Add soft autocomplete feature and allow user to conf…
hibiken Mar 5, 2017
5b58d2d
Merge pull request #34 from kenny-hibino/feature/airbnb-style-soft-au…
hibiken Mar 5, 2017
8a5ef83
fix(typeAhead): Disable typeAhead feature in mobile browser due to Re…
hibiken Mar 6, 2017
249b994
fix(typeAhead): Fix keydown event handler
hibiken Mar 7, 2017
b2c1ad6
Merge pull request #36 from kenny-hibino/fix/typeAhead
hibiken Mar 7, 2017
1be2036
fix(typeAhead): Deal with Selection on Keydown event
hibiken Mar 8, 2017
bd3d87f
fix(typeAhead): Fix typeAhead Keydown event handler
hibiken Mar 9, 2017
5422887
fix(cursor): Prevent cursor from moving when Up or Down key is pressed
hibiken Mar 12, 2017
8e842b8
style(naming): Rename functions to not to use leading underscore
hibiken Mar 12, 2017
95daa4f
feat(prop): Allow user to pass id for input field
hibiken Mar 15, 2017
69005a4
Merge pull request #46 from kenny-hibino/feature/inputId
hibiken Mar 15, 2017
6a0f5e6
fix(typeAhead): Set typeAhead default value to false and state that i…
hibiken Mar 16, 2017
711d816
fix(keyboard-event-handler): Fix keydown event handler when no autoco…
hibiken Apr 5, 2017
45d379a
Merge pull request #53 from kenny-hibino/fix/down-key-no-suggestion
hibiken Apr 5, 2017
ea88da2
Changed the hardcoded React version to ^15.0.0
Apr 6, 2017
09bd5c4
Merge pull request #54 from goooseman/react-version-patch
hibiken Apr 6, 2017
f503ba8
chore(render): Refactor render function
hibiken Apr 8, 2017
d891049
fix(styling): Allow for easy overrides with classNames and styles props
hibiken Apr 8, 2017
86f6e9f
Merge pull request #55 from kenny-hibino/feature/style-classNames-ove…
hibiken Apr 8, 2017
db63d3e
feat(props): Add inputProps to allow user to pass arbitrary props to …
hibiken Apr 15, 2017
8580c42
Merge pull request #60 from kenny-hibino/feature/inputProps
hibiken Apr 15, 2017
7be6eeb
chore(demo): Update Demo
hibiken Apr 15, 2017
e3b94c5
chore(readme): Update readme
hibiken Apr 17, 2017
259356e
chore(deps): add prop-types package and update to react ^15.3.0
Apr 18, 2017
14e0fa9
Merge pull request #63 from bvellek/prop-types
hibiken Apr 21, 2017
a9d1a96
chore(error-handling): Show meaningful error message when Google Maps…
hibiken Apr 23, 2017
ea5814f
Merge pull request #66 from kenny-hibino/feature/google-not-loaded-error
hibiken Apr 23, 2017
6caf269
docs(installation): Add yarn installation instruction to README
hibiken Apr 23, 2017
bbcfa65
docs(contributing): Add CONTRIBUTING.md
hibiken Apr 30, 2017
1c7f0e8
feat(utilities): Add Promise support to geocoding functions
hibiken May 13, 2017
df1fcdc
Merge pull request #76 from kenny-hibino/feature/promise-support
hibiken May 13, 2017
658701e
docs(readme): Update readme
hibiken May 13, 2017
d14dd4c
feat(props): Add debounce prop to allow user to set the number of mil…
hibiken May 19, 2017
7919d53
Merge pull request #81 from kenny-hibino/feature/debounce
hibiken May 19, 2017
2266597
fix(EnterKeyHandler): Fix bug related to onEnterKeyDown
hibiken May 19, 2017
7763aef
docs(readme): Update readme
hibiken May 19, 2017
56c5d1b
feat(prop): Add highlightFirstSuggestion prop
hibiken May 27, 2017
71b8926
Merge pull request #86 from kenny-hibino/feature/highlightFirstSugges…
hibiken May 27, 2017
8a68168
fix(google-api): Fix error thrown by Google API when sending request …
hibiken Jun 8, 2017
499c1a9
Merge pull request #89 from kenny-hibino/fix/missing-parameter-error
hibiken Jun 8, 2017
0e8f89f
chore(typo): Fix typo
hibiken Jul 21, 2017
e53cf33
feat(autocomplete dropdown): add toggleable "powered by Google" to au…
jmlag Jul 31, 2017
6ec49fc
Update PlacesAutocomplete.js
jmlag Aug 1, 2017
502eda2
fix(eventhandler): fixed touch handling
AlexandreKilian Aug 2, 2017
c3b3496
Merge pull request #93 from AlexandreKilian/master
hibiken Aug 2, 2017
3f376b0
docs(readme): Fix typo
hibiken Aug 5, 2017
d799cf1
fix(eventhandler): fixed touch handling
AlexandreKilian Aug 2, 2017
9c60821
docs(readme): Fix typo
hibiken Aug 5, 2017
17e04f8
chore(webpack): Add support for image files
hibiken Aug 5, 2017
ba2cb88
refactor(googleLogo): Allow user to customize styles for google logo
hibiken Aug 5, 2017
d29ac07
refactor(googleLogo): Allow user to pick the right theme for Google l…
hibiken Aug 5, 2017
32b2444
chore(webpack): Use default settings for image-webpack-loader
hibiken Aug 5, 2017
b8bff34
Merge branch 'jmlag-add-google-logo'
hibiken Aug 5, 2017
7de34b2
5.4.1
hibiken Aug 8, 2017
598d1f8
chore(script): Fix postpublish npm script
hibiken Aug 8, 2017
95d08e0
fix(input): Add default autocomplete='off' to input element
hibiken Aug 8, 2017
3acffa7
Merge pull request #108 from kenny-hibino/fix/autocomplete-default
hibiken Aug 8, 2017
47d8c6e
5.4.2
hibiken Aug 8, 2017
bfbbe85
chore(deps): Remove react from dependencies and move it to peerDepend…
hibiken Sep 3, 2017
8e5957b
Merge pull request #116 from kenny-hibino/fix/react-dependency
hibiken Sep 3, 2017
b30df64
v5.4.3
hibiken Dec 16, 2017
25507f6
refactor(cleanup): Minor code cleanup
hibiken Dec 16, 2017
5b38a9a
Merge pull request #144 from kenny-hibino/fix/minor-fixes
hibiken Dec 16, 2017
b42ede7
feat(Allow user to pass footer component as a prop): Added `renderFoo…
hibiken Jan 5, 2018
2dfd625
refactor(props): Rename `autocompleteItem` prop to `renderSuggestion`…
hibiken Jan 5, 2018
ad61907
feat(prop) Add shouldFetchSuggestions prop
hibiken Jan 7, 2018
9b693f6
Rename clearItemsOnError to clearSuggestionsOnError
hibiken Jan 8, 2018
dd7277a
Merge pull request #151 from kenny-hibino/feature/footer-prop
hibiken Jan 8, 2018
157cd3c
v6.0.0-beta.0
hibiken Jan 8, 2018
428983f
feat(prop) Allow user to clear suggestions using `onError` prop
hibiken Jan 9, 2018
64b2dee
Merge pull request #153 from kenny-hibino/feature/onError-prop
hibiken Jan 9, 2018
92ccac4
v6.0.0-beta.1
hibiken Jan 9, 2018
4627a63
chore(tooling): Add pettier package and script for code formatting
hibiken Jan 12, 2018
70eae87
style(formatting): Format code with perttier script
hibiken Jan 12, 2018
98d6116
Merge pull request #156 from kenny-hibino/chore/code-formatting
hibiken Jan 12, 2018
df481fc
docs(readme): Update README
hibiken Jan 16, 2018
94ab3d0
v6.0.0
hibiken Jan 16, 2018
ef4dc46
fix($browser): Added e.preventDefault() to AutoCompleteItem touch event
spykr Sep 18, 2017
e877ed9
Merge branch 'spykr-master'
hibiken Jan 17, 2018
900c28f
v6.0.1
hibiken Jan 17, 2018
1ead2c3
Add closing tags to renderFooter example
JonAbrams Jan 17, 2018
19923a0
Merge pull request #157 from JonAbrams/patch-1
hibiken Jan 17, 2018
6e73b11
v6.0.2
hibiken Jan 18, 2018
1e261c7
save and include later in autocomplete original input value
markph1990 Dec 8, 2017
f7a88ad
add test cases for saveOriginalValue prop
markph1990 Dec 8, 2017
c64f3ab
add description in readme for saveOriginalValue prop
markph1990 Dec 8, 2017
fac72e0
make `saveOriginal` prop default behaviour
markph1990 Feb 3, 2018
c9b98f8
feat(inputValue): Save user input value and display it when no items …
hibiken Feb 4, 2018
c012747
chore(prettier): Run code formatter
hibiken Feb 4, 2018
f9f7606
Merge pull request #164 from markph1990/feature/include-original-valu…
hibiken Feb 4, 2018
a641561
v6.1.0
hibiken Feb 4, 2018
ed5e2d9
chore(demo): Refactor Demo
hibiken Feb 8, 2018
990d9fd
Merge pull request #169 from kenny-hibino/demo-update
hibiken Feb 8, 2018
193a449
fix(mobile): Fix mobile scroll touch event handler
hibiken Feb 10, 2018
fec0faa
Merge pull request #170 from kenny-hibino/fix/mobile-scoll
hibiken Feb 10, 2018
e42bed1
v6.1.1
hibiken Feb 10, 2018
14f8c90
fix(browser): Fix issue with dragging suggestion
hibiken Feb 12, 2018
6ba1d87
Merge pull request #171 from kenny-hibino/fix/suggestion-drag
hibiken Feb 12, 2018
6b421be
v6.1.2
hibiken Feb 12, 2018
ef5a222
Add CodeTriage badge to kenny-hibino/react-places-autocomplete
codetriage-readme-bot Feb 12, 2018
f63547a
Merge pull request #172 from codetriage-readme-bot/codetriage-badge
hibiken Feb 12, 2018
5e96eb7
fix(wai-aria): Make sure WAI-ARIA complicance
hibiken Mar 4, 2018
142a872
docs(readme): Update readme features section
hibiken Mar 4, 2018
cf7b60f
Merge pull request #176 from kenny-hibino/feature/wai-aria-complicance
hibiken Mar 4, 2018
437113d
v6.1.3
hibiken Mar 4, 2018
d7f7bb5
Create ISSUE_TEMPLATE.md
hibiken Mar 4, 2018
8189652
docs(github): Add templates for Github issues and pull requests
hibiken Mar 4, 2018
4eef2bb
chore(eslint): Add eslint as a dev dependency
hibiken Mar 11, 2018
b8f0305
chore(lockfile): Add package-lock.json
hibiken Mar 11, 2018
1bb0f36
chore(-format): Use semicolons
hibiken Mar 11, 2018
e245263
chore(eslint): Add eslint-plugin-react
hibiken Mar 11, 2018
1688859
chore(format): Fix ESlint errors
hibiken Mar 11, 2018
697134a
chore(format): Configure prettier and eslint to work together
hibiken Mar 11, 2018
b630322
Merge pull request #179 from kenny-hibino/chore/eslint-setup
hibiken Mar 11, 2018
cc8c65f
Start developing v.7
hibiken Mar 21, 2018
97902dd
Update tests to use jest
hibiken Mar 25, 2018
6441dc9
Add jest test snapshots
hibiken Mar 25, 2018
de46915
Restructure tests folder
hibiken Mar 25, 2018
81ec6c5
Update initial render test
hibiken Mar 25, 2018
ab1f34a
Add children prop test
hibiken Mar 25, 2018
1e179ef
Add test for helper functions
hibiken Mar 25, 2018
5d5e45b
Add test for util functions
hibiken Mar 26, 2018
2650813
Add test coverage script
hibiken Mar 27, 2018
5c3e801
Install enzyme as dev dependency
hibiken Mar 27, 2018
0318a7b
Update jest configuration
hibiken Mar 27, 2018
c1d0bd1
Update test snapshots with enzyme-to-json serializer
hibiken Mar 27, 2018
4225445
Remove globally defined functions in tests
hibiken Mar 27, 2018
6493b9e
Uninstall stale dev dependencies
hibiken Mar 27, 2018
6657918
Update aria-attributes
hibiken Mar 27, 2018
385416a
Add more initial render tests
hibiken Mar 28, 2018
7c32a77
Include id, matchedSubstrings, terms, types in suggestions
hibiken Mar 29, 2018
5381634
Add clear button in demo
hibiken Mar 29, 2018
26ecce0
Add test for onChange prop
hibiken Mar 29, 2018
9f6d5c1
Add tests for keyboard event handlers
hibiken Mar 30, 2018
427555e
Use suggesion.id for key
hibiken Mar 30, 2018
3d50f88
Add more tests
hibiken Mar 30, 2018
7609377
Change travis CI config
hibiken Mar 30, 2018
d90439e
Update readme
hibiken Mar 31, 2018
66fe0d7
Add tests for mouse event handlers
hibiken Apr 1, 2018
8d9028a
Add tests for onSelect prop
hibiken Apr 1, 2018
d4508e6
Update readme example
hibiken Apr 1, 2018
0b1a12a
Fix test setup file
hibiken Apr 1, 2018
0311c95
Update readme
hibiken Apr 8, 2018
d1cbc5e
Update demo SearchBar component
hibiken Apr 8, 2018
ac81e78
Update readme
hibiken Apr 8, 2018
2cc448d
Update demo SearchBar component
hibiken Apr 12, 2018
c22c3b8
Run prettier
hibiken Apr 13, 2018
14bd850
Add footer to dropdown in Demo
hibiken Apr 14, 2018
6628ce3
Add prepublish script
hibiken Apr 16, 2018
e49e33c
Merge pull request #188 from kenny-hibino/feature/v7
hibiken Apr 16, 2018
3ddbedb
v7.0.0
hibiken Apr 16, 2018
dab7533
Run prettier
hibiken Apr 16, 2018
4f9d628
Add classnames helper to demo
hibiken Apr 16, 2018
2a6550f
Compose event handler functions in suggestion item
hibiken Apr 16, 2018
2fc1229
Merge pull request #193 from kenny-hibino/fix/refactor-and-cleanup
hibiken Apr 16, 2018
cca5f04
v7.0.1
hibiken Apr 16, 2018
e111669
Add googleCallbackName prop to enable async mode
hibiken Apr 24, 2018
00bb41f
Update readme
hibiken Apr 26, 2018
fdd0992
Merge pull request #199 from kenny-hibino/feature/async-load
hibiken Apr 26, 2018
85ca2a5
v7.1.1
hibiken Apr 26, 2018
40fa9bb
Fix handler for select event
hibiken May 27, 2018
6274798
Fix demo app's select handler function
hibiken May 27, 2018
8eb6710
Merge pull request #206 from kenny-hibino/fix/onSelect-handler
hibiken May 27, 2018
b053aaf
v7.1.2
hibiken May 27, 2018
bb6d3f8
Fixup
XieX Jun 7, 2018
ac7acfc
Merge pull request #207 from XieX/patch-1
hibiken Jun 7, 2018
f25dcc7
add loading property to render prop
jruhland Jun 20, 2018
8321646
Merge pull request #214 from jruhland/add-loading-prop
hibiken Jun 26, 2018
830457b
update README.md with loading prop
jruhland Jun 26, 2018
7d569f9
Merge pull request #216 from jruhland/update-docs-with-loading
hibiken Jun 26, 2018
ee2c2ed
Fix readme link
hibiken Jun 26, 2018
ff53215
v7.2.0
hibiken Jun 26, 2018
3a3576f
react upgrade changes
Aug 8, 2018
c4c8ba9
fix second commit
Aug 9, 2018
9b6999c
build
Aug 9, 2018
27809aa
fix gitignore merge conflict and run build
keithrobichaud Aug 9, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"env": {
"development": {
"presets": ["env", "stage-0", "react"],
"plugins": ["transform-class-properties"]
},
"test": {
"presets": ["env", "stage-0", "react"],
"plugins": ["transform-class-properties"]
},
"production": {
"presets": ["env", "stage-0", "react"],
"plugins": [
[
"transform-react-remove-prop-types", {
"mode": "wrap"
}
]
]
}
}
}
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
dist/
demo/dist/
**/*.min.js
coverage/
45 changes: 45 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"env": {
"browser": true,
"es6": true,
"node": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"prettier",
"prettier/react"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react",
"prettier"
],
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"prettier/prettier": "error"
}
}
9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
**Do you want to request a *feature* or report a *bug*?**

**What is the current behavior?**

**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.**

**What is the expected behavior?**

**Which versions of ReactPlacesAutocomplete, and which browser / OS are affected by this issue?**
18 changes: 18 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
*Before* submitting a pull request, please make sure the following is done...

1. Fork the repo and create your branch from `master`.
2. If you've added code that should be tested, add tests!
3. If you've changed APIs, update the documentation.
4. Ensure that:
* The test suite passes (`npm test`)
* Write formatted git commits by using `npm run commit`

Please use the simple form below as a guideline for describing your pull request.

Thanks for contributing!

-

**Summary**

[...]
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
dist/
demo/dist/
package-lock.json
package.json
5 changes: 5 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"arrowParens": "avoid",
"singleQuote": true,
"trailingComma": "es5"
}
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@ cache:
notifications:
email: false
node_js:
- '4'
- '8'
before_install:
- npm i -g npm@^2.0.0
- npm i -g npm@^5.8.0
before_script:
- npm prune
script:
- npm run test
- npm run build
after_success:
- npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/
16 changes: 16 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## Development
* Fork this repo
* `npm run demo` will run the local dev server with the demo app on port 8080.
* `npm test` will run the tests.

## Git commits
This project is using `commitizen` for Git commits.
After adding all of your changes to the staging area, please run `npm run commit` to write the commit message.

Before creating a PR, please squash your commits for clean git commit history :octocat:.

## Documentation
Please update the README file with any API changes, the code and docs should always be in sync.

## Community
If you have any questions, please feel free to ask in our [Gitter channel](https://gitter.im/react-places-autocomplete/Lobby)!
Loading