@connectycube/chat-widget 0.38.2 → 0.38.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.
Files changed (29) hide show
  1. package/dist/index.es.js +3557 -5922
  2. package/dist/index.umd.js +274 -0
  3. package/dist/types/App.d.ts +1 -0
  4. package/dist/types/components/calls/calls-confirm-incoming.d.ts +1 -0
  5. package/dist/types/components/calls/calls-nav-buttons.d.ts +1 -0
  6. package/dist/types/components/calls/calls-screen.d.ts +1 -0
  7. package/dist/types/components/home/home.d.ts +2 -1
  8. package/dist/types/components/home/main/main.d.ts +2 -1
  9. package/dist/types/components/home/main/message/message-text-summary.d.ts +1 -0
  10. package/dist/types/components/home/main/single-view-form.d.ts +1 -0
  11. package/dist/types/components/home/main/user-status/user-status-badge.d.ts +1 -0
  12. package/dist/types/components/home/sidebar/sidebar.d.ts +1 -0
  13. package/dist/types/components/home/sidebar/tabs/chats-tab.d.ts +1 -0
  14. package/dist/types/components/home/sidebar/tabs/users-tab.d.ts +1 -0
  15. package/dist/types/components/home/sidebar/user-item.d.ts +2 -1
  16. package/dist/types/components/shared/alert-busy.d.ts +1 -0
  17. package/dist/types/components/shared/chat-status-mark.d.ts +1 -0
  18. package/dist/types/components/shared/confirmation-alert.d.ts +1 -1
  19. package/dist/types/components/shared/loader.d.ts +1 -0
  20. package/dist/types/components/widget/widget-app.d.ts +1 -0
  21. package/dist/types/components/widget/widget-auth.d.ts +1 -0
  22. package/dist/types/components/widget/widget-button.d.ts +1 -0
  23. package/dist/types/components/widget/widget-error.d.ts +1 -0
  24. package/dist/types/components/widget/widget-messages-badge.d.ts +1 -0
  25. package/dist/types/components/widget/widget-online-badge.d.ts +1 -0
  26. package/dist/types/components/widget/widget-overlay.d.ts +1 -0
  27. package/dist/types/components/widget/widget-portal.d.ts +1 -1
  28. package/dist/types/components/widget/widget-shadow-root.d.ts +1 -1
  29. package/package.json +2 -1
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  import { Config } from '@connectycube/react';
2
3
  import { AppPresets } from './hooks/useAppPresets';
3
4
  export type AppProps = AppPresets & {
@@ -1,2 +1,3 @@
1
+ import { default as React } from 'react';
1
2
  declare const CallsConfirmIncoming: React.FC;
2
3
  export default CallsConfirmIncoming;
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  type CallsNavBarProps = {
2
3
  customButton?: React.ReactNode;
3
4
  };
@@ -1,2 +1,3 @@
1
+ import { default as React } from 'react';
1
2
  declare const CallsScreen: React.FC;
2
3
  export default CallsScreen;
@@ -1,2 +1,3 @@
1
- declare const Home: () => import("react/jsx-runtime").JSX.Element;
1
+ import { default as React } from 'react';
2
+ declare const Home: React.FC;
2
3
  export default Home;
@@ -1,2 +1,3 @@
1
- declare const Main: () => import("react/jsx-runtime").JSX.Element;
1
+ import { default as React } from 'react';
2
+ declare const Main: React.FC;
2
3
  export default Main;
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  type MessageTextSummaryProps = {
2
3
  stickToBottom?: (skipOnce?: boolean) => void;
3
4
  loading?: boolean;
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  export interface SingleViewFormProps {
2
3
  onSendMessage: (text: string) => void;
3
4
  }
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  import { USER_STATUS } from '../../../../helpers/connectycube';
2
3
  type UserStatusBadgeProps = {
3
4
  status: USER_STATUS;
@@ -1,2 +1,3 @@
1
+ import { default as React } from 'react';
1
2
  declare const SideBar: React.FC;
2
3
  export default SideBar;
@@ -1,2 +1,3 @@
1
+ import { default as React } from 'react';
1
2
  declare const ChatsTab: React.FC;
2
3
  export default ChatsTab;
@@ -1,2 +1,3 @@
1
+ import { default as React } from 'react';
1
2
  declare const UsersTab: React.FC;
2
3
  export default UsersTab;
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  import { USER_STATUS } from '../../../helpers/connectycube';
2
3
  export interface UserItemProps {
3
4
  userId: number;
@@ -5,5 +6,5 @@ export interface UserItemProps {
5
6
  avatar?: string;
6
7
  status?: USER_STATUS | null;
7
8
  }
8
- declare const _default: import('react').NamedExoticComponent<UserItemProps>;
9
+ declare const _default: React.NamedExoticComponent<UserItemProps>;
9
10
  export default _default;
@@ -1,2 +1,3 @@
1
+ import { default as React } from 'react';
1
2
  declare const AlertBusy: React.FC;
2
3
  export default AlertBusy;
@@ -1,2 +1,3 @@
1
+ import { default as React } from 'react';
1
2
  declare const ChatStatusMark: React.FC;
2
3
  export default ChatStatusMark;
@@ -1,4 +1,4 @@
1
- import { ReactElement } from 'react';
1
+ import { default as React, ReactElement } from 'react';
2
2
  export interface ConfirmationAlertProps {
3
3
  triggerChild: ReactElement;
4
4
  title: string;
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  export interface LoaderProps {
2
3
  className?: string;
3
4
  }
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  type WidgetAppProps = {
2
3
  id?: string;
3
4
  name?: string;
@@ -1,2 +1,3 @@
1
+ import { default as React } from 'react';
1
2
  declare const WidgetAuth: React.FC;
2
3
  export default WidgetAuth;
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  type WidgetButtonProps = {
2
3
  lng: 'en' | 'el' | 'ua';
3
4
  title?: string;
@@ -1,2 +1,3 @@
1
+ import { default as React } from 'react';
1
2
  declare const WidgetError: React.FC;
2
3
  export default WidgetError;
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  type WidgetMessageBadgeProps = {
2
3
  style?: React.CSSProperties;
3
4
  };
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  type WidgetOnlineBadgeProps = {
2
3
  style?: React.CSSProperties;
3
4
  };
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  type WidgetOverlayProps = {
2
3
  disableClickOutside?: boolean;
3
4
  disableEscKeyPress?: boolean;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { default as React, ReactNode } from 'react';
2
2
  type WidgetPortalProps = {
3
3
  children: ReactNode;
4
4
  embedded?: boolean;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { default as React, ReactNode } from 'react';
2
2
  type WidgetShadowRootProps = {
3
3
  children: ReactNode;
4
4
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@connectycube/chat-widget",
3
3
  "description": "A customizable React chat widget built on the ConnectyCube platform, enabling real-time messaging, calls, and user engagement in any web app.",
4
- "version": "0.38.2",
4
+ "version": "0.38.4",
5
5
  "license": "GPL-3.0-only",
6
6
  "homepage": "https://github.com/ConnectyCube/connectycube-chat-widget/chat-widget#readme",
7
7
  "bugs": {
@@ -78,6 +78,7 @@
78
78
  "build:18": "npm run tailwindcss:minify && npm run react:18 && REACT_VERSION=18 npm run vite:build:es && KEEP_DIST=true npm run vite:build:umd",
79
79
  "build:19": "npm run tailwindcss:minify && npm run react:19 && REACT_VERSION=19 npm run vite:build:es",
80
80
  "build:default": "npm run tailwindcss:minify && npm run vite:build",
81
+ "build:test": "npm run tailwindcss:minify && npm run vite:build:es && npm run react:18 && KEEP_DIST=true npm run vite:build:umd && npm run react:default",
81
82
  "build": "npm run tailwindcss:minify && npm run react:18 && REACT_VERSION=18 npm run vite:build:es && KEEP_DIST=true npm run vite:build:umd && npm run react:19 && REACT_VERSION=19 KEEP_DIST=true npm run vite:build:es && npm run react:default",
82
83
  "preview": "npm run tailwindcss && npm run vite:preview",
83
84
  "lint": "eslint .",