@pixelatlarge/peanut-gallery-widget 0.0.0-stage → 0.1.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/dist/react.js ADDED
@@ -0,0 +1,20 @@
1
+ import {
2
+ destroy,
3
+ init
4
+ } from "./chunk-X4WAQVYW.js";
5
+
6
+ // src/react.ts
7
+ import { useEffect } from "react";
8
+ function PeanutGallery(props) {
9
+ const key = JSON.stringify(props);
10
+ useEffect(() => {
11
+ init(props);
12
+ return () => destroy();
13
+ }, [key]);
14
+ return null;
15
+ }
16
+ export {
17
+ PeanutGallery,
18
+ destroy,
19
+ init
20
+ };
package/package.json CHANGED
@@ -1,6 +1,70 @@
1
1
  {
2
2
  "name": "@pixelatlarge/peanut-gallery-widget",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.1",
4
+ "description": "Drop-in annotation layer for hosted prototypes. Comments attach to DOM elements and submit to GitHub Issues.",
5
+ "keywords": [
6
+ "prototype",
7
+ "feedback",
8
+ "annotation",
9
+ "comments",
10
+ "design-review",
11
+ "widget"
12
+ ],
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/PixelAtLarge/peanut-gallery.git",
16
+ "directory": "packages/widget"
17
+ },
18
+ "homepage": "https://github.com/PixelAtLarge/peanut-gallery#readme",
19
+ "bugs": {
20
+ "url": "https://github.com/PixelAtLarge/peanut-gallery/issues"
21
+ },
22
+ "type": "module",
23
+ "main": "./dist/index.cjs",
24
+ "module": "./dist/index.js",
25
+ "types": "./dist/index.d.ts",
26
+ "unpkg": "./dist/peanut-gallery.global.js",
27
+ "jsdelivr": "./dist/peanut-gallery.global.js",
28
+ "exports": {
29
+ ".": {
30
+ "types": "./dist/index.d.ts",
31
+ "import": "./dist/index.js",
32
+ "require": "./dist/index.cjs"
33
+ },
34
+ "./react": {
35
+ "types": "./dist/react.d.ts",
36
+ "import": "./dist/react.js",
37
+ "require": "./dist/react.cjs"
38
+ },
39
+ "./global": "./dist/peanut-gallery.global.js"
40
+ },
41
+ "files": [
42
+ "dist",
43
+ "README.md",
44
+ "LICENSE"
45
+ ],
46
+ "scripts": {
47
+ "build": "tsup",
48
+ "test": "vitest run",
49
+ "typecheck": "tsc --noEmit"
50
+ },
51
+ "dependencies": {
52
+ "@pixelatlarge/peanut-gallery-core": "0.1.1"
53
+ },
54
+ "peerDependencies": {
55
+ "react": ">=17"
56
+ },
57
+ "peerDependenciesMeta": {
58
+ "react": {
59
+ "optional": true
60
+ }
61
+ },
62
+ "devDependencies": {
63
+ "@types/react": "^18.3.0",
64
+ "react": "^18.3.0"
65
+ },
66
+ "license": "MIT",
67
+ "publishConfig": {
68
+ "access": "public"
69
+ }
70
+ }