issue-sticker 0.4.0 → 0.6.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 +40 -0
- package/dist/{createLucideIcon-C0Ldhp96.js → createLucideIcon-BzRMP02h.js} +12 -12
- package/dist/{externalUserPayload-BVNl_35M.js → externalUserPayload-B7zThnol.js} +444 -184
- package/dist/issue-sticker-headless-react.js +2 -2
- package/dist/issue-sticker-headless.js +124 -15
- package/dist/issue-sticker-react.js +1712 -889
- package/dist/{tooltip-CEc_RGfI.js → tooltip-B6UPO-U8.js} +1 -1
- package/headless.d.ts +35 -2
- package/package.json +3 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { P as Presence, i as Portal$1, w as Arrow, D as DismissableLayer, C as Content, y as Root, h as useComposedRefs, t as createPopperScope, j as createContextScope, z as createSlottable, m as useId, l as useControllableState, v as Root2, A as Anchor, e as Primitive, f as composeEventHandlers, b as usePortalContainer, a as cn, O as OVERLAY_LAYER, s as stopEscapePropagation } from "./createLucideIcon-BzRMP02h.js";
|
|
4
4
|
var [createTooltipContext] = createContextScope("Tooltip", [
|
|
5
5
|
createPopperScope
|
|
6
6
|
]);
|
package/headless.d.ts
CHANGED
|
@@ -71,6 +71,14 @@ export interface IssueStickerSummary {
|
|
|
71
71
|
external_user_id?: string | null;
|
|
72
72
|
created_at: string;
|
|
73
73
|
updated_at: string;
|
|
74
|
+
/**
|
|
75
|
+
* 프로젝트의 스티커 디자인 규칙으로 해석된 색. 규칙이 없거나 값이 매칭되지 않으면 null.
|
|
76
|
+
* color 는 팔레트 이름이며 hex 가 아니다.
|
|
77
|
+
*/
|
|
78
|
+
readonly design?: {
|
|
79
|
+
readonly color: string;
|
|
80
|
+
readonly label: string | null;
|
|
81
|
+
} | null;
|
|
74
82
|
}
|
|
75
83
|
|
|
76
84
|
/** 상세 조회한 이슈. */
|
|
@@ -267,11 +275,25 @@ export interface HeadlessIssueFilters {
|
|
|
267
275
|
}
|
|
268
276
|
|
|
269
277
|
export interface SubmitDraftInput {
|
|
270
|
-
|
|
271
|
-
|
|
278
|
+
/** intent 를 보내면 생략할 수 있다 — 서버가 생성한다. */
|
|
279
|
+
title?: string;
|
|
280
|
+
/** intent 를 보내면 생략할 수 있다 — 서버가 생성한다. */
|
|
281
|
+
description?: string;
|
|
282
|
+
/** 기대한 동작(To-be) 원문. 서버가 제목·설명을 비동기로 생성한다. */
|
|
283
|
+
intent?: string;
|
|
272
284
|
dynamicFields?: Record<string, unknown>;
|
|
273
285
|
}
|
|
274
286
|
|
|
287
|
+
/**
|
|
288
|
+
* createIssue에 전달하는 입력. 유저 액션 없이 코드 조건으로 이슈를 만들 때 씁니다.
|
|
289
|
+
*/
|
|
290
|
+
export interface CreateIssueInput extends SubmitDraftInput {
|
|
291
|
+
/** 이슈를 붙일 요소. 기본값은 `document.body`(문서 좌상단). */
|
|
292
|
+
readonly target?: HTMLElement;
|
|
293
|
+
/** 기본 `'screenshot'`. `'none'`이면 캡처를 건너뛰고 즉시 전송합니다. */
|
|
294
|
+
readonly media?: 'screenshot' | 'none';
|
|
295
|
+
}
|
|
296
|
+
|
|
275
297
|
export interface HeadlessClient {
|
|
276
298
|
readonly phase: HeadlessPhase;
|
|
277
299
|
getSnapshot(): HeadlessSnapshot;
|
|
@@ -287,6 +309,17 @@ export interface HeadlessClient {
|
|
|
287
309
|
setSessionReplayEnabled(enabled: boolean): void;
|
|
288
310
|
cancelIssueCapture(): void;
|
|
289
311
|
submitDraft(input: SubmitDraftInput): Promise<Issue>;
|
|
312
|
+
/**
|
|
313
|
+
* 유저 액션 없이 코드에서 이슈를 만듭니다. 캡처 단계를 거치지 않으므로 `phase`와
|
|
314
|
+
* `draft`를 건드리지 않고, 사용자가 이슈를 작성하는 중에도 호출할 수 있습니다.
|
|
315
|
+
*
|
|
316
|
+
* 실패해도 예외를 던지지 않고 `null`을 돌려줍니다. 이미 오류를 처리하는 자리에서
|
|
317
|
+
* 부르는 메서드라, 이슈 생성만을 위한 try/catch 를 한 겹 더 쓰지 않아도 됩니다.
|
|
318
|
+
* 실패 사유는 콘솔 경고로 남습니다.
|
|
319
|
+
*
|
|
320
|
+
* 호출 조건이 잘못 잡히면 이슈가 무한히 쌓이므로 SDK가 60초 5건으로 제한합니다.
|
|
321
|
+
*/
|
|
322
|
+
createIssue(input: CreateIssueInput): Promise<Issue | null>;
|
|
290
323
|
loginAsMember(): Promise<void>;
|
|
291
324
|
logoutMember(): Promise<void>;
|
|
292
325
|
destroy(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "issue-sticker",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "IssueSticker SDK - Visual bug tracking widget for web applications",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "module",
|
|
@@ -56,13 +56,14 @@
|
|
|
56
56
|
"serve:localdev": "vite --host 0.0.0.0 --port 4173 --mode localdev",
|
|
57
57
|
"preview": "vite preview",
|
|
58
58
|
"lint": "cd ../.. && eslint packages/sdk --ext .ts,.tsx,.js,.jsx",
|
|
59
|
-
"typecheck": "npm run tsc",
|
|
59
|
+
"typecheck": "npm run tsc && npm run tsc:examples",
|
|
60
60
|
"format": "cd ../.. && prettier --write packages/sdk --ignore-unknown",
|
|
61
61
|
"format:check": "cd ../.. && prettier --check packages/sdk --ignore-unknown",
|
|
62
62
|
"test": "vitest --run",
|
|
63
63
|
"test:watch": "vitest",
|
|
64
64
|
"test:ui": "vitest --ui",
|
|
65
65
|
"tsc": "tsc --noEmit",
|
|
66
|
+
"tsc:examples": "tsc --noEmit -p tsconfig.examples.json",
|
|
66
67
|
"tsc:watch": "tsc --noEmit --watch",
|
|
67
68
|
"test:e2e": "playwright test",
|
|
68
69
|
"test:e2e:ui": "playwright test --ui"
|