@marketrix.ai/widget 3.8.492 → 3.8.494
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/README.md +4 -4
- package/dist/loader.js +8 -1
- package/dist/src/components/WidgetRoot.d.ts +19 -0
- package/dist/src/components/base/Avatar.d.ts +5 -2
- package/dist/src/components/base/Button.d.ts +1 -1
- package/dist/src/components/base/ErrorBoundary.d.ts +19 -0
- package/dist/src/components/base/Flex.d.ts +14 -0
- package/dist/src/components/base/Icon.d.ts +12 -1
- package/dist/src/components/base/IconButton.d.ts +4 -0
- package/dist/src/components/base/Spinner.d.ts +4 -0
- package/dist/src/components/base/Surface.d.ts +22 -5
- package/dist/src/components/base/Text.d.ts +17 -1
- package/dist/src/components/base/icons.d.ts +16 -0
- package/dist/src/components/base/layoutProps.d.ts +20 -6
- package/dist/src/components/blocks/ChatInput.d.ts +9 -0
- package/dist/src/components/blocks/HeaderBar.d.ts +4 -0
- package/dist/src/components/blocks/Notifications.d.ts +20 -10
- package/dist/src/components/blocks/WidgetDialog.d.ts +0 -5
- package/dist/src/components/blocks/WidgetFab.d.ts +10 -0
- package/dist/src/components/chat/MessageItem.d.ts +13 -0
- package/dist/src/components/chat/MessageList.d.ts +20 -0
- package/dist/src/components/chat/VideoStreamDisplay.d.ts +20 -0
- package/dist/src/components/navigation/ShellTabBar.d.ts +0 -1
- package/dist/src/components/views/ChatView.d.ts +20 -0
- package/dist/src/components/views/HomeView.d.ts +9 -0
- package/dist/src/context/ChatContext.d.ts +20 -0
- package/dist/src/context/UIStateContext.d.ts +5 -0
- package/dist/src/context/WidgetProviders.d.ts +20 -1
- package/dist/src/context/sseReducer.d.ts +20 -9
- package/dist/src/design-system/component-tokens.d.ts +27 -1
- package/dist/src/design-system/semantic-tokens.d.ts +18 -0
- package/dist/src/hooks/useDragSnap.d.ts +13 -0
- package/dist/src/hooks/useFocusTrap.d.ts +20 -0
- package/dist/src/hooks/useWidget.d.ts +11 -1
- package/dist/src/index.d.ts +20 -0
- package/dist/src/sdk/contracts/common.d.ts +0 -16
- package/dist/src/sdk/index.d.ts +0 -1
- package/dist/src/services/BrowserToolService.d.ts +26 -5
- package/dist/src/services/ChatService.d.ts +15 -1
- package/dist/src/services/ChatSessionManager.d.ts +0 -2
- package/dist/src/services/DomService.d.ts +18 -3
- package/dist/src/services/RrwebSessionRecorder.d.ts +0 -1
- package/dist/src/services/ShowModeService.d.ts +22 -5
- package/dist/src/services/StorageService.d.ts +20 -1
- package/dist/src/services/StreamClient.d.ts +21 -1
- package/dist/src/services/keySimulation.d.ts +3 -0
- package/dist/src/test/fixtures.d.ts +13 -2
- package/dist/src/test/renderWidget.d.ts +6 -0
- package/dist/src/test/setup.d.ts +14 -0
- package/dist/src/types/index.d.ts +20 -7
- package/dist/src/utils/chat.d.ts +21 -4
- package/dist/src/utils/color.d.ts +21 -0
- package/dist/src/utils/dom.d.ts +21 -0
- package/dist/src/utils/errors.d.ts +12 -0
- package/dist/src/utils/suggestedActions.d.ts +11 -0
- package/dist/src/utils/validation.d.ts +20 -7
- package/dist/src/utils/widgetPositioning.d.ts +20 -0
- package/dist/widget.mjs +63 -64
- package/package.json +6 -6
- package/dist/src/components/base/Stack.d.ts +0 -3
- package/dist/src/components/chat/MessageContent.d.ts +0 -8
- package/dist/src/components/chat/SuggestedActions.d.ts +0 -8
- package/dist/src/components/chat/TaskStatusIcon.d.ts +0 -5
- package/dist/src/components/chat/ThinkingIndicator.d.ts +0 -6
- package/dist/src/components/navigation/ResizeHandle.d.ts +0 -7
- package/dist/src/design-system/layers.d.ts +0 -7
- package/dist/src/design-system/shadows.d.ts +0 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marketrix.ai/widget",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.494",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/widget.mjs",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"code:check": "tsc --noEmit && eslint . && prettier --check ."
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@base-ui/react": "^1.
|
|
40
|
+
"@base-ui/react": "^1.8.0",
|
|
41
41
|
"@orpc/client": "^1.15.0",
|
|
42
42
|
"@orpc/contract": "^1.15.0",
|
|
43
43
|
"@rrweb/record": "^2.1.1",
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
"@testing-library/react": "^16.3.3",
|
|
55
55
|
"@types/node": "^26.4.1",
|
|
56
56
|
"@types/react": "^19.2.18",
|
|
57
|
-
"@types/react-dom": "^19.2.
|
|
57
|
+
"@types/react-dom": "^19.2.7",
|
|
58
58
|
"@typescript-eslint/eslint-plugin": "^8.69.0",
|
|
59
59
|
"@typescript-eslint/parser": "^8.59.0",
|
|
60
60
|
"@vitejs/plugin-react": "^6.1.1",
|
|
61
|
-
"@vitest/coverage-v8": "^
|
|
62
|
-
"eslint": "^10.
|
|
61
|
+
"@vitest/coverage-v8": "^5.0.0",
|
|
62
|
+
"eslint": "^10.10.0",
|
|
63
63
|
"eslint-config-prettier": "^10.1.8",
|
|
64
64
|
"eslint-plugin-import-x": "^4.17.1",
|
|
65
65
|
"eslint-plugin-simple-import-sort": "^14.0.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"terser": "^5.51.2",
|
|
73
73
|
"typescript": "^6.0.3",
|
|
74
74
|
"vite": "^8.2.2",
|
|
75
|
-
"vitest": "^
|
|
75
|
+
"vitest": "^5.0.0",
|
|
76
76
|
"vitest-axe": "^0.1.0"
|
|
77
77
|
}
|
|
78
78
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { SuggestedActionItem } from '../../utils/suggestedActions';
|
|
3
|
-
interface SuggestedActionsProps {
|
|
4
|
-
actions: SuggestedActionItem[];
|
|
5
|
-
onActionClick: (action: SuggestedActionItem, event: React.MouseEvent) => Promise<void>;
|
|
6
|
-
}
|
|
7
|
-
export declare const SuggestedActions: React.FC<SuggestedActionsProps>;
|
|
8
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ResizeGrip } from '../../utils/widgetPositioning';
|
|
3
|
-
export interface ResizeHandleProps {
|
|
4
|
-
grip: ResizeGrip;
|
|
5
|
-
onMouseDown: (e: React.MouseEvent) => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const ResizeHandle: React.FC<ResizeHandleProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const SHADOW: {
|
|
2
|
-
readonly none: "none";
|
|
3
|
-
readonly card: "0 1px 4px rgba(0,0,0,0.1)";
|
|
4
|
-
readonly section: "0 2px 8px rgba(0,0,0,0.06)";
|
|
5
|
-
readonly panel: "0 12px 40px rgba(0,0,0,0.16), 0 4px 12px rgba(0,0,0,0.08)";
|
|
6
|
-
readonly fab: "0 2px 8px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.04)";
|
|
7
|
-
readonly button: "0 4px 6px -1px rgba(0,0,0,0.1)";
|
|
8
|
-
};
|
|
9
|
-
export type ShadowToken = keyof typeof SHADOW;
|