opus-react 0.6.19 → 0.6.20
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 +6 -0
- package/dist/index.cjs +191 -180
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +191 -180
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2262,6 +2262,8 @@ type NoteComposerProps = {
|
|
|
2262
2262
|
onEmojiSelect?: (emoji: string) => void;
|
|
2263
2263
|
onMentionClick?: () => void;
|
|
2264
2264
|
onSave?: (value: string, tags: NoteTagOption[]) => void;
|
|
2265
|
+
/** Called for either the save button or keyboard submission. */
|
|
2266
|
+
onSubmit?: (value: string, tags: NoteTagOption[]) => void;
|
|
2265
2267
|
onTagsChange?: (tags: NoteTagOption[]) => void;
|
|
2266
2268
|
placeholder?: string;
|
|
2267
2269
|
saveButtonLabel?: string;
|
|
@@ -2269,11 +2271,13 @@ type NoteComposerProps = {
|
|
|
2269
2271
|
showEmoji?: boolean;
|
|
2270
2272
|
showMention?: boolean;
|
|
2271
2273
|
showTags?: boolean;
|
|
2274
|
+
/** Submit on Enter. Shift+Enter always inserts a newline. */
|
|
2275
|
+
submitOnEnter?: boolean;
|
|
2272
2276
|
selectedTags?: NoteTagOption[];
|
|
2273
2277
|
tagOptions?: NoteTagOption[];
|
|
2274
2278
|
value?: string;
|
|
2275
2279
|
};
|
|
2276
|
-
declare function NoteComposer({ className, defaultValue, id, onAttachClick, onChange, onEmojiSelect, onMentionClick, onSave, onTagsChange, placeholder, saveButtonLabel, showAttach, showEmoji, showMention, showTags, selectedTags, tagOptions, value, }: NoteComposerProps): react.JSX.Element;
|
|
2280
|
+
declare function NoteComposer({ className, defaultValue, id, onAttachClick, onChange, onEmojiSelect, onMentionClick, onSave, onSubmit, onTagsChange, placeholder, saveButtonLabel, showAttach, showEmoji, showMention, showTags, submitOnEnter, selectedTags, tagOptions, value, }: NoteComposerProps): react.JSX.Element;
|
|
2277
2281
|
|
|
2278
2282
|
type NotesActivityTagTone = NoteTagTone;
|
|
2279
2283
|
type NotesActivityTag = NoteTagOption;
|
package/dist/index.d.ts
CHANGED
|
@@ -2262,6 +2262,8 @@ type NoteComposerProps = {
|
|
|
2262
2262
|
onEmojiSelect?: (emoji: string) => void;
|
|
2263
2263
|
onMentionClick?: () => void;
|
|
2264
2264
|
onSave?: (value: string, tags: NoteTagOption[]) => void;
|
|
2265
|
+
/** Called for either the save button or keyboard submission. */
|
|
2266
|
+
onSubmit?: (value: string, tags: NoteTagOption[]) => void;
|
|
2265
2267
|
onTagsChange?: (tags: NoteTagOption[]) => void;
|
|
2266
2268
|
placeholder?: string;
|
|
2267
2269
|
saveButtonLabel?: string;
|
|
@@ -2269,11 +2271,13 @@ type NoteComposerProps = {
|
|
|
2269
2271
|
showEmoji?: boolean;
|
|
2270
2272
|
showMention?: boolean;
|
|
2271
2273
|
showTags?: boolean;
|
|
2274
|
+
/** Submit on Enter. Shift+Enter always inserts a newline. */
|
|
2275
|
+
submitOnEnter?: boolean;
|
|
2272
2276
|
selectedTags?: NoteTagOption[];
|
|
2273
2277
|
tagOptions?: NoteTagOption[];
|
|
2274
2278
|
value?: string;
|
|
2275
2279
|
};
|
|
2276
|
-
declare function NoteComposer({ className, defaultValue, id, onAttachClick, onChange, onEmojiSelect, onMentionClick, onSave, onTagsChange, placeholder, saveButtonLabel, showAttach, showEmoji, showMention, showTags, selectedTags, tagOptions, value, }: NoteComposerProps): react.JSX.Element;
|
|
2280
|
+
declare function NoteComposer({ className, defaultValue, id, onAttachClick, onChange, onEmojiSelect, onMentionClick, onSave, onSubmit, onTagsChange, placeholder, saveButtonLabel, showAttach, showEmoji, showMention, showTags, submitOnEnter, selectedTags, tagOptions, value, }: NoteComposerProps): react.JSX.Element;
|
|
2277
2281
|
|
|
2278
2282
|
type NotesActivityTagTone = NoteTagTone;
|
|
2279
2283
|
type NotesActivityTag = NoteTagOption;
|