issue-sticker 0.5.0 → 0.7.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.
@@ -2,23 +2,6 @@ import * as React from "react";
2
2
  import { useLayoutEffect, forwardRef, createElement } from "react";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import * as ReactDOM from "react-dom";
5
- const OVERLAY_LAYER_INDEX = {
6
- // 익스텐션·SDK 위젯의 shadow host. isolation:isolate 로 stacking context 를 만들기 때문에
7
- // 아래 레이어 값들은 호스트 내부 순서만 정한다. 호스트 페이지의 오버레이와 겨루는 것은
8
- // 이 값 하나뿐이라, 페이지가 쓸 수 있는 어떤 레이어보다 위여야 한다.
9
- runtimeHost: 2147483647,
10
- fab: 999999,
11
- tourMask: 1000006,
12
- tourPopover: 1000007
13
- };
14
- const OVERLAY_LAYER = {
15
- shell: "z-[1000000]",
16
- sdkLoginOverlay: "z-[1000003]",
17
- dialogOverlay: "z-[1000004]",
18
- dialogContent: "z-[1000005]",
19
- floating: "z-[1000008]",
20
- toast: "z-[1000010]"
21
- };
22
5
  /*! pako 2.2.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
23
6
  const Z_FIXED$1 = 4;
24
7
  const Z_BINARY = 0;
@@ -21632,6 +21615,23 @@ class Replayer {
21632
21615
  const { addCustomEvent } = record;
21633
21616
  const { freezePage } = record;
21634
21617
  const { takeFullSnapshot } = record;
21618
+ const OVERLAY_LAYER_INDEX = {
21619
+ // 익스텐션·SDK 위젯의 shadow host. isolation:isolate 로 stacking context 를 만들기 때문에
21620
+ // 아래 레이어 값들은 호스트 내부 순서만 정한다. 호스트 페이지의 오버레이와 겨루는 것은
21621
+ // 이 값 하나뿐이라, 페이지가 쓸 수 있는 어떤 레이어보다 위여야 한다.
21622
+ runtimeHost: 2147483647,
21623
+ fab: 999999,
21624
+ tourMask: 1000006,
21625
+ tourPopover: 1000007
21626
+ };
21627
+ const OVERLAY_LAYER = {
21628
+ shell: "z-[1000000]",
21629
+ sdkLoginOverlay: "z-[1000003]",
21630
+ dialogOverlay: "z-[1000004]",
21631
+ dialogContent: "z-[1000005]",
21632
+ floating: "z-[1000008]",
21633
+ toast: "z-[1000010]"
21634
+ };
21635
21635
  function r(e2) {
21636
21636
  var t2, f2, n2 = "";
21637
21637
  if ("string" == typeof e2 || "number" == typeof e2) n2 += e2;
@@ -27382,11 +27382,27 @@ const createLucideIcon = (iconName, iconNode) => {
27382
27382
  Component.displayName = `${iconName}`;
27383
27383
  return Component;
27384
27384
  };
27385
+ /**
27386
+ * @license lucide-react v0.468.0 - ISC
27387
+ *
27388
+ * This source code is licensed under the ISC license.
27389
+ * See the LICENSE file in the root directory of this source tree.
27390
+ */
27391
+ const MousePointer2 = createLucideIcon("MousePointer2", [
27392
+ [
27393
+ "path",
27394
+ {
27395
+ d: "M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",
27396
+ key: "edeuup"
27397
+ }
27398
+ ]
27399
+ ]);
27385
27400
  export {
27386
27401
  Anchor as A,
27387
27402
  Content as C,
27388
27403
  DismissableLayer as D,
27389
- OVERLAY_LAYER as O,
27404
+ MousePointer2 as M,
27405
+ OVERLAY_LAYER_INDEX as O,
27390
27406
  Presence as P,
27391
27407
  Replayer as R,
27392
27408
  Slot as S,
@@ -27394,7 +27410,7 @@ export {
27394
27410
  cn as a,
27395
27411
  usePortalContainer as b,
27396
27412
  createLucideIcon as c,
27397
- OVERLAY_LAYER_INDEX as d,
27413
+ OVERLAY_LAYER as d,
27398
27414
  Primitive as e,
27399
27415
  composeEventHandlers as f,
27400
27416
  useDismissableLayerSurface as g,
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
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";
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, d as OVERLAY_LAYER, s as stopEscapePropagation } from "./mouse-pointer-2-BR00y3ir.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
  /** 상세 조회한 이슈. */
@@ -227,8 +235,6 @@ export interface HeadlessSessionReplayState {
227
235
  }
228
236
 
229
237
  export interface HeadlessSnapshot {
230
- /** 익스텐션이 이 페이지의 런타임을 소유 중인가. true 면 SDK 는 아무것도 띄우지 않는다. */
231
- readonly extensionActive: boolean;
232
238
  readonly phase: HeadlessPhase;
233
239
  readonly auth: HeadlessAuthState;
234
240
  readonly issues: readonly IssueStickerSummary[];
@@ -277,7 +283,7 @@ export interface SubmitDraftInput {
277
283
  }
278
284
 
279
285
  /**
280
- * createIssue에 전달하는 입력. 유저 액션 없이 코드 조건으로 이슈를 만들 때 씁니다.
286
+ * createIssue에 전달하는 입력. 유저 액션 없이 코드 조건으로 이슈를 만들 때 사용합니다.
281
287
  */
282
288
  export interface CreateIssueInput extends SubmitDraftInput {
283
289
  /** 이슈를 붙일 요소. 기본값은 `document.body`(문서 좌상단). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "issue-sticker",
3
- "version": "0.5.0",
3
+ "version": "0.7.0",
4
4
  "description": "IssueSticker SDK - Visual bug tracking widget for web applications",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "scripts": {
43
43
  "dev": "npm run dev:localdev",
44
- "dev:demo": "concurrently -k -n typecheck,bundle,page -c yellow,cyan,magenta \"npm:tsc:watch\" \"npm:build:demo:watch\" \"npm:serve:demo\"",
44
+ "dev:demo": "concurrently -k -n typecheck,bundle -c yellow,cyan \"npm:tsc:watch\" \"npm:build:demo:watch\"",
45
45
  "dev:localdev": "vite --host 0.0.0.0 --port 4173 --mode localdev",
46
46
  "build": "vite build --config vite.subpath.config.ts --mode production",
47
47
  "build:dev": "vite build --config vite.subpath.config.ts --mode development",
@@ -52,7 +52,6 @@
52
52
  "package": "npm run build:prod && npm pack",
53
53
  "package:dev": "npm run build:dev && npm pack",
54
54
  "package:local": "npm run build:local && npm pack",
55
- "serve:demo": "vite --host 0.0.0.0 --port 4174 --mode demo",
56
55
  "serve:localdev": "vite --host 0.0.0.0 --port 4173 --mode localdev",
57
56
  "preview": "vite preview",
58
57
  "lint": "cd ../.. && eslint packages/sdk --ext .ts,.tsx,.js,.jsx",