@swan-io/lake 17.0.1 → 18.0.0
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 +3 -3
- package/src/components/AutocompleteSearchInput.d.ts +1 -1
- package/src/components/AutocompleteSearchInput.js +1 -1
- package/src/components/LakeButton.js +1 -1
- package/src/components/LakeCombobox.d.ts +1 -1
- package/src/components/LakeStepper.js +1 -1
- package/src/components/ListRightPanel.js +1 -1
- package/src/components/MultiSelect.js +1 -1
- package/src/components/TransitionGroupView.js +1 -1
- package/src/components/VirtualizedList.js +1 -1
- package/src/hooks/useAsyncDataSuspense.d.ts +1 -1
- package/src/hooks/useAsyncDataSuspense.js +1 -1
- package/src/hooks/useContextualLayer.d.ts +1 -1
- package/src/hooks/useContextualLayer.js +1 -1
- package/src/hooks/usePersistedState.js +1 -1
- package/src/utils/__tests__/polling.test.js +1 -1
- package/src/utils/function.js +1 -1
- package/src/utils/gql.d.ts +1 -1
- package/src/utils/gql.js +1 -1
- package/src/utils/polling.d.ts +1 -1
- package/src/utils/polling.js +1 -1
- package/src/utils/string.d.ts +1 -1
- package/src/utils/string.js +1 -1
- package/src/utils/svg.d.ts +1 -1
- package/src/utils/svg.js +1 -1
- package/src/utils/viewport.d.ts +1 -1
- package/src/utils/viewport.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swan-io/lake",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.0.0",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">22.12.0"
|
|
6
6
|
},
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"react-native-web": ">=0.21.2"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@
|
|
33
|
+
"@bloodyowl/boxed": "^3.4.0",
|
|
34
34
|
"@zoontek/chicane": "^3.0.0",
|
|
35
|
-
"@swan-io/use-form": "^
|
|
35
|
+
"@swan-io/use-form": "^4.0.0",
|
|
36
36
|
"dayjs": "^1.11.21",
|
|
37
37
|
"polished": "^4.3.1",
|
|
38
38
|
"rifm": "^0.12.1",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { AsyncData, Result } from "@
|
|
2
|
+
import { AsyncData, Result } from "@bloodyowl/boxed";
|
|
3
3
|
import { useRef, useState } from "react";
|
|
4
4
|
import { StyleSheet } from "react-native";
|
|
5
5
|
import { match, P } from "ts-pattern";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Option } from "@
|
|
2
|
+
import { Option } from "@bloodyowl/boxed";
|
|
3
3
|
import { Children, Fragment, memo, useEffect, useState } from "react";
|
|
4
4
|
import { ActivityIndicator, StyleSheet, View, } from "react-native";
|
|
5
5
|
import { match, P } from "ts-pattern";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Option } from "@
|
|
2
|
+
import { Option } from "@bloodyowl/boxed";
|
|
3
3
|
import { Link } from "@zoontek/chicane";
|
|
4
4
|
import { StyleSheet, View } from "react-native";
|
|
5
5
|
import { match, P } from "ts-pattern";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createElement as _createElement } from "react";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Array, Option } from "@
|
|
3
|
+
import { Array, Option } from "@bloodyowl/boxed";
|
|
4
4
|
import { StyleSheet, View } from "react-native";
|
|
5
5
|
import { match } from "ts-pattern";
|
|
6
6
|
import { animations, colors, spacings } from "../constants/design";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Array, Dict, Option } from "@
|
|
2
|
+
import { Array, Dict, Option } from "@bloodyowl/boxed";
|
|
3
3
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
4
4
|
import { Pressable, StyleSheet, Text, TextInput, View, } from "react-native";
|
|
5
5
|
import { backgroundColor, colors, radii, shadows, texts } from "../constants/design";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Array, Option } from "@
|
|
2
|
+
import { Array, Option } from "@bloodyowl/boxed";
|
|
3
3
|
import { Children, useMemo, useReducer, useRef } from "react";
|
|
4
4
|
import { View } from "react-native";
|
|
5
5
|
import { match, P } from "ts-pattern";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Option } from "@
|
|
2
|
+
import { Option } from "@bloodyowl/boxed";
|
|
3
3
|
import { cloneElement, memo, useCallback, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, } from "react";
|
|
4
4
|
import { StyleSheet, View } from "react-native";
|
|
5
5
|
import { commonStyles } from "../constants/commonStyles";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AsyncData } from "@
|
|
1
|
+
import { AsyncData } from "@bloodyowl/boxed";
|
|
2
2
|
export declare const useAsyncDataSuspense: <T extends AsyncData<unknown>>(asyncData: T) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Deferred } from "@
|
|
1
|
+
import { Deferred } from "@bloodyowl/boxed";
|
|
2
2
|
import { useEffect, useMemo, useRef } from "react";
|
|
3
3
|
export const useAsyncDataSuspense = (asyncData) => {
|
|
4
4
|
// For the sake of simplicity here, we also consider `NotAsked` to be a
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Option, Result } from "@
|
|
1
|
+
import { Option, Result } from "@bloodyowl/boxed";
|
|
2
2
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
3
3
|
const getItem = (key) => Result.fromExecution(() => localStorage.getItem(key)).getOr(null);
|
|
4
4
|
const setItem = (key, value) => {
|
package/src/utils/function.js
CHANGED
package/src/utils/gql.d.ts
CHANGED
package/src/utils/gql.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Result } from "@
|
|
1
|
+
import { Result } from "@bloodyowl/boxed";
|
|
2
2
|
export const filterRejectionsToResult = (input) => (input.__typename.endsWith("Rejection") ? Result.Error(input) : Result.Ok(input));
|
package/src/utils/polling.d.ts
CHANGED
package/src/utils/polling.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Future, Result } from "@
|
|
1
|
+
import { Future, Result } from "@bloodyowl/boxed";
|
|
2
2
|
/**
|
|
3
3
|
* Waits `intervalMs`, runs `attempt`, repeats while it returns `Error` (up to `maxAttempts`).
|
|
4
4
|
* Cancelling the returned future stops the loop — unlike `Future.retry`, which keeps polling.
|
package/src/utils/string.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Option } from "@
|
|
1
|
+
import { Option } from "@bloodyowl/boxed";
|
|
2
2
|
export declare const safeSplitAround: (string: string, expression: string) => string[];
|
|
3
3
|
export declare const deburr: (value: string) => string;
|
|
4
4
|
export declare const trim: (value: string) => string;
|
package/src/utils/string.js
CHANGED
package/src/utils/svg.d.ts
CHANGED
package/src/utils/svg.js
CHANGED
package/src/utils/viewport.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Future } from "@
|
|
1
|
+
import { Future } from "@bloodyowl/boxed";
|
|
2
2
|
export declare const detectScrollAnimationEnd: (element: HTMLElement) => Future<void>;
|
package/src/utils/viewport.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Future } from "@
|
|
1
|
+
import { Future } from "@bloodyowl/boxed";
|
|
2
2
|
// When using `node.scroll()` with smooth behavior, there isn't any event to detect when the scroll animation is finished
|
|
3
3
|
// We need this also with `ScrollView.scrollTo` (which just call the native node.scroll function)
|
|
4
4
|
// More info about why this workaround: https://stackoverflow.com/a/60001032
|