@sentry/types 8.41.0 → 8.42.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/README.md +5 -1
- package/build/esm/package.json +1 -1
- package/build/types/index.d.ts +377 -53
- package/build/types/index.d.ts.map +1 -1
- package/build/types-ts3.8/index.d.ts +377 -53
- package/package.json +4 -1
- package/build/types/attachment.d.ts +0 -29
- package/build/types/attachment.d.ts.map +0 -1
- package/build/types/breadcrumb.d.ts +0 -96
- package/build/types/breadcrumb.d.ts.map +0 -1
- package/build/types/browseroptions.d.ts +0 -25
- package/build/types/browseroptions.d.ts.map +0 -1
- package/build/types/checkin.d.ts +0 -100
- package/build/types/checkin.d.ts.map +0 -1
- package/build/types/client.d.ts +0 -323
- package/build/types/client.d.ts.map +0 -1
- package/build/types/clientreport.d.ts +0 -12
- package/build/types/clientreport.d.ts.map +0 -1
- package/build/types/context.d.ts +0 -119
- package/build/types/context.d.ts.map +0 -1
- package/build/types/datacategory.d.ts +0 -2
- package/build/types/datacategory.d.ts.map +0 -1
- package/build/types/debugMeta.d.ts +0 -28
- package/build/types/debugMeta.d.ts.map +0 -1
- package/build/types/dsn.d.ts +0 -22
- package/build/types/dsn.d.ts.map +0 -1
- package/build/types/envelope.d.ts +0 -127
- package/build/types/envelope.d.ts.map +0 -1
- package/build/types/error.d.ts +0 -7
- package/build/types/error.d.ts.map +0 -1
- package/build/types/event.d.ts +0 -99
- package/build/types/event.d.ts.map +0 -1
- package/build/types/eventprocessor.d.ts +0 -12
- package/build/types/eventprocessor.d.ts.map +0 -1
- package/build/types/exception.d.ts +0 -12
- package/build/types/exception.d.ts.map +0 -1
- package/build/types/extra.d.ts +0 -3
- package/build/types/extra.d.ts.map +0 -1
- package/build/types/feedback/config.d.ts +0 -178
- package/build/types/feedback/config.d.ts.map +0 -1
- package/build/types/feedback/form.d.ts +0 -8
- package/build/types/feedback/form.d.ts.map +0 -1
- package/build/types/feedback/index.d.ts +0 -71
- package/build/types/feedback/index.d.ts.map +0 -1
- package/build/types/feedback/sendFeedback.d.ts +0 -49
- package/build/types/feedback/sendFeedback.d.ts.map +0 -1
- package/build/types/feedback/theme.d.ts +0 -35
- package/build/types/feedback/theme.d.ts.map +0 -1
- package/build/types/hub.d.ts +0 -195
- package/build/types/hub.d.ts.map +0 -1
- package/build/types/instrument.d.ts +0 -69
- package/build/types/instrument.d.ts.map +0 -1
- package/build/types/integration.d.ts +0 -52
- package/build/types/integration.d.ts.map +0 -1
- package/build/types/measurement.d.ts +0 -24
- package/build/types/measurement.d.ts.map +0 -1
- package/build/types/mechanism.d.ts +0 -51
- package/build/types/mechanism.d.ts.map +0 -1
- package/build/types/metrics.d.ts +0 -94
- package/build/types/metrics.d.ts.map +0 -1
- package/build/types/misc.d.ts +0 -53
- package/build/types/misc.d.ts.map +0 -1
- package/build/types/opentelemetry.d.ts +0 -14
- package/build/types/opentelemetry.d.ts.map +0 -1
- package/build/types/options.d.ts +0 -315
- package/build/types/options.d.ts.map +0 -1
- package/build/types/package.d.ts +0 -8
- package/build/types/package.d.ts.map +0 -1
- package/build/types/parameterize.d.ts +0 -5
- package/build/types/parameterize.d.ts.map +0 -1
- package/build/types/polymorphics.d.ts +0 -71
- package/build/types/polymorphics.d.ts.map +0 -1
- package/build/types/profiling.d.ts +0 -143
- package/build/types/profiling.d.ts.map +0 -1
- package/build/types/replay.d.ts +0 -25
- package/build/types/replay.d.ts.map +0 -1
- package/build/types/request.d.ts +0 -38
- package/build/types/request.d.ts.map +0 -1
- package/build/types/runtime.d.ts +0 -6
- package/build/types/runtime.d.ts.map +0 -1
- package/build/types/samplingcontext.d.ts +0 -41
- package/build/types/samplingcontext.d.ts.map +0 -1
- package/build/types/scope.d.ts +0 -241
- package/build/types/scope.d.ts.map +0 -1
- package/build/types/sdkinfo.d.ts +0 -8
- package/build/types/sdkinfo.d.ts.map +0 -1
- package/build/types/sdkmetadata.d.ts +0 -5
- package/build/types/sdkmetadata.d.ts.map +0 -1
- package/build/types/session.d.ts +0 -75
- package/build/types/session.d.ts.map +0 -1
- package/build/types/severity.d.ts +0 -2
- package/build/types/severity.d.ts.map +0 -1
- package/build/types/span.d.ts +0 -222
- package/build/types/span.d.ts.map +0 -1
- package/build/types/spanStatus.d.ts +0 -59
- package/build/types/spanStatus.d.ts.map +0 -1
- package/build/types/stackframe.d.ts +0 -22
- package/build/types/stackframe.d.ts.map +0 -1
- package/build/types/stacktrace.d.ts +0 -10
- package/build/types/stacktrace.d.ts.map +0 -1
- package/build/types/startSpanOptions.d.ts +0 -46
- package/build/types/startSpanOptions.d.ts.map +0 -1
- package/build/types/thread.d.ts +0 -10
- package/build/types/thread.d.ts.map +0 -1
- package/build/types/timedEvent.d.ts +0 -7
- package/build/types/timedEvent.d.ts.map +0 -1
- package/build/types/tracing.d.ts +0 -51
- package/build/types/tracing.d.ts.map +0 -1
- package/build/types/transaction.d.ts +0 -35
- package/build/types/transaction.d.ts.map +0 -1
- package/build/types/transport.d.ts +0 -32
- package/build/types/transport.d.ts.map +0 -1
- package/build/types/user.d.ts +0 -17
- package/build/types/user.d.ts.map +0 -1
- package/build/types/view-hierarchy.d.ts +0 -18
- package/build/types/view-hierarchy.d.ts.map +0 -1
- package/build/types/webfetchapi.d.ts +0 -15
- package/build/types/webfetchapi.d.ts.map +0 -1
- package/build/types/wrappedfunction.d.ts +0 -7
- package/build/types/wrappedfunction.d.ts.map +0 -1
- package/build/types-ts3.8/attachment.d.ts +0 -29
- package/build/types-ts3.8/breadcrumb.d.ts +0 -96
- package/build/types-ts3.8/browseroptions.d.ts +0 -25
- package/build/types-ts3.8/checkin.d.ts +0 -100
- package/build/types-ts3.8/client.d.ts +0 -323
- package/build/types-ts3.8/clientreport.d.ts +0 -12
- package/build/types-ts3.8/context.d.ts +0 -119
- package/build/types-ts3.8/datacategory.d.ts +0 -2
- package/build/types-ts3.8/debugMeta.d.ts +0 -28
- package/build/types-ts3.8/dsn.d.ts +0 -22
- package/build/types-ts3.8/envelope.d.ts +0 -136
- package/build/types-ts3.8/error.d.ts +0 -7
- package/build/types-ts3.8/event.d.ts +0 -99
- package/build/types-ts3.8/eventprocessor.d.ts +0 -12
- package/build/types-ts3.8/exception.d.ts +0 -12
- package/build/types-ts3.8/extra.d.ts +0 -3
- package/build/types-ts3.8/feedback/config.d.ts +0 -178
- package/build/types-ts3.8/feedback/form.d.ts +0 -8
- package/build/types-ts3.8/feedback/index.d.ts +0 -71
- package/build/types-ts3.8/feedback/sendFeedback.d.ts +0 -49
- package/build/types-ts3.8/feedback/theme.d.ts +0 -35
- package/build/types-ts3.8/hub.d.ts +0 -195
- package/build/types-ts3.8/instrument.d.ts +0 -69
- package/build/types-ts3.8/integration.d.ts +0 -52
- package/build/types-ts3.8/measurement.d.ts +0 -24
- package/build/types-ts3.8/mechanism.d.ts +0 -51
- package/build/types-ts3.8/metrics.d.ts +0 -94
- package/build/types-ts3.8/misc.d.ts +0 -53
- package/build/types-ts3.8/opentelemetry.d.ts +0 -17
- package/build/types-ts3.8/options.d.ts +0 -315
- package/build/types-ts3.8/package.d.ts +0 -8
- package/build/types-ts3.8/parameterize.d.ts +0 -5
- package/build/types-ts3.8/polymorphics.d.ts +0 -71
- package/build/types-ts3.8/profiling.d.ts +0 -143
- package/build/types-ts3.8/replay.d.ts +0 -25
- package/build/types-ts3.8/request.d.ts +0 -41
- package/build/types-ts3.8/runtime.d.ts +0 -6
- package/build/types-ts3.8/samplingcontext.d.ts +0 -41
- package/build/types-ts3.8/scope.d.ts +0 -241
- package/build/types-ts3.8/sdkinfo.d.ts +0 -8
- package/build/types-ts3.8/sdkmetadata.d.ts +0 -5
- package/build/types-ts3.8/session.d.ts +0 -75
- package/build/types-ts3.8/severity.d.ts +0 -2
- package/build/types-ts3.8/span.d.ts +0 -222
- package/build/types-ts3.8/spanStatus.d.ts +0 -59
- package/build/types-ts3.8/stackframe.d.ts +0 -22
- package/build/types-ts3.8/stacktrace.d.ts +0 -16
- package/build/types-ts3.8/startSpanOptions.d.ts +0 -46
- package/build/types-ts3.8/thread.d.ts +0 -10
- package/build/types-ts3.8/timedEvent.d.ts +0 -7
- package/build/types-ts3.8/tracing.d.ts +0 -51
- package/build/types-ts3.8/transaction.d.ts +0 -35
- package/build/types-ts3.8/transport.d.ts +0 -32
- package/build/types-ts3.8/user.d.ts +0 -17
- package/build/types-ts3.8/view-hierarchy.d.ts +0 -18
- package/build/types-ts3.8/webfetchapi.d.ts +0 -15
- package/build/types-ts3.8/wrappedfunction.d.ts +0 -7
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import type { AttachmentType } from './attachment';
|
|
2
|
-
import type { SerializedCheckIn } from './checkin';
|
|
3
|
-
import type { ClientReport } from './clientreport';
|
|
4
|
-
import type { DsnComponents } from './dsn';
|
|
5
|
-
import type { Event } from './event';
|
|
6
|
-
import type { FeedbackEvent, UserFeedback } from './feedback';
|
|
7
|
-
import type { Profile, ProfileChunk } from './profiling';
|
|
8
|
-
import type { ReplayEvent, ReplayRecordingData } from './replay';
|
|
9
|
-
import type { SdkInfo } from './sdkinfo';
|
|
10
|
-
import type { SerializedSession, SessionAggregates } from './session';
|
|
11
|
-
import type { SpanJSON } from './span';
|
|
12
|
-
export type DynamicSamplingContext = {
|
|
13
|
-
trace_id: string;
|
|
14
|
-
public_key: DsnComponents['publicKey'];
|
|
15
|
-
sample_rate?: string;
|
|
16
|
-
release?: string;
|
|
17
|
-
environment?: string;
|
|
18
|
-
transaction?: string;
|
|
19
|
-
replay_id?: string;
|
|
20
|
-
sampled?: string;
|
|
21
|
-
};
|
|
22
|
-
export type EnvelopeItemType = 'client_report' | 'user_report' | 'feedback' | 'session' | 'sessions' | 'transaction' | 'attachment' | 'event' | 'profile' | 'profile_chunk' | 'replay_event' | 'replay_recording' | 'check_in' | 'statsd' | 'span';
|
|
23
|
-
export type BaseEnvelopeHeaders = {
|
|
24
|
-
[key: string]: unknown;
|
|
25
|
-
dsn?: string;
|
|
26
|
-
sdk?: SdkInfo;
|
|
27
|
-
};
|
|
28
|
-
export type BaseEnvelopeItemHeaders = {
|
|
29
|
-
[key: string]: unknown;
|
|
30
|
-
type: EnvelopeItemType;
|
|
31
|
-
length?: number;
|
|
32
|
-
};
|
|
33
|
-
type BaseEnvelopeItem<ItemHeader, P> = [ItemHeader & BaseEnvelopeItemHeaders, P];
|
|
34
|
-
type BaseEnvelope<EnvelopeHeader, Item> = [
|
|
35
|
-
EnvelopeHeader & BaseEnvelopeHeaders,
|
|
36
|
-
Array<Item & BaseEnvelopeItem<BaseEnvelopeItemHeaders, unknown>>
|
|
37
|
-
];
|
|
38
|
-
type EventItemHeaders = {
|
|
39
|
-
type: 'event' | 'transaction' | 'profile' | 'feedback';
|
|
40
|
-
};
|
|
41
|
-
type AttachmentItemHeaders = {
|
|
42
|
-
type: 'attachment';
|
|
43
|
-
length: number;
|
|
44
|
-
filename: string;
|
|
45
|
-
content_type?: string;
|
|
46
|
-
attachment_type?: AttachmentType;
|
|
47
|
-
};
|
|
48
|
-
type UserFeedbackItemHeaders = {
|
|
49
|
-
type: 'user_report';
|
|
50
|
-
};
|
|
51
|
-
type FeedbackItemHeaders = {
|
|
52
|
-
type: 'feedback';
|
|
53
|
-
};
|
|
54
|
-
type SessionItemHeaders = {
|
|
55
|
-
type: 'session';
|
|
56
|
-
};
|
|
57
|
-
type SessionAggregatesItemHeaders = {
|
|
58
|
-
type: 'sessions';
|
|
59
|
-
};
|
|
60
|
-
type ClientReportItemHeaders = {
|
|
61
|
-
type: 'client_report';
|
|
62
|
-
};
|
|
63
|
-
type ReplayEventItemHeaders = {
|
|
64
|
-
type: 'replay_event';
|
|
65
|
-
};
|
|
66
|
-
type ReplayRecordingItemHeaders = {
|
|
67
|
-
type: 'replay_recording';
|
|
68
|
-
length: number;
|
|
69
|
-
};
|
|
70
|
-
type CheckInItemHeaders = {
|
|
71
|
-
type: 'check_in';
|
|
72
|
-
};
|
|
73
|
-
type ProfileItemHeaders = {
|
|
74
|
-
type: 'profile';
|
|
75
|
-
};
|
|
76
|
-
type ProfileChunkItemHeaders = {
|
|
77
|
-
type: 'profile_chunk';
|
|
78
|
-
};
|
|
79
|
-
type StatsdItemHeaders = {
|
|
80
|
-
type: 'statsd';
|
|
81
|
-
length: number;
|
|
82
|
-
};
|
|
83
|
-
type SpanItemHeaders = {
|
|
84
|
-
type: 'span';
|
|
85
|
-
};
|
|
86
|
-
export type EventItem = BaseEnvelopeItem<EventItemHeaders, Event>;
|
|
87
|
-
export type AttachmentItem = BaseEnvelopeItem<AttachmentItemHeaders, string | Uint8Array>;
|
|
88
|
-
export type UserFeedbackItem = BaseEnvelopeItem<UserFeedbackItemHeaders, UserFeedback>;
|
|
89
|
-
export type SessionItem = BaseEnvelopeItem<SessionItemHeaders, SerializedSession> | BaseEnvelopeItem<SessionAggregatesItemHeaders, SessionAggregates>;
|
|
90
|
-
export type ClientReportItem = BaseEnvelopeItem<ClientReportItemHeaders, ClientReport>;
|
|
91
|
-
export type CheckInItem = BaseEnvelopeItem<CheckInItemHeaders, SerializedCheckIn>;
|
|
92
|
-
type ReplayEventItem = BaseEnvelopeItem<ReplayEventItemHeaders, ReplayEvent>;
|
|
93
|
-
type ReplayRecordingItem = BaseEnvelopeItem<ReplayRecordingItemHeaders, ReplayRecordingData>;
|
|
94
|
-
export type StatsdItem = BaseEnvelopeItem<StatsdItemHeaders, string>;
|
|
95
|
-
export type FeedbackItem = BaseEnvelopeItem<FeedbackItemHeaders, FeedbackEvent>;
|
|
96
|
-
export type ProfileItem = BaseEnvelopeItem<ProfileItemHeaders, Profile>;
|
|
97
|
-
export type ProfileChunkItem = BaseEnvelopeItem<ProfileChunkItemHeaders, ProfileChunk>;
|
|
98
|
-
export type SpanItem = BaseEnvelopeItem<SpanItemHeaders, Partial<SpanJSON>>;
|
|
99
|
-
export type EventEnvelopeHeaders = {
|
|
100
|
-
event_id: string;
|
|
101
|
-
sent_at: string;
|
|
102
|
-
trace?: Partial<DynamicSamplingContext>;
|
|
103
|
-
};
|
|
104
|
-
type SessionEnvelopeHeaders = {
|
|
105
|
-
sent_at: string;
|
|
106
|
-
};
|
|
107
|
-
type CheckInEnvelopeHeaders = {
|
|
108
|
-
trace?: DynamicSamplingContext;
|
|
109
|
-
};
|
|
110
|
-
type ClientReportEnvelopeHeaders = BaseEnvelopeHeaders;
|
|
111
|
-
type ReplayEnvelopeHeaders = BaseEnvelopeHeaders;
|
|
112
|
-
type StatsdEnvelopeHeaders = BaseEnvelopeHeaders;
|
|
113
|
-
type SpanEnvelopeHeaders = BaseEnvelopeHeaders & {
|
|
114
|
-
trace?: DynamicSamplingContext;
|
|
115
|
-
};
|
|
116
|
-
export type EventEnvelope = BaseEnvelope<EventEnvelopeHeaders, EventItem | AttachmentItem | UserFeedbackItem | FeedbackItem | ProfileItem>;
|
|
117
|
-
export type SessionEnvelope = BaseEnvelope<SessionEnvelopeHeaders, SessionItem>;
|
|
118
|
-
export type ClientReportEnvelope = BaseEnvelope<ClientReportEnvelopeHeaders, ClientReportItem>;
|
|
119
|
-
export type ReplayEnvelope = [ReplayEnvelopeHeaders, [ReplayEventItem, ReplayRecordingItem]];
|
|
120
|
-
export type CheckInEnvelope = BaseEnvelope<CheckInEnvelopeHeaders, CheckInItem>;
|
|
121
|
-
export type StatsdEnvelope = BaseEnvelope<StatsdEnvelopeHeaders, StatsdItem>;
|
|
122
|
-
export type SpanEnvelope = BaseEnvelope<SpanEnvelopeHeaders, SpanItem>;
|
|
123
|
-
export type ProfileChunkEnvelope = BaseEnvelope<BaseEnvelopeHeaders, ProfileChunkItem>;
|
|
124
|
-
export type Envelope = EventEnvelope | SessionEnvelope | ClientReportEnvelope | ProfileChunkEnvelope | ReplayEnvelope | CheckInEnvelope | StatsdEnvelope | SpanEnvelope;
|
|
125
|
-
export type EnvelopeItem = Envelope[1][number];
|
|
126
|
-
export {};
|
|
127
|
-
//# sourceMappingURL=envelope.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"envelope.d.ts","sourceRoot":"","sources":["../../src/env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GAAG,CAAC,qBAAqB,EAAE,CAAC,eAAe,EAAE,mBAAmB,CAAC,CAAC,CAAC;AAC7F,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,sBAAsB,EAAE,WAAW,CAAC,CAAC;AAChF,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC,qBAAqB,EAAE,UAAU,CAAC,CAAC;AAC7E,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,mBAAmB,EAAE,QAAQ,CAAC,CAAC;AACvE,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC,mBAAmB,EAAE,gBAAgB,CAAC,CAAC;AAEvF,MAAM,MAAM,QAAQ,GAChB,aAAa,GACb,eAAe,GACf,oBAAoB,GACpB,oBAAoB,GACpB,cAAc,GACd,eAAe,GACf,cAAc,GACd,YAAY,CAAC;AAEjB,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
package/build/types/error.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,KAAK;IAC1C,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB"}
|
package/build/types/event.d.ts
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import type { Attachment } from './attachment';
|
|
2
|
-
import type { Breadcrumb } from './breadcrumb';
|
|
3
|
-
import type { Contexts } from './context';
|
|
4
|
-
import type { DebugMeta } from './debugMeta';
|
|
5
|
-
import type { DynamicSamplingContext } from './envelope';
|
|
6
|
-
import type { Exception } from './exception';
|
|
7
|
-
import type { Extras } from './extra';
|
|
8
|
-
import type { Measurements } from './measurement';
|
|
9
|
-
import type { Mechanism } from './mechanism';
|
|
10
|
-
import type { Primitive } from './misc';
|
|
11
|
-
import type { PolymorphicRequest } from './polymorphics';
|
|
12
|
-
import type { RequestEventData } from './request';
|
|
13
|
-
import type { CaptureContext, Scope } from './scope';
|
|
14
|
-
import type { SdkInfo } from './sdkinfo';
|
|
15
|
-
import type { SeverityLevel } from './severity';
|
|
16
|
-
import type { MetricSummary, SpanJSON } from './span';
|
|
17
|
-
import type { Thread } from './thread';
|
|
18
|
-
import type { TransactionSource } from './transaction';
|
|
19
|
-
import type { User } from './user';
|
|
20
|
-
/** An event to be sent to Sentry. */
|
|
21
|
-
export interface Event {
|
|
22
|
-
event_id?: string;
|
|
23
|
-
message?: string;
|
|
24
|
-
logentry?: {
|
|
25
|
-
message?: string;
|
|
26
|
-
params?: string[];
|
|
27
|
-
};
|
|
28
|
-
timestamp?: number;
|
|
29
|
-
start_timestamp?: number;
|
|
30
|
-
level?: SeverityLevel;
|
|
31
|
-
platform?: string;
|
|
32
|
-
logger?: string;
|
|
33
|
-
server_name?: string;
|
|
34
|
-
release?: string;
|
|
35
|
-
dist?: string;
|
|
36
|
-
environment?: string;
|
|
37
|
-
sdk?: SdkInfo;
|
|
38
|
-
request?: RequestEventData;
|
|
39
|
-
transaction?: string;
|
|
40
|
-
modules?: {
|
|
41
|
-
[key: string]: string;
|
|
42
|
-
};
|
|
43
|
-
fingerprint?: string[];
|
|
44
|
-
exception?: {
|
|
45
|
-
values?: Exception[];
|
|
46
|
-
};
|
|
47
|
-
breadcrumbs?: Breadcrumb[];
|
|
48
|
-
contexts?: Contexts;
|
|
49
|
-
tags?: {
|
|
50
|
-
[key: string]: Primitive;
|
|
51
|
-
};
|
|
52
|
-
extra?: Extras;
|
|
53
|
-
user?: User;
|
|
54
|
-
type?: EventType;
|
|
55
|
-
spans?: SpanJSON[];
|
|
56
|
-
measurements?: Measurements;
|
|
57
|
-
debug_meta?: DebugMeta;
|
|
58
|
-
sdkProcessingMetadata?: {
|
|
59
|
-
[key: string]: unknown;
|
|
60
|
-
} & {
|
|
61
|
-
request?: PolymorphicRequest;
|
|
62
|
-
normalizedRequest?: RequestEventData;
|
|
63
|
-
dynamicSamplingContext?: Partial<DynamicSamplingContext>;
|
|
64
|
-
capturedSpanScope?: Scope;
|
|
65
|
-
capturedSpanIsolationScope?: Scope;
|
|
66
|
-
spanCountBeforeProcessing?: number;
|
|
67
|
-
};
|
|
68
|
-
transaction_info?: {
|
|
69
|
-
source: TransactionSource;
|
|
70
|
-
};
|
|
71
|
-
threads?: {
|
|
72
|
-
values: Thread[];
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* The type of an `Event`.
|
|
77
|
-
* Note that `ErrorEvent`s do not have a type (hence its undefined),
|
|
78
|
-
* while all other events are required to have one.
|
|
79
|
-
*/
|
|
80
|
-
export type EventType = 'transaction' | 'profile' | 'replay_event' | 'feedback' | undefined;
|
|
81
|
-
export interface ErrorEvent extends Event {
|
|
82
|
-
type: undefined;
|
|
83
|
-
}
|
|
84
|
-
export interface TransactionEvent extends Event {
|
|
85
|
-
type: 'transaction';
|
|
86
|
-
_metrics_summary?: Record<string, Array<MetricSummary>>;
|
|
87
|
-
}
|
|
88
|
-
/** JSDoc */
|
|
89
|
-
export interface EventHint {
|
|
90
|
-
event_id?: string;
|
|
91
|
-
captureContext?: CaptureContext;
|
|
92
|
-
mechanism?: Partial<Mechanism>;
|
|
93
|
-
syntheticException?: Error | null;
|
|
94
|
-
originalException?: unknown;
|
|
95
|
-
attachments?: Attachment[];
|
|
96
|
-
data?: any;
|
|
97
|
-
integrations?: string[];
|
|
98
|
-
}
|
|
99
|
-
//# sourceMappingURL=event.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,KAAK,EAAE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AC,EAAE,MAAM,CAAC;KACpC,CAAC;IACF,gBAAgB,CAAC,EAAE;QACjB,MAAM,EAAE,iBAAiB,CAAC;KAC3B,CAAC;IACF,OAAO,CAAC,EAAE;QACR,MAAM,EAAE,MAAM,EAAE,CAAC;KAClB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,SAAS,GAAG,cAAc,GAAG,UAAU,GAAG,SAAS,CAAC;AAE5F,MAAM,WAAW,UAAW,SAAQ,KAAK;IACvC,IAAI,EAAE,SAAS,CAAC;CACjB;AACD,MAAM,WAAW,gBAAiB,SAAQ,KAAK;IAC7C,IAAI,EAAE,aAAa,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;CACzD;AAED,YAAY;AACZ,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAC/B,kBAAkB,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Event, EventHint } from './event';
|
|
2
|
-
/**
|
|
3
|
-
* Event processors are used to change the event before it will be sent.
|
|
4
|
-
* We strongly advise to make this function sync.
|
|
5
|
-
* Returning a PromiseLike<Event | null> will work just fine, but better be sure that you know what you are doing.
|
|
6
|
-
* Event processing will be deferred until your Promise is resolved.
|
|
7
|
-
*/
|
|
8
|
-
export interface EventProcessor {
|
|
9
|
-
(event: Event, hint: EventHint): PromiseLike<Event | null> | Event | null;
|
|
10
|
-
id?: string;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=eventprocessor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eventprocessor.d.ts","sourceRoot":"","sources":["../../src/eventprocessor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,GAAG,WAAW,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC;IAC1E,EAAE,CAAC,EAAE,MAAM,CAAC;CACb"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Mechanism } from './mechanism';
|
|
2
|
-
import type { Stacktrace } from './stacktrace';
|
|
3
|
-
/** JSDoc */
|
|
4
|
-
export interface Exception {
|
|
5
|
-
type?: string;
|
|
6
|
-
value?: string;
|
|
7
|
-
mechanism?: Mechanism;
|
|
8
|
-
module?: string;
|
|
9
|
-
thread_id?: number;
|
|
10
|
-
stacktrace?: Stacktrace;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=exception.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"exception.d.ts","sourceRoot":"","sources":["../../src/exception.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,YAAY;AACZ,MAAM,WAAW,SAAS;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB"}
|
package/build/types/extra.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extra.d.ts","sourceRoot":"","sources":["../../src/extra.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG,OAAO,CAAC;AAC5B,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC"}
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import type { Primitive } from '../misc';
|
|
2
|
-
import type { FeedbackFormData } from './form';
|
|
3
|
-
import type { FeedbackTheme } from './theme';
|
|
4
|
-
/**
|
|
5
|
-
* General feedback configuration
|
|
6
|
-
*/
|
|
7
|
-
export interface FeedbackGeneralConfiguration {
|
|
8
|
-
/**
|
|
9
|
-
* id to use for the main widget container (this will host the shadow DOM)
|
|
10
|
-
*/
|
|
11
|
-
id: string;
|
|
12
|
-
/**
|
|
13
|
-
* Show the Sentry branding
|
|
14
|
-
*/
|
|
15
|
-
showBranding: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Auto-inject default Feedback actor button to the DOM when integration is
|
|
18
|
-
* added.
|
|
19
|
-
*/
|
|
20
|
-
autoInject: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Should the email field be required?
|
|
23
|
-
*/
|
|
24
|
-
isEmailRequired: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Should the name field be required?
|
|
27
|
-
*/
|
|
28
|
-
isNameRequired: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Should the email input field be visible? Note: email will still be collected if set via `Sentry.setUser()`
|
|
31
|
-
*/
|
|
32
|
-
showEmail: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Should the name input field be visible? Note: name will still be collected if set via `Sentry.setUser()`
|
|
35
|
-
*/
|
|
36
|
-
showName: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Should the screen shots field be included?
|
|
39
|
-
* Screen shots cannot be marked as required
|
|
40
|
-
*/
|
|
41
|
-
enableScreenshot: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Fill in email/name input fields with Sentry user context if it exists.
|
|
44
|
-
* The value of the email/name keys represent the properties of your user context.
|
|
45
|
-
*/
|
|
46
|
-
useSentryUser: {
|
|
47
|
-
email: string;
|
|
48
|
-
name: string;
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* Set an object that will be merged sent as tags data with the event.
|
|
52
|
-
*/
|
|
53
|
-
tags?: {
|
|
54
|
-
[key: string]: Primitive;
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* Set a nonce to be passed to the injected <style> tag for enforcing CSP
|
|
58
|
-
*/
|
|
59
|
-
styleNonce?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Set a nonce to be passed to the injected <script> tag for enforcing CSP
|
|
62
|
-
*/
|
|
63
|
-
scriptNonce?: string;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Theme-related configuration
|
|
67
|
-
*/
|
|
68
|
-
export interface FeedbackThemeConfiguration {
|
|
69
|
-
/**
|
|
70
|
-
* The colorscheme to use. "system" will choose the scheme based on the user's system settings
|
|
71
|
-
*/
|
|
72
|
-
colorScheme: 'system' | 'light' | 'dark';
|
|
73
|
-
/**
|
|
74
|
-
* Light theme customization, will be merged with default theme values.
|
|
75
|
-
*/
|
|
76
|
-
themeLight: FeedbackTheme;
|
|
77
|
-
/**
|
|
78
|
-
* Dark theme customization, will be merged with default theme values.
|
|
79
|
-
*/
|
|
80
|
-
themeDark: FeedbackTheme;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* All of the different text labels that can be customized
|
|
84
|
-
*/
|
|
85
|
-
export interface FeedbackTextConfiguration {
|
|
86
|
-
/**
|
|
87
|
-
* The label for the Feedback widget button that opens the dialog
|
|
88
|
-
*/
|
|
89
|
-
triggerLabel: string;
|
|
90
|
-
/**
|
|
91
|
-
* The aria label for the Feedback widget button that opens the dialog
|
|
92
|
-
*/
|
|
93
|
-
triggerAriaLabel: string;
|
|
94
|
-
/**
|
|
95
|
-
* The label for the Feedback form cancel button that closes dialog
|
|
96
|
-
*/
|
|
97
|
-
cancelButtonLabel: string;
|
|
98
|
-
/**
|
|
99
|
-
* The label for the Feedback form submit button that sends feedback
|
|
100
|
-
*/
|
|
101
|
-
submitButtonLabel: string;
|
|
102
|
-
/**
|
|
103
|
-
* The label for the Screenshot editor cancel buttons
|
|
104
|
-
*/
|
|
105
|
-
confirmButtonLabel: string;
|
|
106
|
-
/**
|
|
107
|
-
* The title of the Feedback form
|
|
108
|
-
*/
|
|
109
|
-
formTitle: string;
|
|
110
|
-
/**
|
|
111
|
-
* Label for the email input
|
|
112
|
-
*/
|
|
113
|
-
emailLabel: string;
|
|
114
|
-
/**
|
|
115
|
-
* Placeholder text for Feedback email input
|
|
116
|
-
*/
|
|
117
|
-
emailPlaceholder: string;
|
|
118
|
-
/**
|
|
119
|
-
* Label for the message input
|
|
120
|
-
*/
|
|
121
|
-
messageLabel: string;
|
|
122
|
-
/**
|
|
123
|
-
* Placeholder text for Feedback message input
|
|
124
|
-
*/
|
|
125
|
-
messagePlaceholder: string;
|
|
126
|
-
/**
|
|
127
|
-
* Label for the name input
|
|
128
|
-
*/
|
|
129
|
-
nameLabel: string;
|
|
130
|
-
/**
|
|
131
|
-
* Placeholder text for Feedback name input
|
|
132
|
-
*/
|
|
133
|
-
namePlaceholder: string;
|
|
134
|
-
/**
|
|
135
|
-
* Message after feedback was sent successfully
|
|
136
|
-
*/
|
|
137
|
-
successMessageText: string;
|
|
138
|
-
/**
|
|
139
|
-
* Text which indicates that a field is required
|
|
140
|
-
*/
|
|
141
|
-
isRequiredLabel: string;
|
|
142
|
-
/**
|
|
143
|
-
* The label for the button that adds a screenshot and renders the image editor
|
|
144
|
-
*/
|
|
145
|
-
addScreenshotButtonLabel: string;
|
|
146
|
-
/**
|
|
147
|
-
* The label for the button that removes a screenshot and hides the image editor
|
|
148
|
-
*/
|
|
149
|
-
removeScreenshotButtonLabel: string;
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* The public callbacks available for the feedback integration
|
|
153
|
-
*/
|
|
154
|
-
export interface FeedbackCallbacks {
|
|
155
|
-
/**
|
|
156
|
-
* Callback when form is opened
|
|
157
|
-
*/
|
|
158
|
-
onFormOpen?: () => void;
|
|
159
|
-
/**
|
|
160
|
-
* Callback when form is closed and not submitted
|
|
161
|
-
*/
|
|
162
|
-
onFormClose?: () => void;
|
|
163
|
-
/**
|
|
164
|
-
* Callback when feedback is successfully submitted
|
|
165
|
-
*
|
|
166
|
-
* After this you'll see a SuccessMessage on the screen for a moment.
|
|
167
|
-
*/
|
|
168
|
-
onSubmitSuccess?: (data: FeedbackFormData) => void;
|
|
169
|
-
/**
|
|
170
|
-
* Callback when feedback is unsuccessfully submitted
|
|
171
|
-
*/
|
|
172
|
-
onSubmitError?: (error: Error) => void;
|
|
173
|
-
/**
|
|
174
|
-
* Callback when the feedback form is submitted successfully, and the SuccessMessage is complete, or dismissed
|
|
175
|
-
*/
|
|
176
|
-
onFormSubmitted?: () => void;
|
|
177
|
-
}
|
|
178
|
-
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/feedback/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,cA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;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,wBAAwB,EAAE,MAAM,CAAC;IAEjC;;OAEG;IACH,2BAA2B,EAAE,MAAM,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IAExB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IAEzB;;;;OAIG;IACH,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAEnD;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAEvC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/feedback/form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,UAAU,EAAE,GAAG,SAAS,CAAC;CACvC,CAAC"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import type { Attachment } from '../attachment';
|
|
2
|
-
import type { Integration } from '../integration';
|
|
3
|
-
import type { FeedbackCallbacks, FeedbackGeneralConfiguration, FeedbackTextConfiguration, FeedbackThemeConfiguration } from './config';
|
|
4
|
-
export type { FeedbackFormData } from './form';
|
|
5
|
-
import type { FeedbackEvent, SendFeedback, SendFeedbackParams, UserFeedback } from './sendFeedback';
|
|
6
|
-
export type { FeedbackEvent, UserFeedback, SendFeedback, SendFeedbackParams };
|
|
7
|
-
/**
|
|
8
|
-
* The integration's internal `options` member where every value should be set
|
|
9
|
-
*/
|
|
10
|
-
export interface FeedbackInternalOptions extends FeedbackGeneralConfiguration, FeedbackThemeConfiguration, FeedbackTextConfiguration, FeedbackCallbacks {
|
|
11
|
-
}
|
|
12
|
-
type Hooks = unknown;
|
|
13
|
-
type HTMLElement = unknown;
|
|
14
|
-
type HType = unknown;
|
|
15
|
-
type ShadowRoot = unknown;
|
|
16
|
-
type VNode = unknown;
|
|
17
|
-
type FeedbackDialog = {
|
|
18
|
-
/**
|
|
19
|
-
* The HTMLElement that is containing all the form content
|
|
20
|
-
*/
|
|
21
|
-
el: HTMLElement;
|
|
22
|
-
/**
|
|
23
|
-
* Insert the Dialog into the Shadow DOM.
|
|
24
|
-
*
|
|
25
|
-
* The Dialog starts in the `closed` state where no inner HTML is rendered.
|
|
26
|
-
*/
|
|
27
|
-
appendToDom: () => void;
|
|
28
|
-
/**
|
|
29
|
-
* Remove the dialog from the Shadow DOM
|
|
30
|
-
*/
|
|
31
|
-
removeFromDom: () => void;
|
|
32
|
-
/**
|
|
33
|
-
* Open/Show the dialog & form inside it
|
|
34
|
-
*/
|
|
35
|
-
open: () => void;
|
|
36
|
-
/**
|
|
37
|
-
* Close/Hide the dialog & form inside it
|
|
38
|
-
*/
|
|
39
|
-
close: () => void;
|
|
40
|
-
};
|
|
41
|
-
interface FeedbackScreenshotInput {
|
|
42
|
-
/**
|
|
43
|
-
* The preact component
|
|
44
|
-
*/
|
|
45
|
-
input: (props: {
|
|
46
|
-
onError: (error: Error) => void;
|
|
47
|
-
}) => VNode;
|
|
48
|
-
/**
|
|
49
|
-
* The image/screenshot bytes
|
|
50
|
-
*/
|
|
51
|
-
value: () => Promise<Attachment | undefined>;
|
|
52
|
-
}
|
|
53
|
-
interface CreateDialogProps {
|
|
54
|
-
options: FeedbackInternalOptions;
|
|
55
|
-
screenshotIntegration: FeedbackScreenshotIntegration | undefined;
|
|
56
|
-
sendFeedback: SendFeedback;
|
|
57
|
-
shadow: ShadowRoot;
|
|
58
|
-
}
|
|
59
|
-
export interface FeedbackModalIntegration extends Integration {
|
|
60
|
-
createDialog: (props: CreateDialogProps) => FeedbackDialog;
|
|
61
|
-
}
|
|
62
|
-
interface CreateInputProps {
|
|
63
|
-
h: HType;
|
|
64
|
-
hooks: Hooks;
|
|
65
|
-
dialog: FeedbackDialog;
|
|
66
|
-
options: FeedbackInternalOptions;
|
|
67
|
-
}
|
|
68
|
-
export interface FeedbackScreenshotIntegration extends Integration {
|
|
69
|
-
createInput: (props: CreateInputProps) => FeedbackScreenshotInput;
|
|
70
|
-
}
|
|
71
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/feedback/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EACV,iBAAiB,EACjB,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC3B,MAAM,UAAU,CAAC;AAElB,YAAY,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE/C,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACpG,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,CAAC;AAE9E;;GAEG;AACH,MAAM,WAAW,uBACf,SAAQ,4BAA4B,EAClC,0BAA0B,EAC1B,yBAAyB,EACzB,iBAAiB;CAAG;AAExB,KAAK,KAAK,GAAG,OAAO,CAAC;AACrB,KAAK,WAAW,GAAG,OAAO,CAAC;AAC3B,KAAK,KAAK,GAAG,OAAO,CAAC;AACrB,KAAK,UAAU,GAAG,OAAO,CAAC;AAC1B,KAAK,KAAK,GAAG,OAAO,CAAC;AAErB,KAAK,cAAc,GAAG;IACpB;;OAEG;IACH,EAAE,EAAE,WAAW,CAAC;IAEhB;;;;OAIG;IACH,WAAW,EAAE,MAAM,IAAI,CAAC;IAExB;;OAEG;IACH,aAAa,EAAE,MAAM,IAAI,CAAC;IAE1B;;OAEG;IACH,IAAI,EAAE,MAAM,IAAI,CAAC;IAEjB;;OAEG;IACH,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,UAAU,uBAAuB;IAC/B;;OAEG;IACH,KAAK,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;KAAE,KAAK,KAAK,CAAC;IAE7D;;OAEG;IACH,KAAK,EAAE,MAAM,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;CAC9C;AAED,UAAU,iBAAiB;IACzB,OAAO,EAAE,uBAAuB,CAAC;IACjC,qBAAqB,EAAE,6BAA6B,GAAG,SAAS,CAAC;IACjE,YAAY,EAAE,YAAY,CAAC;IAC3B,MAAM,EAAE,UAAU,CAAC;CACpB;AACD,MAAM,WAAW,wBAAyB,SAAQ,WAAW;IAC3D,YAAY,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,cAAc,CAAC;CAC5D;AAED,UAAU,gBAAgB;IACxB,CAAC,EAAE,KAAK,CAAC;IACT,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,cAAc,CAAC;IACvB,OAAO,EAAE,uBAAuB,CAAC;CAClC;AACD,MAAM,WAAW,6BAA8B,SAAQ,WAAW;IAChE,WAAW,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,uBAAuB,CAAC;CACnE"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type { Event, EventHint } from '../event';
|
|
2
|
-
import type { Primitive } from '../misc';
|
|
3
|
-
import type { User } from '../user';
|
|
4
|
-
/**
|
|
5
|
-
* Crash report feedback object
|
|
6
|
-
*/
|
|
7
|
-
export interface UserFeedback {
|
|
8
|
-
event_id: string;
|
|
9
|
-
email: User['email'];
|
|
10
|
-
name: string;
|
|
11
|
-
comments: string;
|
|
12
|
-
}
|
|
13
|
-
interface FeedbackContext extends Record<string, unknown> {
|
|
14
|
-
message: string;
|
|
15
|
-
contact_email?: string;
|
|
16
|
-
name?: string;
|
|
17
|
-
replay_id?: string;
|
|
18
|
-
url?: string;
|
|
19
|
-
associated_event_id?: string;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* NOTE: These types are still considered Alpha and subject to change.
|
|
23
|
-
* @hidden
|
|
24
|
-
*/
|
|
25
|
-
export interface FeedbackEvent extends Event {
|
|
26
|
-
type: 'feedback';
|
|
27
|
-
contexts: Event['contexts'] & {
|
|
28
|
-
feedback: FeedbackContext;
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export interface SendFeedbackParams {
|
|
32
|
-
message: string;
|
|
33
|
-
name?: string;
|
|
34
|
-
email?: string;
|
|
35
|
-
url?: string;
|
|
36
|
-
source?: string;
|
|
37
|
-
associatedEventId?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Set an object that will be merged sent as tags data with the event.
|
|
40
|
-
*/
|
|
41
|
-
tags?: {
|
|
42
|
-
[key: string]: Primitive;
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
export type SendFeedback = (params: SendFeedbackParams, hint?: EventHint & {
|
|
46
|
-
includeReplay?: boolean;
|
|
47
|
-
}) => Promise<string>;
|
|
48
|
-
export {};
|
|
49
|
-
//# sourceMappingURL=sendFeedback.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sendFeedback.d.ts","sourceRoot":"","sources":["../../../src/feedback/sendFeedback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,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interface FeedbackTheme {
|
|
2
|
-
/**
|
|
3
|
-
* Foreground color (i.e. text color)
|
|
4
|
-
*/
|
|
5
|
-
foreground?: string;
|
|
6
|
-
/**
|
|
7
|
-
* Background color for surfaces
|
|
8
|
-
*/
|
|
9
|
-
background?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Foreground color for accented elements
|
|
12
|
-
*/
|
|
13
|
-
accentForeground?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Background color for accented elements
|
|
16
|
-
*/
|
|
17
|
-
accentBackground?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Success color
|
|
20
|
-
*/
|
|
21
|
-
successColor?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Error color
|
|
24
|
-
*/
|
|
25
|
-
errorColor?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Box shadow for floating elements
|
|
28
|
-
*/
|
|
29
|
-
boxShadow?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Styles for focused interactive components
|
|
32
|
-
*/
|
|
33
|
-
outline?: string;
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/feedback/theme.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|