@wayke-se/components-react 3.0.0-beta.9 → 3.1.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/README.md +12 -3
  2. package/dist-node/index.js +3233 -1031
  3. package/dist-node/index.js.map +1 -1
  4. package/dist-src/State/CentralStorage/useCentralStorage.js +7 -8
  5. package/dist-src/State/Path/PathProvider.js +1 -1
  6. package/dist-src/State/RelatedSearch/RelatedSearchProvider.js +1 -1
  7. package/dist-src/State/Search/SearchProvider.js +7 -10
  8. package/dist-src/components/ActionList/index.js +2 -3
  9. package/dist-src/components/Checklist/index.js +1 -1
  10. package/dist-src/components/ExtendContent/index.js +1 -1
  11. package/dist-src/components/Filter/index.js +10 -7
  12. package/dist-src/components/FilterPanel/checkListFacet.js +1 -1
  13. package/dist-src/components/FilterPanel/colorFacet.js +1 -1
  14. package/dist-src/components/FilterPanel/index.js +1 -1
  15. package/dist-src/components/FilterPanel/rangeFacet.js +14 -16
  16. package/dist-src/components/FinancialOptions/LoanModal.js +27 -29
  17. package/dist-src/components/FinancialOptions/leasing.js +6 -6
  18. package/dist-src/components/FinancialOptions/loan.js +5 -6
  19. package/dist-src/components/Gallery/index.js +11 -16
  20. package/dist-src/components/Grid/index.js +19 -5
  21. package/dist-src/components/InputSelect/index.js +1 -1
  22. package/dist-src/components/InsuranceOptions/InsuranceFree.js +1 -2
  23. package/dist-src/components/InsuranceOptions/InsuranceFreeModal.js +4 -5
  24. package/dist-src/components/InsuranceOptions/InsuranceModal.js +3 -3
  25. package/dist-src/components/Lightbox/index.js +1 -1
  26. package/dist-src/components/OpeningHours/index.js +9 -9
  27. package/dist-src/components/ProductCard/index.js +6 -3
  28. package/dist-src/components/RangeSlider/SliderWithLabel.js +1 -1
  29. package/dist-src/components/Result/index.js +7 -6
  30. package/dist-src/components/Video/EmbededVideo.js +1 -1
  31. package/dist-src/components/Video/QuickNavEmbeded.js +2 -2
  32. package/dist-src/components/Video/useThumbnail.js +1 -1
  33. package/dist-src/components/Video/utils.js +2 -2
  34. package/dist-src/hooks/useFetch.js +1 -1
  35. package/dist-src/hooks/useVimeoThumbnail.js +1 -1
  36. package/dist-src/layouts/searchItem/Branch.js +9 -10
  37. package/dist-src/layouts/searchItem/BranchModal.js +1 -1
  38. package/dist-src/layouts/searchItem/CheckList.js +16 -16
  39. package/dist-src/layouts/searchItem/ManufacturerPackagesOption.js +1 -2
  40. package/dist-src/layouts/searchItem/PackageOptionModal.js +7 -10
  41. package/dist-src/layouts/searchItem/PackageOptions.js +11 -14
  42. package/dist-src/layouts/searchItem/Property.js +4 -6
  43. package/dist-src/layouts/searchItem/Related.js +5 -6
  44. package/dist-src/layouts/searchItem/index.js +15 -17
  45. package/dist-src/utils/phonenumbers.js +1 -1
  46. package/dist-src/utils/regex.js +1 -1
  47. package/dist-src/utils/specification.js +9 -13
  48. package/dist-src/utils/vehicle-properties/property-tree-creator.js +5 -5
  49. package/dist-types/components/InputSearch/index.d.ts +5 -3
  50. package/dist-types/components/RangeSlider/handle.d.ts +2 -2
  51. package/dist-types/components/RangeSlider/track.d.ts +2 -2
  52. package/dist-web/index.js +232 -241
  53. package/dist-web/index.js.map +1 -1
  54. package/package.json +18 -24
package/README.md CHANGED
@@ -69,9 +69,18 @@ const ProviderSettings: WaykeProviderSettings = {
69
69
 
70
70
  ### WaykeComposite uses hash-route, i want to use path-route
71
71
 
72
- In this case you need to make sure that you are in control of the routing where same html file is
72
+ In this case you need to make sure that you are in control of the routing, if the user reloads the page, where same html file is
73
73
  served for `/your/path/to/this/component` and `/your/path/to/this/component/00000000-0000-0000-0000-000000000000`.
74
74
 
75
+ Examples given the application is located in `/search/vehicles`:
76
+
77
+ 1) pathRoute is `/search/vehicles` => `//yoursite.com/search/vehicles/00000000-0000-0000-0000-000000000000`
78
+ 2) pathRoute is `/item` => `//yoursite.com/item/00000000-0000-0000-0000-000000000000`
79
+ 3) pathRoute is `/a/b` => `//yoursite.com/a/b/00000000-0000-0000-0000-000000000000`
80
+ 4) pathRoute is `item` => `//yoursite.com/search/item/00000000-0000-0000-0000-000000000000`
81
+ 5) pathRoute is `a/b` => `//yoursite.com/search/a/b/00000000-0000-0000-0000-000000000000`
82
+ 6) pathRoute is `https://www.wayke.se/objekt` => `https://www.wayke.se/objekt/00000000-0000-0000-0000-000000000000`
83
+
75
84
  ```javascript
76
85
  import React from 'react';
77
86
  import { WaykeCompositePath } from '@wayke-se/components-react'
@@ -160,7 +169,7 @@ const App = ({}) => {
160
169
  * Required
161
170
  * `id` - Guid that represents a vehicle.
162
171
  * Optional
163
- * `pathRoute` - If set to true, then if a item is clicked it will append /{pathRoute}/guid to the url.
172
+ * `pathRoute` - If set, then if a item is clicked it will use the provided url and append the guid. Supports both relative and absolute.
164
173
  * `hashRoute` - If set to true, then if a item is clicked it will append #guid to the url (is not used if `pathRoute` is set).
165
174
  * `disableResetScrollOnInit` - Loading the item page resets the scroll, here it's possible to disable it.
166
175
  * `placeholderImage` - Provide custom placeholder image when image is missing.
@@ -181,7 +190,7 @@ const App = ({}) => {
181
190
  | modifyDocumentTitleSearch | string | |
182
191
 
183
192
  * Optional
184
- * `pathRoute` - If set to true, then if a item is clicked it will append /guid to the url.
193
+ * `pathRoute` - If set, then if a item is clicked it will use the provided url and append the guid. Supports both relative and absolute.
185
194
  * `hashRoute` - If set to true, then if a item is clicked it will append #guid to the url (is not used if `pathRoute` is set).
186
195
  * `filterList` - Select what filters that should be visible and in whiched order, drivingWheel, price, mileage, modelYear
187
196
  * `initialQueryParams` - Set the default filter that should be applid upon init.