@spteck/react-controls-v2 2.0.15 → 2.0.16
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/ContentRenderer/ContentRenderer.d.ts +45 -0
- package/dist/components/ContentRenderer/ContentRenderer.d.ts.map +1 -0
- package/dist/components/ContentRenderer/index.d.ts +3 -0
- package/dist/components/ContentRenderer/index.d.ts.map +1 -0
- package/dist/components/MarkdownRenderer/MarkdownRenderer.d.ts +11 -0
- package/dist/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +1 -0
- package/dist/components/MarkdownRenderer/index.d.ts +2 -0
- package/dist/components/MarkdownRenderer/index.d.ts.map +1 -0
- package/dist/components/aiAssistant/AIAssistant.d.ts +1 -1
- package/dist/components/aiAssistant/AIAssistant.d.ts.map +1 -1
- package/dist/components/aiAssistant/ChatList.d.ts +9 -0
- package/dist/components/aiAssistant/ChatList.d.ts.map +1 -0
- package/dist/components/aiAssistant/IAIAssistantProps.d.ts +1 -0
- package/dist/components/aiAssistant/IAIAssistantProps.d.ts.map +1 -1
- package/dist/components/aiAssistant/index.d.ts +1 -0
- package/dist/components/aiAssistant/index.d.ts.map +1 -1
- package/dist/components/aiAssistant/useAIAssistantStyles.d.ts +2 -0
- package/dist/components/aiAssistant/useAIAssistantStyles.d.ts.map +1 -1
- package/dist/components/aiAssistant/useStreamRequest.d.ts.map +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useAIAssistant.d.ts +50 -0
- package/dist/hooks/useAIAssistant.d.ts.map +1 -0
- package/dist/hooks/useAIAssistantParser.d.ts +45 -0
- package/dist/hooks/useAIAssistantParser.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +868 -302
- package/dist/index.mjs.map +1 -1
- package/dist/utils/contentDetector.d.ts +28 -0
- package/dist/utils/contentDetector.d.ts.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +8 -6
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enum for content types
|
|
3
|
+
*/
|
|
4
|
+
export declare enum ContentType {
|
|
5
|
+
HTML = "html",
|
|
6
|
+
MARKDOWN = "markdown",
|
|
7
|
+
ADAPTIVE_CARD = "adaptiveCard",
|
|
8
|
+
PLAIN_TEXT = "plainText"
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Interface for content detection result
|
|
12
|
+
*/
|
|
13
|
+
export interface IContentDetectionResult {
|
|
14
|
+
type: ContentType;
|
|
15
|
+
content: string | object;
|
|
16
|
+
confidence: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Detects the format/type of content and returns the result
|
|
20
|
+
* @param content - The content to analyze
|
|
21
|
+
* @returns Detection result with type, content, and confidence
|
|
22
|
+
*/
|
|
23
|
+
export declare const detectContentType: (content: string | object) => IContentDetectionResult;
|
|
24
|
+
/**
|
|
25
|
+
* Detects content type with a simpler API that just returns the type
|
|
26
|
+
*/
|
|
27
|
+
export declare const getContentType: (content: string | object) => ContentType;
|
|
28
|
+
//# sourceMappingURL=contentDetector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contentDetector.d.ts","sourceRoot":"","sources":["../../src/utils/contentDetector.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,WAAW;IACrB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,aAAa,iBAAiB;IAC9B,UAAU,cAAc;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;CACpB;AAwGD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAI,SAAS,MAAM,GAAG,MAAM,KAAG,uBAoF5D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,SAAS,MAAM,GAAG,MAAM,KAAG,WAEzD,CAAC"}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spteck/react-controls-v2",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.16",
|
|
4
4
|
"description": "Framework-agnostic React controls for Vite, Next.js, and SPFx - based on Fluent UI 9",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "João Mendes",
|
|
@@ -9,14 +9,16 @@
|
|
|
9
9
|
"types": "./dist/index.d.ts",
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
|
-
"
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
13
|
"require": "./dist/index.js",
|
|
14
|
-
"
|
|
14
|
+
"import": "./dist/index.mjs",
|
|
15
|
+
"default": "./dist/index.js"
|
|
15
16
|
},
|
|
16
17
|
"./providers": {
|
|
17
|
-
"
|
|
18
|
+
"types": "./dist/providers.d.ts",
|
|
18
19
|
"require": "./dist/providers.js",
|
|
19
|
-
"
|
|
20
|
+
"import": "./dist/providers.mjs",
|
|
21
|
+
"default": "./dist/providers.js"
|
|
20
22
|
}
|
|
21
23
|
},
|
|
22
24
|
"files": [
|
|
@@ -89,4 +91,4 @@
|
|
|
89
91
|
"vite-plugin-dts": "^3.7.0",
|
|
90
92
|
"vitest": "^1.0.0"
|
|
91
93
|
}
|
|
92
|
-
}
|
|
94
|
+
}
|