@appquality/unguess-design-system 4.0.65 → 4.0.67
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 +26 -0
- package/build/index.d.ts +40 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
# v4.0.67 (Wed Feb 18 2026)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- release-2026-02-18 [#585](https://github.com/AppQuality/unguess-design-system/pull/585) ([@cannarocks](https://github.com/cannarocks) [@Kariamos](https://github.com/Kariamos))
|
|
6
|
+
- Enhance Editor interface with type-safe chained commands [#584](https://github.com/AppQuality/unguess-design-system/pull/584) ([@cannarocks](https://github.com/cannarocks))
|
|
7
|
+
|
|
8
|
+
#### Authors: 2
|
|
9
|
+
|
|
10
|
+
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
11
|
+
- Marco ([@Kariamos](https://github.com/Kariamos))
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# v4.0.66 (Mon Feb 16 2026)
|
|
16
|
+
|
|
17
|
+
#### 🐛 Bug Fix
|
|
18
|
+
|
|
19
|
+
- Include editor ref type [#583](https://github.com/AppQuality/unguess-design-system/pull/583) ([@cannarocks](https://github.com/cannarocks))
|
|
20
|
+
|
|
21
|
+
#### Authors: 1
|
|
22
|
+
|
|
23
|
+
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
1
27
|
# v4.0.65 (Mon Feb 16 2026)
|
|
2
28
|
|
|
3
29
|
#### 🐛 Bug Fix
|
package/build/index.d.ts
CHANGED
|
@@ -20,7 +20,8 @@ import { DefaultTheme } from 'styled-components';
|
|
|
20
20
|
import { DetailedHTMLProps } from 'react';
|
|
21
21
|
import { DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES } from 'react';
|
|
22
22
|
import { DraggableList } from '@zendeskgarden/react-draggable';
|
|
23
|
-
import { Editor as Editor_2 } from '@tiptap/
|
|
23
|
+
import { Editor as Editor_2 } from '@tiptap/core';
|
|
24
|
+
import { Editor as Editor_3 } from '@tiptap/react';
|
|
24
25
|
import { EditorOptions } from '@tiptap/react';
|
|
25
26
|
import { EndIcon } from '@zendeskgarden/react-buttons/dist/typings/elements/components/EndIcon';
|
|
26
27
|
import { ExecutionProps } from 'styled-components';
|
|
@@ -632,8 +633,8 @@ export declare const ChatContext: default_2.Context<ChatContextType | null>;
|
|
|
632
633
|
|
|
633
634
|
declare type ChatContextType = {
|
|
634
635
|
triggerSave: () => void;
|
|
635
|
-
editor?:
|
|
636
|
-
setEditor: default_2.Dispatch<default_2.SetStateAction<
|
|
636
|
+
editor?: Editor_3;
|
|
637
|
+
setEditor: default_2.Dispatch<default_2.SetStateAction<Editor_3 | undefined>>;
|
|
637
638
|
addThumbnails: (props: {
|
|
638
639
|
files: (File & CommentMedia)[];
|
|
639
640
|
}) => void;
|
|
@@ -667,7 +668,7 @@ declare interface ChatEditorArgs extends Partial<EditorOptions> {
|
|
|
667
668
|
}
|
|
668
669
|
|
|
669
670
|
export declare const ChatProvider: ({ onSave, onFileUpload, onDeleteThumbnail, setMentionableUsers, children, }: {
|
|
670
|
-
onSave?: (editor:
|
|
671
|
+
onSave?: (editor: Editor_3, mentions: SuggestedUser[]) => void;
|
|
671
672
|
onFileUpload?: (files: (File & CommentMedia)[]) => Promise<Data>;
|
|
672
673
|
onDeleteThumbnail: (id: string) => void;
|
|
673
674
|
children: default_2.ReactNode;
|
|
@@ -1089,8 +1090,37 @@ declare interface EditorArgs extends Partial<EditorOptions> {
|
|
|
1089
1090
|
disableSaveShortcut?: boolean;
|
|
1090
1091
|
}
|
|
1091
1092
|
|
|
1093
|
+
declare interface EditorChainedCommands {
|
|
1094
|
+
focus: () => EditorChainedCommands;
|
|
1095
|
+
toggleHeading: (options: {
|
|
1096
|
+
level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
1097
|
+
}) => EditorChainedCommands;
|
|
1098
|
+
toggleBold: () => EditorChainedCommands;
|
|
1099
|
+
toggleItalic: () => EditorChainedCommands;
|
|
1100
|
+
toggleBlockquote: () => EditorChainedCommands;
|
|
1101
|
+
run: () => boolean;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1092
1104
|
export declare interface EditorRef {
|
|
1093
|
-
getEditor: () =>
|
|
1105
|
+
getEditor: () => EditorWithExtensions | null;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* Extended Editor interface that includes type-safe chained commands.
|
|
1110
|
+
* Use this interface instead of the base Editor type when you need to use
|
|
1111
|
+
* chained commands in projects where TipTap extensions may not be installed.
|
|
1112
|
+
*
|
|
1113
|
+
* @example
|
|
1114
|
+
* ```typescript
|
|
1115
|
+
* import { EditorWithExtensions } from '@unguess/design-system';
|
|
1116
|
+
*
|
|
1117
|
+
* const handleBold = (editor: EditorWithExtensions) => {
|
|
1118
|
+
* editor.chain().focus().toggleBold().run();
|
|
1119
|
+
* };
|
|
1120
|
+
* ```
|
|
1121
|
+
*/
|
|
1122
|
+
declare interface EditorWithExtensions extends Omit<Editor_2, 'chain'> {
|
|
1123
|
+
chain: () => EditorChainedCommands;
|
|
1094
1124
|
}
|
|
1095
1125
|
|
|
1096
1126
|
/**
|
|
@@ -3418,7 +3448,7 @@ declare interface TooltipModalArgs extends ITooltipDialogProps {
|
|
|
3418
3448
|
|
|
3419
3449
|
export declare const Transcript: {
|
|
3420
3450
|
({ editor }: {
|
|
3421
|
-
editor:
|
|
3451
|
+
editor: Editor_3;
|
|
3422
3452
|
}): JSX_2.Element | null;
|
|
3423
3453
|
useEditor: ({ content, observations, translations, currentTime, onSetCurrentTime, themeExtension, isEditable, numberOfSpeakers, sentiments, }: {
|
|
3424
3454
|
content?: ParagraphType[];
|
|
@@ -3430,17 +3460,17 @@ export declare const Transcript: {
|
|
|
3430
3460
|
isEditable?: boolean;
|
|
3431
3461
|
numberOfSpeakers?: number;
|
|
3432
3462
|
sentiments?: SentimentType[];
|
|
3433
|
-
}, deps?: React.DependencyList) =>
|
|
3463
|
+
}, deps?: React.DependencyList) => Editor_3;
|
|
3434
3464
|
Search: {
|
|
3435
3465
|
({ editor, placeholder, }: {
|
|
3436
|
-
editor:
|
|
3466
|
+
editor: Editor_3;
|
|
3437
3467
|
placeholder?: string;
|
|
3438
3468
|
}): JSX_2.Element;
|
|
3439
3469
|
Style: RuleSet<object>;
|
|
3440
3470
|
};
|
|
3441
3471
|
FloatingMenu: (props: {
|
|
3442
|
-
editor:
|
|
3443
|
-
onClick: (editor:
|
|
3472
|
+
editor: Editor_3;
|
|
3473
|
+
onClick: (editor: Editor_3, words: {
|
|
3444
3474
|
start: number;
|
|
3445
3475
|
end: number;
|
|
3446
3476
|
}) => void;
|