jamespot-react-components 1.0.231 → 1.0.233

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.
@@ -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'>;
@@ -62,4 +62,7 @@ export declare const Utils: {
62
62
  license_key: "gpl";
63
63
  };
64
64
  };
65
+ html: {
66
+ htmlDecodeSpecialChars: (str: string) => string;
67
+ };
65
68
  };
@@ -1,3 +1,4 @@
1
1
  export declare const ALLOWED_ATTR: string[];
2
2
  export declare function sanitizeHtml(dirtyHtml?: string): string;
3
3
  export declare function validateStyles(styles: CSSStyleDeclaration): string[];
4
+ export declare const htmlDecodeSpecialChars: (str: string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.0.231",
3
+ "version": "1.0.233",
4
4
  "description": "",
5
5
  "main": "./build/jamespot-react-components.js",
6
6
  "types": "./build/src/index.d.ts",