umberto 10.4.1 → 10.5.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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ## [10.5.0](https://github.com/cksource/umberto/compare/v10.4.1...v10.5.0) (April 14, 2026)
5
+
6
+ ### Features
7
+
8
+ * Added the Call for feedback component for documentation pages.
9
+
10
+
4
11
  ## [10.4.1](https://github.com/cksource/umberto/compare/v10.4.0...v10.4.1) (April 13, 2026)
5
12
 
6
13
  ### Bug fixes
@@ -40,13 +47,6 @@ Changelog
40
47
  * Added cyan LTS banner at the top of the page on LTS branch.
41
48
  * Updated the colour of nightly banner to yellow.
42
49
 
43
-
44
- ## [10.1.4](https://github.com/cksource/umberto/compare/v10.1.3...v10.1.4) (March 20, 2026)
45
-
46
- ### Other changes
47
-
48
- * Filter search results from Algolia to match the current docs version: `latest` or `lts-v47`. Filtering remains backward-compatible: hits without the docs version are still allowed.
49
-
50
50
  ---
51
51
 
52
52
  To see all releases, visit the [release page](https://github.com/cksource/umberto/releases).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umberto",
3
- "version": "10.4.1",
3
+ "version": "10.5.0",
4
4
  "description": "CKSource Documentation builder",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license Copyright (c) 2017-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md.
4
+ */
5
+
6
+ 'use strict';
7
+
8
+ const countCallForFeedbackBlocks = require( '../../../utils/count-call-for-feedback-blocks.cjs' );
9
+
10
+ hexo.extend.filter.register( 'after_post_render', page => {
11
+ if ( page.projectTheme !== 'gloria' || typeof page.content !== 'string' ) {
12
+ return page;
13
+ }
14
+
15
+ const count = countCallForFeedbackBlocks( page.content );
16
+
17
+ if ( count > 1 ) {
18
+ throw new Error(
19
+ `Call for feedback: expected at most one <ck:call-for-feedback /> per page, found ${ count } in ${ page.source }.`
20
+ );
21
+ }
22
+
23
+ return page;
24
+ }, 47 );
@@ -144,6 +144,16 @@ const PATTERN_ELEMENTS = [
144
144
  ]
145
145
  },
146
146
 
147
+ // Call for feedback
148
+ {
149
+ pattern: /^(?:ck:)?call-for-feedback$/,
150
+ mixinName: 'call-for-feedback',
151
+ allowMarkdownContent: false,
152
+ requires: [
153
+ '_components/call-for-feedback/index'
154
+ ]
155
+ },
156
+
147
157
  // Labels
148
158
  {
149
159
  pattern: /(?:ck:)?snippet-footer$/,
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @license Copyright (c) 2017-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md.
4
+ */
5
+
6
+ 'use strict';
7
+
8
+ const { parseDocument } = require( 'htmlparser2' );
9
+ const { selectAll } = require( 'css-select' );
10
+
11
+ /**
12
+ * Counts rendered Call for feedback blocks (`aside.c-call-for-feedback`) in HTML.
13
+ *
14
+ * @param {string} html
15
+ * @returns {number}
16
+ */
17
+ function countCallForFeedbackBlocks( html ) {
18
+ if ( !html || typeof html !== 'string' ) {
19
+ return 0;
20
+ }
21
+
22
+ const doc = parseDocument( html );
23
+
24
+ return selectAll( 'aside.c-call-for-feedback', doc ).length;
25
+ }
26
+
27
+ module.exports = countCallForFeedbackBlocks;
@@ -0,0 +1,47 @@
1
+ .c-call-for-feedback {
2
+ box-sizing: border-box;
3
+ display: flex;
4
+ flex-direction: column;
5
+ align-items: flex-start;
6
+ gap: var(--spacing-2);
7
+ margin: var(--spacing-7) 0 0;
8
+ padding: var(--spacing-4);
9
+ border: 1.5px solid var(--color-primary-300);
10
+ border-radius: var(--radius-1);
11
+ background: var(--color-common-white);
12
+
13
+ &__title {
14
+ margin: 0;
15
+ font-family: var(--font-family-heading);
16
+ font-size: var(--font-size-lg);
17
+ line-height: var(--line-height-sm);
18
+ font-weight: var(--font-weight-bold);
19
+ color: var(--color-primary-500);
20
+ }
21
+
22
+ &__text {
23
+ margin: 0;
24
+ font-family: var(--font-family-text);
25
+ font-weight: var(--font-weight-thin);
26
+ font-size: var(--font-size-base);
27
+ line-height: var(--line-height-base);
28
+ color: var(--color-text-primary);
29
+ }
30
+
31
+ &__link {
32
+ color: var(--color-primary-500);
33
+ text-decoration: underline;
34
+ text-decoration-color: var(--color-primary-300);
35
+ text-underline-offset: 0.15em;
36
+
37
+ &:hover {
38
+ text-decoration-color: var(--color-primary-500);
39
+ }
40
+
41
+ &:focus-visible,
42
+ &:active {
43
+ color: var(--color-primary-600);
44
+ text-decoration-color: var(--color-primary-600);
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,16 @@
1
+ //- Call for feedback component
2
+ //-
3
+ //- Examples:
4
+ //- +call-for-feedback()
5
+ //-
6
+ //- <ck:call-for-feedback />
7
+ //-
8
+ //- <call-for-feedback />
9
+ mixin call-for-feedback()
10
+ //- Stable id: at most one block per page (build fails if more); see validate-call-for-feedback-once.cjs.
11
+ aside.c-call-for-feedback( role='complementary' aria-labelledby='call-for-feedback-title' )
12
+ h3.c-call-for-feedback__title#call-for-feedback-title Call for feedback
13
+ p.c-call-for-feedback__text
14
+ | Have an idea for future improvements? We'd love to hear from you! Share your thoughts and suggestions with us through our&nbsp;
15
+ a.c-call-for-feedback__link( href='https://ckeditor.com/contact/' ) contact form
16
+ | .
@@ -26,6 +26,7 @@ include ./card-learn-more-links/index
26
26
  include ./card/index
27
27
  include ./skeleton/index
28
28
  include ./fake-devtools/index
29
+ include ./call-for-feedback/index
29
30
  include ./iframe/index
30
31
  include ./tag/index
31
32
  include ./columns/index
@@ -35,6 +35,7 @@
35
35
  'card',
36
36
  'skeleton',
37
37
  'fake-devtools',
38
+ 'call-for-feedback',
38
39
  'iframe',
39
40
  'tag',
40
41
  'snippet-footer'