@matija2209/payload-plugin-admin-feedback 1.0.3 → 1.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/package.json CHANGED
@@ -1,24 +1,23 @@
1
1
  {
2
2
  "name": "@matija2209/payload-plugin-admin-feedback",
3
- "version": "1.0.3",
4
- "description": "Floating admin feedback widget plugin for Payload CMS.",
5
- "files": [
6
- "dist",
7
- "README.md",
8
- "public"
9
- ],
3
+ "version": "1.1.0",
10
4
  "repository": {
11
5
  "type": "git",
12
6
  "url": "git+https://github.com/matija2209/payload-plugin-admin-feedback.git"
13
7
  },
14
- "homepage": "https://github.com/matija2209/payload-plugin-admin-feedback#readme",
15
- "bugs": {
16
- "url": "https://github.com/matija2209/payload-plugin-admin-feedback/issues"
8
+ "publishConfig": {
9
+ "access": "public"
17
10
  },
11
+ "description": "Floating admin feedback widget plugin for Payload CMS.",
18
12
  "license": "MIT",
19
13
  "type": "module",
20
14
  "main": "./dist/index.js",
21
15
  "types": "./dist/index.d.ts",
16
+ "files": [
17
+ "dist",
18
+ "README.md",
19
+ "CHANGELOG.md"
20
+ ],
22
21
  "exports": {
23
22
  ".": {
24
23
  "types": "./dist/index.d.ts",
@@ -31,19 +30,29 @@
31
30
  "require": "./dist/client/index.cjs"
32
31
  }
33
32
  },
34
- "devDependencies": {
35
- "tsup": "^8.5.0",
36
- "typescript": "^5.9.3"
33
+ "scripts": {
34
+ "build": "tsup && node scripts/stamp-client-boundary.mjs",
35
+ "dev": "tsup --watch",
36
+ "prepublishOnly": "npm run build",
37
+ "typecheck": "tsc --noEmit",
38
+ "test": "node --experimental-strip-types --test test/*.test.ts"
37
39
  },
38
40
  "peerDependencies": {
41
+ "@payloadcms/ui": "^3.84.1",
42
+ "next": "^15.0.0 || ^16.0.0",
39
43
  "payload": "^3.84.1",
40
- "react": "^19.0.0"
41
- },
42
- "dependencies": {
43
- "lucide-react": "^0.511.0"
44
+ "react": "^19.0.0",
45
+ "react-dom": "^19.0.0"
44
46
  },
45
- "scripts": {
46
- "build": "tsup",
47
- "dev": "tsup --watch"
47
+ "devDependencies": {
48
+ "@payloadcms/ui": "^3.84.1",
49
+ "@types/node": "^22.20.7",
50
+ "@types/react": "^19.2.14",
51
+ "next": "^16.0.0",
52
+ "payload": "^3.84.1",
53
+ "react": "^19.0.0",
54
+ "react-dom": "^19.0.0",
55
+ "tsup": "^8.5.1",
56
+ "typescript": "^5.9.3"
48
57
  }
49
- }
58
+ }
@@ -1,54 +0,0 @@
1
- import { Config } from 'payload';
2
-
3
- type FrontendDisplayConfig = {
4
- enabled?: boolean;
5
- include?: string[];
6
- };
7
- type ScreenshotConfig = {
8
- enabled?: boolean;
9
- maxFileSizeBytes?: number;
10
- allowedMimeTypes?: string[];
11
- capturePolicy?: 'current-tab-first' | 'strict-current-tab' | 'any-surface';
12
- };
13
- type AdminFeedbackPluginOptions = {
14
- enabled?: boolean;
15
- emailTo: string | string[];
16
- fromLabel?: string;
17
- fromName?: string;
18
- fromAddress?: string;
19
- email?: Config['email'];
20
- allowScreenshotUpload?: boolean;
21
- maxMessageLength?: number;
22
- mediaCollectionSlug?: string;
23
- strictMediaCollection?: boolean;
24
- screenshot?: ScreenshotConfig;
25
- frontend?: FrontendDisplayConfig;
26
- frontendRouteMatcher?: (pathname: string) => boolean;
27
- };
28
- type FeedbackStatus = 'new' | 'triaged' | 'resolved';
29
- type FeedbackScreenshotInfo = {
30
- id: number;
31
- url?: string;
32
- filename?: string;
33
- alt?: string;
34
- };
35
- type FeedbackCreatedByInfo = {
36
- id: number;
37
- email?: string;
38
- };
39
- type FeedbackListItem = {
40
- id: number;
41
- message: string;
42
- pagePath: string;
43
- selector?: string | null;
44
- selectedText?: string | null;
45
- status: FeedbackStatus;
46
- createdAt: string;
47
- updatedAt: string;
48
- createdBy?: FeedbackCreatedByInfo | number | null;
49
- screenshot?: FeedbackScreenshotInfo | number | null;
50
- };
51
-
52
- declare const pathMatchesAllowlist: (pathname: string, patterns: string[]) => boolean;
53
-
54
- export { type AdminFeedbackPluginOptions as A, type FeedbackListItem as F, pathMatchesAllowlist as p };
@@ -1,54 +0,0 @@
1
- import { Config } from 'payload';
2
-
3
- type FrontendDisplayConfig = {
4
- enabled?: boolean;
5
- include?: string[];
6
- };
7
- type ScreenshotConfig = {
8
- enabled?: boolean;
9
- maxFileSizeBytes?: number;
10
- allowedMimeTypes?: string[];
11
- capturePolicy?: 'current-tab-first' | 'strict-current-tab' | 'any-surface';
12
- };
13
- type AdminFeedbackPluginOptions = {
14
- enabled?: boolean;
15
- emailTo: string | string[];
16
- fromLabel?: string;
17
- fromName?: string;
18
- fromAddress?: string;
19
- email?: Config['email'];
20
- allowScreenshotUpload?: boolean;
21
- maxMessageLength?: number;
22
- mediaCollectionSlug?: string;
23
- strictMediaCollection?: boolean;
24
- screenshot?: ScreenshotConfig;
25
- frontend?: FrontendDisplayConfig;
26
- frontendRouteMatcher?: (pathname: string) => boolean;
27
- };
28
- type FeedbackStatus = 'new' | 'triaged' | 'resolved';
29
- type FeedbackScreenshotInfo = {
30
- id: number;
31
- url?: string;
32
- filename?: string;
33
- alt?: string;
34
- };
35
- type FeedbackCreatedByInfo = {
36
- id: number;
37
- email?: string;
38
- };
39
- type FeedbackListItem = {
40
- id: number;
41
- message: string;
42
- pagePath: string;
43
- selector?: string | null;
44
- selectedText?: string | null;
45
- status: FeedbackStatus;
46
- createdAt: string;
47
- updatedAt: string;
48
- createdBy?: FeedbackCreatedByInfo | number | null;
49
- screenshot?: FeedbackScreenshotInfo | number | null;
50
- };
51
-
52
- declare const pathMatchesAllowlist: (pathname: string, patterns: string[]) => boolean;
53
-
54
- export { type AdminFeedbackPluginOptions as A, type FeedbackListItem as F, pathMatchesAllowlist as p };