@swan-io/lake 7.3.1 → 7.3.3

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": "@swan-io/lake",
3
- "version": "7.3.1",
3
+ "version": "7.3.3",
4
4
  "engines": {
5
5
  "node": ">=18.0.0",
6
6
  "yarn": "^1.22.0"
@@ -29,8 +29,8 @@
29
29
  "@react-three/drei": "^9.104.1",
30
30
  "@react-three/fiber": "^8.16.1",
31
31
  "@swan-io/boxed": "^2.1.1",
32
- "@swan-io/chicane": "^2.0.0-rc.2",
33
- "@swan-io/use-form": "^2.0.0-rc.2",
32
+ "@swan-io/chicane": "^2.0.0",
33
+ "@swan-io/use-form": "^2.0.0",
34
34
  "dayjs": "^1.11.10",
35
35
  "polished": "^4.3.1",
36
36
  "prism-react-renderer": "^2.3.1",
@@ -4,13 +4,15 @@ import { Array, Option } from "@swan-io/boxed";
4
4
  import { forwardRef } from "react";
5
5
  import { StyleSheet, View } from "react-native";
6
6
  import { match } from "ts-pattern";
7
- import { animations, spacings } from "../constants/design";
7
+ import { animations, colors, spacings } from "../constants/design";
8
8
  import { usePreviousValue } from "../hooks/usePreviousValue";
9
9
  import { noop } from "../utils/function";
10
10
  import { Box } from "./Box";
11
11
  import { LakeButton } from "./LakeButton";
12
+ import { LoadingView } from "./LoadingView";
12
13
  import { RightPanel } from "./RightPanel";
13
14
  import { Space } from "./Space";
15
+ import { Suspendable } from "./Suspendable";
14
16
  import { TransitionView } from "./TransitionView";
15
17
  const styles = StyleSheet.create({
16
18
  details: {
@@ -69,7 +71,7 @@ const ListRightPanel_ = forwardRef(({ items, keyExtractor, activeId, onActiveIdC
69
71
  }
70
72
  } })] })] }), _jsx(Space, { height: 12 }), _jsx(View, { style: styles.detailsContainer, children: activeItem != null
71
73
  ? [
72
- _createElement(TransitionView, { ...newDetailDirection, key: activeId, style: styles.detailsContents }, render(activeItem, large)),
74
+ _createElement(TransitionView, { ...newDetailDirection, key: activeId, style: styles.detailsContents }, previousItem != null ? (_jsx(Suspendable, { fallback: _jsx(LoadingView, { color: colors.current[500], delay: 0 }), children: render(activeItem, large) })) : (render(activeItem, large))),
73
75
  ...(previousItem != null && previousId !== activeId
74
76
  ? [
75
77
  _createElement(TransitionView, { ...previousDetailDirection, key: previousId, style: styles.detailsContents }, null),