@seamly/web-ui 20.8.0-beta.5 → 20.8.1

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": "20.8.0-beta.5",
3
+ "version": "20.8.1",
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
@@ -2,6 +2,7 @@ import { createSlice, PayloadAction } from '@reduxjs/toolkit'
2
2
  import { defaultConfig } from 'config'
3
3
  import { Config } from 'config.types'
4
4
  import { initializeConfig, resetConfig } from 'domains/config/actions'
5
+ import type { ChannelEvent } from 'domains/store/store.types'
5
6
  import { pick } from 'ui/utils/general-utils'
6
7
 
7
8
  export const initialConfigState: Config = {
@@ -75,8 +76,8 @@ export const configSlice = createSlice({
75
76
  updateState(state, payload),
76
77
  updateConfig: (state, { payload }: PayloadAction<Config>) =>
77
78
  updateState(state, payload),
78
- setPreChatEvents: (state, { payload: { events } }) => {
79
- state.preChatEvents = events
79
+ setPreChatEvents: (state, { payload }: PayloadAction<ChannelEvent[]>) => {
80
+ state.preChatEvents = payload
80
81
  },
81
82
  },
82
83
  extraReducers: (builder) => {
@@ -9,7 +9,7 @@ import {
9
9
  } from 'ui/hooks/seamly-hooks'
10
10
  import TextEntryForm from './text-entry-form'
11
11
 
12
- const controlName = 'userText'
12
+ const controlName = 'textMessageEntry'
13
13
 
14
14
  export default function TextEntry({ ...props }) {
15
15
  const { isOpen, setVisibility } = useVisibility()