@empathyco/x-components 3.0.0-alpha.19 → 3.0.0-alpha.23
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 +50 -0
- package/core/index.js +3 -1
- package/core/index.js.map +1 -1
- package/design-system/base.css +4 -1
- package/design-system/button-secondary.css +1 -1
- package/design-system/default-theme.css +97 -42
- package/design-system/dropdown-default.css +68 -33
- package/design-system/dropdown-l.css +1 -1
- package/design-system/dropdown-m.css +1 -1
- package/design-system/dropdown-s.css +1 -1
- package/design-system/dropdown-xl.css +1 -1
- package/design-system/full-theme.css +2521 -129
- package/design-system/list-default.css +5 -0
- package/design-system/list-gap.css +121 -1
- package/design-system/list-padding.css +105 -1
- package/design-system/row-padding.css +2 -0
- package/design-system/utilities-background-color.css +20 -0
- package/design-system/utilities-border-color.css +20 -0
- package/design-system/utilities-border-radius.css +981 -0
- package/design-system/utilities-border-width.css +333 -0
- package/design-system/utilities-box-shadow.css +68 -0
- package/design-system/utilities-font-color.css +20 -0
- package/design-system/utilities-margin.css +380 -0
- package/design-system/utilities-padding.css +380 -0
- package/docs/API-reference/api/x-adapter.empathydirect.md +0 -1
- package/docs/API-reference/api/x-components.createfetchandsaveaction.md +26 -0
- package/docs/API-reference/api/x-components.createfetchandsaveactionsoptions.fetch.md +24 -0
- package/docs/API-reference/api/x-components.createfetchandsaveactionsoptions.md +23 -0
- package/docs/API-reference/api/x-components.createfetchandsaveactionsoptions.oncancel.md +17 -0
- package/docs/API-reference/api/x-components.createfetchandsaveactionsoptions.onerror.md +24 -0
- package/docs/API-reference/api/x-components.createfetchandsaveactionsoptions.onsuccess.md +25 -0
- package/docs/API-reference/api/x-components.fetchandsaveactions.cancelprevious.md +13 -0
- package/docs/API-reference/api/x-components.fetchandsaveactions.fetchandsave.md +13 -0
- package/docs/API-reference/api/x-components.fetchandsaveactions.md +21 -0
- package/docs/API-reference/api/x-components.identifierresultsmutations.md +1 -1
- package/docs/API-reference/api/x-components.identifierresultsstate.md +1 -1
- package/docs/API-reference/api/x-components.md +8 -11
- package/docs/API-reference/api/x-components.nextqueriesmutations.md +1 -1
- package/docs/API-reference/api/x-components.nextqueriesstate.md +1 -1
- package/docs/API-reference/api/{x-components.urlstate.filters.md → x-components.params.filters.md} +2 -2
- package/docs/API-reference/api/x-components.params.md +25 -0
- package/docs/API-reference/api/{x-components.urlstate.page.md → x-components.params.page.md} +2 -2
- package/docs/API-reference/api/{x-components.urlstate.query.md → x-components.params.query.md} +2 -2
- package/docs/API-reference/api/{x-components.urlstate.relatedtags.md → x-components.params.relatedtags.md} +2 -2
- package/docs/API-reference/api/x-components.params.scroll.md +11 -0
- package/docs/API-reference/api/{x-components.urlstate.sort.md → x-components.params.sort.md} +2 -2
- package/docs/API-reference/api/x-components.popularsearchesmutations.md +1 -1
- package/docs/API-reference/api/x-components.popularsearchesstate.md +1 -1
- package/docs/API-reference/api/x-components.querysuggestionsmutations.md +1 -1
- package/docs/API-reference/api/x-components.querysuggestionsstate.md +1 -1
- package/docs/API-reference/api/x-components.recommendationsmutations.md +1 -1
- package/docs/API-reference/api/x-components.recommendationsstate.md +1 -1
- package/docs/API-reference/api/x-components.relatedtagsmutations.md +1 -1
- package/docs/API-reference/api/x-components.relatedtagsstate.md +1 -1
- package/docs/API-reference/api/x-components.requeststatus.md +13 -0
- package/docs/API-reference/api/x-components.searchmutations.md +2 -1
- package/docs/API-reference/api/x-components.searchmutations.setredirections.md +24 -0
- package/docs/API-reference/api/x-components.searchstate.md +2 -1
- package/docs/API-reference/api/x-components.searchstate.redirections.md +13 -0
- package/docs/API-reference/api/x-components.setstatus.md +25 -0
- package/docs/API-reference/api/x-components.statusmutations.md +20 -0
- package/docs/API-reference/api/x-components.statusmutations.setstatus.md +24 -0
- package/docs/API-reference/api/x-components.statusstate.md +20 -0
- package/docs/API-reference/api/x-components.statusstate.status.md +13 -0
- package/docs/API-reference/api/x-components.urlactions.md +8 -0
- package/docs/API-reference/api/x-components.urlactions.updatestorefromurl.md +17 -0
- package/docs/API-reference/api/x-components.urlactions.updateurl.md +17 -0
- package/docs/API-reference/api/x-components.urlgetters.md +2 -1
- package/docs/API-reference/api/x-components.urlgetters.urlmappedparamnames.md +13 -0
- package/docs/API-reference/api/x-components.urlgetters.urlparams.md +3 -1
- package/docs/API-reference/api/x-components.urlmutations.md +3 -1
- package/docs/API-reference/api/x-components.urlmutations.setextraparams.md +24 -0
- package/docs/API-reference/api/x-components.urlmutations.setparams.md +24 -0
- package/docs/API-reference/api/x-components.urlmutations.seturlconfig.md +3 -1
- package/docs/API-reference/api/x-components.urlparamkey.md +3 -1
- package/docs/API-reference/api/x-components.urlstate.extraparams.md +1 -1
- package/docs/API-reference/api/x-components.urlstate.md +2 -6
- package/docs/API-reference/api/{x-components.nosuggestions.query.md → x-components.urlstate.params.md} +3 -3
- package/docs/API-reference/api/x-components.xcomponentaliasstatusapi.md +7 -7
- package/docs/API-reference/api/x-components.xmodulestree.md +0 -1
- package/docs/API-reference/api/x-types.modelnametype.md +1 -1
- package/docs/API-reference/api/x-types.redirection.md +2 -3
- package/docs/API-reference/components/url/x-components.url-handler.md +84 -0
- package/docs/sidebar.json +1 -1
- package/js/components/base-dropdown.vue.js +2 -2
- package/js/components/base-dropdown.vue.js.map +1 -1
- package/js/components/layouts/multi-column-max-width-layout.vue.js +2 -2
- package/js/components/layouts/multi-column-max-width-layout.vue.js.map +1 -1
- package/js/index.js +3 -5
- package/js/index.js.map +1 -1
- package/js/plugins/x-plugin.alias.js.map +1 -1
- package/js/plugins/x-plugin.js +1 -1
- package/js/plugins/x-plugin.js.map +1 -1
- package/js/store/utils/{helpers/fetch-and-save-action.helpers.js → fetch-and-save-action.utils.js} +5 -5
- package/js/store/utils/fetch-and-save-action.utils.js.map +1 -0
- package/js/store/utils/{get-getters-proxy.js → getters-proxy.utils.js} +1 -1
- package/js/store/utils/getters-proxy.utils.js.map +1 -0
- package/js/store/utils/{helpers/status.helpers.js → status-store.utils.js} +1 -1
- package/js/store/utils/status-store.utils.js.map +1 -0
- package/js/store/{store.utils.js → utils/store-emitters.utils.js} +1 -1
- package/js/store/utils/store-emitters.utils.js.map +1 -0
- package/js/store/x.module.js +0 -1
- package/js/store/x.module.js.map +1 -1
- package/js/wiring/wiring.utils.js +1 -1
- package/js/wiring/wiring.utils.js.map +1 -1
- package/js/x-modules/device/store/emitters.js +3 -1
- package/js/x-modules/device/store/emitters.js.map +1 -1
- package/js/x-modules/empathize/store/emitters.js +3 -1
- package/js/x-modules/empathize/store/emitters.js.map +1 -1
- package/js/x-modules/extra-params/store/emitters.js +3 -1
- package/js/x-modules/extra-params/store/emitters.js.map +1 -1
- package/js/x-modules/facets/store/emitters.js +1 -1
- package/js/x-modules/facets/store/emitters.js.map +1 -1
- package/js/x-modules/history-queries/store/emitters.js +3 -1
- package/js/x-modules/history-queries/store/emitters.js.map +1 -1
- package/js/x-modules/identifier-results/store/actions/fetch-and-save-identifier-results.action.js +1 -1
- package/js/x-modules/identifier-results/store/actions/fetch-and-save-identifier-results.action.js.map +1 -1
- package/js/x-modules/identifier-results/store/emitters.js +3 -1
- package/js/x-modules/identifier-results/store/emitters.js.map +1 -1
- package/js/x-modules/identifier-results/store/module.js +1 -1
- package/js/x-modules/identifier-results/store/module.js.map +1 -1
- package/js/x-modules/next-queries/store/actions/fetch-and-save-next-queries.action.js +1 -1
- package/js/x-modules/next-queries/store/actions/fetch-and-save-next-queries.action.js.map +1 -1
- package/js/x-modules/next-queries/store/emitters.js +3 -1
- package/js/x-modules/next-queries/store/emitters.js.map +1 -1
- package/js/x-modules/next-queries/store/module.js +1 -1
- package/js/x-modules/next-queries/store/module.js.map +1 -1
- package/js/x-modules/popular-searches/store/actions/fetch-and-save-suggestions.action.js +1 -1
- package/js/x-modules/popular-searches/store/actions/fetch-and-save-suggestions.action.js.map +1 -1
- package/js/x-modules/popular-searches/store/emitters.js +1 -1
- package/js/x-modules/popular-searches/store/emitters.js.map +1 -1
- package/js/x-modules/popular-searches/store/module.js +1 -1
- package/js/x-modules/popular-searches/store/module.js.map +1 -1
- package/js/x-modules/query-suggestions/store/actions/fetch-and-save-suggestions.action.js +1 -1
- package/js/x-modules/query-suggestions/store/actions/fetch-and-save-suggestions.action.js.map +1 -1
- package/js/x-modules/query-suggestions/store/emitters.js +3 -1
- package/js/x-modules/query-suggestions/store/emitters.js.map +1 -1
- package/js/x-modules/query-suggestions/store/module.js +1 -1
- package/js/x-modules/query-suggestions/store/module.js.map +1 -1
- package/js/x-modules/recommendations/store/actions/fetch-and-save-recommendations.action.js +1 -1
- package/js/x-modules/recommendations/store/actions/fetch-and-save-recommendations.action.js.map +1 -1
- package/js/x-modules/recommendations/store/emitters.js +3 -1
- package/js/x-modules/recommendations/store/emitters.js.map +1 -1
- package/js/x-modules/recommendations/store/module.js +1 -1
- package/js/x-modules/recommendations/store/module.js.map +1 -1
- package/js/x-modules/related-tags/store/actions/fetch-and-save-related-tags.action.js +1 -1
- package/js/x-modules/related-tags/store/actions/fetch-and-save-related-tags.action.js.map +1 -1
- package/js/x-modules/related-tags/store/emitters.js +3 -1
- package/js/x-modules/related-tags/store/emitters.js.map +1 -1
- package/js/x-modules/related-tags/store/module.js +1 -1
- package/js/x-modules/related-tags/store/module.js.map +1 -1
- package/js/x-modules/search/store/actions/fetch-and-save-search-response.action.js +3 -2
- package/js/x-modules/search/store/actions/fetch-and-save-search-response.action.js.map +1 -1
- package/js/x-modules/search/store/emitters.js +3 -1
- package/js/x-modules/search/store/emitters.js.map +1 -1
- package/js/x-modules/search/store/module.js +6 -2
- package/js/x-modules/search/store/module.js.map +1 -1
- package/js/x-modules/search-box/store/emitters.js +3 -1
- package/js/x-modules/search-box/store/emitters.js.map +1 -1
- package/js/x-modules/tagging/store/emitters.js +3 -1
- package/js/x-modules/tagging/store/emitters.js.map +1 -1
- package/js/x-modules/url/store/actions/update-store-from-url.action.js +76 -0
- package/js/x-modules/url/store/actions/update-store-from-url.action.js.map +1 -0
- package/js/x-modules/url/store/actions/update-url.action.js +52 -0
- package/js/x-modules/url/store/actions/update-url.action.js.map +1 -0
- package/js/x-modules/url/store/emitters.js +3 -1
- package/js/x-modules/url/store/emitters.js.map +1 -1
- package/js/x-modules/url/store/getters/url-mapped-param-names.getter.js +23 -0
- package/js/x-modules/url/store/getters/url-mapped-param-names.getter.js.map +1 -0
- package/js/x-modules/url/store/getters/url-params.getter.js +23 -10
- package/js/x-modules/url/store/getters/url-params.getter.js.map +1 -1
- package/js/x-modules/url/store/module.js +24 -7
- package/js/x-modules/url/store/module.js.map +1 -1
- package/package.json +4 -4
- package/report/x-adapter.api.json +0 -26
- package/report/x-components.api.json +1178 -756
- package/report/x-components.api.md +62 -106
- package/report/x-types.api.json +18 -27
- package/types/index.d.ts +0 -1
- package/types/index.d.ts.map +1 -1
- package/types/plugins/x-plugin.d.ts +1 -1
- package/types/plugins/x-plugin.d.ts.map +1 -1
- package/types/plugins/x-plugin.types.d.ts +2 -2
- package/types/plugins/x-plugin.types.d.ts.map +1 -1
- package/types/router.d.ts.map +1 -1
- package/types/store/index.d.ts +3 -2
- package/types/store/index.d.ts.map +1 -1
- package/types/store/utils/{helpers/fetch-and-save-action.helpers.d.ts → fetch-and-save-action.utils.d.ts} +24 -16
- package/types/store/utils/fetch-and-save-action.utils.d.ts.map +1 -0
- package/types/store/utils/{get-getters-proxy.d.ts → getters-proxy.utils.d.ts} +1 -1
- package/types/store/utils/getters-proxy.utils.d.ts.map +1 -0
- package/types/store/utils/{helpers/status.helpers.d.ts → status-store.utils.d.ts} +1 -1
- package/types/store/utils/status-store.utils.d.ts.map +1 -0
- package/types/store/{store-emitters.types.d.ts → utils/store-emitters.utils.d.ts} +13 -4
- package/types/store/utils/store-emitters.utils.d.ts.map +1 -0
- package/types/store/x.module.d.ts.map +1 -1
- package/types/x-modules/identifier-results/store/types.d.ts +1 -1
- package/types/x-modules/identifier-results/store/types.d.ts.map +1 -1
- package/types/x-modules/next-queries/store/types.d.ts +1 -1
- package/types/x-modules/next-queries/store/types.d.ts.map +1 -1
- package/types/x-modules/popular-searches/store/types.d.ts +1 -1
- package/types/x-modules/popular-searches/store/types.d.ts.map +1 -1
- package/types/x-modules/query-suggestions/store/types.d.ts +1 -1
- package/types/x-modules/query-suggestions/store/types.d.ts.map +1 -1
- package/types/x-modules/recommendations/store/types.d.ts +1 -1
- package/types/x-modules/recommendations/store/types.d.ts.map +1 -1
- package/types/x-modules/related-tags/store/types.d.ts +1 -1
- package/types/x-modules/related-tags/store/types.d.ts.map +1 -1
- package/types/x-modules/search/store/actions/fetch-and-save-search-response.action.d.ts.map +1 -1
- package/types/x-modules/search/store/module.d.ts.map +1 -1
- package/types/x-modules/search/store/types.d.ts +26 -18
- package/types/x-modules/search/store/types.d.ts.map +1 -1
- package/types/x-modules/url/components/index.d.ts +2 -0
- package/types/x-modules/url/components/index.d.ts.map +1 -0
- package/types/x-modules/url/store/actions/update-store-from-url.action.d.ts +11 -0
- package/types/x-modules/url/store/actions/update-store-from-url.action.d.ts.map +1 -0
- package/types/x-modules/url/store/actions/update-url.action.d.ts +11 -0
- package/types/x-modules/url/store/actions/update-url.action.d.ts.map +1 -0
- package/types/x-modules/url/store/emitters.d.ts +1 -1
- package/types/x-modules/url/store/getters/url-mapped-param-names.getter.d.ts +12 -0
- package/types/x-modules/url/store/getters/url-mapped-param-names.getter.d.ts.map +1 -0
- package/types/x-modules/url/store/getters/url-params.getter.d.ts +1 -0
- package/types/x-modules/url/store/getters/url-params.getter.d.ts.map +1 -1
- package/types/x-modules/url/store/module.d.ts.map +1 -1
- package/types/x-modules/url/store/types.d.ts +46 -3
- package/types/x-modules/url/store/types.d.ts.map +1 -1
- package/types/x-modules/x-modules.types.d.ts +1 -3
- package/types/x-modules/x-modules.types.d.ts.map +1 -1
- package/design-system/list-background.css +0 -20
- package/design-system/list-border.css +0 -44
- package/design-system/row-background.css +0 -20
- package/docs/API-reference/api/x-adapter.empathydirect.title.md +0 -11
- package/docs/API-reference/api/x-components.clearnosuggestionsquery.md +0 -13
- package/docs/API-reference/api/x-components.nosuggestions.beforedestroy.md +0 -15
- package/docs/API-reference/api/x-components.nosuggestions.created.md +0 -15
- package/docs/API-reference/api/x-components.nosuggestions.eventstorender.md +0 -13
- package/docs/API-reference/api/x-components.nosuggestions.eventsubscriptions.md +0 -11
- package/docs/API-reference/api/x-components.nosuggestions.md +0 -32
- package/docs/API-reference/api/x-components.nosuggestions.message.md +0 -13
- package/docs/API-reference/api/x-components.nosuggestions.suggestionsevents.md +0 -11
- package/docs/API-reference/api/x-components.nosuggestionsactions.md +0 -13
- package/docs/API-reference/api/x-components.nosuggestionsgetters.md +0 -13
- package/docs/API-reference/api/x-components.nosuggestionsmutations.md +0 -20
- package/docs/API-reference/api/x-components.nosuggestionsmutations.setquery.md +0 -24
- package/docs/API-reference/api/x-components.nosuggestionsstate.md +0 -20
- package/docs/API-reference/api/x-components.nosuggestionsstate.query.md +0 -13
- package/docs/API-reference/api/x-components.nosuggestionsxmodule.md +0 -13
- package/docs/API-reference/api/x-components.nosuggestionsxstoremodule.md +0 -15
- package/docs/API-reference/api/x-components.setnosuggestionsquery.md +0 -13
- package/docs/API-reference/api/x-components.xeventarraypayload.md +0 -15
- package/docs/API-reference/api/x-components.xmodulestree.nosuggestions.md +0 -11
- package/docs/API-reference/api/x-types.redirection.title.md +0 -13
- package/docs/API-reference/components/no-suggestions/x-components.no-suggestions.md +0 -49
- package/js/store/store.utils.js.map +0 -1
- package/js/store/utils/get-getters-proxy.js.map +0 -1
- package/js/store/utils/helpers/fetch-and-save-action.helpers.js.map +0 -1
- package/js/store/utils/helpers/status.helpers.js.map +0 -1
- package/js/x-modules/no-suggestions/components/no-suggestions.vue.js +0 -70
- package/js/x-modules/no-suggestions/components/no-suggestions.vue.js.map +0 -1
- package/js/x-modules/no-suggestions/components/no-suggestions.vue_rollup-plugin-vue=script.js +0 -160
- package/js/x-modules/no-suggestions/components/no-suggestions.vue_rollup-plugin-vue=script.js.map +0 -1
- package/js/x-modules/no-suggestions/store/module.js +0 -20
- package/js/x-modules/no-suggestions/store/module.js.map +0 -1
- package/js/x-modules/no-suggestions/wiring.js +0 -46
- package/js/x-modules/no-suggestions/wiring.js.map +0 -1
- package/js/x-modules/no-suggestions/x-module.js +0 -18
- package/js/x-modules/no-suggestions/x-module.js.map +0 -1
- package/no-suggestions/index.d.ts +0 -1
- package/no-suggestions/index.js +0 -4
- package/types/store/store-emitters.types.d.ts.map +0 -1
- package/types/store/store.utils.d.ts +0 -12
- package/types/store/store.utils.d.ts.map +0 -1
- package/types/store/utils/get-getters-proxy.d.ts.map +0 -1
- package/types/store/utils/helpers/fetch-and-save-action.helpers.d.ts.map +0 -1
- package/types/store/utils/helpers/status.helpers.d.ts.map +0 -1
- package/types/x-modules/no-suggestions/components/index.d.ts +0 -2
- package/types/x-modules/no-suggestions/components/index.d.ts.map +0 -1
- package/types/x-modules/no-suggestions/components/no-suggestions.vue.d.ts +0 -90
- package/types/x-modules/no-suggestions/components/no-suggestions.vue.d.ts.map +0 -1
- package/types/x-modules/no-suggestions/config.types.d.ts +0 -9
- package/types/x-modules/no-suggestions/config.types.d.ts.map +0 -1
- package/types/x-modules/no-suggestions/index.d.ts +0 -6
- package/types/x-modules/no-suggestions/index.d.ts.map +0 -1
- package/types/x-modules/no-suggestions/store/index.d.ts +0 -3
- package/types/x-modules/no-suggestions/store/index.d.ts.map +0 -1
- package/types/x-modules/no-suggestions/store/module.d.ts +0 -8
- package/types/x-modules/no-suggestions/store/module.d.ts.map +0 -1
- package/types/x-modules/no-suggestions/store/types.d.ts +0 -44
- package/types/x-modules/no-suggestions/store/types.d.ts.map +0 -1
- package/types/x-modules/no-suggestions/wiring.d.ts +0 -29
- package/types/x-modules/no-suggestions/wiring.d.ts.map +0 -1
- package/types/x-modules/no-suggestions/x-module.d.ts +0 -16
- package/types/x-modules/no-suggestions/x-module.d.ts.map +0 -1
|
@@ -837,9 +837,6 @@ export const clearHistoryQueriesQuery: AnyWire;
|
|
|
837
837
|
// @public
|
|
838
838
|
export const clearIdentifierResultsQuery: AnyWire;
|
|
839
839
|
|
|
840
|
-
// @public
|
|
841
|
-
export const clearNoSuggestionsQuery: AnyWire;
|
|
842
|
-
|
|
843
840
|
// @public
|
|
844
841
|
export const clearQuerySuggestionsQuery: AnyWire;
|
|
845
842
|
|
|
@@ -900,6 +897,17 @@ export function compileMessage(message: string, params: Dictionary<string | numb
|
|
|
900
897
|
// @public
|
|
901
898
|
export function createCollapseAnimationMixin(property: AnimatedProperty): ComponentOptions<Vue_2>;
|
|
902
899
|
|
|
900
|
+
// @public
|
|
901
|
+
export function createFetchAndSaveAction<Context extends XActionContext<StatusState, object, StatusMutations, object>, Response>({ fetch, onSuccess, onError, onCancel }: CreateFetchAndSaveActionsOptions<Context, Response>): FetchAndSaveActions<Context>;
|
|
902
|
+
|
|
903
|
+
// @public
|
|
904
|
+
export interface CreateFetchAndSaveActionsOptions<Context extends XActionContext<StatusState, object, StatusMutations, object>, Response> {
|
|
905
|
+
fetch(context: Context): Promise<Response>;
|
|
906
|
+
onCancel?(): void;
|
|
907
|
+
onError?(error: unknown): void;
|
|
908
|
+
onSuccess(context: Context, response: Response): void;
|
|
909
|
+
}
|
|
910
|
+
|
|
903
911
|
// @public
|
|
904
912
|
export function createStoreEmitters<Module extends AnyXStoreModule, Emitters extends StoreEmitters<Module>>(storeModule: Module, emitters: Emitters): Emitters;
|
|
905
913
|
|
|
@@ -1502,6 +1510,12 @@ export class FadeAndSlide extends Vue_2 {
|
|
|
1502
1510
|
protected tag: string;
|
|
1503
1511
|
}
|
|
1504
1512
|
|
|
1513
|
+
// @public
|
|
1514
|
+
export interface FetchAndSaveActions<Context extends XActionContext<StatusState, object, StatusMutations, object>> {
|
|
1515
|
+
cancelPrevious: () => void;
|
|
1516
|
+
fetchAndSave: (context: Context) => void | Promise<void>;
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1505
1519
|
// @public
|
|
1506
1520
|
export const fetchAndSaveIdentifierResults: (context: IdentifierResultsActionsContext) => void | Promise<void>;
|
|
1507
1521
|
|
|
@@ -1928,8 +1942,6 @@ export interface IdentifierResultsGetters {
|
|
|
1928
1942
|
identifierResultsRequest: SearchByIdRequest | null;
|
|
1929
1943
|
}
|
|
1930
1944
|
|
|
1931
|
-
// Warning: (ae-forgotten-export) The symbol "StatusMutations" needs to be exported by the entry point index.d.ts
|
|
1932
|
-
//
|
|
1933
1945
|
// @public
|
|
1934
1946
|
export interface IdentifierResultsMutations extends StatusMutations {
|
|
1935
1947
|
setIdentifierResults(identifierResults: Result[]): void;
|
|
@@ -1939,8 +1951,6 @@ export interface IdentifierResultsMutations extends StatusMutations {
|
|
|
1939
1951
|
// @public
|
|
1940
1952
|
export const identifierResultsRequest: IdentifierResultsXStoreModule['getters']['identifierResultsRequest'];
|
|
1941
1953
|
|
|
1942
|
-
// Warning: (ae-forgotten-export) The symbol "StatusState" needs to be exported by the entry point index.d.ts
|
|
1943
|
-
//
|
|
1944
1954
|
// @public
|
|
1945
1955
|
export interface IdentifierResultsState extends StatusState {
|
|
1946
1956
|
config: IdentifierResultsConfig;
|
|
@@ -2321,81 +2331,6 @@ export const normalizedQuery: QuerySuggestionsXStoreModule['getters']['normalize
|
|
|
2321
2331
|
// @public
|
|
2322
2332
|
export function normalizeString(string: string | undefined): string;
|
|
2323
2333
|
|
|
2324
|
-
// @public
|
|
2325
|
-
export class NoSuggestions extends Vue_2 {
|
|
2326
|
-
// (undocumented)
|
|
2327
|
-
beforeDestroy(): void;
|
|
2328
|
-
// (undocumented)
|
|
2329
|
-
created(): void;
|
|
2330
|
-
// @internal
|
|
2331
|
-
protected deleteSuggestionsEvents(): void;
|
|
2332
|
-
// @internal
|
|
2333
|
-
protected get dividedMessage(): string[];
|
|
2334
|
-
// @internal
|
|
2335
|
-
protected get events(): Partial<XEventsTypes>;
|
|
2336
|
-
protected eventsToRender: XEventArrayPayload[];
|
|
2337
|
-
// (undocumented)
|
|
2338
|
-
protected eventSubscriptions: Subscription[];
|
|
2339
|
-
// @internal
|
|
2340
|
-
protected get hasSuggestionsOrLoading(): boolean;
|
|
2341
|
-
// @internal
|
|
2342
|
-
protected makeReactiveAndSubscribeEvents(eventsToRender: XEventArrayPayload[]): void;
|
|
2343
|
-
message: string;
|
|
2344
|
-
// @internal
|
|
2345
|
-
protected onEventsToRenderConfigChanged(newEventsToRender: XEventArrayPayload[]): void;
|
|
2346
|
-
// @internal
|
|
2347
|
-
protected onQueryChanged(): void;
|
|
2348
|
-
// (undocumented)
|
|
2349
|
-
query: string;
|
|
2350
|
-
// (undocumented)
|
|
2351
|
-
protected suggestionsEvents: Partial<Record<XEventArrayPayload, any[] | null>>;
|
|
2352
|
-
// @internal
|
|
2353
|
-
protected unsubscribeEvents(): void;
|
|
2354
|
-
}
|
|
2355
|
-
|
|
2356
|
-
// @public
|
|
2357
|
-
export interface NoSuggestionsActions {
|
|
2358
|
-
}
|
|
2359
|
-
|
|
2360
|
-
// @public
|
|
2361
|
-
export interface NoSuggestionsGetters {
|
|
2362
|
-
}
|
|
2363
|
-
|
|
2364
|
-
// @public
|
|
2365
|
-
export interface NoSuggestionsMutations {
|
|
2366
|
-
setQuery(newQuery: string): void;
|
|
2367
|
-
}
|
|
2368
|
-
|
|
2369
|
-
// @public
|
|
2370
|
-
export interface NoSuggestionsState {
|
|
2371
|
-
query: string;
|
|
2372
|
-
}
|
|
2373
|
-
|
|
2374
|
-
// @internal
|
|
2375
|
-
export const noSuggestionsWiring: {
|
|
2376
|
-
UserIsTypingAQuery: {
|
|
2377
|
-
setNoSuggestionsQuery: Wire<string>;
|
|
2378
|
-
};
|
|
2379
|
-
UserAcceptedAQuery: {
|
|
2380
|
-
setNoSuggestionsQuery: Wire<string>;
|
|
2381
|
-
};
|
|
2382
|
-
UserClearedQuery: {
|
|
2383
|
-
clearNoSuggestionsQuery: AnyWire;
|
|
2384
|
-
};
|
|
2385
|
-
};
|
|
2386
|
-
|
|
2387
|
-
// @public
|
|
2388
|
-
export type NoSuggestionsXModule = XModule<NoSuggestionsXStoreModule>;
|
|
2389
|
-
|
|
2390
|
-
// @public
|
|
2391
|
-
export const noSuggestionsXModule: NoSuggestionsXModule;
|
|
2392
|
-
|
|
2393
|
-
// @public
|
|
2394
|
-
export type NoSuggestionsXStoreModule = XStoreModule<NoSuggestionsState, NoSuggestionsGetters, NoSuggestionsMutations, NoSuggestionsActions>;
|
|
2395
|
-
|
|
2396
|
-
// @internal
|
|
2397
|
-
export const noSuggestionsXStoreModule: NoSuggestionsXStoreModule;
|
|
2398
|
-
|
|
2399
2334
|
// @public (undocumented)
|
|
2400
2335
|
export const Nq1Icon: {};
|
|
2401
2336
|
|
|
@@ -2443,6 +2378,22 @@ export interface ObserverOptions {
|
|
|
2443
2378
|
// @public
|
|
2444
2379
|
export type Pair<Type> = [Type, Type];
|
|
2445
2380
|
|
|
2381
|
+
// @public
|
|
2382
|
+
export interface Params {
|
|
2383
|
+
// (undocumented)
|
|
2384
|
+
filters: string[];
|
|
2385
|
+
// (undocumented)
|
|
2386
|
+
page: number;
|
|
2387
|
+
// (undocumented)
|
|
2388
|
+
query: string;
|
|
2389
|
+
// (undocumented)
|
|
2390
|
+
relatedTags: string[];
|
|
2391
|
+
// (undocumented)
|
|
2392
|
+
scroll: number;
|
|
2393
|
+
// (undocumented)
|
|
2394
|
+
sort: string;
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2446
2397
|
// @public
|
|
2447
2398
|
export class PartialQueryButton extends Vue_2 {
|
|
2448
2399
|
protected get events(): Partial<XEventsTypes>;
|
|
@@ -3001,6 +2952,9 @@ export class RenderlessFilter extends Vue_2 {
|
|
|
3001
2952
|
render(h: CreateElement): VNode;
|
|
3002
2953
|
}
|
|
3003
2954
|
|
|
2955
|
+
// @public
|
|
2956
|
+
export type RequestStatus = 'success' | 'loading' | 'error';
|
|
2957
|
+
|
|
3004
2958
|
// @public
|
|
3005
2959
|
export const resetFacets: AnyWire;
|
|
3006
2960
|
|
|
@@ -3256,6 +3210,8 @@ export interface SearchMutations extends StatusMutations {
|
|
|
3256
3210
|
setPartialResults(partialResults: PartialResult[]): void;
|
|
3257
3211
|
setPromoteds(promoteds: Promoted_2[]): void;
|
|
3258
3212
|
setQuery(newQuery: string): void;
|
|
3213
|
+
// Warning: (ae-forgotten-export) The symbol "Redirection" needs to be exported by the entry point index.d.ts
|
|
3214
|
+
setRedirections(redirections: Redirection[]): void;
|
|
3259
3215
|
setRelatedTags(relatedTags: RelatedTag_2[]): void;
|
|
3260
3216
|
setResults(results: Result[]): void;
|
|
3261
3217
|
setSelectedFilters(selectedFilters: Filter[]): void;
|
|
@@ -3280,6 +3236,7 @@ export interface SearchState extends StatusState {
|
|
|
3280
3236
|
partialResults: PartialResult[];
|
|
3281
3237
|
promoteds: Promoted_2[];
|
|
3282
3238
|
query: string;
|
|
3239
|
+
redirections: Redirection[];
|
|
3283
3240
|
relatedTags: RelatedTag_2[];
|
|
3284
3241
|
results: Result[];
|
|
3285
3242
|
selectedFilters: Dictionary<Filter[]>;
|
|
@@ -3414,9 +3371,6 @@ export const setNextQueriesExtraParams: Wire<Dictionary<unknown>>;
|
|
|
3414
3371
|
// @public
|
|
3415
3372
|
export const setNextQueriesQuery: Wire<string>;
|
|
3416
3373
|
|
|
3417
|
-
// @public
|
|
3418
|
-
export const setNoSuggestionsQuery: Wire<string>;
|
|
3419
|
-
|
|
3420
3374
|
// @public
|
|
3421
3375
|
export const setOrigin: AnyWire;
|
|
3422
3376
|
|
|
@@ -3471,6 +3425,9 @@ export const setSelectedFilters: Wire<Filter[]>;
|
|
|
3471
3425
|
// @public
|
|
3472
3426
|
export const setSort: Wire<string>;
|
|
3473
3427
|
|
|
3428
|
+
// @public
|
|
3429
|
+
export function setStatus(state: StatusState, status: RequestStatus): void;
|
|
3430
|
+
|
|
3474
3431
|
// @public
|
|
3475
3432
|
export const setUrlConfigWire: Wire<UrlConfig>;
|
|
3476
3433
|
|
|
@@ -3745,6 +3702,16 @@ export interface StateSelector<ReturnType, State extends Dictionary, Getters ext
|
|
|
3745
3702
|
selector: SimpleStateSelector<ReturnType, State, Getters>;
|
|
3746
3703
|
}
|
|
3747
3704
|
|
|
3705
|
+
// @public
|
|
3706
|
+
export interface StatusMutations {
|
|
3707
|
+
setStatus(status: RequestStatus): void;
|
|
3708
|
+
}
|
|
3709
|
+
|
|
3710
|
+
// @public
|
|
3711
|
+
export interface StatusState {
|
|
3712
|
+
status: RequestStatus;
|
|
3713
|
+
}
|
|
3714
|
+
|
|
3748
3715
|
// @public
|
|
3749
3716
|
export const storageKey: HistoryQueriesXStoreModule['getters']['storageKey'];
|
|
3750
3717
|
|
|
@@ -3850,6 +3817,8 @@ export const TrendingTinyIcon: {};
|
|
|
3850
3817
|
|
|
3851
3818
|
// @public
|
|
3852
3819
|
export interface UrlActions {
|
|
3820
|
+
updateStoreFromUrl(): void;
|
|
3821
|
+
updateUrl(): void;
|
|
3853
3822
|
}
|
|
3854
3823
|
|
|
3855
3824
|
// @public
|
|
@@ -3867,23 +3836,24 @@ export interface UrlConfig {
|
|
|
3867
3836
|
|
|
3868
3837
|
// @internal
|
|
3869
3838
|
export const urlEmitters: {
|
|
3870
|
-
UrlStateChanged: (_: UrlState, getters: Returns<GettersTree<UrlState, UrlGetters>>) =>
|
|
3839
|
+
UrlStateChanged: (_: UrlState, getters: Returns<GettersTree<UrlState, UrlGetters>>) => Dictionary<UrlParamValue>;
|
|
3871
3840
|
};
|
|
3872
3841
|
|
|
3873
3842
|
// @public
|
|
3874
3843
|
export interface UrlGetters {
|
|
3875
|
-
|
|
3876
|
-
urlParams:
|
|
3844
|
+
urlMappedParamNames: Dictionary<UrlParamKey | string>;
|
|
3845
|
+
urlParams: Dictionary<UrlParamValue>;
|
|
3877
3846
|
}
|
|
3878
3847
|
|
|
3879
3848
|
// @public
|
|
3880
3849
|
export interface UrlMutations {
|
|
3881
|
-
|
|
3850
|
+
setExtraParams(extraParam: Dictionary<UrlParamValue>): void;
|
|
3851
|
+
setParams(params: Record<keyof Params, UrlParamValue>): void;
|
|
3882
3852
|
setUrlConfig(config: UrlConfig): void;
|
|
3883
3853
|
}
|
|
3884
3854
|
|
|
3885
3855
|
// @public
|
|
3886
|
-
export type UrlParamKey = string
|
|
3856
|
+
export type UrlParamKey = Extract<keyof Params, string>;
|
|
3887
3857
|
|
|
3888
3858
|
// @public
|
|
3889
3859
|
export type UrlParamValue = string | number | boolean | Array<string | number | boolean>;
|
|
@@ -3893,17 +3863,9 @@ export interface UrlState {
|
|
|
3893
3863
|
// (undocumented)
|
|
3894
3864
|
config: UrlConfig;
|
|
3895
3865
|
// (undocumented)
|
|
3896
|
-
extraParams:
|
|
3866
|
+
extraParams: Dictionary<UrlParamValue>;
|
|
3897
3867
|
// (undocumented)
|
|
3898
|
-
|
|
3899
|
-
// (undocumented)
|
|
3900
|
-
page: number;
|
|
3901
|
-
// (undocumented)
|
|
3902
|
-
query: string;
|
|
3903
|
-
// (undocumented)
|
|
3904
|
-
relatedTags: string[];
|
|
3905
|
-
// (undocumented)
|
|
3906
|
-
sort: string;
|
|
3868
|
+
params: Record<keyof Params, UrlParamValue>;
|
|
3907
3869
|
}
|
|
3908
3870
|
|
|
3909
3871
|
// @internal
|
|
@@ -4091,7 +4053,6 @@ export interface XComponentAliasQueryAPI {
|
|
|
4091
4053
|
|
|
4092
4054
|
// @public
|
|
4093
4055
|
export interface XComponentAliasStatusAPI {
|
|
4094
|
-
// Warning: (ae-forgotten-export) The symbol "RequestStatus" needs to be exported by the entry point index.d.ts
|
|
4095
4056
|
readonly identifierResults: RequestStatus | undefined;
|
|
4096
4057
|
readonly nextQueries: RequestStatus | undefined;
|
|
4097
4058
|
readonly popularSearches: RequestStatus | undefined;
|
|
@@ -4124,9 +4085,6 @@ export function XEmit<Event extends XEvent>(xEvent: Event, { immediate, deep }?:
|
|
|
4124
4085
|
// @public
|
|
4125
4086
|
export type XEvent = keyof XEventsTypes;
|
|
4126
4087
|
|
|
4127
|
-
// @public
|
|
4128
|
-
export type XEventArrayPayload = PropsWithType<XEventsTypes, any[]>;
|
|
4129
|
-
|
|
4130
4088
|
// @public
|
|
4131
4089
|
export type XEventPayload<Event extends XEvent> = XEventsTypes[Event] extends void ? undefined : XEventsTypes[Event];
|
|
4132
4090
|
|
|
@@ -4252,8 +4210,6 @@ export interface XModulesTree {
|
|
|
4252
4210
|
// (undocumented)
|
|
4253
4211
|
nextQueries: NextQueriesXModule;
|
|
4254
4212
|
// (undocumented)
|
|
4255
|
-
noSuggestions: NoSuggestionsXModule;
|
|
4256
|
-
// (undocumented)
|
|
4257
4213
|
popularSearches: PopularSearchesXModule;
|
|
4258
4214
|
// (undocumented)
|
|
4259
4215
|
querySuggestions: QuerySuggestionsXModule;
|
package/report/x-types.api.json
CHANGED
|
@@ -2151,7 +2151,7 @@
|
|
|
2151
2151
|
},
|
|
2152
2152
|
{
|
|
2153
2153
|
"kind": "Content",
|
|
2154
|
-
"text": "'Result' | 'NextQueries' | 'NextQuery' | 'RelatedTag' | 'PopularSearch' | 'QuerySuggestion' | 'HistoryQuery' | 'Banner' | 'Promoted' | "
|
|
2154
|
+
"text": "'Result' | 'NextQueries' | 'NextQuery' | 'RelatedTag' | 'PopularSearch' | 'QuerySuggestion' | 'HistoryQuery' | 'Banner' | 'Promoted' | 'Redirection' | "
|
|
2155
2155
|
},
|
|
2156
2156
|
{
|
|
2157
2157
|
"kind": "Reference",
|
|
@@ -3245,6 +3245,19 @@
|
|
|
3245
3245
|
"kind": "Content",
|
|
3246
3246
|
"text": "export interface Redirection extends "
|
|
3247
3247
|
},
|
|
3248
|
+
{
|
|
3249
|
+
"kind": "Reference",
|
|
3250
|
+
"text": "NamedModel",
|
|
3251
|
+
"canonicalReference": "@empathyco/x-types!NamedModel:interface"
|
|
3252
|
+
},
|
|
3253
|
+
{
|
|
3254
|
+
"kind": "Content",
|
|
3255
|
+
"text": "<'Redirection'>"
|
|
3256
|
+
},
|
|
3257
|
+
{
|
|
3258
|
+
"kind": "Content",
|
|
3259
|
+
"text": ", "
|
|
3260
|
+
},
|
|
3248
3261
|
{
|
|
3249
3262
|
"kind": "Reference",
|
|
3250
3263
|
"text": "Identifiable",
|
|
@@ -3293,32 +3306,6 @@
|
|
|
3293
3306
|
"endIndex": 4
|
|
3294
3307
|
}
|
|
3295
3308
|
},
|
|
3296
|
-
{
|
|
3297
|
-
"kind": "PropertySignature",
|
|
3298
|
-
"canonicalReference": "@empathyco/x-types!Redirection#title:member",
|
|
3299
|
-
"docComment": "/**\n * Redirect title.\n */\n",
|
|
3300
|
-
"excerptTokens": [
|
|
3301
|
-
{
|
|
3302
|
-
"kind": "Content",
|
|
3303
|
-
"text": "title: "
|
|
3304
|
-
},
|
|
3305
|
-
{
|
|
3306
|
-
"kind": "Content",
|
|
3307
|
-
"text": "string"
|
|
3308
|
-
},
|
|
3309
|
-
{
|
|
3310
|
-
"kind": "Content",
|
|
3311
|
-
"text": ";"
|
|
3312
|
-
}
|
|
3313
|
-
],
|
|
3314
|
-
"isOptional": false,
|
|
3315
|
-
"releaseTag": "Public",
|
|
3316
|
-
"name": "title",
|
|
3317
|
-
"propertyTypeTokenRange": {
|
|
3318
|
-
"startIndex": 1,
|
|
3319
|
-
"endIndex": 2
|
|
3320
|
-
}
|
|
3321
|
-
},
|
|
3322
3309
|
{
|
|
3323
3310
|
"kind": "PropertySignature",
|
|
3324
3311
|
"canonicalReference": "@empathyco/x-types!Redirection#url:member",
|
|
@@ -3350,6 +3337,10 @@
|
|
|
3350
3337
|
{
|
|
3351
3338
|
"startIndex": 1,
|
|
3352
3339
|
"endIndex": 3
|
|
3340
|
+
},
|
|
3341
|
+
{
|
|
3342
|
+
"startIndex": 4,
|
|
3343
|
+
"endIndex": 6
|
|
3353
3344
|
}
|
|
3354
3345
|
]
|
|
3355
3346
|
},
|
package/types/index.d.ts
CHANGED
|
@@ -20,7 +20,6 @@ export * from './x-modules/facets';
|
|
|
20
20
|
export * from './x-modules/history-queries';
|
|
21
21
|
export * from './x-modules/identifier-results';
|
|
22
22
|
export * from './x-modules/next-queries';
|
|
23
|
-
export * from './x-modules/no-suggestions';
|
|
24
23
|
export * from './x-modules/popular-searches';
|
|
25
24
|
export * from './x-modules/query-suggestions';
|
|
26
25
|
export * from './x-modules/recommendations';
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SearchAdapter } from '@empathyco/x-adapter';
|
|
2
2
|
import { PluginObject, VueConstructor } from 'vue';
|
|
3
3
|
import { Store } from 'vuex';
|
|
4
|
-
import { AnySimpleStateSelector, AnyStateSelector, AnyStoreEmitters } from '../store/store-emitters.types';
|
|
5
4
|
import { AnyXStoreModule, RootXStoreState } from '../store/store.types';
|
|
5
|
+
import { AnySimpleStateSelector, AnyStateSelector, AnyStoreEmitters } from '../store/utils/store-emitters.utils';
|
|
6
6
|
import { Wiring } from '../wiring/wiring.types';
|
|
7
7
|
import { AnyXModule, XModuleName } from '../x-modules/x-modules.types';
|
|
8
8
|
import { XBus } from './x-bus.types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-plugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/x-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AACnD,OAAa,EAAU,KAAK,EAAE,MAAM,MAAM,CAAC;AAE3C,OAAO,
|
|
1
|
+
{"version":3,"file":"x-plugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/x-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AACnD,OAAa,EAAU,KAAK,EAAE,MAAM,MAAM,CAAC;AAE3C,OAAO,EAAE,eAAe,EAAE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OlB;;;;;;;;OAQG;IACH,SAAS,CAAC,qBAAqB,CAC7B,IAAI,EAAE,WAAW,EACjB,WAAW,EAAE,eAAe,EAC5B,aAAa,EAAE,gBAAgB,GAC9B,IAAI;IA+BP;;;;;;;OAOG;IACH,SAAS,CAAC,sBAAsB,CAC9B,aAAa,EAAE,sBAAsB,GAAG,gBAAgB,GACvD,QAAQ,CAAC,gBAAgB,CAAC;IAY7B;;;;;;;OAOG;IACH,SAAS,CAAC,aAAa,IAAI,IAAI;IAc/B;;;;OAIG;IACH,SAAS,CAAC,WAAW,IAAI,IAAI;IAI7B;;;;OAIG;IACH,SAAS,CAAC,sBAAsB,IAAI,IAAI;IAMxC;;;;;OAKG;IACH,SAAS,CAAC,uBAAuB,IAAI,IAAI;IAOzC;;;;;OAKG;IACH,SAAS,CAAC,kCAAkC,IAAI,IAAI;IAMpD;;;;;;;OAOG;IACH,SAAS,CAAC,gBAAgB,CACxB,aAAa,EAAE,sBAAsB,GAAG,gBAAgB,GACvD,aAAa,IAAI,sBAAsB;IAI1C;;;;OAIG;IACH,SAAS,CAAC,eAAe,IAAI,IAAI;CAKlC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,OAAO,SAAmB,CAAC"}
|
|
@@ -4,9 +4,9 @@ import { Store } from 'vuex';
|
|
|
4
4
|
import { ActionsTree } from '../store/actions.types';
|
|
5
5
|
import { GettersTree } from '../store/getters.types';
|
|
6
6
|
import { MutationsTree } from '../store/mutations.types';
|
|
7
|
-
import { StoreEmitters } from '../store/store-emitters.types';
|
|
8
7
|
import { AnyXStoreModule, XStoreModule } from '../store/store.types';
|
|
9
|
-
import { RequestStatus } from '../store/utils/
|
|
8
|
+
import { RequestStatus } from '../store/utils/status-store.utils';
|
|
9
|
+
import { StoreEmitters } from '../store/utils/store-emitters.utils';
|
|
10
10
|
import { DeepPartial, PropsWithType } from '../utils';
|
|
11
11
|
import { XEvent, XEventPayload, XEventsTypes } from '../wiring/events.types';
|
|
12
12
|
import { WireMetadata, Wiring } from '../wiring/wiring.types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-plugin.types.d.ts","sourceRoot":"","sources":["../../../src/plugins/x-plugin.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EACL,KAAK,EACL,MAAM,EACN,YAAY,EACZ,SAAS,EACT,UAAU,EACV,MAAM,EACN,UAAU,EACX,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"x-plugin.types.d.ts","sourceRoot":"","sources":["../../../src/plugins/x-plugin.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EACL,KAAK,EACL,MAAM,EACN,YAAY,EACZ,SAAS,EACT,UAAU,EACV,MAAM,EACN,UAAU,EACX,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC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router.d.ts","sourceRoot":"","sources":["../../src/router.ts"],"names":[],"mappings":"AACA,OAAO,SAA0B,MAAM,YAAY,CAAC;AA8JpD,QAAA,MAAM,MAAM,WAGV,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
package/types/store/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export * from './actions.types';
|
|
2
|
+
export * from './utils/fetch-and-save-action.utils';
|
|
2
3
|
export * from './getters.types';
|
|
3
4
|
export * from './mutations.types';
|
|
4
|
-
export * from './store
|
|
5
|
+
export * from './utils/status-store.utils';
|
|
6
|
+
export * from './utils/store-emitters.utils';
|
|
5
7
|
export * from './store.types';
|
|
6
|
-
export * from './store.utils';
|
|
7
8
|
export * from './x.module';
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/store/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/store/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,qCAAqC,CAAC;AACpD,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC"}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import { XActionContext } from '
|
|
2
|
-
import { StatusMutations, StatusState } from './status.
|
|
1
|
+
import { XActionContext } from '../actions.types';
|
|
2
|
+
import { StatusMutations, StatusState } from './status-store.utils';
|
|
3
3
|
/**
|
|
4
4
|
* Utility to create an action that requests and save some data asynchronously, with the
|
|
5
5
|
* option to cancel the request at any moment. This factory provides with the standard flow
|
|
6
6
|
* for requesting, cancelling, handling errors for a module, while also taking care of its status.
|
|
7
7
|
*
|
|
8
|
-
* @
|
|
8
|
+
* @public
|
|
9
9
|
* @returns An action to fetch and save some data, and an action to cancel the last request.
|
|
10
10
|
*/
|
|
11
|
-
export declare function createFetchAndSaveAction<Context extends XActionContext<StatusState, object, StatusMutations, object>, Response>({ fetch, onSuccess, onError, onCancel }:
|
|
12
|
-
|
|
11
|
+
export declare function createFetchAndSaveAction<Context extends XActionContext<StatusState, object, StatusMutations, object>, Response>({ fetch, onSuccess, onError, onCancel }: CreateFetchAndSaveActionsOptions<Context, Response>): FetchAndSaveActions<Context>;
|
|
12
|
+
/**
|
|
13
|
+
* Options to use with the {@link createFetchAndSaveAction} factory.
|
|
14
|
+
*
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateFetchAndSaveActionsOptions<Context extends XActionContext<StatusState, object, StatusMutations, object>, Response> {
|
|
13
18
|
/**
|
|
14
19
|
* Retrieves and returns asynchronously some data.
|
|
15
20
|
*
|
|
@@ -18,17 +23,17 @@ export interface FetchAndSaveActionOptions<Context extends XActionContext<Status
|
|
|
18
23
|
*/
|
|
19
24
|
fetch(context: Context): Promise<Response>;
|
|
20
25
|
/**
|
|
21
|
-
* Asynchronous callback executed when the {@link
|
|
22
|
-
* successfully.
|
|
26
|
+
* Asynchronous callback executed when the {@link CreateFetchAndSaveActionsOptions.fetch} is
|
|
27
|
+
* performed successfully.
|
|
23
28
|
*
|
|
24
29
|
* @param context - The {@link https://vuex.vuejs.org/guide/actions.html | context} of the
|
|
25
30
|
* actions, provided by Vuex.
|
|
26
|
-
* @param response - The data returned by {@link
|
|
31
|
+
* @param response - The data returned by {@link CreateFetchAndSaveActionsOptions.fetch}.
|
|
27
32
|
*/
|
|
28
33
|
onSuccess(context: Context, response: Response): void;
|
|
29
34
|
/**
|
|
30
|
-
* Asynchronous callback executed when either the {@link
|
|
31
|
-
* {@link
|
|
35
|
+
* Asynchronous callback executed when either the {@link CreateFetchAndSaveActionsOptions.fetch}
|
|
36
|
+
* or {@link CreateFetchAndSaveActionsOptions.onSuccess} methods fail.
|
|
32
37
|
*
|
|
33
38
|
* @param error - The error that triggered this callback.
|
|
34
39
|
*/
|
|
@@ -36,15 +41,18 @@ export interface FetchAndSaveActionOptions<Context extends XActionContext<Status
|
|
|
36
41
|
/**
|
|
37
42
|
* Synchronous callback executed when the request is cancelled. This can happen mainly for two
|
|
38
43
|
* reasons:
|
|
39
|
-
* - The {@link
|
|
40
|
-
* - A new {@link
|
|
44
|
+
* - The {@link FetchAndSaveActions.cancelPrevious} action is dispatched.
|
|
45
|
+
* - A new {@link FetchAndSaveActions.fetchAndSave} is dispatched before the previous one was
|
|
41
46
|
* resolved.
|
|
42
|
-
*
|
|
43
|
-
* @param error - The error that triggered this callback.
|
|
44
47
|
*/
|
|
45
48
|
onCancel?(): void;
|
|
46
49
|
}
|
|
47
|
-
|
|
50
|
+
/**
|
|
51
|
+
* Actions returned from the {@link createFetchAndSaveAction}.
|
|
52
|
+
*
|
|
53
|
+
* @public
|
|
54
|
+
*/
|
|
55
|
+
export interface FetchAndSaveActions<Context extends XActionContext<StatusState, object, StatusMutations, object>> {
|
|
48
56
|
/**
|
|
49
57
|
* Action that requests and saves the response.
|
|
50
58
|
*
|
|
@@ -58,4 +66,4 @@ export interface FetchAndSaveAction<Context extends XActionContext<StatusState,
|
|
|
58
66
|
*/
|
|
59
67
|
cancelPrevious: () => void;
|
|
60
68
|
}
|
|
61
|
-
//# sourceMappingURL=fetch-and-save-action.
|
|
69
|
+
//# sourceMappingURL=fetch-and-save-action.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-and-save-action.utils.d.ts","sourceRoot":"","sources":["../../../../src/store/utils/fetch-and-save-action.utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,W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OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAIjD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,yBAAyB,CAAC,UAAU,SAAS,WAAW,EACtE,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC,EACpC,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,eAAe,GAC3B,cAAc,CAAC,UAAU,CAAC,CAe5B;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,UAAU,SAAS,WAAW,EAC5D,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC,EACpC,UAAU,EAAE,UAAU,GACrB,cAAc,CAAC,UAAU,CAAC,CAgB5B;AA4BD;;;KAGK;AACL,wBAAgB,sBAAsB,IAAI,IAAI,CAE7C"}
|
|
@@ -38,4 +38,4 @@ export declare type RequestStatus = 'success' | 'loading' | 'error';
|
|
|
38
38
|
* @public
|
|
39
39
|
*/
|
|
40
40
|
export declare function setStatus(state: StatusState, status: RequestStatus): void;
|
|
41
|
-
//# sourceMappingURL=status.
|
|
41
|
+
//# sourceMappingURL=status-store.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status-store.utils.d.ts","sourceRoot":"","sources":["../../../../src/store/utils/status-store.utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B;sEACkE;IAClE,MAAM,EAAE,aAAa,CAAC;CACvB;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,SAAS,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC;CACxC;AAED;;;;;;;GAOG;AACH,oBAAY,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAE5D;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,GAAG,IAAI,CAEzE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WatchOptions } from 'vue';
|
|
2
|
-
import { Dictionary, Returns } from '
|
|
3
|
-
import { XEvent, XEventPayload } from '
|
|
4
|
-
import { AnyXStoreModule } from '
|
|
2
|
+
import { Dictionary, Returns } from '../../utils/types';
|
|
3
|
+
import { XEvent, XEventPayload } from '../../wiring/events.types';
|
|
4
|
+
import { AnyXStoreModule } from '../store.types';
|
|
5
5
|
/**
|
|
6
6
|
* Selects a part of the store state or getters (AKA "getter" inside
|
|
7
7
|
* {@link https://vuex.vuejs.org/ | Vuex} watchers).
|
|
@@ -69,4 +69,13 @@ export declare type AnyStateSelector = StateSelector<any, any, any>;
|
|
|
69
69
|
* @public
|
|
70
70
|
*/
|
|
71
71
|
export declare type AnyStoreEmitters = StoreEmitters<AnyXStoreModule>;
|
|
72
|
-
|
|
72
|
+
/**
|
|
73
|
+
* Helper function for creating type-safe {@link StoreEmitters}.
|
|
74
|
+
*
|
|
75
|
+
* @param storeModule - The store module that the emitters will be associated to.
|
|
76
|
+
* @param emitters - The {@link StoreEmitters} to create.
|
|
77
|
+
* @returns A type-safe function for storeEmitters.
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
export declare function createStoreEmitters<Module extends AnyXStoreModule, Emitters extends StoreEmitters<Module>>(storeModule: Module, emitters: Emitters): Emitters;
|
|
81
|
+
//# sourceMappingURL=store-emitters.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-emitters.utils.d.ts","sourceRoot":"","sources":["../../../../src/store/utils/store-emitters.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,M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a,CAAC,eAAe,CAAC,CAAC;AAE9D;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,SAAS,eAAe,EAC9B,QAAQ,SAAS,aAAa,CAAC,MAAM,CAAC,EAEtC,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAEnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x.module.d.ts","sourceRoot":"","sources":["../../../src/store/x.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD;;;;;;GAMG;AACH,oBAAY,YAAY,GAAG;KAAG,GAAG,IAAI,MAAM,eAAe,CAAC,GAAG,CAAC,GAAG,IAAI;CAAE,CAAC;AAEzE;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,YAAY,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"x.module.d.ts","sourceRoot":"","sources":["../../../src/store/x.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD;;;;;;GAMG;AACH,oBAAY,YAAY,GAAG;KAAG,GAAG,IAAI,MAAM,eAAe,CAAC,GAAG,CAAC,GAAG,IAAI;CAAE,CAAC;AAEzE;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,YAAY,EAAE,GAAG,CAmBtD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SearchByIdRequest } from '@empathyco/x-adapter';
|
|
2
2
|
import { Result } from '@empathyco/x-types';
|
|
3
3
|
import { XActionContext, XStoreModule } from '../../../store';
|
|
4
|
-
import { StatusMutations, StatusState } from '../../../store/utils/
|
|
4
|
+
import { StatusMutations, StatusState } from '../../../store/utils/status-store.utils';
|
|
5
5
|
import { IdentifierResultsConfig } from '../config.types';
|
|
6
6
|
/**
|
|
7
7
|
* IdentifierResults store state.
|