thub-embed 10.0.26 → 11.0.2

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/.env DELETED
@@ -1,34 +0,0 @@
1
- # ==============================================
2
- # REQUIRED CONFIGURATION
3
- # ==============================================
4
-
5
- # API Host URL (required)
6
- # This should be the URL where your Flowise instance is running
7
- # Example: https://your-flowise-instance.com
8
- API_HOST=http://localhost:8080
9
-
10
- # Flowise API Key (required)
11
- # Generate this from your Flowise instance settings page
12
- # Example: OxxGE-h_LaH7ZYorStjTOik1XY999RxxoHpCSYl8BXxc
13
- FLOWISE_API_KEY=pfEI8Iwd2Glz8xM4hWXrIgUTuSOqcKu37ytiMnVD1Ws
14
-
15
- # ==============================================
16
- # CHATFLOWS CONFIGURATION (required)
17
- # ==============================================
18
-
19
- # Format: [identifier]=[chatflowId],[allowedDomain1],[allowedDomain2],...
20
- #
21
- # Each entry consists of:
22
- # - identifier: Any name you choose (e.g., agent1, support, salesbot)
23
- # - chatflowId: The UUID of your Flowise chatflow
24
- # - allowedDomains: Comma-separated list of domains where this chat can be embedded
25
- # Note: Wildcard domains (*) are not supported for security reasons
26
- #
27
- # Examples:
28
- # agent1=20db97c6-64c9-4411-bab4-7d6202171600,https://example1.com
29
- # support=1c28f529-a70f-5001-9bc5-4f4c5d03d8c0,https://example2.com,https://another-example2.com
30
- # salesbot=3db97c6-64c9-4411-bab4-7d620217160a,https://sales.example.com
31
-
32
- # Add your chatflows below:
33
- chatflow_1=
34
- chatflow_2=
@@ -1,56 +0,0 @@
1
- export type DetectedContent = {
2
- type: 'html' | 'react' | 'python' | 'javascript' | 'css' | 'json' | 'sql' | 'java' | 'cpp' | 'csharp' | 'markdown' | 'xml' | 'yaml' | 'bash' | 'golang' | 'rust' | 'ruby' | 'php' | 'text';
3
- language: string;
4
- code: string;
5
- isExecutable: boolean;
6
- isPreviewable: boolean;
7
- confidence: number;
8
- };
9
- export type ContentAnalysis = {
10
- hasCode: boolean;
11
- codeBlocks: DetectedContent[];
12
- remainingText: string;
13
- summary: string;
14
- };
15
- /**
16
- * Universal Content Detector
17
- * Analyzes any text and extracts code/content with intelligent type detection
18
- */
19
- declare class UniversalContentDetector {
20
- private patterns;
21
- /**
22
- * Detect language based on patterns and explicit markers
23
- */
24
- detectLanguage(code: string): DetectedContent['type'];
25
- /**
26
- * Map various language name aliases to standard types
27
- */
28
- private mapLanguageName;
29
- /**
30
- * Extract all code blocks from text
31
- */
32
- extractCodeBlocks(message: string): ContentAnalysis;
33
- /**
34
- * Generate summary of detected content
35
- */
36
- private generateSummary;
37
- }
38
- export declare const contentDetector: UniversalContentDetector;
39
- /**
40
- * Helper function to get display name for content type
41
- */
42
- export declare const getContentTypeDisplay: (type: DetectedContent['type']) => string;
43
- /**
44
- * Helper to check if content should be automatically previewed
45
- */
46
- export declare const shouldAutoPreview: (type: DetectedContent['type']) => boolean;
47
- /**
48
- * Helper to get MIME type for downloads
49
- */
50
- export declare const getMimeType: (type: DetectedContent['type']) => string;
51
- /**
52
- * Helper to get file extension for downloads
53
- */
54
- export declare const getFileExtension: (type: DetectedContent['type']) => string;
55
- export {};
56
- //# sourceMappingURL=contentDetector.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contentDetector.d.ts","sourceRoot":"","sources":["../../src/utils/contentDetector.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,YAAY,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;IAC3L,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,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