dmed-voice-assistant 1.1.1 → 1.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/dist/components/RecognitionListItem.js +11 -9
- package/dist/components/RecordListItem.js +22 -20
- package/dist/components/StyledSelect.js +2 -0
- package/dist/components/svgs.js +57 -55
- package/dist/index.js +6 -4
- package/dist/recognition.js +150 -148
- package/dist/recorder.js +57 -55
- package/package.json +1 -1
@@ -4,45 +4,47 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.default = void 0;
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
7
8
|
var _material = require("@mui/material");
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
8
10
|
const RecognitionListItem = _ref => {
|
9
11
|
let {
|
10
12
|
data
|
11
13
|
} = _ref;
|
12
|
-
return /*#__PURE__*/
|
14
|
+
return /*#__PURE__*/_react.default.createElement(_material.Box, null, /*#__PURE__*/_react.default.createElement(_material.Box, {
|
13
15
|
className: "flex items-center justify-between p-[4.5px] bg-[#F6F8FA]"
|
14
|
-
}, /*#__PURE__*/
|
16
|
+
}, /*#__PURE__*/_react.default.createElement(_material.Box, {
|
15
17
|
className: "flex items-center space-x-1 p-[4px]"
|
16
|
-
}, /*#__PURE__*/
|
18
|
+
}, /*#__PURE__*/_react.default.createElement(_material.Typography, {
|
17
19
|
className: "!font-bold !text-[14px]",
|
18
20
|
color: "#494A48"
|
19
|
-
}, data.result.length), /*#__PURE__*/
|
21
|
+
}, data.result.length), /*#__PURE__*/_react.default.createElement(_material.Typography, {
|
20
22
|
className: "!font-400 !text-[12px]",
|
21
23
|
color: "#494A48"
|
22
|
-
}, "words")), /*#__PURE__*/
|
24
|
+
}, "words")), /*#__PURE__*/_react.default.createElement(_material.Typography, {
|
23
25
|
className: "px-[4px] !font-400 !text-[14px]",
|
24
26
|
color: "#494A48"
|
25
27
|
}, data.date.toLocaleTimeString('en-US', {
|
26
28
|
hour: '2-digit',
|
27
29
|
minute: '2-digit',
|
28
30
|
hour12: true
|
29
|
-
}))), /*#__PURE__*/
|
31
|
+
}))), /*#__PURE__*/_react.default.createElement(_material.Box, {
|
30
32
|
className: "flex items-center flex-wrap space-x-1 mt-1 p-[9px]",
|
31
33
|
sx: {
|
32
34
|
maxWidth: "387px",
|
33
35
|
overflow: "hidden"
|
34
36
|
}
|
35
37
|
}, data.result.map((item, index) => {
|
36
|
-
return /*#__PURE__*/
|
38
|
+
return /*#__PURE__*/_react.default.createElement(_material.Box, {
|
37
39
|
className: "flex items-center",
|
38
40
|
key: index
|
39
|
-
}, /*#__PURE__*/
|
41
|
+
}, /*#__PURE__*/_react.default.createElement(_material.Typography, {
|
40
42
|
className: "!font-400 !text-[16px]",
|
41
43
|
color: "#494A48",
|
42
44
|
sx: {
|
43
45
|
fontFamily: "Space Grotesk !important"
|
44
46
|
}
|
45
|
-
}, item), index !== data.result.length - 1 && /*#__PURE__*/
|
47
|
+
}, item), index !== data.result.length - 1 && /*#__PURE__*/_react.default.createElement(_material.Typography, {
|
46
48
|
className: "!font-400 !text-[16px]",
|
47
49
|
color: "#494A4880",
|
48
50
|
sx: {
|
@@ -4,9 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.default = void 0;
|
7
|
-
var _react = require("react");
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
8
8
|
var _material = require("@mui/material");
|
9
9
|
var _svgs = require("./svgs");
|
10
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
11
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
10
12
|
const formatDate = date => {
|
11
13
|
const day = String(date.getDate()).padStart(2, '0'); // Get day with leading zero
|
12
14
|
const month = String(date.getMonth() + 1).padStart(2, '0'); // Get month (0-indexed, so add 1) with leading zero
|
@@ -108,14 +110,14 @@ const RecordListItem = _ref => {
|
|
108
110
|
}
|
109
111
|
handlePopoverClose();
|
110
112
|
};
|
111
|
-
return /*#__PURE__*/
|
113
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_material.Box, {
|
112
114
|
className: "flex items-center justify-between"
|
113
|
-
}, /*#__PURE__*/
|
115
|
+
}, /*#__PURE__*/_react.default.createElement(_material.Box, {
|
114
116
|
className: "flex items-center space-x-2"
|
115
|
-
}, /*#__PURE__*/
|
117
|
+
}, /*#__PURE__*/_react.default.createElement(_material.Box, {
|
116
118
|
className: "cursor-pointer",
|
117
119
|
onClick: playAudio
|
118
|
-
}, isPlaying ? /*#__PURE__*/
|
120
|
+
}, isPlaying ? /*#__PURE__*/_react.default.createElement(_svgs.PauseIcon, null) : /*#__PURE__*/_react.default.createElement(_svgs.BigStartIcon, null)), /*#__PURE__*/_react.default.createElement(_material.Box, null, isEditing ? /*#__PURE__*/_react.default.createElement(_material.TextField, {
|
119
121
|
value: newLabel,
|
120
122
|
onChange: handleInputChange,
|
121
123
|
onBlur: handleInputBlur,
|
@@ -134,29 +136,29 @@ const RecordListItem = _ref => {
|
|
134
136
|
fontFamily: "Afacad !important"
|
135
137
|
}
|
136
138
|
}
|
137
|
-
}) : /*#__PURE__*/
|
139
|
+
}) : /*#__PURE__*/_react.default.createElement(_material.Typography, {
|
138
140
|
className: "!font-[600] !text-[16px]",
|
139
141
|
color: "#EAE5DC"
|
140
|
-
}, newLabel), /*#__PURE__*/
|
142
|
+
}, newLabel), /*#__PURE__*/_react.default.createElement(_material.Typography, {
|
141
143
|
className: "flex items-center !font-[400] !text-[14px]",
|
142
144
|
color: "#EAE5DCB2",
|
143
145
|
sx: {
|
144
146
|
fontFamily: "Afacad !important"
|
145
147
|
}
|
146
|
-
}, formatDate(createdDate), /*#__PURE__*/
|
148
|
+
}, formatDate(createdDate), /*#__PURE__*/_react.default.createElement("svg", {
|
147
149
|
className: "mx-1",
|
148
150
|
width: "3",
|
149
151
|
height: "4",
|
150
152
|
viewBox: "0 0 3 4",
|
151
153
|
fill: "none",
|
152
154
|
xmlns: "http://www.w3.org/2000/svg"
|
153
|
-
}, /*#__PURE__*/
|
155
|
+
}, /*#__PURE__*/_react.default.createElement("circle", {
|
154
156
|
cx: "1.5",
|
155
157
|
cy: "2",
|
156
158
|
r: "1.5",
|
157
159
|
fill: "#EAE5DC",
|
158
160
|
fillOpacity: "0.7"
|
159
|
-
})), /*#__PURE__*/
|
161
|
+
})), /*#__PURE__*/_react.default.createElement("span", {
|
160
162
|
ref: el => {
|
161
163
|
if (el) {
|
162
164
|
el.style.setProperty('font-family', 'Afacad', 'important');
|
@@ -166,13 +168,13 @@ const RecordListItem = _ref => {
|
|
166
168
|
fontWeight: "600",
|
167
169
|
marginRight: "3px"
|
168
170
|
}
|
169
|
-
}, formatBytes(capacity).size), formatBytes(capacity).type))), /*#__PURE__*/
|
171
|
+
}, formatBytes(capacity).size), formatBytes(capacity).type))), /*#__PURE__*/_react.default.createElement(_material.Typography, {
|
170
172
|
className: "!font-[600] !text-[20px]",
|
171
173
|
color: "#EAE5DC",
|
172
174
|
sx: {
|
173
175
|
fontFamily: "Afacad !important"
|
174
176
|
}
|
175
|
-
}, formatTime(time).minutes, /*#__PURE__*/
|
177
|
+
}, formatTime(time).minutes, /*#__PURE__*/_react.default.createElement("span", {
|
176
178
|
ref: el => {
|
177
179
|
if (el) {
|
178
180
|
el.style.setProperty('font-family', 'Afacad', 'important');
|
@@ -183,7 +185,7 @@ const RecordListItem = _ref => {
|
|
183
185
|
fontSize: "16px",
|
184
186
|
marginRight: "5px"
|
185
187
|
}
|
186
|
-
}, "m"), formatTime(time).seconds, /*#__PURE__*/
|
188
|
+
}, "m"), formatTime(time).seconds, /*#__PURE__*/_react.default.createElement("span", {
|
187
189
|
ref: el => {
|
188
190
|
if (el) {
|
189
191
|
el.style.setProperty('font-family', 'Afacad', 'important');
|
@@ -193,10 +195,10 @@ const RecordListItem = _ref => {
|
|
193
195
|
fontWeight: "400",
|
194
196
|
fontSize: "16px"
|
195
197
|
}
|
196
|
-
}, "s")), /*#__PURE__*/
|
198
|
+
}, "s")), /*#__PURE__*/_react.default.createElement(_material.Box, {
|
197
199
|
className: "cursor-pointer",
|
198
200
|
onClick: handlePopoverOpen
|
199
|
-
}, /*#__PURE__*/
|
201
|
+
}, /*#__PURE__*/_react.default.createElement(_svgs.ThreeDotsIcon, null))), /*#__PURE__*/_react.default.createElement(_material.Popover, {
|
200
202
|
open: openAnchorEl,
|
201
203
|
anchorEl: anchorEl,
|
202
204
|
onClose: handlePopoverClose,
|
@@ -217,9 +219,9 @@ const RecordListItem = _ref => {
|
|
217
219
|
borderRadius: '5px'
|
218
220
|
}
|
219
221
|
}
|
220
|
-
}, /*#__PURE__*/
|
222
|
+
}, /*#__PURE__*/_react.default.createElement(_material.Box, {
|
221
223
|
className: "px-[5px] pt-[5px] pb-[2.5px] w-[115px]"
|
222
|
-
}, /*#__PURE__*/
|
224
|
+
}, /*#__PURE__*/_react.default.createElement(_material.Box, {
|
223
225
|
className: "flex items-center justify-between rounded-[5px] px-[10px] py-[3px] cursor-pointer",
|
224
226
|
sx: {
|
225
227
|
'&:hover': {
|
@@ -227,10 +229,10 @@ const RecordListItem = _ref => {
|
|
227
229
|
}
|
228
230
|
},
|
229
231
|
onClick: handleRename
|
230
|
-
}, /*#__PURE__*/
|
232
|
+
}, /*#__PURE__*/_react.default.createElement(_material.Box, null, /*#__PURE__*/_react.default.createElement(_svgs.EditIcon, null)), /*#__PURE__*/_react.default.createElement(_material.Typography, {
|
231
233
|
className: "!font-400 !text-[12px]",
|
232
234
|
color: "#EAE5DC"
|
233
|
-
}, "Rename")), /*#__PURE__*/
|
235
|
+
}, "Rename")), /*#__PURE__*/_react.default.createElement(_material.Box, {
|
234
236
|
className: "flex items-center justify-between rounded-[5px] px-[10px] py-[3px] cursor-pointer",
|
235
237
|
sx: {
|
236
238
|
'&:hover': {
|
@@ -238,7 +240,7 @@ const RecordListItem = _ref => {
|
|
238
240
|
}
|
239
241
|
},
|
240
242
|
onClick: handleDelete
|
241
|
-
}, /*#__PURE__*/
|
243
|
+
}, /*#__PURE__*/_react.default.createElement(_material.Box, null, /*#__PURE__*/_react.default.createElement(_svgs.DeleteIcon, null)), /*#__PURE__*/_react.default.createElement(_material.Typography, {
|
242
244
|
className: "!font-400 !text-[12px]",
|
243
245
|
color: "#EAE5DC"
|
244
246
|
}, "Delete")))));
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.default = void 0;
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
7
8
|
var _material = require("@mui/material");
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
8
10
|
const StyledSelect = (0, _material.styled)(_material.Select)(_ref => {
|
9
11
|
let {
|
10
12
|
theme
|