@popmelt.com/core 0.7.6 → 0.7.8
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/dist/bridge-entry.mjs +124 -65
- package/dist/cli.mjs +123 -64
- package/dist/index.d.mts +4 -1
- package/dist/index.mjs +24 -24
- package/dist/plugin-astro.mjs +1 -1
- package/dist/plugin-next.mjs +1 -1
- package/dist/plugin-vite.mjs +1 -1
- package/dist/server-WF6OWM5R.mjs +416 -0
- package/dist/server.mjs +122 -63
- package/package.json +1 -1
- package/dist/server-S2MQGA2F.mjs +0 -357
package/dist/index.d.mts
CHANGED
|
@@ -7,11 +7,13 @@ type PopmeltContextValue = {
|
|
|
7
7
|
type PopmeltProviderProps = PropsWithChildren<{
|
|
8
8
|
enabled?: boolean;
|
|
9
9
|
bridgeUrl?: string;
|
|
10
|
+
/** Stable project id generated by the framework plugin/bridge startup. */
|
|
11
|
+
projectId?: string | null;
|
|
10
12
|
/** Framework router push — used for multi-page screenshot capture.
|
|
11
13
|
* Pass your SPA router's navigate function (e.g. Next.js `router.push`). */
|
|
12
14
|
navigate?: (url: string) => void | Promise<unknown>;
|
|
13
15
|
}>;
|
|
14
|
-
declare function PopmeltProvider({ children, enabled, bridgeUrl, navigate: navigateProp, }: PopmeltProviderProps): react.JSX.Element;
|
|
16
|
+
declare function PopmeltProvider({ children, enabled, bridgeUrl, projectId: projectIdProp, navigate: navigateProp, }: PopmeltProviderProps): react.JSX.Element;
|
|
15
17
|
declare function usePopmelt(): PopmeltContextValue;
|
|
16
18
|
|
|
17
19
|
type AnnotationLifecycleStatus = 'pending' | 'in_flight' | 'resolved' | 'needs_review' | 'dismissed' | 'waiting_input';
|
|
@@ -47,6 +49,7 @@ type StyleModification = {
|
|
|
47
49
|
element: ElementInfo;
|
|
48
50
|
changes: StyleChange[];
|
|
49
51
|
captured?: boolean;
|
|
52
|
+
pathname?: string;
|
|
50
53
|
};
|
|
51
54
|
type SpacingElementEvidence = {
|
|
52
55
|
selector: string;
|