vue-instantsearch 4.17.4 → 4.17.5
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 +1 -0
- package/package.json +4 -4
- package/src/__tests__/common-widgets.test.js +28 -0
- package/src/util/__tests__/createServerRootMixin.test.js +0 -10
- package/vue2/cjs/index.js +1 -1
- package/vue2/es/package.json.js +1 -1
- package/vue2/umd/index.js +1 -1
- package/vue2/umd/index.js.map +1 -1
- package/vue3/cjs/index.js +1 -1
- package/vue3/es/package.json.js +1 -1
- package/vue3/umd/index.js +1 -1
- package/vue3/umd/index.js.map +1 -1
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"autocomplete"
|
|
17
17
|
],
|
|
18
18
|
"license": "MIT",
|
|
19
|
-
"version": "4.17.
|
|
19
|
+
"version": "4.17.5",
|
|
20
20
|
"files": [
|
|
21
21
|
"vue2",
|
|
22
22
|
"vue3",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"instantsearch-ui-components": "0.7.0",
|
|
40
|
-
"instantsearch.js": "4.72.
|
|
40
|
+
"instantsearch.js": "4.72.1",
|
|
41
41
|
"mitt": "^2.1.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@vue/test-utils": "1.3.0",
|
|
63
63
|
"@vue/test-utils2": "npm:@vue/test-utils@2.0.0-rc.11",
|
|
64
64
|
"algoliasearch": "4.23.2",
|
|
65
|
-
"algoliasearch-helper": "3.22.
|
|
65
|
+
"algoliasearch-helper": "3.22.1",
|
|
66
66
|
"instantsearch.css": "8.2.1",
|
|
67
67
|
"rollup": "1.32.1",
|
|
68
68
|
"rollup-plugin-babel": "4.4.0",
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"vuex": "3.5.1",
|
|
90
90
|
"vuex4": "npm:vuex@4.0.0"
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "035e7a8634884096e71dfbd001c485b79f9bbf88"
|
|
93
93
|
}
|
|
@@ -28,6 +28,7 @@ import {
|
|
|
28
28
|
AisNumericMenu,
|
|
29
29
|
AisPoweredBy,
|
|
30
30
|
AisMenuSelect,
|
|
31
|
+
AisDynamicWidgets,
|
|
31
32
|
} from '../instantsearch';
|
|
32
33
|
import { renderCompat } from '../util/vue-compat';
|
|
33
34
|
|
|
@@ -554,6 +555,32 @@ const testSetups = {
|
|
|
554
555
|
|
|
555
556
|
await nextTick();
|
|
556
557
|
},
|
|
558
|
+
createDynamicWidgetsWidgetTests({ instantSearchOptions, widgetParams }) {
|
|
559
|
+
mountApp(
|
|
560
|
+
{
|
|
561
|
+
render: renderCompat((h) =>
|
|
562
|
+
h(AisInstantSearch, { props: instantSearchOptions }, [
|
|
563
|
+
h(
|
|
564
|
+
AisDynamicWidgets,
|
|
565
|
+
{ props: widgetParams },
|
|
566
|
+
h(AisRefinementList, { props: { attribute: 'brand' } }),
|
|
567
|
+
h(AisMenu, { props: { attribute: 'category' } }),
|
|
568
|
+
h(AisHierarchicalMenu, {
|
|
569
|
+
props: {
|
|
570
|
+
attributes: [
|
|
571
|
+
'hierarchicalCategories.lvl0',
|
|
572
|
+
'hierarchicalCategories.lvl1',
|
|
573
|
+
],
|
|
574
|
+
},
|
|
575
|
+
})
|
|
576
|
+
),
|
|
577
|
+
h(GlobalErrorSwallower),
|
|
578
|
+
])
|
|
579
|
+
),
|
|
580
|
+
},
|
|
581
|
+
document.body.appendChild(document.createElement('div'))
|
|
582
|
+
);
|
|
583
|
+
},
|
|
557
584
|
};
|
|
558
585
|
|
|
559
586
|
const testOptions = {
|
|
@@ -591,6 +618,7 @@ const testOptions = {
|
|
|
591
618
|
skippedTests: { 'LookingSimilar widget common tests': true },
|
|
592
619
|
},
|
|
593
620
|
createPoweredByWidgetTests: undefined,
|
|
621
|
+
createDynamicWidgetsWidgetTests: undefined,
|
|
594
622
|
};
|
|
595
623
|
|
|
596
624
|
describe('Common widget tests (Vue InstantSearch)', () => {
|
|
@@ -262,10 +262,8 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/instantsear
|
|
|
262
262
|
{
|
|
263
263
|
"indexName": "hello",
|
|
264
264
|
"params": {
|
|
265
|
-
"facets": [],
|
|
266
265
|
"hitsPerPage": 100,
|
|
267
266
|
"query": "",
|
|
268
|
-
"tagFilters": "",
|
|
269
267
|
},
|
|
270
268
|
},
|
|
271
269
|
]
|
|
@@ -318,10 +316,8 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/instantsear
|
|
|
318
316
|
|
|
319
317
|
expect(state.hello).toEqual({
|
|
320
318
|
requestParams: {
|
|
321
|
-
facets: [],
|
|
322
319
|
hitsPerPage: 100,
|
|
323
320
|
query: '',
|
|
324
|
-
tagFilters: '',
|
|
325
321
|
},
|
|
326
322
|
results: [
|
|
327
323
|
{
|
|
@@ -347,10 +343,8 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/instantsear
|
|
|
347
343
|
// Parent's widgets state should not be merged into nested index state
|
|
348
344
|
expect(state.nestedIndex).toEqual({
|
|
349
345
|
requestParams: {
|
|
350
|
-
facets: [],
|
|
351
346
|
hitsPerPage: 100,
|
|
352
347
|
query: '',
|
|
353
|
-
tagFilters: '',
|
|
354
348
|
},
|
|
355
349
|
results: [
|
|
356
350
|
{
|
|
@@ -879,10 +873,8 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/instantsear
|
|
|
879
873
|
{
|
|
880
874
|
"indexName": "hello",
|
|
881
875
|
"params": {
|
|
882
|
-
"facets": [],
|
|
883
876
|
"hitsPerPage": 100,
|
|
884
877
|
"query": "",
|
|
885
|
-
"tagFilters": "",
|
|
886
878
|
},
|
|
887
879
|
},
|
|
888
880
|
]
|
|
@@ -955,10 +947,8 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/instantsear
|
|
|
955
947
|
{
|
|
956
948
|
"indexName": "hello",
|
|
957
949
|
"params": {
|
|
958
|
-
"facets": [],
|
|
959
950
|
"hitsPerPage": 100,
|
|
960
951
|
"query": "",
|
|
961
|
-
"tagFilters": "",
|
|
962
952
|
},
|
|
963
953
|
},
|
|
964
954
|
]
|