@digipair/skill-web-jsoneditor 0.106.2 → 0.107.2

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/index.cjs.js CHANGED
@@ -41941,7 +41941,7 @@ function findNextOccurrence(state, query) {
41941
41941
  var _loop = function(cycled1, cursor1) {
41942
41942
  cursor1.next();
41943
41943
  if (cursor1.done) {
41944
- if (cycled1) return cycled = cycled1, cursor = cursor1, {
41944
+ if (cycled1) return cursor = cursor1, cycled = cycled1, {
41945
41945
  v: null
41946
41946
  };
41947
41947
  cursor1 = new SearchCursor(state.doc, query, 0, Math.max(0, ranges[ranges.length - 1].from - 1));
@@ -41949,16 +41949,16 @@ function findNextOccurrence(state, query) {
41949
41949
  } else {
41950
41950
  if (cycled1 && ranges.some(function(r) {
41951
41951
  return r.from == cursor1.value.from;
41952
- })) return cycled = cycled1, cursor = cursor1, "continue";
41952
+ })) return cursor = cursor1, cycled = cycled1, "continue";
41953
41953
  if (fullWord) {
41954
41954
  var word = state.wordAt(cursor1.value.from);
41955
- if (!word || word.from != cursor1.value.from || word.to != cursor1.value.to) return cycled = cycled1, cursor = cursor1, "continue";
41955
+ if (!word || word.from != cursor1.value.from || word.to != cursor1.value.to) return cursor = cursor1, cycled = cycled1, "continue";
41956
41956
  }
41957
- return cycled = cycled1, cursor = cursor1, {
41957
+ return cursor = cursor1, cycled = cycled1, {
41958
41958
  v: cursor1.value
41959
41959
  };
41960
41960
  }
41961
- cycled = cycled1, cursor = cursor1;
41961
+ cursor = cursor1, cycled = cycled1;
41962
41962
  };
41963
41963
  var _state_selection = state.selection, main = _state_selection.main, ranges = _state_selection.ranges;
41964
41964
  var word = state.wordAt(main.head), fullWord = word && word.from == main.from && word.to == main.to;
@@ -85125,7 +85125,7 @@ class JsonEditorElement extends r$3 {
85125
85125
  setTimeout(()=>{
85126
85126
  var _this_shadowRoot;
85127
85127
  const target = (_this_shadowRoot = this.shadowRoot) == null ? void 0 : _this_shadowRoot.querySelector('section');
85128
- if (target) {
85128
+ if (target && target.childElementCount === 0) {
85129
85129
  window.__TMP_JSON_EDITOR__ = new Hy({
85130
85130
  target,
85131
85131
  props: {
package/index.esm.js CHANGED
@@ -41937,7 +41937,7 @@ function findNextOccurrence(state, query) {
41937
41937
  var _loop = function(cycled1, cursor1) {
41938
41938
  cursor1.next();
41939
41939
  if (cursor1.done) {
41940
- if (cycled1) return cycled = cycled1, cursor = cursor1, {
41940
+ if (cycled1) return cursor = cursor1, cycled = cycled1, {
41941
41941
  v: null
41942
41942
  };
41943
41943
  cursor1 = new SearchCursor(state.doc, query, 0, Math.max(0, ranges[ranges.length - 1].from - 1));
@@ -41945,16 +41945,16 @@ function findNextOccurrence(state, query) {
41945
41945
  } else {
41946
41946
  if (cycled1 && ranges.some(function(r) {
41947
41947
  return r.from == cursor1.value.from;
41948
- })) return cycled = cycled1, cursor = cursor1, "continue";
41948
+ })) return cursor = cursor1, cycled = cycled1, "continue";
41949
41949
  if (fullWord) {
41950
41950
  var word = state.wordAt(cursor1.value.from);
41951
- if (!word || word.from != cursor1.value.from || word.to != cursor1.value.to) return cycled = cycled1, cursor = cursor1, "continue";
41951
+ if (!word || word.from != cursor1.value.from || word.to != cursor1.value.to) return cursor = cursor1, cycled = cycled1, "continue";
41952
41952
  }
41953
- return cycled = cycled1, cursor = cursor1, {
41953
+ return cursor = cursor1, cycled = cycled1, {
41954
41954
  v: cursor1.value
41955
41955
  };
41956
41956
  }
41957
- cycled = cycled1, cursor = cursor1;
41957
+ cursor = cursor1, cycled = cycled1;
41958
41958
  };
41959
41959
  var _state_selection = state.selection, main = _state_selection.main, ranges = _state_selection.ranges;
41960
41960
  var word = state.wordAt(main.head), fullWord = word && word.from == main.from && word.to == main.to;
@@ -85121,7 +85121,7 @@ class JsonEditorElement extends r$3 {
85121
85121
  setTimeout(()=>{
85122
85122
  var _this_shadowRoot;
85123
85123
  const target = (_this_shadowRoot = this.shadowRoot) == null ? void 0 : _this_shadowRoot.querySelector('section');
85124
- if (target) {
85124
+ if (target && target.childElementCount === 0) {
85125
85125
  window.__TMP_JSON_EDITOR__ = new Hy({
85126
85126
  target,
85127
85127
  props: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-jsoneditor",
3
- "version": "0.106.2",
3
+ "version": "0.107.2",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "web",