@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamly/web-ui",
3
- "version": "21.0.3",
3
+ "version": "21.0.4",
4
4
  "main": "build/dist/lib/index.js",
5
5
  "types": "build/src/javascripts/index.d.ts",
6
6
  "module": "",
package/src/.DS_Store ADDED
Binary file
@@ -1660,7 +1660,7 @@ const standardState = {
1660
1660
  options: {
1661
1661
  ...baseState.options,
1662
1662
  features: {
1663
- cobrowsing: { enabled: true },
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
- cobrowsing: { enabled: false },
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 { cobrowsing, sendTranscript } = features
20
+ const { extraMenuItem, sendTranscript } = features
21
21
 
22
- const optionsObj = { cobrowsing, sendTranscript }
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: t(`options.${option}.menuTitle`),
36
+ title: menuTitle(option),
31
37
  available: optionsObj[option].enabled,
32
38
  }))
33
39
 
34
- const allowOptionSelection = cobrowsing || sendTranscript
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 { styleScssLoaders } = require('@seamly/doc-site/lib/config/site')
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: /(node_modules|bower_components)/,
189
- use: styleScssLoaders({ browsers: BROWSERS }),
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
  },