From 4f7c9c6e06e46b962f3ed41b35d28cfe06c7a35c Mon Sep 17 00:00:00 2001 From: Rory Doak <138574807+RODO94@users.noreply.github.com> Date: Mon, 28 Oct 2024 11:33:51 +0000 Subject: [PATCH] feat: add `hideDrawLabels` to List Map Input (#3855) --- editor.planx.uk/package.json | 2 +- editor.planx.uk/pnpm-lock.yaml | 8 ++++---- .../shared/Schema/InputFields/MapFieldInput.tsx | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/editor.planx.uk/package.json b/editor.planx.uk/package.json index 72ed189a52..28beeb4d1a 100644 --- a/editor.planx.uk/package.json +++ b/editor.planx.uk/package.json @@ -14,7 +14,7 @@ "@mui/lab": "5.0.0-alpha.170", "@mui/material": "^5.15.10", "@mui/utils": "^5.15.11", - "@opensystemslab/map": "1.0.0-alpha.3", + "@opensystemslab/map": "1.0.0-alpha.4", "@opensystemslab/planx-core": "git+https://github.com/theopensystemslab/planx-core#54be9e0", "@tiptap/core": "^2.4.0", "@tiptap/extension-bold": "^2.0.3", diff --git a/editor.planx.uk/pnpm-lock.yaml b/editor.planx.uk/pnpm-lock.yaml index 771b217c4a..87ae1a3022 100644 --- a/editor.planx.uk/pnpm-lock.yaml +++ b/editor.planx.uk/pnpm-lock.yaml @@ -44,8 +44,8 @@ dependencies: specifier: ^5.15.11 version: 5.15.11(@types/react@18.2.45)(react@18.2.0) '@opensystemslab/map': - specifier: 1.0.0-alpha.3 - version: 1.0.0-alpha.3 + specifier: 1.0.0-alpha.4 + version: 1.0.0-alpha.4 '@opensystemslab/planx-core': specifier: git+https://github.com/theopensystemslab/planx-core#54be9e0 version: github.com/theopensystemslab/planx-core/54be9e0(@types/react@18.2.45) @@ -3842,8 +3842,8 @@ packages: resolution: {integrity: sha512-XuySG1E38YScSJoMlqovLru4KTUNSjgVTIjyh7qMX6aNN5HY5Ct5LhRJdxO79JtTzKfzV/bnWpz+zquYrISsvw==} dev: true - /@opensystemslab/map@1.0.0-alpha.3: - resolution: {integrity: sha512-mwOBKiq0DWNOvYv7XiSkTYbBFdoRZD6jXnk1Kh9FPSFeP2FftDDusJzSK25k0rSMd7bqnnQ0O0l7X9hBucBzIg==} + /@opensystemslab/map@1.0.0-alpha.4: + resolution: {integrity: sha512-HNvJkw43hmVqCeXIhZhkuT2YWQEWE/yXKmohATv9TNMRf1e9rOi4JtNg094vrtiZ9L5Od+OfM+8tahlCkV9RNw==} dependencies: '@turf/union': 7.1.0 accessible-autocomplete: 2.0.4 diff --git a/editor.planx.uk/src/@planx/components/shared/Schema/InputFields/MapFieldInput.tsx b/editor.planx.uk/src/@planx/components/shared/Schema/InputFields/MapFieldInput.tsx index 780c9c3729..1698223214 100644 --- a/editor.planx.uk/src/@planx/components/shared/Schema/InputFields/MapFieldInput.tsx +++ b/editor.planx.uk/src/@planx/components/shared/Schema/InputFields/MapFieldInput.tsx @@ -84,6 +84,7 @@ export const MapFieldInput: React.FC> = (props) => { }) } drawMany={mapOptions?.drawMany} + hideDrawLabels={mapOptions?.drawMany} drawColor={mapOptions?.drawColor} drawType={mapOptions?.drawType} drawPointer="crosshair"