@inboxsdk/core 2.1.44 → 2.1.45
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
|
@@ -890,7 +890,7 @@ function isNotNil(value) {
|
|
|
890
890
|
|
|
891
891
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- SDK_VERSION is injected by webpack
|
|
892
892
|
///@ts-ignore
|
|
893
|
-
const BUILD_VERSION = "2.1.
|
|
893
|
+
const BUILD_VERSION = "2.1.45-1713296805721-95d83a30cc2bb244";
|
|
894
894
|
if (false) {}
|
|
895
895
|
|
|
896
896
|
/***/ }),
|
|
@@ -8719,11 +8719,18 @@ const ButtonColorClasses = {
|
|
|
8719
8719
|
class ButtonView {
|
|
8720
8720
|
_element = document.createElement('div');
|
|
8721
8721
|
_innerElement = document.createElement('div');
|
|
8722
|
+
#iconLiga;
|
|
8722
8723
|
constructor(options) {
|
|
8724
|
+
const {
|
|
8725
|
+
iconLiga,
|
|
8726
|
+
iconClass,
|
|
8727
|
+
iconUrl
|
|
8728
|
+
} = options;
|
|
8723
8729
|
this._hasDropdown = false;
|
|
8724
8730
|
this._isEnabled = options.enabled !== false;
|
|
8725
|
-
this._iconClass =
|
|
8726
|
-
this._iconUrl =
|
|
8731
|
+
this._iconClass = iconClass;
|
|
8732
|
+
this._iconUrl = iconUrl;
|
|
8733
|
+
this.#iconLiga = iconLiga;
|
|
8727
8734
|
this._title = options.text || options.title;
|
|
8728
8735
|
this._tooltip = options.tooltip || options.title;
|
|
8729
8736
|
this._hasDropdown = !!options.hasDropdown;
|
|
@@ -8851,7 +8858,11 @@ class ButtonView {
|
|
|
8851
8858
|
const iconElement = this._iconElement = document.createElement('div');
|
|
8852
8859
|
iconElement.classList.add('inboxsdk__button_icon');
|
|
8853
8860
|
if (this._iconClass) {
|
|
8854
|
-
|
|
8861
|
+
if (this.#iconLiga != null) {
|
|
8862
|
+
iconElement.innerText = this.#iconLiga;
|
|
8863
|
+
} else {
|
|
8864
|
+
iconElement.innerHTML = ' ';
|
|
8865
|
+
}
|
|
8855
8866
|
iconElement.setAttribute('class', 'inboxsdk__button_icon ' + this._iconClass);
|
|
8856
8867
|
}
|
|
8857
8868
|
if (this._iconUrl) {
|
|
@@ -10634,7 +10645,7 @@ options.insert = htmlElement => {
|
|
|
10634
10645
|
htmlElement.setAttribute('data-inboxsdk-version',
|
|
10635
10646
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
|
|
10636
10647
|
///@ts-ignore
|
|
10637
|
-
"2.1.
|
|
10648
|
+
"2.1.45-1713296805721-95d83a30cc2bb244");
|
|
10638
10649
|
document.head.append(htmlElement);
|
|
10639
10650
|
};
|
|
10640
10651
|
options.domAPI = (styleDomAPI_default());
|
|
@@ -15353,7 +15364,7 @@ options.insert = htmlElement => {
|
|
|
15353
15364
|
htmlElement.setAttribute('data-inboxsdk-version',
|
|
15354
15365
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
|
|
15355
15366
|
///@ts-ignore
|
|
15356
|
-
"2.1.
|
|
15367
|
+
"2.1.45-1713296805721-95d83a30cc2bb244");
|
|
15357
15368
|
document.head.append(htmlElement);
|
|
15358
15369
|
};
|
|
15359
15370
|
options.domAPI = (styleDomAPI_default());
|
|
@@ -19842,7 +19853,7 @@ mole_view_module_options.insert = htmlElement => {
|
|
|
19842
19853
|
htmlElement.setAttribute('data-inboxsdk-version',
|
|
19843
19854
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
|
|
19844
19855
|
///@ts-ignore
|
|
19845
|
-
"2.1.
|
|
19856
|
+
"2.1.45-1713296805721-95d83a30cc2bb244");
|
|
19846
19857
|
document.head.append(htmlElement);
|
|
19847
19858
|
};
|
|
19848
19859
|
mole_view_module_options.domAPI = (styleDomAPI_default());
|
package/package.json
CHANGED
package/src/inboxsdk.d.ts
CHANGED
|
@@ -415,6 +415,13 @@ export interface DrawerDescriptor {
|
|
|
415
415
|
export { type MoleOptions as MoleDescriptor };
|
|
416
416
|
export interface ButtonDescriptor {
|
|
417
417
|
title?: string;
|
|
418
|
+
/**
|
|
419
|
+
* The innerText of the button when {@link ButtonDescriptor#iconClass} is provided.
|
|
420
|
+
* If you want to use an icon font with ligatures enabled, you can use the `iconLiga` property.
|
|
421
|
+
*
|
|
422
|
+
* @default ' '
|
|
423
|
+
*/
|
|
424
|
+
iconLiga?: string;
|
|
418
425
|
iconUrl?: string;
|
|
419
426
|
iconClass?: string;
|
|
420
427
|
hasDropdown?: boolean;
|
|
@@ -5,6 +5,7 @@ export interface ButtonViewOptions {
|
|
|
5
5
|
hasButtonToLeft?: boolean | null;
|
|
6
6
|
hasButtonToRight?: boolean | null;
|
|
7
7
|
iconClass?: string | null;
|
|
8
|
+
iconLiga?: string;
|
|
8
9
|
iconUrl?: string | null;
|
|
9
10
|
text?: string | null;
|
|
10
11
|
title?: string | null;
|
|
@@ -16,6 +17,7 @@ export interface ButtonViewOptions {
|
|
|
16
17
|
noArrow?: boolean | null;
|
|
17
18
|
}
|
|
18
19
|
export default class ButtonView implements ButtonViewI {
|
|
20
|
+
#private;
|
|
19
21
|
private _element;
|
|
20
22
|
private _innerElement;
|
|
21
23
|
private _textElement;
|
package/src/platform-implementation-js/dom-driver/gmail/widgets/buttons/button-view.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-view.d.ts","sourceRoot":"","sources":["../../../../../../../../src/platform-implementation-js/dom-driver/gmail/widgets/buttons/button-view.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,sBAAsB,MAAM,4CAA4C,CAAC;AAGhF,OAAO,EAAE,WAAW,EAAE,MAAM,0DAA0D,CAAC;AAEvF,MAAM,WAAW,iBAAiB;IAChC,eAAe,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACjC,gBAAgB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,sBAAsB,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAC;IACvD,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,OAAO,UAAW,YAAW,WAAW
|
|
1
|
+
{"version":3,"file":"button-view.d.ts","sourceRoot":"","sources":["../../../../../../../../src/platform-implementation-js/dom-driver/gmail/widgets/buttons/button-view.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,sBAAsB,MAAM,4CAA4C,CAAC;AAGhF,OAAO,EAAE,WAAW,EAAE,MAAM,0DAA0D,CAAC;AAEvF,MAAM,WAAW,iBAAiB;IAChC,eAAe,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACjC,gBAAgB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC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