@contentful/field-editor-location 1.3.17 → 1.3.18
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.
|
@@ -18,7 +18,6 @@ _export(exports, {
|
|
|
18
18
|
});
|
|
19
19
|
const _react = _interop_require_wildcard(require("react"));
|
|
20
20
|
const _fieldeditorshared = require("@contentful/field-editor-shared");
|
|
21
|
-
const _deepequal = _interop_require_default(require("deep-equal"));
|
|
22
21
|
const _isNumber = _interop_require_default(require("lodash/isNumber"));
|
|
23
22
|
const _throttle = _interop_require_default(require("lodash/throttle"));
|
|
24
23
|
const _GoogleMapView = require("./GoogleMapView");
|
|
@@ -184,9 +183,6 @@ function LocationEditorConnected(props) {
|
|
|
184
183
|
const googleMapsKey = props.parameters ? props.parameters.instance.googleMapsKey : undefined;
|
|
185
184
|
const [selectedView, setSelectedView] = _react.useState(_types.ViewType.Address);
|
|
186
185
|
return _react.createElement(_fieldeditorshared.FieldConnector, {
|
|
187
|
-
isEqualValues: (value1, value2)=>{
|
|
188
|
-
return (0, _deepequal.default)(value1, value2);
|
|
189
|
-
},
|
|
190
186
|
field: field,
|
|
191
187
|
isInitiallyDisabled: props.isInitiallyDisabled
|
|
192
188
|
}, ({ value, disabled, setValue, externalReset })=>{
|
|
@@ -13,7 +13,6 @@ function _define_property(obj, key, value) {
|
|
|
13
13
|
}
|
|
14
14
|
import * as React from 'react';
|
|
15
15
|
import { FieldConnector } from '@contentful/field-editor-shared';
|
|
16
|
-
import deepEqual from 'deep-equal';
|
|
17
16
|
import isNumber from 'lodash/isNumber';
|
|
18
17
|
import throttle from 'lodash/throttle';
|
|
19
18
|
import { GoogleMapView } from './GoogleMapView';
|
|
@@ -120,9 +119,6 @@ export function LocationEditorConnected(props) {
|
|
|
120
119
|
const googleMapsKey = props.parameters ? props.parameters.instance.googleMapsKey : undefined;
|
|
121
120
|
const [selectedView, setSelectedView] = React.useState(ViewType.Address);
|
|
122
121
|
return React.createElement(FieldConnector, {
|
|
123
|
-
isEqualValues: (value1, value2)=>{
|
|
124
|
-
return deepEqual(value1, value2);
|
|
125
|
-
},
|
|
126
122
|
field: field,
|
|
127
123
|
isInitiallyDisabled: props.isInitiallyDisabled
|
|
128
124
|
}, ({ value, disabled, setValue, externalReset })=>{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-location",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.18",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -35,9 +35,8 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@contentful/f36-components": "^4.0.27",
|
|
37
37
|
"@contentful/f36-tokens": "^4.0.0",
|
|
38
|
-
"@contentful/field-editor-shared": "^1.5.
|
|
38
|
+
"@contentful/field-editor-shared": "^1.5.4",
|
|
39
39
|
"@types/google-map-react": "2.1.7",
|
|
40
|
-
"deep-equal": "2.2.2",
|
|
41
40
|
"emotion": "^10.0.17",
|
|
42
41
|
"google-map-react": "2.2.0",
|
|
43
42
|
"lodash": "^4.17.15"
|
|
@@ -51,5 +50,5 @@
|
|
|
51
50
|
"publishConfig": {
|
|
52
51
|
"registry": "https://npm.pkg.github.com/"
|
|
53
52
|
},
|
|
54
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "f9d4036890841b8d459dd92912f2d410a8ee72f6"
|
|
55
54
|
}
|