@memori.ai/memori-react 6.1.2 → 6.1.3
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/CHANGELOG.md +13 -0
- package/dist/components/MemoriWidget/MemoriWidget.js +1 -1
- package/dist/components/SettingsDrawer/SettingsDrawer.css +12 -0
- package/dist/components/SettingsDrawer/SettingsDrawer.js +2 -2
- package/dist/components/SettingsDrawer/SettingsDrawer.js.map +1 -1
- package/esm/components/MemoriWidget/MemoriWidget.js +1 -1
- package/esm/components/SettingsDrawer/SettingsDrawer.css +12 -0
- package/esm/components/SettingsDrawer/SettingsDrawer.js +2 -2
- package/esm/components/SettingsDrawer/SettingsDrawer.js.map +1 -1
- package/package.json +2 -2
- package/src/components/MemoriWidget/MemoriWidget.tsx +1 -1
- package/src/components/SettingsDrawer/SettingsDrawer.css +12 -0
- package/src/components/SettingsDrawer/SettingsDrawer.tsx +8 -4
- package/src/components/layouts/__snapshots__/Chat.test.tsx.snap +1 -1
- package/src/components/layouts/__snapshots__/FullPage.test.tsx.snap +1 -1
- package/src/components/layouts/__snapshots__/Totem.test.tsx.snap +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [6.1.3](https://github.com/memori-ai/memori-react/compare/v6.1.2...v6.1.3) (2024-03-25)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* apply integration css vars customizations to modals and drawers ([3ce73b2](https://github.com/memori-ai/memori-react/commit/3ce73b29208df84f124de5df4c58a147309295ff))
|
|
9
|
+
* settings drawer css enhancements ([dc95406](https://github.com/memori-ai/memori-react/commit/dc95406cc60dffba386d032d2ce6cab5efa3f220))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Maintenance
|
|
13
|
+
|
|
14
|
+
* update api client ([4efa1b2](https://github.com/memori-ai/memori-react/commit/4efa1b2b21c63e730ccbb71d7522809c09cddfa2))
|
|
15
|
+
|
|
3
16
|
## [6.1.2](https://github.com/memori-ai/memori-react/compare/v6.1.1...v6.1.2) (2024-03-19)
|
|
4
17
|
|
|
5
18
|
|
|
@@ -1404,7 +1404,7 @@ const MemoriWidget = ({ memori, memoriConfigs, memoriLang, multilingual, integra
|
|
|
1404
1404
|
? '#preview,'
|
|
1405
1405
|
: selectedLayout === 'WEBSITE_ASSISTANT'
|
|
1406
1406
|
? ''
|
|
1407
|
-
: ':root,'} .memori-widget {
|
|
1407
|
+
: ':root,'} .memori-widget, .memori-drawer, .memori-modal {
|
|
1408
1408
|
${Object.entries(integrationProperties)
|
|
1409
1409
|
.map(([key, value]) => `${key}: ${value};`)
|
|
1410
1410
|
.join('\n')}
|
|
@@ -3,3 +3,15 @@
|
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
margin: 0.5rem 0 1.5rem;
|
|
5
5
|
}
|
|
6
|
+
|
|
7
|
+
.memori-settings-drawer .memori-settings-drawer--field .memori-select--value {
|
|
8
|
+
color: #000;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.memori-settings-drawer--controlsposition-radio,
|
|
12
|
+
.memori-settings-drawer--microphoneMode-radio {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-wrap: wrap;
|
|
15
|
+
align-items: center;
|
|
16
|
+
margin: 0.5rem 0;
|
|
17
|
+
}
|
|
@@ -16,14 +16,14 @@ const SettingsDrawer = ({ open, layout = 'DEFAULT', onClose, microphoneMode = 'H
|
|
|
16
16
|
let micMode = value === 'CONTINUOUS' ? 'CONTINUOUS' : 'HOLD_TO_TALK';
|
|
17
17
|
setMicrophoneMode(micMode);
|
|
18
18
|
(0, configuration_1.setLocalConfig)('microphoneMode', micMode);
|
|
19
|
-
}, children: [(0, jsx_runtime_1.jsx)(react_1.RadioGroup.Option, { value: "HOLD_TO_TALK", className: "memori-settings-drawer--microphoneMode-radio-button", children: ({ checked }) => ((0, jsx_runtime_1.jsx)(Button_1.default, { primary: checked, children: t('write_and_speak.holdToSpeak') || 'Hold to speak' })) }), (0, jsx_runtime_1.jsx)(react_1.RadioGroup.Option, { value: "CONTINUOUS", className: "memori-settings-drawer--microphoneMode-radio-button", children: ({ checked }) => ((0, jsx_runtime_1.jsx)(Button_1.default, { primary: checked, children: t('write_and_speak.continuousSpeechLabel') ||
|
|
19
|
+
}, children: [(0, jsx_runtime_1.jsx)(react_1.RadioGroup.Option, { value: "HOLD_TO_TALK", className: "memori-settings-drawer--microphoneMode-radio-button", children: ({ checked }) => ((0, jsx_runtime_1.jsx)(Button_1.default, { primary: checked, outlined: !checked, children: t('write_and_speak.holdToSpeak') || 'Hold to speak' })) }), (0, jsx_runtime_1.jsx)(react_1.RadioGroup.Option, { value: "CONTINUOUS", className: "memori-settings-drawer--microphoneMode-radio-button", children: ({ checked }) => ((0, jsx_runtime_1.jsx)(Button_1.default, { primary: checked, outlined: !checked, children: t('write_and_speak.continuousSpeechLabel') ||
|
|
20
20
|
'Continuous speech' })) })] })] }), microphoneMode === 'CONTINUOUS' && ((0, jsx_runtime_1.jsx)("div", { className: "memori-settings-drawer--field", children: (0, jsx_runtime_1.jsx)(Select_1.default, { label: t('write_and_speak.secondsLabel') || 'Seconds', placeholder: t('write_and_speak.secondsLabel') || 'Seconds', options: silenceSeconds.map(s => ({ value: s, label: s })), value: continuousSpeechTimeout, onChange: value => {
|
|
21
21
|
setContinuousSpeechTimeout(value);
|
|
22
22
|
(0, configuration_1.setLocalConfig)('continuousSpeechTimeout', value);
|
|
23
23
|
} }) })), layout === 'TOTEM' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { className: "memori-settings-drawer--field controls", children: [(0, jsx_runtime_1.jsxs)("label", { htmlFor: "#controlsPosition", children: [t('write_and_speak.controlsPosition') || 'Controls', ":"] }), (0, jsx_runtime_1.jsxs)(react_1.RadioGroup, { id: "controlsPosition", name: "controlsPosition", value: controlsPosition, defaultValue: controlsPosition, className: "memori-settings-drawer--controlsposition-radio", onChange: value => {
|
|
24
24
|
setControlsPosition(value);
|
|
25
25
|
(0, configuration_1.setLocalConfig)('controlsPosition', value);
|
|
26
|
-
}, children: [(0, jsx_runtime_1.jsx)(react_1.RadioGroup.Option, { value: "center", className: "memori-settings-drawer--controlsposition-radio-button", children: ({ checked }) => ((0, jsx_runtime_1.jsx)(Button_1.default, { primary: checked, children: t('center') || 'Center' })) }), (0, jsx_runtime_1.jsx)(react_1.RadioGroup.Option, { value: "bottom", className: "memori-settings-drawer--controlsposition-radio-button", children: ({ checked }) => ((0, jsx_runtime_1.jsx)(Button_1.default, { primary: checked, children: t('bottom') || 'Bottom' })) })] })] }), (0, jsx_runtime_1.jsx)("div", { className: "memori-settings-drawer--field", children: (0, jsx_runtime_1.jsx)(Checkbox_1.default, { label: t('write_and_speak.hideEmissionsLabel') || 'Hide emissions', name: "hideControls", checked: hideEmissions, onChange: e => {
|
|
26
|
+
}, children: [(0, jsx_runtime_1.jsx)(react_1.RadioGroup.Option, { value: "center", className: "memori-settings-drawer--controlsposition-radio-button", children: ({ checked }) => ((0, jsx_runtime_1.jsx)(Button_1.default, { primary: checked, outlined: !checked, children: t('center') || 'Center' })) }), (0, jsx_runtime_1.jsx)(react_1.RadioGroup.Option, { value: "bottom", className: "memori-settings-drawer--controlsposition-radio-button", children: ({ checked }) => ((0, jsx_runtime_1.jsx)(Button_1.default, { primary: checked, outlined: !checked, children: t('bottom') || 'Bottom' })) })] })] }), (0, jsx_runtime_1.jsx)("div", { className: "memori-settings-drawer--field", children: (0, jsx_runtime_1.jsx)(Checkbox_1.default, { label: t('write_and_speak.hideEmissionsLabel') || 'Hide emissions', name: "hideControls", checked: hideEmissions, onChange: e => {
|
|
27
27
|
setHideEmissions(e.target.checked);
|
|
28
28
|
(0, configuration_1.setLocalConfig)('hideEmissions', e.target.checked);
|
|
29
29
|
} }) })] })), additionalSettings && ((0, jsx_runtime_1.jsx)("div", { className: "memori-settings-drawer--field controls", children: additionalSettings }))] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsDrawer.js","sourceRoot":"","sources":["../../../src/components/SettingsDrawer/SettingsDrawer.tsx"],"names":[],"mappings":";;;;AAAA,kEAAkC;AAClC,iDAA+C;AAC/C,sEAAsC;AACtC,kEAAkC;AAClC,+DAA6D;AAC7D,6CAA+C;AAC/C,kEAAkC;AAkBlC,MAAM,cAAc,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AAErD,MAAM,cAAc,GAAG,CAAC,EACtB,IAAI,EACJ,MAAM,GAAG,SAAS,EAClB,OAAO,EACP,cAAc,GAAG,cAAc,EAC/B,uBAAuB,EACvB,iBAAiB,EACjB,0BAA0B,EAC1B,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,gBAAgB,EAChB,kBAAkB,GACZ,EAAE,EAAE;IACV,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,8BAAc,GAAE,CAAC;IAE/B,OAAO,CACL,wBAAC,gBAAM,IACL,SAAS,EAAC,wBAAwB,EAClC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,CAAC,CAAC,iBAAiB,CAAC,IAAI,UAAU,EACzC,WAAW,EAAE,CAAC,CAAC,qCAAqC,CAAC,aAErD,iCAAK,SAAS,EAAC,wCAAwC,aACrD,mCAAO,OAAO,EAAC,iBAAiB,aAC7B,CAAC,CAAC,gCAAgC,CAAC,IAAI,iBAAiB,SACnD,EACR,wBAAC,kBAAU,IACT,EAAE,EAAC,gBAAgB,EACnB,IAAI,EAAC,gBAAgB,EACrB,KAAK,EAAE,cAAc,EACrB,YAAY,EAAE,cAAc,EAC5B,SAAS,EAAC,8CAA8C,EACxD,QAAQ,EAAE,KAAK,CAAC,EAAE;4BAChB,IAAI,OAAO,GACT,KAAK,KAAK,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,CAAC;4BAEzD,iBAAiB,CAAC,OAAwC,CAAC,CAAC;4BAC5D,IAAA,8BAAc,EAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;wBAC5C,CAAC,aAED,uBAAC,kBAAU,CAAC,MAAM,IAChB,KAAK,EAAC,cAAc,EACpB,SAAS,EAAC,qDAAqD,YAE9D,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAChB,uBAAC,gBAAM,IAAC,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"SettingsDrawer.js","sourceRoot":"","sources":["../../../src/components/SettingsDrawer/SettingsDrawer.tsx"],"names":[],"mappings":";;;;AAAA,kEAAkC;AAClC,iDAA+C;AAC/C,sEAAsC;AACtC,kEAAkC;AAClC,+DAA6D;AAC7D,6CAA+C;AAC/C,kEAAkC;AAkBlC,MAAM,cAAc,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AAErD,MAAM,cAAc,GAAG,CAAC,EACtB,IAAI,EACJ,MAAM,GAAG,SAAS,EAClB,OAAO,EACP,cAAc,GAAG,cAAc,EAC/B,uBAAuB,EACvB,iBAAiB,EACjB,0BAA0B,EAC1B,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,gBAAgB,EAChB,kBAAkB,GACZ,EAAE,EAAE;IACV,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,8BAAc,GAAE,CAAC;IAE/B,OAAO,CACL,wBAAC,gBAAM,IACL,SAAS,EAAC,wBAAwB,EAClC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,CAAC,CAAC,iBAAiB,CAAC,IAAI,UAAU,EACzC,WAAW,EAAE,CAAC,CAAC,qCAAqC,CAAC,aAErD,iCAAK,SAAS,EAAC,wCAAwC,aAC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AAO,EAAE,QAAQ,EAAE,CAAC,OAAO,YACzC,CAAC,CAAC,QAAQ,CAAC,IAAI,QAAQ,GACjB,CACV,GACiB,IACT,IACT,EACN,gCAAK,SAAS,EAAC,+BAA+B,YAC5C,uBAAC,kBAAQ,IACP,KAAK,EACH,CAAC,CAAC,oCAAoC,CAAC,IAAI,gBAAgB,EAE7D,IAAI,EAAC,cAAc,EACnB,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,CAAC,CAAC,EAAE;gCACZ,gBAAgB,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;gCACnC,IAAA,8BAAc,EAAC,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;4BACpD,CAAC,GACD,GACE,IACL,CACJ,EAEA,kBAAkB,IAAI,CACrB,gCAAK,SAAS,EAAC,wCAAwC,YACpD,kBAAkB,GACf,CACP,IACM,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,cAAc,CAAC"}
|
|
@@ -1401,7 +1401,7 @@ const MemoriWidget = ({ memori, memoriConfigs, memoriLang, multilingual, integra
|
|
|
1401
1401
|
? '#preview,'
|
|
1402
1402
|
: selectedLayout === 'WEBSITE_ASSISTANT'
|
|
1403
1403
|
? ''
|
|
1404
|
-
: ':root,'} .memori-widget {
|
|
1404
|
+
: ':root,'} .memori-widget, .memori-drawer, .memori-modal {
|
|
1405
1405
|
${Object.entries(integrationProperties)
|
|
1406
1406
|
.map(([key, value]) => `${key}: ${value};`)
|
|
1407
1407
|
.join('\n')}
|
|
@@ -3,3 +3,15 @@
|
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
margin: 0.5rem 0 1.5rem;
|
|
5
5
|
}
|
|
6
|
+
|
|
7
|
+
.memori-settings-drawer .memori-settings-drawer--field .memori-select--value {
|
|
8
|
+
color: #000;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.memori-settings-drawer--controlsposition-radio,
|
|
12
|
+
.memori-settings-drawer--microphoneMode-radio {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-wrap: wrap;
|
|
15
|
+
align-items: center;
|
|
16
|
+
margin: 0.5rem 0;
|
|
17
|
+
}
|
|
@@ -13,14 +13,14 @@ const SettingsDrawer = ({ open, layout = 'DEFAULT', onClose, microphoneMode = 'H
|
|
|
13
13
|
let micMode = value === 'CONTINUOUS' ? 'CONTINUOUS' : 'HOLD_TO_TALK';
|
|
14
14
|
setMicrophoneMode(micMode);
|
|
15
15
|
setLocalConfig('microphoneMode', micMode);
|
|
16
|
-
}, children: [_jsx(RadioGroup.Option, { value: "HOLD_TO_TALK", className: "memori-settings-drawer--microphoneMode-radio-button", children: ({ checked }) => (_jsx(Button, { primary: checked, children: t('write_and_speak.holdToSpeak') || 'Hold to speak' })) }), _jsx(RadioGroup.Option, { value: "CONTINUOUS", className: "memori-settings-drawer--microphoneMode-radio-button", children: ({ checked }) => (_jsx(Button, { primary: checked, children: t('write_and_speak.continuousSpeechLabel') ||
|
|
16
|
+
}, children: [_jsx(RadioGroup.Option, { value: "HOLD_TO_TALK", className: "memori-settings-drawer--microphoneMode-radio-button", children: ({ checked }) => (_jsx(Button, { primary: checked, outlined: !checked, children: t('write_and_speak.holdToSpeak') || 'Hold to speak' })) }), _jsx(RadioGroup.Option, { value: "CONTINUOUS", className: "memori-settings-drawer--microphoneMode-radio-button", children: ({ checked }) => (_jsx(Button, { primary: checked, outlined: !checked, children: t('write_and_speak.continuousSpeechLabel') ||
|
|
17
17
|
'Continuous speech' })) })] })] }), microphoneMode === 'CONTINUOUS' && (_jsx("div", { className: "memori-settings-drawer--field", children: _jsx(Select, { label: t('write_and_speak.secondsLabel') || 'Seconds', placeholder: t('write_and_speak.secondsLabel') || 'Seconds', options: silenceSeconds.map(s => ({ value: s, label: s })), value: continuousSpeechTimeout, onChange: value => {
|
|
18
18
|
setContinuousSpeechTimeout(value);
|
|
19
19
|
setLocalConfig('continuousSpeechTimeout', value);
|
|
20
20
|
} }) })), layout === 'TOTEM' && (_jsxs(_Fragment, { children: [_jsxs("div", { className: "memori-settings-drawer--field controls", children: [_jsxs("label", { htmlFor: "#controlsPosition", children: [t('write_and_speak.controlsPosition') || 'Controls', ":"] }), _jsxs(RadioGroup, { id: "controlsPosition", name: "controlsPosition", value: controlsPosition, defaultValue: controlsPosition, className: "memori-settings-drawer--controlsposition-radio", onChange: value => {
|
|
21
21
|
setControlsPosition(value);
|
|
22
22
|
setLocalConfig('controlsPosition', value);
|
|
23
|
-
}, children: [_jsx(RadioGroup.Option, { value: "center", className: "memori-settings-drawer--controlsposition-radio-button", children: ({ checked }) => (_jsx(Button, { primary: checked, children: t('center') || 'Center' })) }), _jsx(RadioGroup.Option, { value: "bottom", className: "memori-settings-drawer--controlsposition-radio-button", children: ({ checked }) => (_jsx(Button, { primary: checked, children: t('bottom') || 'Bottom' })) })] })] }), _jsx("div", { className: "memori-settings-drawer--field", children: _jsx(Checkbox, { label: t('write_and_speak.hideEmissionsLabel') || 'Hide emissions', name: "hideControls", checked: hideEmissions, onChange: e => {
|
|
23
|
+
}, children: [_jsx(RadioGroup.Option, { value: "center", className: "memori-settings-drawer--controlsposition-radio-button", children: ({ checked }) => (_jsx(Button, { primary: checked, outlined: !checked, children: t('center') || 'Center' })) }), _jsx(RadioGroup.Option, { value: "bottom", className: "memori-settings-drawer--controlsposition-radio-button", children: ({ checked }) => (_jsx(Button, { primary: checked, outlined: !checked, children: t('bottom') || 'Bottom' })) })] })] }), _jsx("div", { className: "memori-settings-drawer--field", children: _jsx(Checkbox, { label: t('write_and_speak.hideEmissionsLabel') || 'Hide emissions', name: "hideControls", checked: hideEmissions, onChange: e => {
|
|
24
24
|
setHideEmissions(e.target.checked);
|
|
25
25
|
setLocalConfig('hideEmissions', e.target.checked);
|
|
26
26
|
} }) })] })), additionalSettings && (_jsx("div", { className: "memori-settings-drawer--field controls", children: additionalSettings }))] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsDrawer.js","sourceR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C,QAAQ,CAAC,IAAI,QAAQ,GACjB,CACV,GACiB,EACpB,KAAC,UAAU,CAAC,MAAM,IAChB,KAAK,EAAC,QAAQ,EACd,SAAS,EAAC,uDAAuD,YAEhE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAChB,KAAC,MAAM,IAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,OAAO,YACzC,CAAC,CAAC,QAAQ,CAAC,IAAI,QAAQ,GACjB,CACV,GACiB,IACT,IACT,EACN,cAAK,SAAS,EAAC,+BAA+B,YAC5C,KAAC,QAAQ,IACP,KAAK,EACH,CAAC,CAAC,oCAAoC,CAAC,IAAI,gBAAgB,EAE7D,IAAI,EAAC,cAAc,EACnB,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,CAAC,CAAC,EAAE;gCACZ,gBAAgB,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;gCACnC,cAAc,CAAC,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;4BACpD,CAAC,GACD,GACE,IACL,CACJ,EAEA,kBAAkB,IAAI,CACrB,cAAK,SAAS,EAAC,wCAAwC,YACpD,kBAAkB,GACf,CACP,IACM,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "6.1.
|
|
2
|
+
"version": "6.1.3",
|
|
3
3
|
"name": "@memori.ai/memori-react",
|
|
4
4
|
"author": "Memori Srl",
|
|
5
5
|
"main": "dist/index.js",
|
|
@@ -290,7 +290,7 @@
|
|
|
290
290
|
},
|
|
291
291
|
"dependencies": {
|
|
292
292
|
"@headlessui/react": "1.7.4",
|
|
293
|
-
"@memori.ai/memori-api-client": "^4.0.
|
|
293
|
+
"@memori.ai/memori-api-client": "^4.0.2",
|
|
294
294
|
"@react-three/drei": "8.20.2",
|
|
295
295
|
"@react-three/fiber": "7.0.25",
|
|
296
296
|
"classnames": "2.3.2",
|
|
@@ -2061,7 +2061,7 @@ const MemoriWidget = ({
|
|
|
2061
2061
|
: selectedLayout === 'WEBSITE_ASSISTANT'
|
|
2062
2062
|
? ''
|
|
2063
2063
|
: ':root,'
|
|
2064
|
-
} .memori-widget {
|
|
2064
|
+
} .memori-widget, .memori-drawer, .memori-modal {
|
|
2065
2065
|
${Object.entries(integrationProperties)
|
|
2066
2066
|
.map(([key, value]) => `${key}: ${value};`)
|
|
2067
2067
|
.join('\n')}
|
|
@@ -3,3 +3,15 @@
|
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
margin: 0.5rem 0 1.5rem;
|
|
5
5
|
}
|
|
6
|
+
|
|
7
|
+
.memori-settings-drawer .memori-settings-drawer--field .memori-select--value {
|
|
8
|
+
color: #000;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.memori-settings-drawer--controlsposition-radio,
|
|
12
|
+
.memori-settings-drawer--microphoneMode-radio {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-wrap: wrap;
|
|
15
|
+
align-items: center;
|
|
16
|
+
margin: 0.5rem 0;
|
|
17
|
+
}
|
|
@@ -71,7 +71,7 @@ const SettingsDrawer = ({
|
|
|
71
71
|
className="memori-settings-drawer--microphoneMode-radio-button"
|
|
72
72
|
>
|
|
73
73
|
{({ checked }) => (
|
|
74
|
-
<Button primary={checked}>
|
|
74
|
+
<Button primary={checked} outlined={!checked}>
|
|
75
75
|
{t('write_and_speak.holdToSpeak') || 'Hold to speak'}
|
|
76
76
|
</Button>
|
|
77
77
|
)}
|
|
@@ -81,7 +81,7 @@ const SettingsDrawer = ({
|
|
|
81
81
|
className="memori-settings-drawer--microphoneMode-radio-button"
|
|
82
82
|
>
|
|
83
83
|
{({ checked }) => (
|
|
84
|
-
<Button primary={checked}>
|
|
84
|
+
<Button primary={checked} outlined={!checked}>
|
|
85
85
|
{t('write_and_speak.continuousSpeechLabel') ||
|
|
86
86
|
'Continuous speech'}
|
|
87
87
|
</Button>
|
|
@@ -127,7 +127,9 @@ const SettingsDrawer = ({
|
|
|
127
127
|
className="memori-settings-drawer--controlsposition-radio-button"
|
|
128
128
|
>
|
|
129
129
|
{({ checked }) => (
|
|
130
|
-
<Button primary={checked}
|
|
130
|
+
<Button primary={checked} outlined={!checked}>
|
|
131
|
+
{t('center') || 'Center'}
|
|
132
|
+
</Button>
|
|
131
133
|
)}
|
|
132
134
|
</RadioGroup.Option>
|
|
133
135
|
<RadioGroup.Option
|
|
@@ -135,7 +137,9 @@ const SettingsDrawer = ({
|
|
|
135
137
|
className="memori-settings-drawer--controlsposition-radio-button"
|
|
136
138
|
>
|
|
137
139
|
{({ checked }) => (
|
|
138
|
-
<Button primary={checked}
|
|
140
|
+
<Button primary={checked} outlined={!checked}>
|
|
141
|
+
{t('bottom') || 'Bottom'}
|
|
142
|
+
</Button>
|
|
139
143
|
)}
|
|
140
144
|
</RadioGroup.Option>
|
|
141
145
|
</RadioGroup>
|