hive-react-kit 1.7.3 → 1.7.5

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
@@ -1063,6 +1063,9 @@
1063
1063
  .w-48 {
1064
1064
  width: calc(var(--spacing) * 48);
1065
1065
  }
1066
+ .w-52 {
1067
+ width: calc(var(--spacing) * 52);
1068
+ }
1066
1069
  .w-56 {
1067
1070
  width: calc(var(--spacing) * 56);
1068
1071
  }
@@ -3848,6 +3851,16 @@
3848
3851
  }
3849
3852
  }
3850
3853
  }
3854
+ .hover\:bg-black\/70 {
3855
+ &:hover {
3856
+ @media (hover: hover) {
3857
+ background-color: color-mix(in srgb, #000 70%, transparent);
3858
+ @supports (color: color-mix(in lab, red, red)) {
3859
+ background-color: color-mix(in oklab, var(--color-black) 70%, transparent);
3860
+ }
3861
+ }
3862
+ }
3863
+ }
3851
3864
  .hover\:bg-black\/80 {
3852
3865
  &:hover {
3853
3866
  @media (hover: hover) {
@@ -6277,9 +6290,38 @@
6277
6290
  object-fit: contain;
6278
6291
  }
6279
6292
  .threeSpeakNative .threeSpeakNativeThumb {
6280
- z-index: 1;
6293
+ z-index: 3;
6281
6294
  pointer-events: none;
6282
6295
  }
6296
+ .threeSpeakNative .threeSpeakNativeSkeleton {
6297
+ position: absolute;
6298
+ inset: 0;
6299
+ z-index: 1;
6300
+ display: flex;
6301
+ align-items: center;
6302
+ justify-content: center;
6303
+ border-radius: 0.75rem;
6304
+ background: linear-gradient( 90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.09) 37%, rgba(255, 255, 255, 0.04) 63% );
6305
+ background-size: 400% 100%;
6306
+ animation: threeSpeakShimmer 1.4s ease infinite;
6307
+ }
6308
+ .threeSpeakNative .threeSpeakNativeSkeletonDisc {
6309
+ display: flex;
6310
+ align-items: center;
6311
+ justify-content: center;
6312
+ width: 3.5rem;
6313
+ height: 3.5rem;
6314
+ border-radius: 9999px;
6315
+ background: rgba(0, 0, 0, 0.45);
6316
+ }
6317
+ @keyframes threeSpeakShimmer {
6318
+ 0% {
6319
+ background-position: 100% 0;
6320
+ }
6321
+ 100% {
6322
+ background-position: 0 0;
6323
+ }
6324
+ }
6283
6325
  .threeSpeakNative video {
6284
6326
  z-index: 2;
6285
6327
  }
@@ -6,6 +6,11 @@ interface ThreeSpeakPlayerProps {
6
6
  * before play is unwanted. Defaults to false: the thumbnail is
7
7
  * shown until first play. */
8
8
  hideThumbnail?: boolean;
9
+ /** Poster image to show before first play. Takes priority over the
10
+ * embed API's thumbnail — pass the post's own thumbnail (e.g. the
11
+ * one in the 3Speak markdown) so the preview matches the composer
12
+ * instead of falling back to the video's first frame. */
13
+ thumbnail?: string;
9
14
  }
10
- export declare function ThreeSpeakPlayer({ author, permlink, hideThumbnail }: ThreeSpeakPlayerProps): import("react/jsx-runtime").JSX.Element;
15
+ export declare function ThreeSpeakPlayer({ author, permlink, hideThumbnail, thumbnail }: ThreeSpeakPlayerProps): import("react/jsx-runtime").JSX.Element;
11
16
  export default ThreeSpeakPlayer;
@@ -233,6 +233,10 @@ export interface ParentPostComposerProps {
233
233
  submitLabelWithVideo?: string;
234
234
  /** Page title shown in the sticky header (default "Create post"). */
235
235
  title?: string;
236
+ /** Add a top safe-area inset to the sticky header so its buttons clear
237
+ * the device status bar / notch. Enable on full-screen routes; leave
238
+ * off inside modals/sheets that already sit below the notch. */
239
+ safeAreaTop?: boolean;
236
240
  /** Hint shown when the wallet is awaiting approval during the broadcast. */
237
241
  walletApprovalLabel?: string;
238
242
  /** When true, the composer renders a blinking "approve in wallet" banner. */
@@ -69,6 +69,10 @@ export interface PostTemplatesPanelProps {
69
69
  * state via the existing `applyTemplate` ref (or by remounting the
70
70
  * composer). */
71
71
  onApplyTemplate: (template: PostTemplate) => void;
72
+ /** Which view to show when the panel opens — `'list'` (load a template)
73
+ * or `'save'` (save the current post as a new template). Defaults to
74
+ * `'list'`. */
75
+ initialView?: 'list' | 'save';
72
76
  }
73
- declare function PostTemplatesPanel({ isOpen, onClose, templates, currentPayload, busy, onSaveTemplate, onDeleteTemplate, onApplyTemplate, }: PostTemplatesPanelProps): React.JSX.Element | null;
77
+ declare function PostTemplatesPanel({ isOpen, onClose, templates, currentPayload, busy, onSaveTemplate, onDeleteTemplate, onApplyTemplate, initialView, }: PostTemplatesPanelProps): React.JSX.Element | null;
74
78
  export default PostTemplatesPanel;