@eeacms/volto-arcgis-block 0.1.197 → 0.1.198

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/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ ### [0.1.198](https://github.com/eea/volto-arcgis-block/compare/0.1.197...0.1.198) - 18 September 2023
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - ran linting scripts [ujbolivar - [`8c1f925`](https://github.com/eea/volto-arcgis-block/commit/8c1f925ca7712da160036c9d85e51f1a94080eca)]
12
+ - Bug: Fixed breaking custom map viewer bug [ujbolivar - [`7867924`](https://github.com/eea/volto-arcgis-block/commit/7867924f412266e624ee567ad47cce29b049cc83)]
7
13
  ### [0.1.197](https://github.com/eea/volto-arcgis-block/compare/0.1.196...0.1.197) - 14 September 2023
8
14
 
9
15
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-arcgis-block",
3
- "version": "0.1.197",
3
+ "version": "0.1.198",
4
4
  "description": "volto-arcgis-block: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: CodeSyntax",
@@ -69,6 +69,12 @@ class BookmarkWidget extends React.Component {
69
69
  * This method is executed after the rener method is executed
70
70
  */
71
71
 
72
+ limitMaxLenth() {
73
+ document.querySelector(
74
+ '.esri-bookmarks__authoring-label .esri-input',
75
+ ).maxLength = 150;
76
+ }
77
+
72
78
  async componentDidMount() {
73
79
  await this.loader();
74
80
  this.props.view.ui.add(this.container.current, 'top-right');
@@ -110,13 +116,15 @@ class BookmarkWidget extends React.Component {
110
116
  });
111
117
  }
112
118
  componentDidUpdate() {
113
- let limitMaxLenth = function () {
114
- document.querySelector(
115
- '.esri-bookmarks__authoring-label .esri-input',
116
- ).maxLength = 150;
117
- };
118
- this.Bookmarks.container.addEventListener('keydown', limitMaxLenth);
119
- this.Bookmarks.container.addEventListener('paste', limitMaxLenth);
119
+ this.props.view.when(() => {
120
+ this.Bookmarks.when(() => {
121
+ this.Bookmarks.container.addEventListener(
122
+ 'keydown',
123
+ this.limitMaxLenth,
124
+ );
125
+ this.Bookmarks.container.addEventListener('paste', this.limitMaxLenth);
126
+ });
127
+ });
120
128
  }
121
129
  /**
122
130
  * This method renders the component