@rewindkit/runtime 0.1.0-alpha.1

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.
@@ -0,0 +1,13 @@
1
+ export interface RedactOptions {
2
+ includeStateKeys?: string[];
3
+ redactKeys?: string[];
4
+ }
5
+ export declare const __maskDeep: (value: unknown, redactKeys: string[] | undefined) => unknown;
6
+ export declare const __redact: (value: unknown, opts: RedactOptions) => unknown;
7
+ export interface DisplayOptions {
8
+ depth?: number;
9
+ nodes?: number;
10
+ strLen?: number;
11
+ }
12
+ export declare const serializeForDisplay: (value: unknown, opts?: DisplayOptions) => unknown;
13
+ //# sourceMappingURL=redaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redaction.d.ts","sourceRoot":"","sources":["../src/redaction.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,aAAa;IAC5B,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AA2BD,eAAO,MAAM,UAAU,UAAW,OAAO,cAAc,MAAM,EAAE,GAAG,SAAS,KAAG,OACE,CAAC;AAIjF,eAAO,MAAM,QAAQ,UAAW,OAAO,QAAQ,aAAa,KAAG,OAuB9D,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAMD,eAAO,MAAM,mBAAmB,UAAW,OAAO,SAAQ,cAAc,KAAQ,OA8C/E,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { RawSnapshot } from "./bundle";
2
+ import type { ReplayPlayer } from "./player";
3
+ export type ReplayMode = "live" | "history";
4
+ export declare const getReplayMode: () => ReplayMode;
5
+ export declare const subscribeReplayMode: (cb: (m: ReplayMode) => void) => (() => void);
6
+ export declare const applyReplayState: (snapshot: RawSnapshot, storeKey?: string) => void;
7
+ export declare const seek: (player: ReplayPlayer, tMs: number) => void;
8
+ export declare const returnToLive: () => void;
9
+ export declare const __resetReplayMode: () => void;
10
+ //# sourceMappingURL=replay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replay.d.ts","sourceRoot":"","sources":["../src/replay.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAK7C,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,SAAS,CAAC;AAK5C,eAAO,MAAM,aAAa,QAAO,UAAkB,CAAC;AAIpD,eAAO,MAAM,mBAAmB,OAAQ,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,KAAG,CAAC,MAAM,IAAI,CAM5E,CAAC;AA4BF,eAAO,MAAM,gBAAgB,aAAc,WAAW,aAAa,MAAM,KAAG,IAe3E,CAAC;AAKF,eAAO,MAAM,IAAI,WAAY,YAAY,OAAO,MAAM,KAAG,IAaxD,CAAC;AAGF,eAAO,MAAM,YAAY,QAAO,IAU/B,CAAC;AAGF,eAAO,MAAM,iBAAiB,QAAO,IAGpC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@rewindkit/runtime",
3
+ "version": "0.1.0-alpha.1",
4
+ "type": "module",
5
+ "description": "Zero-config record/replay toolkit for React + Redux Toolkit + Module Federation — recorder, player, redaction, and React companion",
6
+ "license": "MIT",
7
+ "keywords": [
8
+ "react",
9
+ "redux",
10
+ "replay",
11
+ "time-travel",
12
+ "devtools",
13
+ "module-federation",
14
+ "vite"
15
+ ],
16
+ "sideEffects": false,
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.js"
21
+ },
22
+ "./react": {
23
+ "types": "./dist/react/index.d.ts",
24
+ "import": "./dist/react/index.js"
25
+ }
26
+ },
27
+ "publishConfig": {
28
+ "access": "public"
29
+ },
30
+ "files": [
31
+ "dist"
32
+ ],
33
+ "peerDependencies": {
34
+ "react": "^18 || ^19",
35
+ "redux": "^5"
36
+ },
37
+ "peerDependenciesMeta": {
38
+ "react": {
39
+ "optional": true
40
+ }
41
+ }
42
+ }