From 0cc1f88746218bc353d3484e3d629b2a4622a7a2 Mon Sep 17 00:00:00 2001 From: Dylan Kelly Date: Wed, 17 Apr 2024 13:40:46 +1000 Subject: [PATCH 1/2] fix(@dpc-sdp/ripple-tide-api): :bug: fix issue with node dependencies in export --- packages/nuxt-ripple/utils/breadcrumbs.ts | 2 +- packages/ripple-tide-api/package.json | 1 + packages/ripple-tide-api/src/helpers.ts | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 packages/ripple-tide-api/src/helpers.ts 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' From 20033df2d9889f3e36b2f0b6ae791d7e449cf6d3 Mon Sep 17 00:00:00 2001 From: Jason Smith Date: Thu, 18 Apr 2024 10:58:53 +1000 Subject: [PATCH 2/2] fix: :bug: import from new endpoint --- .../nuxt-app/components/global/VsbaMapPopupContent.vue | 2 +- examples/nuxt-app/mock-routes.json | 2 +- examples/nuxt-app/package.json | 1 + packages/nuxt-ripple-cli/src/commands/favicon/index.ts | 1 - .../global/TideLandingPage/ContentCollection.vue | 2 +- .../ripple-tide-search/components/TideSearchPage.vue | 2 +- .../ripple-tide-search/composables/useSearchResult.ts | 2 +- packages/ripple-tide-search/pages/search.vue | 2 +- pnpm-lock.yaml | 9 ++++++--- tsconfig.json | 1 + 10 files changed, 14 insertions(+), 10 deletions(-) diff --git a/examples/nuxt-app/components/global/VsbaMapPopupContent.vue b/examples/nuxt-app/components/global/VsbaMapPopupContent.vue index 295734c5a4..aeedc32a0c 100644 --- a/examples/nuxt-app/components/global/VsbaMapPopupContent.vue +++ b/examples/nuxt-app/components/global/VsbaMapPopupContent.vue @@ -25,7 +25,7 @@