@ckeditor/ckeditor5-widget 47.6.1 → 48.0.0-alpha.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 (110) hide show
  1. package/LICENSE.md +1 -1
  2. package/dist/index-editor.css +484 -122
  3. package/dist/index.css +479 -187
  4. package/dist/index.css.map +1 -1
  5. package/dist/index.js +1 -1
  6. package/dist/index.js.map +1 -1
  7. package/package.json +26 -46
  8. package/lang/contexts.json +0 -12
  9. package/lang/translations/af.po +0 -52
  10. package/lang/translations/ar.po +0 -52
  11. package/lang/translations/ast.po +0 -52
  12. package/lang/translations/az.po +0 -52
  13. package/lang/translations/be.po +0 -52
  14. package/lang/translations/bg.po +0 -52
  15. package/lang/translations/bn.po +0 -52
  16. package/lang/translations/bs.po +0 -52
  17. package/lang/translations/ca.po +0 -52
  18. package/lang/translations/cs.po +0 -52
  19. package/lang/translations/da.po +0 -52
  20. package/lang/translations/de-ch.po +0 -52
  21. package/lang/translations/de.po +0 -52
  22. package/lang/translations/el.po +0 -52
  23. package/lang/translations/en-au.po +0 -52
  24. package/lang/translations/en-gb.po +0 -52
  25. package/lang/translations/en.po +0 -52
  26. package/lang/translations/eo.po +0 -52
  27. package/lang/translations/es-co.po +0 -52
  28. package/lang/translations/es.po +0 -52
  29. package/lang/translations/et.po +0 -52
  30. package/lang/translations/eu.po +0 -52
  31. package/lang/translations/fa.po +0 -52
  32. package/lang/translations/fi.po +0 -52
  33. package/lang/translations/fr.po +0 -52
  34. package/lang/translations/gl.po +0 -52
  35. package/lang/translations/gu.po +0 -52
  36. package/lang/translations/he.po +0 -52
  37. package/lang/translations/hi.po +0 -52
  38. package/lang/translations/hr.po +0 -52
  39. package/lang/translations/hu.po +0 -52
  40. package/lang/translations/hy.po +0 -52
  41. package/lang/translations/id.po +0 -52
  42. package/lang/translations/it.po +0 -52
  43. package/lang/translations/ja.po +0 -52
  44. package/lang/translations/jv.po +0 -52
  45. package/lang/translations/kk.po +0 -52
  46. package/lang/translations/km.po +0 -52
  47. package/lang/translations/kn.po +0 -52
  48. package/lang/translations/ko.po +0 -52
  49. package/lang/translations/ku.po +0 -52
  50. package/lang/translations/lt.po +0 -52
  51. package/lang/translations/lv.po +0 -52
  52. package/lang/translations/ms.po +0 -52
  53. package/lang/translations/nb.po +0 -52
  54. package/lang/translations/ne.po +0 -52
  55. package/lang/translations/nl.po +0 -52
  56. package/lang/translations/no.po +0 -52
  57. package/lang/translations/oc.po +0 -52
  58. package/lang/translations/pl.po +0 -52
  59. package/lang/translations/pt-br.po +0 -52
  60. package/lang/translations/pt.po +0 -52
  61. package/lang/translations/ro.po +0 -52
  62. package/lang/translations/ru.po +0 -52
  63. package/lang/translations/si.po +0 -52
  64. package/lang/translations/sk.po +0 -52
  65. package/lang/translations/sl.po +0 -52
  66. package/lang/translations/sq.po +0 -52
  67. package/lang/translations/sr-latn.po +0 -52
  68. package/lang/translations/sr.po +0 -52
  69. package/lang/translations/sv.po +0 -52
  70. package/lang/translations/th.po +0 -52
  71. package/lang/translations/ti.po +0 -52
  72. package/lang/translations/tk.po +0 -52
  73. package/lang/translations/tr.po +0 -52
  74. package/lang/translations/tt.po +0 -52
  75. package/lang/translations/ug.po +0 -52
  76. package/lang/translations/uk.po +0 -52
  77. package/lang/translations/ur.po +0 -52
  78. package/lang/translations/uz.po +0 -52
  79. package/lang/translations/vi.po +0 -52
  80. package/lang/translations/zh-cn.po +0 -52
  81. package/lang/translations/zh.po +0 -52
  82. package/src/augmentation.js +0 -5
  83. package/src/highlightstack.js +0 -126
  84. package/src/index.js +0 -19
  85. package/src/utils.js +0 -414
  86. package/src/verticalnavigation.js +0 -185
  87. package/src/widget.js +0 -727
  88. package/src/widgetresize/resizer.js +0 -390
  89. package/src/widgetresize/resizerstate.js +0 -165
  90. package/src/widgetresize/sizeview.js +0 -65
  91. package/src/widgetresize.js +0 -193
  92. package/src/widgettoolbarrepository.js +0 -274
  93. package/src/widgettypearound/utils.js +0 -60
  94. package/src/widgettypearound/widgettypearound.js +0 -778
  95. package/theme/widget.css +0 -91
  96. package/theme/widgetresize.css +0 -43
  97. package/theme/widgettypearound.css +0 -119
  98. /package/{src → dist}/augmentation.d.ts +0 -0
  99. /package/{src → dist}/highlightstack.d.ts +0 -0
  100. /package/{src → dist}/index.d.ts +0 -0
  101. /package/{src → dist}/utils.d.ts +0 -0
  102. /package/{src → dist}/verticalnavigation.d.ts +0 -0
  103. /package/{src → dist}/widget.d.ts +0 -0
  104. /package/{src → dist}/widgetresize/resizer.d.ts +0 -0
  105. /package/{src → dist}/widgetresize/resizerstate.d.ts +0 -0
  106. /package/{src → dist}/widgetresize/sizeview.d.ts +0 -0
  107. /package/{src → dist}/widgetresize.d.ts +0 -0
  108. /package/{src → dist}/widgettoolbarrepository.d.ts +0 -0
  109. /package/{src → dist}/widgettypearound/utils.d.ts +0 -0
  110. /package/{src → dist}/widgettypearound/widgettypearound.d.ts +0 -0
package/theme/widget.css DELETED
@@ -1,91 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, 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
- :root {
7
- --ck-color-resizer: var(--ck-color-focus-border);
8
- --ck-color-resizer-tooltip-background: hsl(0, 0%, 15%);
9
- --ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);
10
-
11
- --ck-resizer-border-radius: var(--ck-border-radius);
12
- --ck-resizer-tooltip-offset: 10px;
13
- --ck-resizer-tooltip-height: calc(var(--ck-spacing-small) * 2 + 10px);
14
- }
15
-
16
- .ck .ck-widget {
17
- /* This is neccessary for type around UI to be positioned properly. */
18
- position: relative;
19
- }
20
-
21
- .ck .ck-widget.ck-widget_with-selection-handle {
22
- /* Make the widget wrapper a relative positioning container for the drag handle. */
23
- position: relative;
24
-
25
- & .ck-widget__selection-handle {
26
- position: absolute;
27
-
28
- & .ck-icon {
29
- /* Make sure the icon in not a subject to font-size or line-height to avoid
30
- unnecessary spacing around it. */
31
- display: block;
32
- }
33
- }
34
-
35
- /* Show the selection handle on mouse hover over the widget, but not for nested widgets. */
36
- &:hover > .ck-widget__selection-handle {
37
- visibility: visible;
38
- }
39
-
40
- /* Show the selection handle when the widget is selected, but not for nested widgets. */
41
- &.ck-widget_selected > .ck-widget__selection-handle {
42
- visibility: visible;
43
- }
44
- }
45
-
46
- .ck .ck-size-view {
47
- background: var(--ck-color-resizer-tooltip-background);
48
- color: var(--ck-color-resizer-tooltip-text);
49
- border: 1px solid var(--ck-color-resizer-tooltip-text);
50
- border-radius: var(--ck-resizer-border-radius);
51
- font-size: var(--ck-font-size-tiny);
52
- display: block;
53
- padding: 0 var(--ck-spacing-small);
54
- height: var(--ck-resizer-tooltip-height);
55
- line-height: var(--ck-resizer-tooltip-height);
56
-
57
- &.ck-orientation-top-left,
58
- &.ck-orientation-top-right,
59
- &.ck-orientation-bottom-right,
60
- &.ck-orientation-bottom-left,
61
- &.ck-orientation-above-center {
62
- position: absolute;
63
- }
64
-
65
- &.ck-orientation-top-left {
66
- top: var(--ck-resizer-tooltip-offset);
67
- left: var(--ck-resizer-tooltip-offset);
68
- }
69
-
70
- &.ck-orientation-top-right {
71
- top: var(--ck-resizer-tooltip-offset);
72
- right: var(--ck-resizer-tooltip-offset);
73
- }
74
-
75
- &.ck-orientation-bottom-right {
76
- bottom: var(--ck-resizer-tooltip-offset);
77
- right: var(--ck-resizer-tooltip-offset);
78
- }
79
-
80
- &.ck-orientation-bottom-left {
81
- bottom: var(--ck-resizer-tooltip-offset);
82
- left: var(--ck-resizer-tooltip-offset);
83
- }
84
-
85
- /* Class applied if the widget is too small to contain the size label */
86
- &.ck-orientation-above-center {
87
- top: calc(var(--ck-resizer-tooltip-height) * -1);
88
- left: 50%;
89
- transform: translate(-50%);
90
- }
91
- }
@@ -1,43 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, 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
- .ck .ck-widget_with-resizer {
7
- /* Make the widget wrapper a relative positioning container for the drag handle. */
8
- position: relative;
9
- }
10
-
11
- .ck .ck-widget__resizer {
12
- display: none;
13
- position: absolute;
14
-
15
- /* The wrapper itself should not interfere with the pointer device, only the handles should. */
16
- pointer-events: none;
17
-
18
- left: 0;
19
- top: 0;
20
- }
21
-
22
- .ck-focused .ck-widget_with-resizer.ck-widget_selected {
23
- & > .ck-widget__resizer {
24
- display: block;
25
- }
26
- }
27
-
28
- .ck .ck-widget__resizer__handle {
29
- position: absolute;
30
-
31
- /* Resizers are the only UI elements that should interfere with a pointer device. */
32
- pointer-events: all;
33
-
34
- &.ck-widget__resizer__handle-top-left,
35
- &.ck-widget__resizer__handle-bottom-right {
36
- cursor: nwse-resize;
37
- }
38
-
39
- &.ck-widget__resizer__handle-top-right,
40
- &.ck-widget__resizer__handle-bottom-left {
41
- cursor: nesw-resize;
42
- }
43
- }
@@ -1,119 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, 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
- .ck .ck-widget {
7
- /*
8
- * Styles of the type around buttons
9
- */
10
- & .ck-widget__type-around__button {
11
- display: block;
12
- position: absolute;
13
- overflow: hidden;
14
- z-index: var(--ck-z-default);
15
-
16
- & svg {
17
- position: absolute;
18
- top: 50%;
19
- left: 50%;
20
- z-index: calc(var(--ck-z-default) + 2);
21
- }
22
-
23
- &.ck-widget__type-around__button_before {
24
- /* Place it in the middle of the outline */
25
- top: calc(-0.5 * var(--ck-widget-outline-thickness));
26
- left: min(10%, 30px);
27
-
28
- transform: translateY(-50%);
29
- }
30
-
31
- &.ck-widget__type-around__button_after {
32
- /* Place it in the middle of the outline */
33
- bottom: calc(-0.5 * var(--ck-widget-outline-thickness));
34
- right: min(10%, 30px);
35
-
36
- transform: translateY(50%);
37
- }
38
- }
39
-
40
- /*
41
- * Styles for the buttons when:
42
- * - the widget is selected,
43
- * - or the button is being hovered (regardless of the widget state).
44
- */
45
- &.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,
46
- & > .ck-widget__type-around > .ck-widget__type-around__button:hover {
47
- &::after {
48
- content: "";
49
- display: block;
50
- position: absolute;
51
- top: 1px;
52
- left: 1px;
53
- z-index: calc(var(--ck-z-default) + 1);
54
- }
55
- }
56
-
57
- /*
58
- * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.
59
- */
60
- & > .ck-widget__type-around > .ck-widget__type-around__fake-caret {
61
- display: none;
62
- position: absolute;
63
- left: 0;
64
- right: 0;
65
- }
66
-
67
- /*
68
- * When the widget is hovered the "fake caret" would normally be narrower than the
69
- * extra outline displayed around the widget. Let's extend the "fake caret" to match
70
- * the full width of the widget.
71
- */
72
- &:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret {
73
- left: calc( -1 * var(--ck-widget-outline-thickness) );
74
- right: calc( -1 * var(--ck-widget-outline-thickness) );
75
- }
76
-
77
- /*
78
- * Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation).
79
- */
80
- &.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {
81
- top: calc( -1 * var(--ck-widget-outline-thickness) - 1px );
82
- display: block;
83
- }
84
-
85
- /*
86
- * Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation).
87
- */
88
- &.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {
89
- bottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px );
90
- display: block;
91
- }
92
- }
93
-
94
- /*
95
- * Integration with the read-only mode of the editor.
96
- */
97
- .ck.ck-editor__editable.ck-read-only .ck-widget__type-around {
98
- display: none;
99
- }
100
-
101
- /*
102
- * Integration with the #isEnabled property of the WidgetTypeAround plugin.
103
- */
104
- .ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around {
105
- display: none;
106
- }
107
-
108
- /*
109
- * Integration with the restricted editing mode (feature) of the editor.
110
- */
111
- .ck.ck-editor__editable.ck-restricted-editing_mode_restricted {
112
- & .ck-widget__type-around {
113
- display: none;
114
- }
115
-
116
- & div.restricted-editing-exception .ck-widget__type-around {
117
- display: initial;
118
- }
119
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes