@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.
Files changed (67) hide show
  1. package/README.md +4 -4
  2. package/dist/loader.js +8 -1
  3. package/dist/src/components/WidgetRoot.d.ts +19 -0
  4. package/dist/src/components/base/Avatar.d.ts +5 -2
  5. package/dist/src/components/base/Button.d.ts +1 -1
  6. package/dist/src/components/base/ErrorBoundary.d.ts +19 -0
  7. package/dist/src/components/base/Flex.d.ts +14 -0
  8. package/dist/src/components/base/Icon.d.ts +12 -1
  9. package/dist/src/components/base/IconButton.d.ts +4 -0
  10. package/dist/src/components/base/Spinner.d.ts +4 -0
  11. package/dist/src/components/base/Surface.d.ts +22 -5
  12. package/dist/src/components/base/Text.d.ts +17 -1
  13. package/dist/src/components/base/icons.d.ts +16 -0
  14. package/dist/src/components/base/layoutProps.d.ts +20 -6
  15. package/dist/src/components/blocks/ChatInput.d.ts +9 -0
  16. package/dist/src/components/blocks/HeaderBar.d.ts +4 -0
  17. package/dist/src/components/blocks/Notifications.d.ts +20 -10
  18. package/dist/src/components/blocks/WidgetDialog.d.ts +0 -5
  19. package/dist/src/components/blocks/WidgetFab.d.ts +10 -0
  20. package/dist/src/components/chat/MessageItem.d.ts +13 -0
  21. package/dist/src/components/chat/MessageList.d.ts +20 -0
  22. package/dist/src/components/chat/VideoStreamDisplay.d.ts +20 -0
  23. package/dist/src/components/navigation/ShellTabBar.d.ts +0 -1
  24. package/dist/src/components/views/ChatView.d.ts +20 -0
  25. package/dist/src/components/views/HomeView.d.ts +9 -0
  26. package/dist/src/context/ChatContext.d.ts +20 -0
  27. package/dist/src/context/UIStateContext.d.ts +5 -0
  28. package/dist/src/context/WidgetProviders.d.ts +20 -1
  29. package/dist/src/context/sseReducer.d.ts +20 -9
  30. package/dist/src/design-system/component-tokens.d.ts +27 -1
  31. package/dist/src/design-system/semantic-tokens.d.ts +18 -0
  32. package/dist/src/hooks/useDragSnap.d.ts +13 -0
  33. package/dist/src/hooks/useFocusTrap.d.ts +20 -0
  34. package/dist/src/hooks/useWidget.d.ts +11 -1
  35. package/dist/src/index.d.ts +20 -0
  36. package/dist/src/sdk/contracts/common.d.ts +0 -16
  37. package/dist/src/sdk/index.d.ts +0 -1
  38. package/dist/src/services/BrowserToolService.d.ts +26 -5
  39. package/dist/src/services/ChatService.d.ts +15 -1
  40. package/dist/src/services/ChatSessionManager.d.ts +0 -2
  41. package/dist/src/services/DomService.d.ts +18 -3
  42. package/dist/src/services/RrwebSessionRecorder.d.ts +0 -1
  43. package/dist/src/services/ShowModeService.d.ts +22 -5
  44. package/dist/src/services/StorageService.d.ts +20 -1
  45. package/dist/src/services/StreamClient.d.ts +21 -1
  46. package/dist/src/services/keySimulation.d.ts +3 -0
  47. package/dist/src/test/fixtures.d.ts +13 -2
  48. package/dist/src/test/renderWidget.d.ts +6 -0
  49. package/dist/src/test/setup.d.ts +14 -0
  50. package/dist/src/types/index.d.ts +20 -7
  51. package/dist/src/utils/chat.d.ts +21 -4
  52. package/dist/src/utils/color.d.ts +21 -0
  53. package/dist/src/utils/dom.d.ts +21 -0
  54. package/dist/src/utils/errors.d.ts +12 -0
  55. package/dist/src/utils/suggestedActions.d.ts +11 -0
  56. package/dist/src/utils/validation.d.ts +20 -7
  57. package/dist/src/utils/widgetPositioning.d.ts +20 -0
  58. package/dist/widget.mjs +63 -64
  59. package/package.json +6 -6
  60. package/dist/src/components/base/Stack.d.ts +0 -3
  61. package/dist/src/components/chat/MessageContent.d.ts +0 -8
  62. package/dist/src/components/chat/SuggestedActions.d.ts +0 -8
  63. package/dist/src/components/chat/TaskStatusIcon.d.ts +0 -5
  64. package/dist/src/components/chat/ThinkingIndicator.d.ts +0 -6
  65. package/dist/src/components/navigation/ResizeHandle.d.ts +0 -7
  66. package/dist/src/design-system/layers.d.ts +0 -7
  67. 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.492",
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.7.0",
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.5",
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": "^4.1.11",
62
- "eslint": "^10.9.1",
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": "^4.1.5",
75
+ "vitest": "^5.0.0",
76
76
  "vitest-axe": "^0.1.0"
77
77
  }
78
78
  }
@@ -1,3 +0,0 @@
1
- import { type FlexProps } from './Flex';
2
- export type StackProps = Omit<FlexProps, 'direction'>;
3
- export declare const Stack: import("react").ForwardRefExoticComponent<StackProps & import("react").RefAttributes<HTMLElement>>;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import type { ChatMessage } from '../../types';
3
- interface MessageContentProps {
4
- message: ChatMessage;
5
- isLastMessage: boolean;
6
- }
7
- export declare const MessageContent: React.FC<MessageContentProps>;
8
- export {};
@@ -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,5 +0,0 @@
1
- import React from 'react';
2
- import type { ChatMessage } from '../../types';
3
- export declare const TaskStatusIcon: React.FC<{
4
- status: NonNullable<ChatMessage['taskStatus']>;
5
- }>;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface ThinkingIndicatorProps {
3
- isWaitingForUser: boolean;
4
- }
5
- export declare const ThinkingIndicator: React.FC<ThinkingIndicatorProps>;
6
- 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,7 +0,0 @@
1
- export type LayerTokens = {
2
- screenEdgeGlow: number;
3
- panel: number;
4
- dialog: number;
5
- toast: number;
6
- };
7
- export declare const LAYER_TOKENS: LayerTokens;
@@ -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;