diff --git a/packages/nuxt-ripple/utils/breadcrumbs.ts b/packages/nuxt-ripple/utils/breadcrumbs.ts index aade47e545..fe8a6040d2 100644 --- a/packages/nuxt-ripple/utils/breadcrumbs.ts +++ b/packages/nuxt-ripple/utils/breadcrumbs.ts @@ -1,4 +1,4 @@ -import { stripSiteId } from '@dpc-sdp/ripple-tide-api' +import { stripSiteId } from '@dpc-sdp/ripple-tide-api/helpers' // Private helpers function getActivePath(branch, path) { diff --git a/packages/ripple-tide-api/package.json b/packages/ripple-tide-api/package.json index 000677b071..35d26b509a 100644 --- a/packages/ripple-tide-api/package.json +++ b/packages/ripple-tide-api/package.json @@ -12,6 +12,7 @@ "exports": { ".": "./dist/index.js", "./utils": "./dist/utils.js", + "./helpers": "./dist/helpers.js", "./types": "./types.d.ts", "./errors": "./dist/errors/errors.js", "./components": "./dist/nuxt/components", diff --git a/packages/ripple-tide-api/src/helpers.ts b/packages/ripple-tide-api/src/helpers.ts new file mode 100644 index 0000000000..80c99a7778 --- /dev/null +++ b/packages/ripple-tide-api/src/helpers.ts @@ -0,0 +1,6 @@ +export * from './utils/mapping-utils.js' +export { stripSiteId } from './utils/stripSiteId.js' +export { + addAnchorLinksToHTML, + getAnchorLinksFromHTML +} from './utils/anchorLinks.js'