guideai-app 0.2.3 → 0.2.4
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/GuideAI.d.ts +4 -0
- package/README.md +46 -3
- package/dist/GuideAI.d.ts +1 -12
- package/dist/GuideAI.js +1 -1
- package/dist/GuideAI.js.map +1 -1
- package/dist/components/Onboarding.d.ts +10 -0
- package/dist/components/WelcomeBubble.d.ts +7 -0
- package/dist/index.d.ts +1 -1
- package/dist/styles/GuideAI.styles.d.ts +1 -0
- package/dist/types/GuideAI.types.d.ts +21 -0
- package/dist/types/workflow.d.ts +24 -0
- package/dist/utils/api.d.ts +8 -0
- package/{utils/api-services.d.ts → dist/utils/constants.d.ts} +6 -4
- package/dist/utils/dom.d.ts +1 -0
- package/dist/utils/highlight.d.ts +2 -0
- package/dist/utils/messageStorage.d.ts +26 -0
- package/dist/utils/messageStorageUtils.d.ts +26 -0
- package/dist/utils/ui.d.ts +3 -0
- package/dist/utils/workflowUtils.d.ts +17 -0
- package/dist/utils/workflowValidator.d.ts +17 -0
- package/dist/workflows/certificateWorkflow.d.ts +7 -0
- package/dist/workflows/index.d.ts +6 -0
- package/package.json +1 -1
- package/types/index.d.ts +4 -0
- package/hooks/useConversation.d.ts +0 -11
- package/hooks/useRecording.d.ts +0 -12
- package/utils/dom-interaction.d.ts +0 -2
- package/utils/react-hooks.d.ts +0 -9
- package/utils/storage.d.ts +0 -14
- package/utils/webrtc.d.ts +0 -3
package/GuideAI.d.ts
CHANGED
|
@@ -7,7 +7,11 @@ export interface GuideAIProps {
|
|
|
7
7
|
right?: string;
|
|
8
8
|
bottom?: string;
|
|
9
9
|
left?: string;
|
|
10
|
+
marginTop?: string;
|
|
11
|
+
marginRight?: string;
|
|
12
|
+
marginBottom?: string;
|
|
10
13
|
marginLeft?: string;
|
|
14
|
+
transform?: string;
|
|
11
15
|
};
|
|
12
16
|
onError?: (error: string | Error, context?: string) => void;
|
|
13
17
|
}
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Guide AI
|
|
2
2
|
|
|
3
|
-
A React component that provides AI-powered guidance with
|
|
3
|
+
A React component that provides AI-powered guidance with voice interaction and element highlighting capabilities.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -19,12 +19,55 @@ function App() {
|
|
|
19
19
|
return (
|
|
20
20
|
<div>
|
|
21
21
|
<GuideAI
|
|
22
|
-
|
|
23
|
-
shortcutKey="k"
|
|
22
|
+
organizationKey="your-organization-key"
|
|
24
23
|
position={{ bottom: '2rem', right: '2rem' }}
|
|
25
24
|
onError={(error) => console.error(error)}
|
|
26
25
|
/>
|
|
27
26
|
</div>
|
|
28
27
|
);
|
|
29
28
|
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Props
|
|
32
|
+
|
|
33
|
+
| Prop | Type | Required | Description |
|
|
34
|
+
|------|------|----------|-------------|
|
|
35
|
+
| `organizationKey` | `string` | Yes | Your organization key for workflows |
|
|
36
|
+
| `position` | `object` | No | Positioning configuration for the component |
|
|
37
|
+
| `onError` | `function` | No | Error handler callback |
|
|
38
|
+
|
|
39
|
+
### Position Object
|
|
40
|
+
|
|
41
|
+
The `position` prop accepts an object with CSS positioning properties:
|
|
42
|
+
|
|
43
|
+
```typescript
|
|
44
|
+
position?: {
|
|
45
|
+
top?: string;
|
|
46
|
+
right?: string;
|
|
47
|
+
bottom?: string;
|
|
48
|
+
left?: string;
|
|
49
|
+
marginTop?: string;
|
|
50
|
+
marginRight?: string;
|
|
51
|
+
marginBottom?: string;
|
|
52
|
+
marginLeft?: string;
|
|
53
|
+
transform?: string;
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Examples
|
|
58
|
+
|
|
59
|
+
**Fixed positioning:**
|
|
60
|
+
```jsx
|
|
61
|
+
<GuideAI
|
|
62
|
+
organizationKey="your-org-key"
|
|
63
|
+
position={{ bottom: '4rem', left: '50%', marginLeft: '-30px' }}
|
|
64
|
+
/>
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
**Corner positioning:**
|
|
68
|
+
```jsx
|
|
69
|
+
<GuideAI
|
|
70
|
+
organizationKey="your-org-key"
|
|
71
|
+
position={{ top: '20px', right: '20px' }}
|
|
72
|
+
/>
|
|
30
73
|
```
|
package/dist/GuideAI.d.ts
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
apiKey?: string;
|
|
4
|
-
organizationKey: string;
|
|
5
|
-
position?: {
|
|
6
|
-
top?: string;
|
|
7
|
-
right?: string;
|
|
8
|
-
bottom?: string;
|
|
9
|
-
left?: string;
|
|
10
|
-
marginLeft?: string;
|
|
11
|
-
};
|
|
12
|
-
onError?: (error: string | Error, context?: string) => void;
|
|
13
|
-
}
|
|
2
|
+
import { GuideAIProps } from './types/GuideAI.types';
|
|
14
3
|
declare const GuideAI: (props: GuideAIProps) => React.JSX.Element | null;
|
|
15
4
|
export default GuideAI;
|