q2-tecton-platform 1.61.0 → 1.62.0

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.
Files changed (98) hide show
  1. package/dist/bundle-report.json +1 -1
  2. package/dist/esm/actions/actionRequiredSetup.js +7 -2
  3. package/dist/esm/actions/authorizeTransactionWithMfaSetup.js +4 -1
  4. package/dist/esm/actions/clearCacheSetup.js +7 -4
  5. package/dist/esm/actions/clearParamsSetup.js +4 -1
  6. package/dist/esm/actions/closeOverpanelSetup.js +6 -3
  7. package/dist/esm/actions/index.js +51 -48
  8. package/dist/esm/actions/keepAliveSetup.js +4 -1
  9. package/dist/esm/actions/loadingModalSetup.js +4 -1
  10. package/dist/esm/actions/logToServerSetup.js +6 -3
  11. package/dist/esm/actions/manageChangesSetup.js +4 -1
  12. package/dist/esm/actions/navigateToSetup.js +8 -5
  13. package/dist/esm/actions/openURLSetup.js +4 -1
  14. package/dist/esm/actions/printWindowSetup.js +4 -1
  15. package/dist/esm/actions/refetchAccountsSetup.js +4 -1
  16. package/dist/esm/actions/scrollToSetup.js +7 -4
  17. package/dist/esm/actions/scrollToTopSetup.js +4 -1
  18. package/dist/esm/actions/sendAlertSetup.js +4 -1
  19. package/dist/esm/actions/setParamsSetup.js +6 -3
  20. package/dist/esm/actions/setTitleSetup.js +6 -3
  21. package/dist/esm/actions/showActionSheetSetup.js +4 -1
  22. package/dist/esm/actions/showModalSetup.js +4 -1
  23. package/dist/esm/actions/showOverpanelSetup.js +10 -7
  24. package/dist/esm/actions/t.d.ts.map +1 -1
  25. package/dist/esm/actions/t.js +18 -7
  26. package/dist/esm/actions/verifyMFASetup.js +4 -1
  27. package/dist/esm/index.js +5 -1
  28. package/dist/esm/outlets/index.js +9 -6
  29. package/dist/esm/outlets/platform-outlet.d.ts.map +1 -1
  30. package/dist/esm/outlets/platform-outlet.js +84 -50
  31. package/dist/esm/private-helpers/assetPathResolvers.js +11 -6
  32. package/dist/esm/private-helpers/cdnOverrideSetup.js +4 -1
  33. package/dist/esm/private-helpers/contextResolver.js +7 -2
  34. package/dist/esm/private-helpers/getApplicationModules.js +5 -1
  35. package/dist/esm/private-helpers/getAuthPayload.js +4 -1
  36. package/dist/esm/private-helpers/getModuleParams.js +4 -1
  37. package/dist/esm/private-helpers/index.js +22 -19
  38. package/dist/esm/private-helpers/mobileSDKCapabilities.js +4 -1
  39. package/dist/esm/private-helpers/platformCapabilities.js +4 -1
  40. package/dist/esm/private-helpers/resolveFeature.d.ts +2 -2
  41. package/dist/esm/private-helpers/resolveFeature.d.ts.map +1 -1
  42. package/dist/esm/private-helpers/resolveFeature.js +39 -28
  43. package/dist/esm/private-helpers/resolveMenu.js +23 -18
  44. package/dist/esm/private-helpers/resolveTabs.js +21 -16
  45. package/dist/esm/private-helpers/setupRegisterOutlet.js +7 -3
  46. package/dist/esm/setup/application-modules.js +11 -5
  47. package/dist/esm/setup/default-capabilities.js +4 -1
  48. package/dist/esm/setup/dynamic-capabilities.js +4 -1
  49. package/dist/esm/setup/index.d.ts +1 -1
  50. package/dist/esm/setup/index.d.ts.map +1 -1
  51. package/dist/esm/setup/index.js +32 -25
  52. package/dist/esm/setup/styles.d.ts.map +1 -1
  53. package/dist/esm/setup/styles.js +22 -11
  54. package/dist/esm/sources/cacheClearedSetup.js +7 -4
  55. package/dist/esm/sources/canUserSetup.js +4 -1
  56. package/dist/esm/sources/getAuthTokenSetup.js +4 -1
  57. package/dist/esm/sources/getFeatureConfigSetup.js +6 -3
  58. package/dist/esm/sources/getGlobalScriptsSetup.js +4 -1
  59. package/dist/esm/sources/getPendoInfoSetup.js +4 -1
  60. package/dist/esm/sources/getPlatformDimensionsSetup.js +9 -6
  61. package/dist/esm/sources/getPlatformInfoSetup.js +4 -1
  62. package/dist/esm/sources/getVersionInfoSetup.js +4 -1
  63. package/dist/esm/sources/index.js +44 -41
  64. package/dist/esm/sources/isNavigableSetup.js +6 -3
  65. package/dist/esm/sources/platformCssPropertiesChangedSetup.d.ts.map +1 -1
  66. package/dist/esm/sources/platformCssPropertiesChangedSetup.js +22 -12
  67. package/dist/esm/sources/platformEventNotificationSetup.js +7 -4
  68. package/dist/esm/sources/platformScrollChangedSetup.js +12 -9
  69. package/dist/esm/sources/promptForMFASetup.js +6 -3
  70. package/dist/esm/sources/refetchRequiredSetup.js +7 -4
  71. package/dist/esm/sources/requestExtensionDataSetup.js +6 -3
  72. package/dist/esm/sources/requestPlatformDataSetup.js +15 -8
  73. package/dist/esm/sources/setupModuleParams.js +10 -7
  74. package/dist/esm/sources/takePictureSetup.js +4 -1
  75. package/dist/esm/sources/tectonCacheSetup.js +4 -1
  76. package/dist/esm/types/alerts.js +5 -2
  77. package/dist/esm/types/config.d.ts +6 -6
  78. package/dist/esm/types/config.d.ts.map +1 -1
  79. package/dist/esm/types/config.js +2 -1
  80. package/dist/esm/types/index.d.ts +3 -3
  81. package/dist/esm/types/index.d.ts.map +1 -1
  82. package/dist/esm/types/index.js +2 -1
  83. package/dist/esm/types/pendo.js +2 -1
  84. package/dist/esm/types/utility.js +2 -1
  85. package/dist/esm/utility/dimensions-helpers.d.ts +1 -1
  86. package/dist/esm/utility/dimensions-helpers.d.ts.map +1 -1
  87. package/dist/esm/utility/dimensions-helpers.js +7 -2
  88. package/dist/esm/utility/filterPublicOverpanels.js +4 -1
  89. package/dist/esm/utility/getNavigationData.js +6 -3
  90. package/dist/esm/utility/message-bus.d.ts +4 -2
  91. package/dist/esm/utility/message-bus.d.ts.map +1 -1
  92. package/dist/esm/utility/message-bus.js +10 -5
  93. package/dist/esm/utility/showActionSheet.js +4 -2
  94. package/dist/esm/utility/validateActionParameters.js +4 -1
  95. package/dist/esm/utility/windowHelpers.js +7 -2
  96. package/dist/umd/q2-tecton-platform.js +1 -2
  97. package/package.json +14 -10
  98. package/dist/umd/q2-tecton-platform.js.LICENSE.txt +0 -14
@@ -28,7 +28,7 @@ export interface OutletInfo {
28
28
  x: number;
29
29
  y: number;
30
30
  }
31
- export declare type TectonWindow = typeof window & {
31
+ export type TectonWindow = typeof window & {
32
32
  Tecton: {
33
33
  inMobileApp?: boolean;
34
34
  useActionSheets?: boolean;
@@ -39,7 +39,7 @@ export declare type TectonWindow = typeof window & {
39
39
  export interface ITestOptions {
40
40
  testing?: boolean;
41
41
  }
42
- export declare type ScrollOption = {
42
+ export type ScrollOption = {
43
43
  top?: number;
44
44
  left?: number;
45
45
  behavior?: ScrollBehavior;
@@ -53,7 +53,7 @@ export interface ITectonContextInfo {
53
53
  outletContext: string;
54
54
  resolvedContext?: string;
55
55
  }
56
- export declare type HierarchyNode = {
56
+ export type HierarchyNode = {
57
57
  [key: string]: HierarchyNode;
58
58
  };
59
59
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAEpF,MAAM,WAAW,QAAQ;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,YAAY;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,cAAc;IAC3B,QAAQ,EAAE,GAAG,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,GAAG,CAAC;IACV,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,UAAU;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC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;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,MAAM,aAAa,GAAG;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC;CAChC,CAAC"}
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,6 @@
1
1
  import { ITectonPlatformControls } from '../setup';
2
2
  import { IPlatformDimensions } from 'q2-tecton-common/lib/types/platformDimensions';
3
- export declare type PlatformRoot = HTMLElement | Window | null;
3
+ export type PlatformRoot = HTMLElement | Window | null;
4
4
  export declare function getDimensions(legacyControlBus: ITectonPlatformControls, target: PlatformRoot): IPlatformDimensions;
5
5
  export declare function getPlatformRoot(legacyControlBus: ITectonPlatformControls): PlatformRoot;
6
6
  //# sourceMappingURL=dimensions-helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dimensions-helpers.d.ts","sourceRoot":"","sources":["../../../src/utility/dimensions-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAEpF,oBAAY,YAAY,GAAG,WAAW,GAAG,MAAM,GAAG,IAAI,CAAC;AAQvD,wBAAgB,aAAa,CAAC,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,EAAE,YAAY,GAAG,mBAAmB,CAoBlH;AAED,wBAAgB,eAAe,CAAC,gBAAgB,EAAE,uBAAuB,GAAG,YAAY,CAGvF"}
1
+ {"version":3,"file":"dimensions-helpers.d.ts","sourceRoot":"","sources":["../../../src/utility/dimensions-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAEpF,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,MAAM,GAAG,IAAI,CAAC;AAQvD,wBAAgB,aAAa,CAAC,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,EAAE,YAAY,GAAG,mBAAmB,CAoBlH;AAED,wBAAgB,eAAe,CAAC,gBAAgB,EAAE,uBAAuB,GAAG,YAAY,CAGvF"}
@@ -1,9 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getPlatformRoot = exports.getDimensions = void 0;
1
4
  const zeroedDimensions = {
2
5
  scrollY: 0,
3
6
  innerHeight: 0,
4
7
  innerWidth: 0,
5
8
  };
6
- export function getDimensions(legacyControlBus, target) {
9
+ function getDimensions(legacyControlBus, target) {
7
10
  var _a, _b, _c, _d, _e, _f, _g, _h;
8
11
  if (!target) {
9
12
  console.warn('No platform root found. Returning zeroed dimensions.');
@@ -16,8 +19,10 @@ export function getDimensions(legacyControlBus, target) {
16
19
  }
17
20
  return Object.assign({ scrollY: (_a = (isTargetElement ? target.scrollTop : target.scrollY)) !== null && _a !== void 0 ? _a : 0, innerHeight: (_b = (isTargetElement ? target.offsetHeight : target.innerHeight)) !== null && _b !== void 0 ? _b : 0, innerWidth: (_c = (isTargetElement ? target.offsetWidth : target.innerWidth)) !== null && _c !== void 0 ? _c : 0, orientationType: (_e = (_d = screen === null || screen === void 0 ? void 0 : screen.orientation) === null || _d === void 0 ? void 0 : _d.type) !== null && _e !== void 0 ? _e : 'landscape-primary', orientationAngle: (_g = (_f = screen === null || screen === void 0 ? void 0 : screen.orientation) === null || _f === void 0 ? void 0 : _f.angle) !== null && _g !== void 0 ? _g : 0 }, (_h = legacyControlBus === null || legacyControlBus === void 0 ? void 0 : legacyControlBus.getSurroundingOffsets) === null || _h === void 0 ? void 0 : _h.call(legacyControlBus));
18
21
  }
19
- export function getPlatformRoot(legacyControlBus) {
22
+ exports.getDimensions = getDimensions;
23
+ function getPlatformRoot(legacyControlBus) {
20
24
  var _a;
21
25
  const platformRootSelector = (_a = legacyControlBus === null || legacyControlBus === void 0 ? void 0 : legacyControlBus.getPlatformRootSelector) === null || _a === void 0 ? void 0 : _a.call(legacyControlBus);
22
26
  return platformRootSelector ? document.querySelector(platformRootSelector) : window;
23
27
  }
28
+ exports.getPlatformRoot = getPlatformRoot;
@@ -1,4 +1,6 @@
1
- export default function filterPublicOverpanels(tectonConfig) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ function filterPublicOverpanels(tectonConfig) {
2
4
  // Filter and transform the configuredOverpanels to only include public ones
3
5
  // and ensure they have a featureName set to the parentKey if it is not already set.
4
6
  return Object.entries(tectonConfig.features).reduce((publicOverpanels, [parentKey, parentValue]) => {
@@ -16,3 +18,4 @@ export default function filterPublicOverpanels(tectonConfig) {
16
18
  return publicOverpanels;
17
19
  }, {});
18
20
  }
21
+ exports.default = filterPublicOverpanels;
@@ -1,7 +1,9 @@
1
- import { Maybe } from 'maybe-not';
2
- export default function getNavigationData(tectonConfig$, featureName, moduleName) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const maybe_not_1 = require("maybe-not");
4
+ function getNavigationData(tectonConfig$, featureName, moduleName) {
3
5
  const tectonConfig = tectonConfig$.getValue();
4
- return Maybe.maybe(tectonConfig.features[featureName]).map(feature => {
6
+ return maybe_not_1.Maybe.maybe(tectonConfig.features[featureName]).map(feature => {
5
7
  const primaryModuleName = Object.keys(feature.modules).find(key => {
6
8
  return feature.modules[key].primary;
7
9
  });
@@ -14,3 +16,4 @@ export default function getNavigationData(tectonConfig$, featureName, moduleName
14
16
  };
15
17
  });
16
18
  }
19
+ exports.default = getNavigationData;
@@ -1,4 +1,5 @@
1
- import MessageBus, { IMessageBus, sendMessage, sendBroadcast } from 'q2-tecton-common/lib/utility/message-bus';
1
+ import MessageBus, { sendMessage, sendBroadcast } from 'q2-tecton-common/lib/utility/message-bus';
2
+ import type { IMessageBus } from 'q2-tecton-common/lib/utility/message-bus';
2
3
  import { BehaviorSubject } from 'rxjs';
3
4
  import { TectonRuntimeConfig } from '../types/config';
4
5
  declare class PlatformMessageBus extends MessageBus {
@@ -8,5 +9,6 @@ declare class PlatformMessageBus extends MessageBus {
8
9
  teardown(): void;
9
10
  getConfigDomains(tectonConfig: TectonRuntimeConfig): void;
10
11
  }
11
- export { PlatformMessageBus as default, IMessageBus, sendMessage, sendBroadcast };
12
+ export { PlatformMessageBus as default, sendMessage, sendBroadcast };
13
+ export type { IMessageBus };
12
14
  //# sourceMappingURL=message-bus.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"message-bus.d.ts","sourceRoot":"","sources":["../../../src/utility/message-bus.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAC/G,OAAO,EAAE,eAAe,EAAgB,MAAM,MAAM,CAAC;AAGrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,cAAM,kBAAmB,SAAQ,UAAU;IACvC,OAAO,CAAC,OAAO,CAA0B;IACzC,OAAO,CAAC,kBAAkB,CAAe;gBAC7B,aAAa,EAAE,eAAe,CAAC,mBAAmB,CAAC,EAAE,QAAQ,CAAC,EAAE,OAAO;IAUnF,QAAQ;IAGR,gBAAgB,CAAC,YAAY,EAAE,mBAAmB;CAsBrD;AAMD,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"message-bus.d.ts","sourceRoot":"","sources":["../../../src/utility/message-bus.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAClG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAwB,MAAM,MAAM,CAAC;AAE7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,cAAM,kBAAmB,SAAQ,UAAU;IACvC,OAAO,CAAC,OAAO,CAA0B;IACzC,OAAO,CAAC,kBAAkB,CAAe;gBAC7B,aAAa,EAAE,eAAe,CAAC,mBAAmB,CAAC,EAAE,QAAQ,CAAC,EAAE,OAAO;IAUnF,QAAQ;IAGR,gBAAgB,CAAC,YAAY,EAAE,mBAAmB;CAsBrD;AAMD,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;AACrE,YAAY,EAAE,WAAW,EAAE,CAAC"}
@@ -1,11 +1,16 @@
1
- import MessageBus, { sendMessage, sendBroadcast } from 'q2-tecton-common/lib/utility/message-bus';
2
- import { filter } from 'rxjs/operators';
3
- class PlatformMessageBus extends MessageBus {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sendBroadcast = exports.sendMessage = exports.default = void 0;
4
+ const message_bus_1 = require("q2-tecton-common/lib/utility/message-bus");
5
+ Object.defineProperty(exports, "sendMessage", { enumerable: true, get: function () { return message_bus_1.sendMessage; } });
6
+ Object.defineProperty(exports, "sendBroadcast", { enumerable: true, get: function () { return message_bus_1.sendBroadcast; } });
7
+ const rxjs_1 = require("rxjs");
8
+ class PlatformMessageBus extends message_bus_1.default {
4
9
  constructor(tectonConfig$, allowAll) {
5
10
  super();
6
11
  this.domains = new Set();
7
12
  this.configSubscription = tectonConfig$.subscribe(this.getConfigDomains.bind(this));
8
- this.firehose$ = this.firehose$.pipe(filter((e) => {
13
+ this.firehose$ = this.firehose$.pipe((0, rxjs_1.filter)((e) => {
9
14
  // filter messages to only registered origins
10
15
  return allowAll || this.domains.has(e.origin);
11
16
  }));
@@ -36,7 +41,7 @@ class PlatformMessageBus extends MessageBus {
36
41
  this.domains = dedupeAndCompact(domains);
37
42
  }
38
43
  }
44
+ exports.default = PlatformMessageBus;
39
45
  function dedupeAndCompact(domains) {
40
46
  return new Set(domains.filter(domain => domain !== ''));
41
47
  }
42
- export { PlatformMessageBus as default, sendMessage, sendBroadcast };
@@ -1,2 +1,4 @@
1
- import { showActionSheet } from 'q2-tecton-common/lib/utility/action-sheet';
2
- export default showActionSheet;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const action_sheet_1 = require("q2-tecton-common/lib/utility/action-sheet");
4
+ exports.default = action_sheet_1.showActionSheet;
@@ -1,4 +1,6 @@
1
- export default function validateActionParameters(candidateSubset, configuredParameters) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ function validateActionParameters(candidateSubset, configuredParameters) {
2
4
  if (candidateSubset === undefined || candidateSubset === null || JSON.stringify(candidateSubset) === '{}') {
3
5
  return true;
4
6
  }
@@ -16,3 +18,4 @@ export default function validateActionParameters(candidateSubset, configuredPara
16
18
  }
17
19
  return true;
18
20
  }
21
+ exports.default = validateActionParameters;
@@ -1,6 +1,11 @@
1
- export function scrollYHelper() {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.innerHeightHelper = exports.scrollYHelper = void 0;
4
+ function scrollYHelper() {
2
5
  return window.scrollY;
3
6
  }
4
- export function innerHeightHelper() {
7
+ exports.scrollYHelper = scrollYHelper;
8
+ function innerHeightHelper() {
5
9
  return window.innerHeight;
6
10
  }
11
+ exports.innerHeightHelper = innerHeightHelper;