issue-sticker 0.1.0 → 0.1.1

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.
@@ -284,14 +284,14 @@ async function waitUntilLoad(node, options) {
284
284
  }
285
285
  }
286
286
  }
287
- const uuid = /* @__PURE__ */ function uuid2() {
287
+ const uuid = /* @__PURE__ */ (function uuid2() {
288
288
  let counter = 0;
289
289
  const random = () => `0000${(Math.random() * 36 ** 4 << 0).toString(36)}`.slice(-4);
290
290
  return () => {
291
291
  counter += 1;
292
292
  return `u${random()}${counter}`;
293
293
  };
294
- }();
294
+ })();
295
295
  function splitFontFamily(fontFamily) {
296
296
  return fontFamily == null ? void 0 : fontFamily.split(",").map((val) => val.trim().replace(/"|'/g, "").toLowerCase()).filter(Boolean);
297
297
  }
package/dist/index.d.ts CHANGED
@@ -7,15 +7,27 @@ declare const IssueSticker: {
7
7
  export { IssueSticker }
8
8
  export default IssueSticker;
9
9
 
10
+ /**
11
+ * 온보딩 가이드 트리거 정책.
12
+ * - `'off'`: 온보딩을 띄우지 않고, FAB의 "가이드 다시 보기" 항목도 숨긴다.
13
+ * - `'onMount'`: 위젯 마운트 직후 자동으로 온보딩을 시작한다(기본값).
14
+ * - `'onFABClick'`: 최초 FAB 클릭 시점에 온보딩을 시작한다.
15
+ *
16
+ * `'onMount'`/`'onFABClick'` 모두 이미 온보딩을 본 사용자에게는 다시 띄우지 않는다.
17
+ */
18
+ declare type OnboardingTrigger = 'off' | 'onMount' | 'onFABClick';
19
+
10
20
  export declare interface SDKConfig {
11
21
  apiKey: string;
12
22
  user?: SDKUser;
13
23
  screenshotCompression?: {
14
24
  useWebWorker?: boolean;
15
25
  };
26
+ /** 온보딩 가이드 트리거 정책. 미지정 시 `'onMount'`. */
27
+ onboarding?: OnboardingTrigger;
16
28
  }
17
29
 
18
- export declare type SDKEvent = 'issue:created' | 'issue:updated' | 'issue:clicked' | 'mode:changed' | 'recording:started' | 'recording:stopped' | 'auth:login' | 'auth:logout' | 'ready' | 'error';
30
+ export declare type SDKEvent = 'issue:created' | 'issue:cancelled' | 'issue:updated' | 'issue:clicked' | 'mode:changed' | 'recording:started' | 'recording:stopped' | 'recording:failed' | 'auth:login' | 'auth:logout' | 'ready' | 'error';
19
31
 
20
32
  export declare interface SDKUser {
21
33
  id: string;