@depict-ai/portal-components 2.8.11 → 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
@@ -4,7 +4,7 @@ import { SearchFilter } from "@depict-ai/types/api/SearchResponse";
4
4
  import { Locale } from "@depict-ai/react-ui/locales/latest";
5
5
  import { ReactNode } from "react";
6
6
  import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
7
- export const version = "2.8.11";
7
+ export const version = "2.9.1";
8
8
  type TextOptions = {
9
9
  /** Enabled */
10
10
  enabled: boolean;
package/dist/main.js CHANGED
@@ -20,7 +20,7 @@ $parcel$export(module.exports, "ExpandingSection", () => $2214dc111b9e2866$expor
20
20
  $parcel$export(module.exports, "ReactLookCard", () => $35bab9ff48bfe404$export$48787da2a5568bc);
21
21
  $parcel$export(module.exports, "version", () => $0a017be3a74fcc94$export$83d89fbfd8236492);
22
22
  /*! Depict.ai portal components */ // This is where the actual source of your React stuff should live
23
- const $0a017be3a74fcc94$export$83d89fbfd8236492 = "2.8.11";
23
+ const $0a017be3a74fcc94$export$83d89fbfd8236492 = "2.9.1";
24
24
 
25
25
 
26
26
 
@@ -920,7 +920,6 @@ function $3375ddd88f77967d$var$Video(props) {
920
920
  return (()=>{
921
921
  var _el$20 = $3375ddd88f77967d$var$_tmpl$17();
922
922
  (0, $7jsgb$solidjsweb.use)((element)=>{
923
- element.disablePictureInPicture = true;
924
923
  (0, $7jsgb$solidjs.createEffect)(()=>{
925
924
  if ((cardIsVisible() || props.forceIsVisible_) && tabIsVisible() && !props.swipedPastVideo_) element.play().catch((e)=>(0, $7jsgb$depictaiutilisharedlatest.dwarn)("Error playing video", e));
926
925
  else element.pause();
@@ -930,6 +929,7 @@ function $3375ddd88f77967d$var$Video(props) {
930
929
  _el$20.playsInline = true;
931
930
  _el$20.loop = true;
932
931
  _el$20.muted = true;
932
+ (0, $7jsgb$solidjsweb.setAttribute)(_el$20, "disablepictureinpicture", true);
933
933
  (0, $7jsgb$solidjsweb.spread)(_el$20, (0, $7jsgb$solidjsweb.mergeProps)({
934
934
  get poster () {
935
935
  return props.poster_;
package/dist/module.js CHANGED
@@ -7,7 +7,7 @@ import {createContext as $2MCgq$createContext, createMemo as $2MCgq$createMemo,
7
7
  import {createPortal as $2MCgq$createPortal} from "react-dom";
8
8
 
9
9
  /*! Depict.ai portal components */ // This is where the actual source of your React stuff should live
10
- const $91c11b750e80ede3$export$83d89fbfd8236492 = "2.8.11";
10
+ const $91c11b750e80ede3$export$83d89fbfd8236492 = "2.9.1";
11
11
 
12
12
 
13
13
 
@@ -907,7 +907,6 @@ function $29535f590238371c$var$Video(props) {
907
907
  return (()=>{
908
908
  var _el$20 = $29535f590238371c$var$_tmpl$17();
909
909
  (0, $2MCgq$use)((element)=>{
910
- element.disablePictureInPicture = true;
911
910
  (0, $2MCgq$createEffect)(()=>{
912
911
  if ((cardIsVisible() || props.forceIsVisible_) && tabIsVisible() && !props.swipedPastVideo_) element.play().catch((e)=>(0, $2MCgq$dwarn)("Error playing video", e));
913
912
  else element.pause();
@@ -917,6 +916,7 @@ function $29535f590238371c$var$Video(props) {
917
916
  _el$20.playsInline = true;
918
917
  _el$20.loop = true;
919
918
  _el$20.muted = true;
919
+ (0, $2MCgq$setAttribute)(_el$20, "disablepictureinpicture", true);
920
920
  (0, $2MCgq$spread)(_el$20, (0, $2MCgq$mergeProps)({
921
921
  get poster () {
922
922
  return props.poster_;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/portal-components",
3
- "version": "2.8.11",
3
+ "version": "2.9.1",
4
4
  "packageManager": "yarn@3.2.2",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/main.js",
@@ -94,7 +94,7 @@
94
94
  "@types/node": "^18.11.11",
95
95
  "@types/react": "^18.0.26",
96
96
  "@types/react-dom": "^18.0.10",
97
- "babel-preset-solid": "^1.8.16",
97
+ "babel-preset-solid": "^1.9.3",
98
98
  "react": "^18.2.0",
99
99
  "react-dom": "^18.2.0",
100
100
  "ts-jest": "^29.0.5"
@@ -102,12 +102,12 @@
102
102
  "dependencies": {
103
103
  "@babel/runtime": "latest",
104
104
  "@babel/runtime-corejs3": "^7.22.6",
105
- "@depict-ai/plp-styling": "^4.5.1",
106
- "@depict-ai/react-ui": "^4.9.11",
107
- "@depict-ai/types": "^5.5.1",
108
- "@depict-ai/ui": "^4.9.9",
109
- "@depict-ai/utilishared": "^2.5.1",
105
+ "@depict-ai/plp-styling": "^4.6.0",
106
+ "@depict-ai/react-ui": "^4.10.1",
107
+ "@depict-ai/types": "^5.6.0",
108
+ "@depict-ai/ui": "^4.10.1",
109
+ "@depict-ai/utilishared": "^2.6.0",
110
110
  "parcel": "^2.10.3",
111
- "solid-js": "^1.8.16"
111
+ "solid-js": "^1.9.3"
112
112
  }
113
113
  }
@@ -925,8 +925,8 @@ function Video(props: {
925
925
  loop={true}
926
926
  muted={true}
927
927
  crossOrigin="anonymous"
928
+ disablepictureinpicture={true}
928
929
  ref={element => {
929
- element.disablePictureInPicture = true;
930
930
  createEffect(() => {
931
931
  if ((cardIsVisible() || props.forceIsVisible_) && tabIsVisible() && !props.swipedPastVideo_) {
932
932
  element.play().catch(e => dwarn("Error playing video", e));