@sanity/google-maps-input
6.1.96.1.10
dist/index.js~
dist/index.jsModified+4−2
Index: package/dist/index.js
===================================================================
--- package/dist/index.js
+++ package/dist/index.js
@@ -1,16 +1,18 @@
import "@sanity/google-maps-input/bundle.css";
+import "@sanity/ui/styles.css";
import { c } from "react/compiler-runtime";
import { ChangeIndicator, DiffFromTo, definePlugin, set, setIfMissing, unset } from "sanity";
import { ImageIcon } from "@sanity/icons/Image";
-import { Box, Button, Card, Code, Dialog, Flex, Grid, Label, Spinner, Stack, Text, TextInput } from "@sanity/ui";
+import { Box, Button, Card, Dialog, Flex, Grid, Label, Spinner, Stack, Text, TextInput } from "@sanity/ui";
import { createContext, use, useEffect, useId, useRef, useState } from "react";
import { APILoadingStatus, APIProvider, AdvancedMarker, Circle, ControlPosition, Map, MapControl, StaticMap, createStaticMapsUrl, useApiLoadingStatus, useMap, useMapsLibrary } from "@vis.gl/react-google-maps";
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
import { EditIcon } from "@sanity/icons/Edit";
import { TrashIcon } from "@sanity/icons/Trash";
import { ErrorOutlineIcon } from "@sanity/icons/ErrorOutline";
import { WarningOutlineIcon } from "@sanity/icons/WarningOutline";
+import { Code } from "@sanity/ui/code";
const METERS_PER_DEGREE = 111e3;
function lngMetersPerDegree(lat) {
return METERS_PER_DEGREE * Math.max(Math.cos(lat * Math.PI / 180), .01);
}
@@ -828,9 +830,9 @@
return !currentState;
}
const googleMapsInput = definePlugin((config) => ({
name: "google-maps-input",
- studio: { components: { activeToolLayout: function(props) {
+ studio: { components: { activeToolLayout: function GoogleMapsInputContextProvider(props) {
return /* @__PURE__ */ jsx(GoogleMapsInputContext, {
value: config,
children: props.renderDefault(props)
});