@mjhls/mjh-framework 1.0.959-ris-update-v1 → 1.0.959-test
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.
- package/README.md +168 -168
- package/dist/cjs/AlgoliaSearch.js +15 -131
- package/dist/cjs/ArticleProgramLandingPage.js +1 -1
- package/dist/cjs/AuthWrapper.js +1 -1
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/ContentCardPaginated.js +2 -1
- package/dist/cjs/DeckContent.js +8 -8
- package/dist/cjs/DeckQueuePaginated.js +2 -1
- package/dist/cjs/EventsDeck.js +17 -17
- package/dist/cjs/ExternalResources.js +1 -1
- package/dist/cjs/GridContentPaginated.js +2 -1
- package/dist/cjs/HamMagazine.js +9 -9
- package/dist/cjs/HealthCareProfessionalModal.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +1 -1
- package/dist/cjs/IssueLanding.js +30 -30
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/MasterDeck.js +8 -8
- package/dist/cjs/MasterDeckPaginated.js +10 -9
- package/dist/cjs/{MediaSeriesCard-dffbfadb.js → MediaSeriesCard-c19315f5.js} +2 -2
- package/dist/cjs/MediaSeriesLanding.js +7 -7
- package/dist/cjs/MediaSeriesLandingPaginated.js +9 -8
- package/dist/cjs/NavMagazine.js +10 -10
- package/dist/cjs/NavNative.js +9 -9
- package/dist/cjs/Pagination-c63770a3.js +90 -0
- package/dist/cjs/PartnerDetailListing.js +1 -1
- package/dist/cjs/PartnerDetailListingPaginated.js +3 -2
- package/dist/cjs/PublicationLanding.js +26 -26
- package/dist/cjs/QueueDeckExpandedPaginated.js +2 -1
- package/dist/cjs/RelatedContent.js +28 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +1 -1
- package/dist/cjs/{SeriesSlider-74546d19.js → SeriesSlider-594b19eb.js} +4 -4
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/TaxonomyDescription.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +1 -1
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/View.js +43 -77
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/getQuery.js +3 -3
- package/dist/cjs/getSerializers.js +1 -1
- package/dist/cjs/{getTargeting-77bb50ae.js → getTargeting-232688b0.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-d92837fc.js → index-8419338d.js} +1 -1
- package/dist/cjs/index.js +4 -3
- package/dist/esm/AlgoliaSearch.js +16 -132
- package/dist/esm/ArticleProgramLandingPage.js +1 -1
- package/dist/esm/AuthWrapper.js +1 -1
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/ContentCardPaginated.js +2 -1
- package/dist/esm/DeckContent.js +8 -8
- package/dist/esm/DeckQueuePaginated.js +2 -1
- package/dist/esm/EventsDeck.js +17 -17
- package/dist/esm/ExternalResources.js +1 -1
- package/dist/esm/GridContentPaginated.js +2 -1
- package/dist/esm/HamMagazine.js +9 -9
- package/dist/esm/HealthCareProfessionalModal.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +1 -1
- package/dist/esm/IssueLanding.js +30 -30
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/MasterDeck.js +8 -8
- package/dist/esm/MasterDeckPaginated.js +10 -9
- package/dist/esm/{MediaSeriesCard-7003e532.js → MediaSeriesCard-0d93f580.js} +2 -2
- package/dist/esm/MediaSeriesLanding.js +7 -7
- package/dist/esm/MediaSeriesLandingPaginated.js +9 -8
- package/dist/esm/NavMagazine.js +10 -10
- package/dist/esm/NavNative.js +9 -9
- package/dist/esm/Pagination-6f8d5327.js +82 -0
- package/dist/esm/PartnerDetailListing.js +1 -1
- package/dist/esm/PartnerDetailListingPaginated.js +3 -2
- package/dist/esm/PublicationLanding.js +26 -26
- package/dist/esm/QueueDeckExpandedPaginated.js +2 -1
- package/dist/esm/RelatedContent.js +28 -28
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/SeriesListingDeck.js +1 -1
- package/dist/esm/{SeriesSlider-b853a8cf.js → SeriesSlider-19bf6ce4.js} +4 -4
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/TaxonomyDescription.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +1 -1
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/View.js +42 -77
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/getQuery.js +3 -3
- package/dist/esm/getSerializers.js +1 -1
- package/dist/esm/{getTargeting-f8f94212.js → getTargeting-d519d2b6.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-8864f662.js → index-aac8e09e.js} +1 -1
- package/dist/esm/index.js +4 -3
- package/package.json +115 -115
- package/dist/cjs/Pagination-30bb1ca1.js +0 -97
- package/dist/esm/Pagination-194dd03f.js +0 -90
package/README.md
CHANGED
|
@@ -1,168 +1,168 @@
|
|
|
1
|
-
# mjh-framework v. 1.0.958
|
|
2
|
-
|
|
3
|
-
[](https://www.npmjs.com/package/mjh-framework) [](https://standardjs.com)
|
|
4
|
-
|
|
5
|
-
## Install
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install --save @mjhls/mjh-framework
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
```jsx
|
|
14
|
-
import React, { Component } from 'react'
|
|
15
|
-
|
|
16
|
-
import { NavMagazine, DeckQueue } from 'mjh-framework'
|
|
17
|
-
|
|
18
|
-
export default class App extends Component {
|
|
19
|
-
render() {
|
|
20
|
-
return (
|
|
21
|
-
<div>
|
|
22
|
-
<NavMagazine />
|
|
23
|
-
<DeckQueue />
|
|
24
|
-
</div>
|
|
25
|
-
)
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## Publish new updates to the npm registry
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
npm publish
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
## For getting updates in the template without publishing each time a change is made in the framework
|
|
37
|
-
|
|
38
|
-
Link react and react-dom of the template repo, so that it can be used by the framework.
|
|
39
|
-
This is to avoid the error arising due to multiple instances of React.
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
cd ../mjh-template/node_modules/react
|
|
43
|
-
|
|
44
|
-
yarn link
|
|
45
|
-
|
|
46
|
-
cd ../react-dom
|
|
47
|
-
|
|
48
|
-
yarn link
|
|
49
|
-
|
|
50
|
-
cd ../../../mjh-framework
|
|
51
|
-
|
|
52
|
-
yarn link react && yarn link react-dom
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
Link the framework repo so that it can be used in the template
|
|
56
|
-
|
|
57
|
-
```bash
|
|
58
|
-
npm link
|
|
59
|
-
|
|
60
|
-
cd ../mjh-template
|
|
61
|
-
|
|
62
|
-
npm link @mjhls/mjh-framework
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
## Components and "props"
|
|
66
|
-
|
|
67
|
-
### Deck Components
|
|
68
|
-
|
|
69
|
-
- #### DeckContent
|
|
70
|
-
|
|
71
|
-
##### Props
|
|
72
|
-
|
|
73
|
-
- mapping
|
|
74
|
-
- dataRecord
|
|
75
|
-
- query
|
|
76
|
-
- params
|
|
77
|
-
- pointer
|
|
78
|
-
- pointerArray
|
|
79
|
-
- defaultImage
|
|
80
|
-
|
|
81
|
-
- #### DeckQueue
|
|
82
|
-
##### Props
|
|
83
|
-
- page
|
|
84
|
-
- dataRecord
|
|
85
|
-
- query
|
|
86
|
-
- params
|
|
87
|
-
- pointer
|
|
88
|
-
- pointerArray
|
|
89
|
-
|
|
90
|
-
### Layout Components
|
|
91
|
-
|
|
92
|
-
- #### Column1
|
|
93
|
-
- #### Column2
|
|
94
|
-
##### Props
|
|
95
|
-
- rightItems
|
|
96
|
-
- #### Column3
|
|
97
|
-
##### Props
|
|
98
|
-
- leftItems
|
|
99
|
-
- rightItems
|
|
100
|
-
##### Common Props (Column1, Column2, Column3)
|
|
101
|
-
- title
|
|
102
|
-
- children
|
|
103
|
-
- #### Header
|
|
104
|
-
##### Props
|
|
105
|
-
- title
|
|
106
|
-
- keyword
|
|
107
|
-
- description
|
|
108
|
-
- #### LeftNav
|
|
109
|
-
##### Props
|
|
110
|
-
- leftItems
|
|
111
|
-
- #### AccordionPanel
|
|
112
|
-
##### Props
|
|
113
|
-
- accordionClassName
|
|
114
|
-
- data
|
|
115
|
-
|
|
116
|
-
### Navigation Components
|
|
117
|
-
|
|
118
|
-
- #### NavMagazine
|
|
119
|
-
##### Props
|
|
120
|
-
- logo
|
|
121
|
-
- dataObject
|
|
122
|
-
- #### NavNative
|
|
123
|
-
##### Props
|
|
124
|
-
- logo
|
|
125
|
-
- dataObject
|
|
126
|
-
- #### NavNormal
|
|
127
|
-
##### Props
|
|
128
|
-
- logo
|
|
129
|
-
- dataObject
|
|
130
|
-
- variant
|
|
131
|
-
- #### NavDvm
|
|
132
|
-
##### Props
|
|
133
|
-
- logo
|
|
134
|
-
- dataObject
|
|
135
|
-
- subNavHeads
|
|
136
|
-
|
|
137
|
-
### Template Components
|
|
138
|
-
|
|
139
|
-
- #### TemplateNormal
|
|
140
|
-
##### Props
|
|
141
|
-
- config
|
|
142
|
-
- title
|
|
143
|
-
- keywords
|
|
144
|
-
- description
|
|
145
|
-
- website
|
|
146
|
-
|
|
147
|
-
### Ad Components
|
|
148
|
-
|
|
149
|
-
- #### AD300x250
|
|
150
|
-
- #### AD300x250x600
|
|
151
|
-
- #### AD728x90
|
|
152
|
-
##### Common Props
|
|
153
|
-
- networkID
|
|
154
|
-
- adUnit
|
|
155
|
-
|
|
156
|
-
### Serializers
|
|
157
|
-
|
|
158
|
-
- #### getSerializers (function)
|
|
159
|
-
##### arguments
|
|
160
|
-
- client
|
|
161
|
-
##### types
|
|
162
|
-
- youtube
|
|
163
|
-
- figure
|
|
164
|
-
- slideshow
|
|
165
|
-
|
|
166
|
-
## License
|
|
167
|
-
|
|
168
|
-
MIT © [mjh-framework](https://github.com/mjh-framework)
|
|
1
|
+
# mjh-framework v. 1.0.958
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/mjh-framework) [](https://standardjs.com)
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install --save @mjhls/mjh-framework
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```jsx
|
|
14
|
+
import React, { Component } from 'react'
|
|
15
|
+
|
|
16
|
+
import { NavMagazine, DeckQueue } from 'mjh-framework'
|
|
17
|
+
|
|
18
|
+
export default class App extends Component {
|
|
19
|
+
render() {
|
|
20
|
+
return (
|
|
21
|
+
<div>
|
|
22
|
+
<NavMagazine />
|
|
23
|
+
<DeckQueue />
|
|
24
|
+
</div>
|
|
25
|
+
)
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Publish new updates to the npm registry
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npm publish
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## For getting updates in the template without publishing each time a change is made in the framework
|
|
37
|
+
|
|
38
|
+
Link react and react-dom of the template repo, so that it can be used by the framework.
|
|
39
|
+
This is to avoid the error arising due to multiple instances of React.
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
cd ../mjh-template/node_modules/react
|
|
43
|
+
|
|
44
|
+
yarn link
|
|
45
|
+
|
|
46
|
+
cd ../react-dom
|
|
47
|
+
|
|
48
|
+
yarn link
|
|
49
|
+
|
|
50
|
+
cd ../../../mjh-framework
|
|
51
|
+
|
|
52
|
+
yarn link react && yarn link react-dom
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Link the framework repo so that it can be used in the template
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
npm link
|
|
59
|
+
|
|
60
|
+
cd ../mjh-template
|
|
61
|
+
|
|
62
|
+
npm link @mjhls/mjh-framework
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Components and "props"
|
|
66
|
+
|
|
67
|
+
### Deck Components
|
|
68
|
+
|
|
69
|
+
- #### DeckContent
|
|
70
|
+
|
|
71
|
+
##### Props
|
|
72
|
+
|
|
73
|
+
- mapping
|
|
74
|
+
- dataRecord
|
|
75
|
+
- query
|
|
76
|
+
- params
|
|
77
|
+
- pointer
|
|
78
|
+
- pointerArray
|
|
79
|
+
- defaultImage
|
|
80
|
+
|
|
81
|
+
- #### DeckQueue
|
|
82
|
+
##### Props
|
|
83
|
+
- page
|
|
84
|
+
- dataRecord
|
|
85
|
+
- query
|
|
86
|
+
- params
|
|
87
|
+
- pointer
|
|
88
|
+
- pointerArray
|
|
89
|
+
|
|
90
|
+
### Layout Components
|
|
91
|
+
|
|
92
|
+
- #### Column1
|
|
93
|
+
- #### Column2
|
|
94
|
+
##### Props
|
|
95
|
+
- rightItems
|
|
96
|
+
- #### Column3
|
|
97
|
+
##### Props
|
|
98
|
+
- leftItems
|
|
99
|
+
- rightItems
|
|
100
|
+
##### Common Props (Column1, Column2, Column3)
|
|
101
|
+
- title
|
|
102
|
+
- children
|
|
103
|
+
- #### Header
|
|
104
|
+
##### Props
|
|
105
|
+
- title
|
|
106
|
+
- keyword
|
|
107
|
+
- description
|
|
108
|
+
- #### LeftNav
|
|
109
|
+
##### Props
|
|
110
|
+
- leftItems
|
|
111
|
+
- #### AccordionPanel
|
|
112
|
+
##### Props
|
|
113
|
+
- accordionClassName
|
|
114
|
+
- data
|
|
115
|
+
|
|
116
|
+
### Navigation Components
|
|
117
|
+
|
|
118
|
+
- #### NavMagazine
|
|
119
|
+
##### Props
|
|
120
|
+
- logo
|
|
121
|
+
- dataObject
|
|
122
|
+
- #### NavNative
|
|
123
|
+
##### Props
|
|
124
|
+
- logo
|
|
125
|
+
- dataObject
|
|
126
|
+
- #### NavNormal
|
|
127
|
+
##### Props
|
|
128
|
+
- logo
|
|
129
|
+
- dataObject
|
|
130
|
+
- variant
|
|
131
|
+
- #### NavDvm
|
|
132
|
+
##### Props
|
|
133
|
+
- logo
|
|
134
|
+
- dataObject
|
|
135
|
+
- subNavHeads
|
|
136
|
+
|
|
137
|
+
### Template Components
|
|
138
|
+
|
|
139
|
+
- #### TemplateNormal
|
|
140
|
+
##### Props
|
|
141
|
+
- config
|
|
142
|
+
- title
|
|
143
|
+
- keywords
|
|
144
|
+
- description
|
|
145
|
+
- website
|
|
146
|
+
|
|
147
|
+
### Ad Components
|
|
148
|
+
|
|
149
|
+
- #### AD300x250
|
|
150
|
+
- #### AD300x250x600
|
|
151
|
+
- #### AD728x90
|
|
152
|
+
##### Common Props
|
|
153
|
+
- networkID
|
|
154
|
+
- adUnit
|
|
155
|
+
|
|
156
|
+
### Serializers
|
|
157
|
+
|
|
158
|
+
- #### getSerializers (function)
|
|
159
|
+
##### arguments
|
|
160
|
+
- client
|
|
161
|
+
##### types
|
|
162
|
+
- youtube
|
|
163
|
+
- figure
|
|
164
|
+
- slideshow
|
|
165
|
+
|
|
166
|
+
## License
|
|
167
|
+
|
|
168
|
+
MIT © [mjh-framework](https://github.com/mjh-framework)
|
|
@@ -830,7 +830,7 @@ function parseAlgoliaHit(_ref2) {
|
|
|
830
830
|
});
|
|
831
831
|
}
|
|
832
832
|
|
|
833
|
-
var version$1 = '6.
|
|
833
|
+
var version$1 = '6.11.2';
|
|
834
834
|
|
|
835
835
|
var withKeysPropType = function withKeysPropType(keys) {
|
|
836
836
|
return function (props, propName, componentName) {
|
|
@@ -912,10 +912,6 @@ function translatable(defaultTranslations) {
|
|
|
912
912
|
function getIndexId(context) {
|
|
913
913
|
return hasMultipleIndices(context) ? context.multiIndexContext.targetedIndex : context.ais.mainTargetedIndex;
|
|
914
914
|
}
|
|
915
|
-
/**
|
|
916
|
-
* @returns {import('algoliasearch-helper').SearchResults} results
|
|
917
|
-
*/
|
|
918
|
-
|
|
919
915
|
function getResults(searchResults, context) {
|
|
920
916
|
if (searchResults.results) {
|
|
921
917
|
if (searchResults.results.hits) {
|
|
@@ -4780,7 +4776,7 @@ var requestBuilder = {
|
|
|
4780
4776
|
|
|
4781
4777
|
var requestBuilder_1 = requestBuilder;
|
|
4782
4778
|
|
|
4783
|
-
var version = '3.5.
|
|
4779
|
+
var version = '3.5.3';
|
|
4784
4780
|
|
|
4785
4781
|
/**
|
|
4786
4782
|
* Event triggered when a parameter is set or updated
|
|
@@ -6428,87 +6424,6 @@ ConfigureRelatedItems.propTypes = {
|
|
|
6428
6424
|
};
|
|
6429
6425
|
connectConfigureRelatedItems(ConfigureRelatedItems);
|
|
6430
6426
|
|
|
6431
|
-
var connectDynamicWidgets = createConnectorWithContext({
|
|
6432
|
-
displayName: 'AlgoliaDynamicWidgets',
|
|
6433
|
-
defaultProps: {
|
|
6434
|
-
transformItems: function transformItems(items) {
|
|
6435
|
-
return items;
|
|
6436
|
-
}
|
|
6437
|
-
},
|
|
6438
|
-
propTypes: {
|
|
6439
|
-
transformItems: PropTypes__default['default'].func
|
|
6440
|
-
},
|
|
6441
|
-
getProvidedProps: function getProvidedProps(props, _searchState, searchResults) {
|
|
6442
|
-
var results = getResults(searchResults, {
|
|
6443
|
-
ais: props.contextValue,
|
|
6444
|
-
multiIndexContext: props.indexContextValue
|
|
6445
|
-
});
|
|
6446
|
-
|
|
6447
|
-
if (!results) {
|
|
6448
|
-
return {
|
|
6449
|
-
attributesToRender: []
|
|
6450
|
-
};
|
|
6451
|
-
}
|
|
6452
|
-
|
|
6453
|
-
var facetOrder = results.renderingContent && results.renderingContent.facetOrdering && results.renderingContent.facetOrdering.facets && results.renderingContent.facetOrdering.facets.order || [];
|
|
6454
|
-
return {
|
|
6455
|
-
attributesToRender: props.transformItems(facetOrder, {
|
|
6456
|
-
results: results
|
|
6457
|
-
})
|
|
6458
|
-
};
|
|
6459
|
-
}
|
|
6460
|
-
});
|
|
6461
|
-
|
|
6462
|
-
function getAttribute(component) {
|
|
6463
|
-
if (_typeof(component) !== 'object') {
|
|
6464
|
-
return undefined;
|
|
6465
|
-
}
|
|
6466
|
-
|
|
6467
|
-
if (component.props.attribute) {
|
|
6468
|
-
return component.props.attribute;
|
|
6469
|
-
}
|
|
6470
|
-
|
|
6471
|
-
if (Array.isArray(component.props.attributes)) {
|
|
6472
|
-
return component.props.attributes[0];
|
|
6473
|
-
}
|
|
6474
|
-
|
|
6475
|
-
if (component.props.children) {
|
|
6476
|
-
return getAttribute(React__default['default'].Children.only(component.props.children));
|
|
6477
|
-
}
|
|
6478
|
-
|
|
6479
|
-
return undefined;
|
|
6480
|
-
}
|
|
6481
|
-
|
|
6482
|
-
function DynamicWidgets(_ref) {
|
|
6483
|
-
var children = _ref.children,
|
|
6484
|
-
attributesToRender = _ref.attributesToRender,
|
|
6485
|
-
_ref$fallbackComponen = _ref.fallbackComponent,
|
|
6486
|
-
Fallback = _ref$fallbackComponen === void 0 ? function () {
|
|
6487
|
-
return null;
|
|
6488
|
-
} : _ref$fallbackComponen;
|
|
6489
|
-
var widgets = new Map();
|
|
6490
|
-
React__default['default'].Children.forEach(children, function (child) {
|
|
6491
|
-
var attribute = getAttribute(child);
|
|
6492
|
-
|
|
6493
|
-
if (!attribute) {
|
|
6494
|
-
throw new Error("Could not find \"attribute\" prop for ".concat(getDisplayName(child), "."));
|
|
6495
|
-
}
|
|
6496
|
-
|
|
6497
|
-
widgets.set(attribute, child);
|
|
6498
|
-
}); // on initial render this will be empty, but React InstantSearch keeps
|
|
6499
|
-
// search state for unmounted components in place, so routing works.
|
|
6500
|
-
|
|
6501
|
-
return React__default['default'].createElement(React__default['default'].Fragment, null, attributesToRender.map(function (attribute) {
|
|
6502
|
-
return React__default['default'].createElement(React.Fragment, {
|
|
6503
|
-
key: attribute
|
|
6504
|
-
}, widgets.get(attribute) || React__default['default'].createElement(Fallback, {
|
|
6505
|
-
attribute: attribute
|
|
6506
|
-
}));
|
|
6507
|
-
}));
|
|
6508
|
-
}
|
|
6509
|
-
|
|
6510
|
-
connectDynamicWidgets(DynamicWidgets);
|
|
6511
|
-
|
|
6512
6427
|
// A context rule must consist only of alphanumeric characters, hyphens, and underscores.
|
|
6513
6428
|
// See https://www.algolia.com/doc/guides/managing-results/refine-results/merchandising-and-promoting/in-depth/implementing-query-rules/#context
|
|
6514
6429
|
function escapeRuleContext(ruleName) {
|
|
@@ -7918,8 +7833,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7918
7833
|
showMore: PropTypes__default['default'].bool,
|
|
7919
7834
|
limit: PropTypes__default['default'].number,
|
|
7920
7835
|
showMoreLimit: PropTypes__default['default'].number,
|
|
7921
|
-
transformItems: PropTypes__default['default'].func
|
|
7922
|
-
facetOrdering: PropTypes__default['default'].bool
|
|
7836
|
+
transformItems: PropTypes__default['default'].func
|
|
7923
7837
|
},
|
|
7924
7838
|
defaultProps: {
|
|
7925
7839
|
showMore: false,
|
|
@@ -7927,14 +7841,12 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7927
7841
|
showMoreLimit: 20,
|
|
7928
7842
|
separator: ' > ',
|
|
7929
7843
|
rootPath: null,
|
|
7930
|
-
showParentLevel: true
|
|
7931
|
-
facetOrdering: true
|
|
7844
|
+
showParentLevel: true
|
|
7932
7845
|
},
|
|
7933
7846
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
7934
7847
|
var showMore = props.showMore,
|
|
7935
7848
|
limit = props.limit,
|
|
7936
|
-
showMoreLimit = props.showMoreLimit
|
|
7937
|
-
facetOrdering = props.facetOrdering;
|
|
7849
|
+
showMoreLimit = props.showMoreLimit;
|
|
7938
7850
|
var id = getId$c(props);
|
|
7939
7851
|
var results = getResults(searchResults, {
|
|
7940
7852
|
ais: props.contextValue,
|
|
@@ -7955,8 +7867,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7955
7867
|
|
|
7956
7868
|
var itemsLimit = showMore ? showMoreLimit : limit;
|
|
7957
7869
|
var value = results.getFacetValues(id, {
|
|
7958
|
-
sortBy: sortBy$1
|
|
7959
|
-
facetOrdering: facetOrdering
|
|
7870
|
+
sortBy: sortBy$1
|
|
7960
7871
|
});
|
|
7961
7872
|
var items = value.data ? transformValue(value.data, props, searchState, {
|
|
7962
7873
|
ais: props.contextValue,
|
|
@@ -8508,20 +8419,17 @@ var connectMenu = createConnectorWithContext({
|
|
|
8508
8419
|
showMoreLimit: PropTypes__default['default'].number,
|
|
8509
8420
|
defaultRefinement: PropTypes__default['default'].string,
|
|
8510
8421
|
transformItems: PropTypes__default['default'].func,
|
|
8511
|
-
searchable: PropTypes__default['default'].bool
|
|
8512
|
-
facetOrdering: PropTypes__default['default'].bool
|
|
8422
|
+
searchable: PropTypes__default['default'].bool
|
|
8513
8423
|
},
|
|
8514
8424
|
defaultProps: {
|
|
8515
8425
|
showMore: false,
|
|
8516
8426
|
limit: 10,
|
|
8517
|
-
showMoreLimit: 20
|
|
8518
|
-
facetOrdering: true
|
|
8427
|
+
showMoreLimit: 20
|
|
8519
8428
|
},
|
|
8520
8429
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults, meta, searchForFacetValuesResults) {
|
|
8521
8430
|
var attribute = props.attribute,
|
|
8522
8431
|
searchable = props.searchable,
|
|
8523
|
-
indexContextValue = props.indexContextValue
|
|
8524
|
-
facetOrdering = props.facetOrdering;
|
|
8432
|
+
indexContextValue = props.indexContextValue;
|
|
8525
8433
|
var results = getResults(searchResults, {
|
|
8526
8434
|
ais: props.contextValue,
|
|
8527
8435
|
multiIndexContext: props.indexContextValue
|
|
@@ -8567,8 +8475,7 @@ var connectMenu = createConnectorWithContext({
|
|
|
8567
8475
|
});
|
|
8568
8476
|
} else {
|
|
8569
8477
|
items = results.getFacetValues(attribute, {
|
|
8570
|
-
sortBy: searchable ? undefined : defaultSortBy
|
|
8571
|
-
facetOrdering: facetOrdering
|
|
8478
|
+
sortBy: searchable ? undefined : defaultSortBy
|
|
8572
8479
|
}).map(function (v) {
|
|
8573
8480
|
return {
|
|
8574
8481
|
label: v.name,
|
|
@@ -9425,21 +9332,18 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9425
9332
|
showMoreLimit: PropTypes__default['default'].number,
|
|
9426
9333
|
defaultRefinement: PropTypes__default['default'].arrayOf(PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].number])),
|
|
9427
9334
|
searchable: PropTypes__default['default'].bool,
|
|
9428
|
-
transformItems: PropTypes__default['default'].func
|
|
9429
|
-
facetOrdering: PropTypes__default['default'].bool
|
|
9335
|
+
transformItems: PropTypes__default['default'].func
|
|
9430
9336
|
},
|
|
9431
9337
|
defaultProps: {
|
|
9432
9338
|
operator: 'or',
|
|
9433
9339
|
showMore: false,
|
|
9434
9340
|
limit: 10,
|
|
9435
|
-
showMoreLimit: 20
|
|
9436
|
-
facetOrdering: true
|
|
9341
|
+
showMoreLimit: 20
|
|
9437
9342
|
},
|
|
9438
9343
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults, metadata, searchForFacetValuesResults) {
|
|
9439
9344
|
var attribute = props.attribute,
|
|
9440
9345
|
searchable = props.searchable,
|
|
9441
|
-
indexContextValue = props.indexContextValue
|
|
9442
|
-
facetOrdering = props.facetOrdering;
|
|
9346
|
+
indexContextValue = props.indexContextValue;
|
|
9443
9347
|
var results = getResults(searchResults, {
|
|
9444
9348
|
ais: props.contextValue,
|
|
9445
9349
|
multiIndexContext: props.indexContextValue
|
|
@@ -9480,8 +9384,7 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9480
9384
|
isRefined: v.isRefined
|
|
9481
9385
|
};
|
|
9482
9386
|
}) : results.getFacetValues(attribute, {
|
|
9483
|
-
sortBy: sortBy
|
|
9484
|
-
facetOrdering: facetOrdering
|
|
9387
|
+
sortBy: sortBy
|
|
9485
9388
|
}).map(function (v) {
|
|
9486
9389
|
return {
|
|
9487
9390
|
label: v.name,
|
|
@@ -10981,7 +10884,6 @@ function (_Component) {
|
|
|
10981
10884
|
|
|
10982
10885
|
var _this$props4 = this.props,
|
|
10983
10886
|
className = _this$props4.className,
|
|
10984
|
-
inputId = _this$props4.inputId,
|
|
10985
10887
|
translate = _this$props4.translate,
|
|
10986
10888
|
autoFocus = _this$props4.autoFocus,
|
|
10987
10889
|
loadingIndicator = _this$props4.loadingIndicator,
|
|
@@ -11009,7 +10911,6 @@ function (_Component) {
|
|
|
11009
10911
|
role: "search"
|
|
11010
10912
|
}, React__default['default'].createElement("input", index._extends({
|
|
11011
10913
|
ref: this.onInputMount,
|
|
11012
|
-
id: inputId,
|
|
11013
10914
|
type: "search",
|
|
11014
10915
|
placeholder: translate('placeholder'),
|
|
11015
10916
|
autoFocus: autoFocus,
|
|
@@ -11061,8 +10962,7 @@ _defineProperty(SearchBox$1, "propTypes", {
|
|
|
11061
10962
|
showLoadingIndicator: PropTypes__default['default'].bool,
|
|
11062
10963
|
inputRef: PropTypes__default['default'].oneOfType([PropTypes__default['default'].func, PropTypes__default['default'].exact({
|
|
11063
10964
|
current: PropTypes__default['default'].object
|
|
11064
|
-
})])
|
|
11065
|
-
inputId: PropTypes__default['default'].string
|
|
10965
|
+
})])
|
|
11066
10966
|
});
|
|
11067
10967
|
|
|
11068
10968
|
_defineProperty(SearchBox$1, "defaultProps", {
|
|
@@ -11701,11 +11601,9 @@ function (_Component) {
|
|
|
11701
11601
|
value: function render() {
|
|
11702
11602
|
var _this$props = this.props,
|
|
11703
11603
|
cx = _this$props.cx,
|
|
11704
|
-
id = _this$props.id,
|
|
11705
11604
|
items = _this$props.items,
|
|
11706
11605
|
selectedItem = _this$props.selectedItem;
|
|
11707
11606
|
return React__default['default'].createElement("select", {
|
|
11708
|
-
id: id,
|
|
11709
11607
|
className: cx('select'),
|
|
11710
11608
|
value: selectedItem,
|
|
11711
11609
|
onChange: this.onChange
|
|
@@ -11725,7 +11623,6 @@ function (_Component) {
|
|
|
11725
11623
|
|
|
11726
11624
|
_defineProperty(Select, "propTypes", {
|
|
11727
11625
|
cx: PropTypes__default['default'].func.isRequired,
|
|
11728
|
-
id: PropTypes__default['default'].string,
|
|
11729
11626
|
onSelect: PropTypes__default['default'].func.isRequired,
|
|
11730
11627
|
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
11731
11628
|
value: PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].number]).isRequired,
|
|
@@ -11753,7 +11650,6 @@ function (_Component) {
|
|
|
11753
11650
|
key: "render",
|
|
11754
11651
|
value: function render() {
|
|
11755
11652
|
var _this$props = this.props,
|
|
11756
|
-
id = _this$props.id,
|
|
11757
11653
|
items = _this$props.items,
|
|
11758
11654
|
currentRefinement = _this$props.currentRefinement,
|
|
11759
11655
|
refine = _this$props.refine,
|
|
@@ -11761,7 +11657,6 @@ function (_Component) {
|
|
|
11761
11657
|
return React__default['default'].createElement("div", {
|
|
11762
11658
|
className: index.classnames(cx$h(''), className)
|
|
11763
11659
|
}, React__default['default'].createElement(Select, {
|
|
11764
|
-
id: id,
|
|
11765
11660
|
onSelect: refine,
|
|
11766
11661
|
selectedItem: currentRefinement,
|
|
11767
11662
|
items: items,
|
|
@@ -11774,7 +11669,6 @@ function (_Component) {
|
|
|
11774
11669
|
}(React.Component);
|
|
11775
11670
|
|
|
11776
11671
|
_defineProperty(HitsPerPage, "propTypes", {
|
|
11777
|
-
id: PropTypes__default['default'].string,
|
|
11778
11672
|
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
11779
11673
|
value: PropTypes__default['default'].number.isRequired,
|
|
11780
11674
|
label: PropTypes__default['default'].string
|
|
@@ -11797,7 +11691,6 @@ _defineProperty(HitsPerPage, "defaultProps", {
|
|
|
11797
11691
|
*
|
|
11798
11692
|
* @name HitsPerPage
|
|
11799
11693
|
* @kind widget
|
|
11800
|
-
* @propType {string} id - The id of the select input
|
|
11801
11694
|
* @propType {{value: number, label: string}[]} items - List of available options.
|
|
11802
11695
|
* @propType {number} defaultRefinement - The number of items selected by default
|
|
11803
11696
|
* @propType {function} [transformItems] - Function to modify the items being displayed, e.g. for filtering or sorting them. Takes an items as parameter and expects it back in return.
|
|
@@ -12166,7 +12059,6 @@ function (_Component) {
|
|
|
12166
12059
|
key: "render",
|
|
12167
12060
|
value: function render() {
|
|
12168
12061
|
var _this$props = this.props,
|
|
12169
|
-
id = _this$props.id,
|
|
12170
12062
|
items = _this$props.items,
|
|
12171
12063
|
canRefine = _this$props.canRefine,
|
|
12172
12064
|
translate = _this$props.translate,
|
|
@@ -12174,7 +12066,6 @@ function (_Component) {
|
|
|
12174
12066
|
return React__default['default'].createElement("div", {
|
|
12175
12067
|
className: index.classnames(cx$e('', !canRefine && '-noRefinement'), className)
|
|
12176
12068
|
}, React__default['default'].createElement("select", {
|
|
12177
|
-
id: id,
|
|
12178
12069
|
value: this.selectedValue,
|
|
12179
12070
|
onChange: this.handleSelectChange,
|
|
12180
12071
|
className: cx$e('select')
|
|
@@ -12207,7 +12098,6 @@ function (_Component) {
|
|
|
12207
12098
|
}(React.Component);
|
|
12208
12099
|
|
|
12209
12100
|
_defineProperty(MenuSelect, "propTypes", {
|
|
12210
|
-
id: PropTypes__default['default'].string,
|
|
12211
12101
|
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
12212
12102
|
label: PropTypes__default['default'].string.isRequired,
|
|
12213
12103
|
value: PropTypes__default['default'].string.isRequired,
|
|
@@ -12234,7 +12124,6 @@ var MenuSelect$1 = translatable({
|
|
|
12234
12124
|
* @kind widget
|
|
12235
12125
|
* @requirements The attribute passed to the `attribute` prop must be present in "attributes for faceting"
|
|
12236
12126
|
* on the Algolia dashboard or configured as `attributesForFaceting` via a set settings call to the Algolia API.
|
|
12237
|
-
* @propType {string} id - the id of the select input
|
|
12238
12127
|
* @propType {string} attribute - the name of the attribute in the record
|
|
12239
12128
|
* @propType {string} [defaultRefinement] - the value of the item selected by default
|
|
12240
12129
|
* @propType {number} [limit=10] - the minimum number of diplayed items
|
|
@@ -13566,7 +13455,6 @@ connectScrollTo(ScrollTo);
|
|
|
13566
13455
|
* @propType {node} [reset] - Change the apparence of the default reset button (cross).
|
|
13567
13456
|
* @propType {node} [loadingIndicator] - Change the apparence of the default loading indicator (spinning circle).
|
|
13568
13457
|
* @propType {string} [defaultRefinement] - Provide default refinement value when component is mounted.
|
|
13569
|
-
* @propType {string} [inputId] - The id of the search input
|
|
13570
13458
|
* @propType {boolean} [showLoadingIndicator=false] - Display that the search is loading. This only happens after a certain amount of time to avoid a blinking effect. This timer can be configured with `stalledSearchDelay` props on <InstantSearch>. By default, the value is 200ms.
|
|
13571
13459
|
* @themeKey ais-SearchBox - the root div of the widget
|
|
13572
13460
|
* @themeKey ais-SearchBox-form - the wrapping form
|
|
@@ -13717,7 +13605,6 @@ function (_Component) {
|
|
|
13717
13605
|
key: "render",
|
|
13718
13606
|
value: function render() {
|
|
13719
13607
|
var _this$props = this.props,
|
|
13720
|
-
id = _this$props.id,
|
|
13721
13608
|
items = _this$props.items,
|
|
13722
13609
|
currentRefinement = _this$props.currentRefinement,
|
|
13723
13610
|
refine = _this$props.refine,
|
|
@@ -13725,7 +13612,6 @@ function (_Component) {
|
|
|
13725
13612
|
return React__default['default'].createElement("div", {
|
|
13726
13613
|
className: index.classnames(cx$4(''), className)
|
|
13727
13614
|
}, React__default['default'].createElement(Select, {
|
|
13728
|
-
id: id,
|
|
13729
13615
|
cx: cx$4,
|
|
13730
13616
|
items: items,
|
|
13731
13617
|
selectedItem: currentRefinement,
|
|
@@ -13738,7 +13624,6 @@ function (_Component) {
|
|
|
13738
13624
|
}(React.Component);
|
|
13739
13625
|
|
|
13740
13626
|
_defineProperty(SortBy, "propTypes", {
|
|
13741
|
-
id: PropTypes__default['default'].string,
|
|
13742
13627
|
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
13743
13628
|
label: PropTypes__default['default'].string,
|
|
13744
13629
|
value: PropTypes__default['default'].string.isRequired
|
|
@@ -13758,7 +13643,6 @@ _defineProperty(SortBy, "defaultProps", {
|
|
|
13758
13643
|
* @requirements Algolia handles sorting by creating replica indices. [Read more about sorting](https://www.algolia.com/doc/guides/relevance/sorting/) on
|
|
13759
13644
|
* the Algolia website.
|
|
13760
13645
|
* @kind widget
|
|
13761
|
-
* @propType {string} id - The id of the select input
|
|
13762
13646
|
* @propType {{value: string, label: string}[]} items - The list of indexes to search in.
|
|
13763
13647
|
* @propType {string} defaultRefinement - The default selected index.
|
|
13764
13648
|
* @propType {function} [transformItems] - Function to modify the items being displayed, e.g. for filtering or sorting them. Takes an items as parameter and expects it back in return.
|