@pyreon/kinetic 0.11.8 → 0.11.10
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pyreon/kinetic",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.10",
|
|
4
4
|
"description": "CSS-transition-based animation components for Pyreon",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"typecheck": "tsc --noEmit"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@pyreon/typescript": "^0.11.
|
|
44
|
+
"@pyreon/typescript": "^0.11.10",
|
|
45
45
|
"@vitus-labs/tools-rolldown": "^1.15.3"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@pyreon/core": "^0.11.
|
|
49
|
-
"@pyreon/reactivity": "^0.11.
|
|
48
|
+
"@pyreon/core": "^0.11.10",
|
|
49
|
+
"@pyreon/reactivity": "^0.11.10"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
52
|
"node": ">= 22"
|
|
@@ -31,7 +31,6 @@ const fireTransitionEnd = (el: HTMLElement) => {
|
|
|
31
31
|
* Collapse creates a wrapper div (wrapperRef) and inner content div (contentRef).
|
|
32
32
|
* We manually assign mock elements to the refs so the animation logic runs.
|
|
33
33
|
*/
|
|
34
|
-
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: complex logic is inherent to this function
|
|
35
34
|
const setupCollapse = (props: Record<string, unknown>) => {
|
|
36
35
|
const wrapperEl = document.createElement('div')
|
|
37
36
|
const contentEl = document.createElement('div')
|
|
@@ -53,7 +53,6 @@ const fireTransitionEnd = (el: HTMLElement) => {
|
|
|
53
53
|
*/
|
|
54
54
|
const wireRef = (vnode: VNode | null, el: HTMLElement) => {
|
|
55
55
|
if (!vnode) return
|
|
56
|
-
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: complex logic is inherent to this function
|
|
57
56
|
const visitNode = (node: VNode) => {
|
|
58
57
|
const nodeProps = node.props as Record<string, unknown>
|
|
59
58
|
if (typeof nodeProps?.ref === 'function') {
|
|
@@ -56,7 +56,6 @@ const fireTransitionEnd = (el: HTMLElement) => {
|
|
|
56
56
|
const wireRef = (vnode: VNode | null, el: HTMLElement) => {
|
|
57
57
|
if (!vnode) return
|
|
58
58
|
|
|
59
|
-
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: complex logic is inherent to this function
|
|
60
59
|
const visitNode = (node: VNode) => {
|
|
61
60
|
const props = node.props as Record<string, unknown>
|
|
62
61
|
if (typeof props?.ref === 'function') {
|
|
@@ -363,7 +362,6 @@ describe('kinetic() — collapse mode', () => {
|
|
|
363
362
|
wireRef(vnode, wrapperEl)
|
|
364
363
|
|
|
365
364
|
// Find contentRef in the VNode tree
|
|
366
|
-
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: complex logic is inherent to this function
|
|
367
365
|
const findContentRef = (node: VNode | null) => {
|
|
368
366
|
if (!node) return
|
|
369
367
|
if (node.children) {
|