jamespot-react-components 1.0.225 → 1.0.227

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,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { JRCFormFieldRendererProps } from './JRCFormFieldRenderer.types';
3
3
  import { FieldValues } from 'react-hook-form';
4
4
  export declare function JRCFormFieldRenderer<TFieldValues extends FieldValues = FieldValues>(props: JRCFormFieldRendererProps<TFieldValues>): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
3
3
  import { DataCy } from '../../../../types/dataAttributes';
4
4
  import { FieldValues } from 'react-hook-form/dist/types';
@@ -15,5 +15,6 @@ export type JRCCropImageProps = Pick<JRCModalProps, 'open' | 'closeHandler'> & {
15
15
  rotation: number;
16
16
  }) => void;
17
17
  zIndex?: number;
18
+ loading?: boolean;
18
19
  };
19
20
  export declare function JRCCropImage({ save, ...props }: JRCCropImageProps): React.JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  type EmptySpaceBgColor = 'sandLight' | 'sky15' | 'transparent';
3
3
  export type JRCEmptySpaceProps = {
4
- img: string;
4
+ img?: string;
5
5
  imgAlt?: string;
6
6
  title: string;
7
7
  description?: string;
@@ -2,6 +2,7 @@ import * as React from 'react';
2
2
  type FontAwesomeOptions = {
3
3
  style?: 'solid' | 'regular' | 'brands';
4
4
  };
5
+ type IconVariant = 'default' | 'circle' | 'square';
5
6
  /**
6
7
  * Props type for JRCIcon
7
8
  * @property name string: Name of the icon (required)
@@ -17,7 +18,7 @@ export interface JRCIconProps {
17
18
  /** Color */
18
19
  color?: string;
19
20
  /** background color */
20
- variant?: 'default' | 'circle' | 'square';
21
+ variant?: IconVariant;
21
22
  /** Defined the icon's dimensions */
22
23
  size?: number;
23
24
  /** margin */
@@ -11,6 +11,7 @@ export type JRCContainerProps = {
11
11
  mode?: LayoutMode;
12
12
  maxWidth?: string;
13
13
  flexDirection?: FlexDirection;
14
+ hasPadding?: boolean;
14
15
  };
15
16
  export type JRCColumnProps = {
16
17
  children: React.ReactNode;
@@ -101,6 +101,7 @@ export { JRCColumnCenter } from './components/JRCColumnCenter/JRCColumnCenter';
101
101
  export { JRCColumnLeft } from './components/JRCColumnLeft/JRCColumnLeft';
102
102
  export { JRCColumnRight } from './components/JRCColumnRight/JRCColumnRight';
103
103
  export { JRCCommentsBloc } from './components/JRCCommentsBloc/JRCCommentsBloc';
104
+ export { JRCCropImage } from './components/JRCCropImage/JRCCropImage';
104
105
  export { JRCDate } from './components/JRCDate/JRCDate';
105
106
  export { JRCDisplayCard } from './components/JRCDisplayCard/JRCDisplayCard';
106
107
  export { JRCDropDown } from './components/JRCDropDown/JRCDropDown';
@@ -200,4 +201,4 @@ export { JTinyMCEExtensionsBuilders } from './components/Form/Input/JRCInputTiny
200
201
  *
201
202
  */
202
203
  export * from './types';
203
- export * as Utils from './utils';
204
+ export { Utils } from './utils';
@@ -10,4 +10,56 @@ import * as object from './utils.object';
10
10
  import * as regexp from './utils.regexp';
11
11
  import * as string from './utils.string';
12
12
  import * as time from './utils.time';
13
- export { array, color, date, document, file, icons, image, misc, object, regexp, string, time };
13
+ export declare const Utils: {
14
+ array: typeof array;
15
+ color: typeof color;
16
+ date: typeof date;
17
+ document: typeof document;
18
+ file: typeof file;
19
+ icons: typeof icons;
20
+ image: typeof image;
21
+ misc: typeof misc;
22
+ object: typeof object;
23
+ regexp: typeof regexp;
24
+ string: typeof string;
25
+ time: typeof time;
26
+ tinymce: {
27
+ initTinyMCEOptions: (dynamicOptions: {
28
+ language: string;
29
+ cache_suffix: string;
30
+ toolbar: string;
31
+ content_css: string;
32
+ quickbars_selection_toolbar: string;
33
+ }) => {
34
+ height: number;
35
+ language: string;
36
+ cache_suffix: string;
37
+ toolbar: string;
38
+ content_css: string;
39
+ quickbars_selection_toolbar: string;
40
+ plugins: string[];
41
+ text_patterns: {
42
+ start: string;
43
+ end?: string | undefined;
44
+ format?: string | undefined;
45
+ cmd?: string | undefined;
46
+ }[];
47
+ menubar: boolean;
48
+ branding: boolean;
49
+ skin: string;
50
+ convert_urls: boolean;
51
+ invalid_elements: string;
52
+ extended_valid_elements: string;
53
+ custom_elements: string;
54
+ inline_boundaries_selector: string;
55
+ toolbar_mode: "scrolling" | "wrap" | "floating" | "sliding";
56
+ promotion: boolean;
57
+ font_size_formats: string;
58
+ contextmenu: string | false;
59
+ paste_data_images: boolean;
60
+ browser_spellcheck: boolean;
61
+ quickbars_insert_toolbar: boolean;
62
+ license_key: "gpl";
63
+ };
64
+ };
65
+ };
@@ -0,0 +1,2 @@
1
+ import { ValidationRule } from 'react-hook-form';
2
+ export declare const formRuleMaxLength: (rule: ValidationRule<number> | undefined) => number | undefined;
@@ -1,2 +1,3 @@
1
- import { TinyMCECommonOptions } from 'jamespot-user-api';
1
+ import { TinyMCECommonOptions, TinyMCEDynamicOptions } from 'jamespot-user-api';
2
+ export declare const initTinyMCEOptions: (dynamicOptions: TinyMCEDynamicOptions) => TinyMCECommonOptions;
2
3
  export declare const tinyMCEOptions_mock: TinyMCECommonOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.0.225",
3
+ "version": "1.0.227",
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.204",
83
+ "jamespot-user-api": "^1.0.205",
84
84
  "moment": "2.29.4",
85
85
  "react": "^17.x",
86
86
  "react-beautiful-dnd": "^13.1.1",