@revrag-ai/embed-react-native 1.0.27 → 1.0.28

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 (111) hide show
  1. package/README.md +5 -0
  2. package/android/build.gradle +1 -0
  3. package/dist/commonjs/api/api.js.map +1 -1
  4. package/dist/commonjs/assets/fonts/PlaywriteNZBasic-ExtraLight.ttf +0 -0
  5. package/dist/commonjs/assets/fonts/PlaywriteNZBasic-Light.ttf +0 -0
  6. package/dist/commonjs/assets/fonts/PlaywriteNZBasic-Regular.ttf +0 -0
  7. package/dist/commonjs/assets/fonts/PlaywriteNZBasic-Thin.ttf +0 -0
  8. package/dist/commonjs/components/DynamicComponent/Typewriter.js +124 -0
  9. package/dist/commonjs/components/DynamicComponent/Typewriter.js.map +1 -0
  10. package/dist/commonjs/components/Embed/EmbedButton.js +307 -93
  11. package/dist/commonjs/components/Embed/EmbedButton.js.map +1 -1
  12. package/dist/commonjs/components/styles/EmbedButton.style.js +112 -158
  13. package/dist/commonjs/components/styles/EmbedButton.style.js.map +1 -1
  14. package/dist/commonjs/context/EmbedProvider.js +187 -14
  15. package/dist/commonjs/context/EmbedProvider.js.map +1 -1
  16. package/dist/commonjs/events/clickEventTracker.js +210 -0
  17. package/dist/commonjs/events/clickEventTracker.js.map +1 -0
  18. package/dist/commonjs/events/embed.event.js +11 -3
  19. package/dist/commonjs/events/embed.event.js.map +1 -1
  20. package/dist/commonjs/hooks/EmbedButton.animations.js +115 -15
  21. package/dist/commonjs/hooks/EmbedButton.animations.js.map +1 -1
  22. package/dist/commonjs/hooks/EmbedButton.helpers.js +11 -3
  23. package/dist/commonjs/hooks/EmbedButton.helpers.js.map +1 -1
  24. package/dist/commonjs/hooks/EmbedButton.hooks.js +14 -9
  25. package/dist/commonjs/hooks/EmbedButton.hooks.js.map +1 -1
  26. package/dist/commonjs/hooks/voiceagent.js +34 -12
  27. package/dist/commonjs/hooks/voiceagent.js.map +1 -1
  28. package/dist/commonjs/index.js +6 -2
  29. package/dist/commonjs/index.js.map +1 -1
  30. package/dist/commonjs/utils/constant.js +6 -1
  31. package/dist/commonjs/utils/constant.js.map +1 -1
  32. package/dist/commonjs/utils/permision.js +42 -1
  33. package/dist/commonjs/utils/permision.js.map +1 -1
  34. package/dist/commonjs/utils/reanimated.helper.js +4 -0
  35. package/dist/commonjs/utils/reanimated.helper.js.map +1 -1
  36. package/dist/module/api/api.js.map +1 -1
  37. package/dist/module/assets/fonts/PlaywriteNZBasic-ExtraLight.ttf +0 -0
  38. package/dist/module/assets/fonts/PlaywriteNZBasic-Light.ttf +0 -0
  39. package/dist/module/assets/fonts/PlaywriteNZBasic-Regular.ttf +0 -0
  40. package/dist/module/assets/fonts/PlaywriteNZBasic-Thin.ttf +0 -0
  41. package/dist/module/components/DynamicComponent/Typewriter.js +122 -0
  42. package/dist/module/components/DynamicComponent/Typewriter.js.map +1 -0
  43. package/dist/module/components/Embed/EmbedButton.js +312 -98
  44. package/dist/module/components/Embed/EmbedButton.js.map +1 -1
  45. package/dist/module/components/styles/EmbedButton.style.js +111 -157
  46. package/dist/module/components/styles/EmbedButton.style.js.map +1 -1
  47. package/dist/module/context/EmbedProvider.js +187 -14
  48. package/dist/module/context/EmbedProvider.js.map +1 -1
  49. package/dist/module/events/clickEventTracker.js +199 -0
  50. package/dist/module/events/clickEventTracker.js.map +1 -0
  51. package/dist/module/events/embed.event.js +11 -3
  52. package/dist/module/events/embed.event.js.map +1 -1
  53. package/dist/module/hooks/EmbedButton.animations.js +109 -13
  54. package/dist/module/hooks/EmbedButton.animations.js.map +1 -1
  55. package/dist/module/hooks/EmbedButton.helpers.js +10 -2
  56. package/dist/module/hooks/EmbedButton.helpers.js.map +1 -1
  57. package/dist/module/hooks/EmbedButton.hooks.js +14 -9
  58. package/dist/module/hooks/EmbedButton.hooks.js.map +1 -1
  59. package/dist/module/hooks/voiceagent.js +34 -12
  60. package/dist/module/hooks/voiceagent.js.map +1 -1
  61. package/dist/module/index.js +8 -3
  62. package/dist/module/index.js.map +1 -1
  63. package/dist/module/utils/constant.js +6 -1
  64. package/dist/module/utils/constant.js.map +1 -1
  65. package/dist/module/utils/permision.js +42 -1
  66. package/dist/module/utils/permision.js.map +1 -1
  67. package/dist/module/utils/reanimated.helper.js +4 -0
  68. package/dist/module/utils/reanimated.helper.js.map +1 -1
  69. package/dist/typescript/src/api/api.d.ts.map +1 -1
  70. package/dist/typescript/src/components/DynamicComponent/Typewriter.d.ts +15 -0
  71. package/dist/typescript/src/components/DynamicComponent/Typewriter.d.ts.map +1 -0
  72. package/dist/typescript/src/components/Embed/EmbedButton.d.ts +7 -1
  73. package/dist/typescript/src/components/Embed/EmbedButton.d.ts.map +1 -1
  74. package/dist/typescript/src/components/styles/EmbedButton.style.d.ts +22 -114
  75. package/dist/typescript/src/components/styles/EmbedButton.style.d.ts.map +1 -1
  76. package/dist/typescript/src/context/EmbedProvider.d.ts +30 -0
  77. package/dist/typescript/src/context/EmbedProvider.d.ts.map +1 -1
  78. package/dist/typescript/src/events/__tests__/agent-event-emitter.test.d.ts +5 -0
  79. package/dist/typescript/src/events/__tests__/agent-event-emitter.test.d.ts.map +1 -0
  80. package/dist/typescript/src/events/__tests__/clickEventTracker.test.d.ts +5 -0
  81. package/dist/typescript/src/events/__tests__/clickEventTracker.test.d.ts.map +1 -0
  82. package/dist/typescript/src/events/__tests__/embed.event.test.d.ts +5 -0
  83. package/dist/typescript/src/events/__tests__/embed.event.test.d.ts.map +1 -0
  84. package/dist/typescript/src/events/__tests__/embed.validators.test.d.ts +5 -0
  85. package/dist/typescript/src/events/__tests__/embed.validators.test.d.ts.map +1 -0
  86. package/dist/typescript/src/events/clickEventTracker.d.ts +70 -0
  87. package/dist/typescript/src/events/clickEventTracker.d.ts.map +1 -0
  88. package/dist/typescript/src/events/embed.event.d.ts.map +1 -1
  89. package/dist/typescript/src/hooks/EmbedButton.animations.d.ts +29 -6
  90. package/dist/typescript/src/hooks/EmbedButton.animations.d.ts.map +1 -1
  91. package/dist/typescript/src/hooks/EmbedButton.helpers.d.ts +60 -8
  92. package/dist/typescript/src/hooks/EmbedButton.helpers.d.ts.map +1 -1
  93. package/dist/typescript/src/hooks/EmbedButton.hooks.d.ts +2 -1
  94. package/dist/typescript/src/hooks/EmbedButton.hooks.d.ts.map +1 -1
  95. package/dist/typescript/src/hooks/types/voiceAgent.types.d.ts +2 -0
  96. package/dist/typescript/src/hooks/types/voiceAgent.types.d.ts.map +1 -1
  97. package/dist/typescript/src/hooks/voiceagent.d.ts.map +1 -1
  98. package/dist/typescript/src/index.d.ts +8 -9
  99. package/dist/typescript/src/index.d.ts.map +1 -1
  100. package/dist/typescript/src/utils/constant.d.ts +1 -1
  101. package/dist/typescript/src/utils/constant.d.ts.map +1 -1
  102. package/dist/typescript/src/utils/permision.d.ts.map +1 -1
  103. package/dist/typescript/src/utils/reanimated.helper.d.ts +2 -0
  104. package/dist/typescript/src/utils/reanimated.helper.d.ts.map +1 -1
  105. package/package.json +3 -8
  106. package/react-native.config.js +1 -0
  107. package/revrag-ai-embed-react-native.podspec +1 -0
  108. package/src/assets/fonts/PlaywriteNZBasic-ExtraLight.ttf +0 -0
  109. package/src/assets/fonts/PlaywriteNZBasic-Light.ttf +0 -0
  110. package/src/assets/fonts/PlaywriteNZBasic-Regular.ttf +0 -0
  111. package/src/assets/fonts/PlaywriteNZBasic-Thin.ttf +0 -0
@@ -3,28 +3,80 @@
3
3
  * @description Helper functions and utilities for the EmbedButton component
4
4
  */
5
5
  export declare const SCREEN_WIDTH: number, SCREEN_HEIGHT: number;
6
+ /** Bottom inset when expanded so host app footer remains visible */
7
+ export declare const FOOTER_SAFE_INSET = 80;
6
8
  export declare const BUTTON_DIMENSIONS: {
7
9
  readonly WIDTH: 60;
8
10
  readonly HEIGHT: 60;
9
11
  readonly EXPANDED_WIDTH: number;
12
+ /** Height of the card when input section is expanded (connected state) */
13
+ readonly EXPANDED_VERTICAL_HEIGHT: 520;
14
+ /** Height of the input area when expanded */
15
+ readonly INPUT_SECTION_HEIGHT: 280;
10
16
  };
11
17
  export declare const ICON_URLS: {
12
18
  readonly MIC_ON: "https://revrag-dev.s3.ap-south-1.amazonaws.com/Avatars/Mute+button.png";
13
19
  readonly MIC_OFF: "https://revrag-dev.s3.ap-south-1.amazonaws.com/Avatars/unmute.png";
14
20
  readonly END_CALL: "https://revrag-dev.s3.ap-south-1.amazonaws.com/Avatars/end+button.png";
15
21
  readonly AMPLIFY_ANIMATION: "https://revrag-dev.s3.ap-south-1.amazonaws.com/Avatars/amplify.json";
22
+ readonly CLOSE_ICON: "https://revrag-dev.s3.ap-south-1.amazonaws.com/Avatars/close.png";
16
23
  };
17
24
  export declare const DEFAULT_GRADIENT_COLORS: string[];
18
25
  export declare const DEFAULT_POPUP_DELAY_MS = 15000;
26
+ export interface AgentAvatarConfig {
27
+ avatarImage: string;
28
+ avatarType: string;
29
+ }
30
+ export interface AgentTextContentConfig {
31
+ agentName: string;
32
+ agentType: string;
33
+ buttonText: string;
34
+ }
35
+ export interface CollapsedViewConfig {
36
+ isCollapsed: boolean;
37
+ inactivityBehavior: 'show_popup' | 'auto_trigger' | 'none';
38
+ tooltipMessage: string;
39
+ nudgeDelay: number;
40
+ }
41
+ export interface ColorPaletteConfig {
42
+ backgroundColor: string;
43
+ borderColor: string;
44
+ borderRadius: number;
45
+ buttonColor: string;
46
+ buttonTextColor: string;
47
+ fillType: string;
48
+ grad1: string;
49
+ grad2: string;
50
+ textColor: string;
51
+ tooltipBackgroundColor: string;
52
+ tooltipTextColor: string;
53
+ }
54
+ export interface FieldError {
55
+ hasError: boolean;
56
+ message: string;
57
+ }
58
+ export interface ErrorsConfig {
59
+ agentName: FieldError;
60
+ agentType: FieldError;
61
+ borderRadius: FieldError;
62
+ buttonText: FieldError;
63
+ }
64
+ export interface PositionConfig {
65
+ bottomPadding: number;
66
+ rightPadding: number;
67
+ widgetPosition: string;
68
+ }
69
+ export interface AgentAvatarConfig {
70
+ avatarUrl: string;
71
+ avatarType: string;
72
+ }
19
73
  export interface ConfigData {
20
- inactivity_behaviour?: 'show_popup' | 'auto_trigger' | 'none';
21
- popup_delay_ms?: number | string;
22
- popup_description?: string;
23
- icon_animation?: string;
24
- gradient?: string[];
25
- agent_name?: string;
26
- agent_type?: string;
27
- connect_button_title?: string;
74
+ agentAvatar?: AgentAvatarConfig;
75
+ agentTextContent?: AgentTextContentConfig;
76
+ collapsedView?: CollapsedViewConfig;
77
+ colorPalette?: ColorPaletteConfig;
78
+ errors?: ErrorsConfig;
79
+ position?: PositionConfig;
28
80
  }
29
81
  /**
30
82
  * Safely parse delay value to ensure it's a valid number
@@ -1 +1 @@
1
- {"version":3,"file":"EmbedButton.helpers.d.ts","sourceRoot":"","sources":["../../../../src/hooks/EmbedButton.helpers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,eAAO,MAAe,YAAY,UAAU,aAAa,QAC/B,CAAC;AAE3B,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AAEX,eAAO,MAAM,SAAS;;;;;CAQZ,CAAC;AAEX,eAAO,MAAM,uBAAuB,UAAyB,CAAC;AAE9D,eAAO,MAAM,sBAAsB,QAAQ,CAAC;AAG5C,MAAM,WAAW,UAAU;IACzB,oBAAoB,CAAC,EAAE,YAAY,GAAG,cAAc,GAAG,MAAM,CAAC;IAC9D,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAID;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,MAAM,GAAG,MAAM,GAAG,SAAS,KAAG,MAOjE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,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AAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK,GAAI,OAAO,MAAM,EAAE,KAAK,MAAM,EAAE,KAAK,MAAM,KAAG,MAG/D,CAAC"}
@@ -33,6 +33,7 @@ export declare const useInactivityBehavior: ({ configData, isOpen, isLoading, ha
33
33
  * Hook to manage call lifecycle (start, end, mute)
34
34
  */
35
35
  interface UseCallManagementParams {
36
+ isOpen: boolean;
36
37
  initializeVoiceAgent: () => Promise<void>;
37
38
  endCall: () => Promise<void>;
38
39
  muteMic: () => void;
@@ -41,7 +42,7 @@ interface UseCallManagementParams {
41
42
  resetDuration: () => void;
42
43
  setIsOpen: (open: boolean) => void;
43
44
  }
44
- export declare const useCallManagement: ({ initializeVoiceAgent, endCall, muteMic, unmuteMic, isMicMuted, resetDuration, setIsOpen, }: UseCallManagementParams) => {
45
+ export declare const useCallManagement: ({ isOpen, initializeVoiceAgent, endCall, muteMic, unmuteMic, isMicMuted, resetDuration, setIsOpen, }: UseCallManagementParams) => {
45
46
  handleStartCall: () => Promise<void>;
46
47
  handleEndCall: () => Promise<void>;
47
48
  handleMicToggle: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"EmbedButton.hooks.d.ts","sourceRoot":"","sources":["../../../../src/hooks/EmbedButton.hooks.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAIxD;;GAEG;AACH,eAAO,MAAM,aAAa,yBAiBzB,CAAC;AAGF;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,iBAAiB,eAAe;;;CAoC/D,CAAC;AAGF;;GAEG;AACH,UAAU,2BAA2B;IACnC,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,WAAW,EAAE,M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,oBAAoB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,SAAS,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACpC;AAED,eAAO,MAAM,iBAAiB,GAAI,sGAS/B,uBAAuB;;;;CA6BzB,CAAC"}
@@ -10,10 +10,12 @@ export type UseVoiceAgentReturn = {
10
10
  room: Room;
11
11
  roomRef: RefObject<Room>;
12
12
  isMicMuted: boolean;
13
+ dataTranscription: Record<string, any>;
13
14
  muteMic: () => void;
14
15
  unmuteMic: () => void;
15
16
  connectionState: ConnectionState;
16
17
  cleanup: () => void;
18
+ clearDataReceived: () => void;
17
19
  getPopupDescription: () => Promise<string>;
18
20
  };
19
21
  //# sourceMappingURL=voiceAgent.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"voiceAgent.types.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/types/voiceAgent.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,MAAM,mBAAmB,GAAG;IAChC,oBAAoB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,YAAY,EAAE,YAAY,GAAG,IAAI,CAAC;IAClC,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,IAAI,E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AAC;CAC5C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"voiceagent.d.ts","sourceRoot":"","sources":["../../../../src/hooks/voiceagent.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AA+IpE,eAAO,MAAM,aAAa,QAAO,mBA0WhC,CAAC"}
1
+ {"version":3,"file":"voiceagent.d.ts","sourceRoot":"","sources":["../../../../src/hooks/voiceagent.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AA+IpE,eAAO,MAAM,aAAa,QAAO,mBAuYhC,CAAC"}
@@ -1,15 +1,14 @@
1
- import EmbedProvider from './context/EmbedProvider';
1
+ import type { ApiResponse, RegisterRequest, TokenDetails, UpdateDataRequest } from './api/types/embed.api.types';
2
2
  import { EmbedButton } from './components/Embed/EmbedButton';
3
+ import type { EmbedButtonInset } from './components/styles/EmbedButton.style';
4
+ import type { EmbedButtonContinuity, EmbedButtonDelayPolicy, EmbedButtonGroupConfig, EmbedButtonVisibilityConfig } from './context/EmbedProvider';
5
+ import EmbedProvider from './context/EmbedProvider';
6
+ import type { AgentConnectedData, AgentDisconnectedData, PopupMessageVisibleData } from './events/embed.event';
7
+ import Embed, { AgentEvent, EventKeys } from './events/embed.event';
3
8
  import { useInitialize } from './hooks/initialize';
4
- import Embed, { EventKeys, AgentEvent } from './events/embed.event';
5
- import type { RegisterRequest } from './api/types/embed.api.types';
6
- import type { UpdateDataRequest } from './api/types/embed.api.types';
7
- import type { TokenDetails } from './api/types/embed.api.types';
8
9
  import type { UseInitializeProps } from './hooks/types/initialize.types';
9
10
  import type { UseVoiceAgentReturn } from './hooks/types/voiceAgent.types';
10
- import type { ApiResponse } from './api/types/embed.api.types';
11
11
  import { checkPermissions } from './utils/permision';
12
- import type { AgentConnectedData, AgentDisconnectedData, PopupMessageVisibleData } from './events/embed.event';
13
- export { EmbedButton, EmbedProvider, useInitialize, Embed, EventKeys as EmbedEventKeys, AgentEvent, checkPermissions, };
14
- export type { UseInitializeProps, UseVoiceAgentReturn, ApiResponse, RegisterRequest, TokenDetails, UpdateDataRequest, AgentConnectedData, AgentDisconnectedData, PopupMessageVisibleData, };
12
+ export { AgentEvent, checkPermissions, Embed, EmbedButton, EventKeys as EmbedEventKeys, EmbedProvider, useInitialize, };
13
+ export type { AgentConnectedData, AgentDisconnectedData, ApiResponse, EmbedButtonContinuity, EmbedButtonDelayPolicy, EmbedButtonGroupConfig, EmbedButtonInset, EmbedButtonVisibilityConfig, PopupMessageVisibleData, RegisterRequest, TokenDetails, UpdateDataRequest, UseInitializeProps, UseVoiceAgentReturn, };
15
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EACV,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,sB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rB,WAAW,EACX,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,gBAAgB,EAChB,2BAA2B,EAC3B,uBAAuB,EACvB,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,GACpB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export declare const SDK_NAME = "embed_react_native";
2
- export declare const SDK_VERSION = "1.0.27";
2
+ export declare const SDK_VERSION = "1.0.28";
3
3
  export declare const SDK_PLATFORM = "react_native";
4
4
  export declare const DEFAULT_EMBED_URL = "https://embed.revrag.ai";
5
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"constant.d.ts","sourceRoot":"","sources":["../../../../src/utils/constant.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,uBAAuB,CAAC;AAC7C,eAAO,MAAM,WAAW,WAAW,CAAC;AAEpC,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,iBAAiB,4BAA4B,CAAC;AAE3D;;GAEG;AACH,wBAAgB,eAAe,IAAI,MAAM,CAExC;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE;QACH,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;QACpB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC,MAAM,EAA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CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE;QACH,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;QACpB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC/B,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE5B;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,uBAAuB,GAC9B,YAAY,CAsFd"}
@@ -1 +1 @@
1
- {"version":3,"file":"permision.d.ts","sourceRoot":"","sources":["../../../../src/utils/permision.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,QAAa,OAAO,CAAC,IAAI,CAuCrD,CAAC"}
1
+ {"version":3,"file":"permision.d.ts","sourceRoot":"","sources":["../../../../src/utils/permision.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,QAAa,OAAO,CAAC,IAAI,CA0CrD,CAAC"}
@@ -9,6 +9,8 @@ interface ReanimatedAPI {
9
9
  withSpring: any;
10
10
  withRepeat: any;
11
11
  withSequence: any;
12
+ withDelay: any;
13
+ interpolate: any;
12
14
  runOnJS: any;
13
15
  Easing: any;
14
16
  Animated: any;
@@ -1 +1 @@
1
- {"version":3,"file":"reanimated.helper.d.ts","sourceRoot":"","sources":["../../../../src/utils/reanimated.helper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,UAAU,aAAa;IACrB,cAAc,EAAE,GAAG,CAAC;IACpB,gBAAgB,EAAE,GAAG,CAAC;IACtB,UAAU,EAAE,GAAG,CAAC;IAChB,UAAU,EAAE,GAAG,CAAC;IAChB,UAAU,EAAE,GAAG,CAAC;IAChB,YAAY,EAAE,GAAG,CAAC;IAClB,OAAO,EAAE,GAAG,CAAC;IACb,MAAM,EAAE,GAAG,CAAC;IACZ,QAAQ,EAAE,GAAG,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;CACtB;AAID;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,aAAa,CAoDhD;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAG9C;AAED;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,IAAI,CAe/C"}
1
+ {"version":3,"file":"reanimated.helper.d.ts","sourceRoot":"","sources":["../../../../src/utils/reanimated.helper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,UAAU,aAAa;IACrB,cAAc,EAAE,GAAG,CAAC;IACpB,gBAAgB,EAAE,GAAG,CAAC;IACtB,UAAU,EAAE,GAAG,CAAC;IAChB,UAAU,EAAE,GAAG,CAAC;IAChB,UAAU,EAAE,GAAG,CAAC;IAChB,YAAY,EAAE,GAAG,CAAC;IAClB,SAAS,EAAE,GAAG,CAAC;IACf,WAAW,EAAE,GAAG,CAAC;IACjB,OAAO,EAAE,GAAG,CAAC;IACb,MAAM,EAAE,GAAG,CAAC;IACZ,QAAQ,EAAE,GAAG,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;CACtB;AAID;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,aAAa,CAwDhD;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAG9C;AAED;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,IAAI,CAe/C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revrag-ai/embed-react-native",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "source": "./src/index.tsx",
5
5
  "description": "A powerful React Native library for integrating AI-powered voice agents into mobile applications. Features real-time voice communication, intelligent speech processing, customizable UI components, and comprehensive event handling for building conversational AI experiences.",
6
6
  "main": "./dist/commonjs/index.js",
@@ -24,6 +24,7 @@
24
24
  },
25
25
  "files": [
26
26
  "dist",
27
+ "src/assets",
27
28
  "android/build.gradle",
28
29
  "android/CMakeLists.txt",
29
30
  "android/cpp-adapter.cpp",
@@ -118,6 +119,7 @@
118
119
  "react-native-reanimated": "~3.15.1",
119
120
  "react-native-safe-area-context": "^4.12.0",
120
121
  "release-it": "^15.0.0",
122
+ "ts-jest": "^29.4.6",
121
123
  "typescript": "^5.2.2"
122
124
  },
123
125
  "resolutions": {
@@ -139,13 +141,6 @@
139
141
  "example"
140
142
  ],
141
143
  "packageManager": "yarn@3.6.1",
142
- "jest": {
143
- "preset": "react-native",
144
- "modulePathIgnorePatterns": [
145
- "<rootDir>/example/node_modules",
146
- "<rootDir>/dist/"
147
- ]
148
- },
149
144
  "commitlint": {
150
145
  "extends": [
151
146
  "@commitlint/config-conventional"
@@ -2,6 +2,7 @@
2
2
  * @type {import('@react-native-community/cli-types').UserDependencyConfig}
3
3
  */
4
4
  module.exports = {
5
+ assets: ['./src/assets/fonts'],
5
6
  dependency: {
6
7
  platforms: {
7
8
  android: {
@@ -15,6 +15,7 @@ Pod::Spec.new do |s|
15
15
  s.source = { :git => "https://github.com/orgs/RevRag-ai/dashboard.git", :tag => "#{s.version}" }
16
16
 
17
17
  s.source_files = "ios/**/*.{h,m,mm}", "cpp/**/*.{hpp,cpp,c,h}"
18
+ s.resources = "src/assets/fonts/**/*.ttf"
18
19
 
19
20
  # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
20
21
  # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.