@contentful/field-editor-location 1.3.37 → 1.3.38

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.
@@ -8,9 +8,9 @@ Object.defineProperty(exports, "GoogleMapView", {
8
8
  return GoogleMapView;
9
9
  }
10
10
  });
11
- const _react = _interop_require_wildcard(require("react"));
11
+ const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
12
12
  const _emotion = require("emotion");
13
- const _googlemapreact = _interop_require_default(require("google-map-react"));
13
+ const _googlemapreact = /*#__PURE__*/ _interop_require_default(require("google-map-react"));
14
14
  function _define_property(obj, key, value) {
15
15
  if (key in obj) {
16
16
  Object.defineProperty(obj, key, {
@@ -114,8 +114,7 @@ class GoogleMapView extends _react.Component {
114
114
  }));
115
115
  }
116
116
  constructor(props){
117
- super(props);
118
- _define_property(this, "onGoogleApiLoaded", (event)=>{
117
+ super(props), _define_property(this, "onGoogleApiLoaded", (event)=>{
119
118
  const { maps, map } = event;
120
119
  const marker = new maps.Marker({
121
120
  map,
@@ -16,10 +16,10 @@ _export(exports, {
16
16
  return LocationEditorConnected;
17
17
  }
18
18
  });
19
- const _react = _interop_require_wildcard(require("react"));
19
+ const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
20
20
  const _fieldeditorshared = require("@contentful/field-editor-shared");
21
- const _isNumber = _interop_require_default(require("lodash/isNumber"));
22
- const _throttle = _interop_require_default(require("lodash/throttle"));
21
+ const _isNumber = /*#__PURE__*/ _interop_require_default(require("lodash/isNumber"));
22
+ const _throttle = /*#__PURE__*/ _interop_require_default(require("lodash/throttle"));
23
23
  const _GoogleMapView = require("./GoogleMapView");
24
24
  const _LocationSelector = require("./LocationSelector");
25
25
  const _types = require("./types");
@@ -130,8 +130,7 @@ class LocationEditor extends _react.Component {
130
130
  }));
131
131
  }
132
132
  constructor(props){
133
- super(props);
134
- _define_property(this, "onSearchAddress", (0, _throttle.default)((value)=>{
133
+ super(props), _define_property(this, "onSearchAddress", (0, _throttle.default)((value)=>{
135
134
  if (!this.state.mapsObject) {
136
135
  return Promise.resolve(null);
137
136
  }
@@ -147,8 +146,7 @@ class LocationEditor extends _react.Component {
147
146
  resolve(null);
148
147
  });
149
148
  });
150
- }, 300));
151
- _define_property(this, "onGetAddressFromLocation", (location, value)=>{
149
+ }, 300)), _define_property(this, "onGetAddressFromLocation", (location, value)=>{
152
150
  if (!this.state.mapsObject || !location) {
153
151
  return Promise.resolve('');
154
152
  }
@@ -8,9 +8,9 @@ Object.defineProperty(exports, "LocationSearchInput", {
8
8
  return LocationSearchInput;
9
9
  }
10
10
  });
11
- const _react = _interop_require_wildcard(require("react"));
11
+ const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
12
12
  const _f36components = require("@contentful/f36-components");
13
- const _f36tokens = _interop_require_default(require("@contentful/f36-tokens"));
13
+ const _f36tokens = /*#__PURE__*/ _interop_require_default(require("@contentful/f36-tokens"));
14
14
  const _emotion = require("emotion");
15
15
  function _interop_require_default(obj) {
16
16
  return obj && obj.__esModule ? obj : {
@@ -8,9 +8,9 @@ Object.defineProperty(exports, "LocationSelector", {
8
8
  return LocationSelector;
9
9
  }
10
10
  });
11
- const _react = _interop_require_wildcard(require("react"));
11
+ const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
12
12
  const _f36components = require("@contentful/f36-components");
13
- const _f36tokens = _interop_require_default(require("@contentful/f36-tokens"));
13
+ const _f36tokens = /*#__PURE__*/ _interop_require_default(require("@contentful/f36-tokens"));
14
14
  const _emotion = require("emotion");
15
15
  const _LocationSearchInput = require("./LocationSearchInput");
16
16
  const _types = require("./types");
package/dist/cjs/types.js CHANGED
@@ -8,8 +8,8 @@ Object.defineProperty(exports, "ViewType", {
8
8
  return ViewType;
9
9
  }
10
10
  });
11
- var ViewType;
12
- (function(ViewType) {
11
+ var ViewType = /*#__PURE__*/ function(ViewType) {
13
12
  ViewType["Address"] = "Address";
14
13
  ViewType["Coordinates"] = "Coordinates";
15
- })(ViewType || (ViewType = {}));
14
+ return ViewType;
15
+ }({});
@@ -58,8 +58,7 @@ export class GoogleMapView extends React.Component {
58
58
  }));
59
59
  }
60
60
  constructor(props){
61
- super(props);
62
- _define_property(this, "onGoogleApiLoaded", (event)=>{
61
+ super(props), _define_property(this, "onGoogleApiLoaded", (event)=>{
63
62
  const { maps, map } = event;
64
63
  const marker = new maps.Marker({
65
64
  map,
@@ -66,8 +66,7 @@ export class LocationEditor extends React.Component {
66
66
  }));
67
67
  }
68
68
  constructor(props){
69
- super(props);
70
- _define_property(this, "onSearchAddress", throttle((value)=>{
69
+ super(props), _define_property(this, "onSearchAddress", throttle((value)=>{
71
70
  if (!this.state.mapsObject) {
72
71
  return Promise.resolve(null);
73
72
  }
@@ -83,8 +82,7 @@ export class LocationEditor extends React.Component {
83
82
  resolve(null);
84
83
  });
85
84
  });
86
- }, 300));
87
- _define_property(this, "onGetAddressFromLocation", (location, value)=>{
85
+ }, 300)), _define_property(this, "onGetAddressFromLocation", (location, value)=>{
88
86
  if (!this.state.mapsObject || !location) {
89
87
  return Promise.resolve('');
90
88
  }
package/dist/esm/types.js CHANGED
@@ -1,5 +1,5 @@
1
- export var ViewType;
2
- (function(ViewType) {
1
+ export var ViewType = /*#__PURE__*/ function(ViewType) {
3
2
  ViewType["Address"] = "Address";
4
3
  ViewType["Coordinates"] = "Coordinates";
5
- })(ViewType || (ViewType = {}));
4
+ return ViewType;
5
+ }({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-location",
3
- "version": "1.3.37",
3
+ "version": "1.3.38",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "@contentful/f36-components": "^4.70.0",
37
37
  "@contentful/f36-tokens": "^4.0.5",
38
- "@contentful/field-editor-shared": "^2.4.0",
38
+ "@contentful/field-editor-shared": "^2.4.1",
39
39
  "@types/google-map-react": "2.1.10",
40
40
  "emotion": "^10.0.17",
41
41
  "google-map-react": "2.2.1",
@@ -50,5 +50,5 @@
50
50
  "publishConfig": {
51
51
  "registry": "https://npm.pkg.github.com/"
52
52
  },
53
- "gitHead": "acf662acf17e749090975671bf14ce107ac9c499"
53
+ "gitHead": "1d0dc6dc10cf4ad43aa48b04fa67d29ab7edaee8"
54
54
  }