From 9017a64b1ce23c2b9355dc811bc04b8a636e7349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Garc=C3=ADa=20Gimeno?= <72435258+mgg709@users.noreply.github.com> Date: Wed, 13 Sep 2023 12:43:52 +0200 Subject: [PATCH 01/25] feat(xcontrols): add skeleton (#1278) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(xcontrols): added files for create skeleton Co-authored-by: Ana Fernández Ostio * fix(xcontrols): rename package + add skeleton Basic Skeleton added to some files that were empty Co-Authored-By: Matías García Gimeno <72435258+mgg709@users.noreply.github.com> Co-Authored-By: Ger-28 <88396130+Ger-28@users.noreply.github.com> --------- Co-authored-by: Ana Fernández Ostio Co-authored-by: Ana Fernández Ostio Co-authored-by: Ger-28 <88396130+Ger-28@users.noreply.github.com> --- packages/x-components/src/store/x.module.ts | 3 ++- .../experience-controls/config.types.ts | 9 ++++++++ .../experience-controls/events.type.ts | 6 ++++++ .../experience-controls/store/emitters.ts | 6 ++++++ .../experience-controls/store/module.ts | 6 ++++++ .../x-modules/experience-controls/wiring.ts | 8 +++++++ .../x-modules/experience-controls/x-module.ts | 21 +++++++++++++++++++ .../src/x-modules/x-modules.types.ts | 2 ++ 8 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 packages/x-components/src/x-modules/experience-controls/config.types.ts create mode 100644 packages/x-components/src/x-modules/experience-controls/events.type.ts create mode 100644 packages/x-components/src/x-modules/experience-controls/store/emitters.ts create mode 100644 packages/x-components/src/x-modules/experience-controls/store/module.ts create mode 100644 packages/x-components/src/x-modules/experience-controls/wiring.ts create mode 100644 packages/x-components/src/x-modules/experience-controls/x-module.ts diff --git a/packages/x-components/src/store/x.module.ts b/packages/x-components/src/store/x.module.ts index 32e6457873..f8e5aab97e 100644 --- a/packages/x-components/src/store/x.module.ts +++ b/packages/x-components/src/store/x.module.ts @@ -35,7 +35,8 @@ export const RootXStoreModule: Module = { searchBox: null, semanticQueries: null, tagging: null, - url: null + url: null, + experienceControls: null }), namespaced: true }; diff --git a/packages/x-components/src/x-modules/experience-controls/config.types.ts b/packages/x-components/src/x-modules/experience-controls/config.types.ts new file mode 100644 index 0000000000..6496f98667 --- /dev/null +++ b/packages/x-components/src/x-modules/experience-controls/config.types.ts @@ -0,0 +1,9 @@ +/** + * Configuration options. + * + * @public + */ +export interface ExperienceControlsConfig { + numberOfCarousels: number; + resultsPerCarousels: number; +} diff --git a/packages/x-components/src/x-modules/experience-controls/events.type.ts b/packages/x-components/src/x-modules/experience-controls/events.type.ts new file mode 100644 index 0000000000..19285e8f26 --- /dev/null +++ b/packages/x-components/src/x-modules/experience-controls/events.type.ts @@ -0,0 +1,6 @@ +/** + * Dictionary of the events of Experience Controls XModule. + * + * @public + */ +export interface ExperienceControlsXEvents {} diff --git a/packages/x-components/src/x-modules/experience-controls/store/emitters.ts b/packages/x-components/src/x-modules/experience-controls/store/emitters.ts new file mode 100644 index 0000000000..51b38775dd --- /dev/null +++ b/packages/x-components/src/x-modules/experience-controls/store/emitters.ts @@ -0,0 +1,6 @@ +/** + * {@link StoreEmitters} For the experience-controls module. + * + * @internal + */ +export const experienceControlsEmitters = {}; diff --git a/packages/x-components/src/x-modules/experience-controls/store/module.ts b/packages/x-components/src/x-modules/experience-controls/store/module.ts new file mode 100644 index 0000000000..99f837fc5e --- /dev/null +++ b/packages/x-components/src/x-modules/experience-controls/store/module.ts @@ -0,0 +1,6 @@ +/** + * {@link XStoreModule} For the empathize module. + * + * @internal + */ +export const experienceControlsXStoreModule: any = {}; diff --git a/packages/x-components/src/x-modules/experience-controls/wiring.ts b/packages/x-components/src/x-modules/experience-controls/wiring.ts new file mode 100644 index 0000000000..35652c6e2f --- /dev/null +++ b/packages/x-components/src/x-modules/experience-controls/wiring.ts @@ -0,0 +1,8 @@ +import { createWiring } from '../../wiring/wiring.utils'; + +/** + * Wiring configuration for the {@link ExperienceControlsXModule | experience-controls module}. + * + * @internal + */ +export const experienceControlsWiring = createWiring({}); diff --git a/packages/x-components/src/x-modules/experience-controls/x-module.ts b/packages/x-components/src/x-modules/experience-controls/x-module.ts new file mode 100644 index 0000000000..c2f3b84327 --- /dev/null +++ b/packages/x-components/src/x-modules/experience-controls/x-module.ts @@ -0,0 +1,21 @@ +import { XModule } from '../x-modules.types'; + +/** + * Search {@link XModule} alias. + * + * @public + */ +export type ExperienceControlsXModule = XModule; + +/** + * Search {@link XModule} implementation. This module is auto-registered as soon as you + * import any component from the `x-controls` entry point. + * + * @public + */ +export const experienceControlsXModule: ExperienceControlsXModule = { + name: 'experienceControls', + storeModule: {}, + storeEmitters: {}, + wiring: {} +}; diff --git a/packages/x-components/src/x-modules/x-modules.types.ts b/packages/x-components/src/x-modules/x-modules.types.ts index 1ce99a47f7..858ec432e5 100644 --- a/packages/x-components/src/x-modules/x-modules.types.ts +++ b/packages/x-components/src/x-modules/x-modules.types.ts @@ -19,6 +19,7 @@ import { SearchXModule } from './search/x-module'; import { SemanticQueriesXModule } from './semantic-queries/x-module'; import { TaggingXModule } from './tagging'; import { UrlXModule } from './url'; +import { ExperienceControlsXModule } from './experience-controls/x-module'; /** * Gives each {@link XModule} a name, that can be used to retrieve then its value. @@ -44,6 +45,7 @@ export interface XModulesTree { semanticQueries: SemanticQueriesXModule; tagging: TaggingXModule; url: UrlXModule; + experienceControls: ExperienceControlsXModule; } /** From 02f6f2d4bbd49d423a7b4f5abf1d2a6aa70440f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ana=20Fern=C3=A1ndez=20Ostio?= <79692213+AnaOstio@users.noreply.github.com> Date: Fri, 15 Sep 2023 11:20:36 +0200 Subject: [PATCH 02/25] feat(xcontrols): add store module (#1285) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit EMP-2056 --------- Co-authored-by: Matias Garcia Co-authored-by: Ana Fernández Ostio Co-authored-by: Matías García Gimeno <72435258+mgg709@users.noreply.github.com> Co-authored-by: Ger-28 <88396130+Ger-28@users.noreply.github.com> --- .../experience-controls/config.types.ts | 9 --- .../experience-controls/store/module.ts | 24 ++++++- .../experience-controls/store/types.ts | 70 +++++++++++++++++++ 3 files changed, 91 insertions(+), 12 deletions(-) delete mode 100644 packages/x-components/src/x-modules/experience-controls/config.types.ts create mode 100644 packages/x-components/src/x-modules/experience-controls/store/types.ts diff --git a/packages/x-components/src/x-modules/experience-controls/config.types.ts b/packages/x-components/src/x-modules/experience-controls/config.types.ts deleted file mode 100644 index 6496f98667..0000000000 --- a/packages/x-components/src/x-modules/experience-controls/config.types.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Configuration options. - * - * @public - */ -export interface ExperienceControlsConfig { - numberOfCarousels: number; - resultsPerCarousels: number; -} diff --git a/packages/x-components/src/x-modules/experience-controls/store/module.ts b/packages/x-components/src/x-modules/experience-controls/store/module.ts index 99f837fc5e..aabd4e488e 100644 --- a/packages/x-components/src/x-modules/experience-controls/store/module.ts +++ b/packages/x-components/src/x-modules/experience-controls/store/module.ts @@ -1,6 +1,24 @@ -/** - * {@link XStoreModule} For the empathize module. +import { ExperienceControlsXStoreModule } from './types'; + +/**. + * {@link XStoreModule} For the experience-controls module. * * @internal */ -export const experienceControlsXStoreModule: any = {}; +export const experienceControlsXStoreModule: ExperienceControlsXStoreModule = { + state: () => ({ + controls: {}, + events: {}, + status: 'initial' + }), + getters: {}, + mutations: { + setControls(state, controls) { + Object.assign(state.controls, controls); + }, + setEvents(state, events) { + Object.assign(state.events, events); + } + }, + actions: {} +}; diff --git a/packages/x-components/src/x-modules/experience-controls/store/types.ts b/packages/x-components/src/x-modules/experience-controls/store/types.ts new file mode 100644 index 0000000000..f5219fb5bb --- /dev/null +++ b/packages/x-components/src/x-modules/experience-controls/store/types.ts @@ -0,0 +1,70 @@ +import { Dictionary } from '@empathyco/x-utils'; +import { XEventsTypes } from '../../../wiring'; +import { XStoreModule } from '../../../store/store.types'; +import { StatusState, XActionContext } from '../../../store'; +/** + * Experience Controls store state. + * + * @public + */ +export interface ExperienceControlsState extends StatusState { + /** + * Configuration for the `ExperienceControls` module. + */ + controls: Dictionary; + events: Partial; +} + +/** + * Experience Controls store getters. + * + * @public + */ +export interface ExperienceControlsGetters {} + +/** + * Experience Controls store mutations. + * + * @public + */ +export interface ExperienceControlsMutations { + /** + * Sets the {@link ExperienceControlsState.controls} property. + * + * @param controls - The new {@link ExperienceControlsState.controls}. + */ + setControls(controls: Dictionary): void; + + /** + * Sets the {@link ExperienceControlsState.events} property. + * + * @param events - The new {@link ExperienceControlsState.events}. + */ + setEvents(events: Partial): void; +} + +export interface ExperienceControlsActions {} + +/** + * Experience Controls type safe store module. + * + * @public + */ +export type ExperienceControlsXStoreModule = XStoreModule< + ExperienceControlsState, + ExperienceControlsGetters, + ExperienceControlsMutations, + ExperienceControlsActions +>; + +/** + * Alias type for actions context of the {@link ExperienceControlsXStoreModule}. + * + * @public + */ +export type ExperienceControlsActionContext = XActionContext< + ExperienceControlsState, + ExperienceControlsGetters, + ExperienceControlsMutations, + ExperienceControlsActions +>; From 6534e8f4c90ce7830d1fdbe4af7a8162e46629a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Garc=C3=ADa=20Gimeno?= <72435258+mgg709@users.noreply.github.com> Date: Wed, 20 Sep 2023 11:46:23 +0200 Subject: [PATCH 03/25] feat(xcontrols): add actions (#1288) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit EMP-2056 --------- Co-authored-by: Ana Fernández Ostio Co-authored-by: Ana Fernández Ostio Co-authored-by: Ana Fernández Ostio <79692213+AnaOstio@users.noreply.github.com> --- .../x-components/src/wiring/events.types.ts | 2 + .../{events.type.ts => events.types.ts} | 0 .../actions/fetch-and-save-controls.action.ts | 31 ++++++++++++++++ .../store/actions/fetch-controls.action.ts | 37 +++++++++++++++++++ .../experience-controls/store/emitters.ts | 7 +++- .../experience-controls/store/module.ts | 13 ++++++- .../experience-controls/store/types.ts | 25 ++++++++++++- .../x-modules/experience-controls/wiring.ts | 23 +++++++++++- .../x-modules/experience-controls/x-module.ts | 12 ++++-- 9 files changed, 140 insertions(+), 10 deletions(-) rename packages/x-components/src/x-modules/experience-controls/{events.type.ts => events.types.ts} (100%) create mode 100644 packages/x-components/src/x-modules/experience-controls/store/actions/fetch-and-save-controls.action.ts create mode 100644 packages/x-components/src/x-modules/experience-controls/store/actions/fetch-controls.action.ts diff --git a/packages/x-components/src/wiring/events.types.ts b/packages/x-components/src/wiring/events.types.ts index e607bb17fa..2cb50ce9ae 100644 --- a/packages/x-components/src/wiring/events.types.ts +++ b/packages/x-components/src/wiring/events.types.ts @@ -20,6 +20,7 @@ import { TaggingXEvents } from '../x-modules/tagging/events.types'; import { UrlXEvents } from '../x-modules/url/events.types'; import { XModuleName } from '../x-modules/x-modules.types'; import { SemanticQueriesXEvents } from '../x-modules/semantic-queries/events.types'; +import { ExperienceControlsXEvents } from '../x-modules/experience-controls/events.types'; import { WireMetadata } from './wiring.types'; /* eslint-disable max-len */ /**. @@ -70,6 +71,7 @@ export interface XEventsTypes SearchXEvents, SemanticQueriesXEvents, TaggingXEvents, + ExperienceControlsXEvents, UrlXEvents { /** * The provided number of columns of a grid has changed. diff --git a/packages/x-components/src/x-modules/experience-controls/events.type.ts b/packages/x-components/src/x-modules/experience-controls/events.types.ts similarity index 100% rename from packages/x-components/src/x-modules/experience-controls/events.type.ts rename to packages/x-components/src/x-modules/experience-controls/events.types.ts diff --git a/packages/x-components/src/x-modules/experience-controls/store/actions/fetch-and-save-controls.action.ts b/packages/x-components/src/x-modules/experience-controls/store/actions/fetch-and-save-controls.action.ts new file mode 100644 index 0000000000..3d1e99e8a8 --- /dev/null +++ b/packages/x-components/src/x-modules/experience-controls/store/actions/fetch-and-save-controls.action.ts @@ -0,0 +1,31 @@ +import { createFetchAndSaveActions } from '../../../../store/utils/fetch-and-save-action.utils'; +import { ExperienceControlsActionContext } from '../types'; + +const { fetchAndSave, cancelPrevious } = createFetchAndSaveActions< + ExperienceControlsActionContext, + //TODO: change types when the adapter is updated + any, + any +>({ + fetch({ dispatch }, request) { + return dispatch('fetchExperienceControlsResponse', request); + }, + onSuccess({ commit }, experienceControlsResponse) { + commit('setControls', experienceControlsResponse.controls); + commit('setEvents', experienceControlsResponse.events); + } +}); + +/** + * Default implementation for {@link ExperienceControlsActions.fetchAndSaveControls} action. + * + * @public + */ +export const fetchAndSaveExperienceControlsResponse = fetchAndSave; + +/** + * Default implementation for {@link ExperienceControlsActions.cancelFetchAndSaveControls} action. + * + * @public + */ +export const cancelFetchAndSaveControls = cancelPrevious; diff --git a/packages/x-components/src/x-modules/experience-controls/store/actions/fetch-controls.action.ts b/packages/x-components/src/x-modules/experience-controls/store/actions/fetch-controls.action.ts new file mode 100644 index 0000000000..0c33b468a3 --- /dev/null +++ b/packages/x-components/src/x-modules/experience-controls/store/actions/fetch-controls.action.ts @@ -0,0 +1,37 @@ +import { ExperienceControlsXStoreModule } from '../types'; + +/** + * Default implementation for the {@link ExperienceControlsActions.fetchControls}. + * + * @param _context - The {@link https://vuex.vuejs.org/guide/actions.html | context} of the actions, + * provided by Vuex. + * TODO: update when adapter is updateds. + * @param request + * @returns + * + * @public + */ + +// eslint-disable-next-line max-len +export const fetchExperienceControlsResponse: ExperienceControlsXStoreModule['actions']['fetchExperienceControlsResponse'] = + async () => { + const response = await fetch( + // eslint-disable-next-line max-len + 'https://config-service.internal.test.empathy.co/public/configs?service=xcontrols&instance=empathy' + ); + + if (response.ok) { + const controls = await response.json(); + + const aux = { + controls, + events: {} + }; + + return aux; + } else { + throw new Error('Failed to fetch data'); + } + + //return XPlugin.adapter.experienceControls(request).then(({ controls }) => controls); + }; diff --git a/packages/x-components/src/x-modules/experience-controls/store/emitters.ts b/packages/x-components/src/x-modules/experience-controls/store/emitters.ts index 51b38775dd..48c6c3a9a2 100644 --- a/packages/x-components/src/x-modules/experience-controls/store/emitters.ts +++ b/packages/x-components/src/x-modules/experience-controls/store/emitters.ts @@ -1,6 +1,9 @@ +import { createStoreEmitters } from '../../../store'; +import { experienceControlsXStoreModule } from './module'; + /** - * {@link StoreEmitters} For the experience-controls module. + * {@link StoreEmitters} For the {@link ExperienceControlsXModule}. * * @internal */ -export const experienceControlsEmitters = {}; +export const experienceControlsEmitters = createStoreEmitters(experienceControlsXStoreModule, {}); diff --git a/packages/x-components/src/x-modules/experience-controls/store/module.ts b/packages/x-components/src/x-modules/experience-controls/store/module.ts index aabd4e488e..a24956acec 100644 --- a/packages/x-components/src/x-modules/experience-controls/store/module.ts +++ b/packages/x-components/src/x-modules/experience-controls/store/module.ts @@ -1,3 +1,5 @@ +import { fetchAndSaveExperienceControlsResponse } from './actions/fetch-and-save-controls.action'; +import { fetchExperienceControlsResponse } from './actions/fetch-controls.action'; import { ExperienceControlsXStoreModule } from './types'; /**. @@ -9,7 +11,8 @@ export const experienceControlsXStoreModule: ExperienceControlsXStoreModule = { state: () => ({ controls: {}, events: {}, - status: 'initial' + status: 'initial', + params: {} }), getters: {}, mutations: { @@ -18,7 +21,13 @@ export const experienceControlsXStoreModule: ExperienceControlsXStoreModule = { }, setEvents(state, events) { Object.assign(state.events, events); + }, + setParams(state, params) { + state.params = params; } }, - actions: {} + actions: { + fetchExperienceControlsResponse, + fetchAndSaveExperienceControlsResponse + } }; diff --git a/packages/x-components/src/x-modules/experience-controls/store/types.ts b/packages/x-components/src/x-modules/experience-controls/store/types.ts index f5219fb5bb..05f30e7dd6 100644 --- a/packages/x-components/src/x-modules/experience-controls/store/types.ts +++ b/packages/x-components/src/x-modules/experience-controls/store/types.ts @@ -13,6 +13,7 @@ export interface ExperienceControlsState extends StatusState { */ controls: Dictionary; events: Partial; + params: Dictionary; } /** @@ -41,9 +42,31 @@ export interface ExperienceControlsMutations { * @param events - The new {@link ExperienceControlsState.events}. */ setEvents(events: Partial): void; + /** + * Sets the extra params of the module. + * + * @param params - The new extra params. + */ + setParams(params: Dictionary): void; } -export interface ExperienceControlsActions {} +export interface ExperienceControlsActions { + /**. + * Fetches the {@link ExperienceControlsState.controls} property. + * + * TODO: change 'any' type + * + * @param request - The request to fetch the {@link ExperienceControlsState.controls}. + * @returns A promise of the {@link ExperienceControlsState.controls}. + */ + fetchExperienceControlsResponse(request: any): Promise<{ [key: string]: unknown }>; + + /** + * Fetches and saves the {@link ExperienceControlsState.controls} property. + * TODO: change 'any' type. + */ + fetchAndSaveExperienceControlsResponse(request: any): void; +} /** * Experience Controls type safe store module. diff --git a/packages/x-components/src/x-modules/experience-controls/wiring.ts b/packages/x-components/src/x-modules/experience-controls/wiring.ts index 35652c6e2f..45af5f3440 100644 --- a/packages/x-components/src/x-modules/experience-controls/wiring.ts +++ b/packages/x-components/src/x-modules/experience-controls/wiring.ts @@ -1,8 +1,29 @@ +import { namespacedWireCommit } from '../../wiring'; import { createWiring } from '../../wiring/wiring.utils'; +const moduleName = 'experienceControls'; + +/** + * WireCommit for {@link SemanticQueriesXModule}. + * + * @internal + */ +const wireCommit = namespacedWireCommit(moduleName); + +/** + * WireCommit for {@link ExperienceControlsXModule}. + * + * @internal + */ +export const setParamsWire = wireCommit('setParams'); + /** * Wiring configuration for the {@link ExperienceControlsXModule | experience-controls module}. * * @internal */ -export const experienceControlsWiring = createWiring({}); +export const experienceControlsWiring = createWiring({ + ExtraParamsChanged: { + setParamsWire + } +}); diff --git a/packages/x-components/src/x-modules/experience-controls/x-module.ts b/packages/x-components/src/x-modules/experience-controls/x-module.ts index c2f3b84327..6a75f46eb1 100644 --- a/packages/x-components/src/x-modules/experience-controls/x-module.ts +++ b/packages/x-components/src/x-modules/experience-controls/x-module.ts @@ -1,11 +1,15 @@ import { XModule } from '../x-modules.types'; +import { experienceControlsEmitters } from './store/emitters'; +import { experienceControlsXStoreModule } from './store/module'; +import { ExperienceControlsXStoreModule } from './store/types'; +import { experienceControlsWiring } from './wiring'; /** * Search {@link XModule} alias. * * @public */ -export type ExperienceControlsXModule = XModule; +export type ExperienceControlsXModule = XModule; /** * Search {@link XModule} implementation. This module is auto-registered as soon as you @@ -15,7 +19,7 @@ export type ExperienceControlsXModule = XModule; */ export const experienceControlsXModule: ExperienceControlsXModule = { name: 'experienceControls', - storeModule: {}, - storeEmitters: {}, - wiring: {} + storeModule: experienceControlsXStoreModule, + storeEmitters: experienceControlsEmitters, + wiring: experienceControlsWiring }; From b52ff8c4758f45af9c3197ebacda58b87750f901 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Garc=C3=ADa=20Gimeno?= <72435258+mgg709@users.noreply.github.com> Date: Wed, 20 Sep 2023 15:48:28 +0200 Subject: [PATCH 04/25] feat(xcontrols): add emitter (#1290) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit EMP-2064 --------- Co-authored-by: Ana Fernández Ostio Co-authored-by: Ana Fernández Ostio Co-authored-by: Ana Fernández Ostio <79692213+AnaOstio@users.noreply.github.com> --- .../src/x-modules/experience-controls/events.types.ts | 6 +++++- .../src/x-modules/experience-controls/store/emitters.ts | 6 +++++- .../src/x-modules/experience-controls/store/types.ts | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/x-components/src/x-modules/experience-controls/events.types.ts b/packages/x-components/src/x-modules/experience-controls/events.types.ts index 19285e8f26..25c45adf3c 100644 --- a/packages/x-components/src/x-modules/experience-controls/events.types.ts +++ b/packages/x-components/src/x-modules/experience-controls/events.types.ts @@ -1,6 +1,10 @@ +import { XEventsTypes } from '../../wiring'; /** * Dictionary of the events of Experience Controls XModule. * * @public */ -export interface ExperienceControlsXEvents {} + +export interface ExperienceControlsXEvents { + ExperienceControlsEventsChanged: Partial; +} diff --git a/packages/x-components/src/x-modules/experience-controls/store/emitters.ts b/packages/x-components/src/x-modules/experience-controls/store/emitters.ts index 48c6c3a9a2..e16fe1cc58 100644 --- a/packages/x-components/src/x-modules/experience-controls/store/emitters.ts +++ b/packages/x-components/src/x-modules/experience-controls/store/emitters.ts @@ -6,4 +6,8 @@ import { experienceControlsXStoreModule } from './module'; * * @internal */ -export const experienceControlsEmitters = createStoreEmitters(experienceControlsXStoreModule, {}); +export const experienceControlsEmitters = createStoreEmitters(experienceControlsXStoreModule, { + ExperienceControlsEventsChanged: { + selector: state => state.events + } +}); diff --git a/packages/x-components/src/x-modules/experience-controls/store/types.ts b/packages/x-components/src/x-modules/experience-controls/store/types.ts index 05f30e7dd6..84ab6cd0ec 100644 --- a/packages/x-components/src/x-modules/experience-controls/store/types.ts +++ b/packages/x-components/src/x-modules/experience-controls/store/types.ts @@ -42,6 +42,7 @@ export interface ExperienceControlsMutations { * @param events - The new {@link ExperienceControlsState.events}. */ setEvents(events: Partial): void; + /** * Sets the extra params of the module. * From 3844630ef4b3ddfe1501b51f696cff6646c969e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ana=20Fern=C3=A1ndez=20Ostio?= <79692213+AnaOstio@users.noreply.github.com> Date: Fri, 22 Sep 2023 11:54:11 +0200 Subject: [PATCH 05/25] feat(xcontrols): add experience-controls component (#1297) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit EMP-2056 --------- Signed-off-by: dependabot[bot] Co-authored-by: Matias Garcia Co-authored-by: Ana Fernández Ostio Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Matías García Gimeno <72435258+mgg709@users.noreply.github.com> Co-authored-by: Guillermo Cacheda Co-authored-by: empathy/x Co-authored-by: acondal Co-authored-by: mariorey Co-authored-by: Gerardo Vázquez Co-authored-by: lauramargar <114984466+lauramargar@users.noreply.github.com> Co-authored-by: Ger-28 <88396130+Ger-28@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/build.yml | 2 +- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/edocs-dynamic-sync.yml | 2 +- .github/workflows/prepare-release.yml | 2 +- .github/workflows/publish-release.yml | 2 +- .github/workflows/release-alpha.yml | 2 +- packages/deep-merge/CHANGELOG.md | 8 + packages/deep-merge/package.json | 4 +- packages/react-wrapper/CHANGELOG.md | 8 + packages/react-wrapper/package.json | 4 +- packages/x-adapter-platform/CHANGELOG.md | 8 + packages/x-adapter-platform/package.json | 8 +- packages/x-adapter/CHANGELOG.md | 8 + packages/x-adapter/package.json | 6 +- packages/x-archetype-utils/CHANGELOG.md | 8 + packages/x-archetype-utils/package.json | 6 +- packages/x-bus/CHANGELOG.md | 8 + packages/x-bus/package.json | 6 +- packages/x-components/CHANGELOG.md | 67 +++ packages/x-components/package.json | 18 +- .../semantic-queries-stubs.factory.ts | 2 +- .../base-column-picker-dropdown.vue | 6 +- .../column-picker/base-column-picker-list.vue | 10 +- .../x-components/src/plugins/x-emitters.ts | 4 +- .../src/store/utils/store-emitters.utils.ts | 6 +- packages/x-components/src/views/home/Home.vue | 47 +- .../src/x-installer/api/api.types.ts | 15 +- .../components/experience-controls.vue | 56 ++ .../experience-controls/events.types.ts | 1 + .../x-modules/experience-controls/wiring.ts | 2 +- .../src/x-modules/facets/wiring.ts | 44 +- .../src/x-modules/history-queries/wiring.ts | 25 + .../x-modules/identifier-results/wiring.ts | 14 + .../src/x-modules/next-queries/wiring.ts | 24 + .../src/x-modules/popular-searches/wiring.ts | 2 +- .../__tests__/query-preview-button.spec.ts | 144 ++++++ .../__tests__/query-preview-list.spec.ts | 17 +- .../__tests__/query-preview.spec.ts | 284 ++++++----- .../queries-preview/components/index.ts | 1 + .../components/query-preview-button.vue | 154 ++++++ .../components/query-preview-list.vue | 72 ++- .../components/query-preview.vue | 72 ++- .../x-modules/queries-preview/events.types.ts | 14 + .../queries-preview/store/emitters.ts | 8 +- .../x-modules/queries-preview/store/module.ts | 8 + .../x-modules/queries-preview/store/types.ts | 29 ++ .../src/x-modules/queries-preview/wiring.ts | 29 ++ .../src/x-modules/query-suggestions/wiring.ts | 27 + .../src/x-modules/related-tags/wiring.ts | 28 + .../scroll/components/main-scroll-item.vue | 6 +- .../src/x-modules/search-box/wiring.ts | 11 + .../src/x-modules/search/store/types.ts | 4 +- .../src/x-modules/search/wiring.ts | 41 ++ .../src/x-modules/semantic-queries/wiring.ts | 2 +- .../x-components/src/x-modules/url/wiring.ts | 36 ++ .../recommendations.md | 103 ++-- .../tests/e2e/extra-params.feature | 8 +- .../x-components/tests/e2e/scroll.feature | 2 +- .../tests/e2e/scroll/scroll.spec.ts | 14 +- .../tests/unit/main-scroll.spec.ts | 24 +- packages/x-priority-queue/CHANGELOG.md | 8 + packages/x-priority-queue/package.json | 4 +- packages/x-tailwindcss/CHANGELOG.md | 8 + packages/x-tailwindcss/package.json | 6 +- packages/x-translations/CHANGELOG.md | 8 + packages/x-translations/package.json | 4 +- packages/x-types/CHANGELOG.md | 8 + packages/x-types/package.json | 4 +- packages/x-utils/CHANGELOG.md | 9 + packages/x-utils/package.json | 2 +- packages/x-utils/src/__tests__/object.spec.ts | 27 + packages/x-utils/src/object.ts | 35 ++ pnpm-lock.yaml | 477 +++++++++++++++--- 73 files changed, 1772 insertions(+), 403 deletions(-) create mode 100644 packages/x-components/src/x-modules/experience-controls/components/experience-controls.vue create mode 100644 packages/x-components/src/x-modules/queries-preview/components/__tests__/query-preview-button.spec.ts create mode 100644 packages/x-components/src/x-modules/queries-preview/components/query-preview-button.vue diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 846b2d0d59..d2f550f171 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ jobs: steps: - name: checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 persist-credentials: false diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index e43599a8d6..960d51d287 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -25,7 +25,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/edocs-dynamic-sync.yml b/.github/workflows/edocs-dynamic-sync.yml index bc7d96cad4..8244cf31f3 100644 --- a/.github/workflows/edocs-dynamic-sync.yml +++ b/.github/workflows/edocs-dynamic-sync.yml @@ -5,7 +5,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout X mono-repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Get X Components Version diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 81aa4323b5..2e3c044607 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -9,7 +9,7 @@ jobs: options: --user 1001 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 93ee1eb22d..ee741591f3 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -13,7 +13,7 @@ jobs: options: --user 1001 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 persist-credentials: false diff --git a/.github/workflows/release-alpha.yml b/.github/workflows/release-alpha.yml index 0264dbbf6f..473a3cf2c3 100644 --- a/.github/workflows/release-alpha.yml +++ b/.github/workflows/release-alpha.yml @@ -10,7 +10,7 @@ jobs: steps: - name: checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 persist-credentials: false diff --git a/packages/deep-merge/CHANGELOG.md b/packages/deep-merge/CHANGELOG.md index 0632343992..95aca5b2c1 100644 --- a/packages/deep-merge/CHANGELOG.md +++ b/packages/deep-merge/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.0.0-alpha.3](https://github.com/empathyco/x/compare/@empathyco/x-deep-merge@2.0.0-alpha.2...@empathyco/x-deep-merge@2.0.0-alpha.3) (2023-09-18) + +**Note:** Version bump only for package @empathyco/x-deep-merge + + + + + ## [2.0.0-alpha.2](https://github.com/empathyco/x/compare/@empathyco/x-deep-merge@2.0.0-alpha.1...@empathyco/x-deep-merge@2.0.0-alpha.2) (2023-06-27) **Note:** Version bump only for package @empathyco/x-deep-merge diff --git a/packages/deep-merge/package.json b/packages/deep-merge/package.json index 12aa299c5d..ca8c0daeff 100644 --- a/packages/deep-merge/package.json +++ b/packages/deep-merge/package.json @@ -1,6 +1,6 @@ { "name": "@empathyco/x-deep-merge", - "version": "2.0.0-alpha.2", + "version": "2.0.0-alpha.3", "description": "Utility for deep cloning objects.", "author": "Empathy Systems Corporation S.L.", "license": "Apache-2.0", @@ -38,7 +38,7 @@ "test-unit": "jest" }, "dependencies": { - "@empathyco/x-utils": "^1.0.0-alpha.22", + "@empathyco/x-utils": "^1.0.0-alpha.23", "tslib": "~2.5.0" }, "devDependencies": { diff --git a/packages/react-wrapper/CHANGELOG.md b/packages/react-wrapper/CHANGELOG.md index f9a9ba6264..3fb609234f 100644 --- a/packages/react-wrapper/CHANGELOG.md +++ b/packages/react-wrapper/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [4.0.0-alpha.31](https://github.com/empathyco/x/compare/@empathyco/x-react-wrapper@4.0.0-alpha.30...@empathyco/x-react-wrapper@4.0.0-alpha.31) (2023-09-22) + +**Note:** Version bump only for package @empathyco/x-react-wrapper + + + + + ## [4.0.0-alpha.30](https://github.com/empathyco/x/compare/@empathyco/x-react-wrapper@4.0.0-alpha.29...@empathyco/x-react-wrapper@4.0.0-alpha.30) (2023-06-07) **Note:** Version bump only for package @empathyco/x-react-wrapper diff --git a/packages/react-wrapper/package.json b/packages/react-wrapper/package.json index 1760ff973e..f60d47719f 100644 --- a/packages/react-wrapper/package.json +++ b/packages/react-wrapper/package.json @@ -1,6 +1,6 @@ { "name": "@empathyco/x-react-wrapper", - "version": "4.0.0-alpha.30", + "version": "4.0.0-alpha.31", "description": "A proxy that transforms Vue components into React ones", "author": "Empathy Systems Corporation S.L.", "license": "Apache-2.0", @@ -49,7 +49,7 @@ "@types/jest": "~27.5.0", "@types/react": "~16.9.0", "@types/react-dom": "~16.9.0", - "cypress": "~12.13.0", + "cypress": "~13.2.0", "eslint-plugin-react": "~7.32.1", "jest": "~27.5.0", "react": "~16.9.0", diff --git a/packages/x-adapter-platform/CHANGELOG.md b/packages/x-adapter-platform/CHANGELOG.md index e2fce6a73e..0e5bce1fe7 100644 --- a/packages/x-adapter-platform/CHANGELOG.md +++ b/packages/x-adapter-platform/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.0.0-alpha.85](https://github.com/empathyco/x/compare/@empathyco/x-adapter-platform@1.0.0-alpha.84...@empathyco/x-adapter-platform@1.0.0-alpha.85) (2023-09-18) + +**Note:** Version bump only for package @empathyco/x-adapter-platform + + + + + ## [1.0.0-alpha.84](https://github.com/empathyco/x/compare/@empathyco/x-adapter-platform@1.0.0-alpha.83...@empathyco/x-adapter-platform@1.0.0-alpha.84) (2023-09-07) diff --git a/packages/x-adapter-platform/package.json b/packages/x-adapter-platform/package.json index 5b3c0f0f38..ec68719ee5 100644 --- a/packages/x-adapter-platform/package.json +++ b/packages/x-adapter-platform/package.json @@ -1,6 +1,6 @@ { "name": "@empathyco/x-adapter-platform", - "version": "1.0.0-alpha.84", + "version": "1.0.0-alpha.85", "description": "A search client for the Empathy Platform API", "author": "Empathy Systems Corporation S.L.", "license": "Apache-2.0", @@ -41,9 +41,9 @@ "prepublishOnly": "pnpm run build" }, "dependencies": { - "@empathyco/x-adapter": "^8.0.0-alpha.33", - "@empathyco/x-types": "^10.0.0-alpha.72", - "@empathyco/x-utils": "^1.0.0-alpha.22", + "@empathyco/x-adapter": "^8.0.0-alpha.34", + "@empathyco/x-types": "^10.0.0-alpha.73", + "@empathyco/x-utils": "^1.0.0-alpha.23", "tslib": "~2.5.0" }, "devDependencies": { diff --git a/packages/x-adapter/CHANGELOG.md b/packages/x-adapter/CHANGELOG.md index ad88201fae..42bba3e4e9 100644 --- a/packages/x-adapter/CHANGELOG.md +++ b/packages/x-adapter/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [8.0.0-alpha.34](https://github.com/empathyco/x/compare/@empathyco/x-adapter@8.0.0-alpha.33...@empathyco/x-adapter@8.0.0-alpha.34) (2023-09-18) + +**Note:** Version bump only for package @empathyco/x-adapter + + + + + ## [8.0.0-alpha.33](https://github.com/empathyco/x/compare/@empathyco/x-adapter@8.0.0-alpha.32...@empathyco/x-adapter@8.0.0-alpha.33) (2023-08-02) diff --git a/packages/x-adapter/package.json b/packages/x-adapter/package.json index b1cfaf9e30..8d8a171021 100644 --- a/packages/x-adapter/package.json +++ b/packages/x-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@empathyco/x-adapter", - "version": "8.0.0-alpha.33", + "version": "8.0.0-alpha.34", "description": "A utils library to create a client for any API", "author": "Empathy Systems Corporation S.L.", "license": "Apache-2.0", @@ -37,8 +37,8 @@ "prepublishOnly": "pnpm run build" }, "dependencies": { - "@empathyco/x-deep-merge": "^2.0.0-alpha.2", - "@empathyco/x-utils": "^1.0.0-alpha.22", + "@empathyco/x-deep-merge": "^2.0.0-alpha.3", + "@empathyco/x-utils": "^1.0.0-alpha.23", "tslib": "~2.5.0" }, "devDependencies": { diff --git a/packages/x-archetype-utils/CHANGELOG.md b/packages/x-archetype-utils/CHANGELOG.md index 861f0618c4..635eb8273c 100644 --- a/packages/x-archetype-utils/CHANGELOG.md +++ b/packages/x-archetype-utils/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.0.0-alpha.4](https://github.com/empathyco/x/compare/@empathyco/x-archetype-utils@1.0.0-alpha.3...@empathyco/x-archetype-utils@1.0.0-alpha.4) (2023-09-18) + +**Note:** Version bump only for package @empathyco/x-archetype-utils + + + + + ## [1.0.0-alpha.3](https://github.com/empathyco/x/compare/@empathyco/x-archetype-utils@1.0.0-alpha.2...@empathyco/x-archetype-utils@1.0.0-alpha.3) (2023-08-09) diff --git a/packages/x-archetype-utils/package.json b/packages/x-archetype-utils/package.json index 4ab3012c96..b794828229 100644 --- a/packages/x-archetype-utils/package.json +++ b/packages/x-archetype-utils/package.json @@ -1,6 +1,6 @@ { "name": "@empathyco/x-archetype-utils", - "version": "1.0.0-alpha.3", + "version": "1.0.0-alpha.4", "description": "Utilities for x-archetype", "author": "Empathy Systems Corporation S.L.", "license": "Apache-2.0", @@ -36,12 +36,12 @@ "prepublishOnly": "pnpm run build" }, "dependencies": { - "@empathyco/x-deep-merge": "^2.0.0-alpha.2", + "@empathyco/x-deep-merge": "^2.0.0-alpha.3", "tslib": "~2.5.0", "vue-i18n": "~8.28.2" }, "devDependencies": { - "@empathyco/x-utils": "^1.0.0-alpha.22", + "@empathyco/x-utils": "^1.0.0-alpha.23", "@types/jest": "~27.5.0", "@types/node": "~18.16.0", "@vue/test-utils": "~1.0.3", diff --git a/packages/x-bus/CHANGELOG.md b/packages/x-bus/CHANGELOG.md index 8fd9956165..a787b193e0 100644 --- a/packages/x-bus/CHANGELOG.md +++ b/packages/x-bus/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.0.0-alpha.4](https://github.com/empathyco/x/compare/@empathyco/x-bus@1.0.0-alpha.3...@empathyco/x-bus@1.0.0-alpha.4) (2023-09-18) + +**Note:** Version bump only for package @empathyco/x-bus + + + + + ## [1.0.0-alpha.3](https://github.com/empathyco/x/compare/@empathyco/x-bus@1.0.0-alpha.2...@empathyco/x-bus@1.0.0-alpha.3) (2023-06-27) **Note:** Version bump only for package @empathyco/x-bus diff --git a/packages/x-bus/package.json b/packages/x-bus/package.json index 5b4207e7d0..d7b9656d58 100644 --- a/packages/x-bus/package.json +++ b/packages/x-bus/package.json @@ -1,6 +1,6 @@ { "name": "@empathyco/x-bus", - "version": "1.0.0-alpha.3", + "version": "1.0.0-alpha.4", "description": "Event bus to help with events orchestration", "author": "Empathy Systems Corporation S.L.", "homepage": "https://github.com/empathyco/x/tree/main/packages/x-bus#readme", @@ -39,8 +39,8 @@ "url": "https://github.com/empathyco/x/issues" }, "dependencies": { - "@empathyco/x-priority-queue": "^1.0.0-alpha.3", - "@empathyco/x-utils": "^1.0.0-alpha.22", + "@empathyco/x-priority-queue": "^1.0.0-alpha.4", + "@empathyco/x-utils": "^1.0.0-alpha.23", "rxjs": "~7.8.0", "tslib": "~2.5.0" }, diff --git a/packages/x-components/CHANGELOG.md b/packages/x-components/CHANGELOG.md index ea8c4fa9f0..c6438e0ec8 100644 --- a/packages/x-components/CHANGELOG.md +++ b/packages/x-components/CHANGELOG.md @@ -3,6 +3,73 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.0.0-alpha.414](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.413...@empathyco/x-components@3.0.0-alpha.414) (2023-09-22) + + +### Features + +* filter query preview (#1296) ([9543c47](https://github.com/empathyco/x/commit/9543c477cd8a305fd89edb9b24d046c774537c9b)) + + +### Documentation + +* **components:** fix column picker vue examples (#1293) ([fa0e817](https://github.com/empathyco/x/commit/fa0e817402261a5e7bddc9af6438ef0b3d1c7448)) + + + +## [3.0.0-alpha.413](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.412...@empathyco/x-components@3.0.0-alpha.413) (2023-09-20) + + +### Features + +* add filters to the query preview request (#1292) ([7f20022](https://github.com/empathyco/x/commit/7f20022eee593460681bfb1c4d574162f325cc05)) +* **query-preview:** use deep equal to compare request (#1291) ([cf3c3e7](https://github.com/empathyco/x/commit/cf3c3e7c738d8b2281183c42f00048b3bff918ea)) + + + +## [3.0.0-alpha.412](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.411...@empathyco/x-components@3.0.0-alpha.412) (2023-09-18) + +**Note:** Version bump only for package @empathyco/x-components + + + + + +## [3.0.0-alpha.411](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.410...@empathyco/x-components@3.0.0-alpha.411) (2023-09-18) + +**Note:** Version bump only for package @empathyco/x-components + + + + + +## [3.0.0-alpha.410](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.409...@empathyco/x-components@3.0.0-alpha.410) (2023-09-15) + +### ⚠ BREAKING CHANGES + +- **queries-preview**: the `QueryPreviewList` component `queries` prop has changed name to + `queriesPreviewInfo` and the type is an array of `QueryPreviewInfo` as instead of an array of + strings. The QueryPreview component `query` prop has changed name to `queryPreviewInfo` and the + type is `QueryPreviewInfo` instead of `string`. `QueryPreviewInfo` type is now exported from + the module. + +EMP-1555 + +### Features + +* **queries-preview**: query preview components allow adding extra params to the request (#1270) ([84143a2](https://github.com/empathyco/x/commit/84143a2b1ee1b9944ddb431f701b3d27d1c20410)) + + + +## [3.0.0-alpha.409](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.408...@empathyco/x-components@3.0.0-alpha.409) (2023-09-15) + + +### Features + +* **scroll:** add top offset when automatically scrolling to main-scroll-item (#1277) ([42dc680](https://github.com/empathyco/x/commit/42dc680e3ee3af4ccda6454d967da0750d2bba7e)) + + + ## [3.0.0-alpha.408](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.407...@empathyco/x-components@3.0.0-alpha.408) (2023-09-12) diff --git a/packages/x-components/package.json b/packages/x-components/package.json index 3881792e98..9a50c3a962 100644 --- a/packages/x-components/package.json +++ b/packages/x-components/package.json @@ -1,6 +1,6 @@ { "name": "@empathyco/x-components", - "version": "3.0.0-alpha.408", + "version": "3.0.0-alpha.414", "description": "Empathy X Components", "author": "Empathy Systems Corporation S.L.", "license": "Apache-2.0", @@ -67,14 +67,14 @@ "prepublishOnly": "pnpm run build" }, "dependencies": { - "@empathyco/x-adapter": "^8.0.0-alpha.33", - "@empathyco/x-adapter-platform": "^1.0.0-alpha.84", - "@empathyco/x-bus": "^1.0.0-alpha.3", - "@empathyco/x-deep-merge": "^2.0.0-alpha.2", + "@empathyco/x-adapter": "^8.0.0-alpha.34", + "@empathyco/x-adapter-platform": "^1.0.0-alpha.85", + "@empathyco/x-bus": "^1.0.0-alpha.4", + "@empathyco/x-deep-merge": "^2.0.0-alpha.3", "@empathyco/x-logger": "^1.2.0-alpha.11", "@empathyco/x-storage-service": "^2.0.0-alpha.15", - "@empathyco/x-types": "^10.0.0-alpha.72", - "@empathyco/x-utils": "^1.0.0-alpha.22", + "@empathyco/x-types": "^10.0.0-alpha.73", + "@empathyco/x-utils": "^1.0.0-alpha.23", "@vue/devtools-api": "~6.5.0", "@vueuse/core": "~10.1.0", "rxjs": "~7.8.0", @@ -92,7 +92,7 @@ "@badeball/cypress-cucumber-preprocessor": "~17.2.0", "@bahmutov/cypress-esbuild-preprocessor": "~2.2.0", "@cypress/vue2": "~2.0.1", - "@empathyco/x-tailwindcss": "^1.0.0-alpha.34", + "@empathyco/x-tailwindcss": "^1.0.0-alpha.35", "@microsoft/api-documenter": "~7.22.0", "@microsoft/api-extractor": "~7.35.0", "@rollup/plugin-commonjs": "~25.0.0", @@ -110,7 +110,7 @@ "@vue/vue2-jest": "~27.0.0-alpha.3", "autoprefixer": "~10.4.4", "convert-source-map": "~2.0.0", - "cypress": "~12.13.0", + "cypress": "~13.2.0", "esbuild": "0.17.19", "glob": "~10.2.0", "jest": "~27.5.0", diff --git a/packages/x-components/src/__stubs__/semantic-queries-stubs.factory.ts b/packages/x-components/src/__stubs__/semantic-queries-stubs.factory.ts index 0ca0767968..facc2ad981 100644 --- a/packages/x-components/src/__stubs__/semantic-queries-stubs.factory.ts +++ b/packages/x-components/src/__stubs__/semantic-queries-stubs.factory.ts @@ -1,6 +1,6 @@ import { deepMerge } from '@empathyco/x-deep-merge'; import { SemanticQueriesResponse, SemanticQuery } from '@empathyco/x-types'; -import { DeepPartial } from '@empathyco/x-utils/src/types/utils.types'; +import { DeepPartial } from '@empathyco/x-utils'; /** * Creates a {@link SemanticQuery} stub with the provided options. diff --git a/packages/x-components/src/components/column-picker/base-column-picker-dropdown.vue b/packages/x-components/src/components/column-picker/base-column-picker-dropdown.vue index 1f0d43b2b4..666a576fd4 100644 --- a/packages/x-components/src/components/column-picker/base-column-picker-dropdown.vue +++ b/packages/x-components/src/components/column-picker/base-column-picker-dropdown.vue @@ -97,7 +97,7 @@ unlike the `toggle`, which renders the same `item` slot defined by default. #### Default usage -```vue +```vue live