jamespot-react-components 1.0.232 → 1.0.234

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.
@@ -1,10 +1,9 @@
1
1
  import * as React from 'react';
2
- import { JRCIconProps } from '../JRCIcon/JRCIcon';
3
2
  import { ButtonType } from './JRCButtonConfig';
4
3
  import { DataCy } from '../../types/dataAttributes';
5
4
  import { DashedFocusBorderProps } from '../Common/DashedFocusBorder';
6
5
  import { JRCTooltipProps } from '../JRCTooltip/JRCTooltip';
7
- export type ButtonColors = 'primary' | 'valid' | 'danger' | 'secondary' | 'cancel';
6
+ export type ButtonColors = 'primary' | 'valid' | 'danger' | 'secondary' | 'cancel' | 'neutral' | 'white';
8
7
  export type JRCButtonProps = React.ComponentPropsWithoutRef<'button'> & DataCy & {
9
8
  /** Color of the background of the button */
10
9
  color?: ButtonColors;
@@ -34,7 +33,6 @@ export type JRCButtonProps = React.ComponentPropsWithoutRef<'button'> & DataCy &
34
33
  noMargin?: boolean;
35
34
  size?: 'm' | 's';
36
35
  };
37
- export declare const transformColor: (color?: string) => JRCIconProps['color'];
38
36
  /**
39
37
  * Button styling. May be used as a <a> tag
40
38
  */
@@ -2,7 +2,7 @@ import { Colors, ColorsOrShades } from '../../styles/theme';
2
2
  import { ButtonColors } from './JRCButton';
3
3
  export type ButtonType = {
4
4
  color: Colors;
5
- background: Colors;
5
+ background: ColorsOrShades;
6
6
  border: Colors;
7
7
  active: {
8
8
  background: ColorsOrShades;
@@ -6,7 +6,9 @@ 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: jCommentList;
9
+ comment: jCommentList & {
10
+ pending?: boolean;
11
+ };
10
12
  token?: string;
11
13
  tinyMCEConfig: Pick<JRCInputTinyMCERawProps, 'commonOptions' | 'mentionsQueries' | 'tinymceScriptSrc'>;
12
14
  onCommentUpdate: (args: UpdateCommentParams) => Promise<void>;
@@ -7,7 +7,9 @@ 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?: jCommentList[];
10
+ comments?: Array<jCommentList & {
11
+ pending?: boolean;
12
+ }>;
11
13
  initialCommentsNumber?: number;
12
14
  currentUser: jUserList;
13
15
  tinyMCEConfig: Pick<JRCInputTinyMCERawProps, 'commonOptions' | 'mentionsQueries' | 'tinymceScriptSrc'>;
@@ -18,7 +18,7 @@ export type ThemeConfigOptions = {
18
18
  navTextColor: string;
19
19
  bgColorNotLogged: string;
20
20
  };
21
- export type Colors = 'primary' | 'secondary' | 'headerColor' | 'headerTextColor' | 'headerUserBackground' | 'headerUserTextColor' | 'headerSearchBarTextColor' | 'headerSearchBarBackgroundColor' | 'navBackground' | 'navTextColor' | 'lavender' | 'orange' | 'yellow' | 'green' | 'navy' | 'overseas' | 'night1' | 'night2' | 'sandLight' | 'sky' | 'sky15' | 'sand' | 'grey0' | 'grey1' | 'grey2' | 'grey3' | 'grey4' | 'grey5' | 'grey6' | 'black' | 'black10' | 'black15' | 'black20' | 'white';
21
+ export type Colors = 'primary' | 'secondary' | 'headerColor' | 'headerTextColor' | 'headerUserBackground' | 'headerUserTextColor' | 'headerSearchBarTextColor' | 'headerSearchBarBackgroundColor' | 'navBackground' | 'navTextColor' | 'lavender' | 'orange' | 'yellow' | 'green' | 'navy' | 'overseas' | 'night1' | 'night2' | 'sandLight' | 'sky' | 'sky15' | 'sand' | 'grey0' | 'grey1' | 'grey2' | 'grey3' | 'grey4' | 'grey5' | 'grey6' | 'black' | 'black10' | 'black15' | 'black20' | 'white' | 'transparent';
22
22
  type ThemeConfigColorType = {
23
23
  [color in Colors]: string;
24
24
  };
@@ -30,6 +30,8 @@ export declare const Utils: {
30
30
  toolbar: string;
31
31
  content_css: string;
32
32
  quickbars_selection_toolbar: string;
33
+ sandbox_iframes?: boolean | undefined;
34
+ sandbox_iframes_exclusions?: string[] | undefined;
33
35
  }) => {
34
36
  height: number;
35
37
  language: string;
@@ -60,6 +62,8 @@ export declare const Utils: {
60
62
  browser_spellcheck: boolean;
61
63
  quickbars_insert_toolbar: boolean;
62
64
  license_key: "gpl";
65
+ sandbox_iframes?: boolean | undefined;
66
+ sandbox_iframes_exclusions?: string[] | undefined;
63
67
  };
64
68
  };
65
69
  html: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.0.232",
3
+ "version": "1.0.234",
4
4
  "description": "",
5
5
  "main": "./build/jamespot-react-components.js",
6
6
  "types": "./build/src/index.d.ts",
@@ -37,7 +37,7 @@
37
37
  "@types/react-slick": "^0.23.4",
38
38
  "@types/react-table": "^7.7.3",
39
39
  "@types/react-test-renderer": "^17.0.1",
40
- "@types/redux-form": "^8.3.5",
40
+ "@types/redux-form": "8.3.11",
41
41
  "@types/styled-components": "^5.1.4",
42
42
  "@types/testing-library__jest-dom": "^5.12.0",
43
43
  "@types/tinymce": "^4.6.7",
@@ -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.209",
83
+ "jamespot-user-api": "^1.0.210",
84
84
  "moment": "2.29.4",
85
85
  "react": "^17.x",
86
86
  "react-beautiful-dnd": "^13.1.1",
@@ -96,8 +96,8 @@
96
96
  "react-slick": "^0.28.1",
97
97
  "react-table": "^7.7.0",
98
98
  "react-tooltip": "^4.2.21",
99
- "redux": "^4.2.0",
100
- "redux-form": "^8.x",
99
+ "redux": "4.2.0",
100
+ "redux-form": "8.3.10",
101
101
  "slick-carousel": "^1.8.1",
102
102
  "styled-components": "^5.2.1",
103
103
  "styled-reset": "^4.2.3",