opus-react 0.6.19 → 0.6.21
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 +10 -0
- package/dist/index.cjs +195 -182
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +195 -182
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1837,8 +1837,10 @@ type ResizeHandleProps = Omit<ComponentPropsWithoutRef<"button">, "type"> & {
|
|
|
1837
1837
|
background?: ResizeHandleBackground;
|
|
1838
1838
|
height?: ResizeHandleHeight;
|
|
1839
1839
|
orientation: ResizeHandleOrientation;
|
|
1840
|
+
/** Keeps the resize track transparent, including on hover and focus. */
|
|
1841
|
+
transparent?: boolean;
|
|
1840
1842
|
};
|
|
1841
|
-
declare function ResizeHandle({ background, className, height, orientation, ...props }: ResizeHandleProps): react.JSX.Element;
|
|
1843
|
+
declare function ResizeHandle({ background, className, height, orientation, transparent, ...props }: ResizeHandleProps): react.JSX.Element;
|
|
1842
1844
|
|
|
1843
1845
|
type ResizablePanelProps = {
|
|
1844
1846
|
children: ReactNode;
|
|
@@ -2262,6 +2264,8 @@ type NoteComposerProps = {
|
|
|
2262
2264
|
onEmojiSelect?: (emoji: string) => void;
|
|
2263
2265
|
onMentionClick?: () => void;
|
|
2264
2266
|
onSave?: (value: string, tags: NoteTagOption[]) => void;
|
|
2267
|
+
/** Called for either the save button or keyboard submission. */
|
|
2268
|
+
onSubmit?: (value: string, tags: NoteTagOption[]) => void;
|
|
2265
2269
|
onTagsChange?: (tags: NoteTagOption[]) => void;
|
|
2266
2270
|
placeholder?: string;
|
|
2267
2271
|
saveButtonLabel?: string;
|
|
@@ -2269,11 +2273,13 @@ type NoteComposerProps = {
|
|
|
2269
2273
|
showEmoji?: boolean;
|
|
2270
2274
|
showMention?: boolean;
|
|
2271
2275
|
showTags?: boolean;
|
|
2276
|
+
/** Submit on Enter. Shift+Enter always inserts a newline. */
|
|
2277
|
+
submitOnEnter?: boolean;
|
|
2272
2278
|
selectedTags?: NoteTagOption[];
|
|
2273
2279
|
tagOptions?: NoteTagOption[];
|
|
2274
2280
|
value?: string;
|
|
2275
2281
|
};
|
|
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;
|
|
2282
|
+
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
2283
|
|
|
2278
2284
|
type NotesActivityTagTone = NoteTagTone;
|
|
2279
2285
|
type NotesActivityTag = NoteTagOption;
|
package/dist/index.d.ts
CHANGED
|
@@ -1837,8 +1837,10 @@ type ResizeHandleProps = Omit<ComponentPropsWithoutRef<"button">, "type"> & {
|
|
|
1837
1837
|
background?: ResizeHandleBackground;
|
|
1838
1838
|
height?: ResizeHandleHeight;
|
|
1839
1839
|
orientation: ResizeHandleOrientation;
|
|
1840
|
+
/** Keeps the resize track transparent, including on hover and focus. */
|
|
1841
|
+
transparent?: boolean;
|
|
1840
1842
|
};
|
|
1841
|
-
declare function ResizeHandle({ background, className, height, orientation, ...props }: ResizeHandleProps): react.JSX.Element;
|
|
1843
|
+
declare function ResizeHandle({ background, className, height, orientation, transparent, ...props }: ResizeHandleProps): react.JSX.Element;
|
|
1842
1844
|
|
|
1843
1845
|
type ResizablePanelProps = {
|
|
1844
1846
|
children: ReactNode;
|
|
@@ -2262,6 +2264,8 @@ type NoteComposerProps = {
|
|
|
2262
2264
|
onEmojiSelect?: (emoji: string) => void;
|
|
2263
2265
|
onMentionClick?: () => void;
|
|
2264
2266
|
onSave?: (value: string, tags: NoteTagOption[]) => void;
|
|
2267
|
+
/** Called for either the save button or keyboard submission. */
|
|
2268
|
+
onSubmit?: (value: string, tags: NoteTagOption[]) => void;
|
|
2265
2269
|
onTagsChange?: (tags: NoteTagOption[]) => void;
|
|
2266
2270
|
placeholder?: string;
|
|
2267
2271
|
saveButtonLabel?: string;
|
|
@@ -2269,11 +2273,13 @@ type NoteComposerProps = {
|
|
|
2269
2273
|
showEmoji?: boolean;
|
|
2270
2274
|
showMention?: boolean;
|
|
2271
2275
|
showTags?: boolean;
|
|
2276
|
+
/** Submit on Enter. Shift+Enter always inserts a newline. */
|
|
2277
|
+
submitOnEnter?: boolean;
|
|
2272
2278
|
selectedTags?: NoteTagOption[];
|
|
2273
2279
|
tagOptions?: NoteTagOption[];
|
|
2274
2280
|
value?: string;
|
|
2275
2281
|
};
|
|
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;
|
|
2282
|
+
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
2283
|
|
|
2278
2284
|
type NotesActivityTagTone = NoteTagTone;
|
|
2279
2285
|
type NotesActivityTag = NoteTagOption;
|