Merge branch 'main' into next

This commit is contained in:
Daniel Lautzenheiser
2023-06-14 10:40:16 -04:00
6 changed files with 32 additions and 7 deletions
packages
core
dev-test
src/widgets/map
demo
docs/content
yarn.lock

@ -586,6 +586,16 @@ collections:
widget: map
pattern: ['\[-([7-9][0-9]|1[0-2][0-9])\.', 'Must be between latitude -70 and -129']
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
label: Markdown
file: _widgets/markdown.json

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

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

@ -586,6 +586,16 @@ collections:
widget: map
pattern: ['\[-([7-9][0-9]|1[0-2][0-9])\.', 'Must be between latitude -70 and -129']
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
label: Markdown
file: _widgets/markdown.json

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