Skip to content

Commit e0f73bc

Browse files
authored
Merge branch 'next' into chore/update-mpapi
2 parents aed3af6 + 62754b9 commit e0f73bc

22 files changed

Lines changed: 98 additions & 82 deletions

examples/iceberg/components/IcebergMap.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ const exportPluginActive = computed({
198198
if (!map.value) {
199199
return
200200
}
201-
return Boolean(getStore(map.value, 'export'))
201+
return getStore(map.value, 'core').usedPlugins.includes('export')
202202
},
203203
set: (value: boolean) => {
204204
if (!map.value) {

package-lock.json

Lines changed: 34 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@
127127
"vite-plugin-checker": "^0.14.1",
128128
"vite-plugin-commonjs": "^0.10.4",
129129
"vite-plugin-kern-extra-icons": "^0.6.1",
130-
"vite-plugin-vue-devtools": "^8.1.2",
130+
"vite-plugin-vue-devtools": "^8.1.3",
131131
"vitest": "^4.1.8",
132132
"vue": "^3.5.38",
133-
"vue-tsc": "^3.3.4",
133+
"vue-tsc": "^3.3.5",
134134
"xml2js": "^0.6.2"
135135
},
136136
"//": "Relevant overrides until the respective packages fix these vulnerable versions themselves.",

src/components/PolarInput.ce.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
:id="`polar-${type}-${value}-${idSuffix}`"
55
v-model="model"
66
:class="`polar-input kern-form-check__${type}`"
7-
:name="value"
7+
:name="name"
88
:value="value"
99
:type="type"
1010
:disabled="disabled"
@@ -23,6 +23,7 @@
2323
// eslint-disable-next-line @typescript-eslint/no-unused-vars
2424
const props = defineProps<{
2525
idSuffix: string
26+
name: string
2627
type: T
2728
value: string
2829
disabled?: boolean

src/core/components/PolarContainer.ce.vue

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,15 @@ import {
4141
watch,
4242
} from 'vue'
4343
44-
import type { MapConfiguration, MasterportalApiServiceRegister } from '../types'
45-
4644
import { useT } from '../composables/useT'
4745
import { useCoreStore } from '../stores'
4846
import { useMainStore } from '../stores/main'
4947
import { useMoveHandleStore } from '../stores/moveHandle'
48+
import {
49+
CoreId,
50+
type MapConfiguration,
51+
type MasterportalApiServiceRegister,
52+
} from '../types'
5053
import { loadKern } from '../utils/loadKern'
5154
import { teardownMarkers } from '../utils/map/setupMarkers'
5255
import { mapZoomOffset } from '../utils/mapZoomOffset'
@@ -76,10 +79,10 @@ const overlay =
7679
7780
const isMacOS = navigator.userAgent.indexOf('Mac') !== -1
7881
const noCommandOnZoom = useT(() =>
79-
t(($) => $.overlay.noCommandOnZoom, { ns: 'core' })
82+
t(($) => $.overlay.noCommandOnZoom, { ns: CoreId })
8083
)
8184
const noControlOnZoom = useT(() =>
82-
t(($) => $.overlay.noControlOnZoom, { ns: 'core' })
85+
t(($) => $.overlay.noControlOnZoom, { ns: CoreId })
8386
)
8487
8588
function wheelEffect(event: WheelEvent) {
@@ -95,7 +98,7 @@ function wheelEffect(event: WheelEvent) {
9598
}
9699
97100
const oneFingerPan = useT(() =>
98-
t(($) => $.overlay.oneFingerPan, { ns: 'core' })
101+
t(($) => $.overlay.oneFingerPan, { ns: CoreId })
99102
)
100103
let hammer: { destroy: () => void } | null = null
101104
function updateListeners() {

src/core/components/PolarMap.ce.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
class="polar-map"
55
tabindex="0"
66
role="region"
7-
:aria-label="$t(($) => $.canvas.label, { ns: 'core' })"
7+
:aria-label="$t(($) => $.canvas.label, { ns: CoreId })"
88
@wheel="(e) => $emit('wheel', e)"
99
/>
1010
</template>
@@ -19,6 +19,7 @@ import { storeToRefs } from 'pinia'
1919
import { markRaw, onBeforeUnmount, onMounted, useTemplateRef, watch } from 'vue'
2020
2121
import { useMainStore } from '../stores/main'
22+
import { CoreId } from '../types'
2223
import { checkServiceAvailability } from '../utils/checkServiceAvailability'
2324
import { createKeyboardInteractions } from '../utils/interactions'
2425
import { setupMarkers } from '../utils/map/setupMarkers'

src/core/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ export * from './types/moveHandle'
66
export * from './types/plugin'
77
export * from './types/theme'
88
export * from './types/utils'
9+
10+
export const CoreId = 'core'

src/core/types/locales.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { ResourceKey } from 'i18next'
22

33
import type { BundledPluginId, BundledPluginLocaleResources } from '@/core'
44
import type { resourcesEn as core } from '@/core/locales'
5-
import type { CoreId } from '@/core/vuePlugins/i18next'
5+
import type { CoreId } from '@/core/types'
66

77
/** @internal */
88
export interface Locale {

src/core/utils/checkServiceAvailability.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ import { t } from 'i18next'
33

44
import { notifyUser } from '@/lib/notifyUser'
55

6-
import type {
7-
MapConfiguration,
8-
MasterportalApiServiceRegister,
9-
ServiceAvailabilityCheck,
6+
import {
7+
CoreId,
8+
type MapConfiguration,
9+
type MasterportalApiServiceRegister,
10+
type ServiceAvailabilityCheck,
1011
} from '../types'
1112

1213
export function checkServiceAvailability(
@@ -44,7 +45,7 @@ export function checkServiceAvailability(
4445
if (statusCode !== 200) {
4546
notifyUser('warning', () =>
4647
t(($) => $.error.serviceUnavailable, {
47-
ns: 'core',
48+
ns: CoreId,
4849
serviceId,
4950
serviceName,
5051
})

src/core/vuePlugins/i18next.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import LanguageDetector from 'i18next-browser-languagedetector'
55
import I18NextVue from 'i18next-vue'
66

77
import locales from '../locales'
8-
9-
export const CoreId = 'core'
8+
import { CoreId } from '../types'
109

1110
export const I18Next: Plugin = {
1211
async install(app) {

0 commit comments

Comments
 (0)