hive-react-kit 0.9.8 → 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
@@ -297,6 +297,9 @@
297
297
  .pointer-events-none {
298
298
  pointer-events: none;
299
299
  }
300
+ .collapse {
301
+ visibility: collapse;
302
+ }
300
303
  .visible {
301
304
  visibility: visible;
302
305
  }
@@ -4789,23 +4792,66 @@
4789
4792
  border-radius: 0.75rem;
4790
4793
  margin: 0;
4791
4794
  }
4792
- .hive-post-body .threeSpeakWrapper {
4793
- aspect-ratio: 9 / 16;
4794
- max-width: 450px;
4795
- width: 100%;
4795
+ .hive-post-body .threeSpeakEmbed {
4796
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;
4797
4804
  border-radius: 0.75rem;
4798
4805
  overflow: hidden;
4799
4806
  background: #000;
4807
+ display: flex;
4808
+ align-items: center;
4809
+ justify-content: center;
4810
+ position: relative;
4811
+ }
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;
4800
4821
  }
4801
- .hive-post-body .threeSpeakWrapper iframe {
4822
+ .hive-post-body .threeSpeakNative video, .hive-post-body .threeSpeakNative .threeSpeakNativeThumb {
4802
4823
  display: block;
4824
+ position: absolute;
4825
+ inset: 0;
4803
4826
  width: 100%;
4804
4827
  height: 100%;
4805
- aspect-ratio: auto;
4806
- border: none;
4828
+ background: #000;
4807
4829
  border-radius: 0.75rem;
4808
- 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;
4809
4855
  }
4810
4856
  .hive-post-body .audioWrapper {
4811
4857
  max-width: 500px;
@@ -4869,6 +4915,123 @@
4869
4915
  font-size: 0.8125rem;
4870
4916
  }
4871
4917
  }
4918
+ .snaps-feed-body {
4919
+ color: #e7e7f1;
4920
+ font-size: 0.875rem;
4921
+ line-height: 1.55;
4922
+ word-break: break-word;
4923
+ overflow-wrap: break-word;
4924
+ }
4925
+ .snaps-feed-body p {
4926
+ margin: 0.25rem 0;
4927
+ }
4928
+ .snaps-feed-body p:first-child {
4929
+ margin-top: 0;
4930
+ }
4931
+ .snaps-feed-body p:last-child {
4932
+ margin-bottom: 0;
4933
+ }
4934
+ .snaps-feed-body h1, .snaps-feed-body h2, .snaps-feed-body h3, .snaps-feed-body h4, .snaps-feed-body h5, .snaps-feed-body h6 {
4935
+ margin: 0.5rem 0 0.25rem;
4936
+ font-weight: 600;
4937
+ color: #f0f0f8;
4938
+ line-height: 1.3;
4939
+ }
4940
+ .snaps-feed-body h1 {
4941
+ font-size: 1rem;
4942
+ }
4943
+ .snaps-feed-body h2 {
4944
+ font-size: 0.95rem;
4945
+ }
4946
+ .snaps-feed-body h3, .snaps-feed-body h4, .snaps-feed-body h5, .snaps-feed-body h6 {
4947
+ font-size: 0.875rem;
4948
+ }
4949
+ .snaps-feed-body strong, .snaps-feed-body b {
4950
+ font-weight: 600;
4951
+ color: #f0f0f8;
4952
+ }
4953
+ .snaps-feed-body em, .snaps-feed-body i {
4954
+ font-style: italic;
4955
+ }
4956
+ .snaps-feed-body ul {
4957
+ list-style: disc;
4958
+ padding-left: 1.25rem;
4959
+ margin: 0.25rem 0;
4960
+ }
4961
+ .snaps-feed-body ol {
4962
+ list-style: decimal;
4963
+ padding-left: 1.25rem;
4964
+ margin: 0.25rem 0;
4965
+ }
4966
+ .snaps-feed-body li {
4967
+ margin: 0.125rem 0;
4968
+ }
4969
+ .snaps-feed-body blockquote {
4970
+ border-left: 3px solid #3a424a;
4971
+ padding: 0.125rem 0.5rem;
4972
+ margin: 0.5rem 0;
4973
+ color: #c8cad6;
4974
+ }
4975
+ .snaps-feed-body code {
4976
+ background: #2b3138;
4977
+ padding: 0.05rem 0.3rem;
4978
+ border-radius: 0.25rem;
4979
+ font-size: 0.8125rem;
4980
+ }
4981
+ .snaps-feed-body pre {
4982
+ background: #2b3138;
4983
+ padding: 0.5rem;
4984
+ border-radius: 0.5rem;
4985
+ overflow-x: auto;
4986
+ margin: 0.5rem 0;
4987
+ font-size: 0.8125rem;
4988
+ }
4989
+ .snaps-feed-body pre code {
4990
+ background: transparent;
4991
+ padding: 0;
4992
+ }
4993
+ .snaps-feed-body hr {
4994
+ border: none;
4995
+ border-top: 1px solid #3a424a;
4996
+ margin: 0.75rem 0;
4997
+ }
4998
+ .snaps-feed-body a {
4999
+ color: #ff5b78;
5000
+ text-decoration: underline;
5001
+ word-break: break-all;
5002
+ }
5003
+ .snaps-feed-body table {
5004
+ width: 100%;
5005
+ border-collapse: collapse;
5006
+ margin: 0.5rem 0;
5007
+ font-size: 0.8125rem;
5008
+ display: block;
5009
+ overflow-x: auto;
5010
+ max-width: 100%;
5011
+ }
5012
+ .snaps-feed-body thead {
5013
+ background: #2b3138;
5014
+ }
5015
+ .snaps-feed-body th, .snaps-feed-body td {
5016
+ border: 1px solid #3a424a;
5017
+ padding: 0.25rem 0.5rem;
5018
+ text-align: left;
5019
+ vertical-align: top;
5020
+ white-space: nowrap;
5021
+ }
5022
+ .snaps-feed-body th {
5023
+ font-weight: 600;
5024
+ color: #f0f0f8;
5025
+ }
5026
+ .snaps-feed-body img {
5027
+ max-width: 100%;
5028
+ height: auto;
5029
+ border-radius: 0.5rem;
5030
+ margin: 0.25rem 0;
5031
+ }
5032
+ .snaps-feed-body iframe {
5033
+ display: none;
5034
+ }
4872
5035
  @property --tw-translate-x {
4873
5036
  syntax: "*";
4874
5037
  inherits: false;
@@ -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;