acsi-core 0.9.13 → 0.9.15
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/components/UpdateNotifier.d.ts +3 -0
- package/dist/configs/api_removed.d.ts +3 -0
- package/dist/index.d.ts +2 -4
- package/dist/index.js +669 -107
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +657 -93
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/configLoader.d.ts +2 -0
- package/dist/utils/hooks/useServiceWorker.d.ts +1 -0
- package/dist/utils/latexExtractor.d.ts +4 -0
- package/package.json +1 -2
- package/dist/containers/PDF/views/PDFViewer.d.ts +0 -3
- package/dist/utils/sanitizeHTMLText.d.ts +0 -2
- package/dist/utils/sanitizeSrc.d.ts +0 -7
- package/dist/utils/sanitizeText.d.ts +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useServiceWorker: () => void;
|
|
@@ -13,6 +13,10 @@ export declare class LatexExtractor {
|
|
|
13
13
|
* Checks if content is already wrapped with mathematical delimiters
|
|
14
14
|
*/
|
|
15
15
|
static isAlreadyWrapped(content: string): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Checks if content contains existing KaTeX formatting that should not be modified
|
|
18
|
+
*/
|
|
19
|
+
static containsExistingKatex(content: string): boolean;
|
|
16
20
|
/**
|
|
17
21
|
* Extracts content from existing $ or $$ wrappers
|
|
18
22
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "acsi-core",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.15",
|
|
4
4
|
"description": "Contains core components && functions for acsi-core project",
|
|
5
5
|
"author": "brss",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,7 +24,6 @@
|
|
|
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",
|
|
28
27
|
"formik": "^2.4.5",
|
|
29
28
|
"gapi-script": "^1.2.0",
|
|
30
29
|
"i18next": "^23.7.16",
|
|
@@ -1,7 +0,0 @@
|
|
|
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 | null;
|
|
7
|
-
export default sanitizeSrc;
|