@pixelmatters/markup 1.1.0 → 1.3.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 +112 -37
- package/dist/widget.js +850 -746
- package/package.json +3 -21
- package/dist/react.d.ts +0 -21
- package/dist/react.js +0 -4792
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixelmatters/markup",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Embeddable feedback widget for collecting visual bug reports, screenshots, and comments on live web apps.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"annotation",
|
|
@@ -26,8 +26,6 @@
|
|
|
26
26
|
"files": [
|
|
27
27
|
"dist/widget.js",
|
|
28
28
|
"dist/widget.d.ts",
|
|
29
|
-
"dist/react.js",
|
|
30
|
-
"dist/react.d.ts",
|
|
31
29
|
"README.md",
|
|
32
30
|
"LICENSE"
|
|
33
31
|
],
|
|
@@ -38,10 +36,7 @@
|
|
|
38
36
|
"types": "./dist/widget.d.ts",
|
|
39
37
|
"import": "./dist/widget.js"
|
|
40
38
|
},
|
|
41
|
-
"./
|
|
42
|
-
"types": "./dist/react.d.ts",
|
|
43
|
-
"import": "./dist/react.js"
|
|
44
|
-
}
|
|
39
|
+
"./package.json": "./package.json"
|
|
45
40
|
},
|
|
46
41
|
"publishConfig": {
|
|
47
42
|
"access": "public",
|
|
@@ -50,7 +45,6 @@
|
|
|
50
45
|
"devDependencies": {
|
|
51
46
|
"@medv/finder": "^4.0.2",
|
|
52
47
|
"@preact/preset-vite": "^2.10.5",
|
|
53
|
-
"@types/react": "^19.2.14",
|
|
54
48
|
"convex": "^1.37.0",
|
|
55
49
|
"html-to-image": "^1.11.13",
|
|
56
50
|
"preact": "^10.25.0",
|
|
@@ -58,23 +52,11 @@
|
|
|
58
52
|
"vite": "^8.0.11",
|
|
59
53
|
"vite-plugin-dts": "^5.0.0"
|
|
60
54
|
},
|
|
61
|
-
"peerDependencies": {
|
|
62
|
-
"react": "^18.0.0 || ^19.0.0",
|
|
63
|
-
"react-dom": "^18.0.0 || ^19.0.0"
|
|
64
|
-
},
|
|
65
|
-
"peerDependenciesMeta": {
|
|
66
|
-
"react": {
|
|
67
|
-
"optional": true
|
|
68
|
-
},
|
|
69
|
-
"react-dom": {
|
|
70
|
-
"optional": true
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
55
|
"engines": {
|
|
74
56
|
"node": ">=18"
|
|
75
57
|
},
|
|
76
58
|
"scripts": {
|
|
77
|
-
"build": "vite build
|
|
59
|
+
"build": "vite build && rm -rf dist/runtime",
|
|
78
60
|
"dev": "vite",
|
|
79
61
|
"typecheck": "tsc --noEmit"
|
|
80
62
|
}
|
package/dist/react.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { WidgetTheme } from './widget';
|
|
2
|
-
export interface MarkupWidgetProps {
|
|
3
|
-
/** Convex deployment site URL, e.g. `https://your-deployment.convex.site` */
|
|
4
|
-
apiUrl: string;
|
|
5
|
-
/** Raw API key minted from a project's settings page */
|
|
6
|
-
apiKey: string;
|
|
7
|
-
/** Where the floating button sits. Defaults to bottom-right. */
|
|
8
|
-
position?: 'bottom-right' | 'bottom-left';
|
|
9
|
-
/** 'light' | 'dark' | 'auto' (default 'auto' — follow prefers-color-scheme) */
|
|
10
|
-
theme?: WidgetTheme;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* React-host entrypoint. Renders nothing — the actual UI mounts itself into
|
|
14
|
-
* a sibling shadow DOM at `document.body` so it never tangles with the host
|
|
15
|
-
* tree's CSS.
|
|
16
|
-
*
|
|
17
|
-
* `useEffect` is imported from `react`, which the consumer's bundler
|
|
18
|
-
* resolves: real React in a React app, or `preact/hooks` re-exported via
|
|
19
|
-
* `preact/compat` in a Preact app that has aliased `react` → `preact/compat`.
|
|
20
|
-
*/
|
|
21
|
-
export declare function MarkupWidget(props: MarkupWidgetProps): null;
|