@ckeditor/ckeditor5-media-embed 0.0.0-internal-20241017.0

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 (322) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/LICENSE.md +17 -0
  3. package/README.md +26 -0
  4. package/build/media-embed.js +5 -0
  5. package/build/translations/ar.js +1 -0
  6. package/build/translations/az.js +1 -0
  7. package/build/translations/bg.js +1 -0
  8. package/build/translations/bn.js +1 -0
  9. package/build/translations/ca.js +1 -0
  10. package/build/translations/cs.js +1 -0
  11. package/build/translations/da.js +1 -0
  12. package/build/translations/de-ch.js +1 -0
  13. package/build/translations/de.js +1 -0
  14. package/build/translations/el.js +1 -0
  15. package/build/translations/en-au.js +1 -0
  16. package/build/translations/en-gb.js +1 -0
  17. package/build/translations/es.js +1 -0
  18. package/build/translations/et.js +1 -0
  19. package/build/translations/fa.js +1 -0
  20. package/build/translations/fi.js +1 -0
  21. package/build/translations/fr.js +1 -0
  22. package/build/translations/gl.js +1 -0
  23. package/build/translations/he.js +1 -0
  24. package/build/translations/hi.js +1 -0
  25. package/build/translations/hr.js +1 -0
  26. package/build/translations/hu.js +1 -0
  27. package/build/translations/id.js +1 -0
  28. package/build/translations/it.js +1 -0
  29. package/build/translations/ja.js +1 -0
  30. package/build/translations/ko.js +1 -0
  31. package/build/translations/ku.js +1 -0
  32. package/build/translations/lt.js +1 -0
  33. package/build/translations/lv.js +1 -0
  34. package/build/translations/ms.js +1 -0
  35. package/build/translations/ne.js +1 -0
  36. package/build/translations/nl.js +1 -0
  37. package/build/translations/no.js +1 -0
  38. package/build/translations/pl.js +1 -0
  39. package/build/translations/pt-br.js +1 -0
  40. package/build/translations/pt.js +1 -0
  41. package/build/translations/ro.js +1 -0
  42. package/build/translations/ru.js +1 -0
  43. package/build/translations/sk.js +1 -0
  44. package/build/translations/sq.js +1 -0
  45. package/build/translations/sr-latn.js +1 -0
  46. package/build/translations/sr.js +1 -0
  47. package/build/translations/sv.js +1 -0
  48. package/build/translations/th.js +1 -0
  49. package/build/translations/tk.js +1 -0
  50. package/build/translations/tr.js +1 -0
  51. package/build/translations/uk.js +1 -0
  52. package/build/translations/ur.js +1 -0
  53. package/build/translations/uz.js +1 -0
  54. package/build/translations/vi.js +1 -0
  55. package/build/translations/zh-cn.js +1 -0
  56. package/build/translations/zh.js +1 -0
  57. package/ckeditor5-metadata.json +89 -0
  58. package/dist/augmentation.d.ts +29 -0
  59. package/dist/automediaembed.d.ts +59 -0
  60. package/dist/converters.d.ts +42 -0
  61. package/dist/index-content.css +10 -0
  62. package/dist/index-editor.css +96 -0
  63. package/dist/index.css +154 -0
  64. package/dist/index.css.map +1 -0
  65. package/dist/index.d.ts +19 -0
  66. package/dist/index.js +1127 -0
  67. package/dist/index.js.map +1 -0
  68. package/dist/mediaembed.d.ts +42 -0
  69. package/dist/mediaembedcommand.d.ts +40 -0
  70. package/dist/mediaembedconfig.d.ts +282 -0
  71. package/dist/mediaembedediting.d.ts +39 -0
  72. package/dist/mediaembedtoolbar.d.ts +38 -0
  73. package/dist/mediaembedui.d.ts +42 -0
  74. package/dist/mediaregistry.d.ts +70 -0
  75. package/dist/translations/ar.d.ts +8 -0
  76. package/dist/translations/ar.js +5 -0
  77. package/dist/translations/ar.umd.js +11 -0
  78. package/dist/translations/az.d.ts +8 -0
  79. package/dist/translations/az.js +5 -0
  80. package/dist/translations/az.umd.js +11 -0
  81. package/dist/translations/bg.d.ts +8 -0
  82. package/dist/translations/bg.js +5 -0
  83. package/dist/translations/bg.umd.js +11 -0
  84. package/dist/translations/bn.d.ts +8 -0
  85. package/dist/translations/bn.js +5 -0
  86. package/dist/translations/bn.umd.js +11 -0
  87. package/dist/translations/ca.d.ts +8 -0
  88. package/dist/translations/ca.js +5 -0
  89. package/dist/translations/ca.umd.js +11 -0
  90. package/dist/translations/cs.d.ts +8 -0
  91. package/dist/translations/cs.js +5 -0
  92. package/dist/translations/cs.umd.js +11 -0
  93. package/dist/translations/da.d.ts +8 -0
  94. package/dist/translations/da.js +5 -0
  95. package/dist/translations/da.umd.js +11 -0
  96. package/dist/translations/de-ch.d.ts +8 -0
  97. package/dist/translations/de-ch.js +5 -0
  98. package/dist/translations/de-ch.umd.js +11 -0
  99. package/dist/translations/de.d.ts +8 -0
  100. package/dist/translations/de.js +5 -0
  101. package/dist/translations/de.umd.js +11 -0
  102. package/dist/translations/el.d.ts +8 -0
  103. package/dist/translations/el.js +5 -0
  104. package/dist/translations/el.umd.js +11 -0
  105. package/dist/translations/en-au.d.ts +8 -0
  106. package/dist/translations/en-au.js +5 -0
  107. package/dist/translations/en-au.umd.js +11 -0
  108. package/dist/translations/en-gb.d.ts +8 -0
  109. package/dist/translations/en-gb.js +5 -0
  110. package/dist/translations/en-gb.umd.js +11 -0
  111. package/dist/translations/en.d.ts +8 -0
  112. package/dist/translations/en.js +5 -0
  113. package/dist/translations/en.umd.js +11 -0
  114. package/dist/translations/es.d.ts +8 -0
  115. package/dist/translations/es.js +5 -0
  116. package/dist/translations/es.umd.js +11 -0
  117. package/dist/translations/et.d.ts +8 -0
  118. package/dist/translations/et.js +5 -0
  119. package/dist/translations/et.umd.js +11 -0
  120. package/dist/translations/fa.d.ts +8 -0
  121. package/dist/translations/fa.js +5 -0
  122. package/dist/translations/fa.umd.js +11 -0
  123. package/dist/translations/fi.d.ts +8 -0
  124. package/dist/translations/fi.js +5 -0
  125. package/dist/translations/fi.umd.js +11 -0
  126. package/dist/translations/fr.d.ts +8 -0
  127. package/dist/translations/fr.js +5 -0
  128. package/dist/translations/fr.umd.js +11 -0
  129. package/dist/translations/gl.d.ts +8 -0
  130. package/dist/translations/gl.js +5 -0
  131. package/dist/translations/gl.umd.js +11 -0
  132. package/dist/translations/he.d.ts +8 -0
  133. package/dist/translations/he.js +5 -0
  134. package/dist/translations/he.umd.js +11 -0
  135. package/dist/translations/hi.d.ts +8 -0
  136. package/dist/translations/hi.js +5 -0
  137. package/dist/translations/hi.umd.js +11 -0
  138. package/dist/translations/hr.d.ts +8 -0
  139. package/dist/translations/hr.js +5 -0
  140. package/dist/translations/hr.umd.js +11 -0
  141. package/dist/translations/hu.d.ts +8 -0
  142. package/dist/translations/hu.js +5 -0
  143. package/dist/translations/hu.umd.js +11 -0
  144. package/dist/translations/id.d.ts +8 -0
  145. package/dist/translations/id.js +5 -0
  146. package/dist/translations/id.umd.js +11 -0
  147. package/dist/translations/it.d.ts +8 -0
  148. package/dist/translations/it.js +5 -0
  149. package/dist/translations/it.umd.js +11 -0
  150. package/dist/translations/ja.d.ts +8 -0
  151. package/dist/translations/ja.js +5 -0
  152. package/dist/translations/ja.umd.js +11 -0
  153. package/dist/translations/ko.d.ts +8 -0
  154. package/dist/translations/ko.js +5 -0
  155. package/dist/translations/ko.umd.js +11 -0
  156. package/dist/translations/ku.d.ts +8 -0
  157. package/dist/translations/ku.js +5 -0
  158. package/dist/translations/ku.umd.js +11 -0
  159. package/dist/translations/lt.d.ts +8 -0
  160. package/dist/translations/lt.js +5 -0
  161. package/dist/translations/lt.umd.js +11 -0
  162. package/dist/translations/lv.d.ts +8 -0
  163. package/dist/translations/lv.js +5 -0
  164. package/dist/translations/lv.umd.js +11 -0
  165. package/dist/translations/ms.d.ts +8 -0
  166. package/dist/translations/ms.js +5 -0
  167. package/dist/translations/ms.umd.js +11 -0
  168. package/dist/translations/ne.d.ts +8 -0
  169. package/dist/translations/ne.js +5 -0
  170. package/dist/translations/ne.umd.js +11 -0
  171. package/dist/translations/nl.d.ts +8 -0
  172. package/dist/translations/nl.js +5 -0
  173. package/dist/translations/nl.umd.js +11 -0
  174. package/dist/translations/no.d.ts +8 -0
  175. package/dist/translations/no.js +5 -0
  176. package/dist/translations/no.umd.js +11 -0
  177. package/dist/translations/pl.d.ts +8 -0
  178. package/dist/translations/pl.js +5 -0
  179. package/dist/translations/pl.umd.js +11 -0
  180. package/dist/translations/pt-br.d.ts +8 -0
  181. package/dist/translations/pt-br.js +5 -0
  182. package/dist/translations/pt-br.umd.js +11 -0
  183. package/dist/translations/pt.d.ts +8 -0
  184. package/dist/translations/pt.js +5 -0
  185. package/dist/translations/pt.umd.js +11 -0
  186. package/dist/translations/ro.d.ts +8 -0
  187. package/dist/translations/ro.js +5 -0
  188. package/dist/translations/ro.umd.js +11 -0
  189. package/dist/translations/ru.d.ts +8 -0
  190. package/dist/translations/ru.js +5 -0
  191. package/dist/translations/ru.umd.js +11 -0
  192. package/dist/translations/sk.d.ts +8 -0
  193. package/dist/translations/sk.js +5 -0
  194. package/dist/translations/sk.umd.js +11 -0
  195. package/dist/translations/sq.d.ts +8 -0
  196. package/dist/translations/sq.js +5 -0
  197. package/dist/translations/sq.umd.js +11 -0
  198. package/dist/translations/sr-latn.d.ts +8 -0
  199. package/dist/translations/sr-latn.js +5 -0
  200. package/dist/translations/sr-latn.umd.js +11 -0
  201. package/dist/translations/sr.d.ts +8 -0
  202. package/dist/translations/sr.js +5 -0
  203. package/dist/translations/sr.umd.js +11 -0
  204. package/dist/translations/sv.d.ts +8 -0
  205. package/dist/translations/sv.js +5 -0
  206. package/dist/translations/sv.umd.js +11 -0
  207. package/dist/translations/th.d.ts +8 -0
  208. package/dist/translations/th.js +5 -0
  209. package/dist/translations/th.umd.js +11 -0
  210. package/dist/translations/tk.d.ts +8 -0
  211. package/dist/translations/tk.js +5 -0
  212. package/dist/translations/tk.umd.js +11 -0
  213. package/dist/translations/tr.d.ts +8 -0
  214. package/dist/translations/tr.js +5 -0
  215. package/dist/translations/tr.umd.js +11 -0
  216. package/dist/translations/uk.d.ts +8 -0
  217. package/dist/translations/uk.js +5 -0
  218. package/dist/translations/uk.umd.js +11 -0
  219. package/dist/translations/ur.d.ts +8 -0
  220. package/dist/translations/ur.js +5 -0
  221. package/dist/translations/ur.umd.js +11 -0
  222. package/dist/translations/uz.d.ts +8 -0
  223. package/dist/translations/uz.js +5 -0
  224. package/dist/translations/uz.umd.js +11 -0
  225. package/dist/translations/vi.d.ts +8 -0
  226. package/dist/translations/vi.js +5 -0
  227. package/dist/translations/vi.umd.js +11 -0
  228. package/dist/translations/zh-cn.d.ts +8 -0
  229. package/dist/translations/zh-cn.js +5 -0
  230. package/dist/translations/zh-cn.umd.js +11 -0
  231. package/dist/translations/zh.d.ts +8 -0
  232. package/dist/translations/zh.js +5 -0
  233. package/dist/translations/zh.umd.js +11 -0
  234. package/dist/ui/mediaformview.d.ts +93 -0
  235. package/dist/utils.d.ts +71 -0
  236. package/lang/contexts.json +12 -0
  237. package/lang/translations/ar.po +58 -0
  238. package/lang/translations/az.po +58 -0
  239. package/lang/translations/bg.po +58 -0
  240. package/lang/translations/bn.po +58 -0
  241. package/lang/translations/ca.po +58 -0
  242. package/lang/translations/cs.po +58 -0
  243. package/lang/translations/da.po +58 -0
  244. package/lang/translations/de-ch.po +58 -0
  245. package/lang/translations/de.po +58 -0
  246. package/lang/translations/el.po +58 -0
  247. package/lang/translations/en-au.po +58 -0
  248. package/lang/translations/en-gb.po +58 -0
  249. package/lang/translations/en.po +58 -0
  250. package/lang/translations/es.po +58 -0
  251. package/lang/translations/et.po +58 -0
  252. package/lang/translations/fa.po +58 -0
  253. package/lang/translations/fi.po +58 -0
  254. package/lang/translations/fr.po +58 -0
  255. package/lang/translations/gl.po +58 -0
  256. package/lang/translations/he.po +58 -0
  257. package/lang/translations/hi.po +58 -0
  258. package/lang/translations/hr.po +58 -0
  259. package/lang/translations/hu.po +58 -0
  260. package/lang/translations/id.po +58 -0
  261. package/lang/translations/it.po +58 -0
  262. package/lang/translations/ja.po +58 -0
  263. package/lang/translations/ko.po +58 -0
  264. package/lang/translations/ku.po +58 -0
  265. package/lang/translations/lt.po +58 -0
  266. package/lang/translations/lv.po +58 -0
  267. package/lang/translations/ms.po +58 -0
  268. package/lang/translations/ne.po +58 -0
  269. package/lang/translations/nl.po +58 -0
  270. package/lang/translations/no.po +58 -0
  271. package/lang/translations/pl.po +58 -0
  272. package/lang/translations/pt-br.po +58 -0
  273. package/lang/translations/pt.po +58 -0
  274. package/lang/translations/ro.po +58 -0
  275. package/lang/translations/ru.po +58 -0
  276. package/lang/translations/sk.po +58 -0
  277. package/lang/translations/sq.po +58 -0
  278. package/lang/translations/sr-latn.po +58 -0
  279. package/lang/translations/sr.po +58 -0
  280. package/lang/translations/sv.po +58 -0
  281. package/lang/translations/th.po +58 -0
  282. package/lang/translations/tk.po +58 -0
  283. package/lang/translations/tr.po +58 -0
  284. package/lang/translations/uk.po +58 -0
  285. package/lang/translations/ur.po +58 -0
  286. package/lang/translations/uz.po +58 -0
  287. package/lang/translations/vi.po +58 -0
  288. package/lang/translations/zh-cn.po +58 -0
  289. package/lang/translations/zh.po +58 -0
  290. package/package.json +46 -0
  291. package/src/augmentation.d.ts +25 -0
  292. package/src/augmentation.js +5 -0
  293. package/src/automediaembed.d.ts +55 -0
  294. package/src/automediaembed.js +137 -0
  295. package/src/converters.d.ts +38 -0
  296. package/src/converters.js +53 -0
  297. package/src/index.d.ts +15 -0
  298. package/src/index.js +13 -0
  299. package/src/mediaembed.d.ts +38 -0
  300. package/src/mediaembed.js +44 -0
  301. package/src/mediaembedcommand.d.ts +36 -0
  302. package/src/mediaembedcommand.js +71 -0
  303. package/src/mediaembedconfig.d.ts +278 -0
  304. package/src/mediaembedconfig.js +5 -0
  305. package/src/mediaembedediting.d.ts +35 -0
  306. package/src/mediaembedediting.js +247 -0
  307. package/src/mediaembedtoolbar.d.ts +34 -0
  308. package/src/mediaembedtoolbar.js +50 -0
  309. package/src/mediaembedui.d.ts +38 -0
  310. package/src/mediaembedui.js +132 -0
  311. package/src/mediaregistry.d.ts +66 -0
  312. package/src/mediaregistry.js +232 -0
  313. package/src/ui/mediaformview.d.ts +89 -0
  314. package/src/ui/mediaformview.js +132 -0
  315. package/src/utils.d.ts +67 -0
  316. package/src/utils.js +85 -0
  317. package/theme/icons/media/twitter.svg +20 -0
  318. package/theme/icons/media-placeholder.svg +1 -0
  319. package/theme/icons/media.svg +1 -0
  320. package/theme/mediaembed.css +23 -0
  321. package/theme/mediaembedediting.css +48 -0
  322. package/theme/mediaform.css +39 -0
package/src/utils.d.ts ADDED
@@ -0,0 +1,67 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module media-embed/utils
7
+ */
8
+ import type { ViewContainerElement, Element, Model, Selectable, Selection, DowncastWriter, ViewDocumentSelection, ViewElement, DocumentSelection } from 'ckeditor5/src/engine.js';
9
+ import type MediaRegistry from './mediaregistry.js';
10
+ /**
11
+ * Converts a given {@link module:engine/view/element~Element} to a media embed widget:
12
+ * * Adds a {@link module:engine/view/element~Element#_setCustomProperty custom property} allowing to recognize the media widget element.
13
+ * * Calls the {@link module:widget/utils~toWidget} function with the proper element's label creator.
14
+ *
15
+ * @param writer An instance of the view writer.
16
+ * @param label The element's label.
17
+ */
18
+ export declare function toMediaWidget(viewElement: ViewElement, writer: DowncastWriter, label: string): ViewElement;
19
+ /**
20
+ * Returns a media widget editing view element if one is selected.
21
+ */
22
+ export declare function getSelectedMediaViewWidget(selection: ViewDocumentSelection): ViewElement | null;
23
+ /**
24
+ * Checks if a given view element is a media widget.
25
+ */
26
+ export declare function isMediaWidget(viewElement: ViewElement): boolean;
27
+ /**
28
+ * Creates a view element representing the media. Either a "semantic" one for the data pipeline:
29
+ *
30
+ * ```html
31
+ * <figure class="media">
32
+ * <oembed url="foo"></oembed>
33
+ * </figure>
34
+ * ```
35
+ *
36
+ * or a "non-semantic" (for the editing view pipeline):
37
+ *
38
+ * ```html
39
+ * <figure class="media">
40
+ * <div data-oembed-url="foo">[ non-semantic media preview for "foo" ]</div>
41
+ * </figure>
42
+ * ```
43
+ */
44
+ export declare function createMediaFigureElement(writer: DowncastWriter, registry: MediaRegistry, url: string, options: MediaOptions): ViewContainerElement;
45
+ /**
46
+ * Returns a selected media element in the model, if any.
47
+ */
48
+ export declare function getSelectedMediaModelWidget(selection: Selection | DocumentSelection): Element | null;
49
+ /**
50
+ * Creates a media element and inserts it into the model.
51
+ *
52
+ * **Note**: This method will use {@link module:engine/model/model~Model#insertContent `model.insertContent()`} logic of inserting content
53
+ * if no `insertPosition` is passed.
54
+ *
55
+ * @param url An URL of an embeddable media.
56
+ * @param findOptimalPosition If true it will try to find optimal position to insert media without breaking content
57
+ * in which a selection is.
58
+ */
59
+ export declare function insertMedia(model: Model, url: string, selectable: Selectable, findOptimalPosition: boolean): void;
60
+ /**
61
+ * Type for commonly grouped function parameters across this package.
62
+ */
63
+ export type MediaOptions = {
64
+ elementName: string;
65
+ renderMediaPreview?: boolean;
66
+ renderForEditingView?: boolean;
67
+ };
package/src/utils.js ADDED
@@ -0,0 +1,85 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ import { isWidget, toWidget } from 'ckeditor5/src/widget.js';
6
+ /**
7
+ * Converts a given {@link module:engine/view/element~Element} to a media embed widget:
8
+ * * Adds a {@link module:engine/view/element~Element#_setCustomProperty custom property} allowing to recognize the media widget element.
9
+ * * Calls the {@link module:widget/utils~toWidget} function with the proper element's label creator.
10
+ *
11
+ * @param writer An instance of the view writer.
12
+ * @param label The element's label.
13
+ */
14
+ export function toMediaWidget(viewElement, writer, label) {
15
+ writer.setCustomProperty('media', true, viewElement);
16
+ return toWidget(viewElement, writer, { label });
17
+ }
18
+ /**
19
+ * Returns a media widget editing view element if one is selected.
20
+ */
21
+ export function getSelectedMediaViewWidget(selection) {
22
+ const viewElement = selection.getSelectedElement();
23
+ if (viewElement && isMediaWidget(viewElement)) {
24
+ return viewElement;
25
+ }
26
+ return null;
27
+ }
28
+ /**
29
+ * Checks if a given view element is a media widget.
30
+ */
31
+ export function isMediaWidget(viewElement) {
32
+ return !!viewElement.getCustomProperty('media') && isWidget(viewElement);
33
+ }
34
+ /**
35
+ * Creates a view element representing the media. Either a "semantic" one for the data pipeline:
36
+ *
37
+ * ```html
38
+ * <figure class="media">
39
+ * <oembed url="foo"></oembed>
40
+ * </figure>
41
+ * ```
42
+ *
43
+ * or a "non-semantic" (for the editing view pipeline):
44
+ *
45
+ * ```html
46
+ * <figure class="media">
47
+ * <div data-oembed-url="foo">[ non-semantic media preview for "foo" ]</div>
48
+ * </figure>
49
+ * ```
50
+ */
51
+ export function createMediaFigureElement(writer, registry, url, options) {
52
+ return writer.createContainerElement('figure', { class: 'media' }, [
53
+ registry.getMediaViewElement(writer, url, options),
54
+ writer.createSlot()
55
+ ]);
56
+ }
57
+ /**
58
+ * Returns a selected media element in the model, if any.
59
+ */
60
+ export function getSelectedMediaModelWidget(selection) {
61
+ const selectedElement = selection.getSelectedElement();
62
+ if (selectedElement && selectedElement.is('element', 'media')) {
63
+ return selectedElement;
64
+ }
65
+ return null;
66
+ }
67
+ /**
68
+ * Creates a media element and inserts it into the model.
69
+ *
70
+ * **Note**: This method will use {@link module:engine/model/model~Model#insertContent `model.insertContent()`} logic of inserting content
71
+ * if no `insertPosition` is passed.
72
+ *
73
+ * @param url An URL of an embeddable media.
74
+ * @param findOptimalPosition If true it will try to find optimal position to insert media without breaking content
75
+ * in which a selection is.
76
+ */
77
+ export function insertMedia(model, url, selectable, findOptimalPosition) {
78
+ model.change(writer => {
79
+ const mediaElement = writer.createElement('media', { url });
80
+ model.insertObject(mediaElement, selectable, null, {
81
+ setSelection: 'on',
82
+ findOptimalPosition: findOptimalPosition ? 'auto' : undefined
83
+ });
84
+ });
85
+ }
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 20.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 400 400" style="enable-background:new 0 0 400 400;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:#1DA1F2;}
7
+ .st1{fill:#FFFFFF;}
8
+ </style>
9
+ <g id="Dark_Blue">
10
+ <circle class="st0" cx="200" cy="200" r="200"/>
11
+ </g>
12
+ <g id="Logo__x2014__FIXED">
13
+ <path class="st1" d="M163.4,305.5c88.7,0,137.2-73.5,137.2-137.2c0-2.1,0-4.2-0.1-6.2c9.4-6.8,17.6-15.3,24.1-25
14
+ c-8.6,3.8-17.9,6.4-27.7,7.6c10-6,17.6-15.4,21.2-26.7c-9.3,5.5-19.6,9.5-30.6,11.7c-8.8-9.4-21.3-15.2-35.2-15.2
15
+ c-26.6,0-48.2,21.6-48.2,48.2c0,3.8,0.4,7.5,1.3,11c-40.1-2-75.6-21.2-99.4-50.4c-4.1,7.1-6.5,15.4-6.5,24.2
16
+ c0,16.7,8.5,31.5,21.5,40.1c-7.9-0.2-15.3-2.4-21.8-6c0,0.2,0,0.4,0,0.6c0,23.4,16.6,42.8,38.7,47.3c-4,1.1-8.3,1.7-12.7,1.7
17
+ c-3.1,0-6.1-0.3-9.1-0.9c6.1,19.2,23.9,33.1,45,33.5c-16.5,12.9-37.3,20.6-59.9,20.6c-3.9,0-7.7-0.2-11.5-0.7
18
+ C110.8,297.5,136.2,305.5,163.4,305.5"/>
19
+ </g>
20
+ </svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 64 42" xmlns="http://www.w3.org/2000/svg"><path d="M47.426 17V3.713L63.102 0v19.389h-.001l.001.272c0 1.595-2.032 3.43-4.538 4.098-2.506.668-4.538-.083-4.538-1.678 0-1.594 2.032-3.43 4.538-4.098.914-.244 2.032-.565 2.888-.603V4.516L49.076 7.447v9.556A1.014 1.014 0 0 0 49 17h-1.574zM29.5 17h-8.343a7.073 7.073 0 1 0-4.657 4.06v3.781H3.3a2.803 2.803 0 0 1-2.8-2.804V8.63a2.803 2.803 0 0 1 2.8-2.805h4.082L8.58 2.768A1.994 1.994 0 0 1 10.435 1.5h8.985c.773 0 1.477.448 1.805 1.149l1.488 3.177H26.7c1.546 0 2.8 1.256 2.8 2.805V17zm-11.637 0H17.5a1 1 0 0 0-1 1v.05A4.244 4.244 0 1 1 17.863 17zm29.684 2c.97 0 .953-.048.953.889v20.743c0 .953.016.905-.953.905H19.453c-.97 0-.953.048-.953-.905V19.89c0-.937-.016-.889.97-.889h28.077zm-4.701 19.338V22.183H24.154v16.155h18.692zM20.6 21.375v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616V37.53H20.6zm24.233-16.155v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615V37.53h-1.615zM29.485 25.283a.4.4 0 0 1 .593-.35l9.05 4.977a.4.4 0 0 1 0 .701l-9.05 4.978a.4.4 0 0 1-.593-.35v-9.956z"/></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 22 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.587 1.5c-.612 0-.601-.029-.601.551v14.84c0 .59-.01.559.591.559h18.846c.602 0 .591.03.591-.56V2.052c0-.58.01-.55-.591-.55H1.587Zm.701.971h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-14.24 1h13.008v12H4.467l.029-12Zm-2.208 1h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003l-.029 1h-.974v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h.974v1h-.974v-1Zm16.448 0h1.003v1h-1.003v-1Z"/><path d="M8.374 6.648a.399.399 0 0 1 .395-.4.402.402 0 0 1 .2.049l5.148 2.824a.4.4 0 0 1 0 .7l-5.148 2.824a.403.403 0 0 1-.595-.35V6.648Z"/></svg>
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ .ck-content .media {
7
+ /* Don't allow floated content overlap the media.
8
+ https://github.com/ckeditor/ckeditor5-media-embed/issues/53 */
9
+ clear: both;
10
+
11
+ /* Make sure there is some space between the content and the media. */
12
+ /* The first value should be equal to --ck-spacing-large variable if used in the editor context
13
+ to avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */
14
+ margin: 0.9em 0;
15
+
16
+ /* Make sure media is not overriden with Bootstrap default `flex` value.
17
+ See: https://github.com/ckeditor/ckeditor5/issues/1373. */
18
+ display: block;
19
+
20
+ /* Give the media some minimal width in the content to prevent them
21
+ from being "squashed" in tight spaces, e.g. in table cells (#44) */
22
+ min-width: 15em;
23
+ }
@@ -0,0 +1,48 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ .ck-media__wrapper {
7
+ & .ck-media__placeholder {
8
+ display: flex;
9
+ flex-direction: column;
10
+ align-items: center;
11
+
12
+ & .ck-media__placeholder__url {
13
+ /* Otherwise the URL will overflow when the content is very narrow. */
14
+ max-width: 100%;
15
+
16
+ position: relative;
17
+
18
+ & .ck-media__placeholder__url__text {
19
+ overflow: hidden;
20
+ display: block;
21
+ }
22
+ }
23
+ }
24
+
25
+ &[data-oembed-url*="twitter.com"],
26
+ &[data-oembed-url*="google.com/maps"],
27
+ &[data-oembed-url*="goo.gl/maps"],
28
+ &[data-oembed-url*="maps.google.com"],
29
+ &[data-oembed-url*="maps.app.goo.gl"],
30
+ &[data-oembed-url*="facebook.com"],
31
+ &[data-oembed-url*="instagram.com"] {
32
+ & .ck-media__placeholder__icon * {
33
+ display: none;
34
+ }
35
+ }
36
+ }
37
+
38
+ /* Disable all mouse interaction as long as the editor is not read–only.
39
+ https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */
40
+ .ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) {
41
+ pointer-events: none;
42
+ }
43
+
44
+ /* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident).
45
+ https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */
46
+ .ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder {
47
+ pointer-events: none;
48
+ }
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ @import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
7
+
8
+ .ck.ck-media-form {
9
+ display: flex;
10
+ align-items: flex-start;
11
+ flex-direction: row;
12
+ flex-wrap: nowrap;
13
+ width: 400px;
14
+
15
+ & .ck-labeled-field-view {
16
+ display: inline-block;
17
+ width: 100%;
18
+ }
19
+
20
+ & .ck-label {
21
+ display: none;
22
+ }
23
+
24
+ & .ck-input {
25
+ width: 100%;
26
+ }
27
+
28
+ @mixin ck-media-phone {
29
+ flex-wrap: wrap;
30
+
31
+ & .ck-labeled-field-view {
32
+ flex-basis: 100%;
33
+ }
34
+
35
+ & .ck-button {
36
+ flex-basis: 50%;
37
+ }
38
+ }
39
+ }