@mjhls/mjh-framework 1.0.977 → 1.0.979-ris-update-v1

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 (152) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +1 -2
  4. package/dist/cjs/AD300x250x600.js +1 -2
  5. package/dist/cjs/AD728x90.js +1 -2
  6. package/dist/cjs/ADFloatingFooter.js +1 -2
  7. package/dist/cjs/ADGutter.js +1 -2
  8. package/dist/cjs/ADSkyscraper.js +1 -2
  9. package/dist/cjs/ADSponsoredResources.js +1 -2
  10. package/dist/cjs/ADWebcast.js +1 -2
  11. package/dist/cjs/ADWelcome.js +1 -2
  12. package/dist/cjs/AdSlot.js +1 -2
  13. package/dist/cjs/AdSlotsProvider.js +1 -2
  14. package/dist/cjs/AlgoliaSearch.js +17 -14164
  15. package/dist/cjs/ArticleProgramLandingPage.js +2 -3
  16. package/dist/cjs/ArticleSeriesLandingPage.js +3 -4
  17. package/dist/cjs/ArticleSeriesListing.js +1 -2
  18. package/dist/cjs/AuthWrapper.js +29 -3
  19. package/dist/cjs/CMEDeck.js +1 -2
  20. package/dist/cjs/Column3.js +1 -2
  21. package/dist/cjs/ConferenceArticleCard.js +15 -15
  22. package/dist/cjs/ContentCardPaginated.js +3 -5
  23. package/dist/cjs/DeckContent.js +10 -11
  24. package/dist/cjs/DeckQueue.js +1 -2
  25. package/dist/cjs/DeckQueuePaginated.js +2 -4
  26. package/dist/cjs/{Dfp-9be904d5.js → Dfp-94f8ccdf.js} +1 -2
  27. package/dist/cjs/EventsDeck.js +17 -17
  28. package/dist/cjs/ExternalResources.js +2 -3
  29. package/dist/cjs/GridContent.js +3 -4
  30. package/dist/cjs/GridContentPaginated.js +4 -6
  31. package/dist/cjs/HamMagazine.js +9 -9
  32. package/dist/cjs/HealthCareProfessionalModal.js +1 -1
  33. package/dist/cjs/HorizontalArticleListing.js +2 -3
  34. package/dist/cjs/IssueLanding.js +33 -34
  35. package/dist/cjs/KMTracker.js +15 -15
  36. package/dist/cjs/LeftNav.js +1 -2
  37. package/dist/cjs/MasterDeck.js +11 -12
  38. package/dist/cjs/MasterDeckPaginated.js +12 -14
  39. package/dist/cjs/{MediaSeriesCard-5bf9813e.js → MediaSeriesCard-1a62916a.js} +384 -288
  40. package/dist/cjs/MediaSeriesLanding.js +10 -12
  41. package/dist/cjs/MediaSeriesLandingPaginated.js +11 -14
  42. package/dist/cjs/NavMagazine.js +10 -10
  43. package/dist/cjs/NavNative.js +9 -9
  44. package/dist/cjs/Pagination-2a3d0103.js +97 -0
  45. package/dist/cjs/PartnerDetailListing.js +4 -5
  46. package/dist/cjs/PartnerDetailListingPaginated.js +5 -7
  47. package/dist/cjs/PubSection.js +3 -4
  48. package/dist/cjs/PublicationLanding.js +26 -26
  49. package/dist/cjs/QueueDeckExpanded.js +3 -4
  50. package/dist/cjs/QueueDeckExpandedPaginated.js +4 -6
  51. package/dist/cjs/RelatedContent.js +28 -28
  52. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  53. package/dist/cjs/SeriesListingDeck.js +2 -3
  54. package/dist/cjs/{SeriesSlider-594b19eb.js → SeriesSlider-74546d19.js} +4 -4
  55. package/dist/cjs/SideFooter.js +2 -2
  56. package/dist/cjs/TaxonomyDescription.js +2 -3
  57. package/dist/cjs/TemplateNormal.js +1 -2
  58. package/dist/cjs/VideoProgramLandingPage.js +2 -3
  59. package/dist/cjs/VideoSeriesCard.js +1 -1
  60. package/dist/cjs/VideoSeriesLandingPage.js +3 -4
  61. package/dist/cjs/VideoSeriesListing.js +1 -2
  62. package/dist/cjs/View.js +168 -74
  63. package/dist/cjs/YoutubeGroup.js +4 -4
  64. package/dist/cjs/getQuery.js +3 -3
  65. package/dist/cjs/getSerializers.js +6 -7
  66. package/dist/cjs/{getTargeting-3c5754ac.js → getTargeting-dab97fe1.js} +9 -9
  67. package/dist/cjs/getTargeting.js +1 -1
  68. package/dist/cjs/{index-fc2f1ca2.js → index-0e4427c8.js} +467 -2
  69. package/dist/cjs/{index-eb1c583d.js → index-bb00ade7.js} +73 -30
  70. package/dist/cjs/index.js +7 -10
  71. package/dist/esm/AD.js +1 -1
  72. package/dist/esm/AD300x250.js +1 -2
  73. package/dist/esm/AD300x250x600.js +1 -2
  74. package/dist/esm/AD728x90.js +1 -2
  75. package/dist/esm/ADFloatingFooter.js +1 -2
  76. package/dist/esm/ADGutter.js +1 -2
  77. package/dist/esm/ADSkyscraper.js +1 -2
  78. package/dist/esm/ADSponsoredResources.js +1 -2
  79. package/dist/esm/ADWebcast.js +1 -2
  80. package/dist/esm/ADWelcome.js +1 -2
  81. package/dist/esm/AdSlot.js +1 -2
  82. package/dist/esm/AdSlotsProvider.js +1 -2
  83. package/dist/esm/AlgoliaSearch.js +11 -14158
  84. package/dist/esm/ArticleProgramLandingPage.js +2 -3
  85. package/dist/esm/ArticleSeriesLandingPage.js +3 -4
  86. package/dist/esm/ArticleSeriesListing.js +1 -2
  87. package/dist/esm/AuthWrapper.js +28 -2
  88. package/dist/esm/CMEDeck.js +1 -2
  89. package/dist/esm/Column3.js +1 -2
  90. package/dist/esm/ConferenceArticleCard.js +15 -15
  91. package/dist/esm/ContentCardPaginated.js +3 -5
  92. package/dist/esm/DeckContent.js +10 -11
  93. package/dist/esm/DeckQueue.js +1 -2
  94. package/dist/esm/DeckQueuePaginated.js +2 -4
  95. package/dist/esm/{Dfp-102f0beb.js → Dfp-cf85d203.js} +1 -2
  96. package/dist/esm/EventsDeck.js +17 -17
  97. package/dist/esm/ExternalResources.js +2 -3
  98. package/dist/esm/GridContent.js +3 -4
  99. package/dist/esm/GridContentPaginated.js +4 -6
  100. package/dist/esm/HamMagazine.js +9 -9
  101. package/dist/esm/HealthCareProfessionalModal.js +1 -1
  102. package/dist/esm/HorizontalArticleListing.js +2 -3
  103. package/dist/esm/IssueLanding.js +33 -34
  104. package/dist/esm/KMTracker.js +15 -15
  105. package/dist/esm/LeftNav.js +1 -2
  106. package/dist/esm/MasterDeck.js +11 -12
  107. package/dist/esm/MasterDeckPaginated.js +12 -14
  108. package/dist/esm/{MediaSeriesCard-305a9cb3.js → MediaSeriesCard-146e08c8.js} +99 -3
  109. package/dist/esm/MediaSeriesLanding.js +10 -12
  110. package/dist/esm/MediaSeriesLandingPaginated.js +11 -14
  111. package/dist/esm/NavMagazine.js +10 -10
  112. package/dist/esm/NavNative.js +9 -9
  113. package/dist/esm/Pagination-dc30727b.js +90 -0
  114. package/dist/esm/PartnerDetailListing.js +4 -5
  115. package/dist/esm/PartnerDetailListingPaginated.js +5 -7
  116. package/dist/esm/PubSection.js +3 -4
  117. package/dist/esm/PublicationLanding.js +26 -26
  118. package/dist/esm/QueueDeckExpanded.js +3 -4
  119. package/dist/esm/QueueDeckExpandedPaginated.js +4 -6
  120. package/dist/esm/RelatedContent.js +28 -28
  121. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  122. package/dist/esm/SeriesListingDeck.js +2 -3
  123. package/dist/esm/{SeriesSlider-f771e20d.js → SeriesSlider-e495571f.js} +4 -4
  124. package/dist/esm/SideFooter.js +2 -2
  125. package/dist/esm/TaxonomyDescription.js +2 -3
  126. package/dist/esm/TemplateNormal.js +1 -2
  127. package/dist/esm/VideoProgramLandingPage.js +2 -3
  128. package/dist/esm/VideoSeriesCard.js +1 -1
  129. package/dist/esm/VideoSeriesLandingPage.js +3 -4
  130. package/dist/esm/VideoSeriesListing.js +1 -2
  131. package/dist/esm/View.js +168 -73
  132. package/dist/esm/YoutubeGroup.js +4 -4
  133. package/dist/esm/getQuery.js +3 -3
  134. package/dist/esm/getSerializers.js +6 -7
  135. package/dist/esm/{getTargeting-42f9b439.js → getTargeting-04d979c9.js} +9 -9
  136. package/dist/esm/getTargeting.js +1 -1
  137. package/dist/esm/{index-f0fc23eb.js → index-5cc7b406.js} +466 -1
  138. package/dist/esm/{index-264bbd3c.js → index-e89d33c8.js} +73 -30
  139. package/dist/esm/index.js +7 -10
  140. package/package.json +115 -115
  141. package/dist/cjs/Pagination-1e0d5f1d.js +0 -90
  142. package/dist/cjs/events-1b438fe7.js +0 -469
  143. package/dist/cjs/index-50be6759.js +0 -105
  144. package/dist/cjs/typeof-1358762e.js +0 -33
  145. package/dist/esm/Pagination-cd21f8c2.js +0 -82
  146. package/dist/esm/events-6c3a7a63.js +0 -467
  147. package/dist/esm/index-98ca9cec.js +0 -100
  148. package/dist/esm/typeof-2f07d0e8.js +0 -30
  149. /package/dist/cjs/{ADInfeed-81006615.js → ADInfeed-cf54cb8a.js} +0 -0
  150. /package/dist/cjs/{ADlgInfeed-0db07099.js → ADlgInfeed-d06624d8.js} +0 -0
  151. /package/dist/esm/{ADInfeed-6d1fc6bf.js → ADInfeed-0852ff35.js} +0 -0
  152. /package/dist/esm/{ADlgInfeed-dc36c928.js → ADlgInfeed-5fb3b724.js} +0 -0
package/dist/esm/index.js CHANGED
@@ -87,7 +87,7 @@ export { default as VerticalHero } from './VerticalHero.js';
87
87
  export { default as YahooHero } from './YahooHero.js';
88
88
  export { default as GridHero } from './GridHero.js';
89
89
  export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
90
- export { g as getSerializers } from './index-264bbd3c.js';
90
+ export { g as getSerializers } from './index-e89d33c8.js';
91
91
  export { default as Beam } from './Beam.js';
92
92
  export { default as Segment } from './Segment.js';
93
93
  export { default as KMTracker } from './KMTracker.js';
@@ -102,7 +102,7 @@ export { default as VideoSeriesLandingPage } from './VideoSeriesLandingPage.js';
102
102
  export { default as ArticleProgramLandingPage } from './ArticleProgramLandingPage.js';
103
103
  export { default as ArticleSeriesLandingPage } from './ArticleSeriesLandingPage.js';
104
104
  export { default as Schema } from './Schema.js';
105
- export { g as getTargeting } from './getTargeting-42f9b439.js';
105
+ export { g as getTargeting } from './getTargeting-04d979c9.js';
106
106
  export { default as getKeywords } from './getKeywords.js';
107
107
  export { default as getQuery } from './getQuery.js';
108
108
  import './toConsumableArray-f7074d7c.js';
@@ -117,8 +117,7 @@ import './web.dom.iterable-ab4dea5c.js';
117
117
  import './_is-array-8d21b9e3.js';
118
118
  import './_object-pie-133f504a.js';
119
119
  import './_library-528f1934.js';
120
- import './index-f0fc23eb.js';
121
- import './events-6c3a7a63.js';
120
+ import './index-5cc7b406.js';
122
121
  import 'react-bootstrap/Container';
123
122
  import 'react-bootstrap/Card';
124
123
  import './moment-bc12cb97.js';
@@ -131,9 +130,9 @@ import './visibility-sensor-72fd8f8b.js';
131
130
  import 'react-dom';
132
131
  import './main-1894c974.js';
133
132
  import './entities-6d9154b4.js';
134
- import './ADInfeed-6d1fc6bf.js';
133
+ import './ADInfeed-0852ff35.js';
135
134
  import './lodash-f97fd99a.js';
136
- import './ADlgInfeed-dc36c928.js';
135
+ import './ADlgInfeed-5fb3b724.js';
137
136
  import './getContentCategory-15dcc413.js';
138
137
  import './get-3c308da4.js';
139
138
  import './eq-bdcbf886.js';
@@ -155,8 +154,7 @@ import './_object-to-array-2300e51b.js';
155
154
  import 'react-bootstrap/Spinner';
156
155
  import 'react-bootstrap/Form';
157
156
  import './js.cookie-6874175c.js';
158
- import './typeof-2f07d0e8.js';
159
- import './index-98ca9cec.js';
157
+ import 'react-instantsearch-dom';
160
158
  import './ConferenceBanner-8792ebd2.js';
161
159
  import 'next/head';
162
160
  import 'react-bootstrap/ListGroup';
@@ -192,10 +190,9 @@ import 'swr';
192
190
  import 'passport-local';
193
191
  import 'mysql';
194
192
  import './md5-4e42248e.js';
195
- import './SeriesSlider-f771e20d.js';
193
+ import './SeriesSlider-e495571f.js';
196
194
  import './style-inject.es-1f59c1d0.js';
197
195
  import 'disqus-react';
198
- import 'file-saver';
199
196
  import 'react-twitter-embed';
200
197
  import './ImageSlider-f84174cb.js';
201
198
  import './defineProperty-23a8f8cd.js';
package/package.json CHANGED
@@ -1,115 +1,115 @@
1
- {
2
- "name": "@mjhls/mjh-framework",
3
- "version": "1.0.977",
4
- "description": "Foundation Framework",
5
- "author": "mjh-framework",
6
- "license": "MIT",
7
- "repository": {
8
- "type": "git",
9
- "url": "https://github.com/MJHLS/mjh-framework.git"
10
- },
11
- "main": "dist/cjs/index.js",
12
- "module": "dist/esm/index.js",
13
- "engines": {
14
- "node": ">=8",
15
- "npm": ">=5"
16
- },
17
- "scripts": {
18
- "clean": "rimraf dist",
19
- "test": "cross-env CI=1 react-scripts test --env=jsdom",
20
- "test:watch": "react-scripts test --env=jsdom",
21
- "build": "npm run clean && rollup -c",
22
- "start": "npm run clean && rollup -c -w",
23
- "prepare": "yarn run build",
24
- "predeploy": "cd example && yarn install && yarn run build",
25
- "deploy": "gh-pages -d example/build"
26
- },
27
- "peerDependencies": {
28
- "disqus-react": "^1.0.11",
29
- "next": "^9.0.0",
30
- "prop-types": "^15.5.4",
31
- "react": "^15.0.0 || ^16.0.0",
32
- "react-bootstrap": "^1.0.0-beta.14",
33
- "react-dom": "^15.0.0 || ^16.0.0",
34
- "react-share": "^4.0.1"
35
- },
36
- "devDependencies": {
37
- "@brightcove/react-player-loader": "^1.4.0",
38
- "@rollup/plugin-json": "^4.0.3",
39
- "@sanity/block-content-to-react": "^2.0.7",
40
- "@sanity/image-url": "^0.140.15",
41
- "@svgr/rollup": "2.4.1",
42
- "babel-core": "^6.26.3",
43
- "babel-eslint": "^8.2.5",
44
- "babel-plugin-external-helpers": "^6.22.0",
45
- "babel-plugin-transform-runtime": "^6.23.0",
46
- "babel-preset-env": "^1.7.0",
47
- "babel-preset-react": "^6.24.1",
48
- "babel-preset-stage-0": "^6.24.1",
49
- "cross-env": "^5.1.4",
50
- "eslint": "^5.0.1",
51
- "eslint-config-standard": "^11.0.0",
52
- "eslint-config-standard-react": "^6.0.0",
53
- "eslint-plugin-import": "^2.13.0",
54
- "eslint-plugin-node": "^7.0.1",
55
- "eslint-plugin-promise": "^4.0.0",
56
- "eslint-plugin-react": "^7.10.0",
57
- "eslint-plugin-react-hooks": "^2.3.0",
58
- "eslint-plugin-standard": "^3.1.0",
59
- "file-saver": "^2.0.5",
60
- "get-youtube-id": "^1.0.1",
61
- "gh-pages": "^1.2.0",
62
- "lodash": "^4.17.15",
63
- "md5": "^2.2.1",
64
- "moment": "^2.26.0",
65
- "moment-timezone": "^0.5.31",
66
- "next": "^9.2.0",
67
- "react": "^16.12.0",
68
- "react-bootstrap": "1.4.0",
69
- "react-device-detect": "^1.11.14",
70
- "react-dfp": "^0.19.0",
71
- "react-dom": "^16.12.0",
72
- "react-icons": "^3.8.0",
73
- "react-infinite-scroll-component": "^5.0.4",
74
- "react-lazyload": "^2.6.5",
75
- "react-paginate": "^7.1.3",
76
- "react-player": "^1.15.2",
77
- "react-scripts": "^1.1.4",
78
- "react-share": "^4.0.1",
79
- "react-social-icons": "^4.1.0",
80
- "react-visibility-sensor": "^5.1.1",
81
- "react-youtube": "^7.9.0",
82
- "rimraf": "^3.0.2",
83
- "rollup": "^2.7.3",
84
- "rollup-plugin-babel": "3.0.7",
85
- "rollup-plugin-commonjs": "9.3.4",
86
- "rollup-plugin-node-builtins": "2.1.2",
87
- "rollup-plugin-node-resolve": "3.4.0",
88
- "rollup-plugin-postcss": "1.6.3",
89
- "rollup-plugin-url": "1.4.0"
90
- },
91
- "files": [
92
- "dist"
93
- ],
94
- "dependencies": {
95
- "babel-polyfill": "^6.26.0",
96
- "cookie": "^0.4.1",
97
- "disqus-react": "^1.0.11",
98
- "faunadb": "^4.2.0",
99
- "js-cookie": "^2.2.1",
100
- "next-auth": "^3.2.0",
101
- "next-cookies": "^2.0.3",
102
- "node-fetch": "^2.6.1",
103
- "nookies": "^2.4.0",
104
- "react-cookies": "^0.1.1",
105
- "react-facebook": "^8.1.4",
106
- "react-instantsearch-dom": "^6.12.0",
107
- "react-script-tag": "^1.1.2",
108
- "rollup-plugin-peer-deps-external": "^2.2.4",
109
- "shortid": "^2.2.15",
110
- "smoothscroll-polyfill": "^0.4.4",
111
- "striptags": "^3.1.1",
112
- "superagent": "^5.2.2",
113
- "yarn": "^1.22.11"
114
- }
115
- }
1
+ {
2
+ "name": "@mjhls/mjh-framework",
3
+ "version": "1.0.979-ris-update-v1",
4
+ "description": "Foundation Framework",
5
+ "author": "mjh-framework",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/MJHLS/mjh-framework.git"
10
+ },
11
+ "main": "dist/cjs/index.js",
12
+ "module": "dist/esm/index.js",
13
+ "engines": {
14
+ "node": ">=8",
15
+ "npm": ">=5"
16
+ },
17
+ "scripts": {
18
+ "clean": "rimraf dist",
19
+ "test": "cross-env CI=1 react-scripts test --env=jsdom",
20
+ "test:watch": "react-scripts test --env=jsdom",
21
+ "build": "npm run clean && rollup -c",
22
+ "start": "npm run clean && rollup -c -w",
23
+ "prepare": "yarn run build",
24
+ "predeploy": "cd example && yarn install && yarn run build",
25
+ "deploy": "gh-pages -d example/build"
26
+ },
27
+ "peerDependencies": {
28
+ "disqus-react": "^1.0.11",
29
+ "next": "^9.0.0",
30
+ "prop-types": "^15.5.4",
31
+ "react": "^15.0.0 || ^16.0.0",
32
+ "react-bootstrap": "^1.0.0-beta.14",
33
+ "react-dom": "^15.0.0 || ^16.0.0",
34
+ "react-share": "^4.0.1"
35
+ },
36
+ "devDependencies": {
37
+ "@brightcove/react-player-loader": "^1.4.0",
38
+ "@rollup/plugin-json": "^4.0.3",
39
+ "@sanity/block-content-to-react": "^2.0.7",
40
+ "@sanity/image-url": "^0.140.15",
41
+ "@svgr/rollup": "2.4.1",
42
+ "babel-core": "^6.26.3",
43
+ "babel-eslint": "^8.2.5",
44
+ "babel-plugin-external-helpers": "^6.22.0",
45
+ "babel-plugin-transform-runtime": "^6.23.0",
46
+ "babel-preset-env": "^1.7.0",
47
+ "babel-preset-react": "^6.24.1",
48
+ "babel-preset-stage-0": "^6.24.1",
49
+ "cross-env": "^5.1.4",
50
+ "eslint": "^5.0.1",
51
+ "eslint-config-standard": "^11.0.0",
52
+ "eslint-config-standard-react": "^6.0.0",
53
+ "eslint-plugin-import": "^2.13.0",
54
+ "eslint-plugin-node": "^7.0.1",
55
+ "eslint-plugin-promise": "^4.0.0",
56
+ "eslint-plugin-react": "^7.10.0",
57
+ "eslint-plugin-react-hooks": "^2.3.0",
58
+ "eslint-plugin-standard": "^3.1.0",
59
+ "file-saver": "^2.0.5",
60
+ "get-youtube-id": "^1.0.1",
61
+ "gh-pages": "^1.2.0",
62
+ "lodash": "^4.17.15",
63
+ "md5": "^2.2.1",
64
+ "moment": "^2.26.0",
65
+ "moment-timezone": "^0.5.31",
66
+ "next": "^9.2.0",
67
+ "react": "^16.12.0",
68
+ "react-bootstrap": "1.4.0",
69
+ "react-device-detect": "^1.11.14",
70
+ "react-dfp": "^0.19.0",
71
+ "react-dom": "^16.12.0",
72
+ "react-icons": "^3.8.0",
73
+ "react-infinite-scroll-component": "^5.0.4",
74
+ "react-lazyload": "^2.6.5",
75
+ "react-paginate": "^7.1.3",
76
+ "react-player": "^1.15.2",
77
+ "react-scripts": "^1.1.4",
78
+ "react-share": "^4.0.1",
79
+ "react-social-icons": "^4.1.0",
80
+ "react-visibility-sensor": "^5.1.1",
81
+ "react-youtube": "^7.9.0",
82
+ "rimraf": "^3.0.2",
83
+ "rollup": "^2.7.3",
84
+ "rollup-plugin-babel": "3.0.7",
85
+ "rollup-plugin-commonjs": "9.3.4",
86
+ "rollup-plugin-node-builtins": "2.1.2",
87
+ "rollup-plugin-node-resolve": "3.4.0",
88
+ "rollup-plugin-postcss": "1.6.3",
89
+ "rollup-plugin-url": "1.4.0"
90
+ },
91
+ "files": [
92
+ "dist"
93
+ ],
94
+ "dependencies": {
95
+ "babel-polyfill": "^6.26.0",
96
+ "cookie": "^0.4.1",
97
+ "disqus-react": "^1.0.11",
98
+ "faunadb": "^4.2.0",
99
+ "js-cookie": "^2.2.1",
100
+ "next-auth": "^3.2.0",
101
+ "next-cookies": "^2.0.3",
102
+ "node-fetch": "^2.6.1",
103
+ "nookies": "^2.4.0",
104
+ "react-cookies": "^0.1.1",
105
+ "react-facebook": "^8.1.4",
106
+ "react-instantsearch-dom": "^6.12.0",
107
+ "react-script-tag": "^1.1.2",
108
+ "rollup-plugin-peer-deps-external": "^2.2.4",
109
+ "shortid": "^2.2.15",
110
+ "smoothscroll-polyfill": "^0.4.4",
111
+ "striptags": "^3.1.1",
112
+ "superagent": "^5.2.2",
113
+ "yarn": "^1.22.11"
114
+ }
115
+ }
@@ -1,90 +0,0 @@
1
- 'use strict';
2
-
3
- var React = require('react');
4
- var ReactPaginate = require('react-paginate');
5
- var Button = require('react-bootstrap/Button');
6
- var index_esm = require('./index.esm-d51c9ac6.js');
7
-
8
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
-
10
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
11
- var ReactPaginate__default = /*#__PURE__*/_interopDefaultLegacy(ReactPaginate);
12
- var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
13
-
14
- var Pagination = function Pagination(props) {
15
- var pageCount = props.pageCount,
16
- _props$marginPagesDis = props.marginPagesDisplayed,
17
- marginPagesDisplayed = _props$marginPagesDis === undefined ? 1 : _props$marginPagesDis,
18
- _props$pageRangeDispl = props.pageRangeDisplayed,
19
- pageRangeDisplayed = _props$pageRangeDispl === undefined ? 5 : _props$pageRangeDispl,
20
- _props$currentPage = props.currentPage,
21
- currentPage = _props$currentPage === undefined ? 1 : _props$currentPage,
22
- _onPageChange = props.onPageChange,
23
- _props$needLargePagin = props.needLargePaginateButtons,
24
- needLargePaginateButtons = _props$needLargePagin === undefined ? false : _props$needLargePagin;
25
-
26
- if (!pageCount || pageCount <= 1) return null;
27
- return React__default['default'].createElement(
28
- React__default['default'].Fragment,
29
- null,
30
- needLargePaginateButtons && React__default['default'].createElement(
31
- 'div',
32
- { className: 'pagination-lg-btn-nxt' },
33
- React__default['default'].createElement(
34
- Button__default['default'],
35
- {
36
- onClick: function onClick(e) {
37
- e.preventDefault();
38
- _onPageChange(currentPage + 1);
39
- },
40
- disabled: currentPage === pageCount,
41
- href: currentPage === pageCount ? '' : '?page=' + (currentPage + 1) },
42
- 'NEXT PAGE',
43
- React__default['default'].createElement(index_esm.FaArrowRight, { className: 'fa-arrow-right' })
44
- )
45
- ),
46
- React__default['default'].createElement(ReactPaginate__default['default'], {
47
- pageCount: pageCount,
48
- marginPagesDisplayed: marginPagesDisplayed,
49
- pageRangeDisplayed: pageRangeDisplayed,
50
- forcePage: currentPage - 1,
51
- onPageChange: function onPageChange(_ref) {
52
- var selected = _ref.selected;
53
- return _onPageChange(selected + 1);
54
- },
55
- hrefBuilder: function hrefBuilder(page) {
56
- return '?page=' + page;
57
- },
58
- previousLabel: '<',
59
- nextLabel: '>',
60
- containerClassName: 'pagination-container',
61
- previousLinkClassName: 'previous',
62
- nextLinkClassName: 'next',
63
- disabledClassName: 'disabled',
64
- activeClassName: 'active'
65
- }),
66
- needLargePaginateButtons && React__default['default'].createElement(
67
- 'div',
68
- { className: 'pagination-lg-btn-prv' },
69
- React__default['default'].createElement(
70
- Button__default['default'],
71
- {
72
- onClick: function onClick(e) {
73
- e.preventDefault();
74
- _onPageChange(currentPage - 1);
75
- },
76
- disabled: currentPage === 1,
77
- href: currentPage <= 1 ? '?page=1' : '?page=' + (currentPage - 1) },
78
- React__default['default'].createElement(index_esm.FaArrowLeft, { className: 'fa-arrow-left' }),
79
- 'PREVIOUS PAGE'
80
- )
81
- ),
82
- React__default['default'].createElement(
83
- 'style',
84
- { jsx: 'true' },
85
- '\n .pagination-container {\n list-style: none;\n padding: 10px 0;\n margin: 0;\n display: flex;\n overflow: auto;\n }\n .pagination-container::before,\n .pagination-container::after {\n content: \'\';\n margin: 0 auto;\n }\n .pagination-container a {\n padding: 10px;\n border: 1px solid #dee2e6;\n }\n .pagination-container a:hover {\n text-decoration: none;\n background-color: #e9ecef;\n border-color: #dee2e6;\n }\n .pagination-container .active a {\n color: #fff;\n background-color: #666;\n background-color: var(--primary);\n }\n .pagination-container li:first-child a {\n border-radius: 5px 0 0 5px;\n }\n .pagination-container li:last-child a {\n border-radius: 0 5px 5px 0;\n }\n .pagination-container .disabled a {\n cursor: default;\n }\n .pagination-lg-btn-nxt,\n .pagination-lg-btn-prv {\n text-align: center;\n }\n .pagination-lg-btn-nxt .btn,\n .pagination-lg-btn-prv .btn {\n min-width: 80%;\n color: #000;\n color: var(--primary);\n background-color: transparent;\n border-color: #000;\n border-color: var(--primary);\n }\n .pagination-lg-btn-nxt {\n margin: 0 0 1.5rem;\n }\n .pagination-lg-btn-prv {\n margin: 1.5rem 0 0;\n }\n .pagination-lg-btn-nxt .btn:not(:disabled):not(.disabled).active,\n .pagination-lg-btn-prv .btn:not(:disabled):not(.disabled):active {\n color: #fff;\n background-color: #000;\n background-color: var(--primary);\n border-color: #000;\n border-color: var(--primary);\n }\n @media only screen and (min-width: 601px) {\n [class^=\'pagination-lg-btn\'] {\n display: none;\n }\n }\n .fa-arrow-left {\n margin-right: 0.5rem;\n }\n .fa-arrow-right {\n margin-left: 0.5rem;\n }\n .pagination-container::-webkit-scrollbar {\n height: 8px;\n }\n .pagination-container::-webkit-scrollbar-track,\n .pagination-container::-webkit-scrollbar-thumb {\n -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);\n border-radius: 4px;\n }\n .pagination-container::-webkit-scrollbar-track {\n background-color: rgba(0, 0, 0, 0.1);\n }\n .pagination-container::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.3);\n }\n '
86
- )
87
- );
88
- };
89
-
90
- exports.Pagination = Pagination;