@tldraw/commenting 5.4.0-canary.b8ec00e16e3a → 5.4.0-canary.bb69ad90a32d

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.
@@ -128,7 +128,7 @@ export declare interface CommentBodyProps {
128
128
  }
129
129
 
130
130
  /** A single comment: Avatar, Byline, and a body slot the consumer renders. @public @react */
131
- export declare function CommentCard({ author, body, date, you, edited, actions, footer }: CommentCardProps): JSX.Element;
131
+ export declare function CommentCard({ author, body, date, you, edited, actions, footer, }: CommentCardProps): JSX.Element;
132
132
 
133
133
  /** @public */
134
134
  export declare interface CommentCardProps {
@@ -154,7 +154,7 @@ export declare interface CommentCardProps {
154
154
  * floating toolbar. Presentational by default; pass value/onChange/onSubmit to drive it as a form.
155
155
  * @public @react
156
156
  */
157
- export declare function CommentComposer({ author, placeholder, value, onChange, onSubmit, sendLabel, onArrowUpWhenEmpty, disabled, autoFocus, leading, getMentionSuggestions, renderMentionSuggestion }: CommentComposerProps): JSX.Element;
157
+ export declare function CommentComposer({ author, placeholder, value, onChange, onSubmit, sendLabel, onArrowUpWhenEmpty, disabled, autoFocus, leading, getMentionSuggestions, renderMentionSuggestion, }: CommentComposerProps): JSX.Element;
158
158
 
159
159
  /** @public */
160
160
  export declare interface CommentComposerProps {
@@ -398,7 +398,7 @@ export declare interface CommentingOptions {
398
398
  }
399
399
 
400
400
  /** One thread's row in a {@link CommentsList}. @public @react */
401
- export declare function CommentListItem({ id, author, preview, date, resolved, page, count, selected, reactions, href, resolvedLabel, onSelect }: CommentListItemRenderProps): JSX.Element;
401
+ export declare function CommentListItem({ id, author, preview, date, resolved, page, count, selected, reactions, href, resolvedLabel, onSelect, }: CommentListItemRenderProps): JSX.Element;
402
402
 
403
403
  /** @public */
404
404
  export declare interface CommentListItemProps {
@@ -490,7 +490,7 @@ export declare interface CommentPinProps {
490
490
  * than in the reaction row, so opening it doesn't chase the row as reactions are added.
491
491
  * @public @react
492
492
  */
493
- export declare function CommentReactionPicker({ comment, currentUserId, emoji }: CommentReactionPickerProps): JSX.Element | null;
493
+ export declare function CommentReactionPicker({ comment, currentUserId, emoji, }: CommentReactionPickerProps): JSX.Element | null;
494
494
 
495
495
  /** @public */
496
496
  export declare interface CommentReactionPickerProps {
@@ -520,7 +520,7 @@ export declare interface CommentReactionsProps {
520
520
 
521
521
  /** The funnel dropdown in the sidebar header: toggles for which threads the list shows.
522
522
  * @public @react */
523
- export declare function CommentsFilterMenu({ canFilterByAuthor, canFilterByUnread }: CommentsFilterMenuProps): JSX.Element;
523
+ export declare function CommentsFilterMenu({ canFilterByAuthor, canFilterByUnread, }: CommentsFilterMenuProps): JSX.Element;
524
524
 
525
525
  /** @public */
526
526
  export declare interface CommentsFilterMenuProps {
@@ -543,7 +543,7 @@ export declare const commentsHidden: EditorAtom<boolean>;
543
543
  * `CanvasCommentsSidebar` wires it to the store, but a consumer can build their own list from this.
544
544
  * @public @react
545
545
  */
546
- export declare function CommentsList({ items, onSelect, header, headerAction, empty, resolvedLabel, renderItem }: CommentsListProps): JSX.Element;
546
+ export declare function CommentsList({ items, onSelect, header, headerAction, empty, resolvedLabel, renderItem, }: CommentsListProps): JSX.Element;
547
547
 
548
548
  /** @public */
549
549
  export declare interface CommentsListProps {
@@ -598,7 +598,7 @@ export declare function CommentsVisibilityToggle(): JSX.Element;
598
598
  * composer's handlers; how each comment renders is overridable via `renderComment`.
599
599
  * @public @react
600
600
  */
601
- export declare function CommentThread({ comments, header, headerActions, resolvedBanner, composer, footer, renderComment }: CommentThreadProps): JSX.Element;
601
+ export declare function CommentThread({ comments, header, headerActions, resolvedBanner, composer, footer, renderComment, }: CommentThreadProps): JSX.Element;
602
602
 
603
603
  /** @public */
604
604
  export declare interface CommentThreadProps {
@@ -661,7 +661,7 @@ export declare class CommentTool extends StateNode {
661
661
  export declare const commentToolOverrides: TLUiOverrides;
662
662
 
663
663
  /** @public */
664
- export declare const commentTools: typeof CommentTool[];
664
+ export declare const commentTools: (typeof CommentTool)[];
665
665
 
666
666
  /** @public @react */
667
667
  export declare function CountBadge({ count, open }: CountBadgeProps): JSX.Element;
@@ -716,7 +716,7 @@ export declare const defaultCommentingOptions: {
716
716
  readonly dragHistory: undefined;
717
717
  readonly enableClustering: true;
718
718
  readonly enableRegions: false;
719
- readonly history: "ignore";
719
+ readonly history: 'ignore';
720
720
  readonly impreciseShapeAnchor: {
721
721
  readonly x: 1;
722
722
  readonly y: 0;
@@ -803,7 +803,7 @@ export declare function editComment(editor: Editor, comment: TLComment, body: TL
803
803
  * dismissal; `ReactionPicker` renders it in a dropdown under the add-reaction button.
804
804
  * @public @react
805
805
  */
806
- export declare function EmojiPicker({ emoji, selected, onSelect, renderReaction }: EmojiPickerProps): JSX.Element;
806
+ export declare function EmojiPicker({ emoji, selected, onSelect, renderReaction, }: EmojiPickerProps): JSX.Element;
807
807
 
808
808
  /** @public */
809
809
  export declare interface EmojiPickerProps {
@@ -982,7 +982,7 @@ export declare function putCommentRecords(editor: Editor, records: TLCommentReco
982
982
  * tooltip naming who reacted (the current user included), when `enableHoverList` is set.
983
983
  * @public @react
984
984
  */
985
- export declare function Reaction({ emoji, count, active, reactors, enableHoverList, renderReaction, ReactionTooltip, onClick }: ReactionProps): JSX.Element;
985
+ export declare function Reaction({ emoji, count, active, reactors, enableHoverList, renderReaction, ReactionTooltip, onClick, }: ReactionProps): JSX.Element;
986
986
 
987
987
  /**
988
988
  * The add-reaction affordance: a smiley button that opens an emoji grid.
@@ -994,7 +994,7 @@ export declare function Reaction({ emoji, count, active, reactors, enableHoverLi
994
994
  * done its job — and hands focus back to the trigger.
995
995
  * @public @react
996
996
  */
997
- export declare function ReactionPicker({ emoji, selected, onSelect, renderReaction, palette: Palette, menuId, className }: ReactionPickerProps): JSX.Element;
997
+ export declare function ReactionPicker({ emoji, selected, onSelect, renderReaction, palette: Palette, menuId, className, }: ReactionPickerProps): JSX.Element;
998
998
 
999
999
  /** @public */
1000
1000
  export declare interface ReactionPickerProps {
@@ -1062,7 +1062,7 @@ export declare interface ReactionReactor {
1062
1062
  * fixed as reactions are added here.
1063
1063
  * @public @react
1064
1064
  */
1065
- export declare function Reactions({ reactions, onToggle, canReact, enableHoverList, renderReaction, ReactionTooltip }: ReactionsProps): JSX.Element | null;
1065
+ export declare function Reactions({ reactions, onToggle, canReact, enableHoverList, renderReaction, ReactionTooltip, }: ReactionsProps): JSX.Element | null;
1066
1066
 
1067
1067
  /** @public */
1068
1068
  export declare interface ReactionsProps {
package/dist-cjs/index.js CHANGED
@@ -144,7 +144,7 @@ var import_state = require("./canvas/state");
144
144
  var import_thread_state = require("./canvas/thread-state");
145
145
  (0, import_utils.registerTldrawLibraryVersion)(
146
146
  "@tldraw/commenting",
147
- "5.4.0-canary.b8ec00e16e3a",
147
+ "5.4.0-canary.bb69ad90a32d",
148
148
  "cjs"
149
149
  );
150
150
  //# sourceMappingURL=index.js.map
@@ -128,7 +128,7 @@ export declare interface CommentBodyProps {
128
128
  }
129
129
 
130
130
  /** A single comment: Avatar, Byline, and a body slot the consumer renders. @public @react */
131
- export declare function CommentCard({ author, body, date, you, edited, actions, footer }: CommentCardProps): JSX.Element;
131
+ export declare function CommentCard({ author, body, date, you, edited, actions, footer, }: CommentCardProps): JSX.Element;
132
132
 
133
133
  /** @public */
134
134
  export declare interface CommentCardProps {
@@ -154,7 +154,7 @@ export declare interface CommentCardProps {
154
154
  * floating toolbar. Presentational by default; pass value/onChange/onSubmit to drive it as a form.
155
155
  * @public @react
156
156
  */
157
- export declare function CommentComposer({ author, placeholder, value, onChange, onSubmit, sendLabel, onArrowUpWhenEmpty, disabled, autoFocus, leading, getMentionSuggestions, renderMentionSuggestion }: CommentComposerProps): JSX.Element;
157
+ export declare function CommentComposer({ author, placeholder, value, onChange, onSubmit, sendLabel, onArrowUpWhenEmpty, disabled, autoFocus, leading, getMentionSuggestions, renderMentionSuggestion, }: CommentComposerProps): JSX.Element;
158
158
 
159
159
  /** @public */
160
160
  export declare interface CommentComposerProps {
@@ -398,7 +398,7 @@ export declare interface CommentingOptions {
398
398
  }
399
399
 
400
400
  /** One thread's row in a {@link CommentsList}. @public @react */
401
- export declare function CommentListItem({ id, author, preview, date, resolved, page, count, selected, reactions, href, resolvedLabel, onSelect }: CommentListItemRenderProps): JSX.Element;
401
+ export declare function CommentListItem({ id, author, preview, date, resolved, page, count, selected, reactions, href, resolvedLabel, onSelect, }: CommentListItemRenderProps): JSX.Element;
402
402
 
403
403
  /** @public */
404
404
  export declare interface CommentListItemProps {
@@ -490,7 +490,7 @@ export declare interface CommentPinProps {
490
490
  * than in the reaction row, so opening it doesn't chase the row as reactions are added.
491
491
  * @public @react
492
492
  */
493
- export declare function CommentReactionPicker({ comment, currentUserId, emoji }: CommentReactionPickerProps): JSX.Element | null;
493
+ export declare function CommentReactionPicker({ comment, currentUserId, emoji, }: CommentReactionPickerProps): JSX.Element | null;
494
494
 
495
495
  /** @public */
496
496
  export declare interface CommentReactionPickerProps {
@@ -520,7 +520,7 @@ export declare interface CommentReactionsProps {
520
520
 
521
521
  /** The funnel dropdown in the sidebar header: toggles for which threads the list shows.
522
522
  * @public @react */
523
- export declare function CommentsFilterMenu({ canFilterByAuthor, canFilterByUnread }: CommentsFilterMenuProps): JSX.Element;
523
+ export declare function CommentsFilterMenu({ canFilterByAuthor, canFilterByUnread, }: CommentsFilterMenuProps): JSX.Element;
524
524
 
525
525
  /** @public */
526
526
  export declare interface CommentsFilterMenuProps {
@@ -543,7 +543,7 @@ export declare const commentsHidden: EditorAtom<boolean>;
543
543
  * `CanvasCommentsSidebar` wires it to the store, but a consumer can build their own list from this.
544
544
  * @public @react
545
545
  */
546
- export declare function CommentsList({ items, onSelect, header, headerAction, empty, resolvedLabel, renderItem }: CommentsListProps): JSX.Element;
546
+ export declare function CommentsList({ items, onSelect, header, headerAction, empty, resolvedLabel, renderItem, }: CommentsListProps): JSX.Element;
547
547
 
548
548
  /** @public */
549
549
  export declare interface CommentsListProps {
@@ -598,7 +598,7 @@ export declare function CommentsVisibilityToggle(): JSX.Element;
598
598
  * composer's handlers; how each comment renders is overridable via `renderComment`.
599
599
  * @public @react
600
600
  */
601
- export declare function CommentThread({ comments, header, headerActions, resolvedBanner, composer, footer, renderComment }: CommentThreadProps): JSX.Element;
601
+ export declare function CommentThread({ comments, header, headerActions, resolvedBanner, composer, footer, renderComment, }: CommentThreadProps): JSX.Element;
602
602
 
603
603
  /** @public */
604
604
  export declare interface CommentThreadProps {
@@ -661,7 +661,7 @@ export declare class CommentTool extends StateNode {
661
661
  export declare const commentToolOverrides: TLUiOverrides;
662
662
 
663
663
  /** @public */
664
- export declare const commentTools: typeof CommentTool[];
664
+ export declare const commentTools: (typeof CommentTool)[];
665
665
 
666
666
  /** @public @react */
667
667
  export declare function CountBadge({ count, open }: CountBadgeProps): JSX.Element;
@@ -716,7 +716,7 @@ export declare const defaultCommentingOptions: {
716
716
  readonly dragHistory: undefined;
717
717
  readonly enableClustering: true;
718
718
  readonly enableRegions: false;
719
- readonly history: "ignore";
719
+ readonly history: 'ignore';
720
720
  readonly impreciseShapeAnchor: {
721
721
  readonly x: 1;
722
722
  readonly y: 0;
@@ -803,7 +803,7 @@ export declare function editComment(editor: Editor, comment: TLComment, body: TL
803
803
  * dismissal; `ReactionPicker` renders it in a dropdown under the add-reaction button.
804
804
  * @public @react
805
805
  */
806
- export declare function EmojiPicker({ emoji, selected, onSelect, renderReaction }: EmojiPickerProps): JSX.Element;
806
+ export declare function EmojiPicker({ emoji, selected, onSelect, renderReaction, }: EmojiPickerProps): JSX.Element;
807
807
 
808
808
  /** @public */
809
809
  export declare interface EmojiPickerProps {
@@ -982,7 +982,7 @@ export declare function putCommentRecords(editor: Editor, records: TLCommentReco
982
982
  * tooltip naming who reacted (the current user included), when `enableHoverList` is set.
983
983
  * @public @react
984
984
  */
985
- export declare function Reaction({ emoji, count, active, reactors, enableHoverList, renderReaction, ReactionTooltip, onClick }: ReactionProps): JSX.Element;
985
+ export declare function Reaction({ emoji, count, active, reactors, enableHoverList, renderReaction, ReactionTooltip, onClick, }: ReactionProps): JSX.Element;
986
986
 
987
987
  /**
988
988
  * The add-reaction affordance: a smiley button that opens an emoji grid.
@@ -994,7 +994,7 @@ export declare function Reaction({ emoji, count, active, reactors, enableHoverLi
994
994
  * done its job — and hands focus back to the trigger.
995
995
  * @public @react
996
996
  */
997
- export declare function ReactionPicker({ emoji, selected, onSelect, renderReaction, palette: Palette, menuId, className }: ReactionPickerProps): JSX.Element;
997
+ export declare function ReactionPicker({ emoji, selected, onSelect, renderReaction, palette: Palette, menuId, className, }: ReactionPickerProps): JSX.Element;
998
998
 
999
999
  /** @public */
1000
1000
  export declare interface ReactionPickerProps {
@@ -1062,7 +1062,7 @@ export declare interface ReactionReactor {
1062
1062
  * fixed as reactions are added here.
1063
1063
  * @public @react
1064
1064
  */
1065
- export declare function Reactions({ reactions, onToggle, canReact, enableHoverList, renderReaction, ReactionTooltip }: ReactionsProps): JSX.Element | null;
1065
+ export declare function Reactions({ reactions, onToggle, canReact, enableHoverList, renderReaction, ReactionTooltip, }: ReactionsProps): JSX.Element | null;
1066
1066
 
1067
1067
  /** @public */
1068
1068
  export declare interface ReactionsProps {
@@ -103,7 +103,7 @@ import {
103
103
  import { anchorPagePoint, focusThread, shapeAnchorAt } from "./canvas/thread-state.mjs";
104
104
  registerTldrawLibraryVersion(
105
105
  "@tldraw/commenting",
106
- "5.4.0-canary.b8ec00e16e3a",
106
+ "5.4.0-canary.bb69ad90a32d",
107
107
  "esm"
108
108
  );
109
109
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tldraw/commenting",
3
3
  "description": "tldraw commenting UI components.",
4
- "version": "5.4.0-canary.b8ec00e16e3a",
4
+ "version": "5.4.0-canary.bb69ad90a32d",
5
5
  "author": {
6
6
  "name": "tldraw Inc.",
7
7
  "email": "hello@tldraw.com"
@@ -38,7 +38,7 @@
38
38
  "lint": "yarn run -T tsx ../../internal/scripts/lint.ts"
39
39
  },
40
40
  "devDependencies": {
41
- "@tldraw/driver": "5.4.0-canary.b8ec00e16e3a",
41
+ "@tldraw/driver": "5.4.0-canary.bb69ad90a32d",
42
42
  "@types/react": "^19.2.7",
43
43
  "@types/react-dom": "^19.2.3",
44
44
  "react": "^19.2.1",
@@ -56,9 +56,9 @@
56
56
  "@tiptap/core": "^3.12.1",
57
57
  "@tiptap/pm": "^3.12.1",
58
58
  "@tiptap/react": "^3.12.1",
59
- "@tldraw/mentions": "5.4.0-canary.b8ec00e16e3a",
60
- "@tldraw/utils": "5.4.0-canary.b8ec00e16e3a",
61
- "tldraw": "5.4.0-canary.b8ec00e16e3a"
59
+ "@tldraw/mentions": "5.4.0-canary.bb69ad90a32d",
60
+ "@tldraw/utils": "5.4.0-canary.bb69ad90a32d",
61
+ "tldraw": "5.4.0-canary.bb69ad90a32d"
62
62
  },
63
63
  "module": "dist-esm/index.mjs",
64
64
  "source": "src/index.ts",