umberto 8.3.4 → 8.3.5

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
+ ## [8.3.5](https://github.com/cksource/umberto/compare/v8.3.4...v8.3.5) (October 29, 2025)
5
+
6
+ ### Other changes
7
+
8
+ * Hook scripts now receive the full project configuration object when executed.
9
+
10
+
4
11
  ## [8.3.4](https://github.com/cksource/umberto/compare/v8.3.3...v8.3.4) (October 20, 2025)
5
12
 
6
13
  ### Other changes
@@ -34,14 +41,6 @@ Changelog
34
41
 
35
42
  * Increased size of the modal in `Kapa.ai` integration.
36
43
 
37
-
38
- ## [8.3.0](https://github.com/cksource/umberto/compare/v8.2.0...v8.3.0) (September 2, 2025)
39
-
40
- ### Features
41
-
42
- * Added custom styling for the [Kapa.ai](https://www.kapa.ai/) service.
43
- * The source script of the [Kapa.ai](https://www.kapa.ai/) service must be defined in the `kapa.widgetOptions.src` key in the Umberto configuration.
44
-
45
44
  ---
46
45
 
47
46
  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": "8.3.4",
3
+ "version": "8.3.5",
4
4
  "description": "CKSource Documentation builder",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -34,7 +34,7 @@ module.exports = async function executeHooks( configs, hookName ) {
34
34
  }
35
35
 
36
36
  for ( const scriptPath of config.hooks[ hookName ] ) {
37
- await processSingleHook( upath.dirname( config.__configPath ), scriptPath );
37
+ await processSingleHook( config, scriptPath );
38
38
  }
39
39
  }
40
40
 
@@ -48,17 +48,18 @@ module.exports = async function executeHooks( configs, hookName ) {
48
48
  };
49
49
 
50
50
  /**
51
- * @param {String} configPath
51
+ * @param {Object} config
52
52
  * @param {String} scriptPath
53
53
  * @return {Promise}
54
54
  */
55
- async function processSingleHook( configPath, scriptPath ) {
55
+ async function processSingleHook( config, scriptPath ) {
56
+ const configPath = upath.dirname( config.__configPath );
56
57
  const callbackAbsolutePath = upath.join( configPath, scriptPath );
57
58
 
58
59
  try {
59
60
  const callback = await importModule( callbackAbsolutePath );
60
61
 
61
- await callback();
62
+ await callback( config );
62
63
  } catch ( error ) {
63
64
  // Store a path to the executed file.
64
65
  error._filePath = scriptPath;
@@ -12,7 +12,7 @@ mixin header({ withChooseProject = true, className = '' } = {})
12
12
  .c-header__mobile.l-hide-desktop
13
13
  .c-header__mobile-brand
14
14
  a.b-link.u-display-inline-flex(
15
- title='Go to CKEditor Ecosystem Documentation home page',
15
+ title='Navigate to the CKEditor Ecosystem Documentation homepage',
16
16
  href=relative_url(page.path, 'index.html')
17
17
  )
18
18
  +inline-svg({ file: 'ckeditor-logo', ariaHidden: true, className: 'c-header__brand-logo' })
@@ -39,7 +39,7 @@ mixin header({ withChooseProject = true, className = '' } = {})
39
39
  .c-header__brand-row
40
40
  .c-header__brand-row-selector.u-flex-horizontal.u-align-items-center
41
41
  a.b-link.u-display-inline-flex(
42
- title='Go to CKEditor Ecosystem Documentation home page',
42
+ title='Navigate to the CKEditor Ecosystem Documentation homepage',
43
43
  href=relative_url(page.path, 'index.html')
44
44
  )
45
45
  +inline-svg({ file: 'ckeditor-logo', ariaHidden: true, className: 'c-header__brand-logo' })
@@ -32,7 +32,7 @@
32
32
  text-align: left;
33
33
  font-weight: var(--font-weight-bold);
34
34
  font-family: var(--font-family-heading);
35
- background-color: var(--color-gray-200);
35
+ background-color: var(--color-gray-300);
36
36
  }
37
37
 
38
38
  &-wrapper {
@@ -53,7 +53,8 @@
53
53
  @extend .b-table__row;
54
54
  }
55
55
 
56
- td, th {
56
+ td,
57
+ th {
57
58
  @extend .b-table__cell;
58
59
  }
59
60
 
@@ -61,4 +62,4 @@
61
62
  @extend .b-table__header;
62
63
  }
63
64
  }
64
- }
65
+ }