@coxwave/tap-kit-types 0.0.42 → 0.0.44

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +24 -4
  2. package/package.json +12 -15
package/dist/index.d.ts CHANGED
@@ -1,5 +1,25 @@
1
- import { ConfigUpdateMessage, AlarmMessageInstanceType } from '@coxwave/tap-messages';
2
- export { AlarmMessageInstanceType, AlarmType } from '@coxwave/tap-messages';
1
+ type AlarmType = "quiz" | "pingMessage" | "callToAction" | "hourSpent" | "default";
2
+ interface AlarmMessageInstanceType {
3
+ message: string;
4
+ question?: string;
5
+ pingMessageId?: string;
6
+ type: AlarmType;
7
+ priority: number;
8
+ }
9
+
10
+ interface ConfigUpdateMessage {
11
+ type: "config:update";
12
+ apiKey?: string;
13
+ hostOrigin?: string;
14
+ tapUrl?: string;
15
+ apiUrl?: string;
16
+ environment?: "dev" | "prod";
17
+ language?: "ko" | "en" | (string & {});
18
+ userId?: string;
19
+ courseId?: string;
20
+ clipId?: string;
21
+ clipPlayHead?: number;
22
+ }
3
23
 
4
24
  /**
5
25
  * Styling Types
@@ -104,7 +124,7 @@ declare const TAPKIT_CONFIG_SYMBOL: unique symbol;
104
124
  /** TapKit instance interface - shared by tap-kit-core and tap-sdk */
105
125
  interface TapKitInstance {
106
126
  events: {
107
- seekTimeline: (params: SeekTimelineParamsType) => Promise<void>;
127
+ seekTimeline: (params: SeekTimelineParamsType) => void;
108
128
  onTimelineSeek: (callback: (clipPlayHead: number, clipId: string) => void) => () => void;
109
129
  onChatOpened: (handler: () => void) => () => void;
110
130
  onChatClosed: (handler: () => void) => () => void;
@@ -208,4 +228,4 @@ declare global {
208
228
  function cancelIdleCallback(handle: number): void;
209
229
  }
210
230
 
211
- export { type ContainerStyle, type ContainerVisibility, type Course, type CustomStyles, TapKitInitializationError as InitializationError, type PositionType, type SeekTimelineParamsType, type ShortcutKeyPropertiesType, TAPKIT_CONFIG_SYMBOL, TAP_ERROR_MARKER, type TapErrorOptions, type TapKitConfig, type TapKitConfigOptions, TapKitConfigurationError, type TapKitConstructor, TapKitError, TapKitIframeError, type TapKitInitParams, TapKitInitializationError, type TapKitInstance, TapKitLoaderError, TapKitMessageError, type TapKitRuntimeConfig };
231
+ export { type AlarmMessageInstanceType, type AlarmType, type ContainerStyle, type ContainerVisibility, type Course, type CustomStyles, TapKitInitializationError as InitializationError, type PositionType, type SeekTimelineParamsType, type ShortcutKeyPropertiesType, TAPKIT_CONFIG_SYMBOL, TAP_ERROR_MARKER, type TapErrorOptions, type TapKitConfig, type TapKitConfigOptions, TapKitConfigurationError, type TapKitConstructor, TapKitError, TapKitIframeError, type TapKitInitParams, TapKitInitializationError, type TapKitInstance, TapKitLoaderError, TapKitMessageError, type TapKitRuntimeConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coxwave/tap-kit-types",
3
- "version": "0.0.42",
3
+ "version": "0.0.44",
4
4
  "type": "module",
5
5
  "description": "Shared TypeScript types for TapKit SDK packages",
6
6
  "main": "dist/index.js",
@@ -11,12 +11,6 @@
11
11
  "import": "./dist/index.js"
12
12
  }
13
13
  },
14
- "scripts": {
15
- "build": "tsup",
16
- "dev": "tsup --watch",
17
- "lint": "eslint .",
18
- "publish:npm": "./scripts/publish.sh"
19
- },
20
14
  "keywords": [
21
15
  "tapkit",
22
16
  "types",
@@ -28,13 +22,16 @@
28
22
  "dist",
29
23
  "index.ts"
30
24
  ],
31
- "peerDependencies": {
32
- "@coxwave/tap-messages": "^0.0.1"
33
- },
34
25
  "devDependencies": {
35
- "@coxwave/config-eslint": "workspace:*",
36
- "@coxwave/config-typescript": "workspace:*",
37
- "@coxwave/tap-messages": "workspace:*",
38
- "tsup": "^8.5.0"
26
+ "tsup": "^8.5.0",
27
+ "@coxwave/config-eslint": "1.0.0",
28
+ "@coxwave/tap-messages": "0.0.1",
29
+ "@coxwave/config-typescript": "1.0.0"
30
+ },
31
+ "scripts": {
32
+ "build": "tsup",
33
+ "dev": "tsup --watch",
34
+ "lint": "eslint .",
35
+ "publish:npm": "./scripts/publish.sh"
39
36
  }
40
- }
37
+ }