umberto 10.7.3 → 10.7.4
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 +7 -8
- package/package.json +1 -1
- package/scripts/filter/after-post-render/process-variables.cjs +0 -1
- package/scripts/helper/mark-empty-categories.cjs +0 -1
- package/scripts/utils/markdown-it-toc-and-anchor.cjs +5 -7
- package/scripts/utils/pug-to-xml-binding/render-xml-pug-components-in-markdown.cjs +1 -1
- package/src/api-builder/utils/findtargetdoclet.js +1 -1
- package/src/data-converter/converters/jsduck2umberto.js +2 -2
- package/src/data-converter/data-collection.js +0 -1
- package/src/data-converter/doclet-collection.js +0 -1
- package/src/tasks/get-project-config.js +1 -1
- package/themes/umberto/layout/gloria/_modules/kapa/custom_kapa_styles.css +8 -3
- package/themes/umberto/src/gloria/js/components/fake-devtools.js +3 -3
- package/themes/umberto/src/umberto/js/_apitree.js +1 -1
- package/themes/umberto/src/umberto/js/_pagenavigation.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
## [10.7.4](https://github.com/cksource/umberto/compare/v10.7.3...v10.7.4) (July 27, 2026)
|
|
5
|
+
|
|
6
|
+
### Other changes
|
|
7
|
+
|
|
8
|
+
* This release does not include any user-facing changes. It was published solely to verify the release process.
|
|
9
|
+
|
|
10
|
+
|
|
4
11
|
## [10.7.3](https://github.com/cksource/umberto/compare/v10.7.2...v10.7.3) (July 22, 2026)
|
|
5
12
|
|
|
6
13
|
### Bug fixes
|
|
@@ -41,14 +48,6 @@ Changelog
|
|
|
41
48
|
|
|
42
49
|
* The tabbed content component now sets a `data-tab-label` attribute on each tab panel, carrying the label of its tab. This exposes the label to tools that process the rendered HTML, where it otherwise lives only inside the tab button.
|
|
43
50
|
|
|
44
|
-
|
|
45
|
-
## [10.6.1](https://github.com/cksource/umberto/compare/v10.6.0...v10.6.1) (June 18, 2026)
|
|
46
|
-
|
|
47
|
-
### Other changes
|
|
48
|
-
|
|
49
|
-
* Updated homepage link.
|
|
50
|
-
* Restored the web-based Google Tag Manager snippets in both Gloria and legacy Umberto themes.
|
|
51
|
-
|
|
52
51
|
---
|
|
53
52
|
|
|
54
53
|
To see all releases, visit the [release page](https://github.com/cksource/umberto/releases).
|
package/package.json
CHANGED
|
@@ -200,8 +200,6 @@ module.exports = function markdownItTocAndAnchor( md, options ) {
|
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
const tocArray = [];
|
|
203
|
-
let tocMarkdown = '';
|
|
204
|
-
let tocTokens = [];
|
|
205
203
|
|
|
206
204
|
const slugifyFn = typeof options.slugify === 'function' ? options.slugify : defaultSlugify;
|
|
207
205
|
|
|
@@ -242,8 +240,8 @@ module.exports = function markdownItTocAndAnchor( md, options ) {
|
|
|
242
240
|
} );
|
|
243
241
|
}
|
|
244
242
|
|
|
245
|
-
tocMarkdown = generateTocMarkdownFromArray( tocArray, options );
|
|
246
|
-
tocTokens = markdownItSecondInstance.parse( tocMarkdown, {} );
|
|
243
|
+
const tocMarkdown = generateTocMarkdownFromArray( tocArray, options );
|
|
244
|
+
const tocTokens = markdownItSecondInstance.parse( tocMarkdown, {} );
|
|
247
245
|
|
|
248
246
|
if ( typeof tocTokens[ 0 ] === 'object' && tocTokens[ 0 ].type === 'bullet_list_open' ) {
|
|
249
247
|
const attrs = ( tocTokens[ 0 ].attrs = tocTokens[ 0 ].attrs || [] );
|
|
@@ -280,11 +278,11 @@ module.exports = function markdownItTocAndAnchor( md, options ) {
|
|
|
280
278
|
return false;
|
|
281
279
|
}
|
|
282
280
|
|
|
283
|
-
|
|
281
|
+
const token = state.push( 'toc_open', 'toc', 1 );
|
|
284
282
|
|
|
285
283
|
token.markup = TOC;
|
|
286
|
-
|
|
287
|
-
|
|
284
|
+
state.push( 'toc_body', '', 0 );
|
|
285
|
+
state.push( 'toc_close', 'toc', -1 );
|
|
288
286
|
|
|
289
287
|
state.pos += match[ 0 ].length;
|
|
290
288
|
|
|
@@ -65,7 +65,7 @@ export function findTargetDoclet( docletCollection, options ) {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
if ( collection.isEmpty ) {
|
|
68
|
-
const typedefCollection =
|
|
68
|
+
const typedefCollection = docletCollection.get( `ln:${ structure }` );
|
|
69
69
|
|
|
70
70
|
if ( typedefCollection.isEmpty ) {
|
|
71
71
|
return null;
|
|
@@ -71,13 +71,13 @@ const keyNameMap = {
|
|
|
71
71
|
* @returns {Array}
|
|
72
72
|
*/
|
|
73
73
|
export const jsduck2umberto = data => {
|
|
74
|
-
let parsed
|
|
74
|
+
let parsed;
|
|
75
75
|
const doclets = [];
|
|
76
76
|
|
|
77
77
|
try {
|
|
78
78
|
parsed = JSON.parse( data );
|
|
79
79
|
} catch ( err ) {
|
|
80
|
-
throw new Error( `Failed to convert JSDuck docs to Umberto format. ${ err.stack }
|
|
80
|
+
throw new Error( `Failed to convert JSDuck docs to Umberto format. ${ err.stack }`, { cause: err } );
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
const mainDoclet = parsed;
|
|
@@ -137,7 +137,7 @@ function getConfigurationFile( configPath ) {
|
|
|
137
137
|
// The configuration file should be a proper JSON object.
|
|
138
138
|
return JSON.parse( fs.readFileSync( configPath, 'utf8' ) );
|
|
139
139
|
} catch ( err ) {
|
|
140
|
-
throw new Error( 'Error when reading umberto.json: ' + err );
|
|
140
|
+
throw new Error( 'Error when reading umberto.json: ' + err, { cause: err } );
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2017-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md.
|
|
4
|
+
*/
|
|
5
|
+
|
|
1
6
|
/* Style for the floating button. */
|
|
2
7
|
#kapa-button div > img + p {
|
|
3
8
|
position: relative;
|
|
@@ -11,9 +16,9 @@
|
|
|
11
16
|
|
|
12
17
|
/* Style for hyperlinks inside the AI's answer. */
|
|
13
18
|
#kapa-modal-content
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
19
|
+
.scrollable-container
|
|
20
|
+
.mantine-Title-root + div
|
|
21
|
+
a
|
|
17
22
|
{
|
|
18
23
|
font-weight: normal !important;
|
|
19
24
|
color: #743CCD !important;
|
|
@@ -570,7 +570,7 @@ class ObjectViewer extends HTMLElement {
|
|
|
570
570
|
}
|
|
571
571
|
|
|
572
572
|
createObjectPreview( data, isArray ) {
|
|
573
|
-
let previewContent
|
|
573
|
+
let previewContent;
|
|
574
574
|
|
|
575
575
|
if ( isArray ) {
|
|
576
576
|
previewContent = html.span( { class: 'c-object-viewer__preview' },
|
|
@@ -640,8 +640,8 @@ class ObjectViewer extends HTMLElement {
|
|
|
640
640
|
}
|
|
641
641
|
|
|
642
642
|
formatPrimitiveValue( value ) {
|
|
643
|
-
let className
|
|
644
|
-
let textContent
|
|
643
|
+
let className;
|
|
644
|
+
let textContent;
|
|
645
645
|
|
|
646
646
|
switch ( typeof value ) {
|
|
647
647
|
case 'string':
|
|
@@ -44,7 +44,7 @@ export function scrollApiTree() {
|
|
|
44
44
|
const sideNavScrollTop = Number( window.localStorage.getItem( storageKey ) );
|
|
45
45
|
const activeTreeItemClass = 'tree__item__wrapper--active';
|
|
46
46
|
const activeTreeItem = $( `div.side-navigation .${ activeTreeItemClass }` );
|
|
47
|
-
let activeTreeItemTop
|
|
47
|
+
let activeTreeItemTop;
|
|
48
48
|
const bound = 50; // Offset from top and bottom of side nav.
|
|
49
49
|
|
|
50
50
|
if ( activeTreeItem.length ) {
|