@inboxsdk/core 2.1.35 → 2.1.36

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
@@ -875,7 +875,7 @@ function isElementVisible(el) {
875
875
 
876
876
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- SDK_VERSION is injected by webpack
877
877
  ///@ts-ignore
878
- const BUILD_VERSION = "2.1.35-1709734380853-1c27a2810f6de821";
878
+ const BUILD_VERSION = "2.1.36-1709734898365-8d7c09f56e6cda19-MODIFIED";
879
879
  if (false) {}
880
880
 
881
881
  /***/ }),
@@ -10586,7 +10586,7 @@ options.insert = htmlElement => {
10586
10586
  htmlElement.setAttribute('data-inboxsdk-version',
10587
10587
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
10588
10588
  ///@ts-ignore
10589
- "2.1.35-1709734380853-1c27a2810f6de821");
10589
+ "2.1.36-1709734898365-8d7c09f56e6cda19-MODIFIED");
10590
10590
  document.head.append(htmlElement);
10591
10591
  };
10592
10592
  options.domAPI = (styleDomAPI_default());
@@ -12088,21 +12088,22 @@ class CollapsibleSectionView extends safe_event_emitter/* default */.Z {
12088
12088
  }
12089
12089
  }
12090
12090
  function _bindToEventStream(collapsibleSectionView, collapsibleSectionViewDriver, driver) {
12091
- collapsibleSectionViewDriver.getEventStream().onValue(_ref => {
12092
- let {
12091
+ collapsibleSectionViewDriver.eventStream.onValue(event => {
12092
+ if (!('eventName' in event)) {
12093
+ return;
12094
+ }
12095
+ const {
12093
12096
  eventName
12094
- } = _ref;
12097
+ } = event;
12095
12098
  collapsibleSectionView.emit(eventName);
12096
12099
  });
12097
- collapsibleSectionViewDriver.getEventStream().filter(_ref2 => {
12098
- let {
12099
- eventName
12100
- } = _ref2;
12101
- return eventName === 'rowClicked';
12102
- }).onValue(_ref3 => {
12103
- let {
12100
+ collapsibleSectionViewDriver.eventStream.onValue(event => {
12101
+ if (!('eventName' in event) || event.eventName !== 'rowClicked') {
12102
+ return;
12103
+ }
12104
+ const {
12104
12105
  rowDescriptor
12105
- } = _ref3;
12106
+ } = event;
12106
12107
  if (rowDescriptor.routeID) {
12107
12108
  driver.goto(rowDescriptor.routeID, rowDescriptor.routeParams);
12108
12109
  }
@@ -12110,33 +12111,29 @@ function _bindToEventStream(collapsibleSectionView, collapsibleSectionViewDriver
12110
12111
  rowDescriptor.onClick();
12111
12112
  }
12112
12113
  });
12113
- collapsibleSectionViewDriver.getEventStream().filter(_ref4 => {
12114
- let {
12115
- eventName
12116
- } = _ref4;
12117
- return eventName === 'titleLinkClicked';
12118
- }).onValue(_ref5 => {
12119
- let {
12114
+ collapsibleSectionViewDriver.eventStream.onValue(event => {
12115
+ if (!('eventName' in event) || event.eventName !== 'titleLinkClicked') {
12116
+ return;
12117
+ }
12118
+ const {
12120
12119
  sectionDescriptor
12121
- } = _ref5;
12120
+ } = event;
12122
12121
  if (sectionDescriptor.onTitleLinkClick) {
12123
12122
  sectionDescriptor.onTitleLinkClick(collapsibleSectionView);
12124
12123
  }
12125
12124
  });
12126
- collapsibleSectionViewDriver.getEventStream().filter(_ref6 => {
12127
- let {
12128
- eventName
12129
- } = _ref6;
12130
- return eventName === 'footerClicked';
12131
- }).onValue(_ref7 => {
12132
- let {
12125
+ collapsibleSectionViewDriver.eventStream.onValue(event => {
12126
+ if (!('eventName' in event) || event.eventName !== 'footerClicked') {
12127
+ return;
12128
+ }
12129
+ const {
12133
12130
  sectionDescriptor
12134
- } = _ref7;
12131
+ } = event;
12135
12132
  if (sectionDescriptor.onFooterLinkClick) {
12136
12133
  sectionDescriptor.onFooterLinkClick(collapsibleSectionView);
12137
12134
  }
12138
12135
  });
12139
- collapsibleSectionViewDriver.getEventStream().onEnd(() => {
12136
+ collapsibleSectionViewDriver.eventStream.onEnd(() => {
12140
12137
  collapsibleSectionView.destroyed = true;
12141
12138
  collapsibleSectionView.emit('destroy');
12142
12139
  });
@@ -12170,18 +12167,18 @@ class SectionView extends safe_event_emitter/* default */.Z {
12170
12167
  }
12171
12168
  }
12172
12169
  function section_view_bindToEventStream(sectionView, sectionViewDriver, driver) {
12173
- sectionViewDriver.getEventStream().onValue(e => {
12174
- sectionView.emit(e.eventName);
12170
+ sectionViewDriver.eventStream.onValue(e => {
12171
+ if (e != null && 'eventName' in e) {
12172
+ sectionView.emit(e.eventName);
12173
+ }
12175
12174
  });
12176
- sectionViewDriver.getEventStream().filter(_ref => {
12177
- let {
12178
- eventName
12179
- } = _ref;
12180
- return eventName === 'rowClicked';
12181
- }).onValue(_ref2 => {
12182
- let {
12175
+ sectionViewDriver.eventStream.onValue(event => {
12176
+ if (!('eventName' in event) || event.eventName !== 'rowClicked') {
12177
+ return;
12178
+ }
12179
+ const {
12183
12180
  rowDescriptor
12184
- } = _ref2;
12181
+ } = event;
12185
12182
  if (rowDescriptor.routeID) {
12186
12183
  driver.goto(rowDescriptor.routeID, rowDescriptor.routeParams);
12187
12184
  }
@@ -12189,33 +12186,29 @@ function section_view_bindToEventStream(sectionView, sectionViewDriver, driver)
12189
12186
  rowDescriptor.onClick();
12190
12187
  }
12191
12188
  });
12192
- sectionViewDriver.getEventStream().filter(_ref3 => {
12193
- let {
12194
- eventName
12195
- } = _ref3;
12196
- return eventName === 'summaryClicked';
12197
- }).onValue(_ref4 => {
12198
- let {
12189
+ sectionViewDriver.eventStream.onValue(event => {
12190
+ if (!('eventName' in event) || event.eventName !== 'titleLinkClicked') {
12191
+ return;
12192
+ }
12193
+ const {
12199
12194
  sectionDescriptor
12200
- } = _ref4;
12195
+ } = event;
12201
12196
  if (sectionDescriptor.onTitleLinkClick) {
12202
12197
  sectionDescriptor.onTitleLinkClick(sectionView);
12203
12198
  }
12204
12199
  });
12205
- sectionViewDriver.getEventStream().filter(_ref5 => {
12206
- let {
12207
- eventName
12208
- } = _ref5;
12209
- return eventName === 'footerClicked';
12210
- }).onValue(_ref6 => {
12211
- let {
12200
+ sectionViewDriver.eventStream.onValue(event => {
12201
+ if (!('eventName' in event) || event.eventName !== 'footerClicked') {
12202
+ return;
12203
+ }
12204
+ const {
12212
12205
  sectionDescriptor
12213
- } = _ref6;
12214
- if (sectionDescriptor.onFooterLinkClick) {
12206
+ } = event;
12207
+ if (sectionDescriptor?.onFooterLinkClick) {
12215
12208
  sectionDescriptor.onFooterLinkClick(sectionView);
12216
12209
  }
12217
12210
  });
12218
- sectionViewDriver.getEventStream().onEnd(() => {
12211
+ sectionViewDriver.eventStream.onEnd(() => {
12219
12212
  sectionView.destroyed = true;
12220
12213
  sectionView.emit('destroy');
12221
12214
  });
@@ -15316,7 +15309,7 @@ options.insert = htmlElement => {
15316
15309
  htmlElement.setAttribute('data-inboxsdk-version',
15317
15310
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
15318
15311
  ///@ts-ignore
15319
- "2.1.35-1709734380853-1c27a2810f6de821");
15312
+ "2.1.36-1709734898365-8d7c09f56e6cda19-MODIFIED");
15320
15313
  document.head.append(htmlElement);
15321
15314
  };
15322
15315
  options.domAPI = (styleDomAPI_default());
@@ -15392,7 +15385,7 @@ class GmailCollapsibleSectionView {
15392
15385
  if (!element) throw new Error('tried to access element that does not exist');
15393
15386
  return element;
15394
15387
  }
15395
- getEventStream() {
15388
+ get eventStream() {
15396
15389
  return this.#eventStream;
15397
15390
  }
15398
15391
  setCollapsibleSectionDescriptorProperty(collapsibleSectionDescriptorProperty) {
@@ -16158,8 +16151,8 @@ class GmailRouteView {
16158
16151
  #addCollapsibleSection(collapsibleSectionDescriptorProperty, groupOrderHint, isCollapsible) {
16159
16152
  this._hasAddedCollapsibleSection = true;
16160
16153
  var gmailResultsSectionView = new gmail_collapsible_section_view(this.#driver, groupOrderHint, this.getRouteID() === this._gmailRouteProcessor.NativeRouteIDs.SEARCH, isCollapsible);
16161
- kefir_esm.combine([this.#getSectionsContainer(), gmailResultsSectionView.getEventStream().filter(event => {
16162
- return event.type === 'update' && event.property === 'orderHint';
16154
+ kefir_esm.combine([this.#getSectionsContainer(), gmailResultsSectionView.eventStream.filter(event => {
16155
+ return 'type' in event && event.type === 'update' && event.property === 'orderHint';
16163
16156
  })]).onValue(_ref2 => {
16164
16157
  let [sectionsContainer] = _ref2;
16165
16158
  const children = sectionsContainer.children;
@@ -19406,7 +19399,7 @@ mole_view_module_options.insert = htmlElement => {
19406
19399
  htmlElement.setAttribute('data-inboxsdk-version',
19407
19400
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
19408
19401
  ///@ts-ignore
19409
- "2.1.35-1709734380853-1c27a2810f6de821");
19402
+ "2.1.36-1709734898365-8d7c09f56e6cda19-MODIFIED");
19410
19403
  document.head.append(htmlElement);
19411
19404
  };
19412
19405
  mole_view_module_options.domAPI = (styleDomAPI_default());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inboxsdk/core",
3
- "version": "2.1.35",
3
+ "version": "2.1.36",
4
4
  "description": "Library for building browser extensions for Gmail",
5
5
  "main": "inboxsdk.js",
6
6
  "author": "Streak",
package/src/inboxsdk.d.ts CHANGED
@@ -410,7 +410,7 @@ export interface SectionDescriptor {
410
410
  /** Link to display in the summary area of the {@link SectionView}. Typically page counts are displayed here. */
411
411
  titleLinkText?: string;
412
412
  /** A function to call when the title link has been clicked. */
413
- onTitleLinkClick?(e: MouseEvent): void;
413
+ onTitleLinkClick?(e: CollapsibleSectionView | SectionView): void;
414
414
  /** Whether to display a dropdown arrow for more options on the collapsible section. */
415
415
  hasDropdown?: boolean;
416
416
  /**
@@ -424,7 +424,7 @@ export interface SectionDescriptor {
424
424
  /** A link to place in the footer of the {@link SectionView}. */
425
425
  footerLinkText?: string;
426
426
  /** A function to call when the link in the footer is clicked. */
427
- onFooterLinkClick?(e: MouseEvent): void;
427
+ onFooterLinkClick?(e: CollapsibleSectionView | SectionView): void;
428
428
  /** @internal */
429
429
  orderHint?: unknown;
430
430
  /** @internal */
@@ -1,13 +1,31 @@
1
1
  import * as Kefir from 'kefir';
2
2
  import type { Bus } from 'kefir-bus';
3
3
  import type GmailDriver from '../gmail-driver';
4
- import type { SectionDescriptor } from '../../../../inboxsdk';
4
+ import type { RowDescriptor, SectionDescriptor } from '../../../../inboxsdk';
5
+ type ViewEvent = {
6
+ type: 'update';
7
+ property: 'orderHint';
8
+ sectionDescriptor?: SectionDescriptor;
9
+ } | {
10
+ eventName: 'titleLinkClicked';
11
+ sectionDescriptor: SectionDescriptor;
12
+ } | {
13
+ eventName: 'rowClicked';
14
+ rowDescriptor: RowDescriptor;
15
+ } | {
16
+ eventName: 'footerClicked';
17
+ sectionDescriptor: SectionDescriptor;
18
+ } | {
19
+ eventName: 'collapsed';
20
+ } | {
21
+ eventName: 'expanded';
22
+ };
5
23
  declare class GmailCollapsibleSectionView {
6
24
  #private;
7
25
  constructor(driver: GmailDriver, groupOrderHint: number, isSearch: boolean, isCollapsible: boolean);
8
26
  destroy(): void;
9
27
  getElement(): HTMLElement;
10
- getEventStream(): Bus<any, unknown>;
28
+ get eventStream(): Bus<ViewEvent, unknown>;
11
29
  setCollapsibleSectionDescriptorProperty(collapsibleSectionDescriptorProperty: Kefir.Observable<SectionDescriptor | null | undefined, unknown>): void;
12
30
  setCollapsed(value: boolean): void;
13
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"gmail-collapsible-section-view.d.ts","sourceRoot":"","sources":["../../../../../../../src/platform-implementation-js/dom-driver/gmail/views/gmail-collapsible-section-view.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAOrC,OAAO,KAAK,WAAW,MAAM,iBAAiB,CAAC;AAC/C,OAAO,KAAK,EAGV,iBAAiB,EAClB,MAAM,sBAAsB,CAAC;AAoB9B,cAAM,2BAA2B;;gBAuB7B,MAAM,EAAE,WAAW,EACnB,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,OAAO,EACjB,aAAa,EAAE,OAAO;IAUxB,OAAO;IAqBP,UAAU,IAAI,WAAW;IAOzB,cAAc;IAId,uCAAuC,CACrC,oCAAoC,EAAE,KAAK,CAAC,UAAU,CACpD,iBAAiB,GAAG,IAAI,GAAG,SAAS,EACpC,OAAO,CACR;IAcH,YAAY,CAAC,KAAK,EAAE,OAAO;CAutB5B;AAqID,eAAe,2BAA2B,CAAC"}
1
+ {"version":3,"file":"gmail-collapsible-section-view.d.ts","sourceRoot":"","sources":["../../../../../../../src/platform-implementation-js/dom-driver/gmail/views/gmail-collapsible-section-view.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAOrC,OAAO,KAAK,WAAW,MAAM,iBAAiB,CAAC;AAC/C,OAAO,KAAK,EAEV,aAAa,EACb,iBAAiB,EAClB,MAAM,sBAAsB,CAAC;AAoB9B,KAAK,SAAS,GACV;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,WAAW,CAAC;IACtB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC,GACD;IACE,SAAS,EAAE,kBAAkB,CAAC;IAC9B,iBAAiB,EAAE,iBAAiB,CAAC;CACtC,GACD;IACE,SAAS,EAAE,YAAY,CAAC;IACxB,aAAa,EAAE,aAAa,CAAC;CAC9B,GACD;IACE,SAAS,EAAE,eAAe,CAAC;IAC3B,iBAAiB,EAAE,iBAAiB,CAAC;CACtC,GACD;IACE,SAAS,EAAE,WAAW,CAAC;CACxB,GACD;IACE,SAAS,EAAE,UAAU,CAAC;CACvB,CAAC;AAEN,cAAM,2BAA2B;;gBAuB7B,MAAM,EAAE,WAAW,EACnB,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,OAAO,EACjB,aAAa,EAAE,OAAO;IAUxB,OAAO;IAqBP,UAAU,IAAI,WAAW;IAOzB,IAAI,WAAW,4BAEd;IAED,uCAAuC,CACrC,oCAAoC,EAAE,KAAK,CAAC,UAAU,CACpD,iBAAiB,GAAG,IAAI,GAAG,SAAS,EACpC,OAAO,CACR;IAcH,YAAY,CAAC,KAAK,EAAE,OAAO;CAutB5B;AAqID,eAAe,2BAA2B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"gmail-route-view.d.ts","sourceRoot":"","sources":["../../../../../../../../src/platform-implementation-js/dom-driver/gmail/views/gmail-route-view/gmail-route-view.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAOrC,OAAO,gBAAgB,MAAM,wBAAwB,CAAC;AACtD,OAAO,eAAe,MAAM,sBAAsB,CAAC;AACnD,OAAO,2BAA2B,MAAM,mCAAmC,CAAC;AAG5E,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,mBAAmB,MAAM,2CAA2C,CAAC;AAQjF,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAEvF,cAAM,cAAe,YAAW,eAAe;;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,cAAc,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,QAAQ,kCAAkB;IAC1B,aAAa,EAAE,gBAAgB,EAAE,CAAC;IAClC,oBAAoB,EAAE,mBAAmB,CAAC;IAE1C,YAAY,EAAE,GAAG,CACb;QAAE,SAAS,EAAE,qBAAqB,CAAC;QAAC,IAAI,EAAE,gBAAgB,CAAA;KAAE,GAC5D;QACE,SAAS,EAAE,oBAAoB,CAAC;QAChC,IAAI,EAAE,eAAe,CAAC;KACvB,EACH,OAAO,CACR,CAAC;IACF,kBAAkB,EAAE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AAmB,IAAI,OAAO;IAI9B,cAAc,IAAI,OAAO;IAQzB,qBAAqB,IAAI,OAAO;IAMhC,aAAa,IAAI,OAAO;IAQxB,YAAY,IAAI,OAAO;IAKvB,YAAY,IAAI,MAAM;IAoBtB,cAAc,IAAI,OAAO;IAIzB,YAAY,IAAI,OAAO;IASvB,gBAAgB,IAAI,OAAO;IAI3B,qBAAqB,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAQ5C,mBAAmB,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAe1C,qBAAqB,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAuC5C,uBAAuB,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAM9C,aAAa,IAAI,MAAM;IAUvB,UAAU,IAAI,MAAM;IAmBpB,OAAO;IAoBP,kBAAkB;IAClB,YAAY;IAIZ,4BAA4B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE;IAOvD,0BAA0B;CAG3B;AAED,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"gmail-route-view.d.ts","sourceRoot":"","sources":["../../../../../../../../src/platform-implementation-js/dom-driver/gmail/views/gmail-route-view/gmail-route-view.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAOrC,OAAO,gBAAgB,MAAM,wBAAwB,CAAC;AACtD,OAAO,eAAe,MAAM,sBAAsB,CAAC;AACnD,OAAO,2BAA2B,MAAM,mCAAmC,CAAC;AAG5E,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,mBAAmB,MAAM,2CAA2C,CAAC;AAQjF,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAEvF,cAAM,cAAe,YAAW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ces/driver';
3
2
  import type GmailCollapsibleSectionView from '../dom-driver/gmail/views/gmail-collapsible-section-view';
3
+ import TypedEventEmitter from 'typed-emitter';
4
+ export type ViewEvent = {
5
+ collapsed(): void;
6
+ destroy(): void;
7
+ expanded(): void;
8
+ footerClicked(): void;
9
+ rowClicked(): void;
10
+ titleLinkClicked(): void;
11
+ };
12
+ declare const CollapsibleSectionView_base: new () => TypedEventEmitter<ViewEvent>;
4
13
  /**
5
14
  * {@link CollapsibleSectionView}s allow you to display additional content on ListRouteViews. They are typically rendered as additional content above the list of threads below. The visual style is similar to that of multiple inbox sections used in native Gmail. Note that the rendering may vary slightly depending on the actual ListRouteView that the {@link CollapsibleSectionView} is rendered in. For example, {@link CollapsibleSectionViews} rendered on search results pages use different header styles to match Gmail's style more accurately.
6
15
 
@@ -9,7 +18,7 @@ import type GmailCollapsibleSectionView from '../dom-driver/gmail/views/gmail-co
9
18
  * @see ListRouteView.addCollapsibleSection for more information.
10
19
  * @todo the docs mention this class extending SectionView. That doesn't seem to be the case.
11
20
  */
12
- declare class CollapsibleSectionView extends EventEmitter {
21
+ declare class CollapsibleSectionView extends CollapsibleSectionView_base {
13
22
  #private;
14
23
  /** This property is set to true once the view is destroyed. */
15
24
  destroyed: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"collapsible-section-view.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/views/collapsible-section-view.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,2BAA2B,MAAM,0DAA0D,CAAC;AAGxG;;;;;;;EAOE;AACF,cAAM,sBAAuB,SAAQ,YAAY;;IAC/C,+DAA+D;IAC/D,SAAS,EAAE,OAAO,CAAC;gBAIjB,4BAA4B,EAAE,2BAA2B,EACzD,MAAM,EAAE,MAAM;IAShB,YAAY,CAAC,KAAK,EAAE,OAAO;IAI3B,kDAAkD;IAClD,MAAM;IAIN,OAAO;CAIR;AA4CD,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"collapsible-section-view.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/views/collapsible-section-view.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,2BAA2B,MAAM,0DAA0D,CAAC;AACxG,OAAO,iBAAiB,MAAM,eAAe,CAAC;AAE9C,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,IAAI,IAAI,CAAC;IAClB,OAAO,IAAI,IAAI,CAAC;IAChB,QAAQ,IAAI,IAAI,CAAC;IACjB,aAAa,IAAI,IAAI,CAAC;IACtB,UAAU,IAAI,IAAI,CAAC;IACnB,gBAAgB,IAAI,IAAI,CAAC;CAC1B,CAAC;qDAU8D,kBAAkB,SAAS,CAAC;AAR5F;;;;;;;EAOE;AACF,cAAM,sBAAuB,SAAQ,2BAAwD;;IAC3F,+DAA+D;IAC/D,SAAS,EAAE,OAAO,CAAC;gBAIjB,4BAA4B,EAAE,2BAA2B,EACzD,MAAM,EAAE,MAAM;IAShB,YAAY,CAAC,KAAK,EAAE,OAAO;IAI3B,kDAAkD;IAClD,MAAM;IAIN,OAAO;CAIR;AA0DD,eAAe,sBAAsB,CAAC"}
@@ -1,12 +1,14 @@
1
- import EventEmitter from '../lib/safe-event-emitter';
2
1
  import type { Driver } from '../driver-interfaces/driver';
3
2
  import type GmailCollapsibleSectionView from '../dom-driver/gmail/views/gmail-collapsible-section-view';
3
+ import type TypedEventEmitter from 'typed-emitter';
4
+ import type { ViewEvent } from './collapsible-section-view';
5
+ declare const SectionView_base: new () => TypedEventEmitter<ViewEvent>;
4
6
  /**
5
7
  * {@link SectionView}s allow you to display additional content on ListRouteViews. They are typically rendered as additional content above the list of threads below. The visual style is similar to that of multiple inbox sections used in native Gmail. Note that the rendering may vary slightly depending on the actual ListRouteView that the SectionView is rendered in. For example, SectionViews rendered on search results pages use different header styles to match Gmail's style more accurately.
6
8
 
7
9
  * You can either render rows (that are visually similar to Gmail rows) or custom content in your SectionView. Until content is provided, the SectionView will simply display a "Loading..." indicator. See ListRouteView.addSection for more information.
8
10
  */
9
- declare class SectionView extends EventEmitter {
11
+ declare class SectionView extends SectionView_base {
10
12
  #private;
11
13
  destroyed: boolean;
12
14
  constructor(sectionViewDriver: GmailCollapsibleSectionView, driver: Driver);
@@ -1 +1 @@
1
- {"version":3,"file":"section-view.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/views/section-view.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,2BAA2B,MAAM,0DAA0D,CAAC;AAExG;;;;GAIG;AACH,cAAM,WAAY,SAAQ,YAAY;;IACpC,SAAS,EAAE,OAAO,CAAC;gBAGP,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,EAAE,MAAM;IAQ1E;;OAEG;IACH,MAAM;IAIN,OAAO;CAIR;AAoDD,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"section-view.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/views/section-view.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,2BAA2B,MAAM,0DAA0D,CAAC;AACxG,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;0CAOP,kBAAkB,SAAS,CAAC;AALjF;;;;GAIG;AACH,cAAM,WAAY,SAAQ,gBAAwD;;IAChF,SAAS,EAAE,OAAO,CAAC;gBAGP,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,EAAE,MAAM;IAQ1E;;OAEG;IACH,MAAM;IAIN,OAAO;CAIR;AAwDD,eAAe,WAAW,CAAC"}