@stratusjs/angular 0.8.1 → 0.8.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.
@@ -81057,7 +81057,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
81057
81057
  });
81058
81058
  FroalaEditor.PLUGINS.linkManager = function linkManager(editor) {
81059
81059
  let inputButton;
81060
- const debug = false;
81060
+ const debugCookie = cookie('debug-link-manager');
81061
+ const debug = !!(isJSON(debugCookie) ? JSON.parse(debugCookie) : false);
81061
81062
  function _init() {
81062
81063
  this.uid = uniqueId$3(`froala_link_manager_`);
81063
81064
  Stratus.Instances[this.uid] = this;
@@ -81081,6 +81082,13 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
81081
81082
  });
81082
81083
  this.inputButton = inputButton;
81083
81084
  this.editor = editor;
81085
+ if (debug) {
81086
+ console.log('initialized:', {
81087
+ options: editor.opts.endpoint,
81088
+ instance: this,
81089
+ inputButton: inputButton.uid,
81090
+ });
81091
+ }
81084
81092
  }
81085
81093
  function onClick(el, data) {
81086
81094
  if (!editor.el) {
@@ -81088,6 +81096,9 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
81088
81096
  return;
81089
81097
  }
81090
81098
  const link = editor.link.get();
81099
+ if (debug) {
81100
+ console.log('[linkManager.onClick()]:', link);
81101
+ }
81091
81102
  inputButton.onClick(editor.el, link);
81092
81103
  }
81093
81104
  return {
@@ -81124,7 +81135,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
81124
81135
  icon: 'linkManager',
81125
81136
  title: 'Insert from Link Library',
81126
81137
  callback: function linkManagerCallback() {
81127
- const debug = false;
81138
+ const debugCookie = cookie('debug-link-manager-quick-insert');
81139
+ const debug = !!(isJSON(debugCookie) ? JSON.parse(debugCookie) : false);
81128
81140
  const inputButton = new InputButtonPlugin({
81129
81141
  name: 'Link Manager',
81130
81142
  eventName: 'link-library',
@@ -85037,7 +85049,6 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
85037
85049
  imageManagerLoadURL: '/Api/Media?payload-only=true',
85038
85050
  linkEditButtons: [
85039
85051
  'linkOpen',
85040
- 'linkManagerEdit',
85041
85052
  'linkRemove',
85042
85053
  ],
85043
85054
  linkInsertButtons: [
@@ -124118,8 +124129,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
124118
124129
  }
124119
124130
  yield targetNode.model.save();
124120
124131
  this.unsettled = false;
124121
- this.subscriber.next(this.dataRef());
124122
- this.ref.detectChanges();
124132
+ this.collection.throttleTrigger('change');
124123
124133
  });
124124
124134
  }
124125
124135
  onDragMove(event) {