jamespot-react-components 1.0.194 → 1.0.195

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,8 +1,14 @@
1
1
  import React from 'react';
2
2
  import { WidgetArticleTitleContent, WidgetDisplayMode } from 'jamespot-user-api';
3
- export declare const JRCWidgetArticleTitle: ({ text, color, heading, autoFocus, inplace, mode, onChange, }: WidgetArticleTitleContent & {
3
+ export declare const JRCWidgetArticleTitle: ({ text, color, heading, autoFocus, inplace, mode, onChange, }: {
4
+ text?: string | undefined;
5
+ textAlign?: "center" | "left" | "right" | "justify" | undefined;
6
+ heading?: string | undefined;
7
+ color?: string | undefined;
8
+ backgroundColor?: string | undefined;
9
+ } & {
4
10
  autoFocus: boolean;
5
11
  inplace: boolean;
6
- mode?: WidgetDisplayMode | undefined;
12
+ mode?: "view" | "preview" | "edit" | undefined;
7
13
  onChange: (text: string) => void;
8
14
  }) => React.JSX.Element;
@@ -3,8 +3,28 @@ import { WidgetButtonProps } from 'jamespot-user-api';
3
3
  /**
4
4
  * Default widget button editor
5
5
  */
6
- export declare const JRCWidgetButtonEditor: <T extends {}>({ text, color, backgroundColor, borderRadius, variant, buttonSize, url, target, onChange, onSave, extendProperties, }: WidgetButtonProps & T & {
6
+ export declare const JRCWidgetButtonEditor: <T extends {}>({ text, color, backgroundColor, borderRadius, variant, buttonSize, url, target, onChange, onSave, extendProperties, }: {
7
+ text?: string | undefined;
8
+ color?: string | undefined;
9
+ backgroundColor?: string | undefined;
10
+ borderRadius?: string | undefined;
11
+ fontSize?: string | undefined;
12
+ buttonSize?: "sm" | "md" | "lg" | undefined;
13
+ variant?: "contained" | "outlined" | undefined;
14
+ url?: string | undefined;
15
+ target?: string | undefined;
16
+ } & T & {
7
17
  onChange: (content: Partial<WidgetButtonProps>) => void;
8
18
  onSave: (content?: Partial<WidgetButtonProps>) => void;
9
- extendProperties?: ((onChange: (content: Partial<WidgetButtonProps & T>) => void) => React.ReactNode) | undefined;
19
+ extendProperties?: ((onChange: (content: Partial<{
20
+ text?: string | undefined;
21
+ color?: string | undefined;
22
+ backgroundColor?: string | undefined;
23
+ borderRadius?: string | undefined;
24
+ fontSize?: string | undefined;
25
+ buttonSize?: "sm" | "md" | "lg" | undefined;
26
+ variant?: "contained" | "outlined" | undefined;
27
+ url?: string | undefined;
28
+ target?: string | undefined;
29
+ } & T>) => void) => React.ReactNode) | undefined;
10
30
  }) => React.JSX.Element;
@@ -5,7 +5,33 @@ export declare const CSSSlide: import("styled-components").StyledComponent<"div"
5
5
  export declare const CSSSlideTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
6
  export declare const CSSScroll: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
7
  export declare const CSSFlexColumn: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8
- export declare const JRCWidgetArticleSliderEditor: ({ slides, loop, useDots, token, onChange, onSave, }: WidgetArticleSliderContent & {
8
+ export declare const JRCWidgetArticleSliderEditor: ({ slides, loop, useDots, token, onChange, onSave, }: {
9
+ slides?: {
10
+ title: string;
11
+ text: string;
12
+ titleHeading?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | undefined;
13
+ textColor?: string | undefined;
14
+ opacityFilter?: number | undefined;
15
+ opacityColor?: string | undefined;
16
+ file?: {
17
+ type: string;
18
+ id: number;
19
+ mainType: string;
20
+ uri: string;
21
+ dateCreation: string;
22
+ dateModified: string | null;
23
+ title: string;
24
+ _url: string;
25
+ mimetype: string;
26
+ size: number;
27
+ path?: string | undefined;
28
+ } | undefined;
29
+ }[] | undefined;
30
+ maxWidth?: number | undefined;
31
+ loop?: boolean | undefined;
32
+ useDots?: boolean | undefined;
33
+ startAt?: number | undefined;
34
+ } & {
9
35
  token: string;
10
36
  onSave: (content: Partial<WidgetArticleSliderContent>) => void;
11
37
  onChange: (content: Partial<WidgetArticleSliderContent>, override?: boolean) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.0.194",
3
+ "version": "1.0.195",
4
4
  "description": "",
5
5
  "main": "./build/jamespot-react-components.js",
6
6
  "types": "./build/src/index.d.ts",
@@ -81,7 +81,7 @@
81
81
  "chroma-js": "^2.1.1",
82
82
  "classnames": "^2.3.1",
83
83
  "dompurify": "^3.0.5",
84
- "jamespot-user-api": "^1.0.166",
84
+ "jamespot-user-api": "^1.0.167",
85
85
  "moment": "2.29.4",
86
86
  "react": "^17.x",
87
87
  "react-beautiful-dnd": "^13.1.1",