floating-copilot-widget 1.0.1 → 1.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/dist/FloatingCopilot.js +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/FloatingCopilot.js
CHANGED
|
@@ -9,8 +9,8 @@ export const FloatingCopilot = ({ config = {} }) => {
|
|
|
9
9
|
const [isMinimized, setIsMinimized] = useState(finalConfig.minimized || false);
|
|
10
10
|
const [isMaximized, setIsMaximized] = useState(finalConfig.maximized || false);
|
|
11
11
|
const [position, setPosition] = useState({
|
|
12
|
-
x: ((_a = finalConfig.position) === null || _a === void 0 ? void 0 : _a.includes('left')) ? 20 :
|
|
13
|
-
y: ((_b = finalConfig.position) === null || _b === void 0 ? void 0 : _b.includes('top')) ? 20 :
|
|
12
|
+
x: ((_a = finalConfig.position) === null || _a === void 0 ? void 0 : _a.includes('left')) ? 20 : 20,
|
|
13
|
+
y: ((_b = finalConfig.position) === null || _b === void 0 ? void 0 : _b.includes('top')) ? 20 : 20,
|
|
14
14
|
});
|
|
15
15
|
const [size, setSize] = useState({
|
|
16
16
|
width: finalConfig.width || 350,
|
package/dist/index.esm.js
CHANGED
|
@@ -31,8 +31,8 @@ const FloatingCopilot = ({ config = {} }) => {
|
|
|
31
31
|
const [isMinimized, setIsMinimized] = useState(finalConfig.minimized || false);
|
|
32
32
|
const [isMaximized, setIsMaximized] = useState(finalConfig.maximized || false);
|
|
33
33
|
const [position, setPosition] = useState({
|
|
34
|
-
x: ((_a = finalConfig.position) === null || _a === void 0 ? void 0 : _a.includes('left')) ? 20 :
|
|
35
|
-
y: ((_b = finalConfig.position) === null || _b === void 0 ? void 0 : _b.includes('top')) ? 20 :
|
|
34
|
+
x: ((_a = finalConfig.position) === null || _a === void 0 ? void 0 : _a.includes('left')) ? 20 : 20,
|
|
35
|
+
y: ((_b = finalConfig.position) === null || _b === void 0 ? void 0 : _b.includes('top')) ? 20 : 20,
|
|
36
36
|
});
|
|
37
37
|
const [size, setSize] = useState({
|
|
38
38
|
width: finalConfig.width || 350,
|
package/dist/index.js
CHANGED
|
@@ -35,8 +35,8 @@ const FloatingCopilot = ({ config = {} }) => {
|
|
|
35
35
|
const [isMinimized, setIsMinimized] = React.useState(finalConfig.minimized || false);
|
|
36
36
|
const [isMaximized, setIsMaximized] = React.useState(finalConfig.maximized || false);
|
|
37
37
|
const [position, setPosition] = React.useState({
|
|
38
|
-
x: ((_a = finalConfig.position) === null || _a === void 0 ? void 0 : _a.includes('left')) ? 20 :
|
|
39
|
-
y: ((_b = finalConfig.position) === null || _b === void 0 ? void 0 : _b.includes('top')) ? 20 :
|
|
38
|
+
x: ((_a = finalConfig.position) === null || _a === void 0 ? void 0 : _a.includes('left')) ? 20 : 20,
|
|
39
|
+
y: ((_b = finalConfig.position) === null || _b === void 0 ? void 0 : _b.includes('top')) ? 20 : 20,
|
|
40
40
|
});
|
|
41
41
|
const [size, setSize] = React.useState({
|
|
42
42
|
width: finalConfig.width || 350,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "floating-copilot-widget",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "A highly configurable floating chat widget plugin for React websites. Draggable, resizable, themeable, and production-ready.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|