jamespot-react-components 1.0.190 → 1.0.191

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.
@@ -14,12 +14,6 @@ export type TinyMention = {
14
14
  icon?: string;
15
15
  };
16
16
  export type MentionQuery = (query: string) => Promise<TinyMention[]>;
17
- export type JRCInputTinyMCEStyleWrapperProps = {
18
- linkColor?: string;
19
- fontSize?: string;
20
- lineHeight?: string;
21
- minHeight?: number;
22
- };
23
17
  export type JRCInputTinyMCERawProps = DataCy & {
24
18
  token?: string;
25
19
  commonOptions: TinyMCECommonOptions;
@@ -32,7 +26,6 @@ export type JRCInputTinyMCERawProps = DataCy & {
32
26
  autoFocus?: boolean;
33
27
  inline?: boolean;
34
28
  placeholder?: string;
35
- styleWrapper?: JRCInputTinyMCEStyleWrapperProps;
36
29
  mentionsQueries: {
37
30
  users: MentionQuery;
38
31
  tags: MentionQuery;
@@ -41,4 +34,4 @@ export type JRCInputTinyMCERawProps = DataCy & {
41
34
  height?: number;
42
35
  autofocus?: boolean;
43
36
  };
44
- export declare const JRCInputTinyMCERaw: ({ dataCy, token, value, onBlur, onChange, mentionsQueries, tinymceScriptSrc, autoFocus, inline, placeholder, styleWrapper, additionalExtensions, ref, height, autofocus, ...props }: JRCInputTinyMCERawProps) => React.JSX.Element;
37
+ export declare const JRCInputTinyMCERaw: ({ dataCy, token, value, onBlur, onChange, mentionsQueries, tinymceScriptSrc, autoFocus, inline, placeholder, additionalExtensions, ref, height, autofocus, ...props }: JRCInputTinyMCERawProps) => React.JSX.Element;
@@ -31,6 +31,7 @@ export type JRCCommentsBlocProps = {
31
31
  onGetHashError: (message?: string) => void;
32
32
  activeDrives: DriveOrFilebank[];
33
33
  socialActionAdd: ({ targetId, targetType, type, }: AddRemoveActionParams) => ReturnType<typeof jamespot.socialAction.add>;
34
+ variant?: 'modal' | 'inline';
34
35
  };
35
36
  export declare const AvatarWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
36
- export declare const JRCCommentsBloc: ({ comments, initialCommentsNumber, currentUser, tinyMCEConfig, onComment, isWidgetActive, widgetListComponent, newWidgetsWrapperComponent, existingWidgetsWrapperComponent, loading, token, onCommentDelete, onCommentUpdate, fetchUser, fetchUserFields, deleteFile, fetchSocialActionUserList, removeLike, onError, highlightFields, userModel, userAccountStatus, isWedocActive, getAccessHash, onGetHashError, activeDrives, socialActionAdd, }: JRCCommentsBlocProps) => React.JSX.Element;
37
+ export declare const JRCCommentsBloc: ({ comments, initialCommentsNumber, currentUser, tinyMCEConfig, onComment, isWidgetActive, widgetListComponent, newWidgetsWrapperComponent, existingWidgetsWrapperComponent, loading, token, onCommentDelete, onCommentUpdate, fetchUser, fetchUserFields, deleteFile, fetchSocialActionUserList, removeLike, onError, highlightFields, userModel, userAccountStatus, isWedocActive, getAccessHash, onGetHashError, activeDrives, socialActionAdd, variant, }: JRCCommentsBlocProps) => React.JSX.Element;
@@ -34,5 +34,6 @@ export type JRCListProps<T extends Record<string, unknown>> = {
34
34
  orders?: Orders;
35
35
  };
36
36
  className?: string;
37
+ loading?: boolean;
37
38
  };
38
39
  export declare const JRCList: <T extends Record<string, unknown>>(props: JRCListProps<T>) => React.JSX.Element;
@@ -1,5 +1,7 @@
1
1
  import * as React from 'react';
2
- export declare const Table: import("styled-components").StyledComponent<"table", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const Table: import("styled-components").StyledComponent<"table", import("styled-components").DefaultTheme, {
3
+ loading?: boolean | undefined;
4
+ }, never>;
3
5
  export declare const Thead: import("styled-components").StyledComponent<"thead", import("styled-components").DefaultTheme, {}, never>;
4
6
  export declare const TBody: import("styled-components").StyledComponent<"tbody", import("styled-components").DefaultTheme, {}, never>;
5
7
  export declare const Th: import("styled-components").StyledComponent<"th", import("styled-components").DefaultTheme, {
@@ -14,5 +14,6 @@ export interface JRCModalLayoutProps {
14
14
  variant?: ModalVariant;
15
15
  overflow?: 'visible' | 'hidden';
16
16
  zIndex?: number;
17
+ minHeight?: string;
17
18
  }
18
19
  export declare const JRCModalLayout: React.ForwardRefExoticComponent<JRCModalLayoutProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { JRCModalProps } from './JRCModal.types';
3
- export declare const JRCModal: ({ children, open, closeHandler, buttons, title, options, portalId, inPlace, ref, zIndex, enableClickAwayCloseModal, }: JRCModalProps) => React.JSX.Element;
3
+ export declare const JRCModal: ({ children, open, closeHandler, buttons, title, options, portalId, inPlace, ref, zIndex, enableClickAwayCloseModal, variant, }: JRCModalProps) => React.JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import { FormEvent, ForwardedRef, ReactNode } from 'react';
2
2
  import { JRCModalButtonType } from '../JRCModalContent';
3
3
  import { JRCModalFormButtonType } from '../JRCModalContentForm';
4
+ import { ModalVariant } from '../JRCModalLayout';
4
5
  type JRCModalBaseProps = {
5
6
  title?: ReactNode;
6
7
  children?: ReactNode;
@@ -15,6 +16,7 @@ type JRCModalBaseProps = {
15
16
  };
16
17
  export type JRCModalProps = JRCModalBaseProps & {
17
18
  buttons?: JRCModalButtonType[];
19
+ variant?: ModalVariant;
18
20
  };
19
21
  export type JRCModalFormProps = JRCModalBaseProps & {
20
22
  buttons?: JRCModalFormButtonType[];
@@ -12,5 +12,6 @@ export type JRCSidePanelModalProps = {
12
12
  position: 'left' | 'right';
13
13
  footer?: ReactNode;
14
14
  removePadding?: boolean;
15
+ inplace?: boolean;
15
16
  };
16
17
  export declare const JRCSidePanelModal: React.ForwardRefExoticComponent<JRCSidePanelModalProps & React.RefAttributes<HTMLDivElement>>;
@@ -2,6 +2,7 @@ export type ModalBorderRadius = 'medium' | 'small';
2
2
  export declare const JRCModalBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
3
3
  position?: "left" | "right" | undefined;
4
4
  open?: boolean | undefined;
5
+ inplace?: boolean | undefined;
5
6
  }, never>;
6
7
  export declare const JRCModalTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
8
  export declare const JRCModalOptions: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -4,10 +4,6 @@ import { WidgetDisplayMode } from 'jamespot-user-api';
4
4
  import { TinyMCEExtension } from 'components/Form/Input/JRCInputTinyMCERaw/extensions/JTinyMCEExtensions';
5
5
  export type JRCWidgetArticleTextProps = {
6
6
  text: string;
7
- color: string;
8
- fontSize: string;
9
- lineHeight: string;
10
- linkColor: string;
11
7
  autoFocus?: boolean;
12
8
  token: string;
13
9
  mode?: WidgetDisplayMode;
@@ -15,4 +11,4 @@ export type JRCWidgetArticleTextProps = {
15
11
  additionalExtensions?: Array<TinyMCEExtension>;
16
12
  tinyMCECommonOptions?: Pick<JRCInputTinyMCERawProps, 'commonOptions' | 'mentionsQueries' | 'tinymceScriptSrc'>;
17
13
  };
18
- export declare const JRCWidgetArticleText: ({ text, linkColor, fontSize, lineHeight, autoFocus, token, mode, onChange, additionalExtensions, tinyMCECommonOptions, }: JRCWidgetArticleTextProps) => React.JSX.Element;
14
+ export declare const JRCWidgetArticleText: ({ text, autoFocus, token, mode, onChange, additionalExtensions, tinyMCECommonOptions, }: JRCWidgetArticleTextProps) => React.JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { WidgetArticleTextContent } from 'jamespot-user-api';
3
3
  import { JRCWidgetArticleTextProps } from './JRCWidgetArticleText';
4
- export declare const JRCWidgetArticleTextEditor: ({ content, onChange, onSave, }: {
4
+ export declare const JRCWidgetArticleTextEditor: ({ content, onSave, }: {
5
5
  content: WidgetArticleTextContent;
6
6
  onSave: (content: Partial<JRCWidgetArticleTextProps>) => void;
7
7
  onChange: (content: Partial<JRCWidgetArticleTextProps>, override?: boolean) => void;
@@ -7,11 +7,7 @@ export declare const CSSWrapperText: import("styled-components").StyledComponent
7
7
  heading?: string | undefined;
8
8
  fontSize?: string | undefined;
9
9
  }, never>;
10
- export declare const CSSText: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
11
- size?: string | undefined;
12
- lineHeight?: string | undefined;
13
- linkColor?: string | undefined;
14
- }, never>;
10
+ export declare const CSSText: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
15
11
  export declare const CSSForm: import("styled-components").StyledComponent<"form", import("styled-components").DefaultTheme, {}, never>;
16
12
  export declare const CSSTextareaWrapper: import("styled-components").StyledComponent<"form", import("styled-components").DefaultTheme, {}, never>;
17
13
  export declare const StyledTextarea: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
@@ -56,6 +56,7 @@ export type ThemeType = {
56
56
  modal: number;
57
57
  dropdown: number;
58
58
  toaster: number;
59
+ fullScreenContainer: number;
59
60
  };
60
61
  space: {
61
62
  xs: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.0.190",
3
+ "version": "1.0.191",
4
4
  "description": "",
5
5
  "main": "./build/jamespot-react-components.js",
6
6
  "types": "./build/src/index.d.ts",
@@ -93,7 +93,7 @@
93
93
  "chroma-js": "^2.1.1",
94
94
  "classnames": "^2.3.1",
95
95
  "dompurify": "^3.0.5",
96
- "jamespot-user-api": "^1.0.162",
96
+ "jamespot-user-api": "^1.0.163",
97
97
  "moment": "2.29.4",
98
98
  "react": "^17.x",
99
99
  "react-beautiful-dnd": "^13.1.1",