@sailfish-ai/recorder 1.7.41 → 1.7.46

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.
Binary file
Binary file
@@ -1,4 +1,26 @@
1
+ type ShortcutConfig = {
2
+ key: string;
3
+ requireCmdCtrl?: boolean;
4
+ };
5
+ export type ShortcutsConfig = {
6
+ enabled: boolean;
7
+ openModalExistingMode: ShortcutConfig;
8
+ openModalCaptureNewMode: ShortcutConfig;
9
+ closeModal: ShortcutConfig;
10
+ submitReport: ShortcutConfig;
11
+ startRecording: ShortcutConfig;
12
+ stopRecording: ShortcutConfig;
13
+ };
1
14
  export declare const ReportIssueContext: {
15
+ shortcuts: {
16
+ enabled: boolean;
17
+ openModalExistingMode: ShortcutConfig;
18
+ openModalCaptureNewMode: ShortcutConfig;
19
+ closeModal: ShortcutConfig;
20
+ submitReport: ShortcutConfig;
21
+ startRecording: ShortcutConfig;
22
+ stopRecording: ShortcutConfig;
23
+ };
2
24
  resolveSessionId: (() => string) | null;
3
25
  apiKey: string | null;
4
26
  backendApi: string | null;
@@ -8,6 +30,7 @@ export declare function setupIssueReporting(options: {
8
30
  apiKey: string;
9
31
  backendApi: string;
10
32
  getSessionId: () => string;
11
- enableShortcuts?: boolean;
33
+ shortcuts?: Partial<ShortcutsConfig>;
12
34
  }): void;
13
35
  export declare function openReportIssueModal(customBaseUrl?: string): void;
36
+ export {};
@@ -1,4 +1,5 @@
1
1
  import { LogRecordOptions } from "@sailfish-rrweb/rrweb-plugin-console-record";
2
+ import { ShortcutsConfig } from "./inAppReportIssueModal";
2
3
  import { CaptureSettings } from "./types";
3
4
  export declare const STORAGE_VERSION = 1;
4
5
  export declare const DYNAMIC_PASSED_HOSTS_KEY = "dynamicPassedHosts";
@@ -14,7 +15,7 @@ export declare const dynamicPassedHosts: Set<string>;
14
15
  export declare function consolidateDynamicExclusions(hostPathSet: Set<string>, threshold?: number): Set<string>;
15
16
  export declare const DEFAULT_CAPTURE_SETTINGS: CaptureSettings;
16
17
  export declare const DEFAULT_CONSOLE_RECORDING_SETTINGS: LogRecordOptions;
17
- export declare function matchUrlWithWildcard(url: string, patterns: string[]): boolean;
18
+ export declare function matchUrlWithWildcard(input: unknown, patterns: string[]): boolean;
18
19
  export declare function startRecording({ apiKey, backendApi, domainsToPropagateHeaderTo, domainsToNotPropagateHeaderTo, serviceVersion, serviceIdentifier, gitSha, serviceAdditionalMetadata, }: {
19
20
  apiKey: string;
20
21
  backendApi?: string;
@@ -30,7 +31,7 @@ export declare const initRecorder: (options: {
30
31
  backendApi?: string;
31
32
  domainsToPropagateHeaderTo?: string[];
32
33
  domainsToNotPropagateHeaderTo?: string[];
33
- enableShortcuts?: boolean;
34
+ reportIssueShortcuts?: Partial<ShortcutsConfig>;
34
35
  serviceVersion?: string;
35
36
  serviceIdentifier?: string;
36
37
  gitSha?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sailfish-ai/recorder",
3
- "version": "1.7.41",
3
+ "version": "1.7.46",
4
4
  "publishPublicly": true,
5
5
  "main": "dist/sailfish-recorder.umd.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -39,7 +39,7 @@
39
39
  "devDependencies": {
40
40
  "@rollup/plugin-terser": "^0.4.4",
41
41
  "@types/jest": "^30.0.0",
42
- "@types/node": "^18.0.0",
42
+ "@types/node": "^20.19.10",
43
43
  "@types/react": "^19.1.8",
44
44
  "@types/react-dom": "^19.1.6",
45
45
  "@types/uuid": "^10.0.0",