jamespot-react-components 1.0.159 → 1.0.161

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.
@@ -22,6 +22,8 @@ export type NativeInputImageProps = DataCy & Omit<React.ComponentPropsWithoutRef
22
22
  onChange: (files: jFileLittle | undefined) => void;
23
23
  disableCrop?: boolean;
24
24
  buttonsPosition?: 'inside' | 'under';
25
+ allowCustomRatio?: boolean;
26
+ zIndex?: number;
25
27
  };
26
28
  export type JRCInputImageProps<T extends FieldValues = FieldValues> = JRCInputFieldProps<T> & Omit<NativeInputImageProps, 'value' | 'onChange'>;
27
29
  /**
@@ -12,6 +12,6 @@ export declare const DropZoneButton: import("styled-components").StyledComponent
12
12
  }, never>;
13
13
  export declare const DropZoneImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {}, never>;
14
14
  export declare const ImageButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
15
- aspectRatio: number;
15
+ aspectRatio?: number | undefined;
16
16
  }, never>;
17
17
  export declare const Img: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {}, never>;
@@ -19,10 +19,11 @@ export type JRCInputTinyMCEProps = DataCy & {
19
19
  onBlur?: () => void;
20
20
  onChange: (v: string) => void;
21
21
  ref?: LegacyRef<Editor>;
22
+ tinymceScriptSrc?: string;
22
23
  mentionsQueries: {
23
24
  users: MentionQuery;
24
25
  tags: MentionQuery;
25
26
  contents: MentionQuery;
26
27
  };
27
28
  };
28
- export declare const JRCInputTinyMCE: ({ dataCy, token, value, onBlur, onChange, mentionsQueries, ref, ...props }: JRCInputTinyMCEProps) => React.JSX.Element;
29
+ export declare const JRCInputTinyMCE: ({ dataCy, token, value, onBlur, onChange, mentionsQueries, tinymceScriptSrc, ref, ...props }: JRCInputTinyMCEProps) => React.JSX.Element;
@@ -6,9 +6,11 @@ export type Point = _Point;
6
6
  export type Area = _Area;
7
7
  export type JRCCropImageProps = Pick<JRCModalProps, 'open' | 'closeHandler'> & {
8
8
  aspectRatio?: number | undefined;
9
+ allowCustomRatio?: boolean;
9
10
  src?: string | undefined;
10
11
  save: (cropConfig: Area & {
11
12
  rotation: number;
12
13
  }) => void;
14
+ zIndex?: number;
13
15
  };
14
16
  export declare function JRCCropImage(props: JRCCropImageProps): React.JSX.Element;
@@ -50,6 +50,10 @@ export type ThemeType = {
50
50
  weight: FontWeight;
51
51
  };
52
52
  color: ThemeConfigColorType & ThemeConfigShadeType;
53
+ zIndex: {
54
+ tinyMCEModal: number;
55
+ modal: number;
56
+ };
53
57
  };
54
58
  export declare function getColor(theme: ThemeType, color: string): string;
55
59
  declare const Theme: ITheme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.0.159",
3
+ "version": "1.0.161",
4
4
  "description": "",
5
5
  "main": "./build/jamespot-react-components.js",
6
6
  "types": "./build/src/index.d.ts",
@@ -92,7 +92,7 @@
92
92
  "chroma-js": "^2.1.1",
93
93
  "classnames": "^2.3.1",
94
94
  "dompurify": "^3.0.5",
95
- "jamespot-user-api": "^1.0.128",
95
+ "jamespot-user-api": "^1.0.131",
96
96
  "moment": "2.29.4",
97
97
  "react": "^17.x",
98
98
  "react-beautiful-dnd": "^13.1.1",