@elliemae/pui-logrocket 1.0.1 → 1.0.3

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.
@@ -1,6 +1,28 @@
1
1
  import LogRocket from 'logrocket';
2
2
  export type LROptions = Parameters<typeof LogRocket.init>[1] & {
3
+ /**
4
+ * unique identifier of the logrocket project
5
+ * @example 'your-project/your-app'
6
+ * @default window.emui.logRocketConfig.appId
7
+ */
8
+ appId?: string;
9
+ /**
10
+ * indicates if the application is using react framework
11
+ * @default true
12
+ */
3
13
  isReact?: boolean;
4
14
  };
5
- declare const initLogRocket: (id: string, options?: LROptions) => void;
15
+ /**
16
+ * initialize LogRocket
17
+ * @example
18
+ * initLogRocket({
19
+ * appId: 'your-project/your-app',
20
+ * isReact: true, // default is true
21
+ * rootHostname: '.ice.com', // default is .ice.com
22
+ * childDomains: ['.your-domain.com'], // default is null
23
+ * parentDomain: '.your-domain.com', // default is null
24
+ * });
25
+ * @param options LROptions option to initialize logrocket
26
+ */
27
+ declare const initLogRocket: (options?: LROptions) => void;
6
28
  export { LogRocket, initLogRocket };
@@ -1,6 +1,12 @@
1
1
  import LogRocket from 'logrocket';
2
2
  interface EMUI {
3
3
  logRocket: typeof LogRocket;
4
+ logRocketConfig?: {
5
+ appId: string;
6
+ childDomains?: string[];
7
+ parentDomain?: string;
8
+ rootHostname?: string;
9
+ };
4
10
  }
5
11
  declare global {
6
12
  interface Window {