@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.
Files changed (107) hide show
  1. package/build/dist/lib/deprecated-view.css +1 -1
  2. package/build/dist/lib/index.debug.js +211 -200
  3. package/build/dist/lib/index.debug.min.js +1 -1
  4. package/build/dist/lib/index.debug.min.js.LICENSE.txt +40 -36
  5. package/build/dist/lib/index.js +1811 -1137
  6. package/build/dist/lib/index.min.js +1 -1
  7. package/build/dist/lib/index.min.js.LICENSE.txt +2 -2
  8. package/build/dist/lib/standalone.js +5167 -2856
  9. package/build/dist/lib/standalone.min.js +1 -1
  10. package/build/dist/lib/standalone.min.js.LICENSE.txt +1 -1
  11. package/build/dist/lib/style-guide.js +7427 -7243
  12. package/build/dist/lib/style-guide.min.js +1 -1
  13. package/build/dist/lib/styles.css +1 -1
  14. package/package.json +15 -14
  15. package/src/javascripts/api/index.js +5 -4
  16. package/src/javascripts/domains/app/actions.js +22 -10
  17. package/src/javascripts/domains/config/reducer.js +2 -2
  18. package/src/javascripts/domains/forms/reducer.js +1 -1
  19. package/src/javascripts/domains/i18n/reducer.js +1 -1
  20. package/src/javascripts/domains/interrupt/reducer.js +1 -1
  21. package/src/javascripts/domains/store/state-reducer.js +1 -0
  22. package/src/javascripts/domains/translations/components/chat-status.js +10 -9
  23. package/src/javascripts/domains/translations/components/options-button.js +8 -3
  24. package/src/javascripts/domains/translations/components/options-dialog/form.js +6 -5
  25. package/src/javascripts/domains/translations/components/options-dialog/index.js +5 -2
  26. package/src/javascripts/domains/translations/hooks.js +15 -1
  27. package/src/javascripts/domains/translations/middleware.js +5 -2
  28. package/src/javascripts/domains/translations/reducer.js +2 -2
  29. package/src/javascripts/domains/visibility/actions.js +1 -1
  30. package/src/javascripts/index.js +1 -0
  31. package/src/javascripts/lib/debug.js +1 -0
  32. package/src/javascripts/lib/external-api/index.js +29 -4
  33. package/src/javascripts/style-guide/components/app.js +1 -1
  34. package/src/javascripts/style-guide/components/static-core.js +1 -4
  35. package/src/javascripts/style-guide/states.js +25 -0
  36. package/src/javascripts/ui/components/conversation/conversation.js +11 -12
  37. package/src/javascripts/ui/components/conversation/event/card-component.js +4 -1
  38. package/src/javascripts/ui/components/conversation/event/carousel-component/index.js +1 -1
  39. package/src/javascripts/ui/components/conversation/event/conversation-suggestions.js +18 -10
  40. package/src/javascripts/ui/components/conversation/event/cta.js +1 -1
  41. package/src/javascripts/ui/components/conversation/event/divider/variants/new-translation.js +4 -9
  42. package/src/javascripts/ui/components/conversation/event/image.js +12 -4
  43. package/src/javascripts/ui/components/conversation/event/text.js +2 -2
  44. package/src/javascripts/ui/components/conversation/loader.js +1 -1
  45. package/src/javascripts/ui/components/conversation/message-container.js +1 -1
  46. package/src/javascripts/ui/components/core/seamly-activity-monitor.js +1 -1
  47. package/src/javascripts/ui/components/core/seamly-core.js +2 -2
  48. package/src/javascripts/ui/components/core/seamly-file-upload.js +1 -1
  49. package/src/javascripts/ui/components/core/seamly-instance-functions-loader.js +6 -2
  50. package/src/javascripts/ui/components/core/seamly-live-region.js +2 -2
  51. package/src/javascripts/ui/components/entry/entry-container.js +2 -2
  52. package/src/javascripts/ui/components/entry/text-entry/hooks.js +1 -4
  53. package/src/javascripts/ui/components/entry/text-entry/text-entry-form.js +7 -1
  54. package/src/javascripts/ui/components/form-controls/select.js +1 -1
  55. package/src/javascripts/ui/components/layout/agent-info.js +1 -1
  56. package/src/javascripts/ui/components/layout/header.js +1 -1
  57. package/src/javascripts/ui/components/options/options-button.js +1 -1
  58. package/src/javascripts/ui/components/options/options.js +1 -1
  59. package/src/javascripts/ui/components/options/transcript/index.js +1 -1
  60. package/src/javascripts/ui/components/suggestions/suggestions-item.js +1 -1
  61. package/src/javascripts/ui/components/view/index.js +2 -2
  62. package/src/javascripts/ui/components/warnings/resume-conversation-prompt.js +1 -1
  63. package/src/javascripts/ui/components/widgets/lightbox.js +1 -1
  64. package/src/javascripts/ui/hooks/file-upload-hooks.js +2 -3
  65. package/src/javascripts/ui/hooks/focus-helper-hooks.js +2 -2
  66. package/src/javascripts/ui/hooks/seamly-entry-hooks.js +1 -1
  67. package/src/javascripts/ui/hooks/seamly-option-hooks.js +1 -1
  68. package/src/javascripts/ui/hooks/seamly-state-hooks.js +3 -0
  69. package/src/javascripts/ui/hooks/use-seamly-chat.js +2 -2
  70. package/src/javascripts/ui/hooks/use-seamly-commands.js +7 -7
  71. package/src/javascripts/ui/hooks/use-seamly-idle-detach-countdown.js +4 -4
  72. package/src/javascripts/ui/hooks/use-seamly-resume-conversation-prompt.js +2 -2
  73. package/src/javascripts/ui/hooks/use-single-file-upload.js +1 -1
  74. package/src/javascripts/ui/utils/general-utils.js +1 -1
  75. package/src/javascripts/ui/utils/seamly-utils.js +9 -1
  76. package/src/stylesheets/1-settings/_animations.scss +1 -1
  77. package/src/stylesheets/1-settings/_config.scss +17 -2
  78. package/src/stylesheets/2-tools/_functions.scss +4 -4
  79. package/src/stylesheets/2-tools/_mixins.scss +16 -14
  80. package/src/stylesheets/3-chat/_chat.scss +1 -1
  81. package/src/stylesheets/5-components/_choice-prompt.scss +1 -1
  82. package/src/stylesheets/5-components/_collapse-button.scss +1 -1
  83. package/src/stylesheets/5-components/_input.scss +1 -1
  84. package/src/stylesheets/5-components/_loader.scss +2 -2
  85. package/src/stylesheets/5-components/_message-carousel.scss +1 -1
  86. package/src/stylesheets/5-components/_message-count.scss +6 -3
  87. package/src/stylesheets/5-components/_message.scss +1 -2
  88. package/src/stylesheets/5-components/_modal.scss +1 -1
  89. package/src/stylesheets/5-components/_options.scss +3 -3
  90. package/src/stylesheets/5-components/_suggestions.scss +4 -5
  91. package/src/stylesheets/5-components/_upload.scss +1 -1
  92. package/src/stylesheets/7-deprecated/1-settings/_animations.scss +1 -1
  93. package/src/stylesheets/7-deprecated/1-settings/_config.scss +10 -7
  94. package/src/stylesheets/7-deprecated/2-tools/_functions.scss +2 -2
  95. package/src/stylesheets/7-deprecated/2-tools/_mixins.scss +6 -4
  96. package/src/stylesheets/7-deprecated/3-app/_app.scss +2 -2
  97. package/src/stylesheets/7-deprecated/4-base/_formelements.scss +1 -0
  98. package/src/stylesheets/7-deprecated/5-components/_chat-status.scss +1 -1
  99. package/src/stylesheets/7-deprecated/5-components/_collapse-button.scss +1 -1
  100. package/src/stylesheets/7-deprecated/5-components/_disclaimer.scss +1 -1
  101. package/src/stylesheets/7-deprecated/5-components/_input.scss +2 -1
  102. package/src/stylesheets/7-deprecated/5-components/_loader.scss +2 -2
  103. package/src/stylesheets/7-deprecated/5-components/_message-count.scss +1 -1
  104. package/src/stylesheets/7-deprecated/5-components/_message.scss +3 -4
  105. package/src/stylesheets/7-deprecated/5-components/_modal.scss +1 -1
  106. package/src/stylesheets/7-deprecated/5-components/_options.scss +2 -2
  107. 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 (lightness($color) > 66.66) {
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 (lightness($color) > 66.66) {
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
- &::-webkit-input-placeholder {
60
+ &::input-placeholder {
59
61
  // Chrome/Opera/Safari
60
62
  @content;
61
63
  }
62
64
 
63
- &::-moz-placeholder {
65
+ &::placeholder {
64
66
  // Firefox 19+
65
67
  @content;
66
68
  }
67
69
 
68
- &:-ms-input-placeholder {
70
+ &:input-placeholder {
69
71
  // IE 10+
70
72
  @content;
71
73
  }
72
74
 
73
- &:-moz-placeholder {
75
+ &:placeholder {
74
76
  // Firefox 18-
75
77
  @content;
76
78
  }
@@ -1,9 +1,9 @@
1
- // See settings/_config.scss for vars
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;
@@ -38,6 +38,7 @@
38
38
  color: $grey-e;
39
39
  font-size: $fontsize-small;
40
40
  resize: none;
41
+
41
42
  // iOS will zoom in on focus if font-size below 16px, and not go back.
42
43
  // User has to pinch to zoom out; very nasty UX. So:
43
44
  @supports (-webkit-overflow-scrolling: touch) {
@@ -42,7 +42,7 @@
42
42
  animation-iteration-count: infinite;
43
43
  animation-direction: normal;
44
44
  animation-fill-mode: forwards;
45
- border-radius: 50% 50%;
45
+ border-radius: 50%;
46
46
  background-color: $interaction;
47
47
  }
48
48
  }
@@ -11,7 +11,7 @@
11
11
  height: $badge-touch-size;
12
12
  padding: 0;
13
13
  border: 0 none;
14
- border-radius: 50% 50%;
14
+ border-radius: 50%;
15
15
  background-color: $white;
16
16
  box-shadow: $boxshadow;
17
17
  }
@@ -4,7 +4,7 @@
4
4
  // VARS
5
5
  // ----
6
6
 
7
- $small-shadow-light: 0 $spacer * 0.2 $spacer * 0.3333 0 rgba(0, 0, 0, 0.1);
7
+ $small-shadow-light: 0 $spacer * 0.2 $spacer * 0.3333 0 rgb(0 0 0 / 10%);
8
8
 
9
9
  // BASE
10
10
  // ----
@@ -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% 50%;
41
- background-color: currentColor;
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% 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-direction: row;
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 0;
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 rgba(0, 0, 0, 0.25);
247
+ box-shadow: 0 4px 4px rgb(0 0 0 / 25%);
249
248
 
250
249
  > svg {
251
250
  position: absolute;
@@ -4,7 +4,7 @@
4
4
  // VARS
5
5
  // ----
6
6
 
7
- $small-shadow-light: 0 $spacer * 0.2 $spacer * 0.3333 0 rgba(0, 0, 0, 0.1);
7
+ $small-shadow-light: 0 $spacer * 0.2 $spacer * 0.3333 0 rgb(0 0 0 / 10%);
8
8
  $control-small-radius: $spacer;
9
9
  $button-transition: $transition;
10
10
 
@@ -45,7 +45,7 @@
45
45
  }
46
46
 
47
47
  .#{$n}-chat__options__button[aria-disabled='true'] .#{$n}-icon path {
48
- fill: currentColor;
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 rgba(0, 0, 0, 0.22);
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 {