jodit 4.6.19 → 4.7.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 +34 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +248 -4
- package/es2015/jodit.js +35172 -37099
- package/es2015/jodit.min.js +248 -4
- package/es2015/plugins/debug/debug.css +1 -1
- package/es2015/plugins/debug/debug.js +44 -74
- package/es2015/plugins/debug/debug.min.js +5 -4
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +616 -714
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +2 -4
- package/es2018/jodit.fat.min.js +248 -4
- package/es2018/jodit.min.js +248 -4
- package/es2018/plugins/debug/debug.min.js +5 -4
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +2 -4
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +262 -4
- package/es2021/jodit.js +34762 -36981
- package/es2021/jodit.min.js +262 -4
- package/es2021/plugins/debug/debug.css +1 -1
- package/es2021/plugins/debug/debug.js +42 -72
- package/es2021/plugins/debug/debug.min.js +5 -4
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +614 -712
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +2 -4
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +262 -4
- package/es2021.en/jodit.js +33513 -35465
- package/es2021.en/jodit.min.js +262 -4
- package/es2021.en/plugins/debug/debug.css +1 -1
- package/es2021.en/plugins/debug/debug.js +42 -72
- package/es2021.en/plugins/debug/debug.min.js +5 -4
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +318 -347
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +2 -4
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -4
- package/es5/jodit.js +42977 -39182
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -4
- package/es5/plugins/debug/debug.css +1 -1
- package/es5/plugins/debug/debug.js +152 -163
- package/es5/plugins/debug/debug.min.js +2 -4
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +755 -777
- package/es5/plugins/speech-recognize/speech-recognize.min.js +2 -4
- package/es5/polyfills.fat.min.js +8 -0
- package/es5/{415.js → polyfills.js} +177 -5
- package/es5/polyfills.min.js +8 -0
- package/esm/config.js +3 -0
- package/esm/core/constants.js +1 -1
- package/esm/core/helpers/utils/assert.js +4 -0
- package/esm/core/ui/form/inputs/input/input.d.ts +1 -0
- package/esm/core/view/view.d.ts +1 -1
- package/esm/core/view/view.js +1 -1
- package/esm/jodit.js +6 -1
- package/esm/modules/dialog/dialog.js +5 -5
- package/esm/modules/status-bar/status-bar.d.ts +1 -1
- package/esm/plugins/tab/cases/on-tab-inside-li.js +1 -1
- package/esm/tsconfig.json +1 -1
- package/package.json +3 -5
- package/types/core/ui/form/inputs/input/input.d.ts +1 -0
- package/types/core/view/view.d.ts +1 -1
- package/types/modules/status-bar/status-bar.d.ts +1 -1
- package/types/tsconfig.json +1 -1
- package/es2018/jodit.css +0 -5386
- package/es2018/jodit.js +0 -45274
- package/es2018/plugins/debug/debug.css +0 -53
- package/es2018/plugins/debug/debug.js +0 -236
- package/es2018/plugins/speech-recognize/speech-recognize.css +0 -43
- package/es2018/plugins/speech-recognize/speech-recognize.js +0 -1199
- package/es5/415.fat.min.js +0 -10
- package/es5/415.min.js +0 -10
- package/es5/5.fat.min.js +0 -10
- package/es5/5.js +0 -76
- package/es5/5.min.js +0 -10
- package/esm/polyfills.js +0 -54
|
@@ -1,1199 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
3
|
-
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.6.19
|
|
5
|
-
* Url: https://xdsoft.net/jodit/
|
|
6
|
-
* License(s): MIT
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
(function webpackUniversalModuleDefinition(root, factory) {
|
|
10
|
-
if(typeof exports === 'object' && typeof module === 'object')
|
|
11
|
-
module.exports = factory();
|
|
12
|
-
else if(typeof define === 'function' && define.amd)
|
|
13
|
-
define([], factory);
|
|
14
|
-
else {
|
|
15
|
-
var a = factory();
|
|
16
|
-
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
17
|
-
}
|
|
18
|
-
})(self, function() {
|
|
19
|
-
return (self["webpackChunkjodit"] = self["webpackChunkjodit"] || []).push([[882],{
|
|
20
|
-
|
|
21
|
-
/***/ 3424:
|
|
22
|
-
/***/ (function(module) {
|
|
23
|
-
|
|
24
|
-
"use strict";
|
|
25
|
-
|
|
26
|
-
/*!
|
|
27
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
28
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
29
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
30
|
-
*/
|
|
31
|
-
module.exports = {
|
|
32
|
-
newline: 'regel',
|
|
33
|
-
delete: 'verwijderen',
|
|
34
|
-
space: 'ruimte',
|
|
35
|
-
'Speech Recognize': 'Spraak Herkennen',
|
|
36
|
-
Sound: 'Geluid',
|
|
37
|
-
'Interim Results': 'Tussentijdse Resultaten'
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
/***/ }),
|
|
42
|
-
|
|
43
|
-
/***/ 13958:
|
|
44
|
-
/***/ (function(module) {
|
|
45
|
-
|
|
46
|
-
"use strict";
|
|
47
|
-
|
|
48
|
-
/*!
|
|
49
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
50
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
51
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
52
|
-
*/
|
|
53
|
-
module.exports = {
|
|
54
|
-
newline: 'nouvelle ligne',
|
|
55
|
-
delete: 'supprimer',
|
|
56
|
-
space: 'espace',
|
|
57
|
-
'Speech Recognize': 'Reconnaissance Vocale',
|
|
58
|
-
Sound: 'Son',
|
|
59
|
-
'Interim Results': 'Résultats Intermédiaires'
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
/***/ }),
|
|
64
|
-
|
|
65
|
-
/***/ 14765:
|
|
66
|
-
/***/ (function(module) {
|
|
67
|
-
|
|
68
|
-
"use strict";
|
|
69
|
-
|
|
70
|
-
/*!
|
|
71
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
72
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
73
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
74
|
-
*/
|
|
75
|
-
module.exports = {
|
|
76
|
-
newline: 'újsor',
|
|
77
|
-
delete: 'törlés',
|
|
78
|
-
space: 'tér',
|
|
79
|
-
'Speech Recognize': 'A Beszéd Felismeri',
|
|
80
|
-
Sound: 'Hang',
|
|
81
|
-
'Interim Results': 'Időközi Eredmények'
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
/***/ }),
|
|
86
|
-
|
|
87
|
-
/***/ 15603:
|
|
88
|
-
/***/ (function(module) {
|
|
89
|
-
|
|
90
|
-
"use strict";
|
|
91
|
-
|
|
92
|
-
/*!
|
|
93
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
94
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
95
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
96
|
-
*/
|
|
97
|
-
module.exports = {
|
|
98
|
-
newline: 'خط جدید',
|
|
99
|
-
delete: 'حذف',
|
|
100
|
-
space: 'فضا',
|
|
101
|
-
'Speech Recognize': 'گفتار را تشخیص دهید',
|
|
102
|
-
Sound: 'صدا',
|
|
103
|
-
'Interim Results': 'نتایج موقت'
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
/***/ }),
|
|
108
|
-
|
|
109
|
-
/***/ 16491:
|
|
110
|
-
/***/ (function(module) {
|
|
111
|
-
|
|
112
|
-
"use strict";
|
|
113
|
-
|
|
114
|
-
/*!
|
|
115
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
116
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
117
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
118
|
-
*/
|
|
119
|
-
module.exports = {
|
|
120
|
-
newline: 'новая строка|перенос|энтер',
|
|
121
|
-
delete: 'удалить',
|
|
122
|
-
space: 'пробел',
|
|
123
|
-
'Speech Recognize': 'Распознавание речи',
|
|
124
|
-
Sound: 'Звук',
|
|
125
|
-
'Interim Results': 'Промежуточные результаты'
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
/***/ }),
|
|
130
|
-
|
|
131
|
-
/***/ 18717:
|
|
132
|
-
/***/ (function(module) {
|
|
133
|
-
|
|
134
|
-
"use strict";
|
|
135
|
-
|
|
136
|
-
/*!
|
|
137
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
138
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
139
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
140
|
-
*/
|
|
141
|
-
module.exports = {
|
|
142
|
-
newline: 'חדשות',
|
|
143
|
-
delete: 'מחק',
|
|
144
|
-
space: 'שטח',
|
|
145
|
-
'Speech Recognize': 'דיבור מזהה',
|
|
146
|
-
Sound: 'קול',
|
|
147
|
-
'Interim Results': 'תוצאות ביניים'
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
/***/ }),
|
|
152
|
-
|
|
153
|
-
/***/ 20825:
|
|
154
|
-
/***/ (function(module) {
|
|
155
|
-
|
|
156
|
-
"use strict";
|
|
157
|
-
|
|
158
|
-
/*!
|
|
159
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
160
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
161
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
162
|
-
*/
|
|
163
|
-
module.exports = {
|
|
164
|
-
newline: 'nylinje',
|
|
165
|
-
delete: 'slette',
|
|
166
|
-
space: 'rom',
|
|
167
|
-
'Speech Recognize': 'Talegjenkjenning',
|
|
168
|
-
Sound: 'Lyd',
|
|
169
|
-
'Interim Results': 'Midlertidige resultater'
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
/***/ }),
|
|
174
|
-
|
|
175
|
-
/***/ 22227:
|
|
176
|
-
/***/ (function(module) {
|
|
177
|
-
|
|
178
|
-
module.exports = "<svg viewBox=\"0 0 16 16\" xml:space=\"preserve\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M8,11c1.657,0,3-1.343,3-3V3c0-1.657-1.343-3-3-3S5,1.343,5,3v5C5,9.657,6.343,11,8,11z\"/> <path d=\"M13,8V6h-1l0,1.844c0,1.92-1.282,3.688-3.164,4.071C6.266,12.438,4,10.479,4,8V6H3v2c0,2.414,1.721,4.434,4,4.899V15H5v1h6 v-1H9v-2.101C11.279,12.434,13,10.414,13,8z\"/> </svg>"
|
|
179
|
-
|
|
180
|
-
/***/ }),
|
|
181
|
-
|
|
182
|
-
/***/ 25202:
|
|
183
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
184
|
-
|
|
185
|
-
"use strict";
|
|
186
|
-
__webpack_require__.r(__webpack_exports__);
|
|
187
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
188
|
-
/* harmony export */ ar: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
|
|
189
|
-
/* harmony export */ cs_cz: function() { return /* reexport module object */ _cs_cz_js__WEBPACK_IMPORTED_MODULE_1__; },
|
|
190
|
-
/* harmony export */ de: function() { return /* reexport module object */ _de_js__WEBPACK_IMPORTED_MODULE_2__; },
|
|
191
|
-
/* harmony export */ es: function() { return /* reexport module object */ _es_js__WEBPACK_IMPORTED_MODULE_3__; },
|
|
192
|
-
/* harmony export */ fa: function() { return /* reexport module object */ _fa_js__WEBPACK_IMPORTED_MODULE_4__; },
|
|
193
|
-
/* harmony export */ fi: function() { return /* reexport module object */ _fi_js__WEBPACK_IMPORTED_MODULE_5__; },
|
|
194
|
-
/* harmony export */ fr: function() { return /* reexport module object */ _fr_js__WEBPACK_IMPORTED_MODULE_6__; },
|
|
195
|
-
/* harmony export */ he: function() { return /* reexport module object */ _he_js__WEBPACK_IMPORTED_MODULE_7__; },
|
|
196
|
-
/* harmony export */ hu: function() { return /* reexport module object */ _hu_js__WEBPACK_IMPORTED_MODULE_8__; },
|
|
197
|
-
/* harmony export */ id: function() { return /* reexport module object */ _id_js__WEBPACK_IMPORTED_MODULE_9__; },
|
|
198
|
-
/* harmony export */ it: function() { return /* reexport module object */ _it_js__WEBPACK_IMPORTED_MODULE_10__; },
|
|
199
|
-
/* harmony export */ ja: function() { return /* reexport module object */ _ja_js__WEBPACK_IMPORTED_MODULE_11__; },
|
|
200
|
-
/* harmony export */ ko: function() { return /* reexport module object */ _ko_js__WEBPACK_IMPORTED_MODULE_12__; },
|
|
201
|
-
/* harmony export */ mn: function() { return /* reexport module object */ _mn_js__WEBPACK_IMPORTED_MODULE_13__; },
|
|
202
|
-
/* harmony export */ nl: function() { return /* reexport module object */ _nl_js__WEBPACK_IMPORTED_MODULE_14__; },
|
|
203
|
-
/* harmony export */ no: function() { return /* reexport module object */ _no_js__WEBPACK_IMPORTED_MODULE_15__; },
|
|
204
|
-
/* harmony export */ pl: function() { return /* reexport module object */ _pl_js__WEBPACK_IMPORTED_MODULE_16__; },
|
|
205
|
-
/* harmony export */ pt_br: function() { return /* reexport module object */ _pt_br_js__WEBPACK_IMPORTED_MODULE_17__; },
|
|
206
|
-
/* harmony export */ ru: function() { return /* reexport module object */ _ru_js__WEBPACK_IMPORTED_MODULE_18__; },
|
|
207
|
-
/* harmony export */ tr: function() { return /* reexport module object */ _tr_js__WEBPACK_IMPORTED_MODULE_19__; },
|
|
208
|
-
/* harmony export */ ua: function() { return /* reexport module object */ _ua_js__WEBPACK_IMPORTED_MODULE_20__; },
|
|
209
|
-
/* harmony export */ zh_cn: function() { return /* reexport module object */ _zh_cn_js__WEBPACK_IMPORTED_MODULE_21__; },
|
|
210
|
-
/* harmony export */ zh_tw: function() { return /* reexport module object */ _zh_tw_js__WEBPACK_IMPORTED_MODULE_22__; }
|
|
211
|
-
/* harmony export */ });
|
|
212
|
-
/* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(61593);
|
|
213
|
-
/* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_ar_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
214
|
-
/* harmony import */ var _cs_cz_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64458);
|
|
215
|
-
/* harmony import */ var _cs_cz_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_cs_cz_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
216
|
-
/* harmony import */ var _de_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(89601);
|
|
217
|
-
/* harmony import */ var _de_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_de_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
218
|
-
/* harmony import */ var _es_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(87710);
|
|
219
|
-
/* harmony import */ var _es_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_es_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
220
|
-
/* harmony import */ var _fa_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(15603);
|
|
221
|
-
/* harmony import */ var _fa_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_fa_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
222
|
-
/* harmony import */ var _fi_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(84059);
|
|
223
|
-
/* harmony import */ var _fi_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_fi_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
224
|
-
/* harmony import */ var _fr_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(13958);
|
|
225
|
-
/* harmony import */ var _fr_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_fr_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
226
|
-
/* harmony import */ var _he_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(18717);
|
|
227
|
-
/* harmony import */ var _he_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_he_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
228
|
-
/* harmony import */ var _hu_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(14765);
|
|
229
|
-
/* harmony import */ var _hu_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_hu_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
230
|
-
/* harmony import */ var _id_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(77995);
|
|
231
|
-
/* harmony import */ var _id_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_id_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
232
|
-
/* harmony import */ var _it_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(92315);
|
|
233
|
-
/* harmony import */ var _it_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_it_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
234
|
-
/* harmony import */ var _ja_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(54711);
|
|
235
|
-
/* harmony import */ var _ja_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_ja_js__WEBPACK_IMPORTED_MODULE_11__);
|
|
236
|
-
/* harmony import */ var _ko_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(68632);
|
|
237
|
-
/* harmony import */ var _ko_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_ko_js__WEBPACK_IMPORTED_MODULE_12__);
|
|
238
|
-
/* harmony import */ var _mn_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(76769);
|
|
239
|
-
/* harmony import */ var _mn_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_mn_js__WEBPACK_IMPORTED_MODULE_13__);
|
|
240
|
-
/* harmony import */ var _nl_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(3424);
|
|
241
|
-
/* harmony import */ var _nl_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_nl_js__WEBPACK_IMPORTED_MODULE_14__);
|
|
242
|
-
/* harmony import */ var _no_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(20825);
|
|
243
|
-
/* harmony import */ var _no_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_no_js__WEBPACK_IMPORTED_MODULE_15__);
|
|
244
|
-
/* harmony import */ var _pl_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(85454);
|
|
245
|
-
/* harmony import */ var _pl_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_pl_js__WEBPACK_IMPORTED_MODULE_16__);
|
|
246
|
-
/* harmony import */ var _pt_br_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(64149);
|
|
247
|
-
/* harmony import */ var _pt_br_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_pt_br_js__WEBPACK_IMPORTED_MODULE_17__);
|
|
248
|
-
/* harmony import */ var _ru_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(16491);
|
|
249
|
-
/* harmony import */ var _ru_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_ru_js__WEBPACK_IMPORTED_MODULE_18__);
|
|
250
|
-
/* harmony import */ var _tr_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(48948);
|
|
251
|
-
/* harmony import */ var _tr_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_tr_js__WEBPACK_IMPORTED_MODULE_19__);
|
|
252
|
-
/* harmony import */ var _ua_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(95700);
|
|
253
|
-
/* harmony import */ var _ua_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_ua_js__WEBPACK_IMPORTED_MODULE_20__);
|
|
254
|
-
/* harmony import */ var _zh_cn_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(84370);
|
|
255
|
-
/* harmony import */ var _zh_cn_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_zh_cn_js__WEBPACK_IMPORTED_MODULE_21__);
|
|
256
|
-
/* harmony import */ var _zh_tw_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(56646);
|
|
257
|
-
/* harmony import */ var _zh_tw_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_zh_tw_js__WEBPACK_IMPORTED_MODULE_22__);
|
|
258
|
-
/*!
|
|
259
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
260
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
261
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
262
|
-
*/
|
|
263
|
-
// @ts-nocheck
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
/***/ }),
|
|
291
|
-
|
|
292
|
-
/***/ 37873:
|
|
293
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
294
|
-
|
|
295
|
-
"use strict";
|
|
296
|
-
__webpack_require__.r(__webpack_exports__);
|
|
297
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
298
|
-
/* harmony export */ SpeechRecognizeNative: function() { return /* binding */ SpeechRecognizeNative; }
|
|
299
|
-
/* harmony export */ });
|
|
300
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
301
|
-
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(66927);
|
|
302
|
-
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55186);
|
|
303
|
-
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(56298);
|
|
304
|
-
/* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(84976);
|
|
305
|
-
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(71005);
|
|
306
|
-
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(71096);
|
|
307
|
-
/* harmony import */ var _jodit__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(46173);
|
|
308
|
-
/* harmony import */ var _helpers_exec_spell_command__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(50834);
|
|
309
|
-
/* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(25202);
|
|
310
|
-
/*!
|
|
311
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
312
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
313
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
314
|
-
*/
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
class SpeechRecognizeNative extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plugin */ .k {
|
|
327
|
-
constructor() {
|
|
328
|
-
super(...arguments);
|
|
329
|
-
this.buttons = [
|
|
330
|
-
{
|
|
331
|
-
group: 'state',
|
|
332
|
-
name: 'speechRecognize'
|
|
333
|
-
}
|
|
334
|
-
];
|
|
335
|
-
this._commandToWord = {};
|
|
336
|
-
}
|
|
337
|
-
afterInit(jodit) {
|
|
338
|
-
const { commands } = jodit.o.speechRecognize;
|
|
339
|
-
if (commands) {
|
|
340
|
-
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .extendLang */ .JW)(_langs__WEBPACK_IMPORTED_MODULE_9__);
|
|
341
|
-
(0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_4__/* .keys */ .HP)(commands, false).forEach(words => {
|
|
342
|
-
const keys = words.split('|');
|
|
343
|
-
keys.forEach(key => {
|
|
344
|
-
key = key.trim().toLowerCase();
|
|
345
|
-
this._commandToWord[key] = commands[words];
|
|
346
|
-
const translatedKeys = jodit.i18n(key);
|
|
347
|
-
if (translatedKeys !== key) {
|
|
348
|
-
translatedKeys.split('|').forEach(translatedKey => {
|
|
349
|
-
this._commandToWord[translatedKey.trim().toLowerCase()] = commands[words].trim();
|
|
350
|
-
});
|
|
351
|
-
}
|
|
352
|
-
});
|
|
353
|
-
});
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
beforeDestruct(jodit) {
|
|
357
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.safeRemove(this.messagePopup);
|
|
358
|
-
}
|
|
359
|
-
onSpeechRecognizeProgressResult(text) {
|
|
360
|
-
if (!this.messagePopup) {
|
|
361
|
-
this.messagePopup = this.j.create.div('jodit-speech-recognize__popup');
|
|
362
|
-
}
|
|
363
|
-
this.j.workplace.appendChild(this.messagePopup);
|
|
364
|
-
this.j.async.clearTimeout(this.__hidePopupTimeout);
|
|
365
|
-
this.__hidePopupTimeout = this.j.async.setTimeout(() => {
|
|
366
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.safeRemove(this.messagePopup);
|
|
367
|
-
}, 1000);
|
|
368
|
-
this.messagePopup.innerText = text + '|';
|
|
369
|
-
}
|
|
370
|
-
onSpeechRecognizeResult(text) {
|
|
371
|
-
this.j.async.clearTimeout(this.__hidePopupTimeout);
|
|
372
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.safeRemove(this.messagePopup);
|
|
373
|
-
const { j } = this;
|
|
374
|
-
const { s } = j;
|
|
375
|
-
if (!this._checkCommand(text)) {
|
|
376
|
-
const { range } = s, node = s.current();
|
|
377
|
-
if (s.isCollapsed() &&
|
|
378
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node) &&
|
|
379
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(j.editor, node) &&
|
|
380
|
-
node.nodeValue) {
|
|
381
|
-
const sentence = node.nodeValue;
|
|
382
|
-
node.nodeValue =
|
|
383
|
-
sentence +
|
|
384
|
-
(/[\u00A0 ]\uFEFF*$/.test(sentence) ? '' : ' ') +
|
|
385
|
-
text;
|
|
386
|
-
range.setStartAfter(node);
|
|
387
|
-
s.selectRange(range);
|
|
388
|
-
j.synchronizeValues();
|
|
389
|
-
}
|
|
390
|
-
else {
|
|
391
|
-
s.insertHTML(text);
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
_checkCommand(command) {
|
|
396
|
-
command = command.toLowerCase().replace(/\./g, '');
|
|
397
|
-
if (this._commandToWord[command]) {
|
|
398
|
-
(0,_helpers_exec_spell_command__WEBPACK_IMPORTED_MODULE_8__/* .execSpellCommand */ .F)(this.j, this._commandToWord[command]);
|
|
399
|
-
return true;
|
|
400
|
-
}
|
|
401
|
-
return false;
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
405
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .w)(':speechRecognizeProgressResult')
|
|
406
|
-
], SpeechRecognizeNative.prototype, "onSpeechRecognizeProgressResult", null);
|
|
407
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
408
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .w)(':speechRecognizeResult')
|
|
409
|
-
], SpeechRecognizeNative.prototype, "onSpeechRecognizeResult", null);
|
|
410
|
-
_jodit__WEBPACK_IMPORTED_MODULE_7__/* .Jodit */ .x.plugins.add('speech-recognize', SpeechRecognizeNative);
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
/***/ }),
|
|
414
|
-
|
|
415
|
-
/***/ 48948:
|
|
416
|
-
/***/ (function(module) {
|
|
417
|
-
|
|
418
|
-
"use strict";
|
|
419
|
-
|
|
420
|
-
/*!
|
|
421
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
422
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
423
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
424
|
-
*/
|
|
425
|
-
module.exports = {
|
|
426
|
-
newline: 'yeni satır',
|
|
427
|
-
delete: 'silmek',
|
|
428
|
-
space: 'uzay',
|
|
429
|
-
'Speech Recognize': 'Konuşma Tanıma',
|
|
430
|
-
Sound: 'Ses',
|
|
431
|
-
'Interim Results': 'Ara Sonuçlar'
|
|
432
|
-
};
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
/***/ }),
|
|
436
|
-
|
|
437
|
-
/***/ 50834:
|
|
438
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
439
|
-
|
|
440
|
-
"use strict";
|
|
441
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
442
|
-
/* harmony export */ F: function() { return /* binding */ execSpellCommand; }
|
|
443
|
-
/* harmony export */ });
|
|
444
|
-
/*!
|
|
445
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
446
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
447
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
448
|
-
*/
|
|
449
|
-
function execSpellCommand(jodit, commandSentence) {
|
|
450
|
-
const [command, value] = commandSentence.split('::');
|
|
451
|
-
jodit.execCommand(command, null, value);
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
/***/ }),
|
|
456
|
-
|
|
457
|
-
/***/ 54711:
|
|
458
|
-
/***/ (function(module) {
|
|
459
|
-
|
|
460
|
-
"use strict";
|
|
461
|
-
|
|
462
|
-
/*!
|
|
463
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
464
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
465
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
466
|
-
*/
|
|
467
|
-
module.exports = {
|
|
468
|
-
newline: '改行',
|
|
469
|
-
delete: '削除',
|
|
470
|
-
space: 'スペース',
|
|
471
|
-
'Speech Recognize': '音声認識',
|
|
472
|
-
Sound: '音',
|
|
473
|
-
'Interim Results': '中間結果'
|
|
474
|
-
};
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
/***/ }),
|
|
478
|
-
|
|
479
|
-
/***/ 56646:
|
|
480
|
-
/***/ (function(module) {
|
|
481
|
-
|
|
482
|
-
"use strict";
|
|
483
|
-
|
|
484
|
-
/*!
|
|
485
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
486
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
487
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
488
|
-
*/
|
|
489
|
-
module.exports = {
|
|
490
|
-
newline: '換行',
|
|
491
|
-
delete: '刪除',
|
|
492
|
-
space: '空白',
|
|
493
|
-
'Speech Recognize': '語音辨識',
|
|
494
|
-
Sound: '聲音',
|
|
495
|
-
'Interim Results': '階段性辨識結果'
|
|
496
|
-
};
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
/***/ }),
|
|
500
|
-
|
|
501
|
-
/***/ 61593:
|
|
502
|
-
/***/ (function(module) {
|
|
503
|
-
|
|
504
|
-
"use strict";
|
|
505
|
-
|
|
506
|
-
/*!
|
|
507
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
508
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
509
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
510
|
-
*/
|
|
511
|
-
module.exports = {
|
|
512
|
-
newline: 'الخط الجديد',
|
|
513
|
-
delete: 'حذف',
|
|
514
|
-
space: 'الفضاء',
|
|
515
|
-
'Speech Recognize': 'التعرف على الكلام',
|
|
516
|
-
Sound: 'الصوت',
|
|
517
|
-
'Interim Results': 'النتائج المؤقتة'
|
|
518
|
-
};
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
/***/ }),
|
|
522
|
-
|
|
523
|
-
/***/ 64149:
|
|
524
|
-
/***/ (function(module) {
|
|
525
|
-
|
|
526
|
-
"use strict";
|
|
527
|
-
|
|
528
|
-
/*!
|
|
529
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
530
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
531
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
532
|
-
*/
|
|
533
|
-
module.exports = {
|
|
534
|
-
newline: 'linha',
|
|
535
|
-
delete: 'excluir',
|
|
536
|
-
space: 'espaco',
|
|
537
|
-
'Speech Recognize': 'Discurso Reconhecer',
|
|
538
|
-
Sound: 'Som',
|
|
539
|
-
'Interim Results': 'Resultados Provisórios'
|
|
540
|
-
};
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
/***/ }),
|
|
544
|
-
|
|
545
|
-
/***/ 64458:
|
|
546
|
-
/***/ (function(module) {
|
|
547
|
-
|
|
548
|
-
"use strict";
|
|
549
|
-
|
|
550
|
-
/*!
|
|
551
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
552
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
553
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
554
|
-
*/
|
|
555
|
-
module.exports = {
|
|
556
|
-
newline: 'řádek',
|
|
557
|
-
delete: 'odstranit',
|
|
558
|
-
space: 'prostora',
|
|
559
|
-
'Speech Recognize': 'Rozpoznání Řeči',
|
|
560
|
-
Sound: 'Zvuk',
|
|
561
|
-
'Interim Results': 'Průběžné Výsledky'
|
|
562
|
-
};
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
/***/ }),
|
|
566
|
-
|
|
567
|
-
/***/ 68632:
|
|
568
|
-
/***/ (function(module) {
|
|
569
|
-
|
|
570
|
-
"use strict";
|
|
571
|
-
|
|
572
|
-
/*!
|
|
573
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
574
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
575
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
576
|
-
*/
|
|
577
|
-
module.exports = {
|
|
578
|
-
newline: '줄 바꿈',
|
|
579
|
-
delete: '삭제',
|
|
580
|
-
space: '공간',
|
|
581
|
-
'Speech Recognize': '음성 인식',
|
|
582
|
-
Sound: '소리',
|
|
583
|
-
'Interim Results': '중간 결과'
|
|
584
|
-
};
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
/***/ }),
|
|
588
|
-
|
|
589
|
-
/***/ 71096:
|
|
590
|
-
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
591
|
-
|
|
592
|
-
"use strict";
|
|
593
|
-
/* harmony import */ var jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9810);
|
|
594
|
-
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(98253);
|
|
595
|
-
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26150);
|
|
596
|
-
/* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(72197);
|
|
597
|
-
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(931);
|
|
598
|
-
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
|
|
599
|
-
/* harmony import */ var _helpers_api__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(71722);
|
|
600
|
-
/* harmony import */ var _helpers_recognize_manager__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(93676);
|
|
601
|
-
/* harmony import */ var _speech_recognize_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(22227);
|
|
602
|
-
/* harmony import */ var _speech_recognize_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_speech_recognize_svg__WEBPACK_IMPORTED_MODULE_8__);
|
|
603
|
-
/*!
|
|
604
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
605
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
606
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
607
|
-
*/
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.speechRecognize = {
|
|
618
|
-
api: typeof _helpers_api__WEBPACK_IMPORTED_MODULE_6__/* .SpeechRecognition */ .o !== 'undefined' ? _helpers_api__WEBPACK_IMPORTED_MODULE_6__/* .SpeechRecognition */ .o : null,
|
|
619
|
-
sound: true,
|
|
620
|
-
continuous: false,
|
|
621
|
-
interimResults: true,
|
|
622
|
-
commands: {
|
|
623
|
-
'newline|enter': 'enter',
|
|
624
|
-
'delete|remove word|delete word': 'backspaceWordButton',
|
|
625
|
-
comma: 'inserthtml::,',
|
|
626
|
-
underline: 'inserthtml::_',
|
|
627
|
-
hyphen: 'inserthtml::-',
|
|
628
|
-
space: 'inserthtml:: ',
|
|
629
|
-
question: 'inserthtml::?',
|
|
630
|
-
dot: 'inserthtml::.',
|
|
631
|
-
'quote|quotes|open quote': "inserthtml::'",
|
|
632
|
-
'header|header h1': 'formatblock::h1',
|
|
633
|
-
'select all': 'selectall'
|
|
634
|
-
}
|
|
635
|
-
};
|
|
636
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('speech-recognize', (_speech_recognize_svg__WEBPACK_IMPORTED_MODULE_8___default()));
|
|
637
|
-
jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.speechRecognize = {
|
|
638
|
-
isVisible(j) {
|
|
639
|
-
return Boolean(j.o.speechRecognize.api);
|
|
640
|
-
},
|
|
641
|
-
isActive(jodit, _) {
|
|
642
|
-
const api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__/* .dataBind */ .m)(jodit, 'speech');
|
|
643
|
-
return Boolean(api === null || api === void 0 ? void 0 : api.isEnabled);
|
|
644
|
-
},
|
|
645
|
-
isDisabled(jodit) {
|
|
646
|
-
return !jodit.o.speechRecognize.api;
|
|
647
|
-
},
|
|
648
|
-
exec(jodit, current, { button, control }) {
|
|
649
|
-
var _a;
|
|
650
|
-
const { api: ApiConstructor, lang, continuous, interimResults, sound } = jodit.o.speechRecognize;
|
|
651
|
-
if (!ApiConstructor) {
|
|
652
|
-
jodit.alert('Speech recognize API unsupported in your browser');
|
|
653
|
-
return;
|
|
654
|
-
}
|
|
655
|
-
let api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__/* .dataBind */ .m)(jodit, 'speech');
|
|
656
|
-
if (!api) {
|
|
657
|
-
const nativeApi = new ApiConstructor();
|
|
658
|
-
api = new _helpers_recognize_manager__WEBPACK_IMPORTED_MODULE_7__/* .RecognizeManager */ .g(jodit.async, nativeApi);
|
|
659
|
-
api.lang = (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .K)(lang)
|
|
660
|
-
? lang
|
|
661
|
-
: ((_a = (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__/* .attr */ .C)(jodit.od.documentElement, 'lang')) !== null && _a !== void 0 ? _a : undefined);
|
|
662
|
-
api.continuous = continuous;
|
|
663
|
-
api.interimResults = interimResults;
|
|
664
|
-
api.sound = sound;
|
|
665
|
-
(0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__/* .dataBind */ .m)(jodit, 'speech', api);
|
|
666
|
-
api.on('pulse', (enable) => {
|
|
667
|
-
button.setMod('pulse', enable);
|
|
668
|
-
});
|
|
669
|
-
api.on('result', (text) => jodit.e.fire('speechRecognizeResult', text));
|
|
670
|
-
api.on('progress', (text) => jodit.e.fire('speechRecognizeProgressResult', text));
|
|
671
|
-
api.on('error', (text) => jodit.message.error(text));
|
|
672
|
-
button.hookStatus('beforeDestruct', () => {
|
|
673
|
-
(0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__/* .dataBind */ .m)(jodit, 'speech', null);
|
|
674
|
-
api.destruct();
|
|
675
|
-
});
|
|
676
|
-
}
|
|
677
|
-
if (control.args) {
|
|
678
|
-
const key = control.args[0];
|
|
679
|
-
if ((0,jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_0__/* .isBoolean */ .L)(api[key])) {
|
|
680
|
-
api[key] = !api[key];
|
|
681
|
-
if (api.isEnabled) {
|
|
682
|
-
api.restart();
|
|
683
|
-
}
|
|
684
|
-
return;
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
api.toggle();
|
|
688
|
-
if (api.isEnabled) {
|
|
689
|
-
button.setMod('pulse', true);
|
|
690
|
-
}
|
|
691
|
-
button.state.activated = api.isEnabled;
|
|
692
|
-
},
|
|
693
|
-
name: 'speechRecognize',
|
|
694
|
-
command: 'toggleSpeechRecognize',
|
|
695
|
-
tooltip: 'Speech Recognize',
|
|
696
|
-
list: {
|
|
697
|
-
sound: 'Sound',
|
|
698
|
-
interimResults: 'Interim Results'
|
|
699
|
-
},
|
|
700
|
-
childTemplate(jodit, key, value) {
|
|
701
|
-
var _a;
|
|
702
|
-
const api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__/* .dataBind */ .m)(jodit, 'speech'), checked = (_a = api === null || api === void 0 ? void 0 : api[key]) !== null && _a !== void 0 ? _a : jodit.o.speechRecognize[key];
|
|
703
|
-
return `<span class='jodit-speech-recognize__list-item'><input ${checked ? 'checked' : ''} class='jodit-checkbox' type='checkbox'> ${value}</span>`;
|
|
704
|
-
},
|
|
705
|
-
mods: {
|
|
706
|
-
stroke: false
|
|
707
|
-
}
|
|
708
|
-
};
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
/***/ }),
|
|
712
|
-
|
|
713
|
-
/***/ 71722:
|
|
714
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
715
|
-
|
|
716
|
-
"use strict";
|
|
717
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
718
|
-
/* harmony export */ o: function() { return /* binding */ SpeechRecognition; }
|
|
719
|
-
/* harmony export */ });
|
|
720
|
-
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
721
|
-
/*!
|
|
722
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
723
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
724
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
725
|
-
*/
|
|
726
|
-
|
|
727
|
-
const SpeechRecognition = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow
|
|
728
|
-
? jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.SpeechRecognition ||
|
|
729
|
-
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.webkitSpeechRecognition
|
|
730
|
-
: undefined;
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
/***/ }),
|
|
734
|
-
|
|
735
|
-
/***/ 76769:
|
|
736
|
-
/***/ (function(module) {
|
|
737
|
-
|
|
738
|
-
"use strict";
|
|
739
|
-
|
|
740
|
-
/*!
|
|
741
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
742
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
743
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
744
|
-
*/
|
|
745
|
-
module.exports = {
|
|
746
|
-
newline: 'Шинэ мөр',
|
|
747
|
-
delete: 'Устгах',
|
|
748
|
-
space: 'Зай',
|
|
749
|
-
'Speech Recognize': 'Дуу хоолой таних',
|
|
750
|
-
Sound: 'Дуу',
|
|
751
|
-
'Interim Results': 'Түр зуурын үр дүн'
|
|
752
|
-
};
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
/***/ }),
|
|
756
|
-
|
|
757
|
-
/***/ 77995:
|
|
758
|
-
/***/ (function(module) {
|
|
759
|
-
|
|
760
|
-
"use strict";
|
|
761
|
-
|
|
762
|
-
/*!
|
|
763
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
764
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
765
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
766
|
-
*/
|
|
767
|
-
module.exports = {
|
|
768
|
-
newline: 'newline',
|
|
769
|
-
delete: 'Hapus',
|
|
770
|
-
space: 'ruang',
|
|
771
|
-
'Speech Recognize': 'Pidato Mengenali',
|
|
772
|
-
Sound: 'Suara',
|
|
773
|
-
'Interim Results': 'Hasil Sementara'
|
|
774
|
-
};
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
/***/ }),
|
|
778
|
-
|
|
779
|
-
/***/ 81629:
|
|
780
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
781
|
-
|
|
782
|
-
"use strict";
|
|
783
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
784
|
-
/* harmony export */ N: function() { return /* binding */ PII; },
|
|
785
|
-
/* harmony export */ Z: function() { return /* binding */ WARN; }
|
|
786
|
-
/* harmony export */ });
|
|
787
|
-
/*!
|
|
788
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
789
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
790
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
791
|
-
*/
|
|
792
|
-
/**
|
|
793
|
-
* @module plugins/speech-recognize
|
|
794
|
-
* @internal
|
|
795
|
-
*/
|
|
796
|
-
const PII = 440;
|
|
797
|
-
const WARN = 940;
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
/***/ }),
|
|
801
|
-
|
|
802
|
-
/***/ 84059:
|
|
803
|
-
/***/ (function(module) {
|
|
804
|
-
|
|
805
|
-
"use strict";
|
|
806
|
-
|
|
807
|
-
/*!
|
|
808
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
809
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
810
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
811
|
-
*/
|
|
812
|
-
module.exports = {
|
|
813
|
-
'Speech Recognize': 'Puheentunnistus',
|
|
814
|
-
newline: 'uusi rivi',
|
|
815
|
-
delete: 'poistaa',
|
|
816
|
-
space: 'tilaa',
|
|
817
|
-
Sound: 'Ääni',
|
|
818
|
-
'Interim Results': 'Välitulokset'
|
|
819
|
-
};
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
/***/ }),
|
|
823
|
-
|
|
824
|
-
/***/ 84370:
|
|
825
|
-
/***/ (function(module) {
|
|
826
|
-
|
|
827
|
-
"use strict";
|
|
828
|
-
|
|
829
|
-
/*!
|
|
830
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
831
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
832
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
833
|
-
*/
|
|
834
|
-
module.exports = {
|
|
835
|
-
newline: '新行',
|
|
836
|
-
delete: '删除',
|
|
837
|
-
space: '空间',
|
|
838
|
-
'Speech Recognize': '言语识别',
|
|
839
|
-
Sound: '声音',
|
|
840
|
-
'Interim Results': '中期业绩'
|
|
841
|
-
};
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
/***/ }),
|
|
845
|
-
|
|
846
|
-
/***/ 85454:
|
|
847
|
-
/***/ (function(module) {
|
|
848
|
-
|
|
849
|
-
"use strict";
|
|
850
|
-
|
|
851
|
-
/*!
|
|
852
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
853
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
854
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
855
|
-
*/
|
|
856
|
-
module.exports = {
|
|
857
|
-
newline: 'newline',
|
|
858
|
-
delete: 'usunąć',
|
|
859
|
-
space: 'przestrzeń',
|
|
860
|
-
'Speech Recognize': 'Rozpoznawanie Mowy',
|
|
861
|
-
Sound: 'Dźwięk',
|
|
862
|
-
'Interim Results': 'Wyniki Okresowe'
|
|
863
|
-
};
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
/***/ }),
|
|
867
|
-
|
|
868
|
-
/***/ 87710:
|
|
869
|
-
/***/ (function(module) {
|
|
870
|
-
|
|
871
|
-
"use strict";
|
|
872
|
-
|
|
873
|
-
/*!
|
|
874
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
875
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
876
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
877
|
-
*/
|
|
878
|
-
module.exports = {
|
|
879
|
-
newline: 'nueva línea',
|
|
880
|
-
delete: 'eliminar',
|
|
881
|
-
space: 'espacio',
|
|
882
|
-
'Speech Recognize': 'Reconocimiento de Voz',
|
|
883
|
-
Sound: 'Sonido',
|
|
884
|
-
'Interim Results': 'Resultados Provisionales'
|
|
885
|
-
};
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
/***/ }),
|
|
889
|
-
|
|
890
|
-
/***/ 89601:
|
|
891
|
-
/***/ (function(module) {
|
|
892
|
-
|
|
893
|
-
"use strict";
|
|
894
|
-
|
|
895
|
-
/*!
|
|
896
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
897
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
898
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
899
|
-
*/
|
|
900
|
-
module.exports = {
|
|
901
|
-
newline: 'Zeilenumbruch',
|
|
902
|
-
delete: 'löschen',
|
|
903
|
-
space: 'Raum',
|
|
904
|
-
'Speech Recognize': 'Sprache Erkennen',
|
|
905
|
-
Sound: 'Sound',
|
|
906
|
-
'Interim Results': 'Zwischenergebnis'
|
|
907
|
-
};
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
/***/ }),
|
|
911
|
-
|
|
912
|
-
/***/ 92315:
|
|
913
|
-
/***/ (function(module) {
|
|
914
|
-
|
|
915
|
-
"use strict";
|
|
916
|
-
|
|
917
|
-
/*!
|
|
918
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
919
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
920
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
921
|
-
*/
|
|
922
|
-
module.exports = {
|
|
923
|
-
newline: 'nuova riga',
|
|
924
|
-
delete: 'eliminare',
|
|
925
|
-
space: 'spazio',
|
|
926
|
-
'Speech Recognize': 'Discorso Riconoscere',
|
|
927
|
-
Sound: 'Suono',
|
|
928
|
-
'Interim Results': 'Risultati intermedi'
|
|
929
|
-
};
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
/***/ }),
|
|
933
|
-
|
|
934
|
-
/***/ 93676:
|
|
935
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
936
|
-
|
|
937
|
-
"use strict";
|
|
938
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
939
|
-
/* harmony export */ g: function() { return /* binding */ RecognizeManager; }
|
|
940
|
-
/* harmony export */ });
|
|
941
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
942
|
-
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22664);
|
|
943
|
-
/* harmony import */ var jodit_core_event_emitter_eventify__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(43431);
|
|
944
|
-
/* harmony import */ var _sound__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(95473);
|
|
945
|
-
/* harmony import */ var jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(81629);
|
|
946
|
-
/*!
|
|
947
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
948
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
949
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
950
|
-
*/
|
|
951
|
-
var RecognizeManager_1;
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
let RecognizeManager = RecognizeManager_1 = class RecognizeManager extends jodit_core_event_emitter_eventify__WEBPACK_IMPORTED_MODULE_2__/* .Eventify */ .h {
|
|
958
|
-
set lang(v) {
|
|
959
|
-
this._lang = v;
|
|
960
|
-
this._api.lang = v;
|
|
961
|
-
}
|
|
962
|
-
get lang() {
|
|
963
|
-
return this._lang;
|
|
964
|
-
}
|
|
965
|
-
set continuous(v) {
|
|
966
|
-
this._continuous = v;
|
|
967
|
-
this._api.continuous = v;
|
|
968
|
-
}
|
|
969
|
-
get continuous() {
|
|
970
|
-
return this._continuous;
|
|
971
|
-
}
|
|
972
|
-
set interimResults(v) {
|
|
973
|
-
this._interimResults = v;
|
|
974
|
-
this._api.interimResults = v;
|
|
975
|
-
}
|
|
976
|
-
get interimResults() {
|
|
977
|
-
return this._interimResults;
|
|
978
|
-
}
|
|
979
|
-
constructor(async, api) {
|
|
980
|
-
super();
|
|
981
|
-
this.async = async;
|
|
982
|
-
this._continuous = false;
|
|
983
|
-
this._interimResults = false;
|
|
984
|
-
this.sound = true;
|
|
985
|
-
this._isEnabled = false;
|
|
986
|
-
this._restartTimeout = 0;
|
|
987
|
-
this._onSpeechStart = (e) => {
|
|
988
|
-
if (!this._isEnabled) {
|
|
989
|
-
return;
|
|
990
|
-
}
|
|
991
|
-
this.async.clearTimeout(this._restartTimeout);
|
|
992
|
-
this._restartTimeout = this.async.setTimeout(() => {
|
|
993
|
-
this.restart();
|
|
994
|
-
this.emit('pulse', false);
|
|
995
|
-
this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_4__/* .WARN */ .Z);
|
|
996
|
-
}, 5000);
|
|
997
|
-
this.emit('pulse', true);
|
|
998
|
-
};
|
|
999
|
-
this.__interimResults = '';
|
|
1000
|
-
this._api = api;
|
|
1001
|
-
RecognizeManager_1._instances.add(this);
|
|
1002
|
-
}
|
|
1003
|
-
destruct() {
|
|
1004
|
-
this.stop();
|
|
1005
|
-
RecognizeManager_1._instances.delete(this);
|
|
1006
|
-
super.destruct();
|
|
1007
|
-
}
|
|
1008
|
-
get isEnabled() {
|
|
1009
|
-
return this._isEnabled;
|
|
1010
|
-
}
|
|
1011
|
-
start() {
|
|
1012
|
-
if (this._isEnabled) {
|
|
1013
|
-
return;
|
|
1014
|
-
}
|
|
1015
|
-
this._isEnabled = true;
|
|
1016
|
-
RecognizeManager_1._instances.forEach(instance => {
|
|
1017
|
-
if (instance !== this) {
|
|
1018
|
-
instance.stop();
|
|
1019
|
-
}
|
|
1020
|
-
});
|
|
1021
|
-
try {
|
|
1022
|
-
this._api.start();
|
|
1023
|
-
}
|
|
1024
|
-
catch (e) {
|
|
1025
|
-
this._onError(e);
|
|
1026
|
-
this.stop();
|
|
1027
|
-
return;
|
|
1028
|
-
}
|
|
1029
|
-
this.__on('speechstart', this._onSpeechStart)
|
|
1030
|
-
.__on('error', this._onError)
|
|
1031
|
-
.__on('result', this._onProgress)
|
|
1032
|
-
.__on('end', this._onResults);
|
|
1033
|
-
}
|
|
1034
|
-
stop() {
|
|
1035
|
-
if (!this._isEnabled) {
|
|
1036
|
-
return;
|
|
1037
|
-
}
|
|
1038
|
-
this._api.abort();
|
|
1039
|
-
this._api.stop();
|
|
1040
|
-
this.__off('speechstart', this._onSpeechStart)
|
|
1041
|
-
.__off('error', this._onError)
|
|
1042
|
-
.__off('result', this._onProgress)
|
|
1043
|
-
.__off('end', this._onResults);
|
|
1044
|
-
this.async.clearTimeout(this._restartTimeout);
|
|
1045
|
-
this._isEnabled = false;
|
|
1046
|
-
this.emit('pulse', false);
|
|
1047
|
-
}
|
|
1048
|
-
toggle() {
|
|
1049
|
-
if (!this._isEnabled) {
|
|
1050
|
-
this.start();
|
|
1051
|
-
}
|
|
1052
|
-
else {
|
|
1053
|
-
this.stop();
|
|
1054
|
-
}
|
|
1055
|
-
}
|
|
1056
|
-
restart() {
|
|
1057
|
-
this.stop();
|
|
1058
|
-
this.start();
|
|
1059
|
-
}
|
|
1060
|
-
__on(event, callback) {
|
|
1061
|
-
this._api.addEventListener(event, callback);
|
|
1062
|
-
return this;
|
|
1063
|
-
}
|
|
1064
|
-
__off(event, callback) {
|
|
1065
|
-
this._api.removeEventListener(event, callback);
|
|
1066
|
-
return this;
|
|
1067
|
-
}
|
|
1068
|
-
_onResults(e) {
|
|
1069
|
-
this.emit('pulse', false);
|
|
1070
|
-
this.emit('result', this.__interimResults);
|
|
1071
|
-
this.__interimResults = '';
|
|
1072
|
-
this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_4__/* .PII */ .N);
|
|
1073
|
-
this.restart();
|
|
1074
|
-
}
|
|
1075
|
-
_onProgress(e) {
|
|
1076
|
-
if (!this._isEnabled) {
|
|
1077
|
-
return;
|
|
1078
|
-
}
|
|
1079
|
-
this.__interimResults = '';
|
|
1080
|
-
if (!e.results) {
|
|
1081
|
-
return;
|
|
1082
|
-
}
|
|
1083
|
-
for (let i = 0; i < e.results.length; i++) {
|
|
1084
|
-
const resultItem = e.results.item(i);
|
|
1085
|
-
if (resultItem.length) {
|
|
1086
|
-
const { transcript } = resultItem.item(0);
|
|
1087
|
-
this.__interimResults += transcript;
|
|
1088
|
-
}
|
|
1089
|
-
}
|
|
1090
|
-
if (this.__interimResults) {
|
|
1091
|
-
this.emit('progress', this.__interimResults);
|
|
1092
|
-
}
|
|
1093
|
-
}
|
|
1094
|
-
_onError(e) {
|
|
1095
|
-
if (e.error === 'voice-unavailable') {
|
|
1096
|
-
this.emit('error', 'Voice unavailable');
|
|
1097
|
-
}
|
|
1098
|
-
if (e.error === 'not-allowed') {
|
|
1099
|
-
this.emit('error', 'Not allowed');
|
|
1100
|
-
}
|
|
1101
|
-
if (e.error === 'language-unavailable' ||
|
|
1102
|
-
// @ts-ignore
|
|
1103
|
-
e.error === 'language-not-supported') {
|
|
1104
|
-
this.emit('error', 'Language unavailable');
|
|
1105
|
-
}
|
|
1106
|
-
this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_4__/* .WARN */ .Z);
|
|
1107
|
-
this.emit('pulse', false);
|
|
1108
|
-
this.stop();
|
|
1109
|
-
}
|
|
1110
|
-
_makeSound(frequency) {
|
|
1111
|
-
if (this.sound) {
|
|
1112
|
-
(0,_sound__WEBPACK_IMPORTED_MODULE_3__/* .sound */ .s)({ frequency });
|
|
1113
|
-
}
|
|
1114
|
-
}
|
|
1115
|
-
};
|
|
1116
|
-
RecognizeManager._instances = new Set();
|
|
1117
|
-
RecognizeManager = RecognizeManager_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
1118
|
-
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
1119
|
-
], RecognizeManager);
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
/***/ }),
|
|
1124
|
-
|
|
1125
|
-
/***/ 95473:
|
|
1126
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1127
|
-
|
|
1128
|
-
"use strict";
|
|
1129
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1130
|
-
/* harmony export */ s: function() { return /* binding */ sound; }
|
|
1131
|
-
/* harmony export */ });
|
|
1132
|
-
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
1133
|
-
/* harmony import */ var jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(81629);
|
|
1134
|
-
/*!
|
|
1135
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
1136
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
1137
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
1138
|
-
*/
|
|
1139
|
-
/**
|
|
1140
|
-
* @module plugins/speech-recognize
|
|
1141
|
-
*/
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
/**
|
|
1145
|
-
* @internal
|
|
1146
|
-
*/
|
|
1147
|
-
function sound({ sec = 0.1, frequency = jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_1__/* .PII */ .N, gain = 0.1, type = 'sine' } = {}) {
|
|
1148
|
-
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow ||
|
|
1149
|
-
(typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.AudioContext === 'undefined' &&
|
|
1150
|
-
typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.webkitAudioContext === 'undefined')) {
|
|
1151
|
-
return;
|
|
1152
|
-
}
|
|
1153
|
-
// one context per document
|
|
1154
|
-
const context = new (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.AudioContext ||
|
|
1155
|
-
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.webkitAudioContext)();
|
|
1156
|
-
const vol = context.createGain();
|
|
1157
|
-
const osc = context.createOscillator();
|
|
1158
|
-
osc.type = type;
|
|
1159
|
-
osc.frequency.value = frequency; // Hz
|
|
1160
|
-
osc.connect(vol);
|
|
1161
|
-
vol.connect(context.destination);
|
|
1162
|
-
osc.start(); // start the oscillator
|
|
1163
|
-
osc.stop(context.currentTime + sec);
|
|
1164
|
-
vol.gain.value = gain;
|
|
1165
|
-
}
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
/***/ }),
|
|
1169
|
-
|
|
1170
|
-
/***/ 95700:
|
|
1171
|
-
/***/ (function(module) {
|
|
1172
|
-
|
|
1173
|
-
"use strict";
|
|
1174
|
-
|
|
1175
|
-
/*!
|
|
1176
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
1177
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
1178
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
1179
|
-
*/
|
|
1180
|
-
module.exports = {
|
|
1181
|
-
newline: 'новая строка|перенос|ентер',
|
|
1182
|
-
delete: 'видалити',
|
|
1183
|
-
space: 'пробел',
|
|
1184
|
-
'Speech Recognize': 'Распознавание речи',
|
|
1185
|
-
Sound: 'Звук',
|
|
1186
|
-
'Interim Results': 'Проміжні результати'
|
|
1187
|
-
};
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
/***/ })
|
|
1191
|
-
|
|
1192
|
-
},
|
|
1193
|
-
/******/ function(__webpack_require__) { // webpackRuntimeModules
|
|
1194
|
-
/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
|
|
1195
|
-
/******/ var __webpack_exports__ = (__webpack_exec__(37873));
|
|
1196
|
-
/******/ return __webpack_exports__;
|
|
1197
|
-
/******/ }
|
|
1198
|
-
]);
|
|
1199
|
-
});
|