@micromag/screen-conversation 0.3.619 → 0.3.628
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/es/index.js +37 -37
- package/package.json +13 -13
package/es/index.js
CHANGED
|
@@ -3,10 +3,10 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
3
3
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
4
4
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
|
-
import PropTypes
|
|
6
|
+
import PropTypes from 'prop-types';
|
|
7
7
|
import React, { useState, useMemo, useEffect, useRef, useCallback } from 'react';
|
|
8
8
|
import { v1 } from 'uuid';
|
|
9
|
-
import { PropTypes } from '@micromag/core';
|
|
9
|
+
import { PropTypes as PropTypes$1 } from '@micromag/core';
|
|
10
10
|
import { Button, PlayIcon, PauseIcon, ScreenElement, Transitions } from '@micromag/core/components';
|
|
11
11
|
import { useScreenSize, useViewerContext, useViewerWebView, usePlaybackContext, usePlaybackMediaRef, useScreenRenderContext } from '@micromag/core/contexts';
|
|
12
12
|
import { useTrackScreenEvent, useDimensionObserver } from '@micromag/core/hooks';
|
|
@@ -23,13 +23,13 @@ import Text from '@micromag/element-text';
|
|
|
23
23
|
import Visual from '@micromag/element-visual';
|
|
24
24
|
import Audio from '@micromag/element-audio';
|
|
25
25
|
|
|
26
|
-
var styles = {"container":"micromag-screen-conversation-container","background":"micromag-screen-conversation-background","disabled":"micromag-screen-conversation-disabled","
|
|
26
|
+
var styles = {"container":"micromag-screen-conversation-container","background":"micromag-screen-conversation-background","disabled":"micromag-screen-conversation-disabled","content":"micromag-screen-conversation-content","empty":"micromag-screen-conversation-empty","title":"micromag-screen-conversation-title","footer":"micromag-screen-conversation-footer","layout":"micromag-screen-conversation-layout","messageContainer":"micromag-screen-conversation-messageContainer","message":"micromag-screen-conversation-message","normalLeft":"micromag-screen-conversation-normalLeft","inBetweenLeft":"micromag-screen-conversation-inBetweenLeft","normalRight":"micromag-screen-conversation-normalRight","inBetweenRight":"micromag-screen-conversation-inBetweenRight","last":"micromag-screen-conversation-last","speakerDetails":"micromag-screen-conversation-speakerDetails","right":"micromag-screen-conversation-right","avatarContainer":"micromag-screen-conversation-avatarContainer","avatar":"micromag-screen-conversation-avatar","imageContainer":"micromag-screen-conversation-imageContainer","withAnimation":"micromag-screen-conversation-withAnimation","loadingContainer":"micromag-screen-conversation-loadingContainer","loading":"micromag-screen-conversation-loading","dot":"micromag-screen-conversation-dot","loadingSpeakerName":"micromag-screen-conversation-loadingSpeakerName","audioMessageContainer":"micromag-screen-conversation-audioMessageContainer","playButtonContainer":"micromag-screen-conversation-playButtonContainer","audioMessage":"micromag-screen-conversation-audioMessage","icon":"micromag-screen-conversation-icon","audioAttachment":"micromag-screen-conversation-audioAttachment","beforeText":"micromag-screen-conversation-beforeText","afterText":"micromag-screen-conversation-afterText"};
|
|
27
27
|
|
|
28
28
|
var propTypes$2 = {
|
|
29
|
-
audio: PropTypes.audioMedia,
|
|
30
|
-
audioEventsChannelName: PropTypes
|
|
31
|
-
messageId: PropTypes
|
|
32
|
-
nextAudioMessageId: PropTypes
|
|
29
|
+
audio: PropTypes$1.audioMedia,
|
|
30
|
+
audioEventsChannelName: PropTypes.string,
|
|
31
|
+
messageId: PropTypes.string,
|
|
32
|
+
nextAudioMessageId: PropTypes.string
|
|
33
33
|
};
|
|
34
34
|
var defaultProps$2 = {
|
|
35
35
|
audio: null,
|
|
@@ -110,24 +110,24 @@ ConversationAudioAttachment.propTypes = propTypes$2;
|
|
|
110
110
|
ConversationAudioAttachment.defaultProps = defaultProps$2;
|
|
111
111
|
|
|
112
112
|
var propTypes$1 = {
|
|
113
|
-
message: PropTypes.conversationMessage,
|
|
114
|
-
messageId: PropTypes
|
|
115
|
-
previousMessage: PropTypes.conversationMessage,
|
|
116
|
-
nextMessage: PropTypes.conversationMessage,
|
|
117
|
-
nextAudioMessageId: PropTypes
|
|
118
|
-
nextMessageState: PropTypes
|
|
119
|
-
currentSpeaker: PropTypes.speaker,
|
|
113
|
+
message: PropTypes$1.conversationMessage,
|
|
114
|
+
messageId: PropTypes.string,
|
|
115
|
+
previousMessage: PropTypes$1.conversationMessage,
|
|
116
|
+
nextMessage: PropTypes$1.conversationMessage,
|
|
117
|
+
nextAudioMessageId: PropTypes.string,
|
|
118
|
+
nextMessageState: PropTypes.bool,
|
|
119
|
+
currentSpeaker: PropTypes$1.speaker,
|
|
120
120
|
// state: PropTypes.oneOf(['pause', 'typing', 'send']),
|
|
121
|
-
conversationTiming: PropTypes
|
|
122
|
-
typingTiming: PropTypes
|
|
123
|
-
onChange: PropTypes
|
|
124
|
-
withAnimation: PropTypes
|
|
125
|
-
active: PropTypes
|
|
126
|
-
isPlaying: PropTypes
|
|
127
|
-
speakerStyle: PropTypes.textStyle,
|
|
128
|
-
messageStyle: PropTypes.textStyle,
|
|
129
|
-
className: PropTypes
|
|
130
|
-
audioEventsChannelName: PropTypes
|
|
121
|
+
conversationTiming: PropTypes.number,
|
|
122
|
+
typingTiming: PropTypes.number,
|
|
123
|
+
onChange: PropTypes.func,
|
|
124
|
+
withAnimation: PropTypes.bool,
|
|
125
|
+
active: PropTypes.bool,
|
|
126
|
+
isPlaying: PropTypes.bool,
|
|
127
|
+
speakerStyle: PropTypes$1.textStyle,
|
|
128
|
+
messageStyle: PropTypes$1.textStyle,
|
|
129
|
+
className: PropTypes.string,
|
|
130
|
+
audioEventsChannelName: PropTypes.string
|
|
131
131
|
};
|
|
132
132
|
var defaultProps$1 = {
|
|
133
133
|
message: null,
|
|
@@ -282,19 +282,19 @@ ConversationMessage.defaultProps = defaultProps$1;
|
|
|
282
282
|
var propTypes = {
|
|
283
283
|
// id: PropTypes.string,
|
|
284
284
|
// layout: PropTypes.oneOf(['normal']),
|
|
285
|
-
title: PropTypes.headingElement,
|
|
286
|
-
timing: PropTypes
|
|
287
|
-
readingSpeed: PropTypes
|
|
288
|
-
spacing: PropTypes
|
|
289
|
-
background: PropTypes.backgroundElement,
|
|
290
|
-
header: PropTypes.header,
|
|
291
|
-
footer: PropTypes.footer,
|
|
292
|
-
current: PropTypes
|
|
293
|
-
preload: PropTypes
|
|
294
|
-
type: PropTypes
|
|
295
|
-
conversation: PropTypes.conversation,
|
|
296
|
-
transitions: PropTypes.transitions,
|
|
297
|
-
className: PropTypes
|
|
285
|
+
title: PropTypes$1.headingElement,
|
|
286
|
+
timing: PropTypes.oneOf(['instant', 'sequence']),
|
|
287
|
+
readingSpeed: PropTypes.number,
|
|
288
|
+
spacing: PropTypes.number,
|
|
289
|
+
background: PropTypes$1.backgroundElement,
|
|
290
|
+
header: PropTypes$1.header,
|
|
291
|
+
footer: PropTypes$1.footer,
|
|
292
|
+
current: PropTypes.bool,
|
|
293
|
+
preload: PropTypes.bool,
|
|
294
|
+
type: PropTypes.string,
|
|
295
|
+
conversation: PropTypes$1.conversation,
|
|
296
|
+
transitions: PropTypes$1.transitions,
|
|
297
|
+
className: PropTypes.string
|
|
298
298
|
};
|
|
299
299
|
var defaultProps = {
|
|
300
300
|
// layout: 'normal',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-conversation",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.628",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -60,17 +60,17 @@
|
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@babel/runtime": "^7.13.10",
|
|
63
|
-
"@micromag/core": "^0.3.
|
|
64
|
-
"@micromag/element-background": "^0.3.
|
|
65
|
-
"@micromag/element-container": "^0.3.
|
|
66
|
-
"@micromag/element-footer": "^0.3.
|
|
67
|
-
"@micromag/element-header": "^0.3.
|
|
68
|
-
"@micromag/element-heading": "^0.3.
|
|
69
|
-
"@micromag/element-layout": "^0.3.
|
|
70
|
-
"@micromag/element-scroll": "^0.3.
|
|
71
|
-
"@micromag/element-text": "^0.3.
|
|
72
|
-
"@micromag/element-visual": "^0.3.
|
|
73
|
-
"@micromag/transforms": "^0.3.
|
|
63
|
+
"@micromag/core": "^0.3.628",
|
|
64
|
+
"@micromag/element-background": "^0.3.628",
|
|
65
|
+
"@micromag/element-container": "^0.3.628",
|
|
66
|
+
"@micromag/element-footer": "^0.3.628",
|
|
67
|
+
"@micromag/element-header": "^0.3.628",
|
|
68
|
+
"@micromag/element-heading": "^0.3.628",
|
|
69
|
+
"@micromag/element-layout": "^0.3.628",
|
|
70
|
+
"@micromag/element-scroll": "^0.3.628",
|
|
71
|
+
"@micromag/element-text": "^0.3.628",
|
|
72
|
+
"@micromag/element-visual": "^0.3.628",
|
|
73
|
+
"@micromag/transforms": "^0.3.628",
|
|
74
74
|
"classnames": "^2.2.6",
|
|
75
75
|
"lodash": "^4.17.21",
|
|
76
76
|
"prop-types": "^15.7.2",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"access": "public",
|
|
82
82
|
"registry": "https://registry.npmjs.org/"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "6f1230244a2966c16e85b7d44583276421a38cca"
|
|
85
85
|
}
|