@ordergroove/offers 2.22.0 → 2.23.1-alpha-PR-542-26.68

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 (59) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/build.js +5 -0
  3. package/dist/bundle-report.html +220 -63
  4. package/dist/examples.js +385 -1885
  5. package/dist/examples.js.map +7 -1
  6. package/dist/offers.js +251 -214
  7. package/dist/offers.js.map +7 -1
  8. package/examples/index.html +3 -0
  9. package/examples/index.js +4 -4
  10. package/karma-functional.conf.js +12 -10
  11. package/karma.conf.js +20 -10
  12. package/package.json +7 -11
  13. package/src/{_tests_ → __tests__}/offers.spec.js +3 -5
  14. package/src/__tests__/test-mode.spec.js +16 -0
  15. package/src/components/FrequencyStatus.js +2 -2
  16. package/src/components/IncentiveText.js +1 -1
  17. package/src/components/Offer.js +11 -14
  18. package/src/components/OptinButton.js +2 -5
  19. package/src/components/OptinSelect.js +2 -2
  20. package/src/components/OptinToggle.js +1 -4
  21. package/src/components/OptoutButton.js +1 -4
  22. package/src/components/SelectFrequency.js +4 -8
  23. package/src/components/UpsellButton.js +2 -5
  24. package/src/components/UpsellModal.js +6 -10
  25. package/src/components/__tests__/FrequencyStatus.spec.js +33 -38
  26. package/src/components/__tests__/IncentiveText.spec.js +1 -1
  27. package/src/components/__tests__/Modal.spec.js +1 -1
  28. package/src/components/__tests__/NextUpcomingOrder.spec.js +1 -1
  29. package/src/components/__tests__/Offer.spec.js +5 -7
  30. package/src/components/__tests__/OptinButton.spec.js +1 -1
  31. package/src/components/__tests__/OptinSelect.spec.js +1 -1
  32. package/src/components/__tests__/OptinStatus.spec.js +1 -1
  33. package/src/components/__tests__/Select.spec.js +1 -1
  34. package/src/components/__tests__/SelectFrequency.spec.js +17 -6
  35. package/src/components/__tests__/Text.spec.js +1 -1
  36. package/src/components/__tests__/Tooltip.spec.js +1 -1
  37. package/src/components/__tests__/UpsellButton.spec.js +4 -6
  38. package/src/components/__tests__/When.spec.js +1 -1
  39. package/src/core/__tests__/api.spec.js +10 -3
  40. package/src/core/__tests__/base.spec.js +12 -2
  41. package/src/core/__tests__/reducer.spec.js +1 -1
  42. package/src/core/actions.js +9 -6
  43. package/src/core/adapters.js +3 -3
  44. package/src/core/api.js +4 -1
  45. package/src/core/base.js +6 -8
  46. package/src/core/localStorage.js +1 -1
  47. package/src/core/middleware.js +9 -7
  48. package/src/core/selectors.js +19 -33
  49. package/src/index.js +20 -5
  50. package/src/init-func-tests.js +1 -2
  51. package/src/init-test.js +3 -0
  52. package/src/test-mode.js +5 -3
  53. package/dist/index.html +0 -125
  54. package/dist/offers-preview-mode.bundle.js +0 -2
  55. package/dist/offers-preview-mode.bundle.js.map +0 -1
  56. package/dist/offers-test-mode.bundle.js +0 -100
  57. package/dist/offers-test-mode.bundle.js.map +0 -1
  58. package/src/_tests_/test-mode.spec.js +0 -15
  59. package/webpack.config.js +0 -43
package/CHANGELOG.md CHANGED
@@ -3,6 +3,23 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.23.0](https://github.com/ordergroove/plush-toys/compare/@ordergroove/offers@2.22.0...@ordergroove/offers@2.23.0) (2021-11-16)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Small code issue prevent build to pass ([c51bc2f](https://github.com/ordergroove/plush-toys/commit/c51bc2fa0d6a955e97157861f12fad7a882d7a37))
12
+ * **offers:** Performance prevent setTemplate called many times ([dbc6d5e](https://github.com/ordergroove/plush-toys/commit/dbc6d5e9450fc92d57f7bd052a8070ca5f2d2c55))
13
+
14
+
15
+ ### Features
16
+
17
+ * **offers:** Prefetch offer request if og_settings.product is set ([c86d723](https://github.com/ordergroove/plush-toys/commit/c86d7238d211ccf513117d216897a26d73952295))
18
+
19
+
20
+
21
+
22
+
6
23
  # [2.22.0](https://github.com/ordergroove/plush-toys/compare/@ordergroove/offers@2.21.7...@ordergroove/offers@2.22.0) (2021-10-26)
7
24
 
8
25
 
package/build.js ADDED
@@ -0,0 +1,5 @@
1
+ require('../../build-tools')('offers', 'src/index.js', {
2
+ entryPoints: {
3
+ examples: 'examples/index.js'
4
+ }
5
+ });