@intelliweave/embedded 2.1.74 → 2.1.75

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.
@@ -1,25 +0,0 @@
1
- {
2
- "name": "react-test",
3
- "private": true,
4
- "version": "0.0.0",
5
- "type": "module",
6
- "scripts": {
7
- "dev": "vite",
8
- "build": "tsc && vite build",
9
- "preview": "vite preview"
10
- },
11
- "dependencies": {
12
- "react": "^18.3.1",
13
- "react-dom": "^18.3.1",
14
- "@intelliweave/embedded": "file:../.."
15
- },
16
- "devDependencies": {
17
- "@types/react": "^18.3.12",
18
- "@types/react-dom": "^18.3.1",
19
- "@vitejs/plugin-react": "^4.3.4",
20
- "typescript": "^5.6.3",
21
- "vite": "^6.0.1"
22
- }
23
- }
24
-
25
-
@@ -1,69 +0,0 @@
1
- import React from 'react'
2
- import { WebWeaverUI } from '@intelliweave/embedded/react'
3
-
4
- // Replace with your actual API key
5
- const apiKey = '9adb5223-abd8-4145-bad7-85680f95532f'
6
-
7
- function App() {
8
- return (
9
- <div style={{ padding: '20px' }}>
10
- <h1>WebWeaver React Tests</h1>
11
-
12
- {/* Test 1: Container mode - always open */}
13
- <section style={{ marginBottom: '40px' }}>
14
- <h2>Test 1: Container Mode (Always Open)</h2>
15
- <div
16
- style={{
17
- position: 'relative',
18
- width: '100%',
19
- height: '600px',
20
- border: '2px solid #ccc',
21
- borderRadius: '8px'
22
- }}
23
- >
24
- <WebWeaverUI
25
- apiKey={apiKey}
26
- positioningMode="container"
27
- displayMode="open"
28
- />
29
- </div>
30
- </section>
31
-
32
- {/* Test 2: Fixed position - top left */}
33
- <section style={{ marginBottom: '40px' }}>
34
- <h2>Test 2: Fixed Position (Top-Left, Initially Closed)</h2>
35
- <p>Look for the button in the top-left corner of the viewport</p>
36
- <WebWeaverUI
37
- apiKey={apiKey}
38
- positioningMode="fixed"
39
- positionX="left"
40
- positionY="top"
41
- offsetX={20}
42
- offsetY={20}
43
- />
44
- </section>
45
-
46
- {/* Test 3: Default behavior */}
47
- <section style={{ marginBottom: '40px' }}>
48
- <h2>Test 3: Default Behavior (Bottom-Right)</h2>
49
- <p>Look for the button in the bottom-right corner of the viewport</p>
50
- <WebWeaverUI
51
- apiKey={apiKey}
52
- />
53
- </section>
54
-
55
- {/* Test 4: Always open in fixed position */}
56
- <section style={{ marginBottom: '40px' }}>
57
- <h2>Test 4: Always Open in Bottom-Right</h2>
58
- <WebWeaverUI
59
- apiKey={apiKey}
60
- displayMode="open"
61
- positioningMode="fixed"
62
- />
63
- </section>
64
- </div>
65
- )
66
- }
67
-
68
- export default App
69
-
@@ -1,10 +0,0 @@
1
- import React, { StrictMode } from 'react'
2
- import { createRoot } from 'react-dom/client'
3
- import App from './App'
4
-
5
- createRoot(document.getElementById('root')!).render(
6
- <StrictMode>
7
- <App />
8
- </StrictMode>,
9
- )
10
-
@@ -1,8 +0,0 @@
1
- import { defineConfig } from 'vite'
2
- import react from '@vitejs/plugin-react'
3
-
4
- export default defineConfig({
5
- plugins: [react()],
6
- })
7
-
8
-