@soul-refiner/design-system 1.6.16 → 1.7.2

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.
@@ -105,6 +105,7 @@ const Figure = styled.figure `
105
105
  img {
106
106
  max-width: 352px;
107
107
  aspect-ratio: 1/1;
108
+ object-fit: cover;
108
109
  }
109
110
 
110
111
  figure {
@@ -29,6 +29,7 @@ const Wrapper = styled.div `
29
29
  width: 100%;
30
30
  height: 100%;
31
31
  border-radius: 16px;
32
+ object-fit: cover;
32
33
  }
33
34
  `;
34
35
  const Shadow = styled.div `
@@ -26,6 +26,7 @@ const Wrapper = styled.div `
26
26
 
27
27
  img {
28
28
  border-radius: 16px 16px 0px 0px;
29
+ object-fit: cover;
29
30
  }
30
31
 
31
32
  ${({ $sx }) => ($sx ? $sx : '')};
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  export declare const EditorContext: React.Context<{
3
3
  commentInputLoader: (props: {
4
+ onComment: () => void;
4
5
  questionAnswerId: string;
5
6
  }) => React.ReactElement;
6
7
  commentLoader: (props: {
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { TElement } from '@udecode/plate';
3
3
  export interface EditorProps {
4
4
  commentInputLoader: (props: {
5
+ onComment: () => void;
5
6
  questionAnswerId: string;
6
7
  }) => React.ReactElement;
7
8
  commentLoader: (props: {
@@ -28,7 +28,7 @@ export const QuestionAnswerElement = React.forwardRef(({ children, element, ...p
28
28
  `, type: "text", ...{ contentEditable: false } }, showAnswers ? 'Hide answers' : 'Show answers'),
29
29
  React.createElement(HideButRender, { show: showAnswers },
30
30
  React.createElement(Comments, { questionAnswerId: questionAnswerId })),
31
- React.createElement(CommentInput, { questionAnswerId: questionAnswerId })))));
31
+ React.createElement(CommentInput, { questionAnswerId: questionAnswerId, onComment: () => setShowAnswers(true) })))));
32
32
  });
33
33
  const Question = styled.div `
34
34
  margin-bottom: 8px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soul-refiner/design-system",
3
- "version": "1.6.16",
3
+ "version": "1.7.2",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "publishConfig": {