quickblox-react-ui-kit 0.4.0 → 0.4.1

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.
@@ -6,20 +6,50 @@ export type ProxyConfig = {
6
6
  port: string;
7
7
  };
8
8
  export interface WidgetConfig {
9
+ smartChatAssistantId: string;
10
+ /**
11
+ * @deprecated This field will be deprecated in a future release. Please avoid using it.
12
+ */
9
13
  organizationName: string;
14
+ /**
15
+ * @deprecated This field will be deprecated in a future release. Please avoid using it.
16
+ */
10
17
  openAIModel: string;
18
+ /**
19
+ * @deprecated This field will be deprecated in a future release. Please avoid using it.
20
+ */
11
21
  apiKey: string;
22
+ /**
23
+ * @deprecated This field will be deprecated in a future release. Please avoid using it.
24
+ */
12
25
  maxTokens: number;
26
+ /**
27
+ * @deprecated This field will be deprecated in a future release. Please avoid using it.
28
+ */
13
29
  useDefault: boolean;
30
+ /**
31
+ * @deprecated This field will be deprecated in a future release. Please avoid using it.
32
+ */
14
33
  proxyConfig: ProxyConfig;
15
- smartChatAssistantId: string;
16
34
  }
17
35
  export interface AITranslateWidgetConfig extends WidgetConfig {
36
+ /**
37
+ * @deprecated This field will be deprecated in a future release. Please avoid using it.
38
+ */
18
39
  defaultLanguage: string;
40
+ /**
41
+ * @deprecated This field will be deprecated in a future release. Please avoid using it.
42
+ */
19
43
  languages: string[];
20
44
  }
21
45
  export interface AIRephraseWidgetConfig extends WidgetConfig {
46
+ /**
47
+ * @deprecated This field will be deprecated in a future release. Please avoid using it.
48
+ */
22
49
  defaultTone: string;
50
+ /**
51
+ * @deprecated This field will be deprecated in a future release. Please avoid using it.
52
+ */
23
53
  Tones: Tone[];
24
54
  }
25
55
  export interface QBUIKitConfig extends QBConfig {
@@ -9,5 +9,5 @@ interface TextFieldProps extends Omit<HTMLInputProps, 'onChange'> {
9
9
  value: string;
10
10
  onChange: (value: string) => void;
11
11
  }
12
- declare const TextField: import("react").ForwardRefExoticComponent<Pick<TextFieldProps, "id" | "name" | "size" | "type" | "value" | "children" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "className" | "onClick" | "key" | "color" | "height" | "translate" | "width" | "onChange" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "disabled" | "enterKeyHint" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "placeholder" | "readOnly" | "required" | "src" | "step" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "icon" | "loading"> & import("react").RefAttributes<HTMLInputElement>>;
12
+ declare const TextField: import("react").ForwardRefExoticComponent<Pick<TextFieldProps, "id" | "name" | "size" | "type" | "value" | "children" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "loading" | "width" | "hidden" | "color" | "icon" | "multiple" | "disabled" | "className" | "onClick" | "key" | "height" | "translate" | "onChange" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "enterKeyHint" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "max" | "maxLength" | "min" | "minLength" | "placeholder" | "readOnly" | "required" | "src" | "step" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("react").RefAttributes<HTMLInputElement>>;
13
13
  export default TextField;
package/dist/index-ui.js CHANGED
@@ -10423,9 +10423,9 @@ var DefaultConfigurations = /** @class */ (function () {
10423
10423
  },
10424
10424
  configAIApi: {
10425
10425
  AIAnswerAssistWidgetConfig: {
10426
+ smartChatAssistantId: '',
10426
10427
  organizationName: 'Quickblox',
10427
10428
  openAIModel: 'gpt-3.5-turbo',
10428
- smartChatAssistantId: '',
10429
10429
  apiKey: '',
10430
10430
  maxTokens: 3584,
10431
10431
  useDefault: true,
@@ -10436,9 +10436,9 @@ var DefaultConfigurations = /** @class */ (function () {
10436
10436
  },
10437
10437
  },
10438
10438
  AITranslateWidgetConfig: {
10439
+ smartChatAssistantId: '',
10439
10440
  organizationName: 'Quickblox',
10440
10441
  openAIModel: 'gpt-3.5-turbo',
10441
- smartChatAssistantId: '',
10442
10442
  apiKey: '',
10443
10443
  maxTokens: 3584,
10444
10444
  useDefault: true,
@@ -10456,9 +10456,9 @@ var DefaultConfigurations = /** @class */ (function () {
10456
10456
  // },
10457
10457
  },
10458
10458
  AIRephraseWidgetConfig: {
10459
+ smartChatAssistantId: '',
10459
10460
  organizationName: 'Quickblox',
10460
10461
  openAIModel: 'gpt-3.5-turbo',
10461
- smartChatAssistantId: '',
10462
10462
  apiKey: '',
10463
10463
  maxTokens: 3584,
10464
10464
  useDefault: true,
@@ -33001,9 +33001,9 @@ var QBConfig = {
33001
33001
  },
33002
33002
  configAIApi: {
33003
33003
  AIAnswerAssistWidgetConfig: {
33004
+ smartChatAssistantId: '',
33004
33005
  organizationName: 'Quickblox',
33005
33006
  openAIModel: 'gpt-3.5-turbo',
33006
- smartChatAssistantId: '',
33007
33007
  apiKey: '',
33008
33008
  maxTokens: 3584,
33009
33009
  useDefault: true,
@@ -33014,9 +33014,9 @@ var QBConfig = {
33014
33014
  },
33015
33015
  },
33016
33016
  AITranslateWidgetConfig: {
33017
+ smartChatAssistantId: '',
33017
33018
  organizationName: 'Quickblox',
33018
33019
  openAIModel: 'gpt-3.5-turbo',
33019
- smartChatAssistantId: '',
33020
33020
  apiKey: '',
33021
33021
  maxTokens: 3584,
33022
33022
  useDefault: true,
@@ -33034,16 +33034,11 @@ var QBConfig = {
33034
33034
  servername: 'https://api.openai.com/',
33035
33035
  port: '',
33036
33036
  },
33037
- // proxyConfig: {
33038
- // api: 'v1/chat/completions',
33039
- // servername: 'http://localhost',
33040
- // port: '3012',
33041
- // },
33042
33037
  },
33043
33038
  AIRephraseWidgetConfig: {
33039
+ smartChatAssistantId: '',
33044
33040
  organizationName: 'Quickblox',
33045
33041
  openAIModel: 'gpt-3.5-turbo',
33046
- smartChatAssistantId: '',
33047
33042
  apiKey: '',
33048
33043
  maxTokens: 3584,
33049
33044
  useDefault: true,