@seamly/web-ui 21.0.3 → 21.0.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 +7 -4
- 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 -1
- package/build/dist/lib/hooks.js +7 -4
- package/build/dist/lib/hooks.min.js +1 -1
- package/build/dist/lib/index.debug.js +2 -2
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.js +8 -5
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/standalone.js +8 -5
- package/build/dist/lib/standalone.min.js +1 -1
- package/build/dist/lib/style-guide.js +10 -7
- package/build/dist/lib/style-guide.min.js +1 -1
- package/build/dist/lib/styles-default-implementation.css +1 -0
- package/build/dist/lib/styles-default-implementation.js +1 -1
- package/build/dist/lib/styles.css +1 -0
- package/build/dist/lib/styles.js +1 -1
- package/build/dist/lib/utils.js +8 -5
- package/build/dist/lib/utils.min.js +1 -1
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/javascripts/style-guide/states.js +2 -2
- package/src/javascripts/ui/hooks/seamly-option-hooks.js +10 -4
- package/src/stylesheets/7-deprecated/5-components/_chat-status.scss +0 -19
- package/webpack/config.package.js +8 -4
package/package.json
CHANGED
package/src/.DS_Store
ADDED
|
Binary file
|
|
@@ -1660,7 +1660,7 @@ const standardState = {
|
|
|
1660
1660
|
options: {
|
|
1661
1661
|
...baseState.options,
|
|
1662
1662
|
features: {
|
|
1663
|
-
|
|
1663
|
+
extraMenuItem: { enabled: true },
|
|
1664
1664
|
sendTranscript: { enabled: true },
|
|
1665
1665
|
},
|
|
1666
1666
|
},
|
|
@@ -1673,7 +1673,7 @@ const standardState = {
|
|
|
1673
1673
|
options: {
|
|
1674
1674
|
...baseState.options,
|
|
1675
1675
|
features: {
|
|
1676
|
-
|
|
1676
|
+
extraMenuItem: { enabled: false },
|
|
1677
1677
|
sendTranscript: { enabled: true },
|
|
1678
1678
|
},
|
|
1679
1679
|
},
|
|
@@ -17,9 +17,15 @@ export const useSeamlyOptions = () => {
|
|
|
17
17
|
|
|
18
18
|
const { panelActive, optionActive, userSelectedOptions, features } = options
|
|
19
19
|
|
|
20
|
-
const {
|
|
20
|
+
const { extraMenuItem, sendTranscript } = features
|
|
21
21
|
|
|
22
|
-
const optionsObj = {
|
|
22
|
+
const optionsObj = { extraMenuItem, sendTranscript }
|
|
23
|
+
|
|
24
|
+
const menuTitle = (option) => {
|
|
25
|
+
return option === 'extraMenuItem'
|
|
26
|
+
? 'Extra menu item'
|
|
27
|
+
: t(`options.${option}.menuTitle`)
|
|
28
|
+
}
|
|
23
29
|
|
|
24
30
|
const menuOptions = Object.keys(optionsObj)
|
|
25
31
|
.filter((key) => {
|
|
@@ -27,11 +33,11 @@ export const useSeamlyOptions = () => {
|
|
|
27
33
|
})
|
|
28
34
|
.map((option) => ({
|
|
29
35
|
name: option,
|
|
30
|
-
title:
|
|
36
|
+
title: menuTitle(option),
|
|
31
37
|
available: optionsObj[option].enabled,
|
|
32
38
|
}))
|
|
33
39
|
|
|
34
|
-
const allowOptionSelection =
|
|
40
|
+
const allowOptionSelection = extraMenuItem || sendTranscript
|
|
35
41
|
|
|
36
42
|
const dispatch = useDispatch()
|
|
37
43
|
const { get, set } = useSeamlyObjectStore()
|
|
@@ -33,25 +33,6 @@
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.#{$n}-chat-status--cobrowsing .#{$n}-chat-status__title {
|
|
37
|
-
&::before {
|
|
38
|
-
content: '';
|
|
39
|
-
display: block;
|
|
40
|
-
flex: 0 0 $spacer * 0.5;
|
|
41
|
-
width: $spacer * 0.5;
|
|
42
|
-
height: $spacer * 0.5;
|
|
43
|
-
margin-right: $spacer * 0.25;
|
|
44
|
-
animation-name: #{$app-name}-blink;
|
|
45
|
-
animation-duration: 1s;
|
|
46
|
-
animation-timing-function: ease-in-out;
|
|
47
|
-
animation-iteration-count: infinite;
|
|
48
|
-
animation-direction: normal;
|
|
49
|
-
animation-fill-mode: forwards;
|
|
50
|
-
border-radius: 50%;
|
|
51
|
-
background-color: $interaction;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
36
|
.#{$n}-chat-status .#{$n}-button--tertiary {
|
|
56
37
|
color: $interaction;
|
|
57
38
|
}
|
|
@@ -3,7 +3,7 @@ const webpackDefinePlugin = require('webpack').DefinePlugin
|
|
|
3
3
|
const webpackMerge = require('webpack-merge').merge
|
|
4
4
|
const glob = require('glob')
|
|
5
5
|
const path = require('path')
|
|
6
|
-
const {
|
|
6
|
+
const { assetScssLoaders } = require('@seamly/doc-site/lib/config/site')
|
|
7
7
|
const defaultConfig = require('./defaults')
|
|
8
8
|
const generateBabelLoaderPluginsPart = require('./parts/babel-loader-plugins')
|
|
9
9
|
const generateBabelLoaderBrowserPluginsPart = require('./parts/babel-loader-browser-plugins')
|
|
@@ -184,9 +184,13 @@ module.exports = (env = {}, argv = {}, configOverrides = {}) => {
|
|
|
184
184
|
module: {
|
|
185
185
|
rules: [
|
|
186
186
|
{
|
|
187
|
-
test: /\.scss
|
|
188
|
-
exclude: /
|
|
189
|
-
|
|
187
|
+
test: /\.scss$/,
|
|
188
|
+
exclude: /node_modules/,
|
|
189
|
+
type: 'asset/resource',
|
|
190
|
+
generator: {
|
|
191
|
+
filename: '[name].css',
|
|
192
|
+
},
|
|
193
|
+
use: assetScssLoaders({ browsers: BROWSERS }),
|
|
190
194
|
},
|
|
191
195
|
],
|
|
192
196
|
},
|