Skip to content

Commit

Permalink
Merge pull request #1159 from dpc-sdp/bugfix/broken-maps
Browse files Browse the repository at this point in the history
[R20-1723] - Fixed maps when added to a site after nuxt update
  • Loading branch information
dylankelly authored May 21, 2024
2 parents 550c099 + 730888c commit 8acf85a
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import type {
import { useRippleEvent } from '@dpc-sdp/ripple-ui-core'
import type { rplEventPayload } from '@dpc-sdp/ripple-ui-core'
import { get } from 'lodash-es'
import { useMapDeadSpace } from '@dpc-sdp/ripple-ui-maps'
interface Props {
id: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ import { ref, getSingleResultValue } from '#imports'
import { useDebounceFn } from '@vueuse/core'
import { transformExtent } from 'ol/proj'
import { Extent } from 'ol/extent'
import { fitExtent, fitVictoria } from '@dpc-sdp/ripple-ui-maps'
// TODO must add analytics events
// import { useRippleEvent } from '@dpc-sdp/ripple-ui-core'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ import { get } from 'lodash-es'
import { fromLonLat, transformExtent } from 'ol/proj'
import { Extent } from 'ol/extent'
import { scrollToElementTopWithOffset } from '#imports'
import { fitExtent, fitVictoria } from '@dpc-sdp/ripple-ui-maps'
interface Props {
variant: 'mobile' | 'desktop'
Expand Down
4 changes: 2 additions & 2 deletions packages/ripple-ui-maps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"exports": {
".": "./dist/index.js",
"./vue": "./dist/rpl-lib.es.js",
"./nuxt": "./dist/nuxt/index.js",
"./plugin": "./dist/plugins/register.js",
"./nuxt": "./src/nuxt/index.ts",
"./plugin": "./src/plugins/register.ts",
"./style": "./dist/global.css",
"./style/breakpoints": "./src/styles/_breakpoints.css",
"./style/components": "./dist/style.css"
Expand Down
2 changes: 1 addition & 1 deletion packages/ripple-ui-maps/src/nuxt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default <any>defineNuxtModule({
addImportsDir(resolve('./runtime/utils'))

addPlugin({
src: resolve('./runtime/plugin.js'),
src: resolve('./runtime/plugin.ts'),
mode: 'client'
})
// Adds Ripple UI Maps global styles
Expand Down

0 comments on commit 8acf85a

Please sign in to comment.