issue-sticker 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/package.json ADDED
@@ -0,0 +1,113 @@
1
+ {
2
+ "name": "issue-sticker",
3
+ "version": "0.1.0",
4
+ "description": "IssueSticker SDK - Visual bug tracking widget for web applications",
5
+ "license": "SEE LICENSE IN LICENSE",
6
+ "type": "module",
7
+ "main": "dist/issue-sticker.umd.js",
8
+ "module": "dist/issue-sticker.js",
9
+ "types": "dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/issue-sticker.js",
14
+ "require": "./dist/issue-sticker.umd.js",
15
+ "default": "./dist/issue-sticker.js"
16
+ },
17
+ "./runtime": {
18
+ "types": "./runtime.d.ts",
19
+ "import": "./dist/issue-sticker-runtime.js",
20
+ "require": "./dist/issue-sticker-runtime.js",
21
+ "default": "./dist/issue-sticker-runtime.js"
22
+ },
23
+ "./react": {
24
+ "types": "./react.d.ts",
25
+ "import": "./dist/issue-sticker-react.js",
26
+ "require": "./dist/issue-sticker-react.js",
27
+ "default": "./dist/issue-sticker-react.js"
28
+ },
29
+ "./runtime.js": "./dist/issue-sticker-runtime.js",
30
+ "./react.js": "./dist/issue-sticker-react.js",
31
+ "./package.json": "./package.json"
32
+ },
33
+ "files": [
34
+ "dist/**/*.js",
35
+ "dist/**/*.d.ts",
36
+ "dist/**/*.css",
37
+ "runtime.d.ts",
38
+ "react.d.ts",
39
+ "LICENSE",
40
+ "README.md"
41
+ ],
42
+ "publishConfig": {
43
+ "registry": "https://registry.npmjs.org/"
44
+ },
45
+ "scripts": {
46
+ "dev": "npm run dev:localdev",
47
+ "dev:demo": "concurrently -k -n typecheck,bundle,page -c yellow,cyan,magenta \"npm:tsc:watch\" \"npm:build:demo:watch\" \"npm:serve:demo\"",
48
+ "dev:localdev": "vite --host 0.0.0.0 --port 4173 --mode localdev",
49
+ "build": "vite build --mode production && vite build --config vite.subpath.config.ts --mode production",
50
+ "build:dev": "vite build --mode development && vite build --config vite.subpath.config.ts --mode development",
51
+ "build:local": "vite build --mode localdev && vite build --config vite.subpath.config.ts --mode localdev",
52
+ "build:prod": "tsc --noEmit && vite build --mode production && vite build --config vite.subpath.config.ts --mode production",
53
+ "build:demo": "tsc --noEmit && vite build --config vite.subpath.config.ts --mode demo && node scripts/copy-demo-build.mjs",
54
+ "build:demo:watch": "vite build --watch --config vite.subpath.config.ts --mode demo",
55
+ "package": "npm run build:prod && npm pack",
56
+ "package:dev": "npm run build:dev && npm pack",
57
+ "package:local": "npm run build:local && npm pack",
58
+ "serve:demo": "vite --host 0.0.0.0 --port 4174 --mode demo",
59
+ "serve:localdev": "vite --host 0.0.0.0 --port 4173 --mode localdev",
60
+ "preview": "vite preview",
61
+ "test": "vitest --run",
62
+ "test:watch": "vitest",
63
+ "test:ui": "vitest --ui",
64
+ "tsc": "tsc --noEmit",
65
+ "tsc:watch": "tsc --noEmit --watch",
66
+ "test:e2e": "playwright test",
67
+ "test:e2e:ui": "playwright test --ui"
68
+ },
69
+ "dependencies": {
70
+ "@radix-ui/react-popover": "^1.1.15",
71
+ "@radix-ui/react-select": "^2.2.6",
72
+ "@radix-ui/react-tooltip": "^1.2.8",
73
+ "@tanstack/react-query": "^5.90.12",
74
+ "class-variance-authority": "^0.7.1",
75
+ "clsx": "^2.1.1",
76
+ "framer-motion": "^12.29.2",
77
+ "lucide-react": "^0.562.0",
78
+ "modern-screenshot": "^4.7.0",
79
+ "react-error-boundary": "^6.0.1",
80
+ "react-markdown": "^10.1.0",
81
+ "remark-gfm": "^4.0.1",
82
+ "sonner": "^2.0.7",
83
+ "tailwind-merge": "^2.6.0"
84
+ },
85
+ "devDependencies": {
86
+ "@issue-sticker/shared": "*",
87
+ "@playwright/test": "^1.58.2",
88
+ "@radix-ui/react-dialog": "^1.1.4",
89
+ "@radix-ui/react-label": "^2.1.1",
90
+ "@radix-ui/react-slot": "^1.1.1",
91
+ "@testing-library/react": "^16.3.2",
92
+ "@types/react": "^18.2.0",
93
+ "@types/react-dom": "^18.2.0",
94
+ "@vitejs/plugin-react": "^4.2.1",
95
+ "@vitest/ui": "^1.2.0",
96
+ "autoprefixer": "^10.4.23",
97
+ "concurrently": "^9.2.1",
98
+ "dotenv": "^16.3.1",
99
+ "jsdom": "^23.0.1",
100
+ "postcss": "^8.5.6",
101
+ "serve": "^14.2.6",
102
+ "tailwindcss": "^3.4.19",
103
+ "terser": "^5.44.1",
104
+ "typescript": "^5.0.0",
105
+ "vite": "^5.0.8",
106
+ "vite-plugin-dts": "^3.7.0",
107
+ "vitest": "^1.2.0"
108
+ },
109
+ "peerDependencies": {
110
+ "react": "^18.0.0 || ^19.0.0",
111
+ "react-dom": "^18.0.0 || ^19.0.0"
112
+ }
113
+ }
package/react.d.ts ADDED
@@ -0,0 +1,18 @@
1
+ import type { SDKConfig, SDKEvent, SDKUser } from './dist/index';
2
+
3
+ export interface UseIssueStickerConfig extends SDKConfig {
4
+ enabled?: boolean;
5
+ }
6
+
7
+ export declare const IssueSticker: {
8
+ init(config: SDKConfig): void;
9
+ updateConfig(config: SDKConfig): void;
10
+ destroy(): void;
11
+ on(event: SDKEvent, callback: (...args: unknown[]) => void): void;
12
+ off(event: SDKEvent, callback: (...args: unknown[]) => void): void;
13
+ };
14
+
15
+ export declare function useIssueSticker(config: UseIssueStickerConfig): void;
16
+
17
+ export type { SDKConfig, SDKEvent, SDKUser };
18
+ export default IssueSticker;
package/runtime.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ import type { SDKConfig, SDKEvent, SDKUser } from './dist/index';
2
+
3
+ export declare const IssueSticker: {
4
+ init(config: SDKConfig): void;
5
+ destroy(): void;
6
+ on(event: SDKEvent, callback: (...args: unknown[]) => void): void;
7
+ off(event: SDKEvent, callback: (...args: unknown[]) => void): void;
8
+ };
9
+
10
+ export type { SDKConfig, SDKEvent, SDKUser };
11
+ export default IssueSticker;