diff --git a/packages/_vue3-migration-test/CHANGELOG.md b/packages/_vue3-migration-test/CHANGELOG.md index 40f1070722..e69c232e63 100644 --- a/packages/_vue3-migration-test/CHANGELOG.md +++ b/packages/_vue3-migration-test/CHANGELOG.md @@ -3,6 +3,33 @@ 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.45](https://github.com/empathyco/x/compare/vue3-migration-test@1.0.0-alpha.44...vue3-migration-test@1.0.0-alpha.45) (2024-07-09) + + +### Features + +* migrate experience controls (#1530) ([91ee6d0](https://github.com/empathyco/x/commit/91ee6d0f171b870c42e6dcc95229a6be66b7067e)) + + + +## [1.0.0-alpha.44](https://github.com/empathyco/x/compare/vue3-migration-test@1.0.0-alpha.43...vue3-migration-test@1.0.0-alpha.44) (2024-07-09) + + +### Bug Fixes + +* **main-scroll:** obtain observed container element reliably to work with any Vue version (#1552) ([0b4e415](https://github.com/empathyco/x/commit/0b4e41504409dd35a3da0fcf35fa471ea8350f6f)) + + + +## [1.0.0-alpha.43](https://github.com/empathyco/x/compare/vue3-migration-test@1.0.0-alpha.42...vue3-migration-test@1.0.0-alpha.43) (2024-07-08) + + +### Features + +* migrate filters components to Composition API (#1550) ([dd6a2d7](https://github.com/empathyco/x/commit/dd6a2d728632e81c25cc918c1cac1aa10daab590)) + + + ## [1.0.0-alpha.42](https://github.com/empathyco/x/compare/vue3-migration-test@1.0.0-alpha.41...vue3-migration-test@1.0.0-alpha.42) (2024-07-08) diff --git a/packages/_vue3-migration-test/package.json b/packages/_vue3-migration-test/package.json index a331aa113a..72a043400c 100644 --- a/packages/_vue3-migration-test/package.json +++ b/packages/_vue3-migration-test/package.json @@ -1,7 +1,7 @@ { "name": "vue3-migration-test", "private": "true", - "version": "1.0.0-alpha.42", + "version": "1.0.0-alpha.45", "scripts": { "dev": "vite", "preview": "vite preview", diff --git a/packages/_vue3-migration-test/src/components/icons/test-icons.vue b/packages/_vue3-migration-test/src/components/icons/test-icons.vue new file mode 100644 index 0000000000..38a173c9f9 --- /dev/null +++ b/packages/_vue3-migration-test/src/components/icons/test-icons.vue @@ -0,0 +1,158 @@ + + + diff --git a/packages/_vue3-migration-test/src/components/index.ts b/packages/_vue3-migration-test/src/components/index.ts index 6fff4ac5e2..1722fbb29c 100644 --- a/packages/_vue3-migration-test/src/components/index.ts +++ b/packages/_vue3-migration-test/src/components/index.ts @@ -18,3 +18,4 @@ export { default as TestExtraParams } from './extra-params/test-extra-params.vue export { default as TestSearch } from './test-search.vue'; export { default as TestTagging } from './tagging/test-tagging.vue'; export { default as TestRenderlessExtraParam } from './extra-params/test-renderless-extra-param.vue'; +export { default as TestIcons } from './icons/test-icons.vue'; diff --git a/packages/_vue3-migration-test/src/main.ts b/packages/_vue3-migration-test/src/main.ts index e23a9f174f..3ba06cd5e2 100644 --- a/packages/_vue3-migration-test/src/main.ts +++ b/packages/_vue3-migration-test/src/main.ts @@ -73,7 +73,25 @@ const adapter = { identifierResults: () => new Promise(resolve => resolve({ results: ['123A', '123B', '123C', '123D'].map(id => createResultStub(id)) }) - ) + ), + experienceControls: () => { + return new Promise(resolve => + resolve({ + controls: { + semanticQueries: { + numberOfCarousels: 2, + resultsPerCarousels: 2 + } + }, + events: { + SemanticQueriesConfigProvided: { + maxItemsToRequest: 'controls.semanticQueries.numberOfCarousels', + resultsPerCarousel: 'controls.semanticQueries.resultsPerCarousels' + } + } + }) + ); + } } as unknown as XComponentsAdapter; const store = createStore({}); diff --git a/packages/_vue3-migration-test/src/router.ts b/packages/_vue3-migration-test/src/router.ts index 04822cfc66..c8a2c45f80 100644 --- a/packages/_vue3-migration-test/src/router.ts +++ b/packages/_vue3-migration-test/src/router.ts @@ -45,9 +45,11 @@ import { TestRedirection, TestExtraParams, TestSearch, + TestExperienceControls, TestTagging, TestRenderlessExtraParam, - TestAnimationFactory + TestAnimationFactory, + TestIcons } from './'; const routes = [ @@ -276,6 +278,11 @@ const routes = [ name: 'SnippetConfigExtraparams', component: TestExtraParams }, + { + path: '/experience-controls', + name: 'ExperienceControls', + component: TestExperienceControls + }, { path: '/tagging', name: 'Tagging', @@ -290,6 +297,11 @@ const routes = [ path: '/animation-factory', name: 'AnimationFactory', component: TestAnimationFactory + }, + { + path: '/icons', + name: 'Icons', + component: TestIcons } ]; diff --git a/packages/_vue3-migration-test/src/x-modules/experience-controls/components/index.ts b/packages/_vue3-migration-test/src/x-modules/experience-controls/components/index.ts new file mode 100644 index 0000000000..39cdeaf8d9 --- /dev/null +++ b/packages/_vue3-migration-test/src/x-modules/experience-controls/components/index.ts @@ -0,0 +1 @@ +export { default as TestExperienceControls } from './test-experience-controls.vue'; diff --git a/packages/_vue3-migration-test/src/x-modules/experience-controls/components/test-experience-controls.vue b/packages/_vue3-migration-test/src/x-modules/experience-controls/components/test-experience-controls.vue new file mode 100644 index 0000000000..59afdadbd7 --- /dev/null +++ b/packages/_vue3-migration-test/src/x-modules/experience-controls/components/test-experience-controls.vue @@ -0,0 +1,27 @@ + + + diff --git a/packages/_vue3-migration-test/src/x-modules/experience-controls/index.ts b/packages/_vue3-migration-test/src/x-modules/experience-controls/index.ts new file mode 100644 index 0000000000..07635cbbc8 --- /dev/null +++ b/packages/_vue3-migration-test/src/x-modules/experience-controls/index.ts @@ -0,0 +1 @@ +export * from './components'; diff --git a/packages/_vue3-migration-test/src/x-modules/index.ts b/packages/_vue3-migration-test/src/x-modules/index.ts index c935daf10c..2681f15684 100644 --- a/packages/_vue3-migration-test/src/x-modules/index.ts +++ b/packages/_vue3-migration-test/src/x-modules/index.ts @@ -12,3 +12,4 @@ export * from './semantic-queries'; export * from './recommendations'; export * from './popular-searches'; export * from './identifier-results'; +export * from './experience-controls'; diff --git a/packages/_vue3-migration-test/src/x-modules/scroll/test-scroll.vue b/packages/_vue3-migration-test/src/x-modules/scroll/test-scroll.vue index 8f74707be1..b74c6c5d96 100644 --- a/packages/_vue3-migration-test/src/x-modules/scroll/test-scroll.vue +++ b/packages/_vue3-migration-test/src/x-modules/scroll/test-scroll.vue @@ -1,10 +1,11 @@ - - + +