@coxwave/tap-kit-types 0.0.43 → 0.0.45
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.
- package/dist/index.d.ts +23 -3
- package/package.json +5 -8
- package/index.ts +0 -39
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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.
|
|
3
|
+
"version": "0.0.45",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Shared TypeScript types for TapKit SDK packages",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -19,16 +19,13 @@
|
|
|
19
19
|
"author": "",
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"files": [
|
|
22
|
-
"dist"
|
|
23
|
-
"index.ts"
|
|
22
|
+
"dist"
|
|
24
23
|
],
|
|
25
|
-
"dependencies": {
|
|
26
|
-
"@coxwave/tap-messages": "0.0.1"
|
|
27
|
-
},
|
|
28
24
|
"devDependencies": {
|
|
29
25
|
"tsup": "^8.5.0",
|
|
30
|
-
"@coxwave/config-
|
|
31
|
-
"@coxwave/
|
|
26
|
+
"@coxwave/config-typescript": "1.0.0",
|
|
27
|
+
"@coxwave/tap-messages": "0.0.1",
|
|
28
|
+
"@coxwave/config-eslint": "1.0.0"
|
|
32
29
|
},
|
|
33
30
|
"scripts": {
|
|
34
31
|
"build": "tsup",
|
package/index.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @coxwave/tap-kit-types
|
|
3
|
-
* Shared TypeScript types for TapKit SDK packages
|
|
4
|
-
*
|
|
5
|
-
* This package serves as the single source of truth for all TapKit types,
|
|
6
|
-
* used by both @coxwave/tap-sdk (npm wrapper) and @coxwave/tap-kit-core (CDN implementation).
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
// Re-exports from tap-messages
|
|
10
|
-
export type { AlarmMessageInstanceType, AlarmType } from "@coxwave/tap-messages";
|
|
11
|
-
|
|
12
|
-
// Configuration types
|
|
13
|
-
export type { TapKitConfig, TapKitRuntimeConfig, TapKitConfigOptions, TapKitInitParams, Course } from "./src/config.js";
|
|
14
|
-
|
|
15
|
-
// Styling types
|
|
16
|
-
export type { ContainerStyle, PositionType, CustomStyles } from "./src/styles.js";
|
|
17
|
-
|
|
18
|
-
// Event types
|
|
19
|
-
export type { SeekTimelineParamsType, ShortcutKeyPropertiesType, ContainerVisibility } from "./src/events.js";
|
|
20
|
-
|
|
21
|
-
// Instance types
|
|
22
|
-
export type { TapKitInstance, TapKitConstructor, TAPKIT_CONFIG_SYMBOL } from "./src/instance.js";
|
|
23
|
-
|
|
24
|
-
// Error types and classes
|
|
25
|
-
export type { TapErrorOptions } from "./src/errors.js";
|
|
26
|
-
|
|
27
|
-
export {
|
|
28
|
-
TAP_ERROR_MARKER,
|
|
29
|
-
TapKitError,
|
|
30
|
-
TapKitInitializationError,
|
|
31
|
-
TapKitMessageError,
|
|
32
|
-
TapKitConfigurationError,
|
|
33
|
-
TapKitLoaderError,
|
|
34
|
-
TapKitIframeError,
|
|
35
|
-
InitializationError,
|
|
36
|
-
} from "./src/errors.js";
|
|
37
|
-
|
|
38
|
-
// Global type definitions (Window, requestIdleCallback)
|
|
39
|
-
import "./src/global.d.js";
|