@ckeditor/ckeditor5-uploadcare 0.0.1 → 44.2.0-alpha.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 (434) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/LICENSE.md +10 -6
  3. package/README.md +46 -3
  4. package/build/translations/af.js +1 -0
  5. package/build/translations/ar.js +1 -0
  6. package/build/translations/ast.js +1 -0
  7. package/build/translations/az.js +1 -0
  8. package/build/translations/bg.js +1 -0
  9. package/build/translations/bn.js +1 -0
  10. package/build/translations/bs.js +1 -0
  11. package/build/translations/ca.js +1 -0
  12. package/build/translations/cs.js +1 -0
  13. package/build/translations/da.js +1 -0
  14. package/build/translations/de-ch.js +1 -0
  15. package/build/translations/de.js +1 -0
  16. package/build/translations/el.js +1 -0
  17. package/build/translations/en-au.js +1 -0
  18. package/build/translations/en-gb.js +1 -0
  19. package/build/translations/eo.js +1 -0
  20. package/build/translations/es-co.js +1 -0
  21. package/build/translations/es.js +1 -0
  22. package/build/translations/et.js +1 -0
  23. package/build/translations/eu.js +1 -0
  24. package/build/translations/fa.js +1 -0
  25. package/build/translations/fi.js +1 -0
  26. package/build/translations/fr.js +1 -0
  27. package/build/translations/gl.js +1 -0
  28. package/build/translations/gu.js +1 -0
  29. package/build/translations/he.js +1 -0
  30. package/build/translations/hi.js +1 -0
  31. package/build/translations/hr.js +1 -0
  32. package/build/translations/hu.js +1 -0
  33. package/build/translations/hy.js +1 -0
  34. package/build/translations/id.js +1 -0
  35. package/build/translations/it.js +1 -0
  36. package/build/translations/ja.js +1 -0
  37. package/build/translations/jv.js +1 -0
  38. package/build/translations/kk.js +1 -0
  39. package/build/translations/km.js +1 -0
  40. package/build/translations/kn.js +1 -0
  41. package/build/translations/ko.js +1 -0
  42. package/build/translations/ku.js +1 -0
  43. package/build/translations/lt.js +1 -0
  44. package/build/translations/lv.js +1 -0
  45. package/build/translations/ms.js +1 -0
  46. package/build/translations/nb.js +1 -0
  47. package/build/translations/ne.js +1 -0
  48. package/build/translations/nl.js +1 -0
  49. package/build/translations/no.js +1 -0
  50. package/build/translations/oc.js +1 -0
  51. package/build/translations/pl.js +1 -0
  52. package/build/translations/pt-br.js +1 -0
  53. package/build/translations/pt.js +1 -0
  54. package/build/translations/ro.js +1 -0
  55. package/build/translations/ru.js +1 -0
  56. package/build/translations/si.js +1 -0
  57. package/build/translations/sk.js +1 -0
  58. package/build/translations/sl.js +1 -0
  59. package/build/translations/sq.js +1 -0
  60. package/build/translations/sr-latn.js +1 -0
  61. package/build/translations/sr.js +1 -0
  62. package/build/translations/sv.js +1 -0
  63. package/build/translations/th.js +1 -0
  64. package/build/translations/ti.js +1 -0
  65. package/build/translations/tk.js +1 -0
  66. package/build/translations/tr.js +1 -0
  67. package/build/translations/tt.js +1 -0
  68. package/build/translations/ug.js +1 -0
  69. package/build/translations/uk.js +1 -0
  70. package/build/translations/ur.js +1 -0
  71. package/build/translations/uz.js +1 -0
  72. package/build/translations/vi.js +1 -0
  73. package/build/translations/zh-cn.js +1 -0
  74. package/build/translations/zh.js +1 -0
  75. package/build/uploadcare.js +5 -0
  76. package/ckeditor5-metadata.json +47 -0
  77. package/dist/index-content.css +5 -0
  78. package/dist/index-editor.css +265 -0
  79. package/dist/index.css +315 -0
  80. package/dist/index.js +25 -0
  81. package/dist/translations/af.d.ts +8 -0
  82. package/dist/translations/af.js +23 -0
  83. package/dist/translations/af.umd.js +23 -0
  84. package/dist/translations/ar.d.ts +8 -0
  85. package/dist/translations/ar.js +23 -0
  86. package/dist/translations/ar.umd.js +23 -0
  87. package/dist/translations/ast.d.ts +8 -0
  88. package/dist/translations/ast.js +23 -0
  89. package/dist/translations/ast.umd.js +23 -0
  90. package/dist/translations/az.d.ts +8 -0
  91. package/dist/translations/az.js +23 -0
  92. package/dist/translations/az.umd.js +23 -0
  93. package/dist/translations/bg.d.ts +8 -0
  94. package/dist/translations/bg.js +23 -0
  95. package/dist/translations/bg.umd.js +23 -0
  96. package/dist/translations/bn.d.ts +8 -0
  97. package/dist/translations/bn.js +23 -0
  98. package/dist/translations/bn.umd.js +23 -0
  99. package/dist/translations/bs.d.ts +8 -0
  100. package/dist/translations/bs.js +23 -0
  101. package/dist/translations/bs.umd.js +23 -0
  102. package/dist/translations/ca.d.ts +8 -0
  103. package/dist/translations/ca.js +23 -0
  104. package/dist/translations/ca.umd.js +23 -0
  105. package/dist/translations/cs.d.ts +8 -0
  106. package/dist/translations/cs.js +23 -0
  107. package/dist/translations/cs.umd.js +23 -0
  108. package/dist/translations/da.d.ts +8 -0
  109. package/dist/translations/da.js +23 -0
  110. package/dist/translations/da.umd.js +23 -0
  111. package/dist/translations/de-ch.d.ts +8 -0
  112. package/dist/translations/de-ch.js +23 -0
  113. package/dist/translations/de-ch.umd.js +23 -0
  114. package/dist/translations/de.d.ts +8 -0
  115. package/dist/translations/de.js +23 -0
  116. package/dist/translations/de.umd.js +23 -0
  117. package/dist/translations/el.d.ts +8 -0
  118. package/dist/translations/el.js +23 -0
  119. package/dist/translations/el.umd.js +23 -0
  120. package/dist/translations/en-au.d.ts +8 -0
  121. package/dist/translations/en-au.js +23 -0
  122. package/dist/translations/en-au.umd.js +23 -0
  123. package/dist/translations/en-gb.d.ts +8 -0
  124. package/dist/translations/en-gb.js +23 -0
  125. package/dist/translations/en-gb.umd.js +23 -0
  126. package/dist/translations/en.d.ts +8 -0
  127. package/dist/translations/en.js +23 -0
  128. package/dist/translations/en.umd.js +23 -0
  129. package/dist/translations/eo.d.ts +8 -0
  130. package/dist/translations/eo.js +23 -0
  131. package/dist/translations/eo.umd.js +23 -0
  132. package/dist/translations/es-co.d.ts +8 -0
  133. package/dist/translations/es-co.js +23 -0
  134. package/dist/translations/es-co.umd.js +23 -0
  135. package/dist/translations/es.d.ts +8 -0
  136. package/dist/translations/es.js +23 -0
  137. package/dist/translations/es.umd.js +23 -0
  138. package/dist/translations/et.d.ts +8 -0
  139. package/dist/translations/et.js +23 -0
  140. package/dist/translations/et.umd.js +23 -0
  141. package/dist/translations/eu.d.ts +8 -0
  142. package/dist/translations/eu.js +23 -0
  143. package/dist/translations/eu.umd.js +23 -0
  144. package/dist/translations/fa.d.ts +8 -0
  145. package/dist/translations/fa.js +23 -0
  146. package/dist/translations/fa.umd.js +23 -0
  147. package/dist/translations/fi.d.ts +8 -0
  148. package/dist/translations/fi.js +23 -0
  149. package/dist/translations/fi.umd.js +23 -0
  150. package/dist/translations/fr.d.ts +8 -0
  151. package/dist/translations/fr.js +23 -0
  152. package/dist/translations/fr.umd.js +23 -0
  153. package/dist/translations/gl.d.ts +8 -0
  154. package/dist/translations/gl.js +23 -0
  155. package/dist/translations/gl.umd.js +23 -0
  156. package/dist/translations/gu.d.ts +8 -0
  157. package/dist/translations/gu.js +23 -0
  158. package/dist/translations/gu.umd.js +23 -0
  159. package/dist/translations/he.d.ts +8 -0
  160. package/dist/translations/he.js +23 -0
  161. package/dist/translations/he.umd.js +23 -0
  162. package/dist/translations/hi.d.ts +8 -0
  163. package/dist/translations/hi.js +23 -0
  164. package/dist/translations/hi.umd.js +23 -0
  165. package/dist/translations/hr.d.ts +8 -0
  166. package/dist/translations/hr.js +23 -0
  167. package/dist/translations/hr.umd.js +23 -0
  168. package/dist/translations/hu.d.ts +8 -0
  169. package/dist/translations/hu.js +23 -0
  170. package/dist/translations/hu.umd.js +23 -0
  171. package/dist/translations/hy.d.ts +8 -0
  172. package/dist/translations/hy.js +23 -0
  173. package/dist/translations/hy.umd.js +23 -0
  174. package/dist/translations/id.d.ts +8 -0
  175. package/dist/translations/id.js +23 -0
  176. package/dist/translations/id.umd.js +23 -0
  177. package/dist/translations/it.d.ts +8 -0
  178. package/dist/translations/it.js +23 -0
  179. package/dist/translations/it.umd.js +23 -0
  180. package/dist/translations/ja.d.ts +8 -0
  181. package/dist/translations/ja.js +23 -0
  182. package/dist/translations/ja.umd.js +23 -0
  183. package/dist/translations/jv.d.ts +8 -0
  184. package/dist/translations/jv.js +23 -0
  185. package/dist/translations/jv.umd.js +23 -0
  186. package/dist/translations/kk.d.ts +8 -0
  187. package/dist/translations/kk.js +23 -0
  188. package/dist/translations/kk.umd.js +23 -0
  189. package/dist/translations/km.d.ts +8 -0
  190. package/dist/translations/km.js +23 -0
  191. package/dist/translations/km.umd.js +23 -0
  192. package/dist/translations/kn.d.ts +8 -0
  193. package/dist/translations/kn.js +23 -0
  194. package/dist/translations/kn.umd.js +23 -0
  195. package/dist/translations/ko.d.ts +8 -0
  196. package/dist/translations/ko.js +23 -0
  197. package/dist/translations/ko.umd.js +23 -0
  198. package/dist/translations/ku.d.ts +8 -0
  199. package/dist/translations/ku.js +23 -0
  200. package/dist/translations/ku.umd.js +23 -0
  201. package/dist/translations/lt.d.ts +8 -0
  202. package/dist/translations/lt.js +23 -0
  203. package/dist/translations/lt.umd.js +23 -0
  204. package/dist/translations/lv.d.ts +8 -0
  205. package/dist/translations/lv.js +23 -0
  206. package/dist/translations/lv.umd.js +23 -0
  207. package/dist/translations/ms.d.ts +8 -0
  208. package/dist/translations/ms.js +23 -0
  209. package/dist/translations/ms.umd.js +23 -0
  210. package/dist/translations/nb.d.ts +8 -0
  211. package/dist/translations/nb.js +23 -0
  212. package/dist/translations/nb.umd.js +23 -0
  213. package/dist/translations/ne.d.ts +8 -0
  214. package/dist/translations/ne.js +23 -0
  215. package/dist/translations/ne.umd.js +23 -0
  216. package/dist/translations/nl.d.ts +8 -0
  217. package/dist/translations/nl.js +23 -0
  218. package/dist/translations/nl.umd.js +23 -0
  219. package/dist/translations/no.d.ts +8 -0
  220. package/dist/translations/no.js +23 -0
  221. package/dist/translations/no.umd.js +23 -0
  222. package/dist/translations/oc.d.ts +8 -0
  223. package/dist/translations/oc.js +23 -0
  224. package/dist/translations/oc.umd.js +23 -0
  225. package/dist/translations/pl.d.ts +8 -0
  226. package/dist/translations/pl.js +23 -0
  227. package/dist/translations/pl.umd.js +23 -0
  228. package/dist/translations/pt-br.d.ts +8 -0
  229. package/dist/translations/pt-br.js +23 -0
  230. package/dist/translations/pt-br.umd.js +23 -0
  231. package/dist/translations/pt.d.ts +8 -0
  232. package/dist/translations/pt.js +23 -0
  233. package/dist/translations/pt.umd.js +23 -0
  234. package/dist/translations/ro.d.ts +8 -0
  235. package/dist/translations/ro.js +23 -0
  236. package/dist/translations/ro.umd.js +23 -0
  237. package/dist/translations/ru.d.ts +8 -0
  238. package/dist/translations/ru.js +23 -0
  239. package/dist/translations/ru.umd.js +23 -0
  240. package/dist/translations/si.d.ts +8 -0
  241. package/dist/translations/si.js +23 -0
  242. package/dist/translations/si.umd.js +23 -0
  243. package/dist/translations/sk.d.ts +8 -0
  244. package/dist/translations/sk.js +23 -0
  245. package/dist/translations/sk.umd.js +23 -0
  246. package/dist/translations/sl.d.ts +8 -0
  247. package/dist/translations/sl.js +23 -0
  248. package/dist/translations/sl.umd.js +23 -0
  249. package/dist/translations/sq.d.ts +8 -0
  250. package/dist/translations/sq.js +23 -0
  251. package/dist/translations/sq.umd.js +23 -0
  252. package/dist/translations/sr-latn.d.ts +8 -0
  253. package/dist/translations/sr-latn.js +23 -0
  254. package/dist/translations/sr-latn.umd.js +23 -0
  255. package/dist/translations/sr.d.ts +8 -0
  256. package/dist/translations/sr.js +23 -0
  257. package/dist/translations/sr.umd.js +23 -0
  258. package/dist/translations/sv.d.ts +8 -0
  259. package/dist/translations/sv.js +23 -0
  260. package/dist/translations/sv.umd.js +23 -0
  261. package/dist/translations/th.d.ts +8 -0
  262. package/dist/translations/th.js +23 -0
  263. package/dist/translations/th.umd.js +23 -0
  264. package/dist/translations/ti.d.ts +8 -0
  265. package/dist/translations/ti.js +23 -0
  266. package/dist/translations/ti.umd.js +23 -0
  267. package/dist/translations/tk.d.ts +8 -0
  268. package/dist/translations/tk.js +23 -0
  269. package/dist/translations/tk.umd.js +23 -0
  270. package/dist/translations/tr.d.ts +8 -0
  271. package/dist/translations/tr.js +23 -0
  272. package/dist/translations/tr.umd.js +23 -0
  273. package/dist/translations/tt.d.ts +8 -0
  274. package/dist/translations/tt.js +23 -0
  275. package/dist/translations/tt.umd.js +23 -0
  276. package/dist/translations/ug.d.ts +8 -0
  277. package/dist/translations/ug.js +23 -0
  278. package/dist/translations/ug.umd.js +23 -0
  279. package/dist/translations/uk.d.ts +8 -0
  280. package/dist/translations/uk.js +23 -0
  281. package/dist/translations/uk.umd.js +23 -0
  282. package/dist/translations/ur.d.ts +8 -0
  283. package/dist/translations/ur.js +23 -0
  284. package/dist/translations/ur.umd.js +23 -0
  285. package/dist/translations/uz.d.ts +8 -0
  286. package/dist/translations/uz.js +23 -0
  287. package/dist/translations/uz.umd.js +23 -0
  288. package/dist/translations/vi.d.ts +8 -0
  289. package/dist/translations/vi.js +23 -0
  290. package/dist/translations/vi.umd.js +23 -0
  291. package/dist/translations/zh-cn.d.ts +8 -0
  292. package/dist/translations/zh-cn.js +23 -0
  293. package/dist/translations/zh-cn.umd.js +23 -0
  294. package/dist/translations/zh.d.ts +8 -0
  295. package/dist/translations/zh.js +23 -0
  296. package/dist/translations/zh.umd.js +23 -0
  297. package/lang/contexts.json +27 -0
  298. package/lang/translations/af.po +112 -0
  299. package/lang/translations/ar.po +112 -0
  300. package/lang/translations/ast.po +112 -0
  301. package/lang/translations/az.po +112 -0
  302. package/lang/translations/bg.po +112 -0
  303. package/lang/translations/bn.po +112 -0
  304. package/lang/translations/bs.po +112 -0
  305. package/lang/translations/ca.po +112 -0
  306. package/lang/translations/cs.po +112 -0
  307. package/lang/translations/da.po +112 -0
  308. package/lang/translations/de-ch.po +112 -0
  309. package/lang/translations/de.po +112 -0
  310. package/lang/translations/el.po +112 -0
  311. package/lang/translations/en-au.po +112 -0
  312. package/lang/translations/en-gb.po +112 -0
  313. package/lang/translations/en.po +112 -0
  314. package/lang/translations/eo.po +112 -0
  315. package/lang/translations/es-co.po +112 -0
  316. package/lang/translations/es.po +112 -0
  317. package/lang/translations/et.po +112 -0
  318. package/lang/translations/eu.po +112 -0
  319. package/lang/translations/fa.po +112 -0
  320. package/lang/translations/fi.po +112 -0
  321. package/lang/translations/fr.po +112 -0
  322. package/lang/translations/gl.po +112 -0
  323. package/lang/translations/gu.po +112 -0
  324. package/lang/translations/he.po +112 -0
  325. package/lang/translations/hi.po +112 -0
  326. package/lang/translations/hr.po +112 -0
  327. package/lang/translations/hu.po +112 -0
  328. package/lang/translations/hy.po +112 -0
  329. package/lang/translations/id.po +112 -0
  330. package/lang/translations/it.po +112 -0
  331. package/lang/translations/ja.po +112 -0
  332. package/lang/translations/jv.po +112 -0
  333. package/lang/translations/kk.po +112 -0
  334. package/lang/translations/km.po +112 -0
  335. package/lang/translations/kn.po +112 -0
  336. package/lang/translations/ko.po +112 -0
  337. package/lang/translations/ku.po +112 -0
  338. package/lang/translations/lt.po +112 -0
  339. package/lang/translations/lv.po +112 -0
  340. package/lang/translations/ms.po +112 -0
  341. package/lang/translations/nb.po +112 -0
  342. package/lang/translations/ne.po +112 -0
  343. package/lang/translations/nl.po +112 -0
  344. package/lang/translations/no.po +112 -0
  345. package/lang/translations/oc.po +112 -0
  346. package/lang/translations/pl.po +112 -0
  347. package/lang/translations/pt-br.po +112 -0
  348. package/lang/translations/pt.po +112 -0
  349. package/lang/translations/ro.po +112 -0
  350. package/lang/translations/ru.po +112 -0
  351. package/lang/translations/si.po +112 -0
  352. package/lang/translations/sk.po +112 -0
  353. package/lang/translations/sl.po +112 -0
  354. package/lang/translations/sq.po +112 -0
  355. package/lang/translations/sr-latn.po +112 -0
  356. package/lang/translations/sr.po +112 -0
  357. package/lang/translations/sv.po +112 -0
  358. package/lang/translations/th.po +112 -0
  359. package/lang/translations/ti.po +112 -0
  360. package/lang/translations/tk.po +112 -0
  361. package/lang/translations/tr.po +112 -0
  362. package/lang/translations/tt.po +112 -0
  363. package/lang/translations/ug.po +112 -0
  364. package/lang/translations/uk.po +112 -0
  365. package/lang/translations/ur.po +112 -0
  366. package/lang/translations/uz.po +112 -0
  367. package/lang/translations/vi.po +112 -0
  368. package/lang/translations/zh-cn.po +112 -0
  369. package/lang/translations/zh.po +112 -0
  370. package/package.json +73 -7
  371. package/src/augmentation.d.ts +30 -0
  372. package/src/augmentation.js +23 -0
  373. package/src/index.d.ts +16 -0
  374. package/src/index.js +23 -0
  375. package/src/ui/uploadcarecontroller.d.ts +30 -0
  376. package/src/ui/uploadcarecontroller.js +24 -0
  377. package/src/ui/uploadcareformview.d.ts +23 -0
  378. package/src/ui/uploadcareformview.js +23 -0
  379. package/src/uploadcare.d.ts +48 -0
  380. package/src/uploadcare.js +23 -0
  381. package/src/uploadcarecommand.d.ts +38 -0
  382. package/src/uploadcarecommand.js +23 -0
  383. package/src/uploadcareconfig.d.ts +227 -0
  384. package/src/uploadcareconfig.js +23 -0
  385. package/src/uploadcareediting.d.ts +49 -0
  386. package/src/uploadcareediting.js +23 -0
  387. package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +78 -0
  388. package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +24 -0
  389. package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +25 -0
  390. package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +23 -0
  391. package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +27 -0
  392. package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +23 -0
  393. package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +24 -0
  394. package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +23 -0
  395. package/src/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +32 -0
  396. package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +23 -0
  397. package/src/uploadcareimageedit/uploadcareimageeditcommand.d.ts +49 -0
  398. package/src/uploadcareimageedit/uploadcareimageeditcommand.js +23 -0
  399. package/src/uploadcareimageedit/uploadcareimageeditediting.d.ts +38 -0
  400. package/src/uploadcareimageedit/uploadcareimageeditediting.js +23 -0
  401. package/src/uploadcareimageedit/uploadcareimageeditui.d.ts +48 -0
  402. package/src/uploadcareimageedit/uploadcareimageeditui.js +23 -0
  403. package/src/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +23 -0
  404. package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +23 -0
  405. package/src/uploadcareimageedit.d.ts +32 -0
  406. package/src/uploadcareimageedit.js +23 -0
  407. package/src/uploadcareui.d.ts +41 -0
  408. package/src/uploadcareui.js +23 -0
  409. package/src/uploadcareuploadadapter.d.ts +39 -0
  410. package/src/uploadcareuploadadapter.js +23 -0
  411. package/src/utils/common-translations.d.ts +5 -0
  412. package/src/utils/common-translations.js +23 -0
  413. package/src/utils/dialogfocusmanagerview.d.ts +29 -0
  414. package/src/utils/dialogfocusmanagerview.js +23 -0
  415. package/src/utils/editingutils.d.ts +5 -0
  416. package/src/utils/editingutils.js +23 -0
  417. package/src/utils/isancestor.d.ts +8 -0
  418. package/src/utils/isancestor.js +23 -0
  419. package/src/utils/uploadutils.d.ts +5 -0
  420. package/src/utils/uploadutils.js +23 -0
  421. package/theme/icons/dropbox.svg +11 -0
  422. package/theme/icons/error.svg +1 -0
  423. package/theme/icons/facebook.svg +11 -0
  424. package/theme/icons/google-drive.svg +11 -0
  425. package/theme/icons/google-photos.svg +11 -0
  426. package/theme/icons/image-upload.svg +11 -0
  427. package/theme/icons/instagram.svg +11 -0
  428. package/theme/icons/link.svg +11 -0
  429. package/theme/icons/local.svg +11 -0
  430. package/theme/icons/onedrive.svg +11 -0
  431. package/theme/icons/uploadcare-image-edit.svg +11 -0
  432. package/theme/uploadcare-form.css +198 -0
  433. package/theme/uploadcare-theme.css +20 -0
  434. package/theme/uploadcareimageedit.css +64 -0
@@ -0,0 +1,23 @@
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 _0x5af99a,View as _0x3f4a08}from'ckeditor5/src/ui.js';export default class ta extends _0x3f4a08{constructor(_0x20c124){super(_0x20c124);const t=_0x20c124['t'],_0xb4f9ab=this['bindTemplate'],_0x491836=new _0x5af99a();_0x491836['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':[_0x491836,{'text':_0xb4f9ab['to']('imageUploadProgress',_0x113a9e=>t('Loading\x20image...')+'\x20('+(_0x113a9e||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'}]}]}]});}}
@@ -0,0 +1,32 @@
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
+ }
@@ -0,0 +1,23 @@
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 _0x48d700=_0x2b64;function _0x243a(){const _0x37a041=['observe','_focusableView','addedNodes','querySelector','status','createCollection','1415bgSvCY','12077248RiGmCK','disconnect','uc-cloud-image-editor','ck-reset_all-excluded','3089527gtuhLw','element','4638244RaOeth','detail','toLowerCase','_errorView','ck-uploadcare-form','addEventListener','cancel','length','change:status','_addErrorViewListeners','3998335IzRbli','target','getFocusableElement','addMany','2114166ROEDDW','error','retry','_items','once','render','add','apply','18hkTYpW','_editingView','17808093zXTfoI','set','clear','nodeName','_setView','setTemplate','focus','div','_addUploadcareImageEditorListeners','_waitForImageEditorComponent','1970GsGfZh','filter','ready','fire','cdnUrl','_loadingView','uploading'];_0x243a=function(){return _0x37a041;};return _0x243a();}(function(_0x192e43,_0x145dc7){const _0x3aeb05=_0x2b64,_0x40b942=_0x192e43();while(!![]){try{const _0xdb737a=-parseInt(_0x3aeb05(0xbc))/0x1*(-parseInt(_0x3aeb05(0xe5))/0x2)+-parseInt(_0x3aeb05(0xd1))/0x3+-parseInt(_0x3aeb05(0xc3))/0x4+-parseInt(_0x3aeb05(0xcd))/0x5+-parseInt(_0x3aeb05(0xd9))/0x6*(parseInt(_0x3aeb05(0xc1))/0x7)+parseInt(_0x3aeb05(0xbd))/0x8+parseInt(_0x3aeb05(0xdb))/0x9;if(_0xdb737a===_0x145dc7)break;else _0x40b942['push'](_0x40b942['shift']());}catch(_0x1468c2){_0x40b942['push'](_0x40b942['shift']());}}}(_0x243a,0xda47b));import{View as _0x4e23e7}from'ckeditor5/src/ui.js';function _0x2b64(_0x17ed02,_0x16b44a){const _0x243a1d=_0x243a();return _0x2b64=function(_0x2b64e8,_0x472124){_0x2b64e8=_0x2b64e8-0xb9;let _0xff3a1=_0x243a1d[_0x2b64e8];return _0xff3a1;},_0x2b64(_0x17ed02,_0x16b44a);}import _0x5d671d from'./uploadcareimageeditformloadingview.js';import _0x45d2d8 from'./uploadcareimageeditformerrorview.js';import _0x199322 from'./uploadcareimageeditformeditingview.js';import _0x582575 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class ii extends _0x582575{constructor(_0x538a9f,_0x2c7b29,_0x58294e){const _0x113a35=_0x2b64;super(_0x538a9f),this[_0x113a35(0xd4)]=this[_0x113a35(0xbb)](),this[_0x113a35(0xea)]=new _0x5d671d(_0x538a9f),this[_0x113a35(0xc6)]=new _0x45d2d8(_0x538a9f),this[_0x113a35(0xda)]=new _0x199322(_0x538a9f,_0x58294e),this[_0x113a35(0xed)]=new _0x4e23e7(_0x538a9f),this[_0x113a35(0xed)][_0x113a35(0xe0)](this[_0x113a35(0xcf)]()),this[_0x113a35(0xdc)](_0x113a35(0xba),_0x2c7b29),this[_0x113a35(0xe0)]({'tag':_0x113a35(0xe2),'attributes':{'class':['ck',_0x113a35(0xc0),_0x113a35(0xc7)],'tabindex':'-1'},'children':this[_0x113a35(0xd4)]}),this[_0x113a35(0xdf)](),this[_0x113a35(0xd5)](_0x113a35(0xd6),()=>{const _0x5f0979=_0x113a35;this[_0x5f0979(0xe4)](this[_0x5f0979(0xc2)],_0x59b6c7=>{const _0x231717=_0x5f0979;this[_0x231717(0xe3)](_0x59b6c7);});}),this['on'](_0x113a35(0xcb),()=>{const _0x2d0708=_0x113a35;this[_0x2d0708(0xdf)]();}),this[_0x113a35(0xcc)]();}[_0x48d700(0xe1)](){const _0x30172a=_0x48d700;this[_0x30172a(0xc2)][_0x30172a(0xe1)]();}[_0x48d700(0xdf)](){const _0x12533d=_0x48d700;switch(this[_0x12533d(0xd4)][_0x12533d(0xdd)](),this[_0x12533d(0xba)]){case _0x12533d(0xeb):this[_0x12533d(0xd4)][_0x12533d(0xd7)](this[_0x12533d(0xea)]);break;case _0x12533d(0xd2):this[_0x12533d(0xd4)][_0x12533d(0xd7)](this[_0x12533d(0xc6)]);break;case _0x12533d(0xe7):this[_0x12533d(0xd4)][_0x12533d(0xd0)]([this[_0x12533d(0xda)],this[_0x12533d(0xed)]]);}}[_0x48d700(0xe4)](_0x66e99a,_0x3d4716){const _0x202303=_0x48d700,_0x2479ad=_0x202303(0xbf),_0x5d902a=_0x66e99a[_0x202303(0xb9)](_0x2479ad);if(_0x5d902a)return _0x3d4716(_0x5d902a);const _0x566d80=new MutationObserver(_0x24200e=>{const _0x2698cb=_0x202303,_0x46124e=_0x24200e[_0x2698cb(0xe6)](_0x421fdc=>_0x421fdc[_0x2698cb(0xce)]===_0x66e99a&&_0x421fdc[_0x2698cb(0xee)][_0x2698cb(0xca)]>0x0&&_0x421fdc[_0x2698cb(0xee)][0x0][_0x2698cb(0xde)][_0x2698cb(0xc5)]()===_0x2479ad);_0x46124e[_0x2698cb(0xca)]&&(_0x566d80[_0x2698cb(0xbe)](),_0x3d4716(_0x46124e[0x0][_0x2698cb(0xee)][0x0]));});_0x566d80[_0x202303(0xec)](_0x66e99a,{'childList':!0x0,'subtree':!0x0});}[_0x48d700(0xe3)](_0x2c7653){const _0x13cb5e=_0x48d700;_0x2c7653[_0x13cb5e(0xc8)](_0x13cb5e(0xd8),_0x3374dd=>{const _0x1b8556=_0x13cb5e;this[_0x1b8556(0xe8)](_0x1b8556(0xd8),{'imageSrc':_0x3374dd[_0x1b8556(0xc4)][_0x1b8556(0xe9)]});}),_0x2c7653[_0x13cb5e(0xc8)](_0x13cb5e(0xc9),()=>{const _0x3051b1=_0x13cb5e;this[_0x3051b1(0xe8)](_0x3051b1(0xc9));});}[_0x48d700(0xcc)](){const _0x203560=_0x48d700;this[_0x203560(0xc6)]['on'](_0x203560(0xd3),()=>{const _0x31625e=_0x203560;this[_0x31625e(0xe8)](_0x31625e(0xd3));});}}
@@ -0,0 +1,49 @@
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
+ }
@@ -0,0 +1,23 @@
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 _0x44abed=_0x3c3c;function _0x3c3c(_0x3ac6cf,_0x25ff0e){const _0x2dd283=_0x2dd2();return _0x3c3c=function(_0x3c3c17,_0x5da6af){_0x3c3c17=_0x3c3c17-0x9a;let _0x37d678=_0x2dd283[_0x3c3c17];return _0x37d678;},_0x3c3c(_0x3ac6cf,_0x25ff0e);}(function(_0x41de3d,_0x53f6c9){const _0x115eee=_0x3c3c,_0x3eb164=_0x41de3d();while(!![]){try{const _0x59ae41=-parseInt(_0x115eee(0xa1))/0x1*(-parseInt(_0x115eee(0xa5))/0x2)+-parseInt(_0x115eee(0x9a))/0x3*(parseInt(_0x115eee(0xa3))/0x4)+-parseInt(_0x115eee(0xa0))/0x5*(-parseInt(_0x115eee(0xab))/0x6)+parseInt(_0x115eee(0x9e))/0x7+parseInt(_0x115eee(0xa2))/0x8+parseInt(_0x115eee(0xae))/0x9*(-parseInt(_0x115eee(0xb9))/0xa)+-parseInt(_0x115eee(0xaf))/0xb;if(_0x59ae41===_0x53f6c9)break;else _0x3eb164['push'](_0x3eb164['shift']());}catch(_0x5c2ac1){_0x3eb164['push'](_0x3eb164['shift']());}}}(_0x2dd2,0x90939));import{Command as _0x2dc691}from'ckeditor5/src/core.js';function _0x2dd2(){const _0x5faaae=['element','model','imageEditController','3394874wUsnTd','isActive','245INCZYw','2EbTUhG','3166440NhUhtZ','4107388xCBleu','set','616124fbQaSn','document','get','isEnabled','plugins','requires','60972iXSLcS','editor','refresh','81ZYKVSW','1854413hrvyQw','imageInline','imageBlock','execute','getSelectedElement','_isEditable','bind','selection','uploadcare.allowExternalImagesEditing','unbind','230260bsBAfa','config','3jXrBBA'];_0x2dd2=function(){return _0x5faaae;};return _0x2dd2();}import{Dialog as _0x40f968}from'ckeditor5/src/ui.js';import _0x555dd2 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0xf5aae7}from'../utils/editingutils.js';export default class J extends _0x2dc691{static get[_0x44abed(0xaa)](){return[_0x40f968];}constructor(_0x15c6b9){const _0x52b082=_0x44abed;super(_0x15c6b9),this[_0x52b082(0x9d)]=void 0x0,this[_0x52b082(0xb4)]=_0xf5aae7(_0x15c6b9[_0x52b082(0xba)][_0x52b082(0xa7)](_0x52b082(0xb7))||[]),this[_0x52b082(0xa4)]({'isActive':!0x1});}[_0x44abed(0xad)](){const _0x414a5a=_0x44abed,_0x4429c8=this[_0x414a5a(0xac)][_0x414a5a(0x9c)][_0x414a5a(0xa6)][_0x414a5a(0xb6)][_0x414a5a(0xb3)]();this[_0x414a5a(0xa8)]=this[_0x414a5a(0xb4)](_0x4429c8);}[_0x44abed(0xb2)](){const _0x1da893=_0x44abed;this[_0x1da893(0x9d)]&&(this[_0x1da893(0xb8)](_0x1da893(0x9f)),this[_0x1da893(0x9d)]=void 0x0);const _0x5f1e54=this[_0x1da893(0xac)][_0x1da893(0x9c)][_0x1da893(0xa6)][_0x1da893(0xb6)][_0x1da893(0xb3)]();_0x5f1e54&&(_0x5f1e54['is'](_0x1da893(0x9b),_0x1da893(0xb1))||_0x5f1e54['is'](_0x1da893(0x9b),_0x1da893(0xb0)))&&(this[_0x1da893(0x9d)]=new _0x555dd2(this[_0x1da893(0xac)],this[_0x1da893(0xac)][_0x1da893(0xa9)][_0x1da893(0xa7)](_0x40f968),_0x5f1e54),this[_0x1da893(0xb5)](_0x1da893(0x9f))['to'](this[_0x1da893(0x9d)],_0x1da893(0x9f)));}}
@@ -0,0 +1,38 @@
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
+ }
@@ -0,0 +1,23 @@
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 _0x50b1a3=_0x4609;(function(_0xb68097,_0x9799ea){const _0x1f1d7b=_0x4609,_0xa7e86a=_0xb68097();while(!![]){try{const _0x14576c=parseInt(_0x1f1d7b(0x1bd))/0x1*(parseInt(_0x1f1d7b(0x1bf))/0x2)+-parseInt(_0x1f1d7b(0x1c9))/0x3+parseInt(_0x1f1d7b(0x1c5))/0x4+-parseInt(_0x1f1d7b(0x1c3))/0x5*(parseInt(_0x1f1d7b(0x1c8))/0x6)+-parseInt(_0x1f1d7b(0x1ba))/0x7+-parseInt(_0x1f1d7b(0x1be))/0x8*(-parseInt(_0x1f1d7b(0x1bb))/0x9)+parseInt(_0x1f1d7b(0x1cc))/0xa*(-parseInt(_0x1f1d7b(0x1cf))/0xb);if(_0x14576c===_0x9799ea)break;else _0xa7e86a['push'](_0xa7e86a['shift']());}catch(_0xbfcc85){_0xa7e86a['push'](_0xa7e86a['shift']());}}}(_0x2b5a,0x1a288));import{Plugin as _0x1aca08}from'ckeditor5/src/core.js';import{Notification as _0x500a50}from'ckeditor5/src/ui.js';import _0x2f63d8 from'./uploadcareimageeditcommand.js';import _0x11535e from'./uploadcareimagereplacecommand.js';function _0x4609(_0x56823f,_0x5d0938){const _0x2b5a6e=_0x2b5a();return _0x4609=function(_0x460997,_0x16e089){_0x460997=_0x460997-0x1b9;let _0x5c51eb=_0x2b5a6e[_0x460997];return _0x5c51eb;},_0x4609(_0x56823f,_0x5d0938);}import _0x55f97e from'../uploadcareediting.js';export default class m extends _0x1aca08{static get[_0x50b1a3(0x1c7)](){const _0x12ba83=_0x50b1a3;return _0x12ba83(0x1ca);}static get[_0x50b1a3(0x1c6)](){const _0x16a115=_0x50b1a3;return[_0x55f97e,_0x500a50,_0x16a115(0x1c1),_0x16a115(0x1bc)];}static get[_0x50b1a3(0x1c2)](){return!0x0;}static get[_0x50b1a3(0x1ce)](){return!0x0;}[_0x50b1a3(0x1cd)](){const _0x37ae02=_0x50b1a3,{editor:_0x3bd5ce}=this;_0x3bd5ce[_0x37ae02(0x1b9)][_0x37ae02(0x1c4)](_0x37ae02(0x1cb),new _0x2f63d8(_0x3bd5ce)),_0x3bd5ce[_0x37ae02(0x1b9)][_0x37ae02(0x1c4)](_0x37ae02(0x1c0),new _0x11535e(_0x3bd5ce));}}function _0x2b5a(){const _0x25b104=['9366QhbNas','202419oQIdBZ','UploadcareImageEditEditing','uploadcareImageEdit','10590YxjJOr','init','isPremiumPlugin','143TqxfPC','commands','142863GEDjyj','1305999fNhByB','ImageEditing','1fJWvhy','8ICuIIJ','275140mXyvvY','uploadcareImageReplace','ImageUtils','isOfficialPlugin','465jXVCpd','add','285140fUKOCg','requires','pluginName'];_0x2b5a=function(){return _0x25b104;};return _0x2b5a();}
@@ -0,0 +1,48 @@
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 {};
@@ -0,0 +1,23 @@
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 _0x50a7c9}from'ckeditor5/src/core.js';import{ButtonView as _0x5ebedb}from'ckeditor5/src/ui.js';import{createElement as _0x206c1e}from'ckeditor5/src/utils.js';import _0xfc163 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 _0x50a7c9{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 _0x55c3a2=this['editor'];_0x55c3a2['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2b0034=>{const _0x28b9d3=_0x55c3a2['commands']['get']('uploadcareImageEdit'),_0x3f70aa=new _0x5ebedb(_0x2b0034),t=_0x2b0034['t'];return _0x3f70aa['set']({'icon':_0xfc163,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3f70aa['bind']('isEnabled')['to'](_0x28b9d3),_0x3f70aa['bind']('isOn')['to'](_0x28b9d3,'isActive'),this['listenTo'](_0x3f70aa,'execute',()=>{_0x55c3a2['execute']('uploadcareImageEdit'),_0x55c3a2['editing']['view']['focus']();}),_0x3f70aa;}),this['_initConfig']();}['_initConfig'](){const _0x346ccc=_0x206c1e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x346ccc),this['listenTo'](this['editor'],'destroy',()=>{_0x346ccc['remove']();});}}
@@ -0,0 +1,23 @@
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
+ }
@@ -0,0 +1,23 @@
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 _0x2520(_0x49eb23,_0xab7324){const _0x11a948=_0x11a9();return _0x2520=function(_0x252065,_0x4b0677){_0x252065=_0x252065-0xc9;let _0x5a5c0d=_0x11a948[_0x252065];return _0x5a5c0d;},_0x2520(_0x49eb23,_0xab7324);}function _0x11a9(){const _0x152b39=['2257062rEAZhX','imageInline','srcset','refresh','1569530cKDyTC','36rbldtN','selection','removeAttribute','1429856SpNwQI','imageBlock','editor','2WXjPii','model','setAttributes','12tEMBDw','element','sizes','getSelectedElement','396745YnWJGw','3232806AlHFmz','change','6184171iTWFVl','execute','3921910JFpuqc','document','isEnabled'];_0x11a9=function(){return _0x152b39;};return _0x11a9();}const _0x2cd8ca=_0x2520;(function(_0x3aa5e3,_0x31690c){const _0x8d5c80=_0x2520,_0x4ea14b=_0x3aa5e3();while(!![]){try{const _0x410106=parseInt(_0x8d5c80(0xcc))/0x1+-parseInt(_0x8d5c80(0xd3))/0x2*(-parseInt(_0x8d5c80(0xe2))/0x3)+-parseInt(_0x8d5c80(0xd6))/0x4*(-parseInt(_0x8d5c80(0xda))/0x5)+-parseInt(_0x8d5c80(0xdb))/0x6+-parseInt(_0x8d5c80(0xdd))/0x7+parseInt(_0x8d5c80(0xd0))/0x8*(-parseInt(_0x8d5c80(0xcd))/0x9)+parseInt(_0x8d5c80(0xdf))/0xa;if(_0x410106===_0x31690c)break;else _0x4ea14b['push'](_0x4ea14b['shift']());}catch(_0x8bbd95){_0x4ea14b['push'](_0x4ea14b['shift']());}}}(_0x11a9,0xc6f5c));import{Command as _0x4ed129}from'ckeditor5/src/core.js';export default class O extends _0x4ed129{[_0x2cd8ca(0xcb)](){const _0x376d34=_0x2cd8ca,_0x40dba8=this[_0x376d34(0xd2)][_0x376d34(0xd4)][_0x376d34(0xe0)][_0x376d34(0xce)][_0x376d34(0xd9)]();this[_0x376d34(0xe1)]=Boolean(_0x40dba8&&(_0x40dba8['is'](_0x376d34(0xd7),_0x376d34(0xd1))||_0x40dba8['is'](_0x376d34(0xd7),_0x376d34(0xc9))));}[_0x2cd8ca(0xde)](_0x375da9){const _0x5f2e56=_0x2cd8ca,_0x5a4dc1=this[_0x5f2e56(0xd2)][_0x5f2e56(0xd4)][_0x5f2e56(0xe0)][_0x5f2e56(0xce)][_0x5f2e56(0xd9)]();this[_0x5f2e56(0xd2)][_0x5f2e56(0xd4)][_0x5f2e56(0xdc)](_0x594941=>{const _0x32b270=_0x5f2e56;_0x594941[_0x32b270(0xd5)](_0x375da9,_0x5a4dc1),_0x594941[_0x32b270(0xcf)](_0x32b270(0xca),_0x5a4dc1),_0x594941[_0x32b270(0xcf)](_0x32b270(0xd8),_0x5a4dc1);});}}
@@ -0,0 +1,32 @@
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
+ }
@@ -0,0 +1,23 @@
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 _0x409b(_0x5f2b42,_0x3e0306){var _0x1fdf97=_0x1fdf();return _0x409b=function(_0x409be5,_0x1c86c9){_0x409be5=_0x409be5-0xe7;var _0x45f1f1=_0x1fdf97[_0x409be5];return _0x45f1f1;},_0x409b(_0x5f2b42,_0x3e0306);}var _0x53d74=_0x409b;(function(_0x4c659f,_0x2e8abd){var _0x8fe823=_0x409b,_0x548fac=_0x4c659f();while(!![]){try{var _0x57c794=parseInt(_0x8fe823(0xe9))/0x1*(-parseInt(_0x8fe823(0xeb))/0x2)+parseInt(_0x8fe823(0xf1))/0x3+parseInt(_0x8fe823(0xee))/0x4+parseInt(_0x8fe823(0xe7))/0x5+parseInt(_0x8fe823(0xf3))/0x6+-parseInt(_0x8fe823(0xf2))/0x7+-parseInt(_0x8fe823(0xed))/0x8;if(_0x57c794===_0x2e8abd)break;else _0x548fac['push'](_0x548fac['shift']());}catch(_0x1aef53){_0x548fac['push'](_0x548fac['shift']());}}}(_0x1fdf,0x6c4d9));import{Plugin as _0x36720c}from'ckeditor5/src/core.js';function _0x1fdf(){var _0x873555=['5329499WCkVcG','3404886saMDKu','3535215XtwseJ','isPremiumPlugin','210817wMqHcR','UploadcareImageEdit','6TRdPGv','pluginName','3059016YvgaeH','2063100lXONRo','requires','isOfficialPlugin','1288485qhVgWv'];_0x1fdf=function(){return _0x873555;};return _0x1fdf();}import _0x1b50fb from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0xcde87c from'./uploadcareimageedit/uploadcareimageeditui.js';export default class j extends _0x36720c{static get[_0x53d74(0xec)](){var _0x4517f2=_0x53d74;return _0x4517f2(0xea);}static get[_0x53d74(0xef)](){return[_0x1b50fb,_0xcde87c];}static get[_0x53d74(0xf0)](){return!0x0;}static get[_0x53d74(0xe8)](){return!0x0;}}
@@ -0,0 +1,41 @@
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
+ }
@@ -0,0 +1,23 @@
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 _0x39664d=_0x2197;(function(_0x1e9037,_0x332f6f){const _0x374bbc=_0x2197,_0x47855d=_0x1e9037();while(!![]){try{const _0x15a01d=-parseInt(_0x374bbc(0x1c8))/0x1+-parseInt(_0x374bbc(0x1bc))/0x2*(parseInt(_0x374bbc(0x1c4))/0x3)+-parseInt(_0x374bbc(0x1e4))/0x4*(parseInt(_0x374bbc(0x1ad))/0x5)+parseInt(_0x374bbc(0x1c9))/0x6+parseInt(_0x374bbc(0x1ef))/0x7+-parseInt(_0x374bbc(0x1d8))/0x8+parseInt(_0x374bbc(0x1a6))/0x9;if(_0x15a01d===_0x332f6f)break;else _0x47855d['push'](_0x47855d['shift']());}catch(_0x3a2ce9){_0x47855d['push'](_0x47855d['shift']());}}}(_0xb283,0xe711d));import{Plugin as _0x42797d,icons as _0x2da660}from'ckeditor5/src/core.js';import{ButtonView as _0x4ee46d,MenuBarMenuListItemButtonView as _0xe13a55}from'ckeditor5/src/ui.js';import _0x3a46f0 from'../theme/icons/dropbox.svg';import _0x294633 from'../theme/icons/facebook.svg';function _0xb283(){const _0x5629a7=['_getIntegrationKey','UploadcareUI','init','_normalizeConfigSourceList','Insert','GDrive','licenseKey','usageLimit','7595720TlwIDj','has','entries','expired','forEach','URL','locale','GPhotos','_createDropdownButtons','editor','_createMenuBarButtons','icon','42916kzItzB','uploadcareLicenseKeyNotAllowed','uploadcareLicenseKeyEvaluationLimit','map','Instagram','config','isEnabled','type','featureNotAllowed','commands','uploadcareLicenseKeyValid','5348777hgiRkT','label','registerIntegration','trialLimit','invalid','domainLimit','withText','shortText','Dropbox','6731793IPDBud','destroy','execute','uploadcare.uploader.sourceList','_createButton','pluginName','Uploadcare','45RrIWQs','uploadcareLicenseKeyExpired','text','Local','assetManager','bind','tooltip','plugins','_showLicenseError','imageUpload','uploadcareLicenseKeyTrialLimit','uploadcare','isImageSelected','uploadcareLicenseKeyUsageLimit','uploadcareLicenseKeyDomainLimit','2RmHsEc','afterInit','get','url','_createToolbarButton','_licenseKeyCheckInterval','upload','Replace','1152789XocAYU','push','uploadcareLicenseKeyInvalid','isPremiumPlugin','278585opAwBl','6859482fJvyGe','reduce','isOfficialPlugin','OneDrive','ImageInsertUI','evaluationLimit','Facebook'];_0xb283=function(){return _0x5629a7;};return _0xb283();}import _0x32d52e from'../theme/icons/google-drive.svg';import _0x17ac1c from'../theme/icons/google-photos.svg';import _0x36ffa5 from'../theme/icons/instagram.svg';function _0x2197(_0x1a641c,_0x428104){const _0xb2830f=_0xb283();return _0x2197=function(_0x219729,_0x3acb43){_0x219729=_0x219729-0x1a3;let _0x3ab580=_0xb2830f[_0x219729];return _0x3ab580;},_0x2197(_0x1a641c,_0x428104);}import _0x4e51d6 from'../theme/icons/link.svg';import _0x286034 from'../theme/icons/onedrive.svg';import{UploadcareSource as _0x34ee35}from'./uploadcareconfig.js';import{getTranslation as _0x2d12c1}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 _0x42797d{static get[_0x39664d(0x1ab)](){const _0x37d0c2=_0x39664d;return _0x37d0c2(0x1d1);}static get[_0x39664d(0x1cb)](){return!0x0;}static get[_0x39664d(0x1c7)](){return!0x0;}[_0x39664d(0x1d2)](){const _0x238380=_0x39664d;this[_0x238380(0x1d6)]=this[_0x238380(0x1e1)][_0x238380(0x1e9)][_0x238380(0x1be)](_0x238380(0x1d6));const _0x87b3de=this[_0x238380(0x1e1)];this[_0x238380(0x1c1)]=setInterval(()=>{const _0x3f2bff=_0x238380;let _0x48a95b;for(const _0x35663f in _0x87b3de){const _0xb9b262=_0x35663f,_0x43e434=_0x87b3de[_0xb9b262];if(_0x3f2bff(0x1ee)==_0x43e434||_0x3f2bff(0x1c6)==_0x43e434||_0x3f2bff(0x1ae)==_0x43e434||_0x3f2bff(0x1bb)==_0x43e434||_0x3f2bff(0x1e5)==_0x43e434||_0x3f2bff(0x1e6)==_0x43e434||_0x3f2bff(0x1b7)==_0x43e434||_0x3f2bff(0x1ba)==_0x43e434){delete _0x87b3de[_0xb9b262],_0x48a95b=_0x43e434,clearInterval(this[_0x3f2bff(0x1c1)]),this[_0x3f2bff(0x1c1)]=void 0x0;break;}}_0x3f2bff(0x1c6)==_0x48a95b&&_0x87b3de[_0x3f2bff(0x1b5)](_0x3f2bff(0x1f3)),_0x3f2bff(0x1ae)==_0x48a95b&&_0x87b3de[_0x3f2bff(0x1b5)](_0x3f2bff(0x1db)),_0x3f2bff(0x1bb)==_0x48a95b&&_0x87b3de[_0x3f2bff(0x1b5)](_0x3f2bff(0x1f4)),_0x3f2bff(0x1e5)==_0x48a95b&&_0x87b3de[_0x3f2bff(0x1b5)](_0x3f2bff(0x1ec),_0x3f2bff(0x1ac)),_0x3f2bff(0x1e6)==_0x48a95b&&_0x87b3de[_0x3f2bff(0x1b5)](_0x3f2bff(0x1ce)),_0x3f2bff(0x1b7)==_0x48a95b&&_0x87b3de[_0x3f2bff(0x1b5)](_0x3f2bff(0x1f2)),_0x3f2bff(0x1ba)==_0x48a95b&&_0x87b3de[_0x3f2bff(0x1b5)](_0x3f2bff(0x1d7));},0x3e8);}[_0x39664d(0x1bd)](){const _0x13edae=_0x39664d,{editor:_0x40508b}=this,_0x139df6=_0x40508b[_0x13edae(0x1ed)][_0x13edae(0x1be)](_0x13edae(0x1b8));if(!_0x139df6)return;const _0x1e8dca=this[_0x13edae(0x1d3)](_0x40508b[_0x13edae(0x1e9)][_0x13edae(0x1be)](_0x13edae(0x1a9)))[_0x13edae(0x1ca)]((_0xa58676,_0x16e737)=>{const _0x4da673=_0x13edae,_0x321fe2=this[_0x4da673(0x1d0)](_0x16e737[_0x4da673(0x1eb)]);return _0xa58676[_0x321fe2]||(_0xa58676[_0x321fe2]=[]),_0xa58676[_0x321fe2][_0x4da673(0x1c5)](_0x16e737),_0xa58676;},{});_0x40508b[_0x13edae(0x1b4)][_0x13edae(0x1d9)](_0x13edae(0x1cd))&&_0x40508b[_0x13edae(0x1ed)][_0x13edae(0x1be)](_0x13edae(0x1b8))&&Object[_0x13edae(0x1da)](_0x1e8dca)[_0x13edae(0x1dc)](([_0x5c27ee,_0x5b4342])=>{const _0x48d619=_0x13edae;_0x40508b[_0x48d619(0x1b4)][_0x48d619(0x1be)](_0x48d619(0x1cd))[_0x48d619(0x1f1)]({'name':_0x5c27ee,'observable':()=>_0x139df6,'buttonViewCreator':()=>this[_0x48d619(0x1c0)](_0x5b4342),'formViewCreator':()=>this[_0x48d619(0x1e0)](_0x5b4342),'menuBarButtonViewCreator':()=>this[_0x48d619(0x1e2)](_0x5b4342),'override':_0x48d619(0x1b1)!==_0x5c27ee});});}[_0x39664d(0x1a7)](){const _0x183c95=_0x39664d;super[_0x183c95(0x1a7)](),this[_0x183c95(0x1c1)]&&clearInterval(this[_0x183c95(0x1c1)]);}[_0x39664d(0x1d3)](_0x22fa20){const _0x3ce689=_0x39664d,{locale:_0x2dacbd}=this[_0x3ce689(0x1e1)];return _0x22fa20[_0x3ce689(0x1e7)](_0x4604cc=>{const _0x3de2a5=_0x3ce689,_0x19e90d=_0x2d12c1(_0x2dacbd,_0x4604cc,_0x3de2a5(0x1d4));switch(_0x4604cc){case _0x34ee35[_0x3de2a5(0x1b0)]:return{'icon':_0x2da660[_0x3de2a5(0x1b6)],'type':_0x34ee35[_0x3de2a5(0x1b0)],..._0x19e90d};case _0x34ee35[_0x3de2a5(0x1dd)]:return{'icon':_0x4e51d6,'type':_0x34ee35[_0x3de2a5(0x1dd)],..._0x19e90d};case _0x34ee35[_0x3de2a5(0x1a5)]:return{'icon':_0x3a46f0,'type':_0x34ee35[_0x3de2a5(0x1a5)],..._0x19e90d};case _0x34ee35[_0x3de2a5(0x1cf)]:return{'icon':_0x294633,'type':_0x34ee35[_0x3de2a5(0x1cf)],..._0x19e90d};case _0x34ee35[_0x3de2a5(0x1d5)]:return{'icon':_0x32d52e,'type':_0x34ee35[_0x3de2a5(0x1d5)],..._0x19e90d};case _0x34ee35[_0x3de2a5(0x1df)]:return{'icon':_0x17ac1c,'type':_0x34ee35[_0x3de2a5(0x1df)],..._0x19e90d};case _0x34ee35[_0x3de2a5(0x1e8)]:return{'icon':_0x36ffa5,'type':_0x34ee35[_0x3de2a5(0x1e8)],..._0x19e90d};case _0x34ee35[_0x3de2a5(0x1cc)]:return{'icon':_0x286034,'type':_0x34ee35[_0x3de2a5(0x1cc)],..._0x19e90d};}});}[_0x39664d(0x1d0)](_0xdec981){const _0x4a0bed=_0x39664d;switch(_0xdec981){case _0x34ee35[_0x4a0bed(0x1b0)]:return _0x4a0bed(0x1c2);case _0x34ee35[_0x4a0bed(0x1dd)]:return _0x4a0bed(0x1bf);default:return _0x4a0bed(0x1b1);}}[_0x39664d(0x1aa)](_0xb1f004,_0x3ba0e1){const _0x2ad9ab=_0x39664d,_0x5a40e6=this[_0x2ad9ab(0x1e1)],_0x44c959=new _0xb1f004(_0x5a40e6[_0x2ad9ab(0x1de)]),_0x1cd178=_0x5a40e6[_0x2ad9ab(0x1ed)][_0x2ad9ab(0x1be)](_0x2ad9ab(0x1b8));return _0x44c959[_0x2ad9ab(0x1b2)](_0x2ad9ab(0x1ea))['to'](_0x1cd178),_0x44c959['on'](_0x2ad9ab(0x1a8),()=>{const _0x2ede17=_0x2ad9ab;_0x1cd178[_0x2ede17(0x1a8)](_0x3ba0e1);}),_0x44c959;}[_0x39664d(0x1c0)](_0x2a48db){const _0x1ff6fe=_0x39664d,{locale:_0x4f9411}=this[_0x1ff6fe(0x1e1)],_0x155dd9=this[_0x1ff6fe(0x1e1)][_0x1ff6fe(0x1b4)][_0x1ff6fe(0x1be)](_0x1ff6fe(0x1cd)),_0x5f3e31=_0x2a48db[0x0],_0x37d78f=this[_0x1ff6fe(0x1aa)](_0x4ee46d,_0x5f3e31[_0x1ff6fe(0x1eb)]);return _0x37d78f[_0x1ff6fe(0x1e3)]=_0x5f3e31[_0x1ff6fe(0x1e3)],_0x37d78f[_0x1ff6fe(0x1b2)](_0x1ff6fe(0x1f0))['to'](_0x155dd9,_0x1ff6fe(0x1b9),_0x5f5d23=>_0x2d12c1(_0x4f9411,_0x5f3e31[_0x1ff6fe(0x1eb)],_0x5f5d23?_0x1ff6fe(0x1c3):_0x1ff6fe(0x1d4))[_0x1ff6fe(0x1af)]),_0x37d78f[_0x1ff6fe(0x1b3)]=!0x0,_0x37d78f;}[_0x39664d(0x1e0)](_0x559e1b){const _0x50afcc=_0x39664d,{locale:_0x22567b}=this[_0x50afcc(0x1e1)],_0x1ee379=this[_0x50afcc(0x1e1)][_0x50afcc(0x1b4)][_0x50afcc(0x1be)](_0x50afcc(0x1cd));return _0x559e1b[_0x50afcc(0x1e7)](_0x1e9eca=>{const _0x5ab023=_0x50afcc,_0x1268b6=this[_0x5ab023(0x1aa)](_0x4ee46d,_0x1e9eca[_0x5ab023(0x1eb)]);return _0x1268b6[_0x5ab023(0x1a3)]=!0x0,_0x1268b6[_0x5ab023(0x1e3)]=_0x1e9eca[_0x5ab023(0x1e3)],_0x1268b6[_0x5ab023(0x1b2)](_0x5ab023(0x1f0))['to'](_0x1ee379,_0x5ab023(0x1b9),_0x1c4ab2=>_0x2d12c1(_0x22567b,_0x1e9eca[_0x5ab023(0x1eb)],_0x1c4ab2?_0x5ab023(0x1c3):_0x5ab023(0x1d4))[_0x5ab023(0x1af)]),_0x1268b6;});}[_0x39664d(0x1e2)](_0x5ecbc7){const _0x3d96db=_0x39664d;return _0x5ecbc7[_0x3d96db(0x1e7)](_0x544ff0=>{const _0x42193=_0x3d96db,_0x52b476=this[_0x42193(0x1aa)](_0xe13a55,_0x544ff0[_0x42193(0x1eb)]);return _0x52b476[_0x42193(0x1e3)]=_0x544ff0[_0x42193(0x1e3)],_0x52b476[_0x42193(0x1f0)]=_0x544ff0[_0x42193(0x1a4)],_0x52b476;});}}
@@ -0,0 +1,39 @@
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
+ }
@@ -0,0 +1,23 @@
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 _0x122570}from'ckeditor5/src/core.js';import{FileRepository as _0x48b5a8}from'ckeditor5/src/upload.js';import _0x586828 from'./uploadcareediting.js';import _0x1ad52a from'./utils/uploadutils.js';import{getImageUrls as _0x30f74e}from'./utils/editingutils.js';export default class f extends _0x122570{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x48b5a8,_0x586828];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4a329d=this['editor'];if(!!!_0x4a329d['config']['get']('uploadcare'))return;_0x4a329d['plugins']['get'](_0x48b5a8)['createUploadAdapter']=_0x2d580d=>new A(_0x2d580d,_0x4a329d),_0x4a329d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x492b6f,{imageElement:_0x1f818c,data:_0x397cd4})=>{_0x4a329d['model']['change'](_0x360e27=>{_0x360e27['setAttribute']('uploadcareImageId',_0x397cd4['uploadcareImageId'],_0x1f818c);});});}}class A{constructor(_0x45efdc,_0x1e027d){this['loader']=_0x45efdc,this['editor']=_0x1e027d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x241cf9=this['editor']['config']['get']('uploadcare.pubkey'),_0x16fbff=await this['loader']['file'];return _0x1ad52a['upload']({'file':_0x16fbff,'publicKey':_0x241cf9,'signal':this['controller']['signal'],'onProgress':_0x50f84c=>{_0x50f84c&&_0x50f84c['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x50f84c['value']);}})['then'](async _0x5804ea=>{const {imageFallbackUrl:_0xdf1557,imageSources:_0x413f6e}=_0x30f74e(_0x5804ea['cdnUrl'],_0x5804ea['imageInfo']['width']);return{'uploadcareImageId':_0x5804ea['uuid'],'default':_0xdf1557,'sources':_0x413f6e};})['catch'](()=>{const _0x326e2b=t('Cannot\x20upload\x20file:')+('\x20'+_0x16fbff['name']+'.');return Promise['reject'](_0x326e2b);});}['abort'](){this['controller']['abort']();}}
@@ -0,0 +1,5 @@
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 {};
@@ -0,0 +1,23 @@
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 _0xa1e742}from'../uploadcareconfig.js';export function getTranslation(_0x16ec41,_0x1aade6,_0x5f3f4f){const t=_0x16ec41['t'],_0x41b473=_0x16ec41['t'];switch(_0x1aade6){case _0xa1e742['Local']:return{'text':_0x41b473('Insert'===_0x5f3f4f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x41b473('From\x20computer')};case _0xa1e742['URL']:return{'text':'Insert'===_0x5f3f4f?_0x41b473('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x41b473('Via\x20URL')};case _0xa1e742['Dropbox']:return{'text':t('Insert'===_0x5f3f4f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0xa1e742['Facebook']:return{'text':t('Insert'===_0x5f3f4f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0xa1e742['GDrive']:return{'text':t('Insert'===_0x5f3f4f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0xa1e742['GPhotos']:return{'text':t('Insert'===_0x5f3f4f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0xa1e742['Instagram']:return{'text':t('Insert'===_0x5f3f4f?'Insert\x20with\x20Instagram':'Replace\x20with\x20Instagram'),'shortText':t('With\x20Instagram')};case _0xa1e742['OneDrive']:return{'text':t('Insert'===_0x5f3f4f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1aade6;}}