@swan-io/shared-business 17.0.1 → 18.0.1
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 +6 -6
- package/src/components/DatePicker.d.ts +1 -1
- package/src/components/DatePicker.js +1 -1
- package/src/components/FileInput.js +1 -1
- package/src/components/FileTile.d.ts +1 -1
- package/src/components/FilesUploader.d.ts +1 -1
- package/src/components/Flag.js +1 -1
- package/src/components/PlacekitAddressSearchInput.js +1 -1
- package/src/components/PlacekitCityInput.js +1 -1
- package/src/components/SupportChat.js +1 -1
- package/src/components/SupportingDocumentCollection.d.ts +2 -2
- package/src/components/SupportingDocumentCollection.js +2 -2
- package/src/components/ToastStack.js +1 -1
- package/src/constants/countries.js +1 -1
- package/src/hooks/useFilesUploader.d.ts +1 -1
- package/src/utils/__tests__/i18n.test.js +1 -1
- package/src/utils/flags.d.ts +1 -1
- package/src/utils/flags.js +1 -1
- package/src/utils/i18n.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swan-io/shared-business",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.0.1",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">22.12.0"
|
|
6
6
|
},
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"react": ">=19.0.0",
|
|
29
29
|
"react-dom": ">=19.0.0",
|
|
30
30
|
"react-native-web": ">=0.21.2",
|
|
31
|
-
"@swan-io/lake": "
|
|
31
|
+
"@swan-io/lake": "18.0.1"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@formatjs/intl": "^4.1.16",
|
|
35
35
|
"@placekit/client-js": "^2.3.0",
|
|
36
|
-
"@
|
|
37
|
-
"@
|
|
38
|
-
"@swan-io/use-form": "^
|
|
36
|
+
"@bloodyowl/boxed": "^3.4.0",
|
|
37
|
+
"@bloodyowl/request": "^3.3.0",
|
|
38
|
+
"@swan-io/use-form": "^4.0.0",
|
|
39
39
|
"dayjs": "^1.11.21",
|
|
40
40
|
"iban": "^0.0.14",
|
|
41
41
|
"react-atomic-state": "^2.1.0",
|
|
@@ -53,6 +53,6 @@
|
|
|
53
53
|
"react-dom": "^19.2.7",
|
|
54
54
|
"react-native-web": "^0.21.2",
|
|
55
55
|
"type-fest": "^5.8.0",
|
|
56
|
-
"@swan-io/lake": "
|
|
56
|
+
"@swan-io/lake": "18.0.1"
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -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 { BottomPanel } from "@swan-io/lake/src/components/BottomPanel";
|
|
4
4
|
import { Box } from "@swan-io/lake/src/components/Box";
|
|
5
5
|
import { Fill } from "@swan-io/lake/src/components/Fill";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Option, Result } from "@
|
|
2
|
+
import { Option, Result } from "@bloodyowl/boxed";
|
|
3
3
|
import { Icon } from "@swan-io/lake/src/components/Icon";
|
|
4
4
|
import { LakeButton } from "@swan-io/lake/src/components/LakeButton";
|
|
5
5
|
import { LakeHeading } from "@swan-io/lake/src/components/LakeHeading";
|
package/src/components/Flag.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Lazy } from "@
|
|
2
|
+
import { Lazy } from "@bloodyowl/boxed";
|
|
3
3
|
import { Svg, Use } from "@swan-io/lake/src/components/Svg";
|
|
4
4
|
import { getFlagGlyphName } from "@swan-io/lake/src/utils/string";
|
|
5
5
|
import { useEffect, useMemo, useState } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Array, Future, Option, Result } from "@
|
|
2
|
+
import { Array, Future, Option, Result } from "@bloodyowl/boxed";
|
|
3
3
|
import { AutocompleteSearchInput } from "@swan-io/lake/src/components/AutocompleteSearchInput";
|
|
4
4
|
import { useCallback } from "react";
|
|
5
5
|
import { countriesWithMultipleCCA3, getCCA2forCCA3 } from "../constants/countries";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Array, Future, Option, Result } from "@
|
|
2
|
+
import { Array, Future, Option, Result } from "@bloodyowl/boxed";
|
|
3
3
|
import { AutocompleteSearchInput } from "@swan-io/lake/src/components/AutocompleteSearchInput";
|
|
4
4
|
import { useCallback } from "react";
|
|
5
5
|
import { countriesWithMultipleCCA3, getCCA2forCCA3 } from "../constants/countries";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Future, Result } from "@
|
|
2
|
-
import { NetworkError, Response, TimeoutError } from "@
|
|
1
|
+
import { Future, Result } from "@bloodyowl/boxed";
|
|
2
|
+
import { NetworkError, Response, TimeoutError } from "@bloodyowl/request";
|
|
3
3
|
import { Ref } from "react";
|
|
4
4
|
import { CountryCCA3 } from "../constants/countries";
|
|
5
5
|
import { UploadFileInput, UploadOutputWithId } from "../hooks/useFilesUploader";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Array, Option } from "@
|
|
2
|
+
import { Array, Option } from "@bloodyowl/boxed";
|
|
3
|
+
import { badStatusToError, Request, } from "@bloodyowl/request";
|
|
3
4
|
import { Box } from "@swan-io/lake/src/components/Box";
|
|
4
5
|
import { Form } from "@swan-io/lake/src/components/Form";
|
|
5
6
|
import { LakeButton, LakeButtonGroup } from "@swan-io/lake/src/components/LakeButton";
|
|
@@ -11,7 +12,6 @@ import { ReadOnlyFieldList } from "@swan-io/lake/src/components/ReadOnlyFieldLis
|
|
|
11
12
|
import { Space } from "@swan-io/lake/src/components/Space";
|
|
12
13
|
import { colors } from "@swan-io/lake/src/constants/design";
|
|
13
14
|
import { isNotNullish } from "@swan-io/lake/src/utils/nullish";
|
|
14
|
-
import { badStatusToError, Request } from "@swan-io/request";
|
|
15
15
|
import { Fragment, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
16
16
|
import { StyleSheet } from "react-native";
|
|
17
17
|
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 { Array, Option } from "@
|
|
2
|
+
import { Array, Option } from "@bloodyowl/boxed";
|
|
3
3
|
import { Box } from "@swan-io/lake/src/components/Box";
|
|
4
4
|
import { Icon } from "@swan-io/lake/src/components/Icon";
|
|
5
5
|
import { LakeText } from "@swan-io/lake/src/components/LakeText";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BadStatusError } from "@
|
|
1
|
+
import { BadStatusError } from "@bloodyowl/request";
|
|
2
2
|
import { describe, expect, it } from "vitest";
|
|
3
3
|
import { formatCurrencyIso, formatCurrencySymbol, getRejectionReasonLabel, isTranslationKey, translateError, } from "../i18n";
|
|
4
4
|
// The i18n module reads `navigator.languages` at import time to pick its locale.
|
package/src/utils/flags.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Future, Result } from "@
|
|
1
|
+
import { Future, Result } from "@bloodyowl/boxed";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
export declare class FlagClient<Flags extends Record<string, unknown>, Context extends Record<string, string | number | boolean>> {
|
|
4
4
|
private readonly url;
|
package/src/utils/flags.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Request } from "@
|
|
2
|
+
import { Request } from "@bloodyowl/request";
|
|
3
3
|
import { createContext, useContext, useEffect, useState } from "react";
|
|
4
4
|
export class FlagClient {
|
|
5
5
|
constructor(url, initialContext = {}) {
|
package/src/utils/i18n.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { BadStatusError } from "@bloodyowl/request";
|
|
1
2
|
import { createIntl, createIntlCache } from "@formatjs/intl";
|
|
2
3
|
import { isNullish } from "@swan-io/lake/src/utils/nullish";
|
|
3
4
|
import { getRifmProps } from "@swan-io/lake/src/utils/rifm";
|
|
4
|
-
import { BadStatusError } from "@swan-io/request";
|
|
5
5
|
import dayjs from "dayjs";
|
|
6
6
|
import dayjsLocaleDE from "dayjs/locale/de";
|
|
7
7
|
import dayjsLocaleEN from "dayjs/locale/en";
|