jamespot-react-components 1.3.77 → 1.3.79
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.
- package/dist/jamespot-react-components/src/components/Editors/components/EditorImageUpload.d.ts +5 -2
- package/dist/jamespot-react-components/src/components/Editors/components/EditorInputImage.d.ts +14 -4
- package/dist/jamespot-react-components/src/components/Editors/components/EditorRichText.d.ts +14 -0
- package/dist/jamespot-react-components/src/components/Form/Input/JRCInputTinyMCERaw/JRCInputTinyMCERaw.d.ts +1 -0
- package/dist/jamespot-react-components/src/components/Form/Input/JRCSelect/JRCInputSelect.style.d.ts +1 -1
- package/dist/jamespot-react-components/src/components/JRCSlider/JRCSlider.d.ts +13 -0
- package/dist/jamespot-react-components/src/components/{Widgets/JRCWidgetSlider/JRCWidgetSlider.stories.d.ts → JRCSlider/JRCSlider.stories.d.ts} +2 -2
- package/dist/jamespot-react-components/src/components/JRCSlider/types.d.ts +15 -0
- package/dist/jamespot-react-components/src/components/Widgets/JRCWidgetAccessibility/JRCWidgetAccessibility.d.ts +6 -0
- package/dist/jamespot-react-components/src/components/Widgets/JRCWidgetAccessibility/JRCWidgetAccessibilityEditor.d.ts +7 -0
- package/dist/jamespot-react-components/src/components/Widgets/JRCWidgetArticleSlider/JRCWidgetArticleSliderEditor.d.ts +9 -0
- package/dist/jamespot-react-components/src/components/Widgets/{JRCWidgetSlider → JRCWidgetArticleSlider}/JRCWidgetArticleSliderEditorSlide.d.ts +5 -2
- package/dist/jamespot-react-components/src/components/Widgets/{JRCWidgetSlider → JRCWidgetArticleSlider}/components/ArticleSliderImage.d.ts +1 -1
- package/dist/jamespot-react-components/src/components/Widgets/JRCWidgetArticleSlider/components/ArticleSliderSlide.d.ts +2 -0
- package/dist/jamespot-react-components/src/components/Widgets/JRCWidgetArticleSlider/types.d.ts +17 -0
- package/dist/jamespot-react-components/src/components/Widgets/JRCWidgetCheckList/JRCWidgetCheckListEditor.d.ts +5 -2
- package/dist/jamespot-react-components/src/components/Widgets/JRCWidgetCheckList/JRCWidgetCheckListItem.d.ts +4 -1
- package/dist/jamespot-react-components/src/components/Widgets/JRCWidgetCover/JRCWidgetCover.d.ts +2 -1
- package/dist/jamespot-react-components/src/components/Widgets/JRCWidgetCover/JRCWidgetCoverEditor.d.ts +7 -2
- package/dist/jamespot-react-components/src/components/Widgets/JRCWidgetImage/JRCWidgetArticleImageEditor.d.ts +5 -2
- package/dist/jamespot-react-components/src/components/Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurveyEditor.d.ts +5 -2
- package/dist/jamespot-react-components/src/components/Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurveyEditorEntries.d.ts +5 -2
- package/dist/jamespot-react-components/src/components/Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurveyItemWrapper.d.ts +4 -1
- package/dist/jamespot-react-components/src/components/Widgets/JRCWidgetSlider/JRCWidgetSliderEditor.d.ts +11 -0
- package/dist/jamespot-react-components/src/components/Widgets/JRCWidgetSlider/JRCWidgetSliderEditorSlide.d.ts +14 -0
- package/dist/jamespot-react-components/src/components/Widgets/JRCWidgetSlider/JRCWidgetSliderEditorSlideRemove.d.ts +1 -0
- package/dist/jamespot-react-components/src/components/Widgets/JRCWidgetSlider/components/CoverSliderSlide.d.ts +2 -0
- package/dist/jamespot-react-components/src/components/Widgets/JRCWidgetSlider/types.d.ts +5 -24
- package/dist/jamespot-react-components/src/components/Widgets/JRCWidgetSlider/utils.slider.d.ts +6 -0
- package/dist/jamespot-react-components/src/components/index.d.ts +7 -3
- package/dist/jamespot-react-components.cjs +1165 -1072
- package/dist/jamespot-react-components.js +13425 -12763
- package/package.json +3 -3
- package/dist/jamespot-react-components/src/components/Widgets/JRCWidgetSlider/JRCWidgetArticleSliderEditor.d.ts +0 -6
- package/dist/jamespot-react-components/src/components/Widgets/JRCWidgetSlider/JRCWidgetSlider.d.ts +0 -12
- package/dist/jamespot-react-components/src/components/Widgets/JRCWidgetSlider/components/ArticleSliderSlide.d.ts +0 -2
- /package/dist/jamespot-react-components/src/components/{Widgets/JRCWidgetSlider → JRCSlider}/components/SliderArrows.d.ts +0 -0
- /package/dist/jamespot-react-components/src/components/{Widgets/JRCWidgetSlider → JRCSlider}/components/SliderDots.d.ts +0 -0
- /package/dist/jamespot-react-components/src/components/{Widgets/JRCWidgetSlider → JRCSlider}/utils.d.ts +0 -0
- /package/dist/jamespot-react-components/src/components/Widgets/{JRCWidgetSlider → JRCWidgetArticleSlider}/JRCWidgetArticleSliderEditorSlideRemove.d.ts +0 -0
- /package/dist/jamespot-react-components/src/components/Widgets/{JRCWidgetSlider → JRCWidgetArticleSlider}/components/ArticleSliderSlideTitle.d.ts +0 -0
package/dist/jamespot-react-components/src/components/Editors/components/EditorImageUpload.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jFileLittle } from '../../../../../jamespot-user-api/src';
|
|
1
|
+
import { JFileApi, jFileLittle } from '../../../../../jamespot-user-api/src';
|
|
2
2
|
import { ReactElement } from 'react';
|
|
3
3
|
type EditorImageUploadProps = {
|
|
4
4
|
token: string;
|
|
@@ -8,6 +8,9 @@ type EditorImageUploadProps = {
|
|
|
8
8
|
onUploadSuccess: (file: jFileLittle | undefined) => void;
|
|
9
9
|
onLoading?: (isLoading: boolean) => void;
|
|
10
10
|
deferServerCalls?: boolean;
|
|
11
|
+
handlers: {
|
|
12
|
+
file: Pick<JFileApi, 'upload' | 'update' | 'deleteImage' | 'deleteFile'>;
|
|
13
|
+
};
|
|
11
14
|
};
|
|
12
|
-
export declare const EditorImageUpload: ({ token, children, initialFile, onUploadSuccess, onLoading, allowCustomRatio, deferServerCalls, }: EditorImageUploadProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const EditorImageUpload: ({ token, children, initialFile, onUploadSuccess, onLoading, allowCustomRatio, deferServerCalls, handlers, }: EditorImageUploadProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
16
|
export {};
|
package/dist/jamespot-react-components/src/components/Editors/components/EditorInputImage.d.ts
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
import { jFileLittle } from '../../../../../jamespot-user-api/src';
|
|
2
|
-
|
|
1
|
+
import { JFileApi, jFileLittle } from '../../../../../jamespot-user-api/src';
|
|
2
|
+
export interface EditorInputImageHandle {
|
|
3
|
+
/** Persists any pending image changes (upload, crop, delete). Resolves with the final file or undefined. */
|
|
4
|
+
save: () => Promise<jFileLittle | undefined>;
|
|
5
|
+
}
|
|
6
|
+
type EditorInputImageProps = {
|
|
3
7
|
token: string;
|
|
4
|
-
onUploadSuccess: (file: jFileLittle) => void;
|
|
8
|
+
onUploadSuccess: (file: jFileLittle | undefined) => void;
|
|
5
9
|
initialFile?: jFileLittle;
|
|
10
|
+
deferServerCalls?: boolean;
|
|
11
|
+
onLoading?: (isLoading: boolean) => void;
|
|
12
|
+
allowCustomRatio?: boolean;
|
|
13
|
+
handlers: {
|
|
14
|
+
file: Pick<JFileApi, 'upload' | 'update' | 'deleteImage' | 'deleteFile'>;
|
|
15
|
+
};
|
|
6
16
|
};
|
|
7
|
-
export declare const EditorInputImage: (
|
|
17
|
+
export declare const EditorInputImage: import('react').ForwardRefExoticComponent<EditorInputImageProps & import('react').RefAttributes<EditorInputImageHandle>>;
|
|
8
18
|
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { JFileApi } from '../../../../../jamespot-user-api/src';
|
|
2
|
+
import { JRCInputTinyMCERawProps } from '../../Form/Input/JRCInputTinyMCERaw/JRCInputTinyMCERaw';
|
|
3
|
+
export type EditorRichTextProps = {
|
|
4
|
+
label?: string;
|
|
5
|
+
initialValue: string;
|
|
6
|
+
onChange: (html: string) => void;
|
|
7
|
+
height?: number;
|
|
8
|
+
token?: string;
|
|
9
|
+
tinyMCECommonOptions: Pick<JRCInputTinyMCERawProps, 'commonOptions' | 'mentionsQueries'>;
|
|
10
|
+
handlers: {
|
|
11
|
+
file: Pick<JFileApi, 'upload'>;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare const EditorRichText: ({ initialValue, onChange, height, token, tinyMCECommonOptions, handlers, }: EditorRichTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,6 +5,7 @@ import { DataCy } from '../../../../types/dataAttributes';
|
|
|
5
5
|
import { MentionQuery, TinyMCEExtension } from './types';
|
|
6
6
|
export type JRCInputTinyMCERawProps = DataCy & {
|
|
7
7
|
id?: string;
|
|
8
|
+
className?: string;
|
|
8
9
|
token?: string;
|
|
9
10
|
commonOptions: TinyMCECommonOptions;
|
|
10
11
|
additionalExtensions?: Array<TinyMCEExtension>;
|
package/dist/jamespot-react-components/src/components/Form/Input/JRCSelect/JRCInputSelect.style.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export declare const FlexBoxTreeDescription: import('styled-components/dist/type
|
|
|
43
43
|
export declare const NoResult: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
44
44
|
export declare const WrapperList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
45
45
|
export declare const ModalContentList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
46
|
-
export declare const NoOptionList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "x" | "y" | "gap" | "textAlign" | "
|
|
46
|
+
export declare const NoOptionList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "x" | "y" | "gap" | "textAlign" | "padding" | "position" | "margin" | "inline" | "flex" | "data-testid" | "direction" | "childFull"> & Omit<import('../../../Common/FastCss').FastCssProps, "display"> & {
|
|
47
47
|
direction?: import('../../../JRCFlex/JRCFlexBox').FlexDirection;
|
|
48
48
|
inline?: boolean;
|
|
49
49
|
flex?: boolean | string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SliderSlideAny } from './types';
|
|
2
|
+
export type JRCSliderProps = {
|
|
3
|
+
slides: SliderSlideAny[];
|
|
4
|
+
maxWidth: number;
|
|
5
|
+
delay: number;
|
|
6
|
+
loop: boolean;
|
|
7
|
+
autoplay: boolean;
|
|
8
|
+
useDots?: boolean;
|
|
9
|
+
startAt?: number;
|
|
10
|
+
constrainHeight?: boolean;
|
|
11
|
+
onClickSlide?: (index: number) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare const JRCSlider: ({ slides, autoplay, delay, maxWidth, loop, useDots, startAt, constrainHeight, onClickSlide, }: JRCSliderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react-webpack5';
|
|
2
|
-
import {
|
|
2
|
+
import { JRCSliderProps } from './JRCSlider';
|
|
3
3
|
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Primary: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-webpack5').ReactRenderer,
|
|
5
|
+
export declare const Primary: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-webpack5').ReactRenderer, JRCSliderProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type SliderSlideComponentProps<T = Record<string, unknown>> = {
|
|
2
|
+
slide: T;
|
|
3
|
+
maxWidth: number;
|
|
4
|
+
maxHeight?: number;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
};
|
|
7
|
+
export type SliderSlide<T = Record<string, unknown>> = {
|
|
8
|
+
component: React.ComponentType<SliderSlideComponentProps<T>>;
|
|
9
|
+
attributes: T;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Type-erased version used internally by JRCSlider.
|
|
13
|
+
* The slider doesn't inspect slide attributes — it just forwards them to the component.
|
|
14
|
+
*/
|
|
15
|
+
export type SliderSlideAny = SliderSlide<any>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { WidgetAccessibilityContent } from '../../../../../jamespot-user-api/src';
|
|
2
|
+
export interface JRCWidgetAccessibilityEditorProps {
|
|
3
|
+
uniqid: string;
|
|
4
|
+
content: WidgetAccessibilityContent;
|
|
5
|
+
onChangeContent: (uniqid: string, content: WidgetAccessibilityContent) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const JRCWidgetAccessibilityEditor: ({ uniqid, content, onChangeContent, }: JRCWidgetAccessibilityEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { JFileApi, WidgetArticleSliderContent } from '../../../../../jamespot-user-api/src';
|
|
2
|
+
export declare const JRCWidgetArticleSliderEditor: ({ slides, loop, autoplay, delay, useDots, token, onChange, onSave, handlers, }: WidgetArticleSliderContent & {
|
|
3
|
+
token: string;
|
|
4
|
+
onSave: (content: Partial<WidgetArticleSliderContent>) => void;
|
|
5
|
+
onChange: (content: Partial<WidgetArticleSliderContent>, override?: boolean) => void;
|
|
6
|
+
handlers: {
|
|
7
|
+
file: Pick<JFileApi, "upload" | "update" | "deleteImage" | "deleteFile">;
|
|
8
|
+
};
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jFileLittle } from '../../../../../jamespot-user-api/src';
|
|
1
|
+
import { JFileApi, jFileLittle } from '../../../../../jamespot-user-api/src';
|
|
2
2
|
import { WidgetArticleSlideAttributes } from './types';
|
|
3
|
-
export declare const JRCWidgetArticleSliderEditorSlide: ({ forceOpen, title, text, opacityColor, opacityFilter, displayAs, backgroundSize, backgroundPosition, file, token, onUploadSuccess, onSave, onClickDelete, }: {
|
|
3
|
+
export declare const JRCWidgetArticleSliderEditorSlide: ({ forceOpen, title, text, opacityColor, opacityFilter, displayAs, backgroundSize, backgroundPosition, file, token, onUploadSuccess, onSave, onClickDelete, handlers, }: {
|
|
4
4
|
forceOpen?: boolean;
|
|
5
5
|
file?: jFileLittle;
|
|
6
6
|
token?: string;
|
|
@@ -8,4 +8,7 @@ export declare const JRCWidgetArticleSliderEditorSlide: ({ forceOpen, title, tex
|
|
|
8
8
|
onUploadSuccess: (response: jFileLittle | undefined) => void;
|
|
9
9
|
onSave: (slide: Partial<WidgetArticleSlideAttributes>) => void;
|
|
10
10
|
onClickDelete: () => void;
|
|
11
|
+
handlers: {
|
|
12
|
+
file: Pick<JFileApi, "upload" | "update" | "deleteImage" | "deleteFile">;
|
|
13
|
+
};
|
|
11
14
|
} & Pick<WidgetArticleSlideAttributes, "title" | "text" | "opacityColor" | "opacityFilter" | "displayAs" | "backgroundSize" | "backgroundPosition">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,6 +2,6 @@ import { WidgetArticleSlideAttributes } from '../types';
|
|
|
2
2
|
export declare const ArticleSliderImage: ({ initialUri, maxWidth, maxHeight, onClick, }: {
|
|
3
3
|
initialUri: string;
|
|
4
4
|
maxWidth: number;
|
|
5
|
-
maxHeight
|
|
5
|
+
maxHeight?: number;
|
|
6
6
|
onClick?: () => void;
|
|
7
7
|
} & Pick<WidgetArticleSlideAttributes, "displayAs" | "backgroundSize" | "backgroundPosition">) => import("react/jsx-runtime").JSX.Element;
|
package/dist/jamespot-react-components/src/components/Widgets/JRCWidgetArticleSlider/types.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CSSBackgroundPosition, CSSBackgroundSize } from '../../../../../jamespot-user-api/src';
|
|
2
|
+
import { TVariants } from '../../JRCTypography/JRCTypography.types';
|
|
3
|
+
import { SliderSlideComponentProps, SliderSlide } from '../../JRCSlider/types';
|
|
4
|
+
export type WidgetArticleSlideAttributes = {
|
|
5
|
+
title: string;
|
|
6
|
+
text: string;
|
|
7
|
+
titleHeading?: TVariants;
|
|
8
|
+
textColor?: string;
|
|
9
|
+
opacityFilter?: number;
|
|
10
|
+
opacityColor?: string;
|
|
11
|
+
displayAs?: 'image' | 'background';
|
|
12
|
+
backgroundPosition?: CSSBackgroundPosition;
|
|
13
|
+
backgroundSize?: CSSBackgroundSize;
|
|
14
|
+
uri: string;
|
|
15
|
+
};
|
|
16
|
+
export type WidgetArticleSliderSlideComponentProps = SliderSlideComponentProps<WidgetArticleSlideAttributes>;
|
|
17
|
+
export type WidgetArticleSliderSlide = SliderSlide<WidgetArticleSlideAttributes>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CombinedWidgetContent, WidgetCheckListContent, WidgetCheckListContentArr } from '../../../../../jamespot-user-api/src';
|
|
1
|
+
import { CombinedWidgetContent, JFileApi, WidgetCheckListContent, WidgetCheckListContentArr } from '../../../../../jamespot-user-api/src';
|
|
2
2
|
type JRCWidgetCheckListEditorProps = {
|
|
3
3
|
token?: string;
|
|
4
4
|
uniqid: string;
|
|
@@ -13,6 +13,9 @@ type JRCWidgetCheckListEditorProps = {
|
|
|
13
13
|
}) => void;
|
|
14
14
|
onSave?: (uniqid: string, content: Partial<CombinedWidgetContent>) => void;
|
|
15
15
|
handleChange: (content: Partial<WidgetCheckListContent>) => void;
|
|
16
|
+
handlers: {
|
|
17
|
+
file: Pick<JFileApi, 'upload' | 'update' | 'deleteImage' | 'deleteFile'>;
|
|
18
|
+
};
|
|
16
19
|
};
|
|
17
|
-
export declare const JRCWidgetCheckListEditor: ({ token, uniqid, content, inplace, onChangeContent, onChangeWrapper, handleChange, }: JRCWidgetCheckListEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const JRCWidgetCheckListEditor: ({ token, uniqid, content, inplace, onChangeContent, onChangeWrapper, handleChange, handlers, }: JRCWidgetCheckListEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
21
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WidgetCheckListContentArr, jFileLittle, jHref } from '../../../../../jamespot-user-api/src';
|
|
1
|
+
import { JFileApi, WidgetCheckListContentArr, jFileLittle, jHref } from '../../../../../jamespot-user-api/src';
|
|
2
2
|
import { FC, RefObject } from 'react';
|
|
3
3
|
type Item = {
|
|
4
4
|
title: string;
|
|
@@ -20,6 +20,9 @@ type JRCWidgetCheckListItemProps = {
|
|
|
20
20
|
handleRemoveImage: (idWidget: number) => void;
|
|
21
21
|
handleAddImageWidget: (index: number, file: jFileLittle) => void;
|
|
22
22
|
handleNewItem: () => void;
|
|
23
|
+
handlers: {
|
|
24
|
+
file: Pick<JFileApi, 'upload' | 'update' | 'deleteImage' | 'deleteFile'>;
|
|
25
|
+
};
|
|
23
26
|
};
|
|
24
27
|
export declare const JRCWidgetCheckListItem: FC<JRCWidgetCheckListItemProps>;
|
|
25
28
|
export {};
|
package/dist/jamespot-react-components/src/components/Widgets/JRCWidgetCover/JRCWidgetCover.d.ts
CHANGED
|
@@ -22,5 +22,6 @@ export type JRCWidgetCoverProps = {
|
|
|
22
22
|
titleHeading?: HeadingType;
|
|
23
23
|
description?: string;
|
|
24
24
|
button?: Record<string, string | number | boolean> | undefined;
|
|
25
|
+
minHeight?: number;
|
|
25
26
|
};
|
|
26
|
-
export declare const JRCWidgetCover: ({ uri, css, isMobileDisplay, title, link, filterColor, filterOpacity, button, titleHeading, description, }: JRCWidgetCoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare const JRCWidgetCover: ({ uri, css, isMobileDisplay, title, link, filterColor, filterOpacity, button, titleHeading, description, minHeight, }: JRCWidgetCoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import { WidgetCoverContent } from '../../../../../jamespot-user-api/src';
|
|
1
|
+
import { JFileApi, WidgetCoverContent } from '../../../../../jamespot-user-api/src';
|
|
2
|
+
import { JRCInputTinyMCERawProps } from '../../Form/Input/JRCInputTinyMCERaw/JRCInputTinyMCERaw';
|
|
2
3
|
export interface JRCWidgetCoverEditorProps {
|
|
3
4
|
uniqid: string;
|
|
4
5
|
content: WidgetCoverContent;
|
|
5
6
|
token?: string;
|
|
6
7
|
onChangeContent: (uniqid: string, content: WidgetCoverContent) => void;
|
|
8
|
+
tinyMCECommonOptions?: Pick<JRCInputTinyMCERawProps, 'commonOptions' | 'mentionsQueries'>;
|
|
9
|
+
handlers?: {
|
|
10
|
+
file: Pick<JFileApi, 'get' | 'upload' | 'update' | 'deleteImage' | 'deleteFile'>;
|
|
11
|
+
};
|
|
7
12
|
}
|
|
8
13
|
/**
|
|
9
14
|
* Widget Cover editor component
|
|
10
15
|
*/
|
|
11
|
-
export declare const JRCWidgetCoverEditor: ({ uniqid, content, onChangeContent, token }: JRCWidgetCoverEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const JRCWidgetCoverEditor: ({ uniqid, content, onChangeContent, token, tinyMCECommonOptions, handlers, }: JRCWidgetCoverEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { WidgetArticleImageContent, WidgetStateProps } from '../../../../../jamespot-user-api/src';
|
|
1
|
+
import { JFileApi, WidgetArticleImageContent, WidgetStateProps } from '../../../../../jamespot-user-api/src';
|
|
2
2
|
/**
|
|
3
3
|
* Custom widget image editor for article widget image
|
|
4
4
|
*/
|
|
5
|
-
export declare const JRCWidgetArticleImageEditor: ({ token, content, onSave, onStateChange, }: {
|
|
5
|
+
export declare const JRCWidgetArticleImageEditor: ({ token, content, onSave, onStateChange, handlers, }: {
|
|
6
6
|
token: string | undefined;
|
|
7
7
|
content: WidgetArticleImageContent;
|
|
8
8
|
onChange: (content: Partial<WidgetArticleImageContent>, override?: boolean) => void;
|
|
9
9
|
onSave: (content: Partial<WidgetArticleImageContent>) => void;
|
|
10
10
|
onStateChange: (state: WidgetStateProps) => void;
|
|
11
|
+
handlers: {
|
|
12
|
+
file: Pick<JFileApi, "upload" | "update" | "deleteImage" | "deleteFile">;
|
|
13
|
+
};
|
|
11
14
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CombinedWidgetContent, WidgetQuickSurveyContent, WidgetQuickSurveyContentArr } from '../../../../../jamespot-user-api/src';
|
|
1
|
+
import { CombinedWidgetContent, JFileApi, WidgetQuickSurveyContent, WidgetQuickSurveyContentArr } from '../../../../../jamespot-user-api/src';
|
|
2
2
|
type JRCWidgetSurveyEditorProps = {
|
|
3
3
|
token?: string;
|
|
4
4
|
uniqid: string;
|
|
@@ -14,6 +14,9 @@ type JRCWidgetSurveyEditorProps = {
|
|
|
14
14
|
}) => void;
|
|
15
15
|
onSave?: (uniqid: string, content: Partial<CombinedWidgetContent>) => void;
|
|
16
16
|
handleChange: (content: Partial<WidgetQuickSurveyContent>) => void;
|
|
17
|
+
handlers: {
|
|
18
|
+
file: Pick<JFileApi, 'upload' | 'update' | 'deleteImage' | 'deleteFile'>;
|
|
19
|
+
};
|
|
17
20
|
};
|
|
18
|
-
export declare const JRCWidgetQuickSurveyEditor: ({ token, uniqid, uri, content, inplace, handleChange, }: JRCWidgetSurveyEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare const JRCWidgetQuickSurveyEditor: ({ token, uniqid, uri, content, inplace, handleChange, handlers, }: JRCWidgetSurveyEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
22
|
export {};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { WidgetQuickSurveyContent } from '../../../../../jamespot-user-api/src';
|
|
2
|
-
export declare const JRCWidgetQuickSurveyEditorEntries: ({ content, token, handleChange, isStarted, }: {
|
|
1
|
+
import { JFileApi, WidgetQuickSurveyContent } from '../../../../../jamespot-user-api/src';
|
|
2
|
+
export declare const JRCWidgetQuickSurveyEditorEntries: ({ content, token, handleChange, isStarted, handlers, }: {
|
|
3
3
|
content: WidgetQuickSurveyContent;
|
|
4
4
|
token: string;
|
|
5
5
|
handleChange: (content: Partial<WidgetQuickSurveyContent>) => void;
|
|
6
6
|
isStarted?: boolean;
|
|
7
|
+
handlers: {
|
|
8
|
+
file: Pick<JFileApi, "upload" | "update" | "deleteImage" | "deleteFile">;
|
|
9
|
+
};
|
|
7
10
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jFileLittle, WidgetQuickSurveyContentArr } from '../../../../../jamespot-user-api/src';
|
|
1
|
+
import { JFileApi, jFileLittle, WidgetQuickSurveyContentArr } from '../../../../../jamespot-user-api/src';
|
|
2
2
|
import { FC, RefObject } from 'react';
|
|
3
3
|
type Item = {
|
|
4
4
|
title: string;
|
|
@@ -17,6 +17,9 @@ type JRCWidgetQuickSurveyWrapperItemProps = {
|
|
|
17
17
|
handleAddImageWidget: (index: number, file: jFileLittle) => void;
|
|
18
18
|
handleNewItem: () => void;
|
|
19
19
|
isStarted?: boolean;
|
|
20
|
+
handlers: {
|
|
21
|
+
file: Pick<JFileApi, 'upload' | 'update' | 'deleteImage' | 'deleteFile'>;
|
|
22
|
+
};
|
|
20
23
|
};
|
|
21
24
|
export declare const JRCWidgetQuickSurveyWrapperItem: FC<JRCWidgetQuickSurveyWrapperItemProps>;
|
|
22
25
|
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JFileApi, WidgetSliderContent } from '../../../../../jamespot-user-api/src';
|
|
2
|
+
import { JRCInputTinyMCERawProps } from '../../Form/Input/JRCInputTinyMCERaw/JRCInputTinyMCERaw';
|
|
3
|
+
export declare const JRCWidgetSliderEditor: ({ slides, loop, autoplay, delay, useDots, token, onChange, tinyMCECommonOptions, handlers, }: WidgetSliderContent & {
|
|
4
|
+
token: string;
|
|
5
|
+
onSave: (content: Partial<WidgetSliderContent>) => void;
|
|
6
|
+
onChange: (content: Partial<WidgetSliderContent>, override?: boolean) => void;
|
|
7
|
+
tinyMCECommonOptions?: Pick<JRCInputTinyMCERawProps, "commonOptions" | "mentionsQueries">;
|
|
8
|
+
handlers?: {
|
|
9
|
+
file: Pick<JFileApi, "get" | "upload" | "update" | "deleteImage" | "deleteFile">;
|
|
10
|
+
};
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { JFileApi, WidgetCoverSlide } from '../../../../../jamespot-user-api/src';
|
|
2
|
+
import { JRCInputTinyMCERawProps } from '../../Form/Input/JRCInputTinyMCERaw/JRCInputTinyMCERaw';
|
|
3
|
+
export declare const JRCWidgetSliderEditorSlide: ({ forceOpen, id, title, text, titleHeading, opacityColor, opacityFilter, button, token, onUploadSuccess, onSave, onClickDelete, tinyMCECommonOptions, handlers, }: {
|
|
4
|
+
forceOpen?: boolean;
|
|
5
|
+
token?: string;
|
|
6
|
+
onUploadStart: () => void;
|
|
7
|
+
onUploadSuccess: (id: number | undefined) => void;
|
|
8
|
+
onSave: (slide: Partial<WidgetCoverSlide>) => void;
|
|
9
|
+
onClickDelete: () => void;
|
|
10
|
+
tinyMCECommonOptions?: Pick<JRCInputTinyMCERawProps, "commonOptions" | "mentionsQueries">;
|
|
11
|
+
handlers?: {
|
|
12
|
+
file: Pick<JFileApi, "get" | "upload" | "update" | "deleteImage" | "deleteFile">;
|
|
13
|
+
};
|
|
14
|
+
} & Pick<WidgetCoverSlide, "id" | "title" | "text" | "titleHeading" | "opacityColor" | "opacityFilter" | "button">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { JRCWidgetArticleSliderEditorSlideRemove as JRCWidgetSliderEditorSlideRemove } from '../JRCWidgetArticleSlider/JRCWidgetArticleSliderEditorSlideRemove';
|
|
@@ -1,24 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export type
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
titleHeading?: TVariants;
|
|
7
|
-
textColor?: string;
|
|
8
|
-
opacityFilter?: number;
|
|
9
|
-
opacityColor?: string;
|
|
10
|
-
displayAs?: 'image' | 'background';
|
|
11
|
-
backgroundPosition?: CSSBackgroundPosition;
|
|
12
|
-
backgroundSize?: CSSBackgroundSize;
|
|
13
|
-
uri: string;
|
|
14
|
-
};
|
|
15
|
-
export type WidgetSliderSlideComponentProps = {
|
|
16
|
-
slide: WidgetArticleSlideAttributes;
|
|
17
|
-
maxWidth: number;
|
|
18
|
-
maxHeight: number;
|
|
19
|
-
onClick?: () => void;
|
|
20
|
-
};
|
|
21
|
-
export type WidgetSliderSlide = {
|
|
22
|
-
component: React.ComponentType<WidgetSliderSlideComponentProps>;
|
|
23
|
-
attributes: WidgetArticleSlideAttributes;
|
|
24
|
-
};
|
|
1
|
+
import { SliderSlideComponentProps, SliderSlide } from '../../JRCSlider/types';
|
|
2
|
+
import { JRCWidgetCoverProps } from '../JRCWidgetCover/JRCWidgetCover';
|
|
3
|
+
export type WidgetCoverSlideAttributes = Pick<JRCWidgetCoverProps, 'uri' | 'title' | 'description' | 'titleHeading' | 'filterColor' | 'filterOpacity' | 'button' | 'css' | 'link'>;
|
|
4
|
+
export type CoverSliderSlideComponentProps = SliderSlideComponentProps<WidgetCoverSlideAttributes>;
|
|
5
|
+
export type CoverSliderSlide = SliderSlide<WidgetCoverSlideAttributes>;
|
package/dist/jamespot-react-components/src/components/Widgets/JRCWidgetSlider/utils.slider.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { WidgetCoverSlide } from '../../../../../jamespot-user-api/src';
|
|
2
|
+
/**
|
|
3
|
+
* Strip legacy Angular `src` field (built from `id` in the AngularJS factory)
|
|
4
|
+
* and optionally `id` from a slide, so the persisted data stays clean.
|
|
5
|
+
*/
|
|
6
|
+
export declare const stripLegacyFields: (slide: WidgetCoverSlide, overrides?: Partial<WidgetCoverSlide>) => WidgetCoverSlide;
|
|
@@ -157,6 +157,8 @@ export { JRCWidgetCalendarCalDav } from './Widgets/JRCWidgetCalendarCalDav/JRCWi
|
|
|
157
157
|
export { JRCWidgetCalendarCalDavEditor } from './Widgets/JRCWidgetCalendarCalDav/JRCWidgetCalendarCalDavEditor';
|
|
158
158
|
export { JRCWidgetCheckList } from './Widgets/JRCWidgetCheckList/JRCWidgetCheckList';
|
|
159
159
|
export { JRCWidgetCheckListEditor } from './Widgets/JRCWidgetCheckList/JRCWidgetCheckListEditor';
|
|
160
|
+
export { JRCWidgetAccessibility } from './Widgets/JRCWidgetAccessibility/JRCWidgetAccessibility';
|
|
161
|
+
export { JRCWidgetAccessibilityEditor } from './Widgets/JRCWidgetAccessibility/JRCWidgetAccessibilityEditor';
|
|
160
162
|
export { JRCWidgetColor } from './Widgets/JRCWidgetColor/JRCWidgetColor';
|
|
161
163
|
export { JRCWidgetColorEditor } from './Widgets/JRCWidgetColor/JRCWidgetColorEditor';
|
|
162
164
|
export { JRCWidgetContactCardDav } from './Widgets/JRCWidgetContactCardDav/JRCWidgetContactCardDav';
|
|
@@ -178,9 +180,11 @@ export { JRCWidgetPresence } from './Widgets/JRCWidgetPresence/JRCWidgetPresence
|
|
|
178
180
|
export { JRCWidgetPresenceEditor } from './Widgets/JRCWidgetPresence/JRCWidgetPresenceEditor';
|
|
179
181
|
export { JRCWidgetQuickSurvey } from './Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurvey';
|
|
180
182
|
export { JRCWidgetQuickSurveyEditor } from './Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurveyEditor';
|
|
181
|
-
export { ArticleSliderSlide } from './Widgets/
|
|
182
|
-
export { JRCWidgetArticleSliderEditor } from './Widgets/
|
|
183
|
-
export {
|
|
183
|
+
export { ArticleSliderSlide } from './Widgets/JRCWidgetArticleSlider/components/ArticleSliderSlide';
|
|
184
|
+
export { JRCWidgetArticleSliderEditor } from './Widgets/JRCWidgetArticleSlider/JRCWidgetArticleSliderEditor';
|
|
185
|
+
export { JRCSlider } from './JRCSlider/JRCSlider';
|
|
186
|
+
export { CoverSliderSlide } from './Widgets/JRCWidgetSlider/components/CoverSliderSlide';
|
|
187
|
+
export { JRCWidgetSliderEditor } from './Widgets/JRCWidgetSlider/JRCWidgetSliderEditor';
|
|
184
188
|
export { JRCWidgetSurveyDate } from './Widgets/JRCWidgetSurveyDate/JRCWidgetSurveyDate';
|
|
185
189
|
export { JRCWidgetDatasourceTableEditor } from './Widgets/JRCWidgetTable/JRCWidgetDatasourceTableEditor';
|
|
186
190
|
export { JRCWidgetExcelDatasourceTableEditor } from './Widgets/JRCWidgetTable/JRCWidgetExcelDatasourceTableEditor';
|