jamespot-react-components 1.0.240 → 1.0.242

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.
@@ -11,6 +11,7 @@ import * as React from 'react';
11
11
  export interface JRCFormLabelProps extends React.ComponentPropsWithoutRef<'label'> {
12
12
  htmlFor?: string;
13
13
  labelIsLegend?: boolean;
14
+ sideMargin?: string | undefined;
14
15
  }
15
16
  declare const FormLabel: (props: JRCFormLabelProps) => React.JSX.Element;
16
17
  export default FormLabel;
@@ -40,6 +40,7 @@ export type JRCFormFieldRendererProps<T extends FieldValues = FieldValues> = Fie
40
40
  rules?: FormControls & JRCFormControls;
41
41
  rulesValidate?: RegisterOptions<T>['validate'];
42
42
  margin?: string | undefined;
43
+ labelMargin?: string | undefined;
43
44
  width?: string | undefined;
44
45
  readOnly?: boolean;
45
46
  noLabel?: boolean;
@@ -51,6 +52,7 @@ export type JRCInputFieldProps<T extends FieldValues = FieldValues> = FieldRende
51
52
  rules?: FormControls;
52
53
  rulesValidate?: RegisterOptions<T>['validate'];
53
54
  margin?: string | undefined;
55
+ labelMargin?: string | undefined;
54
56
  width?: string | undefined;
55
57
  readOnly?: boolean;
56
58
  noLabel?: boolean;
@@ -1,4 +1,4 @@
1
- import { Model, UpdateCommentParams, WidgetDisplayMode, WidgetWrapperProps, JFilebankApi, JFileApi, JSocialActionApi, JUserApi, WithSocialActions } from 'jamespot-user-api';
1
+ import { Model, UpdateCommentParams, WidgetDisplayMode, WidgetWrapperProps, JFilebankApi, JFileApi, JSocialActionApi, JUserApi, WithExtension } from 'jamespot-user-api';
2
2
  import { jCommentList } from 'jamespot-user-api/lib/src/types/comment';
3
3
  import React from 'react';
4
4
  import { DriveOrFilebank, JRCInputTinyMCERawProps } from 'types';
@@ -6,7 +6,7 @@ import { JDriveApi } from 'jamespot-user-api/lib/src/apis/drive/drive';
6
6
  import { JQuestionAnswerApi } from 'jamespot-user-api/lib/src/apis/questionAnswer/questionAnswer';
7
7
  export type JRCCommentProps = {
8
8
  isFocused: boolean;
9
- comment: WithSocialActions<jCommentList> & {
9
+ comment: WithExtension<jCommentList> & {
10
10
  pending?: boolean;
11
11
  };
12
12
  token?: string;
@@ -1,4 +1,4 @@
1
- import { AddCommentParams, Model, UpdateCommentParams, WidgetDisplayMode, WidgetWrapperProps, jUserList, JFilebankApi, JFileApi, JSocialActionApi, JUserApi, WithSocialActions } from 'jamespot-user-api';
1
+ import { AddCommentParams, Model, UpdateCommentParams, WidgetDisplayMode, WidgetWrapperProps, jUserList, JFilebankApi, JFileApi, JSocialActionApi, JUserApi, WithExtension } from 'jamespot-user-api';
2
2
  import { jCommentList } from 'jamespot-user-api/lib/src/types/comment';
3
3
  import React from 'react';
4
4
  import { JRCInputTinyMCERawProps } from '../Form/Input/JRCInputTinyMCERaw/JRCInputTinyMCERaw';
@@ -7,7 +7,7 @@ import { JDriveApi } from 'jamespot-user-api/lib/src/apis/drive/drive';
7
7
  import { JQuestionAnswerApi } from 'jamespot-user-api/lib/src/apis/questionAnswer/questionAnswer';
8
8
  import { TinyMCEExtension } from '../Form/Input/JRCInputTinyMCERaw/extensions/JTinyMCEExtensions';
9
9
  export type JRCCommentsBlocProps = {
10
- comments?: Array<WithSocialActions<jCommentList> & {
10
+ comments?: Array<WithExtension<jCommentList> & {
11
11
  pending?: boolean;
12
12
  }>;
13
13
  initialCommentsNumber?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.0.240",
3
+ "version": "1.0.242",
4
4
  "description": "",
5
5
  "main": "./build/jamespot-react-components.js",
6
6
  "types": "./build/src/index.d.ts",
@@ -80,7 +80,7 @@
80
80
  "chroma-js": "^2.1.1",
81
81
  "classnames": "^2.3.1",
82
82
  "dompurify": "^3.0.5",
83
- "jamespot-user-api": "^1.0.215",
83
+ "jamespot-user-api": "^1.0.216",
84
84
  "moment": "2.29.4",
85
85
  "react": "^17.x",
86
86
  "react-beautiful-dnd": "^13.1.1",