@coxwave/tap-kit-types 0.0.43 → 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 +23 -3
  2. package/package.json +2 -4
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
@@ -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.43",
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",
@@ -22,12 +22,10 @@
22
22
  "dist",
23
23
  "index.ts"
24
24
  ],
25
- "dependencies": {
26
- "@coxwave/tap-messages": "0.0.1"
27
- },
28
25
  "devDependencies": {
29
26
  "tsup": "^8.5.0",
30
27
  "@coxwave/config-eslint": "1.0.0",
28
+ "@coxwave/tap-messages": "0.0.1",
31
29
  "@coxwave/config-typescript": "1.0.0"
32
30
  },
33
31
  "scripts": {