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
@@ -19,7 +19,7 @@ class HandoffCliError extends Error {
19
19
  * Show the help message
20
20
  */
21
21
  const showVersion = () => {
22
- return 'Handoff App - 1.0.5';
22
+ return 'Handoff App - 1.0.6';
23
23
  };
24
24
  /**
25
25
  * Define a CLI error
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "handoff-app",
3
- "version": "1.0.5",
3
+ "version": "1.0.6-canary.0",
4
4
  "description": "Automated documentation toolchain for building client side documentation from figma",
5
5
  "author ": {
6
6
  "name": "Convertiv",
@@ -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}/system/component/${component.id}`, title });
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}/system/tokens/foundations`,
329
+ path: `${basePath}system/tokens/foundations`,
330
330
  menu: [
331
331
  {
332
332
  title: `Colors`,
333
- path: `${basePath}/system/tokens/foundations/colors`,
333
+ path: `${basePath}system/tokens/foundations/colors`,
334
334
  },
335
335
  {
336
336
  title: `Effects`,
337
- path: `${basePath}/system/tokens/foundations/effects`,
337
+ path: `${basePath}system/tokens/foundations/effects`,
338
338
  },
339
339
  {
340
340
  title: `Typography`,
341
- path: `${basePath}/system/tokens/foundations/typography`,
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}/system/tokens/components/${component.id}`, title });
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}/system/tokens/components`,
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}/system/tokens`,
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 ? '/system/component/' + previousComponent.id : null,
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: '/system/component/' + nextComponent.id,
122
+ href: `${process.env.HANDOFF_APP_BASE_PATH ?? ''}system/component/${nextComponent.id}`,
123
123
  title: nextComponent.name,
124
124
  } : null;
125
125
 
package/src/cli.ts CHANGED
@@ -19,7 +19,7 @@ class HandoffCliError extends Error {
19
19
  * Show the help message
20
20
  */
21
21
  const showVersion = () => {
22
- return 'Handoff App - 1.0.5';
22
+ return 'Handoff App - 1.0.6';
23
23
  };
24
24
 
25
25
  /**