handoff-app 1.0.5 → 1.0.6-canary.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
|
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
6
6
|
and this project adheres to
|
|
7
7
|
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
8
8
|
|
|
9
|
+
## \[1.0.6] - 2026-02-24
|
|
10
|
+
|
|
11
|
+
Version 1.0.4 fixed an issue when running Handoff in subpaths (eg.
|
|
12
|
+
https://mysite.com/folder/handoff). We discovered a minor bug in that fix that
|
|
13
|
+
causes some menu constructs to work poorly. This release fixes that issue.
|
|
14
|
+
|
|
9
15
|
## \[1.0.5] - 2026-02-19
|
|
10
16
|
|
|
11
17
|
This is a minor improvement release that extends the quickstart released in the
|
package/dist/cli.js
CHANGED
package/package.json
CHANGED
|
@@ -309,7 +309,7 @@ const staticBuildComponentMenu = (type?: boolean | string) => {
|
|
|
309
309
|
if (component.name) {
|
|
310
310
|
title = component.name;
|
|
311
311
|
}
|
|
312
|
-
menuGroup.menu.push({ path: `${basePath}
|
|
312
|
+
menuGroup.menu.push({ path: `${basePath}system/component/${component.id}`, title });
|
|
313
313
|
});
|
|
314
314
|
// sort the menu group by name alphabetical
|
|
315
315
|
menuGroup.menu = menuGroup.menu.sort((a, b) => a.title.localeCompare(b.title));
|
|
@@ -326,19 +326,19 @@ const staticBuildTokensMenu = () => {
|
|
|
326
326
|
const menu = [
|
|
327
327
|
{
|
|
328
328
|
title: `Foundations`,
|
|
329
|
-
path: `${basePath}
|
|
329
|
+
path: `${basePath}system/tokens/foundations`,
|
|
330
330
|
menu: [
|
|
331
331
|
{
|
|
332
332
|
title: `Colors`,
|
|
333
|
-
path: `${basePath}
|
|
333
|
+
path: `${basePath}system/tokens/foundations/colors`,
|
|
334
334
|
},
|
|
335
335
|
{
|
|
336
336
|
title: `Effects`,
|
|
337
|
-
path: `${basePath}
|
|
337
|
+
path: `${basePath}system/tokens/foundations/effects`,
|
|
338
338
|
},
|
|
339
339
|
{
|
|
340
340
|
title: `Typography`,
|
|
341
|
-
path: `${basePath}
|
|
341
|
+
path: `${basePath}system/tokens/foundations/typography`,
|
|
342
342
|
},
|
|
343
343
|
],
|
|
344
344
|
},
|
|
@@ -358,14 +358,14 @@ const staticBuildTokensMenu = () => {
|
|
|
358
358
|
if (component.name) {
|
|
359
359
|
title = component.name;
|
|
360
360
|
}
|
|
361
|
-
componentMenuItems.push({ path: `${basePath}
|
|
361
|
+
componentMenuItems.push({ path: `${basePath}system/tokens/components/${component.id}`, title });
|
|
362
362
|
});
|
|
363
363
|
});
|
|
364
364
|
|
|
365
365
|
if (componentMenuItems.length > 0) {
|
|
366
366
|
menu.push({
|
|
367
367
|
title: `Components`,
|
|
368
|
-
path: `${basePath}
|
|
368
|
+
path: `${basePath}system/tokens/components`,
|
|
369
369
|
menu: componentMenuItems,
|
|
370
370
|
});
|
|
371
371
|
}
|
|
@@ -378,7 +378,7 @@ const staticBuildTokenMenu = () => {
|
|
|
378
378
|
|
|
379
379
|
let subSections = {
|
|
380
380
|
title: 'Tokens',
|
|
381
|
-
path: `${basePath}
|
|
381
|
+
path: `${basePath}system/tokens`,
|
|
382
382
|
menu: [],
|
|
383
383
|
};
|
|
384
384
|
const tokens = getTokens();
|
|
@@ -115,11 +115,11 @@ const GenericComponentPage = ({ menu, metadata, current, id, config, componentHo
|
|
|
115
115
|
};
|
|
116
116
|
|
|
117
117
|
const previousLink = previousComponent ? {
|
|
118
|
-
href: previousComponent ? '
|
|
118
|
+
href: previousComponent ? `${process.env.HANDOFF_APP_BASE_PATH ?? ''}system/component/${previousComponent.id}` : null,
|
|
119
119
|
title: previousComponent ? previousComponent.name : null,
|
|
120
120
|
} : null;
|
|
121
121
|
const nextLink = nextComponent ? {
|
|
122
|
-
href: '
|
|
122
|
+
href: `${process.env.HANDOFF_APP_BASE_PATH ?? ''}system/component/${nextComponent.id}`,
|
|
123
123
|
title: nextComponent.name,
|
|
124
124
|
} : null;
|
|
125
125
|
|