@shiva004/surveys 0.12.0 → 0.12.2

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 (38) hide show
  1. package/dist/elements.js +8772 -8297
  2. package/dist/flags/client/client.d.ts +34 -0
  3. package/dist/flags/client/context.d.ts +19 -0
  4. package/dist/flags/client/events.d.ts +18 -0
  5. package/dist/flags/client/index.d.ts +4 -0
  6. package/dist/flags/client/status.d.ts +17 -0
  7. package/dist/flags/client/types.d.ts +77 -0
  8. package/dist/flags/context/index.d.ts +1 -0
  9. package/dist/flags/context/use-context-mutator.d.ts +27 -0
  10. package/dist/flags/data.d.ts +13 -1
  11. package/dist/flags/declarative/FeatureFlag.d.ts +52 -0
  12. package/dist/flags/declarative/index.d.ts +1 -0
  13. package/dist/flags/evaluation/index.d.ts +1 -0
  14. package/dist/flags/evaluation/use-feature-flag.d.ts +43 -0
  15. package/dist/flags/internal/context.d.ts +21 -0
  16. package/dist/flags/internal/errors.d.ts +3 -0
  17. package/dist/flags/internal/hook-flag-query.d.ts +16 -0
  18. package/dist/flags/internal/index.d.ts +4 -0
  19. package/dist/flags/internal/is-equal.d.ts +11 -0
  20. package/dist/flags/internal/options.d.ts +15 -0
  21. package/dist/flags/internal/suspense.d.ts +18 -0
  22. package/dist/flags/internal/use.d.ts +18 -0
  23. package/dist/flags/options.d.ts +43 -0
  24. package/dist/flags/provider/index.d.ts +5 -0
  25. package/dist/flags/provider/provider.d.ts +27 -0
  26. package/dist/flags/provider/use-flags-backend.d.ts +8 -0
  27. package/dist/flags/provider/use-flags-client-status.d.ts +7 -0
  28. package/dist/flags/provider/use-flags-client.d.ts +7 -0
  29. package/dist/flags/provider/use-when-flags-ready.d.ts +13 -0
  30. package/dist/flags/query/index.d.ts +1 -0
  31. package/dist/flags/query/query.d.ts +45 -0
  32. package/dist/flags/sdk.d.ts +8 -0
  33. package/dist/flags/tracking/index.d.ts +1 -0
  34. package/dist/flags/tracking/use-track.d.ts +16 -0
  35. package/dist/index.d.ts +2 -0
  36. package/dist/index.js +5290 -4814
  37. package/dist/logs/data.d.ts +8 -0
  38. package/package.json +8 -5
@@ -8,6 +8,8 @@ export interface LogLine {
8
8
  m: string;
9
9
  stack?: string;
10
10
  src?: string;
11
+ /** Set when a framework (Angular ErrorHandler, zone.js) swallowed an uncaught error and only logged it to console.error. */
12
+ fw?: 'error' | 'rejection';
11
13
  }
12
14
  export interface LogFile {
13
15
  name: string;
@@ -49,6 +51,12 @@ declare global {
49
51
  __pulseLogsCapture?: boolean;
50
52
  }
51
53
  }
54
+ /**
55
+ * The same uncaught error can arrive twice (window event + framework console.error). Returns false only when the same
56
+ * message was already taken in the last second by the OTHER origin, so genuine repeats from one origin still count.
57
+ * @internal
58
+ */
59
+ export declare const claimUncaught: (channel: string, origin: "win" | "fw", message: string) => boolean;
52
60
  export declare function createLogger(source: string): Logger;
53
61
  export declare const logger: Logger;
54
62
  export declare const subscribe: (fn: () => void) => () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shiva004/surveys",
3
- "version": "0.12.0",
3
+ "version": "0.12.2",
4
4
  "description": "Logs, Live Events, Feedback, Heatmap, Feature Management, Queues, Sessions, Error Tracking, Releases, Notifications, Mock API and User Journey for React, Angular (web components), Vue and plain HTML",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -38,14 +38,14 @@
38
38
  "@types/react": "^18.3.3",
39
39
  "@types/react-dom": "^18.3.0",
40
40
  "@vitejs/plugin-react": "^4.3.1",
41
+ "lucide-react": "^1.72.0",
41
42
  "react": "^18.3.1",
42
43
  "react-dom": "^18.3.1",
44
+ "react-router-dom": "^7.18.5",
45
+ "rrweb": "^1.1.3",
43
46
  "typescript": "^5.5.4",
44
47
  "vite": "^5.4.2",
45
- "vite-plugin-css-injected-by-js": "^3.5.2",
46
- "lucide-react": "^1.72.0",
47
- "react-router-dom": "^7.18.5",
48
- "rrweb": "^1.1.3"
48
+ "vite-plugin-css-injected-by-js": "^3.5.2"
49
49
  },
50
50
  "license": "MIT",
51
51
  "keywords": [
@@ -73,5 +73,8 @@
73
73
  "react-dom": {
74
74
  "optional": true
75
75
  }
76
+ },
77
+ "dependencies": {
78
+ "@shiva004/surveys": "^0.12.1"
76
79
  }
77
80
  }