Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wistia/wistia-player

Package Overview
Dependencies
Maintainers
0
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wistia/wistia-player - npm Package Compare versions

Comparing version 0.0.73 to 0.0.74

14

dist/types/embeds/carousel/WistiaCarousel.d.ts

@@ -1,2 +0,2 @@

import { CarouselColorPalette, CarouselMediaType, CarouselPlayerEmbedOptions, CarouselPosition } from '../../types/carousel.ts';
import { CarouselColorPalette, CarouselMediaType, CarouselPlayerEmbedOptions, CarouselPosition, EndPlaylistBehavior } from '../../types/carousel.ts';
import { WistiaPlayer } from '../wistiaPlayer/WistiaPlayer.tsx';

@@ -37,6 +37,6 @@ import { PlayerTransitionType } from '../../types/player-api-types.ts';

static get observedAttributes(): string[];
get autoAdvance(): 'false' | 'true';
set autoAdvance(value: string);
get backgroundColor(): string | undefined;
set backgroundColor(value: string);
get borderRadius(): number;
set borderRadius(value: unknown);
get channelId(): string | undefined;

@@ -46,2 +46,4 @@ set channelId(value: string);

set embedHost(value: string);
get endBehavior(): EndPlaylistBehavior;
set endBehavior(value: unknown);
get isHidden(): boolean;

@@ -57,6 +59,4 @@ set isHidden(value: unknown);

get playerDomId(): string | null | undefined;
get shouldAutoPlay(): 'false' | 'true';
set shouldAutoPlay(value: string);
get shouldLoop(): 'false' | 'true';
set shouldLoop(value: unknown);
get roundedCarousel(): number;
set roundedCarousel(value: unknown);
get transition(): PlayerTransitionType;

@@ -63,0 +63,0 @@ readonly getWistiaPlayer: () => Promise<WistiaPlayer>;

import { CustomerLogoPluginConfig } from '../../types/plugins.ts';
import { CarouselPosition } from '../../types/carousel.ts';
import { CarouselPosition, EndPlaylistBehavior } from '../../types/carousel.ts';
import { WistiaPlayer } from '../wistiaPlayer/WistiaPlayer.tsx';

@@ -32,10 +32,20 @@ import { WistiaCarousel } from '../carousel/WistiaCarousel.tsx';

static get observedAttributes(): string[];
get borderRadius(): number | undefined;
set borderRadius(value: unknown);
get autoAdvance(): 'false' | 'true';
set autoAdvance(value: string);
get bigPlayButton(): 'false' | 'true';
set bigPlayButton(value: unknown);
get captionsOnByDefault(): 'false' | 'true';
set captionsOnByDefault(value: unknown);
get carouselBackgroundColor(): string;
set carouselBackgroundColor(value: string | null | undefined);
get carouselControl(): 'false' | 'true';
set carouselControl(value: unknown);
get carouselPosition(): CarouselPosition;
set carouselPosition(value: string | undefined);
get carouselVisibleOnLoad(): 'false' | 'true';
set carouselVisibleOnLoad(value: unknown);
get channelId(): string;
set channelId(value: string);
get dockCarousel(): string | undefined;
set dockCarousel(value: unknown);
get doNotTrack(): 'false' | 'true';

@@ -45,22 +55,12 @@ set doNotTrack(value: unknown);

set embedHost(value: string);
get endPlaylistBehavior(): EndPlaylistBehavior;
set endPlaylistBehavior(value: unknown);
get id(): string;
set id(value: string);
get isCarouselDocked(): string | undefined;
set isCarouselDocked(value: unknown);
get playerColor(): string | undefined;
set playerColor(value: string);
get shouldAutoPlay(): 'false' | 'true';
set shouldAutoPlay(value: string);
get shouldLoop(): 'false' | 'true';
set shouldLoop(value: unknown);
get shouldShowBigPlayButton(): 'false' | 'true';
set shouldShowBigPlayButton(value: unknown);
get shouldShowCaptionsByDefault(): 'false' | 'true';
set shouldShowCaptionsByDefault(value: unknown);
get shouldShowCarouselButton(): 'false' | 'true';
set shouldShowCarouselButton(value: unknown);
get shouldShowCarouselControlInitially(): 'false' | 'true';
set shouldShowCarouselControlInitially(value: unknown);
get shouldShowWistiaLogo(): 'false' | 'true';
set shouldShowWistiaLogo(value: unknown);
get roundedPlaylist(): number | undefined;
set roundedPlaylist(value: unknown);
get wistiaLogoControl(): 'false' | 'true';
set wistiaLogoControl(value: unknown);
/**

@@ -67,0 +67,0 @@ * Set up a logo overlay that will appear for all media in the playlist

import { Nilable } from '@wistia/type-guards';
import { EndPlaylistBehavior } from '../../../types/carousel.ts';
import { EmbedOptions, PlayerTransitionType } from '../../../types/player-api-types.ts';

@@ -22,5 +23,5 @@ import { WistiaPlayer } from '../../wistiaPlayer/WistiaPlayer.tsx';

export type PlaylistOptions = {
autoAdvance?: boolean;
endBehavior?: EndPlaylistBehavior;
isInsidePlayerControl?: boolean;
shouldAutoPlay?: boolean;
shouldLoop?: boolean;
source: PlaylistMethodsDataSource;

@@ -35,3 +36,5 @@ startIndex?: number;

readonly sourceIdentifier: string | undefined;
private _autoAdvance;
private readonly _embedHost;
private _endBehavior;
private readonly _isInsidePlayerControl;

@@ -41,4 +44,2 @@ private readonly _lastMediaIndex;

private readonly _player;
private _shouldAutoPlay;
private _shouldLoop;
private readonly _transition;

@@ -54,4 +55,4 @@ constructor(orderedPlaylistMedias: PlaylistMedia[], wistiaPlayer: WistiaPlayer, options: PlaylistOptions, embedHost: Nilable<string>);

removePlayerEndedListener(): void;
setShouldAutoPlay(value: boolean): void;
setShouldLoop(value: boolean): void;
setAutoAdvance(value: boolean): void;
setEndBehavior(value: EndPlaylistBehavior): void;
private _enqueueMedia;

@@ -58,0 +59,0 @@ private _getCachedMediaDataAsPlaylistMedia;

@@ -22,21 +22,28 @@ import { CustomerLogoPlacementOption, EmbedOptions } from './player-api-types.ts';

export type CarouselPlayerEmbedOptions = Pick<EmbedOptions, 'aspect' | 'bigPlayButton' | 'playerColor' | 'plugin'>;
export type EndPlaylistBehavior = 'default' | 'no-loop' | 'reset';
export type EndPlaylistBehaviorFromServer = 'default' | 'no_loop' | 'reset';
type CarouselPlaylistEmbedOptions = CarouselPlayerEmbedOptions & {
borderRadius?: string;
autoAdvance?: boolean;
bigPlayButton?: boolean;
captionsOnByDefault?: boolean;
carouselBackgroundColor?: string;
carouselControl?: boolean;
carouselPosition?: CarouselPosition;
carouselVisibleOnLoad?: boolean;
customerLogoPluginConfig?: CustomerLogoPluginConfig;
isCarouselDocked?: boolean;
shouldAutoPlay?: boolean;
shouldLoop?: boolean;
shouldShowBigPlayButton?: boolean;
shouldShowCaptionsByDefault?: boolean;
shouldShowCarouselButton?: boolean;
shouldShowCarouselControlInitially?: boolean;
shouldShowWistiaLogo?: boolean;
dockCarousel?: boolean;
endPlaylistBehavior?: EndPlaylistBehavior;
roundedPlaylist?: string;
wistiaLogoControl?: boolean;
};
type CarouselPlaylistEmbedOptionsFromServer = {
border_radius?: string;
auto_advance?: boolean;
big_play_button?: boolean;
captions_on_by_default?: boolean;
carousel_background_color?: string;
carousel_control?: boolean;
carousel_position?: CarouselPosition;
is_carousel_docked?: boolean;
carousel_visible_on_load?: boolean;
dock_carousel?: boolean;
end_playlist_behavior?: EndPlaylistBehaviorFromServer;
player_color?: string;

@@ -48,9 +55,4 @@ player_logo_enabled: 'false' | 'true';

player_logo_url?: string;
should_auto_play?: boolean;
should_loop?: boolean;
should_show_big_play_button?: boolean;
should_show_captions_by_default?: boolean;
should_show_carousel_button?: boolean;
should_show_carousel_control_initially?: boolean;
should_show_wistia_logo?: boolean;
rounded_playlist?: string;
wistia_logo_control?: boolean;
};

@@ -57,0 +59,0 @@ export type CarouselData = {

@@ -8,6 +8,6 @@ import { Nilable } from '@wistia/type-guards';

isVisible: boolean;
setCarouselBorderRadius: (value: number) => void;
setAutoAdvance: (value: string) => void;
setCarouselPreviewBackgroundColor: (color: Nilable<string>) => void;
setShouldAutoPlay: (value: string) => void;
setShouldLoop: (value: string) => void;
setEndBehavior: (value: string) => void;
setRoundedCarousel: (value: number) => void;
showCarousel: () => void;

@@ -14,0 +14,0 @@ toggleVisibility: () => void;

import { ChangeSet } from '../external/customizePreview/ChangeSet.js';
import { CarouselPosition } from './carousel.ts';
import { CarouselPosition, EndPlaylistBehavior } from './carousel.ts';
import { CustomerLogoPlacementOption } from './player-api-types.ts';

@@ -83,9 +83,9 @@ type BasePluginConfig = {

export type CarouselPluginConfig = BasePluginConfig & {
autoAdvance?: boolean;
backgroundColor?: string;
borderRadius?: number;
carouselPosition?: CarouselPosition;
channelId: string;
shouldAutoPlay?: boolean;
shouldLoop?: boolean;
shouldShowCarouselButton?: boolean;
endBehavior?: EndPlaylistBehavior;
isCarouselButtonVisible?: boolean;
roundedCarousel?: number;
};

@@ -92,0 +92,0 @@ export type CarouselPluginInstance = BasePluginInstance<CarouselPluginConfig>;

{
"name": "@wistia/wistia-player",
"version": "0.0.73",
"version": "0.0.74",
"packageManager": "yarn@4.2.2",

@@ -54,3 +54,3 @@ "description": "An embeddable wistia-player web component and React wrapper to add responsive, lightweight, and SEO-friendly videos to your site.",

"read-package-json": "^7.0.1",
"typescript": "5.6.2",
"typescript": "5.7.2",
"webpack": "^5.95.0",

@@ -57,0 +57,0 @@ "webpack-cli": "^5.1.4",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc