issue-sticker 0.3.1 → 0.4.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/CHANGELOG.md +29 -0
- package/README.md +22 -5
- package/dist/{createLucideIcon-CmSNiW63.js → createLucideIcon-C0Ldhp96.js} +90 -87
- package/dist/{externalUserPayload-hJjuUx6q.js → externalUserPayload-BVNl_35M.js} +2659 -1315
- package/dist/issue-sticker-headless-react.js +129 -72
- package/dist/issue-sticker-headless.js +97 -78
- package/dist/issue-sticker-react.js +2534 -2071
- package/dist/{tooltip-DciWyUWs.js → tooltip-CEc_RGfI.js} +1 -1
- package/headless.d.ts +4 -2
- package/package.json +1 -1
- package/react.d.ts +9 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { h as Presence, n as Portal$1, w as Arrow, D as DismissableLayer, C as Content, y as Root, j as useComposedRefs, t as createPopperScope, i as createContextScope, z as createSlottable, f as useId, e as useControllableState, v as Root2, A as Anchor, P as Primitive, g as composeEventHandlers, b as usePortalContainer, a as cn,
|
|
3
|
+
import { h as Presence, n as Portal$1, w as Arrow, D as DismissableLayer, C as Content, y as Root, j as useComposedRefs, t as createPopperScope, i as createContextScope, z as createSlottable, f as useId, e as useControllableState, v as Root2, A as Anchor, P as Primitive, g as composeEventHandlers, b as usePortalContainer, a as cn, O as OVERLAY_LAYER, s as stopEscapePropagation } from "./createLucideIcon-C0Ldhp96.js";
|
|
4
4
|
var [createTooltipContext] = createContextScope("Tooltip", [
|
|
5
5
|
createPopperScope
|
|
6
6
|
]);
|
package/headless.d.ts
CHANGED
|
@@ -82,7 +82,6 @@ export interface Issue extends IssueStickerSummary {
|
|
|
82
82
|
external_user_name: string | null;
|
|
83
83
|
network_logs: NetworkLog[] | null;
|
|
84
84
|
console_logs: ConsoleLog[] | null;
|
|
85
|
-
comments?: unknown[];
|
|
86
85
|
issue_external_mappings?: IssueExternalMapping[];
|
|
87
86
|
project: { name: string } | null;
|
|
88
87
|
reporter: { display_name: string | null } | null;
|
|
@@ -132,7 +131,8 @@ export type HeadlessErrorCode =
|
|
|
132
131
|
| 'MEMBER_AUTH_REQUIRED'
|
|
133
132
|
| 'NETWORK_ERROR'
|
|
134
133
|
| 'CAPTURE_FAILED'
|
|
135
|
-
| 'VALIDATION_ERROR'
|
|
134
|
+
| 'VALIDATION_ERROR'
|
|
135
|
+
| 'PAYLOAD_TOO_LARGE';
|
|
136
136
|
|
|
137
137
|
export type HeadlessAuthMode = 'public' | 'member';
|
|
138
138
|
export type HeadlessCaptureMediaMode = 'screenshot' | 'video';
|
|
@@ -227,6 +227,8 @@ export interface HeadlessSessionReplayState {
|
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
export interface HeadlessSnapshot {
|
|
230
|
+
/** 익스텐션이 이 페이지의 런타임을 소유 중인가. true 면 SDK 는 아무것도 띄우지 않는다. */
|
|
231
|
+
readonly extensionActive: boolean;
|
|
230
232
|
readonly phase: HeadlessPhase;
|
|
231
233
|
readonly auth: HeadlessAuthState;
|
|
232
234
|
readonly issues: readonly IssueStickerSummary[];
|
package/package.json
CHANGED
package/react.d.ts
CHANGED
|
@@ -3,7 +3,14 @@ export interface SDKUser {
|
|
|
3
3
|
name: string;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
export type OnboardingTrigger = 'off' | 'onMount'
|
|
6
|
+
export type OnboardingTrigger = 'off' | 'onMount';
|
|
7
|
+
|
|
8
|
+
export type ToolbarCorner = 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
|
|
9
|
+
|
|
10
|
+
export interface ToolbarConfig {
|
|
11
|
+
corner?: ToolbarCorner;
|
|
12
|
+
offset?: { x: number; y: number };
|
|
13
|
+
}
|
|
7
14
|
|
|
8
15
|
export interface SDKConfig {
|
|
9
16
|
apiKey: string;
|
|
@@ -12,6 +19,7 @@ export interface SDKConfig {
|
|
|
12
19
|
useWebWorker?: boolean;
|
|
13
20
|
};
|
|
14
21
|
onboarding?: OnboardingTrigger;
|
|
22
|
+
toolbar?: ToolbarConfig;
|
|
15
23
|
}
|
|
16
24
|
|
|
17
25
|
export type SDKEvent =
|