@inboxsdk/core 1.2.1 → 1.2.2
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 +1260 -1608
- package/inboxsdk.js.map +1 -1
- package/package.json +1 -1
- package/pageWorld.js +1 -1
- package/pageWorld.js.map +1 -1
- package/src/common/load-script.d.ts +6 -0
- package/src/common/load-script.d.ts.map +1 -1
- package/src/common/load-script.js +3 -1
- package/src/inboxsdk-js/loading/platform-implementation-loader.d.ts.map +1 -1
- package/src/inboxsdk-js/loading/platform-implementation-loader.js +5 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/add-button.d.ts +2 -2
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/add-button.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/manage-button-grouping.js +30 -38
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view.d.ts +4 -4
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view.d.ts.map +1 -1
- package/src/platform-implementation-js/lib/inject-script-EMBEDDED.d.ts.map +1 -1
- package/src/platform-implementation-js/lib/inject-script-EMBEDDED.js +2 -7
- package/src/platform-implementation-js/namespaces/global.d.ts.map +1 -1
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
export interface LoadScriptOptions {
|
|
2
|
+
/**
|
|
3
|
+
* By default, the script is executed within a function, so that top-level
|
|
4
|
+
* variables defined in it don't become global variables. Setting nowrap to
|
|
5
|
+
* true disables this behavior.
|
|
6
|
+
*/
|
|
2
7
|
nowrap?: boolean;
|
|
3
8
|
disableSourceMappingURL?: boolean;
|
|
9
|
+
disableSourceURL?: boolean;
|
|
4
10
|
XMLHttpRequest?: typeof XMLHttpRequest;
|
|
5
11
|
}
|
|
6
12
|
export default function loadScript(url: string, opts?: LoadScriptOptions): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-script.d.ts","sourceRoot":"","sources":["../../../../src/common/load-script.ts"],"names":[],"mappings":"AAoDA,MAAM,WAAW,iBAAiB;
|
|
1
|
+
{"version":3,"file":"load-script.d.ts","sourceRoot":"","sources":["../../../../src/common/load-script.ts"],"names":[],"mappings":"AAoDA,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,OAAO,cAAc,CAAC;CACxC;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,GAAG,EAAE,MAAM,EACX,IAAI,CAAC,EAAE,iBAAiB,GACvB,OAAO,CAAC,IAAI,CAAC,CAkHf"}
|
|
@@ -71,7 +71,9 @@ export default function loadScript(url, opts) {
|
|
|
71
71
|
codeParts.unshift('(function(){');
|
|
72
72
|
codeParts.push('\n});');
|
|
73
73
|
}
|
|
74
|
-
|
|
74
|
+
if (opts?.disableSourceURL !== true) {
|
|
75
|
+
codeParts.push('\n//# sourceURL=' + url + '\n');
|
|
76
|
+
}
|
|
75
77
|
const codeToRun = codeParts.join('');
|
|
76
78
|
let program;
|
|
77
79
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform-implementation-loader.d.ts","sourceRoot":"","sources":["../../../../../src/inboxsdk-js/loading/platform-implementation-loader.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AAElG,QAAA,MAAM,4BAA4B;gBACpB,MAAM,QAAQ,GAAG,GAAG,QAAQ,sBAAsB,CAAC;;;
|
|
1
|
+
{"version":3,"file":"platform-implementation-loader.d.ts","sourceRoot":"","sources":["../../../../../src/inboxsdk-js/loading/platform-implementation-loader.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AAElG,QAAA,MAAM,4BAA4B;gBACpB,MAAM,QAAQ,GAAG,GAAG,QAAQ,sBAAsB,CAAC;;;CA4BhE,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -16,7 +16,11 @@ const PlatformImplementationLoader = {
|
|
|
16
16
|
},
|
|
17
17
|
_loadScript: once(function () {
|
|
18
18
|
return loadScript(process.env.IMPLEMENTATION_URL, {
|
|
19
|
-
|
|
19
|
+
// platform-implementation has no top-level vars so no need for function wrapping
|
|
20
|
+
nowrap: true,
|
|
21
|
+
// webpack adds a sourceURL comment.
|
|
22
|
+
// This sourceURL includes cache breaking for error reporting in remote builds.
|
|
23
|
+
disableSourceURL: true,
|
|
20
24
|
});
|
|
21
25
|
}),
|
|
22
26
|
preload() {
|
package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/add-button.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Kefir from 'kefir';
|
|
2
2
|
import type GmailComposeView from '../gmail-compose-view';
|
|
3
|
-
import {
|
|
4
|
-
export default function addButton(gmailComposeView: GmailComposeView, buttonDescriptorStream: Kefir.Observable<
|
|
3
|
+
import { ComposeButtonDescriptor } from '../../../../driver-interfaces/compose-view-driver';
|
|
4
|
+
export default function addButton(gmailComposeView: GmailComposeView, buttonDescriptorStream: Kefir.Observable<ComposeButtonDescriptor | null | undefined, unknown>, groupOrderHint: string, extraOnClickOptions: Record<string, any>): Promise<Record<string, any> | null | undefined>;
|
|
5
5
|
//# sourceMappingURL=add-button.d.ts.map
|
package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/add-button.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-button.d.ts","sourceRoot":"","sources":["../../../../../../../../src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/add-button.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"add-button.d.ts","sourceRoot":"","sources":["../../../../../../../../src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/add-button.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,mDAAmD,CAAC;AAE5F,MAAM,CAAC,OAAO,UAAU,SAAS,CAC/B,gBAAgB,EAAE,gBAAgB,EAClC,sBAAsB,EAAE,KAAK,CAAC,UAAU,CACtC,uBAAuB,GAAG,IAAI,GAAG,SAAS,EAC1C,OAAO,CACR,EACD,cAAc,EAAE,MAAM,EACtB,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACvC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC,CAoCjD"}
|
|
@@ -34,13 +34,13 @@ export default defn(module, function manageButtonGrouping(gmailComposeView) {
|
|
|
34
34
|
return event.eventName === 'buttonAdded';
|
|
35
35
|
})
|
|
36
36
|
.onValue(() => {
|
|
37
|
-
|
|
37
|
+
groupButtonsAndAdjustToolbarPosition(gmailComposeView);
|
|
38
38
|
});
|
|
39
39
|
gmailComposeView
|
|
40
40
|
.getEventStream()
|
|
41
41
|
.filter((event) => event.eventName === 'resize' || event.eventName === 'restored')
|
|
42
42
|
.onValue(() => {
|
|
43
|
-
|
|
43
|
+
groupButtonsAndAdjustToolbarPosition(gmailComposeView);
|
|
44
44
|
});
|
|
45
45
|
var el = gmailComposeView.getElement();
|
|
46
46
|
gmailComposeView.getStopper().onValue(function () {
|
|
@@ -54,7 +54,7 @@ function _handleComposeFullscreenStateChanged(gmailComposeView) {
|
|
|
54
54
|
.querySelector('.inboxsdk__compose_groupedActionToolbar')) {
|
|
55
55
|
_ungroupButtons(gmailComposeView);
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
groupButtonsAndAdjustToolbarPosition(gmailComposeView);
|
|
58
58
|
}
|
|
59
59
|
function _ungroupButtons(gmailComposeView) {
|
|
60
60
|
const members = get(memberMap, gmailComposeView);
|
|
@@ -72,7 +72,7 @@ function _ungroupButtons(gmailComposeView) {
|
|
|
72
72
|
composeActionToolbar.appendChild(buttonToolbar);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function groupButtonsAndAdjustToolbarPosition(gmailComposeView) {
|
|
76
76
|
_groupButtonsIfNeeded(gmailComposeView);
|
|
77
77
|
_fixToolbarPosition(gmailComposeView);
|
|
78
78
|
}
|
|
@@ -85,19 +85,12 @@ function _groupButtonsIfNeeded(gmailComposeView) {
|
|
|
85
85
|
groupButtonsIfNeededMap.delete(gmailComposeView);
|
|
86
86
|
if (gmailComposeView.isDestroyed())
|
|
87
87
|
return;
|
|
88
|
-
_narrowButtonsIfNeeded(gmailComposeView);
|
|
89
88
|
if (_doButtonsNeedToGroup(gmailComposeView)) {
|
|
90
89
|
var groupedActionToolbarContainer = _createGroupedActionToolbarContainer(gmailComposeView);
|
|
91
90
|
var groupToggleButtonViewController = _createGroupToggleButtonViewController(gmailComposeView);
|
|
92
91
|
_swapToActionToolbar(gmailComposeView, groupToggleButtonViewController);
|
|
93
92
|
_checkAndSetInitialState(gmailComposeView, groupToggleButtonViewController);
|
|
94
93
|
_startMonitoringFormattingToolbar(gmailComposeView, groupToggleButtonViewController);
|
|
95
|
-
// remove narrow buttons class
|
|
96
|
-
gmailComposeView
|
|
97
|
-
.getElement()
|
|
98
|
-
.classList.remove('inboxsdk__compose_narrow_buttons');
|
|
99
|
-
// see if we should narrow buttons again
|
|
100
|
-
_narrowButtonsIfNeeded(gmailComposeView);
|
|
101
94
|
gmailComposeView.getStopper().onValue(function () {
|
|
102
95
|
groupedActionToolbarContainer.remove();
|
|
103
96
|
groupToggleButtonViewController.destroy();
|
|
@@ -105,37 +98,36 @@ function _groupButtonsIfNeeded(gmailComposeView) {
|
|
|
105
98
|
}
|
|
106
99
|
});
|
|
107
100
|
}
|
|
108
|
-
function _narrowButtonsIfNeeded(gmailComposeView) {
|
|
109
|
-
if (gmailComposeView.getElement().clientWidth >
|
|
110
|
-
_getBottomBarTableWidth(gmailComposeView) ||
|
|
111
|
-
gmailComposeView.getElement().querySelectorAll('.inboxsdk__composeButton')
|
|
112
|
-
.length === 0 ||
|
|
113
|
-
gmailComposeView
|
|
114
|
-
.getElement()
|
|
115
|
-
.classList.contains('inboxsdk__compose_narrow_buttons'))
|
|
116
|
-
return;
|
|
117
|
-
gmailComposeView
|
|
118
|
-
.getElement()
|
|
119
|
-
.classList.add('inboxsdk__compose_narrow_buttons');
|
|
120
|
-
//force reflow
|
|
121
|
-
gmailComposeView.getElement().offsetTop;
|
|
122
|
-
}
|
|
123
101
|
function _doButtonsNeedToGroup(gmailComposeView) {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
.querySelector('.inboxsdk__compose_groupedActionToolbar'))
|
|
102
|
+
const composeEl = gmailComposeView.getElement();
|
|
103
|
+
if (composeEl.querySelector('.inboxsdk__compose_groupedActionToolbar'))
|
|
127
104
|
return false;
|
|
128
|
-
if (
|
|
129
|
-
.getElement()
|
|
130
|
-
.querySelectorAll('.inboxsdk__composeButton:not([data-no-overflow])')
|
|
131
|
-
.length < 2)
|
|
105
|
+
if (composeEl.querySelectorAll('.inboxsdk__composeButton:not([data-no-overflow])').length < 2)
|
|
132
106
|
return false;
|
|
133
|
-
|
|
134
|
-
|
|
107
|
+
if (areNativeToolbarButtonsGrouped(composeEl)) {
|
|
108
|
+
return true;
|
|
109
|
+
}
|
|
110
|
+
return false;
|
|
135
111
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
112
|
+
const toolbarButtonStyles = new WeakMap();
|
|
113
|
+
function areNativeToolbarButtonsGrouped(composeEl) {
|
|
114
|
+
const nativeButtonsContainer = composeEl.querySelector('.bAK');
|
|
115
|
+
const containerWidth = nativeButtonsContainer?.offsetWidth ?? 0;
|
|
116
|
+
const nativeButtons = Array.from(nativeButtonsContainer?.querySelectorAll('.wG') ?? []);
|
|
117
|
+
let buttonsWidth = 0;
|
|
118
|
+
for (const button of nativeButtons) {
|
|
119
|
+
const style = toolbarButtonStyles.get(button) ?? getComputedStyle(button);
|
|
120
|
+
if (!toolbarButtonStyles.has(button)) {
|
|
121
|
+
toolbarButtonStyles.set(button, style);
|
|
122
|
+
}
|
|
123
|
+
const margin = parseFloat(style.marginLeft) + parseFloat(style.marginRight);
|
|
124
|
+
buttonsWidth += button.offsetWidth;
|
|
125
|
+
buttonsWidth += margin;
|
|
126
|
+
if (buttonsWidth > containerWidth) {
|
|
127
|
+
return true;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return false;
|
|
139
131
|
}
|
|
140
132
|
function _createGroupedActionToolbarContainer(gmailComposeView) {
|
|
141
133
|
var groupedActionToolbarContainer = document.createElement('div');
|
|
@@ -4,11 +4,11 @@ import type { Stopper } from 'kefir-stopper';
|
|
|
4
4
|
import type { TooltipDescriptor } from '../../../views/compose-button-view';
|
|
5
5
|
import PageParserTree from 'page-parser-tree';
|
|
6
6
|
import { TagTree } from 'tag-tree';
|
|
7
|
-
import type { ComposeNotice, StatusBar } from '../../../driver-interfaces/compose-view-driver';
|
|
7
|
+
import type { ComposeButtonDescriptor, ComposeNotice, ComposeViewDriver, StatusBar } from '../../../driver-interfaces/compose-view-driver';
|
|
8
8
|
import type GmailDriver from '../gmail-driver';
|
|
9
|
-
import {
|
|
9
|
+
import { Contact } from '../../../../inboxsdk';
|
|
10
10
|
import BasicButtonViewController from '../../../widgets/buttons/basic-button-view-controller';
|
|
11
|
-
declare class GmailComposeView {
|
|
11
|
+
declare class GmailComposeView implements ComposeViewDriver {
|
|
12
12
|
_element: HTMLElement;
|
|
13
13
|
_seenBodyElement: HTMLElement;
|
|
14
14
|
_isInlineReplyForm: boolean;
|
|
@@ -85,7 +85,7 @@ declare class GmailComposeView {
|
|
|
85
85
|
getFromContact(): Contact;
|
|
86
86
|
getFromContactChoices(): Contact[];
|
|
87
87
|
setFromEmail(email: string): void;
|
|
88
|
-
addButton(buttonDescriptor: Kefir.Observable<
|
|
88
|
+
addButton(buttonDescriptor: Kefir.Observable<ComposeButtonDescriptor | null | undefined, unknown>, groupOrderHint: string, extraOnClickOptions: Record<string, any>): Promise<Record<string, any> | null | undefined>;
|
|
89
89
|
addTooltipToButton(buttonViewController: BasicButtonViewController, buttonDescriptor: Record<string, any>, tooltipDescriptor: TooltipDescriptor): void;
|
|
90
90
|
closeButtonTooltip(buttonViewController: Record<string, any>): void;
|
|
91
91
|
addComposeNotice(options?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gmail-compose-view.d.ts","sourceRoot":"","sources":["../../../../../../../src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAErC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAiC7C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAuB5E,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,OAAO,KAAK,EACV,aAAa,
|
|
1
|
+
{"version":3,"file":"gmail-compose-view.d.ts","sourceRoot":"","sources":["../../../../../../../src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAErC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAiC7C,OAAO,KAAK,EAAE,iB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BEDDED.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/lib/inject-script-EMBEDDED.ts"],"names":[],"mappings":"AACA,wBAAgB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"inject-script-EMBEDDED.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/lib/inject-script-EMBEDDED.ts"],"names":[],"mappings":"AACA,wBAAgB,oBAAoB,SASnC"}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
2
2
|
export function injectScriptEmbedded() {
|
|
3
|
-
const url = 'https://www.inboxsdk.com/build/pageWorld.js';
|
|
4
3
|
const script = document.createElement('script');
|
|
5
4
|
script.type = 'text/javascript';
|
|
6
|
-
const originalCode = require('
|
|
7
|
-
|
|
8
|
-
codeParts.push(originalCode.default);
|
|
9
|
-
codeParts.push('\n//# sourceURL=' + url + '\n');
|
|
10
|
-
const codeToRun = codeParts.join('');
|
|
11
|
-
script.text = codeToRun;
|
|
5
|
+
const originalCode = require('../../../packages/core/pageWorld?raw');
|
|
6
|
+
script.text = originalCode;
|
|
12
7
|
document.head.appendChild(script).parentNode.removeChild(script);
|
|
13
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/namespaces/global.ts"],"names":[],"mappings":"AAEA,OAAO,gBAAgB,MAAM,6BAA6B,CAAC;AAE3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,oBAAoB,MAAM,mDAAmD,CAAC;AACrF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mDAAmD,CAAC;
|
|
1
|
+
{"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/namespaces/global.ts"],"names":[],"mappings":"AAEA,OAAO,gBAAgB,MAAM,6BAA6B,CAAC;AAE3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,oBAAoB,MAAM,mDAAmD,CAAC;AACrF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mDAAmD,CAAC;AAW/F,MAAM,CAAC,OAAO,OAAO,MAAM;gBACb,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IASnD,sBAAsB,CAC1B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC9B,OAAO,CAAC,gBAAgB,GAAG,IAAI,GAAG,SAAS,CAAC;IAgB/C,cAAc,CACZ,qBAAqB,EAAE,qBAAqB,GAC3C,oBAAoB;CAKxB"}
|