@brett_lamy/docstream 1.6.0 → 1.6.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.
package/README.md
CHANGED
|
@@ -139,8 +139,8 @@ import { ReplayPreview } from "@brett_lamy/docstream"
|
|
|
139
139
|
<ReplayPreview source="https://loop-qa.replay.io/projects/project-id/tasks/task-id" />
|
|
140
140
|
```
|
|
141
141
|
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
rrweb (and its stylesheet) is imported only by the lazily loaded player chunk, so pages
|
|
143
|
+
that only embed Loop QA URLs never download it. To build custom player chrome, use
|
|
144
144
|
the headless `ReplayStage` (the fitted page, driven through a ref and callbacks) with the
|
|
145
145
|
pure timeline helpers, none of which load rrweb:
|
|
146
146
|
|
|
@@ -4,7 +4,7 @@ export declare function preloadReplayStage(): Promise<unknown>;
|
|
|
4
4
|
/**
|
|
5
5
|
* A headless rrweb player: the recorded page, fitted to its box, with no controls. Drive it
|
|
6
6
|
* through the ref (`play`, `pause`, `seek`, …) and the `onTimeUpdate` / `onPlayingChange`
|
|
7
|
-
* callbacks to build custom player chrome.
|
|
7
|
+
* callbacks to build custom player chrome.
|
|
8
8
|
*/
|
|
9
9
|
export declare const ReplayStage: import("react").ForwardRefExoticComponent<ReplayStageProps & import("react").RefAttributes<ReplayStageHandle>>;
|
|
10
10
|
//# sourceMappingURL=ReplayStage.d.ts.map
|
|
@@ -11,7 +11,7 @@ export function preloadReplayStage() {
|
|
|
11
11
|
/**
|
|
12
12
|
* A headless rrweb player: the recorded page, fitted to its box, with no controls. Drive it
|
|
13
13
|
* through the ref (`play`, `pause`, `seek`, …) and the `onTimeUpdate` / `onPlayingChange`
|
|
14
|
-
* callbacks to build custom player chrome.
|
|
14
|
+
* callbacks to build custom player chrome.
|
|
15
15
|
*/
|
|
16
16
|
export const ReplayStage = forwardRef(function ReplayStage({ fallback = null, ...props }, ref) {
|
|
17
17
|
return (_jsx(Suspense, { fallback: fallback, children: _jsx(LazyReplayStage, { ref: ref, ...props }) }));
|
package/dist/replay/types.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* rrweb's event shape and the numeric enums the replay helpers read, declared locally so the
|
|
2
|
-
eager replay modules (and their published declarations) never import rrweb. rrweb is
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
eager replay modules (and their published declarations) never import rrweb. rrweb is
|
|
3
|
+
lazy: only the player chunk (`ReplayStageImpl` / `NativeReplay`) imports it, so pages that
|
|
4
|
+
never play native events never download it. */
|
|
5
5
|
/** rrweb `EventType`. */
|
|
6
6
|
export const ReplayEventType = {
|
|
7
7
|
DomContentLoaded: 0,
|
package/dist/replay/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/replay/types.ts"],"names":[],"mappings":"AAAA;;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/replay/types.ts"],"names":[],"mappings":"AAAA;;;iDAGiD;AAUjD,yBAAyB;AACzB,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,gBAAgB,EAAE,CAAC;IACnB,IAAI,EAAE,CAAC;IACP,YAAY,EAAE,CAAC;IACf,mBAAmB,EAAE,CAAC;IACtB,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;CACD,CAAA;AAEV,+DAA+D;AAC/D,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,QAAQ,EAAE,CAAC;IACX,SAAS,EAAE,CAAC;IACZ,gBAAgB,EAAE,CAAC;IACnB,MAAM,EAAE,CAAC;IACT,cAAc,EAAE,CAAC;IACjB,KAAK,EAAE,CAAC;IACR,SAAS,EAAE,CAAC;IACZ,IAAI,EAAE,EAAE;CACA,CAAA;AAEV,+DAA+D;AAC/D,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,OAAO,EAAE,CAAC;IACV,SAAS,EAAE,CAAC;IACZ,KAAK,EAAE,CAAC;IACR,WAAW,EAAE,CAAC;IACd,QAAQ,EAAE,CAAC;IACX,UAAU,EAAE,CAAC;IACb,QAAQ,EAAE,CAAC;CACH,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brett_lamy/docstream",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "GitBook-aware readonly markdown and AI stream renderer.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -113,6 +113,7 @@
|
|
|
113
113
|
"lucide-react": "^1.17.0",
|
|
114
114
|
"mermaid": "^11.15.0",
|
|
115
115
|
"react-aria": "^3.52.1",
|
|
116
|
+
"rrweb": "2.0.0-alpha.20",
|
|
116
117
|
"yaml": "^2.9.0"
|
|
117
118
|
},
|
|
118
119
|
"peerDependencies": {
|
|
@@ -120,7 +121,6 @@
|
|
|
120
121
|
"@brett_lamy/viz-engine": ">=0.2.0",
|
|
121
122
|
"react": ">=18",
|
|
122
123
|
"react-dom": ">=18",
|
|
123
|
-
"rrweb": "2.0.0-alpha.20",
|
|
124
124
|
"vite": ">=5"
|
|
125
125
|
},
|
|
126
126
|
"peerDependenciesMeta": {
|
|
@@ -132,9 +132,6 @@
|
|
|
132
132
|
},
|
|
133
133
|
"vite": {
|
|
134
134
|
"optional": true
|
|
135
|
-
},
|
|
136
|
-
"rrweb": {
|
|
137
|
-
"optional": true
|
|
138
135
|
}
|
|
139
136
|
},
|
|
140
137
|
"repository": {
|
|
@@ -148,7 +145,6 @@
|
|
|
148
145
|
"@types/react": "^18.3.3",
|
|
149
146
|
"@types/react-dom": "^18.3.7",
|
|
150
147
|
"happy-dom": "^20.14.5",
|
|
151
|
-
"rrweb": "2.0.0-alpha.20",
|
|
152
148
|
"typescript": "^5.5.4",
|
|
153
149
|
"vite": "^7.0.0",
|
|
154
150
|
"vitest": "^3.2.4"
|
|
@@ -14,7 +14,7 @@ export function preloadReplayStage(): Promise<unknown> {
|
|
|
14
14
|
/**
|
|
15
15
|
* A headless rrweb player: the recorded page, fitted to its box, with no controls. Drive it
|
|
16
16
|
* through the ref (`play`, `pause`, `seek`, …) and the `onTimeUpdate` / `onPlayingChange`
|
|
17
|
-
* callbacks to build custom player chrome.
|
|
17
|
+
* callbacks to build custom player chrome.
|
|
18
18
|
*/
|
|
19
19
|
export const ReplayStage = forwardRef<ReplayStageHandle, ReplayStageProps>(function ReplayStage(
|
|
20
20
|
{ fallback = null, ...props },
|
package/src/replay/types.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* rrweb's event shape and the numeric enums the replay helpers read, declared locally so the
|
|
2
|
-
eager replay modules (and their published declarations) never import rrweb. rrweb is
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
eager replay modules (and their published declarations) never import rrweb. rrweb is
|
|
3
|
+
lazy: only the player chunk (`ReplayStageImpl` / `NativeReplay`) imports it, so pages that
|
|
4
|
+
never play native events never download it. */
|
|
5
5
|
|
|
6
6
|
/** One recorded rrweb event. rrweb's own `eventWithTime` is assignable to it. */
|
|
7
7
|
export interface ReplayEvent {
|