Merge branch 'main' into next

This commit is contained in:
Daniel Lautzenheiser 2023-06-14 10:40:16 -04:00
commit 16819ed7be
6 changed files with 32 additions and 7 deletions

View File

@ -586,6 +586,16 @@ collections:
widget: map widget: map
pattern: ['\[-([7-9][0-9]|1[0-2][0-9])\.', 'Must be between latitude -70 and -129'] pattern: ['\[-([7-9][0-9]|1[0-2][0-9])\.', 'Must be between latitude -70 and -129']
required: false required: false
- name: line_string
label: Line String
type: LineString
widget: map
required: false
- name: polygon
label: Polygon
type: Polygon
widget: map
required: false
- name: markdown - name: markdown
label: Markdown label: Markdown
file: _widgets/markdown.json file: _widgets/markdown.json

View File

@ -38,7 +38,6 @@ interface WithMapControlProps {
const withMapControl = ({ getFormat, getMap }: WithMapControlProps = {}) => { const withMapControl = ({ getFormat, getMap }: WithMapControlProps = {}) => {
const MapControl: FC<WidgetControlProps<string, MapField>> = ({ const MapControl: FC<WidgetControlProps<string, MapField>> = ({
path,
value, value,
field, field,
onChange, onChange,
@ -84,7 +83,8 @@ const withMapControl = ({ getFormat, getMap }: WithMapControlProps = {}) => {
onChange(format.writeGeometry(geometry, writeOptions)); onChange(format.writeGeometry(geometry, writeOptions));
} }
}); });
}, [disabled, field, mapContainer, onChange, path, value]); // eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
return ( return (
<Field <Field

View File

@ -32,7 +32,7 @@
"postcss": "8.4.23", "postcss": "8.4.23",
"postcss-scss": "4.0.6", "postcss-scss": "4.0.6",
"prettier": "2.8.8", "prettier": "2.8.8",
"vite": "4.3.5", "vite": "4.3.9",
"vite-plugin-svgr": "3.2.0", "vite-plugin-svgr": "3.2.0",
"webpack": "5.80.0" "webpack": "5.80.0"
}, },

View File

@ -586,6 +586,16 @@ collections:
widget: map widget: map
pattern: ['\[-([7-9][0-9]|1[0-2][0-9])\.', 'Must be between latitude -70 and -129'] pattern: ['\[-([7-9][0-9]|1[0-2][0-9])\.', 'Must be between latitude -70 and -129']
required: false required: false
- name: line_string
label: Line String
type: LineString
widget: map
required: false
- name: polygon
label: Polygon
type: Polygon
widget: map
required: false
- name: markdown - name: markdown
label: Markdown label: Markdown
file: _widgets/markdown.json file: _widgets/markdown.json

View File

@ -1,5 +1,10 @@
{ {
"releases": [ "releases": [
{
"date": "2023-06-14T10:00:00.000Z",
"version": "v2.5.1",
"type": "patch"
},
{ {
"date": "2023-06-13T10:00:00.000Z", "date": "2023-06-13T10:00:00.000Z",
"version": "v2.5.0", "version": "v2.5.0",

View File

@ -17148,10 +17148,10 @@ vite-plugin-svgr@3.2.0:
"@svgr/core" "^7.0.0" "@svgr/core" "^7.0.0"
"@svgr/plugin-jsx" "^7.0.0" "@svgr/plugin-jsx" "^7.0.0"
vite@4.3.5: vite@4.3.9:
version "4.3.5" version "4.3.9"
resolved "https://registry.yarnpkg.com/vite/-/vite-4.3.5.tgz#3871fe0f4b582ea7f49a85386ac80e84826367d9" resolved "https://registry.yarnpkg.com/vite/-/vite-4.3.9.tgz#db896200c0b1aa13b37cdc35c9e99ee2fdd5f96d"
integrity sha512-0gEnL9wiRFxgz40o/i/eTBwm+NEbpUeTWhzKrZDSdKm6nplj+z4lKz8ANDgildxHm47Vg8EUia0aicKbawUVVA== integrity sha512-qsTNZjO9NoJNW7KnOrgYwczm0WctJ8m/yqYAMAK9Lxt4SoySUfS5S8ia9K7JHpa3KEeMfyF8LoJ3c5NeBJy6pg==
dependencies: dependencies:
esbuild "^0.17.5" esbuild "^0.17.5"
postcss "^8.4.23" postcss "^8.4.23"