@seamly/web-ui 20.0.0-beta.4 → 20.0.0-beta.5
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/index.debug.js +10 -21
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.debug.min.js.LICENSE.txt +0 -4
- package/build/dist/lib/style-guide.js +18 -1
- package/build/dist/lib/style-guide.min.js +1 -1
- package/build/dist/lib/styles.css +1 -1
- package/package.json +1 -1
- package/src/javascripts/api/index.js +19 -10
- package/src/javascripts/api/producer.js +5 -3
- package/src/javascripts/lib/engine/index.js +2 -1
- package/src/javascripts/style-guide/states.js +19 -0
- package/src/javascripts/style-guide/style-guide-engine.js +1 -0
- package/src/javascripts/ui/components/layout/pre-chat-messages.js +2 -8
- package/src/javascripts/ui/components/suggestions/index.js +0 -1
- package/src/javascripts/ui/components/suggestions/suggestions-list.js +1 -1
- package/src/javascripts/ui/components/view/inline-view.js +6 -1
- package/src/javascripts/ui/components/view/window-view/index.js +2 -2
- package/src/stylesheets/3-chat/_chat.scss +10 -25
- package/src/stylesheets/5-components/_chat-status.scss +1 -5
- package/src/stylesheets/5-components/_conversation.scss +1 -1
- package/src/stylesheets/5-components/_disclaimer.scss +1 -5
- package/src/stylesheets/5-components/_interrupt.scss +21 -2
- package/src/stylesheets/5-components/_message-body.scss +23 -1
- package/src/stylesheets/5-components/_message.scss +4 -0
- package/src/stylesheets/5-components/_options.scss +0 -8
- package/src/stylesheets/5-components/_pre-chat-messages.scss +22 -19
- package/src/stylesheets/5-components/_suggestions.scss +3 -9
- package/src/stylesheets/5-components/_unstarted.scss +20 -40
- package/src/stylesheets/7-deprecated/5-components/_message.scss +1 -1
- package/src/stylesheets/7-deprecated/5-components/_modal.scss +1 -1
- package/src/stylesheets/style-guide.scss +1 -1
- package/build/dist/lib/index.js +0 -26358
- package/build/dist/lib/index.min.js +0 -2
- package/build/dist/lib/index.min.js.LICENSE.txt +0 -14
- package/build/dist/lib/standalone.js +0 -34768
- package/build/dist/lib/standalone.min.js +0 -2
- package/build/dist/lib/standalone.min.js.LICENSE.txt +0 -4
|
@@ -17,6 +17,28 @@
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
.#{$n}-unstarted-wrapper.#{$n}-unstarted-wrapper--window .#{$n}-message__body {
|
|
21
|
+
margin-left: auto;
|
|
22
|
+
padding: $spacer * 0.5 $spacer * 0.75;
|
|
23
|
+
border: $thin-border solid $white;
|
|
24
|
+
border-radius: $borderradius;
|
|
25
|
+
background-color: $threadlist-agent-text-bgcolor;
|
|
26
|
+
font-size: $fontsize-medium;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.#{$n}-unstarted-wrapper--continue .#{$n}-message__body {
|
|
30
|
+
transform: scale(0);
|
|
31
|
+
transform-origin: 100% 100%;
|
|
32
|
+
transition: transform $transition, opacity $transition;
|
|
33
|
+
opacity: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.#{$n}-unstarted-wrapper--continue.#{$n}-transition--in .#{$n}-message__body {
|
|
37
|
+
transform: scale(1);
|
|
38
|
+
transition: transform $transition-delay, opacity $transition-delay;
|
|
39
|
+
opacity: 1;
|
|
40
|
+
}
|
|
41
|
+
|
|
20
42
|
.#{$n}-conversation__item--source-info .#{$n}-message__body {
|
|
21
43
|
flex: 0 0 100%;
|
|
22
44
|
width: 100%;
|
|
@@ -82,7 +104,7 @@
|
|
|
82
104
|
}
|
|
83
105
|
}
|
|
84
106
|
|
|
85
|
-
|
|
107
|
+
.#{$n}-message--source-user .#{$n}-message__body a {
|
|
86
108
|
color: $white;
|
|
87
109
|
}
|
|
88
110
|
|
|
@@ -13,10 +13,6 @@
|
|
|
13
13
|
margin-right: auto;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
&.#{$n}-app--collapsed .#{$n}-chat__options {
|
|
17
|
-
display: none;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
16
|
.#{$n}-chat__options__button {
|
|
21
17
|
display: flex;
|
|
22
18
|
align-items: center;
|
|
@@ -25,10 +21,6 @@
|
|
|
25
21
|
border-radius: $borderradius-small;
|
|
26
22
|
}
|
|
27
23
|
|
|
28
|
-
&.#{$n}-app--collapsed .#{$n}-chat__options-button {
|
|
29
|
-
display: none;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
24
|
.#{$n}-chat__options__button .#{$n}-icon {
|
|
33
25
|
flex: 0 0 $iconsize-small;
|
|
34
26
|
width: $iconsize-small;
|
|
@@ -5,30 +5,33 @@
|
|
|
5
5
|
padding: 0;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
.#{$n}-unstarted-wrapper .#{$n}-pre-chat-messages {
|
|
9
|
+
display: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.#{$n}-unstarted-wrapper.#{$n}-transition--visible .#{$n}-pre-chat-messages {
|
|
13
|
+
display: block;
|
|
14
|
+
}
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
.#{$n}-unstarted-wrapper--inline .#{$n}-pre-chat-messages {
|
|
17
|
+
transition: opacity $transition;
|
|
18
|
+
opacity: 0;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
.#{$n}-pre-chat-
|
|
21
|
-
|
|
21
|
+
.#{$n}-unstarted-wrapper--inline.#{$n}-transition--in .#{$n}-pre-chat-messages {
|
|
22
|
+
transition: opacity $transition-delay;
|
|
23
|
+
opacity: 1;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
.#{$n}-unstarted-wrapper--window .#{$n}-pre-chat-messages {
|
|
27
|
+
transform: scale(0);
|
|
28
|
+
transform-origin: 100% 100%;
|
|
29
|
+
transition: transform $transition, opacity $transition;
|
|
30
|
+
opacity: 0;
|
|
26
31
|
}
|
|
27
32
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
background-color: $threadlist-agent-text-bgcolor;
|
|
33
|
-
font-size: $fontsize-medium;
|
|
33
|
+
.#{$n}-unstarted-wrapper--window.#{$n}-transition--in .#{$n}-pre-chat-messages {
|
|
34
|
+
transform: scale(1);
|
|
35
|
+
transition: transform $transition-delay, opacity $transition-delay;
|
|
36
|
+
opacity: 1;
|
|
34
37
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
overscroll-behavior: contain;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
.#{$n}-chat--layout-inline > .#{$n}-suggestions {
|
|
8
8
|
flex-direction: column;
|
|
9
9
|
max-height: $chat-suggestions-maxheight;
|
|
10
10
|
padding: $spacer;
|
|
@@ -61,10 +61,7 @@
|
|
|
61
61
|
overscroll-behavior: contain;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
.#{$n}-chat
|
|
66
|
-
> .#{$n}-suggestions
|
|
67
|
-
.#{$n}-suggestions__list {
|
|
64
|
+
.#{$n}-chat--layout-inline > .#{$n}-suggestions .#{$n}-suggestions__list {
|
|
68
65
|
flex: 1 1 100%;
|
|
69
66
|
flex-direction: column;
|
|
70
67
|
flex-wrap: nowrap;
|
|
@@ -80,10 +77,7 @@
|
|
|
80
77
|
margin: 0 $spacer * 0.25 $spacer * 0.25 0;
|
|
81
78
|
}
|
|
82
79
|
|
|
83
|
-
|
|
84
|
-
.#{$n}-chat
|
|
85
|
-
> .#{$n}-suggestions
|
|
86
|
-
.#{$n}-suggestions-item {
|
|
80
|
+
.#{$n}-chat--layout-inline > .#{$n}-suggestions .#{$n}-suggestions-item {
|
|
87
81
|
width: 100%;
|
|
88
82
|
margin-right: 0;
|
|
89
83
|
}
|
|
@@ -1,56 +1,36 @@
|
|
|
1
|
-
.#{$n}-unstarted-wrapper {
|
|
1
|
+
.#{$n}-unstarted-wrapper:empty {
|
|
2
2
|
display: none;
|
|
3
|
-
width: 100%;
|
|
4
|
-
overflow: hidden;
|
|
5
|
-
transition: margin $transition, max-height $transition;
|
|
6
3
|
}
|
|
7
4
|
|
|
8
|
-
|
|
5
|
+
.#{$n}-unstarted-wrapper--window {
|
|
6
|
+
position: fixed;
|
|
7
|
+
z-index: $z-index;
|
|
8
|
+
right: $spacer * 1.5;
|
|
9
|
+
bottom: $spacer * 1.5 + $avatarsize-large;
|
|
10
|
+
max-width: calc(100% - #{$spacer * 3});
|
|
11
|
+
|
|
12
|
+
@include media('>phablet-l') {
|
|
13
|
+
max-width: $spacer * 14;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.#{$n}-unstarted-wrapper--inline {
|
|
18
|
+
display: none;
|
|
19
|
+
width: 100%;
|
|
9
20
|
max-height: 0;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
transition: margin $transition, max-height $transition;
|
|
10
23
|
|
|
11
24
|
@include media('>desktop') {
|
|
12
25
|
width: 67%;
|
|
13
26
|
}
|
|
14
27
|
}
|
|
15
28
|
|
|
16
|
-
.#{$n}-unstarted-wrapper.#{$n}-transition--visible {
|
|
29
|
+
.#{$n}-unstarted-wrapper--inline.#{$n}-transition--visible {
|
|
17
30
|
display: block;
|
|
18
|
-
|
|
19
|
-
&:empty {
|
|
20
|
-
display: none;
|
|
21
|
-
}
|
|
22
31
|
}
|
|
23
32
|
|
|
24
|
-
|
|
33
|
+
.#{$n}-unstarted-wrapper--inline.#{$n}-transition--in {
|
|
25
34
|
max-height: $spacer * 30;
|
|
26
35
|
margin-bottom: $spacer;
|
|
27
36
|
}
|
|
28
|
-
|
|
29
|
-
.#{$n}-unstarted-wrapper .#{$n}-pre-chat-messages,
|
|
30
|
-
.#{$n}-unstarted-wrapper .#{$n}-cvco-suggestions {
|
|
31
|
-
display: none;
|
|
32
|
-
transition: transform $transition, opacity $transition;
|
|
33
|
-
opacity: 0;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.#{$n}-unstarted-wrapper.#{$n}-transition--visible .#{$n}-pre-chat-messages,
|
|
37
|
-
.#{$n}-unstarted-wrapper.#{$n}-transition--visible .#{$n}-cvco-suggestions {
|
|
38
|
-
display: block;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.#{$n}-unstarted-wrapper.#{$n}-transition--in .#{$n}-pre-chat-messages,
|
|
42
|
-
.#{$n}-unstarted-wrapper.#{$n}-transition--in .#{$n}-cvco-suggestions {
|
|
43
|
-
transition: transform $transition-delay, opacity $transition-delay;
|
|
44
|
-
opacity: 1;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&.#{$n}-app--layout-window .#{$n}-pre-chat-messages {
|
|
48
|
-
transform: scale(0);
|
|
49
|
-
transform-origin: 100% 100%;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&.#{$n}-app--layout-window
|
|
53
|
-
.#{$n}-unstarted-wrapper.#{$n}-transition--in
|
|
54
|
-
.#{$n}-pre-chat-messages {
|
|
55
|
-
transform: scale(1);
|
|
56
|
-
}
|