jamespot-react-components 1.2.33 → 1.2.34

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.
@@ -16,5 +16,5 @@ type JRCWidgetQuickSurveyProps = {
16
16
  handleProgressBarClick: (index: number) => void;
17
17
  setOpenUsersModal: (index: number) => void;
18
18
  };
19
- export declare const JRCWidgetQuickSurvey: ({ limit, values, userResponses, isClosed, canCloseSurvey, userHasAlreadyVoted, anonymize, seeResponseAfter, canUpdate, handleCloseSurvey, handleProgressBarClick, handleClickFile, setOpenUsersModal, }: JRCWidgetQuickSurveyProps) => React.JSX.Element | null;
19
+ export declare const JRCWidgetQuickSurvey: ({ limit, values, userResponses, isClosed, canCloseSurvey, userHasAlreadyVoted, anonymize, seeResponseAfter, canUpdate, handleCloseSurvey, handleProgressBarClick, handleClickFile, setOpenUsersModal, }: JRCWidgetQuickSurveyProps) => React.JSX.Element;
20
20
  export {};
@@ -1,41 +1,10 @@
1
1
  import React from 'react';
2
- import { WidgetArticleSliderContent, jFileLittle } from 'jamespot-user-api';
3
- import { WidgetSliderSlide } from './types';
2
+ import { WidgetArticleSliderContent } from 'jamespot-user-api';
4
3
  export declare const CSSSlide: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
4
  export declare const CSSSlideTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
- export declare const CSSScroll: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
5
  export declare const CSSFlexColumn: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8
6
  export declare const JRCWidgetArticleSliderEditor: ({ slides, loop, useDots, token, onChange, onSave, }: WidgetArticleSliderContent & {
9
7
  token: string;
10
8
  onSave: (content: Partial<WidgetArticleSliderContent>) => void;
11
9
  onChange: (content: Partial<WidgetArticleSliderContent>, override?: boolean) => void;
12
10
  }) => React.JSX.Element;
13
- export declare const EditorSlide: ({ forceOpen, title, text, displayAs, backgroundSize, backgroundPosition, file, token, onUploadSuccess, onSave, onClickDelete, }: {
14
- forceOpen?: boolean | undefined;
15
- file?: {
16
- type: string;
17
- uri: string;
18
- id: number;
19
- mainType: string;
20
- dateCreation: string;
21
- dateModified: string | null;
22
- title: string;
23
- _url: string;
24
- size: number;
25
- mimetype: string;
26
- path?: string | undefined;
27
- } | undefined;
28
- token?: string | undefined;
29
- onUploadStart: () => void;
30
- onUploadSuccess: (response: jFileLittle) => void;
31
- onSave: (slide: Partial<WidgetSliderSlide>) => void;
32
- onClickDelete: () => void;
33
- } & Pick<WidgetSliderSlide, "title" | "text" | "displayAs" | "backgroundSize" | "backgroundPosition">) => React.JSX.Element;
34
- /**
35
- * TODO: STANDALONE COMPONENT
36
- */
37
- export declare const DeleteWithPrompt: ({ title, description, onClick, }: {
38
- title: string;
39
- description?: string | undefined;
40
- onClick: () => void;
41
- }) => React.JSX.Element;
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import { jFileLittle } from 'jamespot-user-api';
3
+ import { WidgetSliderSlide } from './types';
4
+ export declare const CSSScroll: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const JRCWidgetArticleSliderEditorSlide: ({ forceOpen, title, text, opacityColor, opacityFilter, displayAs, backgroundSize, backgroundPosition, file, token, onUploadSuccess, onSave, onClickDelete, }: {
6
+ forceOpen?: boolean | undefined;
7
+ file?: {
8
+ type: string;
9
+ uri: string;
10
+ id: number;
11
+ mainType: string;
12
+ dateCreation: string;
13
+ dateModified: string | null;
14
+ title: string;
15
+ _url: string;
16
+ size: number;
17
+ mimetype: string;
18
+ path?: string | undefined;
19
+ } | undefined;
20
+ token?: string | undefined;
21
+ onUploadStart: () => void;
22
+ onUploadSuccess: (response: jFileLittle) => void;
23
+ onSave: (slide: Partial<WidgetSliderSlide>) => void;
24
+ onClickDelete: () => void;
25
+ } & Pick<WidgetSliderSlide, "title" | "text" | "opacityColor" | "opacityFilter" | "displayAs" | "backgroundSize" | "backgroundPosition">) => React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare const JRCWidgetArticleSliderEditorSlideRemove: ({ title, description, onClick, }: {
3
+ title: string;
4
+ description?: string | undefined;
5
+ onClick: () => void;
6
+ }) => React.JSX.Element;
@@ -55,3 +55,7 @@ export declare const EditorFontSizeOptions: {
55
55
  label: string;
56
56
  value: string;
57
57
  }[];
58
+ export declare const EditorOpacityOptions: {
59
+ label: string;
60
+ value: string;
61
+ }[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.2.33",
3
+ "version": "1.2.34",
4
4
  "description": "",
5
5
  "main": "./build/jamespot-react-components.js",
6
6
  "types": "./build/src/index.d.ts",
@@ -99,7 +99,7 @@
99
99
  "chroma-js": "^2.1.1",
100
100
  "classnames": "^2.3.1",
101
101
  "dompurify": "^3.0.5",
102
- "jamespot-user-api": "^1.2.33",
102
+ "jamespot-user-api": "^1.2.34",
103
103
  "react": "^17.x",
104
104
  "react-beautiful-dnd": "^13.1.1",
105
105
  "react-dnd": "^14.0.4",