@empathyco/x-components 3.0.0-alpha.49 → 3.0.0-alpha.52
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/CHANGELOG.md +39 -0
- package/design-system/default-theme.css +32 -28
- package/design-system/full-theme.css +16 -14
- package/design-system/tag-default.css +16 -14
- package/docs/API-reference/api/x-components.md +1 -1
- package/docs/API-reference/api/x-components.tagging.md +1 -1
- package/docs/API-reference/components/tagging/x-components.tagging.md +3 -2
- package/docs/build-search-ui/README.md +12 -9
- package/docs/build-search-ui/web-archetype-development-guide.md +20 -9
- package/docs/build-search-ui/web-archetype-integration-guide.md +3 -3
- package/docs/build-search-ui/web-use-x-components-guide.md +13 -5
- package/docs/build-search-ui/web-x-components-integration-guide.md +28 -17
- package/docs/build-search-ui/x-architecture/README.md +9 -4
- package/js/x-modules/facets/wiring.js +5 -5
- package/js/x-modules/facets/wiring.js.map +1 -1
- package/js/x-modules/history-queries/wiring.js +3 -3
- package/js/x-modules/history-queries/wiring.js.map +1 -1
- package/js/x-modules/identifier-results/wiring.js +4 -4
- package/js/x-modules/identifier-results/wiring.js.map +1 -1
- package/js/x-modules/next-queries/wiring.js +3 -3
- package/js/x-modules/next-queries/wiring.js.map +1 -1
- package/js/x-modules/query-suggestions/wiring.js +3 -3
- package/js/x-modules/query-suggestions/wiring.js.map +1 -1
- package/js/x-modules/search/wiring.js +4 -4
- package/js/x-modules/search/wiring.js.map +1 -1
- package/js/x-modules/search-box/wiring.js +3 -3
- package/js/x-modules/search-box/wiring.js.map +1 -1
- package/js/x-modules/tagging/components/tagging.vue.js.map +1 -1
- package/js/x-modules/tagging/components/tagging.vue_rollup-plugin-vue=script.js +3 -2
- package/js/x-modules/tagging/components/tagging.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/url/wiring.js +3 -3
- package/js/x-modules/url/wiring.js.map +1 -1
- package/package.json +2 -2
- package/report/x-components.api.json +1 -1
- package/report/x-components.api.md +27 -27
- package/types/x-modules/facets/wiring.d.ts +4 -4
- package/types/x-modules/history-queries/wiring.d.ts +3 -3
- package/types/x-modules/identifier-results/wiring.d.ts +4 -4
- package/types/x-modules/next-queries/wiring.d.ts +3 -3
- package/types/x-modules/query-suggestions/wiring.d.ts +3 -3
- package/types/x-modules/search/wiring.d.ts +4 -4
- package/types/x-modules/search-box/wiring.d.ts +3 -3
- package/types/x-modules/tagging/components/tagging.vue.d.ts +3 -2
- package/types/x-modules/tagging/components/tagging.vue.d.ts.map +1 -1
- package/types/x-modules/url/wiring.d.ts +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,45 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See
|
|
4
4
|
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.0.0-alpha.52](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.51...@empathyco/x-components@3.0.0-alpha.52) (2022-02-07)
|
|
7
|
+
|
|
8
|
+
### Documentation
|
|
9
|
+
|
|
10
|
+
- fix multiple broken links
|
|
11
|
+
([226a2e5](https://github.com/empathyco/x/commit/226a2e54a4ed8832c7c47d26254e85c301913d98)),
|
|
12
|
+
closes [EX-5035](https://searchbroker.atlassian.net/browse/EX-5035)
|
|
13
|
+
|
|
14
|
+
# Change Log
|
|
15
|
+
|
|
16
|
+
All notable changes to this project will be documented in this file. See
|
|
17
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
18
|
+
|
|
19
|
+
## [3.0.0-alpha.51](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.50...@empathyco/x-components@3.0.0-alpha.51) (2022-02-04)
|
|
20
|
+
|
|
21
|
+
### Code Refactoring
|
|
22
|
+
|
|
23
|
+
- change to the top of the wiring the ParamsLoadedFromUrl event.
|
|
24
|
+
([26634c8](https://github.com/empathyco/x/commit/26634c8010bc4d2e795caceefc622c6329fad72c)),
|
|
25
|
+
closes [EX-5327](https://searchbroker.atlassian.net/browse/EX-5327)
|
|
26
|
+
|
|
27
|
+
# Change Log
|
|
28
|
+
|
|
29
|
+
All notable changes to this project will be documented in this file. See
|
|
30
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
31
|
+
|
|
32
|
+
## [3.0.0-alpha.50](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.49...@empathyco/x-components@3.0.0-alpha.50) (2022-02-04)
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
- **design-system:** change curated tag toke values to reuse default ones.
|
|
37
|
+
([2fd261a](https://github.com/empathyco/x/commit/2fd261ae54ec3de8eabdbcd5611bf5e1416d37f8)),
|
|
38
|
+
closes [EX-5354](https://searchbroker.atlassian.net/browse/EX-5354)
|
|
39
|
+
|
|
40
|
+
# Change Log
|
|
41
|
+
|
|
42
|
+
All notable changes to this project will be documented in this file. See
|
|
43
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
44
|
+
|
|
6
45
|
## [3.0.0-alpha.49](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.48...@empathyco/x-components@3.0.0-alpha.49) (2022-02-03)
|
|
7
46
|
|
|
8
47
|
### Continuous Integration
|
|
@@ -2076,12 +2076,12 @@
|
|
|
2076
2076
|
--x-color-background-tag-default-selected: var(--x-color-base-neutral-95);
|
|
2077
2077
|
--x-color-border-tag-default-selected: var(--x-color-border-tag-default);
|
|
2078
2078
|
--x-color-text-tag-default-selected: var(--x-color-text-tag-default);
|
|
2079
|
-
--x-color-background-tag-default-curated: var(--x-color-
|
|
2080
|
-
--x-color-border-tag-default-curated: var(--x-color-
|
|
2081
|
-
--x-color-text-tag-default-curated: var(--x-color-text-default);
|
|
2082
|
-
--x-color-background-tag-default-curated-selected: var(--x-color-
|
|
2083
|
-
--x-color-border-tag-default-curated-selected: var(--x-color-border-tag-default);
|
|
2084
|
-
--x-color-text-tag-default-curated-selected: var(--x-color-text-tag-default);
|
|
2079
|
+
--x-color-background-tag-default-curated: var(--x-color-background-tag-default);
|
|
2080
|
+
--x-color-border-tag-default-curated: var(--x-color-border-tag-default);
|
|
2081
|
+
--x-color-text-tag-default-curated: var(--x-color-text-tag-default);
|
|
2082
|
+
--x-color-background-tag-default-curated-selected: var(--x-color-background-tag-default-selected);
|
|
2083
|
+
--x-color-border-tag-default-curated-selected: var(--x-color-border-tag-default-selected);
|
|
2084
|
+
--x-color-text-tag-default-curated-selected: var(--x-color-text-tag-default-selected);
|
|
2085
2085
|
--x-size-border-width-tag-default: var(--x-size-border-width-base);
|
|
2086
2086
|
--x-size-border-width-top-tag-default: var(--x-size-border-width-tag-default);
|
|
2087
2087
|
--x-size-border-width-right-tag-default: var(--x-size-border-width-tag-default);
|
|
@@ -2104,14 +2104,16 @@
|
|
|
2104
2104
|
--x-size-font-tag-default-selected: var(--x-size-font-tag-default);
|
|
2105
2105
|
--x-size-line-height-tag-default-selected: var(--x-size-line-height-tag-default);
|
|
2106
2106
|
--x-number-font-weight-tag-default-selected: var(--x-number-font-weight-tag-default);
|
|
2107
|
-
--x-font-family-tag-default-curated: var(--x-font-family-
|
|
2108
|
-
--x-size-font-tag-default-curated: var(--x-size-font-
|
|
2109
|
-
--x-size-line-height-tag-default-curated: var(--x-size-line-height-
|
|
2110
|
-
--x-number-font-weight-tag-default-curated: var(--x-number-font-weight-
|
|
2111
|
-
--x-font-family-tag-default-curated-selected: var(--x-font-family-tag-default);
|
|
2112
|
-
--x-size-font-tag-default-curated-selected: var(--x-size-font-tag-default);
|
|
2113
|
-
--x-size-line-height-tag-default-curated-selected: var(--x-size-line-height-tag-default);
|
|
2114
|
-
--x-number-font-weight-tag-default-curated-selected: var(
|
|
2107
|
+
--x-font-family-tag-default-curated: var(--x-font-family-tag-default);
|
|
2108
|
+
--x-size-font-tag-default-curated: var(--x-size-font-tag-default);
|
|
2109
|
+
--x-size-line-height-tag-default-curated: var(--x-size-line-height-tag-default);
|
|
2110
|
+
--x-number-font-weight-tag-default-curated: var(--x-number-font-weight-tag-default);
|
|
2111
|
+
--x-font-family-tag-default-curated-selected: var(--x-font-family-tag-default-selected);
|
|
2112
|
+
--x-size-font-tag-default-curated-selected: var(--x-size-font-tag-default-selected);
|
|
2113
|
+
--x-size-line-height-tag-default-curated-selected: var(--x-size-line-height-tag-default-selected);
|
|
2114
|
+
--x-number-font-weight-tag-default-curated-selected: var(
|
|
2115
|
+
--x-number-font-weight-tag-default-selected
|
|
2116
|
+
); }
|
|
2115
2117
|
|
|
2116
2118
|
@use 'sass:string';
|
|
2117
2119
|
[dir="ltr"] .x-tag {
|
|
@@ -2253,12 +2255,12 @@
|
|
|
2253
2255
|
--x-color-background-tag-default-selected: var(--x-color-base-neutral-95);
|
|
2254
2256
|
--x-color-border-tag-default-selected: var(--x-color-border-tag-default);
|
|
2255
2257
|
--x-color-text-tag-default-selected: var(--x-color-text-tag-default);
|
|
2256
|
-
--x-color-background-tag-default-curated: var(--x-color-
|
|
2257
|
-
--x-color-border-tag-default-curated: var(--x-color-
|
|
2258
|
-
--x-color-text-tag-default-curated: var(--x-color-text-default);
|
|
2259
|
-
--x-color-background-tag-default-curated-selected: var(--x-color-
|
|
2260
|
-
--x-color-border-tag-default-curated-selected: var(--x-color-border-tag-default);
|
|
2261
|
-
--x-color-text-tag-default-curated-selected: var(--x-color-text-tag-default);
|
|
2258
|
+
--x-color-background-tag-default-curated: var(--x-color-background-tag-default);
|
|
2259
|
+
--x-color-border-tag-default-curated: var(--x-color-border-tag-default);
|
|
2260
|
+
--x-color-text-tag-default-curated: var(--x-color-text-tag-default);
|
|
2261
|
+
--x-color-background-tag-default-curated-selected: var(--x-color-background-tag-default-selected);
|
|
2262
|
+
--x-color-border-tag-default-curated-selected: var(--x-color-border-tag-default-selected);
|
|
2263
|
+
--x-color-text-tag-default-curated-selected: var(--x-color-text-tag-default-selected);
|
|
2262
2264
|
--x-size-border-width-tag-default: var(--x-size-border-width-base);
|
|
2263
2265
|
--x-size-border-width-top-tag-default: var(--x-size-border-width-tag-default);
|
|
2264
2266
|
--x-size-border-width-right-tag-default: var(--x-size-border-width-tag-default);
|
|
@@ -2281,14 +2283,16 @@
|
|
|
2281
2283
|
--x-size-font-tag-default-selected: var(--x-size-font-tag-default);
|
|
2282
2284
|
--x-size-line-height-tag-default-selected: var(--x-size-line-height-tag-default);
|
|
2283
2285
|
--x-number-font-weight-tag-default-selected: var(--x-number-font-weight-tag-default);
|
|
2284
|
-
--x-font-family-tag-default-curated: var(--x-font-family-
|
|
2285
|
-
--x-size-font-tag-default-curated: var(--x-size-font-
|
|
2286
|
-
--x-size-line-height-tag-default-curated: var(--x-size-line-height-
|
|
2287
|
-
--x-number-font-weight-tag-default-curated: var(--x-number-font-weight-
|
|
2288
|
-
--x-font-family-tag-default-curated-selected: var(--x-font-family-tag-default);
|
|
2289
|
-
--x-size-font-tag-default-curated-selected: var(--x-size-font-tag-default);
|
|
2290
|
-
--x-size-line-height-tag-default-curated-selected: var(--x-size-line-height-tag-default);
|
|
2291
|
-
--x-number-font-weight-tag-default-curated-selected: var(
|
|
2286
|
+
--x-font-family-tag-default-curated: var(--x-font-family-tag-default);
|
|
2287
|
+
--x-size-font-tag-default-curated: var(--x-size-font-tag-default);
|
|
2288
|
+
--x-size-line-height-tag-default-curated: var(--x-size-line-height-tag-default);
|
|
2289
|
+
--x-number-font-weight-tag-default-curated: var(--x-number-font-weight-tag-default);
|
|
2290
|
+
--x-font-family-tag-default-curated-selected: var(--x-font-family-tag-default-selected);
|
|
2291
|
+
--x-size-font-tag-default-curated-selected: var(--x-size-font-tag-default-selected);
|
|
2292
|
+
--x-size-line-height-tag-default-curated-selected: var(--x-size-line-height-tag-default-selected);
|
|
2293
|
+
--x-number-font-weight-tag-default-curated-selected: var(
|
|
2294
|
+
--x-number-font-weight-tag-default-selected
|
|
2295
|
+
); }
|
|
2292
2296
|
|
|
2293
2297
|
:root {
|
|
2294
2298
|
--x-color-text-default: var(--x-color-base-neutral-10);
|
|
@@ -3394,12 +3394,12 @@
|
|
|
3394
3394
|
--x-color-background-tag-default-selected: var(--x-color-base-neutral-95);
|
|
3395
3395
|
--x-color-border-tag-default-selected: var(--x-color-border-tag-default);
|
|
3396
3396
|
--x-color-text-tag-default-selected: var(--x-color-text-tag-default);
|
|
3397
|
-
--x-color-background-tag-default-curated: var(--x-color-
|
|
3398
|
-
--x-color-border-tag-default-curated: var(--x-color-
|
|
3399
|
-
--x-color-text-tag-default-curated: var(--x-color-text-default);
|
|
3400
|
-
--x-color-background-tag-default-curated-selected: var(--x-color-
|
|
3401
|
-
--x-color-border-tag-default-curated-selected: var(--x-color-border-tag-default);
|
|
3402
|
-
--x-color-text-tag-default-curated-selected: var(--x-color-text-tag-default);
|
|
3397
|
+
--x-color-background-tag-default-curated: var(--x-color-background-tag-default);
|
|
3398
|
+
--x-color-border-tag-default-curated: var(--x-color-border-tag-default);
|
|
3399
|
+
--x-color-text-tag-default-curated: var(--x-color-text-tag-default);
|
|
3400
|
+
--x-color-background-tag-default-curated-selected: var(--x-color-background-tag-default-selected);
|
|
3401
|
+
--x-color-border-tag-default-curated-selected: var(--x-color-border-tag-default-selected);
|
|
3402
|
+
--x-color-text-tag-default-curated-selected: var(--x-color-text-tag-default-selected);
|
|
3403
3403
|
--x-size-border-width-tag-default: var(--x-size-border-width-base);
|
|
3404
3404
|
--x-size-border-width-top-tag-default: var(--x-size-border-width-tag-default);
|
|
3405
3405
|
--x-size-border-width-right-tag-default: var(--x-size-border-width-tag-default);
|
|
@@ -3422,14 +3422,16 @@
|
|
|
3422
3422
|
--x-size-font-tag-default-selected: var(--x-size-font-tag-default);
|
|
3423
3423
|
--x-size-line-height-tag-default-selected: var(--x-size-line-height-tag-default);
|
|
3424
3424
|
--x-number-font-weight-tag-default-selected: var(--x-number-font-weight-tag-default);
|
|
3425
|
-
--x-font-family-tag-default-curated: var(--x-font-family-
|
|
3426
|
-
--x-size-font-tag-default-curated: var(--x-size-font-
|
|
3427
|
-
--x-size-line-height-tag-default-curated: var(--x-size-line-height-
|
|
3428
|
-
--x-number-font-weight-tag-default-curated: var(--x-number-font-weight-
|
|
3429
|
-
--x-font-family-tag-default-curated-selected: var(--x-font-family-tag-default);
|
|
3430
|
-
--x-size-font-tag-default-curated-selected: var(--x-size-font-tag-default);
|
|
3431
|
-
--x-size-line-height-tag-default-curated-selected: var(--x-size-line-height-tag-default);
|
|
3432
|
-
--x-number-font-weight-tag-default-curated-selected: var(
|
|
3425
|
+
--x-font-family-tag-default-curated: var(--x-font-family-tag-default);
|
|
3426
|
+
--x-size-font-tag-default-curated: var(--x-size-font-tag-default);
|
|
3427
|
+
--x-size-line-height-tag-default-curated: var(--x-size-line-height-tag-default);
|
|
3428
|
+
--x-number-font-weight-tag-default-curated: var(--x-number-font-weight-tag-default);
|
|
3429
|
+
--x-font-family-tag-default-curated-selected: var(--x-font-family-tag-default-selected);
|
|
3430
|
+
--x-size-font-tag-default-curated-selected: var(--x-size-font-tag-default-selected);
|
|
3431
|
+
--x-size-line-height-tag-default-curated-selected: var(--x-size-line-height-tag-default-selected);
|
|
3432
|
+
--x-number-font-weight-tag-default-curated-selected: var(
|
|
3433
|
+
--x-number-font-weight-tag-default-selected
|
|
3434
|
+
); }
|
|
3433
3435
|
|
|
3434
3436
|
.x-tag--ghost.x-tag,
|
|
3435
3437
|
.x-tag--ghost .x-tag {
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
--x-color-background-tag-default-selected: var(--x-color-base-neutral-95);
|
|
6
6
|
--x-color-border-tag-default-selected: var(--x-color-border-tag-default);
|
|
7
7
|
--x-color-text-tag-default-selected: var(--x-color-text-tag-default);
|
|
8
|
-
--x-color-background-tag-default-curated: var(--x-color-
|
|
9
|
-
--x-color-border-tag-default-curated: var(--x-color-
|
|
10
|
-
--x-color-text-tag-default-curated: var(--x-color-text-default);
|
|
11
|
-
--x-color-background-tag-default-curated-selected: var(--x-color-
|
|
12
|
-
--x-color-border-tag-default-curated-selected: var(--x-color-border-tag-default);
|
|
13
|
-
--x-color-text-tag-default-curated-selected: var(--x-color-text-tag-default);
|
|
8
|
+
--x-color-background-tag-default-curated: var(--x-color-background-tag-default);
|
|
9
|
+
--x-color-border-tag-default-curated: var(--x-color-border-tag-default);
|
|
10
|
+
--x-color-text-tag-default-curated: var(--x-color-text-tag-default);
|
|
11
|
+
--x-color-background-tag-default-curated-selected: var(--x-color-background-tag-default-selected);
|
|
12
|
+
--x-color-border-tag-default-curated-selected: var(--x-color-border-tag-default-selected);
|
|
13
|
+
--x-color-text-tag-default-curated-selected: var(--x-color-text-tag-default-selected);
|
|
14
14
|
--x-size-border-width-tag-default: var(--x-size-border-width-base);
|
|
15
15
|
--x-size-border-width-top-tag-default: var(--x-size-border-width-tag-default);
|
|
16
16
|
--x-size-border-width-right-tag-default: var(--x-size-border-width-tag-default);
|
|
@@ -33,14 +33,16 @@
|
|
|
33
33
|
--x-size-font-tag-default-selected: var(--x-size-font-tag-default);
|
|
34
34
|
--x-size-line-height-tag-default-selected: var(--x-size-line-height-tag-default);
|
|
35
35
|
--x-number-font-weight-tag-default-selected: var(--x-number-font-weight-tag-default);
|
|
36
|
-
--x-font-family-tag-default-curated: var(--x-font-family-
|
|
37
|
-
--x-size-font-tag-default-curated: var(--x-size-font-
|
|
38
|
-
--x-size-line-height-tag-default-curated: var(--x-size-line-height-
|
|
39
|
-
--x-number-font-weight-tag-default-curated: var(--x-number-font-weight-
|
|
40
|
-
--x-font-family-tag-default-curated-selected: var(--x-font-family-tag-default);
|
|
41
|
-
--x-size-font-tag-default-curated-selected: var(--x-size-font-tag-default);
|
|
42
|
-
--x-size-line-height-tag-default-curated-selected: var(--x-size-line-height-tag-default);
|
|
43
|
-
--x-number-font-weight-tag-default-curated-selected: var(
|
|
36
|
+
--x-font-family-tag-default-curated: var(--x-font-family-tag-default);
|
|
37
|
+
--x-size-font-tag-default-curated: var(--x-size-font-tag-default);
|
|
38
|
+
--x-size-line-height-tag-default-curated: var(--x-size-line-height-tag-default);
|
|
39
|
+
--x-number-font-weight-tag-default-curated: var(--x-number-font-weight-tag-default);
|
|
40
|
+
--x-font-family-tag-default-curated-selected: var(--x-font-family-tag-default-selected);
|
|
41
|
+
--x-size-font-tag-default-curated-selected: var(--x-size-font-tag-default-selected);
|
|
42
|
+
--x-size-line-height-tag-default-curated-selected: var(--x-size-line-height-tag-default-selected);
|
|
43
|
+
--x-number-font-weight-tag-default-curated-selected: var(
|
|
44
|
+
--x-number-font-weight-tag-default-selected
|
|
45
|
+
); }
|
|
44
46
|
|
|
45
47
|
@use 'sass:string';
|
|
46
48
|
[dir="ltr"] .x-tag {
|
|
@@ -128,7 +128,7 @@ X-Components is a library usable everywhere not only for search experiences.
|
|
|
128
128
|
| [SpellcheckButton](./x-components.spellcheckbutton.md) | A button that when pressed emits the [XEventsTypes.UserAcceptedAQuery](./x-components.xeventstypes.useracceptedaquery.md) and [XEventsTypes.UserAcceptedSpellcheckQuery](./x-components.xeventstypes.useracceptedspellcheckquery.md) events, expressing the user intention to set the spellchecked query. |
|
|
129
129
|
| [StaggeredFadeAndSlide](./x-components.staggeredfadeandslide.md) | Renders a transition group wrapping the elements passed in the default slot and animating them with an staggered fade and slide animation. |
|
|
130
130
|
| [StaggeringTransitionGroup](./x-components.staggeringtransitiongroup.md) | A replacement component for Vue's transition-group, that also adds the option to stagger the animations. |
|
|
131
|
-
| [Tagging](./x-components.tagging.md) | This component enables and manages the sending of information to the [Empathy Tagging API](https://empathy.co/
|
|
131
|
+
| [Tagging](./x-components.tagging.md) | This component enables and manages the sending of information to the [Empathy Tagging API](https://docs.empathy.co/develop-empathy-platform/api-reference/tagging-api.html)<!-- -->. It allows to enable or disable the session id management through the <code>consent</code> prop. |
|
|
132
132
|
| [TranslateFromLeft](./x-components.translatefromleft.md) | Renders a transition wrapping the element passed in the default slot and moving it to its desired position. |
|
|
133
133
|
| [TranslateFromRight](./x-components.translatefromright.md) | Renders a transition wrapping the element passed in the default slot and moving it to its desired position. |
|
|
134
134
|
| [UrlHandler](./x-components.urlhandler.md) | This component manage the browser URL parameters to perserve them through reloads and browser history navigation. It allow to configure the default url parameter names using its attributes. This component doesn't render elements to the DOM. |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## Tagging class
|
|
6
6
|
|
|
7
|
-
This component enables and manages the sending of information to the [Empathy Tagging API](https://empathy.co/
|
|
7
|
+
This component enables and manages the sending of information to the [Empathy Tagging API](https://docs.empathy.co/develop-empathy-platform/api-reference/tagging-api.html)<!-- -->. It allows to enable or disable the session id management through the `consent` prop.
|
|
8
8
|
|
|
9
9
|
<b>Signature:</b>
|
|
10
10
|
|
|
@@ -7,8 +7,9 @@ title: Tagging
|
|
|
7
7
|
# Tagging
|
|
8
8
|
|
|
9
9
|
This component enables and manages the sending of information to the
|
|
10
|
-
{@link https://empathy.co/
|
|
11
|
-
disable the session id management through the
|
|
10
|
+
{@link https://docs.empathy.co/develop-empathy-platform/api-reference/tagging-api.html |
|
|
11
|
+
Empathy Tagging API}. It allows to enable or disable the session id management through the
|
|
12
|
+
`consent` prop.
|
|
12
13
|
|
|
13
14
|
## Props
|
|
14
15
|
|
|
@@ -22,12 +22,11 @@ Start building your search and discovery experience in a few simple steps:
|
|
|
22
22
|
|
|
23
23
|
:::
|
|
24
24
|
|
|
25
|
-
- **Discover more about the
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
- **[Use & configure the Interface X Components](/develop-empathy-platform/build-search-ui/README.md#use-configure-the-x-components)**
|
|
25
|
+
- **Discover more about the [Interface X ecosystem](#the-interface-x-ecosystem)** and how
|
|
26
|
+
Interface X works.
|
|
27
|
+
- **[Integrate the Interface X Components](#integrate-interface-x-components)** in your store web
|
|
28
|
+
application.
|
|
29
|
+
- **[Use and configure the Interface X Components](#use-and-configure-the-interface-x-components)**
|
|
31
30
|
in your project.
|
|
32
31
|
|
|
33
32
|
<!-- 3. Style your UI. 4. Translate your search experience-->
|
|
@@ -43,7 +42,7 @@ numerous components to choose from, and the catalog evolves quickly with new exp
|
|
|
43
42
|
Check out the **[open source project in GitHub](https://github.com/empathyco/x)**.
|
|
44
43
|
|
|
45
44
|
Interested in learning more about how Interface X works? Discover more about its
|
|
46
|
-
**[architecture](
|
|
45
|
+
**[architecture](./x-architecture/README.md)**.
|
|
47
46
|
|
|
48
47
|
## Integrate Interface X Components
|
|
49
48
|
|
|
@@ -54,7 +53,11 @@ You can use the X Components in a project in two ways:
|
|
|
54
53
|
- integrating the individual **Interface X Components** library in your Vue project for a
|
|
55
54
|
more custom approach.
|
|
56
55
|
|
|
57
|
-
::: note
|
|
56
|
+
::: note
|
|
57
|
+
|
|
58
|
+
You can use Empathy Search API, Elasticsearch, or Solr endpoints with both approaches.
|
|
59
|
+
|
|
60
|
+
:::
|
|
58
61
|
|
|
59
62
|
##### Integration via Interface X Archetype project
|
|
60
63
|
|
|
@@ -90,7 +93,7 @@ go if you like to look under the hood!
|
|
|
90
93
|
To get started with the X Components library, check out
|
|
91
94
|
**[Integrate Interface X Components in your Vue application](web-x-components-integration-guide.md)**.
|
|
92
95
|
|
|
93
|
-
## Use
|
|
96
|
+
## Use and configure the Interface X Components
|
|
94
97
|
|
|
95
98
|
Using the Interface X Components is a piece of cake! Just import and register the
|
|
96
99
|
component, include it in your template, and you’re ready to go! What’s more, each component offers
|
|
@@ -24,6 +24,8 @@ requires knowledge of JavaScript and Vue.js.
|
|
|
24
24
|
|
|
25
25
|
To integrate Interface X Archetype as a search UI layer, you need:
|
|
26
26
|
|
|
27
|
+
<br/>
|
|
28
|
+
|
|
27
29
|
- **Empathy Search API** (or any search API that you use to retrieve search data).
|
|
28
30
|
- **Empathy Search Adapter** to communicate with the Empathy Search API (or any search adapter to
|
|
29
31
|
connect with the search API you are using).
|
|
@@ -97,9 +99,13 @@ npm install
|
|
|
97
99
|
npm run serve
|
|
98
100
|
```
|
|
99
101
|
|
|
100
|
-
::: interact
|
|
102
|
+
::: interact
|
|
103
|
+
|
|
104
|
+
For a full list of the project dependencies, check the
|
|
101
105
|
[`package.json`](https://github.com/empathyco/x-archetype/blob/main/package.json) file in the
|
|
102
|
-
Interface X Archetype repository.
|
|
106
|
+
Interface X Archetype repository.
|
|
107
|
+
|
|
108
|
+
:::
|
|
103
109
|
|
|
104
110
|
## 3. Configure the search adapter
|
|
105
111
|
|
|
@@ -112,14 +118,19 @@ the configuration according to the search features you use in your project.
|
|
|
112
118
|
Export the required search adapter with your configuration as you will need it for the search
|
|
113
119
|
[xPlugin configuration](web-archetype-integration-guide.md#_4-configure-the-plugin).
|
|
114
120
|
|
|
115
|
-
::: interact
|
|
116
|
-
|
|
117
|
-
|
|
121
|
+
::: interact
|
|
122
|
+
|
|
123
|
+
For detailed information about other configuration options in the Empathy Search Adapter, go to the
|
|
124
|
+
[x-adapter repository](https://github.com/empathyco/x/tree/main/packages/search-adapter).
|
|
125
|
+
|
|
126
|
+
:::
|
|
127
|
+
|
|
128
|
+
::: note
|
|
118
129
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
`
|
|
130
|
+
Although you configure the values for the `instance`, `language`, `scope`, and `endpoint` options
|
|
131
|
+
when integrating the project, you can still change these values when the project is deployed. Use
|
|
132
|
+
the `/x-archetype/public/snippet-script.js` file to perform hot changes for `lang`, `store`,
|
|
133
|
+
`device`, and `catalog` parameters.
|
|
123
134
|
|
|
124
135
|
For example, you may configure the adapter to use EN as `lang` so that when you search, the results
|
|
125
136
|
are displayed in English. However, if you want to deploy the application in Spain, you want the
|
|
@@ -168,7 +168,7 @@ language, the currency, inform whether the user has given us his consent to proc
|
|
|
168
168
|
| scope | `string` | | The context name where the search interface is being executed. I.e. `mobile`, `mobile-app`, `tablet`, `desktop` |
|
|
169
169
|
| lang | `string` | ✅ | The language to use. By default this lang is used for both the front-end and the API requests |
|
|
170
170
|
| searchLang | `string` | | A language to use only for the API requests |
|
|
171
|
-
| consent | `boolean` | ✅ |
|
|
171
|
+
| consent | `boolean` | ✅ | Used to let X know whether the user has accepted the usage of cookies and therefore the sessionId can be used and sent to the Search and Tagging API. If this parameter is configured with false value, then the sessionId in not generated nor sent to the Tagging API. No consent means the wisdom of the crowd signals (Related Tags, Next Queries, etc.) will not be inferred from that session. This parameter should be set to true as soon as the user accepts the usage of Customer cookies but note that Empathy not uses any cookie in its libraries, although we tie the cookie acceptance to the sessionID generation in Local Storage. If accepting the cookies does not trigger a page reload, please consider using `window.initX.consent = true` to update the consent parameter so that the current session is tracked already. |
|
|
172
172
|
| documentDirection | `'ltr'` | `'rtl'` | | The writing direction that the X Components should use |
|
|
173
173
|
| currency | `string` | ✅ | The currency identifier. Used to configure how prices are shown |
|
|
174
174
|
| callbacks | `Record<XEventName, (payload: XEventPayload<Event>, metadata: WireMetadata) => void` | | A record of callbacks where the key is the event to listen, and the value is the callback to be executed whenever the event is emitted. For example, to listen to the `UserAcceptedAQuery` event: `{ UserAcceptedAQuery({ eventPayload }) { console.log('UserAcceptedAQuery', eventPayload); }` |
|
|
@@ -177,8 +177,8 @@ language, the currency, inform whether the user has given us his consent to proc
|
|
|
177
177
|
|
|
178
178
|
## X API
|
|
179
179
|
|
|
180
|
-
The X API allows your website to communicate with Interface
|
|
181
|
-
to integrate Interface
|
|
180
|
+
The X API allows your website to communicate with Interface X. It is a set of utilities that helps
|
|
181
|
+
to integrate Interface X into your website.
|
|
182
182
|
|
|
183
183
|
| Function | Parameters | Description |
|
|
184
184
|
| -------- | ------------------------------------------------------------------------------ | ----------------------------------------------------------- |
|
|
@@ -54,9 +54,13 @@ Alternatively, you can **globally** register components in Vue directly in the `
|
|
|
54
54
|
plan on using a component more than once in your app. By registering the components globally, you
|
|
55
55
|
can use them in the template of any root Vue instance you create afterwards.
|
|
56
56
|
|
|
57
|
-
::: develop
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
::: develop
|
|
58
|
+
|
|
59
|
+
Although you can register components globally, it should be done with caution as **it may impact
|
|
60
|
+
future performance**. Remember if you register the components globally, the entire X Component
|
|
61
|
+
module is loaded and registered each time this code line is run.
|
|
62
|
+
|
|
63
|
+
:::
|
|
60
64
|
|
|
61
65
|
```typescript
|
|
62
66
|
import { ComponentA, ComponentB, ComponentC } from './ModuleA';
|
|
@@ -113,8 +117,12 @@ The search-box module contains these components:
|
|
|
113
117
|
- `SearchButton`
|
|
114
118
|
- `ClearSearchInput`
|
|
115
119
|
|
|
116
|
-
::: interact
|
|
117
|
-
|
|
120
|
+
::: interact
|
|
121
|
+
|
|
122
|
+
Learn more about the
|
|
123
|
+
[Search Box UI](/explore-empathy-platform/experience-search-&-discovery/search-box.md)
|
|
124
|
+
|
|
125
|
+
:::
|
|
118
126
|
|
|
119
127
|
### Importing the components from the search-box module
|
|
120
128
|
|
|
@@ -13,9 +13,11 @@ tags:
|
|
|
13
13
|
In this tutorial, you’ll learn the basics to integrate the Interface X Components library
|
|
14
14
|
in your own project to craft enticing Vue search experiences for your shop in a matter of minutes.
|
|
15
15
|
|
|
16
|
-
::: interact
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
::: interact
|
|
17
|
+
|
|
18
|
+
If you are looking to use the ready-to-go project Interface X Archetype as your starting
|
|
19
|
+
point, see **[Interface X Archetype Development](web-archetype-development-guide.md)**.
|
|
20
|
+
|
|
19
21
|
:::
|
|
20
22
|
|
|
21
23
|
For this tutorial, the Empathy Search API is used, but you can use any search API. This step-by-step
|
|
@@ -28,6 +30,8 @@ You can find the X Components library in the
|
|
|
28
30
|
|
|
29
31
|
To integrate the X Components in a frontend UI, you need:
|
|
30
32
|
|
|
33
|
+
<br/>
|
|
34
|
+
|
|
31
35
|
- **Empathy Search API** to retrieve search data (or any other search API)
|
|
32
36
|
- A **search adapter** to communicate with the search API. You can use the Empathy Adapter and
|
|
33
37
|
configure it with the `EmpathyAdapterBuilder`
|
|
@@ -72,12 +76,15 @@ npm install --save @empathyco/x-components @empathyco/x-types @empathyco/x-adapt
|
|
|
72
76
|
|
|
73
77
|
## 2. Configure the search adapter
|
|
74
78
|
|
|
75
|
-
::: warning
|
|
76
|
-
|
|
77
|
-
adapter
|
|
79
|
+
::: warning
|
|
80
|
+
|
|
81
|
+
If you are using the Empathy search API and the Empathy Search Adapter (`x-adapter`), make sure you
|
|
82
|
+
have imported the `reflect-metadata` polyfill before executing any code of the search adapter.
|
|
83
|
+
|
|
84
|
+
:::
|
|
78
85
|
|
|
79
86
|
Next, construct the search adapter. You will need the search adapter in the
|
|
80
|
-
[xPlugin configuration](#
|
|
87
|
+
[xPlugin configuration](#3-configure-the-plugin).
|
|
81
88
|
|
|
82
89
|
Empathy Search Adapter is a library for making it easier to consume search APIs. The project
|
|
83
90
|
contains two main parts: an **implementation** to consume the Empathy Search API, and an
|
|
@@ -101,7 +108,11 @@ export const adapter = new EmpathyAdapterBuilder()
|
|
|
101
108
|
.build();
|
|
102
109
|
```
|
|
103
110
|
|
|
104
|
-
::: warning
|
|
111
|
+
::: warning
|
|
112
|
+
|
|
113
|
+
If you do not use the Empathy Search API, you need to build your own adapter.
|
|
114
|
+
|
|
115
|
+
:::
|
|
105
116
|
|
|
106
117
|
For more information, see
|
|
107
118
|
[Using the Empathy Search Adapter](https://github.com/empathyco/x/tree/main/packages/search-adapter).
|
|
@@ -128,24 +139,24 @@ Then, **configure** the xPlugin. It has two key options you need to configure:
|
|
|
128
139
|
1. **Adapter**: A search adapter is required to connect and communicate with the search API. Here
|
|
129
140
|
you’re using the `EmpathyAdapterBuilder` to communicate specifically with the Empathy Search API.
|
|
130
141
|
If you are not using the Empathy Search API, you need to build your own adapter. See
|
|
131
|
-
[Configure the search adapter](#
|
|
142
|
+
[Configure the search adapter](#2-configure-the-search-adapter).
|
|
132
143
|
|
|
133
|
-
::: develop
|
|
144
|
+
::: develop
|
|
134
145
|
|
|
135
|
-
When using your own adapter, remember to configure the `instance`, `language`, `scope`, and
|
|
136
|
-
`endpoint` methods.
|
|
146
|
+
When using your own adapter, remember to configure the `instance`, `language`, `scope`, and
|
|
147
|
+
`endpoint` methods.
|
|
137
148
|
|
|
138
|
-
:::
|
|
149
|
+
:::
|
|
139
150
|
|
|
140
151
|
2. **Store**: The Vuex store. If you use a store for Vuex, you need to provide the store you’re
|
|
141
152
|
currently using for your project to the Vue instance.
|
|
142
153
|
|
|
143
|
-
::: warning
|
|
154
|
+
::: warning
|
|
144
155
|
|
|
145
|
-
If you don’t provide any parameters for the `store`, a default store is created automatically.
|
|
146
|
-
the `store` blank **only if you’re not using any store** for Vuex.
|
|
156
|
+
If you don’t provide any parameters for the `store`, a default store is created automatically.
|
|
157
|
+
Leave the `store` blank **only if you’re not using any store** for Vuex.
|
|
147
158
|
|
|
148
|
-
:::
|
|
159
|
+
:::
|
|
149
160
|
|
|
150
161
|
## 4. Install and initialize the plugin
|
|
151
162
|
|
|
@@ -56,7 +56,8 @@ The API adapter can be customised and extended to meet the client requirements.
|
|
|
56
56
|
element that can be changed and adjusted to the specific client API, even when using other search
|
|
57
57
|
services not based on the Empathy search API.
|
|
58
58
|
|
|
59
|
-
::: note Architecture patterns
|
|
59
|
+
::: note Architecture patterns
|
|
60
|
+
|
|
60
61
|
If you’re already experienced in the Vue universe, you’ll find the Interface X architecture
|
|
61
62
|
somewhat familiar. Although the [ViewModel layer](https://012.vuejs.org/guide/#Introduction) of the
|
|
62
63
|
**MVVM pattern** sprinkles traces all over the presentation tier, the Interface X architecture is
|
|
@@ -65,7 +66,9 @@ basically inspired by the
|
|
|
65
66
|
the X Components emit events that dispatch actions in the business logic tier, these actions
|
|
66
67
|
can commit mutations to modify the state of the store.
|
|
67
68
|
To sum up, the design of Interface X takes advantage of the MVVM and Flux patterns to design,
|
|
68
|
-
develop, and configure each tier separately and independently.
|
|
69
|
+
develop, and configure each tier separately and independently.
|
|
70
|
+
|
|
71
|
+
:::
|
|
69
72
|
|
|
70
73
|
## Technical stack
|
|
71
74
|
|
|
@@ -121,8 +124,10 @@ building component-based UIs, Vue meets all the requirements:
|
|
|
121
124
|
- Improved performance out of the box
|
|
122
125
|
- Seamless maintenance. Framework or library-agnostic
|
|
123
126
|
|
|
124
|
-
::: note
|
|
127
|
+
::: note
|
|
128
|
+
|
|
125
129
|
Interface X can potentially be integrated in commerce shops built with React. In any case,
|
|
126
130
|
Interface X can be used in any webpage, as long as it is integrated as an isolated search
|
|
127
|
-
layer.
|
|
131
|
+
layer.
|
|
132
|
+
|
|
128
133
|
:::
|
|
@@ -69,6 +69,11 @@ var setFiltersFromUrl = mapWire(wireFacetsService('select'), function (_a) {
|
|
|
69
69
|
* @internal
|
|
70
70
|
*/
|
|
71
71
|
var facetsWiring = createWiring({
|
|
72
|
+
ParamsLoadedFromUrl: {
|
|
73
|
+
// TODO: move this logic to Facets Service
|
|
74
|
+
clearAllFiltersWire: clearAllFiltersWire,
|
|
75
|
+
setFiltersFromUrl: setFiltersFromUrl
|
|
76
|
+
},
|
|
72
77
|
FacetsChanged: {
|
|
73
78
|
updateFacetsGroupWithSearchFacetsWire: updateFacetsGroupWithSearchFacetsWire
|
|
74
79
|
},
|
|
@@ -92,11 +97,6 @@ var facetsWiring = createWiring({
|
|
|
92
97
|
},
|
|
93
98
|
UserClearedQuery: {
|
|
94
99
|
clearAllFiltersWire: clearAllFiltersWire
|
|
95
|
-
},
|
|
96
|
-
ParamsLoadedFromUrl: {
|
|
97
|
-
// TODO: move this logic to Facets Service
|
|
98
|
-
clearAllFiltersWire: clearAllFiltersWire,
|
|
99
|
-
setFiltersFromUrl: setFiltersFromUrl
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
102
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wiring.js","sources":["../../../../src/x-modules/facets/wiring.ts"],"sourcesContent":["import { Facet } from '@empathyco/x-types';\nimport { UrlParams } from '../../types/url-params';\nimport { createRawFilters } from '../../utils/filters';\nimport { wireService, wireServiceWithoutPayload } from '../../wiring/wires.factory';\nimport { mapWire } from '../../wiring/wires.operators';\nimport { createWiring } from '../../wiring/wiring.utils';\nimport { DefaultFacetsService } from './service/facets.service';\n\n/**\n * Wires factory for {@link DefaultFacetsService}.\n */\nconst wireFacetsService = wireService(DefaultFacetsService.instance);\n\n/**\n * Wires without payload factory for {@link DefaultFacetsService}.\n */\nconst wireFacetsServiceWithoutPayload = wireServiceWithoutPayload(DefaultFacetsService.instance);\n\n/**\n * Saves the facets contained in the `search` group, removing the previous ones, and keeping the\n * previous filters selected state.\n *\n * @public\n */\nconst updateFacetsGroupWithSearchFacetsWire = mapWire(\n wireFacetsService('updateFacets'),\n (facets: Facet[]) => ({\n facets,\n id: 'search'\n })\n);\n\n/**\n * Saves the facets contained in the group, removing the previous ones, and keeping the new filters\n * selected state.\n *\n * @public\n */\nconst setFacetsGroupWire = wireFacetsService('setFacets');\n\n/**\n * Toggles the selected state of a filter.\n *\n * @public\n */\nconst toggleFilterWire = wireFacetsService('toggle');\n\n/**\n * Deselects all the filters. Optionally, it can accept a list of facets ids as payload, and it will\n * only deselect the filters from those facets.\n *\n * @public\n */\nconst clearFiltersWire = wireFacetsService('clearFilters');\n\n/**\n * Deselects all selected filters.\n *\n * @public\n */\nconst clearAllFiltersWire = wireFacetsServiceWithoutPayload('clearFilters');\n\n/**\n * Selects the filter passed by payload.\n *\n * @public\n */\nconst selectFilterWire = wireFacetsService('select');\n\n/**\n * Saves the params from the url.\n *\n * @public\n */\nconst setFiltersFromUrl = mapWire(wireFacetsService('select'), ({ filter }: UrlParams) =>\n createRawFilters(filter)\n);\n\n/**\n * Wiring configuration for the {@link FacetsXModule | facets module}.\n *\n * @internal\n */\nexport const facetsWiring = createWiring({\n FacetsChanged: {\n updateFacetsGroupWithSearchFacetsWire\n },\n FacetsGroupProvided: {\n setFacetsGroupWire\n },\n UserChangedExtraParams: {\n clearAllFiltersWire\n },\n UserClickedAFilter: {\n toggleFilterWire\n },\n UserClickedClearAllFilters: {\n clearFiltersWire\n },\n UserModifiedEditableNumberRangeFilter: {\n selectFilterWire\n },\n UserClickedAllFilter: {\n clearFiltersWire\n },\n UserClearedQuery: {\n clearAllFiltersWire\n }
|
|
1
|
+
{"version":3,"file":"wiring.js","sources":["../../../../src/x-modules/facets/wiring.ts"],"sourcesContent":["import { Facet } from '@empathyco/x-types';\nimport { UrlParams } from '../../types/url-params';\nimport { createRawFilters } from '../../utils/filters';\nimport { wireService, wireServiceWithoutPayload } from '../../wiring/wires.factory';\nimport { mapWire } from '../../wiring/wires.operators';\nimport { createWiring } from '../../wiring/wiring.utils';\nimport { DefaultFacetsService } from './service/facets.service';\n\n/**\n * Wires factory for {@link DefaultFacetsService}.\n */\nconst wireFacetsService = wireService(DefaultFacetsService.instance);\n\n/**\n * Wires without payload factory for {@link DefaultFacetsService}.\n */\nconst wireFacetsServiceWithoutPayload = wireServiceWithoutPayload(DefaultFacetsService.instance);\n\n/**\n * Saves the facets contained in the `search` group, removing the previous ones, and keeping the\n * previous filters selected state.\n *\n * @public\n */\nconst updateFacetsGroupWithSearchFacetsWire = mapWire(\n wireFacetsService('updateFacets'),\n (facets: Facet[]) => ({\n facets,\n id: 'search'\n })\n);\n\n/**\n * Saves the facets contained in the group, removing the previous ones, and keeping the new filters\n * selected state.\n *\n * @public\n */\nconst setFacetsGroupWire = wireFacetsService('setFacets');\n\n/**\n * Toggles the selected state of a filter.\n *\n * @public\n */\nconst toggleFilterWire = wireFacetsService('toggle');\n\n/**\n * Deselects all the filters. Optionally, it can accept a list of facets ids as payload, and it will\n * only deselect the filters from those facets.\n *\n * @public\n */\nconst clearFiltersWire = wireFacetsService('clearFilters');\n\n/**\n * Deselects all selected filters.\n *\n * @public\n */\nconst clearAllFiltersWire = wireFacetsServiceWithoutPayload('clearFilters');\n\n/**\n * Selects the filter passed by payload.\n *\n * @public\n */\nconst selectFilterWire = wireFacetsService('select');\n\n/**\n * Saves the params from the url.\n *\n * @public\n */\nconst setFiltersFromUrl = mapWire(wireFacetsService('select'), ({ filter }: UrlParams) =>\n createRawFilters(filter)\n);\n\n/**\n * Wiring configuration for the {@link FacetsXModule | facets module}.\n *\n * @internal\n */\nexport const facetsWiring = createWiring({\n ParamsLoadedFromUrl: {\n // TODO: move this logic to Facets Service\n clearAllFiltersWire,\n setFiltersFromUrl\n },\n FacetsChanged: {\n updateFacetsGroupWithSearchFacetsWire\n },\n FacetsGroupProvided: {\n setFacetsGroupWire\n },\n UserChangedExtraParams: {\n clearAllFiltersWire\n },\n UserClickedAFilter: {\n toggleFilterWire\n },\n UserClickedClearAllFilters: {\n clearFiltersWire\n },\n UserModifiedEditableNumberRangeFilter: {\n selectFilterWire\n },\n UserClickedAllFilter: {\n clearFiltersWire\n },\n UserClearedQuery: {\n clearAllFiltersWire\n }\n});\n"],"names":[],"mappings":";;;;;;AAQA;;;AAGA,IAAM,iBAAiB,GAAG,WAAW,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC;AAErE;;;AAGA,IAAM,+BAA+B,GAAG,yBAAyB,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC;AAEjG;;;;;;AAMA,IAAM,qCAAqC,GAAG,OAAO,CACnD,iBAAiB,CAAC,cAAc,CAAC,EACjC,UAAC,MAAe,IAAK,QAAC;IACpB,MAAM,QAAA;IACN,EAAE,EAAE,QAAQ;CACb,IAAC,CACH,CAAC;AAEF;;;;;;AAMA,IAAM,kBAAkB,GAAG,iBAAiB,CAAC,WAAW,CAAC,CAAC;AAE1D;;;;;AAKA,IAAM,gBAAgB,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;AAErD;;;;;;AAMA,IAAM,gBAAgB,GAAG,iBAAiB,CAAC,cAAc,CAAC,CAAC;AAE3D;;;;;AAKA,IAAM,mBAAmB,GAAG,+BAA+B,CAAC,cAAc,CAAC,CAAC;AAE5E;;;;;AAKA,IAAM,gBAAgB,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;AAErD;;;;;AAKA,IAAM,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC,QAAQ,CAAC,EAAE,UAAC,EAAqB;QAAnB,MAAM,YAAA;IACtE,OAAA,gBAAgB,CAAC,MAAM,CAAC;AAAxB,CAAwB,CACzB,CAAC;AAEF;;;;;IAKa,YAAY,GAAG,YAAY,CAAC;IACvC,mBAAmB,EAAE;;QAEnB,mBAAmB,qBAAA;QACnB,iBAAiB,mBAAA;KAClB;IACD,aAAa,EAAE;QACb,qCAAqC,uCAAA;KACtC;IACD,mBAAmB,EAAE;QACnB,kBAAkB,oBAAA;KACnB;IACD,sBAAsB,EAAE;QACtB,mBAAmB,qBAAA;KACpB;IACD,kBAAkB,EAAE;QAClB,gBAAgB,kBAAA;KACjB;IACD,0BAA0B,EAAE;QAC1B,gBAAgB,kBAAA;KACjB;IACD,qCAAqC,EAAE;QACrC,gBAAgB,kBAAA;KACjB;IACD,oBAAoB,EAAE;QACpB,gBAAgB,kBAAA;KACjB;IACD,gBAAgB,EAAE;QAChB,mBAAmB,qBAAA;KACpB;CACF;;;;"}
|
|
@@ -86,6 +86,9 @@ var moduleDebounce = namespacedDebounce(moduleName);
|
|
|
86
86
|
* @internal
|
|
87
87
|
*/
|
|
88
88
|
var historyQueriesWiring = createWiring({
|
|
89
|
+
ParamsLoadedFromUrl: {
|
|
90
|
+
setUrlParams: setUrlParams
|
|
91
|
+
},
|
|
89
92
|
HistoryQueriesQueryChanged: {
|
|
90
93
|
refreshHistoryQueriesSession: refreshHistoryQueriesSession
|
|
91
94
|
},
|
|
@@ -110,9 +113,6 @@ var historyQueriesWiring = createWiring({
|
|
|
110
113
|
},
|
|
111
114
|
UserPressedRemoveHistoryQuery: {
|
|
112
115
|
removeHistoryQuery: removeHistoryQuery
|
|
113
|
-
},
|
|
114
|
-
ParamsLoadedFromUrl: {
|
|
115
|
-
setUrlParams: setUrlParams
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
118
|
|