@appquality/unguess-design-system 3.1.60 → 3.1.61

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,16 @@
1
+ # v3.1.61 (Fri Dec 29 2023)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Improve chat spacing and save behaviour [#288](https://github.com/AppQuality/unguess-design-system/pull/288) ([@cannarocks](https://github.com/cannarocks))
6
+ - Update-chat-spaces [#287](https://github.com/AppQuality/unguess-design-system/pull/287) ([@cannarocks](https://github.com/cannarocks))
7
+
8
+ #### Authors: 1
9
+
10
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
11
+
12
+ ---
13
+
1
14
  # v3.1.60 (Fri Dec 29 2023)
2
15
 
3
16
  #### 🐛 Bug Fix
package/build/index.js CHANGED
@@ -2302,18 +2302,18 @@ const useChatContext = () => {
2302
2302
  };
2303
2303
 
2304
2304
  const ChatContainer = styled__default["default"](Card) `
2305
- padding: ${({ theme }) => theme.space.md};
2305
+ padding: ${({ theme }) => `0 ${theme.space.base * 4}px`};
2306
2306
  &:hover {
2307
2307
  box-shadow: none;
2308
2308
  }
2309
2309
  cursor: default;
2310
2310
  `;
2311
2311
  const MessagesContainer = styled__default["default"].div `
2312
- padding: ${({ theme }) => theme.space.md};
2313
- margin: ${({ theme }) => `0 -${theme.space.md}`};
2312
+ padding: ${({ theme }) => `${theme.space.md} ${theme.space.sm}`};
2313
+ margin: ${({ theme }) => `0 -${theme.space.base * 4}px`};
2314
2314
  display: flex;
2315
2315
  flex-direction: column;
2316
- gap: ${({ theme }) => theme.space.sm};
2316
+ gap: ${({ theme }) => theme.space.xs};
2317
2317
  background: ${({ chatBkg }) => chatBkg !== null && chatBkg !== void 0 ? chatBkg : `#fff`};
2318
2318
  overflow-y: auto;
2319
2319
  `;
@@ -2326,7 +2326,7 @@ const Title$1 = (props) => jsxRuntime.jsx(reactNotifications.Title, Object.assig
2326
2326
  const ChatTitle = styled__default["default"](Title$1) `
2327
2327
  color: ${({ theme }) => theme.palette.blue[600]};
2328
2328
  margin: ${({ theme }) => `0 -${theme.space.md}`};
2329
- padding: ${({ theme }) => `0 ${theme.space.md} ${theme.space.sm}`};
2329
+ padding: ${({ theme }) => `${theme.space.sm} ${theme.space.md}`};
2330
2330
  border-bottom: ${({ theme }) => `1px solid ${theme.palette.grey[200]}`};
2331
2331
  `;
2332
2332
 
@@ -2747,13 +2747,13 @@ const FloatingMenu = (props) => {
2747
2747
  const ChatBoxContainer = styled__default["default"].div `
2748
2748
  display: flex;
2749
2749
  border-top: 1px solid ${({ theme }) => theme.palette.grey[200]};
2750
- margin: ${({ theme }) => `0 -${theme.space.md}`};
2751
- padding: ${({ theme }) => theme.space.md};
2750
+ margin: ${({ theme }) => `0 -${theme.space.base * 4}px`};
2751
+ padding: ${({ theme }) => `${theme.space.base * 4}px ${theme.space.sm} 0`};
2752
2752
  `;
2753
2753
  const EditorContainer$1 = styled__default["default"](reactForms.FauxInput) `
2754
2754
  margin-left: ${({ theme }) => theme.space.sm};
2755
+ padding: ${({ theme }) => `${theme.space.xxs} ${theme.space.xs}`};
2755
2756
  .ProseMirror {
2756
- padding: ${({ theme }) => `${theme.space.xxs} ${theme.space.xs}`};
2757
2757
  background-color: #fff;
2758
2758
  min-height: 36px;
2759
2759
  outline: none;
@@ -2779,10 +2779,11 @@ const CommentBox = (_a) => {
2779
2779
  var _b;
2780
2780
  var { placeholderOptions } = _a, props = __rest(_a, ["placeholderOptions"]);
2781
2781
  const { children, hasInlineMenu, bubbleOptions, author } = props;
2782
- const { setEditor, triggerSave } = useChatContext();
2782
+ const { editor, setEditor, triggerSave } = useChatContext();
2783
2783
  const onKeyDown = (event) => {
2784
2784
  if ((event.ctrlKey || event.metaKey) && event.key === "Enter") {
2785
2785
  triggerSave();
2786
+ editor === null || editor === void 0 ? void 0 : editor.commands.clearContent();
2786
2787
  }
2787
2788
  };
2788
2789
  const ed = react.useEditor(Object.assign({ extensions: [
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ButtonArgs } from "./_types";
2
3
  export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ButtonArgs>;
3
4
  export declare const Basic: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ButtonArgs>;
@@ -8,18 +8,18 @@ export declare const variants: readonly [{}, {
8
8
  readonly disabled: true;
9
9
  }];
10
10
  export declare const Row: import("styled-components").IStyledComponent<"web", {
11
- alignItems?: "start" | "center" | "end" | "baseline" | "stretch" | undefined;
12
- alignItemsXs?: "start" | "center" | "end" | "baseline" | "stretch" | undefined;
13
- alignItemsSm?: "start" | "center" | "end" | "baseline" | "stretch" | undefined;
14
- alignItemsMd?: "start" | "center" | "end" | "baseline" | "stretch" | undefined;
15
- alignItemsLg?: "start" | "center" | "end" | "baseline" | "stretch" | undefined;
16
- alignItemsXl?: "start" | "center" | "end" | "baseline" | "stretch" | undefined;
17
- justifyContent?: "start" | "center" | "end" | "between" | "around" | undefined;
18
- justifyContentXs?: "start" | "center" | "end" | "between" | "around" | undefined;
19
- justifyContentSm?: "start" | "center" | "end" | "between" | "around" | undefined;
20
- justifyContentMd?: "start" | "center" | "end" | "between" | "around" | undefined;
21
- justifyContentLg?: "start" | "center" | "end" | "between" | "around" | undefined;
22
- justifyContentXl?: "start" | "center" | "end" | "between" | "around" | undefined;
11
+ alignItems?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
12
+ alignItemsXs?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
13
+ alignItemsSm?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
14
+ alignItemsMd?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
15
+ alignItemsLg?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
16
+ alignItemsXl?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
17
+ justifyContent?: "center" | "start" | "end" | "between" | "around" | undefined;
18
+ justifyContentXs?: "center" | "start" | "end" | "between" | "around" | undefined;
19
+ justifyContentSm?: "center" | "start" | "end" | "between" | "around" | undefined;
20
+ justifyContentMd?: "center" | "start" | "end" | "between" | "around" | undefined;
21
+ justifyContentLg?: "center" | "start" | "end" | "between" | "around" | undefined;
22
+ justifyContentXl?: "center" | "start" | "end" | "between" | "around" | undefined;
23
23
  wrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
24
24
  wrapXs?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
25
25
  wrapSm?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
@@ -73,7 +73,7 @@ export declare const Row: import("styled-components").IStyledComponent<"web", {
73
73
  results?: number | undefined;
74
74
  security?: string | undefined;
75
75
  unselectable?: "on" | "off" | undefined;
76
- inputMode?: "decimal" | "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | undefined;
76
+ inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
77
77
  is?: string | undefined;
78
78
  "aria-activedescendant"?: string | undefined;
79
79
  "aria-atomic"?: (boolean | "true" | "false") | undefined;
@@ -299,18 +299,18 @@ export declare const Col: import("styled-components").IStyledComponent<"web", {
299
299
  md?: string | number | boolean | undefined;
300
300
  lg?: string | number | boolean | undefined;
301
301
  xl?: string | number | boolean | undefined;
302
- alignSelf?: "start" | "center" | "end" | "baseline" | "stretch" | "auto" | undefined;
303
- alignSelfXs?: "start" | "center" | "end" | "baseline" | "stretch" | "auto" | undefined;
304
- alignSelfSm?: "start" | "center" | "end" | "baseline" | "stretch" | "auto" | undefined;
305
- alignSelfMd?: "start" | "center" | "end" | "baseline" | "stretch" | "auto" | undefined;
306
- alignSelfLg?: "start" | "center" | "end" | "baseline" | "stretch" | "auto" | undefined;
307
- alignSelfXl?: "start" | "center" | "end" | "baseline" | "stretch" | "auto" | undefined;
308
- textAlign?: "start" | "center" | "end" | "justify" | undefined;
309
- textAlignXs?: "start" | "center" | "end" | "justify" | undefined;
310
- textAlignSm?: "start" | "center" | "end" | "justify" | undefined;
311
- textAlignMd?: "start" | "center" | "end" | "justify" | undefined;
312
- textAlignLg?: "start" | "center" | "end" | "justify" | undefined;
313
- textAlignXl?: "start" | "center" | "end" | "justify" | undefined;
302
+ alignSelf?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
303
+ alignSelfXs?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
304
+ alignSelfSm?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
305
+ alignSelfMd?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
306
+ alignSelfLg?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
307
+ alignSelfXl?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
308
+ textAlign?: "center" | "start" | "end" | "justify" | undefined;
309
+ textAlignXs?: "center" | "start" | "end" | "justify" | undefined;
310
+ textAlignSm?: "center" | "start" | "end" | "justify" | undefined;
311
+ textAlignMd?: "center" | "start" | "end" | "justify" | undefined;
312
+ textAlignLg?: "center" | "start" | "end" | "justify" | undefined;
313
+ textAlignXl?: "center" | "start" | "end" | "justify" | undefined;
314
314
  offset?: string | number | undefined;
315
315
  offsetXs?: string | number | undefined;
316
316
  offsetSm?: string | number | undefined;
@@ -370,7 +370,7 @@ export declare const Col: import("styled-components").IStyledComponent<"web", {
370
370
  results?: number | undefined;
371
371
  security?: string | undefined;
372
372
  unselectable?: "on" | "off" | undefined;
373
- inputMode?: "decimal" | "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | undefined;
373
+ inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
374
374
  is?: string | undefined;
375
375
  "aria-activedescendant"?: string | undefined;
376
376
  "aria-atomic"?: (boolean | "true" | "false") | undefined;
@@ -640,7 +640,7 @@ export declare const MD: import("styled-components").IStyledComponent<"web", {
640
640
  results?: number | undefined;
641
641
  security?: string | undefined;
642
642
  unselectable?: "on" | "off" | undefined;
643
- inputMode?: "decimal" | "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | undefined;
643
+ inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
644
644
  is?: string | undefined;
645
645
  "aria-activedescendant"?: string | undefined;
646
646
  "aria-atomic"?: (boolean | "true" | "false") | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PlaceholderOptions } from "@tiptap/extension-placeholder";
2
3
  import { Editor as TipTapEditor } from "@tiptap/react";
3
4
  import { ChatEditorArgs } from "./_types";
@@ -1,4 +1,4 @@
1
- import { ReactNode } from "react";
1
+ /// <reference types="react" />
2
2
  export declare const ChatTitle: import("styled-components").IStyledComponent<"web", {
3
3
  isRegular?: boolean | undefined;
4
4
  defaultChecked?: boolean | undefined;
@@ -98,7 +98,7 @@ export declare const ChatTitle: import("styled-components").IStyledComponent<"we
98
98
  "aria-valuemin"?: number | undefined;
99
99
  "aria-valuenow"?: number | undefined;
100
100
  "aria-valuetext"?: string | undefined;
101
- children?: ReactNode;
101
+ children?: import("react").ReactNode;
102
102
  dangerouslySetInnerHTML?: {
103
103
  __html: string | TrustedHTML;
104
104
  } | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DropdownArgs, SelectArgs } from "./_types";
2
3
  import { MenuArgs } from "../menu/_types";
3
4
  interface IItem {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { EditorArgs } from "./_types";
2
3
  interface EditorStoryArgs extends EditorArgs {
3
4
  children?: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "3.1.60",
3
+ "version": "3.1.61",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",