gleap 17.0.2 → 18.0.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.
Files changed (26) hide show
  1. package/.worktrees/JavaScript-SDK-147158-corp-headers/.assetsignore +30 -0
  2. package/.worktrees/JavaScript-SDK-147158-corp-headers/.claude/launch.json +11 -0
  3. package/.worktrees/JavaScript-SDK-147158-corp-headers/.prettierignore +12 -0
  4. package/.worktrees/JavaScript-SDK-147158-corp-headers/.prettierrc.json +8 -0
  5. package/.worktrees/JavaScript-SDK-147158-corp-headers/LICENSE +7 -0
  6. package/.worktrees/JavaScript-SDK-147158-corp-headers/build/browser/index.js +2 -0
  7. package/.worktrees/JavaScript-SDK-147158-corp-headers/build/browser/index.js.map +1 -0
  8. package/.worktrees/JavaScript-SDK-147158-corp-headers/build/cjs/index.js +2 -0
  9. package/.worktrees/JavaScript-SDK-147158-corp-headers/build/cjs/index.js.map +1 -0
  10. package/.worktrees/JavaScript-SDK-147158-corp-headers/build/esm/index.mjs +2 -0
  11. package/.worktrees/JavaScript-SDK-147158-corp-headers/build/esm/index.mjs.map +1 -0
  12. package/.worktrees/JavaScript-SDK-147158-corp-headers/index.d.ts +390 -0
  13. package/.worktrees/JavaScript-SDK-147158-corp-headers/package-lock.json +13926 -0
  14. package/.worktrees/JavaScript-SDK-147158-corp-headers/package.json +82 -0
  15. package/.worktrees/JavaScript-SDK-147158-corp-headers/resources/banner.png +0 -0
  16. package/.worktrees/JavaScript-SDK-147158-corp-headers/swa-cli.config.json +9 -0
  17. package/.worktrees/JavaScript-SDK-147158-corp-headers/wrangler.jsonc +16 -0
  18. package/README.md +9 -0
  19. package/build/browser/index.js +1 -1
  20. package/build/browser/index.js.map +1 -1
  21. package/build/cjs/index.js +1 -1
  22. package/build/cjs/index.js.map +1 -1
  23. package/build/esm/index.mjs +1 -1
  24. package/build/esm/index.mjs.map +1 -1
  25. package/index.d.ts +27 -0
  26. package/package.json +1 -1
@@ -0,0 +1,82 @@
1
+ {
2
+ "name": "gleap",
3
+ "version": "17.0.3",
4
+ "main": "build/cjs/index.js",
5
+ "module": "build/esm/index.mjs",
6
+ "exports": {
7
+ "import": "./build/esm/index.mjs",
8
+ "require": "./build/cjs/index.js",
9
+ "types": "./index.d.ts"
10
+ },
11
+ "types": "index.d.ts",
12
+ "scripts": {
13
+ "start": "webpack serve --env development",
14
+ "build": "webpack",
15
+ "test": "jest",
16
+ "prepare": "npm run build",
17
+ "trypublish": "npm publish || true",
18
+ "dev": "wrangler dev",
19
+ "deploy": "npm run build && wrangler deploy",
20
+ "deploy:staging": "npm run build && wrangler deploy --env staging"
21
+ },
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "https://github.com/GleapSDK/JavaScript-SDK"
25
+ },
26
+ "author": "Gleap <hello@gleap.io>",
27
+ "homepage": "https://www.gleap.io/",
28
+ "keywords": [
29
+ "bug-reporting",
30
+ "bug-reporting-tool",
31
+ "customer-surveys",
32
+ "surveys",
33
+ "customer-feedback",
34
+ "customer-feedback-sdk",
35
+ "javascript-bug-reporting",
36
+ "crash-reporting",
37
+ "marketing-automation",
38
+ "user-onboarding",
39
+ "ai-chatbot",
40
+ "in-app-feedback"
41
+ ],
42
+ "license": "Commercial",
43
+ "licenseFilename": "LICENSE",
44
+ "devDependencies": {
45
+ "@babel/cli": "^7.23.9",
46
+ "@babel/core": "^7.23.9",
47
+ "@babel/eslint-parser": "7.23.10",
48
+ "@babel/plugin-transform-class-properties": "^7.23.3",
49
+ "@babel/plugin-transform-runtime": "^7.23.9",
50
+ "@babel/preset-env": "^7.23.9",
51
+ "@node-minify/clean-css": "^8.0.6",
52
+ "@node-minify/core": "^8.0.6",
53
+ "@node-minify/csso": "^8.0.6",
54
+ "babel-loader": "^9.1.3",
55
+ "babel-preset-minify": "^0.5.2",
56
+ "css-loader": "^6.10.0",
57
+ "eslint": "^8.57.0",
58
+ "file-loader": "^6.2.0",
59
+ "jest": "^29.7.0",
60
+ "jest-environment-jsdom": "^29.7.0",
61
+ "style-loader": "^3.3.4",
62
+ "terser-webpack-plugin": "^5.3.10",
63
+ "uglify-js": "^3.17.4",
64
+ "url-loader": "^4.1.1",
65
+ "webpack": "^5.90.3",
66
+ "webpack-cli": "^5.1.4",
67
+ "webpack-dev-server": "^5.0.2",
68
+ "wrangler": "^3.0.0"
69
+ },
70
+ "jest": {
71
+ "moduleNameMapper": {
72
+ "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/scripts/testMock.js",
73
+ "\\.(css|less)$": "<rootDir>/scripts/testMock.js"
74
+ }
75
+ },
76
+ "dependencies": {
77
+ "@floating-ui/dom": "^1.7.5",
78
+ "@rrweb/packer": "^2.1.0",
79
+ "@rrweb/record": "^2.1.0",
80
+ "unique-selector": "^0.5.0"
81
+ }
82
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "$schema": "https://aka.ms/azure/static-web-apps-cli/schema",
3
+ "configurations": {
4
+ "gleap-js-sdk": {
5
+ "appLocation": "/",
6
+ "outputLocation": "/published"
7
+ }
8
+ }
9
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "jssdk",
3
+ "compatibility_date": "2025-08-01",
4
+
5
+ // Configure static assets
6
+ "assets": {
7
+ "directory": "./published",
8
+ "not_found_handling": "404-page"
9
+ },
10
+
11
+ // Enable workers.dev subdomain
12
+ "workers_dev": true,
13
+
14
+ // Enable preview URLs for branch deployments
15
+ "preview_urls": false
16
+ }
package/README.md CHANGED
@@ -34,6 +34,15 @@ Add the following code to initialize the Gleap JavaScript SDK. Replace "SDK-TOKE
34
34
  Gleap.initialize("SDK-TOKEN");
35
35
  ```
36
36
 
37
+ ### Data region (optional)
38
+
39
+ Projects hosted in the US data region select it before initializing. The default region is `eu`. See [docs/custom-widget-domains.md](docs/custom-widget-domains.md) for the host table and custom domains.
40
+
41
+ ```
42
+ Gleap.setRegion("us");
43
+ Gleap.initialize("SDK-TOKEN");
44
+ ```
45
+
37
46
  Congrats, you are now all set! Report your first bug by using the feedback button.
38
47
 
39
48
  ## 🤝 Need help?