@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250216.0 → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (433) hide show
  1. package/LICENSE.md +6 -10
  2. package/README.md +3 -46
  3. package/package.json +7 -73
  4. package/CHANGELOG.md +0 -6
  5. package/build/translations/af.js +0 -1
  6. package/build/translations/ar.js +0 -1
  7. package/build/translations/ast.js +0 -1
  8. package/build/translations/az.js +0 -1
  9. package/build/translations/bg.js +0 -1
  10. package/build/translations/bn.js +0 -1
  11. package/build/translations/bs.js +0 -1
  12. package/build/translations/ca.js +0 -1
  13. package/build/translations/cs.js +0 -1
  14. package/build/translations/da.js +0 -1
  15. package/build/translations/de-ch.js +0 -1
  16. package/build/translations/de.js +0 -1
  17. package/build/translations/el.js +0 -1
  18. package/build/translations/en-au.js +0 -1
  19. package/build/translations/en-gb.js +0 -1
  20. package/build/translations/eo.js +0 -1
  21. package/build/translations/es-co.js +0 -1
  22. package/build/translations/es.js +0 -1
  23. package/build/translations/et.js +0 -1
  24. package/build/translations/eu.js +0 -1
  25. package/build/translations/fa.js +0 -1
  26. package/build/translations/fi.js +0 -1
  27. package/build/translations/fr.js +0 -1
  28. package/build/translations/gl.js +0 -1
  29. package/build/translations/gu.js +0 -1
  30. package/build/translations/he.js +0 -1
  31. package/build/translations/hi.js +0 -1
  32. package/build/translations/hr.js +0 -1
  33. package/build/translations/hu.js +0 -1
  34. package/build/translations/hy.js +0 -1
  35. package/build/translations/id.js +0 -1
  36. package/build/translations/it.js +0 -1
  37. package/build/translations/ja.js +0 -1
  38. package/build/translations/jv.js +0 -1
  39. package/build/translations/kk.js +0 -1
  40. package/build/translations/km.js +0 -1
  41. package/build/translations/kn.js +0 -1
  42. package/build/translations/ko.js +0 -1
  43. package/build/translations/ku.js +0 -1
  44. package/build/translations/lt.js +0 -1
  45. package/build/translations/lv.js +0 -1
  46. package/build/translations/ms.js +0 -1
  47. package/build/translations/nb.js +0 -1
  48. package/build/translations/ne.js +0 -1
  49. package/build/translations/nl.js +0 -1
  50. package/build/translations/no.js +0 -1
  51. package/build/translations/oc.js +0 -1
  52. package/build/translations/pl.js +0 -1
  53. package/build/translations/pt-br.js +0 -1
  54. package/build/translations/pt.js +0 -1
  55. package/build/translations/ro.js +0 -1
  56. package/build/translations/ru.js +0 -1
  57. package/build/translations/si.js +0 -1
  58. package/build/translations/sk.js +0 -1
  59. package/build/translations/sl.js +0 -1
  60. package/build/translations/sq.js +0 -1
  61. package/build/translations/sr-latn.js +0 -1
  62. package/build/translations/sr.js +0 -1
  63. package/build/translations/sv.js +0 -1
  64. package/build/translations/th.js +0 -1
  65. package/build/translations/ti.js +0 -1
  66. package/build/translations/tk.js +0 -1
  67. package/build/translations/tr.js +0 -1
  68. package/build/translations/tt.js +0 -1
  69. package/build/translations/ug.js +0 -1
  70. package/build/translations/uk.js +0 -1
  71. package/build/translations/ur.js +0 -1
  72. package/build/translations/uz.js +0 -1
  73. package/build/translations/vi.js +0 -1
  74. package/build/translations/zh-cn.js +0 -1
  75. package/build/translations/zh.js +0 -1
  76. package/build/uploadcare.js +0 -5
  77. package/ckeditor5-metadata.json +0 -47
  78. package/dist/index-content.css +0 -5
  79. package/dist/index-editor.css +0 -265
  80. package/dist/index.css +0 -315
  81. package/dist/index.js +0 -25
  82. package/dist/translations/af.d.ts +0 -8
  83. package/dist/translations/af.js +0 -23
  84. package/dist/translations/af.umd.js +0 -23
  85. package/dist/translations/ar.d.ts +0 -8
  86. package/dist/translations/ar.js +0 -23
  87. package/dist/translations/ar.umd.js +0 -23
  88. package/dist/translations/ast.d.ts +0 -8
  89. package/dist/translations/ast.js +0 -23
  90. package/dist/translations/ast.umd.js +0 -23
  91. package/dist/translations/az.d.ts +0 -8
  92. package/dist/translations/az.js +0 -23
  93. package/dist/translations/az.umd.js +0 -23
  94. package/dist/translations/bg.d.ts +0 -8
  95. package/dist/translations/bg.js +0 -23
  96. package/dist/translations/bg.umd.js +0 -23
  97. package/dist/translations/bn.d.ts +0 -8
  98. package/dist/translations/bn.js +0 -23
  99. package/dist/translations/bn.umd.js +0 -23
  100. package/dist/translations/bs.d.ts +0 -8
  101. package/dist/translations/bs.js +0 -23
  102. package/dist/translations/bs.umd.js +0 -23
  103. package/dist/translations/ca.d.ts +0 -8
  104. package/dist/translations/ca.js +0 -23
  105. package/dist/translations/ca.umd.js +0 -23
  106. package/dist/translations/cs.d.ts +0 -8
  107. package/dist/translations/cs.js +0 -23
  108. package/dist/translations/cs.umd.js +0 -23
  109. package/dist/translations/da.d.ts +0 -8
  110. package/dist/translations/da.js +0 -23
  111. package/dist/translations/da.umd.js +0 -23
  112. package/dist/translations/de-ch.d.ts +0 -8
  113. package/dist/translations/de-ch.js +0 -23
  114. package/dist/translations/de-ch.umd.js +0 -23
  115. package/dist/translations/de.d.ts +0 -8
  116. package/dist/translations/de.js +0 -23
  117. package/dist/translations/de.umd.js +0 -23
  118. package/dist/translations/el.d.ts +0 -8
  119. package/dist/translations/el.js +0 -23
  120. package/dist/translations/el.umd.js +0 -23
  121. package/dist/translations/en-au.d.ts +0 -8
  122. package/dist/translations/en-au.js +0 -23
  123. package/dist/translations/en-au.umd.js +0 -23
  124. package/dist/translations/en-gb.d.ts +0 -8
  125. package/dist/translations/en-gb.js +0 -23
  126. package/dist/translations/en-gb.umd.js +0 -23
  127. package/dist/translations/en.d.ts +0 -8
  128. package/dist/translations/en.js +0 -23
  129. package/dist/translations/en.umd.js +0 -23
  130. package/dist/translations/eo.d.ts +0 -8
  131. package/dist/translations/eo.js +0 -23
  132. package/dist/translations/eo.umd.js +0 -23
  133. package/dist/translations/es-co.d.ts +0 -8
  134. package/dist/translations/es-co.js +0 -23
  135. package/dist/translations/es-co.umd.js +0 -23
  136. package/dist/translations/es.d.ts +0 -8
  137. package/dist/translations/es.js +0 -23
  138. package/dist/translations/es.umd.js +0 -23
  139. package/dist/translations/et.d.ts +0 -8
  140. package/dist/translations/et.js +0 -23
  141. package/dist/translations/et.umd.js +0 -23
  142. package/dist/translations/eu.d.ts +0 -8
  143. package/dist/translations/eu.js +0 -23
  144. package/dist/translations/eu.umd.js +0 -23
  145. package/dist/translations/fa.d.ts +0 -8
  146. package/dist/translations/fa.js +0 -23
  147. package/dist/translations/fa.umd.js +0 -23
  148. package/dist/translations/fi.d.ts +0 -8
  149. package/dist/translations/fi.js +0 -23
  150. package/dist/translations/fi.umd.js +0 -23
  151. package/dist/translations/fr.d.ts +0 -8
  152. package/dist/translations/fr.js +0 -23
  153. package/dist/translations/fr.umd.js +0 -23
  154. package/dist/translations/gl.d.ts +0 -8
  155. package/dist/translations/gl.js +0 -23
  156. package/dist/translations/gl.umd.js +0 -23
  157. package/dist/translations/gu.d.ts +0 -8
  158. package/dist/translations/gu.js +0 -23
  159. package/dist/translations/gu.umd.js +0 -23
  160. package/dist/translations/he.d.ts +0 -8
  161. package/dist/translations/he.js +0 -23
  162. package/dist/translations/he.umd.js +0 -23
  163. package/dist/translations/hi.d.ts +0 -8
  164. package/dist/translations/hi.js +0 -23
  165. package/dist/translations/hi.umd.js +0 -23
  166. package/dist/translations/hr.d.ts +0 -8
  167. package/dist/translations/hr.js +0 -23
  168. package/dist/translations/hr.umd.js +0 -23
  169. package/dist/translations/hu.d.ts +0 -8
  170. package/dist/translations/hu.js +0 -23
  171. package/dist/translations/hu.umd.js +0 -23
  172. package/dist/translations/hy.d.ts +0 -8
  173. package/dist/translations/hy.js +0 -23
  174. package/dist/translations/hy.umd.js +0 -23
  175. package/dist/translations/id.d.ts +0 -8
  176. package/dist/translations/id.js +0 -23
  177. package/dist/translations/id.umd.js +0 -23
  178. package/dist/translations/it.d.ts +0 -8
  179. package/dist/translations/it.js +0 -23
  180. package/dist/translations/it.umd.js +0 -23
  181. package/dist/translations/ja.d.ts +0 -8
  182. package/dist/translations/ja.js +0 -23
  183. package/dist/translations/ja.umd.js +0 -23
  184. package/dist/translations/jv.d.ts +0 -8
  185. package/dist/translations/jv.js +0 -23
  186. package/dist/translations/jv.umd.js +0 -23
  187. package/dist/translations/kk.d.ts +0 -8
  188. package/dist/translations/kk.js +0 -23
  189. package/dist/translations/kk.umd.js +0 -23
  190. package/dist/translations/km.d.ts +0 -8
  191. package/dist/translations/km.js +0 -23
  192. package/dist/translations/km.umd.js +0 -23
  193. package/dist/translations/kn.d.ts +0 -8
  194. package/dist/translations/kn.js +0 -23
  195. package/dist/translations/kn.umd.js +0 -23
  196. package/dist/translations/ko.d.ts +0 -8
  197. package/dist/translations/ko.js +0 -23
  198. package/dist/translations/ko.umd.js +0 -23
  199. package/dist/translations/ku.d.ts +0 -8
  200. package/dist/translations/ku.js +0 -23
  201. package/dist/translations/ku.umd.js +0 -23
  202. package/dist/translations/lt.d.ts +0 -8
  203. package/dist/translations/lt.js +0 -23
  204. package/dist/translations/lt.umd.js +0 -23
  205. package/dist/translations/lv.d.ts +0 -8
  206. package/dist/translations/lv.js +0 -23
  207. package/dist/translations/lv.umd.js +0 -23
  208. package/dist/translations/ms.d.ts +0 -8
  209. package/dist/translations/ms.js +0 -23
  210. package/dist/translations/ms.umd.js +0 -23
  211. package/dist/translations/nb.d.ts +0 -8
  212. package/dist/translations/nb.js +0 -23
  213. package/dist/translations/nb.umd.js +0 -23
  214. package/dist/translations/ne.d.ts +0 -8
  215. package/dist/translations/ne.js +0 -23
  216. package/dist/translations/ne.umd.js +0 -23
  217. package/dist/translations/nl.d.ts +0 -8
  218. package/dist/translations/nl.js +0 -23
  219. package/dist/translations/nl.umd.js +0 -23
  220. package/dist/translations/no.d.ts +0 -8
  221. package/dist/translations/no.js +0 -23
  222. package/dist/translations/no.umd.js +0 -23
  223. package/dist/translations/oc.d.ts +0 -8
  224. package/dist/translations/oc.js +0 -23
  225. package/dist/translations/oc.umd.js +0 -23
  226. package/dist/translations/pl.d.ts +0 -8
  227. package/dist/translations/pl.js +0 -23
  228. package/dist/translations/pl.umd.js +0 -23
  229. package/dist/translations/pt-br.d.ts +0 -8
  230. package/dist/translations/pt-br.js +0 -23
  231. package/dist/translations/pt-br.umd.js +0 -23
  232. package/dist/translations/pt.d.ts +0 -8
  233. package/dist/translations/pt.js +0 -23
  234. package/dist/translations/pt.umd.js +0 -23
  235. package/dist/translations/ro.d.ts +0 -8
  236. package/dist/translations/ro.js +0 -23
  237. package/dist/translations/ro.umd.js +0 -23
  238. package/dist/translations/ru.d.ts +0 -8
  239. package/dist/translations/ru.js +0 -23
  240. package/dist/translations/ru.umd.js +0 -23
  241. package/dist/translations/si.d.ts +0 -8
  242. package/dist/translations/si.js +0 -23
  243. package/dist/translations/si.umd.js +0 -23
  244. package/dist/translations/sk.d.ts +0 -8
  245. package/dist/translations/sk.js +0 -23
  246. package/dist/translations/sk.umd.js +0 -23
  247. package/dist/translations/sl.d.ts +0 -8
  248. package/dist/translations/sl.js +0 -23
  249. package/dist/translations/sl.umd.js +0 -23
  250. package/dist/translations/sq.d.ts +0 -8
  251. package/dist/translations/sq.js +0 -23
  252. package/dist/translations/sq.umd.js +0 -23
  253. package/dist/translations/sr-latn.d.ts +0 -8
  254. package/dist/translations/sr-latn.js +0 -23
  255. package/dist/translations/sr-latn.umd.js +0 -23
  256. package/dist/translations/sr.d.ts +0 -8
  257. package/dist/translations/sr.js +0 -23
  258. package/dist/translations/sr.umd.js +0 -23
  259. package/dist/translations/sv.d.ts +0 -8
  260. package/dist/translations/sv.js +0 -23
  261. package/dist/translations/sv.umd.js +0 -23
  262. package/dist/translations/th.d.ts +0 -8
  263. package/dist/translations/th.js +0 -23
  264. package/dist/translations/th.umd.js +0 -23
  265. package/dist/translations/ti.d.ts +0 -8
  266. package/dist/translations/ti.js +0 -23
  267. package/dist/translations/ti.umd.js +0 -23
  268. package/dist/translations/tk.d.ts +0 -8
  269. package/dist/translations/tk.js +0 -23
  270. package/dist/translations/tk.umd.js +0 -23
  271. package/dist/translations/tr.d.ts +0 -8
  272. package/dist/translations/tr.js +0 -23
  273. package/dist/translations/tr.umd.js +0 -23
  274. package/dist/translations/tt.d.ts +0 -8
  275. package/dist/translations/tt.js +0 -23
  276. package/dist/translations/tt.umd.js +0 -23
  277. package/dist/translations/ug.d.ts +0 -8
  278. package/dist/translations/ug.js +0 -23
  279. package/dist/translations/ug.umd.js +0 -23
  280. package/dist/translations/uk.d.ts +0 -8
  281. package/dist/translations/uk.js +0 -23
  282. package/dist/translations/uk.umd.js +0 -23
  283. package/dist/translations/ur.d.ts +0 -8
  284. package/dist/translations/ur.js +0 -23
  285. package/dist/translations/ur.umd.js +0 -23
  286. package/dist/translations/uz.d.ts +0 -8
  287. package/dist/translations/uz.js +0 -23
  288. package/dist/translations/uz.umd.js +0 -23
  289. package/dist/translations/vi.d.ts +0 -8
  290. package/dist/translations/vi.js +0 -23
  291. package/dist/translations/vi.umd.js +0 -23
  292. package/dist/translations/zh-cn.d.ts +0 -8
  293. package/dist/translations/zh-cn.js +0 -23
  294. package/dist/translations/zh-cn.umd.js +0 -23
  295. package/dist/translations/zh.d.ts +0 -8
  296. package/dist/translations/zh.js +0 -23
  297. package/dist/translations/zh.umd.js +0 -23
  298. package/lang/contexts.json +0 -24
  299. package/lang/translations/af.po +0 -100
  300. package/lang/translations/ar.po +0 -100
  301. package/lang/translations/ast.po +0 -100
  302. package/lang/translations/az.po +0 -100
  303. package/lang/translations/bg.po +0 -100
  304. package/lang/translations/bn.po +0 -100
  305. package/lang/translations/bs.po +0 -100
  306. package/lang/translations/ca.po +0 -100
  307. package/lang/translations/cs.po +0 -100
  308. package/lang/translations/da.po +0 -100
  309. package/lang/translations/de-ch.po +0 -100
  310. package/lang/translations/de.po +0 -100
  311. package/lang/translations/el.po +0 -100
  312. package/lang/translations/en-au.po +0 -100
  313. package/lang/translations/en-gb.po +0 -100
  314. package/lang/translations/en.po +0 -100
  315. package/lang/translations/eo.po +0 -100
  316. package/lang/translations/es-co.po +0 -100
  317. package/lang/translations/es.po +0 -100
  318. package/lang/translations/et.po +0 -100
  319. package/lang/translations/eu.po +0 -100
  320. package/lang/translations/fa.po +0 -100
  321. package/lang/translations/fi.po +0 -100
  322. package/lang/translations/fr.po +0 -100
  323. package/lang/translations/gl.po +0 -100
  324. package/lang/translations/gu.po +0 -100
  325. package/lang/translations/he.po +0 -100
  326. package/lang/translations/hi.po +0 -100
  327. package/lang/translations/hr.po +0 -100
  328. package/lang/translations/hu.po +0 -100
  329. package/lang/translations/hy.po +0 -100
  330. package/lang/translations/id.po +0 -100
  331. package/lang/translations/it.po +0 -100
  332. package/lang/translations/ja.po +0 -100
  333. package/lang/translations/jv.po +0 -100
  334. package/lang/translations/kk.po +0 -100
  335. package/lang/translations/km.po +0 -100
  336. package/lang/translations/kn.po +0 -100
  337. package/lang/translations/ko.po +0 -100
  338. package/lang/translations/ku.po +0 -100
  339. package/lang/translations/lt.po +0 -100
  340. package/lang/translations/lv.po +0 -100
  341. package/lang/translations/ms.po +0 -100
  342. package/lang/translations/nb.po +0 -100
  343. package/lang/translations/ne.po +0 -100
  344. package/lang/translations/nl.po +0 -100
  345. package/lang/translations/no.po +0 -100
  346. package/lang/translations/oc.po +0 -100
  347. package/lang/translations/pl.po +0 -100
  348. package/lang/translations/pt-br.po +0 -100
  349. package/lang/translations/pt.po +0 -100
  350. package/lang/translations/ro.po +0 -100
  351. package/lang/translations/ru.po +0 -100
  352. package/lang/translations/si.po +0 -100
  353. package/lang/translations/sk.po +0 -100
  354. package/lang/translations/sl.po +0 -100
  355. package/lang/translations/sq.po +0 -100
  356. package/lang/translations/sr-latn.po +0 -100
  357. package/lang/translations/sr.po +0 -100
  358. package/lang/translations/sv.po +0 -100
  359. package/lang/translations/th.po +0 -100
  360. package/lang/translations/ti.po +0 -100
  361. package/lang/translations/tk.po +0 -100
  362. package/lang/translations/tr.po +0 -100
  363. package/lang/translations/tt.po +0 -100
  364. package/lang/translations/ug.po +0 -100
  365. package/lang/translations/uk.po +0 -100
  366. package/lang/translations/ur.po +0 -100
  367. package/lang/translations/uz.po +0 -100
  368. package/lang/translations/vi.po +0 -100
  369. package/lang/translations/zh-cn.po +0 -100
  370. package/lang/translations/zh.po +0 -100
  371. package/src/augmentation.d.ts +0 -30
  372. package/src/augmentation.js +0 -23
  373. package/src/index.d.ts +0 -16
  374. package/src/index.js +0 -23
  375. package/src/ui/uploadcarecontroller.d.ts +0 -30
  376. package/src/ui/uploadcarecontroller.js +0 -24
  377. package/src/ui/uploadcareformview.d.ts +0 -23
  378. package/src/ui/uploadcareformview.js +0 -23
  379. package/src/uploadcare.d.ts +0 -48
  380. package/src/uploadcare.js +0 -23
  381. package/src/uploadcarecommand.d.ts +0 -38
  382. package/src/uploadcarecommand.js +0 -23
  383. package/src/uploadcareconfig.d.ts +0 -228
  384. package/src/uploadcareconfig.js +0 -23
  385. package/src/uploadcareediting.d.ts +0 -49
  386. package/src/uploadcareediting.js +0 -23
  387. package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +0 -78
  388. package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +0 -24
  389. package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +0 -25
  390. package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +0 -23
  391. package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +0 -27
  392. package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +0 -23
  393. package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +0 -24
  394. package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +0 -23
  395. package/src/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +0 -32
  396. package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +0 -23
  397. package/src/uploadcareimageedit/uploadcareimageeditcommand.d.ts +0 -49
  398. package/src/uploadcareimageedit/uploadcareimageeditcommand.js +0 -23
  399. package/src/uploadcareimageedit/uploadcareimageeditediting.d.ts +0 -38
  400. package/src/uploadcareimageedit/uploadcareimageeditediting.js +0 -23
  401. package/src/uploadcareimageedit/uploadcareimageeditui.d.ts +0 -48
  402. package/src/uploadcareimageedit/uploadcareimageeditui.js +0 -23
  403. package/src/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +0 -23
  404. package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +0 -23
  405. package/src/uploadcareimageedit.d.ts +0 -32
  406. package/src/uploadcareimageedit.js +0 -23
  407. package/src/uploadcareui.d.ts +0 -41
  408. package/src/uploadcareui.js +0 -23
  409. package/src/uploadcareuploadadapter.d.ts +0 -39
  410. package/src/uploadcareuploadadapter.js +0 -23
  411. package/src/utils/common-translations.d.ts +0 -5
  412. package/src/utils/common-translations.js +0 -23
  413. package/src/utils/dialogfocusmanagerview.d.ts +0 -29
  414. package/src/utils/dialogfocusmanagerview.js +0 -23
  415. package/src/utils/editingutils.d.ts +0 -5
  416. package/src/utils/editingutils.js +0 -23
  417. package/src/utils/isancestor.d.ts +0 -8
  418. package/src/utils/isancestor.js +0 -23
  419. package/src/utils/uploadutils.d.ts +0 -5
  420. package/src/utils/uploadutils.js +0 -23
  421. package/theme/icons/dropbox.svg +0 -11
  422. package/theme/icons/error.svg +0 -1
  423. package/theme/icons/facebook.svg +0 -11
  424. package/theme/icons/google-drive.svg +0 -11
  425. package/theme/icons/google-photos.svg +0 -11
  426. package/theme/icons/image-upload.svg +0 -11
  427. package/theme/icons/link.svg +0 -11
  428. package/theme/icons/local.svg +0 -11
  429. package/theme/icons/onedrive.svg +0 -11
  430. package/theme/icons/uploadcare-image-edit.svg +0 -11
  431. package/theme/uploadcare-form.css +0 -198
  432. package/theme/uploadcare-theme.css +0 -20
  433. package/theme/uploadcareimageedit.css +0 -64
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- import{SpinnerView as _0x298ea1,View as _0x15e8e3}from'ckeditor5/src/ui.js';export default class ta extends _0x15e8e3{constructor(_0x4a3f6f){super(_0x4a3f6f);const t=_0x4a3f6f['t'],_0x36032a=this['bindTemplate'],_0x55cc98=new _0x298ea1();_0x55cc98['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x55cc98,{'text':_0x36032a['to']('imageUploadProgress',_0x16adfa=>t('Loading\x20image...')+'\x20('+(_0x16adfa||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
@@ -1,32 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- /**
6
- * @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformview
7
- */
8
- import { type Locale } from 'ckeditor5/src/utils.js';
9
- import type UploadcareImageEditController from './uploadcareimageeditcontroller.js';
10
- import DialogFocusManagerView from '../../utils/dialogfocusmanagerview.js';
11
- import type { UploadcareEditorConfig } from '../../uploadcareconfig.js';
12
- import '../../../theme/uploadcare-form.css';
13
- /**
14
- * A class representing the form view of the Uploadcare image edit feature.
15
- */
16
- export default class UploadcareImageEditFormView extends DialogFocusManagerView {
17
- /**
18
- * Status of the image passed to the view;
19
- *
20
- * @observable
21
- * @readonly
22
- */
23
- status: ThisType<UploadcareImageEditController['imageStatus']>;
24
- /**
25
- * @inheritDoc
26
- */
27
- constructor(locale: Locale, imageStatus: string, attributes: UploadcareEditorConfig);
28
- /**
29
- * @inheritDoc
30
- */
31
- focus(): void;
32
- }
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0xbc7c5d=_0x8519;(function(_0x1518a2,_0x5ed2b5){const _0x46b351=_0x8519,_0x292210=_0x1518a2();while(!![]){try{const _0x1b0f5a=-parseInt(_0x46b351(0x1d5))/0x1*(-parseInt(_0x46b351(0x1d2))/0x2)+-parseInt(_0x46b351(0x1ad))/0x3+-parseInt(_0x46b351(0x1bc))/0x4*(-parseInt(_0x46b351(0x1cd))/0x5)+parseInt(_0x46b351(0x1b5))/0x6*(parseInt(_0x46b351(0x1bd))/0x7)+-parseInt(_0x46b351(0x1ae))/0x8*(-parseInt(_0x46b351(0x1c3))/0x9)+-parseInt(_0x46b351(0x1c5))/0xa+-parseInt(_0x46b351(0x1d8))/0xb;if(_0x1b0f5a===_0x5ed2b5)break;else _0x292210['push'](_0x292210['shift']());}catch(_0x3e790a){_0x292210['push'](_0x292210['shift']());}}}(_0x2559,0xb2da3));import{View as _0x2edc51}from'ckeditor5/src/ui.js';import _0xfb86b5 from'./uploadcareimageeditformloadingview.js';import _0x4aafe7 from'./uploadcareimageeditformerrorview.js';function _0x2559(){const _0x2d6799=['target','div','querySelector','75mparuD','once','observe','disconnect','getFocusableElement','6fHYpIo','apply','uploading','190943YXDMyI','setTemplate','length','8761467fLRSCg','cdnUrl','cancel','_addUploadcareImageEditorListeners','focus','ck-reset_all-excluded','_waitForImageEditorComponent','_setView','retry','uc-cloud-image-editor','_errorView','toLowerCase','change:status','1331811TzemZm','657144QtUIQx','set','element','addMany','nodeName','ck-uploadcare-form','addedNodes','2205996eDnLJe','fire','_addErrorViewListeners','detail','add','error','ready','276652TARDZN','21lYzBYk','_focusableView','_loadingView','_items','addEventListener','createCollection','27nkvWoc','_editingView','9866880lfYaES','status','filter','render','clear'];_0x2559=function(){return _0x2d6799;};return _0x2559();}import _0x660a13 from'./uploadcareimageeditformeditingview.js';function _0x8519(_0x2c04fa,_0x1620cb){const _0x2559c1=_0x2559();return _0x8519=function(_0x851933,_0x56ada3){_0x851933=_0x851933-0x1ab;let _0x31c201=_0x2559c1[_0x851933];return _0x31c201;},_0x8519(_0x2c04fa,_0x1620cb);}import _0x582099 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x582099{constructor(_0x51166a,_0x20a249,_0x1afcc7){const _0x5740bd=_0x8519;super(_0x51166a),this[_0x5740bd(0x1c0)]=this[_0x5740bd(0x1c2)](),this[_0x5740bd(0x1bf)]=new _0xfb86b5(_0x51166a),this[_0x5740bd(0x1e2)]=new _0x4aafe7(_0x51166a),this[_0x5740bd(0x1c4)]=new _0x660a13(_0x51166a,_0x1afcc7),this[_0x5740bd(0x1be)]=new _0x2edc51(_0x51166a),this[_0x5740bd(0x1be)][_0x5740bd(0x1d6)](this[_0x5740bd(0x1d1)]()),this[_0x5740bd(0x1af)](_0x5740bd(0x1c6),_0x20a249),this[_0x5740bd(0x1d6)]({'tag':_0x5740bd(0x1cb),'attributes':{'class':['ck',_0x5740bd(0x1dd),_0x5740bd(0x1b3)],'tabindex':'-1'},'children':this[_0x5740bd(0x1c0)]}),this[_0x5740bd(0x1df)](),this[_0x5740bd(0x1ce)](_0x5740bd(0x1c8),()=>{const _0x49af3f=_0x5740bd;this[_0x49af3f(0x1de)](this[_0x49af3f(0x1b0)],_0x271c71=>{const _0x3844b1=_0x49af3f;this[_0x3844b1(0x1db)](_0x271c71);});}),this['on'](_0x5740bd(0x1ac),()=>{const _0x358fe7=_0x5740bd;this[_0x358fe7(0x1df)]();}),this[_0x5740bd(0x1b7)]();}[_0xbc7c5d(0x1dc)](){const _0x102b57=_0xbc7c5d;this[_0x102b57(0x1b0)][_0x102b57(0x1dc)]();}[_0xbc7c5d(0x1df)](){const _0x2c8e34=_0xbc7c5d;switch(this[_0x2c8e34(0x1c0)][_0x2c8e34(0x1c9)](),this[_0x2c8e34(0x1c6)]){case _0x2c8e34(0x1d4):this[_0x2c8e34(0x1c0)][_0x2c8e34(0x1b9)](this[_0x2c8e34(0x1bf)]);break;case _0x2c8e34(0x1ba):this[_0x2c8e34(0x1c0)][_0x2c8e34(0x1b9)](this[_0x2c8e34(0x1e2)]);break;case _0x2c8e34(0x1bb):this[_0x2c8e34(0x1c0)][_0x2c8e34(0x1b1)]([this[_0x2c8e34(0x1c4)],this[_0x2c8e34(0x1be)]]);}}[_0xbc7c5d(0x1de)](_0x15f7c1,_0x55669a){const _0x55cc67=_0xbc7c5d,_0x4f5aae=_0x55cc67(0x1e1),_0x3ca8fc=_0x15f7c1[_0x55cc67(0x1cc)](_0x4f5aae);if(_0x3ca8fc)return _0x55669a(_0x3ca8fc);const _0x5db52c=new MutationObserver(_0x1bec15=>{const _0x3baa1e=_0x55cc67,_0x453a22=_0x1bec15[_0x3baa1e(0x1c7)](_0x2c1eca=>_0x2c1eca[_0x3baa1e(0x1ca)]===_0x15f7c1&&_0x2c1eca[_0x3baa1e(0x1b4)][_0x3baa1e(0x1d7)]>0x0&&_0x2c1eca[_0x3baa1e(0x1b4)][0x0][_0x3baa1e(0x1b2)][_0x3baa1e(0x1ab)]()===_0x4f5aae);_0x453a22[_0x3baa1e(0x1d7)]&&(_0x5db52c[_0x3baa1e(0x1d0)](),_0x55669a(_0x453a22[0x0][_0x3baa1e(0x1b4)][0x0]));});_0x5db52c[_0x55cc67(0x1cf)](_0x15f7c1,{'childList':!0x0,'subtree':!0x0});}[_0xbc7c5d(0x1db)](_0x112c68){const _0x1dae7a=_0xbc7c5d;_0x112c68[_0x1dae7a(0x1c1)](_0x1dae7a(0x1d3),_0x3b3b8b=>{const _0x33837b=_0x1dae7a;this[_0x33837b(0x1b6)](_0x33837b(0x1d3),{'imageSrc':_0x3b3b8b[_0x33837b(0x1b8)][_0x33837b(0x1d9)]});}),_0x112c68[_0x1dae7a(0x1c1)](_0x1dae7a(0x1da),()=>{const _0x54f413=_0x1dae7a;this[_0x54f413(0x1b6)](_0x54f413(0x1da));});}[_0xbc7c5d(0x1b7)](){const _0xd3bc5c=_0xbc7c5d;this[_0xd3bc5c(0x1e2)]['on'](_0xd3bc5c(0x1e0),()=>{const _0x24d428=_0xd3bc5c;this[_0x24d428(0x1b6)](_0x24d428(0x1e0));});}}
@@ -1,49 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- /**
6
- * @module uploadcare/uploadcareimageedit/uploadcareimageeditcommand
7
- * @publicApi
8
- */
9
- import { Command, type Editor } from 'ckeditor5/src/core.js';
10
- import { Dialog } from 'ckeditor5/src/ui.js';
11
- import UploadcareImageEditController from './ui/uploadcareimageeditcontroller.js';
12
- /**
13
- * The Uploadcare edit image command.
14
- *
15
- * It opens the Uploadcare dialog for editing the image.
16
- *
17
- * ```ts
18
- * editor.execute( 'uploadcareImageEdit' );
19
- * ```
20
- */
21
- export default class UploadcareImageEditCommand extends Command {
22
- /**
23
- * Whenever the controller is active and dialog UI visible.
24
- *
25
- * @observable
26
- * @readonly
27
- */
28
- isActive: boolean;
29
- /**
30
- * The Uploadcare image edit controller instance.
31
- */
32
- imageEditController: UploadcareImageEditController | undefined;
33
- /**
34
- * @inheritDoc
35
- */
36
- static get requires(): readonly [typeof Dialog];
37
- /**
38
- * @inheritDoc
39
- */
40
- constructor(editor: Editor);
41
- /**
42
- * @inheritDoc
43
- */
44
- refresh(): void;
45
- /**
46
- * @inheritDoc
47
- */
48
- execute(): void;
49
- }
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x2855ba=_0x5711;(function(_0xc34810,_0x24c13c){const _0x31cc44=_0x5711,_0x3fc787=_0xc34810();while(!![]){try{const _0x4d6807=parseInt(_0x31cc44(0x118))/0x1*(-parseInt(_0x31cc44(0x113))/0x2)+parseInt(_0x31cc44(0x12f))/0x3+-parseInt(_0x31cc44(0x117))/0x4+parseInt(_0x31cc44(0x127))/0x5+-parseInt(_0x31cc44(0x124))/0x6+parseInt(_0x31cc44(0x11d))/0x7*(parseInt(_0x31cc44(0x11a))/0x8)+-parseInt(_0x31cc44(0x129))/0x9*(-parseInt(_0x31cc44(0x131))/0xa);if(_0x4d6807===_0x24c13c)break;else _0x3fc787['push'](_0x3fc787['shift']());}catch(_0x59028c){_0x3fc787['push'](_0x3fc787['shift']());}}}(_0x340d,0x5284c));import{Command as _0x22bd95}from'ckeditor5/src/core.js';function _0x5711(_0x565710,_0x12ca06){const _0x340d7d=_0x340d();return _0x5711=function(_0x571157,_0x8a2b0d){_0x571157=_0x571157-0x113;let _0x3ddbba=_0x340d7d[_0x571157];return _0x3ddbba;},_0x5711(_0x565710,_0x12ca06);}import{Dialog as _0x5f097f}from'ckeditor5/src/ui.js';import _0x4d7893 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0xd81289}from'../utils/editingutils.js';export default class J extends _0x22bd95{static get[_0x2855ba(0x126)](){return[_0x5f097f];}constructor(_0x1a3963){const _0x591ead=_0x2855ba;super(_0x1a3963),this[_0x591ead(0x116)]=void 0x0,this[_0x591ead(0x11f)]=_0xd81289(_0x1a3963[_0x591ead(0x121)][_0x591ead(0x12b)](_0x591ead(0x12d))||[]),this[_0x591ead(0x125)]({'isActive':!0x1});}[_0x2855ba(0x120)](){const _0x3e9668=_0x2855ba,_0x773885=this[_0x3e9668(0x11e)][_0x3e9668(0x12e)][_0x3e9668(0x130)][_0x3e9668(0x12c)][_0x3e9668(0x128)]();this[_0x3e9668(0x123)]=this[_0x3e9668(0x11f)](_0x773885);}[_0x2855ba(0x122)](){const _0x5d0fe2=_0x2855ba;this[_0x5d0fe2(0x116)]&&(this[_0x5d0fe2(0x11c)](_0x5d0fe2(0x119)),this[_0x5d0fe2(0x116)]=void 0x0);const _0x13d0ab=this[_0x5d0fe2(0x11e)][_0x5d0fe2(0x12e)][_0x5d0fe2(0x130)][_0x5d0fe2(0x12c)][_0x5d0fe2(0x128)]();_0x13d0ab&&(_0x13d0ab['is'](_0x5d0fe2(0x115),_0x5d0fe2(0x114))||_0x13d0ab['is'](_0x5d0fe2(0x115),_0x5d0fe2(0x11b)))&&(this[_0x5d0fe2(0x116)]=new _0x4d7893(this[_0x5d0fe2(0x11e)],this[_0x5d0fe2(0x11e)][_0x5d0fe2(0x132)][_0x5d0fe2(0x12b)](_0x5f097f),_0x13d0ab),this[_0x5d0fe2(0x12a)](_0x5d0fe2(0x119))['to'](this[_0x5d0fe2(0x116)],_0x5d0fe2(0x119)));}}function _0x340d(){const _0x5eb431=['unbind','18214vzjpAe','editor','_isEditable','refresh','config','execute','isEnabled','885108xtqpoL','set','requires','2547525XmhmxI','getSelectedElement','145602tenTOJ','bind','get','selection','uploadcare.allowExternalImagesEditing','model','218586LCAKdu','document','410oVSFxW','plugins','1338202qaGfvK','imageBlock','element','imageEditController','790928srBZFD','1FIOjvA','isActive','328GqDNMu','imageInline'];_0x340d=function(){return _0x5eb431;};return _0x340d();}
@@ -1,38 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- /**
6
- * @module uploadcare/uploadcareimageedit/uploadcareimageeditediting
7
- * @publicApi
8
- */
9
- import { Plugin } from 'ckeditor5/src/core.js';
10
- import { Notification } from 'ckeditor5/src/ui.js';
11
- import UploadcareEditing from '../uploadcareediting.js';
12
- /**
13
- * The Uploadcare image editing plugin.
14
- *
15
- * It complements the {@link module:uploadcare/uploadcare~Uploadcare Uploadcare feature} by adding editing capabilities for uploaded images.
16
- */
17
- export default class UploadcareImageEditEditing extends Plugin {
18
- /**
19
- * @inheritDoc
20
- */
21
- static get pluginName(): "UploadcareImageEditEditing";
22
- /**
23
- * @inheritDoc
24
- */
25
- static get requires(): readonly [typeof UploadcareEditing, typeof Notification, "ImageUtils", "ImageEditing"];
26
- /**
27
- * @inheritDoc
28
- */
29
- static get isOfficialPlugin(): true;
30
- /**
31
- * @inheritDoc
32
- */
33
- static get isPremiumPlugin(): true;
34
- /**
35
- * @inheritDoc
36
- */
37
- init(): void;
38
- }
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x4cf9c8=_0x3631;(function(_0x1eb2ee,_0x5ae84f){const _0x31ace3=_0x3631,_0x59e3a0=_0x1eb2ee();while(!![]){try{const _0x592695=-parseInt(_0x31ace3(0x107))/0x1*(parseInt(_0x31ace3(0x11a))/0x2)+parseInt(_0x31ace3(0x10e))/0x3+-parseInt(_0x31ace3(0x112))/0x4+-parseInt(_0x31ace3(0x10a))/0x5+-parseInt(_0x31ace3(0x118))/0x6+parseInt(_0x31ace3(0x109))/0x7+-parseInt(_0x31ace3(0x110))/0x8*(-parseInt(_0x31ace3(0x117))/0x9);if(_0x592695===_0x5ae84f)break;else _0x59e3a0['push'](_0x59e3a0['shift']());}catch(_0x557bf4){_0x59e3a0['push'](_0x59e3a0['shift']());}}}(_0x4d11,0x9c5af));import{Plugin as _0x32edc5}from'ckeditor5/src/core.js';import{Notification as _0x256c05}from'ckeditor5/src/ui.js';function _0x3631(_0x734f4a,_0x4b3c96){const _0x4d1132=_0x4d11();return _0x3631=function(_0x3631ac,_0x3d9f74){_0x3631ac=_0x3631ac-0x106;let _0x128c1b=_0x4d1132[_0x3631ac];return _0x128c1b;},_0x3631(_0x734f4a,_0x4b3c96);}function _0x4d11(){const _0x2fc101=['isOfficialPlugin','2734407tzUmFQ','838308wZiLdI','add','146694cvjtyF','pluginName','6JTIrbA','init','8167999DCvjvV','4686890zpOwYQ','uploadcareImageEdit','requires','commands','184410hjyjQE','UploadcareImageEditEditing','56bOqTKw','isPremiumPlugin','4789916nwGDLc','ImageEditing','uploadcareImageReplace','ImageUtils'];_0x4d11=function(){return _0x2fc101;};return _0x4d11();}import _0x2ada79 from'./uploadcareimageeditcommand.js';import _0x2b9231 from'./uploadcareimagereplacecommand.js';import _0x32816d from'../uploadcareediting.js';export default class m extends _0x32edc5{static get[_0x4cf9c8(0x106)](){const _0x524afe=_0x4cf9c8;return _0x524afe(0x10f);}static get[_0x4cf9c8(0x10c)](){const _0xaea533=_0x4cf9c8;return[_0x32816d,_0x256c05,_0xaea533(0x115),_0xaea533(0x113)];}static get[_0x4cf9c8(0x116)](){return!0x0;}static get[_0x4cf9c8(0x111)](){return!0x0;}[_0x4cf9c8(0x108)](){const _0x2ff1a3=_0x4cf9c8,{editor:_0x35ee16}=this;_0x35ee16[_0x2ff1a3(0x10d)][_0x2ff1a3(0x119)](_0x2ff1a3(0x10b),new _0x2ada79(_0x35ee16)),_0x35ee16[_0x2ff1a3(0x10d)][_0x2ff1a3(0x119)](_0x2ff1a3(0x114),new _0x2b9231(_0x35ee16));}}
@@ -1,48 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- /**
6
- * @module uploadcare/uploadcareimageedit/uploadcareimageeditui
7
- * @publicApi
8
- */
9
- import { Plugin } from 'ckeditor5/src/core.js';
10
- import '@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';
11
- import '../../theme/uploadcare-theme.css';
12
- /**
13
- * The UI plugin of the Uploadcare image edit feature.
14
- *
15
- * It registers the `'uploadcareImageEdit'` UI button in the editor's {@link module:ui/componentfactory~ComponentFactory component factory}
16
- * that allows you to open the Uploadcare dialog and edit the image.
17
- */
18
- export default class UploadcareImageEditUI extends Plugin {
19
- /**
20
- * @inheritDoc
21
- */
22
- static get pluginName(): "UploadcareImageEditUI";
23
- /**
24
- * @inheritDoc
25
- */
26
- static get isOfficialPlugin(): true;
27
- /**
28
- * @inheritDoc
29
- */
30
- static get isPremiumPlugin(): true;
31
- /**
32
- * The cache of image URLs that had been uploaded to Uploadcare.
33
- */
34
- get imageCache(): ImageCache;
35
- /**
36
- * @inheritDoc
37
- */
38
- init(): void;
39
- }
40
- type ImageCache = Map<string, {
41
- id: string;
42
- url: string;
43
- dimension: {
44
- width: number;
45
- height: number;
46
- };
47
- }>;
48
- export {};
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- import{Plugin as _0x1bf320}from'ckeditor5/src/core.js';import{ButtonView as _0x10d1bb}from'ckeditor5/src/ui.js';import{createElement as _0x3b98b3}from'ckeditor5/src/utils.js';import _0x435816 from'../../theme/icons/uploadcare-image-edit.svg';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class g extends _0x1bf320{constructor(){super(...arguments),this['_imageCache']=new Map();}static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x12ab8c=this['editor'];_0x12ab8c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1baba8=>{const _0x4c3bc8=_0x12ab8c['commands']['get']('uploadcareImageEdit'),_0x2894de=new _0x10d1bb(_0x1baba8),t=_0x1baba8['t'];return _0x2894de['set']({'icon':_0x435816,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2894de['bind']('isEnabled')['to'](_0x4c3bc8),_0x2894de['bind']('isOn')['to'](_0x4c3bc8,'isActive'),this['listenTo'](_0x2894de,'execute',()=>{_0x12ab8c['execute']('uploadcareImageEdit'),_0x12ab8c['editing']['view']['focus']();}),_0x2894de;}),this['_initConfig']();}['_initConfig'](){const _0x36093f=_0x3b98b3(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x36093f),this['listenTo'](this['editor'],'destroy',()=>{_0x36093f['remove']();});}}
@@ -1,23 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- /**
6
- * @module uploadcare/uploadcareimageedit/uploadcareimagereplacecommand
7
- */
8
- import { Command } from 'ckeditor5/src/core.js';
9
- /**
10
- * The Uploadcare replace image command.
11
- *
12
- * It replaces given image element attributes.
13
- */
14
- export default class UploadcareImageReplaceCommand extends Command {
15
- /**
16
- * @inheritDoc
17
- */
18
- refresh(): void;
19
- /**
20
- * @inheritDoc
21
- */
22
- execute(attributes: Record<string, string | number | any>): void;
23
- }
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x4f3e74=_0x2b73;function _0x2b73(_0x5afc8e,_0x4474cc){const _0x2101f4=_0x2101();return _0x2b73=function(_0x2b730c,_0x10757a){_0x2b730c=_0x2b730c-0x1d4;let _0x246314=_0x2101f4[_0x2b730c];return _0x246314;},_0x2b73(_0x5afc8e,_0x4474cc);}(function(_0x167b70,_0x1621c7){const _0xef716d=_0x2b73,_0x166601=_0x167b70();while(!![]){try{const _0x5963ce=-parseInt(_0xef716d(0x1d5))/0x1*(parseInt(_0xef716d(0x1ee))/0x2)+-parseInt(_0xef716d(0x1ed))/0x3*(-parseInt(_0xef716d(0x1e9))/0x4)+parseInt(_0xef716d(0x1de))/0x5+-parseInt(_0xef716d(0x1ec))/0x6*(-parseInt(_0xef716d(0x1d4))/0x7)+parseInt(_0xef716d(0x1e6))/0x8+-parseInt(_0xef716d(0x1dc))/0x9*(-parseInt(_0xef716d(0x1e3))/0xa)+-parseInt(_0xef716d(0x1e4))/0xb;if(_0x5963ce===_0x1621c7)break;else _0x166601['push'](_0x166601['shift']());}catch(_0x2d779a){_0x166601['push'](_0x166601['shift']());}}}(_0x2101,0x9092b));function _0x2101(){const _0x223c05=['imageBlock','56FuALrl','element','execute','76938PPSRCr','184371IpZdKu','454clFaSA','21MqmeqY','1035kUOiom','document','sizes','getSelectedElement','isEnabled','refresh','imageInline','522zBlYzW','srcset','3594600vlTKov','change','removeAttribute','editor','model','8650AobvBI','22007799FKNHOq','selection','9278944KBetDN','setAttributes'];_0x2101=function(){return _0x223c05;};return _0x2101();}import{Command as _0x2b98b2}from'ckeditor5/src/core.js';export default class O extends _0x2b98b2{[_0x4f3e74(0x1da)](){const _0x4c0289=_0x4f3e74,_0x3e6da4=this[_0x4c0289(0x1e1)][_0x4c0289(0x1e2)][_0x4c0289(0x1d6)][_0x4c0289(0x1e5)][_0x4c0289(0x1d8)]();this[_0x4c0289(0x1d9)]=Boolean(_0x3e6da4&&(_0x3e6da4['is'](_0x4c0289(0x1ea),_0x4c0289(0x1e8))||_0x3e6da4['is'](_0x4c0289(0x1ea),_0x4c0289(0x1db))));}[_0x4f3e74(0x1eb)](_0x3b152a){const _0x42c68f=_0x4f3e74,_0xddedf4=this[_0x42c68f(0x1e1)][_0x42c68f(0x1e2)][_0x42c68f(0x1d6)][_0x42c68f(0x1e5)][_0x42c68f(0x1d8)]();this[_0x42c68f(0x1e1)][_0x42c68f(0x1e2)][_0x42c68f(0x1df)](_0x316d1d=>{const _0xa0c0ec=_0x42c68f;_0x316d1d[_0xa0c0ec(0x1e7)](_0x3b152a,_0xddedf4),_0x316d1d[_0xa0c0ec(0x1e0)](_0xa0c0ec(0x1dd),_0xddedf4),_0x316d1d[_0xa0c0ec(0x1e0)](_0xa0c0ec(0x1d7),_0xddedf4);});}}
@@ -1,32 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- /**
6
- * @module uploadcare/uploadcareimageedit
7
- * @publicApi
8
- */
9
- import { Plugin } from 'ckeditor5/src/core.js';
10
- import UploadcareImageEditEditing from './uploadcareimageedit/uploadcareimageeditediting.js';
11
- import UploadcareImageEditUI from './uploadcareimageedit/uploadcareimageeditui.js';
12
- /**
13
- * The Uploadcare image edit feature.
14
- */
15
- export default class UploadcareImageEdit extends Plugin {
16
- /**
17
- * @inheritDoc
18
- */
19
- static get pluginName(): "UploadcareImageEdit";
20
- /**
21
- * @inheritDoc
22
- */
23
- static get requires(): readonly [typeof UploadcareImageEditEditing, typeof UploadcareImageEditUI];
24
- /**
25
- * @inheritDoc
26
- */
27
- static get isOfficialPlugin(): true;
28
- /**
29
- * @inheritDoc
30
- */
31
- static get isPremiumPlugin(): true;
32
- }
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- var _0x59277b=_0x5409;function _0x8fe3(){var _0xed61cf=['1109409vxLoCl','149373pHxZGa','1986132najyoC','271mCzXxk','14508918LPCNhZ','UploadcareImageEdit','isOfficialPlugin','requires','6817408CYejHf','5558oCVRzI','pluginName','isPremiumPlugin','6931860eSsIuZ','4MuyTwj'];_0x8fe3=function(){return _0xed61cf;};return _0x8fe3();}(function(_0x390844,_0x256035){var _0x351f25=_0x5409,_0x495dfb=_0x390844();while(!![]){try{var _0x55b9dc=parseInt(_0x351f25(0xe0))/0x1*(parseInt(_0x351f25(0xe6))/0x2)+parseInt(_0x351f25(0xdd))/0x3*(parseInt(_0x351f25(0xdc))/0x4)+-parseInt(_0x351f25(0xdb))/0x5+parseInt(_0x351f25(0xdf))/0x6+-parseInt(_0x351f25(0xde))/0x7+-parseInt(_0x351f25(0xe5))/0x8+parseInt(_0x351f25(0xe1))/0x9;if(_0x55b9dc===_0x256035)break;else _0x495dfb['push'](_0x495dfb['shift']());}catch(_0x1e8d55){_0x495dfb['push'](_0x495dfb['shift']());}}}(_0x8fe3,0xc4d05));import{Plugin as _0x51aaf0}from'ckeditor5/src/core.js';function _0x5409(_0x4b9ac4,_0x5f1cfa){var _0x8fe31f=_0x8fe3();return _0x5409=function(_0x5409eb,_0x3a3325){_0x5409eb=_0x5409eb-0xd9;var _0x51b913=_0x8fe31f[_0x5409eb];return _0x51b913;},_0x5409(_0x4b9ac4,_0x5f1cfa);}import _0xad823c from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0xe5c6e4 from'./uploadcareimageedit/uploadcareimageeditui.js';export default class j extends _0x51aaf0{static get[_0x59277b(0xd9)](){var _0x39f0e3=_0x59277b;return _0x39f0e3(0xe2);}static get[_0x59277b(0xe4)](){return[_0xad823c,_0xe5c6e4];}static get[_0x59277b(0xe3)](){return!0x0;}static get[_0x59277b(0xda)](){return!0x0;}}
@@ -1,41 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- /**
6
- * @module uploadcare/uploadcareui
7
- * @publicApi
8
- */
9
- import { Plugin } from 'ckeditor5/src/core.js';
10
- import '@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';
11
- import '../theme/uploadcare-theme.css';
12
- import '../theme/uploadcareimageedit.css';
13
- /**
14
- * The UI plugin of the AI assistant.
15
- */
16
- export default class UploadcareUI extends Plugin {
17
- /**
18
- * @inheritDoc
19
- */
20
- static get pluginName(): "UploadcareUI";
21
- /**
22
- * @inheritDoc
23
- */
24
- static get isOfficialPlugin(): true;
25
- /**
26
- * @inheritDoc
27
- */
28
- static get isPremiumPlugin(): true;
29
- /**
30
- * @inheritDoc
31
- */
32
- init(): void;
33
- /**
34
- * @inheritDoc
35
- */
36
- afterInit(): void;
37
- /**
38
- * @inheritDoc
39
- */
40
- destroy(): void;
41
- }
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- function _0x3c7c(){const _0x38619c=['uploadcareLicenseKeyInvalid','url','_normalizeConfigSourceList','destroy','icon','locale','entries','isImageSelected','2YQAUkP','Facebook','uploadcareLicenseKeyExpired','10036215pjNaRc','327795wYEIjx','OneDrive','featureNotAllowed','usageLimit','726855JBqCgg','uploadcare','invalid','URL','Insert','uploadcare.uploader.sourceList','type','_licenseKeyCheckInterval','isEnabled','execute','expired','imageUpload','uploadcareLicenseKeyNotAllowed','3008454DuMPgX','isPremiumPlugin','registerIntegration','4wPssyD','_getIntegrationKey','upload','2008692GniqVM','reduce','licenseKey','init','120104QVFtDN','uploadcareLicenseKeyTrialLimit','Replace','plugins','evaluationLimit','3951832FhOMJj','uploadcareLicenseKeyEvaluationLimit','ImageInsertUI','GPhotos','uploadcareLicenseKeyDomainLimit','config','push','Local','isOfficialPlugin','map','tooltip','withText','_createDropdownButtons','pluginName','uploadcareLicenseKeyUsageLimit','has','text','GDrive','_createMenuBarButtons','uploadcareLicenseKeyValid','UploadcareUI','editor','Uploadcare','shortText','trialLimit','_createToolbarButton','bind','get','_createButton','Dropbox','forEach','label','afterInit','assetManager','commands','_showLicenseError','domainLimit'];_0x3c7c=function(){return _0x38619c;};return _0x3c7c();}const _0x2b1acd=_0x39ee;(function(_0x236a09,_0x28864e){const _0x996c7b=_0x39ee,_0x40d74f=_0x236a09();while(!![]){try{const _0x50c408=parseInt(_0x996c7b(0x16d))/0x1*(parseInt(_0x996c7b(0x14e))/0x2)+parseInt(_0x996c7b(0x152))/0x3+parseInt(_0x996c7b(0x166))/0x4*(-parseInt(_0x996c7b(0x156))/0x5)+parseInt(_0x996c7b(0x163))/0x6+parseInt(_0x996c7b(0x169))/0x7+parseInt(_0x996c7b(0x121))/0x8+-parseInt(_0x996c7b(0x151))/0x9;if(_0x50c408===_0x28864e)break;else _0x40d74f['push'](_0x40d74f['shift']());}catch(_0x47bdab){_0x40d74f['push'](_0x40d74f['shift']());}}}(_0x3c7c,0x3d547));import{Plugin as _0x257cef,icons as _0x467937}from'ckeditor5/src/core.js';import{ButtonView as _0x25b910,MenuBarMenuListItemButtonView as _0x38d7ee}from'ckeditor5/src/ui.js';function _0x39ee(_0x13fd78,_0x1843b3){const _0x3c7c87=_0x3c7c();return _0x39ee=function(_0x39eebe,_0x1582f1){_0x39eebe=_0x39eebe-0x11f;let _0x9b6172=_0x3c7c87[_0x39eebe];return _0x9b6172;},_0x39ee(_0x13fd78,_0x1843b3);}import _0x3155b9 from'../theme/icons/dropbox.svg';import _0x4e48c9 from'../theme/icons/facebook.svg';import _0x5e4d5f from'../theme/icons/google-drive.svg';import _0x2a25ad from'../theme/icons/google-photos.svg';import _0x32eac5 from'../theme/icons/link.svg';import _0x5c6a8e from'../theme/icons/onedrive.svg';import{UploadcareSource as _0x5f5cd3}from'./uploadcareconfig.js';import{getTranslation as _0x413ffa}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x257cef{static get[_0x2b1acd(0x12e)](){const _0x69a7c5=_0x2b1acd;return _0x69a7c5(0x135);}static get[_0x2b1acd(0x129)](){return!0x0;}static get[_0x2b1acd(0x164)](){return!0x0;}[_0x2b1acd(0x16c)](){const _0x3ce2ca=_0x2b1acd;this[_0x3ce2ca(0x16b)]=this[_0x3ce2ca(0x136)][_0x3ce2ca(0x126)][_0x3ce2ca(0x13c)](_0x3ce2ca(0x16b));const _0xaa90ec=this[_0x3ce2ca(0x136)];this[_0x3ce2ca(0x15d)]=setInterval(()=>{const _0x131715=_0x3ce2ca;let _0x27ef4c;for(const _0x588f55 in _0xaa90ec){const _0x173e68=_0x588f55,_0x34d906=_0xaa90ec[_0x173e68];if(_0x131715(0x134)==_0x34d906||_0x131715(0x146)==_0x34d906||_0x131715(0x150)==_0x34d906||_0x131715(0x125)==_0x34d906||_0x131715(0x162)==_0x34d906||_0x131715(0x122)==_0x34d906||_0x131715(0x16e)==_0x34d906||_0x131715(0x12f)==_0x34d906){delete _0xaa90ec[_0x173e68],_0x27ef4c=_0x34d906,clearInterval(this[_0x131715(0x15d)]),this[_0x131715(0x15d)]=void 0x0;break;}}_0x131715(0x146)==_0x27ef4c&&_0xaa90ec[_0x131715(0x144)](_0x131715(0x158)),_0x131715(0x150)==_0x27ef4c&&_0xaa90ec[_0x131715(0x144)](_0x131715(0x160)),_0x131715(0x125)==_0x27ef4c&&_0xaa90ec[_0x131715(0x144)](_0x131715(0x145)),_0x131715(0x162)==_0x27ef4c&&_0xaa90ec[_0x131715(0x144)](_0x131715(0x154),_0x131715(0x137)),_0x131715(0x122)==_0x27ef4c&&_0xaa90ec[_0x131715(0x144)](_0x131715(0x120)),_0x131715(0x16e)==_0x27ef4c&&_0xaa90ec[_0x131715(0x144)](_0x131715(0x139)),_0x131715(0x12f)==_0x27ef4c&&_0xaa90ec[_0x131715(0x144)](_0x131715(0x155));},0x3e8);}[_0x2b1acd(0x141)](){const _0x3e86fd=_0x2b1acd,{editor:_0x465f81}=this,_0x20a6fb=_0x465f81[_0x3e86fd(0x143)][_0x3e86fd(0x13c)](_0x3e86fd(0x157));if(!_0x20a6fb)return;const _0x473e27=this[_0x3e86fd(0x148)](_0x465f81[_0x3e86fd(0x126)][_0x3e86fd(0x13c)](_0x3e86fd(0x15b)))[_0x3e86fd(0x16a)]((_0x25b73d,_0x580c17)=>{const _0x378482=_0x3e86fd,_0x1bd4a6=this[_0x378482(0x167)](_0x580c17[_0x378482(0x15c)]);return _0x25b73d[_0x1bd4a6]||(_0x25b73d[_0x1bd4a6]=[]),_0x25b73d[_0x1bd4a6][_0x378482(0x127)](_0x580c17),_0x25b73d;},{});_0x465f81[_0x3e86fd(0x11f)][_0x3e86fd(0x130)](_0x3e86fd(0x123))&&_0x465f81[_0x3e86fd(0x143)][_0x3e86fd(0x13c)](_0x3e86fd(0x157))&&Object[_0x3e86fd(0x14c)](_0x473e27)[_0x3e86fd(0x13f)](([_0xa5b143,_0x31814a])=>{const _0x52e326=_0x3e86fd;_0x465f81[_0x52e326(0x11f)][_0x52e326(0x13c)](_0x52e326(0x123))[_0x52e326(0x165)]({'name':_0xa5b143,'observable':()=>_0x20a6fb,'buttonViewCreator':()=>this[_0x52e326(0x13a)](_0x31814a),'formViewCreator':()=>this[_0x52e326(0x12d)](_0x31814a),'menuBarButtonViewCreator':()=>this[_0x52e326(0x133)](_0x31814a),'override':_0x52e326(0x142)!==_0xa5b143});});}[_0x2b1acd(0x149)](){const _0x2ed66d=_0x2b1acd;super[_0x2ed66d(0x149)](),this[_0x2ed66d(0x15d)]&&clearInterval(this[_0x2ed66d(0x15d)]);}[_0x2b1acd(0x148)](_0x5dc52c){const _0x339863=_0x2b1acd,{locale:_0x531da4}=this[_0x339863(0x136)];return _0x5dc52c[_0x339863(0x12a)](_0x3e25cd=>{const _0x5c6459=_0x339863,_0x1d759d=_0x413ffa(_0x531da4,_0x3e25cd,_0x5c6459(0x15a));switch(_0x3e25cd){case _0x5f5cd3[_0x5c6459(0x128)]:return{'icon':_0x467937[_0x5c6459(0x161)],'type':_0x5f5cd3[_0x5c6459(0x128)],..._0x1d759d};case _0x5f5cd3[_0x5c6459(0x159)]:return{'icon':_0x32eac5,'type':_0x5f5cd3[_0x5c6459(0x159)],..._0x1d759d};case _0x5f5cd3[_0x5c6459(0x13e)]:return{'icon':_0x3155b9,'type':_0x5f5cd3[_0x5c6459(0x13e)],..._0x1d759d};case _0x5f5cd3[_0x5c6459(0x14f)]:return{'icon':_0x4e48c9,'type':_0x5f5cd3[_0x5c6459(0x14f)],..._0x1d759d};case _0x5f5cd3[_0x5c6459(0x132)]:return{'icon':_0x5e4d5f,'type':_0x5f5cd3[_0x5c6459(0x132)],..._0x1d759d};case _0x5f5cd3[_0x5c6459(0x124)]:return{'icon':_0x2a25ad,'type':_0x5f5cd3[_0x5c6459(0x124)],..._0x1d759d};case _0x5f5cd3[_0x5c6459(0x153)]:return{'icon':_0x5c6a8e,'type':_0x5f5cd3[_0x5c6459(0x153)],..._0x1d759d};}});}[_0x2b1acd(0x167)](_0x37bbc5){const _0x16f8f1=_0x2b1acd;switch(_0x37bbc5){case _0x5f5cd3[_0x16f8f1(0x128)]:return _0x16f8f1(0x168);case _0x5f5cd3[_0x16f8f1(0x159)]:return _0x16f8f1(0x147);default:return _0x16f8f1(0x142);}}[_0x2b1acd(0x13d)](_0x54c10a,_0x474f5d){const _0x329607=_0x2b1acd,_0x1f3d91=this[_0x329607(0x136)],_0x18f860=new _0x54c10a(_0x1f3d91[_0x329607(0x14b)]),_0xce73e4=_0x1f3d91[_0x329607(0x143)][_0x329607(0x13c)](_0x329607(0x157));return _0x18f860[_0x329607(0x13b)](_0x329607(0x15e))['to'](_0xce73e4),_0x18f860['on'](_0x329607(0x15f),()=>{const _0x36bbbd=_0x329607;_0xce73e4[_0x36bbbd(0x15f)](_0x474f5d);}),_0x18f860;}[_0x2b1acd(0x13a)](_0x341c05){const _0x45eb7d=_0x2b1acd,{locale:_0x3b25c1}=this[_0x45eb7d(0x136)],_0xe3f73c=this[_0x45eb7d(0x136)][_0x45eb7d(0x11f)][_0x45eb7d(0x13c)](_0x45eb7d(0x123)),_0x1db5b9=_0x341c05[0x0],_0xa91704=this[_0x45eb7d(0x13d)](_0x25b910,_0x1db5b9[_0x45eb7d(0x15c)]);return _0xa91704[_0x45eb7d(0x14a)]=_0x1db5b9[_0x45eb7d(0x14a)],_0xa91704[_0x45eb7d(0x13b)](_0x45eb7d(0x140))['to'](_0xe3f73c,_0x45eb7d(0x14d),_0x19df90=>_0x413ffa(_0x3b25c1,_0x1db5b9[_0x45eb7d(0x15c)],_0x19df90?_0x45eb7d(0x16f):_0x45eb7d(0x15a))[_0x45eb7d(0x131)]),_0xa91704[_0x45eb7d(0x12b)]=!0x0,_0xa91704;}[_0x2b1acd(0x12d)](_0x58b93c){const _0x27b8c4=_0x2b1acd,{locale:_0x27a69d}=this[_0x27b8c4(0x136)],_0x10b17a=this[_0x27b8c4(0x136)][_0x27b8c4(0x11f)][_0x27b8c4(0x13c)](_0x27b8c4(0x123));return _0x58b93c[_0x27b8c4(0x12a)](_0x667bbf=>{const _0x26cd57=_0x27b8c4,_0x574d5e=this[_0x26cd57(0x13d)](_0x25b910,_0x667bbf[_0x26cd57(0x15c)]);return _0x574d5e[_0x26cd57(0x12c)]=!0x0,_0x574d5e[_0x26cd57(0x14a)]=_0x667bbf[_0x26cd57(0x14a)],_0x574d5e[_0x26cd57(0x13b)](_0x26cd57(0x140))['to'](_0x10b17a,_0x26cd57(0x14d),_0x3a8969=>_0x413ffa(_0x27a69d,_0x667bbf[_0x26cd57(0x15c)],_0x3a8969?_0x26cd57(0x16f):_0x26cd57(0x15a))[_0x26cd57(0x131)]),_0x574d5e;});}[_0x2b1acd(0x133)](_0x337b6b){const _0x1790ba=_0x2b1acd;return _0x337b6b[_0x1790ba(0x12a)](_0x35a760=>{const _0x8dd9b8=_0x1790ba,_0x55330b=this[_0x8dd9b8(0x13d)](_0x38d7ee,_0x35a760[_0x8dd9b8(0x15c)]);return _0x55330b[_0x8dd9b8(0x14a)]=_0x35a760[_0x8dd9b8(0x14a)],_0x55330b[_0x8dd9b8(0x140)]=_0x35a760[_0x8dd9b8(0x138)],_0x55330b;});}}
@@ -1,39 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- /**
6
- * @module uploadcare/uploadcareuploadadapter
7
- * @publicApi
8
- */
9
- import { Plugin } from 'ckeditor5/src/core.js';
10
- import { FileRepository } from 'ckeditor5/src/upload.js';
11
- import UploadcareEditing from './uploadcareediting.js';
12
- /**
13
- * A plugin that enables file uploads in CKEditor 5 using the Uploadcare server–side connector.
14
- *
15
- * Check out the {@glink features/images/image-upload/image-upload Image upload overview} guide to learn about
16
- * other ways to upload images into CKEditor 5.
17
- */
18
- export default class UploadcareUploadAdapter extends Plugin {
19
- /**
20
- * @inheritDoc
21
- */
22
- static get requires(): readonly ["ImageUploadEditing", "ImageUploadProgress", typeof FileRepository, typeof UploadcareEditing];
23
- /**
24
- * @inheritDoc
25
- */
26
- static get pluginName(): "UploadcareUploadAdapter";
27
- /**
28
- * @inheritDoc
29
- */
30
- static get isOfficialPlugin(): true;
31
- /**
32
- * @inheritDoc
33
- */
34
- static get isPremiumPlugin(): true;
35
- /**
36
- * @inheritDoc
37
- */
38
- afterInit(): Promise<void>;
39
- }
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- import{Plugin as _0x5b853f}from'ckeditor5/src/core.js';import{FileRepository as _0x1d5bac}from'ckeditor5/src/upload.js';import _0x3cd3b0 from'./uploadcareediting.js';import _0x8e8dd2 from'./utils/uploadutils.js';import{getImageUrls as _0x45a976}from'./utils/editingutils.js';export default class f extends _0x5b853f{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1d5bac,_0x3cd3b0];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x54a1ae=this['editor'];if(!!!_0x54a1ae['config']['get']('uploadcare'))return;_0x54a1ae['plugins']['get'](_0x1d5bac)['createUploadAdapter']=_0x36e634=>new E(_0x36e634,_0x54a1ae),_0x54a1ae['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x613060,{imageElement:_0x4f9fd3,data:_0x4643da})=>{_0x54a1ae['model']['change'](_0x4d5af0=>{_0x4d5af0['setAttribute']('uploadcareImageId',_0x4643da['uploadcareImageId'],_0x4f9fd3);});});}}class E{constructor(_0x30a50,_0x1fe330){this['loader']=_0x30a50,this['editor']=_0x1fe330,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x26f00=this['editor']['config']['get']('uploadcare.pubkey'),_0x5e580c=await this['loader']['file'];return _0x8e8dd2['upload']({'file':_0x5e580c,'publicKey':_0x26f00,'signal':this['controller']['signal'],'onProgress':_0x3ff10f=>{_0x3ff10f&&_0x3ff10f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3ff10f['value']);}})['then'](async _0xa29371=>{const {imageFallbackUrl:_0x220ff0,imageSources:_0x5f1c86}=_0x45a976(_0xa29371['cdnUrl'],_0xa29371['imageInfo']['width']);return{'uploadcareImageId':_0xa29371['uuid'],'default':_0x220ff0,'sources':_0x5f1c86};})['catch'](()=>{const _0x5e29ef=t('Cannot\x20upload\x20file:')+('\x20'+_0x5e580c['name']+'.');return Promise['reject'](_0x5e29ef);});}['abort'](){this['controller']['abort']();}}
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- export {};
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- import{UploadcareSource as _0x783096}from'../uploadcareconfig.js';export function getTranslation(_0xc58b49,_0x2de856,_0x375a1b){const t=_0xc58b49['t'],_0x2a753c=_0xc58b49['t'];switch(_0x2de856){case _0x783096['Local']:return{'text':_0x2a753c('Insert'===_0x375a1b?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2a753c('From\x20computer')};case _0x783096['URL']:return{'text':'Insert'===_0x375a1b?_0x2a753c('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2a753c('Via\x20URL')};case _0x783096['Dropbox']:return{'text':t('Insert'===_0x375a1b?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x783096['Facebook']:return{'text':t('Insert'===_0x375a1b?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x783096['GDrive']:return{'text':t('Insert'===_0x375a1b?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x783096['GPhotos']:return{'text':t('Insert'===_0x375a1b?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x783096['OneDrive']:return{'text':t('Insert'===_0x375a1b?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2de856;}}