guideai-app 0.2.2 → 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 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 screen capture and voice interaction capabilities.
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
- apiKey="your-openai-api-key"
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
- export interface GuideAIProps {
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;