@hanzo/event 0.3.44 → 0.3.49
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/README.md +11 -50
- package/dist/core.d.ts +6 -36
- package/dist/core.d.ts.map +1 -1
- package/dist/index.cjs +242 -414
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +241 -411
- package/dist/index.mjs.map +1 -1
- package/dist/items.d.ts +22 -0
- package/dist/items.d.ts.map +1 -0
- package/dist/org.d.ts.map +1 -1
- package/dist/react.cjs +181 -415
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +8 -0
- package/dist/react.d.ts +8 -0
- package/dist/react.d.ts.map +1 -1
- package/dist/react.mjs +183 -418
- package/dist/react.mjs.map +1 -1
- package/dist/tags.d.ts +14 -1
- package/dist/tags.d.ts.map +1 -1
- package/dist/throwable.d.ts +15 -0
- package/dist/throwable.d.ts.map +1 -0
- package/dist/types.d.ts +19 -74
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/core.test.ts +28 -300
- package/src/core.ts +36 -185
- package/src/exception.ts +1 -1
- package/src/index.ts +4 -6
- package/src/items.test.ts +22 -0
- package/src/items.ts +44 -0
- package/src/org.ts +4 -0
- package/src/react.tsx +22 -0
- package/src/stream.test.ts +0 -7
- package/src/tags.test.ts +18 -0
- package/src/tags.ts +38 -5
- package/src/throwable.test.ts +72 -0
- package/src/throwable.ts +126 -0
- package/src/types.ts +15 -75
- package/src/uid.test.ts +1 -1
- package/dist/dsn.d.ts +0 -43
- package/dist/dsn.d.ts.map +0 -1
- package/dist/sentry.d.ts +0 -62
- package/dist/sentry.d.ts.map +0 -1
- package/src/dsn.test.ts +0 -75
- package/src/dsn.ts +0 -56
- package/src/sentry.test.ts +0 -312
- package/src/sentry.ts +0 -311
package/dist/react.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Component, type ErrorInfo, type ReactNode } from 'react';
|
|
2
2
|
import { Analytics } from './core';
|
|
3
3
|
import type { AnalyticsConfig } from './types';
|
|
4
|
+
import { type Choice } from './consent';
|
|
4
5
|
declare const Ctx: import("react").Context<Analytics | null>;
|
|
5
6
|
export interface AnalyticsProviderProps {
|
|
6
7
|
/** Provide a pre-built client, or a config to build one. */
|
|
@@ -41,5 +42,12 @@ export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBo
|
|
|
41
42
|
private reset;
|
|
42
43
|
render(): ReactNode;
|
|
43
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* The visitor's consent, live: what a region presumes until they choose, then
|
|
47
|
+
* what they chose, re-rendering the moment they do. `enabled: choice.analytics`
|
|
48
|
+
* on the provider's config is how a stream that started silent for an EU visitor
|
|
49
|
+
* starts on Accept, with no reload.
|
|
50
|
+
*/
|
|
51
|
+
export declare function useConsent(): Choice;
|
|
44
52
|
export {};
|
|
45
53
|
//# sourceMappingURL=react.d.ts.map
|
package/dist/react.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Component, type ErrorInfo, type ReactNode } from 'react';
|
|
2
2
|
import { Analytics } from './core';
|
|
3
3
|
import type { AnalyticsConfig } from './types';
|
|
4
|
+
import { type Choice } from './consent';
|
|
4
5
|
declare const Ctx: import("react").Context<Analytics | null>;
|
|
5
6
|
export interface AnalyticsProviderProps {
|
|
6
7
|
/** Provide a pre-built client, or a config to build one. */
|
|
@@ -41,5 +42,12 @@ export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBo
|
|
|
41
42
|
private reset;
|
|
42
43
|
render(): ReactNode;
|
|
43
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* The visitor's consent, live: what a region presumes until they choose, then
|
|
47
|
+
* what they chose, re-rendering the moment they do. `enabled: choice.analytics`
|
|
48
|
+
* on the provider's config is how a stream that started silent for an EU visitor
|
|
49
|
+
* starts on Accept, with no reload.
|
|
50
|
+
*/
|
|
51
|
+
export declare function useConsent(): Choice;
|
|
44
52
|
export {};
|
|
45
53
|
//# sourceMappingURL=react.d.ts.map
|
package/dist/react.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../src/react.tsx"],"names":[],"mappings":"AAWA,OAAO,EACL,SAAS,
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../src/react.tsx"],"names":[],"mappings":"AAWA,OAAO,EACL,SAAS,EAOT,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,SAAS,EAAmB,MAAM,QAAQ,CAAA;AACnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAA+B,KAAK,MAAM,EAAE,MAAM,WAAW,CAAA;AAEpE,QAAA,MAAM,GAAG,2CAAwC,CAAA;AAEjD,MAAM,WAAW,sBAAsB;IACrC,4DAA4D;IAC5D,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,MAAM,CAAC,EAAE,eAAe,CAAA;IACxB,2DAA2D;IAC3D,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,6FAgB9D;AAED;gEACgE;AAChE,wBAAgB,YAAY,IAAI,SAAS,CAIxC;AAED;mFACmF;AACnF,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAUjE;AAKD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,SAAS,CAAA;IACnB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,IAAI,KAAK,SAAS,CAAC,CAAA;IACvE,mEAAmE;IACnE,MA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