@apps-in-toss/web-bridge 0.0.0-dev.1764816865438 → 0.0.0-dev.1765876894045

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.
@@ -1,7 +1,7 @@
1
1
  export type Primitive = string | number | boolean | null | undefined | symbol;
2
2
  export interface EventLogParams {
3
3
  log_name: string;
4
- log_type: "debug" | "info" | "warn" | "error" | "screen" | "impression" | "click";
4
+ log_type: "debug" | "info" | "warn" | "error" | "event" | "screen" | "impression" | "click";
5
5
  params: Record<string, Primitive>;
6
6
  }
7
7
  /**
@@ -15,7 +15,7 @@ export interface EventLogParams {
15
15
  *
16
16
  * @param {Object} params 로그 기록에 필요한 매개변수 객체예요.
17
17
  * @param {string} params.log_name 로그의 이름이에요.
18
- * @param {'debug' | 'info' | 'warn' | 'error' | 'screen' | 'impression' | 'click'} params.log_type 로그의 유형이에요.
18
+ * @param {'debug' | 'info' | 'warn' | 'error' | 'event' | 'screen' | 'impression' | 'click'} params.log_type 로그의 유형이에요.
19
19
  * @param {Record<string, Primitive>} params.params 로그에 포함할 추가 매개변수 객체예요.
20
20
  *
21
21
  * @returns {Promise<void>} 로그 기록이 완료되면 해결되는 Promise예요.
package/built/index.cjs CHANGED
@@ -1091,7 +1091,7 @@ function supertossWeb(uri) {
1091
1091
  }
1092
1092
 
1093
1093
  // src/toss-ad/scriptLoader.ts
1094
- var DEFAULT_SDK_URL = "https://static.toss.im/ads/sdk/toss-ads-space-kit-1.0.0.js";
1094
+ var DEFAULT_SDK_URL = "https://static.toss.im/ads/sdk/toss-ads-space-kit-1.3.0.js";
1095
1095
  var DEFAULT_TIMEOUT_MS = 15e3;
1096
1096
  var pendingLoad = null;
1097
1097
  function getAdsSdk() {
@@ -1205,7 +1205,11 @@ function isAdResponse(payload) {
1205
1205
  function createCustomAdFetcher() {
1206
1206
  return async (_endpoint, request) => {
1207
1207
  try {
1208
- const raw = await fetchTossAdPromise({ adGroupId: request.spaceUnitId });
1208
+ const raw = await fetchTossAdPromise({
1209
+ adGroupId: request.spaceUnitId,
1210
+ sdkId: "108",
1211
+ availableStyleIds: ["1", "2"]
1212
+ });
1209
1213
  return normalizeApiResponse(raw);
1210
1214
  } catch (error) {
1211
1215
  return {
package/built/index.d.cts CHANGED
@@ -821,13 +821,7 @@ declare function isMinVersionSupported(minVersions: {
821
821
  ios: `${number}.${number}.${number}` | 'always' | 'never';
822
822
  }): boolean;
823
823
 
824
- type AppsInTossEvent = {
825
- entryMessageExited: {
826
- onEvent: () => void;
827
- onError?: (error: Error) => void;
828
- options: undefined;
829
- };
830
- };
824
+ type AppsInTossEvent = {};
831
825
  declare const appsInTossEvent: {
832
826
  addEventListener: <K extends keyof AppsInTossEvent>(event: K, { onEvent, onError, options, }: {
833
827
  onEvent: AppsInTossEvent[K]["onEvent"];
package/built/index.d.ts CHANGED
@@ -821,13 +821,7 @@ declare function isMinVersionSupported(minVersions: {
821
821
  ios: `${number}.${number}.${number}` | 'always' | 'never';
822
822
  }): boolean;
823
823
 
824
- type AppsInTossEvent = {
825
- entryMessageExited: {
826
- onEvent: () => void;
827
- onError?: (error: Error) => void;
828
- options: undefined;
829
- };
830
- };
824
+ type AppsInTossEvent = {};
831
825
  declare const appsInTossEvent: {
832
826
  addEventListener: <K extends keyof AppsInTossEvent>(event: K, { onEvent, onError, options, }: {
833
827
  onEvent: AppsInTossEvent[K]["onEvent"];
package/built/index.js CHANGED
@@ -1050,7 +1050,7 @@ function supertossWeb(uri) {
1050
1050
  }
1051
1051
 
1052
1052
  // src/toss-ad/scriptLoader.ts
1053
- var DEFAULT_SDK_URL = "https://static.toss.im/ads/sdk/toss-ads-space-kit-1.0.0.js";
1053
+ var DEFAULT_SDK_URL = "https://static.toss.im/ads/sdk/toss-ads-space-kit-1.3.0.js";
1054
1054
  var DEFAULT_TIMEOUT_MS = 15e3;
1055
1055
  var pendingLoad = null;
1056
1056
  function getAdsSdk() {
@@ -1164,7 +1164,11 @@ function isAdResponse(payload) {
1164
1164
  function createCustomAdFetcher() {
1165
1165
  return async (_endpoint, request) => {
1166
1166
  try {
1167
- const raw = await fetchTossAdPromise({ adGroupId: request.spaceUnitId });
1167
+ const raw = await fetchTossAdPromise({
1168
+ adGroupId: request.spaceUnitId,
1169
+ sdkId: "108",
1170
+ availableStyleIds: ["1", "2"]
1171
+ });
1168
1172
  return normalizeApiResponse(raw);
1169
1173
  } catch (error) {
1170
1174
  return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apps-in-toss/web-bridge",
3
3
  "type": "module",
4
- "version": "0.0.0-dev.1764816865438",
4
+ "version": "0.0.0-dev.1765876894045",
5
5
  "description": "Web Bridge for Apps In Toss",
6
6
  "scripts": {
7
7
  "prepack": "yarn build",
@@ -28,11 +28,11 @@
28
28
  "built"
29
29
  ],
30
30
  "dependencies": {
31
- "@apps-in-toss/types": "0.0.0-dev.1764816865438"
31
+ "@apps-in-toss/types": "0.0.0-dev.1765876894045"
32
32
  },
33
33
  "devDependencies": {
34
- "@apps-in-toss/bridge-core": "0.0.0-dev.1764816865438",
35
- "@apps-in-toss/framework": "0.0.0-dev.1764816865438",
34
+ "@apps-in-toss/bridge-core": "0.0.0-dev.1765876894045",
35
+ "@apps-in-toss/framework": "0.0.0-dev.1765876894045",
36
36
  "@swc/core": "^1.12.7",
37
37
  "picocolors": "^1.1.1",
38
38
  "ts-morph": "^26.0.0",
@@ -46,5 +46,5 @@
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "gitHead": "d72f564708d831e445bf0ae4e1b9f8cce536dc16"
49
+ "gitHead": "90c26c9a29c75e0f88fe7cc78f42b91455a4aa83"
50
50
  }