@appquality/unguess-design-system 4.0.35 → 4.0.37

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 CHANGED
@@ -1,3 +1,32 @@
1
+ # v4.0.37 (Thu May 08 2025)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Fix Globalalert Action [#519](https://github.com/AppQuality/unguess-design-system/pull/519) ([@d-beezee](https://github.com/d-beezee))
6
+ - fix: Add onClick handler to CTA button in GlobalAlert component [#518](https://github.com/AppQuality/unguess-design-system/pull/518) ([@d-beezee](https://github.com/d-beezee))
7
+
8
+ #### Authors: 1
9
+
10
+ - [@d-beezee](https://github.com/d-beezee)
11
+
12
+ ---
13
+
14
+ # v4.0.36 (Fri Apr 18 2025)
15
+
16
+ #### 🐛 Bug Fix
17
+
18
+ - Add iconbutton menu component and support for sentiment in transcript [#517](https://github.com/AppQuality/unguess-design-system/pull/517) ([@d-beezee](https://github.com/d-beezee) [@cannarocks](https://github.com/cannarocks))
19
+ - UN-1233-add-sentiment-to-transcript [#516](https://github.com/AppQuality/unguess-design-system/pull/516) ([@d-beezee](https://github.com/d-beezee))
20
+ - chore: Update and fix storybook version [#515](https://github.com/AppQuality/unguess-design-system/pull/515) ([@d-beezee](https://github.com/d-beezee))
21
+ - UN-1187 feat(button-menu): allow label to be a function for dynamic rendering [#514](https://github.com/AppQuality/unguess-design-system/pull/514) ([@d-beezee](https://github.com/d-beezee))
22
+
23
+ #### Authors: 2
24
+
25
+ - [@d-beezee](https://github.com/d-beezee)
26
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
27
+
28
+ ---
29
+
1
30
  # v4.0.35 (Mon Mar 31 2025)
2
31
 
3
32
  #### 🐛 Bug Fix
package/build/index.d.ts CHANGED
@@ -471,7 +471,7 @@ export declare const ButtonMenu: {
471
471
  };
472
472
 
473
473
  declare interface ButtonMenuProps extends Omit<IMenuProps, "onChange" | "onSelect" | "button"> {
474
- label: string;
474
+ label: string | IMenuProps["button"];
475
475
  children: ReactNode;
476
476
  onSelect: (value?: string) => void;
477
477
  }
@@ -1195,6 +1195,11 @@ declare const DefaultSentenceWrapper: ({ setCurrentTime, children, start, end, i
1195
1195
  isActive?: boolean | undefined;
1196
1196
  }) => JSX_2.Element;
1197
1197
 
1198
+ declare const DefaultSentimentWrapper: ({ value, text, }: {
1199
+ value: number;
1200
+ text: string;
1201
+ }) => JSX_2.Element;
1202
+
1198
1203
  declare const DefaultSpeakerWrapper: ({ start, end, setCurrentTime, speaker, totalSpeakers, }: {
1199
1204
  start: number;
1200
1205
  end: number;
@@ -8459,6 +8464,13 @@ declare type SentimentData = {
8459
8464
  }[];
8460
8465
  };
8461
8466
 
8467
+ declare type SentimentType = {
8468
+ start: number;
8469
+ end: number;
8470
+ value: number;
8471
+ text: string;
8472
+ };
8473
+
8462
8474
  export declare const Separator: (props: LiHTMLAttributes<HTMLLIElement>) => JSX_2.Element;
8463
8475
 
8464
8476
  export declare const ServiceCard: (props: ServiceCardsProps) => JSX_2.Element;
@@ -12075,6 +12087,7 @@ declare interface ThemeOptions {
12075
12087
  activeWrapper: typeof DefaultActiveWrapper;
12076
12088
  observationWrapper: typeof DefaultObservationWrapper;
12077
12089
  paragraphWrapper: typeof DefaultParagraphWrapper;
12090
+ sentimentWrapper: typeof DefaultSentimentWrapper;
12078
12091
  speakerWrapper: typeof DefaultSpeakerWrapper;
12079
12092
  sentencesWrapper: typeof DefaultSentencesWrapper;
12080
12093
  sentenceWrapper: typeof DefaultSentenceWrapper;
@@ -12498,7 +12511,7 @@ export declare const Transcript: {
12498
12511
  ({ editor }: {
12499
12512
  editor: Editor_2;
12500
12513
  }): JSX_2.Element | null;
12501
- useEditor: ({ content, observations, translations, currentTime, onSetCurrentTime, themeExtension, isEditable, numberOfSpeakers, }: {
12514
+ useEditor: ({ content, observations, translations, currentTime, onSetCurrentTime, themeExtension, isEditable, numberOfSpeakers, sentiments, }: {
12502
12515
  content?: ParagraphType[] | undefined;
12503
12516
  observations?: ObservationType[] | undefined;
12504
12517
  translations?: SentenceType[] | undefined;
@@ -12507,6 +12520,7 @@ export declare const Transcript: {
12507
12520
  themeExtension?: Extension_2<any, any> | undefined;
12508
12521
  isEditable?: boolean | undefined;
12509
12522
  numberOfSpeakers?: number | undefined;
12523
+ sentiments?: SentimentType[] | undefined;
12510
12524
  }, deps?: DependencyList | undefined) => Editor_2 | null;
12511
12525
  Search: {
12512
12526
  ({ editor, placeholder, }: {