@wf-financing/ui 1.4.2 → 1.4.4

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
@@ -1,5 +1,11 @@
1
1
  # @wf-financing/ui
2
2
 
3
+ ## 1.4.4
4
+
5
+ ### Patch Changes
6
+
7
+ - rollback vite config
8
+
3
9
  ## 1.4.2
4
10
 
5
11
  ### Patch Changes
package/dist/index.es.js CHANGED
@@ -93896,7 +93896,7 @@ const Iet = [
93896
93896
  n.mutate(void 0, {
93897
93897
  onSuccess: (o) => {
93898
93898
  const { next: l } = o;
93899
- window.open(l);
93899
+ e(!1), window.open(l);
93900
93900
  },
93901
93901
  onError: (o) => {
93902
93902
  console.error("Failed to start application", o);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wf-financing/ui",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "exports": {
5
5
  ".": {
6
6
  "import": "./dist/index.es.js",
@@ -3,7 +3,7 @@ import { IconArrowOnSquareUpRight16Line } from '@wayflyer/flyui-icons/16/line';
3
3
  import { StartHostedApplicationResponseType } from '@wf-financing/embedded-types';
4
4
  import { FormattedMessage } from 'react-intl';
5
5
 
6
- import { useStartHostedApplication, useDetectSmallScreen } from '../../hooks';
6
+ import { useDetectSmallScreen, useStartHostedApplication } from '../../hooks';
7
7
 
8
8
  type ModalFooterType = {
9
9
  setOpen: (isOpen: boolean) => void;
@@ -18,6 +18,7 @@ export const ModalFooter = ({ setOpen }: ModalFooterType) => {
18
18
  startHostedAppMutation.mutate(undefined, {
19
19
  onSuccess: (nextUrl: StartHostedApplicationResponseType) => {
20
20
  const { next } = nextUrl;
21
+ setOpen(false);
21
22
  window.open(next);
22
23
  },
23
24
  onError: (error) => {