@kendew-agency/react-feedback-layer 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/dist/types.cjs ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/types/index.ts
17
+ var types_exports = {};
18
+ module.exports = __toCommonJS(types_exports);
@@ -0,0 +1,39 @@
1
+ import { C as CommentType, P as Position, I as Indicator, c as CommentOverlayState, d as CommentVisibility } from './comment.types-B7xO89Wt.cjs';
2
+ export { b as CommentContext, a as CommentOverlayProps, h as CommentState, g as CommentWithStatus, i as Config, f as ConfirmedComment, e as ConfirmedStatus, S as Status, U as User } from './comment.types-B7xO89Wt.cjs';
3
+ import 'react';
4
+
5
+ /**
6
+ * Actions that can be performed on a comment
7
+ */
8
+ type CommentAction = {
9
+ type: "DELETE";
10
+ id: string;
11
+ } | {
12
+ type: "UPDATE_COMMENTS";
13
+ comments: CommentType[];
14
+ } | {
15
+ type: "EDIT";
16
+ id: string;
17
+ newComment: Partial<CommentType>;
18
+ } | {
19
+ type: "REGISTER";
20
+ position: Position;
21
+ indicatorPosition?: Indicator | null;
22
+ } | {
23
+ type: "FOCUS";
24
+ id: string | null;
25
+ } | {
26
+ type: "TOGGLE_OVERLAY";
27
+ } | {
28
+ type: "CHANGE_OVERLAYSTATE";
29
+ to: CommentOverlayState;
30
+ } | {
31
+ type: "RESET_DRAFT_COMMENTS";
32
+ } | {
33
+ type: "RESET_RESOLVING_COMMENTS";
34
+ } | {
35
+ type: "UPDATE_VISIBILITY";
36
+ visibility: Partial<CommentVisibility>;
37
+ };
38
+
39
+ export { type CommentAction, CommentOverlayState, CommentType, CommentVisibility, Indicator, Position };
@@ -0,0 +1,39 @@
1
+ import { C as CommentType, P as Position, I as Indicator, c as CommentOverlayState, d as CommentVisibility } from './comment.types-B7xO89Wt.js';
2
+ export { b as CommentContext, a as CommentOverlayProps, h as CommentState, g as CommentWithStatus, i as Config, f as ConfirmedComment, e as ConfirmedStatus, S as Status, U as User } from './comment.types-B7xO89Wt.js';
3
+ import 'react';
4
+
5
+ /**
6
+ * Actions that can be performed on a comment
7
+ */
8
+ type CommentAction = {
9
+ type: "DELETE";
10
+ id: string;
11
+ } | {
12
+ type: "UPDATE_COMMENTS";
13
+ comments: CommentType[];
14
+ } | {
15
+ type: "EDIT";
16
+ id: string;
17
+ newComment: Partial<CommentType>;
18
+ } | {
19
+ type: "REGISTER";
20
+ position: Position;
21
+ indicatorPosition?: Indicator | null;
22
+ } | {
23
+ type: "FOCUS";
24
+ id: string | null;
25
+ } | {
26
+ type: "TOGGLE_OVERLAY";
27
+ } | {
28
+ type: "CHANGE_OVERLAYSTATE";
29
+ to: CommentOverlayState;
30
+ } | {
31
+ type: "RESET_DRAFT_COMMENTS";
32
+ } | {
33
+ type: "RESET_RESOLVING_COMMENTS";
34
+ } | {
35
+ type: "UPDATE_VISIBILITY";
36
+ visibility: Partial<CommentVisibility>;
37
+ };
38
+
39
+ export { type CommentAction, CommentOverlayState, CommentType, CommentVisibility, Indicator, Position };
package/dist/types.js ADDED
File without changes
package/package.json ADDED
@@ -0,0 +1,83 @@
1
+ {
2
+ "name": "@kendew-agency/react-feedback-layer",
3
+ "version": "0.1.0",
4
+ "description": "Drop-in React feedback layer for collecting contextual user feedback",
5
+ "license": "MIT",
6
+ "author": "Kendew Agency",
7
+ "type": "module",
8
+ "keywords": [
9
+ "react",
10
+ "feedback",
11
+ "comments",
12
+ "annotations",
13
+ "collaboration",
14
+ "ui",
15
+ "component"
16
+ ],
17
+ "homepage": "https://github.com/Kendew-Agency/react-feedback-layer",
18
+ "bugs": {
19
+ "url": "https://github.com/Kendew-Agency/react-feedback-layer/issues"
20
+ },
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/Kendew-Agency/react-feedback-layer.git"
24
+ },
25
+ "main": "./dist/index.cjs",
26
+ "module": "./dist/index.js",
27
+ "types": "./dist/index.d.ts",
28
+ "exports": {
29
+ ".": {
30
+ "types": "./dist/index.d.ts",
31
+ "import": "./dist/index.js",
32
+ "require": "./dist/index.cjs"
33
+ },
34
+ "./types": {
35
+ "types": "./dist/types.d.ts",
36
+ "import": "./dist/types.js",
37
+ "require": "./dist/types.cjs"
38
+ }
39
+ },
40
+ "files": [
41
+ "dist",
42
+ "README.md",
43
+ "LICENSE"
44
+ ],
45
+ "sideEffects": false,
46
+ "publishConfig": {
47
+ "access": "public"
48
+ },
49
+ "peerDependencies": {
50
+ "react": ">=18",
51
+ "react-dom": ">=18"
52
+ },
53
+ "devDependencies": {
54
+ "@biomejs/biome": "^2.3.8",
55
+ "@types/node": "^25.0.1",
56
+ "@types/react": "^18.2.0",
57
+ "@types/react-dom": "^18.2.0",
58
+ "@vitejs/plugin-react": "^4.2.0",
59
+ "react": "^18.2.0",
60
+ "react-dom": "^18.2.0",
61
+ "sass": "^1.97.1",
62
+ "tsup": "^8.0.0",
63
+ "typescript": "^5.4.0",
64
+ "vite": "^5.2.0"
65
+ },
66
+ "scripts": {
67
+ "build": "tsup",
68
+ "dev": "tsup --watch",
69
+ "playground": "vite playground",
70
+ "playground:build": "vite build playground",
71
+ "test": "echo \"Error: no test specified\" && exit 1",
72
+ "format-and-lint": "biome check .",
73
+ "format-and-lint:fix": "biome check . --write",
74
+ "lint": "biome lint .",
75
+ "format": "biome format .",
76
+ "typecheck": "tsc --noEmit",
77
+ "prepublishOnly": "npm run typecheck && npm run build"
78
+ },
79
+ "dependencies": {
80
+ "@j31/tryx-handler": "^0.3.0",
81
+ "@radix-ui/react-slot": "^1.2.4"
82
+ }
83
+ }