@select-org/select-post-builder 1.1.57 → 1.1.59

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
@@ -95,6 +95,13 @@ declare type BaseProps = {
95
95
  hideSubmitButton?: boolean;
96
96
  /** Fires when the user switches between editor tabs (Media, Blog, Poll) */
97
97
  onEditorTabChange?: (tab: EditorTypes) => void;
98
+ /**
99
+ * Optional override for the editor's empty-state placeholder text. When
100
+ * provided, replaces the default "What's on your mind, {name}" prompt so a
101
+ * host can show context-aware copy (e.g. "Send a private comment..." vs
102
+ * "Send a group comment..."). Omit to keep the default.
103
+ */
104
+ placeholder?: string;
98
105
  };
99
106
 
100
107
  declare type CreatePostCallbackPayload = {
@@ -507,6 +514,21 @@ declare module '@tiptap/core' {
507
514
  }
508
515
 
509
516
 
517
+ declare module '@tiptap/core' {
518
+ interface Commands<ReturnType> {
519
+ smartMediaUpload: {
520
+ insertMediaWithUpload: (params: {
521
+ source: File | Blob | string;
522
+ type: MediaNodeTypes;
523
+ mediaType?: MediaItemType;
524
+ caption?: string;
525
+ searchFrom?: ImageSearchFrom;
526
+ }) => ReturnType;
527
+ };
528
+ }
529
+ }
530
+
531
+
510
532
  declare module '@tiptap/core' {
511
533
  interface Commands<ReturnType> {
512
534
  linkPreview: {
@@ -540,18 +562,3 @@ declare module '@tiptap/core' {
540
562
  };
541
563
  }
542
564
  }
543
-
544
-
545
- declare module '@tiptap/core' {
546
- interface Commands<ReturnType> {
547
- smartMediaUpload: {
548
- insertMediaWithUpload: (params: {
549
- source: File | Blob | string;
550
- type: MediaNodeTypes;
551
- mediaType?: MediaItemType;
552
- caption?: string;
553
- searchFrom?: ImageSearchFrom;
554
- }) => ReturnType;
555
- };
556
- }
557
- }