acsi-core 1.2.32 → 1.2.35
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/containers/Login/apiClient/index.d.ts +5 -5
- package/dist/containers/Login/hooks/useLogin.d.ts +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +120 -40
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +118 -41
- package/dist/index.modern.js.map +1 -1
- package/dist/services/accountService.d.ts +6 -6
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/sanitizeHTMLText.d.ts +2 -0
- package/dist/utils/sanitizeSrc.d.ts +7 -0
- package/package.json +3 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LoginAccessTokenRequest, LoginRequest } from "../utils/types/login";
|
|
2
|
-
export declare const getInfo: (role: string) => Promise<import("axios").AxiosResponse<any, any
|
|
3
|
-
export declare const getSuperAdminInfoFromWeb: () => Promise<import("axios").AxiosResponse<any, any
|
|
4
|
-
export declare const apiLoginGoogle: (body: LoginRequest) => Promise<import("axios").AxiosResponse<any, any
|
|
5
|
-
export declare const apiLoginGoogleSuperAdmin: (body: LoginRequest) => Promise<import("axios").AxiosResponse<any, any
|
|
6
|
-
export declare const apiLoginWithAccessToken: (body: LoginAccessTokenRequest, domain?: string | undefined) => Promise<import("axios").AxiosResponse<any, any
|
|
7
|
-
export declare const checkToken: (token: string) => Promise<import("axios").AxiosResponse<any, any
|
|
2
|
+
export declare const getInfo: (role: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
3
|
+
export declare const getSuperAdminInfoFromWeb: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
4
|
+
export declare const apiLoginGoogle: (body: LoginRequest) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
5
|
+
export declare const apiLoginGoogleSuperAdmin: (body: LoginRequest) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
6
|
+
export declare const apiLoginWithAccessToken: (body: LoginAccessTokenRequest, domain?: string | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
7
|
+
export declare const checkToken: (token: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sanitizes and validates URLs to prevent XSS and other security vulnerabilities
|
|
3
|
+
* @param url - The URL string to sanitize
|
|
4
|
+
* @returns The sanitized URL string, or null if the URL is invalid/dangerous
|
|
5
|
+
*/
|
|
6
|
+
declare const sanitizeSrc: (url: string) => string;
|
|
7
|
+
export default sanitizeSrc;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "acsi-core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.35",
|
|
4
4
|
"description": "Contains core components && functions for acsi-core project",
|
|
5
5
|
"author": "brss",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"@tinymce/tinymce-react": "^4.3.0",
|
|
25
25
|
"@types/js-cookie": "^3.0.6",
|
|
26
26
|
"axios": "^1.6.2",
|
|
27
|
+
"dompurify": "^3.2.7",
|
|
27
28
|
"formik": "^2.4.5",
|
|
28
29
|
"gapi-script": "^1.2.0",
|
|
29
30
|
"i18next": "^23.7.16",
|
|
@@ -54,7 +55,7 @@
|
|
|
54
55
|
"react": "^18.2.0",
|
|
55
56
|
"react-dom": "^18.2.0",
|
|
56
57
|
"react-redux": "^9.0.4",
|
|
57
|
-
"react-router-dom": "^
|
|
58
|
+
"react-router-dom": "^6.16.0"
|
|
58
59
|
},
|
|
59
60
|
"scripts": {
|
|
60
61
|
"build": "microbundle-crl --no-compress --format modern,cjs",
|