@bloom-housing/ui-components 4.1.3-alpha.4 → 4.1.3-alpha.5

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.1.3-alpha.5](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.1.3-alpha.4...@bloom-housing/ui-components@4.1.3-alpha.5) (2022-04-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * remove shared-helpers dependency from ui-components ([#2620](https://github.com/bloom-housing/bloom/issues/2620)) ([cd6ea54](https://github.com/bloom-housing/bloom/commit/cd6ea5450402a9b5d2a8681c403cbfcff6b6b1c9))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [4.1.3-alpha.4](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.1.3-alpha.3...@bloom-housing/ui-components@4.1.3-alpha.4) (2022-04-05)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bloom-housing/ui-components",
3
- "version": "4.1.3-alpha.4",
3
+ "version": "4.1.3-alpha.5",
4
4
  "author": "Sean Albert <sean.albert@exygy.com>",
5
5
  "description": "Shared user interface components for Bloom affordable housing system",
6
6
  "homepage": "https://github.com/bloom-housing/bloom/tree/master/shared/ui-components",
@@ -100,5 +100,5 @@
100
100
  "tailwindcss": "2.2.10",
101
101
  "typesafe-actions": "^5.1.0"
102
102
  },
103
- "gitHead": "c461d8695c7166c108a30e653445c8d542261f2e"
103
+ "gitHead": "51e7e387e3f6cd1fa1b713bc39a920df4a1af14e"
104
104
  }
@@ -13,7 +13,7 @@ import {
13
13
  ErrorMessage,
14
14
  emailRegex,
15
15
  } from "@bloom-housing/ui-components"
16
- import { NetworkErrorReset, NetworkStatusContent } from "@bloom-housing/shared-helpers"
16
+ import { NetworkErrorReset, NetworkStatusContent } from "../sign-in/FormSignIn"
17
17
  import { NavigationContext } from "../../config/NavigationContext"
18
18
  import type { UseFormMethods } from "react-hook-form"
19
19
 
@@ -12,10 +12,26 @@ import {
12
12
  } from "@bloom-housing/ui-components"
13
13
  import type { UseFormMethods } from "react-hook-form"
14
14
  import { NavigationContext } from "../../config/NavigationContext"
15
- import { NetworkStatus } from "@bloom-housing/shared-helpers"
15
+ import { AlertTypes } from "../../notifications/alertTypes"
16
16
 
17
17
  export type NetworkErrorDetermineError = (status: number, error: Error) => void
18
18
 
19
+ export type NetworkStatusType = AlertTypes
20
+
21
+ export type NetworkErrorReset = () => void
22
+
23
+ export type NetworkStatusContent = {
24
+ title: string
25
+ description: string
26
+ error?: boolean
27
+ } | null
28
+
29
+ export type NetworkStatus = {
30
+ content: NetworkStatusContent
31
+ type?: NetworkStatusType
32
+ reset: NetworkErrorReset
33
+ }
34
+
19
35
  export type FormSignInProps = {
20
36
  control: FormSignInControl
21
37
  onSubmit: (data: FormSignInValues) => void
@@ -11,7 +11,7 @@ import {
11
11
  FormSignInErrorBox,
12
12
  } from "@bloom-housing/ui-components"
13
13
  import type { UseFormMethods } from "react-hook-form"
14
- import { NetworkStatus } from "@bloom-housing/shared-helpers"
14
+ import { NetworkStatus } from "./FormSignIn"
15
15
 
16
16
  export type FormSignInAddPhoneProps = {
17
17
  control: FormSignInAddPhoneControl
@@ -1,7 +1,7 @@
1
1
  import React from "react"
2
2
  import { t, AlertBox, SiteAlert, AlertNotice, ErrorMessage } from "@bloom-housing/ui-components"
3
3
  import type { UseFormMethods } from "react-hook-form"
4
- import { NetworkStatus } from "@bloom-housing/shared-helpers"
4
+ import { NetworkStatus } from "./FormSignIn"
5
5
 
6
6
  export type FormSignInErrorBoxProps = {
7
7
  errors: FormSignInErrorBoxControl["errors"]
@@ -10,8 +10,7 @@ import {
10
10
  SiteAlert,
11
11
  FormSignInErrorBox,
12
12
  } from "@bloom-housing/ui-components"
13
- import { NetworkStatus } from "@bloom-housing/shared-helpers"
14
- import { FormSignInControl } from "./FormSignIn"
13
+ import { NetworkStatus, FormSignInControl } from "./FormSignIn"
15
14
  import { EnumRequestMfaCodeMfaType } from "@bloom-housing/backend-core/types"
16
15
 
17
16
  export type FormSignInMFACodeProps = {
@@ -11,7 +11,7 @@ import {
11
11
  FormSignInErrorBox,
12
12
  } from "@bloom-housing/ui-components"
13
13
  import type { UseFormMethods } from "react-hook-form"
14
- import { NetworkStatus } from "@bloom-housing/shared-helpers"
14
+ import { NetworkStatus } from "./FormSignIn"
15
15
  import { EnumRequestMfaCodeMfaType } from "@bloom-housing/backend-core/types"
16
16
 
17
17
  export type FormSignInMFAProps = {