@atlassian/aui 10.1.2 → 10.1.4

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@atlassian/aui",
3
3
  "description": "Atlassian User Interface library",
4
- "version": "10.1.2",
4
+ "version": "10.1.4",
5
5
  "author": "Atlassian Pty Ltd.",
6
6
  "homepage": "https://aui.atlassian.com",
7
7
  "license": "Apache-2.0",
@@ -42,7 +42,7 @@
42
42
  "backbone": "1.6.0",
43
43
  "css.escape": "1.5.1",
44
44
  "dompurify": "^3.2.5",
45
- "@atlassian/fancy-file-input": "3.0.0-alpha.4",
45
+ "@atlassian/fancy-file-input": "3.0.0",
46
46
  "jquery-form": "4.3.0",
47
47
  "jquery-ui": "1.14.1",
48
48
  "skatejs": "0.13.17",
@@ -160,8 +160,8 @@ function createPopup(options) {
160
160
  * @method hide
161
161
  */
162
162
  hide: function () {
163
- $(document).unbind('keydown', options.keypressListener);
164
- blanket.unbind();
163
+ $(document).off('keydown', options.keypressListener);
164
+ blanket.off();
165
165
  this.element.hide();
166
166
 
167
167
  //only undim if no other dialogs are visible
@@ -286,7 +286,7 @@ var Dialog = (function () {
286
286
  this.item.addClass(className);
287
287
  }
288
288
  if (typeof onclick === 'function') {
289
- this.item.click(this._onclick);
289
+ this.item.on('click', this._onclick);
290
290
  }
291
291
  page.buttonpanel.append(this.item);
292
292
  this.id = page.button.length;
@@ -364,12 +364,12 @@ var Dialog = (function () {
364
364
  if (typeof onclick === 'undefined') {
365
365
  return this.onclick;
366
366
  } else {
367
- this.item.unbind('click', this._onclick);
367
+ this.item.off('click', this._onclick);
368
368
  this._onclick = function (e) {
369
369
  return onclick.call(this, self.page.dialog, self.page, e) === true;
370
370
  };
371
371
  if (typeof onclick === 'function') {
372
- this.item.click(this._onclick);
372
+ this.item.on('click', this._onclick);
373
373
  }
374
374
  }
375
375
  };
@@ -429,11 +429,11 @@ var Dialog = (function () {
429
429
  typeof tab.onselect === 'function' && tab.onselect();
430
430
  typeof page.ontabchange === 'function' && page.ontabchange(tab, cur);
431
431
  };
432
- if (!this.button.click) {
433
- logger.log('atlassian-dialog:Panel:constructor - this.button.click false');
432
+ if (!this.button.on) {
433
+ logger.log('atlassian-dialog:Panel:constructor - this.button.on false');
434
434
  this.button.onclick = onclick;
435
435
  } else {
436
- this.button.click(onclick);
436
+ this.button.on('click', onclick);
437
437
  }
438
438
  onclick();
439
439
  if (i == 0) {
@@ -86,7 +86,7 @@ function InlineDialog(items, identifier, url, options) {
86
86
  contents.on({
87
87
  mouseenter: function () {
88
88
  clearTimeout(hideDelayTimer);
89
- popup.unbind('mouseenter');
89
+ popup.off('mouseenter');
90
90
  },
91
91
  mouseleave: function () {
92
92
  hidePopup();
@@ -457,7 +457,7 @@ function InlineDialog(items, identifier, url, options) {
457
457
 
458
458
  var unbindHideOnExternalClick = function () {
459
459
  if (hasBoundOnExternalClick) {
460
- $('body').unbind('click.' + externalClickNamespace);
460
+ $('body').off('click.' + externalClickNamespace);
461
461
  }
462
462
  hasBoundOnExternalClick = false;
463
463
  };
@@ -172,7 +172,7 @@ const messageFunctions = {
172
172
  };
173
173
 
174
174
  function initCloseMessageBoxOnClickAndKeypress($message) {
175
- $message.unbind('click.aui-message').unbind('keydown.aui-message');
175
+ $message.off('click.aui-message').off('keydown.aui-message');
176
176
 
177
177
  $message
178
178
  .on('click.aui-message', CLOSE_BUTTON_CLASS_SELECTOR, function (e) {
@@ -133,7 +133,7 @@ var RestfulTable = Backbone.View.extend({
133
133
 
134
134
  this.editRows = []; // keep track of rows that are being edited concurrently
135
135
 
136
- this.$table.closest('form').submit(function (e) {
136
+ this.$table.closest('form').on('submit', function (e) {
137
137
  if (instance.focusedRow) {
138
138
  // Delegates saving of row. See EditRow.submit
139
139
  instance.focusedRow.trigger(instance._event.SAVE);
@@ -491,8 +491,8 @@ whenIType.makeShortcut = function (options) {
491
491
  */
492
492
  unbind: function () {
493
493
  $(document)
494
- .unbind('keydown keypress', keypressHandler)
495
- .unbind('keydown keypress keyup', defaultPreventionHandler);
494
+ .off('keydown keypress', keypressHandler)
495
+ .off('keydown keypress keyup', defaultPreventionHandler);
496
496
 
497
497
  for (var i = 0, len = selectorsWithTitlesModified.length; i < len; i++) {
498
498
  removeShortcutsFromTitle(selectorsWithTitlesModified[i]);
@@ -592,7 +592,7 @@ whenIType.fromJSON = function (json, switchCtrlToMetaOnMac) {
592
592
 
593
593
  // Trigger this event on an iframe if you want its keypress events to be propagated (Events to work in iframes).
594
594
  $(document).on('iframeAppended', function (e, iframe) {
595
- $(iframe).load(function () {
595
+ $(iframe).on('load', function () {
596
596
  var $target = $(iframe).contents();
597
597
 
598
598
  $target.on('keyup keydown keypress', function (e) {