linear-react-components-ui 1.0.14-beta.1 → 1.0.14-beta.3

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.
@@ -9,7 +9,7 @@
9
9
  // ".gitignore": true,
10
10
  },
11
11
  "editor.codeActionsOnSave": {
12
- "source.fixAll.eslint": true
12
+ "source.fixAll.eslint": "explicit"
13
13
  },
14
14
  "cSpell.words": [
15
15
  "licenca"
@@ -172,14 +172,21 @@ var UiTour = function UiTour(props) {
172
172
  mutationObserver = new MutationObserver(function () {
173
173
  var targetObserved = document.getElementById(initialStep.targetId);
174
174
  if (targetObserved) {
175
+ var _mutationObserver;
175
176
  showStepTour(initialStep);
177
+ (_mutationObserver = mutationObserver) === null || _mutationObserver === void 0 ? void 0 : _mutationObserver.disconnect();
178
+ mutationObserver = null;
176
179
  }
177
180
  });
181
+ mutationObserver.observe(document, {
182
+ subtree: true,
183
+ childList: true
184
+ });
178
185
  }
179
186
  }
180
187
  return function () {
181
- var _mutationObserver;
182
- (_mutationObserver = mutationObserver) === null || _mutationObserver === void 0 ? void 0 : _mutationObserver.disconnect();
188
+ var _mutationObserver2;
189
+ (_mutationObserver2 = mutationObserver) === null || _mutationObserver2 === void 0 ? void 0 : _mutationObserver2.disconnect();
183
190
  mutationObserver = null;
184
191
  };
185
192
  }, [visible, data]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linear-react-components-ui",
3
- "version": "1.0.14-beta.1",
3
+ "version": "1.0.14-beta.3",
4
4
  "description": "Linear Sistemas ReactJs Components",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.cjs",