@oat-sa/tao-core-ui 3.1.0 → 3.1.1

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.
@@ -909,7 +909,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
909
909
  * @returns {autocompleter} Returns the instance of the autocompleter component
910
910
  */
911
911
  function autocompleteFactory(element, options) {
912
- var autocomplete = _.clone(autocompleter, true);
912
+ var autocomplete = _.cloneDeep(autocompleter);
913
913
  _.defaults(autocomplete, defaults);
914
914
  return autocomplete.init(element, options);
915
915
  }
@@ -328,9 +328,9 @@ define(['jquery', 'lodash', 'ui/ckeditor/dtdHandler', 'ckeditor', 'context', 'mo
328
328
  }
329
329
  options = options || {};
330
330
  options.resourcemgr = options.resourcemgr || {};
331
- toolbars = _.clone(toolbarPresets, true);
331
+ toolbars = _.cloneDeep(toolbarPresets);
332
332
  dtdMode = options.dtdMode || 'html';
333
- const ckConfig = _.clone(ckConfigDefault, true);
333
+ const ckConfig = _.cloneDeep(ckConfigDefault);
334
334
 
335
335
  // modify DTD to either comply with QTI or XHTML
336
336
  if (dtdMode === 'qti' || toolbarType.indexOf('qti') === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oat-sa/tao-core-ui",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "displayName": "TAO Core UI",
5
5
  "description": "UI libraries of TAO",
6
6
  "scripts": {
@@ -1019,7 +1019,7 @@ function toBoolean(value) {
1019
1019
  * @returns {autocompleter} Returns the instance of the autocompleter component
1020
1020
  */
1021
1021
  function autocompleteFactory(element, options) {
1022
- var autocomplete = _.clone(autocompleter, true);
1022
+ var autocomplete = _.cloneDeep(autocompleter);
1023
1023
  _.defaults(autocomplete, defaults);
1024
1024
  return autocomplete.init(element, options);
1025
1025
  }
@@ -601,10 +601,10 @@ const ckConfigurator = (function () {
601
601
 
602
602
  options.resourcemgr = options.resourcemgr || {};
603
603
 
604
- toolbars = _.clone(toolbarPresets, true);
604
+ toolbars = _.cloneDeep(toolbarPresets);
605
605
  dtdMode = options.dtdMode || 'html';
606
606
 
607
- const ckConfig = _.clone(ckConfigDefault, true);
607
+ const ckConfig = _.cloneDeep(ckConfigDefault);
608
608
 
609
609
  // modify DTD to either comply with QTI or XHTML
610
610
  if (dtdMode === 'qti' || toolbarType.indexOf('qti') === 0) {