@seamly/web-ui 20.0.0-beta.1 → 20.0.0-beta.4
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/components.js +1 -1
- package/build/dist/lib/components.min.js +1 -1
- package/build/dist/lib/deprecated-view.css +1 -0
- package/build/dist/lib/deprecated-view.js +1 -0
- package/build/dist/lib/index.debug.js +102 -57
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.debug.min.js.LICENSE.txt +28 -12
- package/build/dist/lib/index.js +14773 -13925
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/index.min.js.LICENSE.txt +5 -0
- package/build/dist/lib/standalone.js +19922 -19625
- package/build/dist/lib/standalone.min.js +1 -1
- package/build/dist/lib/style-guide.js +5071 -10746
- package/build/dist/lib/style-guide.min.js +1 -2
- package/build/dist/lib/styles-default-implementation.css +1 -0
- package/build/dist/lib/styles-default-implementation.js +1 -0
- package/build/dist/lib/styles.css +1 -1
- package/package.json +8 -7
- package/src/.DS_Store +0 -0
- package/src/javascripts/domains/translations/components/options-button.js +1 -1
- package/src/javascripts/index.js +5 -2
- package/src/javascripts/lib/parse-body.js +1 -1
- package/src/javascripts/package/components.js +1 -1
- package/src/javascripts/style-guide/components/app.js +3 -3
- package/src/javascripts/style-guide/components/static-core.js +1 -1
- package/src/javascripts/style-guide/states.js +326 -69
- package/src/javascripts/ui/components/app-options/index.js +9 -3
- package/src/javascripts/ui/components/conversation/conversation.js +1 -1
- package/src/javascripts/ui/components/conversation/event/carousel-message/index.js +3 -1
- package/src/javascripts/ui/components/conversation/event/conversation-suggestions.js +12 -3
- package/src/javascripts/ui/components/conversation/event/hooks/use-text-rendering.js +35 -0
- package/src/javascripts/ui/components/conversation/event/participant.js +5 -2
- package/src/javascripts/ui/components/conversation/event/splash.js +2 -1
- package/src/javascripts/ui/components/conversation/event/text.js +2 -1
- package/src/javascripts/ui/components/entry/{toggle-button.js → deprecated-toggle-button.js} +0 -0
- package/src/javascripts/ui/components/entry/entry-container.js +1 -1
- package/src/javascripts/ui/components/faq/faq.js +162 -0
- package/src/javascripts/ui/components/layout/chat-frame.js +1 -1
- package/src/javascripts/ui/components/layout/chat.js +62 -0
- package/src/javascripts/ui/components/layout/{app-frame.js → deprecated-app-frame.js} +10 -24
- package/src/javascripts/ui/components/layout/header.js +1 -1
- package/src/javascripts/ui/components/options/options-button.js +2 -2
- package/src/javascripts/ui/components/suggestions/index.js +2 -2
- package/src/javascripts/ui/components/view/app-view.js +3 -3
- package/src/javascripts/ui/components/view/deprecated-view.js +6 -4
- package/src/javascripts/ui/components/view/index.js +61 -5
- package/src/javascripts/ui/components/view/inline-view.js +9 -3
- package/src/javascripts/ui/components/view/window-view/index.js +3 -3
- package/src/stylesheets/1-settings/_config.scss +6 -6
- package/src/stylesheets/{3-app/_app.scss → 3-chat/_chat.scss} +27 -25
- package/src/stylesheets/5-components/_conversation.scss +2 -2
- package/src/stylesheets/5-components/_disclaimer.scss +1 -1
- package/src/stylesheets/5-components/_error.scss +20 -10
- package/src/stylesheets/5-components/_message-count.scss +1 -0
- package/src/stylesheets/5-components/_modal.scss +2 -2
- package/src/stylesheets/5-components/_options.scss +8 -8
- package/src/stylesheets/5-components/_pre-chat-messages.scss +6 -2
- package/src/stylesheets/5-components/_suggestions.scss +12 -6
- package/src/stylesheets/5-components/_unstarted.scss +14 -8
- package/src/stylesheets/6-default-implementation/_hover.scss +153 -0
- package/src/stylesheets/{6-webui-only → 6-default-implementation}/_scrollbar.scss +1 -1
- package/src/stylesheets/7-deprecated/3-app/_app.scss +8 -8
- package/src/stylesheets/7-deprecated/5-components/_error.scss +19 -9
- package/src/stylesheets/7-deprecated/5-components/_input.scss +1 -1
- package/src/stylesheets/7-deprecated/5-components/_options.scss +8 -10
- package/src/stylesheets/styles-default-implementation.scss +3 -0
- package/src/stylesheets/styles.scss +8 -9
- package/webpack/config.common.js +7 -1
- package/webpack/config.package.js +9 -1
- package/webpack/config.test.js +1 -0
- package/webpack/defaults.js +3 -6
- package/CHANGELOG.md +0 -625
- package/build/dist/lib/style-guide.min.js.LICENSE.txt +0 -9
- package/src/javascripts/ui/components/layout/modal-wrapper.js +0 -0
- package/src/stylesheets/6-webui-only/_hover.scss +0 -151
- package/src/stylesheets/styles-webui-only.scss +0 -3
|
@@ -4,16 +4,14 @@
|
|
|
4
4
|
// BASE
|
|
5
5
|
// ----
|
|
6
6
|
.#{$n}-error {
|
|
7
|
-
display:
|
|
8
|
-
align-items: flex-start;
|
|
7
|
+
display: block;
|
|
9
8
|
width: 100%;
|
|
10
|
-
margin: 0 0 $spacer * 0.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
font-weight: $fontweight-bold;
|
|
9
|
+
margin: 0 0 $spacer * 0.25;
|
|
10
|
+
|
|
11
|
+
&:empty {
|
|
12
|
+
display: none;
|
|
13
|
+
margin: 0;
|
|
14
|
+
}
|
|
17
15
|
|
|
18
16
|
.#{$n}-icon {
|
|
19
17
|
flex: 0 0 16px;
|
|
@@ -21,4 +19,16 @@
|
|
|
21
19
|
height: 16px;
|
|
22
20
|
margin-right: $spacer * 0.25;
|
|
23
21
|
}
|
|
22
|
+
|
|
23
|
+
.#{$n}-error__message {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: flex-start;
|
|
26
|
+
width: 100%;
|
|
27
|
+
padding: $spacer * 0.25 $spacer * 0.5;
|
|
28
|
+
border-radius: $borderradius-small;
|
|
29
|
+
background-color: rgba($negative, 0.1);
|
|
30
|
+
color: $negative-dark;
|
|
31
|
+
font-size: $fontsize-small;
|
|
32
|
+
font-weight: $fontweight-bold;
|
|
33
|
+
}
|
|
24
34
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
// BASE
|
|
5
5
|
// ----
|
|
6
|
-
.#{$n}-
|
|
6
|
+
.#{$n}-chat__options {
|
|
7
7
|
display: flex;
|
|
8
8
|
position: relative;
|
|
9
9
|
align-items: center;
|
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
border-top: $thin-border solid $grey-b;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.#{$n}-
|
|
15
|
+
.#{$n}-chat__options-item--left {
|
|
16
16
|
margin-right: auto;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
&.#{$n}-app--collapsed .#{$n}-
|
|
19
|
+
&.#{$n}-app--collapsed .#{$n}-chat__options {
|
|
20
20
|
display: none;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.#{$n}-
|
|
23
|
+
.#{$n}-chat__options__button {
|
|
24
24
|
display: flex;
|
|
25
25
|
align-items: center;
|
|
26
26
|
justify-content: flex-end;
|
|
@@ -28,23 +28,23 @@
|
|
|
28
28
|
border-radius: $buttons-border-radius;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
&.#{$n}-app--collapsed .#{$n}-
|
|
31
|
+
&.#{$n}-app--collapsed .#{$n}-chat__options-button {
|
|
32
32
|
display: none;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
.#{$n}-
|
|
35
|
+
.#{$n}-chat__options__button .#{$n}-icon {
|
|
36
36
|
flex: 0 0 $spacer * 0.75;
|
|
37
37
|
width: $spacer * 0.75;
|
|
38
38
|
height: $spacer * 0.75;
|
|
39
39
|
margin-right: $spacer * 0.25;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
.#{$n}-
|
|
42
|
+
.#{$n}-chat__options__button .#{$n}-icon svg {
|
|
43
43
|
width: 100%;
|
|
44
44
|
height: 100%;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
.#{$n}-
|
|
47
|
+
.#{$n}-chat__options__button.#{$n}-button--disabled .#{$n}-icon path {
|
|
48
48
|
fill: currentColor;
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -191,8 +191,6 @@
|
|
|
191
191
|
display: flex;
|
|
192
192
|
align-items: center;
|
|
193
193
|
justify-content: center;
|
|
194
|
-
width: 100%;
|
|
195
|
-
height: 100%;
|
|
196
194
|
}
|
|
197
195
|
|
|
198
196
|
.#{$n}-options__body form {
|
|
@@ -6,13 +6,12 @@
|
|
|
6
6
|
@import '2-tools/functions';
|
|
7
7
|
@import '2-tools/mixins';
|
|
8
8
|
|
|
9
|
-
@import '3-app/app';
|
|
10
|
-
@import '5-components/buttons';
|
|
11
|
-
|
|
12
9
|
.#{$n}-app {
|
|
10
|
+
@import '3-chat/chat';
|
|
13
11
|
@import '4-base/elements';
|
|
14
12
|
@import '4-base/formelements';
|
|
15
13
|
@import '5-components/avatar';
|
|
14
|
+
@import '5-components/buttons';
|
|
16
15
|
@import '5-components/choice-prompt';
|
|
17
16
|
@import '5-components/conversation';
|
|
18
17
|
@import '5-components/divider';
|
|
@@ -39,6 +38,12 @@
|
|
|
39
38
|
@import '5-components/notification';
|
|
40
39
|
@import '5-components/character-limit';
|
|
41
40
|
@import '5-components/collapse-button';
|
|
41
|
+
@import '5-components/message-body';
|
|
42
|
+
@import '5-components/message-count';
|
|
43
|
+
@import '5-components/suggestions';
|
|
44
|
+
@import '5-components/window-open-button';
|
|
45
|
+
@import '5-components/pre-chat-messages';
|
|
46
|
+
@import '5-components/unstarted';
|
|
42
47
|
}
|
|
43
48
|
|
|
44
49
|
.#{$n}-app,
|
|
@@ -46,10 +51,4 @@
|
|
|
46
51
|
@import '4-base/a11y';
|
|
47
52
|
}
|
|
48
53
|
|
|
49
|
-
@import '5-components/message-body';
|
|
50
|
-
@import '5-components/message-count';
|
|
51
|
-
@import '5-components/suggestions';
|
|
52
54
|
@import '5-components/modal';
|
|
53
|
-
@import '5-components/window-open-button';
|
|
54
|
-
@import '5-components/pre-chat-messages';
|
|
55
|
-
@import '5-components/unstarted';
|
package/webpack/config.common.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
const path = require('path')
|
|
3
|
+
const webpack = require('webpack')
|
|
3
4
|
const webpackMerge = require('webpack-merge').merge
|
|
4
5
|
const site = require('@seamly/doc-site/lib/config/site')
|
|
5
6
|
const BundleAnalyzerPlugin =
|
|
@@ -28,7 +29,12 @@ module.exports = (env = {}, argv = {}, configOverrides = {}) => {
|
|
|
28
29
|
|
|
29
30
|
const PRODUCTION = [argv.mode, process.env.NODE_ENV].includes('production')
|
|
30
31
|
|
|
31
|
-
const plugins = [
|
|
32
|
+
const plugins = [
|
|
33
|
+
new webpack.DefinePlugin({
|
|
34
|
+
'process.env.API_DOMAIN': JSON.stringify(process.env.API_DOMAIN),
|
|
35
|
+
}),
|
|
36
|
+
]
|
|
37
|
+
|
|
32
38
|
if (env.analyze) {
|
|
33
39
|
plugins.push(new BundleAnalyzerPlugin())
|
|
34
40
|
}
|
|
@@ -156,7 +156,7 @@ module.exports = (env = {}, argv = {}, configOverrides = {}) => {
|
|
|
156
156
|
{
|
|
157
157
|
loader: 'file-loader',
|
|
158
158
|
options: {
|
|
159
|
-
name: '
|
|
159
|
+
name: '[name].css',
|
|
160
160
|
},
|
|
161
161
|
},
|
|
162
162
|
'extract-loader',
|
|
@@ -167,6 +167,14 @@ module.exports = (env = {}, argv = {}, configOverrides = {}) => {
|
|
|
167
167
|
},
|
|
168
168
|
entry: {
|
|
169
169
|
styles: path.join(SRC_ROOT, 'stylesheets/styles.scss'),
|
|
170
|
+
'styles-default-implementation': path.join(
|
|
171
|
+
SRC_ROOT,
|
|
172
|
+
'stylesheets/styles-default-implementation.scss',
|
|
173
|
+
),
|
|
174
|
+
'deprecated-view': path.join(
|
|
175
|
+
SRC_ROOT,
|
|
176
|
+
'stylesheets/deprecated-view.scss',
|
|
177
|
+
),
|
|
170
178
|
},
|
|
171
179
|
}
|
|
172
180
|
|
package/webpack/config.test.js
CHANGED
|
@@ -26,6 +26,7 @@ module.exports = (env = {}, argv = {}, configOverrides = {}, options = {}) => {
|
|
|
26
26
|
entry: {
|
|
27
27
|
// Demo and test files
|
|
28
28
|
'tests/index': path.join(PUBLIC_ROOT, '/tests/index.js'),
|
|
29
|
+
'tests/deprecated': path.join(PUBLIC_ROOT, '/tests/deprecated.js'),
|
|
29
30
|
'tests/style-guide': path.join(PUBLIC_ROOT, '/tests/style-guide.js'),
|
|
30
31
|
'tests/init-with-callback/index': path.join(
|
|
31
32
|
PUBLIC_ROOT,
|
package/webpack/defaults.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const path = require('path')
|
|
2
2
|
|
|
3
|
-
const BABEL_TRANSPILE_MODULES = ['debug', 'superagent', 'phoenix'
|
|
3
|
+
const BABEL_TRANSPILE_MODULES = ['debug', 'superagent', 'phoenix']
|
|
4
4
|
const BROWSERS = 'last 1 version, > 1%, not dead, not ie 11, not ie_mob 11'
|
|
5
5
|
|
|
6
6
|
const ROOT = path.resolve(__dirname, '..')
|
|
@@ -47,11 +47,8 @@ const ALIASSES = {
|
|
|
47
47
|
'stylesheets',
|
|
48
48
|
'styles.scss',
|
|
49
49
|
),
|
|
50
|
-
'@seamly/web-ui/src/stylesheets/styles-
|
|
51
|
-
SRC_ROOT,
|
|
52
|
-
'stylesheets',
|
|
53
|
-
'styles-webui-only.scss',
|
|
54
|
-
),
|
|
50
|
+
'@seamly/web-ui/src/stylesheets/styles-default-implementation.scss':
|
|
51
|
+
path.resolve(SRC_ROOT, 'stylesheets', 'styles-default-implementation.scss'),
|
|
55
52
|
'@seamly/web-ui/src/stylesheets/style-guide.scss': path.resolve(
|
|
56
53
|
SRC_ROOT,
|
|
57
54
|
'stylesheets',
|