@elliemae/pui-app-sdk 5.48.2 → 5.50.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 (223) hide show
  1. package/build/docs/404.html +1 -1
  2. package/build/docs/api/classes/Analytics/index.html +1 -1
  3. package/build/docs/api/classes/CMicroAppGuest/index.html +1 -1
  4. package/build/docs/api/classes/CMicroAppHost/index.html +1 -1
  5. package/build/docs/api/classes/ErrorBoundary/index.html +1 -1
  6. package/build/docs/api/classes/GuestModule/index.html +1 -1
  7. package/build/docs/api/functions/AppRoot/index.html +1 -1
  8. package/build/docs/api/functions/Autocomplete/index.html +1 -1
  9. package/build/docs/api/functions/CheckBox/index.html +1 -1
  10. package/build/docs/api/functions/ComboBox/index.html +1 -1
  11. package/build/docs/api/functions/ComboBoxV3/index.html +1 -1
  12. package/build/docs/api/functions/ConnectForm/index.html +1 -1
  13. package/build/docs/api/functions/DateInput/index.html +1 -1
  14. package/build/docs/api/functions/DatePicker/index.html +1 -1
  15. package/build/docs/api/functions/DateRangePicker/index.html +1 -1
  16. package/build/docs/api/functions/DateTimePicker/index.html +1 -1
  17. package/build/docs/api/functions/Form/index.html +1 -1
  18. package/build/docs/api/functions/FormItemLayout/index.html +1 -1
  19. package/build/docs/api/functions/FormLayoutBlockItem/index.html +1 -1
  20. package/build/docs/api/functions/FormSubmitButton/index.html +1 -1
  21. package/build/docs/api/functions/InputMask/index.html +1 -1
  22. package/build/docs/api/functions/InputText/index.html +1 -1
  23. package/build/docs/api/functions/LargeTextBox/index.html +1 -1
  24. package/build/docs/api/functions/MaskedInputText/index.html +1 -1
  25. package/build/docs/api/functions/Page/index.html +1 -1
  26. package/build/docs/api/functions/Radio/index.html +1 -1
  27. package/build/docs/api/functions/RadioGroup/index.html +1 -1
  28. package/build/docs/api/functions/RegisterService/index.html +1 -1
  29. package/build/docs/api/functions/RenderWithStateAddOns/index.html +1 -1
  30. package/build/docs/api/functions/RequireAuth/index.html +1 -1
  31. package/build/docs/api/functions/SessionTimeout/index.html +1 -1
  32. package/build/docs/api/functions/TextBox/index.html +1 -1
  33. package/build/docs/api/functions/Toggle/index.html +1 -1
  34. package/build/docs/api/functions/authSaga/index.html +1 -1
  35. package/build/docs/api/functions/authorize/index.html +1 -1
  36. package/build/docs/api/functions/buildModuleParams/index.html +1 -1
  37. package/build/docs/api/functions/cleanup/index.html +1 -1
  38. package/build/docs/api/functions/configureStore/index.html +1 -1
  39. package/build/docs/api/functions/createGuestModule/index.html +1 -1
  40. package/build/docs/api/functions/createManager/index.html +1 -1
  41. package/build/docs/api/functions/enableReactAppForHostIntegration/index.html +1 -1
  42. package/build/docs/api/functions/fetchHostAppData/index.html +1 -1
  43. package/build/docs/api/functions/fetchUserSettings/index.html +1 -1
  44. package/build/docs/api/functions/getApiActionCreator/index.html +1 -1
  45. package/build/docs/api/functions/getAppConfig/index.html +1 -1
  46. package/build/docs/api/functions/getAppConfigValue/index.html +1 -1
  47. package/build/docs/api/functions/getAuthHTTPClient/index.html +1 -1
  48. package/build/docs/api/functions/getAuthorizationHeader/index.html +1 -1
  49. package/build/docs/api/functions/getHTTPClient/index.html +1 -1
  50. package/build/docs/api/functions/getHostAppDataByKey/index.html +1 -1
  51. package/build/docs/api/functions/getLogger/index.html +1 -1
  52. package/build/docs/api/functions/getMicroFrontEndAppConfig/index.html +1 -1
  53. package/build/docs/api/functions/getNavigationLinks/index.html +1 -1
  54. package/build/docs/api/functions/getRedirectUrl/index.html +1 -1
  55. package/build/docs/api/functions/getSelectField/index.html +1 -1
  56. package/build/docs/api/functions/getStore/index.html +1 -1
  57. package/build/docs/api/functions/initServiceWorker/index.html +1 -1
  58. package/build/docs/api/functions/isCIBuild/index.html +1 -1
  59. package/build/docs/api/functions/isProd/index.html +1 -1
  60. package/build/docs/api/functions/isUserAuthorized/index.html +1 -1
  61. package/build/docs/api/functions/listenStorageEvents/index.html +1 -1
  62. package/build/docs/api/functions/loadAppConfig/index.html +1 -1
  63. package/build/docs/api/functions/loadable/index.html +1 -1
  64. package/build/docs/api/functions/login/index.html +1 -1
  65. package/build/docs/api/functions/notifyGuestUnloadComplete/index.html +1 -1
  66. package/build/docs/api/functions/onAuthorizationFailure/index.html +1 -1
  67. package/build/docs/api/functions/onGuestUnloadStart/index.html +1 -1
  68. package/build/docs/api/functions/redactPii/index.html +1 -1
  69. package/build/docs/api/functions/removeDoubleSlash/index.html +1 -1
  70. package/build/docs/api/functions/removeStorageEvents/index.html +1 -1
  71. package/build/docs/api/functions/render/index.html +1 -1
  72. package/build/docs/api/functions/renderHook/index.html +1 -1
  73. package/build/docs/api/functions/renderWithHostData/index.html +1 -1
  74. package/build/docs/api/functions/renderWithRedux/index.html +1 -1
  75. package/build/docs/api/functions/renderWithRouter/index.html +1 -1
  76. package/build/docs/api/functions/renderWithRouterRedux/index.html +1 -1
  77. package/build/docs/api/functions/sdkBaseQuery/index.html +1 -1
  78. package/build/docs/api/functions/sendBAEvent/index.html +1 -1
  79. package/build/docs/api/functions/sendMessageToHost/index.html +1 -1
  80. package/build/docs/api/functions/setAppConfig/index.html +1 -1
  81. package/build/docs/api/functions/setAppConfigValue/index.html +1 -1
  82. package/build/docs/api/functions/setHostAppData/index.html +1 -1
  83. package/build/docs/api/functions/setLoginParams/index.html +1 -1
  84. package/build/docs/api/functions/setSessionTimeoutInterval/index.html +1 -1
  85. package/build/docs/api/functions/subscribeToResetSession/index.html +1 -1
  86. package/build/docs/api/functions/subscribeToSessionExpiry/index.html +1 -1
  87. package/build/docs/api/functions/subscribeToSessionExpiryWarning/index.html +1 -1
  88. package/build/docs/api/functions/trackActivity/index.html +1 -1
  89. package/build/docs/api/functions/useAppDispatch/index.html +1 -1
  90. package/build/docs/api/functions/useAppMiddleware/index.html +1 -1
  91. package/build/docs/api/functions/useInjectQuery/index.html +1 -1
  92. package/build/docs/api/functions/useInjectReducer/index.html +1 -1
  93. package/build/docs/api/functions/useInjectSaga/index.html +1 -1
  94. package/build/docs/api/functions/useInjectSideEffect/index.html +1 -1
  95. package/build/docs/api/functions/useMediaQueryList/index.html +1 -1
  96. package/build/docs/api/functions/useStateSelector/index.html +1 -1
  97. package/build/docs/api/functions/useStateSelectorShallow/index.html +1 -1
  98. package/build/docs/api/functions/waitFor/index.html +1 -1
  99. package/build/docs/api/functions/waitForElementToBeRemoved/index.html +1 -1
  100. package/build/docs/api/functions/withAppDecorator/index.html +1 -1
  101. package/build/docs/api/index.html +1 -1
  102. package/build/docs/api/interfaces/AppConfig/index.html +1 -1
  103. package/build/docs/api/interfaces/GuestProps/index.html +1 -1
  104. package/build/docs/api/interfaces/UseStateSelectorOptions/index.html +1 -1
  105. package/build/docs/api/type-aliases/AppDispatch/index.html +1 -1
  106. package/build/docs/api/type-aliases/AppStore/index.html +1 -1
  107. package/build/docs/api/type-aliases/Await/index.html +1 -1
  108. package/build/docs/api/type-aliases/EMUI/index.html +1 -1
  109. package/build/docs/api/type-aliases/HostOptions/index.html +1 -1
  110. package/build/docs/api/type-aliases/HostProvidedParams/index.html +1 -1
  111. package/build/docs/api/type-aliases/ModuleOverrides/index.html +1 -1
  112. package/build/docs/api/type-aliases/OnHostInitCallback/index.html +1 -1
  113. package/build/docs/api/type-aliases/OnInitCallback/index.html +1 -1
  114. package/build/docs/api/type-aliases/OnMountCallback/index.html +1 -1
  115. package/build/docs/api/type-aliases/OnUnMountCallback/index.html +1 -1
  116. package/build/docs/api/type-aliases/RootState/index.html +1 -1
  117. package/build/docs/api/type-aliases/SelectStateFieldFunction/index.html +1 -1
  118. package/build/docs/api/variables/ErrorToast/index.html +1 -1
  119. package/build/docs/api/variables/FormPropsContext/index.html +1 -1
  120. package/build/docs/api/variables/GuestMicroApp/index.html +1 -1
  121. package/build/docs/api/variables/MASK_PIPES/index.html +1 -1
  122. package/build/docs/api/variables/MASK_TYPES/index.html +1 -1
  123. package/build/docs/api/variables/MicroApp/index.html +1 -1
  124. package/build/docs/api/variables/MicroIFrameApp/index.html +1 -1
  125. package/build/docs/api/variables/NavigationPrompt/index.html +1 -1
  126. package/build/docs/api/variables/NavigationPromptActions/index.html +1 -1
  127. package/build/docs/api/variables/Themes/index.html +1 -1
  128. package/build/docs/api/variables/VisuallyHidden/index.html +1 -1
  129. package/build/docs/api/variables/WaitMessage/index.html +1 -1
  130. package/build/docs/api/variables/act/index.html +1 -1
  131. package/build/docs/api/variables/ariaLive/index.html +1 -1
  132. package/build/docs/api/variables/auth/index.html +1 -1
  133. package/build/docs/api/variables/authReducer/index.html +1 -1
  134. package/build/docs/api/variables/clearSideEffects/index.html +1 -1
  135. package/build/docs/api/variables/createSideEffect/index.html +1 -1
  136. package/build/docs/api/variables/decorators/index.html +1 -1
  137. package/build/docs/api/variables/endSession/index.html +1 -1
  138. package/build/docs/api/variables/error/index.html +1 -1
  139. package/build/docs/api/variables/errorMiddleware/index.html +1 -1
  140. package/build/docs/api/variables/fireEvent/index.html +1 -1
  141. package/build/docs/api/variables/globalConstants/index.html +1 -1
  142. package/build/docs/api/variables/history/index.html +1 -1
  143. package/build/docs/api/variables/httpClientProps/index.html +1 -1
  144. package/build/docs/api/variables/logout/index.html +1 -1
  145. package/build/docs/api/variables/memoryHistory/index.html +1 -1
  146. package/build/docs/api/variables/removeSideEffect/index.html +1 -1
  147. package/build/docs/api/variables/resetUserIdleTime/index.html +1 -1
  148. package/build/docs/api/variables/screen/index.html +1 -1
  149. package/build/docs/api/variables/startSideEffect/index.html +1 -1
  150. package/build/docs/api/variables/updateBAEventParameters/index.html +1 -1
  151. package/build/docs/api/variables/useAppSelector/index.html +1 -1
  152. package/build/docs/api/variables/waitMessageAction/index.html +1 -1
  153. package/build/docs/api/variables/within/index.html +1 -1
  154. package/build/docs/assets/js/{main.9983c34d.js → main.b9673e66.js} +2 -2
  155. package/build/docs/index.html +1 -1
  156. package/build/docs/usage-guide/index.html +1 -1
  157. package/demo/{docs/6751.4870b9e7.iframe.bundle.js → 6751.d6668899.iframe.bundle.js} +1 -1
  158. package/demo/6751.d6668899.iframe.bundle.js.br +0 -0
  159. package/demo/{docs/6751.4870b9e7.iframe.bundle.js.gz → 6751.d6668899.iframe.bundle.js.gz} +0 -0
  160. package/demo/{6751.4870b9e7.iframe.bundle.js → docs/6751.d6668899.iframe.bundle.js} +1 -1
  161. package/demo/docs/6751.d6668899.iframe.bundle.js.br +0 -0
  162. package/demo/{6751.4870b9e7.iframe.bundle.js.gz → docs/6751.d6668899.iframe.bundle.js.gz} +0 -0
  163. package/demo/docs/iframe.html +1 -1
  164. package/demo/docs/index.html +1 -1
  165. package/demo/docs/main.817a6807.iframe.bundle.js +5 -0
  166. package/demo/docs/main.817a6807.iframe.bundle.js.br +0 -0
  167. package/demo/docs/main.817a6807.iframe.bundle.js.gz +0 -0
  168. package/demo/docs/{main.bd6146977a981bbbc197.manager.bundle.js → main.904139e0182fc887f3af.manager.bundle.js} +1 -1
  169. package/demo/docs/main.904139e0182fc887f3af.manager.bundle.js.br +0 -0
  170. package/demo/docs/{main.bd6146977a981bbbc197.manager.bundle.js.gz → main.904139e0182fc887f3af.manager.bundle.js.gz} +0 -0
  171. package/demo/docs/project.json +1 -1
  172. package/demo/iframe.html +1 -1
  173. package/demo/index.html +1 -1
  174. package/demo/main.817a6807.iframe.bundle.js +5 -0
  175. package/demo/main.817a6807.iframe.bundle.js.br +0 -0
  176. package/demo/main.817a6807.iframe.bundle.js.gz +0 -0
  177. package/demo/{main.bd6146977a981bbbc197.manager.bundle.js → main.904139e0182fc887f3af.manager.bundle.js} +1 -1
  178. package/demo/main.904139e0182fc887f3af.manager.bundle.js.br +0 -0
  179. package/demo/{main.bd6146977a981bbbc197.manager.bundle.js.gz → main.904139e0182fc887f3af.manager.bundle.js.gz} +0 -0
  180. package/demo/project.json +1 -1
  181. package/dist/cjs/analytics/index.js +2 -9
  182. package/dist/cjs/analytics/push-to-data-layer.js +34 -0
  183. package/dist/cjs/analytics/user-session-event.js +5 -9
  184. package/dist/cjs/utils/app-config/index.js +2 -2
  185. package/dist/cjs/utils/asset-path.js +29 -0
  186. package/dist/cjs/utils/get-window.js +31 -0
  187. package/dist/cjs/utils/helpers.js +2 -23
  188. package/dist/cjs/utils/product-app-details.js +45 -0
  189. package/dist/cjs/utils/window.js +4 -16
  190. package/dist/esm/analytics/index.js +2 -9
  191. package/dist/esm/analytics/push-to-data-layer.js +14 -0
  192. package/dist/esm/analytics/user-session-event.js +5 -9
  193. package/dist/esm/utils/app-config/index.js +1 -1
  194. package/dist/esm/utils/asset-path.js +9 -0
  195. package/dist/esm/utils/get-window.js +11 -0
  196. package/dist/esm/utils/helpers.js +1 -22
  197. package/dist/esm/utils/product-app-details.js +25 -0
  198. package/dist/esm/utils/window.js +2 -14
  199. package/dist/types/lib/analytics/push-to-data-layer.d.ts +6 -0
  200. package/dist/types/lib/analytics/tests/push-to-data-layer.test.d.ts +1 -0
  201. package/dist/types/lib/analytics/tests/send-ba-event.test.d.ts +1 -0
  202. package/dist/types/lib/analytics/tests/user-session-event.test.d.ts +1 -0
  203. package/dist/types/lib/utils/asset-path.d.ts +5 -0
  204. package/dist/types/lib/utils/get-window.d.ts +2 -0
  205. package/dist/types/lib/utils/helpers.d.ts +1 -11
  206. package/dist/types/lib/utils/product-app-details.d.ts +12 -0
  207. package/dist/types/lib/utils/tests/asset-path.test.d.ts +1 -0
  208. package/dist/types/lib/utils/tests/get-window.test.d.ts +1 -0
  209. package/dist/types/lib/utils/tests/product-app-details.test.d.ts +1 -0
  210. package/dist/types/lib/utils/window.d.ts +2 -2
  211. package/dist/types/tsconfig.tsbuildinfo +1 -1
  212. package/package.json +6 -1
  213. package/demo/6751.4870b9e7.iframe.bundle.js.br +0 -0
  214. package/demo/docs/6751.4870b9e7.iframe.bundle.js.br +0 -0
  215. package/demo/docs/main.23c07c99.iframe.bundle.js +0 -5
  216. package/demo/docs/main.23c07c99.iframe.bundle.js.br +0 -0
  217. package/demo/docs/main.23c07c99.iframe.bundle.js.gz +0 -0
  218. package/demo/docs/main.bd6146977a981bbbc197.manager.bundle.js.br +0 -0
  219. package/demo/main.23c07c99.iframe.bundle.js +0 -5
  220. package/demo/main.23c07c99.iframe.bundle.js.br +0 -0
  221. package/demo/main.23c07c99.iframe.bundle.js.gz +0 -0
  222. package/demo/main.bd6146977a981bbbc197.manager.bundle.js.br +0 -0
  223. /package/build/docs/assets/js/{main.9983c34d.js.LICENSE.txt → main.b9673e66.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- (globalThis.webpackChunk_elliemae_pui_app_sdk=globalThis.webpackChunk_elliemae_pui_app_sdk||[]).push([[792],{11792(i,t,o){"use strict";var p=o(59443),m=o(96778),b=Object.defineProperty,l=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,f=(e,a,r)=>a in e?b(e,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[a]=r,d=(e,a)=>{for(var r in a||(a={}))s.call(a,r)&&f(e,r,a[r]);if(l)for(var r of l(a))_.call(a,r)&&f(e,r,a[r]);return e},v=(e,a)=>{var r={};for(var n in e)s.call(e,n)&&a.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&l)for(var n of l(e))a.indexOf(n)<0&&_.call(e,n)&&(r[n]=e[n]);return r};const c=e=>{var a=e,{base:r="light",brandTitle:n="Platform UI Components"}=a,h=v(a,["base","brandTitle"]);return(0,m.vt)(d({base:r,brandTitle:`${n} 5.48.2`},h))};(e=>{p.MC.setConfig({panelPosition:"bottom",theme:c(e)})})({brandTitle:"Application SDK",brandUrl:"https://github.com/intcx/PLATFORM-UI.pui-app-sdk.git"})},22179(){}},i=>{var t=p=>i(i.s=p);i.O(0,[659],()=>(t(54176),t(11792),t(68082),t(34023),t(72247),t(40652),t(41420),t(48510),t(75963),t(4547),t(15869),t(74157),t(28061),t(99789),t(40166),t(29923)));var o=i.O()}]);
1
+ (globalThis.webpackChunk_elliemae_pui_app_sdk=globalThis.webpackChunk_elliemae_pui_app_sdk||[]).push([[792],{11792(i,t,o){"use strict";var p=o(59443),m=o(96778),b=Object.defineProperty,l=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,f=(e,a,r)=>a in e?b(e,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[a]=r,d=(e,a)=>{for(var r in a||(a={}))s.call(a,r)&&f(e,r,a[r]);if(l)for(var r of l(a))_.call(a,r)&&f(e,r,a[r]);return e},v=(e,a)=>{var r={};for(var n in e)s.call(e,n)&&a.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&l)for(var n of l(e))a.indexOf(n)<0&&_.call(e,n)&&(r[n]=e[n]);return r};const c=e=>{var a=e,{base:r="light",brandTitle:n="Platform UI Components"}=a,h=v(a,["base","brandTitle"]);return(0,m.vt)(d({base:r,brandTitle:`${n} 5.50.0`},h))};(e=>{p.MC.setConfig({panelPosition:"bottom",theme:c(e)})})({brandTitle:"Application SDK",brandUrl:"https://github.com/intcx/PLATFORM-UI.pui-app-sdk.git"})},22179(){}},i=>{var t=p=>i(i.s=p);i.O(0,[659],()=>(t(54176),t(11792),t(68082),t(34023),t(72247),t(40652),t(41420),t(48510),t(75963),t(4547),t(15869),t(74157),t(28061),t(99789),t(40166),t(29923)));var o=i.O()}]);
package/demo/project.json CHANGED
@@ -1 +1 @@
1
- {"generatedAt":1787576544381,"builder":{"name":"webpack5"},"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"packageManager":{"type":"pnpm","version":"8.15.9"},"typescriptOptions":{"check":false,"checkOptions":{},"reactDocgen":false,"reactDocgenTypescriptOptions":{"shouldExtractLiteralValuesFromEnum":true,"compilerOptions":{"allowSyntheticDefaultImports":false,"esModuleInterop":false}}},"features":{"fastRefresh":true,"storyStoreV7":true},"language":"javascript","storybookPackages":{},"framework":{"options":{"fastRefresh":true,"strictMode":true,"legacyRootApi":true}},"addons":{"@storybook/addon-docs":{"options":{"sourceLoaderOptions":{"injectStoryParameters":false}},"version":"6.5.16"},"@storybook/addon-essentials":{"options":{"docs":false},"version":"6.5.16"},"@storybook/addon-storysource":{"version":"6.5.16"},"@storybook/addon-links":{"version":"6.5.16"},"@storybook/addon-events":{"version":"6.2.9"},"@storybook/addon-interactions":{"version":"6.5.16"},"@storybook/addon-a11y":{"version":"6.5.16"},"storybook-addon-turbo-build":{"options":{"optimizationLevel":2,"esbuildMinifyOptions":{"target":"es2022"}},"version":"1.1.0"}}}
1
+ {"generatedAt":1787770720682,"builder":{"name":"webpack5"},"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"packageManager":{"type":"pnpm","version":"8.15.9"},"typescriptOptions":{"check":false,"checkOptions":{},"reactDocgen":false,"reactDocgenTypescriptOptions":{"shouldExtractLiteralValuesFromEnum":true,"compilerOptions":{"allowSyntheticDefaultImports":false,"esModuleInterop":false}}},"features":{"fastRefresh":true,"storyStoreV7":true},"language":"javascript","storybookPackages":{},"framework":{"options":{"fastRefresh":true,"strictMode":true,"legacyRootApi":true}},"addons":{"@storybook/addon-docs":{"options":{"sourceLoaderOptions":{"injectStoryParameters":false}},"version":"6.5.16"},"@storybook/addon-essentials":{"options":{"docs":false},"version":"6.5.16"},"@storybook/addon-storysource":{"version":"6.5.16"},"@storybook/addon-links":{"version":"6.5.16"},"@storybook/addon-events":{"version":"6.2.9"},"@storybook/addon-interactions":{"version":"6.5.16"},"@storybook/addon-a11y":{"version":"6.5.16"},"storybook-addon-turbo-build":{"options":{"optimizationLevel":2,"esbuildMinifyOptions":{"target":"es2022"}},"version":"1.1.0"}}}
@@ -21,17 +21,10 @@ __export(analytics_exports, {
21
21
  sendBAEvent: () => sendBAEvent
22
22
  });
23
23
  module.exports = __toCommonJS(analytics_exports);
24
- var import_pui_analytics_so = require("@elliemae/pui-analytics-so");
25
24
  var import_guest = require("../utils/micro-frontend/guest.js");
26
- var import_helpers = require("../utils/helpers.js");
25
+ var import_push_to_data_layer = require("./push-to-data-layer.js");
27
26
  const sendBAEventToSelf = (data) => {
28
- const eventData = {
29
- ...(0, import_pui_analytics_so.getBAEventParameters)(),
30
- ...(0, import_helpers.getProductAppDetails)(),
31
- ...data
32
- };
33
- window.gtmDataLayer = window.gtmDataLayer || [];
34
- window.gtmDataLayer.push(eventData);
27
+ (0, import_push_to_data_layer.pushBAEventToDataLayer)(data);
35
28
  };
36
29
  const sendBAEvent = ({
37
30
  data,
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var push_to_data_layer_exports = {};
20
+ __export(push_to_data_layer_exports, {
21
+ pushBAEventToDataLayer: () => pushBAEventToDataLayer
22
+ });
23
+ module.exports = __toCommonJS(push_to_data_layer_exports);
24
+ var import_pui_analytics_so = require("@elliemae/pui-analytics-so");
25
+ var import_product_app_details = require("../utils/product-app-details.js");
26
+ const pushBAEventToDataLayer = (data) => {
27
+ const eventData = {
28
+ ...(0, import_pui_analytics_so.getBAEventParameters)(),
29
+ ...(0, import_product_app_details.getProductAppDetails)(),
30
+ ...data
31
+ };
32
+ window.gtmDataLayer = window.gtmDataLayer || [];
33
+ window.gtmDataLayer.push(eventData);
34
+ };
@@ -23,23 +23,19 @@ __export(user_session_event_exports, {
23
23
  });
24
24
  module.exports = __toCommonJS(user_session_event_exports);
25
25
  var import_pui_analytics_so = require("@elliemae/pui-analytics-so");
26
- var import_index = require("./index.js");
26
+ var import_push_to_data_layer = require("./push-to-data-layer.js");
27
27
  const loginEvent = ({
28
28
  instanceId,
29
29
  userId
30
30
  }) => {
31
31
  (0, import_pui_analytics_so.updateBAEventParameters)({ instanceId, userId });
32
- (0, import_index.sendBAEvent)({
33
- data: {
34
- event: "login"
35
- }
32
+ (0, import_push_to_data_layer.pushBAEventToDataLayer)({
33
+ event: "login"
36
34
  });
37
35
  };
38
36
  const logoutEvent = () => {
39
- (0, import_index.sendBAEvent)({
40
- data: {
41
- event: "logout"
42
- }
37
+ (0, import_push_to_data_layer.pushBAEventToDataLayer)({
38
+ event: "logout"
43
39
  });
44
40
  (0, import_pui_analytics_so.updateBAEventParameters)({ instanceId: "", userId: "" });
45
41
  };
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(app_config_exports);
36
36
  var import_lodash = __toESM(require("lodash"));
37
37
  var import_pui_analytics_so = require("@elliemae/pui-analytics-so");
38
38
  var import_config = require("./config.js");
39
- var import_window = require("../window.js");
39
+ var import_asset_path = require("../asset-path.js");
40
40
  var import_config2 = require("./config.js");
41
41
  const parseAppConfig = (data) => {
42
42
  const { activeEnv } = data;
@@ -49,7 +49,7 @@ const parseAppConfig = (data) => {
49
49
  (0, import_pui_analytics_so.updateBAEventParameters)({ envName: activeEnv });
50
50
  };
51
51
  const getUnVersionedPath = (path) => path.replace(/(\d+\.\d+)(?!.*\d+\.\d+)/, "latest");
52
- const loadAppConfig = async (configPath = (0, import_window.getAssetPath)()) => {
52
+ const loadAppConfig = async (configPath = (0, import_asset_path.getAssetPath)()) => {
53
53
  const appConfigUrl = `${configPath.replace(/\/?$/, "/")}app.config.json`;
54
54
  const unversionedConfigPath = getUnVersionedPath(configPath);
55
55
  try {
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var asset_path_exports = {};
20
+ __export(asset_path_exports, {
21
+ getAssetPath: () => getAssetPath
22
+ });
23
+ module.exports = __toCommonJS(asset_path_exports);
24
+ const getAssetPath = () => {
25
+ const assetPath = window?.emui?._ASSET_PATH || "latest/";
26
+ if (!window.emui?.version) return assetPath;
27
+ const majorMinorVersion = window.emui?.version.match(/^(?:\d+\.\d+)*/g);
28
+ return majorMinorVersion && majorMinorVersion[0] ? assetPath.replace("latest/", `${majorMinorVersion[0]}/`) : assetPath;
29
+ };
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var get_window_exports = {};
20
+ __export(get_window_exports, {
21
+ getWindow: () => getWindow
22
+ });
23
+ module.exports = __toCommonJS(get_window_exports);
24
+ const getWindow = () => {
25
+ try {
26
+ window.parent.document;
27
+ return window.parent;
28
+ } catch (err) {
29
+ return window;
30
+ }
31
+ };
@@ -20,12 +20,12 @@ var helpers_exports = {};
20
20
  __export(helpers_exports, {
21
21
  abortPromise: () => abortPromise,
22
22
  convertRelativeToAbsoluteUrl: () => convertRelativeToAbsoluteUrl,
23
- getProductAppDetails: () => getProductAppDetails,
23
+ getProductAppDetails: () => import_product_app_details.getProductAppDetails,
24
24
  isCIBuild: () => isCIBuild,
25
25
  isProd: () => isProd
26
26
  });
27
27
  module.exports = __toCommonJS(helpers_exports);
28
- var import_window = require("./window.js");
28
+ var import_product_app_details = require("./product-app-details.js");
29
29
  const isProd = () => false;
30
30
  const isCIBuild = () => process.env.CI === "true";
31
31
  const PROTOCOL = /^(?:[a-z]+:)?\/\//;
@@ -35,27 +35,6 @@ const convertRelativeToAbsoluteUrl = (url) => {
35
35
  }
36
36
  return url;
37
37
  };
38
- const getProductAppDetails = () => {
39
- const pageWindow = (0, import_window.getWindow)();
40
- const { title: productPageTitle } = pageWindow.document;
41
- const { title: appPageTitle } = document;
42
- const productId = pageWindow?.emui?.appId ?? "";
43
- const version = pageWindow?.emui?.version ?? "";
44
- const appId = window?.emui?.appId ?? "";
45
- const { pathname: productPath, href: productUrl } = pageWindow.location;
46
- const { pathname: appPath, href: appUrl } = window.location;
47
- return {
48
- productId,
49
- productPath,
50
- productUrl,
51
- productPageTitle,
52
- version,
53
- appId,
54
- appPath,
55
- appUrl,
56
- appPageTitle
57
- };
58
- };
59
38
  const abortPromise = ({
60
39
  promise,
61
40
  delay,
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var product_app_details_exports = {};
20
+ __export(product_app_details_exports, {
21
+ getProductAppDetails: () => getProductAppDetails
22
+ });
23
+ module.exports = __toCommonJS(product_app_details_exports);
24
+ var import_get_window = require("./get-window.js");
25
+ const getProductAppDetails = () => {
26
+ const pageWindow = (0, import_get_window.getWindow)();
27
+ const { title: productPageTitle } = pageWindow.document;
28
+ const { title: appPageTitle } = document;
29
+ const productId = pageWindow?.emui?.appId ?? "";
30
+ const version = pageWindow?.emui?.version ?? "";
31
+ const appId = window?.emui?.appId ?? "";
32
+ const { pathname: productPath, href: productUrl } = pageWindow.location;
33
+ const { pathname: appPath, href: appUrl } = window.location;
34
+ return {
35
+ productId,
36
+ productPath,
37
+ productUrl,
38
+ productPageTitle,
39
+ version,
40
+ appId,
41
+ appPath,
42
+ appUrl,
43
+ appPageTitle
44
+ };
45
+ };
@@ -18,21 +18,15 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var window_exports = {};
20
20
  __export(window_exports, {
21
- getAssetPath: () => getAssetPath,
21
+ getAssetPath: () => import_asset_path.getAssetPath,
22
22
  getCurrentBreakpoint: () => getCurrentBreakpoint,
23
23
  getViewportSize: () => getViewportSize,
24
- getWindow: () => getWindow
24
+ getWindow: () => import_get_window.getWindow
25
25
  });
26
26
  module.exports = __toCommonJS(window_exports);
27
27
  var import_pui_theme = require("@elliemae/pui-theme");
28
- const getWindow = () => {
29
- try {
30
- window.parent.document;
31
- return window.parent;
32
- } catch (err) {
33
- return window;
34
- }
35
- };
28
+ var import_get_window = require("./get-window.js");
29
+ var import_asset_path = require("./asset-path.js");
36
30
  const getViewportSize = () => ({
37
31
  width: Math.max(
38
32
  document.documentElement.clientWidth || 0,
@@ -52,9 +46,3 @@ const getCurrentBreakpoint = () => {
52
46
  if (width <= convertBreakpointToNumber(breakpoints.xsmall)) return "xsmall";
53
47
  return "large";
54
48
  };
55
- const getAssetPath = () => {
56
- const assetPath = window?.emui?._ASSET_PATH || "latest/";
57
- if (!window.emui?.version) return assetPath;
58
- const majorMinorVersion = window.emui?.version.match(/^(?:\d+\.\d+)*/g);
59
- return majorMinorVersion && majorMinorVersion[0] ? assetPath.replace("latest/", `${majorMinorVersion[0]}/`) : assetPath;
60
- };
@@ -1,14 +1,7 @@
1
- import { getBAEventParameters } from "@elliemae/pui-analytics-so";
2
1
  import { CMicroAppGuest } from "../utils/micro-frontend/guest.js";
3
- import { getProductAppDetails } from "../utils/helpers.js";
2
+ import { pushBAEventToDataLayer } from "./push-to-data-layer.js";
4
3
  const sendBAEventToSelf = (data) => {
5
- const eventData = {
6
- ...getBAEventParameters(),
7
- ...getProductAppDetails(),
8
- ...data
9
- };
10
- window.gtmDataLayer = window.gtmDataLayer || [];
11
- window.gtmDataLayer.push(eventData);
4
+ pushBAEventToDataLayer(data);
12
5
  };
13
6
  const sendBAEvent = ({
14
7
  data,
@@ -0,0 +1,14 @@
1
+ import { getBAEventParameters } from "@elliemae/pui-analytics-so";
2
+ import { getProductAppDetails } from "../utils/product-app-details.js";
3
+ const pushBAEventToDataLayer = (data) => {
4
+ const eventData = {
5
+ ...getBAEventParameters(),
6
+ ...getProductAppDetails(),
7
+ ...data
8
+ };
9
+ window.gtmDataLayer = window.gtmDataLayer || [];
10
+ window.gtmDataLayer.push(eventData);
11
+ };
12
+ export {
13
+ pushBAEventToDataLayer
14
+ };
@@ -1,21 +1,17 @@
1
1
  import { updateBAEventParameters } from "@elliemae/pui-analytics-so";
2
- import { sendBAEvent } from "./index.js";
2
+ import { pushBAEventToDataLayer } from "./push-to-data-layer.js";
3
3
  const loginEvent = ({
4
4
  instanceId,
5
5
  userId
6
6
  }) => {
7
7
  updateBAEventParameters({ instanceId, userId });
8
- sendBAEvent({
9
- data: {
10
- event: "login"
11
- }
8
+ pushBAEventToDataLayer({
9
+ event: "login"
12
10
  });
13
11
  };
14
12
  const logoutEvent = () => {
15
- sendBAEvent({
16
- data: {
17
- event: "logout"
18
- }
13
+ pushBAEventToDataLayer({
14
+ event: "logout"
19
15
  });
20
16
  updateBAEventParameters({ instanceId: "", userId: "" });
21
17
  };
@@ -1,7 +1,7 @@
1
1
  import _ from "lodash";
2
2
  import { updateBAEventParameters } from "@elliemae/pui-analytics-so";
3
3
  import { getAppConfigValue, setAppConfig } from "./config.js";
4
- import { getAssetPath } from "../window.js";
4
+ import { getAssetPath } from "../asset-path.js";
5
5
  import { getAppConfigValue as getAppConfigValue2, getAppConfig } from "./config.js";
6
6
  const parseAppConfig = (data) => {
7
7
  const { activeEnv } = data;
@@ -0,0 +1,9 @@
1
+ const getAssetPath = () => {
2
+ const assetPath = window?.emui?._ASSET_PATH || "latest/";
3
+ if (!window.emui?.version) return assetPath;
4
+ const majorMinorVersion = window.emui?.version.match(/^(?:\d+\.\d+)*/g);
5
+ return majorMinorVersion && majorMinorVersion[0] ? assetPath.replace("latest/", `${majorMinorVersion[0]}/`) : assetPath;
6
+ };
7
+ export {
8
+ getAssetPath
9
+ };
@@ -0,0 +1,11 @@
1
+ const getWindow = () => {
2
+ try {
3
+ window.parent.document;
4
+ return window.parent;
5
+ } catch (err) {
6
+ return window;
7
+ }
8
+ };
9
+ export {
10
+ getWindow
11
+ };
@@ -1,6 +1,6 @@
1
- import { getWindow } from "./window.js";
2
1
  const isProd = () => false;
3
2
  const isCIBuild = () => process.env.CI === "true";
3
+ import { getProductAppDetails } from "./product-app-details.js";
4
4
  const PROTOCOL = /^(?:[a-z]+:)?\/\//;
5
5
  const convertRelativeToAbsoluteUrl = (url) => {
6
6
  if (!PROTOCOL.test(url)) {
@@ -8,27 +8,6 @@ const convertRelativeToAbsoluteUrl = (url) => {
8
8
  }
9
9
  return url;
10
10
  };
11
- const getProductAppDetails = () => {
12
- const pageWindow = getWindow();
13
- const { title: productPageTitle } = pageWindow.document;
14
- const { title: appPageTitle } = document;
15
- const productId = pageWindow?.emui?.appId ?? "";
16
- const version = pageWindow?.emui?.version ?? "";
17
- const appId = window?.emui?.appId ?? "";
18
- const { pathname: productPath, href: productUrl } = pageWindow.location;
19
- const { pathname: appPath, href: appUrl } = window.location;
20
- return {
21
- productId,
22
- productPath,
23
- productUrl,
24
- productPageTitle,
25
- version,
26
- appId,
27
- appPath,
28
- appUrl,
29
- appPageTitle
30
- };
31
- };
32
11
  const abortPromise = ({
33
12
  promise,
34
13
  delay,
@@ -0,0 +1,25 @@
1
+ import { getWindow } from "./get-window.js";
2
+ const getProductAppDetails = () => {
3
+ const pageWindow = getWindow();
4
+ const { title: productPageTitle } = pageWindow.document;
5
+ const { title: appPageTitle } = document;
6
+ const productId = pageWindow?.emui?.appId ?? "";
7
+ const version = pageWindow?.emui?.version ?? "";
8
+ const appId = window?.emui?.appId ?? "";
9
+ const { pathname: productPath, href: productUrl } = pageWindow.location;
10
+ const { pathname: appPath, href: appUrl } = window.location;
11
+ return {
12
+ productId,
13
+ productPath,
14
+ productUrl,
15
+ productPageTitle,
16
+ version,
17
+ appId,
18
+ appPath,
19
+ appUrl,
20
+ appPageTitle
21
+ };
22
+ };
23
+ export {
24
+ getProductAppDetails
25
+ };
@@ -1,12 +1,5 @@
1
1
  import { getDefaultTheme } from "@elliemae/pui-theme";
2
- const getWindow = () => {
3
- try {
4
- window.parent.document;
5
- return window.parent;
6
- } catch (err) {
7
- return window;
8
- }
9
- };
2
+ import { getWindow } from "./get-window.js";
10
3
  const getViewportSize = () => ({
11
4
  width: Math.max(
12
5
  document.documentElement.clientWidth || 0,
@@ -26,12 +19,7 @@ const getCurrentBreakpoint = () => {
26
19
  if (width <= convertBreakpointToNumber(breakpoints.xsmall)) return "xsmall";
27
20
  return "large";
28
21
  };
29
- const getAssetPath = () => {
30
- const assetPath = window?.emui?._ASSET_PATH || "latest/";
31
- if (!window.emui?.version) return assetPath;
32
- const majorMinorVersion = window.emui?.version.match(/^(?:\d+\.\d+)*/g);
33
- return majorMinorVersion && majorMinorVersion[0] ? assetPath.replace("latest/", `${majorMinorVersion[0]}/`) : assetPath;
34
- };
22
+ import { getAssetPath } from "./asset-path.js";
35
23
  export {
36
24
  getAssetPath,
37
25
  getCurrentBreakpoint,
@@ -0,0 +1,6 @@
1
+ import { BAEvent } from '@elliemae/pui-micro-frontend-base';
2
+ /**
3
+ * Push a business analytics event to the local GTM data layer.
4
+ * @param data
5
+ */
6
+ export declare const pushBAEventToDataLayer: (data: BAEvent) => void;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Resolve the CDN asset path for the current host, optionally substituting
3
+ * the major.minor version from `window.emui.version` for `latest/`.
4
+ */
5
+ export declare const getAssetPath: () => string;
@@ -0,0 +1,2 @@
1
+ /** Return the parent window when same-origin, otherwise the current window. */
2
+ export declare const getWindow: () => WindowProxy;
@@ -1,17 +1,7 @@
1
1
  export declare const isProd: () => boolean;
2
2
  export declare const isCIBuild: () => boolean;
3
+ export { getProductAppDetails } from './product-app-details.js';
3
4
  export declare const convertRelativeToAbsoluteUrl: (url: string) => string;
4
- export declare const getProductAppDetails: () => {
5
- productId: string;
6
- productPath: string;
7
- productUrl: string;
8
- productPageTitle: string;
9
- version: string;
10
- appId: string;
11
- appPath: string;
12
- appUrl: string;
13
- appPageTitle: string;
14
- };
15
5
  export declare const abortPromise: ({ promise, delay, retValue, throwError, errMsg, }: {
16
6
  promise: Promise<unknown>;
17
7
  delay: number;
@@ -0,0 +1,12 @@
1
+ /** Collect host and guest page metadata for analytics events. */
2
+ export declare const getProductAppDetails: () => {
3
+ productId: string;
4
+ productPath: string;
5
+ productUrl: string;
6
+ productPageTitle: string;
7
+ version: string;
8
+ appId: string;
9
+ appPath: string;
10
+ appUrl: string;
11
+ appPageTitle: string;
12
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -7,6 +7,7 @@ import { Logger } from '@elliemae/pui-diagnostics';
7
7
  import { IMicroFEHost } from '@elliemae/pui-app-bridge';
8
8
  import type LogRocket from 'logrocket';
9
9
  import { LoginParams } from './auth/types';
10
+ export { getWindow } from './get-window.js';
10
11
  export type EMUI<AppObjects extends ScriptingObjects = Partial<ScriptingObjectTypes>, AppEvents extends EventListeners = Events> = {
11
12
  [key: string]: IMicroAppGuest<AppObjects, AppEvents> | IMicroAppGuest<AppObjects, AppEvents>[];
12
13
  } & {
@@ -38,10 +39,9 @@ declare global {
38
39
  };
39
40
  }
40
41
  }
41
- export declare const getWindow: () => WindowProxy;
42
42
  export declare const getViewportSize: () => {
43
43
  width: number;
44
44
  height: number;
45
45
  };
46
46
  export declare const getCurrentBreakpoint: () => BreakPoint;
47
- export declare const getAssetPath: () => string;
47
+ export { getAssetPath } from './asset-path.js';