@paikko/widget 0.1.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.
- package/README.md +131 -0
- package/package.json +41 -0
- package/src/PaikkoNav.tsx +92 -0
- package/src/PaikkoProvider.tsx +79 -0
- package/src/ReportButton.tsx +591 -0
- package/src/build/provenancePlugin.cjs +200 -0
- package/src/capture.ts +991 -0
- package/src/index.ts +33 -0
package/src/index.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @paikko/widget - the consumer-installable report widget. Public surface.
|
|
3
|
+
*
|
|
4
|
+
* The host app mounts {@link PaikkoProvider} once (typically in the root layout),
|
|
5
|
+
* configured with the backend's reports `endpoint` (cross-origin OK), an optional
|
|
6
|
+
* `projectKey` (SaaS seam), an optional `ticketsUrl` (review-queue link), and its
|
|
7
|
+
* own `getClientState` reader. The widget then floats, captures, and POSTs
|
|
8
|
+
* contract-valid {@link ReportBundle}s to that endpoint. `ReportButton`/`PaikkoNav`
|
|
9
|
+
* are exported for hosts that want to compose the pieces themselves, and the
|
|
10
|
+
* capture primitives are re-exported for apps that drive capture directly.
|
|
11
|
+
*/
|
|
12
|
+
export { PaikkoProvider, default } from "./PaikkoProvider";
|
|
13
|
+
export type { PaikkoProviderProps } from "./PaikkoProvider";
|
|
14
|
+
|
|
15
|
+
export { ReportButton } from "./ReportButton";
|
|
16
|
+
export type { ReportButtonProps } from "./ReportButton";
|
|
17
|
+
|
|
18
|
+
export { PaikkoNav } from "./PaikkoNav";
|
|
19
|
+
export type { PaikkoNavProps } from "./PaikkoNav";
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
Capture,
|
|
23
|
+
resolveTarget,
|
|
24
|
+
buildSelector,
|
|
25
|
+
snapshotStorage,
|
|
26
|
+
snapshotDom,
|
|
27
|
+
snapshotScreenshot,
|
|
28
|
+
snapshotArtifacts,
|
|
29
|
+
getSessionId,
|
|
30
|
+
TRACE_HEADER,
|
|
31
|
+
SESSION_HEADER,
|
|
32
|
+
} from "./capture";
|
|
33
|
+
export type { CaptureConfig, CapturedArtifacts } from "./capture";
|