@fctc/widget-logic 1.7.6 → 1.7.8

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/dist/hooks.d.mts CHANGED
@@ -2,6 +2,7 @@ import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import * as _tanstack_query_core from '@tanstack/query-core';
3
3
  import * as react from 'react';
4
4
  import { RefObject } from 'react';
5
+ import * as react_jsx_runtime from 'react/jsx-runtime';
5
6
  export * from '@fctc/interface-logic/hooks';
6
7
 
7
8
  declare const useCallAction: () => readonly [ActionResult | undefined, ({ aid, actionType, }: {
@@ -951,7 +952,7 @@ type AppProviderType = {
951
952
  };
952
953
  declare const AppProvider: ({ children }: {
953
954
  children: React.ReactNode;
954
- }) => JSX.Element;
955
+ }) => react_jsx_runtime.JSX.Element;
955
956
  declare const useAppProvider: () => AppProviderType;
956
957
 
957
958
  declare const DEFAULT_EVENTS: readonly ["mousedown", "touchstart"];
package/dist/hooks.d.ts CHANGED
@@ -2,6 +2,7 @@ import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import * as _tanstack_query_core from '@tanstack/query-core';
3
3
  import * as react from 'react';
4
4
  import { RefObject } from 'react';
5
+ import * as react_jsx_runtime from 'react/jsx-runtime';
5
6
  export * from '@fctc/interface-logic/hooks';
6
7
 
7
8
  declare const useCallAction: () => readonly [ActionResult | undefined, ({ aid, actionType, }: {
@@ -951,7 +952,7 @@ type AppProviderType = {
951
952
  };
952
953
  declare const AppProvider: ({ children }: {
953
954
  children: React.ReactNode;
954
- }) => JSX.Element;
955
+ }) => react_jsx_runtime.JSX.Element;
955
956
  declare const useAppProvider: () => AppProviderType;
956
957
 
957
958
  declare const DEFAULT_EVENTS: readonly ["mousedown", "touchstart"];
package/dist/hooks.js CHANGED
@@ -534,6 +534,7 @@ var useAuth = () => {
534
534
  },
535
535
  {
536
536
  onSuccess: (res) => {
537
+ setAccessToken(res.access_token);
537
538
  },
538
539
  onError: (err) => {
539
540
  }
package/dist/hooks.mjs CHANGED
@@ -507,6 +507,7 @@ var useAuth = () => {
507
507
  },
508
508
  {
509
509
  onSuccess: (res) => {
510
+ setAccessToken(res.access_token);
510
511
  },
511
512
  onError: (err) => {
512
513
  }
package/dist/icons.d.mts CHANGED
@@ -1,9 +1,11 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
1
3
  declare const EyeIcon: React.FC<React.SVGProps<SVGSVGElement>>;
2
4
 
3
- declare const LoadingIcon: ({ width, height, ...props }: React.SVGProps<SVGSVGElement>) => JSX.Element;
5
+ declare const LoadingIcon: ({ width, height, ...props }: React.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
4
6
 
5
7
  declare const CloseIcon: ({ className }: {
6
8
  className?: string;
7
- }) => JSX.Element;
9
+ }) => react_jsx_runtime.JSX.Element;
8
10
 
9
11
  export { CloseIcon, EyeIcon, LoadingIcon };
package/dist/icons.d.ts CHANGED
@@ -1,9 +1,11 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
1
3
  declare const EyeIcon: React.FC<React.SVGProps<SVGSVGElement>>;
2
4
 
3
- declare const LoadingIcon: ({ width, height, ...props }: React.SVGProps<SVGSVGElement>) => JSX.Element;
5
+ declare const LoadingIcon: ({ width, height, ...props }: React.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
4
6
 
5
7
  declare const CloseIcon: ({ className }: {
6
8
  className?: string;
7
- }) => JSX.Element;
9
+ }) => react_jsx_runtime.JSX.Element;
8
10
 
9
11
  export { CloseIcon, EyeIcon, LoadingIcon };
package/dist/index.d.mts CHANGED
@@ -15,4 +15,5 @@ export * from '@fctc/interface-logic/services';
15
15
  import '@tanstack/react-query';
16
16
  import '@tanstack/query-core';
17
17
  import 'react';
18
+ import 'react/jsx-runtime';
18
19
  import 'moment';
package/dist/index.d.ts CHANGED
@@ -15,4 +15,5 @@ export * from '@fctc/interface-logic/services';
15
15
  import '@tanstack/react-query';
16
16
  import '@tanstack/query-core';
17
17
  import 'react';
18
+ import 'react/jsx-runtime';
18
19
  import 'moment';
package/dist/index.js CHANGED
@@ -4679,6 +4679,7 @@ var useAuth = () => {
4679
4679
  },
4680
4680
  {
4681
4681
  onSuccess: (res) => {
4682
+ setAccessToken(res.access_token);
4682
4683
  },
4683
4684
  onError: (err) => {
4684
4685
  }
package/dist/index.mjs CHANGED
@@ -4694,6 +4694,7 @@ var useAuth = () => {
4694
4694
  },
4695
4695
  {
4696
4696
  onSuccess: (res) => {
4697
+ setAccessToken(res.access_token);
4697
4698
  },
4698
4699
  onError: (err) => {
4699
4700
  }
package/dist/widget.js CHANGED
@@ -4847,6 +4847,7 @@ var useAuth = () => {
4847
4847
  },
4848
4848
  {
4849
4849
  onSuccess: (res) => {
4850
+ setAccessToken(res.access_token);
4850
4851
  },
4851
4852
  onError: (err) => {
4852
4853
  }
package/dist/widget.mjs CHANGED
@@ -4843,6 +4843,7 @@ var useAuth = () => {
4843
4843
  },
4844
4844
  {
4845
4845
  onSuccess: (res) => {
4846
+ setAccessToken(res.access_token);
4846
4847
  },
4847
4848
  onError: (err) => {
4848
4849
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/widget-logic",
3
- "version": "1.7.6",
3
+ "version": "1.7.8",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -74,18 +74,16 @@
74
74
  "test": "jest"
75
75
  },
76
76
  "dependencies": {
77
- "@fctc/interface-logic": "^1.9.3",
77
+ "@fctc/interface-logic": "^1.10.8",
78
78
  "@headlessui/react": "^2.2.6",
79
79
  "@tanstack/react-query": "^5.84.0",
80
- "@types/react-dom": "^19.1.7",
81
80
  "i18next": "^25.3.2",
82
81
  "i18next-browser-languagedetector": "^8.2.0",
83
- "react-dom": "^19.1.1",
84
82
  "react-i18next": "^15.6.1",
85
83
  "react-tooltip": "^5.29.1"
86
84
  },
87
85
  "devDependencies": {
88
- "@types/react": "18.0.0",
86
+ "@types/react": "^18.3.1",
89
87
  "jest": "^29.7.0",
90
88
  "react": "18.0.0",
91
89
  "tsup": "^8.0.0",
@@ -93,6 +91,6 @@
93
91
  },
94
92
  "packageManager": "yarn@1.22.0",
95
93
  "peerDependencies": {
96
- "@fctc/interface-logic": "^1.3.2"
94
+ "@fctc/interface-logic": "^1.6.9"
97
95
  }
98
96
  }