@seamly/web-ui 20.2.0 → 20.4.0
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/build/dist/lib/deprecated-view.css +1 -1
- package/build/dist/lib/index.debug.js +211 -200
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.debug.min.js.LICENSE.txt +40 -36
- package/build/dist/lib/index.js +1811 -1137
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/index.min.js.LICENSE.txt +2 -2
- package/build/dist/lib/standalone.js +5167 -2856
- package/build/dist/lib/standalone.min.js +1 -1
- package/build/dist/lib/standalone.min.js.LICENSE.txt +1 -1
- package/build/dist/lib/style-guide.js +7427 -7243
- package/build/dist/lib/style-guide.min.js +1 -1
- package/build/dist/lib/styles.css +1 -1
- package/package.json +15 -14
- package/src/javascripts/api/index.js +5 -4
- package/src/javascripts/domains/app/actions.js +22 -10
- package/src/javascripts/domains/config/reducer.js +2 -2
- package/src/javascripts/domains/forms/reducer.js +1 -1
- package/src/javascripts/domains/i18n/reducer.js +1 -1
- package/src/javascripts/domains/interrupt/reducer.js +1 -1
- package/src/javascripts/domains/store/state-reducer.js +1 -0
- package/src/javascripts/domains/translations/components/chat-status.js +10 -9
- package/src/javascripts/domains/translations/components/options-button.js +8 -3
- package/src/javascripts/domains/translations/components/options-dialog/form.js +6 -5
- package/src/javascripts/domains/translations/components/options-dialog/index.js +5 -2
- package/src/javascripts/domains/translations/hooks.js +15 -1
- package/src/javascripts/domains/translations/middleware.js +5 -2
- package/src/javascripts/domains/translations/reducer.js +2 -2
- package/src/javascripts/domains/visibility/actions.js +1 -1
- package/src/javascripts/index.js +1 -0
- package/src/javascripts/lib/debug.js +1 -0
- package/src/javascripts/lib/external-api/index.js +29 -4
- package/src/javascripts/style-guide/components/app.js +1 -1
- package/src/javascripts/style-guide/components/static-core.js +1 -4
- package/src/javascripts/style-guide/states.js +25 -0
- package/src/javascripts/ui/components/conversation/conversation.js +11 -12
- package/src/javascripts/ui/components/conversation/event/card-component.js +4 -1
- package/src/javascripts/ui/components/conversation/event/carousel-component/index.js +1 -1
- package/src/javascripts/ui/components/conversation/event/conversation-suggestions.js +18 -10
- package/src/javascripts/ui/components/conversation/event/cta.js +1 -1
- package/src/javascripts/ui/components/conversation/event/divider/variants/new-translation.js +4 -9
- package/src/javascripts/ui/components/conversation/event/image.js +12 -4
- package/src/javascripts/ui/components/conversation/event/text.js +2 -2
- package/src/javascripts/ui/components/conversation/loader.js +1 -1
- package/src/javascripts/ui/components/conversation/message-container.js +1 -1
- package/src/javascripts/ui/components/core/seamly-activity-monitor.js +1 -1
- package/src/javascripts/ui/components/core/seamly-core.js +2 -2
- package/src/javascripts/ui/components/core/seamly-file-upload.js +1 -1
- package/src/javascripts/ui/components/core/seamly-instance-functions-loader.js +6 -2
- package/src/javascripts/ui/components/core/seamly-live-region.js +2 -2
- package/src/javascripts/ui/components/entry/entry-container.js +2 -2
- package/src/javascripts/ui/components/entry/text-entry/hooks.js +1 -4
- package/src/javascripts/ui/components/entry/text-entry/text-entry-form.js +7 -1
- package/src/javascripts/ui/components/form-controls/select.js +1 -1
- package/src/javascripts/ui/components/layout/agent-info.js +1 -1
- package/src/javascripts/ui/components/layout/header.js +1 -1
- package/src/javascripts/ui/components/options/options-button.js +1 -1
- package/src/javascripts/ui/components/options/options.js +1 -1
- package/src/javascripts/ui/components/options/transcript/index.js +1 -1
- package/src/javascripts/ui/components/suggestions/suggestions-item.js +1 -1
- package/src/javascripts/ui/components/view/index.js +2 -2
- package/src/javascripts/ui/components/warnings/resume-conversation-prompt.js +1 -1
- package/src/javascripts/ui/components/widgets/lightbox.js +1 -1
- package/src/javascripts/ui/hooks/file-upload-hooks.js +2 -3
- package/src/javascripts/ui/hooks/focus-helper-hooks.js +2 -2
- package/src/javascripts/ui/hooks/seamly-entry-hooks.js +1 -1
- package/src/javascripts/ui/hooks/seamly-option-hooks.js +1 -1
- package/src/javascripts/ui/hooks/seamly-state-hooks.js +3 -0
- package/src/javascripts/ui/hooks/use-seamly-chat.js +2 -2
- package/src/javascripts/ui/hooks/use-seamly-commands.js +7 -7
- package/src/javascripts/ui/hooks/use-seamly-idle-detach-countdown.js +4 -4
- package/src/javascripts/ui/hooks/use-seamly-resume-conversation-prompt.js +2 -2
- package/src/javascripts/ui/hooks/use-single-file-upload.js +1 -1
- package/src/javascripts/ui/utils/general-utils.js +1 -1
- package/src/javascripts/ui/utils/seamly-utils.js +9 -1
- package/src/stylesheets/1-settings/_animations.scss +1 -1
- package/src/stylesheets/1-settings/_config.scss +17 -2
- package/src/stylesheets/2-tools/_functions.scss +4 -4
- package/src/stylesheets/2-tools/_mixins.scss +16 -14
- package/src/stylesheets/3-chat/_chat.scss +1 -1
- package/src/stylesheets/5-components/_choice-prompt.scss +1 -1
- package/src/stylesheets/5-components/_collapse-button.scss +1 -1
- package/src/stylesheets/5-components/_input.scss +1 -1
- package/src/stylesheets/5-components/_loader.scss +2 -2
- package/src/stylesheets/5-components/_message-carousel.scss +1 -1
- package/src/stylesheets/5-components/_message-count.scss +6 -3
- package/src/stylesheets/5-components/_message.scss +1 -2
- package/src/stylesheets/5-components/_modal.scss +1 -1
- package/src/stylesheets/5-components/_options.scss +3 -3
- package/src/stylesheets/5-components/_suggestions.scss +4 -5
- package/src/stylesheets/5-components/_upload.scss +1 -1
- package/src/stylesheets/7-deprecated/1-settings/_animations.scss +1 -1
- package/src/stylesheets/7-deprecated/1-settings/_config.scss +10 -7
- package/src/stylesheets/7-deprecated/2-tools/_functions.scss +2 -2
- package/src/stylesheets/7-deprecated/2-tools/_mixins.scss +6 -4
- package/src/stylesheets/7-deprecated/3-app/_app.scss +2 -2
- package/src/stylesheets/7-deprecated/4-base/_formelements.scss +1 -0
- package/src/stylesheets/7-deprecated/5-components/_chat-status.scss +1 -1
- package/src/stylesheets/7-deprecated/5-components/_collapse-button.scss +1 -1
- package/src/stylesheets/7-deprecated/5-components/_disclaimer.scss +1 -1
- package/src/stylesheets/7-deprecated/5-components/_input.scss +2 -1
- package/src/stylesheets/7-deprecated/5-components/_loader.scss +2 -2
- package/src/stylesheets/7-deprecated/5-components/_message-count.scss +1 -1
- package/src/stylesheets/7-deprecated/5-components/_message.scss +3 -4
- package/src/stylesheets/7-deprecated/5-components/_modal.scss +1 -1
- package/src/stylesheets/7-deprecated/5-components/_options.scss +2 -2
- package/src/stylesheets/7-deprecated/5-components/_upload.scss +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// SET TEXT COLOR
|
|
5
5
|
|
|
6
6
|
@function set-text-color($color) {
|
|
7
|
-
@if
|
|
7
|
+
@if lightness($color) > 66.66 {
|
|
8
8
|
@return $grey-e;
|
|
9
9
|
} @else {
|
|
10
10
|
@return $white;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// SET BORDER COLOR
|
|
15
15
|
|
|
16
16
|
@function set-border-color($color) {
|
|
17
|
-
@if
|
|
17
|
+
@if lightness($color) > 66.66 {
|
|
18
18
|
@return $grey-c;
|
|
19
19
|
} @else {
|
|
20
20
|
@return $white;
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
@include media('>phablet-l') {
|
|
27
27
|
max-height: calc(#{$viewport-height} - #{$flex-spacer * 2});
|
|
28
|
+
|
|
28
29
|
// iOS Safari needs a bit more space
|
|
29
30
|
@supports (-webkit-overflow-scrolling: touch) {
|
|
30
31
|
max-height: calc(#{$viewport-height * 0.9} - #{$flex-spacer * 2});
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
right: $spacer;
|
|
36
37
|
bottom: $spacer;
|
|
37
38
|
max-height: calc(#{$viewport-height} - #{$spacer * 2});
|
|
39
|
+
|
|
38
40
|
// iOS Safari needs a bit more space
|
|
39
41
|
@supports (-webkit-overflow-scrolling: touch) {
|
|
40
42
|
max-height: calc(#{$viewport-height * 0.9} - #{$spacer * 2});
|
|
@@ -55,22 +57,22 @@
|
|
|
55
57
|
// -----------------
|
|
56
58
|
|
|
57
59
|
@mixin stylePlaceholder() {
|
|
58
|
-
|
|
60
|
+
&::input-placeholder {
|
|
59
61
|
// Chrome/Opera/Safari
|
|
60
62
|
@content;
|
|
61
63
|
}
|
|
62
64
|
|
|
63
|
-
|
|
65
|
+
&::placeholder {
|
|
64
66
|
// Firefox 19+
|
|
65
67
|
@content;
|
|
66
68
|
}
|
|
67
69
|
|
|
68
|
-
|
|
70
|
+
&:input-placeholder {
|
|
69
71
|
// IE 10+
|
|
70
72
|
@content;
|
|
71
73
|
}
|
|
72
74
|
|
|
73
|
-
|
|
75
|
+
&:placeholder {
|
|
74
76
|
// Firefox 18-
|
|
75
77
|
@content;
|
|
76
78
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/** See settings/_config.scss for vars */
|
|
2
2
|
$app-parts-padding: $spacer * 0.5;
|
|
3
3
|
$app-header-bgcolor: $brand3;
|
|
4
4
|
|
|
5
5
|
.#{$n}-app--deprecated {
|
|
6
|
-
@include responsiveAppSizing
|
|
6
|
+
@include responsiveAppSizing;
|
|
7
7
|
@include boxSizing;
|
|
8
8
|
|
|
9
9
|
display: flex;
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
color: $grey-e;
|
|
33
33
|
font-size: $fontsize-small;
|
|
34
34
|
resize: none;
|
|
35
|
+
|
|
35
36
|
// iOS will zoom in on focus if font-size below 16px, and not go back.
|
|
36
37
|
// User has to pinch to zoom out; bad UX.
|
|
37
38
|
// Do not change this:
|
|
@@ -39,7 +40,7 @@
|
|
|
39
40
|
font-size: 16px;
|
|
40
41
|
}
|
|
41
42
|
|
|
42
|
-
@include stylePlaceholder
|
|
43
|
+
@include stylePlaceholder {
|
|
43
44
|
overflow: visible;
|
|
44
45
|
color: $grey-c;
|
|
45
46
|
line-height: $spacer;
|
|
@@ -37,8 +37,8 @@ $loader-quarter-duration: $loader-animation-duration * 0.2;
|
|
|
37
37
|
animation-iteration-count: infinite;
|
|
38
38
|
animation-direction: normal;
|
|
39
39
|
animation-fill-mode: forwards;
|
|
40
|
-
border-radius: 50
|
|
41
|
-
background-color:
|
|
40
|
+
border-radius: 50%;
|
|
41
|
+
background-color: currentcolor;
|
|
42
42
|
|
|
43
43
|
&.#{$n}-one {
|
|
44
44
|
animation-delay: $loader-quarter-duration;
|
|
@@ -22,7 +22,7 @@ $messagecount-size: $spacer;
|
|
|
22
22
|
height: $messagecount-size;
|
|
23
23
|
transform: scale(1);
|
|
24
24
|
transition: transform 0.3s 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
25
|
-
border-radius: 50
|
|
25
|
+
border-radius: 50%;
|
|
26
26
|
background-color: $messagecount-bgcolor;
|
|
27
27
|
color: $messagecount-textcolor;
|
|
28
28
|
font-size: $fontsize-small;
|
|
@@ -4,8 +4,7 @@ $avatar-size: $badge-touch-size;
|
|
|
4
4
|
|
|
5
5
|
.#{$n}-message {
|
|
6
6
|
display: flex;
|
|
7
|
-
flex-
|
|
8
|
-
flex-wrap: wrap;
|
|
7
|
+
flex-flow: row wrap;
|
|
9
8
|
width: 80%;
|
|
10
9
|
font-family: $fontfamily-default;
|
|
11
10
|
font-size: $fontsize-small;
|
|
@@ -176,7 +175,7 @@ $avatar-size: $badge-touch-size;
|
|
|
176
175
|
p,
|
|
177
176
|
ul,
|
|
178
177
|
ol {
|
|
179
|
-
margin: 0 0 1em
|
|
178
|
+
margin: 0 0 1em;
|
|
180
179
|
}
|
|
181
180
|
|
|
182
181
|
ul,
|
|
@@ -245,7 +244,7 @@ $avatar-size: $badge-touch-size;
|
|
|
245
244
|
transform: translate(48%, -$padding);
|
|
246
245
|
border-radius: 50%;
|
|
247
246
|
background: $white;
|
|
248
|
-
box-shadow: 0 4px 4px
|
|
247
|
+
box-shadow: 0 4px 4px rgb(0 0 0 / 25%);
|
|
249
248
|
|
|
250
249
|
> svg {
|
|
251
250
|
position: absolute;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.#{$n}-chat__options__button[aria-disabled='true'] .#{$n}-icon path {
|
|
48
|
-
fill:
|
|
48
|
+
fill: currentcolor;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
// CONTEXT MENU
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
font-size: 16px; // KEEP THIS FIXED
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
@include stylePlaceholder
|
|
256
|
+
@include stylePlaceholder {
|
|
257
257
|
overflow: visible;
|
|
258
258
|
color: $grey-c;
|
|
259
259
|
line-height: $spacer;
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
&::-webkit-progress-bar {
|
|
201
201
|
border-radius: $borderradius-small;
|
|
202
202
|
background: $white;
|
|
203
|
-
box-shadow: inset 0 $spacer * 0.125 $spacer * 0.125 0
|
|
203
|
+
box-shadow: inset 0 $spacer * 0.125 $spacer * 0.125 0 rgb(0 0 0 / 22%);
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
&::-webkit-progress-value {
|