origam 2.37.4 → 2.37.5
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
CHANGED
|
@@ -18,6 +18,15 @@ This project follows [Semantic Versioning](https://semver.org).
|
|
|
18
18
|
|
|
19
19
|
## [Unreleased]
|
|
20
20
|
|
|
21
|
+
## [2.37.5] - 2026-10-21
|
|
22
|
+
|
|
23
|
+
### Fixed — `OrigamTabPanels` ne relaie plus `transition` à `OrigamTabPanel` (#1207)
|
|
24
|
+
|
|
25
|
+
`OrigamTabPanels` enveloppait son slot dans un `<origam-defaults-provider>` qui poussait `transition` à `origam-tab-panel`, qui ne déclare pas cette prop et lit déjà la transition depuis le contexte des panneaux. Le résolveur de props de thème émettait donc un avertissement de dev à chaque `OrigamCodeGroup`.
|
|
26
|
+
|
|
27
|
+
- Le provider et son `slotDefaults` sont retirés ; la transition continue de passer par le contexte.
|
|
28
|
+
- Vérifié : TU `tab-panels-transition-no-warn.spec.ts` rouge sur le parent, vert après (PR #1232).
|
|
29
|
+
|
|
21
30
|
## [2.37.4] - 2026-10-20
|
|
22
31
|
|
|
23
32
|
### Fixed — `OrigamCode` : une ligne vide tombait à 0 px et un numéro fantôme suivait le saut de ligne final (#1216)
|
|
@@ -7,21 +7,17 @@
|
|
|
7
7
|
:class="panelsClasses"
|
|
8
8
|
:style="panelsStyles"
|
|
9
9
|
>
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/>
|
|
15
|
-
</origam-defaults-provider>
|
|
10
|
+
<slot
|
|
11
|
+
name="default"
|
|
12
|
+
v-bind="slotProps"
|
|
13
|
+
/>
|
|
16
14
|
</component>
|
|
17
15
|
</template>
|
|
18
16
|
|
|
19
17
|
<script lang="ts" setup>
|
|
20
18
|
import { computed, provide, ref, shallowRef, StyleValue, watch } from "vue";
|
|
21
|
-
import OrigamDefaultsProvider from "../DefaultsProvider/OrigamDefaultsProvider.vue";
|
|
22
19
|
import { useGroup } from "../../composables/Commons/group.composable";
|
|
23
20
|
import { useGroupSiblingLink } from "../../composables/Commons/groupSiblingLink.composable";
|
|
24
|
-
import { usePassedProps } from "../../composables/Commons/passedProps.composable";
|
|
25
21
|
import { useProps } from "../../composables/Commons/props.composable";
|
|
26
22
|
import { useStyle } from "../../composables/Commons/style.composable";
|
|
27
23
|
import {
|
|
@@ -30,7 +26,6 @@ import {
|
|
|
30
26
|
ORIGAM_TAB_PANELS_KEY,
|
|
31
27
|
ORIGAM_TAB_PANELS_CTX_KEY
|
|
32
28
|
} from "../../consts/Tabs/tabs.const";
|
|
33
|
-
import { omitUndefined } from "../../utils/Commons/commons.util";
|
|
34
29
|
import vTouch from "../../directives/Touch/touch.directive";
|
|
35
30
|
import { DIRECTION } from "../../enums/Commons/direction.enum";
|
|
36
31
|
const props = defineProps({
|
|
@@ -86,12 +81,6 @@ const slotProps = computed(() => ({
|
|
|
86
81
|
selected,
|
|
87
82
|
items: items.value
|
|
88
83
|
}));
|
|
89
|
-
const wasPropPassed = usePassedProps(props);
|
|
90
|
-
const slotDefaults = computed(() => ({
|
|
91
|
-
"origam-tab-panel": omitUndefined({
|
|
92
|
-
transition: wasPropPassed("transition") ? props.transition : void 0
|
|
93
|
-
})
|
|
94
|
-
}));
|
|
95
84
|
const panelsStyles = computed(() => {
|
|
96
85
|
return [
|
|
97
86
|
props.style
|