-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(channel-web): fix useSessionStorage config option (#5118)
* fix(channel-web): fix useSessionStorage config option * small fix * merge master * fix using session storage * fix build * reject with error when visutor id cannot be acquired * added missing typings * added automatic serialize and deserialize when using storage utils class * callers now use storage own serialize + deserialize * small fix * pr comments * update locale with config + setup socket only once on init * chore(shared-lite): added unit tests for storage utils (#5405) * chore(sharedLite): added unit tests for storage utils * fix build * updated unit tests * removed ability to reconfigure useSessionStorage * removed unecessary async/await * better typings * PR comments + bump studio v0.0.37 Co-authored-by: Samuel Massé <59894025+samuelmasse@users.noreply.github.com>
- Loading branch information
1 parent
f976538
commit edac7c6
Showing
24 changed files
with
347 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { BPStorage } from '../../../../packages/ui-shared-lite/utils/storage' | ||
|
||
declare global { | ||
interface Window { | ||
botpressWebChat: { | ||
init: (config: any, containerSelector?: string) => void | ||
sendEvent: (payload: any, webchatId?: string) => void | ||
} | ||
BOT_ID: string | ||
BP_STORAGE: BPStorage | ||
ROOT_PATH: string | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const tsjPreset = require('ts-jest/presets') | ||
|
||
module.exports = { | ||
clearMocks: true, | ||
preset: 'ts-jest', | ||
testEnvironment: 'jsdom', | ||
transform: { | ||
...tsjPreset.transform | ||
}, | ||
globals: { | ||
'ts-jest': { | ||
tsConfig: '<rootDir>../ui-shared/tsconfig.json', | ||
diagnostics: false | ||
} | ||
} | ||
} |
Oops, something went wrong.