ketcher-react 2.18.0-rc.6 → 2.18.0-rc.8

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/dist/index.js CHANGED
@@ -3205,7 +3205,7 @@ function load(struct, options) {
3205
3205
  }));
3206
3206
  }
3207
3207
  } else {
3208
- editor.struct(parsedStruct, method === 'layout' || method === 'toggleExplicitHydrogens');
3208
+ editor.struct(parsedStruct, method === 'layout');
3209
3209
  }
3210
3210
  editor.zoomAccordingContent(parsedStruct);
3211
3211
  isIndigoFunctionCalled = !!method;
@@ -3660,7 +3660,7 @@ var zoom = {
3660
3660
 
3661
3661
  var openHelpLink = function openHelpLink() {
3662
3662
  var _window$open;
3663
- return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.18.0-rc.6\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
3663
+ return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.18.0-rc.8\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
3664
3664
  };
3665
3665
  var help = {
3666
3666
  help: {
@@ -3684,6 +3684,8 @@ var STRUCT_TYPE = {
3684
3684
  };
3685
3685
  var KETCHER_ROOT_NODE_CLASS_NAME = 'Ketcher-root';
3686
3686
  var KETCHER_ROOT_NODE_CSS_SELECTOR = ".".concat(KETCHER_ROOT_NODE_CLASS_NAME);
3687
+ var EditorClassName = 'Ketcher-polymer-editor-root';
3688
+ var KETCHER_MACROMOLECULES_ROOT_NODE_SELECTOR = ".".concat(EditorClassName);
3687
3689
 
3688
3690
  var functionalGroupsLib = {
3689
3691
  'functional-groups': {
@@ -9257,15 +9259,27 @@ var shams = function hasToStringTagShams() {
9257
9259
  return shams$1() && !!Symbol.toStringTag;
9258
9260
  };
9259
9261
 
9262
+ /** @type {import('.')} */
9263
+ var esErrors = Error;
9264
+
9265
+ /** @type {import('./eval')} */
9266
+ var _eval = EvalError;
9267
+
9260
9268
  /** @type {import('./range')} */
9261
9269
  var range = RangeError;
9262
9270
 
9271
+ /** @type {import('./ref')} */
9272
+ var ref = ReferenceError;
9273
+
9263
9274
  /** @type {import('./syntax')} */
9264
9275
  var syntax = SyntaxError;
9265
9276
 
9266
9277
  /** @type {import('./type')} */
9267
9278
  var type = TypeError;
9268
9279
 
9280
+ /** @type {import('./uri')} */
9281
+ var uri = URIError;
9282
+
9269
9283
  var origSymbol = typeof Symbol !== 'undefined' && Symbol;
9270
9284
 
9271
9285
 
@@ -9279,13 +9293,17 @@ var hasSymbols$3 = function hasNativeSymbols() {
9279
9293
  };
9280
9294
 
9281
9295
  var test = {
9296
+ __proto__: null,
9282
9297
  foo: {}
9283
9298
  };
9284
9299
 
9285
9300
  var $Object = Object;
9286
9301
 
9302
+ /** @type {import('.')} */
9287
9303
  var hasProto$1 = function hasProto() {
9288
- return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
9304
+ // @ts-expect-error: TS errors on an inherited property for some reason
9305
+ return { __proto__: test }.foo === test.foo
9306
+ && !(test instanceof $Object);
9289
9307
  };
9290
9308
 
9291
9309
  /* eslint no-invalid-this: 1 */
@@ -9377,14 +9395,26 @@ var call = Function.prototype.call;
9377
9395
  var $hasOwn = Object.prototype.hasOwnProperty;
9378
9396
 
9379
9397
 
9380
- /** @type {(o: {}, p: PropertyKey) => p is keyof o} */
9398
+ /** @type {import('.')} */
9381
9399
  var hasown = functionBind.call(call, $hasOwn);
9382
9400
 
9401
+ var $Error = esErrors;
9402
+
9403
+ var $EvalError = _eval;
9404
+
9383
9405
  var $RangeError = range;
9384
9406
 
9385
- var $SyntaxError$1 = syntax;
9407
+ var $ReferenceError = ref;
9408
+
9409
+ var $SyntaxError = syntax;
9386
9410
 
9387
- var $TypeError$2 = type;
9411
+ var $TypeError = type;
9412
+
9413
+ var $URIError = uri;
9414
+
9415
+ var require$$1 = hasProto$1;
9416
+
9417
+ var hasOwn = hasown;
9388
9418
 
9389
9419
  var undefined$1;
9390
9420
 
@@ -9392,6 +9422,10 @@ var undefined$1;
9392
9422
 
9393
9423
 
9394
9424
 
9425
+
9426
+
9427
+
9428
+
9395
9429
  var $Function = Function;
9396
9430
 
9397
9431
  // eslint-disable-next-line consistent-return
@@ -9411,7 +9445,7 @@ if ($gOPD$1) {
9411
9445
  }
9412
9446
 
9413
9447
  var throwTypeError = function () {
9414
- throw new $TypeError$2();
9448
+ throw new $TypeError();
9415
9449
  };
9416
9450
  var ThrowTypeError = $gOPD$1
9417
9451
  ? (function () {
@@ -9431,7 +9465,7 @@ var ThrowTypeError = $gOPD$1
9431
9465
  : throwTypeError;
9432
9466
 
9433
9467
  var hasSymbols$2 = hasSymbols$3();
9434
- var hasProto = hasProto$1();
9468
+ var hasProto = require$$1();
9435
9469
 
9436
9470
  var getProto$1 = Object.getPrototypeOf || (
9437
9471
  hasProto
@@ -9465,9 +9499,9 @@ var INTRINSICS = {
9465
9499
  '%decodeURIComponent%': decodeURIComponent,
9466
9500
  '%encodeURI%': encodeURI,
9467
9501
  '%encodeURIComponent%': encodeURIComponent,
9468
- '%Error%': Error,
9502
+ '%Error%': $Error,
9469
9503
  '%eval%': eval, // eslint-disable-line no-eval
9470
- '%EvalError%': EvalError,
9504
+ '%EvalError%': $EvalError,
9471
9505
  '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
9472
9506
  '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
9473
9507
  '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
@@ -9490,7 +9524,7 @@ var INTRINSICS = {
9490
9524
  '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
9491
9525
  '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
9492
9526
  '%RangeError%': $RangeError,
9493
- '%ReferenceError%': ReferenceError,
9527
+ '%ReferenceError%': $ReferenceError,
9494
9528
  '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
9495
9529
  '%RegExp%': RegExp,
9496
9530
  '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
@@ -9499,15 +9533,15 @@ var INTRINSICS = {
9499
9533
  '%String%': String,
9500
9534
  '%StringIteratorPrototype%': hasSymbols$2 && getProto$1 ? getProto$1(''[Symbol.iterator]()) : undefined$1,
9501
9535
  '%Symbol%': hasSymbols$2 ? Symbol : undefined$1,
9502
- '%SyntaxError%': $SyntaxError$1,
9536
+ '%SyntaxError%': $SyntaxError,
9503
9537
  '%ThrowTypeError%': ThrowTypeError,
9504
9538
  '%TypedArray%': TypedArray,
9505
- '%TypeError%': $TypeError$2,
9539
+ '%TypeError%': $TypeError,
9506
9540
  '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
9507
9541
  '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
9508
9542
  '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
9509
9543
  '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
9510
- '%URIError%': URIError,
9544
+ '%URIError%': $URIError,
9511
9545
  '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
9512
9546
  '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
9513
9547
  '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
@@ -9618,9 +9652,9 @@ var stringToPath = function stringToPath(string) {
9618
9652
  var first = $strSlice(string, 0, 1);
9619
9653
  var last = $strSlice(string, -1);
9620
9654
  if (first === '%' && last !== '%') {
9621
- throw new $SyntaxError$1('invalid intrinsic syntax, expected closing `%`');
9655
+ throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
9622
9656
  } else if (last === '%' && first !== '%') {
9623
- throw new $SyntaxError$1('invalid intrinsic syntax, expected opening `%`');
9657
+ throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
9624
9658
  }
9625
9659
  var result = [];
9626
9660
  $replace(string, rePropName, function (match, number, quote, subString) {
@@ -9633,18 +9667,18 @@ var stringToPath = function stringToPath(string) {
9633
9667
  var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
9634
9668
  var intrinsicName = name;
9635
9669
  var alias;
9636
- if (hasown(LEGACY_ALIASES, intrinsicName)) {
9670
+ if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
9637
9671
  alias = LEGACY_ALIASES[intrinsicName];
9638
9672
  intrinsicName = '%' + alias[0] + '%';
9639
9673
  }
9640
9674
 
9641
- if (hasown(INTRINSICS, intrinsicName)) {
9675
+ if (hasOwn(INTRINSICS, intrinsicName)) {
9642
9676
  var value = INTRINSICS[intrinsicName];
9643
9677
  if (value === needsEval) {
9644
9678
  value = doEval(intrinsicName);
9645
9679
  }
9646
9680
  if (typeof value === 'undefined' && !allowMissing) {
9647
- throw new $TypeError$2('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
9681
+ throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
9648
9682
  }
9649
9683
 
9650
9684
  return {
@@ -9654,19 +9688,19 @@ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
9654
9688
  };
9655
9689
  }
9656
9690
 
9657
- throw new $SyntaxError$1('intrinsic ' + name + ' does not exist!');
9691
+ throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
9658
9692
  };
9659
9693
 
9660
9694
  var getIntrinsic = function GetIntrinsic(name, allowMissing) {
9661
9695
  if (typeof name !== 'string' || name.length === 0) {
9662
- throw new $TypeError$2('intrinsic name must be a non-empty string');
9696
+ throw new $TypeError('intrinsic name must be a non-empty string');
9663
9697
  }
9664
9698
  if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
9665
- throw new $TypeError$2('"allowMissing" argument must be a boolean');
9699
+ throw new $TypeError('"allowMissing" argument must be a boolean');
9666
9700
  }
9667
9701
 
9668
9702
  if ($exec(/^%?[^%]*%?$/, name) === null) {
9669
- throw new $SyntaxError$1('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
9703
+ throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
9670
9704
  }
9671
9705
  var parts = stringToPath(name);
9672
9706
  var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
@@ -9693,7 +9727,7 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
9693
9727
  )
9694
9728
  && first !== last
9695
9729
  ) {
9696
- throw new $SyntaxError$1('property names with quotes must have matching quotes');
9730
+ throw new $SyntaxError('property names with quotes must have matching quotes');
9697
9731
  }
9698
9732
  if (part === 'constructor' || !isOwn) {
9699
9733
  skipFurtherCaching = true;
@@ -9702,12 +9736,12 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
9702
9736
  intrinsicBaseName += '.' + part;
9703
9737
  intrinsicRealName = '%' + intrinsicBaseName + '%';
9704
9738
 
9705
- if (hasown(INTRINSICS, intrinsicRealName)) {
9739
+ if (hasOwn(INTRINSICS, intrinsicRealName)) {
9706
9740
  value = INTRINSICS[intrinsicRealName];
9707
9741
  } else if (value != null) {
9708
9742
  if (!(part in value)) {
9709
9743
  if (!allowMissing) {
9710
- throw new $TypeError$2('base intrinsic for ' + name + ' exists, but the property is not available.');
9744
+ throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
9711
9745
  }
9712
9746
  return void undefined$1;
9713
9747
  }
@@ -9728,7 +9762,7 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
9728
9762
  value = value[part];
9729
9763
  }
9730
9764
  } else {
9731
- isOwn = hasown(value, part);
9765
+ isOwn = hasOwn(value, part);
9732
9766
  value = value[part];
9733
9767
  }
9734
9768
 
@@ -9742,35 +9776,18 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
9742
9776
 
9743
9777
  var GetIntrinsic = getIntrinsic;
9744
9778
 
9745
- var $defineProperty$1 = GetIntrinsic('%Object.defineProperty%', true);
9746
-
9747
- var hasPropertyDescriptors$1 = function hasPropertyDescriptors() {
9748
- if ($defineProperty$1) {
9749
- try {
9750
- $defineProperty$1({}, 'a', { value: 1 });
9751
- return true;
9752
- } catch (e) {
9753
- // IE 8 has a broken defineProperty
9754
- return false;
9755
- }
9756
- }
9757
- return false;
9758
- };
9759
-
9760
- hasPropertyDescriptors$1.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
9761
- // node v0.6 has a bug where array lengths can be Set but not Defined
9762
- if (!hasPropertyDescriptors$1()) {
9763
- return null;
9764
- }
9779
+ /** @type {import('.')} */
9780
+ var $defineProperty$1 = GetIntrinsic('%Object.defineProperty%', true) || false;
9781
+ if ($defineProperty$1) {
9765
9782
  try {
9766
- return $defineProperty$1([], 'length', { value: 1 }).length !== 1;
9783
+ $defineProperty$1({}, 'a', { value: 1 });
9767
9784
  } catch (e) {
9768
- // In Firefox 4-22, defining length on an array throws an exception.
9769
- return true;
9785
+ // IE 8 has a broken defineProperty
9786
+ $defineProperty$1 = false;
9770
9787
  }
9771
- };
9788
+ }
9772
9789
 
9773
- var hasPropertyDescriptors_1 = hasPropertyDescriptors$1;
9790
+ var esDefineProperty = $defineProperty$1;
9774
9791
 
9775
9792
  var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
9776
9793
 
@@ -9785,52 +9802,33 @@ if ($gOPD) {
9785
9802
 
9786
9803
  var gopd = $gOPD;
9787
9804
 
9788
- var require$$0$1 = hasPropertyDescriptors_1;
9805
+ var $defineProperty = esDefineProperty;
9789
9806
 
9790
9807
  var gOPD = gopd;
9791
9808
 
9792
- var hasPropertyDescriptors = require$$0$1();
9793
-
9794
-
9795
-
9796
- var $defineProperty = hasPropertyDescriptors && GetIntrinsic('%Object.defineProperty%', true);
9797
- if ($defineProperty) {
9798
- try {
9799
- $defineProperty({}, 'a', { value: 1 });
9800
- } catch (e) {
9801
- // IE 8 has a broken defineProperty
9802
- $defineProperty = false;
9803
- }
9804
- }
9805
-
9806
- var $SyntaxError = GetIntrinsic('%SyntaxError%');
9807
- var $TypeError$1 = GetIntrinsic('%TypeError%');
9808
-
9809
-
9810
-
9811
- /** @type {(obj: Record<PropertyKey, unknown>, property: PropertyKey, value: unknown, nonEnumerable?: boolean | null, nonWritable?: boolean | null, nonConfigurable?: boolean | null, loose?: boolean) => void} */
9809
+ /** @type {import('.')} */
9812
9810
  var defineDataProperty$1 = function defineDataProperty(
9813
9811
  obj,
9814
9812
  property,
9815
9813
  value
9816
9814
  ) {
9817
9815
  if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
9818
- throw new $TypeError$1('`obj` must be an object or a function`');
9816
+ throw new $TypeError('`obj` must be an object or a function`');
9819
9817
  }
9820
9818
  if (typeof property !== 'string' && typeof property !== 'symbol') {
9821
- throw new $TypeError$1('`property` must be a string or a symbol`');
9819
+ throw new $TypeError('`property` must be a string or a symbol`');
9822
9820
  }
9823
9821
  if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
9824
- throw new $TypeError$1('`nonEnumerable`, if provided, must be a boolean or null');
9822
+ throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');
9825
9823
  }
9826
9824
  if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
9827
- throw new $TypeError$1('`nonWritable`, if provided, must be a boolean or null');
9825
+ throw new $TypeError('`nonWritable`, if provided, must be a boolean or null');
9828
9826
  }
9829
9827
  if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
9830
- throw new $TypeError$1('`nonConfigurable`, if provided, must be a boolean or null');
9828
+ throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');
9831
9829
  }
9832
9830
  if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
9833
- throw new $TypeError$1('`loose`, if provided, must be a boolean');
9831
+ throw new $TypeError('`loose`, if provided, must be a boolean');
9834
9832
  }
9835
9833
 
9836
9834
  var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
@@ -9856,12 +9854,33 @@ var defineDataProperty$1 = function defineDataProperty(
9856
9854
  }
9857
9855
  };
9858
9856
 
9857
+ var hasPropertyDescriptors = function hasPropertyDescriptors() {
9858
+ return !!$defineProperty;
9859
+ };
9860
+
9861
+ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
9862
+ // node v0.6 has a bug where array lengths can be Set but not Defined
9863
+ if (!$defineProperty) {
9864
+ return null;
9865
+ }
9866
+ try {
9867
+ return $defineProperty([], 'length', { value: 1 }).length !== 1;
9868
+ } catch (e) {
9869
+ // In Firefox 4-22, defining length on an array throws an exception.
9870
+ return true;
9871
+ }
9872
+ };
9873
+
9874
+ var hasPropertyDescriptors_1 = hasPropertyDescriptors;
9875
+
9859
9876
  var defineDataProperty = defineDataProperty$1;
9860
9877
 
9878
+ var require$$0$1 = hasPropertyDescriptors_1;
9879
+
9861
9880
  var hasDescriptors = require$$0$1();
9862
9881
 
9863
9882
 
9864
- var $TypeError = GetIntrinsic('%TypeError%');
9883
+
9865
9884
  var $floor = GetIntrinsic('%Math.floor%');
9866
9885
 
9867
9886
  /** @typedef {(...args: unknown[]) => unknown} Func */
@@ -9907,22 +9926,13 @@ var callBind = createCommonjsModule(function (module) {
9907
9926
 
9908
9927
 
9909
9928
 
9910
- var $TypeError = GetIntrinsic('%TypeError%');
9929
+
9911
9930
  var $apply = GetIntrinsic('%Function.prototype.apply%');
9912
9931
  var $call = GetIntrinsic('%Function.prototype.call%');
9913
9932
  var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
9914
9933
 
9915
- var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
9916
- var $max = GetIntrinsic('%Math.max%');
9917
9934
 
9918
- if ($defineProperty) {
9919
- try {
9920
- $defineProperty({}, 'a', { value: 1 });
9921
- } catch (e) {
9922
- // IE 8 has a broken defineProperty
9923
- $defineProperty = null;
9924
- }
9925
- }
9935
+ var $max = GetIntrinsic('%Math.max%');
9926
9936
 
9927
9937
  module.exports = function callBind(originalFunction) {
9928
9938
  if (typeof originalFunction !== 'function') {
@@ -10185,20 +10195,23 @@ var forEach = function forEach(list, iterator, thisArg) {
10185
10195
 
10186
10196
  var forEach_1 = forEach;
10187
10197
 
10188
- var /** @type {ReturnType<import('.')>} */ possibleNames = [
10189
- 'BigInt64Array',
10190
- 'BigUint64Array',
10198
+ /** @type {import('.')} */
10199
+ var possibleTypedArrayNames = [
10191
10200
  'Float32Array',
10192
10201
  'Float64Array',
10202
+ 'Int8Array',
10193
10203
  'Int16Array',
10194
10204
  'Int32Array',
10195
- 'Int8Array',
10205
+ 'Uint8Array',
10206
+ 'Uint8ClampedArray',
10196
10207
  'Uint16Array',
10197
10208
  'Uint32Array',
10198
- 'Uint8Array',
10199
- 'Uint8ClampedArray'
10209
+ 'BigInt64Array',
10210
+ 'BigUint64Array'
10200
10211
  ];
10201
10212
 
10213
+ var possibleNames = possibleTypedArrayNames;
10214
+
10202
10215
  var g$1 = typeof globalThis === 'undefined' ? commonjsGlobal : globalThis;
10203
10216
 
10204
10217
  /** @type {import('.')} */
@@ -14875,6 +14888,7 @@ var ZoomInput = function ZoomInput(_ref) {
14875
14888
  }, [inputRef]);
14876
14889
  return jsxRuntime.jsx(StyledInput, {
14877
14890
  ref: inputRef,
14891
+ "data-testid": "zoom-value",
14878
14892
  onFocus: onFocusHandler,
14879
14893
  onKeyDown: onKeyDown
14880
14894
  });
@@ -14963,14 +14977,13 @@ var ZoomControls = function ZoomControls(_ref) {
14963
14977
  open: isExpanded,
14964
14978
  onClose: onClose,
14965
14979
  anchorEl: containerRef.current,
14966
- container: containerRef.current,
14980
+ container: document.querySelector(KETCHER_ROOT_NODE_CSS_SELECTOR) || document.querySelector(KETCHER_MACROMOLECULES_ROOT_NODE_SELECTOR),
14967
14981
  anchorOrigin: {
14968
14982
  vertical: 'bottom',
14969
14983
  horizontal: 'left'
14970
14984
  },
14971
14985
  children: jsxRuntime.jsxs(DropDownContent, {
14972
14986
  children: [jsxRuntime.jsx(ZoomInput, {
14973
- "data-testid": "zoom-value",
14974
14987
  onZoomSubmit: onZoomSubmit,
14975
14988
  inputRef: inputRef,
14976
14989
  currentZoom: currentZoom,
@@ -25202,6 +25215,8 @@ function setupEditor(editor, props) {
25202
25215
  }
25203
25216
  }
25204
25217
  });
25218
+ editor.render.unobserveCanvasResize();
25219
+ editor.render.observeCanvasResize();
25205
25220
  }
25206
25221
  function removeEditorHandlers(editor, props) {
25207
25222
  Object.keys(editor.event).forEach(function (name) {
@@ -25370,7 +25385,6 @@ var StructEditor = function (_Component) {
25370
25385
  info: JSON.stringify(this.props.toolOpts)
25371
25386
  });
25372
25387
  this.editorRef.current.addEventListener('wheel', this.handleWheel);
25373
- this.editor.render.observeCanvasResize();
25374
25388
  }
25375
25389
  }, {
25376
25390
  key: "componentWillUnmount",
@@ -32843,8 +32857,8 @@ var KetcherBuilder = function () {
32843
32857
  initApp(element, appRoot, staticResourcesUrl, {
32844
32858
  buttons: buttons || {},
32845
32859
  errorHandler: errorHandler || null,
32846
- version: "2.18.0-rc.6" ,
32847
- buildDate: "2024-02-13T18:53:18" ,
32860
+ version: "2.18.0-rc.8" ,
32861
+ buildDate: "2024-02-22T17:37:07" ,
32848
32862
  buildNumber: ''
32849
32863
  }, structService, resolve, togglerComponent);
32850
32864
  });
@@ -32964,12 +32978,14 @@ exports.Accordion = Accordion$1;
32964
32978
  exports.Button = Button;
32965
32979
  exports.Dialog = Dialog;
32966
32980
  exports.Editor = Editor;
32981
+ exports.EditorClassName = EditorClassName;
32967
32982
  exports.Icon = Icon;
32968
32983
  exports.IconButton = IconButton;
32969
32984
  exports.IndigoProvider = IndigoProvider;
32970
32985
  exports.InfoModal = InfoModal$1;
32971
32986
  exports.Input = Input$2;
32972
32987
  exports.KETCHER_INIT_EVENT_NAME = KETCHER_INIT_EVENT_NAME;
32988
+ exports.KETCHER_MACROMOLECULES_ROOT_NODE_SELECTOR = KETCHER_MACROMOLECULES_ROOT_NODE_SELECTOR;
32973
32989
  exports.KETCHER_ROOT_NODE_CLASS_NAME = KETCHER_ROOT_NODE_CLASS_NAME;
32974
32990
  exports.KETCHER_ROOT_NODE_CSS_SELECTOR = KETCHER_ROOT_NODE_CSS_SELECTOR;
32975
32991
  exports.MODES = MODES;