@gradio/video 0.12.0 → 0.13.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,31 @@
1
1
  # @gradio/video
2
2
 
3
+ ## 0.13.0
4
+
5
+ ### Features
6
+
7
+ - [#10192](https://github.com/gradio-app/gradio/pull/10192) [`4fc7fb7`](https://github.com/gradio-app/gradio/commit/4fc7fb777c42af537e4af612423fa44029657d41) - Ensure components can be remounted with their previous data. Thanks @pngwn!
8
+
9
+ ### Dependency updates
10
+
11
+ - @gradio/atoms@0.13.0
12
+ - @gradio/utils@0.10.0
13
+ - @gradio/upload@0.14.4
14
+ - @gradio/client@1.9.0
15
+ - @gradio/icons@0.9.0
16
+ - @gradio/statustracker@0.10.0
17
+ - @gradio/wasm@0.16.0
18
+ - @gradio/image@0.20.0
19
+
20
+ ## 0.12.1
21
+
22
+ ### Dependency updates
23
+
24
+ - @gradio/statustracker@0.9.7
25
+ - @gradio/upload@0.14.3
26
+ - @gradio/atoms@0.12.0
27
+ - @gradio/image@0.19.0
28
+
3
29
  ## 0.12.0
4
30
 
5
31
  ### Features
@@ -69,6 +69,10 @@ const handle_trim_video = async (videoBlob) => {
69
69
  function open_full_screen() {
70
70
  video.requestFullscreen();
71
71
  }
72
+ $:
73
+ time = time || 0;
74
+ $:
75
+ duration = duration || 0;
72
76
  </script>
73
77
 
74
78
  <div class="wrap">
@@ -20,6 +20,7 @@ export let show_download_button = true;
20
20
  export let loop;
21
21
  export let i18n;
22
22
  export let upload;
23
+ export let display_icon_button_wrapper_top_corner = false;
23
24
  let old_value = null;
24
25
  let old_subtitle = null;
25
26
  const dispatch = createEventDispatcher();
@@ -66,7 +67,9 @@ afterUpdate(async () => {
66
67
  />
67
68
  {/key}
68
69
  <div data-testid="download-div">
69
- <IconButtonWrapper>
70
+ <IconButtonWrapper
71
+ display_top_corner={display_icon_button_wrapper_top_corner}
72
+ >
70
73
  {#if show_download_button}
71
74
  <DownloadLink
72
75
  href={value.is_stream
@@ -13,6 +13,7 @@ declare const __propDef: {
13
13
  loop: boolean;
14
14
  i18n: I18nFormatter;
15
15
  upload: Client["upload"];
16
+ display_icon_button_wrapper_top_corner?: boolean | undefined;
16
17
  };
17
18
  events: {
18
19
  play: CustomEvent<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/video",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
@@ -11,14 +11,14 @@
11
11
  "@ffmpeg/util": "^0.12.1",
12
12
  "hls.js": "^1.5.13",
13
13
  "mrmime": "^2.0.0",
14
- "@gradio/atoms": "^0.11.2",
15
- "@gradio/client": "^1.8.0",
16
- "@gradio/image": "^0.18.0",
17
- "@gradio/icons": "^0.8.1",
18
- "@gradio/statustracker": "^0.9.6",
19
- "@gradio/upload": "^0.14.2",
20
- "@gradio/utils": "^0.9.0",
21
- "@gradio/wasm": "^0.15.0"
14
+ "@gradio/atoms": "^0.13.0",
15
+ "@gradio/icons": "^0.9.0",
16
+ "@gradio/client": "^1.9.0",
17
+ "@gradio/statustracker": "^0.10.0",
18
+ "@gradio/utils": "^0.10.0",
19
+ "@gradio/upload": "^0.14.4",
20
+ "@gradio/image": "^0.20.0",
21
+ "@gradio/wasm": "^0.16.0"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@gradio/preview": "^0.13.0"
@@ -97,6 +97,9 @@
97
97
  function open_full_screen(): void {
98
98
  video.requestFullscreen();
99
99
  }
100
+
101
+ $: time = time || 0;
102
+ $: duration = duration || 0;
100
103
  </script>
101
104
 
102
105
  <div class="wrap">
@@ -25,6 +25,7 @@
25
25
  export let loop: boolean;
26
26
  export let i18n: I18nFormatter;
27
27
  export let upload: Client["upload"];
28
+ export let display_icon_button_wrapper_top_corner = false;
28
29
 
29
30
  let old_value: FileData | null = null;
30
31
  let old_subtitle: FileData | null = null;
@@ -86,7 +87,9 @@
86
87
  />
87
88
  {/key}
88
89
  <div data-testid="download-div">
89
- <IconButtonWrapper>
90
+ <IconButtonWrapper
91
+ display_top_corner={display_icon_button_wrapper_top_corner}
92
+ >
90
93
  {#if show_download_button}
91
94
  <DownloadLink
92
95
  href={value.is_stream