-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/EMP-4142-migrate-base-suggestions-to-co…
…mposition-api # Conflicts: # packages/_vue3-migration-test/src/components/index.ts # packages/_vue3-migration-test/src/router.ts
- Loading branch information
Showing
17 changed files
with
396 additions
and
302 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,24 @@ | |
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.14](https://github.com/empathyco/x/compare/[email protected]@1.0.0-alpha.14) (2024-05-28) | ||
|
||
|
||
### Features | ||
|
||
* **empathize:** migrate empathize component to composition API (#1481) ([ae34083](https://github.com/empathyco/x/commit/ae34083978ea658f7b740f7a4f701b3dd74c0b2f)) | ||
|
||
|
||
|
||
## [1.0.0-alpha.13](https://github.com/empathyco/x/compare/[email protected]@1.0.0-alpha.13) (2024-05-27) | ||
|
||
|
||
### Features | ||
|
||
* Replace `layoutsmixin` by `useLayouts` composable (#1480) ([71feaae](https://github.com/empathyco/x/commit/71feaae8493fb683919967bdf52de161a4e4fbf2)) | ||
|
||
|
||
|
||
## [1.0.0-alpha.12](https://github.com/empathyco/x/compare/[email protected]@1.0.0-alpha.12) (2024-05-23) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
packages/_vue3-migration-test/src/components/test-use-layouts.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<template> | ||
<button @click="devMode = !devMode">{{ devMode ? 'Hide slots' : 'Show slots' }}</button> | ||
<header v-if="hasContent('header')"> | ||
<!-- @slot Slot that is used to insert content into the Header. --> | ||
<slot name="header"> | ||
<span v-if="devMode">HEADER</span> | ||
</slot> | ||
</header> | ||
|
||
<div v-if="hasContent('sub-header')"> | ||
<!-- @slot Slot that can be used to insert content into the Sub Header. --> | ||
<slot name="sub-header"> | ||
<span v-if="devMode">SUB HEADER</span> | ||
</slot> | ||
</div> | ||
|
||
<main v-if="hasContent('main')" class="x-layout__main"> | ||
<!-- @slot Slot that can be used to insert content into the Main. --> | ||
<slot name="main"> | ||
<span v-if="devMode">MAIN</span> | ||
</slot> | ||
</main> | ||
</template> | ||
|
||
<script setup> | ||
import { useSlots, ref } from 'vue'; | ||
import { useLayouts } from '../../../x-components/src/components/layouts/use-layouts'; | ||
const slots = useSlots(); | ||
const devMode = ref(true); | ||
const { hasContent } = useLayouts(devMode.value, slots); | ||
</script> | ||
|
||
<style scoped></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
packages/_vue3-migration-test/src/x-modules/empathize/test-empathize.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<template> | ||
<SearchInput /> | ||
<Empathize :animation="CollapseHeight" class="empathize"> | ||
<h1>It is a Empathize</h1> | ||
<h2>It is a Empathize</h2> | ||
<h3>It is a Empathize</h3> | ||
<p> | ||
Component containing the empathize. It has a required slot to define its content and two props | ||
to define when to open and close it: `eventsToOpenEmpathize` and `eventsToCloseEmpathize`. | ||
</p> | ||
</Empathize> | ||
<Empathize :animation="CollapseHeight" class="empathize" /> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import CollapseHeight from '../../../../x-components/src/components/animations/collapse-height.vue'; | ||
import Empathize from '../../../../x-components/src/x-modules/empathize/components/empathize.vue'; | ||
import SearchInput from '../../../../x-components/src/x-modules/search-box/components/search-input.vue'; | ||
</script> | ||
|
||
<style scoped> | ||
.empathize { | ||
border: 3px solid red; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,24 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## [5.0.0-alpha.20](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2024-05-28) | ||
|
||
|
||
### Features | ||
|
||
* **empathize:** migrate empathize component to composition API (#1481) ([ae34083](https://github.com/empathyco/x/commit/ae34083978ea658f7b740f7a4f701b3dd74c0b2f)) | ||
|
||
|
||
|
||
## [5.0.0-alpha.19](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2024-05-27) | ||
|
||
|
||
### Features | ||
|
||
* Replace `layoutsmixin` by `useLayouts` composable (#1480) ([71feaae](https://github.com/empathyco/x/commit/71feaae8493fb683919967bdf52de161a4e4fbf2)) | ||
|
||
|
||
|
||
## [5.0.0-alpha.18](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2024-05-23) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 0 additions & 37 deletions
37
packages/x-components/src/components/layouts/layouts.mixin.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.