@inboxsdk/core 2.2.16 → 2.2.17

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/inboxsdk.js CHANGED
@@ -371,7 +371,7 @@ function isNotNil(value) {
371
371
 
372
372
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- SDK_VERSION is injected by webpack
373
373
  ///@ts-ignore
374
- const BUILD_VERSION = "2.2.16-1783455994598-383ba7105eb7983b";
374
+ const BUILD_VERSION = "2.2.17-1783630599514-85b889d6702953de";
375
375
  if (false) {}
376
376
 
377
377
  /***/ }),
@@ -2665,7 +2665,7 @@ options.insert = htmlElement => {
2665
2665
  htmlElement.setAttribute('data-inboxsdk-version',
2666
2666
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
2667
2667
  ///@ts-ignore
2668
- "2.2.16-1783455994598-383ba7105eb7983b");
2668
+ "2.2.17-1783630599514-85b889d6702953de");
2669
2669
  document.head.append(htmlElement);
2670
2670
  };
2671
2671
  options.domAPI = (styleDomAPI_default());
@@ -6149,10 +6149,12 @@ class GmailComposeView {
6149
6149
  return result;
6150
6150
  }
6151
6151
  getCloseButton() {
6152
- return this.#element.querySelectorAll('.Hm > img')[2];
6152
+ // Prefer legacy <img> titlebar controls; fall back to newer <button class="Ha">.
6153
+ return this.#element.querySelectorAll('.Hm > img')[2] || (0,querySelectorOrFail/* default */.A)(this.#element, '.Hm .Ha');
6153
6154
  }
6154
6155
  getMoleSwitchButton() {
6155
- return this.#element.querySelectorAll('.Hm > img')[1];
6156
+ // Prefer legacy <img> titlebar controls; fall back to newer <button class="Hq">.
6157
+ return this.#element.querySelectorAll('.Hm > img')[1] || (0,querySelectorOrFail/* default */.A)(this.#element, '.Hm .Hq');
6156
6158
  }
6157
6159
  getBottomBarTable() {
6158
6160
  return (0,querySelectorOrFail/* default */.A)(this.#element, '.aoP .aDh > table');
@@ -6289,14 +6291,16 @@ class GmailComposeView {
6289
6291
  setMinimized(minimized) {
6290
6292
  if (minimized !== this.isMinimized()) {
6291
6293
  if (this.#isInlineReplyForm) throw new Error('Not implemented for inline compose views');
6292
- const minimizeButton = (0,querySelectorOrFail/* default */.A)(this.#element, '.Hm > img');
6294
+ // Prefer legacy <img>; fall back to newer <button class="Hl">.
6295
+ const minimizeButton = this.#element.querySelector('.Hm > img') || (0,querySelectorOrFail/* default */.A)(this.#element, '.Hm .Hl');
6293
6296
  (0,simulate_mouse_event/* simulateClick */.jp)(minimizeButton);
6294
6297
  }
6295
6298
  }
6296
6299
  setFullscreen(fullscreen) {
6297
6300
  if (fullscreen !== this.isFullscreen()) {
6298
6301
  if (this.#isInlineReplyForm) throw new Error('Not implemented for inline compose views');
6299
- const fullscreenButton = (0,querySelectorOrFail/* default */.A)(this.#element, '.Hm > img:nth-of-type(2)');
6302
+ // Prefer legacy <img>; fall back to newer <button class="Hq">.
6303
+ const fullscreenButton = this.#element.querySelector('.Hm > img:nth-of-type(2)') || (0,querySelectorOrFail/* default */.A)(this.#element, '.Hm .Hq');
6300
6304
  (0,simulate_mouse_event/* simulateClick */.jp)(fullscreenButton);
6301
6305
  }
6302
6306
  }
@@ -10332,7 +10336,7 @@ options.insert = htmlElement => {
10332
10336
  htmlElement.setAttribute('data-inboxsdk-version',
10333
10337
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
10334
10338
  ///@ts-ignore
10335
- "2.2.16-1783455994598-383ba7105eb7983b");
10339
+ "2.2.17-1783630599514-85b889d6702953de");
10336
10340
  document.head.append(htmlElement);
10337
10341
  };
10338
10342
  options.domAPI = (styleDomAPI_default());
@@ -15094,7 +15098,7 @@ options.insert = htmlElement => {
15094
15098
  htmlElement.setAttribute('data-inboxsdk-version',
15095
15099
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
15096
15100
  ///@ts-ignore
15097
- "2.2.16-1783455994598-383ba7105eb7983b");
15101
+ "2.2.17-1783630599514-85b889d6702953de");
15098
15102
  document.head.append(htmlElement);
15099
15103
  };
15100
15104
  options.domAPI = (styleDomAPI_default());
@@ -19860,7 +19864,7 @@ mole_view_module_options.insert = htmlElement => {
19860
19864
  htmlElement.setAttribute('data-inboxsdk-version',
19861
19865
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
19862
19866
  ///@ts-ignore
19863
- "2.2.16-1783455994598-383ba7105eb7983b");
19867
+ "2.2.17-1783630599514-85b889d6702953de");
19864
19868
  document.head.append(htmlElement);
19865
19869
  };
19866
19870
  mole_view_module_options.domAPI = (styleDomAPI_default());