@swan-io/lake 3.3.2 → 3.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": "3.3.2",
3
+ "version": "3.3.3",
4
4
  "engines": {
5
5
  "node": ">=18.0.0",
6
6
  "yarn": "^1.22.0"
@@ -27,8 +27,8 @@
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
29
  "@popperjs/core": "^2.11.8",
30
- "@react-three/drei": "^9.88.4",
31
- "@react-three/fiber": "^8.15.4",
30
+ "@react-three/drei": "^9.88.11",
31
+ "@react-three/fiber": "^8.15.10",
32
32
  "@swan-io/boxed": "^1.2.0",
33
33
  "@swan-io/chicane": "^1.4.1",
34
34
  "dayjs": "^1.11.10",
@@ -41,19 +41,19 @@
41
41
  "react-popper": "^2.3.0",
42
42
  "react-ux-form": "^1.5.0",
43
43
  "rifm": "^0.12.1",
44
- "three": "^0.157.0",
44
+ "three": "^0.158.0",
45
45
  "ts-dedent": "^2.2.0",
46
46
  "ts-pattern": "^5.0.5",
47
47
  "urql": "^4.0.5",
48
48
  "uuid": "^9.0.1"
49
49
  },
50
50
  "devDependencies": {
51
- "@types/react": "^18.2.31",
51
+ "@types/react": "^18.2.36",
52
52
  "@types/react-dom": "^18.2.14",
53
53
  "@types/react-native": "^0.72.5",
54
- "@types/three": "^0.157.2",
54
+ "@types/three": "^0.158.1",
55
55
  "@types/uuid": "^9.0.6",
56
56
  "jsdom": "^22.1.0",
57
- "type-fest": "^4.5.0"
57
+ "type-fest": "^4.6.0"
58
58
  }
59
59
  }
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from "react";
2
- import { GestureResponderEvent, PressableStateCallbackType, StyleProp, View, ViewStyle } from "react-native";
2
+ import { GestureResponderEvent, HrefAttrs, PressableStateCallbackType, StyleProp, View, ViewStyle } from "react-native";
3
3
  import { ColorVariants, Spacings } from "../constants/design";
4
4
  import { IconName } from "./Icon";
5
5
  export type ButtonProps = {
@@ -17,11 +17,7 @@ export type ButtonProps = {
17
17
  style?: StyleProp<ViewStyle> | ((props: PressableStateCallbackType) => StyleProp<ViewStyle>);
18
18
  forceBackground?: boolean;
19
19
  href?: string;
20
- hrefAttrs?: {
21
- download?: boolean;
22
- rel?: string;
23
- target?: string;
24
- };
20
+ hrefAttrs?: HrefAttrs;
25
21
  pill?: boolean;
26
22
  } & ({
27
23
  ariaLabel: string;
@@ -1,7 +1,6 @@
1
1
  type Props = {
2
2
  url: string;
3
3
  filename: string;
4
- onError: () => void;
5
4
  };
6
5
  export declare const LakeDownloadButton: ({ url, filename }: Props) => import("react/jsx-runtime").JSX.Element;
7
6
  export {};
@@ -134,7 +134,7 @@ export const Popover = memo(({ children, id, label, role = "dialog", describedBy
134
134
  if (mode === "BottomPanel") {
135
135
  return (_jsx(BottomPanel, { visible: visible, onPressClose: onDismiss, returnFocus: false, children: typeof children == "function" ? children({ mode: "panel" }) : children }));
136
136
  }
137
- return (_jsx(Portal, { container: rootElement, children: _jsx(TransitionView, { style: styles.container, ...animation, children: visible ? (_jsxs(View, { style: styles.contents, children: [underlay ? (_jsx(Pressable, { ref: underlayRef, style: styles.underlay, onPress: onPressUnderlay, role: "button", "aria-label": "Close" })) : null, availableHeight > 0 ? (_jsx(ScrollView, { style: [
137
+ return (_jsx(Portal, { container: rootElement, children: _jsx(TransitionView, { style: styles.container, ...animation, children: visible ? (_jsxs(View, { style: styles.contents, children: [underlay ? (_jsx(Pressable, { ref: underlayRef, style: styles.underlay, onPress: onPressUnderlay, "aria-label": "Close" })) : null, availableHeight > 0 ? (_jsx(ScrollView, { style: [
138
138
  styles.popover,
139
139
  availableSpaceAbove <= availableSpaceBelow && { top },
140
140
  availableSpaceAbove > availableSpaceBelow && { bottom },
@@ -1,5 +1,5 @@
1
1
  import { FC, ReactNode, Ref } from "react";
2
- import { NativeSyntheticEvent, PressableProps, PressableStateCallbackType, Text, TextInput, TextInputProps, TextProps, View, ViewProps } from "react-native";
2
+ import { HrefAttrs, NativeSyntheticEvent, PressableProps, PressableStateCallbackType, Text, TextInput, TextInputProps, TextProps, View, ViewProps } from "react-native";
3
3
  import { Except, Merge } from "type-fest";
4
4
  import { PressResponderConfig } from "../hooks/usePressEvents";
5
5
  type Props<BaseProps extends TextProps | TextInputProps> = Merge<BaseProps, {
@@ -29,11 +29,7 @@ type Props<BaseProps extends TextProps | TextInputProps> = Merge<BaseProps, {
29
29
  }>;
30
30
  type ExtraProps = {
31
31
  href?: string;
32
- hrefAttrs?: {
33
- download?: boolean;
34
- rel?: string;
35
- target?: string;
36
- };
32
+ hrefAttrs?: HrefAttrs;
37
33
  };
38
34
  export type PressableViewProps = Except<Props<ViewProps>, "children">;
39
35
  export type PressableTextProps = Props<TextProps>;
@@ -53,7 +49,7 @@ export declare const PressableText: FC<{
53
49
  maxFontSizeMultiplier?: number | null | undefined;
54
50
  role?: import("react-native").WebRole | undefined;
55
51
  href?: string | undefined;
56
- hrefAttrs?: import("react-native").HrefAttrs | undefined;
52
+ hrefAttrs?: HrefAttrs | undefined;
57
53
  lang?: string | undefined;
58
54
  adjustsFontSizeToFit?: boolean | undefined;
59
55
  dynamicTypeRamp?: "body" | "caption2" | "caption1" | "footnote" | "subheadline" | "callout" | "headline" | "title3" | "title2" | "title1" | "largeTitle" | undefined;