@wistia/wistia-player 0.7.32 → 0.8.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @wistia/wistia-player
2
2
 
3
+ ## 0.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - fe34e93: After a viewer unlocks a password-protected video, the player now includes the password, or the channel's credentials for videos in a password-protected channel, when it loads captions. Upgrade to this version before captions for password-protected videos start requiring the password, or captions will stop loading for those videos on older versions.
8
+
9
+ ### Patch Changes
10
+
11
+ - 48c27a7: Compact annotations give their images more room while keeping them centered. Compact and large annotations have tighter spacing between the heading and supporting detail, and large annotations have more space below the text.
12
+
13
+ ## 0.7.33
14
+
15
+ ### Patch Changes
16
+
17
+ - 3a69683: Emoji reactions can float over the video, or any element, with a `<wistia-emoji-reactions-overlay>` named in the bar's `overlay-dom-id`. Clicks pass through it, and `avoid` keeps reactions clear of an area.
18
+ - ca97130: When the viewer prefers reduced motion, emoji reactions fade in and out in place, on the reaction bar and in its overlay, instead of being hidden. The reaction tray and fan also fade open and closed instead of sliding or springing.
19
+ - ccf27f8: Reactions passed to the emoji reactions bar's `addReactions` now stream in over about a second instead of appearing all at once, in the bar or in its overlay. No more than `maxVisibleReactions` floaters are on screen at a time; past that, the rest are dropped, and a burst that is cut down keeps a share of each emoji.
20
+
3
21
  ## 0.7.32
4
22
 
5
23
  ### Patch Changes
@@ -3,15 +3,19 @@ export type Reaction = {
3
3
  key: string;
4
4
  };
5
5
  export type Floater = {
6
+ delayMs: number;
6
7
  driftFactor: number;
7
8
  id: number;
8
9
  key: string;
9
10
  riseFactor: number;
10
11
  rotationFactor: number;
11
12
  scaleFactor: number;
12
- x: number;
13
- y: number;
13
+ x: string;
14
+ y: string;
14
15
  };
16
+ export declare const EMOJI_REACTIONS_OVERLAY_PLACEMENTS: readonly ["bottom", "top"];
17
+ export type EmojiReactionsOverlayPlacement = (typeof EMOJI_REACTIONS_OVERLAY_PLACEMENTS)[number];
18
+ export declare const DEFAULT_OVERLAY_PLACEMENT: EmojiReactionsOverlayPlacement;
15
19
  export type ReactionTapDetail = {
16
20
  key: string;
17
21
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/embeds/emojiReactions/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAItD,MAAM,MAAM,OAAO,GAAG;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhD,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,iBAAiB,CAAC,CAAC;AAE9D,eAAO,MAAM,kBAAkB,iBAAiB,CAAC;AAEjD,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAE5C,eAAO,MAAM,kBAAkB,EAAE,SAAS,MAAM,EAAyC,CAAC;AAE1F,eAAO,MAAM,SAAS,IAAI,CAAC;AAE3B,eAAO,MAAM,aAAa,IAAI,CAAC;AAE/B,eAAO,MAAM,6BAA6B,KAAK,CAAC;AAEhD,eAAO,MAAM,uBAAuB,4CAA6C,CAAC;AAElF,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E,eAAO,MAAM,cAAc,EAAE,oBAAmC,CAAC;AAEjE,eAAO,MAAM,+BAA+B,0CAA2C,CAAC;AAExF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MAAM,kBAAkB,YAAY,CAAC;AAE5C,eAAO,MAAM,kBAAkB,EAAE,SAAS,MAAM,EAAyC,CAAC;AAE1F,eAAO,MAAM,SAAS,IAAI,CAAC;AAE3B,eAAO,MAAM,aAAa,IAAI,CAAC;AAE/B,eAAO,MAAM,6BAA6B,KAAK,CAAC;AAEhD,eAAO,MAAM,uBAAuB,4CAA6C,CAAC;AAElF,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E,eAAO,MAAM,cAAc,EAAE,oBAAmC,CAAC;AAEjE,eAAO,MAAM,+BAA+B,0CAA2C,CAAC;AAExF,MAAM,MAAM,2BAA2B,GAAG,CAAC,OAAO,+BAA+B,CAAC,CAAC,MAAM,CAAC,CAAC;AAG3F,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAC3C,2BAA2B,EAC3B,OAAO,CAAC,oBAAoB,EAAE,KAAK,CAAC,CAMrC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,eAAe,EAAE,MAAM,CAAC;IACxB,0BAA0B,EAAE,MAAM,CAAC;IACnC,oBAAoB,EAAE,MAAM,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -8856,8 +8856,8 @@ const PROD_EMBED_HOST = 'embed.wistia.com';
8856
8856
  const PROD_SSL_EMBED_HOST = 'embed-ssl.wistia.com';
8857
8857
  const PROD_FASTLY_SSL_HOST = 'embed-fastly.wistia.com';
8858
8858
  const SSL_EMBED_HOST = "embed-ssl.wistia.com";
8859
- const TAGGED_VERSION = "0.7.32" || 0;
8860
- const CURRENT_SHA = "c014139e2b0142411cfdefe5129e87a46bac08c4" || 0;
8859
+ const TAGGED_VERSION = "0.8.0" || 0;
8860
+ const CURRENT_SHA = "c4dfb97c74cd43828ca1b66be73cc7c693ee8695" || 0;
8861
8861
  const DEFAULT_PROTOCOL = (() => {
8862
8862
  if (typeof window !== 'undefined' && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__/* .root */ .z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__/* .root */ .z.location) {
8863
8863
  return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__/* .root */ .z.location.protocol;