hive-react-kit 0.9.9 → 0.10.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/dist/build.css CHANGED
@@ -4792,23 +4792,66 @@
4792
4792
  border-radius: 0.75rem;
4793
4793
  margin: 0;
4794
4794
  }
4795
- .hive-post-body .threeSpeakWrapper {
4796
- aspect-ratio: 9 / 16;
4797
- max-width: 450px;
4798
- width: 100%;
4795
+ .hive-post-body .threeSpeakEmbed {
4799
4796
  margin: 1rem auto;
4797
+ width: 100%;
4798
+ display: flex;
4799
+ justify-content: center;
4800
+ }
4801
+ .hive-post-body .threeSpeakNative {
4802
+ width: 100%;
4803
+ margin: 0 auto;
4800
4804
  border-radius: 0.75rem;
4801
4805
  overflow: hidden;
4802
4806
  background: #000;
4807
+ display: flex;
4808
+ align-items: center;
4809
+ justify-content: center;
4810
+ position: relative;
4803
4811
  }
4804
- .hive-post-body .threeSpeakWrapper iframe {
4812
+ .hive-post-body .threeSpeakNative.threeSpeakNativeLandscape {
4813
+ aspect-ratio: 16 / 9;
4814
+ max-width: 800px;
4815
+ max-height: 80vh;
4816
+ }
4817
+ .hive-post-body .threeSpeakNative.threeSpeakNativePortrait {
4818
+ aspect-ratio: 9 / 16;
4819
+ max-width: 450px;
4820
+ max-height: 80vh;
4821
+ }
4822
+ .hive-post-body .threeSpeakNative video, .hive-post-body .threeSpeakNative .threeSpeakNativeThumb {
4805
4823
  display: block;
4824
+ position: absolute;
4825
+ inset: 0;
4806
4826
  width: 100%;
4807
4827
  height: 100%;
4808
- aspect-ratio: auto;
4809
- border: none;
4828
+ background: #000;
4810
4829
  border-radius: 0.75rem;
4811
- margin: 0;
4830
+ object-fit: contain;
4831
+ }
4832
+ .hive-post-body .threeSpeakNative .threeSpeakNativeThumb {
4833
+ z-index: 1;
4834
+ pointer-events: none;
4835
+ }
4836
+ .hive-post-body .threeSpeakNative video {
4837
+ z-index: 2;
4838
+ }
4839
+ .hive-post-body .threeSpeakNative.threeSpeakNativeNoThumb {
4840
+ aspect-ratio: auto;
4841
+ max-width: none;
4842
+ display: block;
4843
+ background: transparent;
4844
+ }
4845
+ .hive-post-body .threeSpeakNative.threeSpeakNativeNoThumb video {
4846
+ position: static;
4847
+ width: 100%;
4848
+ height: auto;
4849
+ max-width: 800px;
4850
+ margin: 0 auto;
4851
+ }
4852
+ .hive-post-body .threeSpeakNativeMessage {
4853
+ color: #9ca3b0;
4854
+ font-size: 0.875rem;
4812
4855
  }
4813
4856
  .hive-post-body .audioWrapper {
4814
4857
  max-width: 500px;
@@ -0,0 +1,11 @@
1
+ interface ThreeSpeakPlayerProps {
2
+ author: string;
3
+ permlink: string;
4
+ /** Suppress the layered thumbnail entirely — useful in surfaces
5
+ * (e.g. HiveDetailPost) where a thumbnail-shaped placeholder
6
+ * before play is unwanted. Defaults to false: the thumbnail is
7
+ * shown until first play. */
8
+ hideThumbnail?: boolean;
9
+ }
10
+ export declare function ThreeSpeakPlayer({ author, permlink, hideThumbnail }: ThreeSpeakPlayerProps): import("react/jsx-runtime").JSX.Element;
11
+ export default ThreeSpeakPlayer;