@coxwave/tap-kit-types 2.9.0 → 2.9.1

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 CHANGED
@@ -2955,12 +2955,7 @@ interface TapButtonAttributes {
2955
2955
  * Button position on screen (only applies when floating is true)
2956
2956
  * @default "bottom-right"
2957
2957
  */
2958
- position?:
2959
- | "bottom-right"
2960
- | "bottom-left"
2961
- | "top-right"
2962
- | "top-left"
2963
- | "custom";
2958
+ position?: "bottom-right" | "bottom-left" | "top-right" | "top-left" | "custom";
2964
2959
 
2965
2960
  /**
2966
2961
  * Button size preset
@@ -3283,12 +3278,8 @@ interface TapHtmlViewerAttributes {
3283
3278
  */
3284
3279
  interface EventManager {
3285
3280
  seekTimeline: (params: SeekTimelineParamsType) => void;
3286
- onTimelineSeek: (
3287
- callback: (clipPlayHead: number, clipId: string) => void,
3288
- ) => () => void;
3289
- onAlarmFadeIn: (
3290
- handler: (messageInfo: AlarmMessageInstanceType) => void,
3291
- ) => () => void;
3281
+ onTimelineSeek: (callback: (clipPlayHead: number, clipId: string) => void) => () => void;
3282
+ onAlarmFadeIn: (handler: (messageInfo: AlarmMessageInstanceType) => void) => () => void;
3292
3283
  }
3293
3284
 
3294
3285
  /**
@@ -3451,9 +3442,7 @@ interface TapKitElement extends HTMLElement {
3451
3442
  * @param course - Partial course information (courseId and clipId required)
3452
3443
  * @example kit.setCourse({ courseId: 'new', clipId: 'new-1' })
3453
3444
  */
3454
- setCourse(
3455
- course: Partial<Course> & { courseId: string; clipId: string },
3456
- ): void;
3445
+ setCourse(course: Partial<Course> & { courseId: string; clipId: string }): void;
3457
3446
 
3458
3447
  // ===== Delegate Properties (Read-only) =====
3459
3448
 
@@ -3924,10 +3913,7 @@ declare global {
3924
3913
  timeRemaining(): number;
3925
3914
  }
3926
3915
 
3927
- function requestIdleCallback(
3928
- callback: (deadline: IdleDeadline) => void,
3929
- options?: { timeout: number },
3930
- ): number;
3916
+ function requestIdleCallback(callback: (deadline: IdleDeadline) => void, options?: { timeout: number }): number;
3931
3917
 
3932
3918
  function cancelIdleCallback(handle: number): void;
3933
3919
  }
package/dist/index.js CHANGED
@@ -149,13 +149,9 @@ var MaterialViewerError = class _MaterialViewerError extends TapKitError {
149
149
  return error;
150
150
  }
151
151
  if (error && typeof error === "object" && TAP_ERROR_MARKER in error && error[TAP_ERROR_MARKER] === "MaterialViewerError") {
152
- const err = new _MaterialViewerError(
153
- error.message,
154
- error.materialId || "unknown",
155
- {
156
- code: error.code
157
- }
158
- );
152
+ const err = new _MaterialViewerError(error.message, error.materialId || "unknown", {
153
+ code: error.code
154
+ });
159
155
  err.stack = error.stack;
160
156
  return err;
161
157
  }