@sanity/google-maps-input 3.0.0-v3-studio.6 → 3.0.0-v3-studio.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/lib/index.esm.js +2 -0
- package/lib/index.esm.js.map +1 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -0
- package/lib/src/index.d.ts +73 -0
- package/package.json +68 -63
- package/sanity.json +8 -0
- package/src/index.ts +10 -0
- package/src/{index.tsx → plugin.tsx} +2 -9
- package/v2-incompatible.js +10 -0
- package/lib/cjs/index.js +0 -899
- package/lib/cjs/index.js.map +0 -1
- package/lib/esm/index.js +0 -889
- package/lib/esm/index.js.map +0 -1
- package/lib/types/index.d.ts +0 -41
- package/lib/types/index.d.ts.map +0 -1
package/src/index.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import GeopointInput, {GeopointInputProps} from './input/GeopointInput'
|
|
2
|
+
|
|
3
|
+
export {GeopointArrayDiff, type DiffProps as GeopointArrayDiffProps} from './diff/GeopointArrayDiff'
|
|
4
|
+
export {GeopointFieldDiff, type DiffProps as GeopointFieldDiffProps} from './diff/GeopointFieldDiff'
|
|
5
|
+
|
|
6
|
+
export type {LatLng, GeopointSchemaType, Geopoint} from './types'
|
|
7
|
+
export {GeopointInput}
|
|
8
|
+
export type {GeopointInputProps}
|
|
9
|
+
|
|
10
|
+
export {googleMapsInput, type GoogleMapsInputConfig} from './plugin'
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import {definePlugin, SchemaType} from 'sanity'
|
|
3
3
|
import GeopointInput, {GeopointInputProps} from './input/GeopointInput'
|
|
4
4
|
import {setGeoConfig} from './global-workaround'
|
|
5
5
|
import {GeopointSchemaType} from './types'
|
|
6
6
|
|
|
7
|
-
export {GeopointArrayDiff, type DiffProps as GeopointArrayDiffProps} from './diff/GeopointArrayDiff'
|
|
8
|
-
export {GeopointFieldDiff, type DiffProps as GeopointFieldDiffProps} from './diff/GeopointFieldDiff'
|
|
9
|
-
|
|
10
|
-
export type {LatLng, GeopointSchemaType, Geopoint} from './types'
|
|
11
|
-
export {GeopointInput}
|
|
12
|
-
export type {GeopointInputProps}
|
|
13
|
-
|
|
14
7
|
export interface GoogleMapsInputConfig {
|
|
15
8
|
apiKey: string
|
|
16
9
|
defaultZoom?: number
|
|
@@ -21,7 +14,7 @@ export interface GoogleMapsInputConfig {
|
|
|
21
14
|
}
|
|
22
15
|
}
|
|
23
16
|
|
|
24
|
-
export const googleMapsInput =
|
|
17
|
+
export const googleMapsInput = definePlugin<GoogleMapsInputConfig>((config) => {
|
|
25
18
|
setGeoConfig(config)
|
|
26
19
|
return {
|
|
27
20
|
name: 'google-maps-input',
|