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.
@@ -0,0 +1,2 @@
1
+ export declare const loadConfig: () => Promise<Record<string, string>>;
2
+ export declare const getConfigValue: (key: string) => string;
@@ -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.13",
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,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const PDFViewer: () => import("react").JSX.Element;
3
- export default PDFViewer;
@@ -1,2 +0,0 @@
1
- declare const sanitizeHTMLText: (text: string) => string;
2
- export default sanitizeHTMLText;
@@ -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;
@@ -1,2 +0,0 @@
1
- declare const sanitizeHTMLText: (text: string) => string | null;
2
- export default sanitizeHTMLText;